@luscii-healthtech/web-ui 58.8.2 → 58.9.0
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/dist/esm/components/Checkbox/LabeledCheckboxCardGroup.js +2 -2
- package/dist/esm/components/Checkbox/LabeledCheckboxCardGroup.js.map +1 -1
- package/dist/index.development.js +2 -2
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/Checkbox/LabeledCheckboxCardGroup.d.ts +5 -0
- package/dist/src/generated/components/Checkbox/LabeledCheckboxCardGroup.d.ts +5 -0
- package/dist/stories/LabeledCheckbox.stories.d.ts +6 -0
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@ import { Stack } from '../Stack/Stack.js';
|
|
|
7
7
|
import { Text } from '../Text/Text.js';
|
|
8
8
|
|
|
9
9
|
const LabeledCheckboxCardGroup = (props) => {
|
|
10
|
-
const { children, title, className, columns = 2, helperText, errorText } = props, attributes = __rest(props, ["children", "title", "className", "columns", "helperText", "errorText"]);
|
|
10
|
+
const { children, title, className, columns = 2, stretch = false, helperText, errorText } = props, attributes = __rest(props, ["children", "title", "className", "columns", "stretch", "helperText", "errorText"]);
|
|
11
11
|
const semanticId = React__default.useId();
|
|
12
|
-
return jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className, _gap: "base" }, attributes, { children: [title && jsx("legend", { className: "ui:contents", children: jsx(Text, { children: title }) }), jsx("div", { className: classNames("ui:grid ui:gap-x-m ui:gap-y-xs ui:items-start", {
|
|
12
|
+
return jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className: classNames({ "ui:w-full": stretch }, className), _gap: "base", align: stretch ? "stretch" : "start" }, attributes, { children: [title && jsx("legend", { className: "ui:contents", children: jsx(Text, { children: title }) }), jsx("div", { className: classNames("ui:grid ui:gap-x-m ui:gap-y-xs ui:items-start", {
|
|
13
13
|
"ui:grid-cols-1": columns === 1,
|
|
14
14
|
"ui:grid-cols-2": columns === 2,
|
|
15
15
|
"ui:grid-cols-3": columns === 3,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledCheckboxCardGroup.js","sources":["../../../../../../src/components/Checkbox/LabeledCheckboxCardGroup.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"LabeledCheckboxCardGroup.js","sources":["../../../../../../src/components/Checkbox/LabeledCheckboxCardGroup.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":";;;;;;;;AAuCO,MAAM,wBAAA,GAA4C,CAAC,KAAA,KAAgB;AACxE,EAAA,MAAM,EACJ,UACA,KAAA,EACA,SAAA,EACA,UAAU,CAAA,EACV,OAAA,GAAU,KAAA,EACV,UAAA,EACA,SAAA,EAAS,GAEP,OADC,UAAA,GAAU,MAAA,CACX,KAAA,EATE,CAAA,UAAA,EAAA,OAAA,EAAA,aAAA,SAAA,EAAA,SAAA,EAAA,YAAA,EAAA,WAAA,CASL,CAAA;AACD,EAAA,MAAM,UAAA,GAAaA,eAAM,KAAA;AAEzB,EAAA,OACEC,IAAA,CAAC,OAAK,MAAA,CAAA,MAAA,CAAA,EACJ,EAAA,EAAG,UAAA,EAAU,kBAAA,EACK,UAAA,EAClB,SAAA,EAAW,UAAA,CAAW,EAAE,WAAA,EAAa,OAAA,IAAW,SAAS,CAAA,EACzD,MAAK,MAAA,EACL,KAAA,EAAO,OAAA,GAAU,SAAA,GAAY,OAAA,EAAO,EAChC,YAAU,EAAA,QAAA,EAAA,CAEb,KAAA,IACCC,GAAA,CAAA,UAAA,EAAQ,SAAA,EAAU,aAAA,EAAa,QAAA,EAC7BA,GAAA,CAAC,IAAA,EAAI,EAAA,QAAA,EAAE,KAAA,EAAK,CAAA,EAAQ,CAAA,EAGxBA,IAAA,KAAA,EAAA,EACE,SAAA,EAAW,UAAA,CAAW,+CAAA,EAAiD;AAAA,IACrE,kBAAkB,OAAA,KAAY,CAAA;AAAA,IAC9B,kBAAkB,OAAA,KAAY,CAAA;AAAA,IAC9B,kBAAkB,OAAA,KAAY,CAAA;AAAA,IAC9B,kBAAkB,OAAA,KAAY;AAAA,GAC/B,CAAA,EAAC,QAAA,EAEO,CAAA,EAEXA,IAAC,kBAAA,EAAkB,EACjB,UAAA,EACA,SAAA,EACA,cAAc,UAAA,EAAU,CACxB,CAAA,EAAA,CAAA,CAAA;AAGR;;;;"}
|
|
@@ -2664,9 +2664,9 @@ const LabeledCheckboxGroup = (props) => {
|
|
|
2664
2664
|
};
|
|
2665
2665
|
|
|
2666
2666
|
const LabeledCheckboxCardGroup = (props) => {
|
|
2667
|
-
const { children, title, className, columns = 2, helperText, errorText } = props, attributes = __rest(props, ["children", "title", "className", "columns", "helperText", "errorText"]);
|
|
2667
|
+
const { children, title, className, columns = 2, stretch = false, helperText, errorText } = props, attributes = __rest(props, ["children", "title", "className", "columns", "stretch", "helperText", "errorText"]);
|
|
2668
2668
|
const semanticId = React__namespace.default.useId();
|
|
2669
|
-
return jsxRuntime.jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className, _gap: "base" }, attributes, { children: [title && jsxRuntime.jsx("legend", { className: "ui:contents", children: jsxRuntime.jsx(Text, { children: title }) }), jsxRuntime.jsx("div", { className: classNames__default.default("ui:grid ui:gap-x-m ui:gap-y-xs ui:items-start", {
|
|
2669
|
+
return jsxRuntime.jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default({ "ui:w-full": stretch }, className), _gap: "base", align: stretch ? "stretch" : "start" }, attributes, { children: [title && jsxRuntime.jsx("legend", { className: "ui:contents", children: jsxRuntime.jsx(Text, { children: title }) }), jsxRuntime.jsx("div", { className: classNames__default.default("ui:grid ui:gap-x-m ui:gap-y-xs ui:items-start", {
|
|
2670
2670
|
"ui:grid-cols-1": columns === 1,
|
|
2671
2671
|
"ui:grid-cols-2": columns === 2,
|
|
2672
2672
|
"ui:grid-cols-3": columns === 3,
|