@orion-ds/react 4.3.1 → 4.4.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/blocks/sections/ActivityFeed/ActivityFeed.cjs +1 -0
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.mjs +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.mjs +1 -0
- package/dist/blocks/sections/CTA/CTA.cjs +1 -0
- package/dist/blocks/sections/CTA/CTA.d.ts.map +1 -1
- package/dist/blocks/sections/CTA/CTA.mjs +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.cjs +1 -0
- package/dist/blocks/sections/CarouselSection/CarouselSection.d.ts.map +1 -1
- package/dist/blocks/sections/CarouselSection/CarouselSection.mjs +1 -0
- package/dist/blocks/sections/Chat/Chat.cjs +1 -0
- package/dist/blocks/sections/Chat/Chat.d.ts.map +1 -1
- package/dist/blocks/sections/Chat/Chat.mjs +1 -0
- package/dist/blocks/sections/Comparison/Comparison.cjs +1 -0
- package/dist/blocks/sections/Comparison/Comparison.d.ts.map +1 -1
- package/dist/blocks/sections/Comparison/Comparison.mjs +1 -0
- package/dist/blocks/sections/Contact/Contact.cjs +1 -0
- package/dist/blocks/sections/Contact/Contact.d.ts.map +1 -1
- package/dist/blocks/sections/Contact/Contact.mjs +1 -0
- package/dist/blocks/sections/FAQ/FAQ.cjs +1 -0
- package/dist/blocks/sections/FAQ/FAQ.d.ts.map +1 -1
- package/dist/blocks/sections/FAQ/FAQ.mjs +1 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.cjs +1 -0
- package/dist/blocks/sections/FAQ/FAQItemCard.d.ts.map +1 -1
- package/dist/blocks/sections/FAQ/FAQItemCard.mjs +1 -0
- package/dist/blocks/sections/Gallery/Gallery.cjs +1 -0
- package/dist/blocks/sections/Gallery/Gallery.d.ts.map +1 -1
- package/dist/blocks/sections/Gallery/Gallery.mjs +1 -0
- package/dist/blocks/sections/Hero/Hero.cjs +1 -0
- package/dist/blocks/sections/Hero/Hero.d.ts.map +1 -1
- package/dist/blocks/sections/Hero/Hero.mjs +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.cjs +1 -0
- package/dist/blocks/sections/Newsletter/Newsletter.d.ts.map +1 -1
- package/dist/blocks/sections/Newsletter/Newsletter.mjs +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.cjs +1 -0
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.d.ts.map +1 -1
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.mjs +1 -0
- package/dist/client.cjs +2 -0
- package/dist/client.mjs +274 -0
- package/dist/components/Accordion/Accordion.cjs +1 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.mjs +1 -0
- package/dist/components/AgentCard/AgentCard.cjs +1 -0
- package/dist/components/AgentCard/AgentCard.d.ts.map +1 -1
- package/dist/components/AgentCard/AgentCard.mjs +1 -0
- package/dist/components/Alert/Alert.cjs +1 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.mjs +1 -0
- package/dist/components/AlertDialog/AlertDialog.cjs +1 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/AlertDialog/AlertDialog.mjs +1 -0
- package/dist/components/Avatar/Avatar.cjs +1 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.mjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.mjs +1 -0
- package/dist/components/Calendar/Calendar.cjs +1 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.mjs +1 -0
- package/dist/components/Carousel/Carousel.cjs +1 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.mjs +1 -0
- package/dist/components/Chart/Chart.cjs +1 -0
- package/dist/components/Chart/Chart.d.ts.map +1 -1
- package/dist/components/Chart/Chart.mjs +1 -0
- package/dist/components/Chat/components/ChatAudioPlayer.cjs +1 -0
- package/dist/components/Chat/components/ChatAudioPlayer.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatAudioPlayer.mjs +1 -0
- package/dist/components/Chat/components/ChatCodeBlock.cjs +1 -0
- package/dist/components/Chat/components/ChatCodeBlock.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatCodeBlock.mjs +1 -0
- package/dist/components/Chat/components/ChatFileUpload.cjs +1 -0
- package/dist/components/Chat/components/ChatFileUpload.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatFileUpload.mjs +1 -0
- package/dist/components/Chat/components/ChatImagePreview.cjs +1 -0
- package/dist/components/Chat/components/ChatImagePreview.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatImagePreview.mjs +1 -0
- package/dist/components/Chat/components/ChatInput.cjs +1 -0
- package/dist/components/Chat/components/ChatInput.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatInput.mjs +1 -0
- package/dist/components/Chat/components/ChatLightbox.cjs +1 -0
- package/dist/components/Chat/components/ChatLightbox.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatLightbox.mjs +1 -0
- package/dist/components/Chat/components/ChatSidebar.cjs +1 -0
- package/dist/components/Chat/components/ChatSidebar.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatSidebar.mjs +1 -0
- package/dist/components/Checkbox/Checkbox.cjs +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs +1 -0
- package/dist/components/CodeEditor/CodeEditor.cjs +1 -0
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.mjs +1 -0
- package/dist/components/Collapsible/Collapsible.cjs +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.mjs +1 -0
- package/dist/components/CollapsibleFolder/CollapsibleFolder.cjs +1 -0
- package/dist/components/CollapsibleFolder/CollapsibleFolder.d.ts.map +1 -1
- package/dist/components/CollapsibleFolder/CollapsibleFolder.mjs +1 -0
- package/dist/components/Combobox/Combobox.cjs +1 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.mjs +1 -0
- package/dist/components/Command/Command.cjs +1 -0
- package/dist/components/Command/Command.d.ts.map +1 -1
- package/dist/components/Command/Command.mjs +1 -0
- package/dist/components/CommandBar/CommandBar.cjs +1 -0
- package/dist/components/CommandBar/CommandBar.d.ts.map +1 -1
- package/dist/components/CommandBar/CommandBar.mjs +1 -0
- package/dist/components/DataTable/DataTable.cjs +1 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.mjs +1 -0
- package/dist/components/DatePicker/DatePicker.cjs +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.mjs +1 -0
- package/dist/components/DetailPanel/DetailPanel.cjs +1 -0
- package/dist/components/DetailPanel/DetailPanel.d.ts.map +1 -1
- package/dist/components/DetailPanel/DetailPanel.mjs +1 -0
- package/dist/components/Drawer/Drawer.cjs +1 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.mjs +1 -0
- package/dist/components/Dropdown/Dropdown.cjs +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.mjs +1 -0
- package/dist/components/Field/Field.cjs +1 -0
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/Field.mjs +1 -0
- package/dist/components/FileUploader/FileUploader.cjs +1 -0
- package/dist/components/FileUploader/FileUploader.d.ts.map +1 -1
- package/dist/components/FileUploader/FileUploader.mjs +1 -0
- package/dist/components/FilterBar/FilterBar.cjs +1 -0
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.mjs +1 -0
- package/dist/components/FontLoader/FontLoader.cjs +1 -0
- package/dist/components/FontLoader/FontLoader.d.ts +0 -30
- package/dist/components/FontLoader/FontLoader.d.ts.map +1 -1
- package/dist/components/FontLoader/FontLoader.mjs +1 -0
- package/dist/components/FormSection/FormSection.cjs +1 -0
- package/dist/components/FormSection/FormSection.d.ts.map +1 -1
- package/dist/components/FormSection/FormSection.mjs +1 -0
- package/dist/components/Icon/Icon.cjs +1 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.mjs +1 -0
- package/dist/components/IconGallery/IconGallery.cjs +1 -0
- package/dist/components/IconGallery/IconGallery.d.ts.map +1 -1
- package/dist/components/IconGallery/IconGallery.mjs +1 -0
- package/dist/components/InputOTP/InputOTP.cjs +1 -0
- package/dist/components/InputOTP/InputOTP.d.ts.map +1 -1
- package/dist/components/InputOTP/InputOTP.mjs +1 -0
- package/dist/components/List/List.cjs +1 -0
- package/dist/components/List/List.d.ts.map +1 -1
- package/dist/components/List/List.mjs +1 -0
- package/dist/components/Modal/Modal.cjs +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.mjs +1 -0
- package/dist/components/NavTree/NavTree.cjs +1 -0
- package/dist/components/NavTree/NavTree.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.mjs +1 -0
- package/dist/components/Navbar/Navbar.cjs +1 -0
- package/dist/components/Navbar/Navbar.d.ts.map +1 -1
- package/dist/components/Navbar/Navbar.mjs +1 -0
- package/dist/components/NotificationCenter/NotificationCenter.cjs +1 -0
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.mjs +1 -0
- package/dist/components/Pagination/Pagination.cjs +1 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.mjs +1 -0
- package/dist/components/Popover/Popover.cjs +1 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.mjs +1 -0
- package/dist/components/QuickActions/QuickActions.cjs +1 -0
- package/dist/components/QuickActions/QuickActions.d.ts.map +1 -1
- package/dist/components/QuickActions/QuickActions.mjs +1 -0
- package/dist/components/Radio/Radio.cjs +1 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.mjs +1 -0
- package/dist/components/SearchInput/SearchInput.cjs +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.mjs +1 -0
- package/dist/components/Sidebar/Sidebar.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.mjs +1 -0
- package/dist/components/Slider/Slider.cjs +1 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/Slider.mjs +1 -0
- package/dist/components/Stepper/Stepper.cjs +1 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.mjs +1 -0
- package/dist/components/Switch/Switch.cjs +1 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.mjs +1 -0
- package/dist/components/Table/Table.cjs +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.mjs +1 -0
- package/dist/components/Tabs/Tabs.cjs +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.mjs +1 -0
- package/dist/components/Textarea/Textarea.cjs +1 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.mjs +1 -0
- package/dist/components/Toast/Toast.cjs +1 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.mjs +1 -0
- package/dist/components/Toggle/Toggle.cjs +1 -0
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.mjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.cjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.mjs +1 -0
- package/dist/components/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.mjs +1 -0
- package/dist/components/UserMenu/UserMenu.cjs +1 -0
- package/dist/components/UserMenu/UserMenu.d.ts.map +1 -1
- package/dist/components/UserMenu/UserMenu.mjs +1 -0
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.cjs +1 -0
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.mjs +1 -0
- package/dist/contexts/ThemeContext.cjs +1 -0
- package/dist/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/contexts/ThemeContext.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +227 -227
- package/dist/sections/index.cjs +1 -0
- package/dist/sections/index.mjs +43 -0
- package/dist/tokens/brands.cjs +1 -1
- package/dist/tokens/brands.mjs +3 -2
- package/dist/tokens/index.cjs +1 -0
- package/dist/tokens/index.mjs +24 -0
- package/dist/tokens/utils.cjs +1 -1
- package/dist/tokens/utils.mjs +36 -24
- package/package.json +31 -36
package/dist/tokens/utils.mjs
CHANGED
|
@@ -1,33 +1,45 @@
|
|
|
1
|
-
import { primitives as
|
|
1
|
+
import { primitives as f } from "./primitives.mjs";
|
|
2
2
|
import { themes as s } from "./themes.mjs";
|
|
3
|
-
import { brands as
|
|
4
|
-
function c(
|
|
5
|
-
const e =
|
|
6
|
-
let
|
|
7
|
-
for (const
|
|
8
|
-
if (
|
|
9
|
-
throw new Error(`Token path "${
|
|
10
|
-
return
|
|
3
|
+
import { brands as i } from "./brands.mjs";
|
|
4
|
+
function c(t) {
|
|
5
|
+
const e = t.split(".");
|
|
6
|
+
let r = f;
|
|
7
|
+
for (const n of e)
|
|
8
|
+
if (r = r[n], r === void 0)
|
|
9
|
+
throw new Error(`Token path "${t}" not found`);
|
|
10
|
+
return r;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
for (const
|
|
16
|
-
if (
|
|
12
|
+
function d(t, e) {
|
|
13
|
+
const r = e.split(".");
|
|
14
|
+
let n = s[t].semantic;
|
|
15
|
+
for (const o of r)
|
|
16
|
+
if (n = n[o], n === void 0)
|
|
17
17
|
throw new Error(
|
|
18
|
-
`Semantic token path "${e}" not found in ${
|
|
18
|
+
`Semantic token path "${e}" not found in ${t} theme`
|
|
19
19
|
);
|
|
20
|
-
if (typeof
|
|
21
|
-
const
|
|
22
|
-
return c(
|
|
20
|
+
if (typeof n == "string" && n.startsWith("{") && n.endsWith("}")) {
|
|
21
|
+
const o = n.slice(1, -1);
|
|
22
|
+
return c(o);
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return n;
|
|
25
|
+
}
|
|
26
|
+
function l(t) {
|
|
27
|
+
return i[t];
|
|
28
|
+
}
|
|
29
|
+
function k(t) {
|
|
30
|
+
return `--${t.replace(/\./g, "-")}`;
|
|
31
|
+
}
|
|
32
|
+
function p(t) {
|
|
33
|
+
return t === "light" || t === "dark";
|
|
25
34
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
35
|
+
function h(t) {
|
|
36
|
+
return t in i;
|
|
28
37
|
}
|
|
29
38
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
c as getToken
|
|
39
|
+
l as getBrand,
|
|
40
|
+
d as getSemanticToken,
|
|
41
|
+
c as getToken,
|
|
42
|
+
h as isValidBrand,
|
|
43
|
+
p as isValidTheme,
|
|
44
|
+
k as toCSSVariable
|
|
33
45
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-ds/react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Orion Design System - React component library with 40+ AI-ready components and 9 templates",
|
|
6
6
|
"author": "Orion Design System Team",
|
|
@@ -28,11 +28,6 @@
|
|
|
28
28
|
"import": "./dist/tokens/index.mjs",
|
|
29
29
|
"require": "./dist/tokens/index.cjs"
|
|
30
30
|
},
|
|
31
|
-
"./components/*": {
|
|
32
|
-
"types": "./dist/components/*/index.d.ts",
|
|
33
|
-
"import": "./dist/components/*/index.mjs",
|
|
34
|
-
"require": "./dist/components/*/index.cjs"
|
|
35
|
-
},
|
|
36
31
|
"./sections": {
|
|
37
32
|
"types": "./dist/sections/index.d.ts",
|
|
38
33
|
"import": "./dist/sections/index.mjs",
|
|
@@ -59,28 +54,6 @@
|
|
|
59
54
|
"AI_COMPONENTS.md",
|
|
60
55
|
"BUNDLE_OPTIMIZATION.md"
|
|
61
56
|
],
|
|
62
|
-
"scripts": {
|
|
63
|
-
"copy:assets": "mkdir -p assets/tokens && cp ../../theme.css assets/theme.css && cp ../../tokens/generated.css assets/tokens/generated.css",
|
|
64
|
-
"build": "npm run copy:assets && tsc -p tsconfig.build.json && vite build && npm run build:styles",
|
|
65
|
-
"build:styles": "node scripts/bundle-styles.js",
|
|
66
|
-
"type-check": "tsc --noEmit",
|
|
67
|
-
"dev": "vite",
|
|
68
|
-
"test": "vitest",
|
|
69
|
-
"test:ui": "vitest --ui",
|
|
70
|
-
"test:coverage": "vitest --coverage",
|
|
71
|
-
"test:e2e": "playwright test",
|
|
72
|
-
"test:e2e:headed": "playwright test --headed",
|
|
73
|
-
"test:e2e:debug": "playwright test --debug",
|
|
74
|
-
"test:e2e:report": "playwright show-report",
|
|
75
|
-
"test:visual": "npm run build-storybook && npm run percy",
|
|
76
|
-
"percy": "percy storybook storybook-static",
|
|
77
|
-
"bench": "vitest bench --run",
|
|
78
|
-
"measure:bundle-size": "node scripts/measure-bundle-size.js",
|
|
79
|
-
"storybook": "storybook dev -p 6006 --host 127.0.0.1",
|
|
80
|
-
"storybook:restart": "node -e \"require('child_process').execSync('lsof -ti :6006 | xargs kill -9 2>/dev/null; true', {shell:true,stdio:'inherit'})\" && storybook dev -p 6006 --host 127.0.0.1",
|
|
81
|
-
"storybook:reset": "node -e \"require('child_process').execSync('lsof -ti :6006 | xargs kill -9 2>/dev/null; true', {shell:true,stdio:'inherit'})\" && node -e \"require('fs').rmSync('node_modules/.cache/storybook',{recursive:true,force:true})\" && storybook dev -p 6006 --host 127.0.0.1",
|
|
82
|
-
"build-storybook": "storybook build"
|
|
83
|
-
},
|
|
84
57
|
"keywords": [
|
|
85
58
|
"react",
|
|
86
59
|
"components",
|
|
@@ -128,16 +101,16 @@
|
|
|
128
101
|
"registry": "https://registry.npmjs.org/"
|
|
129
102
|
},
|
|
130
103
|
"peerDependencies": {
|
|
104
|
+
"@dnd-kit/core": "^6.0.0",
|
|
105
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
106
|
+
"date-fns": "^4.0.0",
|
|
107
|
+
"lucide-react": ">=0.400.0",
|
|
131
108
|
"react": "^18.0.0 || ^19.0.0",
|
|
132
109
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
133
|
-
"lucide-react": ">=0.400.0",
|
|
134
110
|
"react-markdown": ">=8.0.0",
|
|
135
111
|
"react-syntax-highlighter": ">=15.0.0",
|
|
136
|
-
"remark-gfm": ">=3.0.0",
|
|
137
112
|
"recharts": "^3.0.0",
|
|
138
|
-
"
|
|
139
|
-
"@dnd-kit/core": "^6.0.0",
|
|
140
|
-
"@dnd-kit/sortable": "^8.0.0"
|
|
113
|
+
"remark-gfm": ">=3.0.0"
|
|
141
114
|
},
|
|
142
115
|
"peerDependenciesMeta": {
|
|
143
116
|
"lucide-react": {
|
|
@@ -165,7 +138,6 @@
|
|
|
165
138
|
"optional": true
|
|
166
139
|
}
|
|
167
140
|
},
|
|
168
|
-
"dependencies": {},
|
|
169
141
|
"devDependencies": {
|
|
170
142
|
"@percy/cli": "^1.31.8",
|
|
171
143
|
"@percy/storybook": "^10.0.0",
|
|
@@ -185,16 +157,39 @@
|
|
|
185
157
|
"@types/react-dom": "^19.2.3",
|
|
186
158
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
187
159
|
"@vitejs/plugin-react": "^5.1.2",
|
|
188
|
-
"vite-plugin-dts": "^3.7.0",
|
|
189
160
|
"@vitest/coverage-v8": "^4.0.18",
|
|
190
161
|
"@vitest/ui": "^4.0.18",
|
|
191
162
|
"jsdom": "^27.4.0",
|
|
192
163
|
"react": "^19.2.4",
|
|
193
164
|
"react-dom": "^19.2.4",
|
|
165
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
194
166
|
"storybook": "^8.6.17",
|
|
195
167
|
"typescript": "^5.9.3",
|
|
196
168
|
"vite": "^7.3.1",
|
|
169
|
+
"vite-plugin-dts": "^3.7.0",
|
|
197
170
|
"vitest": "^4.0.18",
|
|
198
171
|
"vitest-axe": "^0.1.0"
|
|
172
|
+
},
|
|
173
|
+
"scripts": {
|
|
174
|
+
"copy:assets": "mkdir -p assets/tokens && cp ../../theme.css assets/theme.css && cp ../../tokens/generated.css assets/tokens/generated.css",
|
|
175
|
+
"build": "npm run copy:assets && tsc -p tsconfig.build.json && vite build && npm run build:styles",
|
|
176
|
+
"build:styles": "node scripts/bundle-styles.js",
|
|
177
|
+
"type-check": "tsc --noEmit",
|
|
178
|
+
"dev": "vite",
|
|
179
|
+
"test": "vitest",
|
|
180
|
+
"test:ui": "vitest --ui",
|
|
181
|
+
"test:coverage": "vitest --coverage",
|
|
182
|
+
"test:e2e": "playwright test",
|
|
183
|
+
"test:e2e:headed": "playwright test --headed",
|
|
184
|
+
"test:e2e:debug": "playwright test --debug",
|
|
185
|
+
"test:e2e:report": "playwright show-report",
|
|
186
|
+
"test:visual": "npm run build-storybook && npm run percy",
|
|
187
|
+
"percy": "percy storybook storybook-static",
|
|
188
|
+
"bench": "vitest bench --run",
|
|
189
|
+
"measure:bundle-size": "node scripts/measure-bundle-size.js",
|
|
190
|
+
"storybook": "storybook dev -p 6006 --host 127.0.0.1",
|
|
191
|
+
"storybook:restart": "node -e \"require('child_process').execSync('lsof -ti :6006 | xargs kill -9 2>/dev/null; true', {shell:true,stdio:'inherit'})\" && storybook dev -p 6006 --host 127.0.0.1",
|
|
192
|
+
"storybook:reset": "node -e \"require('child_process').execSync('lsof -ti :6006 | xargs kill -9 2>/dev/null; true', {shell:true,stdio:'inherit'})\" && node -e \"require('fs').rmSync('node_modules/.cache/storybook',{recursive:true,force:true})\" && storybook dev -p 6006 --host 127.0.0.1",
|
|
193
|
+
"build-storybook": "storybook build"
|
|
199
194
|
}
|
|
200
|
-
}
|
|
195
|
+
}
|