@pedidopago/ui 1.7.21 → 1.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/styles.d.ts.map +1 -1
- package/dist/components/Alert/styles.js +1 -1
- package/dist/components/Avatar/styles.d.ts.map +1 -1
- package/dist/components/Avatar/styles.js +3 -3
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/styles.d.ts.map +1 -1
- package/dist/components/Button/styles.js +3 -5
- package/dist/components/CheckboxInput/styles.d.ts +7 -8
- package/dist/components/CheckboxInput/styles.d.ts.map +1 -1
- package/dist/components/CheckboxInput/styles.js +13 -35
- package/dist/components/CollapseCard/styles.d.ts.map +1 -1
- package/dist/components/CollapseCard/styles.js +4 -1
- package/dist/components/ColorPicker/styles.d.ts.map +1 -1
- package/dist/components/ColorPicker/styles.js +5 -5
- package/dist/components/ComposeIcon/styles.d.ts.map +1 -1
- package/dist/components/ComposeIcon/styles.js +2 -2
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +4 -5
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +7 -8
- package/dist/components/Dialog/styles.d.ts +0 -2
- package/dist/components/Dialog/styles.d.ts.map +1 -1
- package/dist/components/Dialog/styles.js +4 -6
- package/dist/components/Dropzone/styles.js +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/index.js +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmotePickerData/styles.js +20 -14
- package/dist/components/EmojiPicker/styles.d.ts.map +1 -1
- package/dist/components/EmojiPicker/styles.js +3 -6
- package/dist/components/Flex/styles.d.ts +168 -0
- package/dist/components/Flex/styles.d.ts.map +1 -1
- package/dist/components/Grid/styles.d.ts +168 -0
- package/dist/components/Grid/styles.d.ts.map +1 -1
- package/dist/components/Icon/data/illustrations.js +43 -43
- package/dist/components/Illustration/styles.d.ts.map +1 -1
- package/dist/components/Illustration/styles.js +4 -3
- package/dist/components/ImageItem/styles.d.ts.map +1 -1
- package/dist/components/ImageItem/styles.js +3 -4
- package/dist/components/Input/index.js +3 -1
- package/dist/components/Input/styles.d.ts +0 -4
- package/dist/components/Input/styles.d.ts.map +1 -1
- package/dist/components/Input/styles.js +44 -82
- package/dist/components/List/styles.d.ts.map +1 -1
- package/dist/components/List/styles.js +3 -9
- package/dist/components/Modal/styles.d.ts.map +1 -1
- package/dist/components/Modal/styles.js +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.js +17 -7
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -4
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +3 -3
- package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -1
- package/dist/components/NewSelect/styles.d.ts.map +1 -1
- package/dist/components/NewSelect/styles.js +1 -4
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +2 -9
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +3 -2
- package/dist/components/RadioInput/styles.d.ts +4 -1
- package/dist/components/RadioInput/styles.d.ts.map +1 -1
- package/dist/components/RadioInput/styles.js +16 -5
- package/dist/components/RadioInput/types.d.ts +2 -1
- package/dist/components/RadioInput/types.d.ts.map +1 -1
- package/dist/components/Select/components/OptionsSelect/styles.js +1 -1
- package/dist/components/Select/styles.d.ts.map +1 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Skeleton/styles.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.js +2 -8
- package/dist/components/Slider/components/SliderPointer.d.ts.map +1 -1
- package/dist/components/Slider/components/SliderPointer.js +2 -1
- package/dist/components/Slider/styles.d.ts.map +1 -1
- package/dist/components/Slider/styles.js +2 -2
- package/dist/components/Spinner/styles.d.ts +168 -0
- package/dist/components/Spinner/styles.d.ts.map +1 -1
- package/dist/components/Spinner/styles.js +1 -1
- package/dist/components/Steps/styles.d.ts.map +1 -1
- package/dist/components/Steps/styles.js +3 -9
- package/dist/components/Switch/styles.d.ts.map +1 -1
- package/dist/components/Switch/styles.js +2 -4
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -5
- package/dist/components/Table/styles.d.ts.map +1 -1
- package/dist/components/Table/styles.js +4 -52
- package/dist/components/Tabs/styles.d.ts.map +1 -1
- package/dist/components/Tabs/styles.js +2 -1
- package/dist/components/Tag/styles.d.ts +504 -0
- package/dist/components/Tag/styles.d.ts.map +1 -1
- package/dist/components/Tag/styles.js +3 -3
- package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
- package/dist/components/TextAreaInput/styles.js +3 -6
- package/dist/components/Thumbnail/index.d.ts.map +1 -1
- package/dist/components/Thumbnail/index.js +7 -56
- package/dist/components/Thumbnail/styles.d.ts.map +1 -1
- package/dist/components/Thumbnail/styles.js +17 -27
- package/dist/components/Thumbnail/types.d.ts +1 -9
- package/dist/components/Thumbnail/types.d.ts.map +1 -1
- package/dist/components/TimeInput/styles.d.ts.map +1 -1
- package/dist/components/TimeInput/styles.js +7 -1
- package/dist/components/Timeline/components/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/components/Timeline.js +3 -16
- package/dist/components/Timeline/styles.d.ts.map +1 -1
- package/dist/components/Timeline/styles.js +5 -5
- package/dist/components/Timeline/timeline.test.js +0 -2
- package/dist/components/Timeline/types.d.ts +0 -1
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipLabel.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipLabel.js +5 -5
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +5 -1
- package/dist/components/Tooltip/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.js +2 -4
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/components/Typography/index.js +4 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/shared/hooks/useSystemTheme.d.ts +2 -0
- package/dist/shared/hooks/useSystemTheme.d.ts.map +1 -0
- package/dist/shared/hooks/useSystemTheme.js +33 -0
- package/dist/shared/theme/contexts/ThemeContext.d.ts +1 -1
- package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/shared/theme/contexts/ThemeContext.js +36 -16
- package/dist/shared/theme/hooks/useColorMode.d.ts +1 -1
- package/dist/shared/theme/hooks/useColorMode.js +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +168 -0
- package/dist/shared/theme/hooks/useTheme.d.ts.map +1 -1
- package/dist/shared/theme/objects/breakpoints.d.ts +9 -0
- package/dist/shared/theme/objects/breakpoints.d.ts.map +1 -0
- package/dist/shared/theme/objects/breakpoints.js +15 -0
- package/dist/shared/theme/objects/colors.d.ts +171 -0
- package/dist/shared/theme/objects/colors.d.ts.map +1 -0
- package/dist/shared/theme/objects/colors.js +177 -0
- package/dist/shared/theme/objects/shadows.d.ts +13 -0
- package/dist/shared/theme/objects/shadows.d.ts.map +1 -0
- package/dist/shared/theme/objects/shadows.js +19 -0
- package/dist/shared/theme/objects/sizes.d.ts +23 -0
- package/dist/shared/theme/objects/sizes.d.ts.map +1 -0
- package/dist/shared/theme/objects/sizes.js +33 -0
- package/dist/shared/theme/objects/spaces.d.ts +131 -0
- package/dist/shared/theme/objects/spaces.d.ts.map +1 -0
- package/dist/shared/theme/objects/spaces.js +75 -0
- package/dist/shared/theme/objects/transitions.d.ts +4 -0
- package/dist/shared/theme/objects/transitions.d.ts.map +1 -0
- package/dist/shared/theme/objects/transitions.js +10 -0
- package/dist/shared/theme/objects/typography.d.ts +14 -0
- package/dist/shared/theme/objects/typography.d.ts.map +1 -0
- package/dist/shared/theme/objects/typography.js +20 -0
- package/dist/shared/theme/objects/z-indexes.d.ts +14 -0
- package/dist/shared/theme/objects/z-indexes.d.ts.map +1 -0
- package/dist/shared/theme/objects/z-indexes.js +20 -0
- package/dist/shared/theme/theme.d.ts +168 -0
- package/dist/shared/theme/theme.d.ts.map +1 -1
- package/dist/shared/theme/theme.js +19 -225
- package/dist/shared/theme/theme.types.d.ts +9 -1
- package/dist/shared/theme/theme.types.d.ts.map +1 -1
- package/dist/utils/customColorMode.d.ts +2 -0
- package/dist/utils/customColorMode.d.ts.map +1 -0
- package/dist/utils/customColorMode.js +11 -0
- package/package.json +9 -3
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +0 -4
- package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +0 -1
- package/dist/components/Steps/components/StepIconMobile/index.js +0 -126
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,OAAO;;;yGAInB,CAAC;AAEF,eAAO,MAAM,KAAK;;;kHAGjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;sIAgEjB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAAe,CAAC;AAE1C,eAAO,MAAM,WAAW;;;6HAOvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;sIASvB,CAAC;AAaF,eAAO,MAAM,QAAQ;;;;WAAwB,eAAe,GAAG,SAAS;2GAQvE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Wrapper = exports.ListWrapper = exports.Label = exports.Input = exports.HelpText = exports.ChoiceWrapper = exports.ChoiceLabel = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
var Wrapper = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));
|
|
@@ -30,10 +30,21 @@ var ChoiceLabel = _styled.default.label(_templateObject8 || (_templateObject8 =
|
|
|
30
30
|
var colors = _ref3.theme.colors;
|
|
31
31
|
return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: 16px;\n "])), colors.neutral.black);
|
|
32
32
|
});
|
|
33
|
+
|
|
34
|
+
// export const HelpText = styled.span<IStyledRadioInput>`
|
|
35
|
+
// ${({ theme }) => css`
|
|
36
|
+
// font-size: ${theme.fontSizes.xxs};
|
|
37
|
+
// color: ${theme.colors.neutral.neutral4};
|
|
38
|
+
// font-weight: 500;
|
|
39
|
+
// display: block;
|
|
40
|
+
// padding-left: 30px;
|
|
41
|
+
// margin-top: 18px;
|
|
42
|
+
// `}
|
|
43
|
+
// `;
|
|
33
44
|
exports.ChoiceLabel = ChoiceLabel;
|
|
34
|
-
var HelpText = _styled.default.span(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n ", "\n"])), function (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return
|
|
45
|
+
var HelpText = _styled.default.span(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: ", ";\n\n color: ", ";\n padding: 0 20px;\n"])), function (props) {
|
|
46
|
+
return props.theme.fontSizes.xxs;
|
|
47
|
+
}, function (props) {
|
|
48
|
+
return props.alert && props.alert !== 'success' ? props.theme.colors[props.alert].default : props.theme.colors.neutral.neutral4;
|
|
38
49
|
});
|
|
39
50
|
exports.HelpText = HelpText;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { InputAlertTypes } from '../Input/types';
|
|
2
3
|
export interface IRadioInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
3
4
|
isDisabled?: boolean;
|
|
4
5
|
children?: ReactNode;
|
|
@@ -12,6 +13,7 @@ export interface ChoiceListProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
12
13
|
alignDirection?: 'column' | 'row';
|
|
13
14
|
color?: string;
|
|
14
15
|
helpText?: string;
|
|
16
|
+
alert?: InputAlertTypes;
|
|
15
17
|
children: ReactNode;
|
|
16
18
|
}
|
|
17
19
|
export type ChoiceListContext = {
|
|
@@ -21,7 +23,6 @@ export type ChoiceListContext = {
|
|
|
21
23
|
isDisabled?: boolean;
|
|
22
24
|
};
|
|
23
25
|
export interface IStyledRadioInput {
|
|
24
|
-
textColor?: string;
|
|
25
26
|
alignDirection?: 'column' | 'row';
|
|
26
27
|
}
|
|
27
28
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC3F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IAC5E,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CACnC"}
|
|
@@ -16,6 +16,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
var OptionsContainer = (0, _styled.default)(_framerMotion.motion.div)(function (_ref) {
|
|
17
17
|
var theme = _ref.theme,
|
|
18
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: ", ";\n min-width: ", ";\n max-height: calc(", " - 20px);\n position: fixed;\n left: ", ";\n top: ", ";\n z-index: ", ";\n opacity: ", ";\n pointer-events: ", ";\n transition: opacity ease ", ";\n overflow-y: auto;\n overflow-x: hidden;\n background: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background: ", ";\n }\n li {\n list-style: none;\n }\n "])), props.maxWidth, props.minWidth || 'initial', props.maxHeight, props.left, props.top, theme.zIndex.level24, props.open ? 1 : 0, props.open ? 'auto' : 'none', theme.transition.speed, theme.colors.
|
|
19
|
+
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: ", ";\n min-width: ", ";\n max-height: calc(", " - 20px);\n position: fixed;\n left: ", ";\n top: ", ";\n z-index: ", ";\n opacity: ", ";\n pointer-events: ", ";\n transition: opacity ease ", ";\n overflow-y: auto;\n overflow-x: hidden;\n background: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background: ", ";\n }\n li {\n list-style: none;\n }\n "])), props.maxWidth, props.minWidth || 'initial', props.maxHeight, props.left, props.top, theme.zIndex.level24, props.open ? 1 : 0, props.open ? 'auto' : 'none', theme.transition.speed, theme.colors.neutral.white, theme.colors.neutral.neutral1, theme.borderRadius.default, theme.borderRadius.default, theme.colors.primary.default);
|
|
20
20
|
});
|
|
21
21
|
exports.OptionsContainer = OptionsContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3D,eAAO,MAAM,eAAe;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3D,eAAO,MAAM,eAAe;;;gIA4K1B,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;yGAwBjB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;UAI5B,CAAC;AAEH,eAAO,MAAM,UAAU;;;wHAQtB,CAAC"}
|
|
@@ -11,10 +11,10 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
13
|
var SelectContainer = _styled.default.div(function (props) {
|
|
14
|
-
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n user-select: none;\n width: ", ";\n height: ", ";\n ", ";\n & > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n border-radius: ", ";\n padding: 0\n ", ";\n width: 100%;\n height: 100%;\n position: relative;\n cursor: pointer;\n color: ", ";\n transition: background-color ease;\n transition-duration: ", ";\n\n ", ";\n\n ", ";\n\n & > label {\n position: absolute;\n left: 20px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n transition: top ease, left ease, color ease;\n transition-duration: ", ";\n\n background: ", ";\n padding: 0 4px;\n z-index: 1;\n white-space: nowrap;\n max-width: 65%;\n overflow: hidden;\n text-overflow: ellipsis;\n\n ", "\n }\n\n & > .select--placeholder {\n white-space: nowrap;\n max-width: 75%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n // Chevron Down icon\n & > svg {\n flex-shrink: 0;\n transform: rotate(0deg);\n color: ", ";\n transition: transform ease;\n transition-duration: ", ";\n }\n\n & > fieldset {\n border: 2px solid;\n border-color: ", ";\n border-radius: ", ";\n padding: 0 14px;\n position: absolute;\n left: 0px;\n right: 0px;\n top: 0px;\n bottom: 0px;\n pointer-events: none;\n transition: border-color ease;\n transition-duration: ", ";\n\n &:last-of-type {\n border-radius: calc(", " + 2px);\n padding: 0 16px;\n border-color: transparent;\n left: -2px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n }\n\n & > legend {\n display: ", ";\n line-height: 2px;\n user-select: none;\n padding: 0 4px;\n & > span {\n color: transparent;\n }\n }\n }\n }\n\n & > input {\n appearance: none;\n border: 0;\n width: 0px;\n position: absolute;\n opacity: 0;\n pointer-events: none;\n }\n "])), props.size ? {
|
|
14
|
+
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n user-select: none;\n width: ", ";\n background: ", ";\n\n height: ", ";\n ", ";\n & > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n border-radius: ", ";\n padding: 0\n ", ";\n width: 100%;\n height: 100%;\n position: relative;\n cursor: pointer;\n color: ", ";\n transition: background-color ease;\n transition-duration: ", ";\n\n ", ";\n\n ", ";\n\n & > label {\n position: absolute;\n left: 20px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n transition: top ease, left ease, color ease;\n transition-duration: ", ";\n\n background: ", ";\n padding: 0 4px;\n z-index: 1;\n white-space: nowrap;\n max-width: 65%;\n overflow: hidden;\n text-overflow: ellipsis;\n\n ", "\n }\n\n & > .select--placeholder {\n white-space: nowrap;\n max-width: 75%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n // Chevron Down icon\n & > svg {\n flex-shrink: 0;\n transform: rotate(0deg);\n color: ", ";\n transition: transform ease;\n transition-duration: ", ";\n }\n\n & > fieldset {\n border: 2px solid;\n border-color: ", ";\n border-radius: ", ";\n padding: 0 14px;\n position: absolute;\n left: 0px;\n right: 0px;\n top: 0px;\n bottom: 0px;\n pointer-events: none;\n transition: border-color ease;\n transition-duration: ", ";\n\n &:last-of-type {\n border-radius: calc(", " + 2px);\n padding: 0 16px;\n border-color: transparent;\n left: -2px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n }\n\n & > legend {\n display: ", ";\n line-height: 2px;\n user-select: none;\n padding: 0 4px;\n & > span {\n color: transparent;\n }\n }\n }\n }\n\n & > input {\n appearance: none;\n border: 0;\n width: 0px;\n position: absolute;\n opacity: 0;\n pointer-events: none;\n }\n "])), props.size ? {
|
|
15
15
|
sm: '78px',
|
|
16
16
|
md: '100%'
|
|
17
|
-
}[props.size] : props.width, props.variant === 'unstyled' ? 'auto' : props.size ? {
|
|
17
|
+
}[props.size] : props.width, props.theme.colors.neutral.white, props.variant === 'unstyled' ? 'auto' : props.size ? {
|
|
18
18
|
sm: '36px',
|
|
19
19
|
md: '56px'
|
|
20
20
|
}[props.size] : '56px', !props.disabled && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:hover {\n & > div {\n color: ", ";\n\n & > label {\n color: ", ";\n }\n\n & > fieldset {\n &:first-of-type {\n border-color: ", ";\n }\n }\n }\n }\n\n &:focus {\n & > div {\n color: ", ";\n\n & > svg {\n transform: rotate(180deg);\n }\n\n & > fieldset {\n &:first-of-type {\n border-color: ", ";\n }\n &:last-of-type {\n border-color: ", ";\n }\n }\n }\n }\n "])), props.theme.colors.neutral.black, props.theme.colors.neutral.neutral5, props.alert ? props.theme.colors[props.alert].blurred : props.theme.colors.primary.hover, props.theme.colors.neutral.black, props.alert ? props.theme.colors[props.alert].default : props.theme.colors.primary.hover, props.alert ? props.theme.colors[props.alert].blurred : props.theme.colors.primary.disabled), props.theme.borderRadius.default, props.variant === 'unstyled' ? '0' : props.size && {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,eAAe;;;+IA0F1B,CAAC"}
|
|
@@ -6,26 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SkeletonElement = void 0;
|
|
7
7
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var _getColorValue = require("../../utils/getColorValue");
|
|
10
|
-
var _colorCheck = require("../../utils/colorCheck");
|
|
11
|
-
var _invertColor = require("../../utils/invertColor");
|
|
12
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
13
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
12
|
var SkeletonElement = _styled.default.div(function (props) {
|
|
16
|
-
var skeletonColor = (0, _getColorValue.getColorValue)(props.color || (props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral6 : '#eeeeee'), props.theme);
|
|
17
13
|
var borderRadiusByVariant = {
|
|
18
14
|
circle: '50%',
|
|
19
15
|
text: '4px',
|
|
20
16
|
rectangle: '0'
|
|
21
17
|
};
|
|
22
|
-
var waveColor = (0, _invertColor.invertColor)(skeletonColor, true);
|
|
23
|
-
var waveColorOpacity = waveColor === '#FFFFFF' ? 0.1 : 0.04;
|
|
24
18
|
var animationsCss = {
|
|
25
|
-
wave: (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n transform-origin: 0px 55%;\n\n &::after {\n content: '';\n inset: 0px;\n position: absolute;\n animation: 1.6s linear 0.5s infinite normal none running move;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n ", ",\n transparent\n );\n }\n\n @keyframes move {\n 0% {\n transform: translateX(-100%);\n }\n 40% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n "])),
|
|
19
|
+
wave: (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n transform-origin: 0px 55%;\n\n &::after {\n content: '';\n inset: 0px;\n position: absolute;\n animation: 1.6s linear 0.5s infinite normal none running move;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n ", ",\n transparent\n );\n }\n\n @keyframes move {\n 0% {\n transform: translateX(-100%);\n }\n 40% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n "])), props.theme.colors.neutral.neutral1),
|
|
26
20
|
pulse: (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n animation: 1.6s linear 0.5s infinite normal none running pulse;\n\n @keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n }\n "])))
|
|
27
21
|
};
|
|
28
|
-
var unloadedCss = (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: relative;\n user-select: none;\n pointer-events: none;\n cursor: default;\n background: padding-box ", ";\n border-radius: ", ";\n height: ", ";\n color: transparent;\n\n ", ";\n\n * {\n visibility: hidden;\n color: transparent;\n }\n "])),
|
|
22
|
+
var unloadedCss = (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: relative;\n user-select: none;\n pointer-events: none;\n cursor: default;\n background: padding-box ", "70;\n border-radius: ", ";\n height: ", ";\n color: transparent;\n\n ", ";\n\n * {\n visibility: hidden;\n color: transparent;\n }\n "])), props.theme.colors.neutral.neutral1, borderRadiusByVariant[props.variant || 'text'], typeof props.height === 'number' ? props.height + 'px' : props.height || '', props.animation !== 'static' ? animationsCss[props.animation || 'wave'] : '');
|
|
29
23
|
var loadedCss = (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: block;\n background: transparent;\n\n transition: all 300ms ease;\n "])));
|
|
30
24
|
return (0, _react.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: ", ";\n\n ", "\n "])), props.fullWidth ? '100%' : typeof props.width === 'number' ? props.width + 'px' : props.width || '', props.isLoaded ? loadedCss : unloadedCss);
|
|
31
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderPointer.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/components/SliderPointer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SliderPointer.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/components/SliderPointer.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,aAAa,8BAA+B,mBAAmB,gBAsB3E,CAAC"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SliderPointer = void 0;
|
|
7
|
+
var _customColorMode = require("../../../utils/customColorMode");
|
|
7
8
|
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
8
9
|
var _styles = require("../styles");
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -30,7 +31,7 @@ var SliderPointer = function SliderPointer(_ref) {
|
|
|
30
31
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
31
32
|
name: "code",
|
|
32
33
|
size: "20px",
|
|
33
|
-
color:
|
|
34
|
+
color: (0, _customColorMode.customColorMode)('neutral.black', 'neutral.white')
|
|
34
35
|
})
|
|
35
36
|
})]
|
|
36
37
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,eAAO,MAAM,aAAa;;;;;;;;yGAiDzB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;0IAK9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAE3B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;yGAS/B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;gBACV,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;;;yGAgB9C,CAAC;AAEF,eAAO,MAAM,WAAW;;;kHAIvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;gBAEV,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,eAAO,MAAM,aAAa;;;;;;;;yGAiDzB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;0IAK9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAE3B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;yGAS/B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;gBACV,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;;;yGAgB9C,CAAC;AAEF,eAAO,MAAM,WAAW;;;kHAIvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;gBAEV,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;;;;yGAoF9C,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;gBAGnB,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;yGA0BhD,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;yGAO7B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;2GAgEvB,CAAC"}
|
|
@@ -42,11 +42,11 @@ exports.SliderInput = SliderInput;
|
|
|
42
42
|
var SliderThumb = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: absolute;\n ", "\n\n ", "\n\n background: ", ";\n pointer-events: ", ";\n\n cursor: pointer;\n"])), function (props) {
|
|
43
43
|
return props.direction === 'vertical' ? "\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n " : "\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ";
|
|
44
44
|
}, function (props) {
|
|
45
|
-
return props.thumbType !== 'pointer' ? "\n width: ".concat(props.size === 'sm' ? '20px' : '25px', ";\n height: ").concat(props.size === 'sm' ? '20px' : '25px', ";\n border-radius: 999999px;\n\n transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n\n &::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n height: 100%;\n border-radius: 999999px;\n box-shadow:
|
|
45
|
+
return props.thumbType !== 'pointer' ? "\n width: ".concat(props.size === 'sm' ? '20px' : '25px', ";\n height: ").concat(props.size === 'sm' ? '20px' : '25px', ";\n border-radius: 999999px;\n\n\n transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n\n &::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n height: 100%;\n border-radius: 999999px;\n box-shadow: ").concat(props.theme.shadow.level2, ";\n border: 2px solid ").concat(props.theme.colors.neutral.neutral2, ";\n }\n\n &:hover {\n box-shadow: 0 0 0 10px\n ").concat((0, _colorCheck.parseHexColorToRgba)((0, _colorCheck.stripThemeColors)(props.thumbColor || '', props.theme.colors) || props.theme.colors.primary.default, 0.15), ";\n }\n\n &:active,\n &:focus {\n box-shadow: 0 0 0 15px\n ").concat((0, _colorCheck.parseHexColorToRgba)((0, _colorCheck.stripThemeColors)(props.thumbColor || '', props.theme.colors) || props.theme.colors.primary.default, 0.15), ";\n }\n\n &:hover,\n &:focus,\n &:active {\n & span {\n transform: ").concat(props.direction === 'vertical' ? 'translate(100%, -50%)' : 'translate(-50%, -100%)', " scale(1);\n }\n }\n ") : "\n width: ".concat(props.direction === 'vertical' ? '100%' : '5px', ";\n height: ").concat(props.direction === 'vertical' ? '5px' : '100%', ";\n ");
|
|
46
46
|
}, function (props) {
|
|
47
47
|
if (props.disabled) return props.theme.colors.neutral.neutral6;
|
|
48
48
|
if (props.thumbType !== 'pointer') return props.theme.colors.neutral.white;
|
|
49
|
-
return props.theme.
|
|
49
|
+
return props.theme.colors.neutral.white;
|
|
50
50
|
}, function (props) {
|
|
51
51
|
return props.disabled ? 'none' : 'auto';
|
|
52
52
|
});
|
|
@@ -123,6 +123,174 @@ export declare const StyledSpinner: import("@emotion/styled").StyledComponent<{
|
|
|
123
123
|
gradient: string;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
+
lightColors: {
|
|
127
|
+
body: {
|
|
128
|
+
light: string;
|
|
129
|
+
dark: string;
|
|
130
|
+
};
|
|
131
|
+
primary: {
|
|
132
|
+
alert: string;
|
|
133
|
+
disabled: string;
|
|
134
|
+
default: string;
|
|
135
|
+
hover: string;
|
|
136
|
+
focus: string;
|
|
137
|
+
transparent: string;
|
|
138
|
+
};
|
|
139
|
+
secondary: {
|
|
140
|
+
disabled: string;
|
|
141
|
+
default: string;
|
|
142
|
+
hover: string;
|
|
143
|
+
focus: string;
|
|
144
|
+
};
|
|
145
|
+
tertiary: {
|
|
146
|
+
disabled: string;
|
|
147
|
+
default: string;
|
|
148
|
+
hover: string;
|
|
149
|
+
focus: string;
|
|
150
|
+
};
|
|
151
|
+
neutral: {
|
|
152
|
+
white: string;
|
|
153
|
+
neutral1: string;
|
|
154
|
+
neutral2: string;
|
|
155
|
+
neutral3: string;
|
|
156
|
+
neutral4: string;
|
|
157
|
+
neutral5: string;
|
|
158
|
+
neutral6: string;
|
|
159
|
+
black: string;
|
|
160
|
+
};
|
|
161
|
+
background: {
|
|
162
|
+
linear1: string;
|
|
163
|
+
linear2: string;
|
|
164
|
+
linear3: string;
|
|
165
|
+
light: string;
|
|
166
|
+
};
|
|
167
|
+
informative: {
|
|
168
|
+
default: string;
|
|
169
|
+
blurred: string;
|
|
170
|
+
dark: string;
|
|
171
|
+
gradient: string;
|
|
172
|
+
};
|
|
173
|
+
success: {
|
|
174
|
+
default: string;
|
|
175
|
+
blurred: string;
|
|
176
|
+
dark: string;
|
|
177
|
+
gradient: string;
|
|
178
|
+
};
|
|
179
|
+
success_secondary: {
|
|
180
|
+
default: string;
|
|
181
|
+
blurred: string;
|
|
182
|
+
dark: string;
|
|
183
|
+
gradient: string;
|
|
184
|
+
};
|
|
185
|
+
warning: {
|
|
186
|
+
default: string;
|
|
187
|
+
blurred: string;
|
|
188
|
+
dark: string;
|
|
189
|
+
gradient: string;
|
|
190
|
+
};
|
|
191
|
+
warning_secondary: {
|
|
192
|
+
default: string;
|
|
193
|
+
blurred: string;
|
|
194
|
+
dark: string;
|
|
195
|
+
gradient: string;
|
|
196
|
+
};
|
|
197
|
+
error: {
|
|
198
|
+
default: string;
|
|
199
|
+
blurred: string;
|
|
200
|
+
dark: string;
|
|
201
|
+
gradient: string;
|
|
202
|
+
};
|
|
203
|
+
critical: {
|
|
204
|
+
default: string;
|
|
205
|
+
blurred: string;
|
|
206
|
+
dark: string;
|
|
207
|
+
gradient: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
darkColors: {
|
|
211
|
+
body: {
|
|
212
|
+
light: string;
|
|
213
|
+
dark: string;
|
|
214
|
+
};
|
|
215
|
+
primary: {
|
|
216
|
+
alert: string;
|
|
217
|
+
disabled: string;
|
|
218
|
+
default: string;
|
|
219
|
+
hover: string;
|
|
220
|
+
focus: string;
|
|
221
|
+
transparent: string;
|
|
222
|
+
};
|
|
223
|
+
secondary: {
|
|
224
|
+
disabled: string;
|
|
225
|
+
default: string;
|
|
226
|
+
hover: string;
|
|
227
|
+
focus: string;
|
|
228
|
+
};
|
|
229
|
+
tertiary: {
|
|
230
|
+
disabled: string;
|
|
231
|
+
default: string;
|
|
232
|
+
hover: string;
|
|
233
|
+
focus: string;
|
|
234
|
+
};
|
|
235
|
+
neutral: {
|
|
236
|
+
white: string;
|
|
237
|
+
neutral1: string;
|
|
238
|
+
neutral2: string;
|
|
239
|
+
neutral3: string;
|
|
240
|
+
neutral4: string;
|
|
241
|
+
neutral5: string;
|
|
242
|
+
neutral6: string;
|
|
243
|
+
black: string;
|
|
244
|
+
};
|
|
245
|
+
background: {
|
|
246
|
+
linear1: string;
|
|
247
|
+
linear2: string;
|
|
248
|
+
linear3: string;
|
|
249
|
+
light: string;
|
|
250
|
+
};
|
|
251
|
+
informative: {
|
|
252
|
+
default: string;
|
|
253
|
+
blurred: string;
|
|
254
|
+
dark: string;
|
|
255
|
+
gradient: string;
|
|
256
|
+
};
|
|
257
|
+
success: {
|
|
258
|
+
default: string;
|
|
259
|
+
blurred: string;
|
|
260
|
+
dark: string;
|
|
261
|
+
gradient: string;
|
|
262
|
+
};
|
|
263
|
+
success_secondary: {
|
|
264
|
+
default: string;
|
|
265
|
+
blurred: string;
|
|
266
|
+
dark: string;
|
|
267
|
+
gradient: string;
|
|
268
|
+
};
|
|
269
|
+
warning: {
|
|
270
|
+
default: string;
|
|
271
|
+
blurred: string;
|
|
272
|
+
dark: string;
|
|
273
|
+
gradient: string;
|
|
274
|
+
};
|
|
275
|
+
warning_secondary: {
|
|
276
|
+
default: string;
|
|
277
|
+
blurred: string;
|
|
278
|
+
dark: string;
|
|
279
|
+
gradient: string;
|
|
280
|
+
};
|
|
281
|
+
error: {
|
|
282
|
+
default: string;
|
|
283
|
+
blurred: string;
|
|
284
|
+
dark: string;
|
|
285
|
+
gradient: string;
|
|
286
|
+
};
|
|
287
|
+
critical: {
|
|
288
|
+
default: string;
|
|
289
|
+
blurred: string;
|
|
290
|
+
dark: string;
|
|
291
|
+
gradient: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
126
294
|
space: {
|
|
127
295
|
px: string;
|
|
128
296
|
0.5: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yGAoCzB,CAAC"}
|
|
@@ -17,7 +17,7 @@ var StyledSpinner = _styled.default.div(function (_ref) {
|
|
|
17
17
|
var spinnerColor = (0, _getColorValue.getColorValue)(color || 'primary.default', theme);
|
|
18
18
|
var spinnerEmptyColor = (0, _getColorValue.getColorValue)(emptyColor || 'transparent', theme, 'transparent');
|
|
19
19
|
var modifiedSize = size === 'sm' ? '16px' : size === 'md' ? '24px' : size === 'lg' ? '32px' : size === 'xl' ? '48px' : '24px';
|
|
20
|
-
var borderColor = spinnerEmptyColor === 'currentColor' ? 'transparent' : theme.
|
|
20
|
+
var borderColor = spinnerEmptyColor === 'currentColor' ? 'transparent' : theme.colors.neutral.neutral1;
|
|
21
21
|
return "\n display: inline-block;\n width: ".concat(modifiedSize, ";\n height: ").concat(modifiedSize, ";\n border: ").concat(thickness || '4px', " solid ").concat(spinnerColor, ";\n border-radius: 9999999px;\n border-left-color: ").concat(borderColor, ";\n border-bottom-color: ").concat(borderColor, ";\n animation: spin ").concat(speed || '0.45s', " linear infinite;\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n ");
|
|
22
22
|
});
|
|
23
23
|
exports.StyledSpinner = StyledSpinner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,cAAc;;;;;;;yGAiB1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;iBACT,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO;;;yGA+D5D,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAK1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;eAClB,OAAO;yGAkBnB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;yGAQjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;yGAKtC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,cAAc;;;;;;;yGAiB1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;iBACT,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO;;;yGA+D5D,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAK1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;eAClB,OAAO;yGAkBnB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;yGAQjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;yGAKtC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;iHAiCzB,CAAC"}
|
|
@@ -36,7 +36,7 @@ var StepsCircle = _styled.default.div(_templateObject2 || (_templateObject2 = _t
|
|
|
36
36
|
activeColor = _ref7.activeColor,
|
|
37
37
|
isFinished = _ref7.isFinished,
|
|
38
38
|
isCurrent = _ref7.isCurrent;
|
|
39
|
-
return theme.colors[activeColor] && "\n background-color: ".concat(isFinished ? theme.colors[activeColor].default : isCurrent ? activeColor === 'error' ? theme.colors.error.blurred : theme.colors[activeColor].disabled : 'transparent', ";\n color: ").concat(isFinished ? theme.colors.
|
|
39
|
+
return theme.colors[activeColor] && "\n background-color: ".concat(isFinished ? theme.colors[activeColor].default : isCurrent ? activeColor === 'error' ? theme.colors.error.blurred : theme.colors[activeColor].disabled : 'transparent', ";\n color: ").concat(isFinished ? theme.colors.neutral.white : isCurrent ? theme.colors.neutral.black : theme.colors.neutral.neutral3, ";\n\n ").concat(!isCurrent && !isFinished && "\n border: solid 2px ".concat(theme.colors.neutral.neutral1, ";\n "), "\n ");
|
|
40
40
|
}, function (_ref8) {
|
|
41
41
|
var theme = _ref8.theme;
|
|
42
42
|
return theme.colors.body.light;
|
|
@@ -86,15 +86,9 @@ var StepsItemText = _styled.default.h3(_templateObject9 || (_templateObject9 = _
|
|
|
86
86
|
var isDisabled = _ref18.isDisabled,
|
|
87
87
|
theme = _ref18.theme;
|
|
88
88
|
if (isDisabled) {
|
|
89
|
-
return "\n color: ".concat(
|
|
90
|
-
light: theme.colors.tertiary.hover,
|
|
91
|
-
dark: theme.colors.neutral.neutral4
|
|
92
|
-
}[theme.colorMode], ";\n ");
|
|
89
|
+
return "\n color: ".concat(theme.colors.tertiary.hover, ";\n ");
|
|
93
90
|
}
|
|
94
|
-
return "\n color: ".concat(
|
|
95
|
-
light: theme.colors.neutral.black,
|
|
96
|
-
dark: theme.colors.neutral.white
|
|
97
|
-
}[theme.colorMode], ";\n ");
|
|
91
|
+
return "\n color: ".concat(theme.colors.neutral.black, ";\n ");
|
|
98
92
|
}, function (_ref19) {
|
|
99
93
|
var isReducedSteps = _ref19.isReducedSteps;
|
|
100
94
|
return isReducedSteps ? "width: 100%;" : "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,aAAa;;;uHAOzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;uHAqBlB,CAAC;AAEF,eAAO,MAAM,WAAW;;;uHAgBvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;yHAGpB,CAAC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SwitchWrapper = exports.SwitchToken = exports.Switch = exports.HelpText = void 0;
|
|
7
7
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _customColorMode = require("../../utils/customColorMode");
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -49,9 +49,7 @@ function ActiveEffects(_ref8) {
|
|
|
49
49
|
type = _ref8.type;
|
|
50
50
|
if (!theme) return '';
|
|
51
51
|
var idleColor = type ? theme.colors[type].default : theme.colors.primary.default;
|
|
52
|
-
|
|
53
|
-
var focusColor = type ? (0, _colorFunctions.focusFunction)(theme.colors[type].default) : theme.colors.primary.focus;
|
|
54
|
-
return (0, _react.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n div.switch-token {\n transform: translateX(16px);\n background-color: ", ";\n }\n svg {\n color: ", ";\n }\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n\n svg {\n color: ", ";\n }\n }\n\n :focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n\n svg {\n color: ", ";\n }\n }\n "])), idleColor, idleColor, theme.colors.body.light, idleColor, hoverColor, hoverColor, hoverColor, focusColor, focusColor, type ? theme.colors[type].blurred : theme.colors.primary.disabled, focusColor);
|
|
52
|
+
return (0, _react.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n div.switch-token {\n transform: translateX(16px);\n background-color: ", ";\n }\n svg {\n color: ", ";\n }\n\n :hover {\n filter: brightness(0.9);\n }\n\n :focus {\n border-color: ", ";\n filter: brightness(0.9);\n box-shadow: 0 0 0 2px ", ";\n }\n "])), idleColor, idleColor, (0, _customColorMode.customColorMode)(theme.lightColors.neutral.white, theme.lightColors.neutral.white), idleColor, theme.colors.neutral.white, type ? theme.colors[type].blurred : theme.colors.primary.disabled);
|
|
55
53
|
}
|
|
56
54
|
function disabledStyle(_ref9) {
|
|
57
55
|
var theme = _ref9.theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAkD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAkD,MAAM,OAAO,CAAC;AAoBjG,OAAO,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAMtD,wBAAgB,KAAK,CAAC,EACpB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,IAAI,EACJ,SAAiB,EACjB,YAAgB,EAChB,cAAuB,EACvB,GAAG,IAAI,EACR,EAAE,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,eAoMjD"}
|
|
@@ -13,12 +13,10 @@ var _MenuItem = require("./components/MenuItem");
|
|
|
13
13
|
var _FocusLock = _interopRequireDefault(require("../../shared/components/FocusLock"));
|
|
14
14
|
var _TableSkeleton = require("./components/TableSkeleton");
|
|
15
15
|
var _styles = require("./styles");
|
|
16
|
-
var _useColorMode2 = require("../../shared/theme/hooks/useColorMode");
|
|
17
16
|
var _GenerateKey = require("../../utils/GenerateKey");
|
|
18
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
18
|
var _excluded = ["selectable", "primaryActions", "secondaryActions", "header", "rows", "isLoading", "skeletonRows", "skeletonHeight"]; // Components
|
|
20
19
|
// Styles
|
|
21
|
-
// Hooks
|
|
22
20
|
// Types
|
|
23
21
|
// Utils
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -71,8 +69,6 @@ function Table(_ref) {
|
|
|
71
69
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
72
70
|
openSelectDropDownMenu = _useState8[0],
|
|
73
71
|
setOpenSelectDropDownMenu = _useState8[1];
|
|
74
|
-
var _useColorMode = (0, _useColorMode2.useColorMode)(),
|
|
75
|
-
colorMode = _useColorMode.colorMode;
|
|
76
72
|
var rowsWithKey = (0, _react.useMemo)(function () {
|
|
77
73
|
return rows.map(function (row) {
|
|
78
74
|
return _objectSpread({
|
|
@@ -236,7 +232,7 @@ function Table(_ref) {
|
|
|
236
232
|
},
|
|
237
233
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
238
234
|
name: "more-vertical",
|
|
239
|
-
color:
|
|
235
|
+
color: 'neutral.black'
|
|
240
236
|
})
|
|
241
237
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuItem.MenuItem, {
|
|
242
238
|
onClickOutside: function onClickOutside() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Table/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,WAAW;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Table/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,WAAW;;;uIAgFtB,CAAC;AAEH,eAAO,MAAM,cAAc;;;yGAG1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;0IAmDxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;yGAE3B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;0IAiBhC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;yGAiB7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;8HAmB3B,CAAC"}
|
|
@@ -11,56 +11,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
var StyledTable = _styled.default.table(function (props) {
|
|
13
13
|
var theme = props.theme;
|
|
14
|
-
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-spacing: 0px;\n\n & > thead {\n & > tr {\n height: 64px;\n\n & > th {\n background: ", ";\n border-top: 1px solid
|
|
15
|
-
dark: "hsla(156, 13%, 92%, 0.05)",
|
|
16
|
-
light: "hsla(156, 13%, 92%, 0.5)"
|
|
17
|
-
}[theme.colorMode], {
|
|
18
|
-
dark: theme.colors.neutral.neutral5,
|
|
19
|
-
light: theme.colors.neutral.neutral2
|
|
20
|
-
}[theme.colorMode], {
|
|
21
|
-
dark: theme.colors.neutral.neutral5,
|
|
22
|
-
light: theme.colors.neutral.neutral2
|
|
23
|
-
}[theme.colorMode], {
|
|
24
|
-
dark: theme.colors.neutral.neutral5,
|
|
25
|
-
light: theme.colors.neutral.neutral2
|
|
26
|
-
}[theme.colorMode], {
|
|
27
|
-
dark: theme.colors.neutral.neutral5,
|
|
28
|
-
light: theme.colors.neutral.neutral2
|
|
29
|
-
}[theme.colorMode], {
|
|
30
|
-
dark: "hsla(150, 16%, 97%, 0.02)",
|
|
31
|
-
light: "hsla(150, 16%, 97%, 0.75)"
|
|
32
|
-
}[theme.colorMode], {
|
|
33
|
-
dark: 'hsla(161, 12%, 31%, 0.5)',
|
|
34
|
-
light: theme.colors.neutral.neutral1
|
|
35
|
-
}[theme.colorMode], {
|
|
36
|
-
dark: theme.colors.neutral.neutral6,
|
|
37
|
-
light: theme.colors.neutral.neutral1
|
|
38
|
-
}[theme.colorMode], theme.colors.primary.focus, {
|
|
39
|
-
dark: theme.colors.neutral.neutral6,
|
|
40
|
-
light: theme.colors.neutral.neutral1
|
|
41
|
-
}[theme.colorMode], theme.colors.neutral.neutral5);
|
|
14
|
+
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-spacing: 0px;\n\n & > thead {\n & > tr {\n height: 64px;\n\n & > th {\n background: ", "90;\n border-top: 1px solid ", ";\n border-bottom: 1px solid ", ";\n padding-left: 16px;\n padding-right: 16px;\n text-align: left;\n\n &:first-of-type {\n border-left: 1px solid ", ";\n border-radius: 8px 0px 0px 0px;\n }\n\n &:last-child {\n border-right: 1px solid ", ";\n border-radius: 0px 8px 0px 0px;\n }\n }\n }\n }\n\n & > tbody {\n tr {\n height: 64px;\n &:nth-of-type(even) {\n background: ", "40;\n }\n &:not(:last-child) {\n & > td {\n border-bottom: 1px solid ", ";\n }\n }\n\n &:hover {\n & > td {\n background: ", ";\n\n &:first-of-type {\n border-radius: 4px 0px 0px 4px;\n }\n\n &:last-child {\n border-radius: 0px 4px 4px 0px;\n }\n }\n }\n\n &:focus {\n outline: 2px solid ", ";\n border-radius: 4px;\n }\n\n &[data-selected='true'] {\n & > td {\n background: ", ";\n }\n }\n\n & > td {\n padding-left: 16px;\n padding-right: 16px;\n\n text-align: left;\n\n color: ", ";\n }\n }\n }\n "])), theme.colors.neutral.neutral1, theme.colors.neutral.neutral2, theme.colors.neutral.neutral2, theme.colors.neutral.neutral2, theme.colors.neutral.neutral2, theme.colors.neutral.neutral1, theme.colors.neutral.neutral1, theme.colors.neutral.neutral1, theme.colors.primary.focus, theme.colors.neutral.neutral1, theme.colors.neutral.neutral5);
|
|
42
15
|
});
|
|
43
16
|
exports.StyledTable = StyledTable;
|
|
44
17
|
var SelectedHeader = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
45
18
|
exports.SelectedHeader = SelectedHeader;
|
|
46
19
|
var ActionsButton = _styled.default.button(function (props) {
|
|
47
20
|
var theme = props.theme;
|
|
48
|
-
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n appearance: none;\n font-family: inherit;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n margin: 0px -2px 0px 0px;\n outline: none;\n border: 2px solid
|
|
49
|
-
dark: theme.colors.neutral.neutral4,
|
|
50
|
-
light: theme.colors.neutral.neutral2
|
|
51
|
-
}[theme.colorMode], theme.colors.neutral.neutral5, {
|
|
52
|
-
dark: theme.colors.neutral.black,
|
|
53
|
-
light: theme.colors.neutral.white
|
|
54
|
-
}[theme.colorMode], theme.transition.speed, theme.colors.neutral.black, {
|
|
55
|
-
dark: theme.colors.neutral.neutral4,
|
|
56
|
-
light: theme.colors.neutral.neutral3
|
|
57
|
-
}[theme.colorMode], {
|
|
58
|
-
dark: theme.colors.neutral.neutral5,
|
|
59
|
-
light: theme.colors.neutral.neutral1
|
|
60
|
-
}[theme.colorMode], {
|
|
61
|
-
dark: theme.colors.neutral.neutral4,
|
|
62
|
-
light: theme.colors.neutral.neutral2
|
|
63
|
-
}[theme.colorMode]);
|
|
21
|
+
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n appearance: none;\n font-family: inherit;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n margin: 0px -2px 0px 0px;\n outline: none;\n border: 2px solid ", ";\n padding: 0px 24px;\n height: 44px;\n\n white-space: nowrap;\n\n color: ", ";\n background: ", ";\n\n transition: background-color linear ", ";\n\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n &:first-of-type {\n color: ", ";\n border-radius: 8px 0px 0px 8px;\n }\n\n &:last-of-type {\n border-radius: 0px 8px 8px 0px;\n }\n\n &:only-child {\n border-radius: 8px;\n }\n\n &:hover,\n &:focus {\n z-index: 1;\n\n border-color: ", ";\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])), theme.colors.neutral.neutral2, theme.colors.neutral.neutral5, theme.colors.neutral.white, theme.transition.speed, theme.colors.neutral.black, theme.colors.neutral.neutral3, theme.colors.neutral.neutral1, theme.colors.neutral.neutral2);
|
|
64
22
|
});
|
|
65
23
|
exports.ActionsButton = ActionsButton;
|
|
66
24
|
var MenuItemWrapper = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n"])));
|
|
@@ -86,17 +44,11 @@ var MenuItemContainer = _styled.default.div(_templateObject6 || (_templateObject
|
|
|
86
44
|
exports.MenuItemContainer = MenuItemContainer;
|
|
87
45
|
var MenuItemContent = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n border-radius: 8px;\n padding: 10px 35px;\n cursor: pointer;\n user-select: none;\n font-size: 1rem;\n white-space: nowrap;\n\n color: ", ";\n\n transition: background linear ", ";\n\n &:hover {\n background: ", ";\n }\n"])), function (_ref2) {
|
|
88
46
|
var theme = _ref2.theme;
|
|
89
|
-
return
|
|
90
|
-
dark: theme.colors.neutral.white,
|
|
91
|
-
light: theme.colors.neutral.black
|
|
92
|
-
}[theme.colorMode];
|
|
47
|
+
return theme.colors.neutral.black;
|
|
93
48
|
}, function (props) {
|
|
94
49
|
return props.theme.transition.speed;
|
|
95
50
|
}, function (_ref3) {
|
|
96
51
|
var theme = _ref3.theme;
|
|
97
|
-
return
|
|
98
|
-
dark: theme.colors.neutral.neutral4,
|
|
99
|
-
light: theme.colors.neutral.neutral1
|
|
100
|
-
}[theme.colorMode];
|
|
52
|
+
return theme.colors.neutral.neutral1;
|
|
101
53
|
});
|
|
102
54
|
exports.MenuItemContent = MenuItemContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5F,eAAO,MAAM,aAAa;;;;;yGAiBzB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;qHAqErB,CAAC;AAEF,eAAO,MAAM,aAAa;;;2GAGzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;yGAI3B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;6HAgC9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;YACpB,OAAO;yGAGhB,CAAC;AAEF,eAAO,MAAM,YAAY;;;iNAqBvB,CAAC"}
|