1mpacto-react-ui 1.0.0 → 1.0.2

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 (139) hide show
  1. package/dist/assets/_mixins.scss +43 -43
  2. package/dist/assets/core.css +1 -1
  3. package/dist/assets/fontfamily.css +1 -1
  4. package/dist/assets/icons/arrow-narrow-down.svg +3 -3
  5. package/dist/index.cjs +65 -65
  6. package/dist/index.mjs +2104 -2091
  7. package/dist/package.json.d.ts +131 -131
  8. package/dist/src/components/Table/Table.d.ts +1 -1
  9. package/dist/src/components/Table/Table.stories.d.ts +16 -2
  10. package/dist/src/hooks/useAsyncDebounce.d.ts +9 -0
  11. package/dist/src/hooks/useCombinedResizeObserver.d.ts +66 -0
  12. package/dist/src/hooks/useCountdown.d.ts +61 -0
  13. package/dist/src/hooks/useDeepCompareEffect.d.ts +13 -0
  14. package/dist/src/hooks/useElementOrWindowMediaQuery.d.ts +9 -0
  15. package/dist/src/hooks/useEventListener.d.ts +27 -0
  16. package/dist/src/hooks/useMasonry.d.ts +79 -0
  17. package/dist/src/hooks/useMergeRefs.d.ts +26 -0
  18. package/dist/src/hooks/useOtpInput.d.ts +157 -0
  19. package/dist/src/hooks/useStateRef.d.ts +8 -0
  20. package/dist/src/interfaces/components/Alert/index.d.ts +9 -1
  21. package/dist/src/interfaces/components/Badges/index.d.ts +28 -0
  22. package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +79 -0
  23. package/dist/src/interfaces/components/Button/index.d.ts +44 -0
  24. package/dist/src/interfaces/components/ButtonIcon/index.d.ts +36 -0
  25. package/dist/src/interfaces/components/ButtonPopover/index.d.ts +78 -0
  26. package/dist/src/interfaces/components/Calendar/index.d.ts +364 -0
  27. package/dist/src/interfaces/components/Chart/index.d.ts +460 -0
  28. package/dist/src/interfaces/components/Checkbox/index.d.ts +12 -0
  29. package/dist/src/interfaces/components/Chips/index.d.ts +36 -0
  30. package/dist/src/interfaces/components/Collapse/index.d.ts +60 -0
  31. package/dist/src/interfaces/components/DatePicker/index.d.ts +274 -0
  32. package/dist/src/interfaces/components/ErrorMessage/index.d.ts +16 -0
  33. package/dist/src/interfaces/components/FilterContainer/index.d.ts +102 -0
  34. package/dist/src/interfaces/components/Input/index.d.ts +180 -0
  35. package/dist/src/interfaces/components/Modal/index.d.ts +45 -0
  36. package/dist/src/interfaces/components/NumberFormat/index.d.ts +25 -0
  37. package/dist/src/interfaces/components/Pagination/index.d.ts +81 -0
  38. package/dist/src/interfaces/components/Popover/index.d.ts +95 -0
  39. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +56 -0
  40. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +44 -0
  41. package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +195 -1
  42. package/dist/src/interfaces/components/Sidebar/index.d.ts +226 -0
  43. package/dist/src/interfaces/components/Step/index.d.ts +153 -0
  44. package/dist/src/interfaces/components/Switch/index.d.ts +53 -0
  45. package/dist/src/interfaces/components/Table/index.d.ts +386 -1
  46. package/dist/src/interfaces/components/Tabs/index.d.ts +126 -0
  47. package/dist/src/interfaces/components/TextEditor/index.d.ts +12 -0
  48. package/dist/src/interfaces/components/Textarea/index.d.ts +156 -0
  49. package/dist/src/interfaces/components/TimeRange/index.d.ts +100 -0
  50. package/dist/src/interfaces/components/Timeline/index.d.ts +36 -0
  51. package/dist/src/interfaces/components/Tooltip/index.d.ts +56 -0
  52. package/dist/src/interfaces/components/TruncateComponent/index.d.ts +34 -0
  53. package/dist/src/interfaces/components/UploadFile/index.d.ts +184 -1
  54. package/dist/src/interfaces/components/Virtualization/ListVirtualization.d.ts +138 -0
  55. package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +143 -0
  56. package/dist/tinymce/CHANGELOG.md +3785 -3785
  57. package/dist/tinymce/js/tinymce/langs/README.md +3 -3
  58. package/dist/tinymce/js/tinymce/license.md +6 -6
  59. package/dist/tinymce/js/tinymce/notices.txt +21 -21
  60. package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +8 -8
  61. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ar.js +92 -92
  62. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +92 -92
  63. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ca.js +92 -92
  64. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/cs.js +92 -92
  65. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/da.js +92 -92
  66. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/de.js +92 -92
  67. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/el.js +92 -92
  68. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/en.js +92 -92
  69. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/es.js +92 -92
  70. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/eu.js +92 -92
  71. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fa.js +92 -92
  72. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fi.js +92 -92
  73. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +92 -92
  74. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js +92 -92
  75. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hi.js +92 -92
  76. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hr.js +92 -92
  77. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +92 -92
  78. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/id.js +92 -92
  79. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/it.js +92 -92
  80. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ja.js +92 -92
  81. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/kk.js +92 -92
  82. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +92 -92
  83. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ms.js +92 -92
  84. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +92 -92
  85. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nl.js +92 -92
  86. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pl.js +92 -92
  87. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +92 -92
  88. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +92 -92
  89. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ro.js +92 -92
  90. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ru.js +92 -92
  91. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sk.js +92 -92
  92. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +92 -92
  93. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +92 -92
  94. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th_TH.js +92 -92
  95. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/tr.js +92 -92
  96. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/uk.js +92 -92
  97. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/vi.js +92 -92
  98. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +86 -86
  99. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +92 -92
  100. package/dist/tinymce/js/tinymce/skins/content/dark/content.js +9 -9
  101. package/dist/tinymce/js/tinymce/skins/content/dark/content.min.css +10 -10
  102. package/dist/tinymce/js/tinymce/skins/content/default/content.js +9 -9
  103. package/dist/tinymce/js/tinymce/skins/content/default/content.min.css +10 -10
  104. package/dist/tinymce/js/tinymce/skins/content/document/content.js +9 -9
  105. package/dist/tinymce/js/tinymce/skins/content/document/content.min.css +10 -10
  106. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.js +9 -9
  107. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.min.css +10 -10
  108. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.js +9 -9
  109. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -10
  110. package/dist/tinymce/js/tinymce/skins/content/writer/content.js +9 -9
  111. package/dist/tinymce/js/tinymce/skins/content/writer/content.min.css +10 -10
  112. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +9 -9
  113. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +10 -10
  114. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +9 -9
  115. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +10 -10
  116. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +1 -1
  117. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -1
  118. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +9 -9
  119. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -10
  120. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +9 -9
  121. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +10 -10
  122. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
  123. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
  124. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +9 -9
  125. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -10
  126. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +9 -9
  127. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +10 -10
  128. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
  129. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -1
  130. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +9 -9
  131. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -10
  132. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +9 -9
  133. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -10
  134. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
  135. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -1
  136. package/dist/tinymce/js/tinymce/tinymce.d.ts +3350 -3350
  137. package/dist/tinymce/js/tinymce/tinymce.min.js +10 -10
  138. package/dist/types-external/table.d.ts +15 -15
  139. package/package.json +131 -131
@@ -1,134 +1,134 @@
1
- declare const _default: {
2
- "name": "1mpacto-react-ui",
3
- "private": false,
4
- "version": "1.0.0",
5
- "type": "module",
6
- "engines": {
7
- "node": ">=20.19.4",
8
- "npm": ">=10.8.2"
9
- },
10
- "scripts": {
11
- "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",
12
- "copy:mixin-scss": "cp ./src/styles/_mixins.scss ./dist/assets/_mixins.scss",
13
- "dev": "vite",
14
- "transform:style": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-style.js",
15
- "postProcess:fontfamily": "node ./src/utils/post-process-css.js",
16
- "process:transformStyle": "npm run postProcess:fontfamily && npm run transform:style",
17
- "process:copyStyle": "npm run copy:mixin-scss && npm run copy:toastify-css",
18
- "build": "tsc -b && vite build && npm run build:css && npm run build:fontfamily && npm run process:copyStyle && npm run process:transformStyle",
19
- "build:css": "tailwindcss -i ./src/styles/index.scss -o ./dist/assets/core.css --minify",
20
- "build:fontfamily": "sass ./src/styles/fontfamily.scss ./dist/assets/fontfamily.css --no-source-map --style=compressed",
21
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
22
- "preview": "vite preview",
23
- "prepare": "husky && npm run build",
24
- "watch:build": "npx watch \"npm run build\" ./src",
25
- "storybook": "storybook dev -p 6006",
26
- "build-storybook": "storybook build",
27
- "postbuild": "copyfiles -f src/types/* dist/types-external/",
28
- "install": "copyfiles -f dist/types-external/* ../../src/types/"
29
- },
30
- "devDependencies": {
31
- "@chromatic-com/storybook": "^3.2.2",
32
- "@storybook/addon-essentials": "^8.4.7",
33
- "@storybook/addon-interactions": "^8.4.7",
34
- "@storybook/addon-onboarding": "^8.4.7",
35
- "@storybook/blocks": "^8.4.7",
36
- "@storybook/react": "^8.4.7",
37
- "@storybook/react-vite": "^8.4.7",
38
- "@storybook/test": "^8.4.7",
39
- "@types/js-cookie": "^3.0.6",
40
- "@types/node": "^20.14.10",
41
- "@types/node-forge": "^1.3.14",
42
- "@types/react": "^18.3.3",
43
- "@types/react-dom": "^18.3.0",
44
- "@typescript-eslint/eslint-plugin": "^7.13.1",
45
- "@typescript-eslint/parser": "^7.13.1",
46
- "@vitejs/plugin-react-swc": "^3.5.0",
47
- "autoprefixer": "^10.4.19",
48
- "eslint": "^8.57.0",
49
- "eslint-config-prettier": "^9.1.0",
50
- "eslint-plugin-import": "^2.32.0",
51
- "eslint-plugin-prettier": "^5.1.3",
52
- "eslint-plugin-react": "^7.34.3",
53
- "eslint-plugin-react-hooks": "^4.6.2",
54
- "eslint-plugin-react-refresh": "^0.4.7",
55
- "eslint-plugin-storybook": "^0.11.1",
56
- "glob": "^11.0.3",
57
- "husky": "^9.0.11",
58
- "lint-staged": "^15.2.7",
59
- "postcss": "^8.4.39",
60
- "prettier": "^3.3.2",
61
- "react": "^18.3.1",
62
- "react-dom": "^18.3.1",
63
- "sass": "^1.77.6",
64
- "storybook": "^8.4.7",
65
- "tailwindcss": "^3.4.4",
66
- "ts-node": "^10.9.2",
67
- "typescript": "^5.2.2",
68
- "vite": "^5.3.1",
69
- "vite-plugin-dts": "^3.9.1"
70
- },
71
- "peerDependencies": {
72
- "react": ">=18",
73
- "react-dom": ">=18",
74
- "yup": ">=1.4.0"
75
- },
76
- "main": "./dist/index.cjs",
77
- "module": "./dist/index.mjs",
78
- "types": "./dist/index.d.ts",
79
- "exports": {
80
- ".": {
81
- "types": "./dist/index.d.ts",
82
- "import": "./dist/index.mjs",
83
- "require": "./dist/index.cjs"
84
- },
85
- "./dist/assets/toast.css": "./dist/assets/toast.css",
86
- "./dist/assets/core.css": "./dist/assets/core.css",
87
- "./dist/assets/style.css": "./dist/assets/style.css",
88
- "./dist/assets/colors.css": "./dist/assets/colors.css",
89
- "./dist/assets/_colors.scss": "./dist/assets/_colors.scss",
90
- "./dist/assets/typography.css": "./dist/assets/typography.css",
91
- "./dist/assets/_typography.scss": "./dist/assets/_typography.scss",
92
- "./dist/assets/screen.css": "./dist/assets/screen.css",
93
- "./dist/assets/_screen.scss": "./dist/assets/_screen.scss",
94
- "./dist/assets/_mixins.scss": "./dist/assets/_mixins.scss"
95
- },
96
- "files": [
97
- "/dist"
98
- ],
99
- "publishConfig": {
100
- "access": "public"
101
- },
102
- "lint-staged": {
103
- "*.{js,jsx,ts,tsx}": [
104
- "eslint --quiet --fix"
105
- ],
106
- "*.{json,js,ts,jsx,tsx,html}": [
107
- "prettier --write --ignore-unknown"
108
- ]
109
- },
110
- "dependencies": {
111
- "@floating-ui/react": "^0.26.19",
112
- "@internationalized/date": "^3.5.4",
113
- "@tanstack/react-table": "^8.19.2",
114
- "@tinymce/tinymce-react": "^6.2.1",
115
- "bignumber.js": "^9.1.2",
116
- "chart.js": "^4.4.3",
117
- "copyfiles": "^2.4.1",
118
- "date-fns": "^3.6.0",
119
- "js-cookie": "^3.0.5",
120
- "lossless-json": "^4.0.2",
121
- "node-forge": "^1.3.1",
122
- "react-aria": "^3.33.1",
123
- "react-chartjs-2": "^5.2.0",
124
- "react-number-format": "^5.4.0",
125
- "react-select": "^5.8.0",
126
- "react-stately": "^3.31.1",
127
- "react-toastify": "^10.0.5",
128
- "react-virtuoso": "^4.7.11",
129
- "tinymce": "^7.9.1"
130
- }
131
- }
1
+ declare const _default: {
2
+ "name": "1mpacto-react-ui",
3
+ "private": false,
4
+ "version": "1.0.2",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=20.19.4",
8
+ "npm": ">=10.8.2"
9
+ },
10
+ "scripts": {
11
+ "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",
12
+ "copy:mixin-scss": "cp ./src/styles/_mixins.scss ./dist/assets/_mixins.scss",
13
+ "dev": "vite",
14
+ "transform:style": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-style.js",
15
+ "postProcess:fontfamily": "node ./src/utils/post-process-css.js",
16
+ "process:transformStyle": "npm run postProcess:fontfamily && npm run transform:style",
17
+ "process:copyStyle": "npm run copy:mixin-scss && npm run copy:toastify-css",
18
+ "build": "tsc -b && vite build && npm run build:css && npm run build:fontfamily && npm run process:copyStyle && npm run process:transformStyle",
19
+ "build:css": "tailwindcss -i ./src/styles/index.scss -o ./dist/assets/core.css --minify",
20
+ "build:fontfamily": "sass ./src/styles/fontfamily.scss ./dist/assets/fontfamily.css --no-source-map --style=compressed",
21
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
22
+ "preview": "vite preview",
23
+ "prepare": "husky && npm run build",
24
+ "watch:build": "npx watch \"npm run build\" ./src",
25
+ "storybook": "storybook dev -p 6006",
26
+ "build-storybook": "storybook build",
27
+ "postbuild": "copyfiles -f src/types/* dist/types-external/",
28
+ "install": "copyfiles -f dist/types-external/* ../../src/types/"
29
+ },
30
+ "devDependencies": {
31
+ "@chromatic-com/storybook": "^3.2.2",
32
+ "@storybook/addon-essentials": "^8.4.7",
33
+ "@storybook/addon-interactions": "^8.4.7",
34
+ "@storybook/addon-onboarding": "^8.4.7",
35
+ "@storybook/blocks": "^8.4.7",
36
+ "@storybook/react": "^8.4.7",
37
+ "@storybook/react-vite": "^8.4.7",
38
+ "@storybook/test": "^8.4.7",
39
+ "@types/js-cookie": "^3.0.6",
40
+ "@types/node": "^20.14.10",
41
+ "@types/node-forge": "^1.3.14",
42
+ "@types/react": "^18.3.3",
43
+ "@types/react-dom": "^18.3.0",
44
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
45
+ "@typescript-eslint/parser": "^7.13.1",
46
+ "@vitejs/plugin-react-swc": "^3.5.0",
47
+ "autoprefixer": "^10.4.19",
48
+ "eslint": "^8.57.0",
49
+ "eslint-config-prettier": "^9.1.0",
50
+ "eslint-plugin-import": "^2.32.0",
51
+ "eslint-plugin-prettier": "^5.1.3",
52
+ "eslint-plugin-react": "^7.34.3",
53
+ "eslint-plugin-react-hooks": "^4.6.2",
54
+ "eslint-plugin-react-refresh": "^0.4.7",
55
+ "eslint-plugin-storybook": "^0.11.1",
56
+ "glob": "^11.0.3",
57
+ "husky": "^9.0.11",
58
+ "lint-staged": "^15.2.7",
59
+ "postcss": "^8.4.39",
60
+ "prettier": "^3.3.2",
61
+ "react": "^18.3.1",
62
+ "react-dom": "^18.3.1",
63
+ "sass": "^1.77.6",
64
+ "storybook": "^8.4.7",
65
+ "tailwindcss": "^3.4.4",
66
+ "ts-node": "^10.9.2",
67
+ "typescript": "^5.2.2",
68
+ "vite": "^5.3.1",
69
+ "vite-plugin-dts": "^3.9.1"
70
+ },
71
+ "peerDependencies": {
72
+ "react": ">=18",
73
+ "react-dom": ">=18",
74
+ "yup": ">=1.4.0"
75
+ },
76
+ "main": "./dist/index.cjs",
77
+ "module": "./dist/index.mjs",
78
+ "types": "./dist/index.d.ts",
79
+ "exports": {
80
+ ".": {
81
+ "types": "./dist/index.d.ts",
82
+ "import": "./dist/index.mjs",
83
+ "require": "./dist/index.cjs"
84
+ },
85
+ "./dist/assets/toast.css": "./dist/assets/toast.css",
86
+ "./dist/assets/core.css": "./dist/assets/core.css",
87
+ "./dist/assets/style.css": "./dist/assets/style.css",
88
+ "./dist/assets/colors.css": "./dist/assets/colors.css",
89
+ "./dist/assets/_colors.scss": "./dist/assets/_colors.scss",
90
+ "./dist/assets/typography.css": "./dist/assets/typography.css",
91
+ "./dist/assets/_typography.scss": "./dist/assets/_typography.scss",
92
+ "./dist/assets/screen.css": "./dist/assets/screen.css",
93
+ "./dist/assets/_screen.scss": "./dist/assets/_screen.scss",
94
+ "./dist/assets/_mixins.scss": "./dist/assets/_mixins.scss"
95
+ },
96
+ "files": [
97
+ "/dist"
98
+ ],
99
+ "publishConfig": {
100
+ "access": "public"
101
+ },
102
+ "lint-staged": {
103
+ "*.{js,jsx,ts,tsx}": [
104
+ "eslint --quiet --fix"
105
+ ],
106
+ "*.{json,js,ts,jsx,tsx,html}": [
107
+ "prettier --write --ignore-unknown"
108
+ ]
109
+ },
110
+ "dependencies": {
111
+ "@floating-ui/react": "^0.26.19",
112
+ "@internationalized/date": "^3.5.4",
113
+ "@tanstack/react-table": "^8.19.2",
114
+ "@tinymce/tinymce-react": "^6.2.1",
115
+ "bignumber.js": "^9.1.2",
116
+ "chart.js": "^4.4.3",
117
+ "copyfiles": "^2.4.1",
118
+ "date-fns": "^3.6.0",
119
+ "js-cookie": "^3.0.5",
120
+ "lossless-json": "^4.0.2",
121
+ "node-forge": "^1.3.1",
122
+ "react-aria": "^3.33.1",
123
+ "react-chartjs-2": "^5.2.0",
124
+ "react-number-format": "^5.4.0",
125
+ "react-select": "^5.8.0",
126
+ "react-stately": "^3.31.1",
127
+ "react-toastify": "^10.0.5",
128
+ "react-virtuoso": "^4.7.11",
129
+ "tinymce": "^7.9.1"
130
+ }
131
+ }
132
132
  ;
133
133
 
134
134
  export default _default;
@@ -3,5 +3,5 @@ import { ITable, IVirtualizationHead, IVirtualizationTable } from '../../interfa
3
3
 
4
4
  export declare const VirtualizationHead: React.ForwardRefExoticComponent<Omit<IVirtualizationHead, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
5
5
  export declare const VirtualizationTable: ({ style, context, ...props }: IVirtualizationTable) => import("react/jsx-runtime").JSX.Element;
6
- declare const Table: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Table: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, theadTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
7
7
  export default Table;
@@ -1,8 +1,9 @@
1
1
  import { StoryObj } from '@storybook/react';
2
+ import { ITable } from '../../interfaces/components/Table';
2
3
 
3
4
  declare const meta: {
4
5
  title: string;
5
- component: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }: import('../../interfaces/components/Table').ITable<T>) => import("react/jsx-runtime").JSX.Element;
6
+ component: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, theadTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
6
7
  parameters: {
7
8
  layout: string;
8
9
  };
@@ -271,9 +272,22 @@ declare const meta: {
271
272
  };
272
273
  };
273
274
  };
275
+ theadTrId: {
276
+ action: string;
277
+ description: string;
278
+ table: {
279
+ category: string;
280
+ type: {
281
+ summary: string;
282
+ };
283
+ defaultValue: {
284
+ summary: string;
285
+ };
286
+ };
287
+ };
274
288
  };
275
289
  args: {};
276
- render: (args: import('../../interfaces/components/Table').ITable<unknown>) => import("react/jsx-runtime").JSX.Element;
290
+ render: (args: ITable<unknown>) => import("react/jsx-runtime").JSX.Element;
277
291
  };
278
292
  export default meta;
279
293
  type Story = StoryObj<typeof meta>;
@@ -1,2 +1,11 @@
1
+ /**
2
+ * [ID] : Hook untuk melakukan debounce pada fungsi asinkron.
3
+ * [EN] : Hook to debounce an asynchronous function.
4
+ * @template T - [ID] : Tipe fungsi asinkron. [EN] : Asynchronous function type.
5
+ * @param defaultFn - [ID] : Fungsi yang akan di-debounce. [EN] : Function to be debounced.
6
+ * @param defaultWait - [ID] : Waktu tunggu default dalam milidetik (default: 0).
7
+ * [EN] : Default wait time in milliseconds (default: 0).
8
+ * @returns [ID] : Fungsi yang sudah di-debounce. [EN] : Debounced function.
9
+ */
1
10
  declare function useAsyncDebounce<T extends (...args: any[]) => Promise<any>>(defaultFn: T, defaultWait?: number): (...args: Parameters<T>) => Promise<ReturnType<T>>;
2
11
  export default useAsyncDebounce;
@@ -1,23 +1,89 @@
1
1
  import { default as React } from 'react';
2
2
 
3
+ /**
4
+ * [ID] : Interface untuk persegi panjang konten.
5
+ * [EN] : Interface for content rect.
6
+ */
3
7
  interface ContentRect {
8
+ /**
9
+ * [ID] : Lebar elemen.
10
+ * [EN] : Element width.
11
+ */
4
12
  width: number;
13
+ /**
14
+ * [ID] : Tinggi elemen.
15
+ * [EN] : Element height.
16
+ */
5
17
  height: number;
18
+ /**
19
+ * [ID] : Posisi atas elemen.
20
+ * [EN] : Element top position.
21
+ */
6
22
  top: number;
23
+ /**
24
+ * [ID] : Posisi kiri elemen.
25
+ * [EN] : Element left position.
26
+ */
7
27
  left: number;
28
+ /**
29
+ * [ID] : Posisi bawah elemen.
30
+ * [EN] : Element bottom position.
31
+ */
8
32
  bottom: number;
33
+ /**
34
+ * [ID] : Posisi kanan elemen.
35
+ * [EN] : Element right position.
36
+ */
9
37
  right: number;
38
+ /**
39
+ * [ID] : Posisi X elemen.
40
+ * [EN] : Element X position.
41
+ */
10
42
  x: number;
43
+ /**
44
+ * [ID] : Posisi Y elemen.
45
+ * [EN] : Element Y position.
46
+ */
11
47
  y: number;
12
48
  }
49
+ /**
50
+ * [ID] : Interface untuk hook CombinedResizeObserver.
51
+ * [EN] : Interface for CombinedResizeObserver hook.
52
+ * @template T - [ID] : Tipe elemen HTML. [EN] : HTML element type.
53
+ */
13
54
  interface CombinedResizeObserverHook<T extends HTMLElement> {
55
+ /**
56
+ * [ID] : Referensi ke elemen.
57
+ * [EN] : Reference to the element.
58
+ */
14
59
  ref: React.RefObject<T>;
60
+ /**
61
+ * [ID] : Ukuran jendela.
62
+ * [EN] : Window size.
63
+ */
15
64
  windowSize: {
16
65
  width: number;
17
66
  height: number;
18
67
  };
68
+ /**
69
+ * [ID] : Persegi panjang konten elemen.
70
+ * [EN] : Element content rect.
71
+ */
19
72
  contentRect: ContentRect;
20
73
  }
74
+ /**
75
+ * [ID] : Hook layout effect isomorfik (aman untuk SSR).
76
+ * [EN] : Isomorphic layout effect hook (SSR safe).
77
+ */
21
78
  export declare const useIsomorphicLayoutEffect: typeof React.useEffect;
79
+ /**
80
+ * [ID] : Hook untuk mengamati perubahan ukuran elemen dan jendela.
81
+ * [EN] : Hook to observe element and window resize changes.
82
+ * @template T - [ID] : Tipe elemen HTML. [EN] : HTML element type.
83
+ * @param dependencies - [ID] : Daftar dependensi (opsional). [EN] : Dependency list (optional).
84
+ * @param selector - [ID] : Selektor CSS untuk elemen (opsional). [EN] : CSS selector for element (optional).
85
+ * @returns [ID] : Objek berisi ref, ukuran jendela, dan rect konten.
86
+ * [EN] : Object containing ref, window size, and content rect.
87
+ */
22
88
  declare const useCombinedResizeObserver: <T extends HTMLElement>(dependencies?: unknown[], selector?: string) => CombinedResizeObserverHook<T>;
23
89
  export default useCombinedResizeObserver;
@@ -1,17 +1,78 @@
1
+ /**
2
+ * [ID] : Interface untuk opsi hook useCountdown.
3
+ * [EN] : Interface for useCountdown hook options.
4
+ */
1
5
  export interface IUseCountdown {
6
+ /**
7
+ * [ID] : Tanggal target hitung mundur.
8
+ * [EN] : Countdown target date.
9
+ */
2
10
  date: string;
11
+ /**
12
+ * [ID] : Interval waktu dalam milidetik.
13
+ * [EN] : Time interval in milliseconds.
14
+ */
3
15
  intervalMs: number;
16
+ /**
17
+ * [ID] : Status berjalan atau tidak.
18
+ * [EN] : Running status.
19
+ */
4
20
  running: boolean;
21
+ /**
22
+ * [ID] : Penyesuaian waktu dalam jam (opsional).
23
+ * [EN] : Time adjustment in hours (optional).
24
+ */
5
25
  adjustTimesTime?: number;
26
+ /**
27
+ * [ID] : Callback saat hitung mundur selesai (opsional).
28
+ * [EN] : Callback when countdown is done (optional).
29
+ */
6
30
  callbackDone?: () => void;
7
31
  }
32
+ /**
33
+ * [ID] : Interface untuk nilai kembalian hook useCountdown.
34
+ * [EN] : Interface for useCountdown hook return value.
35
+ */
8
36
  export interface IUseCountdownReturn {
37
+ /**
38
+ * [ID] : Sisa waktu dalam detik.
39
+ * [EN] : Remaining time in seconds.
40
+ */
9
41
  count: number;
42
+ /**
43
+ * [ID] : Status apakah hitung mundur sedang berjalan.
44
+ * [EN] : Status whether countdown is running.
45
+ */
10
46
  isRunning: boolean;
47
+ /**
48
+ * [ID] : Fungsi untuk memulai hitung mundur.
49
+ * [EN] : Function to start countdown.
50
+ */
11
51
  startCountdown: () => void;
52
+ /**
53
+ * [ID] : Fungsi untuk menghentikan hitung mundur.
54
+ * [EN] : Function to stop countdown.
55
+ */
12
56
  stopCountdown: () => void;
57
+ /**
58
+ * [ID] : Fungsi untuk mereset hitung mundur.
59
+ * [EN] : Function to reset countdown.
60
+ * @param value - [ID] : Nilai reset (opsional, bisa Date atau number).
61
+ * [EN] : Reset value (optional, can be Date or number).
62
+ */
13
63
  resetCountdown: (value?: Date | number) => void;
64
+ /**
65
+ * [ID] : Fungsi untuk mengatur callback saat selesai.
66
+ * [EN] : Function to set callback when done.
67
+ * @param val - [ID] : Fungsi callback. [EN] : Callback function.
68
+ */
14
69
  setCallbackDone: (val: () => void) => void;
15
70
  }
71
+ /**
72
+ * [ID] : Hook untuk hitung mundur waktu.
73
+ * [EN] : Hook for countdown timer.
74
+ * @param options - [ID] : Opsi hitung mundur. [EN] : Countdown options.
75
+ * @returns [ID] : Objek kontrol hitung mundur. [EN] : Countdown control object.
76
+ */
16
77
  declare const useCountdown: (options: IUseCountdown) => IUseCountdownReturn;
17
78
  export default useCountdown;
@@ -1,4 +1,17 @@
1
1
  import { default as React } from 'react';
2
2
 
3
+ /**
4
+ * [ID] : Hook untuk memoize nilai dengan perbandingan mendalam.
5
+ * [EN] : Hook to memoize value with deep comparison.
6
+ * @template T - [ID] : Tipe nilai. [EN] : Value type.
7
+ * @param value - [ID] : Nilai yang akan di-memoize. [EN] : Value to be memoized.
8
+ * @returns [ID] : Nilai yang sudah di-memoize. [EN] : Memoized value.
9
+ */
3
10
  export declare function useDeepCompareMemoize<T>(value: T): T;
11
+ /**
12
+ * [ID] : Hook useEffect dengan perbandingan dependensi mendalam.
13
+ * [EN] : useEffect hook with deep dependency comparison.
14
+ * @param callback - [ID] : Fungsi efek yang akan dijalankan. [EN] : Effect function to be executed.
15
+ * @param dependencies - [ID] : Daftar dependensi. [EN] : Dependency list.
16
+ */
4
17
  export declare function useDeepCompareEffect(callback: React.EffectCallback, dependencies: React.DependencyList): void;
@@ -1,2 +1,11 @@
1
+ /**
2
+ * [ID] : Hook untuk memeriksa media query pada elemen atau jendela.
3
+ * [EN] : Hook to check media query on element or window.
4
+ * @param query - [ID] : String media query (gunakan 'WIDTH' sebagai placeholder lebar).
5
+ * [EN] : Media query string (use 'WIDTH' as width placeholder).
6
+ * @param elementId - [ID] : ID elemen target (opsional, jika null menggunakan window).
7
+ * [EN] : Target element ID (optional, if null uses window).
8
+ * @returns [ID] : Boolean apakah query cocok. [EN] : Boolean whether query matches.
9
+ */
1
10
  declare function useElementOrWindowMediaQuery(query: string, elementId?: string | null): boolean;
2
11
  export default useElementOrWindowMediaQuery;
@@ -1,10 +1,37 @@
1
1
  import { default as React } from 'react';
2
2
 
3
+ /**
4
+ * [ID] : Interface untuk opsi hook useEventListener.
5
+ * [EN] : Interface for useEventListener hook options.
6
+ */
3
7
  interface UseEventListenerOptions {
8
+ /**
9
+ * [ID] : Referensi elemen target.
10
+ * [EN] : Target element reference.
11
+ */
4
12
  ref: React.RefObject<HTMLElement>;
13
+ /**
14
+ * [ID] : Fungsi handler utama.
15
+ * [EN] : Main handler function.
16
+ * @param ref - [ID] : Referensi elemen. [EN] : Element reference.
17
+ * @param event - [ID] : Objek event. [EN] : Event object.
18
+ */
5
19
  handlerMain: (ref: React.RefObject<HTMLElement>, event: Event) => void;
20
+ /**
21
+ * [ID] : Jenis event listener (default: 'mousedown').
22
+ * [EN] : Event listener type (default: 'mousedown').
23
+ */
6
24
  eventListener?: keyof DocumentEventMap | (string & {});
25
+ /**
26
+ * [ID] : Dependensi tambahan untuk useEffect (opsional).
27
+ * [EN] : Additional dependencies for useEffect (optional).
28
+ */
7
29
  useEffectDependency?: unknown[];
8
30
  }
31
+ /**
32
+ * [ID] : Hook untuk menambahkan event listener ke dokumen.
33
+ * [EN] : Hook to add event listener to document.
34
+ * @param options - [ID] : Opsi event listener. [EN] : Event listener options.
35
+ */
9
36
  export declare function useEventListener({ ref, handlerMain, eventListener, useEffectDependency, }: UseEventListenerOptions): void;
10
37
  export {};
@@ -1,25 +1,104 @@
1
1
  import { default as React } from 'react';
2
2
 
3
+ /**
4
+ * [ID] : Tipe arah layout masonry.
5
+ * [EN] : Masonry layout direction type.
6
+ */
3
7
  export type TMasonryDirection = 'masonry-ltr' | 'masonry-rtl' | 'top-down-ltr' | 'top-down-rtl';
8
+ /**
9
+ * [ID] : Tipe hook useMasonry.
10
+ * [EN] : useMasonry hook type.
11
+ * @template T - [ID] : Tipe elemen HTML kontainer. [EN] : Container HTML element type.
12
+ * @param params - [ID] : Parameter hook. [EN] : Hook parameters.
13
+ * @returns [ID] : Objek berisi fungsi hitung ulang layout. [EN] : Object containing recalculate layout function.
14
+ */
4
15
  export type TUseMasonry = <T extends HTMLElement>(params: {
16
+ /**
17
+ * [ID] : Referensi kontainer.
18
+ * [EN] : Container reference.
19
+ */
5
20
  containerRef: React.RefObject<T>;
21
+ /**
22
+ * [ID] : Elemen anak.
23
+ * [EN] : Children elements.
24
+ */
6
25
  children: React.ReactNode;
26
+ /**
27
+ * [ID] : Jumlah kolom.
28
+ * [EN] : Column count.
29
+ */
7
30
  columnCount: number;
31
+ /**
32
+ * [ID] : Jarak horizontal antar item.
33
+ * [EN] : Horizontal gap between items.
34
+ */
8
35
  gapX: number;
36
+ /**
37
+ * [ID] : Jarak vertikal antar item.
38
+ * [EN] : Vertical gap between items.
39
+ */
9
40
  gapY: number;
41
+ /**
42
+ * [ID] : Arah layout (opsional).
43
+ * [EN] : Layout direction (optional).
44
+ */
10
45
  direction?: TMasonryDirection;
46
+ /**
47
+ * [ID] : Waktu debounce hitung ulang (ms) (opsional).
48
+ * [EN] : Recalculate debounce time (ms) (optional).
49
+ */
11
50
  debounceRecalculate?: number;
51
+ /**
52
+ * [ID] : Durasi animasi (ms) (opsional).
53
+ * [EN] : Animation duration (ms) (optional).
54
+ */
12
55
  durationAnimation?: number;
56
+ /**
57
+ * [ID] : Aktifkan animasi (opsional).
58
+ * [EN] : Enable animation (optional).
59
+ */
13
60
  enableAnimation?: boolean;
14
61
  }) => {
62
+ /**
63
+ * [ID] : Fungsi untuk menghitung ulang layout.
64
+ * [EN] : Function to recalculate layout.
65
+ */
15
66
  recalculateLayout: () => void;
16
67
  };
68
+ /**
69
+ * [ID] : Interface untuk properti layout masonry.
70
+ * [EN] : Interface for masonry layout properties.
71
+ */
17
72
  export interface IMasonryLayout {
73
+ /**
74
+ * [ID] : Elemen anak.
75
+ * [EN] : Children elements.
76
+ */
18
77
  children: React.ReactNode | React.ReactNode[];
78
+ /**
79
+ * [ID] : Jumlah kolom (opsional).
80
+ * [EN] : Column count (optional).
81
+ */
19
82
  columnCount?: number;
83
+ /**
84
+ * [ID] : Jarak horizontal (opsional).
85
+ * [EN] : Horizontal gap (optional).
86
+ */
20
87
  gapX?: number;
88
+ /**
89
+ * [ID] : Jarak vertikal (opsional).
90
+ * [EN] : Vertical gap (optional).
91
+ */
21
92
  gapY?: number;
93
+ /**
94
+ * [ID] : Arah layout (opsional).
95
+ * [EN] : Layout direction (optional).
96
+ */
22
97
  direction?: TMasonryDirection;
23
98
  }
99
+ /**
100
+ * [ID] : Hook untuk mengatur layout masonry.
101
+ * [EN] : Hook to manage masonry layout.
102
+ */
24
103
  declare const useMasonry: TUseMasonry;
25
104
  export default useMasonry;