@homebound/beam 3.78.0 → 3.79.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/index.cjs +34 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +34 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15411,6 +15411,7 @@ function GridSelectCard(props) {
|
|
|
15411
15411
|
layout,
|
|
15412
15412
|
label,
|
|
15413
15413
|
description,
|
|
15414
|
+
tag,
|
|
15414
15415
|
selected: isSelected = false,
|
|
15415
15416
|
disabled: isDisabled = false,
|
|
15416
15417
|
tooltip,
|
|
@@ -15431,6 +15432,12 @@ function GridSelectCard(props) {
|
|
|
15431
15432
|
} : {}
|
|
15432
15433
|
}), ...tid.img }) : icon && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Icon, { icon, inc: 4, color: isDisabled ? "--b-on-surface-disabled" /* OnSurfaceDisabled */ : "--b-on-surface" /* OnSurface */ }),
|
|
15433
15434
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("span", { className: "df fdc gap_4px w100", children: [
|
|
15435
|
+
tag && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { ...(0, import_runtime55.trussProps)({
|
|
15436
|
+
display: "df",
|
|
15437
|
+
...layout !== "horizontal" ? {
|
|
15438
|
+
justifyContent: "jcc"
|
|
15439
|
+
} : {}
|
|
15440
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Tag, { type: tag.type, text: tag.text, ...tid.tag }) }),
|
|
15434
15441
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { ...(0, import_runtime55.trussProps)({
|
|
15435
15442
|
fontWeight: "fw6",
|
|
15436
15443
|
fontSize: "fz_14px",
|
|
@@ -15500,6 +15507,7 @@ function ListSelectCard(props) {
|
|
|
15500
15507
|
const {
|
|
15501
15508
|
label,
|
|
15502
15509
|
description,
|
|
15510
|
+
tag,
|
|
15503
15511
|
selected: isSelected = false,
|
|
15504
15512
|
disabled: isDisabled = false,
|
|
15505
15513
|
tooltip,
|
|
@@ -15529,7 +15537,8 @@ function ListSelectCard(props) {
|
|
|
15529
15537
|
"--color": "var(--b-field-text-disabled)"
|
|
15530
15538
|
}]
|
|
15531
15539
|
} : {}
|
|
15532
|
-
}), children: label })
|
|
15540
|
+
}), children: label }),
|
|
15541
|
+
tag && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Tag, { type: tag.type, text: tag.text, ...tid.tag })
|
|
15533
15542
|
] }),
|
|
15534
15543
|
description && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { ...(0, import_runtime57.trussProps)({
|
|
15535
15544
|
marginLeft: "ml3",
|
|
@@ -15552,7 +15561,7 @@ function ListSelectCard(props) {
|
|
|
15552
15561
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
15553
15562
|
function SelectCardCheckboxGroupItem(props) {
|
|
15554
15563
|
const { option, groupState, isSelected, view, layout, ...others } = props;
|
|
15555
|
-
const { label, description, disabled, tooltip, value } = option;
|
|
15564
|
+
const { label, description, tag, disabled, tooltip, value } = option;
|
|
15556
15565
|
const ref = (0, import_react66.useRef)(null);
|
|
15557
15566
|
const { inputProps, isDisabled: isOptionDisabled } = (0, import_react_aria39.useCheckboxGroupItem)(
|
|
15558
15567
|
{ value: valueToKey(value), "aria-label": label, isDisabled: disabled ?? false },
|
|
@@ -15561,6 +15570,7 @@ function SelectCardCheckboxGroupItem(props) {
|
|
|
15561
15570
|
);
|
|
15562
15571
|
const layoutProps = {
|
|
15563
15572
|
label,
|
|
15573
|
+
tag,
|
|
15564
15574
|
description,
|
|
15565
15575
|
selected: isSelected,
|
|
15566
15576
|
disabled: isOptionDisabled,
|
|
@@ -15572,7 +15582,16 @@ function SelectCardCheckboxGroupItem(props) {
|
|
|
15572
15582
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ListSelectCard, { ...layoutProps });
|
|
15573
15583
|
}
|
|
15574
15584
|
const gridOption = option;
|
|
15575
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15586
|
+
GridSelectCard,
|
|
15587
|
+
{
|
|
15588
|
+
...layoutProps,
|
|
15589
|
+
layout,
|
|
15590
|
+
icon: gridOption.icon,
|
|
15591
|
+
image: gridOption.image,
|
|
15592
|
+
tag: gridOption.tag
|
|
15593
|
+
}
|
|
15594
|
+
);
|
|
15576
15595
|
}
|
|
15577
15596
|
|
|
15578
15597
|
// src/inputs/SelectCard/utils.ts
|
|
@@ -15683,7 +15702,7 @@ var import_react_aria41 = require("react-aria");
|
|
|
15683
15702
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
15684
15703
|
function SelectCardRadioGroupItem(props) {
|
|
15685
15704
|
const { option, groupState, isSelected, view, layout, ...others } = props;
|
|
15686
|
-
const { label, description, disabled, tooltip, value } = option;
|
|
15705
|
+
const { label, description, tag, disabled, tooltip, value } = option;
|
|
15687
15706
|
const ref = (0, import_react68.useRef)(null);
|
|
15688
15707
|
const { inputProps, isDisabled: isOptionDisabled } = (0, import_react_aria41.useRadio)(
|
|
15689
15708
|
{ value: valueToKey(value), "aria-label": label, isDisabled: disabled ?? false },
|
|
@@ -15692,6 +15711,7 @@ function SelectCardRadioGroupItem(props) {
|
|
|
15692
15711
|
);
|
|
15693
15712
|
const layoutProps = {
|
|
15694
15713
|
label,
|
|
15714
|
+
tag,
|
|
15695
15715
|
description,
|
|
15696
15716
|
selected: isSelected,
|
|
15697
15717
|
disabled: isOptionDisabled,
|
|
@@ -15703,7 +15723,16 @@ function SelectCardRadioGroupItem(props) {
|
|
|
15703
15723
|
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ListSelectCard, { ...layoutProps });
|
|
15704
15724
|
}
|
|
15705
15725
|
const gridOption = option;
|
|
15706
|
-
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
15726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
15727
|
+
GridSelectCard,
|
|
15728
|
+
{
|
|
15729
|
+
...layoutProps,
|
|
15730
|
+
layout,
|
|
15731
|
+
icon: gridOption.icon,
|
|
15732
|
+
image: gridOption.image,
|
|
15733
|
+
tag: gridOption.tag
|
|
15734
|
+
}
|
|
15735
|
+
);
|
|
15707
15736
|
}
|
|
15708
15737
|
|
|
15709
15738
|
// src/inputs/SelectCard/SelectCardGroup.tsx
|