@cashub/ui 0.46.1 → 0.48.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 (179) hide show
  1. package/Tab/TabList.js +38 -26
  2. package/Tab/TabPanel.js +13 -20
  3. package/Tab/TabTab.js +36 -24
  4. package/Tab/index.js +15 -1
  5. package/Tab/subComponent/TabListV2.js +25 -0
  6. package/Tab/subComponent/TabPanelV2.js +52 -0
  7. package/Tab/subComponent/TabTabV2.js +63 -0
  8. package/VerticalTab/TabList.js +13 -18
  9. package/VerticalTab/TabPanel.js +16 -20
  10. package/VerticalTab/TabTab.js +40 -21
  11. package/VerticalTab/VerticalTab.js +8 -4
  12. package/alert/Alert.js +12 -5
  13. package/animate/Collapse.js +5 -7
  14. package/animate/Loader.js +18 -7
  15. package/animate/PulseRing.js +18 -5
  16. package/animate/Spinner.js +8 -3
  17. package/backdrop/BaseBackdrop.js +9 -3
  18. package/backdrop/LoadingBackdrop.js +7 -3
  19. package/backdrop/ModalBackdrop.js +5 -3
  20. package/badge/Badge.js +15 -3
  21. package/badge/BadgeDot.js +8 -3
  22. package/badge/BadgeFill.js +24 -6
  23. package/badge/BadgeWithText.js +13 -3
  24. package/billing/BarChart.js +1 -1
  25. package/breadcrumb/Breadcrumb.js +42 -3
  26. package/button/Button.js +88 -20
  27. package/button/ButtonGroup.js +33 -9
  28. package/button/IconButton.js +37 -10
  29. package/button/ScrollToTopButton.js +12 -4
  30. package/callout/Callout.js +37 -8
  31. package/chart/BarChart.js +10 -17
  32. package/chart/DoughnutChart.js +34 -20
  33. package/chart/LineChart.js +14 -20
  34. package/chart/SingleBarChart.js +22 -5
  35. package/chart/utils/centerTextPlugin.js +2 -2
  36. package/chart/utils/customTooltip.js +7 -7
  37. package/chart/utils/htmlLegendPlugin.js +1 -1
  38. package/container/FlexContainer.js +15 -7
  39. package/cropper/Cropper.js +1 -2
  40. package/datetimePicker/DatePicker.js +80 -26
  41. package/datetimePicker/DatePickerV2.js +95 -36
  42. package/datetimePicker/DatetimePicker.js +174 -11
  43. package/datetimePicker/DatetimePickerV2.js +87 -33
  44. package/datetimePicker/DatetimePickerV3.js +174 -11
  45. package/datetimePicker/TimeInput.js +35 -10
  46. package/datetimePicker/TimePicker.js +77 -22
  47. package/datetimePicker/TimePickerStyle.js +53 -3
  48. package/datetimePicker/TimePickerV2.js +54 -21
  49. package/datetimePicker/accordion/Month.js +93 -16
  50. package/datetimePicker/accordion/Year.js +96 -18
  51. package/datetimePicker/hooks/useChangeNumber.js +3 -6
  52. package/datetimePicker/hooks/useDecrease.js +3 -6
  53. package/datetimePicker/hooks/useIncrease.js +3 -6
  54. package/datetimePicker/subComponent/Accordion.js +101 -20
  55. package/descriptionList/DescriptionDetail.js +15 -4
  56. package/descriptionList/DescriptionList.js +12 -4
  57. package/descriptionList/DescriptionTerm.js +5 -3
  58. package/divider/Divider.js +15 -6
  59. package/dropdown/DropdownButtonOption.js +22 -6
  60. package/dropdown/DropdownContent.js +29 -15
  61. package/dropdown/DropdownDivOption.js +17 -3
  62. package/dropdown/DropdownLinkOption.js +14 -3
  63. package/dropdown/DropdownToggle.js +7 -15
  64. package/dropzone/FileDropzone.js +121 -22
  65. package/dropzone/ImageDropzone.js +83 -14
  66. package/dropzone/subComponent/Message.js +11 -4
  67. package/figure/IconFigure.js +16 -7
  68. package/figure/ImageFigure.js +19 -6
  69. package/file/HiddenFileInput.js +3 -3
  70. package/form/Checkbox.js +74 -13
  71. package/form/Fieldset.js +9 -3
  72. package/form/FormItem.js +10 -5
  73. package/form/Input.js +40 -7
  74. package/form/Label.js +34 -10
  75. package/form/MutedText.js +8 -4
  76. package/form/PasswordInput.js +20 -13
  77. package/form/RadioButton.js +55 -8
  78. package/form/SearchSelect.js +64 -12
  79. package/form/Searchbox.js +45 -19
  80. package/form/Slider.js +28 -10
  81. package/form/SwitchButton.js +48 -14
  82. package/form/Textarea.js +30 -3
  83. package/form/TreeView.js +13 -6
  84. package/grid/Column.js +23 -10
  85. package/grid/Grid.js +14 -6
  86. package/heading/Heading1.js +8 -4
  87. package/heading/Heading2.js +11 -5
  88. package/heading/Heading3.js +20 -8
  89. package/iconbox/ApplicationIconBox.js +48 -12
  90. package/iconbox/IconBox.js +31 -7
  91. package/iconbox/IconBoxV2.js +33 -8
  92. package/iconbox/subComponent/IconBoxFigure.js +17 -9
  93. package/iconbox/subComponent/IconBoxImage.js +21 -8
  94. package/image/ImageFluid.js +7 -3
  95. package/image/UploadImage.js +66 -18
  96. package/index.js +8 -1
  97. package/jsoneditor/JsonEditor.js +121 -15
  98. package/keyframe/Pulse.js +13 -3
  99. package/keyframe/Spin.js +5 -3
  100. package/layout/Aside.js +30 -5
  101. package/layout/Backdrop.js +8 -4
  102. package/layout/Container.js +21 -5
  103. package/layout/Footer.js +26 -7
  104. package/layout/Sidebar.jsx +33 -3
  105. package/link/LinkSpan.js +37 -19
  106. package/map/GoogleMap.js +3 -7
  107. package/map/GoogleReverseGeolocation.js +6 -3
  108. package/map/LeafletMap.js +2 -2
  109. package/map/subComponent/GoogleMapContainer.js +16 -4
  110. package/map/subComponent/GoogleMapPopup.js +7 -10
  111. package/map/subComponent/GoogleMapWrapper.js +8 -15
  112. package/map/subComponent/LeafletDrawControl.js +9 -7
  113. package/map/subComponent/LeafletMapContainer.js +159 -4
  114. package/modal/StateModal.js +49 -28
  115. package/modal/TitleModal.js +70 -29
  116. package/package.json +1 -1
  117. package/page/Disclaimer.js +119 -3
  118. package/paginate/Paginate.js +54 -12
  119. package/popover/Popover.js +30 -25
  120. package/qrcode/QRCode.js +20 -6
  121. package/qrcode/QRCodeContainter.js +12 -4
  122. package/ribbon/Ribbon.js +29 -4
  123. package/section/Section.js +68 -20
  124. package/section/SectionBody.js +29 -8
  125. package/section/SectionHeader.js +36 -11
  126. package/section/SectionToolbar.js +9 -3
  127. package/section/SectionToolbarItem.js +8 -3
  128. package/select/InputSelect.js +16 -23
  129. package/select/Select.js +112 -43
  130. package/select/subComponent/Checkbox.js +24 -5
  131. package/select/subComponent/Footer.js +4 -3
  132. package/select/subComponent/ListBox.js +12 -5
  133. package/select/subComponent/Option.js +27 -7
  134. package/select/subComponent/OptionGroup.js +13 -3
  135. package/select/subComponent/Options.js +18 -5
  136. package/select/subComponent/SearchBox.js +34 -12
  137. package/select/subComponent/SelectedMultipleTags.js +21 -3
  138. package/select/subComponent/SelectedMultipleText.js +19 -4
  139. package/select/subComponent/SelectedSingle.js +7 -3
  140. package/styles/GlobalStyle.js +156 -45
  141. package/styles/mixin/backgroundColor.js +16 -8
  142. package/styles/mixin/borderColor.js +13 -7
  143. package/styles/mixin/color.js +13 -7
  144. package/styles/mixin/colorOnBackground.js +13 -7
  145. package/styles/mixin/inputPlaceholder.js +20 -3
  146. package/styles/mixin/media.js +5 -3
  147. package/styles/mixin/rounded.js +10 -6
  148. package/styles/mixin/scrollbar.js +13 -3
  149. package/styles/theme/dark.theme.js +15 -14
  150. package/styles/theme/light.theme.js +15 -14
  151. package/styles/theme/white.theme.js +15 -14
  152. package/table/GridTable.js +71 -33
  153. package/table/ImageBox.js +15 -5
  154. package/table/InfiniteGridTable.js +92 -46
  155. package/table/PermissionTable.js +32 -10
  156. package/table/SimpleGridTable.js +143 -0
  157. package/table/Table.js +198 -48
  158. package/table/__mock__/columns.js +1 -1
  159. package/table/index.js +7 -0
  160. package/table/subComponent/BaseTableHeadCell.js +37 -8
  161. package/table/subComponent/GridTableFooter.js +10 -4
  162. package/table/subComponent/GridTableHeadCell.js +6 -4
  163. package/table/subComponent/Resizer.js +19 -4
  164. package/table/subComponent/TableFooter.js +15 -6
  165. package/table/subComponent/TableFooterInfo.js +4 -3
  166. package/table/subComponent/TableFooterPager.js +19 -6
  167. package/table/subComponent/TableHeadCell.js +9 -3
  168. package/table/subComponent/TableSort.js +17 -7
  169. package/tagify/TagifyStyle.js +49 -3
  170. package/tagify/Tags.js +37 -21
  171. package/tagify/templates/getCreateButtonTemplate.js +5 -2
  172. package/text/Paragraph.js +50 -12
  173. package/timeline/Timeline.js +94 -17
  174. package/toast/CustomToastContainer.js +35 -3
  175. package/toast/MessageContainer.js +22 -4
  176. package/tooltip/Tooltip.js +47 -19
  177. package/treeView/TreeViewV2.js +1 -1
  178. package/treeView/TreeflexStyle.js +38 -3
  179. package/wizard/Wizard.js +115 -6
@@ -6,13 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _TableFooter = _interopRequireDefault(require("./TableFooter"));
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- var _templateObject;
10
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
12
- const GridTableFooter = (0, _styledComponents.default)(_TableFooter.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: sticky;\n bottom: 0;\n height: 48px;\n padding: 0 var(--spacing-xs);\n border-top: 1px solid var(--border-color);\n border-bottom: 1px solid var(--border-color);\n background: ", ";\n"])), _ref => {
10
+ const GridTableFooter = (0, _styledComponents.default)(_TableFooter.default)`
11
+ position: sticky;
12
+ bottom: 0;
13
+ height: 48px;
14
+ padding: 0 var(--spacing-xs);
15
+ border-top: 1px solid var(--border-color);
16
+ border-bottom: 1px solid var(--border-color);
17
+ background: ${_ref => {
13
18
  let {
14
19
  backgroundReverse
15
20
  } = _ref;
16
21
  return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
17
- });
22
+ }};
23
+ `;
18
24
  var _default = exports.default = GridTableFooter;
@@ -6,13 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _BaseTableHeadCell = _interopRequireDefault(require("./BaseTableHeadCell"));
9
- var _templateObject;
10
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
12
- const GridTableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top: 1px solid var(--border-color);\n border-bottom: 1px solid var(--border-color);\n background: ", ";\n"])), _ref => {
10
+ const GridTableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)`
11
+ border-top: 1px solid var(--border-color);
12
+ border-bottom: 1px solid var(--border-color);
13
+ background: ${_ref => {
13
14
  let {
14
15
  backgroundReverse
15
16
  } = _ref;
16
17
  return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
17
- });
18
+ }};
19
+ `;
18
20
  var _default = exports.default = GridTableHeadCell;
@@ -7,9 +7,7 @@ exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
- var _templateObject;
11
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
13
11
  const Resizer = _ref => {
14
12
  let {
15
13
  index,
@@ -23,7 +21,7 @@ const Resizer = _ref => {
23
21
  if (targetWidth < 1) {
24
22
  targetWidth = 1;
25
23
  }
26
- parentNode.style.width = "".concat(targetWidth, "px");
24
+ parentNode.style.width = `${targetWidth}px`;
27
25
  if (typeof onResize === 'function') {
28
26
  onResize(index, targetWidth);
29
27
  }
@@ -58,5 +56,22 @@ const Resizer = _ref => {
58
56
  onMouseDown: initResize
59
57
  });
60
58
  };
61
- const ColResize = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n height: 100%;\n\n &::after {\n content: '';\n width: 8px;\n margin-right: -4px;\n cursor: col-resize;\n }\n\n &:hover::after {\n background: var(--color-hover);\n }\n"])));
59
+ const ColResize = _styledComponents.default.div`
60
+ position: absolute;
61
+ right: 0;
62
+ top: 0;
63
+ z-index: 1;
64
+ height: 100%;
65
+
66
+ &::after {
67
+ content: '';
68
+ width: 8px;
69
+ margin-right: -4px;
70
+ cursor: col-resize;
71
+ }
72
+
73
+ &:hover::after {
74
+ background: var(--color-hover);
75
+ }
76
+ `;
62
77
  var _default = exports.default = Resizer;
@@ -5,18 +5,27 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
- var _templateObject;
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
11
- const TableFooter = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n\n ", "\n"])), _ref => {
9
+ const TableFooter = _styledComponents.default.div`
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+
14
+ ${_ref => {
12
15
  let {
13
16
  center
14
17
  } = _ref;
15
- return center && "\n flex-direction: column;\n justify-content: center;\n ";
16
- }, _ref2 => {
18
+ return center && `
19
+ flex-direction: column;
20
+ justify-content: center;
21
+ `;
22
+ }}
23
+
24
+ ${_ref2 => {
17
25
  let {
18
26
  enableRowDrag
19
27
  } = _ref2;
20
28
  return enableRowDrag && 'padding-right: calc(1.5rem + 0.5rem);';
21
- });
29
+ }}
30
+ `;
22
31
  var _default = exports.default = TableFooter;
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
- var _templateObject;
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
11
- const TableFooterInfo = _styledComponents.default.p(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: var(--font-body2);\n color: var(--font-on-background);\n"])));
9
+ const TableFooterInfo = _styledComponents.default.p`
10
+ font-size: var(--font-body2);
11
+ color: var(--font-on-background);
12
+ `;
12
13
  var _default = exports.default = TableFooterInfo;
@@ -5,16 +5,29 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
- var _templateObject;
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
11
- const TableFooterPager = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n ", "\n"])), _ref => {
9
+ const TableFooterPager = _styledComponents.default.div`
10
+ display: flex;
11
+
12
+ ${_ref => {
12
13
  let {
13
14
  center
14
15
  } = _ref;
15
16
  if (center) {
16
- return "\n flex-wrap: wrap;\n justify-content: center;\n\n > * {\n margin-top: var(--spacing-xs);\n }\n ";
17
+ return `
18
+ flex-wrap: wrap;
19
+ justify-content: center;
20
+
21
+ > * {
22
+ margin-top: var(--spacing-xs);
23
+ }
24
+ `;
17
25
  }
18
- return "\n > :last-child {\n margin-left: var(--spacing-xs);\n }\n ";
19
- });
26
+ return `
27
+ > :last-child {
28
+ margin-left: var(--spacing-xs);
29
+ }
30
+ `;
31
+ }}
32
+ `;
20
33
  var _default = exports.default = TableFooterPager;
@@ -6,8 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _BaseTableHeadCell = _interopRequireDefault(require("./BaseTableHeadCell"));
9
- var _templateObject;
10
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
12
- const TableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &:first-child {\n padding-left: var(--spacing);\n }\n\n &:last-child {\n padding-right: var(--spacing);\n }\n"])));
10
+ const TableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)`
11
+ &:first-child {
12
+ padding-left: var(--spacing);
13
+ }
14
+
15
+ &:last-child {
16
+ padding-right: var(--spacing);
17
+ }
18
+ `;
13
19
  var _default = exports.default = TableHeadCell;
@@ -6,22 +6,32 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _fa = require("react-icons/fa");
9
- var _templateObject, _templateObject2, _templateObject3;
10
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
12
- const TableSort = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n > svg {\n color: var(--color-primary);\n position: absolute;\n }\n"])));
13
- const UpIcon = (0, _styledComponents.default)(_fa.FaSortUp)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n top: -2px;\n opacity: ", ";\n"])), _ref => {
10
+ const TableSort = _styledComponents.default.div`
11
+ position: relative;
12
+
13
+ > svg {
14
+ color: var(--color-primary);
15
+ position: absolute;
16
+ }
17
+ `;
18
+ const UpIcon = (0, _styledComponents.default)(_fa.FaSortUp)`
19
+ top: -2px;
20
+ opacity: ${_ref => {
14
21
  let {
15
22
  $active
16
23
  } = _ref;
17
24
  return $active ? 1 : 0.5;
18
- });
19
- const DownIcon = (0, _styledComponents.default)(_fa.FaSortDown)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n opacity: ", ";\n"])), _ref2 => {
25
+ }};
26
+ `;
27
+ const DownIcon = (0, _styledComponents.default)(_fa.FaSortDown)`
28
+ opacity: ${_ref2 => {
20
29
  let {
21
30
  $active
22
31
  } = _ref2;
23
32
  return $active ? 1 : 0.5;
24
- });
33
+ }};
34
+ `;
25
35
  var _default = exports.default = Object.assign(TableSort, {
26
36
  UpIcon,
27
37
  DownIcon
@@ -6,9 +6,55 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _styledComponents = require("styled-components");
8
8
  var _scrollbar = _interopRequireDefault(require("../styles/mixin/scrollbar"));
9
- var _templateObject;
10
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
12
10
  // integrate tagify component
13
- const TagifyStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .tagify__dropdown {\n &__wrapper {\n max-height: 320px;\n border: 1px solid var(--border-color);\n color: var(--font-on-background);\n background: var(--color-background1);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n padding: var(--spacing-s) 0;\n overflow-y: auto;\n overflow-x: visible;\n\n ", "\n }\n\n &__item {\n max-width: 100%;\n word-break: break-all;\n padding: 12px var(--spacing-s);\n background: var(--color-background1);\n transition: 0.3s;\n\n &:hover {\n background: var(--color-hover);\n }\n\n &[data-value=\"__create__\"] {\n border-radius: 0 0 var(--border-radius) var(--border-radius);\n border-top: 1px solid var(--border-color);\n padding-top: var(--spacing);\n\n &.fixed-bottom{\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: var(--spacing-s);\n }\n }\n }\n\n &.has-fixed-bottom {\n .tagify__dropdown__wrapper {\n padding-bottom: 60px;\n }\n }\n }\n"])), _scrollbar.default);
11
+ const TagifyStyle = (0, _styledComponents.createGlobalStyle)`
12
+ .tagify__dropdown {
13
+ &__wrapper {
14
+ max-height: 320px;
15
+ border: 1px solid var(--border-color);
16
+ color: var(--font-on-background);
17
+ background: var(--color-background1);
18
+ box-shadow: var(--box-shadow);
19
+ border-radius: var(--border-radius);
20
+ padding: var(--spacing-s) 0;
21
+ overflow-y: auto;
22
+ overflow-x: visible;
23
+
24
+ ${_scrollbar.default}
25
+ }
26
+
27
+ &__item {
28
+ max-width: 100%;
29
+ word-break: break-all;
30
+ padding: 12px var(--spacing-s);
31
+ background: var(--color-background1);
32
+ transition: 0.3s;
33
+
34
+ &:hover {
35
+ background: var(--color-hover);
36
+ }
37
+
38
+ &[data-value="__create__"] {
39
+ border-radius: 0 0 var(--border-radius) var(--border-radius);
40
+ border-top: 1px solid var(--border-color);
41
+ padding-top: var(--spacing);
42
+
43
+ &.fixed-bottom{
44
+ position: fixed;
45
+ bottom: 0;
46
+ left: 0;
47
+ right: 0;
48
+ padding: var(--spacing-s);
49
+ }
50
+ }
51
+ }
52
+
53
+ &.has-fixed-bottom {
54
+ .tagify__dropdown__wrapper {
55
+ padding-bottom: 60px;
56
+ }
57
+ }
58
+ }
59
+ `;
14
60
  var _default = exports.default = TagifyStyle;
package/tagify/Tags.js CHANGED
@@ -9,32 +9,48 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
  var _react2 = _interopRequireDefault(require("@yaireo/tagify/dist/react.tagify"));
10
10
  require("@yaireo/tagify/dist/tagify.css");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
- var _templateObject;
13
- const _excluded = ["onChange", "settings", "tagifyProps"];
14
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
16
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
19
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
20
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
22
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
23
13
  const Tags = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
24
14
  let {
25
- onChange,
26
- settings,
27
- tagifyProps
28
- } = _ref,
29
- props = _objectWithoutProperties(_ref, _excluded);
15
+ onChange,
16
+ settings,
17
+ tagifyProps,
18
+ ...props
19
+ } = _ref;
30
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
31
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.default, _objectSpread(_objectSpread({
21
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.default, {
32
22
  tagifyRef: ref,
33
- settings: settings
34
- }, tagifyProps), {}, {
35
- onChange: onChange
36
- }, props))
23
+ settings: settings,
24
+ ...tagifyProps,
25
+ onChange: onChange,
26
+ ...props
27
+ })
37
28
  });
38
29
  });
39
- const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .tagify[readonly]:not(.tagify--mix):not(.tagify--select) {\n opacity: 0.5;\n }\n .tagify {\n --tags-disabled-bg: var(--font-on-mute);\n --tags-border-color: var(--border-color);\n --tags-hover-border-color: var(--border-color);\n --tags-focus-border-color: var(--color-primary);\n --tag-invalid-color: var(--color-danger);\n --tag-remove-btn-bg--hover: var(--color-danger);\n --input-color: var(--font-on-background);\n\n border-radius: var(--border-radius-l);\n width: 100%;\n\n .tagify__tag {\n > div::before {\n border-radius: var(--border-radius-l);\n }\n }\n .tagify__input::before {\n color: var(--font-on-mute);\n }\n }\n"])));
30
+ const Wrapper = _styledComponents.default.div`
31
+ .tagify[readonly]:not(.tagify--mix):not(.tagify--select) {
32
+ opacity: 0.5;
33
+ }
34
+ .tagify {
35
+ --tags-disabled-bg: var(--font-on-mute);
36
+ --tags-border-color: var(--border-color);
37
+ --tags-hover-border-color: var(--border-color);
38
+ --tags-focus-border-color: var(--color-primary);
39
+ --tag-invalid-color: var(--color-danger);
40
+ --tag-remove-btn-bg--hover: var(--color-danger);
41
+ --input-color: var(--font-on-background);
42
+
43
+ border-radius: var(--border-radius-l);
44
+ width: 100%;
45
+
46
+ .tagify__tag {
47
+ > div::before {
48
+ border-radius: var(--border-radius-l);
49
+ }
50
+ }
51
+ .tagify__input::before {
52
+ color: var(--font-on-mute);
53
+ }
54
+ }
55
+ `;
40
56
  var _default = exports.default = Tags;
@@ -8,8 +8,11 @@ const getCreateButtonTemplate = function (label) {
8
8
  let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9
9
  const attrString = Object.entries(props).map(_ref => {
10
10
  let [key, val] = _ref;
11
- return "".concat(key, "=\"").concat(val, "\"");
11
+ return `${key}="${val}"`;
12
12
  }).join(' ');
13
- return "\n <div ".concat(attrString, " tabindex=\"0\" role=\"option\" data-value=\"__create__\">\n ").concat(label, "\n </div>");
13
+ return `
14
+ <div ${attrString} tabindex="0" role="option" data-value="__create__">
15
+ ${label}
16
+ </div>`;
14
17
  };
15
18
  var _default = exports.default = getCreateButtonTemplate;
package/text/Paragraph.js CHANGED
@@ -6,43 +6,81 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _color = _interopRequireDefault(require("../styles/mixin/color"));
9
- var _templateObject;
10
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
12
- const Paragraph = _styledComponents.default.p(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: var(--font-on-background);\n font-size: var(--font-body1);\n margin-bottom: var(--spacing-s);\n word-break: break-word;\n overflow-wrap: break-word;\n position: relative;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
10
+ const Paragraph = _styledComponents.default.p`
11
+ color: var(--font-on-background);
12
+ font-size: var(--font-body1);
13
+ margin-bottom: var(--spacing-s);
14
+ word-break: break-word;
15
+ overflow-wrap: break-word;
16
+ position: relative;
17
+
18
+ &:last-child {
19
+ margin-bottom: 0;
20
+ }
21
+
22
+ ${_ref => {
13
23
  let {
14
24
  flex
15
25
  } = _ref;
16
26
  return flex && 'display: flex;';
17
- }, _ref2 => {
27
+ }}
28
+
29
+ ${_ref2 => {
18
30
  let {
19
31
  justifyContentBetween
20
32
  } = _ref2;
21
33
  return justifyContentBetween && 'justify-content: space-between;';
22
- }, _ref3 => {
34
+ }}
35
+
36
+ ${_ref3 => {
23
37
  let {
24
38
  inline
25
39
  } = _ref3;
26
- return inline && "\n display: inline;\n margin-right: var(--spacing-s);\n ";
27
- }, _ref4 => {
40
+ return inline && `
41
+ display: inline;
42
+ margin-right: var(--spacing-s);
43
+ `;
44
+ }}
45
+
46
+ ${_ref4 => {
28
47
  let {
29
48
  fontH3
30
49
  } = _ref4;
31
50
  return fontH3 && 'font-size: var(--font-h3);';
32
- }, _ref5 => {
51
+ }}
52
+
53
+ ${_ref5 => {
33
54
  let {
34
55
  fontWeightBold
35
56
  } = _ref5;
36
57
  return fontWeightBold && 'font-weight: bold;';
37
- }, _ref6 => {
58
+ }}
59
+
60
+ ${_ref6 => {
38
61
  let {
39
62
  marginBottomXS
40
63
  } = _ref6;
41
64
  return marginBottomXS && 'margin-bottom: var(--spacing-xs);';
42
- }, _color.default, _ref7 => {
65
+ }}
66
+
67
+ ${_color.default}
68
+
69
+ ${_ref7 => {
43
70
  let {
44
71
  badge
45
72
  } = _ref7;
46
- return badge && "&:after {\n content: '';\n position: absolute;\n top: -2px;\n right: -12px;\n height: 8px;\n width: 8px;\n border-radius: var(--border-radius);\n background-color: var(--color-".concat(badge, ");\n }\n ");
47
- });
73
+ return badge && `&:after {
74
+ content: '';
75
+ position: absolute;
76
+ top: -2px;
77
+ right: -12px;
78
+ height: 8px;
79
+ width: 8px;
80
+ border-radius: var(--border-radius);
81
+ background-color: var(--color-${badge});
82
+ }
83
+ `;
84
+ }}
85
+ `;
48
86
  var _default = exports.default = Paragraph;
@@ -5,52 +5,129 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
11
- const Timeline = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n &:before {\n content: '';\n position: absolute;\n left: 7.8rem;\n width: 0.214rem;\n top: 5px;\n bottom: 5px;\n height: calc(100% - 5px);\n background-color: #e7e9f5;\n\n ", "\n }\n"])), _ref => {
9
+ const Timeline = _styledComponents.default.div`
10
+ position: relative;
11
+
12
+ &:before {
13
+ content: '';
14
+ position: absolute;
15
+ left: 7.8rem;
16
+ width: 0.214rem;
17
+ top: 5px;
18
+ bottom: 5px;
19
+ height: calc(100% - 5px);
20
+ background-color: #e7e9f5;
21
+
22
+ ${_ref => {
12
23
  let {
13
24
  noTag
14
25
  } = _ref;
15
26
  return noTag && 'left: 0.8rem;';
16
- });
17
- const Items = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([""])));
18
- const Item = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: table;\n position: relative;\n margin-bottom: 1.5rem;\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
19
- const ItemTag = _styledComponents.default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: table-cell;\n font-size: var(--font-body1);\n font-weight: 500;\n vertical-align: top;\n position: absolute;\n padding-top: 0.5rem;\n color: var(--font-on-background);\n width: 6.5rem;\n text-align: center;\n"])));
20
- const ItemCircle = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border-radius: 50%;\n border: 0.89rem solid #2d2c4c;\n z-index: 1;\n top: 0.2rem;\n left: 7rem;\n position: relative;\n\n > svg {\n font-size: 1.5rem;\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref2 => {
27
+ }}
28
+ }
29
+ `;
30
+ const Items = _styledComponents.default.div``;
31
+ const Item = _styledComponents.default.div`
32
+ display: table;
33
+ position: relative;
34
+ margin-bottom: 1.5rem;
35
+
36
+ &:last-child {
37
+ margin-bottom: 0;
38
+ }
39
+ `;
40
+ const ItemTag = _styledComponents.default.span`
41
+ display: table-cell;
42
+ font-size: var(--font-body1);
43
+ font-weight: 500;
44
+ vertical-align: top;
45
+ position: absolute;
46
+ padding-top: 0.5rem;
47
+ color: var(--font-on-background);
48
+ width: 6.5rem;
49
+ text-align: center;
50
+ `;
51
+ const ItemCircle = _styledComponents.default.div`
52
+ border-radius: 50%;
53
+ border: 0.89rem solid #2d2c4c;
54
+ z-index: 1;
55
+ top: 0.2rem;
56
+ left: 7rem;
57
+ position: relative;
58
+
59
+ > svg {
60
+ font-size: 1.5rem;
61
+ top: 0;
62
+ left: 0;
63
+ transform: translate(-50%, -50%);
64
+ position: absolute;
65
+ }
66
+
67
+ ${_ref2 => {
21
68
  let {
22
69
  noTag
23
70
  } = _ref2;
24
71
  return noTag && 'left: 0;';
25
- }, _ref3 => {
72
+ }}
73
+
74
+ ${_ref3 => {
26
75
  let {
27
76
  success
28
77
  } = _ref3;
29
78
  return success && 'color: var(--color-success);';
30
- }, _ref4 => {
79
+ }}
80
+
81
+ ${_ref4 => {
31
82
  let {
32
83
  danger
33
84
  } = _ref4;
34
85
  return danger && 'color: var(--color-danger);';
35
- }, _ref5 => {
86
+ }}
87
+
88
+ ${_ref5 => {
36
89
  let {
37
90
  warning
38
91
  } = _ref5;
39
92
  return warning && 'color: var(--color-warning);';
40
- }, _ref6 => {
93
+ }}
94
+
95
+ ${_ref6 => {
41
96
  let {
42
97
  grey
43
98
  } = _ref6;
44
99
  return grey && 'color: var(--color-grey);';
45
- });
46
- const ItemDescription = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: table-cell;\n vertical-align: top;\n font-size: 1rem;\n padding: 0 0 0 8rem;\n color: var(--font-on-background);\n\n ", "\n"])), _ref7 => {
100
+ }}
101
+ `;
102
+ const ItemDescription = _styledComponents.default.div`
103
+ display: table-cell;
104
+ vertical-align: top;
105
+ font-size: 1rem;
106
+ padding: 0 0 0 8rem;
107
+ color: var(--font-on-background);
108
+
109
+ ${_ref7 => {
47
110
  let {
48
111
  noTag
49
112
  } = _ref7;
50
113
  return noTag && 'padding-left: 1rem;';
51
- });
52
- const ItemTitle = _styledComponents.default.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 400;\n\n &:last-child {\n margin-top: 8px;\n }\n"])));
53
- const ItemText = _styledComponents.default.span(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: block;\n color: var(--font-on-mute);\n margin-top: 8px;\n line-height: 1.25;\n word-break: break-all;\n"])));
114
+ }}
115
+ `;
116
+ const ItemTitle = _styledComponents.default.span`
117
+ display: block;
118
+ font-weight: 400;
119
+
120
+ &:last-child {
121
+ margin-top: 8px;
122
+ }
123
+ `;
124
+ const ItemText = _styledComponents.default.span`
125
+ display: block;
126
+ color: var(--font-on-mute);
127
+ margin-top: 8px;
128
+ line-height: 1.25;
129
+ word-break: break-all;
130
+ `;
54
131
  var _default = exports.default = Object.assign(Timeline, {
55
132
  Items,
56
133
  Item,