cekat-ui 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.ts +6 -0
- package/dist/components/Avatar/AvatarIcons.d.ts +8 -0
- package/dist/components/Avatar/avatar.styles.d.ts +12 -0
- package/dist/components/Avatar/avatar.types.d.ts +16 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +6 -0
- package/dist/components/AvatarGroup/avatargroup.styles.d.ts +8 -0
- package/dist/components/AvatarGroup/avatargroup.types.d.ts +16 -0
- package/dist/components/AvatarGroup/index.d.ts +3 -0
- package/dist/components/AvatarLabelGroup/AvatarLabelGroup.d.ts +6 -0
- package/dist/components/AvatarLabelGroup/avatarlabelgroup.styles.d.ts +5 -0
- package/dist/components/AvatarLabelGroup/avatarlabelgroup.types.d.ts +14 -0
- package/dist/components/AvatarLabelGroup/index.d.ts +3 -0
- package/dist/components/AvatarProfilePhoto/AvatarProfilePhoto.d.ts +6 -0
- package/dist/components/AvatarProfilePhoto/avatarprofilephoto.styles.d.ts +10 -0
- package/dist/components/AvatarProfilePhoto/avatarprofilephoto.types.d.ts +12 -0
- package/dist/components/AvatarProfilePhoto/index.d.ts +3 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/badge.styles.d.ts +20 -0
- package/dist/components/Badge/badge.types.d.ts +23 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/BadgeGroup/BadgeGroup.d.ts +6 -0
- package/dist/components/BadgeGroup/badgegroup.styles.d.ts +28 -0
- package/dist/components/BadgeGroup/badgegroup.types.d.ts +19 -0
- package/dist/components/BadgeGroup/index.d.ts +3 -0
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/button.styles.d.ts +2 -1
- package/dist/components/Button/button.types.d.ts +2 -1
- package/dist/components/Checkbox/checkbox.types.d.ts +3 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Dropdown/dropdown.styles.d.ts +19 -0
- package/dist/components/Dropdown/dropdown.types.d.ts +44 -0
- package/dist/components/Dropdown/index.d.ts +3 -0
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/input.styles.d.ts +21 -3
- package/dist/components/Input/input.types.d.ts +24 -1
- package/dist/components/InputDropdown/InputDropdown.d.ts +2 -0
- package/dist/components/InputDropdown/index.d.ts +3 -0
- package/dist/components/InputDropdown/inputDropdown.styles.d.ts +15 -0
- package/dist/components/InputDropdown/inputDropdown.types.d.ts +45 -0
- package/dist/components/Loading/Loading.d.ts +6 -0
- package/dist/components/Loading/LoadingSpinner.d.ts +9 -0
- package/dist/components/Loading/index.d.ts +3 -0
- package/dist/components/Loading/loading.styles.d.ts +6 -0
- package/dist/components/Loading/loading.types.d.ts +10 -0
- package/dist/components/Radio/radio.types.d.ts +3 -1
- package/dist/components/Tab/Tab.d.ts +6 -0
- package/dist/components/Tab/TabList.d.ts +6 -0
- package/dist/components/Tab/index.d.ts +4 -0
- package/dist/components/Tab/tab.styles.d.ts +15 -0
- package/dist/components/Tab/tab.types.d.ts +24 -0
- package/dist/components/Tag/Tag.d.ts +6 -0
- package/dist/components/Tag/index.d.ts +3 -0
- package/dist/components/Tag/tag.styles.d.ts +19 -0
- package/dist/components/Tag/tag.types.d.ts +21 -0
- package/dist/components/Textarea/Textarea.d.ts +4 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/textarea.styles.d.ts +14 -0
- package/dist/components/Textarea/textarea.types.d.ts +17 -0
- package/dist/components/Toggle/toggle.styles.d.ts +2 -1
- package/dist/components/Toggle/toggle.types.d.ts +5 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/tooltip.styles.d.ts +2 -0
- package/dist/components/Tooltip/tooltip.types.d.ts +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.es.js +2688 -649
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1904 -416
- package/dist/utils/color.d.ts +4 -0
- package/package.json +4 -4
- package/tailwind.preset.cjs +137 -39
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Whether a string is a valid 6-digit hex color (e.g. "#13a8bf"). */
|
|
2
|
+
export declare const isValidHexColor: (hex: string) => boolean;
|
|
3
|
+
/** Parses a 6-digit hex color into an rgba() string at the given alpha. Returns undefined if unparseable. */
|
|
4
|
+
export declare const hexToRgba: (hex: string, alpha: number) => string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cekat-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Cekat UI Component Library",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"build:lib": "yarn build && yarn build:css",
|
|
32
32
|
"build:storybook": "storybook build",
|
|
33
33
|
"tailwind:build": "tailwindcss -c tailwind.config.cjs -i stories/styles/tailwind.css -o dist/style.css",
|
|
34
|
-
"publish:lib": "yarn build && yarn tailwind:build"
|
|
34
|
+
"publish:lib": "yarn build && yarn tailwind:build",
|
|
35
|
+
"prepublishOnly": "yarn build:lib"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@tabler/core": "^1.4.0",
|
|
@@ -42,7 +43,6 @@
|
|
|
42
43
|
"react-dom": "18.3.1"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@rollup/rollup-darwin-arm64": "^4.55.1",
|
|
46
46
|
"@storybook/react-vite": "^10.1.9",
|
|
47
47
|
"@types/node": "^25.0.8",
|
|
48
48
|
"@types/react": "^18",
|
|
@@ -57,4 +57,4 @@
|
|
|
57
57
|
"vite": "^7.3.0",
|
|
58
58
|
"vite-plugin-dts": "^4.5.4"
|
|
59
59
|
}
|
|
60
|
-
}
|
|
60
|
+
}
|
package/tailwind.preset.cjs
CHANGED
|
@@ -19,13 +19,13 @@ module.exports = {
|
|
|
19
19
|
colors: {
|
|
20
20
|
black: {
|
|
21
21
|
DEFAULT: "#000000",
|
|
22
|
-
light: "#
|
|
22
|
+
light: "#E3E4EB",
|
|
23
23
|
"dark-light": "rgba(14,23,38,.15)",
|
|
24
24
|
},
|
|
25
25
|
white: {
|
|
26
|
-
DEFAULT: "#
|
|
27
|
-
light: "#
|
|
28
|
-
dark: "#
|
|
26
|
+
DEFAULT: "#FFFFFF",
|
|
27
|
+
light: "#E0E6ED",
|
|
28
|
+
dark: "#888EA8",
|
|
29
29
|
},
|
|
30
30
|
transparent: {
|
|
31
31
|
DEFAULT: "#FFFFFF00",
|
|
@@ -47,7 +47,7 @@ module.exports = {
|
|
|
47
47
|
},
|
|
48
48
|
secondary: {
|
|
49
49
|
DEFAULT: "#13A8BF",
|
|
50
|
-
light: "#
|
|
50
|
+
light: "#EBE4F7",
|
|
51
51
|
"dark-light": "rgb(128 93 202 / 15%)",
|
|
52
52
|
50: "#FBFEFF",
|
|
53
53
|
100: "#E4F5F9",
|
|
@@ -75,7 +75,7 @@ module.exports = {
|
|
|
75
75
|
},
|
|
76
76
|
dark: {
|
|
77
77
|
DEFAULT: "#1F242F",
|
|
78
|
-
light: "#
|
|
78
|
+
light: "#EAEAEC",
|
|
79
79
|
"dark-light": "rgba(59,63,92,.15)",
|
|
80
80
|
50: "#F5F5F6",
|
|
81
81
|
100: "#F0F1F1",
|
|
@@ -89,35 +89,35 @@ module.exports = {
|
|
|
89
89
|
900: "#161B26",
|
|
90
90
|
},
|
|
91
91
|
error: {
|
|
92
|
-
DEFAULT: "#
|
|
93
|
-
light: "#
|
|
94
|
-
"dark-light": "rgba(
|
|
95
|
-
50: "#
|
|
96
|
-
100: "#
|
|
97
|
-
200: "#
|
|
98
|
-
300: "#
|
|
99
|
-
400: "#
|
|
100
|
-
500: "#
|
|
101
|
-
600: "#
|
|
102
|
-
700: "#
|
|
103
|
-
800: "#
|
|
104
|
-
900: "#
|
|
92
|
+
DEFAULT: "#FDE2D1",
|
|
93
|
+
light: "#FFF5F5",
|
|
94
|
+
"dark-light": "rgba(226,38,31,.15)",
|
|
95
|
+
50: "#FFEFE5",
|
|
96
|
+
100: "#FDE2D1",
|
|
97
|
+
200: "#FCBEA5",
|
|
98
|
+
300: "#F69076",
|
|
99
|
+
400: "#ED6653",
|
|
100
|
+
500: "#E2261F",
|
|
101
|
+
600: "#C2161F",
|
|
102
|
+
700: "#A20F23",
|
|
103
|
+
800: "#830924",
|
|
104
|
+
900: "#6C0524",
|
|
105
105
|
},
|
|
106
106
|
danger: {
|
|
107
107
|
//SAME LIKE ERROR, BUT THIS ONE WAS ADDED TO PREVENT ERROR ON THE COMPONENTS THAT STILL USE DANGER CLASS
|
|
108
|
-
DEFAULT: "#
|
|
109
|
-
light: "#
|
|
110
|
-
"dark-light": "rgba(
|
|
111
|
-
50: "#
|
|
112
|
-
100: "#
|
|
113
|
-
200: "#
|
|
114
|
-
300: "#
|
|
115
|
-
400: "#
|
|
116
|
-
500: "#
|
|
117
|
-
600: "#
|
|
118
|
-
700: "#
|
|
119
|
-
800: "#
|
|
120
|
-
900: "#
|
|
108
|
+
DEFAULT: "#FDE2D1",
|
|
109
|
+
light: "#FDE2D1",
|
|
110
|
+
"dark-light": "rgba(226,38,31,.15)",
|
|
111
|
+
50: "#FFEFE5",
|
|
112
|
+
100: "#FDE2D1",
|
|
113
|
+
200: "#FCBEA5",
|
|
114
|
+
300: "#F69076",
|
|
115
|
+
400: "#ED6653",
|
|
116
|
+
500: "#E2261F",
|
|
117
|
+
600: "#C2161F",
|
|
118
|
+
700: "#A20F23",
|
|
119
|
+
800: "#830924",
|
|
120
|
+
900: "#6C0524",
|
|
121
121
|
},
|
|
122
122
|
warning: {
|
|
123
123
|
DEFAULT: "#FFFAEB",
|
|
@@ -167,6 +167,91 @@ module.exports = {
|
|
|
167
167
|
"grey-base": {
|
|
168
168
|
DEFAULT: "#808080",
|
|
169
169
|
},
|
|
170
|
+
|
|
171
|
+
"blue-gray": {
|
|
172
|
+
50: "#F8F9FC",
|
|
173
|
+
100: "#EAECF5",
|
|
174
|
+
200: "#D5D9EB",
|
|
175
|
+
300: "#B3B8DB",
|
|
176
|
+
400: "#717BBC",
|
|
177
|
+
500: "#4E5BA6",
|
|
178
|
+
600: "#3E4784",
|
|
179
|
+
700: "#363F72",
|
|
180
|
+
800: "#293056",
|
|
181
|
+
900: "#101323",
|
|
182
|
+
},
|
|
183
|
+
"blue-light": {
|
|
184
|
+
50: "#F0F9FF",
|
|
185
|
+
100: "#E0F2FE",
|
|
186
|
+
200: "#B9E6FE",
|
|
187
|
+
300: "#7CD4FD",
|
|
188
|
+
400: "#36BFFA",
|
|
189
|
+
500: "#0BA5EC",
|
|
190
|
+
600: "#0086C9",
|
|
191
|
+
700: "#026AA2",
|
|
192
|
+
800: "#065986",
|
|
193
|
+
900: "#0B4A6F",
|
|
194
|
+
},
|
|
195
|
+
indigo: {
|
|
196
|
+
50: "#EEF4FF",
|
|
197
|
+
100: "#E0EAFF",
|
|
198
|
+
200: "#C7D7FE",
|
|
199
|
+
300: "#A4BCFD",
|
|
200
|
+
400: "#8098F9",
|
|
201
|
+
500: "#6172F3",
|
|
202
|
+
600: "#444CE7",
|
|
203
|
+
700: "#3538CD",
|
|
204
|
+
800: "#2D31A6",
|
|
205
|
+
900: "#2D3282",
|
|
206
|
+
},
|
|
207
|
+
purple: {
|
|
208
|
+
50: "#F4F3FF",
|
|
209
|
+
100: "#EBE9FE",
|
|
210
|
+
200: "#D9D6FE",
|
|
211
|
+
300: "#BDB4FE",
|
|
212
|
+
400: "#9B8AFB",
|
|
213
|
+
500: "#7A5AF8",
|
|
214
|
+
600: "#6938EF",
|
|
215
|
+
700: "#5925DC",
|
|
216
|
+
800: "#4A1FB8",
|
|
217
|
+
900: "#3E1C96",
|
|
218
|
+
},
|
|
219
|
+
blue: {
|
|
220
|
+
50: "#EFF8FF",
|
|
221
|
+
100: "#D1E9FF",
|
|
222
|
+
200: "#B2DDFF",
|
|
223
|
+
300: "#84CAFF",
|
|
224
|
+
400: "#53B1FD",
|
|
225
|
+
500: "#2E90FA",
|
|
226
|
+
600: "#1570EF",
|
|
227
|
+
700: "#175CD3",
|
|
228
|
+
800: "#1849A9",
|
|
229
|
+
900: "#194185",
|
|
230
|
+
},
|
|
231
|
+
pink: {
|
|
232
|
+
50: "#FDF2FA",
|
|
233
|
+
100: "#FCE7F6",
|
|
234
|
+
200: "#FCCEEE",
|
|
235
|
+
300: "#FAA7E0",
|
|
236
|
+
400: "#F670C7",
|
|
237
|
+
500: "#EE46BC",
|
|
238
|
+
600: "#DD2590",
|
|
239
|
+
700: "#C11574",
|
|
240
|
+
800: "#9E165F",
|
|
241
|
+
900: "#851651",
|
|
242
|
+
},
|
|
243
|
+
orange: {
|
|
244
|
+
50: "#FEF6EE",
|
|
245
|
+
100: "#FDEAD7",
|
|
246
|
+
200: "#F9DBAF",
|
|
247
|
+
300: "#F7B27A",
|
|
248
|
+
400: "#F38744",
|
|
249
|
+
500: "#EF6820",
|
|
250
|
+
600: "#E04F16",
|
|
251
|
+
700: "#B93815",
|
|
252
|
+
800: "#932F19",
|
|
253
|
+
900: "#772917",
|
|
254
|
+
},
|
|
170
255
|
},
|
|
171
256
|
|
|
172
257
|
fontFamily: {
|
|
@@ -174,14 +259,9 @@ module.exports = {
|
|
|
174
259
|
},
|
|
175
260
|
|
|
176
261
|
fontWeight: {
|
|
177
|
-
extralight
|
|
178
|
-
|
|
262
|
+
// Tailwind's default theme already provides extralight/light/medium/semibold/bold/extrabold/black
|
|
263
|
+
// at these same values; "regular" is the only addition (Figma's name for weight 400, aliasing "normal").
|
|
179
264
|
regular: "400",
|
|
180
|
-
medium: "500",
|
|
181
|
-
semibold: "600",
|
|
182
|
-
bold: "700",
|
|
183
|
-
extrabold: "800",
|
|
184
|
-
black: "900",
|
|
185
265
|
},
|
|
186
266
|
|
|
187
267
|
spacing: {
|
|
@@ -192,6 +272,9 @@ module.exports = {
|
|
|
192
272
|
"3xl":
|
|
193
273
|
"0 2px 2px rgb(224 230 237 / 46%), 1px 6px 7px rgb(224 230 237 / 46%)",
|
|
194
274
|
"custom-1": "0px 4px 9px 0px rgba(152, 160, 180, 0.25)",
|
|
275
|
+
lg: "0px 4px 6px -2px rgba(16,24,40,0.03), 0px 12px 16px -4px rgba(16,24,40,0.08)",
|
|
276
|
+
xs: "0px 1px 2px 0px rgba(16,24,40,0.05)",
|
|
277
|
+
md: "0px 2px 4px -2px rgba(16,24,40,0.06), 0px 4px 8px -2px rgba(16,24,40,0.1)",
|
|
195
278
|
},
|
|
196
279
|
|
|
197
280
|
fontSize: {
|
|
@@ -208,6 +291,21 @@ module.exports = {
|
|
|
208
291
|
"caption-lg": ["0.875rem", { lineHeight: "1.25rem" }],
|
|
209
292
|
"caption-sm": ["0.75rem", { lineHeight: "1.125rem" }],
|
|
210
293
|
},
|
|
294
|
+
|
|
295
|
+
lineHeight: {
|
|
296
|
+
h1: "4.5rem",
|
|
297
|
+
h2: "3.5rem",
|
|
298
|
+
h3: "2.75rem",
|
|
299
|
+
h4: "2.5rem",
|
|
300
|
+
h5: "2.25rem",
|
|
301
|
+
h6: "1.75rem",
|
|
302
|
+
|
|
303
|
+
"body-lg": "1.75rem",
|
|
304
|
+
"body-sm": "1.5rem",
|
|
305
|
+
|
|
306
|
+
"caption-lg": "1.25rem",
|
|
307
|
+
"caption-sm": "1.125rem",
|
|
308
|
+
},
|
|
211
309
|
},
|
|
212
310
|
},
|
|
213
311
|
|