@gnist/design-system 2.0.24 → 2.0.25

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,11 @@
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
+ ## <small>2.0.25 (2025-03-21)</small>
7
+
8
+ * fix: add ts-ignore to IconButton to allow forwardRef ([99c8008](https://github.com/mollerdigital/design-system-design-system/commit/99c8008))
9
+ * chore: upgrade packages to react 19 ([d2c8efe](https://github.com/mollerdigital/design-system-design-system/commit/d2c8efe))
10
+
6
11
  ## <small>2.0.24 (2025-03-21)</small>
7
12
 
8
13
  * fix: zIndex for label in TextFields components ([eec1810](https://github.com/mollerdigital/design-system-design-system/commit/eec1810))
@@ -13,16 +13,19 @@ const index = require("../../../foundation/typography/index.cjs");
13
13
  const styles_css = require("./styles.css.cjs");
14
14
  const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
15
15
  const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
16
- const IconButton = React.forwardRef(function IconButton2({ $as, as, className, showLabel, label, icon, variantOverride, ...props }, ref) {
17
- return React.createElement($as ?? as ?? "button", {
18
- ...props,
19
- ref,
20
- className: classNames__default.default(className, styles_css.buttonRecipe({ color: "transparent", buttonType: "icon" }), styles_css.iconButton({ showLabel }), states_css.stateLayers({
21
- borderSize: "medium",
22
- borderRadius: "button",
23
- backgroundColor: "palette-black",
24
- setFocusState: true
25
- }))
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
- });
16
+ const IconButton = React.forwardRef(
17
+ // @ts-expect-error - This is a valid type
18
+ function IconButton2({ $as, as, className, showLabel, label, icon, variantOverride, ...props }, ref) {
19
+ return React.createElement($as ?? as ?? "button", {
20
+ ...props,
21
+ ref,
22
+ className: classNames__default.default(className, styles_css.buttonRecipe({ color: "transparent", buttonType: "icon" }), styles_css.iconButton({ showLabel }), states_css.stateLayers({
23
+ borderSize: "medium",
24
+ borderRadius: "button",
25
+ backgroundColor: "palette-black",
26
+ setFocusState: true
27
+ }))
28
+ }, 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 })] }));
29
+ }
30
+ );
28
31
  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;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,+HA8CrB,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;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,+HA+CtB,CAAC"}
@@ -9,18 +9,21 @@ import "../../../foundation/iconography/icons.js";
9
9
  import { Icon } from "../../../foundation/iconography/Icon.js";
10
10
  import { BodyText } from "../../../foundation/typography/index.js";
11
11
  import { buttonRecipe, iconButton, actionText } from "./styles.css.js";
12
- const IconButton = forwardRef(function IconButton2({ $as, as, className, showLabel, label, icon, variantOverride, ...props }, ref) {
13
- return createElement($as ?? as ?? "button", {
14
- ...props,
15
- ref,
16
- className: classNames(className, buttonRecipe({ color: "transparent", buttonType: "icon" }), iconButton({ showLabel }), stateLayers({
17
- borderSize: "medium",
18
- borderRadius: "button",
19
- backgroundColor: "palette-black",
20
- setFocusState: true
21
- }))
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
- });
12
+ const IconButton = forwardRef(
13
+ // @ts-expect-error - This is a valid type
14
+ function IconButton2({ $as, as, className, showLabel, label, icon, variantOverride, ...props }, ref) {
15
+ return createElement($as ?? as ?? "button", {
16
+ ...props,
17
+ ref,
18
+ className: classNames(className, buttonRecipe({ color: "transparent", buttonType: "icon" }), iconButton({ showLabel }), stateLayers({
19
+ borderSize: "medium",
20
+ borderRadius: "button",
21
+ backgroundColor: "palette-black",
22
+ setFocusState: true
23
+ }))
24
+ }, 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 })] }));
25
+ }
26
+ );
24
27
  export {
25
28
  IconButton
26
29
  };
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, ReactNode } from "react";
1
+ import { InputHTMLAttributes, JSX, ReactNode } from "react";
2
2
  import { CommonInputProps, Validity } from "../../inputs/textFields/shared.js";
3
3
  export interface SelectionControlProps<TValue> extends Omit<InputHTMLAttributes<HTMLInputElement>, "placeholder" | "value" | "type" | "disabled" | "checked" | "id">, CommonInputProps<TValue>, Validity<{
4
4
  errorMsgRequired: false;
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/shared.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAI/E,MAAM,WAAW,qBAAqB,CAAC,MAAM,CACzC,SAAQ,IAAI,CACJ,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,IAAI,CACnE,EACD,gBAAgB,CAAC,MAAM,CAAC,EACxB,QAAQ,CAAC;IAAE,gBAAgB,EAAE,KAAK,CAAA;CAAE,CAAC;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACp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C,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,KAAK,GAAG,CAAC,OAAO,CAAC;CAC3E;AAED,UAAU,sBAAuB,SAAQ,QAAQ,CAAC;IAAE,gBAAgB,EAAE,KAAK,CAAA;CAAE,CAAC;IAC1E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmB9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,4BAG9B;IACC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,4CAMA,CAAC"}
@@ -143,7 +143,7 @@ export declare function getSelectInputProps<T>({ label, density, leadingIcon, he
143
143
  * onChange prop for setting value to selected options
144
144
  */
145
145
  onChange: (value: T) => void;
146
- ref?: import("react").LegacyRef<HTMLButtonElement> | undefined;
146
+ ref?: import("react").Ref<HTMLButtonElement> | undefined;
147
147
  key?: import("react").Key | null | undefined;
148
148
  value?: T | undefined;
149
149
  id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/foundation/iconography/Icon.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAqB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,SAAS,CAAC,KAAK,SAAS,YAAY,CACjD,SAAQ,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC3D;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IACZ;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IACzB,mHAAmH;IACnH,eAAe,CAAC,EAAE,YAAY,CAAC;CAClC;AAgED;;GAEG;AAEH,eAAO,MAAM,IAAI,6HAAkD,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/foundation/iconography/Icon.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAO,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAqB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,SAAS,CAAC,KAAK,SAAS,YAAY,CACjD,SAAQ,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC3D;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IACZ;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IACzB,mHAAmH;IACnH,eAAe,CAAC,EAAE,YAAY,CAAC;CAClC;AAgED;;GAEG;AAEH,eAAO,MAAM,IAAI,6HAAkD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@formkit/auto-animate": "^0.8.2",
51
- "@gnist/component-utils": "3.0.5",
51
+ "@gnist/component-utils": "3.0.6",
52
52
  "@gnist/themes": "^2.2.8",
53
53
  "@mui/base": "^5.0.0-beta.69",
54
54
  "@vanilla-extract/css": "^1.17.1",
@@ -72,8 +72,8 @@
72
72
  "@rollup/plugin-typescript": "^12.1.2",
73
73
  "@tsconfig/node22": "^22.0.0",
74
74
  "@types/node": "^22.13.4",
75
- "@types/react": "^18.0.0",
76
- "@types/react-dom": "^18.0.0",
75
+ "@types/react": "19.0.10",
76
+ "@types/react-dom": "19.0.4",
77
77
  "@types/semver": "^7.5.8",
78
78
  "@vitejs/plugin-react-swc": "^3.8.0",
79
79
  "eslint": "^9.21.0",
@@ -81,8 +81,8 @@
81
81
  "globby": "^14.1.0",
82
82
  "madge": "^8.0.0",
83
83
  "prettier": "^3.5.1",
84
- "react": "^18.3.1",
85
- "react-dom": "^18.3.1",
84
+ "react": "19.0.0",
85
+ "react-dom": "19.0.0",
86
86
  "rollup-plugin-copy": "^3.5.0",
87
87
  "semver": "^7.7.1",
88
88
  "svgo": "^3.3.2",
@@ -104,5 +104,5 @@
104
104
  "optional": true
105
105
  }
106
106
  },
107
- "gitHead": "c131eacb77e8f86fb936b630c83f36fa8303713f"
107
+ "gitHead": "ef957d144285c3280e05ffed4e81b45cbb8cfea6"
108
108
  }