@gnist/design-system 3.1.2-alpha.1 → 3.3.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 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.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)
7
+
8
+ ### Features
9
+
10
+ * change action in AlertBanner to use GhostButton instead of TextButton ([da7fdf2](https://github.com/mollerdigital/design-system-design-system/commit/da7fdf21956f6b10d683638029cce29ce7dace62))
11
+
12
+ ## [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)
13
+
14
+ ### Features
15
+
16
+ * updated tools theme and added surface-tertiary-variant roles ([caddea1](https://github.com/mollerdigital/design-system-design-system/commit/caddea1acc36087079288fb2d3ee34d2767a15cf))
17
+
6
18
  ## [3.1.2-alpha.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.1.2-alpha.0...@gnist/design-system@3.1.2-alpha.1) (2025-05-16)
7
19
 
8
20
  **Note:** Version bump only for package @gnist/design-system
@@ -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
- const TextButton = require("../../actions/buttons/TextButton.cjs");
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(TextButton.TextButton, { className: AlertBanner_css.textButton, onClick: action.onClick, children: action.label })] })] });
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: "s" }),
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 textButton = atoms_css_js.atoms({ marginTop: "base" });
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 textButton: string;
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,UAAU,QAA+B,CAAC"}
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: "s" }),
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 textButton = atoms({ marginTop: "base" });
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,4CA8BlB,CAAC"}
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 { TextButton } from "../../actions/buttons/TextButton.js";
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, textButton, banner } from "./AlertBanner.css.js";
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(TextButton, { className: textButton, onClick: action.onClick, children: action.label })] })] });
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "3.1.2-alpha.1",
3
+ "version": "3.3.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.5.0-alpha.1",
52
+ "@gnist/themes": "^3.5.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": "2a30d7960bf2c38b7953d8780b068165f8fa7b07"
106
+ "gitHead": "d6ba0247a006f558ff00e582b2a05b861e8e8917"
107
107
  }