@aurora-ds/components 1.7.4 → 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 +15 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +15 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +28 -4
- 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
|
|
|
@@ -1137,7 +1137,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
1137
1137
|
static getDerivedStateFromError: (error: Error) => ErrorBoundaryState;
|
|
1138
1138
|
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
1139
1139
|
private reset;
|
|
1140
|
-
render(): string | number | bigint | boolean |
|
|
1140
|
+
render(): string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
type DefaultErrorFallbackProps = {
|
|
@@ -1662,6 +1662,26 @@ type TextFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
|
1662
1662
|
* When `type` is `'password'`, the visibility toggle is always appended after this.
|
|
1663
1663
|
*/
|
|
1664
1664
|
endAction?: ReactNode;
|
|
1665
|
+
/**
|
|
1666
|
+
* Minimum width of the field wrapper. Overrides `min-width: auto` that browsers apply to
|
|
1667
|
+
* flex items, which would otherwise prevent the field from shrinking below ~207 px.
|
|
1668
|
+
* @default 0
|
|
1669
|
+
*/
|
|
1670
|
+
minWidth?: CSSProperties['minWidth'];
|
|
1671
|
+
/** Maximum width of the field wrapper. */
|
|
1672
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
1673
|
+
/**
|
|
1674
|
+
* `flex` shorthand applied to the outer wrapper.
|
|
1675
|
+
* Useful when the field is a child of a flex container and should grow/shrink.
|
|
1676
|
+
* @example flex={1}
|
|
1677
|
+
*/
|
|
1678
|
+
flex?: CSSProperties['flex'];
|
|
1679
|
+
/** `flex-grow` applied to the outer wrapper. */
|
|
1680
|
+
flexGrow?: CSSProperties['flexGrow'];
|
|
1681
|
+
/** `flex-shrink` applied to the outer wrapper. */
|
|
1682
|
+
flexShrink?: CSSProperties['flexShrink'];
|
|
1683
|
+
/** `flex-basis` applied to the outer wrapper. */
|
|
1684
|
+
flexBasis?: CSSProperties['flexBasis'];
|
|
1665
1685
|
};
|
|
1666
1686
|
|
|
1667
1687
|
/**
|
|
@@ -2394,8 +2414,12 @@ type DrawerItemProps = {
|
|
|
2394
2414
|
endContent?: ReactNode;
|
|
2395
2415
|
/** When provided, renders the item as an anchor `<a>` for navigation. */
|
|
2396
2416
|
href?: string;
|
|
2397
|
-
/**
|
|
2398
|
-
|
|
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;
|
|
2399
2423
|
/** Prevents interaction and dims the item. @default false */
|
|
2400
2424
|
disabled?: boolean;
|
|
2401
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}
|