@aurora-ds/components 1.7.5 → 1.7.6
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/cjs/index.js +11 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/package.json +92 -92
- package/dist/cjs/index.css +0 -1
- package/dist/esm/index.css +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -263,7 +263,7 @@ type ButtonIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
|
263
263
|
/** Visual style of the button surface. */
|
|
264
264
|
type ButtonVariant = 'contained' | 'outlined' | 'text';
|
|
265
265
|
/** Semantic color intent of the button. */
|
|
266
|
-
type ButtonColor = 'primary' | 'secondary' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
266
|
+
type ButtonColor = 'primary' | 'secondary' | 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'textPrimary';
|
|
267
267
|
/** Size token controlling height, padding and label scale. */
|
|
268
268
|
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
269
269
|
|
|
@@ -2414,8 +2414,12 @@ type DrawerItemProps = {
|
|
|
2414
2414
|
endContent?: ReactNode;
|
|
2415
2415
|
/** When provided, renders the item as an anchor `<a>` for navigation. */
|
|
2416
2416
|
href?: string;
|
|
2417
|
-
/**
|
|
2418
|
-
|
|
2417
|
+
/**
|
|
2418
|
+
* Click handler. Works both with and without `href`.
|
|
2419
|
+
* When `href` is also provided, the click calls this handler and prevents
|
|
2420
|
+
* the browser from following the href (useful for SPA routing).
|
|
2421
|
+
*/
|
|
2422
|
+
onClick?: (e: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
2419
2423
|
/** Prevents interaction and dims the item. @default false */
|
|
2420
2424
|
disabled?: boolean;
|
|
2421
2425
|
/**
|
package/package.json
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@aurora-ds/components",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "Aurora DS - React Components Library",
|
|
6
|
-
"main": "dist/cjs/index.js",
|
|
7
|
-
"module": "dist/esm/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "rollup -c",
|
|
14
|
-
"start": "storybook dev -p 6006",
|
|
15
|
-
"build-storybook": "storybook build",
|
|
16
|
-
"lint": "eslint src --ext .ts,.tsx",
|
|
17
|
-
"test": "vitest run --passWithNoTests",
|
|
18
|
-
"test:watch": "vitest --passWithNoTests",
|
|
19
|
-
"prepublishOnly": "yarn build"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"@aurora-ds/theme": "^4.0.1",
|
|
23
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
24
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@aurora-ds/theme": "^4.0.1",
|
|
28
|
-
"@babel/core": "^7.29.7",
|
|
29
|
-
"@babel/preset-env": "^7.29.7",
|
|
30
|
-
"@babel/preset-react": "^7.29.7",
|
|
31
|
-
"@babel/preset-typescript": "^7.29.7",
|
|
32
|
-
"@eslint/js": "^10.0.1",
|
|
33
|
-
"@rollup/plugin-alias": "^6.0.0",
|
|
34
|
-
"@rollup/plugin-commonjs": "^29.0.3",
|
|
35
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
36
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
37
|
-
"@storybook/addon-a11y": "^10.4.1",
|
|
38
|
-
"@storybook/addon-docs": "^10.4.1",
|
|
39
|
-
"@storybook/addon-links": "^10.4.1",
|
|
40
|
-
"@storybook/addon-vitest": "^10.4.1",
|
|
41
|
-
"@storybook/react": "^10.4.1",
|
|
42
|
-
"@storybook/react-vite": "^10.4.1",
|
|
43
|
-
"@svgr/rollup": "^8.1.0",
|
|
44
|
-
"@testing-library/dom": "^10.4.1",
|
|
45
|
-
"@testing-library/jest-dom": "^6.9.1",
|
|
46
|
-
"@testing-library/react": "^16.3.2",
|
|
47
|
-
"@testing-library/user-event": "^14.6.1",
|
|
48
|
-
"@types/node": "^25.9.1",
|
|
49
|
-
"@types/react": "^19.2.15",
|
|
50
|
-
"@types/react-dom": "^19.2.3",
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
52
|
-
"@typescript-eslint/parser": "^8.60.0",
|
|
53
|
-
"@vitejs/plugin-react": "^6.0.2",
|
|
54
|
-
"@vitest/browser-playwright": "4.1.7",
|
|
55
|
-
"@vitest/coverage-v8": "4.1.7",
|
|
56
|
-
"eslint": "^10.4.1",
|
|
57
|
-
"eslint-import-resolver-typescript": "^4.4.4",
|
|
58
|
-
"eslint-plugin-import": "^2.32.0",
|
|
59
|
-
"eslint-plugin-import-x": "^4.16.2",
|
|
60
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
61
|
-
"eslint-plugin-react": "^7.33.0",
|
|
62
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
63
|
-
"eslint-plugin-storybook": "^10.4.1",
|
|
64
|
-
"eslint-plugin-unused-imports": "^4.4.1",
|
|
65
|
-
"globals": "^17.6.0",
|
|
66
|
-
"jsdom": "^29.1.1",
|
|
67
|
-
"playwright": "^1.60.0",
|
|
68
|
-
"postcss": "^8.5.15",
|
|
69
|
-
"react": "^19.2.6",
|
|
70
|
-
"react-dom": "^19.2.6",
|
|
71
|
-
"rollup": "^4.60.4",
|
|
72
|
-
"rollup-plugin-dts": "^6.4.1",
|
|
73
|
-
"rollup-plugin-postcss": "^4.0.0",
|
|
74
|
-
"storybook": "^10.4.1",
|
|
75
|
-
"typescript": "^6.0.3",
|
|
76
|
-
"vite": "^8.0.14",
|
|
77
|
-
"vite-plugin-svgr": "^5.2.0",
|
|
78
|
-
"vitest": "^4.1.7"
|
|
79
|
-
},
|
|
80
|
-
"license": "MIT",
|
|
81
|
-
"repository": {
|
|
82
|
-
"type": "git",
|
|
83
|
-
"url": ""
|
|
84
|
-
},
|
|
85
|
-
"keywords": [
|
|
86
|
-
"react",
|
|
87
|
-
"components",
|
|
88
|
-
"design-system",
|
|
89
|
-
"aurora"
|
|
90
|
-
],
|
|
91
|
-
"dependencies": {}
|
|
92
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@aurora-ds/components",
|
|
3
|
+
"version": "1.7.6",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Aurora DS - React Components Library",
|
|
6
|
+
"main": "dist/cjs/index.js",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "rollup -c",
|
|
14
|
+
"start": "storybook dev -p 6006",
|
|
15
|
+
"build-storybook": "storybook build",
|
|
16
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
17
|
+
"test": "vitest run --passWithNoTests",
|
|
18
|
+
"test:watch": "vitest --passWithNoTests",
|
|
19
|
+
"prepublishOnly": "yarn build"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@aurora-ds/theme": "^4.0.1",
|
|
23
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
24
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@aurora-ds/theme": "^4.0.1",
|
|
28
|
+
"@babel/core": "^7.29.7",
|
|
29
|
+
"@babel/preset-env": "^7.29.7",
|
|
30
|
+
"@babel/preset-react": "^7.29.7",
|
|
31
|
+
"@babel/preset-typescript": "^7.29.7",
|
|
32
|
+
"@eslint/js": "^10.0.1",
|
|
33
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
34
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
36
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
37
|
+
"@storybook/addon-a11y": "^10.4.1",
|
|
38
|
+
"@storybook/addon-docs": "^10.4.1",
|
|
39
|
+
"@storybook/addon-links": "^10.4.1",
|
|
40
|
+
"@storybook/addon-vitest": "^10.4.1",
|
|
41
|
+
"@storybook/react": "^10.4.1",
|
|
42
|
+
"@storybook/react-vite": "^10.4.1",
|
|
43
|
+
"@svgr/rollup": "^8.1.0",
|
|
44
|
+
"@testing-library/dom": "^10.4.1",
|
|
45
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
46
|
+
"@testing-library/react": "^16.3.2",
|
|
47
|
+
"@testing-library/user-event": "^14.6.1",
|
|
48
|
+
"@types/node": "^25.9.1",
|
|
49
|
+
"@types/react": "^19.2.15",
|
|
50
|
+
"@types/react-dom": "^19.2.3",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
52
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
53
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
54
|
+
"@vitest/browser-playwright": "4.1.7",
|
|
55
|
+
"@vitest/coverage-v8": "4.1.7",
|
|
56
|
+
"eslint": "^10.4.1",
|
|
57
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
58
|
+
"eslint-plugin-import": "^2.32.0",
|
|
59
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
60
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
61
|
+
"eslint-plugin-react": "^7.33.0",
|
|
62
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
63
|
+
"eslint-plugin-storybook": "^10.4.1",
|
|
64
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
65
|
+
"globals": "^17.6.0",
|
|
66
|
+
"jsdom": "^29.1.1",
|
|
67
|
+
"playwright": "^1.60.0",
|
|
68
|
+
"postcss": "^8.5.15",
|
|
69
|
+
"react": "^19.2.6",
|
|
70
|
+
"react-dom": "^19.2.6",
|
|
71
|
+
"rollup": "^4.60.4",
|
|
72
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
73
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
74
|
+
"storybook": "^10.4.1",
|
|
75
|
+
"typescript": "^6.0.3",
|
|
76
|
+
"vite": "^8.0.14",
|
|
77
|
+
"vite-plugin-svgr": "^5.2.0",
|
|
78
|
+
"vitest": "^4.1.7"
|
|
79
|
+
},
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"repository": {
|
|
82
|
+
"type": "git",
|
|
83
|
+
"url": ""
|
|
84
|
+
},
|
|
85
|
+
"keywords": [
|
|
86
|
+
"react",
|
|
87
|
+
"components",
|
|
88
|
+
"design-system",
|
|
89
|
+
"aurora"
|
|
90
|
+
],
|
|
91
|
+
"dependencies": {}
|
|
92
|
+
}
|
package/dist/cjs/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");*,:after,:before{box-sizing:border-box}body{font-family:Inter,sans-serif}
|
package/dist/esm/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");*,:after,:before{box-sizing:border-box}body{font-family:Inter,sans-serif}
|