@cashub/ui-elv 1.0.1 → 1.0.3

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 (316) hide show
  1. package/chart/BarChart.js +8 -2
  2. package/chart/DoughnutChart.js +2 -1
  3. package/chart/LineChart.js +2 -1
  4. package/chart/utils/customTooltip.js +3 -7
  5. package/chart/utils/customTooltipLifecyclePlugin.js +21 -0
  6. package/chart/utils/tooltipElement.js +25 -0
  7. package/chart/utils/xAxisLabelTooltipPlugin.js +107 -0
  8. package/datetimePicker/index.js +2 -37
  9. package/esm/Tab/Tab.js +21 -0
  10. package/esm/Tab/TabList.js +160 -0
  11. package/esm/Tab/TabPanel.js +42 -0
  12. package/esm/Tab/TabTab.js +98 -0
  13. package/esm/Tab/index.js +23 -0
  14. package/esm/Tab/subComponent/TabContext.js +3 -0
  15. package/esm/Tab/subComponent/TabListV2.js +18 -0
  16. package/esm/Tab/subComponent/TabPanelV2.js +45 -0
  17. package/esm/Tab/subComponent/TabTabV2.js +56 -0
  18. package/esm/VerticalTab/TabList.js +20 -0
  19. package/esm/VerticalTab/TabPanel.js +45 -0
  20. package/esm/VerticalTab/TabTab.js +63 -0
  21. package/esm/VerticalTab/VerticalTab.js +34 -0
  22. package/esm/VerticalTab/index.js +9 -0
  23. package/esm/VerticalTab/subComponent/TabContext.js +3 -0
  24. package/esm/alert/Alert.js +22 -0
  25. package/esm/alert/index.js +1 -0
  26. package/esm/animate/Collapse.js +65 -0
  27. package/esm/animate/Loader.js +51 -0
  28. package/esm/animate/NumberCounter.js +45 -0
  29. package/esm/animate/PulseRing.js +26 -0
  30. package/esm/animate/Spinner.js +11 -0
  31. package/esm/animate/index.js +5 -0
  32. package/esm/assets/css/autocomplete.css +16 -0
  33. package/esm/assets/css/font.css +4 -0
  34. package/esm/assets/css/global.css +2 -0
  35. package/esm/assets/font/helvetica/Helvetica.ttf +0 -0
  36. package/esm/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
  37. package/esm/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
  38. package/esm/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
  39. package/esm/assets/icons/app-management.png +0 -0
  40. package/esm/assets/icons/burger-black.png +0 -0
  41. package/esm/assets/icons/burger-white.png +0 -0
  42. package/esm/assets/icons/burger.png +0 -0
  43. package/esm/assets/icons/file.svg +1 -0
  44. package/esm/assets/icons/map_icon1.png +0 -0
  45. package/esm/assets/icons/map_icon4.png +0 -0
  46. package/esm/assets/images/bg-aside.png +0 -0
  47. package/esm/assets/images/bg-chart-circle.png +0 -0
  48. package/esm/assets/images/bg-chart-triangle.png +0 -0
  49. package/esm/assets/images/cashub-logo-only.png +0 -0
  50. package/esm/assets/images/default-user.jpg +0 -0
  51. package/esm/assets/images/logo-cashub.png +0 -0
  52. package/esm/assets/images/map.png +0 -0
  53. package/esm/assets/images/qrcode.png +0 -0
  54. package/esm/backdrop/BaseBackdrop.js +11 -0
  55. package/esm/backdrop/LoadingBackdrop.js +10 -0
  56. package/esm/backdrop/ModalBackdrop.js +8 -0
  57. package/esm/backdrop/index.js +3 -0
  58. package/esm/badge/Badge.js +19 -0
  59. package/esm/badge/BadgeDot.js +11 -0
  60. package/esm/badge/BadgeFill.js +42 -0
  61. package/esm/badge/BadgeFillTriangle.js +138 -0
  62. package/esm/badge/BadgeWithText.js +24 -0
  63. package/esm/badge/index.js +5 -0
  64. package/esm/billing/BarChart.js +45 -0
  65. package/esm/billing/Grid.js +38 -0
  66. package/esm/billing/Header2.js +19 -0
  67. package/esm/billing/Header3.js +31 -0
  68. package/esm/billing/Paragraph.js +27 -0
  69. package/esm/billing/ParagraphGroup.js +16 -0
  70. package/esm/billing/ParagraphText.js +20 -0
  71. package/esm/billing/Section.js +44 -0
  72. package/esm/billing/SectionBody.js +11 -0
  73. package/esm/billing/SectionHeader.js +20 -0
  74. package/esm/billing/__stories__/BarChart.stories.js_bak +46 -0
  75. package/esm/billing/__stories__/Grid.stories.js_bak +57 -0
  76. package/esm/billing/__stories__/Header2.stories.js_bak +62 -0
  77. package/esm/billing/__stories__/Header3.stories.js_bak +69 -0
  78. package/esm/billing/__stories__/Paragraph.stories.js_bak +84 -0
  79. package/esm/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
  80. package/esm/billing/__stories__/ParagraphText.stories.js_bak +64 -0
  81. package/esm/billing/__stories__/Section.stories.js_bak +115 -0
  82. package/esm/billing/__stories__/SectionBody.stories.js_bak +62 -0
  83. package/esm/billing/__stories__/SectionHeader.stories.js-bak +68 -0
  84. package/esm/breadcrumb/Breadcrumb.js +71 -0
  85. package/esm/breadcrumb/index.js +1 -0
  86. package/esm/button/Button.js +145 -0
  87. package/esm/button/ButtonGroup.js +54 -0
  88. package/esm/button/IconButton.js +64 -0
  89. package/esm/button/ScrollToTopButton.js +47 -0
  90. package/esm/button/index.js +4 -0
  91. package/esm/callout/Callout.js +45 -0
  92. package/esm/callout/index.js +1 -0
  93. package/esm/chart/BarChart.js +147 -0
  94. package/esm/chart/DoughnutChart.js +110 -0
  95. package/esm/chart/LineChart.js +140 -0
  96. package/esm/chart/SingleBarChart.js +35 -0
  97. package/esm/chart/index.js +5 -0
  98. package/esm/chart/utils/centerTextPlugin.js +56 -0
  99. package/esm/chart/utils/customTooltip.js +84 -0
  100. package/esm/chart/utils/customTooltipLifecyclePlugin.js +16 -0
  101. package/esm/chart/utils/htmlLegendPlugin.js +83 -0
  102. package/esm/chart/utils/index.js +3 -0
  103. package/esm/chart/utils/padEmptyChartBar.js +47 -0
  104. package/esm/chart/utils/tooltipElement.js +17 -0
  105. package/esm/chart/utils/xAxisLabelTooltipPlugin.js +101 -0
  106. package/esm/chart/utils/yAxisTopTitlePlugin.js +43 -0
  107. package/esm/container/FlexContainer.js +33 -0
  108. package/esm/container/index.js +1 -0
  109. package/esm/cropper/Cropper.js +47 -0
  110. package/esm/cropper/CropperModalHandler.js +34 -0
  111. package/esm/cropper/index.js +2 -0
  112. package/esm/cropper/subComponent/CropImageModal.js +72 -0
  113. package/{datetimePicker/DatetimePicker.js → esm/datetimePicker/DatetimePickerV3.js} +63 -31
  114. package/esm/datetimePicker/TimeInput.js +49 -0
  115. package/esm/datetimePicker/TimePickerStyle.js +58 -0
  116. package/esm/datetimePicker/TimePickerV2.js +199 -0
  117. package/esm/datetimePicker/accordion/Month.js +245 -0
  118. package/esm/datetimePicker/accordion/Year.js +275 -0
  119. package/esm/datetimePicker/index.js +4 -0
  120. package/esm/datetimePicker/provider/constant.js +38 -0
  121. package/esm/datetimePicker/subComponent/DateTimePickerContext.js +3 -0
  122. package/esm/datetimePicker/utils/GMTDate.js +9 -0
  123. package/esm/datetimePicker/utils/pad.js +7 -0
  124. package/esm/datetimePicker/utils/toUTC0.js +7 -0
  125. package/esm/descriptionList/DescriptionDetail.js +21 -0
  126. package/esm/descriptionList/DescriptionList.js +18 -0
  127. package/esm/descriptionList/DescriptionTerm.js +7 -0
  128. package/esm/descriptionList/index.js +3 -0
  129. package/esm/divider/Divider.js +24 -0
  130. package/esm/divider/index.js +1 -0
  131. package/esm/dropdown/Dropdown.js +48 -0
  132. package/esm/dropdown/DropdownButtonOption.js +36 -0
  133. package/esm/dropdown/DropdownContent.js +83 -0
  134. package/esm/dropdown/DropdownDivOption.js +19 -0
  135. package/esm/dropdown/DropdownItem.js +19 -0
  136. package/esm/dropdown/DropdownLinkOption.js +17 -0
  137. package/esm/dropdown/DropdownToggle.js +31 -0
  138. package/esm/dropdown/index.js +11 -0
  139. package/esm/dropdown/subComponent/DropdownContext.js +3 -0
  140. package/esm/dropzone/FileDropzone.js +472 -0
  141. package/esm/dropzone/ImageDropzone.js +327 -0
  142. package/esm/dropzone/index.js +2 -0
  143. package/esm/dropzone/subComponent/Message.js +19 -0
  144. package/esm/figure/IconFigure.js +35 -0
  145. package/esm/figure/ImageFigure.js +31 -0
  146. package/esm/figure/index.js +2 -0
  147. package/esm/file/HiddenFileInput.js +8 -0
  148. package/esm/file/index.js +1 -0
  149. package/esm/form/Checkbox.js +157 -0
  150. package/esm/form/Fieldset.js +11 -0
  151. package/esm/form/FormItem.js +15 -0
  152. package/esm/form/Input.js +59 -0
  153. package/esm/form/Label.js +54 -0
  154. package/esm/form/MutedText.js +14 -0
  155. package/esm/form/PasswordInput.js +40 -0
  156. package/esm/form/RadioButton.js +94 -0
  157. package/esm/form/SearchSelect.js +174 -0
  158. package/esm/form/Searchbox.js +91 -0
  159. package/esm/form/Slider.js +39 -0
  160. package/esm/form/SwitchButton.js +97 -0
  161. package/esm/form/Textarea.js +34 -0
  162. package/esm/form/TreeView.js +66 -0
  163. package/esm/form/index.js +14 -0
  164. package/esm/grid/Column.js +39 -0
  165. package/esm/grid/Grid.js +28 -0
  166. package/esm/grid/index.js +2 -0
  167. package/esm/heading/Heading1.js +14 -0
  168. package/esm/heading/Heading2.js +21 -0
  169. package/esm/heading/Heading3.js +42 -0
  170. package/esm/heading/index.js +3 -0
  171. package/esm/helmet/Helmet.js +17 -0
  172. package/esm/helmet/index.js +2 -0
  173. package/esm/iconbox/ApplicationIconBox.js +74 -0
  174. package/esm/iconbox/IconBox.js +60 -0
  175. package/esm/iconbox/IconBoxV2.js +63 -0
  176. package/esm/iconbox/index.js +3 -0
  177. package/esm/iconbox/subComponent/IconBoxFigure.js +43 -0
  178. package/esm/iconbox/subComponent/IconBoxImage.js +35 -0
  179. package/esm/image/ImageFluid.js +10 -0
  180. package/esm/image/UploadImage.js +243 -0
  181. package/esm/image/index.js +2 -0
  182. package/esm/index.js +47 -0
  183. package/esm/keyframe/Pulse.js +15 -0
  184. package/esm/keyframe/Spin.js +7 -0
  185. package/esm/layout/Aside.js +39 -0
  186. package/esm/layout/AsideHeader.jsx +27 -0
  187. package/esm/layout/Backdrop.js +16 -0
  188. package/esm/layout/Container.js +30 -0
  189. package/esm/layout/Footer.js +36 -0
  190. package/esm/layout/Header.jsx +55 -0
  191. package/esm/layout/Layout.jsx +84 -0
  192. package/esm/layout/Logo.jsx +17 -0
  193. package/esm/layout/MenuIcon.jsx +27 -0
  194. package/esm/layout/Sidebar.jsx +271 -0
  195. package/esm/layout/index.js +1 -0
  196. package/esm/link/LinkSpan.js +62 -0
  197. package/esm/link/index.js +1 -0
  198. package/esm/map/GoogleMap.js +439 -0
  199. package/esm/map/GoogleReverseGeolocation.js +193 -0
  200. package/esm/map/LeafletMap.js +224 -0
  201. package/esm/map/LeafletReverseGeolocation.js +94 -0
  202. package/esm/map/index.js +4 -0
  203. package/esm/map/subComponent/BasicLeafletMap.js +27 -0
  204. package/esm/map/subComponent/GoogleMapContainer.js +22 -0
  205. package/esm/map/subComponent/GoogleMapPopup.js +103 -0
  206. package/esm/map/subComponent/GoogleMapWrapper.js +34 -0
  207. package/esm/map/subComponent/LeafletDrawControl.js +116 -0
  208. package/esm/map/subComponent/LeafletMapContainer.js +166 -0
  209. package/esm/map/subComponent/MapSearchBoxControl.js +47 -0
  210. package/esm/modal/StateModal.js +169 -0
  211. package/esm/modal/TitleModal.js +241 -0
  212. package/esm/modal/index.js +2 -0
  213. package/esm/page/Disclaimer.js +121 -0
  214. package/esm/page/index.js +1 -0
  215. package/esm/paginate/Paginate.js +129 -0
  216. package/esm/paginate/index.js +1 -0
  217. package/esm/popover/Popover.js +82 -0
  218. package/esm/popover/index.js +1 -0
  219. package/esm/qrcode/QRCode.js +51 -0
  220. package/esm/qrcode/QRCodeContainter.js +27 -0
  221. package/esm/qrcode/index.js +2 -0
  222. package/esm/ribbon/Ribbon.js +35 -0
  223. package/esm/ribbon/index.js +1 -0
  224. package/esm/section/Section.js +126 -0
  225. package/esm/section/SectionBody.js +43 -0
  226. package/esm/section/SectionHeader.js +61 -0
  227. package/esm/section/SectionToolbar.js +11 -0
  228. package/esm/section/SectionToolbarItem.js +10 -0
  229. package/esm/section/index.js +5 -0
  230. package/esm/select/InputSelect.js +263 -0
  231. package/esm/select/Select.js +811 -0
  232. package/esm/select/index.js +2 -0
  233. package/esm/select/subComponent/Checkbox.js +40 -0
  234. package/esm/select/subComponent/Footer.js +6 -0
  235. package/esm/select/subComponent/ListBox.js +23 -0
  236. package/esm/select/subComponent/Option.js +37 -0
  237. package/esm/select/subComponent/OptionGroup.js +16 -0
  238. package/esm/select/subComponent/Options.js +25 -0
  239. package/esm/select/subComponent/SearchBox.js +51 -0
  240. package/esm/select/subComponent/SelectedMultipleCount.js +32 -0
  241. package/esm/select/subComponent/SelectedMultipleTags.js +47 -0
  242. package/esm/select/subComponent/SelectedMultipleText.js +63 -0
  243. package/esm/select/subComponent/SelectedSingle.js +10 -0
  244. package/esm/styles/GlobalStyle.js +328 -0
  245. package/esm/styles/config/breakpoint.style.js +7 -0
  246. package/esm/styles/config/header.style.js +4 -0
  247. package/esm/styles/config/sidebar.style.js +11 -0
  248. package/esm/styles/index.js +2 -0
  249. package/esm/styles/mixin/backgroundColor.js +38 -0
  250. package/esm/styles/mixin/borderColor.js +31 -0
  251. package/esm/styles/mixin/color.js +31 -0
  252. package/esm/styles/mixin/colorOnBackground.js +31 -0
  253. package/esm/styles/mixin/inputPlaceholder.js +24 -0
  254. package/esm/styles/mixin/media.js +15 -0
  255. package/esm/styles/mixin/rounded.js +24 -0
  256. package/esm/styles/mixin/scrollbar.js +26 -0
  257. package/esm/styles/theme/dark.theme.js +91 -0
  258. package/esm/styles/theme/light.theme.js +91 -0
  259. package/esm/styles/theme/white.theme.js +91 -0
  260. package/esm/styles/themes.js +9 -0
  261. package/esm/table/GridTable.js +329 -0
  262. package/esm/table/ImageBox.js +38 -0
  263. package/esm/table/InfiniteGridTable.js +396 -0
  264. package/esm/table/PermissionTable.js +57 -0
  265. package/esm/table/SimpleGridTable.js +136 -0
  266. package/esm/table/Table.js +559 -0
  267. package/esm/table/__mock__/columns.js +64 -0
  268. package/esm/table/__mock__/data.js +530 -0
  269. package/esm/table/hooks/index.js +2 -0
  270. package/esm/table/hooks/useCalculateDataRange.js +22 -0
  271. package/esm/table/hooks/useGenerateSort.js +32 -0
  272. package/esm/table/index.js +6 -0
  273. package/esm/table/subComponent/BaseTableHeadCell.js +54 -0
  274. package/esm/table/subComponent/GridTableFooter.js +17 -0
  275. package/esm/table/subComponent/GridTableHeadCell.js +13 -0
  276. package/esm/table/subComponent/Resizer.js +70 -0
  277. package/esm/table/subComponent/TableFooter.js +24 -0
  278. package/esm/table/subComponent/TableFooterInfo.js +6 -0
  279. package/esm/table/subComponent/TableFooterPager.js +26 -0
  280. package/esm/table/subComponent/TableHeadCell.js +12 -0
  281. package/esm/table/subComponent/TableSort.js +31 -0
  282. package/esm/tagify/TagifyStyle.js +54 -0
  283. package/esm/tagify/Tags.js +49 -0
  284. package/esm/tagify/index.js +3 -0
  285. package/esm/tagify/templates/getCreateButtonTemplate.js +12 -0
  286. package/esm/text/Paragraph.js +79 -0
  287. package/esm/text/index.js +1 -0
  288. package/esm/timeline/Timeline.js +132 -0
  289. package/esm/timeline/index.js +1 -0
  290. package/esm/toast/CustomToastContainer.js +38 -0
  291. package/esm/toast/MessageContainer.js +44 -0
  292. package/esm/toast/index.js +3 -0
  293. package/esm/toast/show.js +29 -0
  294. package/esm/toast/style.css +1 -0
  295. package/esm/tooltip/Tooltip.js +133 -0
  296. package/esm/tooltip/index.js +1 -0
  297. package/esm/treeView/TreeViewV2.js +32 -0
  298. package/esm/treeView/TreeflexStyle.js +43 -0
  299. package/esm/treeView/index.js +2 -0
  300. package/esm/wizard/Wizard.js +244 -0
  301. package/esm/wizard/index.js +1 -0
  302. package/index.js +0 -12
  303. package/layout/Sidebar.jsx +1 -1
  304. package/package.json +5 -4
  305. package/datetimePicker/DatePicker.js +0 -363
  306. package/datetimePicker/DatePickerV2.js +0 -407
  307. package/datetimePicker/DatetimePickerV2.js +0 -395
  308. package/datetimePicker/TimePicker.js +0 -317
  309. package/datetimePicker/hooks/index.js +0 -27
  310. package/datetimePicker/hooks/useChangeNumber.js +0 -42
  311. package/datetimePicker/hooks/useDecrease.js +0 -38
  312. package/datetimePicker/hooks/useIncrease.js +0 -38
  313. package/datetimePicker/subComponent/Accordion.js +0 -373
  314. package/datetimePicker/subComponent/CustomTimeInput.js +0 -47
  315. package/jsoneditor/JsonEditor.js +0 -142
  316. package/jsoneditor/index.js +0 -13
@@ -0,0 +1,70 @@
1
+ import { useState, useCallback, useEffect } from 'react';
2
+ import styled from 'styled-components';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ const Resizer = _ref => {
5
+ let {
6
+ index,
7
+ onResize
8
+ } = _ref;
9
+ const [parentNode, setParentNode] = useState(null);
10
+ const handleMouseMove = useCallback(event => {
11
+ event.stopPropagation();
12
+ event.preventDefault();
13
+ let targetWidth = event.clientX - parentNode.getBoundingClientRect().left;
14
+ if (targetWidth < 1) {
15
+ targetWidth = 1;
16
+ }
17
+ parentNode.style.width = `${targetWidth}px`;
18
+ if (typeof onResize === 'function') {
19
+ onResize(index, targetWidth);
20
+ }
21
+ }, [parentNode, index, onResize]);
22
+ const handleMouseUp = useCallback(event => {
23
+ event.stopPropagation();
24
+ event.preventDefault();
25
+ window.removeEventListener('mousemove', handleMouseMove);
26
+ window.removeEventListener('mouseup', handleMouseUp);
27
+ setParentNode(null);
28
+ }, [handleMouseMove]);
29
+ const initResize = _ref2 => {
30
+ let {
31
+ target
32
+ } = _ref2;
33
+ setParentNode(target.parentNode);
34
+ };
35
+ useEffect(() => {
36
+ if (parentNode) {
37
+ window.addEventListener('mousemove', handleMouseMove);
38
+ window.addEventListener('mouseup', handleMouseUp);
39
+ }
40
+ return () => {
41
+ window.removeEventListener('mousemove', handleMouseMove);
42
+ window.removeEventListener('mouseup', handleMouseUp);
43
+ };
44
+ }, [parentNode, handleMouseMove, handleMouseUp]);
45
+ return /*#__PURE__*/_jsx(ColResize, {
46
+ onClick: event => {
47
+ event.stopPropagation();
48
+ },
49
+ onMouseDown: initResize
50
+ });
51
+ };
52
+ const ColResize = styled.div`
53
+ position: absolute;
54
+ right: 0;
55
+ top: 0;
56
+ z-index: 1;
57
+ height: 100%;
58
+
59
+ &::after {
60
+ content: '';
61
+ width: 8px;
62
+ margin-right: -4px;
63
+ cursor: col-resize;
64
+ }
65
+
66
+ &:hover::after {
67
+ background: var(--color-hover);
68
+ }
69
+ `;
70
+ export default Resizer;
@@ -0,0 +1,24 @@
1
+ import styled from 'styled-components';
2
+ const TableFooter = styled.div`
3
+ display: flex;
4
+ justify-content: space-between;
5
+ align-items: center;
6
+
7
+ ${_ref => {
8
+ let {
9
+ center
10
+ } = _ref;
11
+ return center && `
12
+ flex-direction: column;
13
+ justify-content: center;
14
+ `;
15
+ }}
16
+
17
+ ${_ref2 => {
18
+ let {
19
+ enableRowDrag
20
+ } = _ref2;
21
+ return enableRowDrag && 'padding-right: calc(1.5rem + 0.5rem);';
22
+ }}
23
+ `;
24
+ export default TableFooter;
@@ -0,0 +1,6 @@
1
+ import styled from 'styled-components';
2
+ const TableFooterInfo = styled.p`
3
+ font-size: var(--font-body2);
4
+ color: var(--font-on-background);
5
+ `;
6
+ export default TableFooterInfo;
@@ -0,0 +1,26 @@
1
+ import styled from 'styled-components';
2
+ const TableFooterPager = styled.div`
3
+ display: flex;
4
+
5
+ ${_ref => {
6
+ let {
7
+ center
8
+ } = _ref;
9
+ if (center) {
10
+ return `
11
+ flex-wrap: wrap;
12
+ justify-content: center;
13
+
14
+ > * {
15
+ margin-top: var(--spacing-xs);
16
+ }
17
+ `;
18
+ }
19
+ return `
20
+ > :last-child {
21
+ margin-left: var(--spacing-xs);
22
+ }
23
+ `;
24
+ }}
25
+ `;
26
+ export default TableFooterPager;
@@ -0,0 +1,12 @@
1
+ import styled from 'styled-components';
2
+ import BaseTableHeadCell from './BaseTableHeadCell';
3
+ const TableHeadCell = styled(BaseTableHeadCell)`
4
+ &:first-child {
5
+ padding-left: var(--spacing);
6
+ }
7
+
8
+ &:last-child {
9
+ padding-right: var(--spacing);
10
+ }
11
+ `;
12
+ export default TableHeadCell;
@@ -0,0 +1,31 @@
1
+ import styled from 'styled-components';
2
+ import { FaSortUp, FaSortDown } from 'react-icons/fa/index.esm';
3
+ const TableSort = styled.div`
4
+ position: relative;
5
+
6
+ > svg {
7
+ color: var(--color-primary);
8
+ position: absolute;
9
+ }
10
+ `;
11
+ const UpIcon = styled(FaSortUp)`
12
+ top: -2px;
13
+ opacity: ${_ref => {
14
+ let {
15
+ $active
16
+ } = _ref;
17
+ return $active ? 1 : 0.5;
18
+ }};
19
+ `;
20
+ const DownIcon = styled(FaSortDown)`
21
+ opacity: ${_ref2 => {
22
+ let {
23
+ $active
24
+ } = _ref2;
25
+ return $active ? 1 : 0.5;
26
+ }};
27
+ `;
28
+ export default Object.assign(TableSort, {
29
+ UpIcon,
30
+ DownIcon
31
+ });
@@ -0,0 +1,54 @@
1
+ import { createGlobalStyle } from 'styled-components';
2
+ import scrollbar from '../styles/mixin/scrollbar';
3
+
4
+ // integrate tagify component
5
+ const TagifyStyle = createGlobalStyle`
6
+ .tagify__dropdown {
7
+ &__wrapper {
8
+ max-height: 320px;
9
+ border: 1px solid var(--border-color);
10
+ color: var(--font-on-background);
11
+ background: var(--color-background1);
12
+ box-shadow: var(--box-shadow);
13
+ border-radius: var(--border-radius);
14
+ padding: var(--spacing-s) 0;
15
+ overflow-y: auto;
16
+ overflow-x: visible;
17
+
18
+ ${scrollbar}
19
+ }
20
+
21
+ &__item {
22
+ max-width: 100%;
23
+ word-break: break-all;
24
+ padding: 12px var(--spacing-s);
25
+ background: var(--color-background1);
26
+ transition: 0.3s;
27
+
28
+ &:hover {
29
+ background: var(--color-hover);
30
+ }
31
+
32
+ &[data-value="__create__"] {
33
+ border-radius: 0 0 var(--border-radius) var(--border-radius);
34
+ border-top: 1px solid var(--border-color);
35
+ padding-top: var(--spacing);
36
+
37
+ &.fixed-bottom{
38
+ position: fixed;
39
+ bottom: 0;
40
+ left: 0;
41
+ right: 0;
42
+ padding: var(--spacing-s);
43
+ }
44
+ }
45
+ }
46
+
47
+ &.has-fixed-bottom {
48
+ .tagify__dropdown__wrapper {
49
+ padding-bottom: 60px;
50
+ }
51
+ }
52
+ }
53
+ `;
54
+ export default TagifyStyle;
@@ -0,0 +1,49 @@
1
+ import { forwardRef } from 'react';
2
+ import styled from 'styled-components';
3
+ import Tagify from '@yaireo/tagify/dist/react.tagify';
4
+ import '@yaireo/tagify/dist/tagify.css';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const Tags = /*#__PURE__*/forwardRef((_ref, ref) => {
7
+ let {
8
+ onChange,
9
+ settings,
10
+ tagifyProps,
11
+ ...props
12
+ } = _ref;
13
+ return /*#__PURE__*/_jsx(Wrapper, {
14
+ children: /*#__PURE__*/_jsx(Tagify, {
15
+ tagifyRef: ref,
16
+ settings: settings,
17
+ ...tagifyProps,
18
+ onChange: onChange,
19
+ ...props
20
+ })
21
+ });
22
+ });
23
+ const Wrapper = styled.div`
24
+ .tagify[readonly]:not(.tagify--mix):not(.tagify--select) {
25
+ opacity: 0.5;
26
+ }
27
+ .tagify {
28
+ --tags-disabled-bg: var(--font-on-mute);
29
+ --tags-border-color: var(--border-color);
30
+ --tags-hover-border-color: var(--border-color);
31
+ --tags-focus-border-color: var(--color-primary);
32
+ --tag-invalid-color: var(--color-danger);
33
+ --tag-remove-btn-bg--hover: var(--color-danger);
34
+ --input-color: var(--font-on-background);
35
+
36
+ border-radius: var(--border-radius-l);
37
+ width: 100%;
38
+
39
+ .tagify__tag {
40
+ > div::before {
41
+ border-radius: var(--border-radius-l);
42
+ }
43
+ }
44
+ .tagify__input::before {
45
+ color: var(--font-on-mute);
46
+ }
47
+ }
48
+ `;
49
+ export default Tags;
@@ -0,0 +1,3 @@
1
+ export { default as Tags } from './Tags';
2
+ export { default as TagifyStyle } from './TagifyStyle';
3
+ export { default as getCreateButtonTemplate } from './templates/getCreateButtonTemplate';
@@ -0,0 +1,12 @@
1
+ const getCreateButtonTemplate = function (label) {
2
+ let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3
+ const attrString = Object.entries(props).map(_ref => {
4
+ let [key, val] = _ref;
5
+ return `${key}="${val}"`;
6
+ }).join(' ');
7
+ return `
8
+ <div ${attrString} tabindex="0" role="option" data-value="__create__">
9
+ ${label}
10
+ </div>`;
11
+ };
12
+ export default getCreateButtonTemplate;
@@ -0,0 +1,79 @@
1
+ import styled from 'styled-components';
2
+ import color from '../styles/mixin/color';
3
+ const Paragraph = styled.p`
4
+ color: var(--font-on-background);
5
+ font-size: var(--font-body1);
6
+ margin-bottom: var(--spacing-s);
7
+ word-break: break-word;
8
+ overflow-wrap: break-word;
9
+ position: relative;
10
+
11
+ &:last-child {
12
+ margin-bottom: 0;
13
+ }
14
+
15
+ ${_ref => {
16
+ let {
17
+ flex
18
+ } = _ref;
19
+ return flex && 'display: flex;';
20
+ }}
21
+
22
+ ${_ref2 => {
23
+ let {
24
+ justifyContentBetween
25
+ } = _ref2;
26
+ return justifyContentBetween && 'justify-content: space-between;';
27
+ }}
28
+
29
+ ${_ref3 => {
30
+ let {
31
+ inline
32
+ } = _ref3;
33
+ return inline && `
34
+ display: inline;
35
+ margin-right: var(--spacing-s);
36
+ `;
37
+ }}
38
+
39
+ ${_ref4 => {
40
+ let {
41
+ fontH3
42
+ } = _ref4;
43
+ return fontH3 && 'font-size: var(--font-h3);';
44
+ }}
45
+
46
+ ${_ref5 => {
47
+ let {
48
+ fontWeightBold
49
+ } = _ref5;
50
+ return fontWeightBold && 'font-weight: bold;';
51
+ }}
52
+
53
+ ${_ref6 => {
54
+ let {
55
+ marginBottomXS
56
+ } = _ref6;
57
+ return marginBottomXS && 'margin-bottom: var(--spacing-xs);';
58
+ }}
59
+
60
+ ${color}
61
+
62
+ ${_ref7 => {
63
+ let {
64
+ badge
65
+ } = _ref7;
66
+ return badge && `&:after {
67
+ content: '';
68
+ position: absolute;
69
+ top: -2px;
70
+ right: -12px;
71
+ height: 8px;
72
+ width: 8px;
73
+ border-radius: var(--border-radius);
74
+ background-color: var(--color-${badge});
75
+ }
76
+ `;
77
+ }}
78
+ `;
79
+ export default Paragraph;
@@ -0,0 +1 @@
1
+ export { default as Paragraph } from './Paragraph';
@@ -0,0 +1,132 @@
1
+ import styled from 'styled-components';
2
+ const Timeline = styled.div`
3
+ position: relative;
4
+
5
+ &:before {
6
+ content: '';
7
+ position: absolute;
8
+ left: 7.8rem;
9
+ width: 0.214rem;
10
+ top: 5px;
11
+ bottom: 5px;
12
+ height: calc(100% - 5px);
13
+ background-color: #e7e9f5;
14
+
15
+ ${_ref => {
16
+ let {
17
+ noTag
18
+ } = _ref;
19
+ return noTag && 'left: 0.8rem;';
20
+ }}
21
+ }
22
+ `;
23
+ const Items = styled.div``;
24
+ const Item = styled.div`
25
+ display: table;
26
+ position: relative;
27
+ margin-bottom: 1.5rem;
28
+
29
+ &:last-child {
30
+ margin-bottom: 0;
31
+ }
32
+ `;
33
+ const ItemTag = styled.span`
34
+ display: table-cell;
35
+ font-size: var(--font-body1);
36
+ font-weight: 500;
37
+ vertical-align: top;
38
+ position: absolute;
39
+ padding-top: 0.5rem;
40
+ color: var(--font-on-background);
41
+ width: 6.5rem;
42
+ text-align: center;
43
+ `;
44
+ const ItemCircle = styled.div`
45
+ border-radius: 50%;
46
+ border: 0.89rem solid #2d2c4c;
47
+ z-index: 1;
48
+ top: 0.2rem;
49
+ left: 7rem;
50
+ position: relative;
51
+
52
+ > svg {
53
+ font-size: 1.5rem;
54
+ top: 0;
55
+ left: 0;
56
+ transform: translate(-50%, -50%);
57
+ position: absolute;
58
+ }
59
+
60
+ ${_ref2 => {
61
+ let {
62
+ noTag
63
+ } = _ref2;
64
+ return noTag && 'left: 0;';
65
+ }}
66
+
67
+ ${_ref3 => {
68
+ let {
69
+ success
70
+ } = _ref3;
71
+ return success && 'color: var(--color-success);';
72
+ }}
73
+
74
+ ${_ref4 => {
75
+ let {
76
+ danger
77
+ } = _ref4;
78
+ return danger && 'color: var(--color-danger);';
79
+ }}
80
+
81
+ ${_ref5 => {
82
+ let {
83
+ warning
84
+ } = _ref5;
85
+ return warning && 'color: var(--color-warning);';
86
+ }}
87
+
88
+ ${_ref6 => {
89
+ let {
90
+ grey
91
+ } = _ref6;
92
+ return grey && 'color: var(--color-grey);';
93
+ }}
94
+ `;
95
+ const ItemDescription = styled.div`
96
+ display: table-cell;
97
+ vertical-align: top;
98
+ font-size: 1rem;
99
+ padding: 0 0 0 8rem;
100
+ color: var(--font-on-background);
101
+
102
+ ${_ref7 => {
103
+ let {
104
+ noTag
105
+ } = _ref7;
106
+ return noTag && 'padding-left: 1rem;';
107
+ }}
108
+ `;
109
+ const ItemTitle = styled.span`
110
+ display: block;
111
+ font-weight: 400;
112
+
113
+ &:last-child {
114
+ margin-top: 8px;
115
+ }
116
+ `;
117
+ const ItemText = styled.span`
118
+ display: block;
119
+ color: var(--font-on-mute);
120
+ margin-top: 8px;
121
+ line-height: 1.25;
122
+ word-break: break-all;
123
+ `;
124
+ export default Object.assign(Timeline, {
125
+ Items,
126
+ Item,
127
+ ItemTag,
128
+ ItemCircle,
129
+ ItemDescription,
130
+ ItemTitle,
131
+ ItemText
132
+ });
@@ -0,0 +1 @@
1
+ export { default as Timeline } from './Timeline';
@@ -0,0 +1,38 @@
1
+ import styled from 'styled-components';
2
+ import { ToastContainer } from 'react-toastify';
3
+ const CustomToastContainer = styled(ToastContainer)`
4
+ width: 360px;
5
+
6
+ .Toastify__toast {
7
+ padding: 15px 15px 15px 50px;
8
+ box-shadow: 0 0 8px #999999;
9
+ background-repeat: no-repeat;
10
+ background-position: 15px center;
11
+
12
+ &.no-background-image {
13
+ background-image: none;
14
+ padding-left: 15px;
15
+ }
16
+ }
17
+
18
+ .Toastify__toast--error {
19
+ background-color: var(--color-danger);
20
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=');
21
+ }
22
+
23
+ .Toastify__toast--success {
24
+ background-color: var(--color-success);
25
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==');
26
+ }
27
+
28
+ .Toastify__toast--warning {
29
+ background-color: var(--color-warning);
30
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==');
31
+ }
32
+
33
+ .Toastify__toast--info {
34
+ background-color: var(--color-primary);
35
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=');
36
+ }
37
+ `;
38
+ export default CustomToastContainer;
@@ -0,0 +1,44 @@
1
+ import styled from 'styled-components';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ const MessageContainer = _ref => {
4
+ let {
5
+ title,
6
+ message,
7
+ containHTML = false
8
+ } = _ref;
9
+ return /*#__PURE__*/_jsxs("div", {
10
+ "data-testid": "messageContainer",
11
+ children: [title && /*#__PURE__*/_jsx(Title, {
12
+ children: title
13
+ }), containHTML ? /*#__PURE__*/_jsx(Message, {
14
+ dangerouslySetInnerHTML: {
15
+ __html: message
16
+ }
17
+ }) : /*#__PURE__*/_jsx(Message, {
18
+ children: message
19
+ })]
20
+ });
21
+ };
22
+ const Title = styled.div`
23
+ margin: 0;
24
+ margin-bottom: 0.25rem;
25
+ font-size: 1rem;
26
+ line-height: 1.5rem;
27
+ font-weight: 500;
28
+ `;
29
+ const Message = styled.div`
30
+ margin: 0;
31
+ font-size: 0.9rem;
32
+ line-height: 1.2rem;
33
+ word-break: break-word;
34
+ white-space: pre-wrap;
35
+
36
+ ul {
37
+ margin-left: 1rem;
38
+
39
+ li {
40
+ list-style: disc;
41
+ }
42
+ }
43
+ `;
44
+ export default MessageContainer;
@@ -0,0 +1,3 @@
1
+ export { default as CustomToastContainer } from './CustomToastContainer';
2
+ export { default as MessageContainer } from './MessageContainer';
3
+ export * from './show';
@@ -0,0 +1,29 @@
1
+ import { toast } from 'react-toastify';
2
+ import MessageContainer from './MessageContainer';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ const showSuccessMessage = props => {
5
+ return showMessage('success', props);
6
+ };
7
+ const showErrorMessage = props => {
8
+ return showMessage('error', props);
9
+ };
10
+ const showWarningMessage = props => {
11
+ return showMessage('warning', props);
12
+ };
13
+ const showInfoMessage = props => {
14
+ return showMessage('info', props);
15
+ };
16
+ const showMessage = (type, _ref) => {
17
+ let {
18
+ title,
19
+ message,
20
+ containHTML = false,
21
+ options = {}
22
+ } = _ref;
23
+ return toast[type](/*#__PURE__*/_jsx(MessageContainer, {
24
+ title: title,
25
+ message: message,
26
+ containHTML: containHTML
27
+ }), options);
28
+ };
29
+ export { showSuccessMessage, showErrorMessage, showWarningMessage, showInfoMessage };
@@ -0,0 +1 @@
1
+ @import 'react-toastify/dist/ReactToastify.css';