@cashub/ui 0.21.0 → 0.22.0

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 (230) hide show
  1. package/Tab/Tab.js +9 -13
  2. package/Tab/TabList.js +14 -32
  3. package/Tab/TabPanel.js +21 -58
  4. package/Tab/TabTab.js +20 -40
  5. package/Tab/index.js +2 -10
  6. package/Tab/subComponent/TabContext.js +2 -5
  7. package/animate/Collapse.js +26 -53
  8. package/animate/Loader.js +21 -26
  9. package/animate/NumberCounter.js +22 -44
  10. package/animate/PulseRing.js +9 -21
  11. package/animate/Spinner.js +2 -10
  12. package/animate/index.js +5 -11
  13. package/backdrop/BaseBackdrop.js +2 -9
  14. package/backdrop/LoadingBackdrop.js +2 -9
  15. package/backdrop/ModalBackdrop.js +2 -9
  16. package/backdrop/index.js +3 -7
  17. package/badge/Badge.js +2 -11
  18. package/badge/BadgeDot.js +2 -10
  19. package/badge/BadgeFill.js +15 -20
  20. package/badge/BadgeWithText.js +6 -13
  21. package/badge/index.js +4 -9
  22. package/billing/BarChart.js +10 -17
  23. package/billing/Grid.js +11 -15
  24. package/billing/Header2.js +6 -9
  25. package/billing/Header3.js +9 -16
  26. package/billing/Paragraph.js +8 -14
  27. package/billing/ParagraphGroup.js +6 -9
  28. package/billing/ParagraphText.js +7 -12
  29. package/billing/Section.js +13 -23
  30. package/billing/SectionBody.js +5 -8
  31. package/billing/SectionHeader.js +7 -12
  32. package/breadcrumb/Breadcrumb.js +11 -21
  33. package/breadcrumb/index.js +1 -3
  34. package/button/Button.js +41 -38
  35. package/button/ButtonGroup.js +21 -18
  36. package/button/IconButton.js +29 -29
  37. package/button/ScrollToTopButton.js +12 -39
  38. package/button/index.js +4 -9
  39. package/callout/Callout.js +13 -26
  40. package/callout/index.js +1 -3
  41. package/chart/BarChart.js +28 -53
  42. package/chart/DoughnutChart.js +23 -62
  43. package/chart/LineChart.js +33 -55
  44. package/chart/SingleBarChart.js +11 -17
  45. package/chart/index.js +5 -12
  46. package/chart/utils/customTooltip.js +26 -43
  47. package/chart/utils/htmlLegendPlugin.js +24 -30
  48. package/chart/utils/index.js +3 -7
  49. package/chart/utils/padEmptyChartBar.js +24 -22
  50. package/container/FlexContainer.js +14 -12
  51. package/container/index.js +1 -3
  52. package/cropper/Cropper.js +21 -34
  53. package/cropper/CropperModalHandler.js +15 -21
  54. package/cropper/index.js +2 -5
  55. package/cropper/subComponent/CropImageModal.js +23 -58
  56. package/datetimePicker/DatePicker.js +103 -217
  57. package/datetimePicker/DatePickerV2.js +116 -221
  58. package/datetimePicker/DatetimePicker.js +27 -48
  59. package/datetimePicker/DatetimePickerV2.js +115 -231
  60. package/datetimePicker/TimeInput.js +9 -22
  61. package/datetimePicker/TimePicker.js +94 -151
  62. package/datetimePicker/TimePickerStyle.js +2 -9
  63. package/datetimePicker/accordion/Month.js +70 -90
  64. package/datetimePicker/accordion/Year.js +91 -135
  65. package/datetimePicker/hooks/index.js +3 -7
  66. package/datetimePicker/hooks/useChangeNumber.js +14 -27
  67. package/datetimePicker/hooks/useDecrease.js +19 -35
  68. package/datetimePicker/hooks/useIncrease.js +19 -35
  69. package/datetimePicker/index.js +7 -15
  70. package/datetimePicker/provider/constant.js +2 -3
  71. package/datetimePicker/subComponent/Accordion.js +108 -158
  72. package/datetimePicker/subComponent/CustomTimeInput.js +18 -48
  73. package/datetimePicker/subComponent/DateTimePickerContext.js +2 -5
  74. package/datetimePicker/utils/GMTDate.js +3 -7
  75. package/datetimePicker/utils/pad.js +2 -6
  76. package/datetimePicker/utils/toUTC0.js +3 -6
  77. package/descriptionList/DescriptionDetail.js +5 -10
  78. package/descriptionList/DescriptionList.js +5 -10
  79. package/descriptionList/DescriptionTerm.js +2 -9
  80. package/descriptionList/index.js +3 -7
  81. package/divider/Divider.js +9 -12
  82. package/divider/index.js +1 -3
  83. package/dropdown/Dropdown.js +28 -65
  84. package/dropdown/DropdownButtonOption.js +2 -9
  85. package/dropdown/DropdownContent.js +33 -64
  86. package/dropdown/DropdownDivOption.js +2 -9
  87. package/dropdown/DropdownItem.js +10 -16
  88. package/dropdown/DropdownLinkOption.js +2 -9
  89. package/dropdown/DropdownToggle.js +18 -38
  90. package/dropdown/index.js +6 -17
  91. package/dropdown/subComponent/DropdownContext.js +2 -5
  92. package/dropzone/FileDropzone.js +148 -302
  93. package/dropzone/ImageDropzone.js +96 -171
  94. package/dropzone/index.js +2 -5
  95. package/dropzone/subComponent/Message.js +7 -14
  96. package/figure/IconFigure.js +9 -16
  97. package/figure/ImageFigure.js +11 -17
  98. package/figure/index.js +2 -5
  99. package/file/HiddenFileInput.js +5 -14
  100. package/file/index.js +1 -3
  101. package/form/Checkbox.js +34 -43
  102. package/form/FormItem.js +2 -9
  103. package/form/Input.js +18 -15
  104. package/form/Label.js +20 -13
  105. package/form/MutedText.js +5 -10
  106. package/form/RadioButton.js +20 -32
  107. package/form/Searchbox.js +21 -65
  108. package/form/Slider.js +25 -0
  109. package/form/SwitchButton.js +34 -39
  110. package/form/Textarea.js +2 -11
  111. package/form/TreeView.js +64 -0
  112. package/form/index.js +16 -19
  113. package/grid/Column.js +17 -17
  114. package/grid/Grid.js +13 -14
  115. package/grid/index.js +2 -5
  116. package/heading/Heading1.js +5 -10
  117. package/heading/Heading2.js +9 -12
  118. package/heading/Heading3.js +21 -18
  119. package/heading/index.js +3 -7
  120. package/helmet/Helmet.js +6 -9
  121. package/helmet/index.js +2 -5
  122. package/iconbox/ApplicationIconBox.js +25 -31
  123. package/iconbox/IconBox.js +11 -24
  124. package/iconbox/IconBoxV2.js +14 -26
  125. package/iconbox/index.js +3 -7
  126. package/iconbox/subComponent/IconBoxFigure.js +25 -20
  127. package/iconbox/subComponent/IconBoxImage.js +15 -18
  128. package/image/ImageFluid.js +2 -10
  129. package/image/UploadImage.js +65 -113
  130. package/image/index.js +2 -5
  131. package/index.js +44 -130
  132. package/jsoneditor/JsonEditor.js +10 -32
  133. package/jsoneditor/index.js +1 -3
  134. package/keyframe/Pulse.js +2 -7
  135. package/keyframe/Spin.js +2 -7
  136. package/link/LinkSpan.js +22 -35
  137. package/link/index.js +1 -3
  138. package/map/GoogleMap.js +122 -175
  139. package/map/GoogleReverseGeolocation.js +79 -186
  140. package/map/LeafletMap.js +78 -132
  141. package/map/LeafletReverseGeolocation.js +49 -121
  142. package/map/index.js +4 -9
  143. package/map/subComponent/BasicLeafletMap.js +8 -14
  144. package/map/subComponent/GoogleMapContainer.js +5 -10
  145. package/map/subComponent/GoogleMapPopup.js +66 -123
  146. package/map/subComponent/GoogleMapWrapper.js +13 -32
  147. package/map/subComponent/GoogleMarkerSpiderfier.js +14 -24
  148. package/map/subComponent/LeafletDrawControl.js +47 -84
  149. package/map/subComponent/LeafletMapContainer.js +5 -10
  150. package/map/subComponent/MapSearchBoxControl.js +24 -70
  151. package/modal/StateModal.js +41 -100
  152. package/modal/TitleModal.js +89 -190
  153. package/modal/index.js +2 -5
  154. package/package.json +1 -1
  155. package/paginate/Paginate.js +40 -54
  156. package/paginate/index.js +1 -3
  157. package/popover/Popover.js +39 -87
  158. package/popover/index.js +1 -3
  159. package/qrcode/QRCode.js +10 -23
  160. package/qrcode/QRCodeContainter.js +8 -16
  161. package/qrcode/index.js +2 -5
  162. package/ribbon/Ribbon.js +4 -15
  163. package/ribbon/index.js +1 -3
  164. package/section/Section.js +57 -39
  165. package/section/SectionBody.js +15 -22
  166. package/section/SectionHeader.js +27 -27
  167. package/section/SectionToolbar.js +2 -9
  168. package/section/SectionToolbarItem.js +2 -9
  169. package/section/index.js +5 -11
  170. package/select/InputSelect.js +103 -215
  171. package/select/Select.js +204 -362
  172. package/select/index.js +2 -5
  173. package/select/subComponent/ListBox.js +9 -12
  174. package/select/subComponent/Option.js +8 -16
  175. package/select/subComponent/OptionGroup.js +2 -9
  176. package/select/subComponent/Options.js +5 -11
  177. package/select/subComponent/SearchBox.js +9 -29
  178. package/select/subComponent/SelectedMultiple.js +8 -16
  179. package/select/subComponent/SelectedSingle.js +2 -9
  180. package/styles/GlobalStyle.js +169 -91
  181. package/styles/config/breakpoint.style.js +2 -3
  182. package/styles/config/header.style.js +2 -3
  183. package/styles/config/sidebar.style.js +2 -3
  184. package/styles/index.js +2 -5
  185. package/styles/mixin/backgroundColor.js +17 -14
  186. package/styles/mixin/borderColor.js +17 -14
  187. package/styles/mixin/color.js +17 -14
  188. package/styles/mixin/colorOnBackground.js +17 -14
  189. package/styles/mixin/inputPlaceholder.js +3 -9
  190. package/styles/mixin/media.js +3 -11
  191. package/styles/mixin/rounded.js +13 -12
  192. package/styles/mixin/scrollbar.js +7 -13
  193. package/styles/theme/dark.theme.js +20 -20
  194. package/styles/theme/light.theme.js +20 -20
  195. package/styles/theme/white.theme.js +20 -20
  196. package/styles/themes.js +2 -8
  197. package/table/GridTable.js +105 -143
  198. package/table/ImageBox.js +8 -18
  199. package/table/PermissionTable.js +25 -25
  200. package/table/Table.js +137 -153
  201. package/table/__mock__/columns.js +2 -3
  202. package/table/__mock__/data.js +2 -3
  203. package/table/hooks/index.js +2 -5
  204. package/table/hooks/useCalculateDataRange.js +9 -36
  205. package/table/hooks/useGenerateSort.js +6 -17
  206. package/table/index.js +4 -9
  207. package/table/subComponent/BaseTableHeadCell.js +15 -21
  208. package/table/subComponent/GridTableFooter.js +5 -10
  209. package/table/subComponent/GridTableHeadCell.js +5 -10
  210. package/table/subComponent/Resizer.js +17 -44
  211. package/table/subComponent/TableFooter.js +5 -10
  212. package/table/subComponent/TableFooterInfo.js +2 -9
  213. package/table/subComponent/TableFooterPager.js +5 -12
  214. package/table/subComponent/TableHeadCell.js +2 -9
  215. package/table/subComponent/TableSort.js +13 -19
  216. package/tagify/TagifyStyle.js +2 -9
  217. package/tagify/Tags.js +15 -37
  218. package/tagify/index.js +2 -5
  219. package/text/Paragraph.js +25 -20
  220. package/text/index.js +1 -3
  221. package/timeline/Timeline.js +28 -37
  222. package/timeline/index.js +1 -3
  223. package/toast/CustomToastContainer.js +2 -9
  224. package/toast/MessageContainer.js +9 -18
  225. package/toast/index.js +3 -8
  226. package/toast/show.js +18 -28
  227. package/tooltip/Tooltip.js +48 -97
  228. package/tooltip/index.js +1 -3
  229. package/wizard/Wizard.js +63 -133
  230. package/wizard/index.js +1 -3
package/select/index.js CHANGED
@@ -5,19 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "InputSelect", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _InputSelect.default;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "Select", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _Select.default;
16
16
  }
17
17
  });
18
-
19
18
  var _Select = _interopRequireDefault(require("./Select"));
20
-
21
19
  var _InputSelect = _interopRequireDefault(require("./InputSelect"));
22
-
23
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -4,23 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
-
10
8
  var _templateObject;
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
-
16
- var ListBox = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n visibility: ", ";\n background: var(--color-background1);\n color: var(--font-on-background);\n border: var(--border-width) solid var(--border-color);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n width: ", "px;\n z-index: 31;\n"])), function (_ref) {
17
- var $display = _ref.$display;
11
+ const ListBox = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n visibility: ", ";\n background: var(--color-background1);\n color: var(--font-on-background);\n border: var(--border-width) solid var(--border-color);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n width: ", "px;\n z-index: 31;\n"])), _ref => {
12
+ let {
13
+ $display
14
+ } = _ref;
18
15
  return $display ? 'visible' : 'hidden';
19
- }, function (_ref2) {
20
- var width = _ref2.width;
16
+ }, _ref2 => {
17
+ let {
18
+ width
19
+ } = _ref2;
21
20
  return width;
22
21
  });
23
-
24
22
  ListBox.displayName = 'ListBox';
25
- var _default = ListBox;
26
- exports.default = _default;
23
+ var _default = exports.default = ListBox;
@@ -1,28 +1,20 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.default = void 0;
9
-
10
7
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
-
12
8
  var _templateObject, _templateObject2;
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
-
20
- var Option = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n word-break: break-all;\n padding: 12px var(--spacing-s);\n background: var(--color-background1);\n transition: background 0.3s;\n\n &:hover {\n background: var(--color-hover);\n }\n\n ", "\n"])), function (_ref) {
21
- var selected = _ref.selected,
22
- focus = _ref.focus;
12
+ const Option = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n word-break: break-all;\n padding: 12px var(--spacing-s);\n background: var(--color-background1);\n transition: background 0.3s;\n\n &:hover {\n background: var(--color-hover);\n }\n\n ", "\n"])), _ref => {
13
+ let {
14
+ selected,
15
+ focus
16
+ } = _ref;
23
17
  return (selected || focus) && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: var(--color-hover);\n "])));
24
18
  });
25
-
26
19
  Option.displayName = 'Option';
27
- var _default = Option;
28
- exports.default = _default;
20
+ var _default = exports.default = Option;
@@ -4,17 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
-
10
8
  var _templateObject;
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
-
16
- var OptionGroup = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [role='presentation'] {\n font-weight: bold;\n\n &:hover {\n background: var(--color-background1);\n }\n }\n\n [role='option'] {\n padding-left: calc(var(--spacing-s) * 2);\n }\n"])));
17
-
11
+ const OptionGroup = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [role='presentation'] {\n font-weight: bold;\n\n &:hover {\n background: var(--color-background1);\n }\n }\n\n [role='option'] {\n padding-left: calc(var(--spacing-s) * 2);\n }\n"])));
18
12
  OptionGroup.displayName = 'OptionGroup';
19
- var _default = OptionGroup;
20
- exports.default = _default;
13
+ var _default = exports.default = OptionGroup;
@@ -4,22 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
-
10
8
  var _scrollbar = _interopRequireDefault(require("../../styles/mixin/scrollbar"));
11
-
12
9
  var _templateObject;
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
-
18
- var Options = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs) 0;\n max-height: min(320px, calc(50vh - 36px - 20px - 36px));\n overflow-y: auto;\n overflow-x: visible;\n border-radius: var(--border-radius);\n\n ", "\n\n ", "\n"])), function (_ref) {
19
- var allowSearch = _ref.allowSearch;
12
+ const Options = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs) 0;\n max-height: min(320px, calc(50vh - 36px - 20px - 36px));\n overflow-y: auto;\n overflow-x: visible;\n border-radius: var(--border-radius);\n\n ", "\n\n ", "\n"])), _ref => {
13
+ let {
14
+ allowSearch
15
+ } = _ref;
20
16
  return allowSearch && "\n padding-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n ";
21
17
  }, _scrollbar.default);
22
-
23
18
  Options.displayName = 'Options';
24
- var _default = Options;
25
- exports.default = _default;
19
+ var _default = exports.default = Options;
@@ -4,49 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
11
-
12
9
  var _go = require("react-icons/go");
13
-
14
10
  var _inputPlaceholder = _interopRequireDefault(require("../../styles/mixin/inputPlaceholder"));
15
-
16
11
  var _jsxRuntime = require("react/jsx-runtime");
17
-
18
12
  var _templateObject, _templateObject2, _templateObject3;
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
14
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
23
-
24
- 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; }
25
-
26
- 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; }
27
-
28
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
-
30
- var SearchBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
31
- var handleClick = function handleClick(event) {
15
+ const SearchBox = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
16
+ const handleClick = event => {
32
17
  event.stopPropagation();
33
18
  };
34
-
35
19
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
36
20
  onClick: handleClick,
37
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_go.GoSearch, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchInput, _objectSpread({
21
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_go.GoSearch, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchInput, {
38
22
  type: "text",
39
- ref: ref
40
- }, props))]
23
+ ref: ref,
24
+ ...props
25
+ })]
41
26
  });
42
27
  });
43
-
44
- var Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs);\n\n > svg {\n color: var(--font-on-mute);\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: calc(var(--spacing-s) + var(--spacing-xs));\n }\n"])));
45
-
28
+ const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs);\n\n > svg {\n color: var(--font-on-mute);\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: calc(var(--spacing-s) + var(--spacing-xs));\n }\n"])));
46
29
  Wrapper.displayName = 'Wrapper';
47
-
48
- var SearchInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: var(--color-background1);\n color: var(--font-on-background);\n border-radius: var(--border-radius-l);\n border: var(--border-width) solid var(--border-color);\n outline: none;\n width: 100%;\n padding: 10px var(--spacing-s) 10px calc(var(--spacing-s) * 2 + 8px);\n max-height: 36px;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ", "\n"])), (0, _inputPlaceholder.default)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: var(--font-on-mute);\n "]))));
49
-
30
+ const SearchInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: var(--color-background1);\n color: var(--font-on-background);\n border-radius: var(--border-radius-l);\n border: var(--border-width) solid var(--border-color);\n outline: none;\n width: 100%;\n padding: 10px var(--spacing-s) 10px calc(var(--spacing-s) * 2 + 8px);\n max-height: 36px;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ", "\n"])), (0, _inputPlaceholder.default)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: var(--font-on-mute);\n "]))));
50
31
  SearchInput.displayName = 'SearchInput';
51
- var _default = SearchBox;
52
- exports.default = _default;
32
+ var _default = exports.default = SearchBox;
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
-
10
8
  var _fa = require("react-icons/fa");
11
-
12
9
  var _jsxRuntime = require("react/jsx-runtime");
13
-
14
10
  var _templateObject;
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
-
20
- var SelectedMultiple = function SelectedMultiple(_ref) {
21
- var content = _ref.content,
22
- onClick = _ref.onClick,
23
- disabled = _ref.disabled;
13
+ const SelectedMultiple = _ref => {
14
+ let {
15
+ content,
16
+ onClick,
17
+ disabled
18
+ } = _ref;
24
19
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Selected, {
25
20
  children: [!disabled && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
26
21
  onClick: onClick,
@@ -29,8 +24,5 @@ var SelectedMultiple = function SelectedMultiple(_ref) {
29
24
  }), content]
30
25
  });
31
26
  };
32
-
33
- var Selected = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n background: var(--color-background3);\n border-radius: var(--border-radius-l);\n padding: 0.25rem calc(var(--spacing-xs) + 4px);\n margin: 4px 10px 4px 0;\n color: var(--font-on-background);\n font-weight: var(--font-normal);\n word-break: break-all;\n\n > span {\n display: flex;\n align-items: center;\n\n > svg {\n margin-right: var(--spacing-xs);\n color: var(--font-on-background);\n }\n }\n"])));
34
-
35
- var _default = SelectedMultiple;
36
- exports.default = _default;
27
+ const Selected = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n background: var(--color-background3);\n border-radius: var(--border-radius-l);\n padding: 0.25rem calc(var(--spacing-xs) + 4px);\n margin: 4px 10px 4px 0;\n color: var(--font-on-background);\n font-weight: var(--font-normal);\n word-break: break-all;\n\n > span {\n display: flex;\n align-items: center;\n\n > svg {\n margin-right: var(--spacing-xs);\n color: var(--font-on-background);\n }\n }\n"])));
28
+ var _default = exports.default = SelectedMultiple;
@@ -4,17 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
-
10
8
  var _templateObject;
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
-
16
- var SelectedSingle = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: var(--font-on-background);\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
17
-
11
+ const SelectedSingle = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: var(--font-on-background);\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
18
12
  SelectedSingle.displayName = 'SelectedSingle';
19
- var _default = SelectedSingle;
20
- exports.default = _default;
13
+ var _default = exports.default = SelectedSingle;
@@ -4,141 +4,219 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _styledComponents = require("styled-components");
9
-
10
8
  require("../assets/css/global.css");
11
-
12
9
  var _templateObject;
13
-
14
10
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
-
16
- var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body {\n --color-white: ", ";\n --color-dark: ", ";\n --color-grey: ", ";\n --color-primary: ", ";\n --color-success: ", ";\n --color-warning: ", ";\n --color-danger: ", ";\n --color-hover: ", ";\n --color-active: ", ";\n --color-scroll-bar: ", ";\n --color-background1: ", ";\n --color-background2: ", ";\n --color-background3: ", ";\n --color-backdrop: ", ";\n\n --font-h1: ", ";\n --font-h2: ", ";\n --font-h3: ", ";\n --font-body1: ", ";\n --font-body2: ", ";\n --font-button: ", ";\n --font-caption: ", ";\n --font-family: ", ";\n --font-normal: ", ";\n --font-bold: ", ";\n --font-on-primary: ", ";\n --font-on-success: ", ";\n --font-on-warning: ", ";\n --font-on-danger: ", ";\n --font-on-background: ", ";\n --font-on-mute: ", ";\n\n --box-shadow: ", ";\n --border-color: ", ";\n --border-width: ", ";\n --border-radius-s: ", ";\n --border-radius: ", ";\n --border-radius-l: ", ";\n --border-radius-round: ", ";\n\n --spacing-xs: ", ";\n --spacing-s: ", ";\n --spacing: ", ";\n --spacing-l: ", ";\n\n background : ", ";\n }\n"])), function (_ref) {
17
- var theme = _ref.theme;
11
+ const GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body {\n --color-white: ", ";\n --color-dark: ", ";\n --color-grey: ", ";\n --color-primary: ", ";\n --color-success: ", ";\n --color-warning: ", ";\n --color-danger: ", ";\n --color-hover: ", ";\n --color-active: ", ";\n --color-scroll-bar: ", ";\n --color-background1: ", ";\n --color-background2: ", ";\n --color-background3: ", ";\n --color-backdrop: ", ";\n\n --font-h1: ", ";\n --font-h2: ", ";\n --font-h3: ", ";\n --font-body1: ", ";\n --font-body2: ", ";\n --font-button: ", ";\n --font-caption: ", ";\n --font-family: ", ";\n --font-normal: ", ";\n --font-bold: ", ";\n --font-on-primary: ", ";\n --font-on-success: ", ";\n --font-on-warning: ", ";\n --font-on-danger: ", ";\n --font-on-background: ", ";\n --font-on-mute: ", ";\n\n --box-shadow: ", ";\n --border-color: ", ";\n --border-width: ", ";\n --border-radius-s: ", ";\n --border-radius: ", ";\n --border-radius-l: ", ";\n --border-radius-round: ", ";\n\n --spacing-xs: ", ";\n --spacing-s: ", ";\n --spacing: ", ";\n --spacing-l: ", ";\n\n background : ", ";\n }\n\n .margin-bottom-s {\n margin-bottom: var(--spacing-s);\n }\n"])), _ref => {
12
+ let {
13
+ theme
14
+ } = _ref;
18
15
  return theme.colorWhite;
19
- }, function (_ref2) {
20
- var theme = _ref2.theme;
16
+ }, _ref2 => {
17
+ let {
18
+ theme
19
+ } = _ref2;
21
20
  return theme.colorDark;
22
- }, function (_ref3) {
23
- var theme = _ref3.theme;
21
+ }, _ref3 => {
22
+ let {
23
+ theme
24
+ } = _ref3;
24
25
  return theme.colorGrey;
25
- }, function (_ref4) {
26
- var theme = _ref4.theme;
26
+ }, _ref4 => {
27
+ let {
28
+ theme
29
+ } = _ref4;
27
30
  return theme.colorPrimary;
28
- }, function (_ref5) {
29
- var theme = _ref5.theme;
31
+ }, _ref5 => {
32
+ let {
33
+ theme
34
+ } = _ref5;
30
35
  return theme.colorSuccess;
31
- }, function (_ref6) {
32
- var theme = _ref6.theme;
36
+ }, _ref6 => {
37
+ let {
38
+ theme
39
+ } = _ref6;
33
40
  return theme.colorWarning;
34
- }, function (_ref7) {
35
- var theme = _ref7.theme;
41
+ }, _ref7 => {
42
+ let {
43
+ theme
44
+ } = _ref7;
36
45
  return theme.colorDanger;
37
- }, function (_ref8) {
38
- var theme = _ref8.theme;
46
+ }, _ref8 => {
47
+ let {
48
+ theme
49
+ } = _ref8;
39
50
  return theme.colorHover;
40
- }, function (_ref9) {
41
- var theme = _ref9.theme;
51
+ }, _ref9 => {
52
+ let {
53
+ theme
54
+ } = _ref9;
42
55
  return theme.colorActive;
43
- }, function (_ref10) {
44
- var theme = _ref10.theme;
56
+ }, _ref10 => {
57
+ let {
58
+ theme
59
+ } = _ref10;
45
60
  return theme.scrollBarColor;
46
- }, function (_ref11) {
47
- var theme = _ref11.theme;
61
+ }, _ref11 => {
62
+ let {
63
+ theme
64
+ } = _ref11;
48
65
  return theme.bgColor1;
49
- }, function (_ref12) {
50
- var theme = _ref12.theme;
66
+ }, _ref12 => {
67
+ let {
68
+ theme
69
+ } = _ref12;
51
70
  return theme.bgColor2;
52
- }, function (_ref13) {
53
- var theme = _ref13.theme;
71
+ }, _ref13 => {
72
+ let {
73
+ theme
74
+ } = _ref13;
54
75
  return theme.bgColor3;
55
- }, function (_ref14) {
56
- var theme = _ref14.theme;
76
+ }, _ref14 => {
77
+ let {
78
+ theme
79
+ } = _ref14;
57
80
  return theme.backdropBg;
58
- }, function (_ref15) {
59
- var theme = _ref15.theme;
81
+ }, _ref15 => {
82
+ let {
83
+ theme
84
+ } = _ref15;
60
85
  return theme.fontH1;
61
- }, function (_ref16) {
62
- var theme = _ref16.theme;
86
+ }, _ref16 => {
87
+ let {
88
+ theme
89
+ } = _ref16;
63
90
  return theme.fontH2;
64
- }, function (_ref17) {
65
- var theme = _ref17.theme;
91
+ }, _ref17 => {
92
+ let {
93
+ theme
94
+ } = _ref17;
66
95
  return theme.fontH3;
67
- }, function (_ref18) {
68
- var theme = _ref18.theme;
96
+ }, _ref18 => {
97
+ let {
98
+ theme
99
+ } = _ref18;
69
100
  return theme.fontBody1;
70
- }, function (_ref19) {
71
- var theme = _ref19.theme;
101
+ }, _ref19 => {
102
+ let {
103
+ theme
104
+ } = _ref19;
72
105
  return theme.fontBody2;
73
- }, function (_ref20) {
74
- var theme = _ref20.theme;
106
+ }, _ref20 => {
107
+ let {
108
+ theme
109
+ } = _ref20;
75
110
  return theme.fontButton;
76
- }, function (_ref21) {
77
- var theme = _ref21.theme;
111
+ }, _ref21 => {
112
+ let {
113
+ theme
114
+ } = _ref21;
78
115
  return theme.fontCaption;
79
- }, function (_ref22) {
80
- var theme = _ref22.theme;
116
+ }, _ref22 => {
117
+ let {
118
+ theme
119
+ } = _ref22;
81
120
  return theme.fontFamily;
82
- }, function (_ref23) {
83
- var theme = _ref23.theme;
121
+ }, _ref23 => {
122
+ let {
123
+ theme
124
+ } = _ref23;
84
125
  return theme.fontWeightNormal;
85
- }, function (_ref24) {
86
- var theme = _ref24.theme;
126
+ }, _ref24 => {
127
+ let {
128
+ theme
129
+ } = _ref24;
87
130
  return theme.fontWeightBold;
88
- }, function (_ref25) {
89
- var theme = _ref25.theme;
131
+ }, _ref25 => {
132
+ let {
133
+ theme
134
+ } = _ref25;
90
135
  return theme.fontOnPrimary;
91
- }, function (_ref26) {
92
- var theme = _ref26.theme;
136
+ }, _ref26 => {
137
+ let {
138
+ theme
139
+ } = _ref26;
93
140
  return theme.fontOnSuccess;
94
- }, function (_ref27) {
95
- var theme = _ref27.theme;
141
+ }, _ref27 => {
142
+ let {
143
+ theme
144
+ } = _ref27;
96
145
  return theme.fontOnWarning;
97
- }, function (_ref28) {
98
- var theme = _ref28.theme;
146
+ }, _ref28 => {
147
+ let {
148
+ theme
149
+ } = _ref28;
99
150
  return theme.fontOnDanger;
100
- }, function (_ref29) {
101
- var theme = _ref29.theme;
151
+ }, _ref29 => {
152
+ let {
153
+ theme
154
+ } = _ref29;
102
155
  return theme.fontOnBg;
103
- }, function (_ref30) {
104
- var theme = _ref30.theme;
156
+ }, _ref30 => {
157
+ let {
158
+ theme
159
+ } = _ref30;
105
160
  return theme.fontMutedColor;
106
- }, function (_ref31) {
107
- var theme = _ref31.theme;
161
+ }, _ref31 => {
162
+ let {
163
+ theme
164
+ } = _ref31;
108
165
  return theme.boxShadow;
109
- }, function (_ref32) {
110
- var theme = _ref32.theme;
166
+ }, _ref32 => {
167
+ let {
168
+ theme
169
+ } = _ref32;
111
170
  return theme.borderColor;
112
- }, function (_ref33) {
113
- var theme = _ref33.theme;
171
+ }, _ref33 => {
172
+ let {
173
+ theme
174
+ } = _ref33;
114
175
  return theme.borderWidth;
115
- }, function (_ref34) {
116
- var theme = _ref34.theme;
176
+ }, _ref34 => {
177
+ let {
178
+ theme
179
+ } = _ref34;
117
180
  return theme.borderRadiusS;
118
- }, function (_ref35) {
119
- var theme = _ref35.theme;
181
+ }, _ref35 => {
182
+ let {
183
+ theme
184
+ } = _ref35;
120
185
  return theme.borderRadius;
121
- }, function (_ref36) {
122
- var theme = _ref36.theme;
186
+ }, _ref36 => {
187
+ let {
188
+ theme
189
+ } = _ref36;
123
190
  return theme.borderRadiusL;
124
- }, function (_ref37) {
125
- var theme = _ref37.theme;
191
+ }, _ref37 => {
192
+ let {
193
+ theme
194
+ } = _ref37;
126
195
  return theme.borderRadiusRound;
127
- }, function (_ref38) {
128
- var theme = _ref38.theme;
196
+ }, _ref38 => {
197
+ let {
198
+ theme
199
+ } = _ref38;
129
200
  return theme.spacerXS;
130
- }, function (_ref39) {
131
- var theme = _ref39.theme;
201
+ }, _ref39 => {
202
+ let {
203
+ theme
204
+ } = _ref39;
132
205
  return theme.spacerS;
133
- }, function (_ref40) {
134
- var theme = _ref40.theme;
206
+ }, _ref40 => {
207
+ let {
208
+ theme
209
+ } = _ref40;
135
210
  return theme.spacer;
136
- }, function (_ref41) {
137
- var theme = _ref41.theme;
211
+ }, _ref41 => {
212
+ let {
213
+ theme
214
+ } = _ref41;
138
215
  return theme.spacerL;
139
- }, function (_ref42) {
140
- var theme = _ref42.theme;
216
+ }, _ref42 => {
217
+ let {
218
+ theme
219
+ } = _ref42;
141
220
  return theme.bgColor1;
142
221
  });
143
- var _default = GlobalStyle;
144
- exports.default = _default;
222
+ var _default = exports.default = GlobalStyle;
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var breakpoints = {
7
+ const breakpoints = {
8
8
  desktop: 1920,
9
9
  laptop: 1200,
10
10
  tablet: 768,
11
11
  mobile: 576
12
12
  };
13
- var _default = breakpoints;
14
- exports.default = _default;
13
+ var _default = exports.default = breakpoints;
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var headerStyle = {
7
+ const headerStyle = {
8
8
  height: '64px'
9
9
  };
10
- var _default = headerStyle;
11
- exports.default = _default;
10
+ var _default = exports.default = headerStyle;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var sidebarStyle = {
7
+ const sidebarStyle = {
8
8
  close: {
9
9
  width: '72px',
10
10
  height: '100%'
@@ -14,5 +14,4 @@ var sidebarStyle = {
14
14
  height: '100%'
15
15
  }
16
16
  };
17
- var _default = sidebarStyle;
18
- exports.default = _default;
17
+ var _default = exports.default = sidebarStyle;
package/styles/index.js CHANGED
@@ -5,19 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "GlobalStyle", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _GlobalStyle.default;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "themes", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _themes.default;
16
16
  }
17
17
  });
18
-
19
18
  var _GlobalStyle = _interopRequireDefault(require("./GlobalStyle"));
20
-
21
19
  var _themes = _interopRequireDefault(require("./themes"));
22
-
23
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }