@gnist/design-system 3.2.0 → 3.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/CHANGELOG.md +12 -0
- package/dist/components/feedback/alerts/AlertBanner.cjs +3 -3
- package/dist/components/feedback/alerts/AlertBanner.css.cjs +3 -3
- package/dist/components/feedback/alerts/AlertBanner.css.d.ts +1 -1
- package/dist/components/feedback/alerts/AlertBanner.css.d.ts.map +1 -1
- package/dist/components/feedback/alerts/AlertBanner.css.js +4 -4
- package/dist/components/feedback/alerts/AlertBanner.d.ts.map +1 -1
- package/dist/components/feedback/alerts/AlertBanner.js +4 -4
- package/dist/components/surfaces/accordion/Accordion.d.ts +1 -0
- package/dist/components/surfaces/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/surfaces/accordion/accordion.css.cjs +2 -1
- package/dist/components/surfaces/accordion/accordion.css.d.ts +1 -0
- package/dist/components/surfaces/accordion/accordion.css.d.ts.map +1 -1
- package/dist/components/surfaces/accordion/accordion.css.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.4.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.3.0...@gnist/design-system@3.4.0) (2025-05-30)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add new theme for audi light ([a8ba016](https://github.com/mollerdigital/design-system-design-system/commit/a8ba0162e6a303edd200f12b3a7034459a10b603))
|
|
11
|
+
|
|
12
|
+
## [3.3.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.2.0...@gnist/design-system@3.3.0) (2025-05-30)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* change action in AlertBanner to use GhostButton instead of TextButton ([da7fdf2](https://github.com/mollerdigital/design-system-design-system/commit/da7fdf21956f6b10d683638029cce29ce7dace62))
|
|
17
|
+
|
|
6
18
|
## [3.2.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.1.1...@gnist/design-system@3.2.0) (2025-05-19)
|
|
7
19
|
|
|
8
20
|
### Features
|
|
@@ -14,8 +14,8 @@ require("../../actions/buttons/PrimaryButton.cjs");
|
|
|
14
14
|
require("../../actions/buttons/SecondaryButton.cjs");
|
|
15
15
|
require("../../actions/buttons/SuccessButton.cjs");
|
|
16
16
|
require("../../actions/buttons/DangerButton.cjs");
|
|
17
|
-
require("../../actions/buttons/GhostButton.cjs");
|
|
18
|
-
|
|
17
|
+
const GhostButton = require("../../actions/buttons/GhostButton.cjs");
|
|
18
|
+
require("../../actions/buttons/TextButton.cjs");
|
|
19
19
|
const IconButton = require("../../actions/buttons/IconButton.cjs");
|
|
20
20
|
const AlertBanner_css = require("./AlertBanner.css.cjs");
|
|
21
21
|
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
@@ -23,6 +23,6 @@ const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
|
|
|
23
23
|
const BannerHeading = componentUtils.component("BannerHeading", AlertBanner_css.bannerHeading, "h2");
|
|
24
24
|
const AlertBanner = ({ type, heading, message, dismiss, action, density = "default", headingLevel = "h2", className }) => {
|
|
25
25
|
const text = index.useTranslation((t) => t.components.feedback.alerts);
|
|
26
|
-
return jsxRuntime.jsxs("div", { className: classNames__default.default(className, AlertBanner_css.banner({ type, density })), children: [jsxRuntime.jsx(Icon.Icon, { type, icon: type, className: AlertBanner_css.icon({ type }) }), jsxRuntime.jsxs("div", { className: AlertBanner_css.mainContentContainer({ density }), children: [heading && jsxRuntime.jsx(BannerHeading, { "$as": headingLevel, children: heading }), dismiss && jsxRuntime.jsx(IconButton.IconButton, { className: AlertBanner_css.closeButton, icon: "close", label: text.dismissLabel, onClick: dismiss }), jsxRuntime.jsx(index$1.TextContainer, { className: AlertBanner_css.messageContainer, children: message }), action && jsxRuntime.jsx(
|
|
26
|
+
return jsxRuntime.jsxs("div", { className: classNames__default.default(className, AlertBanner_css.banner({ type, density })), children: [jsxRuntime.jsx(Icon.Icon, { type, icon: type, className: AlertBanner_css.icon({ type }) }), jsxRuntime.jsxs("div", { className: AlertBanner_css.mainContentContainer({ density }), children: [heading && jsxRuntime.jsx(BannerHeading, { "$as": headingLevel, children: heading }), dismiss && jsxRuntime.jsx(IconButton.IconButton, { className: AlertBanner_css.closeButton, icon: "close", label: text.dismissLabel, onClick: dismiss }), jsxRuntime.jsx(index$1.TextContainer, { className: AlertBanner_css.messageContainer, children: message }), action && jsxRuntime.jsx(GhostButton.GhostButton, { density: "compact", className: AlertBanner_css.actionButton, onClick: action.onClick, children: action.label })] })] });
|
|
27
27
|
};
|
|
28
28
|
exports.AlertBanner = AlertBanner;
|
|
@@ -51,7 +51,7 @@ const mainContentContainer = recipes.recipe({
|
|
|
51
51
|
],
|
|
52
52
|
variants: {
|
|
53
53
|
density: {
|
|
54
|
-
default: atoms_css_js.atoms({ marginLeft: "
|
|
54
|
+
default: atoms_css_js.atoms({ marginLeft: "xs" }),
|
|
55
55
|
compact: atoms_css_js.atoms({ marginLeft: "xxs" })
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -62,11 +62,11 @@ const bannerHeading = css.style([
|
|
|
62
62
|
]);
|
|
63
63
|
const closeButton = css.style({ float: "right" });
|
|
64
64
|
const messageContainer = css.style({ clear: "left" });
|
|
65
|
-
const
|
|
65
|
+
const actionButton = atoms_css_js.atoms({ marginTop: "xs" });
|
|
66
|
+
exports.actionButton = actionButton;
|
|
66
67
|
exports.banner = banner;
|
|
67
68
|
exports.bannerHeading = bannerHeading;
|
|
68
69
|
exports.closeButton = closeButton;
|
|
69
70
|
exports.icon = icon;
|
|
70
71
|
exports.mainContentContainer = mainContentContainer;
|
|
71
72
|
exports.messageContainer = messageContainer;
|
|
72
|
-
exports.textButton = textButton;
|
|
@@ -27,5 +27,5 @@ export declare const mainContentContainer: import("@vanilla-extract/recipes").Ru
|
|
|
27
27
|
export declare const bannerHeading: string;
|
|
28
28
|
export declare const closeButton: string;
|
|
29
29
|
export declare const messageContainer: string;
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const actionButton: string;
|
|
31
31
|
//# sourceMappingURL=AlertBanner.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertBanner.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alerts/AlertBanner.css.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM;;;;;;;;;;;EAuBjB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;EASf,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;EAY/B,CAAC;AAEH,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,WAAW,QAA4B,CAAC;AAErD,eAAO,MAAM,gBAAgB,QAA2B,CAAC;AAEzD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"AlertBanner.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alerts/AlertBanner.css.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM;;;;;;;;;;;EAuBjB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;EASf,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;EAY/B,CAAC;AAEH,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,WAAW,QAA4B,CAAC;AAErD,eAAO,MAAM,gBAAgB,QAA2B,CAAC;AAEzD,eAAO,MAAM,YAAY,QAA6B,CAAC"}
|
|
@@ -49,7 +49,7 @@ const mainContentContainer = recipe({
|
|
|
49
49
|
],
|
|
50
50
|
variants: {
|
|
51
51
|
density: {
|
|
52
|
-
default: atoms({ marginLeft: "
|
|
52
|
+
default: atoms({ marginLeft: "xs" }),
|
|
53
53
|
compact: atoms({ marginLeft: "xxs" })
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -60,13 +60,13 @@ const bannerHeading = style([
|
|
|
60
60
|
]);
|
|
61
61
|
const closeButton = style({ float: "right" });
|
|
62
62
|
const messageContainer = style({ clear: "left" });
|
|
63
|
-
const
|
|
63
|
+
const actionButton = atoms({ marginTop: "xs" });
|
|
64
64
|
export {
|
|
65
|
+
actionButton,
|
|
65
66
|
banner,
|
|
66
67
|
bannerHeading,
|
|
67
68
|
closeButton,
|
|
68
69
|
icon,
|
|
69
70
|
mainContentContainer,
|
|
70
|
-
messageContainer
|
|
71
|
-
textButton
|
|
71
|
+
messageContainer
|
|
72
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alerts/AlertBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,YAAY,EAEf,uCAAmD;AAcpD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAID;;;;;;;GAOG;AAEH,eAAO,MAAM,WAAW,mFASrB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AlertBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alerts/AlertBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,YAAY,EAEf,uCAAmD;AAcpD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAID;;;;;;;GAOG;AAEH,eAAO,MAAM,WAAW,mFASrB,gBAAgB,4CAkClB,CAAC"}
|
|
@@ -12,14 +12,14 @@ import "../../actions/buttons/PrimaryButton.js";
|
|
|
12
12
|
import "../../actions/buttons/SecondaryButton.js";
|
|
13
13
|
import "../../actions/buttons/SuccessButton.js";
|
|
14
14
|
import "../../actions/buttons/DangerButton.js";
|
|
15
|
-
import "../../actions/buttons/GhostButton.js";
|
|
16
|
-
import
|
|
15
|
+
import { GhostButton } from "../../actions/buttons/GhostButton.js";
|
|
16
|
+
import "../../actions/buttons/TextButton.js";
|
|
17
17
|
import { IconButton } from "../../actions/buttons/IconButton.js";
|
|
18
|
-
import { bannerHeading, icon, mainContentContainer, closeButton, messageContainer,
|
|
18
|
+
import { bannerHeading, icon, mainContentContainer, closeButton, messageContainer, actionButton, banner } from "./AlertBanner.css.js";
|
|
19
19
|
const BannerHeading = component("BannerHeading", bannerHeading, "h2");
|
|
20
20
|
const AlertBanner = ({ type, heading, message, dismiss, action, density = "default", headingLevel = "h2", className }) => {
|
|
21
21
|
const text = useTranslation((t) => t.components.feedback.alerts);
|
|
22
|
-
return jsxs("div", { className: classNames(className, banner({ type, density })), children: [jsx(Icon, { type, icon: type, className: icon({ type }) }), jsxs("div", { className: mainContentContainer({ density }), children: [heading && jsx(BannerHeading, { "$as": headingLevel, children: heading }), dismiss && jsx(IconButton, { className: closeButton, icon: "close", label: text.dismissLabel, onClick: dismiss }), jsx(TextContainer, { className: messageContainer, children: message }), action && jsx(
|
|
22
|
+
return jsxs("div", { className: classNames(className, banner({ type, density })), children: [jsx(Icon, { type, icon: type, className: icon({ type }) }), jsxs("div", { className: mainContentContainer({ density }), children: [heading && jsx(BannerHeading, { "$as": headingLevel, children: heading }), dismiss && jsx(IconButton, { className: closeButton, icon: "close", label: text.dismissLabel, onClick: dismiss }), jsx(TextContainer, { className: messageContainer, children: message }), action && jsx(GhostButton, { density: "compact", className: actionButton, onClick: action.onClick, children: action.label })] })] });
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
25
|
AlertBanner
|
|
@@ -32,6 +32,7 @@ export declare const Accordion: import("@gnist/component-utils").VanillaRecipeCo
|
|
|
32
32
|
withBackground: {
|
|
33
33
|
true: {
|
|
34
34
|
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
38
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/accordion/Accordion.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,KAAK,cAAc,GAAG;IAClB,oFAAoF;IACpF,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,oFAAoF;IACpF,QAAQ,EAAE,SAAS,CAAC;IACpB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yJAAyJ;IACzJ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8GAA8G;IAC9G,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA6BF;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/accordion/Accordion.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,KAAK,cAAc,GAAG;IAClB,oFAAoF;IACpF,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,oFAAoF;IACpF,QAAQ,EAAE,SAAS,CAAC;IACpB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yJAAyJ;IACzJ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8GAA8G;IAC9G,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA6BF;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;GAIrB,CAAC"}
|
|
@@ -19,7 +19,8 @@ const accordionRecipe = recipes.recipe({
|
|
|
19
19
|
},
|
|
20
20
|
withBackground: {
|
|
21
21
|
true: {
|
|
22
|
-
backgroundColor: tokens_css_js.tokens.color["surface-variant"]
|
|
22
|
+
backgroundColor: tokens_css_js.tokens.color["surface-variant"],
|
|
23
|
+
color: tokens_css_js.tokens.color["on-surface-variant"]
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -7,6 +7,7 @@ export declare const accordionRecipe: import("@vanilla-extract/recipes").Runtime
|
|
|
7
7
|
withBackground: {
|
|
8
8
|
true: {
|
|
9
9
|
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
13
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.css.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/accordion/accordion.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"accordion.css.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/accordion/accordion.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;EAqB1B,CAAC;AAEH,eAAO,MAAM,IAAI,QAkBf,CAAC;AAEH,eAAO,MAAM,cAAc,QAWzB,CAAC;AAEH,eAAO,MAAM,IAAI,QAEf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@formkit/auto-animate": "^0.8.2",
|
|
51
51
|
"@gnist/component-utils": "3.0.7",
|
|
52
|
-
"@gnist/themes": "^3.
|
|
52
|
+
"@gnist/themes": "^3.6.0",
|
|
53
53
|
"@mui/base": "^5.0.0-beta.70",
|
|
54
54
|
"@vanilla-extract/css": "^1.17.1",
|
|
55
55
|
"@vanilla-extract/css-utils": "^0.1.4",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"optional": true
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "f87af1c376ebea1e99c3ab722f7d550e2bd1369d"
|
|
107
107
|
}
|