@homebound/beam 3.0.0-alpha.8 → 3.0.0-alpha.9
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 +58 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +56 -27
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -20592,20 +20592,49 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
20592
20592
|
var ResponsiveGridContext = (0, import_react110.createContext)(void 0);
|
|
20593
20593
|
|
|
20594
20594
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
20595
|
+
var import_runtime83 = require("@homebound/truss/runtime");
|
|
20595
20596
|
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
20596
20597
|
function ResponsiveGrid(props) {
|
|
20597
|
-
const {
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20598
|
+
const {
|
|
20599
|
+
children,
|
|
20600
|
+
minColumnWidth,
|
|
20601
|
+
gap,
|
|
20602
|
+
columns
|
|
20603
|
+
} = props;
|
|
20604
|
+
const {
|
|
20605
|
+
gridStyles
|
|
20606
|
+
} = useResponsiveGrid({
|
|
20607
|
+
minColumnWidth,
|
|
20608
|
+
gap,
|
|
20609
|
+
columns
|
|
20610
|
+
});
|
|
20611
|
+
const config = (0, import_react111.useMemo)(() => ({
|
|
20612
|
+
minColumnWidth,
|
|
20613
|
+
gap,
|
|
20614
|
+
columns
|
|
20615
|
+
}), [minColumnWidth, gap, columns]);
|
|
20616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...(0, import_runtime83.trussProps)({
|
|
20617
|
+
...gridStyles
|
|
20618
|
+
}), children }) });
|
|
20601
20619
|
}
|
|
20602
20620
|
|
|
20603
20621
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
20622
|
+
var import_runtime84 = require("@homebound/truss/runtime");
|
|
20604
20623
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
20605
20624
|
function ResponsiveGridItem(props) {
|
|
20606
|
-
const {
|
|
20607
|
-
|
|
20608
|
-
|
|
20625
|
+
const {
|
|
20626
|
+
colSpan,
|
|
20627
|
+
children
|
|
20628
|
+
} = props;
|
|
20629
|
+
const {
|
|
20630
|
+
gridItemProps,
|
|
20631
|
+
gridItemStyles
|
|
20632
|
+
} = useResponsiveGridItem({
|
|
20633
|
+
colSpan
|
|
20634
|
+
});
|
|
20635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...gridItemProps, ...(0, import_runtime84.trussProps)({
|
|
20636
|
+
...gridItemStyles
|
|
20637
|
+
}), children });
|
|
20609
20638
|
}
|
|
20610
20639
|
|
|
20611
20640
|
// src/components/Grid/useResponsiveGrid.ts
|
|
@@ -20757,7 +20786,7 @@ function HbSpinnerProvider({
|
|
|
20757
20786
|
// src/components/MaxLines.tsx
|
|
20758
20787
|
var import_utils126 = require("@react-aria/utils");
|
|
20759
20788
|
var import_react115 = require("react");
|
|
20760
|
-
var
|
|
20789
|
+
var import_runtime85 = require("@homebound/truss/runtime");
|
|
20761
20790
|
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
20762
20791
|
function MaxLines({
|
|
20763
20792
|
maxLines,
|
|
@@ -20782,7 +20811,7 @@ function MaxLines({
|
|
|
20782
20811
|
onResize
|
|
20783
20812
|
});
|
|
20784
20813
|
return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { children: [
|
|
20785
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0,
|
|
20814
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0, import_runtime85.trussProps)({
|
|
20786
20815
|
...!expanded ? {
|
|
20787
20816
|
WebkitLineClamp: ["lineClamp_var", {
|
|
20788
20817
|
"--WebkitLineClamp": maxLines
|
|
@@ -20800,7 +20829,7 @@ function MaxLines({
|
|
|
20800
20829
|
// src/components/ScrollShadows.tsx
|
|
20801
20830
|
var import_utils127 = require("@react-aria/utils");
|
|
20802
20831
|
var import_react116 = require("react");
|
|
20803
|
-
var
|
|
20832
|
+
var import_runtime86 = require("@homebound/truss/runtime");
|
|
20804
20833
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
20805
20834
|
function ScrollShadows(props) {
|
|
20806
20835
|
const {
|
|
@@ -20889,7 +20918,7 @@ function ScrollShadows(props) {
|
|
|
20889
20918
|
ref: scrollRef,
|
|
20890
20919
|
onResize
|
|
20891
20920
|
});
|
|
20892
|
-
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0,
|
|
20921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0, import_runtime86.trussProps)({
|
|
20893
20922
|
display: "df",
|
|
20894
20923
|
flexDirection: ["fd_var", {
|
|
20895
20924
|
"--flexDirection": !horizontal ? "column" : "row"
|
|
@@ -20905,7 +20934,7 @@ function ScrollShadows(props) {
|
|
|
20905
20934
|
width: width2
|
|
20906
20935
|
}
|
|
20907
20936
|
}), ...tid, children: [
|
|
20908
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
20937
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
20909
20938
|
...startShadowStyles,
|
|
20910
20939
|
...{
|
|
20911
20940
|
opacity: ["o_var", {
|
|
@@ -20913,7 +20942,7 @@ function ScrollShadows(props) {
|
|
|
20913
20942
|
}]
|
|
20914
20943
|
}
|
|
20915
20944
|
}), "data-chromatic": "ignore" }),
|
|
20916
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
20945
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
20917
20946
|
...endShadowStyles,
|
|
20918
20947
|
...{
|
|
20919
20948
|
opacity: ["o_var", {
|
|
@@ -20921,7 +20950,7 @@ function ScrollShadows(props) {
|
|
|
20921
20950
|
}]
|
|
20922
20951
|
}
|
|
20923
20952
|
}), "data-chromatic": "ignore" }),
|
|
20924
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
20953
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
20925
20954
|
...xss,
|
|
20926
20955
|
...{
|
|
20927
20956
|
overflow: "oa",
|
|
@@ -20994,7 +21023,7 @@ var snackbarId = 1;
|
|
|
20994
21023
|
// src/components/Stepper.tsx
|
|
20995
21024
|
var import_react118 = require("react");
|
|
20996
21025
|
var import_react_aria51 = require("react-aria");
|
|
20997
|
-
var
|
|
21026
|
+
var import_runtime87 = require("@homebound/truss/runtime");
|
|
20998
21027
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
20999
21028
|
var import_react119 = require("react");
|
|
21000
21029
|
var __maybeInc13 = (inc) => {
|
|
@@ -21015,7 +21044,7 @@ function Stepper(props) {
|
|
|
21015
21044
|
const minStepWidth = 100;
|
|
21016
21045
|
const gap = 8;
|
|
21017
21046
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
21018
|
-
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("ol", { ...(0,
|
|
21047
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("ol", { ...(0, import_runtime87.trussProps)({
|
|
21019
21048
|
padding: "p_0",
|
|
21020
21049
|
margin: "m_0",
|
|
21021
21050
|
listStyle: "lis_none",
|
|
@@ -21025,7 +21054,7 @@ function Stepper(props) {
|
|
|
21025
21054
|
}]
|
|
21026
21055
|
}), children: steps.map((step) => {
|
|
21027
21056
|
const isCurrent = currentStep === step.value;
|
|
21028
|
-
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0,
|
|
21057
|
+
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0, import_runtime87.trussProps)({
|
|
21029
21058
|
display: "df",
|
|
21030
21059
|
flexGrow: "fg1",
|
|
21031
21060
|
flexDirection: "fdc",
|
|
@@ -21037,7 +21066,7 @@ function Stepper(props) {
|
|
|
21037
21066
|
}]
|
|
21038
21067
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
21039
21068
|
}) }),
|
|
21040
|
-
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21069
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
21041
21070
|
marginTop: "mt1",
|
|
21042
21071
|
backgroundColor: "bgGray300",
|
|
21043
21072
|
height: "h_4px",
|
|
@@ -21048,7 +21077,7 @@ function Stepper(props) {
|
|
|
21048
21077
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
21049
21078
|
}],
|
|
21050
21079
|
width: "w100"
|
|
21051
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21080
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
21052
21081
|
backgroundColor: "bgBlue600",
|
|
21053
21082
|
transition: "transition_width_200ms",
|
|
21054
21083
|
height: "h100",
|
|
@@ -21089,7 +21118,7 @@ function StepButton(props) {
|
|
|
21089
21118
|
boxShadow: "bshFocus"
|
|
21090
21119
|
};
|
|
21091
21120
|
const tid = useTestIds(props, "stepButton");
|
|
21092
|
-
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
21121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime87.trussProps)({
|
|
21093
21122
|
...{
|
|
21094
21123
|
fontWeight: "fw6",
|
|
21095
21124
|
fontSize: "fz_14px",
|
|
@@ -21157,7 +21186,7 @@ function StepIcon({
|
|
|
21157
21186
|
if (state === "complete") {
|
|
21158
21187
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Icon, { icon: "check" });
|
|
21159
21188
|
}
|
|
21160
|
-
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
21161
21190
|
width: "w_10px",
|
|
21162
21191
|
height: "h_10px",
|
|
21163
21192
|
borderStyle: "bss",
|
|
@@ -21172,7 +21201,7 @@ function StepIcon({
|
|
|
21172
21201
|
|
|
21173
21202
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
21174
21203
|
var import_react_dom5 = require("react-dom");
|
|
21175
|
-
var
|
|
21204
|
+
var import_runtime88 = require("@homebound/truss/runtime");
|
|
21176
21205
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
21177
21206
|
function SuperDrawerHeader(props) {
|
|
21178
21207
|
const {
|
|
@@ -21198,7 +21227,7 @@ function SuperDrawerHeader(props) {
|
|
|
21198
21227
|
] }),
|
|
21199
21228
|
props.right && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fs0", children: props.right })
|
|
21200
21229
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fg1", children: props.children }),
|
|
21201
|
-
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0,
|
|
21230
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0, import_runtime88.trussProps)({
|
|
21202
21231
|
flexShrink: "fs0",
|
|
21203
21232
|
...isDetail ? {
|
|
21204
21233
|
visibility: "vh"
|
|
@@ -21378,7 +21407,7 @@ function canClose(canCloseCheck) {
|
|
|
21378
21407
|
}
|
|
21379
21408
|
|
|
21380
21409
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
21381
|
-
var
|
|
21410
|
+
var import_runtime89 = require("@homebound/truss/runtime");
|
|
21382
21411
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
21383
21412
|
var SuperDrawerContent = ({
|
|
21384
21413
|
children,
|
|
@@ -21427,7 +21456,7 @@ var SuperDrawerContent = ({
|
|
|
21427
21456
|
}, className: "pt2", children: children2 })
|
|
21428
21457
|
] }, "content");
|
|
21429
21458
|
} else {
|
|
21430
|
-
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0,
|
|
21459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0, import_runtime89.mergeProps)(void 0, {
|
|
21431
21460
|
overflow: "auto"
|
|
21432
21461
|
}, {
|
|
21433
21462
|
paddingTop: "pt3",
|
|
@@ -21468,7 +21497,7 @@ var import_react121 = require("react");
|
|
|
21468
21497
|
var import_react_aria52 = require("react-aria");
|
|
21469
21498
|
var import_react_router2 = require("react-router");
|
|
21470
21499
|
var import_react_router_dom5 = require("react-router-dom");
|
|
21471
|
-
var
|
|
21500
|
+
var import_runtime90 = require("@homebound/truss/runtime");
|
|
21472
21501
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
21473
21502
|
function TabsWithContent(props) {
|
|
21474
21503
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -21501,7 +21530,7 @@ function TabContent(props) {
|
|
|
21501
21530
|
return (
|
|
21502
21531
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
21503
21532
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
21504
|
-
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0,
|
|
21533
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime90.trussProps)(contentXss), children: isRouteTab(selectedTab) ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router2.Route, { path: selectedTab.path, render: selectedTab.render }) : selectedTab.render() }) })
|
|
21505
21534
|
);
|
|
21506
21535
|
}
|
|
21507
21536
|
function Tabs(props) {
|
|
@@ -21540,7 +21569,7 @@ function Tabs(props) {
|
|
|
21540
21569
|
setActive(selected);
|
|
21541
21570
|
}
|
|
21542
21571
|
}
|
|
21543
|
-
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0,
|
|
21572
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0, import_runtime90.trussProps)({
|
|
21544
21573
|
...{
|
|
21545
21574
|
display: "df",
|
|
21546
21575
|
alignItems: "aic",
|
|
@@ -21604,7 +21633,7 @@ function TabImpl(props) {
|
|
|
21604
21633
|
role: "tab",
|
|
21605
21634
|
tabIndex: active ? 0 : -1,
|
|
21606
21635
|
...others,
|
|
21607
|
-
...(0,
|
|
21636
|
+
...(0, import_runtime90.trussProps)({
|
|
21608
21637
|
...baseStyles5,
|
|
21609
21638
|
...active && activeStyles4,
|
|
21610
21639
|
...isDisabled && disabledStyles4,
|