@homebound/beam 4.32.0 → 4.34.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 +211 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -7
- package/dist/index.d.ts +50 -7
- package/dist/index.js +216 -64
- package/dist/index.js.map +1 -1
- package/dist/truss.css +32 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16826,103 +16826,105 @@ function EntityLockup(props) {
|
|
|
16826
16826
|
} = props;
|
|
16827
16827
|
const tid = useTestIds(props, "entityLockup");
|
|
16828
16828
|
const styles = compact ? compactStyles : defaultStyles;
|
|
16829
|
-
return
|
|
16830
|
-
|
|
16831
|
-
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.
|
|
16832
|
-
/* @__PURE__ */
|
|
16833
|
-
|
|
16834
|
-
|
|
16835
|
-
/* @__PURE__ */
|
|
16829
|
+
return (
|
|
16830
|
+
// `defaultStyles` query this container's width to switch to compact.
|
|
16831
|
+
/* @__PURE__ */ jsx92("div", { className: "w100 mw0 ctis cn_entityLockup", ...tid, children: /* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.container), children: [
|
|
16832
|
+
/* @__PURE__ */ jsx92("div", { ...trussProps59(styles.image), children: /* @__PURE__ */ jsx92("img", { src: imgSrc, alt: title, loading: "lazy", className: "w100 h100 obf_cover db", ...tid.image }) }),
|
|
16833
|
+
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.body), children: [
|
|
16834
|
+
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.text), children: [
|
|
16835
|
+
/* @__PURE__ */ jsxs57("div", { ...trussProps59(styles.heading), children: [
|
|
16836
|
+
isDefined(eyebrow) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.eyebrow), ...tid.eyebrow, children: eyebrow }),
|
|
16837
|
+
/* @__PURE__ */ jsx92("div", { ...trussProps59(styles.title), ...tid.title, children: title })
|
|
16838
|
+
] }),
|
|
16839
|
+
isDefined(description) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.description), ...tid.description, children: description })
|
|
16836
16840
|
] }),
|
|
16837
|
-
isDefined(
|
|
16838
|
-
] })
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
] });
|
|
16841
|
+
isDefined(right) && /* @__PURE__ */ jsx92("div", { ...trussProps59(styles.right), ...tid.right, children: right })
|
|
16842
|
+
] })
|
|
16843
|
+
] }) })
|
|
16844
|
+
);
|
|
16842
16845
|
}
|
|
16843
16846
|
var defaultStyles = {
|
|
16844
16847
|
container: {
|
|
16845
16848
|
display: "df",
|
|
16846
16849
|
alignItems: "aifs",
|
|
16847
|
-
gap: "g_2"
|
|
16850
|
+
gap: "g_2 container_entityLockup_max_width_400px_g_12px"
|
|
16848
16851
|
},
|
|
16849
16852
|
image: {
|
|
16850
16853
|
flexShrink: "fs0",
|
|
16851
|
-
height: "h_96px",
|
|
16852
|
-
width: "w_96px",
|
|
16854
|
+
height: "h_96px container_entityLockup_max_width_400px_h_62px",
|
|
16855
|
+
width: "w_96px container_entityLockup_max_width_400px_w_62px",
|
|
16853
16856
|
borderRadius: "br8",
|
|
16854
16857
|
borderStyle: "bss",
|
|
16855
16858
|
borderWidth: "bw1",
|
|
16856
|
-
borderColor: ["bc_var", {
|
|
16857
|
-
"--borderColor": "var(--b-field-border-default)"
|
|
16859
|
+
borderColor: ["bc_var container_entityLockup_max_width_400px_bc_var", {
|
|
16860
|
+
"--borderColor": "var(--b-field-border-default)",
|
|
16861
|
+
"--container_entityLockup_max_width_400px_borderColor": "var(--b-surface-separator)"
|
|
16858
16862
|
}],
|
|
16859
16863
|
overflow: "oh",
|
|
16860
16864
|
backgroundColor: ["bgColor_var", {
|
|
16861
16865
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
16862
16866
|
}]
|
|
16863
16867
|
},
|
|
16864
|
-
// On small screens, `right` moves under the description so the text keeps its width.
|
|
16865
16868
|
body: {
|
|
16866
16869
|
display: "df",
|
|
16867
16870
|
flexGrow: "fg1",
|
|
16868
16871
|
minWidth: "mw0",
|
|
16869
|
-
gap: "g_2
|
|
16870
|
-
|
|
16872
|
+
gap: "g_2 container_entityLockup_max_width_400px_g_12px",
|
|
16873
|
+
alignSelf: "container_entityLockup_max_width_400px_asStretch"
|
|
16871
16874
|
},
|
|
16872
16875
|
text: {
|
|
16873
16876
|
display: "df",
|
|
16874
16877
|
flexDirection: "fdc",
|
|
16875
16878
|
minWidth: "mw0",
|
|
16876
16879
|
flexGrow: "fg1",
|
|
16877
|
-
gap: "g_1"
|
|
16880
|
+
gap: "g_1 container_entityLockup_max_width_400px_g_2px",
|
|
16881
|
+
paddingTop: "container_entityLockup_max_width_400px_pt_4px"
|
|
16878
16882
|
},
|
|
16879
16883
|
heading: {
|
|
16880
16884
|
display: "df",
|
|
16881
16885
|
flexDirection: "fdc",
|
|
16882
|
-
gap: "g_2px"
|
|
16886
|
+
gap: "g_2px container_entityLockup_max_width_400px_g_0"
|
|
16883
16887
|
},
|
|
16884
16888
|
eyebrow: {
|
|
16885
|
-
fontWeight: "fw4",
|
|
16886
|
-
fontSize: "fz_14px",
|
|
16887
|
-
lineHeight: "lh_20px",
|
|
16889
|
+
fontWeight: "fw4 container_entityLockup_max_width_400px_fw4",
|
|
16890
|
+
fontSize: "fz_14px container_entityLockup_max_width_400px_fz_12px",
|
|
16891
|
+
lineHeight: "lh_20px container_entityLockup_max_width_400px_lh_16px",
|
|
16888
16892
|
color: ["color_var", {
|
|
16889
16893
|
"--color": "var(--b-on-surface)"
|
|
16890
16894
|
}]
|
|
16891
16895
|
},
|
|
16892
16896
|
title: {
|
|
16893
|
-
fontWeight: "fw6",
|
|
16894
|
-
fontSize: "fz_14px",
|
|
16895
|
-
lineHeight: "lh_20px",
|
|
16897
|
+
fontWeight: "fw6 container_entityLockup_max_width_400px_fw6",
|
|
16898
|
+
fontSize: "fz_14px container_entityLockup_max_width_400px_fz_12px",
|
|
16899
|
+
lineHeight: "lh_20px container_entityLockup_max_width_400px_lh_16px",
|
|
16896
16900
|
color: ["color_var", {
|
|
16897
16901
|
"--color": "var(--b-on-surface)"
|
|
16898
16902
|
}]
|
|
16899
16903
|
},
|
|
16900
16904
|
description: {
|
|
16901
|
-
fontWeight: "fw4",
|
|
16902
|
-
fontSize: "fz_12px",
|
|
16903
|
-
lineHeight: "lh_16px",
|
|
16905
|
+
fontWeight: "fw4 container_entityLockup_max_width_400px_fw4",
|
|
16906
|
+
fontSize: "fz_12px container_entityLockup_max_width_400px_fz_10px",
|
|
16907
|
+
lineHeight: "lh_16px container_entityLockup_max_width_400px_lh_14px",
|
|
16904
16908
|
color: ["color_var", {
|
|
16905
16909
|
"--color": "var(--b-on-surface)"
|
|
16906
16910
|
}]
|
|
16907
16911
|
},
|
|
16908
|
-
// Capped at half the row so wide content can't squeeze the text to nothing
|
|
16909
|
-
// A lone child (fewer than two elements) stays right-aligned instead of falling to the start under `jcsb`.
|
|
16912
|
+
// Capped at half the row so wide content can't squeeze the text to nothing.
|
|
16910
16913
|
right: {
|
|
16911
16914
|
flexShrink: "fs0",
|
|
16912
|
-
maxWidth: "maxw50
|
|
16915
|
+
maxWidth: "maxw50",
|
|
16913
16916
|
display: "df",
|
|
16914
|
-
flexDirection: "fdc
|
|
16915
|
-
alignItems: "aife
|
|
16917
|
+
flexDirection: "fdc",
|
|
16918
|
+
alignItems: "aife",
|
|
16916
16919
|
gap: "g_6px",
|
|
16917
|
-
alignSelf: "asfs
|
|
16918
|
-
textAlign: "tar"
|
|
16919
|
-
justifyContent: "sm_jcsb sm_n_has_nth_child_2_jcfe"
|
|
16920
|
+
alignSelf: "asfs",
|
|
16921
|
+
textAlign: "tar"
|
|
16920
16922
|
}
|
|
16921
16923
|
};
|
|
16922
16924
|
var compactStyles = {
|
|
16923
16925
|
container: {
|
|
16924
16926
|
display: "df",
|
|
16925
|
-
alignItems: "
|
|
16927
|
+
alignItems: "aifs",
|
|
16926
16928
|
gap: "g_12px"
|
|
16927
16929
|
},
|
|
16928
16930
|
image: {
|
|
@@ -30433,12 +30435,15 @@ function EnvironmentBannerLayout(props) {
|
|
|
30433
30435
|
import { trussProps as trussProps143, maybeCssVar as maybeCssVar68 } from "@homebound/truss/runtime";
|
|
30434
30436
|
|
|
30435
30437
|
// src/forms/FormSection/FormSection.tsx
|
|
30438
|
+
import { useCheckboxGroup as useCheckboxGroup4, useRadioGroup as useRadioGroup3 } from "react-aria";
|
|
30439
|
+
import { useCheckboxGroupState as useCheckboxGroupState4, useRadioGroupState as useRadioGroupState3 } from "react-stately";
|
|
30436
30440
|
import { trussProps as trussProps141, maybeCssVar as maybeCssVar66 } from "@homebound/truss/runtime";
|
|
30437
30441
|
|
|
30438
30442
|
// src/forms/FormSection/FormSectionChild.tsx
|
|
30439
30443
|
import { useRef as useRef72 } from "react";
|
|
30444
|
+
import { mergeProps as mergeProps43, useCheckboxGroupItem as useCheckboxGroupItem4, useFocusRing as useFocusRing22, useRadio as useRadio3, VisuallyHidden as VisuallyHidden11 } from "react-aria";
|
|
30440
30445
|
import { trussProps as trussProps140 } from "@homebound/truss/runtime";
|
|
30441
|
-
import { jsx as jsx242, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
30446
|
+
import { Fragment as Fragment52, jsx as jsx242, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
30442
30447
|
function FormSectionChild(props) {
|
|
30443
30448
|
const {
|
|
30444
30449
|
title,
|
|
@@ -30446,7 +30451,10 @@ function FormSectionChild(props) {
|
|
|
30446
30451
|
actions,
|
|
30447
30452
|
fields,
|
|
30448
30453
|
orderField,
|
|
30449
|
-
tag
|
|
30454
|
+
tag,
|
|
30455
|
+
value = title,
|
|
30456
|
+
selection,
|
|
30457
|
+
group
|
|
30450
30458
|
} = props;
|
|
30451
30459
|
const tid = useTestIds(props, "formSectionChild");
|
|
30452
30460
|
const itemRef = useRef72(null);
|
|
@@ -30458,6 +30466,7 @@ function FormSectionChild(props) {
|
|
|
30458
30466
|
id: props.id ?? title,
|
|
30459
30467
|
itemRef
|
|
30460
30468
|
});
|
|
30469
|
+
const control = group?.mode === "single" ? /* @__PURE__ */ jsx242(FormSectionChildRadio, { state: group.state, value, label: title, ...tid.radio }) : group?.mode === "multiple" ? /* @__PURE__ */ jsx242(FormSectionChildCheckbox, { state: group.state, value, label: title, ...tid.checkbox }) : selection ? /* @__PURE__ */ jsx242(BoundCheckboxField, { field: selection.field, label: title, checkboxOnly: true, ...tid.checkbox }) : void 0;
|
|
30461
30470
|
return /* @__PURE__ */ jsxs130("div", { ...isDraggable ? {
|
|
30462
30471
|
...dragItemProps,
|
|
30463
30472
|
ref: itemRef
|
|
@@ -30477,10 +30486,73 @@ function FormSectionChild(props) {
|
|
|
30477
30486
|
borderStyle: "lot_bsn",
|
|
30478
30487
|
borderWidth: "lot_bw_0"
|
|
30479
30488
|
}), ...tid, children: [
|
|
30480
|
-
/* @__PURE__ */ jsx242(ContentHeader, { ...tid.header, title, description, actions, level: 4, rightSlotLead: tag && /* @__PURE__ */ jsx242(Tag, { ...tag, ...tid.tag }), startAdornment: isDraggable ? /* @__PURE__ */
|
|
30489
|
+
/* @__PURE__ */ jsx242(ContentHeader, { ...tid.header, title, description, actions, level: 4, rightSlotLead: tag && /* @__PURE__ */ jsx242(Tag, { ...tag, ...tid.tag }), startAdornment: isDraggable || control ? /* @__PURE__ */ jsxs130(Fragment52, { children: [
|
|
30490
|
+
isDraggable && /* @__PURE__ */ jsx242(DnDGridItemHandle, { dragHandleProps, icon: "drag", compact: true }),
|
|
30491
|
+
control
|
|
30492
|
+
] }) : void 0 }),
|
|
30481
30493
|
fields
|
|
30482
30494
|
] });
|
|
30483
30495
|
}
|
|
30496
|
+
function FormSectionChildRadio(props) {
|
|
30497
|
+
const {
|
|
30498
|
+
state,
|
|
30499
|
+
value,
|
|
30500
|
+
label
|
|
30501
|
+
} = props;
|
|
30502
|
+
const ref = useRef72(null);
|
|
30503
|
+
const {
|
|
30504
|
+
inputProps,
|
|
30505
|
+
isDisabled,
|
|
30506
|
+
isSelected
|
|
30507
|
+
} = useRadio3({
|
|
30508
|
+
value,
|
|
30509
|
+
"aria-label": label
|
|
30510
|
+
}, state, ref);
|
|
30511
|
+
const {
|
|
30512
|
+
focusProps,
|
|
30513
|
+
isFocusVisible
|
|
30514
|
+
} = useFocusRing22();
|
|
30515
|
+
const tid = useTestIds(props);
|
|
30516
|
+
return /* @__PURE__ */ jsx242(StyledRadio, { isDisabled, isSelected, isFocusVisible, inputProps: {
|
|
30517
|
+
...mergeProps43(inputProps, focusProps),
|
|
30518
|
+
ref,
|
|
30519
|
+
...tid
|
|
30520
|
+
} });
|
|
30521
|
+
}
|
|
30522
|
+
function FormSectionChildCheckbox(props) {
|
|
30523
|
+
const {
|
|
30524
|
+
state,
|
|
30525
|
+
value,
|
|
30526
|
+
label
|
|
30527
|
+
} = props;
|
|
30528
|
+
const ref = useRef72(null);
|
|
30529
|
+
const {
|
|
30530
|
+
inputProps,
|
|
30531
|
+
isDisabled,
|
|
30532
|
+
isSelected
|
|
30533
|
+
} = useCheckboxGroupItem4({
|
|
30534
|
+
value,
|
|
30535
|
+
"aria-label": label
|
|
30536
|
+
}, state, ref);
|
|
30537
|
+
const {
|
|
30538
|
+
focusProps,
|
|
30539
|
+
isFocusVisible
|
|
30540
|
+
} = useFocusRing22();
|
|
30541
|
+
const tid = useTestIds(props);
|
|
30542
|
+
return (
|
|
30543
|
+
// `StyledCheckbox` is just the visual box, so the label makes clicking it toggle the hidden input
|
|
30544
|
+
/* @__PURE__ */ jsxs130("label", { ...trussProps140({
|
|
30545
|
+
display: "df",
|
|
30546
|
+
cursor: "cur_pointer",
|
|
30547
|
+
...isDisabled ? {
|
|
30548
|
+
cursor: "cur_not_allowed"
|
|
30549
|
+
} : {}
|
|
30550
|
+
}), children: [
|
|
30551
|
+
/* @__PURE__ */ jsx242(VisuallyHidden11, { children: /* @__PURE__ */ jsx242("input", { ref, ...mergeProps43(inputProps, focusProps), ...tid }) }),
|
|
30552
|
+
/* @__PURE__ */ jsx242(StyledCheckbox, { isDisabled, isSelected, isFocusVisible })
|
|
30553
|
+
] })
|
|
30554
|
+
);
|
|
30555
|
+
}
|
|
30484
30556
|
|
|
30485
30557
|
// src/forms/FormSection/FormSection.tsx
|
|
30486
30558
|
import { jsx as jsx243, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
@@ -30490,7 +30562,8 @@ function FormSection(props) {
|
|
|
30490
30562
|
description,
|
|
30491
30563
|
actions,
|
|
30492
30564
|
fields,
|
|
30493
|
-
childSections
|
|
30565
|
+
childSections,
|
|
30566
|
+
selection
|
|
30494
30567
|
} = props;
|
|
30495
30568
|
const tid = useTestIds(props, "formSection");
|
|
30496
30569
|
return /* @__PURE__ */ jsxs131("div", { id: defaultTestId(title), ...trussProps141({
|
|
@@ -30503,15 +30576,94 @@ function FormSection(props) {
|
|
|
30503
30576
|
}), ...tid.section, children: [
|
|
30504
30577
|
/* @__PURE__ */ jsx243(ContentHeader, { ...tid, title, description, actions, level: 3 }),
|
|
30505
30578
|
fields,
|
|
30506
|
-
childSections && (
|
|
30579
|
+
childSections && (selection?.mode === "single" ? /* @__PURE__ */ jsx243(FormSectionRadioGroup, { field: selection.field, label: title, childSections, ...tid }) : selection?.mode === "multiple" ? /* @__PURE__ */ jsx243(FormSectionCheckboxGroup, { field: selection.field, label: title, childSections, ...tid }) : /* @__PURE__ */ jsx243(ChildSectionList, { childSections, ...tid.childSection }))
|
|
30507
30580
|
] });
|
|
30508
30581
|
}
|
|
30582
|
+
function FormSectionRadioGroup(props) {
|
|
30583
|
+
const {
|
|
30584
|
+
field,
|
|
30585
|
+
label,
|
|
30586
|
+
childSections
|
|
30587
|
+
} = props;
|
|
30588
|
+
const tid = useTestIds(props);
|
|
30589
|
+
const {
|
|
30590
|
+
value,
|
|
30591
|
+
readOnly
|
|
30592
|
+
} = useComputed(() => ({
|
|
30593
|
+
value: field.value ?? null,
|
|
30594
|
+
readOnly: field.readOnly
|
|
30595
|
+
}), [field]);
|
|
30596
|
+
const state = useRadioGroupState3({
|
|
30597
|
+
value,
|
|
30598
|
+
onChange: (value2) => {
|
|
30599
|
+
field.set(value2);
|
|
30600
|
+
field.maybeAutoSave();
|
|
30601
|
+
},
|
|
30602
|
+
isDisabled: readOnly
|
|
30603
|
+
});
|
|
30604
|
+
const {
|
|
30605
|
+
radioGroupProps
|
|
30606
|
+
} = useRadioGroup3({
|
|
30607
|
+
"aria-label": label,
|
|
30608
|
+
isDisabled: readOnly,
|
|
30609
|
+
onFocus: () => field.focus(),
|
|
30610
|
+
onBlur: () => field.blur()
|
|
30611
|
+
}, state);
|
|
30612
|
+
return /* @__PURE__ */ jsx243("div", { ...radioGroupProps, ...tid.childGroup, children: /* @__PURE__ */ jsx243(ChildSectionList, { childSections, group: {
|
|
30613
|
+
mode: "single",
|
|
30614
|
+
state
|
|
30615
|
+
}, ...tid.childSection }) });
|
|
30616
|
+
}
|
|
30617
|
+
function FormSectionCheckboxGroup(props) {
|
|
30618
|
+
const {
|
|
30619
|
+
field,
|
|
30620
|
+
label,
|
|
30621
|
+
childSections
|
|
30622
|
+
} = props;
|
|
30623
|
+
const tid = useTestIds(props);
|
|
30624
|
+
const {
|
|
30625
|
+
value,
|
|
30626
|
+
readOnly
|
|
30627
|
+
} = useComputed(() => ({
|
|
30628
|
+
value: field.value ?? [],
|
|
30629
|
+
readOnly: field.readOnly
|
|
30630
|
+
}), [field]);
|
|
30631
|
+
const state = useCheckboxGroupState4({
|
|
30632
|
+
value,
|
|
30633
|
+
onChange: (values) => {
|
|
30634
|
+
field.set(values);
|
|
30635
|
+
field.maybeAutoSave();
|
|
30636
|
+
},
|
|
30637
|
+
isDisabled: readOnly
|
|
30638
|
+
});
|
|
30639
|
+
const {
|
|
30640
|
+
groupProps
|
|
30641
|
+
} = useCheckboxGroup4({
|
|
30642
|
+
"aria-label": label,
|
|
30643
|
+
isDisabled: readOnly,
|
|
30644
|
+
onFocus: () => field.focus(),
|
|
30645
|
+
onBlur: () => field.blur()
|
|
30646
|
+
}, state);
|
|
30647
|
+
return /* @__PURE__ */ jsx243("div", { ...groupProps, ...tid.childGroup, children: /* @__PURE__ */ jsx243(ChildSectionList, { childSections, group: {
|
|
30648
|
+
mode: "multiple",
|
|
30649
|
+
state
|
|
30650
|
+
}, ...tid.childSection }) });
|
|
30651
|
+
}
|
|
30652
|
+
function ChildSectionList(props) {
|
|
30653
|
+
const {
|
|
30654
|
+
childSections,
|
|
30655
|
+
group,
|
|
30656
|
+
...tid
|
|
30657
|
+
} = props;
|
|
30658
|
+
return isReorderable(childSections) ? /* @__PURE__ */ jsx243(DraggableChildren, { childSections, group, ...tid }) : /* @__PURE__ */ jsx243("div", { className: "df fdc g_3", children: childSections.map((child) => /* @__PURE__ */ jsx243(FormSectionChild, { ...child, group, ...tid }, child.id ?? child.title)) });
|
|
30659
|
+
}
|
|
30509
30660
|
function isReorderable(childSections) {
|
|
30510
30661
|
return childSections.length > 0 && childSections.every((c) => !!c.orderField);
|
|
30511
30662
|
}
|
|
30512
30663
|
function DraggableChildren(props) {
|
|
30513
30664
|
const {
|
|
30514
30665
|
childSections,
|
|
30666
|
+
group,
|
|
30515
30667
|
...tid
|
|
30516
30668
|
} = props;
|
|
30517
30669
|
const sorted = sortByOrderField(childSections);
|
|
@@ -30529,7 +30681,7 @@ function DraggableChildren(props) {
|
|
|
30529
30681
|
return /* @__PURE__ */ jsx243(DnDGrid, { onReorder: handleReorder, lockAxis: "y", gridStyles: {
|
|
30530
30682
|
gridTemplateColumns: "gtc_minmax_0_1fr",
|
|
30531
30683
|
gap: "g_3"
|
|
30532
|
-
}, children: sorted.map((child) => /* @__PURE__ */ jsx243(FormSectionChild, { ...child, ...tid }, child.id)) });
|
|
30684
|
+
}, children: sorted.map((child) => /* @__PURE__ */ jsx243(FormSectionChild, { ...child, group, ...tid }, child.id)) });
|
|
30533
30685
|
}
|
|
30534
30686
|
function sortByOrderField(childSections) {
|
|
30535
30687
|
return [...childSections].sort((a, b) => (a.orderField.value ?? 0) - (b.orderField.value ?? 0));
|
|
@@ -30728,7 +30880,7 @@ function PageBanner(props) {
|
|
|
30728
30880
|
|
|
30729
30881
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
30730
30882
|
import { useMemo as useMemo59, useRef as useRef74 } from "react";
|
|
30731
|
-
import { mergeProps as
|
|
30883
|
+
import { mergeProps as mergeProps44, maybeCssVar as maybeCssVar69 } from "@homebound/truss/runtime";
|
|
30732
30884
|
|
|
30733
30885
|
// src/layouts/useAutoHideOnScroll.ts
|
|
30734
30886
|
import { useLayoutEffect as useLayoutEffect15, useRef as useRef73, useState as useState64 } from "react";
|
|
@@ -30891,18 +31043,18 @@ function NavbarLayout(props) {
|
|
|
30891
31043
|
top: autoHideState === "hidden" ? `calc(${bannerTop} - ${navHeight}px)` : bannerTop
|
|
30892
31044
|
};
|
|
30893
31045
|
const navbarEl = useMemo59(() => /* @__PURE__ */ jsx247(Navbar, { ...navbar }), [navbar]);
|
|
30894
|
-
return /* @__PURE__ */ jsx247(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx247(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsx247(MobileSubNavProvider, { children: /* @__PURE__ */ jsxs133("div", { ...
|
|
31046
|
+
return /* @__PURE__ */ jsx247(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx247(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsx247(MobileSubNavProvider, { children: /* @__PURE__ */ jsxs133("div", { ...mergeProps44(void 0, cssVars, {
|
|
30895
31047
|
display: "df",
|
|
30896
31048
|
flexDirection: "fdc",
|
|
30897
31049
|
width: "wfc",
|
|
30898
31050
|
minWidth: "mw100"
|
|
30899
31051
|
}), ...tid, children: [
|
|
30900
|
-
/* @__PURE__ */ jsx247("div", { ref: spacerRef, ...
|
|
31052
|
+
/* @__PURE__ */ jsx247("div", { ref: spacerRef, ...mergeProps44(void 0, {
|
|
30901
31053
|
height: navHeight
|
|
30902
31054
|
}, {
|
|
30903
31055
|
flexShrink: "fs0",
|
|
30904
31056
|
width: "w100"
|
|
30905
|
-
}), children: /* @__PURE__ */ jsx247("div", { ref: navMetricsRef, ...
|
|
31057
|
+
}), children: /* @__PURE__ */ jsx247("div", { ref: navMetricsRef, ...mergeProps44(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
30906
31058
|
/* @__PURE__ */ jsx247("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
30907
31059
|
] }) }) }) });
|
|
30908
31060
|
}
|
|
@@ -30987,7 +31139,7 @@ function BaseHeader(props) {
|
|
|
30987
31139
|
|
|
30988
31140
|
// src/components/Headers/PageHeader.tsx
|
|
30989
31141
|
import { trussProps as trussProps145 } from "@homebound/truss/runtime";
|
|
30990
|
-
import { Fragment as
|
|
31142
|
+
import { Fragment as Fragment53, jsx as jsx249, jsxs as jsxs135 } from "react/jsx-runtime";
|
|
30991
31143
|
function PageHeader2(props) {
|
|
30992
31144
|
const {
|
|
30993
31145
|
tabs,
|
|
@@ -31007,7 +31159,7 @@ function PageHeader2(props) {
|
|
|
31007
31159
|
/* @__PURE__ */ jsx249(AutoSaveIndicator, { hideOnIdle: true }),
|
|
31008
31160
|
rightSlotActions.length > 0 && /* @__PURE__ */ jsx249(HeaderActions, { actions: rightSlotActions, collapseOnSm: true }),
|
|
31009
31161
|
rightSlot
|
|
31010
|
-
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ jsxs135(
|
|
31162
|
+
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ jsxs135(Fragment53, { children: [
|
|
31011
31163
|
bottomSlotActions.length > 0 && /* @__PURE__ */ jsx249("div", { ...trussProps145({
|
|
31012
31164
|
...pageContentPaddingX,
|
|
31013
31165
|
...{
|
|
@@ -31083,7 +31235,7 @@ function useBannerAndNavbarHeight() {
|
|
|
31083
31235
|
}
|
|
31084
31236
|
|
|
31085
31237
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
31086
|
-
import { mergeProps as
|
|
31238
|
+
import { mergeProps as mergeProps45, maybeCssVar as maybeCssVar71 } from "@homebound/truss/runtime";
|
|
31087
31239
|
import { jsx as jsx252, jsxs as jsxs136 } from "react/jsx-runtime";
|
|
31088
31240
|
var __maybeInc35 = (inc) => {
|
|
31089
31241
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -31138,17 +31290,17 @@ function PageHeaderLayout(props) {
|
|
|
31138
31290
|
top: autoHideState === "hidden" ? `calc(${outerTop} - ${headerHeight}px)` : outerTop
|
|
31139
31291
|
};
|
|
31140
31292
|
const pageHeaderEl = useMemo60(() => /* @__PURE__ */ jsx252(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
31141
|
-
return /* @__PURE__ */ jsx252(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs136("div", { ...
|
|
31293
|
+
return /* @__PURE__ */ jsx252(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs136("div", { ...mergeProps45(void 0, style, {
|
|
31142
31294
|
display: "df",
|
|
31143
31295
|
flexDirection: "fdc",
|
|
31144
31296
|
width: "w100"
|
|
31145
31297
|
}), ...tid, children: [
|
|
31146
|
-
/* @__PURE__ */ jsx252("div", { ref: spacerRef, ...
|
|
31298
|
+
/* @__PURE__ */ jsx252("div", { ref: spacerRef, ...mergeProps45(void 0, {
|
|
31147
31299
|
height: headerHeight
|
|
31148
31300
|
}, {
|
|
31149
31301
|
flexShrink: "fs0",
|
|
31150
31302
|
width: "w100"
|
|
31151
|
-
}), children: /* @__PURE__ */ jsx252("div", { ref: headerMetricsRef, ...
|
|
31303
|
+
}), children: /* @__PURE__ */ jsx252("div", { ref: headerMetricsRef, ...mergeProps45(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
31152
31304
|
bannerSlot,
|
|
31153
31305
|
/* @__PURE__ */ jsx252("div", { className: "df fdc fg1 mh0 w100 n_has_data_self_top_spaced_first_child_pt3", ...tid.body, children })
|
|
31154
31306
|
] }) });
|
|
@@ -31325,7 +31477,7 @@ function WorkflowActions(props) {
|
|
|
31325
31477
|
}
|
|
31326
31478
|
|
|
31327
31479
|
// src/layouts/Workflow/WorkflowPageLayout.tsx
|
|
31328
|
-
import { trussProps as trussProps148, mergeProps as
|
|
31480
|
+
import { trussProps as trussProps148, mergeProps as mergeProps46, maybeCssVar as maybeCssVar73 } from "@homebound/truss/runtime";
|
|
31329
31481
|
import { jsx as jsx257, jsxs as jsxs138 } from "react/jsx-runtime";
|
|
31330
31482
|
var __maybeInc37 = (inc) => {
|
|
31331
31483
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -31391,12 +31543,12 @@ function WorkflowPageLayout(props) {
|
|
|
31391
31543
|
};
|
|
31392
31544
|
}, [showFooter]);
|
|
31393
31545
|
return /* @__PURE__ */ jsxs138(DocumentScrollLayoutProvider, { children: [
|
|
31394
|
-
/* @__PURE__ */ jsxs138("div", { ...
|
|
31546
|
+
/* @__PURE__ */ jsxs138("div", { ...mergeProps46(void 0, style, {
|
|
31395
31547
|
display: "df",
|
|
31396
31548
|
flexDirection: "fdc",
|
|
31397
31549
|
width: "w100"
|
|
31398
31550
|
}), ...tid, children: [
|
|
31399
|
-
/* @__PURE__ */ jsx257("div", { ...
|
|
31551
|
+
/* @__PURE__ */ jsx257("div", { ...mergeProps46(void 0, {
|
|
31400
31552
|
height: headerHeight
|
|
31401
31553
|
}, {
|
|
31402
31554
|
flexShrink: "fs0",
|
|
@@ -31746,7 +31898,7 @@ function useFilter4({ filterDefs }) {
|
|
|
31746
31898
|
import { useCallback as useCallback49, useRef as useRef79 } from "react";
|
|
31747
31899
|
import { useComboBox as useComboBox3, useOverlayPosition as useOverlayPosition6 } from "react-aria";
|
|
31748
31900
|
import { Item as Item5, useComboBoxState as useComboBoxState3 } from "react-stately";
|
|
31749
|
-
import { Fragment as
|
|
31901
|
+
import { Fragment as Fragment54, jsx as jsx264, jsxs as jsxs141 } from "react/jsx-runtime";
|
|
31750
31902
|
function Autocomplete(props) {
|
|
31751
31903
|
const {
|
|
31752
31904
|
onSelect,
|
|
@@ -31817,7 +31969,7 @@ function Autocomplete(props) {
|
|
|
31817
31969
|
// Ensures the menu never gets too small.
|
|
31818
31970
|
minWidth: 200
|
|
31819
31971
|
};
|
|
31820
|
-
return /* @__PURE__ */ jsxs141(
|
|
31972
|
+
return /* @__PURE__ */ jsxs141(Fragment54, { children: [
|
|
31821
31973
|
/* @__PURE__ */ jsx264(
|
|
31822
31974
|
TextFieldBase,
|
|
31823
31975
|
{
|
|
@@ -31860,7 +32012,7 @@ function Autocomplete(props) {
|
|
|
31860
32012
|
|
|
31861
32013
|
// src/inputs/ToggleButton.tsx
|
|
31862
32014
|
import { useRef as useRef80, useState as useState69 } from "react";
|
|
31863
|
-
import { useFocusRing as
|
|
32015
|
+
import { useFocusRing as useFocusRing23, useHover as useHover26, usePress as usePress3, useSwitch as useSwitch2, VisuallyHidden as VisuallyHidden12 } from "react-aria";
|
|
31864
32016
|
import { useToggleState as useToggleState2 } from "react-stately";
|
|
31865
32017
|
import { trussProps as trussProps151 } from "@homebound/truss/runtime";
|
|
31866
32018
|
import { jsx as jsx265, jsxs as jsxs142 } from "react/jsx-runtime";
|
|
@@ -31909,7 +32061,7 @@ function ToggleButton(props) {
|
|
|
31909
32061
|
const {
|
|
31910
32062
|
isFocusVisible: isFocusVisibleFromEvents,
|
|
31911
32063
|
focusProps
|
|
31912
|
-
} =
|
|
32064
|
+
} = useFocusRing23({
|
|
31913
32065
|
...otherProps,
|
|
31914
32066
|
within: true
|
|
31915
32067
|
});
|
|
@@ -31970,7 +32122,7 @@ function ToggleButton(props) {
|
|
|
31970
32122
|
children: /* @__PURE__ */ jsxs142("label", { ...labelAttrs, children: [
|
|
31971
32123
|
icon && /* @__PURE__ */ jsx265(Icon, { icon }),
|
|
31972
32124
|
label,
|
|
31973
|
-
/* @__PURE__ */ jsx265(
|
|
32125
|
+
/* @__PURE__ */ jsx265(VisuallyHidden12, { children: /* @__PURE__ */ jsx265("input", { ref, ...inputProps, ...tid.value }) })
|
|
31974
32126
|
] })
|
|
31975
32127
|
});
|
|
31976
32128
|
}
|