@gnist/design-system 2.0.31 → 2.0.32

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,10 @@
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.32 (2025-03-27)</small>
7
+
8
+ * fix: ownerState not recognised error for Select components ([cbdbd81](https://github.com/mollerdigital/design-system-design-system/commit/cbdbd81))
9
+
6
10
  ## <small>2.0.31 (2025-03-26)</small>
7
11
 
8
12
  * fix: close modal with ESC key and unmount from DOM when not in use ([13d58a0](https://github.com/mollerdigital/design-system-design-system/commit/13d58a0))
@@ -37,8 +37,8 @@ const labelStyles_css = require("../shared-styles/labelStyles.css.cjs");
37
37
  const select_css = require("./select.css.cjs");
38
38
  const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
39
39
  const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
40
- const listBoxComponent = componentUtils.component("listBox", select_css.listBoxStyle, "div");
41
- const popUpComponent = componentUtils.component("popUp", select_css.popUpStyle, "div");
40
+ const listBoxComponent = base.prepareForSlot(componentUtils.component("listBox", select_css.listBoxStyle, "div"));
41
+ const popUpComponent = base.prepareForSlot(componentUtils.component("popUp", select_css.popUpStyle, "div"));
42
42
  function SelectBase(props, isMultiple, ref) {
43
43
  var _a, _b;
44
44
  const { contentProps, wrapperProps, commonInputProps } = shared.useSelectInputLogic(props);
@@ -1 +1 @@
1
- {"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/SelectBase.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,oBAAoB,EAGvB,qBAAyD;AAM1D,OAAO,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAqB/C,MAAM,WAAW,eAAe,CAAC,IAAI,CAAE,SAAQ,oBAAoB,CAAC,IAAI,CAAC;IACrE;;;OAGG;IACH,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/C;AAKD,wBAAgB,UAAU,CAAC,CAAC,EACxB,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,EACzB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,YAAY,CAAC,iBAAiB,CAAC,2CA4HvC"}
1
+ {"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/SelectBase.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,oBAAoB,EAGvB,qBAAyD;AAM1D,OAAO,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAqB/C,MAAM,WAAW,eAAe,CAAC,IAAI,CAAE,SAAQ,oBAAoB,CAAC,IAAI,CAAC;IACrE;;;OAGG;IACH,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/C;AAOD,wBAAgB,UAAU,CAAC,CAAC,EACxB,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,EACzB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,YAAY,CAAC,iBAAiB,CAAC,2CA4HvC"}
@@ -15,7 +15,7 @@ import "../../../foundation/typography/index.js";
15
15
  import classNames from "classnames";
16
16
  import "../../../foundation/logos/Logo.css.js";
17
17
  import { atoms } from "@gnist/themes/atoms.css.js";
18
- import { Select, Option } from "@mui/base";
18
+ import { prepareForSlot, Select, Option } from "@mui/base";
19
19
  import { assignInlineVars } from "@vanilla-extract/dynamic";
20
20
  import "../../actions/buttons/PrimaryButton.js";
21
21
  import "../../actions/buttons/SecondaryButton.js";
@@ -33,8 +33,8 @@ import { inputFieldWrapperRecipe, inputContentWrapper, wrapperStyle } from "../s
33
33
  import { postInputWidth, preInputWidth } from "../shared-styles/inputFieldConstants.css.js";
34
34
  import { labelStyle } from "../shared-styles/labelStyles.css.js";
35
35
  import { listBoxStyle, popUpStyle, selectStyle, optionStyle, optionBackground, singleOptionStyle } from "./select.css.js";
36
- const listBoxComponent = component("listBox", listBoxStyle, "div");
37
- const popUpComponent = component("popUp", popUpStyle, "div");
36
+ const listBoxComponent = prepareForSlot(component("listBox", listBoxStyle, "div"));
37
+ const popUpComponent = prepareForSlot(component("popUp", popUpStyle, "div"));
38
38
  function SelectBase(props, isMultiple, ref) {
39
39
  var _a, _b;
40
40
  const { contentProps, wrapperProps, commonInputProps } = useSelectInputLogic(props);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "2.0.31",
3
+ "version": "2.0.32",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -104,5 +104,5 @@
104
104
  "optional": true
105
105
  }
106
106
  },
107
- "gitHead": "5b288b91fd9111c0fea2117dda92b56358120970"
107
+ "gitHead": "fe93b45cb3f1cd91b321b2d6b0962f76c32cf172"
108
108
  }