@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.
Files changed (164) hide show
  1. package/dist/components/Alert/styles.d.ts.map +1 -1
  2. package/dist/components/Alert/styles.js +1 -1
  3. package/dist/components/Avatar/styles.d.ts.map +1 -1
  4. package/dist/components/Avatar/styles.js +3 -3
  5. package/dist/components/Button/index.d.ts.map +1 -1
  6. package/dist/components/Button/index.js +1 -1
  7. package/dist/components/Button/styles.d.ts.map +1 -1
  8. package/dist/components/Button/styles.js +3 -5
  9. package/dist/components/CheckboxInput/styles.d.ts +7 -8
  10. package/dist/components/CheckboxInput/styles.d.ts.map +1 -1
  11. package/dist/components/CheckboxInput/styles.js +13 -35
  12. package/dist/components/CollapseCard/styles.d.ts.map +1 -1
  13. package/dist/components/CollapseCard/styles.js +4 -1
  14. package/dist/components/ColorPicker/styles.d.ts.map +1 -1
  15. package/dist/components/ColorPicker/styles.js +5 -5
  16. package/dist/components/ComposeIcon/styles.d.ts.map +1 -1
  17. package/dist/components/ComposeIcon/styles.js +2 -2
  18. package/dist/components/DatePicker/styles.d.ts.map +1 -1
  19. package/dist/components/DatePicker/styles.js +4 -5
  20. package/dist/components/Dialog/index.d.ts.map +1 -1
  21. package/dist/components/Dialog/index.js +7 -8
  22. package/dist/components/Dialog/styles.d.ts +0 -2
  23. package/dist/components/Dialog/styles.d.ts.map +1 -1
  24. package/dist/components/Dialog/styles.js +4 -6
  25. package/dist/components/Dropzone/styles.js +1 -1
  26. package/dist/components/EmojiPicker/EmotePickerData/index.js +1 -1
  27. package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts.map +1 -1
  28. package/dist/components/EmojiPicker/EmotePickerData/styles.js +20 -14
  29. package/dist/components/EmojiPicker/styles.d.ts.map +1 -1
  30. package/dist/components/EmojiPicker/styles.js +3 -6
  31. package/dist/components/Flex/styles.d.ts +168 -0
  32. package/dist/components/Flex/styles.d.ts.map +1 -1
  33. package/dist/components/Grid/styles.d.ts +168 -0
  34. package/dist/components/Grid/styles.d.ts.map +1 -1
  35. package/dist/components/Icon/data/illustrations.js +43 -43
  36. package/dist/components/Illustration/styles.d.ts.map +1 -1
  37. package/dist/components/Illustration/styles.js +4 -3
  38. package/dist/components/ImageItem/styles.d.ts.map +1 -1
  39. package/dist/components/ImageItem/styles.js +3 -4
  40. package/dist/components/Input/index.js +3 -1
  41. package/dist/components/Input/styles.d.ts +0 -4
  42. package/dist/components/Input/styles.d.ts.map +1 -1
  43. package/dist/components/Input/styles.js +44 -82
  44. package/dist/components/List/styles.d.ts.map +1 -1
  45. package/dist/components/List/styles.js +3 -9
  46. package/dist/components/Modal/styles.d.ts.map +1 -1
  47. package/dist/components/Modal/styles.js +1 -1
  48. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
  49. package/dist/components/MultipleSelect/components/OptionsArea/styles.js +17 -7
  50. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
  51. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -4
  52. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
  53. package/dist/components/MultipleSelect/components/SelectArea/styles.js +3 -3
  54. package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -1
  55. package/dist/components/NewSelect/styles.d.ts.map +1 -1
  56. package/dist/components/NewSelect/styles.js +1 -4
  57. package/dist/components/Pagination/index.d.ts.map +1 -1
  58. package/dist/components/Pagination/index.js +2 -9
  59. package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
  60. package/dist/components/RadioInput/components/ChoiceList/index.js +3 -2
  61. package/dist/components/RadioInput/styles.d.ts +4 -1
  62. package/dist/components/RadioInput/styles.d.ts.map +1 -1
  63. package/dist/components/RadioInput/styles.js +16 -5
  64. package/dist/components/RadioInput/types.d.ts +2 -1
  65. package/dist/components/RadioInput/types.d.ts.map +1 -1
  66. package/dist/components/Select/components/OptionsSelect/styles.js +1 -1
  67. package/dist/components/Select/styles.d.ts.map +1 -1
  68. package/dist/components/Select/styles.js +2 -2
  69. package/dist/components/Skeleton/styles.d.ts.map +1 -1
  70. package/dist/components/Skeleton/styles.js +2 -8
  71. package/dist/components/Slider/components/SliderPointer.d.ts.map +1 -1
  72. package/dist/components/Slider/components/SliderPointer.js +2 -1
  73. package/dist/components/Slider/styles.d.ts.map +1 -1
  74. package/dist/components/Slider/styles.js +2 -2
  75. package/dist/components/Spinner/styles.d.ts +168 -0
  76. package/dist/components/Spinner/styles.d.ts.map +1 -1
  77. package/dist/components/Spinner/styles.js +1 -1
  78. package/dist/components/Steps/styles.d.ts.map +1 -1
  79. package/dist/components/Steps/styles.js +3 -9
  80. package/dist/components/Switch/styles.d.ts.map +1 -1
  81. package/dist/components/Switch/styles.js +2 -4
  82. package/dist/components/Table/index.d.ts.map +1 -1
  83. package/dist/components/Table/index.js +1 -5
  84. package/dist/components/Table/styles.d.ts.map +1 -1
  85. package/dist/components/Table/styles.js +4 -52
  86. package/dist/components/Tabs/styles.d.ts.map +1 -1
  87. package/dist/components/Tabs/styles.js +2 -1
  88. package/dist/components/Tag/styles.d.ts +504 -0
  89. package/dist/components/Tag/styles.d.ts.map +1 -1
  90. package/dist/components/Tag/styles.js +3 -3
  91. package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
  92. package/dist/components/TextAreaInput/styles.js +3 -6
  93. package/dist/components/Thumbnail/index.d.ts.map +1 -1
  94. package/dist/components/Thumbnail/index.js +7 -56
  95. package/dist/components/Thumbnail/styles.d.ts.map +1 -1
  96. package/dist/components/Thumbnail/styles.js +17 -27
  97. package/dist/components/Thumbnail/types.d.ts +1 -9
  98. package/dist/components/Thumbnail/types.d.ts.map +1 -1
  99. package/dist/components/TimeInput/styles.d.ts.map +1 -1
  100. package/dist/components/TimeInput/styles.js +7 -1
  101. package/dist/components/Timeline/components/Timeline.d.ts.map +1 -1
  102. package/dist/components/Timeline/components/Timeline.js +3 -16
  103. package/dist/components/Timeline/styles.d.ts.map +1 -1
  104. package/dist/components/Timeline/styles.js +5 -5
  105. package/dist/components/Timeline/timeline.test.js +0 -2
  106. package/dist/components/Timeline/types.d.ts +0 -1
  107. package/dist/components/Timeline/types.d.ts.map +1 -1
  108. package/dist/components/Tooltip/components/TooltipLabel.d.ts.map +1 -1
  109. package/dist/components/Tooltip/components/TooltipLabel.js +5 -5
  110. package/dist/components/Tooltip/index.d.ts.map +1 -1
  111. package/dist/components/Tooltip/index.js +5 -1
  112. package/dist/components/Tooltip/styles.d.ts.map +1 -1
  113. package/dist/components/Tooltip/styles.js +2 -4
  114. package/dist/components/Typography/index.d.ts.map +1 -1
  115. package/dist/components/Typography/index.js +4 -5
  116. package/dist/index.d.ts +1 -0
  117. package/dist/index.d.ts.map +1 -1
  118. package/dist/index.js +9 -1
  119. package/dist/shared/hooks/useSystemTheme.d.ts +2 -0
  120. package/dist/shared/hooks/useSystemTheme.d.ts.map +1 -0
  121. package/dist/shared/hooks/useSystemTheme.js +33 -0
  122. package/dist/shared/theme/contexts/ThemeContext.d.ts +1 -1
  123. package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
  124. package/dist/shared/theme/contexts/ThemeContext.js +36 -16
  125. package/dist/shared/theme/hooks/useColorMode.d.ts +1 -1
  126. package/dist/shared/theme/hooks/useColorMode.js +1 -1
  127. package/dist/shared/theme/hooks/useTheme.d.ts +168 -0
  128. package/dist/shared/theme/hooks/useTheme.d.ts.map +1 -1
  129. package/dist/shared/theme/objects/breakpoints.d.ts +9 -0
  130. package/dist/shared/theme/objects/breakpoints.d.ts.map +1 -0
  131. package/dist/shared/theme/objects/breakpoints.js +15 -0
  132. package/dist/shared/theme/objects/colors.d.ts +171 -0
  133. package/dist/shared/theme/objects/colors.d.ts.map +1 -0
  134. package/dist/shared/theme/objects/colors.js +177 -0
  135. package/dist/shared/theme/objects/shadows.d.ts +13 -0
  136. package/dist/shared/theme/objects/shadows.d.ts.map +1 -0
  137. package/dist/shared/theme/objects/shadows.js +19 -0
  138. package/dist/shared/theme/objects/sizes.d.ts +23 -0
  139. package/dist/shared/theme/objects/sizes.d.ts.map +1 -0
  140. package/dist/shared/theme/objects/sizes.js +33 -0
  141. package/dist/shared/theme/objects/spaces.d.ts +131 -0
  142. package/dist/shared/theme/objects/spaces.d.ts.map +1 -0
  143. package/dist/shared/theme/objects/spaces.js +75 -0
  144. package/dist/shared/theme/objects/transitions.d.ts +4 -0
  145. package/dist/shared/theme/objects/transitions.d.ts.map +1 -0
  146. package/dist/shared/theme/objects/transitions.js +10 -0
  147. package/dist/shared/theme/objects/typography.d.ts +14 -0
  148. package/dist/shared/theme/objects/typography.d.ts.map +1 -0
  149. package/dist/shared/theme/objects/typography.js +20 -0
  150. package/dist/shared/theme/objects/z-indexes.d.ts +14 -0
  151. package/dist/shared/theme/objects/z-indexes.d.ts.map +1 -0
  152. package/dist/shared/theme/objects/z-indexes.js +20 -0
  153. package/dist/shared/theme/theme.d.ts +168 -0
  154. package/dist/shared/theme/theme.d.ts.map +1 -1
  155. package/dist/shared/theme/theme.js +19 -225
  156. package/dist/shared/theme/theme.types.d.ts +9 -1
  157. package/dist/shared/theme/theme.types.d.ts.map +1 -1
  158. package/dist/utils/customColorMode.d.ts +2 -0
  159. package/dist/utils/customColorMode.d.ts.map +1 -0
  160. package/dist/utils/customColorMode.js +11 -0
  161. package/package.json +9 -3
  162. package/dist/components/Steps/components/StepIconMobile/index.d.ts +0 -4
  163. package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +0 -1
  164. package/dist/components/Steps/components/StepIconMobile/index.js +0 -126
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Illustration/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,qBAAqB;;;yGAMjC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;sIAmEjC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Illustration/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,qBAAqB;;;yGAMjC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;sIAoEjC,CAAC"}
@@ -14,10 +14,11 @@ exports.IllustrationContainer = IllustrationContainer;
14
14
  var StatusBubbleContainer = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n position: absolute;\n align-items: center;\n justify-content: center;\n\n background: ", ";\n\n padding: 4px;\n\n border-radius: 50%;\n border: ", ";\n box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 8px;\n\n ", "\n"])), function (_ref) {
15
15
  var bubbleColor = _ref.bubbleColor,
16
16
  theme = _ref.theme;
17
- return bubbleColor ? (0, _getColorValue.getColorValue)(bubbleColor, theme) : 'white';
17
+ return bubbleColor ? (0, _getColorValue.getColorValue)(bubbleColor, theme) : theme.colors.neutral.white;
18
18
  }, function (_ref2) {
19
- var size = _ref2.size;
20
- return "".concat(0.03 * size, "px solid white;");
19
+ var size = _ref2.size,
20
+ theme = _ref2.theme;
21
+ return "".concat(0.03 * size, "px solid ").concat(theme.colors.neutral.white);
21
22
  }, function (_ref3) {
22
23
  var iconPosition = _ref3.bubblePosition,
23
24
  _ref3$size = _ref3.size,
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/ImageItem/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,eAAO,MAAM,gBAAgB;;;uHAO5B,CAAC;AAEF,eAAO,MAAM,YAAY;;;uHAaxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;uHAK9B,CAAC;AAEF,eAAO,MAAM,KAAK;;;uHAIjB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;uHAA4B,CAAC;AAElD,eAAO,MAAM,WAAW;;;uHAA4B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/ImageItem/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,eAAO,MAAM,gBAAgB;;;uHAO5B,CAAC;AAEF,eAAO,MAAM,YAAY;;;uHAaxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;uHAK9B,CAAC;AAEF,eAAO,MAAM,KAAK;;;uHAGjB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;uHAA4B,CAAC;AAElD,eAAO,MAAM,WAAW;;;uHAA4B,CAAC"}
@@ -33,7 +33,7 @@ var DescriptionWrapper = _styled.default.div(_templateObject3 || (_templateObjec
33
33
  exports.DescriptionWrapper = DescriptionWrapper;
34
34
  var Title = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: ", ";\n"])), function (_ref6) {
35
35
  var theme = _ref6.theme;
36
- return theme.colorMode === 'light' ? theme.colors.neutral.black : theme.colors.neutral.white;
36
+ return theme.colors.neutral.black;
37
37
  }, function (_ref7) {
38
38
  var theme = _ref7.theme;
39
39
  return theme.fontWeight['500'];
@@ -51,12 +51,11 @@ function effectsControl(_ref8) {
51
51
  var neutral5 = theme.colors.neutral.neutral5;
52
52
  var neutral3 = theme.colors.neutral.neutral3;
53
53
  var neutral2 = theme.colors.neutral.neutral2;
54
- var neutral1 = theme.colors.neutral.neutral1;
55
54
  var hover = color || theme.colors.primary.hover;
56
55
  var focus = color ? (0, _brightnessColorChange.brightnessColorChange)(color, -0.2) : theme.colors.primary.focus;
57
56
  if (disabled) {
58
- return (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n #ImageItem-Title {\n color: ", ";\n }\n #ImageItem-Subtitle {\n color: ", ";\n }\n\n #ImageItem-Description {\n color: ", ";\n }\n\n #ImageItem-ImageWrapper {\n filter: grayscale(80%);\n }\n "])), theme.colorMode === 'light' ? neutral3 : neutral2, theme.colorMode === 'light' ? neutral2 : neutral1, neutral2);
57
+ return (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n #ImageItem-Title {\n color: ", ";\n }\n #ImageItem-Subtitle {\n color: ", ";\n }\n\n #ImageItem-Description {\n color: ", ";\n }\n\n #ImageItem-ImageWrapper {\n filter: grayscale(80%);\n }\n "])), neutral3, neutral2, neutral2);
59
58
  } else {
60
- return (0, _react.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n &:hover {\n #ImageItem-Title {\n color: ", ";\n }\n }\n\n &:focus {\n #ImageItem-Title {\n color: ", ";\n }\n #ImageItem-ImageWrapper {\n border: 1px solid;\n border-color: ", ";\n border-radius: ", ";\n }\n }\n\n #ImageItem-Subtitle {\n color: ", ";\n }\n\n #ImageItem-Description {\n color: ", ";\n }\n "])), hover, focus, focus, theme.borderRadius.default, theme.colorMode === 'light' ? neutral5 : theme.colors.neutral.neutral1, neutral5);
59
+ return (0, _react.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n &:hover {\n #ImageItem-Title {\n color: ", ";\n }\n }\n\n &:focus {\n #ImageItem-Title {\n color: ", ";\n }\n #ImageItem-ImageWrapper {\n border: 1px solid;\n border-color: ", ";\n border-radius: ", ";\n }\n }\n\n #ImageItem-Subtitle {\n color: ", ";\n }\n\n #ImageItem-Description {\n color: ", ";\n }\n "])), hover, focus, focus, theme.borderRadius.default, neutral5, neutral5);
61
60
  }
62
61
  }
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  var _react = require("react");
9
9
  var _Button = _interopRequireDefault(require("../Button"));
10
10
  var _styles = require("./styles");
11
+ var _Typography = _interopRequireDefault(require("../Typography"));
11
12
  var _Icon = _interopRequireDefault(require("../Icon"));
12
13
  var _jsxRuntime = require("react/jsx-runtime");
13
14
  var _excluded = ["placeholder", "type", "disabled", "label", "labelBackground", "hiddenContent", "helperText", "alert", "withAddon", "addonContent", "withIcon", "onLeftIconClick", "onRightIconClick", "leftIcon", "rightIcon"];
@@ -77,7 +78,8 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
77
78
  children: [withAddon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.AddonElement, {
78
79
  alert: alert,
79
80
  hasDisabled: disabled,
80
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.AddonContent, {
81
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
82
+ fontSize: "xs",
81
83
  children: addonContent
82
84
  })
83
85
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.InputContent, {
@@ -63,8 +63,4 @@ export declare const AddonElement: import("@emotion/styled").StyledComponent<{
63
63
  } & InputProps & {
64
64
  hasDisabled?: boolean | undefined;
65
65
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
66
- export declare const AddonContent: import("@emotion/styled").StyledComponent<{
67
- theme?: import("@emotion/react").Theme | undefined;
68
- as?: import("react").ElementType<any> | undefined;
69
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
70
66
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,iBAAiB;;;;;;yGAsI7B,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAQvB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;yGAKxB,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAK3B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;yGAarB,CAAC;AAQF,eAAO,MAAM,KAAK;;;+HAqBjB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;kHAqBtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;2HAyCpB,CAAC;AAEF,eAAO,MAAM,MAAM;;;+GAQlB,CAAC;AAEF,eAAO,MAAM,UAAU;;;2GAItB,CAAC;AAEF,eAAO,MAAM,UAAU;;;wHAUtB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;yGAyCxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;2GAOxB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;yGAsG7B,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAQvB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;yGAKxB,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAK3B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;yGAUrB,CAAC;AAQF,eAAO,MAAM,KAAK;;;+HAqBjB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;kHAkBtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;2HAsCpB,CAAC;AAEF,eAAO,MAAM,MAAM;;;+GAQlB,CAAC;AAEF,eAAO,MAAM,UAAU;;;2GAItB,CAAC;AAEF,eAAO,MAAM,UAAU;;;wHAQtB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;yGAgCxB,CAAC"}
@@ -3,15 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.LegendText = exports.Legend = exports.InputLabel = exports.InputIcon = exports.InputGroupElement = exports.InputContentRow = exports.InputContent = exports.InputColumn = exports.Input = exports.HelperText = exports.Fieldset = exports.AddonElement = exports.AddonContent = void 0;
6
+ exports.LegendText = exports.Legend = exports.InputLabel = exports.InputIcon = exports.InputGroupElement = exports.InputContentRow = exports.InputContent = exports.InputColumn = exports.Input = exports.HelperText = exports.Fieldset = exports.AddonElement = 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 _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
9
+ var _invertColor = require("../../utils//invertColor");
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
- var InputGroupElement = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-radius: ", ";\n font-weight: ", ";\n transition: all 0.2s ease-in-out;\n\n &:hover fieldset {\n border-color: ", ";\n }\n\n &:hover > div > div:first-of-type {\n border-color: ", ";\n &:hover label {\n color: ", ";\n }\n }\n\n &:focus-within > div > div:first-of-type {\n background: ", ";\n border-color: ", ";\n }\n\n &:focus-within > div > div:first-of-type span {\n color: ", ";\n }\n\n &:focus-within {\n border-radius: 2px solid ", ";\n }\n &:focus-within label {\n color: ", ";\n }\n\n &:focus-within > div {\n box-shadow: 0 0 0 2px\n ", ";\n }\n\n &:focus-within label {\n transform: translate(19px, -11px) scale(0.8);\n\n background-color: ", ";\n height: 20px;\n }\n\n &:focus-within fieldset {\n border-width: 2px;\n border-color: ", ";\n }\n\n ", "\n\n & label {\n transform: ", ";\n\n background-color: ", ";\n height: ", ";\n }\n"])), function (props) {
13
+ var InputGroupElement = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-radius: ", ";\n font-weight: ", ";\n transition: all 0.2s ease-in-out;\n\n &:hover fieldset {\n border-color: ", ";\n }\n\n &:hover > div > div:first-of-type {\n border-color: ", ";\n &:hover label {\n color: ", ";\n }\n }\n\n &:focus-within > div > div:first-of-type {\n background: ", ";\n border-color: ", ";\n }\n\n > div > div:first-of-type span {\n color: ", ";\n }\n\n &:focus-within {\n border-radius: 2px solid ", ";\n }\n &:focus-within label {\n color: ", ";\n }\n\n &:focus-within > div {\n box-shadow: 0 0 0 2px\n ", ";\n }\n\n &:focus-within label {\n transform: translate(19px, -11px) scale(0.8);\n\n background-color: ", ";\n\n height: 20px;\n }\n\n &:focus-within fieldset {\n border-width: 2px;\n border-color: ", ";\n }\n\n ", "\n\n & label {\n transform: ", ";\n height: ", ";\n background: ", ";\n }\n"])), function (props) {
15
14
  return props.theme.borderRadius.default;
16
15
  }, function (props) {
17
16
  return props.theme.fontWeight[400];
@@ -46,48 +45,32 @@ var InputGroupElement = _styled.default.div(_templateObject || (_templateObject
46
45
  }, function (props) {
47
46
  return !props.alert && props.withAddon && props.theme.colors.primary.hover;
48
47
  }, function (props) {
49
- return !props.alert && props.theme.colors.primary.focus;
48
+ return props.alert ? (0, _invertColor.invertColor)(props.theme.colors[props.alert].default, true) : props.theme.colors.neutral.black;
50
49
  }, function (props) {
51
50
  return props.theme.colors.primary.disabled;
52
51
  }, function (_ref4) {
53
52
  var theme = _ref4.theme;
54
53
  return theme.colors.neutral.neutral5;
55
54
  }, function (props) {
56
- return props.alert ? props.theme.colorMode === 'dark' ? props.theme.colors[props.alert].dark : "".concat(props.theme.colors[props.alert].blurred, "33") : props.theme.colors.primary.disabled;
57
- }, function (props) {
58
- if (props.labelBackground) {
59
- if (_typeof(props.labelBackground) === 'object') {
60
- return (0, _getColorValue.getColorValue)(props.labelBackground[props.theme.colorMode] || '', props.theme, '#fff');
61
- }
62
- return (0, _getColorValue.getColorValue)(props.labelBackground || '', props.theme, '#fff');
63
- }
64
- return {
65
- dark: props.theme.colors.neutral.black,
66
- light: props.theme.colors.neutral.white
67
- }[props.theme.colorMode];
55
+ return props.alert ? "".concat(props.theme.colors[props.alert].blurred, "33") : props.theme.colors.primary.disabled;
56
+ }, function (_ref5) {
57
+ var theme = _ref5.theme;
58
+ return theme.colors.neutral.white;
68
59
  }, function (props) {
69
60
  return !props.alert && props.theme.colors.primary.hover;
70
61
  }, function (props) {
71
62
  return props.addonContent && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:focus-within > div > div:first-of-type {\n border-color: ", ";\n background-color: ", ";\n }\n "])), props.alert ? 'transparent' : props.theme.colors.primary.focus, props.alert && props.alert === 'success' ? props.theme.colors.primary.focus : '');
72
- }, function (_ref5) {
73
- var hasValueOnInput = _ref5.hasValueOnInput,
74
- withIcon = _ref5.withIcon;
75
- return hasValueOnInput ? 'translate(19px, -11px) scale(0.8) !important' : withIcon ? 'translate(60px, calc(100% - 10px))' : 'translate(20px, calc(100% - 10px))';
76
- }, function (props) {
77
- if (!props.hasValueOnInput) return 'unset';
78
- if (props.labelBackground) {
79
- if (_typeof(props.labelBackground) === 'object') {
80
- return (0, _getColorValue.getColorValue)(props.labelBackground[props.theme.colorMode] || '', props.theme, '#fff');
81
- }
82
- return (0, _getColorValue.getColorValue)(props.labelBackground || '', props.theme, '#fff');
83
- }
84
- return {
85
- dark: props.theme.colors.neutral.black,
86
- light: props.theme.colors.neutral.white
87
- }[props.theme.colorMode];
88
63
  }, function (_ref6) {
89
- var hasValueOnInput = _ref6.hasValueOnInput;
64
+ var hasValueOnInput = _ref6.hasValueOnInput,
65
+ withIcon = _ref6.withIcon;
66
+ return hasValueOnInput ? 'translate(19px, -11px) scale(0.8) !important' : withIcon ? 'translate(60px, calc(100% - 10px))' : 'translate(20px, calc(100% - 10px))';
67
+ }, function (_ref7) {
68
+ var hasValueOnInput = _ref7.hasValueOnInput;
90
69
  return hasValueOnInput ? '20px' : 'unset';
70
+ }, function (_ref8) {
71
+ var hasValueOnInput = _ref8.hasValueOnInput,
72
+ theme = _ref8.theme;
73
+ return hasValueOnInput ? theme.colors.neutral.white : 'transparent';
91
74
  });
92
75
  exports.InputGroupElement = InputGroupElement;
93
76
  var InputColumn = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n align-items: center;\n border-radius: ", ";\n width: 100%;\n min-height: 56px;\n"])), function (props) {
@@ -105,7 +88,7 @@ var InputIcon = _styled.default.div(_templateObject6 || (_templateObject6 = _tag
105
88
  }, function (props) {
106
89
  return props.clickable ? 'pointer' : 'default';
107
90
  }, function (props) {
108
- return props.theme.colorMode === 'dark' ? props.theme.colors.neutral.white : props.theme.colors.neutral.neutral5;
91
+ return props.theme.colors.neutral.neutral5;
109
92
  });
110
93
  exports.InputIcon = InputIcon;
111
94
  function inputPadding(props) {
@@ -116,11 +99,11 @@ function inputPadding(props) {
116
99
  }
117
100
  var Input = _styled.default.input(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 100%;\n padding: ", ";\n flex: 1;\n height: 100%;\n border: none;\n color: ", ";\n &:disabled {\n color: ", ";\n }\n\n &::placeholder {\n color: ", ";\n }\n\n font-family: inherit;\n outline: none;\n font-size: ", ";\n background-color: transparent;\n position: relative;\n font-weight: 500;\n"])), inputPadding, function (props) {
118
101
  return props.theme.colors.neutral.black;
119
- }, function (_ref7) {
120
- var theme = _ref7.theme;
102
+ }, function (_ref9) {
103
+ var theme = _ref9.theme;
121
104
  return theme.colors.neutral.neutral5;
122
- }, function (_ref8) {
123
- var theme = _ref8.theme;
105
+ }, function (_ref10) {
106
+ var theme = _ref10.theme;
124
107
  return theme.colors.neutral.neutral5;
125
108
  }, function (props) {
126
109
  return props.theme.fontSizes.xs;
@@ -129,16 +112,16 @@ exports.Input = Input;
129
112
  var InputLabel = _styled.default.label(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n height: auto;\n padding: 0 6px;\n position: absolute;\n z-index: ", ";\n pointer-events: none;\n color: ", ";\n background-color: transparent;\n transform-origin: left;\n transition: all ease 0.2s;\n font-weight: 500;\n\n white-space: nowrap;\n max-width: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (props) {
130
113
  return props.theme.zIndex.level1;
131
114
  }, function (props) {
132
- return props.theme.colorMode === 'dark' ? props.theme.colors.neutral.white : props.theme.colors.neutral.neutral3;
133
- }, function (_ref9) {
134
- var withIcon = _ref9.withIcon;
115
+ return props.theme.colors.neutral.neutral3;
116
+ }, function (_ref11) {
117
+ var withIcon = _ref11.withIcon;
135
118
  return withIcon ? '65%' : '85%';
136
119
  });
137
120
  exports.InputLabel = InputLabel;
138
- var Fieldset = _styled.default.fieldset(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n top: 0;\n pointer-events: none;\n padding: 0 17px;\n overflow: hidden;\n\n background-color: ", ";\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n border-left: ", ";\n\n transition: all 0.2s ease;\n"])), function (_ref10) {
139
- var alert = _ref10.alert,
140
- theme = _ref10.theme,
141
- hasDisabled = _ref10.hasDisabled;
121
+ var Fieldset = _styled.default.fieldset(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n top: 0;\n pointer-events: none;\n padding: 0 17px;\n overflow: hidden;\n\n background-color: ", ";\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n border-left: ", ";\n\n transition: all 0.2s ease;\n"])), function (_ref12) {
122
+ var alert = _ref12.alert,
123
+ theme = _ref12.theme,
124
+ hasDisabled = _ref12.hasDisabled;
142
125
  if (alert && !hasDisabled) {
143
126
  return "".concat(theme.colors[alert].blurred, "33");
144
127
  }
@@ -148,17 +131,14 @@ var Fieldset = _styled.default.fieldset(_templateObject9 || (_templateObject9 =
148
131
  return 'transparent';
149
132
  }, function (props) {
150
133
  return props.withAddon ? "0 ".concat(props.theme.borderRadius.default, " ").concat(props.theme.borderRadius.default, " 0") : props.theme.borderRadius.default;
151
- }, function (_ref11) {
152
- var theme = _ref11.theme,
153
- hasDisabled = _ref11.hasDisabled,
154
- alert = _ref11.alert;
134
+ }, function (_ref13) {
135
+ var theme = _ref13.theme,
136
+ hasDisabled = _ref13.hasDisabled,
137
+ alert = _ref13.alert;
155
138
  if (alert && !hasDisabled) {
156
139
  return theme.colors[alert].default;
157
140
  }
158
- return {
159
- light: theme.colors.neutral.neutral2,
160
- dark: theme.colors.neutral.neutral5
161
- }[theme.colorMode];
141
+ return theme.colors.neutral.neutral2;
162
142
  }, function (props) {
163
143
  return props.withAddon ? 'none !important' : 'auto';
164
144
  });
@@ -170,7 +150,7 @@ exports.LegendText = LegendText;
170
150
  var HelperText = _styled.default.span(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: ", ";\n\n color: ", ";\n padding: 0 20px;\n"])), function (props) {
171
151
  return props.theme.fontSizes.xxs;
172
152
  }, function (props) {
173
- return props.alert && props.alert !== 'success' ? props.theme.colors[props.alert].default : props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral4;
153
+ return props.alert && props.alert !== 'success' ? props.theme.colors[props.alert].default : props.theme.colors.neutral.neutral4;
174
154
  });
175
155
  exports.HelperText = HelperText;
176
156
  var AddonElement = _styled.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding: 0 20px;\n height: 100%;\n\n background-color: ", ";\n\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n border: 2px solid\n ", ";\n border-right: none;\n\n border-radius: ", " 0 0\n ", ";\n"])), function (props) {
@@ -178,38 +158,20 @@ var AddonElement = _styled.default.div(_templateObject13 || (_templateObject13 =
178
158
  return props.theme.colors[props.alert].default;
179
159
  }
180
160
  if (props.hasDisabled) {
181
- return {
182
- light: props.theme.colors.neutral.neutral2,
183
- dark: props.theme.colors.neutral.neutral5
184
- }[props.theme.colorMode];
161
+ return props.theme.colors.neutral.neutral2;
185
162
  }
186
- return {
187
- light: props.theme.colors.neutral.neutral1,
188
- dark: props.theme.colors.neutral.neutral6
189
- }[props.theme.colorMode];
190
- }, function (_ref12) {
191
- var theme = _ref12.theme,
192
- hasDisabled = _ref12.hasDisabled,
193
- alert = _ref12.alert;
163
+ return props.theme.colors.neutral.neutral1;
164
+ }, function (_ref14) {
165
+ var theme = _ref14.theme,
166
+ hasDisabled = _ref14.hasDisabled,
167
+ alert = _ref14.alert;
194
168
  if (alert && !hasDisabled) {
195
169
  return theme.colors[alert].default;
196
170
  }
197
- return {
198
- light: theme.colors.neutral.neutral2,
199
- dark: theme.colors.neutral.neutral5
200
- }[theme.colorMode];
171
+ return theme.colors.neutral.neutral2;
201
172
  }, function (props) {
202
173
  return props.theme.borderRadius.default;
203
174
  }, function (props) {
204
175
  return props.theme.borderRadius.default;
205
176
  });
206
- exports.AddonElement = AddonElement;
207
- var AddonContent = _styled.default.span(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n"])), function (props) {
208
- return props.theme.fontSizes.xs;
209
- }, function (props) {
210
- return {
211
- light: props.theme.colors.neutral.black,
212
- dark: props.theme.colors.neutral.white
213
- }[props.theme.colorMode];
214
- });
215
- exports.AddonContent = AddonContent;
177
+ exports.AddonElement = AddonElement;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/List/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,UAAU;;;8IAiCrB,CAAC;AAEH,eAAO,MAAM,cAAc;;;8HAkCzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;sIAiB1B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/List/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,UAAU;;;8IA6BrB,CAAC;AAEH,eAAO,MAAM,cAAc;;;8HAgCzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;sIAW1B,CAAC"}
@@ -10,20 +10,14 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
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 StyledList = _styled.default.ul(function (props) {
13
- return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n list-style: none;\n padding: 8px 0;\n margin: 0;\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n box-sizing: border-box;\n\n ", ";\n "])), props.theme.borderRadius.default, {
14
- light: props.theme.colors.neutral.neutral2,
15
- dark: props.theme.colors.neutral.neutral5
16
- }[props.theme.colorMode], props.maxHeight && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: ", ";\n overflow-y: auto;\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 "])), props.maxHeight, props.theme.borderRadius.default, props.theme.colors.primary.default));
13
+ return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n list-style: none;\n padding: 8px 0;\n margin: 0;\n\n border-radius: ", ";\n border: 2px solid ", ";\n box-sizing: border-box;\n\n ", ";\n "])), props.theme.borderRadius.default, props.theme.colors.neutral.neutral2, props.maxHeight && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: ", ";\n overflow-y: auto;\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 "])), props.maxHeight, props.theme.borderRadius.default, props.theme.colors.primary.default));
17
14
  });
18
15
  exports.StyledList = StyledList;
19
16
  var StyledListItem = _styled.default.li(function (props) {
20
- return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n\n outline: none;\n padding: 16px 32px;\n\n font-weight: ", ";\n font-size: ", ";\n\n color: ", ";\n\n background: transparent;\n\n transition: background-color ease;\n transition-duration: ", ";\n\n cursor: pointer;\n\n & > svg:first-of-type {\n margin-right: ", ";\n }\n\n & > svg:last-of-type:not(:first-of-type) {\n margin-left: ", ";\n }\n\n &:hover,\n &:focus {\n background: ", ";\n }\n "])), props.theme.fontWeight['500'], props.theme.fontSizes.xs, props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral5, props.theme.transition.speed, props.theme.spacing.xxxs, props.theme.spacing.xxxs, props.theme.colors.neutral.neutral1);
17
+ return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n\n outline: none;\n padding: 16px 32px;\n\n font-weight: ", ";\n font-size: ", ";\n\n color: ", ";\n\n background: transparent;\n\n transition: background-color ease;\n transition-duration: ", ";\n\n cursor: pointer;\n\n & > svg:first-of-type {\n margin-right: ", ";\n }\n\n & > svg:last-of-type:not(:first-of-type) {\n margin-left: ", ";\n }\n\n &:hover,\n &:focus {\n background: ", ";\n }\n "])), props.theme.fontWeight['500'], props.theme.fontSizes.xs, props.theme.colors.neutral.neutral5, props.theme.transition.speed, props.theme.spacing.xxxs, props.theme.spacing.xxxs, props.theme.colors.neutral.neutral1);
21
18
  });
22
19
  exports.StyledListItem = StyledListItem;
23
20
  var StyledListTitle = _styled.default.h3(function (props) {
24
- return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0 0 8px 0;\n border-bottom: 2px solid\n ", ";\n padding: ", ";\n\n color: ", ";\n\n font-weight: ", ";\n font-size: ", ";\n "])), {
25
- light: props.theme.colors.neutral.neutral2,
26
- dark: props.theme.colors.neutral.neutral5
27
- }[props.theme.colorMode], props.theme.spacingest.xs, props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral5, props.theme.fontWeight['500'], props.theme.fontSizes.xs);
21
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0 0 8px 0;\n border-bottom: 2px solid ", ";\n padding: ", ";\n\n color: ", ";\n\n font-weight: ", ";\n font-size: ", ";\n "])), props.theme.colors.neutral.neutral2, props.theme.spacingest.xs, props.theme.colors.neutral.neutral5, props.theme.fontWeight['500'], props.theme.fontSizes.xs);
28
22
  });
29
23
  exports.StyledListTitle = StyledListTitle;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,UAAU,mBAAmB;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,cAAc;;;+HAczB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UACjB,OAAO;;;UAuCb,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACV,OAAO;;UAgBf,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,UAAU,mBAAmB;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,cAAc;;;+HAczB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UACjB,OAAO;;;UA2Cb,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACV,OAAO;;UAgBf,CAAC"}
@@ -23,7 +23,7 @@ exports.ModalContainer = ModalContainer;
23
23
  var ModalElement = (0, _styled.default)(_framerMotion.motion.div)(function (_ref2) {
24
24
  var theme = _ref2.theme,
25
25
  props = _objectWithoutProperties(_ref2, _excluded2);
26
- return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n max-height: ", ";\n border-radius: ", ";\n overflow-y: auto;\n overflow-x: hidden;\n background: ", ";\n box-shadow: ", ";\n transition: all ease ", ";\n scroll-behavior: smooth;\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\n ", "\n "])), props.maxHeight, theme.borderRadius.default, theme.colors.background.light, theme.shadow.level1, theme.transition.speed, theme.borderRadius.default, theme.colors.primary.default, props.hideScrollBar && (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ::-webkit-scrollbar {\n display: none;\n }\n\n scrollbar-width: none;\n\n -ms-overflow-style: none;\n "]))));
26
+ return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n max-height: ", ";\n border-radius: ", ";\n overflow-y: auto;\n overflow-x: hidden;\n background: ", ";\n box-shadow: ", ";\n transition: all ease ", ";\n scroll-behavior: smooth;\n\n &:first-of-type {\n background: ", " !important;\n }\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\n ", "\n "])), props.maxHeight, theme.borderRadius.default, theme.colors.background.light, theme.shadow.level1, theme.transition.speed, theme.colors.neutral.white, theme.borderRadius.default, theme.colors.primary.default, props.hideScrollBar && (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ::-webkit-scrollbar {\n display: none;\n }\n\n scrollbar-width: none;\n\n -ms-overflow-style: none;\n "]))));
27
27
  });
28
28
  exports.ModalElement = ModalElement;
29
29
  var Overlay = (0, _styled.default)(_framerMotion.motion.div)(function (props) {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/OptionsArea/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqC9B,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAuBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;mBAAiC,OAAO;gBAAc,UAAU;kHAe7F,CAAC;AAEF,eAAO,MAAM,IAAI;;;2GAIhB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/OptionsArea/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqC9B,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAuBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;mBAAiC,OAAO;gBAAc,UAAU;kHA2B7F,CAAC;AAEF,eAAO,MAAM,IAAI;;;2GAIhB,CAAC"}
@@ -16,7 +16,7 @@ var OptionsAreaWrapper = (0, _styled.default)(_framerMotion.motion.div)(function
16
16
  selectType = _ref.selectType,
17
17
  width = _ref.width,
18
18
  left = _ref.left;
19
- return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n top: ", ";\n left: ", ";\n z-index: 999;\n display: flex;\n scroll-behavior: smooth;\n flex-direction: column;\n box-sizing: border-box;\n background-color: ", ";\n\n color: ", ";\n\n width: ", ";\n max-height: 248px;\n border-radius: ", ";\n\n overflow-y: auto;\n\n padding: 8px;\n\n box-shadow: ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: ", ";\n }\n "])), top, left, theme.colors.body.light, theme.colors.neutral.black, width + 'px', theme.borderRadius.default, theme.shadow.level3, selectType ? theme.colors[selectType].default : theme.colors.primary.default, theme.borderRadius.default);
19
+ return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n top: ", ";\n left: ", ";\n z-index: 999;\n display: flex;\n scroll-behavior: smooth;\n flex-direction: column;\n box-sizing: border-box;\n background-color: ", ";\n\n color: ", ";\n\n width: ", ";\n max-height: 248px;\n border-radius: ", ";\n\n overflow-y: auto;\n\n padding: 8px;\n\n box-shadow: ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: ", ";\n }\n "])), top, left, theme.colors.neutral.white, theme.colors.neutral.black, width + 'px', theme.borderRadius.default, theme.shadow.level3, selectType ? theme.colors[selectType].default : theme.colors.primary.default, theme.borderRadius.default);
20
20
  });
21
21
  exports.OptionsAreaWrapper = OptionsAreaWrapper;
22
22
  var OptionItem = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n box-sizing: border-box;\n\n padding: 16px 24px;\n\n outline: 0;\n background: none;\n border: 0;\n\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n\n cursor: pointer;\n\n :focus,\n :hover {\n background-color: ", ";\n\n border-radius: ", ";\n }\n"])), function (_ref2) {
@@ -36,23 +36,33 @@ var OptionItem = _styled.default.div(_templateObject2 || (_templateObject2 = _ta
36
36
  return theme.borderRadius.default;
37
37
  });
38
38
  exports.OptionItem = OptionItem;
39
- var AutoCompleteInput = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 8px;\n padding-left: ", ";\n outline: 0;\n\n font: inherit;\n\n margin-bottom: 8px;\n width: 100%;\n\n border: 2px solid\n ", ";\n\n border-radius: ", ";\n"])), function (_ref7) {
39
+ var AutoCompleteInput = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 8px;\n padding-left: ", ";\n outline: 0;\n\n font: inherit;\n\n margin-bottom: 8px;\n width: 100%;\n\n border: 2px solid\n ", ";\n\n border-radius: ", ";\n\n background: ", ";\n color: ", ";\n\n transition: 0.2s ease-in-out all;\n\n &:focus,\n &:hover {\n border: 2px solid\n ", ";\n }\n"])), function (_ref7) {
40
40
  var isLoadingData = _ref7.isLoadingData;
41
41
  return isLoadingData ? '2em' : '1em';
42
42
  }, function (_ref8) {
43
43
  var theme = _ref8.theme,
44
44
  selectType = _ref8.selectType;
45
- return selectType ? theme.colors[selectType].blurred : theme.colors.primary.disabled;
45
+ return selectType ? theme.colors[selectType].blurred : theme.colors.neutral.neutral2;
46
46
  }, function (_ref9) {
47
47
  var theme = _ref9.theme;
48
48
  return theme.borderRadius.default;
49
- });
50
- exports.AutoCompleteInput = AutoCompleteInput;
51
- var Span = _styled.default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n text-align: center;\n color: ", ";\n"])), function (_ref10) {
49
+ }, function (_ref10) {
52
50
  var theme = _ref10.theme;
53
- return theme.fontSizes.xxs;
51
+ return "".concat(theme.colors.neutral.neutral1, "60");
54
52
  }, function (_ref11) {
55
53
  var theme = _ref11.theme;
54
+ return theme.colors.neutral.black;
55
+ }, function (_ref12) {
56
+ var theme = _ref12.theme,
57
+ selectType = _ref12.selectType;
58
+ return selectType ? theme.colors[selectType].blurred : theme.colors.primary.disabled;
59
+ });
60
+ exports.AutoCompleteInput = AutoCompleteInput;
61
+ var Span = _styled.default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n text-align: center;\n color: ", ";\n"])), function (_ref13) {
62
+ var theme = _ref13.theme;
63
+ return theme.fontSizes.xxs;
64
+ }, function (_ref14) {
65
+ var theme = _ref14.theme;
56
66
  return theme.colors.error.default;
57
67
  });
58
68
  exports.Span = Span;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectedOptionsArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,mBAAmB;;;;;yGAiB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;yGAyBhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;qHAsB1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;2GAO9B,CAAC"}
1
+ {"version":3,"file":"SelectedOptionsArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,mBAAmB;;;;;yGAiB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;yGAyBhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;qHAqB1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;2GAO9B,CAAC"}
@@ -36,10 +36,7 @@ var SelectedOption = _styled.default.button(_templateObject6 || (_templateObject
36
36
  return theme.colors.neutral.neutral1;
37
37
  }, function (_ref7) {
38
38
  var theme = _ref7.theme;
39
- return {
40
- dark: theme.colors.neutral.white,
41
- light: theme.colors.neutral.neutral6
42
- }[theme.colorMode];
39
+ return theme.colors.neutral.neutral6;
43
40
  });
44
41
  exports.SelectedOption = SelectedOption;
45
42
  var SelectedOptionText = _styled.default.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-right: 8px;\n font-weight: ", ";\n font-size: ", ";\n"])), function (_ref8) {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,KAAK;;;;aAA2B,OAAO;kHA+BnD,CAAC;AAEF,eAAO,MAAM,WAAW;;;qHAUvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;gBAA6B,UAAU;2GAU7D,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,KAAK;;;;aAA2B,OAAO;kHA+BnD,CAAC;AAEF,eAAO,MAAM,WAAW;;;qHAUvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;gBAA6B,UAAU;2GAQ7D,CAAC"}
@@ -9,7 +9,7 @@ var _react = require("@emotion/react");
9
9
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
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
- var Label = _styled.default.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n box-sizing: border-box;\n\n color: ", ";\n transition: all ease-in-out 0.2s;\n\n font-weight: ", ";\n font-size: ", ";\n\n padding-inline: 6px;\n\n white-space: nowrap;\n max-width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n\n ", ";\n"])), function (_ref) {
12
+ var Label = _styled.default.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n box-sizing: border-box;\n\n color: ", ";\n transition: all ease-in-out 0.2s;\n\n font-weight: ", ";\n font-size: ", ";\n\n padding-inline: 6px;\n\n white-space: nowrap;\n max-width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n\n transform: translate(0.4rem, 0.8rem);\n\n ", ";\n"])), function (_ref) {
13
13
  var theme = _ref.theme;
14
14
  return theme.colors.neutral.neutral3;
15
15
  }, function (_ref2) {
@@ -21,7 +21,7 @@ var Label = _styled.default.label(_templateObject || (_templateObject = _taggedT
21
21
  }, function (_ref4) {
22
22
  var animate = _ref4.animate,
23
23
  theme = _ref4.theme;
24
- return animate ? (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 2em;\n\n transform: translate(-12px, -11px);\n background-color: ", ";\n height: 20px;\n "])), theme.colorMode === 'dark' ? theme.colors.neutral.black : theme.colors.neutral.white) : '';
24
+ return animate ? (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 2em;\n\n transform: translate(-12px, -11px);\n background-color: ", ";\n height: 20px;\n "])), theme.colors.neutral.white) : '';
25
25
  });
26
26
  exports.Label = Label;
27
27
  var Placeholder = _styled.default.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 50%;\n font-weight: 500;\n max-width: 70%;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n transform: translateY(-50%);\n color: ", ";\n"])), function (props) {
@@ -31,6 +31,6 @@ exports.Placeholder = Placeholder;
31
31
  var HelperText = _styled.default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n\n color: ", ";\n padding: 0 20px;\n"])), function (props) {
32
32
  return props.theme.fontSizes.xxs;
33
33
  }, function (props) {
34
- return props.selectType && props.selectType !== 'success' ? props.theme.colors[props.selectType].default : props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral4;
34
+ return props.selectType && props.selectType !== 'success' ? props.theme.colors[props.selectType].default : props.theme.colors.neutral.neutral4;
35
35
  });
36
36
  exports.HelperText = HelperText;
@@ -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-height: 350px;\n position: fixed;\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 "])), theme.zIndex.level24, props.open ? 1 : 0, props.open ? 'auto' : 'none', theme.transition.speed, theme.colors.background.light, theme.colors.neutral.neutral1, theme.borderRadius.default, theme.borderRadius.default, theme.colors.primary.default);
19
+ return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n max-height: 350px;\n position: fixed;\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 "])), 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/NewSelect/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,eAAe;;;gIAiG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;UAE7B,CAAC;AAEF,eAAO,MAAM,UAAU;;;wHAMrB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;qHAsBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;2GAM9B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/NewSelect/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,eAAe;;;gIAiG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;UAE7B,CAAC;AAEF,eAAO,MAAM,UAAU;;;wHAMrB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;qHAqBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;2GAM9B,CAAC"}
@@ -33,10 +33,7 @@ var SelectMultipleOption = _styled.default.button(_templateObject4 || (_template
33
33
  return theme.colors.neutral.neutral1;
34
34
  }, function (_ref5) {
35
35
  var theme = _ref5.theme;
36
- return {
37
- dark: theme.colors.neutral.white,
38
- light: theme.colors.neutral.neutral6
39
- }[theme.colorMode];
36
+ return theme.colors.neutral.neutral6;
40
37
  });
41
38
  exports.SelectMultipleOption = SelectMultipleOption;
42
39
  var SelectedOptionSpan = _styled.default.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-weight: 500;\n cursor: pointer;\n padding-block: 0.25rem;\n color: ", ";\n"])), function (_ref6) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,kBAAmC,EACnC,cAAgC,EAChC,UAAU,EACV,WAAW,EACX,IAAc,EACd,KAAiB,EACjB,OAAoB,EACpB,KAAK,GACN,EAAE,gBAAgB,sBAmIlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,kBAAmC,EACnC,cAAgC,EAChC,UAAU,EACV,WAAW,EACX,IAAc,EACd,KAAiB,EACjB,OAAoB,EACpB,KAAK,GACN,EAAE,gBAAgB,sBAkIlB"}
@@ -7,7 +7,6 @@ exports.Pagination = Pagination;
7
7
  var _react = require("react");
8
8
  var _Icon = _interopRequireDefault(require("../Icon"));
9
9
  var _colorToGray = require("../../utils/colorToGray");
10
- var _useColorMode2 = require("../../shared/theme/hooks/useColorMode");
11
10
  var _usePagination = require("./hooks/usePagination");
12
11
  var _styles = require("./styles");
13
12
  var _theme = require("../../shared/theme");
@@ -53,8 +52,6 @@ function Pagination(_ref) {
53
52
  setNextButtonDisabled = _useState6[1];
54
53
  var _useTheme = (0, _theme.useTheme)(),
55
54
  theme = _useTheme.theme;
56
- var _useColorMode = (0, _useColorMode2.useColorMode)(),
57
- colorMode = _useColorMode.colorMode;
58
55
  (0, _react.useEffect)(function () {
59
56
  if (activePage !== count) {
60
57
  setNextButtonDisabled(false);
@@ -73,12 +70,8 @@ function Pagination(_ref) {
73
70
  var _useMemo = (0, _react.useMemo)(function () {
74
71
  var themeColor = theme.colors.primary.default;
75
72
  var _convertColor = (0, _colorToGray.convertColor)(color || themeColor),
76
- neutral2 = _convertColor.neutral2,
77
- neutral5 = _convertColor.neutral5;
78
- var grayColorByTheme = {
79
- dark: neutral5,
80
- light: neutral2
81
- }[colorMode] || neutral2;
73
+ neutral2 = _convertColor.neutral2;
74
+ var grayColorByTheme = neutral2;
82
75
  var _grayColorByTheme = _slicedToArray(grayColorByTheme, 3),
83
76
  h = _grayColorByTheme[0],
84
77
  s = _grayColorByTheme[1],
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RadioInput/components/ChoiceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAsD,MAAM,OAAO,CAAC;AAE9F,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,UAAU,4CAA4D,CAAC;AAEpF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA+DnC,CAAC;AAIF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RadioInput/components/ChoiceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAsD,MAAM,OAAO,CAAC;AAE9F,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,UAAU,4CAA4D,CAAC;AAEpF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAgEnC,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -8,7 +8,7 @@ exports.default = exports.RadioGroup = void 0;
8
8
  var _react = require("react");
9
9
  var _styles = require("../../styles");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
- var _excluded = ["children", "radiosName", "isDisabled", "alignDirection", "label", "helpText", "onChangeValue"];
11
+ var _excluded = ["children", "radiosName", "isDisabled", "alignDirection", "label", "helpText", "onChangeValue", "alert"];
12
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
14
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -27,6 +27,7 @@ var ChoiceList = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
27
27
  label = _ref.label,
28
28
  helpText = _ref.helpText,
29
29
  onChangeValue = _ref.onChangeValue,
30
+ alert = _ref.alert,
30
31
  rest = _objectWithoutProperties(_ref, _excluded);
31
32
  var handleRadioClick = function handleRadioClick(value) {
32
33
  if (radioRef.current) {
@@ -75,7 +76,7 @@ var ChoiceList = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
75
76
  alignDirection: alignDirection,
76
77
  children: children
77
78
  }), helpText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.HelpText, {
78
- textColor: 'neutral.black',
79
+ alert: alert,
79
80
  children: helpText
80
81
  })]
81
82
  })
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IStyledRadioInput } from './types';
3
+ import { InputAlertTypes } from '../Input/types';
3
4
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
5
  theme?: import("@emotion/react").Theme | undefined;
5
6
  as?: import("react").ElementType<any> | undefined;
@@ -27,5 +28,7 @@ export declare const ChoiceLabel: import("@emotion/styled").StyledComponent<{
27
28
  export declare const HelpText: import("@emotion/styled").StyledComponent<{
28
29
  theme?: import("@emotion/react").Theme | undefined;
29
30
  as?: import("react").ElementType<any> | undefined;
30
- } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
31
+ } & {
32
+ alert: InputAlertTypes | undefined;
33
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
31
34
  //# sourceMappingURL=styles.d.ts.map