@cashub/ui 0.21.0 → 0.21.1

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 (229) 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 +9 -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 +13 -15
  104. package/form/Label.js +10 -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 +14 -0
  109. package/form/SwitchButton.js +34 -39
  110. package/form/Textarea.js +2 -11
  111. package/form/index.js +9 -19
  112. package/grid/Column.js +17 -17
  113. package/grid/Grid.js +13 -14
  114. package/grid/index.js +2 -5
  115. package/heading/Heading1.js +5 -10
  116. package/heading/Heading2.js +9 -12
  117. package/heading/Heading3.js +21 -18
  118. package/heading/index.js +3 -7
  119. package/helmet/Helmet.js +6 -9
  120. package/helmet/index.js +2 -5
  121. package/iconbox/ApplicationIconBox.js +25 -31
  122. package/iconbox/IconBox.js +11 -24
  123. package/iconbox/IconBoxV2.js +14 -26
  124. package/iconbox/index.js +3 -7
  125. package/iconbox/subComponent/IconBoxFigure.js +25 -20
  126. package/iconbox/subComponent/IconBoxImage.js +15 -18
  127. package/image/ImageFluid.js +2 -10
  128. package/image/UploadImage.js +65 -113
  129. package/image/index.js +2 -5
  130. package/index.js +44 -130
  131. package/jsoneditor/JsonEditor.js +10 -32
  132. package/jsoneditor/index.js +1 -3
  133. package/keyframe/Pulse.js +2 -7
  134. package/keyframe/Spin.js +2 -7
  135. package/link/LinkSpan.js +22 -35
  136. package/link/index.js +1 -3
  137. package/map/GoogleMap.js +122 -175
  138. package/map/GoogleReverseGeolocation.js +79 -186
  139. package/map/LeafletMap.js +78 -132
  140. package/map/LeafletReverseGeolocation.js +49 -121
  141. package/map/index.js +4 -9
  142. package/map/subComponent/BasicLeafletMap.js +8 -14
  143. package/map/subComponent/GoogleMapContainer.js +5 -10
  144. package/map/subComponent/GoogleMapPopup.js +66 -123
  145. package/map/subComponent/GoogleMapWrapper.js +13 -32
  146. package/map/subComponent/GoogleMarkerSpiderfier.js +14 -24
  147. package/map/subComponent/LeafletDrawControl.js +47 -84
  148. package/map/subComponent/LeafletMapContainer.js +5 -10
  149. package/map/subComponent/MapSearchBoxControl.js +24 -70
  150. package/modal/StateModal.js +41 -100
  151. package/modal/TitleModal.js +89 -190
  152. package/modal/index.js +2 -5
  153. package/package.json +1 -1
  154. package/paginate/Paginate.js +40 -54
  155. package/paginate/index.js +1 -3
  156. package/popover/Popover.js +39 -87
  157. package/popover/index.js +1 -3
  158. package/qrcode/QRCode.js +10 -23
  159. package/qrcode/QRCodeContainter.js +8 -16
  160. package/qrcode/index.js +2 -5
  161. package/ribbon/Ribbon.js +4 -15
  162. package/ribbon/index.js +1 -3
  163. package/section/Section.js +57 -39
  164. package/section/SectionBody.js +15 -22
  165. package/section/SectionHeader.js +27 -27
  166. package/section/SectionToolbar.js +2 -9
  167. package/section/SectionToolbarItem.js +2 -9
  168. package/section/index.js +5 -11
  169. package/select/InputSelect.js +103 -215
  170. package/select/Select.js +204 -362
  171. package/select/index.js +2 -5
  172. package/select/subComponent/ListBox.js +9 -12
  173. package/select/subComponent/Option.js +8 -16
  174. package/select/subComponent/OptionGroup.js +2 -9
  175. package/select/subComponent/Options.js +5 -11
  176. package/select/subComponent/SearchBox.js +9 -29
  177. package/select/subComponent/SelectedMultiple.js +8 -16
  178. package/select/subComponent/SelectedSingle.js +2 -9
  179. package/styles/GlobalStyle.js +169 -91
  180. package/styles/config/breakpoint.style.js +2 -3
  181. package/styles/config/header.style.js +2 -3
  182. package/styles/config/sidebar.style.js +2 -3
  183. package/styles/index.js +2 -5
  184. package/styles/mixin/backgroundColor.js +17 -14
  185. package/styles/mixin/borderColor.js +17 -14
  186. package/styles/mixin/color.js +17 -14
  187. package/styles/mixin/colorOnBackground.js +17 -14
  188. package/styles/mixin/inputPlaceholder.js +3 -9
  189. package/styles/mixin/media.js +3 -11
  190. package/styles/mixin/rounded.js +13 -12
  191. package/styles/mixin/scrollbar.js +7 -13
  192. package/styles/theme/dark.theme.js +20 -20
  193. package/styles/theme/light.theme.js +20 -20
  194. package/styles/theme/white.theme.js +20 -20
  195. package/styles/themes.js +2 -8
  196. package/table/GridTable.js +105 -143
  197. package/table/ImageBox.js +8 -18
  198. package/table/PermissionTable.js +25 -25
  199. package/table/Table.js +137 -153
  200. package/table/__mock__/columns.js +2 -3
  201. package/table/__mock__/data.js +2 -3
  202. package/table/hooks/index.js +2 -5
  203. package/table/hooks/useCalculateDataRange.js +9 -36
  204. package/table/hooks/useGenerateSort.js +6 -17
  205. package/table/index.js +4 -9
  206. package/table/subComponent/BaseTableHeadCell.js +15 -21
  207. package/table/subComponent/GridTableFooter.js +5 -10
  208. package/table/subComponent/GridTableHeadCell.js +5 -10
  209. package/table/subComponent/Resizer.js +17 -44
  210. package/table/subComponent/TableFooter.js +5 -10
  211. package/table/subComponent/TableFooterInfo.js +2 -9
  212. package/table/subComponent/TableFooterPager.js +5 -12
  213. package/table/subComponent/TableHeadCell.js +2 -9
  214. package/table/subComponent/TableSort.js +13 -19
  215. package/tagify/TagifyStyle.js +2 -9
  216. package/tagify/Tags.js +15 -37
  217. package/tagify/index.js +2 -5
  218. package/text/Paragraph.js +25 -20
  219. package/text/index.js +1 -3
  220. package/timeline/Timeline.js +28 -37
  221. package/timeline/index.js +1 -3
  222. package/toast/CustomToastContainer.js +2 -9
  223. package/toast/MessageContainer.js +9 -18
  224. package/toast/index.js +3 -8
  225. package/toast/show.js +18 -28
  226. package/tooltip/Tooltip.js +48 -97
  227. package/tooltip/index.js +1 -3
  228. package/wizard/Wizard.js +63 -133
  229. package/wizard/index.js +1 -3
@@ -4,25 +4,28 @@ 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
  var _templateObject;
11
-
12
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
-
14
- var backgroundColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
15
- var primary = _ref.primary;
10
+ const backgroundColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
11
+ let {
12
+ primary
13
+ } = _ref;
16
14
  return primary && 'background-color: var(--color-primary);';
17
- }, function (_ref2) {
18
- var success = _ref2.success;
15
+ }, _ref2 => {
16
+ let {
17
+ success
18
+ } = _ref2;
19
19
  return success && 'background-color: var(--color-success);';
20
- }, function (_ref3) {
21
- var warning = _ref3.warning;
20
+ }, _ref3 => {
21
+ let {
22
+ warning
23
+ } = _ref3;
22
24
  return warning && 'background-color: var(--color-warning);';
23
- }, function (_ref4) {
24
- var danger = _ref4.danger;
25
+ }, _ref4 => {
26
+ let {
27
+ danger
28
+ } = _ref4;
25
29
  return danger && 'background-color: var(--color-danger);';
26
30
  });
27
- var _default = backgroundColor;
28
- exports.default = _default;
31
+ var _default = exports.default = backgroundColor;
@@ -4,25 +4,28 @@ 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
  var _templateObject;
11
-
12
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
-
14
- var borderColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
15
- var primary = _ref.primary;
10
+ const borderColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
11
+ let {
12
+ primary
13
+ } = _ref;
16
14
  return primary && 'border-color: var(--color-primary);';
17
- }, function (_ref2) {
18
- var success = _ref2.success;
15
+ }, _ref2 => {
16
+ let {
17
+ success
18
+ } = _ref2;
19
19
  return success && 'border-color: var(--color-success);';
20
- }, function (_ref3) {
21
- var warning = _ref3.warning;
20
+ }, _ref3 => {
21
+ let {
22
+ warning
23
+ } = _ref3;
22
24
  return warning && 'border-color: var(--color-warning);';
23
- }, function (_ref4) {
24
- var danger = _ref4.danger;
25
+ }, _ref4 => {
26
+ let {
27
+ danger
28
+ } = _ref4;
25
29
  return danger && 'border-color: var(--color-danger);';
26
30
  });
27
- var _default = borderColor;
28
- exports.default = _default;
31
+ var _default = exports.default = borderColor;
@@ -4,25 +4,28 @@ 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
  var _templateObject;
11
-
12
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
-
14
- var color = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
15
- var primary = _ref.primary;
10
+ const color = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
11
+ let {
12
+ primary
13
+ } = _ref;
16
14
  return primary && 'color: var(--color-primary);';
17
- }, function (_ref2) {
18
- var success = _ref2.success;
15
+ }, _ref2 => {
16
+ let {
17
+ success
18
+ } = _ref2;
19
19
  return success && 'color: var(--color-success);';
20
- }, function (_ref3) {
21
- var warning = _ref3.warning;
20
+ }, _ref3 => {
21
+ let {
22
+ warning
23
+ } = _ref3;
22
24
  return warning && 'color: var(--color-warning);';
23
- }, function (_ref4) {
24
- var danger = _ref4.danger;
25
+ }, _ref4 => {
26
+ let {
27
+ danger
28
+ } = _ref4;
25
29
  return danger && 'color: var(--color-danger);';
26
30
  });
27
- var _default = color;
28
- exports.default = _default;
31
+ var _default = exports.default = color;
@@ -4,25 +4,28 @@ 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
  var _templateObject;
11
-
12
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
-
14
- var colorOnBackground = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
15
- var primary = _ref.primary;
10
+ const colorOnBackground = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
11
+ let {
12
+ primary
13
+ } = _ref;
16
14
  return primary && 'color: var(--font-on-primary);';
17
- }, function (_ref2) {
18
- var success = _ref2.success;
15
+ }, _ref2 => {
16
+ let {
17
+ success
18
+ } = _ref2;
19
19
  return success && 'color: var(--font-on-success);';
20
- }, function (_ref3) {
21
- var warning = _ref3.warning;
20
+ }, _ref3 => {
21
+ let {
22
+ warning
23
+ } = _ref3;
22
24
  return warning && 'color: var(--font-on-warning);';
23
- }, function (_ref4) {
24
- var danger = _ref4.danger;
25
+ }, _ref4 => {
26
+ let {
27
+ danger
28
+ } = _ref4;
25
29
  return danger && 'color: var(--font-on-danger);';
26
30
  });
27
- var _default = colorOnBackground;
28
- exports.default = _default;
31
+ var _default = exports.default = colorOnBackground;
@@ -4,16 +4,10 @@ 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
  var _templateObject;
11
-
12
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
-
14
- var inputPlaceholder = function inputPlaceholder() {
15
- return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ::placeholder {\n ", "\n }\n\n ::-moz-placeholder {\n ", "\n opacity: 1;\n }\n\n // Internet Explorer 10+\n :-ms-input-placeholder {\n ", "\n }\n\n // Safari and Chrome\n ::-webkit-input-placeholder {\n ", "\n }\n "])), _styledComponents.css.apply(void 0, arguments), _styledComponents.css.apply(void 0, arguments), _styledComponents.css.apply(void 0, arguments), _styledComponents.css.apply(void 0, arguments));
10
+ const inputPlaceholder = function () {
11
+ return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ::placeholder {\n ", "\n }\n\n ::-moz-placeholder {\n ", "\n opacity: 1;\n }\n\n // Internet Explorer 10+\n :-ms-input-placeholder {\n ", "\n }\n\n // Safari and Chrome\n ::-webkit-input-placeholder {\n ", "\n }\n "])), (0, _styledComponents.css)(...arguments), (0, _styledComponents.css)(...arguments), (0, _styledComponents.css)(...arguments), (0, _styledComponents.css)(...arguments));
16
12
  };
17
-
18
- var _default = inputPlaceholder;
19
- exports.default = _default;
13
+ var _default = exports.default = inputPlaceholder;
@@ -4,24 +4,16 @@ 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
  var _breakpoint = _interopRequireDefault(require("../config/breakpoint.style"));
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
12
  // Iterate through the breakpoint and create a media template
19
- var media = Object.keys(_breakpoint.default).reduce(function (func, label) {
13
+ const media = Object.keys(_breakpoint.default).reduce((func, label) => {
20
14
  func[label] = function () {
21
- return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n ", "\n }\n "])), _breakpoint.default[label], _styledComponents.css.apply(void 0, arguments));
15
+ return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n ", "\n }\n "])), _breakpoint.default[label], (0, _styledComponents.css)(...arguments));
22
16
  };
23
-
24
17
  return func;
25
18
  }, {});
26
- var _default = media;
27
- exports.default = _default;
19
+ var _default = exports.default = media;
@@ -4,22 +4,23 @@ 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
  var _templateObject;
11
-
12
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
-
14
- var rounded = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
15
- var roundedS = _ref.roundedS;
10
+ const rounded = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
11
+ let {
12
+ roundedS
13
+ } = _ref;
16
14
  return roundedS && 'border-radius: var(--border-radius-s);';
17
- }, function (_ref2) {
18
- var rounded = _ref2.rounded;
15
+ }, _ref2 => {
16
+ let {
17
+ rounded
18
+ } = _ref2;
19
19
  return rounded && 'border-radius: var(--border-radius);';
20
- }, function (_ref3) {
21
- var roundedCircle = _ref3.roundedCircle;
20
+ }, _ref3 => {
21
+ let {
22
+ roundedCircle
23
+ } = _ref3;
22
24
  return roundedCircle && 'border-radius: var(--border-radius-round);';
23
25
  });
24
- var _default = rounded;
25
- exports.default = _default;
26
+ var _default = exports.default = rounded;
@@ -4,25 +4,19 @@ 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
  var _templateObject;
11
-
12
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
-
14
- var scrollbar = function scrollbar(_ref) {
15
- var size = _ref.size;
16
- var scrollbarWidth = '12px';
17
- var thumbWidth = '4px';
18
-
10
+ const scrollbar = _ref => {
11
+ let {
12
+ size
13
+ } = _ref;
14
+ let scrollbarWidth = '12px';
15
+ let thumbWidth = '4px';
19
16
  if (size === 'large') {
20
17
  scrollbarWidth = '24px';
21
18
  thumbWidth = '8px';
22
19
  }
23
-
24
20
  return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: var(--color-scroll-bar);\n background-clip: padding-box;\n border: ", " solid transparent;\n border-radius: var(--border-radius);\n }\n "])), scrollbarWidth, scrollbarWidth, thumbWidth);
25
21
  };
26
-
27
- var _default = scrollbar;
28
- exports.default = _default;
22
+ var _default = exports.default = scrollbar;
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- 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; }
9
-
10
- 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; }
11
-
12
- 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; }
13
-
14
7
  // Currently, some style is all same for all viewport size
15
8
  // Common color style
16
- var colorStyle = {
9
+ const colorStyle = {
17
10
  colorWhite: '#ffffff',
18
11
  colorDark: '#000000',
19
12
  colorGrey: '#5b5f6f',
@@ -28,9 +21,10 @@ var colorStyle = {
28
21
  bgColor2: '#222143',
29
22
  bgColor3: '#2d2a5d',
30
23
  backdropBg: 'rgba(0, 0, 0, 0.75)'
31
- }; // Common font style
24
+ };
32
25
 
33
- var fontStyle = {
26
+ // Common font style
27
+ const fontStyle = {
34
28
  fontH1: '2.25rem',
35
29
  fontH2: '1.5rem',
36
30
  fontH3: '1.25rem',
@@ -47,10 +41,13 @@ var fontStyle = {
47
41
  fontOnDanger: colorStyle.colorWhite,
48
42
  fontOnBg: colorStyle.colorWhite,
49
43
  fontMutedColor: 'rgba(255, 255, 255, 0.5)'
50
- }; // Theme stylesheet
44
+ };
51
45
 
52
- var darkTheme = {
53
- desktop: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
46
+ // Theme stylesheet
47
+ const darkTheme = {
48
+ desktop: {
49
+ ...fontStyle,
50
+ ...colorStyle,
54
51
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
55
52
  borderColor: colorStyle.colorGrey,
56
53
  borderWidth: '1px',
@@ -62,8 +59,10 @@ var darkTheme = {
62
59
  spacerS: '1rem',
63
60
  spacer: '1.5rem',
64
61
  spacerL: '2rem'
65
- }),
66
- tablet: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
62
+ },
63
+ tablet: {
64
+ ...fontStyle,
65
+ ...colorStyle,
67
66
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
68
67
  borderColor: colorStyle.colorGrey,
69
68
  borderWidth: '1px',
@@ -75,8 +74,10 @@ var darkTheme = {
75
74
  spacerS: '0.75rem',
76
75
  spacer: '1rem',
77
76
  spacerL: '1.25rem'
78
- }),
79
- mobile: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
77
+ },
78
+ mobile: {
79
+ ...fontStyle,
80
+ ...colorStyle,
80
81
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
81
82
  borderColor: colorStyle.colorGrey,
82
83
  borderWidth: '1px',
@@ -88,7 +89,6 @@ var darkTheme = {
88
89
  spacerS: '0.75rem',
89
90
  spacer: '1rem',
90
91
  spacerL: '1.25rem'
91
- })
92
+ }
92
93
  };
93
- var _default = darkTheme;
94
- exports.default = _default;
94
+ var _default = exports.default = darkTheme;
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- 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; }
9
-
10
- 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; }
11
-
12
- 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; }
13
-
14
7
  // Currently, some style is all same for all viewport size
15
8
  // Common color style
16
- var colorStyle = {
9
+ const colorStyle = {
17
10
  colorWhite: '#ffffff',
18
11
  colorDark: '#353351',
19
12
  colorGrey: '#989cad',
@@ -28,9 +21,10 @@ var colorStyle = {
28
21
  bgColor2: '#F8F4FF',
29
22
  bgColor3: '#E6E1FF',
30
23
  backdropBg: 'rgba(0, 0, 0, 0.75)'
31
- }; // Common font style
24
+ };
32
25
 
33
- var fontStyle = {
26
+ // Common font style
27
+ const fontStyle = {
34
28
  fontH1: '2.25rem',
35
29
  fontH2: '1.5rem',
36
30
  fontH3: '1.25rem',
@@ -47,10 +41,13 @@ var fontStyle = {
47
41
  fontOnDanger: colorStyle.colorDark,
48
42
  fontOnBg: colorStyle.colorDark,
49
43
  fontMutedColor: 'rgba(53, 51, 81, 0.6)'
50
- }; // Theme stylesheet
44
+ };
51
45
 
52
- var lightTheme = {
53
- desktop: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
46
+ // Theme stylesheet
47
+ const lightTheme = {
48
+ desktop: {
49
+ ...fontStyle,
50
+ ...colorStyle,
54
51
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
55
52
  borderColor: colorStyle.colorGrey,
56
53
  borderWidth: '1px',
@@ -62,8 +59,10 @@ var lightTheme = {
62
59
  spacerS: '1rem',
63
60
  spacer: '1.5rem',
64
61
  spacerL: '2rem'
65
- }),
66
- tablet: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
62
+ },
63
+ tablet: {
64
+ ...fontStyle,
65
+ ...colorStyle,
67
66
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
68
67
  borderColor: colorStyle.colorGrey,
69
68
  borderWidth: '1px',
@@ -75,8 +74,10 @@ var lightTheme = {
75
74
  spacerS: '0.75rem',
76
75
  spacer: '1rem',
77
76
  spacerL: '1.25rem'
78
- }),
79
- mobile: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
77
+ },
78
+ mobile: {
79
+ ...fontStyle,
80
+ ...colorStyle,
80
81
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
81
82
  borderColor: colorStyle.colorGrey,
82
83
  borderWidth: '1px',
@@ -88,7 +89,6 @@ var lightTheme = {
88
89
  spacerS: '0.75rem',
89
90
  spacer: '1rem',
90
91
  spacerL: '1.25rem'
91
- })
92
+ }
92
93
  };
93
- var _default = lightTheme;
94
- exports.default = _default;
94
+ var _default = exports.default = lightTheme;
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- 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; }
9
-
10
- 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; }
11
-
12
- 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; }
13
-
14
7
  // Currently, some style is all same for all viewport size
15
8
  // Common color style
16
- var colorStyle = {
9
+ const colorStyle = {
17
10
  colorWhite: '#ffffff',
18
11
  colorDark: '#353351',
19
12
  colorGrey: '#b7bbcd',
@@ -28,9 +21,10 @@ var colorStyle = {
28
21
  bgColor2: '#F7F7F7',
29
22
  bgColor3: '#FFFFFF',
30
23
  backdropBg: 'rgba(0, 0, 0, 0.75)'
31
- }; // Common font style
24
+ };
32
25
 
33
- var fontStyle = {
26
+ // Common font style
27
+ const fontStyle = {
34
28
  fontH1: '2.25rem',
35
29
  fontH2: '1.5rem',
36
30
  fontH3: '1.25rem',
@@ -47,10 +41,13 @@ var fontStyle = {
47
41
  fontOnDanger: colorStyle.colorDark,
48
42
  fontOnBg: colorStyle.colorDark,
49
43
  fontMutedColor: 'rgba(53, 51, 81, 0.6)'
50
- }; // Theme stylesheet
44
+ };
51
45
 
52
- var whiteTheme = {
53
- desktop: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
46
+ // Theme stylesheet
47
+ const whiteTheme = {
48
+ desktop: {
49
+ ...fontStyle,
50
+ ...colorStyle,
54
51
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
55
52
  borderColor: colorStyle.colorGrey,
56
53
  borderWidth: '1px',
@@ -62,8 +59,10 @@ var whiteTheme = {
62
59
  spacerS: '1rem',
63
60
  spacer: '1.5rem',
64
61
  spacerL: '2rem'
65
- }),
66
- tablet: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
62
+ },
63
+ tablet: {
64
+ ...fontStyle,
65
+ ...colorStyle,
67
66
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
68
67
  borderColor: colorStyle.colorGrey,
69
68
  borderWidth: '1px',
@@ -75,8 +74,10 @@ var whiteTheme = {
75
74
  spacerS: '0.75rem',
76
75
  spacer: '1rem',
77
76
  spacerL: '1.25rem'
78
- }),
79
- mobile: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
77
+ },
78
+ mobile: {
79
+ ...fontStyle,
80
+ ...colorStyle,
80
81
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
81
82
  borderColor: colorStyle.colorGrey,
82
83
  borderWidth: '1px',
@@ -88,7 +89,6 @@ var whiteTheme = {
88
89
  spacerS: '0.75rem',
89
90
  spacer: '1rem',
90
91
  spacerL: '1.25rem'
91
- })
92
+ }
92
93
  };
93
- var _default = whiteTheme;
94
- exports.default = _default;
94
+ var _default = exports.default = whiteTheme;
package/styles/themes.js CHANGED
@@ -4,19 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _white = _interopRequireDefault(require("./theme/white.theme"));
9
-
10
8
  var _light = _interopRequireDefault(require("./theme/light.theme"));
11
-
12
9
  var _dark = _interopRequireDefault(require("./theme/dark.theme"));
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- var themes = {
11
+ const themes = {
17
12
  White: _white.default,
18
13
  Light: _light.default,
19
14
  Dark: _dark.default
20
15
  };
21
- var _default = themes;
22
- exports.default = _default;
16
+ var _default = exports.default = themes;