@gnist/design-system 3.9.1 → 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 +13 -0
- package/dist/components/actions/selectionControls/shared.cjs +11 -1
- package/dist/components/actions/selectionControls/shared.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/shared.js +11 -1
- package/dist/components/inputs/dropdowns/SelectBase.cjs +2 -2
- package/dist/components/inputs/dropdowns/SelectBase.js +2 -2
- package/dist/components/inputs/shared.cjs +9 -1
- package/dist/components/inputs/shared.d.ts +6 -13
- package/dist/components/inputs/shared.d.ts.map +1 -1
- package/dist/components/inputs/shared.js +9 -1
- package/dist/components/surfaces/cards/internal/SelectionCard.cjs +2 -1
- package/dist/components/surfaces/cards/internal/SelectionCard.d.ts.map +1 -1
- package/dist/components/surfaces/cards/internal/SelectionCard.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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
|
+
|
|
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)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* adjust styling on selection controls description ([ff1630a](https://github.com/mollerdigital/design-system-design-system/commit/ff1630ac81e6bbd5b71e525e6a70d7942084b0a3))
|
|
17
|
+
* align description with label on RadioCard and CheckboxCard ([f0e7906](https://github.com/mollerdigital/design-system-design-system/commit/f0e7906f40485f4fcada607d9a27a1586615e448))
|
|
18
|
+
|
|
6
19
|
## [3.9.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.9.0...@gnist/design-system@3.9.1) (2025-09-02)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @gnist/design-system
|
|
@@ -6,11 +6,21 @@ const InputHelperText = require("../../../building-blocks/inputs/InputHelperText
|
|
|
6
6
|
const Column = require("../../../utilities/layout/Column.cjs");
|
|
7
7
|
require("../../../utilities/layout/Row.cjs");
|
|
8
8
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
9
|
+
require("../../../foundation/iconography/ExtraIconsProvider.cjs");
|
|
10
|
+
require("../../../foundation/iconography/IconVariantProvider.cjs");
|
|
11
|
+
require("../../../foundation/iconography/icons.cjs");
|
|
12
|
+
require("../../../foundation/iconography/Icon.cjs");
|
|
13
|
+
const index = require("../../../foundation/typography/index.cjs");
|
|
14
|
+
require("react");
|
|
15
|
+
require("classnames");
|
|
16
|
+
require("../../../foundation/logos/Logo.css.cjs");
|
|
9
17
|
const HelperTextWrapper = ({ children, id, validity, reserveSpaceForMessage, helperText }) => {
|
|
10
18
|
return jsxRuntime.jsxs(Column.Column, { className: atoms_css_js.atoms({ position: "relative" }), children: [children, jsxRuntime.jsx(InputHelperText.InputHelperText, { className: atoms_css_js.atoms({ marginLeft: "base" }), id, helperText, validity, reserveSpaceForMessage })] });
|
|
11
19
|
};
|
|
12
20
|
const SelectionDescription = ({ disabled, children }) => {
|
|
13
|
-
return jsxRuntime.jsx("div",
|
|
21
|
+
return jsxRuntime.jsx(index.DetailText, { "$as": "div", className: disabled ? atoms_css_js.atoms({
|
|
22
|
+
color: "on-disabled"
|
|
23
|
+
}) : void 0, children });
|
|
14
24
|
};
|
|
15
25
|
exports.HelperTextWrapper = HelperTextWrapper;
|
|
16
26
|
exports.SelectionDescription = SelectionDescription;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/shared.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/shared.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAK/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;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,4CAeA,CAAC"}
|
|
@@ -4,11 +4,21 @@ import { InputHelperText } from "../../../building-blocks/inputs/InputHelperText
|
|
|
4
4
|
import { Column } from "../../../utilities/layout/Column.js";
|
|
5
5
|
import "../../../utilities/layout/Row.js";
|
|
6
6
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
7
|
+
import "../../../foundation/iconography/ExtraIconsProvider.js";
|
|
8
|
+
import "../../../foundation/iconography/IconVariantProvider.js";
|
|
9
|
+
import "../../../foundation/iconography/icons.js";
|
|
10
|
+
import "../../../foundation/iconography/Icon.js";
|
|
11
|
+
import { DetailText } from "../../../foundation/typography/index.js";
|
|
12
|
+
import "react";
|
|
13
|
+
import "classnames";
|
|
14
|
+
import "../../../foundation/logos/Logo.css.js";
|
|
7
15
|
const HelperTextWrapper = ({ children, id, validity, reserveSpaceForMessage, helperText }) => {
|
|
8
16
|
return jsxs(Column, { className: atoms({ position: "relative" }), children: [children, jsx(InputHelperText, { className: atoms({ marginLeft: "base" }), id, helperText, validity, reserveSpaceForMessage })] });
|
|
9
17
|
};
|
|
10
18
|
const SelectionDescription = ({ disabled, children }) => {
|
|
11
|
-
return jsx("div",
|
|
19
|
+
return jsx(DetailText, { "$as": "div", className: disabled ? atoms({
|
|
20
|
+
color: "on-disabled"
|
|
21
|
+
}) : void 0, children });
|
|
12
22
|
};
|
|
13
23
|
export {
|
|
14
24
|
HelperTextWrapper,
|
|
@@ -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, {
|
|
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
|
-
},
|
|
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, {
|
|
46
|
+
}), children: [jsx(Select, { ...commonInputProps, ...selectProps, style: {
|
|
47
47
|
...assignInlineVars({
|
|
48
48
|
[preInputWidth]: wrapperProps.preInputWidth,
|
|
49
49
|
[postInputWidth]: wrapperProps.postInputWidth
|
|
50
50
|
})
|
|
51
|
-
},
|
|
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
|
-
|
|
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;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;;;;;;;;;;;;;;;;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;;;;;;;;
|
|
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,YA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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 {
|
|
@@ -21,6 +21,7 @@ const RectangularSkeleton = require("../../../../building-blocks/skeletons/Recta
|
|
|
21
21
|
require("../../../../utilities/layout/Column.cjs");
|
|
22
22
|
const Row = require("../../../../utilities/layout/Row.cjs");
|
|
23
23
|
const SelectionCard_css = require("./SelectionCard.css.cjs");
|
|
24
|
+
const shared_css = require("../../../actions/selectionControls/shared.css.cjs");
|
|
24
25
|
const SelectionCardLoader = ({ type, density }) => jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(Row.Row, { gap: "base", verticalAlign: "baseline", children: [jsxRuntime.jsx(RectangularSkeleton.RectangularSkeleton, { className: SelectionCard_css.SelectionControlSkeletonRecipe({ type }) }), jsxRuntime.jsx(TextSkeleton.TextSkeleton, {})] }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(CardDescription, { density, children: jsxRuntime.jsx(TextSkeleton.TextSkeleton, {}) }) })] });
|
|
25
26
|
const CardDescription = componentUtils.component("CardDescription", SelectionCard_css.cardDescription, "span");
|
|
26
27
|
const SelectionCardContent = ({ description, value, density, children }) => {
|
|
@@ -28,7 +29,7 @@ const SelectionCardContent = ({ description, value, density, children }) => {
|
|
|
28
29
|
if (!(description || children)) {
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
31
|
-
return jsxRuntime.
|
|
32
|
+
return jsxRuntime.jsxs("div", { className: shared_css.indentedDescriptionStyle, ref: animationParent, children: [description && jsxRuntime.jsx(CardDescription, { density, children: description }), value && children && jsxRuntime.jsx(CardDescription, { density, children })] });
|
|
32
33
|
};
|
|
33
34
|
exports.SelectionCardContent = SelectionCardContent;
|
|
34
35
|
exports.SelectionCardLoader = SelectionCardLoader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/surfaces/cards/internal/SelectionCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,gBAAgB,EAChB,QAAQ,EACX,6CAAoE;AACrE,OAAO,EAAE,gBAAgB,EAAE,+BAAwC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectionCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/surfaces/cards/internal/SelectionCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,gBAAgB,EAChB,QAAQ,EACX,6CAAoE;AACrE,OAAO,EAAE,gBAAgB,EAAE,+BAAwC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOhD,MAAM,WAAW,cAAc;IAC3B,SAAS,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACvC;AAED,MAAM,MAAM,yBAAyB,GAAG,IAAI,CACxC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EACjC,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,IAAI,CAC5D,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,+EAA+E;IAC/E,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,kBACb,SAAQ,sBAAsB,EAC1B,aAAa,CAAC,KAAK,CAAC,EACpB,cAAc,EACd,gBAAgB,CAAC,OAAO,CAAC,EACzB,QAAQ,CAAC;IAAE,gBAAgB,EAAE,KAAK,CAAA;CAAE,CAAC;CAAG;AAEhD,eAAO,MAAM,mBAAmB,uBAG7B;IAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAA;CAAE,GAAG,gBAAgB,4CAcnD,CAAC;AAIF,eAAO,MAAM,oBAAoB,+CAK9B,IAAI,CACH,kBAAkB,EAClB,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CACnD,mDAiBA,CAAC"}
|
|
@@ -19,6 +19,7 @@ import { RectangularSkeleton } from "../../../../building-blocks/skeletons/Recta
|
|
|
19
19
|
import "../../../../utilities/layout/Column.js";
|
|
20
20
|
import { Row } from "../../../../utilities/layout/Row.js";
|
|
21
21
|
import { cardDescription, SelectionControlSkeletonRecipe } from "./SelectionCard.css.js";
|
|
22
|
+
import { indentedDescriptionStyle } from "../../../actions/selectionControls/shared.css.js";
|
|
22
23
|
const SelectionCardLoader = ({ type, density }) => jsxs(Fragment, { children: [jsxs(Row, { gap: "base", verticalAlign: "baseline", children: [jsx(RectangularSkeleton, { className: SelectionControlSkeletonRecipe({ type }) }), jsx(TextSkeleton, {})] }), jsx("div", { children: jsx(CardDescription, { density, children: jsx(TextSkeleton, {}) }) })] });
|
|
23
24
|
const CardDescription = component("CardDescription", cardDescription, "span");
|
|
24
25
|
const SelectionCardContent = ({ description, value, density, children }) => {
|
|
@@ -26,7 +27,7 @@ const SelectionCardContent = ({ description, value, density, children }) => {
|
|
|
26
27
|
if (!(description || children)) {
|
|
27
28
|
return null;
|
|
28
29
|
}
|
|
29
|
-
return
|
|
30
|
+
return jsxs("div", { className: indentedDescriptionStyle, ref: animationParent, children: [description && jsx(CardDescription, { density, children: description }), value && children && jsx(CardDescription, { density, children })] });
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
32
33
|
SelectionCardContent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "3.9.
|
|
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": "
|
|
105
|
+
"gitHead": "5102262513c8a9714eaaad826de6555219438822"
|
|
106
106
|
}
|