1mpacto-react-ui 2.0.1 → 2.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 (40) 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/assets/style.css +1 -1
  6. package/dist/index.cjs +121 -120
  7. package/dist/index.mjs +1449 -1430
  8. package/dist/package.json.d.ts +132 -132
  9. package/dist/src/components/Button/Button.config.d.ts +3 -0
  10. package/dist/src/components/Tabs/Tabs.config.d.ts +1 -0
  11. package/dist/src/interfaces/components/Button/index.d.ts +2 -2
  12. package/dist/src/interfaces/components/Sidebar/index.d.ts +5 -0
  13. package/dist/src/interfaces/components/Tabs/index.d.ts +1 -1
  14. package/dist/tinymce/CHANGELOG.md +3785 -3785
  15. package/dist/tinymce/js/tinymce/notices.txt +21 -21
  16. package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +8 -8
  17. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +9 -9
  18. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +10 -10
  19. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +9 -9
  20. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +10 -10
  21. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +1 -1
  22. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +9 -9
  23. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -10
  24. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +9 -9
  25. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +10 -10
  26. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
  27. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +9 -9
  28. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -10
  29. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +9 -9
  30. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +10 -10
  31. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
  32. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +9 -9
  33. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -10
  34. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +9 -9
  35. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -10
  36. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
  37. package/dist/tinymce/js/tinymce/tinymce.d.ts +3350 -3350
  38. package/dist/tinymce/js/tinymce/tinymce.min.js +10 -10
  39. package/dist/types-external/table.d.ts +15 -15
  40. package/package.json +132 -132
@@ -1,135 +1,135 @@
1
- declare const _default: {
2
- "name": "1mpacto-react-ui",
3
- "private": false,
4
- "version": "2.0.1",
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": "^4.0.1",
32
- "@eslint/compat": "^1.3.1",
33
- "@eslint/eslintrc": "^3.3.1",
34
- "@eslint/js": "^9.32.0",
35
- "@storybook/addon-docs": "^9.0.18",
36
- "@storybook/addon-onboarding": "^9.0.18",
37
- "@storybook/react-vite": "^9.0.18",
38
- "@stylistic/eslint-plugin": "^5.2.2",
39
- "@types/js-cookie": "^3.0.6",
40
- "@types/node": "^20",
41
- "@types/node-forge": "^1.3.14",
42
- "@types/react": "^19.1.9",
43
- "@types/react-dom": "^19.1.7",
44
- "@typescript-eslint/eslint-plugin": "^8.38.0",
45
- "@typescript-eslint/parser": "^8.38.0",
46
- "@vitejs/plugin-react-swc": "^3.9.0",
47
- "autoprefixer": "^10.4.19",
48
- "eslint": "^9.32.0",
49
- "eslint-config-prettier": "^10.1.8",
50
- "eslint-plugin-import": "^2.32.0",
51
- "eslint-plugin-prettier": "^5.5.3",
52
- "eslint-plugin-react": "^7.37.5",
53
- "eslint-plugin-react-hooks": "^5.2.0",
54
- "eslint-plugin-react-refresh": "^0.4.19",
55
- "eslint-plugin-storybook": "^9.0.18",
56
- "glob": "^11.0.3",
57
- "globals": "^16.3.0",
58
- "husky": "^9.1.7",
59
- "lint-staged": "^16.1.2",
60
- "postcss": "^8.5.2",
61
- "prettier": "^3.6.2",
62
- "react": "^19.1.1",
63
- "react-dom": "^19.1.1",
64
- "sass": "^1.89.2",
65
- "storybook": "^9.0.18",
66
- "tailwindcss": "^3.4.4",
67
- "ts-node": "^10.9.2",
68
- "typescript": "~5.8.3",
69
- "vite": "^6.3.5",
70
- "vite-plugin-dts": "^4.5.4"
71
- },
72
- "peerDependencies": {
73
- "react": ">= 19",
74
- "react-dom": ">=19",
75
- "yup": ">=1.4.0"
76
- },
77
- "main": "./dist/index.cjs",
78
- "module": "./dist/index.mjs",
79
- "types": "./dist/index.d.ts",
80
- "exports": {
81
- ".": {
82
- "types": "./dist/index.d.ts",
83
- "import": "./dist/index.mjs",
84
- "require": "./dist/index.cjs"
85
- },
86
- "./dist/assets/toast.css": "./dist/assets/toast.css",
87
- "./dist/assets/core.css": "./dist/assets/core.css",
88
- "./dist/assets/style.css": "./dist/assets/style.css",
89
- "./dist/assets/colors.css": "./dist/assets/colors.css",
90
- "./dist/assets/_colors.scss": "./dist/assets/_colors.scss",
91
- "./dist/assets/typography.css": "./dist/assets/typography.css",
92
- "./dist/assets/_typography.scss": "./dist/assets/_typography.scss",
93
- "./dist/assets/screen.css": "./dist/assets/screen.css",
94
- "./dist/assets/_screen.scss": "./dist/assets/_screen.scss",
95
- "./dist/assets/_mixins.scss": "./dist/assets/_mixins.scss"
96
- },
97
- "files": [
98
- "/dist"
99
- ],
100
- "publishConfig": {
101
- "access": "public"
102
- },
103
- "lint-staged": {
104
- "*.{js,jsx,ts,tsx}": [
105
- "eslint --quiet --fix"
106
- ],
107
- "*.{json,js,ts,jsx,tsx,html}": [
108
- "prettier --write --ignore-unknown"
109
- ]
110
- },
111
- "dependencies": {
112
- "@floating-ui/react": "^0.27.15",
113
- "@internationalized/date": "^3.8.2",
114
- "@tanstack/react-table": "^8.21.3",
115
- "@tinymce/tinymce-react": "^6.2.1",
116
- "bignumber.js": "^9.1.2",
117
- "chart.js": "^4.5.0",
118
- "copyfiles": "^2.4.1",
119
- "date-fns": "^3.6.0",
120
- "js-cookie": "^3.0.5",
121
- "lossless-json": "^4.0.2",
122
- "node-forge": "^1.3.1",
123
- "react-aria": "^3.42.0",
124
- "react-chartjs-2": "^5.3.0",
125
- "react-number-format": "^5.4.4",
126
- "react-select": "^5.10.2",
127
- "react-stately": "^3.40.0",
128
- "react-toastify": "^11.0.5",
129
- "react-virtuoso": "^4.13.0",
130
- "tinymce": "^7.9.1"
131
- }
132
- }
1
+ declare const _default: {
2
+ "name": "1mpacto-react-ui",
3
+ "private": false,
4
+ "version": "2.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": "^4.0.1",
32
+ "@eslint/compat": "^1.3.1",
33
+ "@eslint/eslintrc": "^3.3.1",
34
+ "@eslint/js": "^9.32.0",
35
+ "@storybook/addon-docs": "^9.0.18",
36
+ "@storybook/addon-onboarding": "^9.0.18",
37
+ "@storybook/react-vite": "^9.0.18",
38
+ "@stylistic/eslint-plugin": "^5.2.2",
39
+ "@types/js-cookie": "^3.0.6",
40
+ "@types/node": "^20",
41
+ "@types/node-forge": "^1.3.14",
42
+ "@types/react": "^19.1.9",
43
+ "@types/react-dom": "^19.1.7",
44
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
45
+ "@typescript-eslint/parser": "^8.38.0",
46
+ "@vitejs/plugin-react-swc": "^3.9.0",
47
+ "autoprefixer": "^10.4.19",
48
+ "eslint": "^9.32.0",
49
+ "eslint-config-prettier": "^10.1.8",
50
+ "eslint-plugin-import": "^2.32.0",
51
+ "eslint-plugin-prettier": "^5.5.3",
52
+ "eslint-plugin-react": "^7.37.5",
53
+ "eslint-plugin-react-hooks": "^5.2.0",
54
+ "eslint-plugin-react-refresh": "^0.4.19",
55
+ "eslint-plugin-storybook": "^9.0.18",
56
+ "glob": "^11.0.3",
57
+ "globals": "^16.3.0",
58
+ "husky": "^9.1.7",
59
+ "lint-staged": "^16.1.2",
60
+ "postcss": "^8.5.2",
61
+ "prettier": "^3.6.2",
62
+ "react": "^19.1.1",
63
+ "react-dom": "^19.1.1",
64
+ "sass": "^1.89.2",
65
+ "storybook": "^9.0.18",
66
+ "tailwindcss": "^3.4.4",
67
+ "ts-node": "^10.9.2",
68
+ "typescript": "~5.8.3",
69
+ "vite": "^6.3.5",
70
+ "vite-plugin-dts": "^4.5.4"
71
+ },
72
+ "peerDependencies": {
73
+ "react": ">= 19",
74
+ "react-dom": ">=19",
75
+ "yup": ">=1.4.0"
76
+ },
77
+ "main": "./dist/index.cjs",
78
+ "module": "./dist/index.mjs",
79
+ "types": "./dist/index.d.ts",
80
+ "exports": {
81
+ ".": {
82
+ "types": "./dist/index.d.ts",
83
+ "import": "./dist/index.mjs",
84
+ "require": "./dist/index.cjs"
85
+ },
86
+ "./dist/assets/toast.css": "./dist/assets/toast.css",
87
+ "./dist/assets/core.css": "./dist/assets/core.css",
88
+ "./dist/assets/style.css": "./dist/assets/style.css",
89
+ "./dist/assets/colors.css": "./dist/assets/colors.css",
90
+ "./dist/assets/_colors.scss": "./dist/assets/_colors.scss",
91
+ "./dist/assets/typography.css": "./dist/assets/typography.css",
92
+ "./dist/assets/_typography.scss": "./dist/assets/_typography.scss",
93
+ "./dist/assets/screen.css": "./dist/assets/screen.css",
94
+ "./dist/assets/_screen.scss": "./dist/assets/_screen.scss",
95
+ "./dist/assets/_mixins.scss": "./dist/assets/_mixins.scss"
96
+ },
97
+ "files": [
98
+ "/dist"
99
+ ],
100
+ "publishConfig": {
101
+ "access": "public"
102
+ },
103
+ "lint-staged": {
104
+ "*.{js,jsx,ts,tsx}": [
105
+ "eslint --quiet --fix"
106
+ ],
107
+ "*.{json,js,ts,jsx,tsx,html}": [
108
+ "prettier --write --ignore-unknown"
109
+ ]
110
+ },
111
+ "dependencies": {
112
+ "@floating-ui/react": "^0.27.15",
113
+ "@internationalized/date": "^3.8.2",
114
+ "@tanstack/react-table": "^8.21.3",
115
+ "@tinymce/tinymce-react": "^6.2.1",
116
+ "bignumber.js": "^9.1.2",
117
+ "chart.js": "^4.5.0",
118
+ "copyfiles": "^2.4.1",
119
+ "date-fns": "^3.6.0",
120
+ "js-cookie": "^3.0.5",
121
+ "lossless-json": "^4.0.2",
122
+ "node-forge": "^1.3.1",
123
+ "react-aria": "^3.42.0",
124
+ "react-chartjs-2": "^5.3.0",
125
+ "react-number-format": "^5.4.4",
126
+ "react-select": "^5.10.2",
127
+ "react-stately": "^3.40.0",
128
+ "react-toastify": "^11.0.5",
129
+ "react-virtuoso": "^4.13.0",
130
+ "tinymce": "^7.9.1"
131
+ }
132
+ }
133
133
  ;
134
134
 
135
135
  export default _default;
@@ -12,6 +12,7 @@ export declare const configButton: {
12
12
  'bill-m': string;
13
13
  'bill-s': string;
14
14
  'bill-xs': string;
15
+ 'bill-xxs': string;
15
16
  };
16
17
  loadingSize: {
17
18
  large: string;
@@ -26,6 +27,7 @@ export declare const configButton: {
26
27
  'bill-m': string;
27
28
  'bill-s': string;
28
29
  'bill-xs': string;
30
+ 'bill-xxs': string;
29
31
  };
30
32
  variants: {
31
33
  'primary-laba-blue-10': string;
@@ -63,6 +65,7 @@ export declare const configButton: {
63
65
  'secondary-bill-secondary-800': string;
64
66
  'tertiary-bill-secondary-800': string;
65
67
  'primary-bill-red-700': string;
68
+ 'filled-bill-bluegray-500_text-bill-body-sm': string;
66
69
  };
67
70
  };
68
71
  export declare const keysConfigButtonVariant: string[];
@@ -7,6 +7,7 @@ export declare const configTabs: {
7
7
  'container-laba-blue-10-bg_white': string;
8
8
  'container-laba-blue-10-bg_blue-01': string;
9
9
  'original-bill-secondary-800': string;
10
+ 'container-bill-secondary-800': string;
10
11
  };
11
12
  size: {
12
13
  'tabs-m': string;
@@ -3,12 +3,12 @@ import { ReactNode } from 'react';
3
3
  * [ID] : Tipe varian tombol yang tersedia.
4
4
  * [EN] : Available button variant types.
5
5
  */
6
- export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
6
+ export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700' | 'filled-bill-bluegray-500_text-bill-body-sm';
7
7
  /**
8
8
  * [ID] : Tipe ukuran tombol.
9
9
  * [EN] : Button size type.
10
10
  */
11
- export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs';
11
+ export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs' | 'bill-xxs';
12
12
  /**
13
13
  * [ID] : Interface untuk komponen Button.
14
14
  * [EN] : Interface for Button component.
@@ -49,6 +49,11 @@ export interface ISidebarModule {
49
49
  * [EN] : SVG icon (optional).
50
50
  */
51
51
  svgIcon?: React.ReactNode | null;
52
+ /**
53
+ * [ID] : Ikon akhir (opsional).
54
+ * [EN] : End icon (optional).
55
+ */
56
+ endIcon?: React.ReactNode | null;
52
57
  /**
53
58
  * [ID] : Ikon SVG saat aktif (opsional).
54
59
  * [EN] : SVG icon when active (optional).
@@ -4,7 +4,7 @@ import { TKeyLocale } from '../Calendar';
4
4
  * [ID] : Tipe varian tab.
5
5
  * [EN] : Tab variant type.
6
6
  */
7
- export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800';
7
+ export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800' | 'container-bill-secondary-800';
8
8
  /**
9
9
  * [ID] : Tipe ukuran tab.
10
10
  * [EN] : Tab size type.