@gnist/design-system 2.0.2 → 2.0.4

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,16 @@
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
+ ## [2.0.4](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@2.0.3...@gnist/design-system@2.0.4) (2025-01-24)
7
+
8
+ ### Bug Fixes
9
+
10
+ * set correct font-weight of all buttons and chips ([3a577ed](https://github.com/mollerdigital/design-system-design-system/commit/3a577ed09e1ca79ced503cc4ec9874205347ed26))
11
+
12
+ ## [2.0.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@2.0.2...@gnist/design-system@2.0.3) (2025-01-24)
13
+
14
+ **Note:** Version bump only for package @gnist/design-system
15
+
6
16
  ## [2.0.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@2.0.1...@gnist/design-system@2.0.2) (2025-01-22)
7
17
 
8
18
  ### Bug Fixes
@@ -50,9 +50,7 @@ const BoxedButtonBase = React__namespace.forwardRef(function BoxedButtonBase2({
50
50
  });
51
51
  }
52
52
  if (typeof child === "string") {
53
- return jsxRuntime.jsx(index.BodyText, { style: {
54
- fontWeight: tokens_css_js.tokens.typeface.weight.medium
55
- }, children: child });
53
+ return jsxRuntime.jsx(index.BodyText, { className: styles_css.actionText, children: child });
56
54
  }
57
55
  return child;
58
56
  }), (loading == null ? void 0 : loading.isLoading) && (loading == null ? void 0 : loading.loadingText) && jsxRuntime.jsx(Spinner.Spinner, { diameter: tokens_css_js.tokens.size[density === "compact" ? "xs" : "s"], textDescription: loading == null ? void 0 : loading.loadingText }), jsxRuntime.jsx(ScreenReaderOnly.ScreenReaderOnly, { "aria-live": "polite", children: (loading == null ? void 0 : loading.isLoading) && loading.loadingText })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/ButtonBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAEH,YAAY,EACf,MAAM,yCAAyC,CAAC;AAKjD,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,gBAAgB,CAAC,SAAS,SAAS,WAAW,IACtD,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE;QACN;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QACnB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;CACL,CAAC;AAEN,eAAO,MAAM,eAAe,kHA2D1B,CAAC"}
1
+ {"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/ButtonBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAEH,YAAY,EACf,MAAM,yCAAyC,CAAC;AAKjD,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,gBAAgB,CAAC,SAAS,SAAS,WAAW,IACtD,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE;QACN;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QACnB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;CACL,CAAC;AAEN,eAAO,MAAM,eAAe,kHAmD1B,CAAC"}
@@ -12,7 +12,7 @@ import { tokens } from "@gnist/themes/tokens.css.js";
12
12
  import { ScreenReaderOnly } from "../../../utilities/accessibility/ScreenReaderOnly.js";
13
13
  import "../../../utilities/accessibility/visuallyHidden.css.js";
14
14
  import { Spinner } from "../../progress/Spinner.js";
15
- import { boxedButton } from "./styles.css.js";
15
+ import { boxedButton, actionText } from "./styles.css.js";
16
16
  const BoxedButtonBase = React.forwardRef(function BoxedButtonBase2({ $as, as, children, loading, className, disabled = loading == null ? void 0 : loading.isLoading, type = "button", density = "default", ...props }, ref) {
17
17
  const buttonProps = {
18
18
  ...props,
@@ -28,9 +28,7 @@ const BoxedButtonBase = React.forwardRef(function BoxedButtonBase2({ $as, as, ch
28
28
  });
29
29
  }
30
30
  if (typeof child === "string") {
31
- return jsx(BodyText, { style: {
32
- fontWeight: tokens.typeface.weight.medium
33
- }, children: child });
31
+ return jsx(BodyText, { className: actionText, children: child });
34
32
  }
35
33
  return child;
36
34
  }), (loading == null ? void 0 : loading.isLoading) && (loading == null ? void 0 : loading.loadingText) && jsx(Spinner, { diameter: tokens.size[density === "compact" ? "xs" : "s"], textDescription: loading == null ? void 0 : loading.loadingText }), jsx(ScreenReaderOnly, { "aria-live": "polite", children: (loading == null ? void 0 : loading.isLoading) && loading.loadingText })] }));
@@ -23,6 +23,6 @@ const IconButton = React.forwardRef(function IconButton2({ $as, as, className, s
23
23
  backgroundColor: "palette-black",
24
24
  setFocusState: true
25
25
  }))
26
- }, jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showLabel === "left" && jsxRuntime.jsx(index.BodyText, { children: label }), jsxRuntime.jsx(Icon.Icon, { icon, title: showLabel ? void 0 : label, variantOverride }), showLabel === "right" && jsxRuntime.jsx(index.BodyText, { children: label })] }));
26
+ }, jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showLabel === "left" && jsxRuntime.jsx(index.BodyText, { className: styles_css.actionText, children: label }), jsxRuntime.jsx(Icon.Icon, { icon, title: showLabel ? void 0 : label, variantOverride }), showLabel === "right" && jsxRuntime.jsx(index.BodyText, { className: styles_css.actionText, children: label })] }));
27
27
  });
28
28
  exports.IconButton = IconButton;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,wDAAoE;AAG3F,OAAO,EAAE,WAAW,EAA2C,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAQ,MAAM,0CAA0C,CAAC;AAI9E,KAAK,eAAe,CAAC,SAAS,SAAS,WAAW,IAC9C,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACtC,mHAAmH;IACnH,eAAe,CAAC,EAAE,YAAY,CAAC;CAClC,CAAC;AAEN;;EAEE;AACF,eAAO,MAAM,UAAU,+HA0CrB,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,wDAAoE;AAG3F,OAAO,EAAE,WAAW,EAA2C,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAQ,MAAM,0CAA0C,CAAC;AAI9E,KAAK,eAAe,CAAC,SAAS,SAAS,WAAW,IAC9C,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACtC,mHAAmH;IACnH,eAAe,CAAC,EAAE,YAAY,CAAC;CAClC,CAAC;AAEN;;EAEE;AACF,eAAO,MAAM,UAAU,+HA8CrB,CAAC"}
@@ -8,7 +8,7 @@ import "../../../foundation/iconography/IconVariantProvider.js";
8
8
  import "../../../foundation/iconography/icons.js";
9
9
  import { Icon } from "../../../foundation/iconography/Icon.js";
10
10
  import { BodyText } from "../../../foundation/typography/index.js";
11
- import { buttonRecipe, iconButton } from "./styles.css.js";
11
+ import { buttonRecipe, iconButton, actionText } from "./styles.css.js";
12
12
  const IconButton = forwardRef(function IconButton2({ $as, as, className, showLabel, label, icon, variantOverride, ...props }, ref) {
13
13
  return createElement($as ?? as ?? "button", {
14
14
  ...props,
@@ -19,7 +19,7 @@ const IconButton = forwardRef(function IconButton2({ $as, as, className, showLab
19
19
  backgroundColor: "palette-black",
20
20
  setFocusState: true
21
21
  }))
22
- }, jsxs(Fragment, { children: [showLabel === "left" && jsx(BodyText, { children: label }), jsx(Icon, { icon, title: showLabel ? void 0 : label, variantOverride }), showLabel === "right" && jsx(BodyText, { children: label })] }));
22
+ }, jsxs(Fragment, { children: [showLabel === "left" && jsx(BodyText, { className: actionText, children: label }), jsx(Icon, { icon, title: showLabel ? void 0 : label, variantOverride }), showLabel === "right" && jsx(BodyText, { className: actionText, children: label })] }));
23
23
  });
24
24
  export {
25
25
  IconButton
@@ -24,6 +24,6 @@ const TextButton = React.forwardRef(function TextButton2({ $as, as, className, u
24
24
  backgroundColor: "palette-black",
25
25
  setFocusState: true
26
26
  }))
27
- }, props.children ? jsxRuntime.jsx(index.BodyText, { className: styles_css.textButtonText({ underline }), children: props.children }) : void 0);
27
+ }, props.children ? jsxRuntime.jsx(index.BodyText, { className: classNames__default.default(styles_css.actionText, styles_css.textButtonText({ underline })), children: props.children }) : void 0);
28
28
  });
29
29
  exports.TextButton = TextButton;
@@ -1 +1 @@
1
- {"version":3,"file":"TextButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,EAAE,WAAW,EAA2C,MAAM,OAAO,CAAC;AAG7E,KAAK,eAAe,CAAC,SAAS,SAAS,WAAW,IAC9C,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEN;;;;EAIE;AACF,eAAO,MAAM,UAAU,+HA4BrB,CAAC"}
1
+ {"version":3,"file":"TextButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,EAAE,WAAW,EAA2C,MAAM,OAAO,CAAC;AAG7E,KAAK,eAAe,CAAC,SAAS,SAAS,WAAW,IAC9C,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEN;;;;EAIE;AACF,eAAO,MAAM,UAAU,+HAiCrB,CAAC"}
@@ -9,7 +9,7 @@ import { forwardRef, createElement } from "react";
9
9
  import classNames from "classnames";
10
10
  import "../../../foundation/logos/Logo.css.js";
11
11
  import { stateLayers } from "../../../styles/states.css.js";
12
- import { buttonRecipe, textButtonText } from "./styles.css.js";
12
+ import { buttonRecipe, actionText, textButtonText } from "./styles.css.js";
13
13
  const TextButton = forwardRef(function TextButton2({ $as, as, className, underline, ...props }, ref) {
14
14
  return createElement($as ?? as ?? "button", {
15
15
  ...props,
@@ -20,7 +20,7 @@ const TextButton = forwardRef(function TextButton2({ $as, as, className, underli
20
20
  backgroundColor: "palette-black",
21
21
  setFocusState: true
22
22
  }))
23
- }, props.children ? jsx(BodyText, { className: textButtonText({ underline }), children: props.children }) : void 0);
23
+ }, props.children ? jsx(BodyText, { className: classNames(actionText, textButtonText({ underline })), children: props.children }) : void 0);
24
24
  });
25
25
  export {
26
26
  TextButton
@@ -117,6 +117,9 @@ const iconButton = recipes.recipe({
117
117
  }
118
118
  }
119
119
  });
120
+ const actionText = css.style({
121
+ fontWeight: tokens_css_js.tokens.typeface.weight.semibold
122
+ });
120
123
  const textButtonText = recipes.recipe({
121
124
  base: {
122
125
  borderBottomStyle: "solid",
@@ -143,6 +146,7 @@ const textButtonText = recipes.recipe({
143
146
  underline: false
144
147
  }
145
148
  });
149
+ exports.actionText = actionText;
146
150
  exports.boxedButton = boxedButton;
147
151
  exports.buttonRecipe = buttonRecipe;
148
152
  exports.iconButton = iconButton;
@@ -52,6 +52,7 @@ export declare const iconButton: import("@vanilla-extract/recipes").RuntimeFn<{
52
52
  none: string;
53
53
  };
54
54
  }>;
55
+ export declare const actionText: string;
55
56
  export declare const textButtonText: import("@vanilla-extract/recipes").RuntimeFn<{
56
57
  underline: {
57
58
  true: {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/styles.css.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDvB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;EAStB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;EAQrB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EA0BzB,CAAC"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/styles.css.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDvB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;EAStB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;EAQrB,CAAC;AAEH,eAAO,MAAM,UAAU,QAErB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EA0BzB,CAAC"}
@@ -115,6 +115,9 @@ const iconButton = recipe({
115
115
  }
116
116
  }
117
117
  });
118
+ const actionText = style({
119
+ fontWeight: tokens.typeface.weight.semibold
120
+ });
118
121
  const textButtonText = recipe({
119
122
  base: {
120
123
  borderBottomStyle: "solid",
@@ -142,6 +145,7 @@ const textButtonText = recipe({
142
145
  }
143
146
  });
144
147
  export {
148
+ actionText,
145
149
  boxedButton,
146
150
  buttonRecipe,
147
151
  iconButton,
@@ -15,6 +15,7 @@ const states_css = require("../../../styles/states.css.cjs");
15
15
  const tokens_css_js = require("@gnist/themes/tokens.css.js");
16
16
  const Spinner = require("../../progress/Spinner.cjs");
17
17
  const styles_css = require("./styles.css.cjs");
18
+ const styles_css$1 = require("../buttons/styles.css.cjs");
18
19
  const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
19
20
  const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
20
21
  const ActionChip = React.forwardRef(function ActionChip2({ label, onClick, selected, icon, loading, density = "default", ...props }, ref) {
@@ -27,6 +28,6 @@ const ActionChip = React.forwardRef(function ActionChip2({ label, onClick, selec
27
28
  borderRadius: "full",
28
29
  backgroundColor: "on-background",
29
30
  setFocusState: true
30
- })), ref, children: (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { children: label })] }) });
31
+ })), ref, children: (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { className: styles_css$1.actionText, children: label })] }) });
31
32
  });
32
33
  exports.ActionChip = ActionChip;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionChip.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/ActionChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAGf,qCAAiD;AAQlD,OAAO,EACH,qBAAqB,EAGrB,iBAAiB,EACpB,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,eAAgB,SAAQ,qBAAqB,CAAC,QAAQ,CAAC;IACpE,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,oBAAoB;IACpB,OAAO,CAAC,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,2BAA2B;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;IAOI;AACJ,eAAO,MAAM,UAAU,4HAuDrB,CAAC"}
1
+ {"version":3,"file":"ActionChip.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/ActionChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAGf,qCAAiD;AAQlD,OAAO,EACH,qBAAqB,EAGrB,iBAAiB,EACpB,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,eAAgB,SAAQ,qBAAqB,CAAC,QAAQ,CAAC;IACpE,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,oBAAoB;IACpB,OAAO,CAAC,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,2BAA2B;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;IAOI;AACJ,eAAO,MAAM,UAAU,4HAuDrB,CAAC"}
@@ -13,6 +13,7 @@ import { focusStyle, stateLayers } from "../../../styles/states.css.js";
13
13
  import { tokens } from "@gnist/themes/tokens.css.js";
14
14
  import { Spinner } from "../../progress/Spinner.js";
15
15
  import { chipRecipe } from "./styles.css.js";
16
+ import { actionText } from "../buttons/styles.css.js";
16
17
  const ActionChip = forwardRef(function ActionChip2({ label, onClick, selected, icon, loading, density = "default", ...props }, ref) {
17
18
  return jsx("button", { type: "button", ...props, title: label, onClick, className: classNames(chipRecipe({
18
19
  selected,
@@ -23,7 +24,7 @@ const ActionChip = forwardRef(function ActionChip2({ label, onClick, selected, i
23
24
  borderRadius: "full",
24
25
  backgroundColor: "on-background",
25
26
  setFocusState: true
26
- })), ref, children: (loading == null ? void 0 : loading.isLoading) ? jsx(Spinner, { diameter: density === "compact" ? tokens.size.xs : tokens.size.s, textDescription: loading.loadingText }) : jsxs(Fragment, { children: [icon && jsx(Icon, { icon, size: density === "compact" ? "m" : "l" }), jsx(BodyText, { children: label })] }) });
27
+ })), ref, children: (loading == null ? void 0 : loading.isLoading) ? jsx(Spinner, { diameter: density === "compact" ? tokens.size.xs : tokens.size.s, textDescription: loading.loadingText }) : jsxs(Fragment, { children: [icon && jsx(Icon, { icon, size: density === "compact" ? "m" : "l" }), jsx(BodyText, { className: actionText, children: label })] }) });
27
28
  });
28
29
  export {
29
30
  ActionChip
@@ -15,6 +15,7 @@ const states_css = require("../../../styles/states.css.cjs");
15
15
  const tokens_css_js = require("@gnist/themes/tokens.css.js");
16
16
  const Spinner = require("../../progress/Spinner.cjs");
17
17
  const styles_css = require("./styles.css.cjs");
18
+ const styles_css$1 = require("../buttons/styles.css.cjs");
18
19
  const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
19
20
  const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
20
21
  const FilterChip = React.forwardRef(function FilterChip2({ label, onClick, selected, loading, density = "default", icon, ...props }, ref) {
@@ -27,6 +28,6 @@ const FilterChip = React.forwardRef(function FilterChip2({ label, onClick, selec
27
28
  borderRadius: "full",
28
29
  backgroundColor: "on-background",
29
30
  setFocusState: true
30
- })), ref, children: [(icon || selected) && !(loading == null ? void 0 : loading.isLoading) && jsxRuntime.jsx(Icon.Icon, { icon: selected ? "check" : icon }), (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(index.BodyText, { children: label }) })] });
31
+ })), ref, children: [(icon || selected) && !(loading == null ? void 0 : loading.isLoading) && jsxRuntime.jsx(Icon.Icon, { icon: selected ? "check" : icon }), (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(index.BodyText, { className: styles_css$1.actionText, children: label }) })] });
31
32
  });
32
33
  exports.FilterChip = FilterChip;
@@ -1 +1 @@
1
- {"version":3,"file":"FilterChip.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/FilterChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAGf,qCAAiD;AAQlD,OAAO,EAAE,qBAAqB,EAA4B,MAAM,OAAO,CAAC;AAIxE,UAAU,eAAgB,SAAQ,qBAAqB,CAAC,QAAQ,CAAC;IAC7D,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,8BAA8B;IAC9B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,sCAAsC;IACtC,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;IAII;AAEJ,eAAO,MAAM,UAAU,4HA0DrB,CAAC"}
1
+ {"version":3,"file":"FilterChip.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/FilterChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAGf,qCAAiD;AAQlD,OAAO,EAAE,qBAAqB,EAA4B,MAAM,OAAO,CAAC;AAKxE,UAAU,eAAgB,SAAQ,qBAAqB,CAAC,QAAQ,CAAC;IAC7D,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,8BAA8B;IAC9B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,sCAAsC;IACtC,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;IAII;AAEJ,eAAO,MAAM,UAAU,4HA0DrB,CAAC"}
@@ -13,6 +13,7 @@ import { focusStyle, stateLayers } from "../../../styles/states.css.js";
13
13
  import { tokens } from "@gnist/themes/tokens.css.js";
14
14
  import { Spinner } from "../../progress/Spinner.js";
15
15
  import { chipRecipe } from "./styles.css.js";
16
+ import { actionText } from "../buttons/styles.css.js";
16
17
  const FilterChip = forwardRef(function FilterChip2({ label, onClick, selected, loading, density = "default", icon, ...props }, ref) {
17
18
  return jsxs("button", { type: "button", ...props, title: label, onClick, className: classNames(chipRecipe({
18
19
  selected,
@@ -23,7 +24,7 @@ const FilterChip = forwardRef(function FilterChip2({ label, onClick, selected, l
23
24
  borderRadius: "full",
24
25
  backgroundColor: "on-background",
25
26
  setFocusState: true
26
- })), ref, children: [(icon || selected) && !(loading == null ? void 0 : loading.isLoading) && jsx(Icon, { icon: selected ? "check" : icon }), (loading == null ? void 0 : loading.isLoading) ? jsx(Spinner, { diameter: density === "compact" ? tokens.size.xs : tokens.size.s, textDescription: loading.loadingText }) : jsx(Fragment, { children: jsx(BodyText, { children: label }) })] });
27
+ })), ref, children: [(icon || selected) && !(loading == null ? void 0 : loading.isLoading) && jsx(Icon, { icon: selected ? "check" : icon }), (loading == null ? void 0 : loading.isLoading) ? jsx(Spinner, { diameter: density === "compact" ? tokens.size.xs : tokens.size.s, textDescription: loading.loadingText }) : jsx(Fragment, { children: jsx(BodyText, { className: actionText, children: label }) })] });
27
28
  });
28
29
  export {
29
30
  FilterChip
@@ -13,6 +13,7 @@ require("../../../foundation/logos/Logo.css.cjs");
13
13
  const animations_css = require("../../../styles/animations.css.cjs");
14
14
  const states_css = require("../../../styles/states.css.cjs");
15
15
  const styles_css = require("./styles.css.cjs");
16
+ const styles_css$1 = require("../buttons/styles.css.cjs");
16
17
  const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
17
18
  const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
18
19
  const TagChip = React.forwardRef(function TagChip2({ label, onClick, icon, density = "default", ...props }, ref) {
@@ -21,6 +22,6 @@ const TagChip = React.forwardRef(function TagChip2({ label, onClick, icon, densi
21
22
  borderRadius: "full",
22
23
  backgroundColor: "on-background",
23
24
  setFocusState: true
24
- })), ref, children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { children: label }), jsxRuntime.jsx(Icon.Icon, { icon: "clear", size: density === "compact" ? "m" : "l" })] });
25
+ })), ref, children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { className: styles_css$1.actionText, children: label }), jsxRuntime.jsx(Icon.Icon, { icon: "clear", size: density === "compact" ? "m" : "l" })] });
25
26
  });
26
27
  exports.TagChip = TagChip;
@@ -1 +1 @@
1
- {"version":3,"file":"TagChip.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/TagChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAGf,qCAAiD;AAOlD,OAAO,EACH,qBAAqB,EAGrB,iBAAiB,EACpB,MAAM,OAAO,CAAC;AAGf,UAAU,YAAa,SAAQ,qBAAqB,CAAC,QAAQ,CAAC;IAC1D,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,sCAAsC;IACtC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC;AAED;;;;IAII;AAEJ,eAAO,MAAM,OAAO,yHA8BlB,CAAC"}
1
+ {"version":3,"file":"TagChip.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/TagChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EAGf,qCAAiD;AAOlD,OAAO,EACH,qBAAqB,EAGrB,iBAAiB,EACpB,MAAM,OAAO,CAAC;AAIf,UAAU,YAAa,SAAQ,qBAAqB,CAAC,QAAQ,CAAC;IAC1D,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,sCAAsC;IACtC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC;AAED;;;;IAII;AAEJ,eAAO,MAAM,OAAO,yHA8BlB,CAAC"}
@@ -11,13 +11,14 @@ import "../../../foundation/logos/Logo.css.js";
11
11
  import { clickAnimation } from "../../../styles/animations.css.js";
12
12
  import { focusStyle, stateLayers } from "../../../styles/states.css.js";
13
13
  import { chipRecipe } from "./styles.css.js";
14
+ import { actionText } from "../buttons/styles.css.js";
14
15
  const TagChip = forwardRef(function TagChip2({ label, onClick, icon, density = "default", ...props }, ref) {
15
16
  return jsxs("button", { type: "button", ...props, title: label, onClick, className: classNames(chipRecipe(), clickAnimation, focusStyle, stateLayers({
16
17
  borderSize: "medium",
17
18
  borderRadius: "full",
18
19
  backgroundColor: "on-background",
19
20
  setFocusState: true
20
- })), ref, children: [icon && jsx(Icon, { icon, size: density === "compact" ? "m" : "l" }), jsx(BodyText, { children: label }), jsx(Icon, { icon: "clear", size: density === "compact" ? "m" : "l" })] });
21
+ })), ref, children: [icon && jsx(Icon, { icon, size: density === "compact" ? "m" : "l" }), jsx(BodyText, { className: actionText, children: label }), jsx(Icon, { icon: "clear", size: density === "compact" ? "m" : "l" })] });
21
22
  });
22
23
  export {
23
24
  TagChip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
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.7.0",
51
51
  "@gnist/component-utils": "3.0.1",
52
- "@gnist/themes": "^2.0.0",
52
+ "@gnist/themes": "^2.0.1",
53
53
  "@mui/base": "^5.0.0-beta.36",
54
54
  "@vanilla-extract/css": "^1.14.1",
55
55
  "@vanilla-extract/css-utils": "^0.1.3",
@@ -113,5 +113,5 @@
113
113
  "optional": true
114
114
  }
115
115
  },
116
- "gitHead": "6d4d0a95ab2aeca8009aa39a8e9d70b75731b24a"
116
+ "gitHead": "63176ea1df827e0794b38fdcb8689e6d3f329b9f"
117
117
  }