@equinor/stratus-ui 1.12.0 → 1.12.2
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/index.cjs +6 -19
- package/dist/index.js +3403 -8498
- package/dist/stratus-ui.css +1 -1
- package/dist/types/components/Badge/Badge.d.ts +15 -3
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/package.json +29 -29
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode } from "react";
|
|
1
|
+
import { type CSSProperties, type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
import type { CSSProps } from "../../utils/cssProps";
|
|
3
3
|
import type { CSSVars } from "../../utils/cssVars";
|
|
4
4
|
import "./Badge.css";
|
|
@@ -67,7 +67,13 @@ export type BadgeProps = Omit<HTMLAttributes<HTMLDivElement>, "color" | "content
|
|
|
67
67
|
* Z-index for the badge indicator.
|
|
68
68
|
*/
|
|
69
69
|
zIndex?: number | string;
|
|
70
|
-
|
|
70
|
+
/**
|
|
71
|
+
* `display` value applied to the badge indicator (not the wrapper).
|
|
72
|
+
* Use `display="none"` to hide the badge while keeping the wrapped
|
|
73
|
+
* child visible. Prefer the `visible` prop where possible.
|
|
74
|
+
*/
|
|
75
|
+
display?: CSSProperties["display"];
|
|
76
|
+
} & Omit<CSSProps, "content" | "color" | "display">;
|
|
71
77
|
/**
|
|
72
78
|
* Renders an indicator (number, dot, or custom ReactNode) anchored
|
|
73
79
|
* to the corner of its child component.
|
|
@@ -143,6 +149,12 @@ export declare const Badge: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
143
149
|
* Z-index for the badge indicator.
|
|
144
150
|
*/
|
|
145
151
|
zIndex?: number | string;
|
|
146
|
-
|
|
152
|
+
/**
|
|
153
|
+
* `display` value applied to the badge indicator (not the wrapper).
|
|
154
|
+
* Use `display="none"` to hide the badge while keeping the wrapped
|
|
155
|
+
* child visible. Prefer the `visible` prop where possible.
|
|
156
|
+
*/
|
|
157
|
+
display?: CSSProperties["display"];
|
|
158
|
+
} & Omit<CSSProps, "color" | "content" | "display"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
147
159
|
export {};
|
|
148
160
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,aAAa,CAAC;AAMrB,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,KAAK,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,WAAW,CAAC;AAElD,KAAK,SAAS,GAAG,oBAAoB,GAAG,uBAAuB,CAAC;AAEhE,KAAK,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,GAAG,SAAS,GAAG,OAAO,CAC9B,GAAG;IACF,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;O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us-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "yarn@4.12.0",
|
|
6
6
|
"scripts": {
|
|
@@ -54,59 +54,59 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@eslint/js": "^10.0.1",
|
|
57
|
-
"@storybook/addon-docs": "^10.
|
|
58
|
-
"@storybook/react-vite": "^10.
|
|
57
|
+
"@storybook/addon-docs": "^10.5.3",
|
|
58
|
+
"@storybook/react-vite": "^10.5.3",
|
|
59
59
|
"@testing-library/dom": "^10.4.1",
|
|
60
60
|
"@testing-library/jest-dom": "^6.9.1",
|
|
61
61
|
"@testing-library/react": "^16.3.2",
|
|
62
62
|
"@testing-library/user-event": "^14.6.1",
|
|
63
|
-
"@types/node": "^24.
|
|
63
|
+
"@types/node": "^24.13.3",
|
|
64
64
|
"@types/react": "^19.2.17",
|
|
65
65
|
"@types/react-dom": "^19.2.3",
|
|
66
66
|
"@vitejs/plugin-react": "^6.0.3",
|
|
67
|
-
"eslint": "^10.
|
|
68
|
-
"eslint-plugin-oxlint": "
|
|
67
|
+
"eslint": "^10.7.0",
|
|
68
|
+
"eslint-plugin-oxlint": "~1.73.0",
|
|
69
69
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
70
70
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
71
|
-
"eslint-plugin-storybook": "10.
|
|
71
|
+
"eslint-plugin-storybook": "10.5.3",
|
|
72
72
|
"globals": "^17.7.0",
|
|
73
73
|
"jsdom": "^29.1.1",
|
|
74
|
-
"oxlint": "
|
|
74
|
+
"oxlint": "~1.73.0",
|
|
75
75
|
"react": "^19.2.7",
|
|
76
76
|
"react-dom": "^19.2.7",
|
|
77
|
-
"storybook": "^10.
|
|
77
|
+
"storybook": "^10.5.3",
|
|
78
78
|
"storybook-dark-mode": "^5.0.0",
|
|
79
79
|
"typescript": "~6.0.3",
|
|
80
|
-
"typescript-eslint": "^8.
|
|
81
|
-
"vite": "^8.1.
|
|
80
|
+
"typescript-eslint": "^8.65.0",
|
|
81
|
+
"vite": "^8.1.5",
|
|
82
82
|
"vitest": "^4.1.10",
|
|
83
83
|
"vitest-axe": "^0.1.0"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@equinor/eds-icons": "^1.5.1",
|
|
87
|
-
"@equinor/eds-tokens": "^2.3.
|
|
87
|
+
"@equinor/eds-tokens": "^2.3.2",
|
|
88
88
|
"@popperjs/core": "^2.11.8",
|
|
89
89
|
"@tanstack/react-table": "^8.21.3",
|
|
90
|
-
"@tanstack/react-virtual": "^3.14.
|
|
91
|
-
"@tiptap/core": "^3.
|
|
92
|
-
"@tiptap/extension-color": "^3.
|
|
93
|
-
"@tiptap/extension-highlight": "^3.
|
|
94
|
-
"@tiptap/extension-subscript": "^3.
|
|
95
|
-
"@tiptap/extension-superscript": "^3.
|
|
96
|
-
"@tiptap/extension-table": "^3.
|
|
97
|
-
"@tiptap/extension-table-cell": "^3.
|
|
98
|
-
"@tiptap/extension-table-header": "^3.
|
|
99
|
-
"@tiptap/extension-table-row": "^3.
|
|
100
|
-
"@tiptap/extension-text-align": "^3.
|
|
101
|
-
"@tiptap/extension-text-style": "^3.
|
|
102
|
-
"@tiptap/extensions": "^3.
|
|
103
|
-
"@tiptap/pm": "^3.
|
|
104
|
-
"@tiptap/react": "^3.
|
|
105
|
-
"@tiptap/starter-kit": "^3.
|
|
90
|
+
"@tanstack/react-virtual": "^3.14.7",
|
|
91
|
+
"@tiptap/core": "^3.28.0",
|
|
92
|
+
"@tiptap/extension-color": "^3.28.0",
|
|
93
|
+
"@tiptap/extension-highlight": "^3.28.0",
|
|
94
|
+
"@tiptap/extension-subscript": "^3.28.0",
|
|
95
|
+
"@tiptap/extension-superscript": "^3.28.0",
|
|
96
|
+
"@tiptap/extension-table": "^3.28.0",
|
|
97
|
+
"@tiptap/extension-table-cell": "^3.28.0",
|
|
98
|
+
"@tiptap/extension-table-header": "^3.28.0",
|
|
99
|
+
"@tiptap/extension-table-row": "^3.28.0",
|
|
100
|
+
"@tiptap/extension-text-align": "^3.28.0",
|
|
101
|
+
"@tiptap/extension-text-style": "^3.28.0",
|
|
102
|
+
"@tiptap/extensions": "^3.28.0",
|
|
103
|
+
"@tiptap/pm": "^3.28.0",
|
|
104
|
+
"@tiptap/react": "^3.28.0",
|
|
105
|
+
"@tiptap/starter-kit": "^3.28.0",
|
|
106
106
|
"date-fns": "^4.4.0"
|
|
107
107
|
},
|
|
108
108
|
"resolutions": {
|
|
109
|
-
"undici": "^7.28.0",
|
|
109
|
+
"jsdom/undici": "^7.28.0",
|
|
110
110
|
"@babel/core": "^7.29.6",
|
|
111
111
|
"tar": "^7.5.16"
|
|
112
112
|
}
|