UNPKG

@ionic-internal/ionic-ds

Version:
419 lines (416 loc) 35.4 kB
import { __rest, __assign, __makeTemplateObject } from '../../../_virtual/_tslib.js'; import clsx from '../../../node_modules/clsx/dist/clsx.m.js'; import React, { forwardRef } from 'react'; import styled from 'styled-components'; var Button = forwardRef(function (_a, ref) { var _b; var _c = _a.size, size = _c === void 0 ? 'lg' : _c, _d = _a.kind, kind = _d === void 0 ? 'display' : _d, _e = _a.color, color = _e === void 0 ? 'blue' : _e, _f = _a.variation, variation = _f === void 0 ? 'fill' : _f, props = __rest(_a, ["size", "kind", "color", "variation"]); var as = Boolean(props.href) ? 'a' : 'button'; return React.createElement(ButtonStyles, __assign(__assign({}, props), { $size: size, $kind: kind, $color: color, $variation: variation, $as: props.as || props.$as || as, ref: ref, className: clsx((_b = {}, _b[props.className] = Boolean(props.className), _b['ds-button'] = true, _b["ds-button-" + size] = true, _b["ds-button-" + kind] = true, _b["ds-button-" + color] = true, _b["ds-button-" + variation] = true, _b)) })); }); var ButtonStyles = styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --height: 2.75rem;\n --c-background: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n --c-focus: #c2d8ff;\n --c-text: #fff;\n --elevation: ", ";\n --padding: 13.5px 16px;\n --f-size: ", ";\n --letter-spacing: 0.08em;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border: none;\n color: var(--c-text);\n line-height: 100%;\n outline: 1px solid rgba(0, 0, 0, 0);\n box-shadow: var(--elevation);\n white-space: pre;\n\n //default to large blue display button\n text-transform: uppercase;\n border-radius: 8px;\n padding: var(--padding);\n letter-spacing: var(----letter-spacing);\n background: var(--c-background);\n font-size: var(--f-size);\n height: var(--height);\n font-weight: bold;\n\n &:focus {\n outline: 1px solid rgba(0, 0, 0, 0);\n box-shadow: 0 0 0 3px var(--c-focus), var(--elevation);\n }\n &:hover {\n background: var(--c-background--hover);\n }\n &:active {\n background: var(--c-background--active);\n }\n\n transition: box-shadow 0.2s ease-out, background-color 0.2s ease-out;\n\n //button size\n &.ds-button-sm {\n --height: 1.5rem;\n }\n &.ds-button-md {\n --f-size: ", ";\n --height: 2rem;\n }\n &.ds-button-lg {\n --f-size: ", ";\n --height: 3rem;\n }\n &.ds-button-xl {\n --f-size: ", ";\n --height: 3.5;\n }\n\n &.ds-button-light {\n &.ds-button-xl,\n &.ds-button-lg {\n --elevation: ", ";\n\n &:hover,\n &:focus {\n --elevation: ", ";\n }\n }\n\n &.ds-button-md,\n &.ds-button-sm {\n --elevation: ", ";\n\n &:hover,\n &:focus {\n --elevation: ", ";\n }\n }\n\n &.ds-button-round {\n &:active {\n --elevation: ", ";\n }\n }\n }\n\n //button-type\n &.ds-button-display {\n text-transform: uppercase;\n font-weight: bold;\n\n &.ds-button-sm {\n --f-size: ", ";\n border-radius: ", ";\n --padding: 6px 8px 5px 8px;\n --letter-spacing: 0.08em;\n }\n &.ds-button-md {\n border-radius: ", ";\n --padding: 8px 12px;\n --letter-spacing: 0.08em;\n }\n &.ds-button-lg {\n border-radius: ", ";\n --padding: 13.5px 16px;\n --letter-spacing: 0.08em;\n }\n &.ds-button-xl {\n border-radius: ", ";\n --padding: 18.5px 20px;\n --letter-spacing: 0.12em;\n }\n }\n &.ds-button-regular {\n font-weight: bold;\n text-transform: none;\n\n &.ds-button-sm {\n --f-size: 11px;\n border-radius: ", ";\n --padding: 5.5px 8px 6px 8px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-md {\n border-radius: ", ";\n --padding: 7.5px 12px 8.5px 12px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-lg {\n border-radius: ", ";\n --padding: 14px 16px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-xl {\n border-radius: ", ";\n --padding: 19px 20px;\n --letter-spacing: 0em;\n }\n }\n &.ds-button-round {\n font-weight: 600;\n border-radius: ", ";\n text-transform: none;\n\n &.ds-button-sm {\n --f-size: 11px;\n --padding: 5.5px 8px 6px 8px;\n --letter-spacing: 0em;\n }\n &.ds-button-md {\n --padding: 7.5px 12px 8.5px 12px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-lg {\n --padding: 15px 22px;\n --letter-spacing: 0.01em;\n }\n &.ds-button-xl {\n --padding: 19px 22px;\n --letter-spacing: -0.02em;\n }\n }\n\n &.ds-button-light:active {\n --c-background--active: #fff;\n }\n\n //button color\n &.ds-button-blue {\n --c-background: ", ";\n --c-focus: #c2d8ff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #c2d8ff;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #c2d8ff;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: rgba(0, 0, 0, 0);\n --c-background--active: rgba(0, 0, 0, 0);\n }\n }\n &.ds-button-indigo {\n --c-background: ", ";\n --c-focus: #dee3ea;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #dee3ea;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #dee3ea;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-green {\n --c-background: ", ";\n --c-focus: #cff5dc;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n --c-text: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #cff5dc;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #cff5dc;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-red {\n --c-background: ", ";\n --c-focus: #ffdde2;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #ffdde2;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #ffdde2;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-yellow {\n --c-background: ", ";\n --c-focus: #fff4d1;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #fff4d1;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #fff4d1;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-orange {\n --c-background: ", ";\n --c-focus: #ffdfd1;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #ffdfd1;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #ffdfd1;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-cyan {\n --c-background: ", ";\n --c-focus: #d3ecff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #d3ecff;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #d3ecff;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-lavender {\n --c-background: ", ";\n --c-focus: #d0dbff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #d0dbff;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #d0dbff;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n\n &.ds-button-black {\n --c-background: ", ";\n --c-focus: #fff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: ", ";\n --c-focus: #dee3ea;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: ", ";\n --c-focus: #dee3ea;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n --c-background: ", ";\n --c-text: ", ";\n\n &:hover {\n --c-background--hover: ", ";\n --c-text: ", ";\n --elevation: none;\n }\n }\n"], ["\n --height: 2.75rem;\n --c-background: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n --c-focus: #c2d8ff;\n --c-text: #fff;\n --elevation: ", ";\n --padding: 13.5px 16px;\n --f-size: ", ";\n --letter-spacing: 0.08em;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border: none;\n color: var(--c-text);\n line-height: 100%;\n outline: 1px solid rgba(0, 0, 0, 0);\n box-shadow: var(--elevation);\n white-space: pre;\n\n //default to large blue display button\n text-transform: uppercase;\n border-radius: 8px;\n padding: var(--padding);\n letter-spacing: var(----letter-spacing);\n background: var(--c-background);\n font-size: var(--f-size);\n height: var(--height);\n font-weight: bold;\n\n &:focus {\n outline: 1px solid rgba(0, 0, 0, 0);\n box-shadow: 0 0 0 3px var(--c-focus), var(--elevation);\n }\n &:hover {\n background: var(--c-background--hover);\n }\n &:active {\n background: var(--c-background--active);\n }\n\n transition: box-shadow 0.2s ease-out, background-color 0.2s ease-out;\n\n //button size\n &.ds-button-sm {\n --height: 1.5rem;\n }\n &.ds-button-md {\n --f-size: ", ";\n --height: 2rem;\n }\n &.ds-button-lg {\n --f-size: ", ";\n --height: 3rem;\n }\n &.ds-button-xl {\n --f-size: ", ";\n --height: 3.5;\n }\n\n &.ds-button-light {\n &.ds-button-xl,\n &.ds-button-lg {\n --elevation: ", ";\n\n &:hover,\n &:focus {\n --elevation: ", ";\n }\n }\n\n &.ds-button-md,\n &.ds-button-sm {\n --elevation: ", ";\n\n &:hover,\n &:focus {\n --elevation: ", ";\n }\n }\n\n &.ds-button-round {\n &:active {\n --elevation: ", ";\n }\n }\n }\n\n //button-type\n &.ds-button-display {\n text-transform: uppercase;\n font-weight: bold;\n\n &.ds-button-sm {\n --f-size: ", ";\n border-radius: ", ";\n --padding: 6px 8px 5px 8px;\n --letter-spacing: 0.08em;\n }\n &.ds-button-md {\n border-radius: ", ";\n --padding: 8px 12px;\n --letter-spacing: 0.08em;\n }\n &.ds-button-lg {\n border-radius: ", ";\n --padding: 13.5px 16px;\n --letter-spacing: 0.08em;\n }\n &.ds-button-xl {\n border-radius: ", ";\n --padding: 18.5px 20px;\n --letter-spacing: 0.12em;\n }\n }\n &.ds-button-regular {\n font-weight: bold;\n text-transform: none;\n\n &.ds-button-sm {\n --f-size: 11px;\n border-radius: ", ";\n --padding: 5.5px 8px 6px 8px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-md {\n border-radius: ", ";\n --padding: 7.5px 12px 8.5px 12px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-lg {\n border-radius: ", ";\n --padding: 14px 16px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-xl {\n border-radius: ", ";\n --padding: 19px 20px;\n --letter-spacing: 0em;\n }\n }\n &.ds-button-round {\n font-weight: 600;\n border-radius: ", ";\n text-transform: none;\n\n &.ds-button-sm {\n --f-size: 11px;\n --padding: 5.5px 8px 6px 8px;\n --letter-spacing: 0em;\n }\n &.ds-button-md {\n --padding: 7.5px 12px 8.5px 12px;\n --letter-spacing: -0.02em;\n }\n &.ds-button-lg {\n --padding: 15px 22px;\n --letter-spacing: 0.01em;\n }\n &.ds-button-xl {\n --padding: 19px 22px;\n --letter-spacing: -0.02em;\n }\n }\n\n &.ds-button-light:active {\n --c-background--active: #fff;\n }\n\n //button color\n &.ds-button-blue {\n --c-background: ", ";\n --c-focus: #c2d8ff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #c2d8ff;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #c2d8ff;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: rgba(0, 0, 0, 0);\n --c-background--active: rgba(0, 0, 0, 0);\n }\n }\n &.ds-button-indigo {\n --c-background: ", ";\n --c-focus: #dee3ea;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #dee3ea;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #dee3ea;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-green {\n --c-background: ", ";\n --c-focus: #cff5dc;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n --c-text: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #cff5dc;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #cff5dc;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-red {\n --c-background: ", ";\n --c-focus: #ffdde2;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #ffdde2;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #ffdde2;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-yellow {\n --c-background: ", ";\n --c-focus: #fff4d1;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #fff4d1;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #fff4d1;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-orange {\n --c-background: ", ";\n --c-focus: #ffdfd1;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #ffdfd1;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #ffdfd1;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-cyan {\n --c-background: ", ";\n --c-focus: #d3ecff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #d3ecff;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #d3ecff;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n &.ds-button-lavender {\n --c-background: ", ";\n --c-focus: #d0dbff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-round {\n --c-text: ", ";\n }\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: #fff;\n --c-focus: #d0dbff;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: #fff;\n --c-focus: #d0dbff;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n\n &.ds-button-black {\n --c-background: ", ";\n --c-focus: #fff;\n --c-background--hover: ", ";\n --c-background--active: ", ";\n\n &.ds-button-muted {\n --c-background: ", ";\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n &.ds-button-light {\n --c-background: #fff;\n --c-text: ", ";\n\n &.ds-button-lg,\n &.ds-button-xl {\n --c-background--hover: ", ";\n --c-focus: #dee3ea;\n }\n\n &.ds-button-sm,\n &.ds-button-md {\n --c-background--hover: ", ";\n --c-focus: #dee3ea;\n }\n }\n &.ds-button-ghost {\n --c-background: rgba(0, 0, 0, 0);\n --c-text: ", ";\n --c-background--hover: ", ";\n --c-background--active: ", ";\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n --c-background: ", ";\n --c-text: ", ";\n\n &:hover {\n --c-background--hover: ", ";\n --c-text: ", ";\n --elevation: none;\n }\n }\n"])), function (_a) { var theme = _a.theme; return theme.colors.blue['80']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['70']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['90']; }, function (_a) { var theme = _a.theme; return theme.shadows['0']; }, function (_a) { var theme = _a.theme; return theme.fontSizes['14']; }, function (_a) { var theme = _a.theme; return theme.fontSizes['13']; }, function (_a) { var theme = _a.theme; return theme.fontSizes['16']; }, function (_a) { var theme = _a.theme; return theme.fontSizes['16']; }, function (_a) { var theme = _a.theme; return theme.shadows['3']; }, function (_a) { var theme = _a.theme; return theme.shadows['4']; }, function (_a) { var theme = _a.theme; return theme.shadows['2']; }, function (_a) { var theme = _a.theme; return theme.shadows['3']; }, function (_a) { var theme = _a.theme; return theme.shadows['1']; }, function (_a) { var theme = _a.theme; return theme.fontSizes['10']; }, function (_a) { var theme = _a.theme; return theme.radii['6']; }, function (_a) { var theme = _a.theme; return theme.radii['8']; }, function (_a) { var theme = _a.theme; return theme.radii['8']; }, function (_a) { var theme = _a.theme; return theme.radii['8']; }, function (_a) { var theme = _a.theme; return theme.radii['6']; }, function (_a) { var theme = _a.theme; return theme.radii['8']; }, function (_a) { var theme = _a.theme; return theme.radii['8']; }, function (_a) { var theme = _a.theme; return theme.radii['8']; }, function (_a) { var theme = _a.theme; return theme.radii.x; }, function (_a) { var theme = _a.theme; return theme.colors.blue['90']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['80']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['100']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['10']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['80']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['0']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['20']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['80']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['80']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['80']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['70']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['90']; }, function (_a) { var theme = _a.theme; return theme.colors.carbon['0']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['80']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['10']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['30']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['80']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['80']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['0']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['10']; }, function (_a) { var theme = _a.theme; return theme.colors.green['90']; }, function (_a) { var theme = _a.theme; return theme.colors.green['80']; }, function (_a) { var theme = _a.theme; return theme.colors.green['100']; }, function (_a) { var theme = _a.theme; return theme.colors.green['0']; }, function (_a) { var theme = _a.theme; return theme.colors.green['10']; }, function (_a) { var theme = _a.theme; return theme.colors.green['20']; }, function (_a) { var theme = _a.theme; return theme.colors.green['100']; }, function (_a) { var theme = _a.theme; return theme.colors.green['90']; }, function (_a) { var theme = _a.theme; return theme.colors.green['100']; }, function (_a) { var theme = _a.theme; return theme.colors.green['100']; }, function (_a) { var theme = _a.theme; return theme.colors.green['0']; }, function (_a) { var theme = _a.theme; return theme.colors.green['10']; }, function (_a) { var theme = _a.theme; return theme.colors.red['80']; }, function (_a) { var theme = _a.theme; return theme.colors.red['70']; }, function (_a) { var theme = _a.theme; return theme.colors.red['90']; }, function (_a) { var theme = _a.theme; return theme.colors.red['0']; }, function (_a) { var theme = _a.theme; return theme.colors.red['90']; }, function (_a) { var theme = _a.theme; return theme.colors.red['10']; }, function (_a) { var theme = _a.theme; return theme.colors.red['20']; }, function (_a) { var theme = _a.theme; return theme.colors.red['80']; }, function (_a) { var theme = _a.theme; return theme.colors.red['90']; }, function (_a) { var theme = _a.theme; return theme.colors.red['90']; }, function (_a) { var theme = _a.theme; return theme.colors.red['0']; }, function (_a) { var theme = _a.theme; return theme.colors.red['10']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['80']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['60']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['90']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['0']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['90']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['10']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['20']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['80']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['90']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['90']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['0']; }, function (_a) { var theme = _a.theme; return theme.colors.yellow['10']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['70']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['70']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['90']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['0']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['90']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['10']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['20']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['80']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['90']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['90']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['0']; }, function (_a) { var theme = _a.theme; return theme.colors.orange['10']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['90']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['80']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['100']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['0']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['100']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['10']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['20']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['90']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['100']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['100']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['0']; }, function (_a) { var theme = _a.theme; return theme.colors.cyan['10']; }, function (_a) { var theme = _a.theme; return theme.colors.lavender['80']; }, function (_a) { var theme = _a.theme; return theme.colors.lavender['70']; }, function (_a) { var theme = _a.theme; return theme.colors.lavender['90']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['0']; }, function (_a) { var theme = _a.theme; return theme.colors.lavender['90']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['10']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['20']; }, function (_a) { var theme = _a.theme; return theme.colors.lavender['80']; }, function (_a) { var theme = _a.theme; return theme.colors.lavender['90']; }, function (_a) { var theme = _a.theme; return theme.colors.lavender['90']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['0']; }, function (_a) { var theme = _a.theme; return theme.colors.blue['10']; }, function (_a) { var theme = _a.theme; return theme.colors.black; }, function (_a) { var theme = _a.theme; return theme.colors.gray['90']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['100']; }, function (_a) { var theme = _a.theme; return theme.colors.carbon['0']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['80']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['10']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['30']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['80']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['0']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['0']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['80']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['0']; }, function (_a) { var theme = _a.theme; return theme.colors.gray['10']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['20']; }, function (_a) { var theme = _a.theme; return theme.colors.carbon['20']; }, function (_a) { var theme = _a.theme; return theme.colors.indigo['20']; }, function (_a) { var theme = _a.theme; return theme.colors.carbon['20']; }); var templateObject_1; export default Button;