@pedidopago/ui 1.7.21 → 1.7.23

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 (171) 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 +27 -18
  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/Examples/index.d.ts.map +1 -1
  55. package/dist/components/NewSelect/Examples/index.js +36 -21
  56. package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -1
  57. package/dist/components/NewSelect/multiple/index.d.ts.map +1 -1
  58. package/dist/components/NewSelect/multiple/index.js +24 -13
  59. package/dist/components/NewSelect/single/index.d.ts.map +1 -1
  60. package/dist/components/NewSelect/single/index.js +15 -6
  61. package/dist/components/NewSelect/styles.d.ts.map +1 -1
  62. package/dist/components/NewSelect/styles.js +1 -4
  63. package/dist/components/Pagination/index.d.ts.map +1 -1
  64. package/dist/components/Pagination/index.js +2 -9
  65. package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
  66. package/dist/components/RadioInput/components/ChoiceList/index.js +3 -2
  67. package/dist/components/RadioInput/styles.d.ts +4 -1
  68. package/dist/components/RadioInput/styles.d.ts.map +1 -1
  69. package/dist/components/RadioInput/styles.js +16 -5
  70. package/dist/components/RadioInput/types.d.ts +2 -1
  71. package/dist/components/RadioInput/types.d.ts.map +1 -1
  72. package/dist/components/Select/components/OptionsSelect/styles.js +1 -1
  73. package/dist/components/Select/styles.d.ts.map +1 -1
  74. package/dist/components/Select/styles.js +2 -2
  75. package/dist/components/Skeleton/styles.d.ts.map +1 -1
  76. package/dist/components/Skeleton/styles.js +2 -8
  77. package/dist/components/Slider/components/SliderPointer.d.ts.map +1 -1
  78. package/dist/components/Slider/components/SliderPointer.js +2 -1
  79. package/dist/components/Slider/styles.d.ts.map +1 -1
  80. package/dist/components/Slider/styles.js +2 -2
  81. package/dist/components/Spinner/styles.d.ts +168 -0
  82. package/dist/components/Spinner/styles.d.ts.map +1 -1
  83. package/dist/components/Spinner/styles.js +3 -3
  84. package/dist/components/Steps/styles.d.ts.map +1 -1
  85. package/dist/components/Steps/styles.js +3 -9
  86. package/dist/components/Switch/styles.d.ts.map +1 -1
  87. package/dist/components/Switch/styles.js +2 -4
  88. package/dist/components/Table/index.d.ts.map +1 -1
  89. package/dist/components/Table/index.js +1 -5
  90. package/dist/components/Table/styles.d.ts.map +1 -1
  91. package/dist/components/Table/styles.js +4 -52
  92. package/dist/components/Tabs/styles.d.ts.map +1 -1
  93. package/dist/components/Tabs/styles.js +4 -6
  94. package/dist/components/Tag/styles.d.ts +504 -0
  95. package/dist/components/Tag/styles.d.ts.map +1 -1
  96. package/dist/components/Tag/styles.js +3 -3
  97. package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
  98. package/dist/components/TextAreaInput/styles.js +3 -6
  99. package/dist/components/Thumbnail/index.d.ts.map +1 -1
  100. package/dist/components/Thumbnail/index.js +7 -56
  101. package/dist/components/Thumbnail/styles.d.ts.map +1 -1
  102. package/dist/components/Thumbnail/styles.js +17 -27
  103. package/dist/components/Thumbnail/types.d.ts +1 -9
  104. package/dist/components/Thumbnail/types.d.ts.map +1 -1
  105. package/dist/components/TimeInput/styles.d.ts.map +1 -1
  106. package/dist/components/TimeInput/styles.js +7 -1
  107. package/dist/components/Timeline/components/Timeline.d.ts.map +1 -1
  108. package/dist/components/Timeline/components/Timeline.js +3 -16
  109. package/dist/components/Timeline/styles.d.ts.map +1 -1
  110. package/dist/components/Timeline/styles.js +5 -5
  111. package/dist/components/Timeline/timeline.test.js +0 -2
  112. package/dist/components/Timeline/types.d.ts +0 -1
  113. package/dist/components/Timeline/types.d.ts.map +1 -1
  114. package/dist/components/Tooltip/components/TooltipLabel.d.ts.map +1 -1
  115. package/dist/components/Tooltip/components/TooltipLabel.js +5 -5
  116. package/dist/components/Tooltip/index.d.ts.map +1 -1
  117. package/dist/components/Tooltip/index.js +5 -1
  118. package/dist/components/Tooltip/styles.d.ts.map +1 -1
  119. package/dist/components/Tooltip/styles.js +2 -4
  120. package/dist/components/Typography/index.d.ts.map +1 -1
  121. package/dist/components/Typography/index.js +4 -5
  122. package/dist/index.d.ts +1 -0
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +9 -1
  125. package/dist/shared/hooks/useSystemTheme.d.ts +5 -0
  126. package/dist/shared/hooks/useSystemTheme.d.ts.map +1 -0
  127. package/dist/shared/hooks/useSystemTheme.js +38 -0
  128. package/dist/shared/theme/contexts/ThemeContext.d.ts +1 -1
  129. package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
  130. package/dist/shared/theme/contexts/ThemeContext.js +37 -17
  131. package/dist/shared/theme/hooks/useColorMode.d.ts +1 -1
  132. package/dist/shared/theme/hooks/useColorMode.js +1 -1
  133. package/dist/shared/theme/hooks/useTheme.d.ts +168 -0
  134. package/dist/shared/theme/hooks/useTheme.d.ts.map +1 -1
  135. package/dist/shared/theme/objects/breakpoints.d.ts +9 -0
  136. package/dist/shared/theme/objects/breakpoints.d.ts.map +1 -0
  137. package/dist/shared/theme/objects/breakpoints.js +15 -0
  138. package/dist/shared/theme/objects/colors.d.ts +171 -0
  139. package/dist/shared/theme/objects/colors.d.ts.map +1 -0
  140. package/dist/shared/theme/objects/colors.js +177 -0
  141. package/dist/shared/theme/objects/shadows.d.ts +13 -0
  142. package/dist/shared/theme/objects/shadows.d.ts.map +1 -0
  143. package/dist/shared/theme/objects/shadows.js +19 -0
  144. package/dist/shared/theme/objects/sizes.d.ts +23 -0
  145. package/dist/shared/theme/objects/sizes.d.ts.map +1 -0
  146. package/dist/shared/theme/objects/sizes.js +33 -0
  147. package/dist/shared/theme/objects/spaces.d.ts +131 -0
  148. package/dist/shared/theme/objects/spaces.d.ts.map +1 -0
  149. package/dist/shared/theme/objects/spaces.js +75 -0
  150. package/dist/shared/theme/objects/transitions.d.ts +4 -0
  151. package/dist/shared/theme/objects/transitions.d.ts.map +1 -0
  152. package/dist/shared/theme/objects/transitions.js +10 -0
  153. package/dist/shared/theme/objects/typography.d.ts +14 -0
  154. package/dist/shared/theme/objects/typography.d.ts.map +1 -0
  155. package/dist/shared/theme/objects/typography.js +20 -0
  156. package/dist/shared/theme/objects/z-indexes.d.ts +14 -0
  157. package/dist/shared/theme/objects/z-indexes.d.ts.map +1 -0
  158. package/dist/shared/theme/objects/z-indexes.js +20 -0
  159. package/dist/shared/theme/theme.d.ts +168 -0
  160. package/dist/shared/theme/theme.d.ts.map +1 -1
  161. package/dist/shared/theme/theme.js +19 -225
  162. package/dist/shared/theme/theme.types.d.ts +9 -1
  163. package/dist/shared/theme/theme.types.d.ts.map +1 -1
  164. package/dist/utils/customColorMode.d.ts +2 -0
  165. package/dist/utils/customColorMode.d.ts.map +1 -0
  166. package/dist/utils/customColorMode.js +11 -0
  167. package/dist/utils/getColorValue.js +1 -1
  168. package/package.json +9 -3
  169. package/dist/components/Steps/components/StepIconMobile/index.d.ts +0 -4
  170. package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +0 -1
  171. 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;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/NewSelect/Examples/index.tsx"],"names":[],"mappings":";AAUA,wBAAgB,qCAAqC,gBAuCpD;AAED,wBAAgB,oCAAoC,gBA6BnD;AACD,wBAAgB,6BAA6B,gBAiC5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/NewSelect/Examples/index.tsx"],"names":[],"mappings":";AAUA,wBAAgB,qCAAqC,gBAmDpD;AAED,wBAAgB,oCAAoC,gBA4BnD;AACD,wBAAgB,6BAA6B,gBAiC5C"}
@@ -12,6 +12,7 @@ var _ = require("..");
12
12
  var _SelectInputSearch = require("../components/SelectInputSearch");
13
13
  var _SelectItem = require("../components/SelectItem");
14
14
  var _Chip = require("../components/Chip");
15
+ var _Skeleton = _interopRequireDefault(require("../../Skeleton"));
15
16
  var _constants = require("./constants");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -20,7 +21,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
20
21
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
22
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
22
23
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
23
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /* eslint-disable no-console */
24
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
25
  function MultipleSelectExampleWithDefaultValue() {
25
26
  var _useState = (0, _react.useState)(['option1', 'option2']),
26
27
  _useState2 = _slicedToArray(_useState, 2),
@@ -30,22 +31,37 @@ function MultipleSelectExampleWithDefaultValue() {
30
31
  _useState4 = _slicedToArray(_useState3, 2),
31
32
  selectedOption = _useState4[0],
32
33
  setSelectedOption = _useState4[1];
34
+ var _useState5 = (0, _react.useState)(true),
35
+ _useState6 = _slicedToArray(_useState5, 2),
36
+ isLoading = _useState6[0],
37
+ setIsLoading = _useState6[1];
38
+ (0, _react.useEffect)(function () {
39
+ setTimeout(function () {
40
+ setIsLoading(false);
41
+ }, 2000);
42
+ }, []);
33
43
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flex.default, {
34
44
  direction: "column",
35
45
  spacing: "1rem",
36
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.NewSelect, {
46
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_.NewSelect, {
37
47
  label: "Multiplo",
38
48
  multiple: true,
39
49
  value: selectedMultipleOptions,
40
50
  onChange: function onChange(value) {
41
51
  setSelectedMultipleOption(value);
42
52
  },
43
- children: _constants.optionsSelectExample.map(function (option, index) {
53
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.SelectItem, {
54
+ value: "default-option",
55
+ children: "Op\xE7\xE3o padr\xE3o"
56
+ }), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
57
+ height: '100px',
58
+ isLoaded: false
59
+ }) : _constants.optionsSelectExample.map(function (option, index) {
44
60
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.SelectItem, {
45
61
  value: option.value,
46
62
  children: option.label
47
63
  }, index);
48
- })
64
+ })]
49
65
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.NewSelect, {
50
66
  label: "Single",
51
67
  value: selectedOption,
@@ -66,24 +82,23 @@ function MultipleSelectExampleWithDefaultValue() {
66
82
  });
67
83
  }
68
84
  function MultipleSelectExampleWithInputSearch() {
69
- var _useState5 = (0, _react.useState)(''),
70
- _useState6 = _slicedToArray(_useState5, 2),
71
- searchInput = _useState6[0],
72
- setSearchInput = _useState6[1];
85
+ var _useState7 = (0, _react.useState)(''),
86
+ _useState8 = _slicedToArray(_useState7, 2),
87
+ searchInput = _useState8[0],
88
+ setSearchInput = _useState8[1];
73
89
  var filteredOptions = _constants.optionsSelectExample.filter(function (option) {
74
90
  return option.label.includes(searchInput);
75
91
  });
76
- var _useState7 = (0, _react.useState)(''),
77
- _useState8 = _slicedToArray(_useState7, 2),
78
- selectedOption = _useState8[0],
79
- setSelectedOption = _useState8[1];
92
+ var _useState9 = (0, _react.useState)(''),
93
+ _useState10 = _slicedToArray(_useState9, 2),
94
+ selectedOption = _useState10[0],
95
+ setSelectedOption = _useState10[1];
80
96
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
81
97
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_.NewSelect, {
82
98
  label: "Com input search",
83
99
  value: selectedOption,
84
100
  onChange: function onChange(value) {
85
101
  setSelectedOption(value);
86
- console.log(value);
87
102
  },
88
103
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectInputSearch.SelectInputSearch, {
89
104
  onChange: function onChange(event) {
@@ -101,17 +116,17 @@ function MultipleSelectExampleWithInputSearch() {
101
116
  });
102
117
  }
103
118
  function MultipleSelectExampleWithChip() {
104
- var _useState9 = (0, _react.useState)(''),
105
- _useState10 = _slicedToArray(_useState9, 2),
106
- searchInput = _useState10[0],
107
- setSearchInput = _useState10[1];
119
+ var _useState11 = (0, _react.useState)(''),
120
+ _useState12 = _slicedToArray(_useState11, 2),
121
+ searchInput = _useState12[0],
122
+ setSearchInput = _useState12[1];
108
123
  var filteredOptions = _constants.optionsSelectExample.filter(function (option) {
109
124
  return option.label.toLowerCase().includes(searchInput.toLowerCase());
110
125
  });
111
- var _useState11 = (0, _react.useState)([]),
112
- _useState12 = _slicedToArray(_useState11, 2),
113
- selectedOption = _useState12[0],
114
- setSelectedOption = _useState12[1];
126
+ var _useState13 = (0, _react.useState)([]),
127
+ _useState14 = _slicedToArray(_useState13, 2),
128
+ selectedOption = _useState14[0],
129
+ setSelectedOption = _useState14[1];
115
130
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
116
131
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_.NewSelect, {
117
132
  label: "Com input search",