cekat-ui 1.3.18 → 1.3.19
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/README.md +10 -5
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/dist/components/RichTextEditor/index.d.ts +2 -0
- package/dist/components/RichTextEditor/richTextEditor.styles.d.ts +22 -0
- package/dist/components/RichTextEditor/richTextEditor.types.d.ts +22 -0
- package/dist/editor.d.mts +1 -0
- package/dist/editor.d.ts +1 -0
- package/dist/editor.mjs +23558 -0
- package/dist/editor.umd.js +35 -0
- package/dist/index.d.mts +204 -51
- package/dist/index.d.ts +204 -51
- package/dist/index.mjs +13374 -11500
- package/dist/index.umd.js +16 -16
- package/dist/style.css +444 -269
- package/editor.d.ts +1 -0
- package/editor.js +1 -0
- package/package.json +39 -10
- package/tailwind.preset.cjs +44 -1
package/editor.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/components/RichTextEditor';
|
package/editor.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/editor.umd.js');
|
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cekat-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.19",
|
|
4
4
|
"description": "Cekat UI Component Library",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"editor": [
|
|
11
|
+
"editor.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
"style": "dist/style.css",
|
|
9
16
|
"exports": {
|
|
10
17
|
".": {
|
|
@@ -17,17 +24,29 @@
|
|
|
17
24
|
"default": "./dist/index.umd.js"
|
|
18
25
|
}
|
|
19
26
|
},
|
|
27
|
+
"./editor": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/editor.d.mts",
|
|
30
|
+
"default": "./dist/editor.mjs"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./dist/editor.d.ts",
|
|
34
|
+
"default": "./dist/editor.umd.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
20
37
|
"./style.css": "./dist/style.css",
|
|
21
38
|
"./tailwind-preset": "./tailwind.preset.cjs"
|
|
22
39
|
},
|
|
23
40
|
"files": [
|
|
24
41
|
"dist",
|
|
42
|
+
"editor.d.ts",
|
|
43
|
+
"editor.js",
|
|
25
44
|
"tailwind.preset.cjs"
|
|
26
45
|
],
|
|
27
46
|
"sideEffects": false,
|
|
28
47
|
"peerDependencies": {
|
|
29
|
-
"react": "^18.3.1",
|
|
30
|
-
"react-dom": "^18.3.1"
|
|
48
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
49
|
+
"react-dom": "^18.3.1 || ^19.0.0"
|
|
31
50
|
},
|
|
32
51
|
"scripts": {
|
|
33
52
|
"dev": "storybook dev -p 6006",
|
|
@@ -39,7 +58,7 @@
|
|
|
39
58
|
"fmt": "oxfmt",
|
|
40
59
|
"fmt:check": "oxfmt --check",
|
|
41
60
|
"prepare": "husky",
|
|
42
|
-
"build": "vite build",
|
|
61
|
+
"build": "vite build && vite build --config vite.editor.config.ts",
|
|
43
62
|
"build:css": "tailwindcss -c tailwind.config.cjs -i stories/styles/tailwind.css -o dist/style.css",
|
|
44
63
|
"build:lib": "yarn build && yarn build:css",
|
|
45
64
|
"check:pack": "node scripts/check-pack.mjs",
|
|
@@ -47,18 +66,25 @@
|
|
|
47
66
|
"build:storybook": "storybook build",
|
|
48
67
|
"tailwind:build": "tailwindcss -c tailwind.config.cjs -i stories/styles/tailwind.css -o dist/style.css",
|
|
49
68
|
"publish:lib": "yarn build && yarn tailwind:build",
|
|
50
|
-
"prepublishOnly": "yarn build:lib"
|
|
69
|
+
"prepublishOnly": "yarn build:lib",
|
|
70
|
+
"check:consumer:react19": "node scripts/check-consumer.mjs --react19"
|
|
51
71
|
},
|
|
52
72
|
"dependencies": {
|
|
53
73
|
"@internationalized/date": "^3.12.3",
|
|
74
|
+
"@lexical/link": "0.50.0",
|
|
75
|
+
"@lexical/list": "0.50.0",
|
|
76
|
+
"@lexical/markdown": "0.50.0",
|
|
77
|
+
"@lexical/react": "0.50.0",
|
|
78
|
+
"@lexical/rich-text": "0.50.0",
|
|
79
|
+
"@lexical/selection": "0.50.0",
|
|
80
|
+
"@lexical/utils": "0.50.0",
|
|
54
81
|
"@tabler/core": "^1.4.0",
|
|
55
82
|
"@tabler/icons-react": "^3.36.1",
|
|
56
83
|
"class-variance-authority": "^0.7.1",
|
|
57
84
|
"clsx": "^2.1.1",
|
|
85
|
+
"lexical": "0.50.0",
|
|
58
86
|
"libphonenumber-js": "^1.13.3",
|
|
59
|
-
"react": "18.3.1",
|
|
60
87
|
"react-aria-components": "^1.20.0",
|
|
61
|
-
"react-dom": "18.3.1",
|
|
62
88
|
"tailwind-merge": "^3.6.0"
|
|
63
89
|
},
|
|
64
90
|
"devDependencies": {
|
|
@@ -68,8 +94,8 @@
|
|
|
68
94
|
"@storybook/addon-vitest": "10.5.6",
|
|
69
95
|
"@storybook/react-vite": "^10.5.6",
|
|
70
96
|
"@types/node": "^25.0.8",
|
|
71
|
-
"@types/react": "^
|
|
72
|
-
"@types/react-dom": "^
|
|
97
|
+
"@types/react": "^19",
|
|
98
|
+
"@types/react-dom": "^19",
|
|
73
99
|
"@vitejs/plugin-react": "^5.1.2",
|
|
74
100
|
"@vitest/browser-playwright": "~4.0.18",
|
|
75
101
|
"@vitest/coverage-v8": "~4.0.18",
|
|
@@ -81,13 +107,16 @@
|
|
|
81
107
|
"playwright": "^1.62.1",
|
|
82
108
|
"postcss": "^8.5.6",
|
|
83
109
|
"publint": "^0.3.23",
|
|
110
|
+
"remark-gfm": "^4.0.1",
|
|
84
111
|
"rollup": "^3.29.5",
|
|
85
112
|
"storybook": "^10.5.6",
|
|
86
113
|
"tailwindcss": "3.4.17",
|
|
87
114
|
"typescript": "^5.9.3",
|
|
88
115
|
"vite": "^7.3.0",
|
|
89
116
|
"vite-plugin-dts": "^4.5.4",
|
|
90
|
-
"vitest": "~4.0.18"
|
|
117
|
+
"vitest": "~4.0.18",
|
|
118
|
+
"react": "19.3.0",
|
|
119
|
+
"react-dom": "19.3.0"
|
|
91
120
|
},
|
|
92
121
|
"lint-staged": {
|
|
93
122
|
"*": "oxfmt --no-error-on-unmatched-pattern"
|
package/tailwind.preset.cjs
CHANGED
|
@@ -493,7 +493,10 @@ module.exports = {
|
|
|
493
493
|
},
|
|
494
494
|
|
|
495
495
|
fontFamily: {
|
|
496
|
-
|
|
496
|
+
// Figma "FontFamily/*". Nunito is the product default; Lato is the secondary family.
|
|
497
|
+
// The webfonts themselves are loaded separately (Storybook: .storybook/fonts.css).
|
|
498
|
+
nunito: ['Nunito', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'],
|
|
499
|
+
lato: ['Lato', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'],
|
|
497
500
|
},
|
|
498
501
|
|
|
499
502
|
fontWeight: {
|
|
@@ -502,8 +505,48 @@ module.exports = {
|
|
|
502
505
|
regular: '400',
|
|
503
506
|
},
|
|
504
507
|
|
|
508
|
+
// Figma "Sizing/*" (WIDTH_HEIGHT) and "Spacing/*" (GAP) both land on Tailwind's one
|
|
509
|
+
// spacing scale. Every token maps onto the default rem steps except these, added with
|
|
510
|
+
// the same numeric-key convention (key = px / 4): 18 / 52 / 60 / 68 / 76 px. They flow
|
|
511
|
+
// through to w-/h-/size-/min-/max-/gap-/p-/m-* alike.
|
|
505
512
|
spacing: {
|
|
506
513
|
4.5: '18px',
|
|
514
|
+
13: '52px',
|
|
515
|
+
15: '60px',
|
|
516
|
+
17: '68px',
|
|
517
|
+
19: '76px',
|
|
518
|
+
},
|
|
519
|
+
|
|
520
|
+
// Figma "Border/Border-0..8" (STROKE_FLOAT), i.e. border-width in px. Tailwind's default
|
|
521
|
+
// scale only ships 0/2/4/8 (plus DEFAULT 1px); 1/3/5/6/7 are the additions.
|
|
522
|
+
borderWidth: {
|
|
523
|
+
0: '0px',
|
|
524
|
+
1: '1px',
|
|
525
|
+
2: '2px',
|
|
526
|
+
3: '3px',
|
|
527
|
+
4: '4px',
|
|
528
|
+
5: '5px',
|
|
529
|
+
6: '6px',
|
|
530
|
+
7: '7px',
|
|
531
|
+
8: '8px',
|
|
532
|
+
},
|
|
533
|
+
|
|
534
|
+
// Figma "Radius/Radius-*" (CORNER_RADIUS) in px. `Radius-900` is Figma's pill value —
|
|
535
|
+
// clamped here to 9999px so `rounded-900` always renders as a full pill. Merges with
|
|
536
|
+
// Tailwind's named scale (sm/md/lg/xl/2xl/3xl/full), which the codebase also uses.
|
|
537
|
+
borderRadius: {
|
|
538
|
+
0: '0px',
|
|
539
|
+
2: '2px',
|
|
540
|
+
4: '4px',
|
|
541
|
+
6: '6px',
|
|
542
|
+
8: '8px',
|
|
543
|
+
10: '10px',
|
|
544
|
+
12: '12px',
|
|
545
|
+
14: '14px',
|
|
546
|
+
16: '16px',
|
|
547
|
+
24: '24px',
|
|
548
|
+
32: '32px',
|
|
549
|
+
900: '9999px',
|
|
507
550
|
},
|
|
508
551
|
|
|
509
552
|
boxShadow: {
|