@unizap/uniui 1.0.6 → 1.0.7

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 (141) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +3 -2
  2. package/dist/components/Accordion/Accordion.types.d.ts +13 -12
  3. package/dist/components/Accordion/index.d.ts +1 -1
  4. package/dist/components/ActionMenu/ActionMenu.d.ts +2 -1
  5. package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -13
  6. package/dist/components/ActionMenu/index.d.ts +1 -1
  7. package/dist/components/Alert/Alert.d.ts +3 -2
  8. package/dist/components/Alert/Alert.types.d.ts +8 -8
  9. package/dist/components/Alert/index.d.ts +1 -1
  10. package/dist/components/{SearchBar/SearchBar.d.ts → Autocomplete/Autocomplete.d.ts} +4 -3
  11. package/dist/components/{SearchBar/SearchBar.types.d.ts → Autocomplete/Autocomplete.types.d.ts} +24 -24
  12. package/dist/components/Autocomplete/index.d.ts +1 -0
  13. package/dist/components/Avatar/Avatar.d.ts +3 -2
  14. package/dist/components/Avatar/Avatar.types.d.ts +10 -9
  15. package/dist/components/Avatar/index.d.ts +1 -1
  16. package/dist/components/Badge/Badge.d.ts +3 -2
  17. package/dist/components/Badge/Badge.types.d.ts +9 -8
  18. package/dist/components/Badge/index.d.ts +1 -1
  19. package/dist/components/BottomNavigation/BottomNavigation.d.ts +3 -2
  20. package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +14 -14
  21. package/dist/components/BottomNavigation/index.d.ts +1 -1
  22. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -2
  23. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +9 -9
  24. package/dist/components/Breadcrumbs/index.d.ts +1 -1
  25. package/dist/components/Button/Button.d.ts +3 -2
  26. package/dist/components/Button/Button.types.d.ts +17 -16
  27. package/dist/components/Button/index.d.ts +1 -1
  28. package/dist/components/Card/Card.d.ts +3 -2
  29. package/dist/components/Card/Card.types.d.ts +17 -16
  30. package/dist/components/Card/index.d.ts +1 -1
  31. package/dist/components/CardWrapper/CardWrapper.d.ts +8 -7
  32. package/dist/components/CardWrapper/CardWrapper.types.d.ts +1 -1
  33. package/dist/components/CardWrapper/index.d.ts +1 -1
  34. package/dist/components/Carousel/Carousel.d.ts +3 -2
  35. package/dist/components/Carousel/Carousel.types.d.ts +21 -21
  36. package/dist/components/Carousel/index.d.ts +1 -1
  37. package/dist/components/Checkbox/Checkbox.d.ts +3 -2
  38. package/dist/components/Checkbox/Checkbox.types.d.ts +9 -9
  39. package/dist/components/Checkbox/index.d.ts +1 -1
  40. package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +3 -2
  41. package/dist/components/DashboardStatBoxes/DashboardStatBoxes.types.d.ts +12 -12
  42. package/dist/components/DashboardStatBoxes/index.d.ts +1 -1
  43. package/dist/components/DatePicker/DatePicker.d.ts +3 -2
  44. package/dist/components/DatePicker/DatePicker.types.d.ts +16 -16
  45. package/dist/components/DatePicker/index.d.ts +1 -1
  46. package/dist/components/Dialog/Dialog.d.ts +3 -2
  47. package/dist/components/Dialog/Dialog.types.d.ts +17 -16
  48. package/dist/components/Dialog/index.d.ts +1 -1
  49. package/dist/components/Divider/Divider.d.ts +3 -2
  50. package/dist/components/Divider/Divider.types.d.ts +6 -6
  51. package/dist/components/Divider/index.d.ts +1 -1
  52. package/dist/components/Drawer/Drawer.d.ts +3 -2
  53. package/dist/components/Drawer/Drawer.types.d.ts +12 -11
  54. package/dist/components/Drawer/index.d.ts +1 -1
  55. package/dist/components/Dropdown/Dropdown.d.ts +3 -2
  56. package/dist/components/Dropdown/Dropdown.types.d.ts +11 -11
  57. package/dist/components/Dropdown/index.d.ts +1 -1
  58. package/dist/components/DropzoneUploader/DropzoneUploader.d.ts +3 -2
  59. package/dist/components/DropzoneUploader/DropzoneUploader.types.d.ts +23 -23
  60. package/dist/components/DropzoneUploader/index.d.ts +1 -1
  61. package/dist/components/EmptyState/EmptyState.d.ts +3 -2
  62. package/dist/components/EmptyState/EmptyState.types.d.ts +18 -17
  63. package/dist/components/EmptyState/index.d.ts +1 -1
  64. package/dist/components/IconButton/IconButton.d.ts +3 -2
  65. package/dist/components/IconButton/IconButton.types.d.ts +11 -10
  66. package/dist/components/IconButton/index.d.ts +1 -1
  67. package/dist/components/List/List.d.ts +3 -2
  68. package/dist/components/List/List.types.d.ts +10 -9
  69. package/dist/components/List/ListItem.d.ts +3 -2
  70. package/dist/components/List/index.d.ts +2 -2
  71. package/dist/components/Menu/Menu.d.ts +8 -8
  72. package/dist/components/Menu/Menu.types.d.ts +1 -1
  73. package/dist/components/Menu/index.d.ts +1 -1
  74. package/dist/components/Pagination/Pagination.d.ts +3 -2
  75. package/dist/components/Pagination/Pagination.types.d.ts +8 -8
  76. package/dist/components/Pagination/index.d.ts +1 -1
  77. package/dist/components/PasswordInput/PasswordInput.d.ts +3 -2
  78. package/dist/components/PasswordInput/index.d.ts +1 -1
  79. package/dist/components/Pill/Pill.d.ts +3 -2
  80. package/dist/components/Pill/Pill.type.d.ts +8 -7
  81. package/dist/components/Pill/index.d.ts +1 -1
  82. package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +10 -9
  83. package/dist/components/ProfileImageShowcase/ProfileShowcase.type.d.ts +1 -1
  84. package/dist/components/ProfileImageShowcase/index.d.ts +1 -1
  85. package/dist/components/Progress/Progress.d.ts +3 -2
  86. package/dist/components/Progress/Progress.types.d.ts +48 -47
  87. package/dist/components/Progress/index.d.ts +1 -1
  88. package/dist/components/RadioGroup/RadioGroup.d.ts +3 -2
  89. package/dist/components/RadioGroup/RadioGroup.types.d.ts +16 -15
  90. package/dist/components/RadioGroup/index.d.ts +1 -1
  91. package/dist/components/Select/Select.d.ts +3 -2
  92. package/dist/components/Select/Select.types.d.ts +17 -17
  93. package/dist/components/Select/index.d.ts +1 -1
  94. package/dist/components/Sidebar/Sidebar.d.ts +10 -10
  95. package/dist/components/Sidebar/Sidebar.types.d.ts +16 -15
  96. package/dist/components/Sidebar/index.d.ts +1 -1
  97. package/dist/components/Skeleton/Skeleton.d.ts +3 -2
  98. package/dist/components/Skeleton/Skeleton.types.d.ts +28 -28
  99. package/dist/components/Skeleton/index.d.ts +1 -1
  100. package/dist/components/Slider/Slider.d.ts +3 -2
  101. package/dist/components/Slider/Slider.types.d.ts +21 -20
  102. package/dist/components/Slider/index.d.ts +1 -1
  103. package/dist/components/Snackbar/Snackbar.d.ts +3 -2
  104. package/dist/components/Snackbar/Snackbar.types.d.ts +41 -40
  105. package/dist/components/Snackbar/index.d.ts +1 -1
  106. package/dist/components/Stepper/Stepper.d.ts +12 -11
  107. package/dist/components/Stepper/Stepper.type.d.ts +1 -1
  108. package/dist/components/Stepper/index.d.ts +1 -1
  109. package/dist/components/Table/Table.d.ts +5 -4
  110. package/dist/components/Table/Table.types.d.ts +15 -14
  111. package/dist/components/Table/index.d.ts +1 -1
  112. package/dist/components/Tabs/Tabs.d.ts +3 -2
  113. package/dist/components/Tabs/Tabs.types.d.ts +17 -16
  114. package/dist/components/Tabs/index.d.ts +1 -1
  115. package/dist/components/TextArea/TextArea.d.ts +3 -2
  116. package/dist/components/TextArea/TextArea.types.d.ts +7 -7
  117. package/dist/components/TextArea/index.d.ts +1 -1
  118. package/dist/components/TextInput/TextInput.d.ts +3 -2
  119. package/dist/components/TextInput/TextInput.types.d.ts +15 -15
  120. package/dist/components/TextInput/index.d.ts +1 -1
  121. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -2
  122. package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +8 -7
  123. package/dist/components/ToggleSwitch/index.d.ts +1 -1
  124. package/dist/components/Tooltip/Tooltip.d.ts +3 -2
  125. package/dist/components/Tooltip/Tooltip.type.d.ts +5 -5
  126. package/dist/components/Tooltip/index.d.ts +1 -1
  127. package/dist/components/Typography/Typography.d.ts +3 -2
  128. package/dist/components/Typography/Typography.types.d.ts +8 -7
  129. package/dist/components/Typography/index.d.ts +1 -1
  130. package/dist/components/index.d.ts +42 -42
  131. package/dist/components/otpInput/OtpInput.d.ts +3 -2
  132. package/dist/components/otpInput/OtpInput.type.d.ts +13 -12
  133. package/dist/components/otpInput/index.d.ts +1 -1
  134. package/dist/index.d.ts +4 -1
  135. package/dist/uniui.css +1 -2209
  136. package/dist/uniui.js +2025 -2092
  137. package/dist/uniui.umd.cjs +74 -71
  138. package/dist/utils/ColorMap.d.ts +29 -156
  139. package/dist/utils/constants.d.ts +1 -1
  140. package/package.json +80 -48
  141. package/dist/components/SearchBar/index.d.ts +0 -1
@@ -1,156 +1,29 @@
1
- export type CompColor = 'dark' | 'gray' | 'light' | 'pearl' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
2
- export declare const COLOR_MAP: Record<CompColor, string>;
3
- export declare const ACCENT_COLOR_MAP: Record<CompColor, string>;
4
- export declare const BORDER_COLOR_MAP: Record<CompColor, string>;
5
- export declare const PEER_BORDER_COLOR_MAP: Record<CompColor, string>;
6
- export declare const TEXT_COLOR_MAP: Record<CompColor, string>;
7
- export declare const BG_COLOR_MAP: Record<CompColor, string>;
8
- export declare const RANGE_COLOR_MAP: {
9
- dark: {
10
- track: string;
11
- progress: string;
12
- thumb: string;
13
- thumbHover: string;
14
- thumbActive: string;
15
- };
16
- gray: {
17
- track: string;
18
- progress: string;
19
- thumb: string;
20
- thumbHover: string;
21
- thumbActive: string;
22
- };
23
- light: {
24
- track: string;
25
- progress: string;
26
- thumb: string;
27
- thumbHover: string;
28
- thumbActive: string;
29
- };
30
- pearl: {
31
- track: string;
32
- progress: string;
33
- thumb: string;
34
- thumbHover: string;
35
- thumbActive: string;
36
- };
37
- red: {
38
- track: string;
39
- progress: string;
40
- thumb: string;
41
- thumbHover: string;
42
- thumbActive: string;
43
- };
44
- orange: {
45
- track: string;
46
- progress: string;
47
- thumb: string;
48
- thumbHover: string;
49
- thumbActive: string;
50
- };
51
- amber: {
52
- track: string;
53
- progress: string;
54
- thumb: string;
55
- thumbHover: string;
56
- thumbActive: string;
57
- };
58
- yellow: {
59
- track: string;
60
- progress: string;
61
- thumb: string;
62
- thumbHover: string;
63
- thumbActive: string;
64
- };
65
- lime: {
66
- track: string;
67
- progress: string;
68
- thumb: string;
69
- thumbHover: string;
70
- thumbActive: string;
71
- };
72
- green: {
73
- track: string;
74
- progress: string;
75
- thumb: string;
76
- thumbHover: string;
77
- thumbActive: string;
78
- };
79
- emerald: {
80
- track: string;
81
- progress: string;
82
- thumb: string;
83
- thumbHover: string;
84
- thumbActive: string;
85
- };
86
- teal: {
87
- track: string;
88
- progress: string;
89
- thumb: string;
90
- thumbHover: string;
91
- thumbActive: string;
92
- };
93
- cyan: {
94
- track: string;
95
- progress: string;
96
- thumb: string;
97
- thumbHover: string;
98
- thumbActive: string;
99
- };
100
- sky: {
101
- track: string;
102
- progress: string;
103
- thumb: string;
104
- thumbHover: string;
105
- thumbActive: string;
106
- };
107
- blue: {
108
- track: string;
109
- progress: string;
110
- thumb: string;
111
- thumbHover: string;
112
- thumbActive: string;
113
- };
114
- indigo: {
115
- track: string;
116
- progress: string;
117
- thumb: string;
118
- thumbHover: string;
119
- thumbActive: string;
120
- };
121
- violet: {
122
- track: string;
123
- progress: string;
124
- thumb: string;
125
- thumbHover: string;
126
- thumbActive: string;
127
- };
128
- purple: {
129
- track: string;
130
- progress: string;
131
- thumb: string;
132
- thumbHover: string;
133
- thumbActive: string;
134
- };
135
- fuchsia: {
136
- track: string;
137
- progress: string;
138
- thumb: string;
139
- thumbHover: string;
140
- thumbActive: string;
141
- };
142
- pink: {
143
- track: string;
144
- progress: string;
145
- thumb: string;
146
- thumbHover: string;
147
- thumbActive: string;
148
- };
149
- rose: {
150
- track: string;
151
- progress: string;
152
- thumb: string;
153
- thumbHover: string;
154
- thumbActive: string;
155
- };
156
- };
1
+ export type CompColor = 'dark' | 'gray' | 'light' | 'pearl' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | string;
2
+ export declare const COLOR_MAP: Record<CompColor, {
3
+ filled: string;
4
+ outline: string;
5
+ transparent: string;
6
+ accent: string;
7
+ peer: string;
8
+ }>;
9
+ export declare const extendColorMap: (newColors: Record<string, {
10
+ filled: string;
11
+ outline: string;
12
+ text: string;
13
+ accent: string;
14
+ peer: string;
15
+ }>) => void;
16
+ export declare const RANGE_COLOR_MAP: Record<CompColor, {
17
+ track: string;
18
+ progress: string;
19
+ thumb: string;
20
+ thumbHover: string;
21
+ thumbActive: string;
22
+ }>;
23
+ export declare const extendRangeColorMap: (newColors: Record<string, {
24
+ track: string;
25
+ progress: string;
26
+ thumb: string;
27
+ thumbHover: string;
28
+ thumbActive: string;
29
+ }>) => void;
@@ -1 +1 @@
1
- export declare const dummyImageUrl: string;
1
+ export declare const dummyImageUrl: string;
package/package.json CHANGED
@@ -1,51 +1,83 @@
1
1
  {
2
- "name": "@unizap/uniui",
3
- "version": "1.0.6",
4
- "description": "A UI component library for React",
5
- "type": "module",
6
-
7
- "files": ["dist", "README.md"],
8
- "sideEffects": ["**/*.css"],
9
-
10
- "types": "dist/index.d.ts",
11
- "main": "dist/uniui.umd.cjs",
12
- "module": "dist/uniui.js",
13
- "style": "dist/uniui.css",
14
-
15
- "exports": {
16
- ".": {
17
- "types": "./dist/index.d.ts",
18
- "import": "./dist/uniui.js",
19
- "require": "./dist/uniui.umd.cjs"
2
+ "name": "@unizap/uniui",
3
+ "version": "1.0.7",
4
+ "description": "A UI component library for React",
5
+ "type": "module",
6
+ "files": [
7
+ "dist",
8
+ "README.md"
9
+ ],
10
+ "sideEffects": [
11
+ "**/*.css"
12
+ ],
13
+ "types": "dist/index.d.ts",
14
+ "main": "dist/uniui.umd.cjs",
15
+ "module": "dist/uniui.js",
16
+ "style": "dist/uniui.css",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/uniui.js",
21
+ "require": "./dist/uniui.umd.cjs"
22
+ },
23
+ "./uniui.css": "./dist/uniui.css",
24
+ "./utils/ColorMap": {
25
+ "types": "./dist/utils/ColorMap.d.ts",
26
+ "import": "./dist/utils/ColorMap.js",
27
+ "require": "./dist/utils/ColorMap.umd.cjs"
28
+ }
20
29
  },
21
- "./uniui.css": "./dist/uniui.css"
22
- },
23
-
24
- "scripts": {
25
- "dev": "vite",
26
- "build:css": "node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && unicss -o dist/uniui.css && type src\\index.css src\\style.css >> dist\\uniui.css",
27
- "build": "tsc -b && vite build && pnpm run build:css",
28
- "lint": "eslint .",
29
- "preview": "vite preview",
30
- "prepublishOnly": "pnpm run build",
31
- "prepare": "pnpm run build"
32
- },
33
-
34
- "peerDependencies": {
35
- "react": ">=16.8.0",
36
- "react-dom": ">=16.8.0"
37
- },
38
-
39
- "dependencies": {
40
- "@tanstack/react-table": "^8.21.2",
41
- "@unizap/unicss": "^1.1.27",
42
- "react-dropzone": "^14.3.8"
43
- },
44
-
45
- "devDependencies": {
46
- "typescript": "4.9.5",
47
- "vite": "^6.2.0",
48
- "vite-plugin-dts": "^4.5.3",
49
- "@vitejs/plugin-react": "^4.3.4"
50
- }
30
+ "scripts": {
31
+ "dev": "vite",
32
+ "build": "tsc -b && vite build",
33
+ "lint": "eslint .",
34
+ "preview": "vite preview",
35
+ "prepublishOnly": "pnpm run build",
36
+ "prepare": "pnpm run build",
37
+ "storybook": "storybook dev -p 6006"
38
+ },
39
+ "peerDependencies": {
40
+ "react": ">=16.8.0",
41
+ "react-dom": ">=16.8.0"
42
+ },
43
+ "dependencies": {
44
+ "@tanstack/react-table": "^8.21.2",
45
+ "@unizap/unicss": "^1.1.28",
46
+ "react-dropzone": "^14.3.8"
47
+ },
48
+ "devDependencies": {
49
+ "@types/node": "^24.2.1",
50
+ "@vitejs/plugin-react": "^4.3.4",
51
+ "storybook": "^8.6.11",
52
+ "typescript": "4.9.5",
53
+ "vite": "^6.2.0",
54
+ "vite-plugin-dts": "^4.5.3",
55
+ "@storybook/react-vite": "^8.6.11",
56
+ "@babel/runtime": "^7.28.2",
57
+ "@chromatic-com/storybook": "3.2.6",
58
+ "@eslint/js": "9.23.0",
59
+ "@storybook/addon-essentials": "8.6.11",
60
+ "@storybook/addon-onboarding": "8.6.11",
61
+ "@storybook/blocks": "8.6.11",
62
+ "@storybook/experimental-addon-test": "8.6.11",
63
+ "@storybook/react": "8.6.11",
64
+ "@storybook/test": "8.6.11",
65
+ "@types/cookie": "1.0.0",
66
+ "@types/react": "19.0.12",
67
+ "@types/react-dom": "19.0.4",
68
+ "@types/statuses": "2.0.6",
69
+ "@vitest/browser": "3.0.9",
70
+ "@vitest/coverage-v8": "3.0.9",
71
+ "daisyui": "5.0.50",
72
+ "eslint": "9.23.0",
73
+ "eslint-plugin-react-hooks": "5.2.0",
74
+ "eslint-plugin-react-refresh": "0.4.19",
75
+ "eslint-plugin-storybook": "0.12.0",
76
+ "globals": "15.15.0",
77
+ "husky": "9.1.7",
78
+ "lint-staged": "15.5.0",
79
+ "playwright": "1.51.1",
80
+ "prettier": "3.5.3",
81
+ "react-router-dom": "7.7.1"
82
+ }
51
83
  }
@@ -1 +0,0 @@
1
- export { default } from './SearchBar';