@gnist/design-system 3.9.2 → 3.9.3

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,12 @@
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.9.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.9.2...@gnist/design-system@3.9.3) (2025-09-05)
7
+
8
+ ### Bug Fixes
9
+
10
+ * only assign className from user to wrapping span component for SelectBase ([2642d4e](https://github.com/mollerdigital/design-system-design-system/commit/2642d4e809af491c2ddb50126551d1532e405dd9))
11
+
6
12
  ## [3.9.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.9.1...@gnist/design-system@3.9.2) (2025-09-03)
7
13
 
8
14
  ### Bug Fixes
@@ -47,12 +47,12 @@ function SelectBase(props, isMultiple) {
47
47
  disabled: props.disabled,
48
48
  density: props.density,
49
49
  validityType: props.validity?.type
50
- }), children: [jsxRuntime.jsx(base.Select, { className: select_css.selectStyle, style: {
50
+ }), children: [jsxRuntime.jsx(base.Select, { ...commonInputProps, ...selectProps, style: {
51
51
  ...dynamic.assignInlineVars({
52
52
  [inputFieldConstants_css.preInputWidth]: wrapperProps.preInputWidth,
53
53
  [inputFieldConstants_css.postInputWidth]: wrapperProps.postInputWidth
54
54
  })
55
- }, ...commonInputProps, ...selectProps, ref: props.ref, multiple: isMultiple, onListboxOpenChange: (expanded) => setIsExpanded(expanded), slots: {
55
+ }, className: select_css.selectStyle, ref: props.ref, multiple: isMultiple, onListboxOpenChange: (expanded) => setIsExpanded(expanded), slots: {
56
56
  listbox: listBoxComponent,
57
57
  popup: popUpComponent
58
58
  }, onChange: (e, value) => {
@@ -43,12 +43,12 @@ function SelectBase(props, isMultiple) {
43
43
  disabled: props.disabled,
44
44
  density: props.density,
45
45
  validityType: props.validity?.type
46
- }), children: [jsx(Select, { className: selectStyle, style: {
46
+ }), children: [jsx(Select, { ...commonInputProps, ...selectProps, style: {
47
47
  ...assignInlineVars({
48
48
  [preInputWidth]: wrapperProps.preInputWidth,
49
49
  [postInputWidth]: wrapperProps.postInputWidth
50
50
  })
51
- }, ...commonInputProps, ...selectProps, ref: props.ref, multiple: isMultiple, onListboxOpenChange: (expanded) => setIsExpanded(expanded), slots: {
51
+ }, className: selectStyle, ref: props.ref, multiple: isMultiple, onListboxOpenChange: (expanded) => setIsExpanded(expanded), slots: {
52
52
  listbox: listBoxComponent,
53
53
  popup: popUpComponent
54
54
  }, onChange: (e, value) => {
@@ -107,7 +107,15 @@ function getSelectInputProps({ label, density, leadingIcon, helperText, ...selec
107
107
  leadingIcon,
108
108
  helperText
109
109
  },
110
- selectProps
110
+ selectProps: {
111
+ onChange: selectProps.onChange,
112
+ validity: selectProps.validity,
113
+ id: selectProps.id,
114
+ disabled: selectProps.disabled,
115
+ value: selectProps.value,
116
+ ref: selectProps.ref,
117
+ key: selectProps.key
118
+ }
111
119
  };
112
120
  }
113
121
  exports.getInputFieldProps = getInputFieldProps;
@@ -135,22 +135,15 @@ export declare function getSelectInputProps<T>({ label, density, leadingIcon, he
135
135
  helperText: string | undefined;
136
136
  };
137
137
  selectProps: {
138
- /**
139
- * className for the wrapper element, e.g. for used with styled(TextField)
140
- */
141
- className?: string;
142
- /**
143
- * onChange prop for setting value to selected options
144
- */
145
138
  onChange: (value: T) => void;
146
- ref?: import("react").Ref<HTMLButtonElement> | undefined;
147
- key?: import("react").Key | null | undefined;
148
- value?: T | undefined;
149
- id?: string;
150
- disabled?: boolean;
151
- validity?: import("../../index.js").InputFieldValidity<{
139
+ validity: import("../../index.js").InputFieldValidity<{
152
140
  errorMsgRequired: true;
153
141
  }> | undefined;
142
+ id: string | undefined;
143
+ disabled: boolean | undefined;
144
+ value: T | undefined;
145
+ ref: import("react").Ref<HTMLButtonElement> | undefined;
146
+ key: import("react").Key | null | undefined;
154
147
  };
155
148
  };
156
149
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,yBAAwC;AAE7E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EACH,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,QAAQ,EACX,MAAM,wBAAwB,CAAC;AAchC,wBAAgB,eAAe,CAC3B,IAAI,EAAE,YAAY,GAAG,aAAa,GACnC,IAAI,IAAI,aAAa,CAEvB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,MAAM,WAAW,cACb,SAAQ,gBAAgB,CAAC,MAAM,CAAC,EAC5B,QAAQ,EACR,UAAU,EACV,KAAK;IACT;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB,CAAC,IAAI,CACtC,SAAQ,aAAa,CAAC,iBAAiB,CAAC,EACpC,gBAAgB,CAAC,IAAI,CAAC,EACtB,QAAQ,EACR,UAAU,EACV,KAAK;IACT;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAC;CACnC;AAED,wBAAgB,kBAAkB,CAAC,EAC/B,KAAK,EACL,OAAO,EAAE,QAAoB,EAC7B,QAA2B,EAC3B,EAA6B,EAC7B,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,SAAS,GACZ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwChB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EACnC,KAAK,EACL,OAAO,EAAE,QAAoB,EAC7B,QAA2B,EAC3B,EAA6B,EAC7B,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,GACZ,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCzB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EAClC,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,GAAG,UAAU,EAChB,EAAE,CAAC,GAAG,cAAc;;;;;;;;;;;;EAcpB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EACnC,KAAK,EACL,OAAO,EACP,WAAW,EACX,UAAU,EACV,GAAG,WAAW,EACjB,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;;QA7ItB;;WAEG;oBACS,MAAM;QAClB;;WAEG;gCACwB,IAAI;;;;;;;;;;EAgJlC"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,yBAAwC;AAE7E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EACH,gBAAgB,EAChB,UAA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R,OAAO,EACP,SAAS,GACZ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwChB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EACnC,KAAK,EACL,OAAO,EAAE,QAAoB,EAC7B,QAA2B,EAC3B,EAA6B,EAC7B,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,GACZ,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCzB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EAClC,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,GAAG,UAAU,EAChB,EAAE,CAAC,GAAG,cAAc;;;;;;;;;;;;EAcpB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EACnC,KAAK,EACL,OAAO,EACP,WAAW,EACX,UAAU,EACV,GAAG,WAAW,EACjB,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;;gCAtIK,IAAI;;;;;;;;;;EAwJlC"}
@@ -105,7 +105,15 @@ function getSelectInputProps({ label, density, leadingIcon, helperText, ...selec
105
105
  leadingIcon,
106
106
  helperText
107
107
  },
108
- selectProps
108
+ selectProps: {
109
+ onChange: selectProps.onChange,
110
+ validity: selectProps.validity,
111
+ id: selectProps.id,
112
+ disabled: selectProps.disabled,
113
+ value: selectProps.value,
114
+ ref: selectProps.ref,
115
+ key: selectProps.key
116
+ }
109
117
  };
110
118
  }
111
119
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -102,5 +102,5 @@
102
102
  "optional": true
103
103
  }
104
104
  },
105
- "gitHead": "4af19b3d032a1c21e560a7ea90dbffcd1e1db250"
105
+ "gitHead": "5102262513c8a9714eaaad826de6555219438822"
106
106
  }