@gnist/design-system 4.0.0 → 4.1.1
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 +12 -0
- package/dist/components/actions/selectionControls/RadioButton.d.ts +1 -1
- package/dist/components/actions/selectionControls/RadioButton.d.ts.map +1 -1
- package/dist/components/inputs/dropdowns/SelectBase.cjs +1 -1
- package/dist/components/inputs/dropdowns/SelectBase.d.ts.map +1 -1
- package/dist/components/inputs/dropdowns/SelectBase.js +1 -1
- package/dist/components/inputs/shared.d.ts +5 -0
- package/dist/components/inputs/shared.d.ts.map +1 -1
- package/dist/components/surfaces/cards/RadioCard.cjs +2 -2
- package/dist/components/surfaces/cards/RadioCard.d.ts +5 -1
- package/dist/components/surfaces/cards/RadioCard.d.ts.map +1 -1
- package/dist/components/surfaces/cards/RadioCard.js +2 -2
- package/package.json +2 -2
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
|
+
## [4.1.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@4.1.0...@gnist/design-system@4.1.1) (2025-09-30)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* RadioCard uses checked-prop and checked is required also for RadioButton ([935969e](https://github.com/mollerdigital/design-system-design-system/commit/935969eb2bb530920cef5aceeb05a9cfd739bc6b))
|
|
11
|
+
|
|
12
|
+
## [4.1.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@4.0.0...@gnist/design-system@4.1.0) (2025-09-29)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add `reserveSpaceForMessage` prop to SingleSelect and MultiSelect ([ac9630d](https://github.com/mollerdigital/design-system-design-system/commit/ac9630d5bd5b07cf9d0c9db0670fd3b4a7dd7c70))
|
|
17
|
+
|
|
6
18
|
## [4.0.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.12.4...@gnist/design-system@4.0.0) (2025-09-26)
|
|
7
19
|
|
|
8
20
|
### ⚠ BREAKING CHANGES
|
|
@@ -2,7 +2,7 @@ import { Ref } from "react";
|
|
|
2
2
|
import { SelectionControlProps } from "./shared.js";
|
|
3
3
|
export type RadioButtonProps = SelectionControlProps<string> & {
|
|
4
4
|
ref?: Ref<HTMLSpanElement>;
|
|
5
|
-
checked
|
|
5
|
+
checked: boolean;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Radio buttons allow users to select one option from a list. Use radio buttons when the user needs to see all available options. If available options can be collapsed, consider using a dropdown menu because it uses less space.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/RadioButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAS5B,OAAO,EAEH,qBAAqB,EAExB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,MAAM,CAAC,GAAG;IAC3D,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3B,OAAO,
|
|
1
|
+
{"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/RadioButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAS5B,OAAO,EAEH,qBAAqB,EAExB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,MAAM,CAAC,GAAG;IAC3D,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AA2CF;;;;;;;;GAQG;AAEH,wBAAgB,WAAW,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,EACX,EAA6B,EAC7B,SAAiB,EACjB,mBAA2B,EAC3B,SAAS,EACT,MAAsB,EACtB,GAAG,EACH,OAAO,EAEP,GAAG,IAAI,EACV,EAAE,gBAAgB,2CAsDlB"}
|
|
@@ -97,6 +97,6 @@ function SelectBase(props, isMultiple) {
|
|
|
97
97
|
}, children: jsxRuntime.jsx("span", { style: { position: "relative" }, children: props.label }) }), jsxRuntime.jsx("span", { style: { flexGrow: "1" } }), jsxRuntime.jsx(Icon.Icon, { icon: isExpanded ? "expand_less" : "expand_more", className: atoms_css_js.atoms({
|
|
98
98
|
paddingLeft: "xxs",
|
|
99
99
|
color: props.disabled ? "on-disabled" : "on-surface"
|
|
100
|
-
}) })] })] }), jsxRuntime.jsx(InputHelperText.InputHelperText, { id: contentProps.helperId, validity: props.validity, helperText: props.helperText, disabled: props.disabled })] });
|
|
100
|
+
}) })] })] }), jsxRuntime.jsx(InputHelperText.InputHelperText, { id: contentProps.helperId, validity: props.validity, helperText: props.helperText, disabled: props.disabled, reserveSpaceForMessage: props.reserveSpaceForMessage })] });
|
|
101
101
|
}
|
|
102
102
|
exports.SelectBase = SelectBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/SelectBase.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAOzE,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,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;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/SelectBase.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAOzE,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,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;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,2CA8K3E"}
|
|
@@ -76,7 +76,7 @@ function SelectBase(props, isMultiple) {
|
|
|
76
76
|
}, children: jsx("span", { style: { position: "relative" }, children: props.label }) }), jsx("span", { style: { flexGrow: "1" } }), jsx(Icon, { icon: isExpanded ? "expand_less" : "expand_more", className: atoms({
|
|
77
77
|
paddingLeft: "xxs",
|
|
78
78
|
color: props.disabled ? "on-disabled" : "on-surface"
|
|
79
|
-
}) })] })] }), jsx(InputHelperText, { id: contentProps.helperId, validity: props.validity, helperText: props.helperText, disabled: props.disabled })] });
|
|
79
|
+
}) })] })] }), jsx(InputHelperText, { id: contentProps.helperId, validity: props.validity, helperText: props.helperText, disabled: props.disabled, reserveSpaceForMessage: props.reserveSpaceForMessage })] });
|
|
80
80
|
}
|
|
81
81
|
export {
|
|
82
82
|
SelectBase
|
|
@@ -57,6 +57,11 @@ export interface SelectBaseInputProps<TVal> extends RefAttributes<HTMLButtonElem
|
|
|
57
57
|
* onChange prop for setting value to selected options
|
|
58
58
|
*/
|
|
59
59
|
onChange: (value: TVal) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Whether space should be reserved for text even when there is no current validation message or helper text.
|
|
62
|
+
* This helps avoid layout changes if messages are conditional, but leads to a less tight layout.
|
|
63
|
+
*/
|
|
64
|
+
reserveSpaceForMessage?: boolean;
|
|
60
65
|
}
|
|
61
66
|
export declare function useInputFieldLogic({ label, density: _density, validity, id, leadingIcon, trailingIcon, disabled, density, className, }: TextInputProps): {
|
|
62
67
|
wrapperProps: {
|
|
@@ -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,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ChB,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;;;;;;;;gCA5IK,IAAI;;;;;;;;;;EA8JlC"}
|
|
@@ -9,10 +9,10 @@ const checkboxCard_css = require("./checkboxCard.css.cjs");
|
|
|
9
9
|
const classNames = require("classnames");
|
|
10
10
|
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
11
11
|
const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
|
|
12
|
-
function RadioCard({ label, description, value, id, name, onChange, children, isLoading, validity, cardStyle, ref, ...props }) {
|
|
12
|
+
function RadioCard({ label, description, value, id, name, onChange, children, isLoading, validity, cardStyle, ref, checked, ...props }) {
|
|
13
13
|
return jsxRuntime.jsx(InfoCard.InfoCard, { ref, ...props, className: classNames__default.default(checkboxCard_css.StyledCardRecipe({
|
|
14
14
|
disabled: props.disabled,
|
|
15
15
|
cardStyle: cardStyle ?? "elevation"
|
|
16
|
-
}), props.className), children: isLoading ? jsxRuntime.jsx(SelectionCard.SelectionCardLoader, { type: "radio", density: props.density }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(RadioButton.RadioButton, { label, value, onChange, disabled: props.disabled, validity, id, name }), jsxRuntime.jsx(SelectionCard.SelectionCardContent, { description, value, density: props.density, children })] }) });
|
|
16
|
+
}), props.className), children: isLoading ? jsxRuntime.jsx(SelectionCard.SelectionCardLoader, { type: "radio", density: props.density }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(RadioButton.RadioButton, { label, value, onChange, disabled: props.disabled, validity, id, name, checked }), jsxRuntime.jsx(SelectionCard.SelectionCardContent, { description, value: checked, density: props.density, children })] }) });
|
|
17
17
|
}
|
|
18
18
|
exports.RadioCard = RadioCard;
|
|
@@ -13,6 +13,10 @@ interface RadioCardProps extends SelectionCardProps<string> {
|
|
|
13
13
|
* Props which will be passed to the radio
|
|
14
14
|
*/
|
|
15
15
|
radioProps?: HtmlSelectionControlProps;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the radio button is checked
|
|
18
|
+
*/
|
|
19
|
+
checked: RadioButtonProps["checked"];
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
18
22
|
Radio cards allow you to present an option and optionally provide additional information and supplementary actions.
|
|
@@ -23,6 +27,6 @@ The card serves to draw extra attention to a radio button selection in the user
|
|
|
23
27
|
|
|
24
28
|
Documentation: [RadioCard](https://gnist.moller.no/developers/components/latest/?path=/docs/components-surfaces-cards-radiocard--docs)
|
|
25
29
|
*/
|
|
26
|
-
export declare function RadioCard({ label, description, value, id, name, onChange, children, isLoading, validity, cardStyle, ref, ...props }: RadioCardProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function RadioCard({ label, description, value, id, name, onChange, children, isLoading, validity, cardStyle, ref, checked, ...props }: RadioCardProps): import("react/jsx-runtime").JSX.Element;
|
|
27
31
|
export {};
|
|
28
32
|
//# sourceMappingURL=RadioCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioCard.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/cards/RadioCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,gBAAgB,EACnB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACH,yBAAyB,EAGzB,kBAAkB,EACrB,MAAM,6BAA6B,CAAC;AAKrC,UAAU,cAAe,SAAQ,kBAAkB,CAAC,MAAM,CAAC;IACvD;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACvC;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioCard.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/cards/RadioCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,gBAAgB,EACnB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACH,yBAAyB,EAGzB,kBAAkB,EACrB,MAAM,6BAA6B,CAAC;AAKrC,UAAU,cAAe,SAAQ,kBAAkB,CAAC,MAAM,CAAC;IACvD;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACvC;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC;;OAEG;IACH,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,EACtB,KAAK,EACL,WAAW,EACX,KAAK,EACL,EAAE,EACF,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,SAAS,EACT,GAAG,EACH,OAAO,EACP,GAAG,KAAK,EACX,EAAE,cAAc,2CAsChB"}
|
|
@@ -5,11 +5,11 @@ import { SelectionCardLoader, SelectionCardContent } from "./internal/SelectionC
|
|
|
5
5
|
import { InfoCard } from "./InfoCard.js";
|
|
6
6
|
import { StyledCardRecipe } from "./checkboxCard.css.js";
|
|
7
7
|
import classNames from "classnames";
|
|
8
|
-
function RadioCard({ label, description, value, id, name, onChange, children, isLoading, validity, cardStyle, ref, ...props }) {
|
|
8
|
+
function RadioCard({ label, description, value, id, name, onChange, children, isLoading, validity, cardStyle, ref, checked, ...props }) {
|
|
9
9
|
return jsx(InfoCard, { ref, ...props, className: classNames(StyledCardRecipe({
|
|
10
10
|
disabled: props.disabled,
|
|
11
11
|
cardStyle: cardStyle ?? "elevation"
|
|
12
|
-
}), props.className), children: isLoading ? jsx(SelectionCardLoader, { type: "radio", density: props.density }) : jsxs(Fragment, { children: [jsx(RadioButton, { label, value, onChange, disabled: props.disabled, validity, id, name }), jsx(SelectionCardContent, { description, value, density: props.density, children })] }) });
|
|
12
|
+
}), props.className), children: isLoading ? jsx(SelectionCardLoader, { type: "radio", density: props.density }) : jsxs(Fragment, { children: [jsx(RadioButton, { label, value, onChange, disabled: props.disabled, validity, id, name, checked }), jsx(SelectionCardContent, { description, value: checked, density: props.density, children })] }) });
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
15
|
RadioCard
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
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": "
|
|
105
|
+
"gitHead": "a054cd8f5571d26783940563a7d66e9b7d69575e"
|
|
106
106
|
}
|