@homebound/beam 3.0.3 → 3.0.5
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 +317 -298
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1027 -961
- package/dist/index.d.ts +1027 -961
- package/dist/index.js +28 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -143,7 +143,7 @@ __export(index_exports, {
|
|
|
143
143
|
RightPaneProvider: () => RightPaneProvider,
|
|
144
144
|
RightSidebar: () => RightSidebar,
|
|
145
145
|
Row: () => Row,
|
|
146
|
-
|
|
146
|
+
RuntimeCss: () => RuntimeCss,
|
|
147
147
|
ScrollShadows: () => ScrollShadows,
|
|
148
148
|
ScrollableContent: () => ScrollableContent,
|
|
149
149
|
ScrollableParent: () => ScrollableParent,
|
|
@@ -305,7 +305,7 @@ __export(index_exports, {
|
|
|
305
305
|
useResponsiveGridItem: () => useResponsiveGridItem,
|
|
306
306
|
useRightPane: () => useRightPane,
|
|
307
307
|
useRightPaneContext: () => useRightPaneContext,
|
|
308
|
-
useRuntimeStyle: () =>
|
|
308
|
+
useRuntimeStyle: () => useRuntimeStyle,
|
|
309
309
|
useScrollableParent: () => useScrollableParent,
|
|
310
310
|
useSessionStorage: () => useSessionStorage,
|
|
311
311
|
useSetupColumnSizes: () => useSetupColumnSizes,
|
|
@@ -322,7 +322,6 @@ module.exports = __toCommonJS(index_exports);
|
|
|
322
322
|
|
|
323
323
|
// src/Css.ts
|
|
324
324
|
var import_runtime = require("@homebound/truss/runtime");
|
|
325
|
-
var import_runtime2 = require("@homebound/truss/runtime");
|
|
326
325
|
var CssBuilder = class _CssBuilder {
|
|
327
326
|
constructor(opts) {
|
|
328
327
|
this.opts = opts;
|
|
@@ -4178,12 +4177,20 @@ var CssBuilder = class _CssBuilder {
|
|
|
4178
4177
|
return this;
|
|
4179
4178
|
}
|
|
4180
4179
|
const newRules = typeof propOrStyles === "string" ? { [propOrStyles]: value } : propOrStyles;
|
|
4180
|
+
if (typeof propOrStyles !== "string" && newRules.$css) {
|
|
4181
|
+
throw new Error("add() received a Css expression \u2014 use with() to compose Css expressions");
|
|
4182
|
+
}
|
|
4181
4183
|
const rules = this.selector ? { ...this.rules, [this.selector]: { ...this.rules[this.selector], ...newRules } } : { ...this.rules, ...newRules };
|
|
4182
4184
|
return this.newCss({ rules });
|
|
4183
4185
|
}
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4186
|
+
with(cssProp) {
|
|
4187
|
+
if (!this.enabled) {
|
|
4188
|
+
return this;
|
|
4189
|
+
}
|
|
4190
|
+
const { $css, ...rest } = cssProp;
|
|
4191
|
+
const filtered = omitUndefinedValues(rest);
|
|
4192
|
+
const rules = this.selector ? { ...this.rules, [this.selector]: { ...this.rules[this.selector], ...filtered } } : { ...this.rules, ...filtered };
|
|
4193
|
+
return this.newCss({ rules });
|
|
4187
4194
|
}
|
|
4188
4195
|
/** Marker for the build-time transform to append a raw className. */
|
|
4189
4196
|
className(className) {
|
|
@@ -4317,6 +4324,16 @@ var Css = new CssBuilder({
|
|
|
4317
4324
|
elseApplied: false,
|
|
4318
4325
|
runtimeError: void 0
|
|
4319
4326
|
});
|
|
4327
|
+
var RuntimeCss = new CssBuilder({
|
|
4328
|
+
rules: {},
|
|
4329
|
+
enabled: true,
|
|
4330
|
+
selector: void 0,
|
|
4331
|
+
elseApplied: false,
|
|
4332
|
+
runtimeError: void 0
|
|
4333
|
+
});
|
|
4334
|
+
function useRuntimeStyle(css2) {
|
|
4335
|
+
(0, import_runtime.useRuntimeStyle)(css2);
|
|
4336
|
+
}
|
|
4320
4337
|
var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
|
|
4321
4338
|
Breakpoints2["print"] = "@media print";
|
|
4322
4339
|
Breakpoints2["sm"] = "@media screen and (max-width: 599px)";
|
|
@@ -4531,7 +4548,7 @@ function pluralize(count, noun, pluralNoun) {
|
|
|
4531
4548
|
}
|
|
4532
4549
|
|
|
4533
4550
|
// src/components/Tooltip.tsx
|
|
4534
|
-
var
|
|
4551
|
+
var import_runtime2 = require("@homebound/truss/runtime");
|
|
4535
4552
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
4536
4553
|
var gapCrossingDelay = 100;
|
|
4537
4554
|
function Tooltip(props) {
|
|
@@ -4610,7 +4627,7 @@ function Popper(props) {
|
|
|
4610
4627
|
}],
|
|
4611
4628
|
placement
|
|
4612
4629
|
});
|
|
4613
|
-
return (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref: popperRef, ...attributes.popper, ...ariaProps, onMouseEnter, onMouseLeave, ...(0,
|
|
4630
|
+
return (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref: popperRef, ...attributes.popper, ...ariaProps, onMouseEnter, onMouseLeave, ...(0, import_runtime2.mergeProps)(void 0, styles.popper, {
|
|
4614
4631
|
...{
|
|
4615
4632
|
maxWidth: "maxw_320px",
|
|
4616
4633
|
backgroundColor: ["bgColor_var", {
|
|
@@ -4644,7 +4661,7 @@ function resolveTooltip(disabled, tooltip, readOnly) {
|
|
|
4644
4661
|
}
|
|
4645
4662
|
|
|
4646
4663
|
// src/components/Icon.tsx
|
|
4647
|
-
var
|
|
4664
|
+
var import_runtime3 = require("@homebound/truss/runtime");
|
|
4648
4665
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4649
4666
|
var Icon = import_react4.default.memo((props) => {
|
|
4650
4667
|
const {
|
|
@@ -4660,7 +4677,7 @@ var Icon = import_react4.default.memo((props) => {
|
|
|
4660
4677
|
return maybeTooltip({
|
|
4661
4678
|
title: tooltip,
|
|
4662
4679
|
placement: "top",
|
|
4663
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { "aria-hidden": true, width: size, height: size, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...(0,
|
|
4680
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { "aria-hidden": true, width: size, height: size, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...(0, import_runtime3.trussProps)({
|
|
4664
4681
|
...{
|
|
4665
4682
|
fill: ["fill_var", {
|
|
4666
4683
|
"--fill": color
|
|
@@ -5158,7 +5175,7 @@ function usePresentationContext() {
|
|
|
5158
5175
|
}
|
|
5159
5176
|
|
|
5160
5177
|
// src/components/Chip.tsx
|
|
5161
|
-
var
|
|
5178
|
+
var import_runtime4 = require("@homebound/truss/runtime");
|
|
5162
5179
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
5163
5180
|
var ChipTypes = {
|
|
5164
5181
|
caution: "caution",
|
|
@@ -5191,7 +5208,7 @@ function Chip(props) {
|
|
|
5191
5208
|
return maybeTooltip({
|
|
5192
5209
|
title,
|
|
5193
5210
|
placement: "bottom",
|
|
5194
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { ...(0,
|
|
5211
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { ...(0, import_runtime4.trussProps)(styles), ...tid, children: [
|
|
5195
5212
|
icon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon, inc: 2, xss: {
|
|
5196
5213
|
flexShrink: "fs0"
|
|
5197
5214
|
} }),
|
|
@@ -5253,7 +5270,7 @@ var pyHeight = (compact) => compact ? 2 : 4;
|
|
|
5253
5270
|
var minhPx = (compact) => compact ? 20 : 24;
|
|
5254
5271
|
|
|
5255
5272
|
// src/components/Chips.tsx
|
|
5256
|
-
var
|
|
5273
|
+
var import_runtime5 = require("@homebound/truss/runtime");
|
|
5257
5274
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
5258
5275
|
function Chips(props) {
|
|
5259
5276
|
const {
|
|
@@ -5265,7 +5282,7 @@ function Chips(props) {
|
|
|
5265
5282
|
xss = {},
|
|
5266
5283
|
wrap = presentationWrap
|
|
5267
5284
|
} = props;
|
|
5268
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...(0,
|
|
5285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...(0, import_runtime5.trussProps)({
|
|
5269
5286
|
...{
|
|
5270
5287
|
display: "df",
|
|
5271
5288
|
alignItems: "aifs",
|
|
@@ -5273,7 +5290,7 @@ function Chips(props) {
|
|
|
5273
5290
|
whiteSpace: "whiteSpace_normal"
|
|
5274
5291
|
},
|
|
5275
5292
|
...wrap !== false ? {
|
|
5276
|
-
flexWrap: "
|
|
5293
|
+
flexWrap: "fww"
|
|
5277
5294
|
} : {},
|
|
5278
5295
|
...xss
|
|
5279
5296
|
}), children: values.map((value, i) => {
|
|
@@ -5299,7 +5316,7 @@ var import_react_dom2 = require("react-dom");
|
|
|
5299
5316
|
|
|
5300
5317
|
// src/components/Layout/ScrollableParent.tsx
|
|
5301
5318
|
var import_react7 = require("react");
|
|
5302
|
-
var
|
|
5319
|
+
var import_runtime6 = require("@homebound/truss/runtime");
|
|
5303
5320
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5304
5321
|
var __maybeInc = (inc) => {
|
|
5305
5322
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -5339,7 +5356,7 @@ function ScrollableParent(props) {
|
|
|
5339
5356
|
(0, import_react7.useEffect)(() => {
|
|
5340
5357
|
scrollableRef.current.appendChild(scrollableEl);
|
|
5341
5358
|
}, [scrollableEl]);
|
|
5342
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ScrollableParentContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Tag2, { ...(0,
|
|
5359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ScrollableParentContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Tag2, { ...(0, import_runtime6.trussProps)({
|
|
5343
5360
|
...{
|
|
5344
5361
|
minHeight: "mh0",
|
|
5345
5362
|
minWidth: "mw0",
|
|
@@ -5349,7 +5366,7 @@ function ScrollableParent(props) {
|
|
|
5349
5366
|
},
|
|
5350
5367
|
...xss
|
|
5351
5368
|
}), children: [
|
|
5352
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { ...(0,
|
|
5369
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { ...(0, import_runtime6.trussProps)({
|
|
5353
5370
|
...{
|
|
5354
5371
|
paddingLeft: ["pl_var", {
|
|
5355
5372
|
"--paddingLeft": __maybeInc(context.paddingLeft)
|
|
@@ -5374,7 +5391,7 @@ function useScrollableParent() {
|
|
|
5374
5391
|
}
|
|
5375
5392
|
|
|
5376
5393
|
// src/components/Layout/ScrollableContent.tsx
|
|
5377
|
-
var
|
|
5394
|
+
var import_runtime7 = require("@homebound/truss/runtime");
|
|
5378
5395
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5379
5396
|
var __maybeInc2 = (inc) => {
|
|
5380
5397
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -5402,7 +5419,7 @@ function ScrollableContent(props) {
|
|
|
5402
5419
|
}
|
|
5403
5420
|
const showBottomSpacer = !omitBottomPadding && !virtualized;
|
|
5404
5421
|
const virtualizedScrollParent = virtualized ? scrollableEl.parentElement : null;
|
|
5405
|
-
return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(VirtualizedScrollParentContext.Provider, { value: virtualizedScrollParent, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ...(0,
|
|
5422
|
+
return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(VirtualizedScrollParentContext.Provider, { value: virtualizedScrollParent, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ...(0, import_runtime7.trussProps)({
|
|
5406
5423
|
...{
|
|
5407
5424
|
height: "h100",
|
|
5408
5425
|
paddingRight: ["pr_var", {
|
|
@@ -5430,7 +5447,7 @@ function useVirtualizedScrollParent() {
|
|
|
5430
5447
|
}
|
|
5431
5448
|
|
|
5432
5449
|
// src/components/Loader.tsx
|
|
5433
|
-
var
|
|
5450
|
+
var import_runtime8 = require("@homebound/truss/runtime");
|
|
5434
5451
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
5435
5452
|
function Loader({
|
|
5436
5453
|
size = "lg",
|
|
@@ -5438,7 +5455,7 @@ function Loader({
|
|
|
5438
5455
|
}) {
|
|
5439
5456
|
const [dimensions, borderSize] = sizeToPixels[size];
|
|
5440
5457
|
const [bgColor, spinnerColor] = contrast ? ["rgba(141, 141, 141, 1)" /* Gray600 */, "rgba(236, 235, 235, 1)" /* Gray200 */] : ["rgba(255,255,255,1)" /* White */, "rgba(29, 78, 216, 1)" /* Blue700 */];
|
|
5441
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { "aria-label": "Loading", ...(0,
|
|
5458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { "aria-label": "Loading", ...(0, import_runtime8.trussProps)({
|
|
5442
5459
|
borderRadius: "br100",
|
|
5443
5460
|
borderStyle: "bss",
|
|
5444
5461
|
borderWidth: ["bw_var", {
|
|
@@ -5594,7 +5611,7 @@ function getButtonOrLink(content, onClick, attrs, openInNew = false, downloadLin
|
|
|
5594
5611
|
}
|
|
5595
5612
|
|
|
5596
5613
|
// src/components/IconButton.tsx
|
|
5597
|
-
var
|
|
5614
|
+
var import_runtime9 = require("@homebound/truss/runtime");
|
|
5598
5615
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
5599
5616
|
function IconButton(props) {
|
|
5600
5617
|
const {
|
|
@@ -5666,7 +5683,7 @@ function IconButton(props) {
|
|
|
5666
5683
|
...focusProps,
|
|
5667
5684
|
...hoverProps,
|
|
5668
5685
|
ref,
|
|
5669
|
-
...(0,
|
|
5686
|
+
...(0, import_runtime9.mergeProps)(typeof onPress === "string" ? navLink : void 0, void 0, styles),
|
|
5670
5687
|
"aria-label": label
|
|
5671
5688
|
};
|
|
5672
5689
|
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { icon, color: color || (isDisabled ? "rgba(201, 201, 201, 1)" /* Gray400 */ : circle && (isHovered || active || isFocusVisible) ? defaultIconColor : iconColor), bgColor, inc: compact ? 2 : circle ? 2.5 : inc });
|
|
@@ -5740,7 +5757,7 @@ var activeStyles = {
|
|
|
5740
5757
|
|
|
5741
5758
|
// src/components/Table/components/ExpandableHeader.tsx
|
|
5742
5759
|
var import_react18 = require("react");
|
|
5743
|
-
var
|
|
5760
|
+
var import_runtime10 = require("@homebound/truss/runtime");
|
|
5744
5761
|
|
|
5745
5762
|
// src/hooks/useBreakpoint.tsx
|
|
5746
5763
|
var import_fast_deep_equal = __toESM(require("fast-deep-equal"), 1);
|
|
@@ -5965,7 +5982,7 @@ function ExpandableHeader(props) {
|
|
|
5965
5982
|
hoverProps,
|
|
5966
5983
|
isHovered
|
|
5967
5984
|
} = useHover2({});
|
|
5968
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("button", { ...hoverProps, ...(0,
|
|
5985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("button", { ...hoverProps, ...(0, import_runtime10.trussProps)({
|
|
5969
5986
|
display: "df",
|
|
5970
5987
|
fontWeight: "fw4",
|
|
5971
5988
|
fontSize: "fz_12px",
|
|
@@ -5996,7 +6013,7 @@ function ExpandableHeader(props) {
|
|
|
5996
6013
|
}
|
|
5997
6014
|
tableState.toggleExpandedColumn(column2.id);
|
|
5998
6015
|
}, "data-testid": "expandableColumn", children: [
|
|
5999
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { ...(0,
|
|
6016
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { ...(0, import_runtime10.trussProps)({
|
|
6000
6017
|
display: "df",
|
|
6001
6018
|
alignItems: "aic",
|
|
6002
6019
|
...applyStickyStyles ? {
|
|
@@ -6018,7 +6035,7 @@ function ExpandableHeader(props) {
|
|
|
6018
6035
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "tal oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: title }),
|
|
6019
6036
|
tooltipEl
|
|
6020
6037
|
] }),
|
|
6021
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { ...(0,
|
|
6038
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { ...(0, import_runtime10.trussProps)({
|
|
6022
6039
|
...applyStickyStyles ? {
|
|
6023
6040
|
position: "sticky",
|
|
6024
6041
|
right: "right_12px",
|
|
@@ -6032,7 +6049,7 @@ function ExpandableHeader(props) {
|
|
|
6032
6049
|
|
|
6033
6050
|
// src/components/Table/components/SortHeader.tsx
|
|
6034
6051
|
var import_react19 = require("react");
|
|
6035
|
-
var
|
|
6052
|
+
var import_runtime11 = require("@homebound/truss/runtime");
|
|
6036
6053
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
6037
6054
|
function SortHeader(props) {
|
|
6038
6055
|
const {
|
|
@@ -6068,7 +6085,7 @@ function SortHeader(props) {
|
|
|
6068
6085
|
} : {}
|
|
6069
6086
|
}
|
|
6070
6087
|
}, inc: 2, ...tid.icon }) });
|
|
6071
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { ...tid, ...(0,
|
|
6088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { ...tid, ...(0, import_runtime11.trussProps)({
|
|
6072
6089
|
...{
|
|
6073
6090
|
display: "df",
|
|
6074
6091
|
alignItems: "aic",
|
|
@@ -6086,7 +6103,7 @@ function SortHeader(props) {
|
|
|
6086
6103
|
}
|
|
6087
6104
|
|
|
6088
6105
|
// src/components/Table/utils/utils.tsx
|
|
6089
|
-
var
|
|
6106
|
+
var import_runtime12 = require("@homebound/truss/runtime");
|
|
6090
6107
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
6091
6108
|
function toContent(maybeContent, isHeader, canSortColumn, isClientSideSorting, style, as, alignment, column2, isExpandableHeader, isExpandable, minStickyLeftOffset, isKeptSelectedRow) {
|
|
6092
6109
|
if (isKeptSelectedRow && column2.id === "beamCollapseColumn") {
|
|
@@ -6100,7 +6117,7 @@ function toContent(maybeContent, isHeader, canSortColumn, isClientSideSorting, s
|
|
|
6100
6117
|
}
|
|
6101
6118
|
const tooltip = isGridCellContent(maybeContent) ? maybeContent.tooltip : void 0;
|
|
6102
6119
|
const tooltipEl = tooltip ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "fs0 ml_4px", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { icon: "infoCircle", tooltip, inc: 2, color: "rgba(141, 141, 141, 1)" /* Gray600 */ }) }) : null;
|
|
6103
|
-
content = isGridCellContent(maybeContent) && !!maybeContent.onClick ? getButtonOrLink(content, maybeContent.onClick, (0,
|
|
6120
|
+
content = isGridCellContent(maybeContent) && !!maybeContent.onClick ? getButtonOrLink(content, maybeContent.onClick, (0, import_runtime12.trussProps)({
|
|
6104
6121
|
maxWidth: "maxw100",
|
|
6105
6122
|
color: "blue700",
|
|
6106
6123
|
textAlign: "ta_inherit",
|
|
@@ -6335,7 +6352,7 @@ var import_react_day_picker3 = require("react-day-picker");
|
|
|
6335
6352
|
// src/components/internal/DatePicker/Day.tsx
|
|
6336
6353
|
var import_react21 = require("react");
|
|
6337
6354
|
var import_react_day_picker = require("react-day-picker");
|
|
6338
|
-
var
|
|
6355
|
+
var import_runtime13 = require("@homebound/truss/runtime");
|
|
6339
6356
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
6340
6357
|
function Day(props) {
|
|
6341
6358
|
const tid = useTestIds(props, "datePickerDay");
|
|
@@ -6369,7 +6386,7 @@ function Day(props) {
|
|
|
6369
6386
|
} = activeModifiers;
|
|
6370
6387
|
const showRangeStyles = !(range_end === true && range_start === true);
|
|
6371
6388
|
const showActiveStyles = !disabled;
|
|
6372
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("button", { ...otherProps, ref: buttonRef, type: "button", ...(0,
|
|
6389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("button", { ...otherProps, ref: buttonRef, type: "button", ...(0, import_runtime13.mergeProps)("beam-day-button", void 0, {
|
|
6373
6390
|
position: "relative",
|
|
6374
6391
|
paddingBottom: "pb_4px",
|
|
6375
6392
|
outline: "outline0",
|
|
@@ -6381,7 +6398,7 @@ function Day(props) {
|
|
|
6381
6398
|
}, ...disabled && {
|
|
6382
6399
|
"data-disabled": ""
|
|
6383
6400
|
}, ...tid, children: [
|
|
6384
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { ...(0,
|
|
6401
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { ...(0, import_runtime13.trussProps)({
|
|
6385
6402
|
...{
|
|
6386
6403
|
overflow: "oh",
|
|
6387
6404
|
color: "gray900",
|
|
@@ -6406,7 +6423,7 @@ function Day(props) {
|
|
|
6406
6423
|
color: "gray500"
|
|
6407
6424
|
}
|
|
6408
6425
|
}), children: [
|
|
6409
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { ...(0,
|
|
6426
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { ...(0, import_runtime13.trussProps)({
|
|
6410
6427
|
marginTop: ["mt_var", {
|
|
6411
6428
|
"--marginTop": `${-2}px`
|
|
6412
6429
|
}]
|
|
@@ -6414,7 +6431,7 @@ function Day(props) {
|
|
|
6414
6431
|
indicatorDot && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
6415
6432
|
"div",
|
|
6416
6433
|
{
|
|
6417
|
-
...(0,
|
|
6434
|
+
...(0, import_runtime13.trussProps)({
|
|
6418
6435
|
position: "absolute",
|
|
6419
6436
|
bottom: "bottom_4px",
|
|
6420
6437
|
width: "w_4px",
|
|
@@ -6429,7 +6446,7 @@ function Day(props) {
|
|
|
6429
6446
|
}
|
|
6430
6447
|
)
|
|
6431
6448
|
] }),
|
|
6432
|
-
showRangeStyles && range_start && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { ...(0,
|
|
6449
|
+
showRangeStyles && range_start && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { ...(0, import_runtime13.trussProps)({
|
|
6433
6450
|
...rangeBaseStyles,
|
|
6434
6451
|
...{
|
|
6435
6452
|
right: ["right_var", {
|
|
@@ -6438,7 +6455,7 @@ function Day(props) {
|
|
|
6438
6455
|
width: "w_8px"
|
|
6439
6456
|
}
|
|
6440
6457
|
}) }),
|
|
6441
|
-
showRangeStyles && range_end && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { ...(0,
|
|
6458
|
+
showRangeStyles && range_end && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { ...(0, import_runtime13.trussProps)({
|
|
6442
6459
|
...rangeBaseStyles,
|
|
6443
6460
|
...{
|
|
6444
6461
|
width: "w_8px",
|
|
@@ -6447,7 +6464,7 @@ function Day(props) {
|
|
|
6447
6464
|
}]
|
|
6448
6465
|
}
|
|
6449
6466
|
}) }),
|
|
6450
|
-
showRangeStyles && range_middle && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { ...(0,
|
|
6467
|
+
showRangeStyles && range_middle && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { ...(0, import_runtime13.trussProps)({
|
|
6451
6468
|
...rangeBaseStyles,
|
|
6452
6469
|
...{
|
|
6453
6470
|
left: ["left_var", {
|
|
@@ -6594,7 +6611,7 @@ var import_react_stately2 = require("react-stately");
|
|
|
6594
6611
|
|
|
6595
6612
|
// src/components/internal/MenuSection.tsx
|
|
6596
6613
|
var import_react_aria4 = require("react-aria");
|
|
6597
|
-
var
|
|
6614
|
+
var import_runtime14 = require("@homebound/truss/runtime");
|
|
6598
6615
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
6599
6616
|
function MenuSectionImpl(props) {
|
|
6600
6617
|
const {
|
|
@@ -6616,7 +6633,7 @@ function MenuSectionImpl(props) {
|
|
|
6616
6633
|
const tid = useTestIds(props);
|
|
6617
6634
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
6618
6635
|
isPersistentSection && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("li", { ...separatorProps, className: "bts_solid btw_1px bcGray200" }),
|
|
6619
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("li", { ...itemProps, ...(0,
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("li", { ...itemProps, ...(0, import_runtime14.trussProps)({
|
|
6620
6637
|
color: "gray900",
|
|
6621
6638
|
...!isPersistentSection ? {
|
|
6622
6639
|
overflow: "oa"
|
|
@@ -6629,7 +6646,7 @@ function MenuSectionImpl(props) {
|
|
|
6629
6646
|
}
|
|
6630
6647
|
|
|
6631
6648
|
// src/components/internal/Menu.tsx
|
|
6632
|
-
var
|
|
6649
|
+
var import_runtime23 = require("@homebound/truss/runtime");
|
|
6633
6650
|
|
|
6634
6651
|
// src/inputs/internal/MenuSearchField.tsx
|
|
6635
6652
|
var import_textfield = require("@react-aria/textfield");
|
|
@@ -6640,7 +6657,7 @@ var import_react26 = require("react");
|
|
|
6640
6657
|
var import_react_aria8 = require("react-aria");
|
|
6641
6658
|
|
|
6642
6659
|
// src/components/HelperText.tsx
|
|
6643
|
-
var
|
|
6660
|
+
var import_runtime15 = require("@homebound/truss/runtime");
|
|
6644
6661
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
6645
6662
|
function HelperText(props) {
|
|
6646
6663
|
const {
|
|
@@ -6648,7 +6665,7 @@ function HelperText(props) {
|
|
|
6648
6665
|
contrast = false,
|
|
6649
6666
|
...others
|
|
6650
6667
|
} = props;
|
|
6651
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ...(0,
|
|
6668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ...(0, import_runtime15.trussProps)({
|
|
6652
6669
|
color: "gray700",
|
|
6653
6670
|
fontWeight: "fw4",
|
|
6654
6671
|
fontSize: "fz_12px",
|
|
@@ -6663,7 +6680,7 @@ function HelperText(props) {
|
|
|
6663
6680
|
// src/components/Label.tsx
|
|
6664
6681
|
var import_react22 = __toESM(require("react"), 1);
|
|
6665
6682
|
var import_react_aria5 = require("react-aria");
|
|
6666
|
-
var
|
|
6683
|
+
var import_runtime16 = require("@homebound/truss/runtime");
|
|
6667
6684
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
6668
6685
|
function LabelComponent(props) {
|
|
6669
6686
|
const {
|
|
@@ -6677,7 +6694,7 @@ function LabelComponent(props) {
|
|
|
6677
6694
|
xss,
|
|
6678
6695
|
...others
|
|
6679
6696
|
} = props;
|
|
6680
|
-
const labelEl = /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { ...labelProps, ...others, ...(0,
|
|
6697
|
+
const labelEl = /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { ...labelProps, ...others, ...(0, import_runtime16.trussProps)({
|
|
6681
6698
|
...{
|
|
6682
6699
|
display: "dif",
|
|
6683
6700
|
alignItems: "aic",
|
|
@@ -6712,7 +6729,7 @@ function InlineLabel({
|
|
|
6712
6729
|
multiline = false,
|
|
6713
6730
|
...others
|
|
6714
6731
|
}) {
|
|
6715
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { ...labelProps, ...others, ...(0,
|
|
6732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { ...labelProps, ...others, ...(0, import_runtime16.trussProps)({
|
|
6716
6733
|
fontWeight: "fw4",
|
|
6717
6734
|
fontSize: "fz_14px",
|
|
6718
6735
|
lineHeight: "lh_20px",
|
|
@@ -6745,11 +6762,11 @@ function CssReset() {
|
|
|
6745
6762
|
}
|
|
6746
6763
|
|
|
6747
6764
|
// src/components/Table/components/cell.tsx
|
|
6748
|
-
var
|
|
6765
|
+
var import_runtime17 = require("@homebound/truss/runtime");
|
|
6749
6766
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
6750
6767
|
var defaultRenderFn = (as, colSpan) => (key, css2, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6751
6768
|
const Cell = as === "table" ? "td" : "div";
|
|
6752
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Cell, { ...(0,
|
|
6769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Cell, { ...(0, import_runtime17.mergeProps)(classNames, void 0, {
|
|
6753
6770
|
...css2,
|
|
6754
6771
|
...{
|
|
6755
6772
|
cursor: "cursor_default"
|
|
@@ -6760,7 +6777,7 @@ var defaultRenderFn = (as, colSpan) => (key, css2, content, row, rowStyle, class
|
|
|
6760
6777
|
};
|
|
6761
6778
|
var headerRenderFn = (column2, as, colSpan) => (key, css2, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6762
6779
|
const Cell = as === "table" ? "th" : "div";
|
|
6763
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Cell, { ...(0,
|
|
6780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Cell, { ...(0, import_runtime17.mergeProps)(classNames, void 0, {
|
|
6764
6781
|
...css2
|
|
6765
6782
|
}), ...as === "table" && {
|
|
6766
6783
|
colSpan
|
|
@@ -6769,15 +6786,15 @@ var headerRenderFn = (column2, as, colSpan) => (key, css2, content, row, rowStyl
|
|
|
6769
6786
|
var rowLinkRenderFn = (as, colSpan) => (key, css2, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6770
6787
|
const to = rowStyle.rowLink(row);
|
|
6771
6788
|
if (as === "table") {
|
|
6772
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { ...(0,
|
|
6789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { ...(0, import_runtime17.mergeProps)(classNames, void 0, {
|
|
6773
6790
|
...css2
|
|
6774
|
-
}), colSpan, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_router_dom2.Link, { to, ...(0,
|
|
6791
|
+
}), colSpan, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_router_dom2.Link, { to, ...(0, import_runtime17.mergeProps)(navLink, void 0, {
|
|
6775
6792
|
textDecoration: "tdn",
|
|
6776
6793
|
color: "color_unset",
|
|
6777
6794
|
display: "db"
|
|
6778
6795
|
}), children: content }) }, key);
|
|
6779
6796
|
}
|
|
6780
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_router_dom2.Link, { to, ...(0,
|
|
6797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_router_dom2.Link, { to, ...(0, import_runtime17.mergeProps)(`${navLink} ${classNames}`, void 0, {
|
|
6781
6798
|
...{
|
|
6782
6799
|
textDecoration: "tdn",
|
|
6783
6800
|
color: "color_unset"
|
|
@@ -6787,7 +6804,7 @@ var rowLinkRenderFn = (as, colSpan) => (key, css2, content, row, rowStyle, class
|
|
|
6787
6804
|
};
|
|
6788
6805
|
var rowClickRenderFn = (as, api, colSpan) => (key, css2, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6789
6806
|
const Cell = as === "table" ? "td" : "div";
|
|
6790
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Cell, { ...(0,
|
|
6807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Cell, { ...(0, import_runtime17.mergeProps)(classNames, void 0, {
|
|
6791
6808
|
...css2
|
|
6792
6809
|
}), onClick: (e) => {
|
|
6793
6810
|
rowStyle.onClick(row, api);
|
|
@@ -6799,7 +6816,7 @@ var rowClickRenderFn = (as, api, colSpan) => (key, css2, content, row, rowStyle,
|
|
|
6799
6816
|
|
|
6800
6817
|
// src/components/Table/components/ColumnResizeHandle.tsx
|
|
6801
6818
|
var import_react23 = require("react");
|
|
6802
|
-
var
|
|
6819
|
+
var import_runtime18 = require("@homebound/truss/runtime");
|
|
6803
6820
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
6804
6821
|
function findScrollableParent(element) {
|
|
6805
6822
|
if (!element) return null;
|
|
@@ -6964,7 +6981,7 @@ function ColumnResizeHandle({
|
|
|
6964
6981
|
};
|
|
6965
6982
|
}, []);
|
|
6966
6983
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
6967
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref: handleRef, onMouseDown: handleMouseDown, onMouseEnter: () => setIsHovering(true), onMouseLeave: () => !isDragging && setIsHovering(false), ...(0,
|
|
6984
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref: handleRef, onMouseDown: handleMouseDown, onMouseEnter: () => setIsHovering(true), onMouseLeave: () => !isDragging && setIsHovering(false), ...(0, import_runtime18.trussProps)({
|
|
6968
6985
|
position: "absolute",
|
|
6969
6986
|
top: "top0",
|
|
6970
6987
|
bottom: "bottom0",
|
|
@@ -6980,7 +6997,7 @@ function ColumnResizeHandle({
|
|
|
6980
6997
|
backgroundColor: "h_bgGray700 h_bgGray700"
|
|
6981
6998
|
} : {}
|
|
6982
6999
|
}), ...tid.handle, "data-column-id": columnId, "data-column-index": columnIndex }),
|
|
6983
|
-
isDragging && guideLineX !== null && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...(0,
|
|
7000
|
+
isDragging && guideLineX !== null && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...(0, import_runtime18.trussProps)({
|
|
6984
7001
|
position: "fixed",
|
|
6985
7002
|
top: ["top_var", {
|
|
6986
7003
|
"--top": `${guideLineTop}px`
|
|
@@ -7002,7 +7019,7 @@ function ColumnResizeHandle({
|
|
|
7002
7019
|
|
|
7003
7020
|
// src/components/Table/components/KeptGroupRow.tsx
|
|
7004
7021
|
var import_react24 = require("react");
|
|
7005
|
-
var
|
|
7022
|
+
var import_runtime19 = require("@homebound/truss/runtime");
|
|
7006
7023
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
7007
7024
|
var __maybeInc3 = (inc) => {
|
|
7008
7025
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -7021,7 +7038,7 @@ function KeptGroupRow(props) {
|
|
|
7021
7038
|
tableState
|
|
7022
7039
|
} = (0, import_react24.useContext)(TableStateContext);
|
|
7023
7040
|
const numHiddenSelectedRows = useComputed(() => tableState.keptRows.length, [tableState]);
|
|
7024
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CellTag, { ...(0,
|
|
7041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CellTag, { ...(0, import_runtime19.trussProps)({
|
|
7025
7042
|
...style.cellCss,
|
|
7026
7043
|
...style.betweenRowsCss,
|
|
7027
7044
|
...isLastBodyRow && style.lastRowCellCss,
|
|
@@ -7819,7 +7836,7 @@ function canClientSideSort(value) {
|
|
|
7819
7836
|
|
|
7820
7837
|
// src/components/Table/components/Row.tsx
|
|
7821
7838
|
var import_use_debounce2 = require("use-debounce");
|
|
7822
|
-
var
|
|
7839
|
+
var import_runtime20 = require("@homebound/truss/runtime");
|
|
7823
7840
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
7824
7841
|
var __maybeInc4 = (inc) => {
|
|
7825
7842
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -7987,7 +8004,7 @@ function RowImpl(props) {
|
|
|
7987
8004
|
const ref = (0, import_react25.useRef)(null);
|
|
7988
8005
|
const dragOverCallback = (0, import_react25.useCallback)((row2, evt) => onDragOver?.(row2, evt), [onDragOver]);
|
|
7989
8006
|
const onDragOverDebounced = (0, import_use_debounce2.useDebouncedCallback)(dragOverCallback, 100);
|
|
7990
|
-
const RowContent = () => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RowTag, { ...(0,
|
|
8007
|
+
const RowContent = () => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RowTag, { ...(0, import_runtime20.mergeProps)(BorderHoverParent, void 0, rowCss), ...others, "data-gridrow": true, ...getCount(row.id), ref, children: isKeptGroupRow ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(KeptGroupRow, { as, style, columnSizes, row, colSpan: columns.length, isLastBodyRow }) : columns.map((column2, columnIndex) => {
|
|
7991
8008
|
const maybeExpandedColumn = expandColumnHidden ? columns[columnIndex - 1] : column2;
|
|
7992
8009
|
const isExpanded = tableState.isExpandedColumn(maybeExpandedColumn.id);
|
|
7993
8010
|
if (column2.hideOnExpand && isExpanded) {
|
|
@@ -8152,7 +8169,7 @@ function RowImpl(props) {
|
|
|
8152
8169
|
const currentSizeStr = columnSizes[columnIndex];
|
|
8153
8170
|
const minWidthPx = column2.mw ? parseInt(column2.mw.replace("px", ""), 10) : 100;
|
|
8154
8171
|
const currentWidthPx = parseWidthToPx(currentSizeStr, void 0) ?? resizedWidths?.[column2.id] ?? minWidthPx;
|
|
8155
|
-
const cellElementWithHandle = import_react25.default.cloneElement(cellElement, (0, import_react_aria6.mergeProps)(cellElement.props, (0,
|
|
8172
|
+
const cellElementWithHandle = import_react25.default.cloneElement(cellElement, (0, import_react_aria6.mergeProps)(cellElement.props, (0, import_runtime20.trussProps)({
|
|
8156
8173
|
...!maybeSticky && {
|
|
8157
8174
|
position: "relative"
|
|
8158
8175
|
}
|
|
@@ -8169,7 +8186,7 @@ function RowImpl(props) {
|
|
|
8169
8186
|
return row.draggable ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
8170
8187
|
"div",
|
|
8171
8188
|
{
|
|
8172
|
-
...(0,
|
|
8189
|
+
...(0, import_runtime20.trussProps)(containerCss),
|
|
8173
8190
|
onDrop: (evt) => onDrop?.(row, evt),
|
|
8174
8191
|
onDragEnter: (evt) => onDragEnter?.(row, evt),
|
|
8175
8192
|
onDragOver: (evt) => {
|
|
@@ -8204,7 +8221,7 @@ function useLabelSuffix(required, readOnly) {
|
|
|
8204
8221
|
|
|
8205
8222
|
// src/inputs/ErrorMessage.tsx
|
|
8206
8223
|
var import_react_aria7 = require("react-aria");
|
|
8207
|
-
var
|
|
8224
|
+
var import_runtime21 = require("@homebound/truss/runtime");
|
|
8208
8225
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
8209
8226
|
function ErrorMessage(props) {
|
|
8210
8227
|
const {
|
|
@@ -8214,7 +8231,7 @@ function ErrorMessage(props) {
|
|
|
8214
8231
|
hidden = false,
|
|
8215
8232
|
...others
|
|
8216
8233
|
} = props;
|
|
8217
|
-
const errorEl = errorMsg ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0,
|
|
8234
|
+
const errorEl = errorMsg ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0, import_runtime21.trussProps)({
|
|
8218
8235
|
color: "red600",
|
|
8219
8236
|
fontWeight: "fw4",
|
|
8220
8237
|
fontSize: "fz_14px",
|
|
@@ -8237,7 +8254,7 @@ function getFieldWidth(fullWidth) {
|
|
|
8237
8254
|
}
|
|
8238
8255
|
|
|
8239
8256
|
// src/inputs/TextFieldBase.tsx
|
|
8240
|
-
var
|
|
8257
|
+
var import_runtime22 = require("@homebound/truss/runtime");
|
|
8241
8258
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
8242
8259
|
var __maybeInc5 = (inc) => {
|
|
8243
8260
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -8617,12 +8634,12 @@ function TextFieldBase(props) {
|
|
|
8617
8634
|
...xss
|
|
8618
8635
|
};
|
|
8619
8636
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
8620
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0,
|
|
8637
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0, import_runtime22.trussProps)(fieldStyles.container), ...groupProps, ...focusWithinProps, children: [
|
|
8621
8638
|
label && labelStyle !== "inline" && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label, { labelProps, hidden: labelStyle === "hidden" || compound, label, inline: labelStyle !== "above", suffix: labelSuffix, contrast, ...tid.label }),
|
|
8622
8639
|
maybeTooltip({
|
|
8623
8640
|
title: tooltip,
|
|
8624
8641
|
placement: "top",
|
|
8625
|
-
children: inputProps.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0,
|
|
8642
|
+
children: inputProps.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0, import_runtime22.mergeProps)(BorderHoverChild, void 0, {
|
|
8626
8643
|
// Use input wrapper to get common styles, but then we need to override some
|
|
8627
8644
|
...fieldStyles.inputWrapperReadOnly,
|
|
8628
8645
|
...multiline ? {
|
|
@@ -8646,7 +8663,7 @@ function TextFieldBase(props) {
|
|
|
8646
8663
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
8647
8664
|
"div",
|
|
8648
8665
|
{
|
|
8649
|
-
...(0,
|
|
8666
|
+
...(0, import_runtime22.mergeProps)(BorderHoverChild, void 0, {
|
|
8650
8667
|
...fieldStyles.inputWrapper,
|
|
8651
8668
|
...inputProps.disabled ? fieldStyles.disabled : {},
|
|
8652
8669
|
...showFocus ? fieldStyles.focus : {},
|
|
@@ -8674,7 +8691,7 @@ function TextFieldBase(props) {
|
|
|
8674
8691
|
{
|
|
8675
8692
|
tabIndex: -1,
|
|
8676
8693
|
...tid.unfocusedPlaceholderContainer,
|
|
8677
|
-
...(0,
|
|
8694
|
+
...(0, import_runtime22.trussProps)({
|
|
8678
8695
|
...{
|
|
8679
8696
|
display: "df",
|
|
8680
8697
|
alignSelf: "asc",
|
|
@@ -8702,7 +8719,7 @@ function TextFieldBase(props) {
|
|
|
8702
8719
|
children: unfocusedPlaceholder
|
|
8703
8720
|
}
|
|
8704
8721
|
),
|
|
8705
|
-
multiline ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, rows: 1, ...(0,
|
|
8722
|
+
multiline ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, rows: 1, ...(0, import_runtime22.trussProps)(fieldElementCss), ...tid }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, ...(0, import_runtime22.trussProps)(fieldElementCss), ...tid }),
|
|
8706
8723
|
isFocused && clearable && onChange && inputProps.value && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(IconButton, { icon: "xCircle", color: "rgba(100, 100, 100, 1)" /* Gray700 */, onClick: () => {
|
|
8707
8724
|
onChange(void 0);
|
|
8708
8725
|
fieldRef.current?.focus();
|
|
@@ -8719,7 +8736,7 @@ function TextFieldBase(props) {
|
|
|
8719
8736
|
] })
|
|
8720
8737
|
] }),
|
|
8721
8738
|
labelStyle === "left" && (alwaysShowHelperText || !compound && !inputProps.disabled && !inputProps.readOnly && (errorMsg && !errorInTooltip || helperText)) && // Reduces the margin between the error/helper text and input field
|
|
8722
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0,
|
|
8739
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0, import_runtime22.trussProps)({
|
|
8723
8740
|
marginTop: ["mt_var", {
|
|
8724
8741
|
"--marginTop": `${-8}px`
|
|
8725
8742
|
}]
|
|
@@ -8846,7 +8863,7 @@ function Menu(props) {
|
|
|
8846
8863
|
label: "items",
|
|
8847
8864
|
items
|
|
8848
8865
|
}), [items]);
|
|
8849
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_aria9.FocusScope, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...(0,
|
|
8866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_aria9.FocusScope, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...(0, import_runtime23.trussProps)({
|
|
8850
8867
|
// Using `max-height: inherit` allows us to take advantage of the height set on the overlay container,
|
|
8851
8868
|
// which updates based on the available space for the overlay within the viewport
|
|
8852
8869
|
...{
|
|
@@ -8883,7 +8900,7 @@ var import_react_router_dom3 = require("react-router-dom");
|
|
|
8883
8900
|
|
|
8884
8901
|
// src/components/Avatar/Avatar.tsx
|
|
8885
8902
|
var import_react29 = require("react");
|
|
8886
|
-
var
|
|
8903
|
+
var import_runtime24 = require("@homebound/truss/runtime");
|
|
8887
8904
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
8888
8905
|
var __typography4 = {
|
|
8889
8906
|
xs2: {
|
|
@@ -8966,7 +8983,7 @@ function Avatar({
|
|
|
8966
8983
|
}],
|
|
8967
8984
|
overflow: "oh"
|
|
8968
8985
|
};
|
|
8969
|
-
const img = showFallback ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...(0,
|
|
8986
|
+
const img = showFallback ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...(0, import_runtime24.trussProps)({
|
|
8970
8987
|
...styles,
|
|
8971
8988
|
...{
|
|
8972
8989
|
...__typography4[sizeToFallbackTypeScale[size]] ?? {},
|
|
@@ -8976,13 +8993,13 @@ function Avatar({
|
|
|
8976
8993
|
alignItems: "aic",
|
|
8977
8994
|
justifyContent: "jcc"
|
|
8978
8995
|
}
|
|
8979
|
-
}), ...tid, children: name ? nameToInitials(name) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { icon: "userCircle", inc: sizeToIconInc[size] }) }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("img", { src, alt: name, ...(0,
|
|
8996
|
+
}), ...tid, children: name ? nameToInitials(name) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { icon: "userCircle", inc: sizeToIconInc[size] }) }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("img", { src, alt: name, ...(0, import_runtime24.trussProps)({
|
|
8980
8997
|
...styles,
|
|
8981
8998
|
...{
|
|
8982
8999
|
objectFit: "objectCover"
|
|
8983
9000
|
}
|
|
8984
9001
|
}), onError: () => setShowFallback(true), loading: "lazy", ...tid });
|
|
8985
|
-
return showName && name ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...(0,
|
|
9002
|
+
return showName && name ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...(0, import_runtime24.trussProps)({
|
|
8986
9003
|
display: "dif",
|
|
8987
9004
|
alignItems: "aic",
|
|
8988
9005
|
gap: "gap1",
|
|
@@ -8991,7 +9008,7 @@ function Avatar({
|
|
|
8991
9008
|
} : {}
|
|
8992
9009
|
}), children: [
|
|
8993
9010
|
img,
|
|
8994
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { ...(0,
|
|
9011
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { ...(0, import_runtime24.trussProps)({
|
|
8995
9012
|
...__typography4[sizeToTypeScale[size]] ?? {}
|
|
8996
9013
|
}), children: name })
|
|
8997
9014
|
] }) : maybeTooltip({
|
|
@@ -9031,7 +9048,7 @@ function nameToInitials(name) {
|
|
|
9031
9048
|
// src/components/Avatar/AvatarButton.tsx
|
|
9032
9049
|
var import_react30 = require("react");
|
|
9033
9050
|
var import_react_aria10 = require("react-aria");
|
|
9034
|
-
var
|
|
9051
|
+
var import_runtime25 = require("@homebound/truss/runtime");
|
|
9035
9052
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
9036
9053
|
function AvatarButton(props) {
|
|
9037
9054
|
const {
|
|
@@ -9087,11 +9104,11 @@ function AvatarButton(props) {
|
|
|
9087
9104
|
...focusProps,
|
|
9088
9105
|
...hoverProps,
|
|
9089
9106
|
ref,
|
|
9090
|
-
...(0,
|
|
9107
|
+
...(0, import_runtime25.mergeProps)(typeof onPress === "string" ? navLink : void 0, void 0, styles)
|
|
9091
9108
|
};
|
|
9092
9109
|
const content = /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
9093
9110
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Avatar, { ...avatarProps, ...tid, disableTooltip: true }),
|
|
9094
|
-
isPressed && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { ...(0,
|
|
9111
|
+
isPressed && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { ...(0, import_runtime25.trussProps)(pressedOverlayCss) })
|
|
9095
9112
|
] });
|
|
9096
9113
|
return maybeTooltip({
|
|
9097
9114
|
// Default the tooltip to the avatar's name, if defined.
|
|
@@ -9142,7 +9159,7 @@ var import_react_aria13 = require("react-aria");
|
|
|
9142
9159
|
// src/components/Button.tsx
|
|
9143
9160
|
var import_react31 = require("react");
|
|
9144
9161
|
var import_react_aria11 = require("react-aria");
|
|
9145
|
-
var
|
|
9162
|
+
var import_runtime26 = require("@homebound/truss/runtime");
|
|
9146
9163
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
9147
9164
|
function Button(props) {
|
|
9148
9165
|
const {
|
|
@@ -9219,7 +9236,7 @@ function Button(props) {
|
|
|
9219
9236
|
...buttonProps,
|
|
9220
9237
|
...focusProps,
|
|
9221
9238
|
...hoverProps,
|
|
9222
|
-
...(0,
|
|
9239
|
+
...(0, import_runtime26.mergeProps)(asLink ? navLink : void 0, void 0, {
|
|
9223
9240
|
...{
|
|
9224
9241
|
fontWeight: "fw6",
|
|
9225
9242
|
fontSize: "fz_14px",
|
|
@@ -9624,7 +9641,7 @@ var iconStyles = {
|
|
|
9624
9641
|
// src/components/NavLink.tsx
|
|
9625
9642
|
var import_react32 = require("react");
|
|
9626
9643
|
var import_react_aria12 = require("react-aria");
|
|
9627
|
-
var
|
|
9644
|
+
var import_runtime27 = require("@homebound/truss/runtime");
|
|
9628
9645
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
9629
9646
|
function NavLink(props) {
|
|
9630
9647
|
const {
|
|
@@ -9680,7 +9697,7 @@ function NavLink(props) {
|
|
|
9680
9697
|
tabIndex: isDisabled ? -1 : 0,
|
|
9681
9698
|
/** aria-current represents the current page within a set of pages */
|
|
9682
9699
|
"aria-current": active ? "page" : void 0,
|
|
9683
|
-
...(0,
|
|
9700
|
+
...(0, import_runtime27.trussProps)({
|
|
9684
9701
|
...baseStyles5,
|
|
9685
9702
|
...active && activeStyles4,
|
|
9686
9703
|
...isDisabled && disabledStyles4,
|
|
@@ -9898,7 +9915,7 @@ function ButtonModal(props) {
|
|
|
9898
9915
|
}
|
|
9899
9916
|
|
|
9900
9917
|
// src/components/Avatar/AvatarGroup.tsx
|
|
9901
|
-
var
|
|
9918
|
+
var import_runtime28 = require("@homebound/truss/runtime");
|
|
9902
9919
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
9903
9920
|
function AvatarGroup(props) {
|
|
9904
9921
|
const {
|
|
@@ -9909,7 +9926,7 @@ function AvatarGroup(props) {
|
|
|
9909
9926
|
const visibleAvatars = avatars.slice(0, maxVisibleAvatars);
|
|
9910
9927
|
const menuAvatars = avatars.slice(maxVisibleAvatars);
|
|
9911
9928
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "df aic gap1 fw6 fz_12px lh_16px", children: [
|
|
9912
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "df aic", children: visibleAvatars.map((avatar, idx) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ...(0,
|
|
9929
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "df aic", children: visibleAvatars.map((avatar, idx) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ...(0, import_runtime28.trussProps)({
|
|
9913
9930
|
borderRadius: "br100",
|
|
9914
9931
|
borderStyle: "bss",
|
|
9915
9932
|
borderWidth: "borderWidth_3px",
|
|
@@ -9923,7 +9940,7 @@ function AvatarGroup(props) {
|
|
|
9923
9940
|
menuAvatars.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ButtonModal, { trigger: {
|
|
9924
9941
|
label: `+ ${menuAvatars.length} more`,
|
|
9925
9942
|
variant: "text"
|
|
9926
|
-
}, hideEndAdornment: true, content: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ...(0,
|
|
9943
|
+
}, hideEndAdornment: true, content: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ...(0, import_runtime28.trussProps)({
|
|
9927
9944
|
display: "df",
|
|
9928
9945
|
flexDirection: "fdc",
|
|
9929
9946
|
gap: "gap1",
|
|
@@ -9950,7 +9967,7 @@ var sizeToOverlap = {
|
|
|
9950
9967
|
};
|
|
9951
9968
|
|
|
9952
9969
|
// src/components/internal/MenuItem.tsx
|
|
9953
|
-
var
|
|
9970
|
+
var import_runtime29 = require("@homebound/truss/runtime");
|
|
9954
9971
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
9955
9972
|
function MenuItemImpl(props) {
|
|
9956
9973
|
const {
|
|
@@ -9997,7 +10014,7 @@ function MenuItemImpl(props) {
|
|
|
9997
10014
|
},
|
|
9998
10015
|
onClose
|
|
9999
10016
|
}, state, ref);
|
|
10000
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", { ...menuItemProps, ...hoverProps, ref, ...(0,
|
|
10017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", { ...menuItemProps, ...hoverProps, ref, ...(0, import_runtime29.trussProps)({
|
|
10001
10018
|
...{
|
|
10002
10019
|
display: "df",
|
|
10003
10020
|
alignItems: "aic",
|
|
@@ -10075,7 +10092,7 @@ function maybeWrapInLink(onClick, content, disabled) {
|
|
|
10075
10092
|
if (disabled || typeof onClick !== "string") {
|
|
10076
10093
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: content });
|
|
10077
10094
|
}
|
|
10078
|
-
return isAbsoluteUrl(onClick) ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("a", { href: onClick, target: "_blank", rel: "noopener noreferrer", ...(0,
|
|
10095
|
+
return isAbsoluteUrl(onClick) ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("a", { href: onClick, target: "_blank", rel: "noopener noreferrer", ...(0, import_runtime29.mergeProps)("navLink", void 0, {
|
|
10079
10096
|
display: "df",
|
|
10080
10097
|
alignItems: "aic",
|
|
10081
10098
|
justifyContent: "jcsb",
|
|
@@ -10122,12 +10139,12 @@ function Popover(props) {
|
|
|
10122
10139
|
var import_react46 = require("react");
|
|
10123
10140
|
var import_react_aria27 = require("react-aria");
|
|
10124
10141
|
var import_react_stately6 = require("react-stately");
|
|
10125
|
-
var
|
|
10142
|
+
var import_runtime41 = require("@homebound/truss/runtime");
|
|
10126
10143
|
|
|
10127
10144
|
// src/inputs/internal/ComboBoxInput.tsx
|
|
10128
10145
|
var import_react45 = require("react");
|
|
10129
10146
|
var import_react_aria26 = require("react-aria");
|
|
10130
|
-
var
|
|
10147
|
+
var import_runtime40 = require("@homebound/truss/runtime");
|
|
10131
10148
|
|
|
10132
10149
|
// src/inputs/hooks/useGrowingTextField.tsx
|
|
10133
10150
|
var import_utils32 = require("@react-aria/utils");
|
|
@@ -10193,12 +10210,12 @@ function useGrowingTextField({ inputRef, inputWrapRef, value, disabled, maxLines
|
|
|
10193
10210
|
var import_react44 = __toESM(require("react"), 1);
|
|
10194
10211
|
var import_react_aria25 = require("react-aria");
|
|
10195
10212
|
var import_react_stately5 = require("react-stately");
|
|
10196
|
-
var
|
|
10213
|
+
var import_runtime39 = require("@homebound/truss/runtime");
|
|
10197
10214
|
|
|
10198
10215
|
// src/inputs/internal/ListBox.tsx
|
|
10199
10216
|
var import_react43 = require("react");
|
|
10200
10217
|
var import_react_aria24 = require("react-aria");
|
|
10201
|
-
var
|
|
10218
|
+
var import_runtime38 = require("@homebound/truss/runtime");
|
|
10202
10219
|
|
|
10203
10220
|
// src/inputs/internal/constants.ts
|
|
10204
10221
|
var persistentItemHeight = 42;
|
|
@@ -10206,7 +10223,7 @@ var sectionSeparatorHeight = 1;
|
|
|
10206
10223
|
|
|
10207
10224
|
// src/inputs/internal/ListBoxSection.tsx
|
|
10208
10225
|
var import_react_aria23 = require("react-aria");
|
|
10209
|
-
var
|
|
10226
|
+
var import_runtime37 = require("@homebound/truss/runtime");
|
|
10210
10227
|
|
|
10211
10228
|
// src/inputs/internal/Option.tsx
|
|
10212
10229
|
var import_react39 = require("react");
|
|
@@ -10221,7 +10238,7 @@ var import_react_stately4 = require("react-stately");
|
|
|
10221
10238
|
// src/inputs/ChipTextField.tsx
|
|
10222
10239
|
var import_react37 = require("react");
|
|
10223
10240
|
var import_react_aria18 = require("react-aria");
|
|
10224
|
-
var
|
|
10241
|
+
var import_runtime30 = require("@homebound/truss/runtime");
|
|
10225
10242
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
10226
10243
|
function ChipTextField(props) {
|
|
10227
10244
|
const {
|
|
@@ -10281,7 +10298,7 @@ function ChipTextField(props) {
|
|
|
10281
10298
|
target.innerHTML = target.textContent?.replace(/[A\n\r]/g, " ") ?? "";
|
|
10282
10299
|
}
|
|
10283
10300
|
onChange(target.textContent ?? "");
|
|
10284
|
-
}, ...focusProps, ...(0,
|
|
10301
|
+
}, ...focusProps, ...(0, import_runtime30.trussProps)({
|
|
10285
10302
|
...chipBaseStyles(fieldProps?.compact),
|
|
10286
10303
|
...{
|
|
10287
10304
|
minWidth: "mw_32px",
|
|
@@ -10294,7 +10311,7 @@ function ChipTextField(props) {
|
|
|
10294
10311
|
}
|
|
10295
10312
|
|
|
10296
10313
|
// src/inputs/internal/ListBoxChip.tsx
|
|
10297
|
-
var
|
|
10314
|
+
var import_runtime31 = require("@homebound/truss/runtime");
|
|
10298
10315
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
10299
10316
|
function ListBoxChip({
|
|
10300
10317
|
label
|
|
@@ -10302,7 +10319,7 @@ function ListBoxChip({
|
|
|
10302
10319
|
const {
|
|
10303
10320
|
fieldProps
|
|
10304
10321
|
} = usePresentationContext();
|
|
10305
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { ...(0,
|
|
10322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { ...(0, import_runtime31.trussProps)({
|
|
10306
10323
|
...chipBaseStyles(fieldProps?.compact),
|
|
10307
10324
|
...{
|
|
10308
10325
|
whiteSpace: "wsnw",
|
|
@@ -10363,7 +10380,7 @@ function defaultOptionLabel(opt) {
|
|
|
10363
10380
|
}
|
|
10364
10381
|
|
|
10365
10382
|
// src/inputs/ChipSelectField.tsx
|
|
10366
|
-
var
|
|
10383
|
+
var import_runtime32 = require("@homebound/truss/runtime");
|
|
10367
10384
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
10368
10385
|
function ChipSelectField(props) {
|
|
10369
10386
|
const firstRender = (0, import_react38.useRef)(true);
|
|
@@ -10541,7 +10558,7 @@ function ChipSelectField(props) {
|
|
|
10541
10558
|
maybeTooltip({
|
|
10542
10559
|
title: resolveTooltip(disabled),
|
|
10543
10560
|
placement: "top",
|
|
10544
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { ref: wrapperRef, ...(0,
|
|
10561
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { ref: wrapperRef, ...(0, import_runtime32.trussProps)({
|
|
10545
10562
|
...chipStyles,
|
|
10546
10563
|
...{
|
|
10547
10564
|
position: "relative",
|
|
@@ -10559,7 +10576,7 @@ function ChipSelectField(props) {
|
|
|
10559
10576
|
} : {}
|
|
10560
10577
|
}), children: [
|
|
10561
10578
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Label, { label, labelProps, hidden: true, ...tid.label }),
|
|
10562
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("button", { ...(0, import_react_aria19.mergeProps)(focusProps, buttonProps), ref: buttonRef, ...(0,
|
|
10579
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("button", { ...(0, import_react_aria19.mergeProps)(focusProps, buttonProps), ref: buttonRef, ...(0, import_runtime32.trussProps)({
|
|
10563
10580
|
...{
|
|
10564
10581
|
textAlign: "tal",
|
|
10565
10582
|
borderRadius: "br16",
|
|
@@ -10575,7 +10592,7 @@ function ChipSelectField(props) {
|
|
|
10575
10592
|
},
|
|
10576
10593
|
...isDisabled ? chipDisabledStyles : chipHoverOnlyStyles
|
|
10577
10594
|
}), title: state.selectedItem ? state.selectedItem.textValue : placeholder, ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { ...valueProps, className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1 wbba", children: state.selectedItem ? state.selectedItem.textValue : placeholder }) }),
|
|
10578
|
-
showClearButton && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("button", { ...clearFocusProps, ...(0,
|
|
10595
|
+
showClearButton && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("button", { ...clearFocusProps, ...(0, import_runtime32.trussProps)({
|
|
10579
10596
|
...{
|
|
10580
10597
|
paddingRight: "pr_4px",
|
|
10581
10598
|
borderRadius: "borderRadius_0_16px_16px_0",
|
|
@@ -10621,7 +10638,7 @@ function CreateNewField(props) {
|
|
|
10621
10638
|
}
|
|
10622
10639
|
|
|
10623
10640
|
// src/inputs/internal/Option.tsx
|
|
10624
|
-
var
|
|
10641
|
+
var import_runtime33 = require("@homebound/truss/runtime");
|
|
10625
10642
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
10626
10643
|
function Option(props) {
|
|
10627
10644
|
const {
|
|
@@ -10675,7 +10692,7 @@ function Option(props) {
|
|
|
10675
10692
|
return maybeTooltip({
|
|
10676
10693
|
title: disabledReason,
|
|
10677
10694
|
placement: "right",
|
|
10678
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { ...(0, import_react_aria20.mergeProps)(optionProps, hoverProps), "data-label": item.textValue, ref, ...(0,
|
|
10695
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { ...(0, import_react_aria20.mergeProps)(optionProps, hoverProps), "data-label": item.textValue, ref, ...(0, import_runtime33.trussProps)({
|
|
10679
10696
|
...{
|
|
10680
10697
|
display: "df",
|
|
10681
10698
|
alignItems: "aic",
|
|
@@ -10714,7 +10731,7 @@ var import_react42 = require("react");
|
|
|
10714
10731
|
var import_react_virtuoso = require("react-virtuoso");
|
|
10715
10732
|
|
|
10716
10733
|
// src/inputs/internal/LoadingDots.tsx
|
|
10717
|
-
var
|
|
10734
|
+
var import_runtime34 = require("@homebound/truss/runtime");
|
|
10718
10735
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
10719
10736
|
function LoadingDots({
|
|
10720
10737
|
contrast
|
|
@@ -10736,19 +10753,19 @@ function LoadingDots({
|
|
|
10736
10753
|
};
|
|
10737
10754
|
const tid = useTestIds({});
|
|
10738
10755
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "pt2 pb2 df jcc", ...tid.loadingDots, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { "aria-label": "Loading", className: "df gap_4px", children: [
|
|
10739
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0,
|
|
10756
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0, import_runtime34.trussProps)({
|
|
10740
10757
|
...dotCss,
|
|
10741
10758
|
...{
|
|
10742
10759
|
animationDelay: "animationDelay_0ms"
|
|
10743
10760
|
}
|
|
10744
10761
|
}) }),
|
|
10745
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0,
|
|
10762
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0, import_runtime34.trussProps)({
|
|
10746
10763
|
...dotCss,
|
|
10747
10764
|
...{
|
|
10748
10765
|
animationDelay: "animationDelay_300ms"
|
|
10749
10766
|
}
|
|
10750
10767
|
}) }),
|
|
10751
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0,
|
|
10768
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0, import_runtime34.trussProps)({
|
|
10752
10769
|
...dotCss,
|
|
10753
10770
|
...{
|
|
10754
10771
|
animationDelay: "animationDelay_600ms"
|
|
@@ -10764,7 +10781,7 @@ var import_react_aria22 = require("react-aria");
|
|
|
10764
10781
|
// src/inputs/CheckboxBase.tsx
|
|
10765
10782
|
var import_react40 = require("react");
|
|
10766
10783
|
var import_react_aria21 = require("react-aria");
|
|
10767
|
-
var
|
|
10784
|
+
var import_runtime35 = require("@homebound/truss/runtime");
|
|
10768
10785
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
10769
10786
|
function CheckboxBase(props) {
|
|
10770
10787
|
const {
|
|
@@ -10792,7 +10809,7 @@ function CheckboxBase(props) {
|
|
|
10792
10809
|
return maybeTooltip({
|
|
10793
10810
|
title: tooltip,
|
|
10794
10811
|
placement: "top",
|
|
10795
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Tag2, { ...(0,
|
|
10812
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Tag2, { ...(0, import_runtime35.trussProps)({
|
|
10796
10813
|
display: "df",
|
|
10797
10814
|
cursor: "cursorPointer",
|
|
10798
10815
|
position: "relative",
|
|
@@ -10808,17 +10825,17 @@ function CheckboxBase(props) {
|
|
|
10808
10825
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(StyledCheckbox, { ...props, isFocusVisible, ...tid }),
|
|
10809
10826
|
!checkboxOnly && // Use a mtPx(-2) to better align the label with the checkbox.
|
|
10810
10827
|
// Not using align-items: center as the checkbox would align with all content below, where we really want it to stay only aligned with the label
|
|
10811
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...(0,
|
|
10828
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...(0, import_runtime35.trussProps)({
|
|
10812
10829
|
marginLeft: "ml1",
|
|
10813
10830
|
marginTop: ["mt_var", {
|
|
10814
10831
|
"--marginTop": `${-2}px`
|
|
10815
10832
|
}]
|
|
10816
10833
|
}), children: [
|
|
10817
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...(0,
|
|
10834
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...(0, import_runtime35.trussProps)({
|
|
10818
10835
|
...labelStyles,
|
|
10819
10836
|
...isDisabled && disabledColor
|
|
10820
10837
|
}), children: label }),
|
|
10821
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...(0,
|
|
10838
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...(0, import_runtime35.trussProps)({
|
|
10822
10839
|
...descStyles,
|
|
10823
10840
|
...isDisabled && disabledColor
|
|
10824
10841
|
}), children: description }),
|
|
@@ -10900,7 +10917,7 @@ function StyledCheckbox(props) {
|
|
|
10900
10917
|
});
|
|
10901
10918
|
const markIcon = isIndeterminate ? dashSmall : isSelected ? checkmarkSmall : "";
|
|
10902
10919
|
const tid = useTestIds(props);
|
|
10903
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { ...hoverProps, ...(0,
|
|
10920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { ...hoverProps, ...(0, import_runtime35.trussProps)({
|
|
10904
10921
|
...baseStyles2,
|
|
10905
10922
|
...(isSelected && !isDisabled || isIndeterminate) && filledBoxStyles,
|
|
10906
10923
|
...(isSelected && !isDisabled || isIndeterminate) && isHovered && filledBoxHoverStyles,
|
|
@@ -10910,11 +10927,11 @@ function StyledCheckbox(props) {
|
|
|
10910
10927
|
...isHovered && hoverBorderStyles
|
|
10911
10928
|
}), "aria-hidden": "true", "data-checked": isSelected ? true : isIndeterminate ? "mixed" : false, ...tid.checkbox, children: markIcon });
|
|
10912
10929
|
}
|
|
10913
|
-
var checkmarkSmall = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { width: "16", height: "16", ...(0,
|
|
10914
|
-
var dashSmall = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { width: "16", height: "16", ...(0,
|
|
10930
|
+
var checkmarkSmall = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime35.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "M6.66669 10.3907L4.47135 8.19533L3.52869 9.138L6.66669 12.276L13.138 5.80467L12.1954 4.862L6.66669 10.3907Z", fill: "rgba(255,255,255,1)" /* White */ }) });
|
|
10931
|
+
var dashSmall = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime35.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { x: "4", y: "7.5", width: "8", height: "1.35", fill: "rgba(255,255,255,1)" /* White */ }) });
|
|
10915
10932
|
|
|
10916
10933
|
// src/inputs/TreeSelectField/TreeOption.tsx
|
|
10917
|
-
var
|
|
10934
|
+
var import_runtime36 = require("@homebound/truss/runtime");
|
|
10918
10935
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
10919
10936
|
function TreeOption(props) {
|
|
10920
10937
|
const {
|
|
@@ -10974,7 +10991,7 @@ function TreeOption(props) {
|
|
|
10974
10991
|
}]
|
|
10975
10992
|
}
|
|
10976
10993
|
};
|
|
10977
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("li", { ...hoverProps, ...(0,
|
|
10994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("li", { ...hoverProps, ...(0, import_runtime36.trussProps)({
|
|
10978
10995
|
...{
|
|
10979
10996
|
display: "df",
|
|
10980
10997
|
alignItems: "aic",
|
|
@@ -11157,11 +11174,11 @@ function ListBoxSection(props) {
|
|
|
11157
11174
|
const childNodes = [...section.childNodes];
|
|
11158
11175
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
11159
11176
|
isPersistentSection && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("li", { ...separatorProps, className: "bts_solid btw_1px bcGray200" }),
|
|
11160
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("li", { ...itemProps, ...(0,
|
|
11177
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("li", { ...itemProps, ...(0, import_runtime37.trussProps)({
|
|
11161
11178
|
...!isPersistentSection ? {
|
|
11162
11179
|
overflow: "oa"
|
|
11163
11180
|
} : {}
|
|
11164
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("ul", { ...(0,
|
|
11181
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("ul", { ...(0, import_runtime37.trussProps)({
|
|
11165
11182
|
padding: "p_0",
|
|
11166
11183
|
margin: "m_0",
|
|
11167
11184
|
listStyle: "lis_none",
|
|
@@ -11237,7 +11254,7 @@ function ListBox(props) {
|
|
|
11237
11254
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11238
11255
|
[state.selectionManager.selectedKeys.size]
|
|
11239
11256
|
);
|
|
11240
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { ...(0,
|
|
11257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { ...(0, import_runtime38.trussProps)({
|
|
11241
11258
|
backgroundColor: "bgWhite",
|
|
11242
11259
|
borderRadius: "br4",
|
|
11243
11260
|
width: "w100",
|
|
@@ -11673,7 +11690,7 @@ function TreeSelectFieldBase(props) {
|
|
|
11673
11690
|
minWidth: 320
|
|
11674
11691
|
};
|
|
11675
11692
|
const fieldMaxWidth = getFieldWidth(fullWidth);
|
|
11676
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { ...(0,
|
|
11693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { ...(0, import_runtime39.trussProps)({
|
|
11677
11694
|
display: "df",
|
|
11678
11695
|
flexDirection: "fdc",
|
|
11679
11696
|
width: "w100",
|
|
@@ -11768,7 +11785,7 @@ function ComboBoxInput(props) {
|
|
|
11768
11785
|
});
|
|
11769
11786
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TextFieldBase, { ...otherProps, ...multilineProps, unfocusedPlaceholder: showChipSelection && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Chips, { compact: otherProps.compact, values: chipLabels, wrap: allowWrap }), inputRef, inputWrapRef, errorMsg, contrast, xss: otherProps.labelStyle !== "inline" && !inputProps.readOnly ? {
|
|
11770
11787
|
fontWeight: "fw5"
|
|
11771
|
-
} :
|
|
11788
|
+
} : void 0, startAdornment: showNumSelection && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Tooltip, { title: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectedOptionBullets, { labels: chipLabels }), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CountBadge, { count: isTree ? selectedOptionsLabels?.length ?? 0 : state.selectionManager.selectedKeys.size, "data-testid": "selectedOptionsCount" }) }) || showFieldDecoration && fieldDecoration(selectedOptions[0]), endAdornment: !inputProps.readOnly && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("button", { ...buttonProps, disabled: inputProps.disabled, ref: buttonRef, ...(0, import_runtime40.trussProps)({
|
|
11772
11789
|
...{
|
|
11773
11790
|
borderRadius: "br4",
|
|
11774
11791
|
outline: "outline0",
|
|
@@ -12102,7 +12119,7 @@ function ComboBoxBase(props) {
|
|
|
12102
12119
|
minWidth: 200
|
|
12103
12120
|
};
|
|
12104
12121
|
const fieldMaxWidth = getFieldWidth(fullWidth);
|
|
12105
|
-
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { ...(0,
|
|
12122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { ...(0, import_runtime41.trussProps)({
|
|
12106
12123
|
display: "df",
|
|
12107
12124
|
flexDirection: "fdc",
|
|
12108
12125
|
width: "w100",
|
|
@@ -12326,7 +12343,7 @@ function Checkbox(props) {
|
|
|
12326
12343
|
var import_react49 = require("react");
|
|
12327
12344
|
var import_react_aria30 = require("react-aria");
|
|
12328
12345
|
var import_react_stately9 = require("react-stately");
|
|
12329
|
-
var
|
|
12346
|
+
var import_runtime42 = require("@homebound/truss/runtime");
|
|
12330
12347
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
12331
12348
|
function CheckboxGroup(props) {
|
|
12332
12349
|
const {
|
|
@@ -12354,18 +12371,18 @@ function CheckboxGroup(props) {
|
|
|
12354
12371
|
} = (0, import_react_aria30.useCheckboxGroup)(props, state);
|
|
12355
12372
|
const tid = useTestIds(props);
|
|
12356
12373
|
const labelSuffix = useLabelSuffix(required, false);
|
|
12357
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { ...groupProps, ...(0,
|
|
12374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { ...groupProps, ...(0, import_runtime42.trussProps)({
|
|
12358
12375
|
...labelStyle === "left" ? {
|
|
12359
12376
|
display: "df",
|
|
12360
12377
|
flexDirection: "fdr"
|
|
12361
12378
|
} : {}
|
|
12362
12379
|
}), onBlur, onFocus, ...tid, children: [
|
|
12363
|
-
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { ...(0,
|
|
12380
|
+
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { ...(0, import_runtime42.trussProps)({
|
|
12364
12381
|
...labelStyle === "left" ? {
|
|
12365
12382
|
width: "w50"
|
|
12366
12383
|
} : {}
|
|
12367
12384
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Label, { label, ...labelProps, ...tid.label, suffix: labelSuffix }) }),
|
|
12368
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { ...(0,
|
|
12385
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { ...(0, import_runtime42.trussProps)({
|
|
12369
12386
|
display: "dg",
|
|
12370
12387
|
gridTemplateColumns: ["gtc_var", {
|
|
12371
12388
|
"--gridTemplateColumns": `repeat(${columns}, auto)`
|
|
@@ -12501,7 +12518,7 @@ function isValidDate(d) {
|
|
|
12501
12518
|
}
|
|
12502
12519
|
|
|
12503
12520
|
// src/inputs/DateFields/DateFieldBase.tsx
|
|
12504
|
-
var
|
|
12521
|
+
var import_runtime43 = require("@homebound/truss/runtime");
|
|
12505
12522
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
12506
12523
|
function DateFieldBase(props) {
|
|
12507
12524
|
const {
|
|
@@ -12644,7 +12661,7 @@ function DateFieldBase(props) {
|
|
|
12644
12661
|
setInputValue("");
|
|
12645
12662
|
onChange(void 0);
|
|
12646
12663
|
} }) });
|
|
12647
|
-
const calendarButton = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("button", { ref: buttonRef, ...buttonProps, disabled: isDisabled, ...(0,
|
|
12664
|
+
const calendarButton = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("button", { ref: buttonRef, ...buttonProps, disabled: isDisabled, ...(0, import_runtime43.trussProps)({
|
|
12648
12665
|
...isDisabled ? {
|
|
12649
12666
|
cursor: "cursorNotAllowed"
|
|
12650
12667
|
} : {}
|
|
@@ -12731,7 +12748,7 @@ function DateRangeField(props) {
|
|
|
12731
12748
|
var import_react52 = require("react");
|
|
12732
12749
|
var import_react_aria32 = require("react-aria");
|
|
12733
12750
|
var import_react_stately11 = require("react-stately");
|
|
12734
|
-
var
|
|
12751
|
+
var import_runtime44 = require("@homebound/truss/runtime");
|
|
12735
12752
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
12736
12753
|
function IconCard(props) {
|
|
12737
12754
|
const {
|
|
@@ -12773,10 +12790,10 @@ function IconCard(props) {
|
|
|
12773
12790
|
return maybeTooltip({
|
|
12774
12791
|
title: resolveTooltip(isDisabled, tooltip),
|
|
12775
12792
|
placement: "top",
|
|
12776
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("button", { ...(0,
|
|
12793
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("button", { ...(0, import_runtime44.trussProps)(styles), ...hoverProps, onClick: toggleState.toggle, disabled: isDisabled, ...tid, children: [
|
|
12777
12794
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_aria32.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("input", { ref, ...inputProps, ...tid.value }) }),
|
|
12778
12795
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { icon, inc: 4, color: isDisabled ? "rgba(221, 220, 220, 1)" /* Gray300 */ : "rgba(36, 36, 36, 1)" /* Gray900 */ }),
|
|
12779
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { ...(0,
|
|
12796
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { ...(0, import_runtime44.trussProps)({
|
|
12780
12797
|
fontWeight: "fw4",
|
|
12781
12798
|
fontSize: "fz_12px",
|
|
12782
12799
|
lineHeight: "lh_16px",
|
|
@@ -12821,7 +12838,7 @@ var iconCardStylesHover = {
|
|
|
12821
12838
|
|
|
12822
12839
|
// src/inputs/MultiLineSelectField.tsx
|
|
12823
12840
|
var import_react53 = require("react");
|
|
12824
|
-
var
|
|
12841
|
+
var import_runtime45 = require("@homebound/truss/runtime");
|
|
12825
12842
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
12826
12843
|
function MultiLineSelectField(props) {
|
|
12827
12844
|
const {
|
|
@@ -12836,18 +12853,18 @@ function MultiLineSelectField(props) {
|
|
|
12836
12853
|
const tid = useTestIds(props, "");
|
|
12837
12854
|
const [isDisplayed, setIsDisplayed] = (0, import_react53.useState)(true);
|
|
12838
12855
|
const currentOptions = options.filter((o) => !values.includes(getOptionValue(o)));
|
|
12839
|
-
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...(0,
|
|
12856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...(0, import_runtime45.trussProps)({
|
|
12840
12857
|
marginTop: "mt1",
|
|
12841
12858
|
...labelStyle === "left" ? {
|
|
12842
12859
|
display: "df"
|
|
12843
12860
|
} : {}
|
|
12844
12861
|
}), children: [
|
|
12845
|
-
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { ...(0,
|
|
12862
|
+
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { ...(0, import_runtime45.trussProps)({
|
|
12846
12863
|
...labelStyle === "left" ? {
|
|
12847
12864
|
width: "w50"
|
|
12848
12865
|
} : {}
|
|
12849
12866
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label, { ...tid.label, label: props.label }) }),
|
|
12850
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...(0,
|
|
12867
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...(0, import_runtime45.trussProps)({
|
|
12851
12868
|
...labelStyle === "left" ? {
|
|
12852
12869
|
width: "w50"
|
|
12853
12870
|
} : {}
|
|
@@ -12979,6 +12996,7 @@ function NumberField(props) {
|
|
|
12979
12996
|
wip: false
|
|
12980
12997
|
});
|
|
12981
12998
|
const lastSentRef = (0, import_react54.useRef)(void 0);
|
|
12999
|
+
const focusValueRef = (0, import_react54.useRef)(void 0);
|
|
12982
13000
|
const [, forceRender] = (0, import_react54.useState)(0);
|
|
12983
13001
|
const propValue = value === void 0 ? Number.NaN : value / factor;
|
|
12984
13002
|
if (valueRef.current.wip && !Object.is(valueRef.current.value, propValue)) {
|
|
@@ -12994,7 +13012,7 @@ function NumberField(props) {
|
|
|
12994
13012
|
// // This is called on blur with the final/committed value.
|
|
12995
13013
|
onChange: (value2) => {
|
|
12996
13014
|
const formatted = formatValue(value2, factor, numFractionDigits, numIntegerDigits, positiveOnly);
|
|
12997
|
-
if (formatted !== lastSentRef.current) return;
|
|
13015
|
+
if (formatted !== lastSentRef.current && formatted === focusValueRef.current) return;
|
|
12998
13016
|
onChange(formatted);
|
|
12999
13017
|
},
|
|
13000
13018
|
onFocus: () => {
|
|
@@ -13003,6 +13021,7 @@ function NumberField(props) {
|
|
|
13003
13021
|
value: value === void 0 ? Number.NaN : value / factor
|
|
13004
13022
|
};
|
|
13005
13023
|
lastSentRef.current = value;
|
|
13024
|
+
focusValueRef.current = value;
|
|
13006
13025
|
},
|
|
13007
13026
|
onBlur: () => {
|
|
13008
13027
|
valueRef.current = {
|
|
@@ -13080,7 +13099,7 @@ function formatValue(value, factor, numFractionDigits, numIntegerDigits, positiv
|
|
|
13080
13099
|
var import_react55 = require("react");
|
|
13081
13100
|
var import_react_aria34 = require("react-aria");
|
|
13082
13101
|
var import_react_stately13 = require("react-stately");
|
|
13083
|
-
var
|
|
13102
|
+
var import_runtime46 = require("@homebound/truss/runtime");
|
|
13084
13103
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
13085
13104
|
var nextNameId = 0;
|
|
13086
13105
|
function RadioGroupField(props) {
|
|
@@ -13113,7 +13132,7 @@ function RadioGroupField(props) {
|
|
|
13113
13132
|
}, state);
|
|
13114
13133
|
return (
|
|
13115
13134
|
// default styling to position `<Label />` above.
|
|
13116
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { ...(0,
|
|
13135
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { ...(0, import_runtime46.trussProps)({
|
|
13117
13136
|
display: "df",
|
|
13118
13137
|
flexDirection: "fdc",
|
|
13119
13138
|
gap: "gap1",
|
|
@@ -13173,7 +13192,7 @@ function Radio(props) {
|
|
|
13173
13192
|
} = (0, import_react_aria34.useHover)({
|
|
13174
13193
|
isDisabled: disabled
|
|
13175
13194
|
});
|
|
13176
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { ...(0,
|
|
13195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { ...(0, import_runtime46.trussProps)({
|
|
13177
13196
|
display: "df",
|
|
13178
13197
|
cursor: "cursorPointer",
|
|
13179
13198
|
marginBottom: "mb1",
|
|
@@ -13186,7 +13205,7 @@ function Radio(props) {
|
|
|
13186
13205
|
{
|
|
13187
13206
|
type: "radio",
|
|
13188
13207
|
ref,
|
|
13189
|
-
...(0,
|
|
13208
|
+
...(0, import_runtime46.trussProps)({
|
|
13190
13209
|
...radioReset,
|
|
13191
13210
|
...radioDefault,
|
|
13192
13211
|
...!disabled && state.selectedValue === value ? radioChecked : radioUnchecked,
|
|
@@ -13207,7 +13226,7 @@ function Radio(props) {
|
|
|
13207
13226
|
}
|
|
13208
13227
|
),
|
|
13209
13228
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { children: [
|
|
13210
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: labelId, ...(0,
|
|
13229
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: labelId, ...(0, import_runtime46.trussProps)({
|
|
13211
13230
|
fontWeight: "fw4",
|
|
13212
13231
|
fontSize: "fz_14px",
|
|
13213
13232
|
lineHeight: "lh_20px",
|
|
@@ -13218,7 +13237,7 @@ function Radio(props) {
|
|
|
13218
13237
|
}), ...description ? {
|
|
13219
13238
|
"aria-describedby": descriptionId
|
|
13220
13239
|
} : {}, children: label }),
|
|
13221
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: descriptionId, ...(0,
|
|
13240
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: descriptionId, ...(0, import_runtime46.trussProps)({
|
|
13222
13241
|
fontWeight: "fw4",
|
|
13223
13242
|
fontSize: "fz_14px",
|
|
13224
13243
|
lineHeight: "lh_20px",
|
|
@@ -13361,7 +13380,7 @@ var import_tributejs = __toESM(require("tributejs"), 1);
|
|
|
13361
13380
|
var import_tribute = require("tributejs/dist/tribute.css");
|
|
13362
13381
|
var import_trix = require("trix/dist/trix");
|
|
13363
13382
|
var import_trix2 = require("trix/dist/trix.css");
|
|
13364
|
-
var
|
|
13383
|
+
var import_runtime47 = require("@homebound/truss/runtime");
|
|
13365
13384
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
13366
13385
|
var RichTextField = withTestMock(RichTextFieldImpl, RichTextFieldMock);
|
|
13367
13386
|
function RichTextFieldImpl(props) {
|
|
@@ -13441,7 +13460,7 @@ function RichTextFieldImpl(props) {
|
|
|
13441
13460
|
autoFocus
|
|
13442
13461
|
} = props;
|
|
13443
13462
|
if (!readOnly) {
|
|
13444
|
-
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0,
|
|
13463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0, import_runtime47.trussProps)({
|
|
13445
13464
|
width: "w100",
|
|
13446
13465
|
...!fullWidth ? {
|
|
13447
13466
|
maxWidth: "maxw_550px"
|
|
@@ -13464,7 +13483,7 @@ function RichTextFieldImpl(props) {
|
|
|
13464
13483
|
] })
|
|
13465
13484
|
] });
|
|
13466
13485
|
} else {
|
|
13467
|
-
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0,
|
|
13486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0, import_runtime47.trussProps)({
|
|
13468
13487
|
width: "w100",
|
|
13469
13488
|
...!fullWidth ? {
|
|
13470
13489
|
maxWidth: "maxw_550px"
|
|
@@ -13538,7 +13557,7 @@ function SelectField(props) {
|
|
|
13538
13557
|
// src/inputs/Switch.tsx
|
|
13539
13558
|
var import_react59 = require("react");
|
|
13540
13559
|
var import_react_aria35 = require("react-aria");
|
|
13541
|
-
var
|
|
13560
|
+
var import_runtime48 = require("@homebound/truss/runtime");
|
|
13542
13561
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
13543
13562
|
var __maybeInc6 = (inc) => {
|
|
13544
13563
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -13588,7 +13607,7 @@ function Switch(props) {
|
|
|
13588
13607
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
13589
13608
|
const tooltip = resolveTooltip(disabled, props.tooltip);
|
|
13590
13609
|
const tid = useTestIds(otherProps, label);
|
|
13591
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { ...hoverProps, ...(0,
|
|
13610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { ...hoverProps, ...(0, import_runtime48.trussProps)({
|
|
13592
13611
|
...{
|
|
13593
13612
|
position: "relative",
|
|
13594
13613
|
cursor: "cursorPointer",
|
|
@@ -13631,13 +13650,13 @@ function Switch(props) {
|
|
|
13631
13650
|
color: "gray900"
|
|
13632
13651
|
} : {}
|
|
13633
13652
|
}, inline: labelStyle === "left" || labelStyle === "filter" }) }),
|
|
13634
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0,
|
|
13653
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0, import_runtime48.trussProps)({
|
|
13635
13654
|
...labelStyle === "left" ? {
|
|
13636
13655
|
width: ["w_var", {
|
|
13637
13656
|
"--width": __maybeInc6(labelLeftFieldWidth)
|
|
13638
13657
|
}]
|
|
13639
13658
|
} : {}
|
|
13640
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { "aria-hidden": "true", ...(0,
|
|
13659
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { "aria-hidden": "true", ...(0, import_runtime48.trussProps)({
|
|
13641
13660
|
...{
|
|
13642
13661
|
width: ["w_var", {
|
|
13643
13662
|
"--width": `${toggleWidth(compact)}px`
|
|
@@ -13659,7 +13678,7 @@ function Switch(props) {
|
|
|
13659
13678
|
backgroundColor: "bgBlue700"
|
|
13660
13679
|
},
|
|
13661
13680
|
...isSelected && isHovered && switchSelectedHoverStyles
|
|
13662
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0,
|
|
13681
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0, import_runtime48.trussProps)({
|
|
13663
13682
|
...switchCircleDefaultStyles(compact),
|
|
13664
13683
|
...isDisabled && {
|
|
13665
13684
|
backgroundColor: "bgGray100"
|
|
@@ -13845,7 +13864,7 @@ function TextField(props) {
|
|
|
13845
13864
|
var import_react62 = require("react");
|
|
13846
13865
|
var import_react_aria38 = require("react-aria");
|
|
13847
13866
|
var import_react_stately14 = require("react-stately");
|
|
13848
|
-
var
|
|
13867
|
+
var import_runtime49 = require("@homebound/truss/runtime");
|
|
13849
13868
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
13850
13869
|
function ToggleButton(props) {
|
|
13851
13870
|
const {
|
|
@@ -13910,7 +13929,7 @@ function ToggleButton(props) {
|
|
|
13910
13929
|
...focusProps,
|
|
13911
13930
|
...hoverProps,
|
|
13912
13931
|
...pressProps,
|
|
13913
|
-
...(0,
|
|
13932
|
+
...(0, import_runtime49.trussProps)({
|
|
13914
13933
|
...{
|
|
13915
13934
|
borderRadius: "br4",
|
|
13916
13935
|
display: "dif",
|
|
@@ -13966,7 +13985,7 @@ var togglePressStyles = {
|
|
|
13966
13985
|
var import_react63 = require("react");
|
|
13967
13986
|
var import_react_aria39 = require("react-aria");
|
|
13968
13987
|
var import_react_stately15 = require("react-stately");
|
|
13969
|
-
var
|
|
13988
|
+
var import_runtime50 = require("@homebound/truss/runtime");
|
|
13970
13989
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
13971
13990
|
var __maybeInc7 = (inc) => {
|
|
13972
13991
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -13998,7 +14017,7 @@ function ToggleChipGroup(props) {
|
|
|
13998
14017
|
} = (0, import_react_aria39.useCheckboxGroup)(props, state);
|
|
13999
14018
|
const tid = useTestIds(props, "toggleChip");
|
|
14000
14019
|
const labelSuffix = useLabelSuffix(required, false);
|
|
14001
|
-
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { ...groupProps, ...(0,
|
|
14020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { ...groupProps, ...(0, import_runtime50.trussProps)({
|
|
14002
14021
|
position: "relative",
|
|
14003
14022
|
display: "df",
|
|
14004
14023
|
flexDirection: "fdc",
|
|
@@ -14010,7 +14029,7 @@ function ToggleChipGroup(props) {
|
|
|
14010
14029
|
} : {}
|
|
14011
14030
|
}), children: [
|
|
14012
14031
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Label, { label, ...labelProps, hidden: labelStyle === "hidden", inline: labelStyle !== "above", suffix: labelSuffix }),
|
|
14013
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ...(0,
|
|
14032
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ...(0, import_runtime50.trussProps)({
|
|
14014
14033
|
display: "df",
|
|
14015
14034
|
gap: "gap1",
|
|
14016
14035
|
flexWrap: "flexWrap_wrap",
|
|
@@ -14075,7 +14094,7 @@ function ToggleChip2(props) {
|
|
|
14075
14094
|
return maybeTooltip({
|
|
14076
14095
|
title: tooltip,
|
|
14077
14096
|
placement: "top",
|
|
14078
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { ...(0,
|
|
14097
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { ...(0, import_runtime50.trussProps)({
|
|
14079
14098
|
...{
|
|
14080
14099
|
position: "relative",
|
|
14081
14100
|
display: "dif",
|
|
@@ -15357,7 +15376,7 @@ function useRenderCount() {
|
|
|
15357
15376
|
}
|
|
15358
15377
|
|
|
15359
15378
|
// src/components/Table/GridTable.tsx
|
|
15360
|
-
var
|
|
15379
|
+
var import_runtime51 = require("@homebound/truss/runtime");
|
|
15361
15380
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
15362
15381
|
var runningInJest = false;
|
|
15363
15382
|
function setRunningInJest() {
|
|
@@ -15629,7 +15648,7 @@ function GridTable(props) {
|
|
|
15629
15648
|
tableContainerRef
|
|
15630
15649
|
}), [tableState, tableContainerRef]);
|
|
15631
15650
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
15632
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref: resizeRef, ...(0,
|
|
15651
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref: resizeRef, ...(0, import_runtime51.trussProps)(getTableRefWidthStyles(as === "virtual")) }),
|
|
15633
15652
|
renders[_as](style, id, columns, visibleDataRows, keptSelectedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
15634
15653
|
] }) });
|
|
15635
15654
|
}
|
|
@@ -15639,7 +15658,7 @@ var renders = {
|
|
|
15639
15658
|
virtual: renderVirtual
|
|
15640
15659
|
};
|
|
15641
15660
|
function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
15642
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { ref: tableContainerRef, ...(0,
|
|
15661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { ref: tableContainerRef, ...(0, import_runtime51.trussProps)({
|
|
15643
15662
|
// Use `fit-content` to ensure the width of the table takes up the full width of its content.
|
|
15644
15663
|
// Otherwise, the table's width would be that of its container, which may not be as wide as the table itself.
|
|
15645
15664
|
// In cases where we have sticky columns on a very wide table, then the container which the columns "stick" to (which is the table),
|
|
@@ -15655,7 +15674,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15655
15674
|
} : {},
|
|
15656
15675
|
...xss
|
|
15657
15676
|
}), "data-testid": id, children: [
|
|
15658
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15677
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15659
15678
|
...stickyHeader ? {
|
|
15660
15679
|
position: "sticky",
|
|
15661
15680
|
top: ["top_var", {
|
|
@@ -15668,7 +15687,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15668
15687
|
}), children: tableHeadRows }),
|
|
15669
15688
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
|
|
15670
15689
|
keptSelectedRows,
|
|
15671
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15690
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15672
15691
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15673
15692
|
...style.firstRowMessageCss,
|
|
15674
15693
|
...visibleDataRows.length === 0 && style.lastRowCss,
|
|
@@ -15681,7 +15700,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15681
15700
|
] });
|
|
15682
15701
|
}
|
|
15683
15702
|
function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
15684
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("table", { ref: tableContainerRef, ...(0,
|
|
15703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("table", { ref: tableContainerRef, ...(0, import_runtime51.trussProps)({
|
|
15685
15704
|
...{
|
|
15686
15705
|
width: "w100",
|
|
15687
15706
|
borderCollapse: "borderCollapse_separate",
|
|
@@ -15695,7 +15714,7 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firs
|
|
|
15695
15714
|
} : {},
|
|
15696
15715
|
...xss
|
|
15697
15716
|
}), "data-testid": id, children: [
|
|
15698
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("thead", { ...(0,
|
|
15717
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("thead", { ...(0, import_runtime51.trussProps)({
|
|
15699
15718
|
...stickyHeader ? {
|
|
15700
15719
|
position: "sticky",
|
|
15701
15720
|
top: ["top_var", {
|
|
@@ -15708,11 +15727,11 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firs
|
|
|
15708
15727
|
}), children: tableHeadRows }),
|
|
15709
15728
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("tbody", { children: [
|
|
15710
15729
|
keptSelectedRows,
|
|
15711
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tr", { ...(0,
|
|
15730
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tr", { ...(0, import_runtime51.trussProps)({
|
|
15712
15731
|
...tableRowPrintBreakCss,
|
|
15713
15732
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15714
15733
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
15715
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("td", { colSpan: columns.length, ...(0,
|
|
15734
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("td", { colSpan: columns.length, ...(0, import_runtime51.trussProps)({
|
|
15716
15735
|
...style.betweenRowsCss,
|
|
15717
15736
|
...style.firstRowMessageCss,
|
|
15718
15737
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
@@ -15755,7 +15774,7 @@ function renderVirtual(style, id, columns, visibleDataRows, keptSelectedRows, fi
|
|
|
15755
15774
|
} })),
|
|
15756
15775
|
List: VirtualRoot(style, columns, id, xss),
|
|
15757
15776
|
Footer: () => {
|
|
15758
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15759
15778
|
...style.virtualFooterPaddingBottomPx !== void 0 ? {
|
|
15760
15779
|
paddingBottom: ["pb_var", {
|
|
15761
15780
|
"--paddingBottom": `${style.virtualFooterPaddingBottomPx ?? 0}px`
|
|
@@ -15778,11 +15797,11 @@ function renderVirtual(style, id, columns, visibleDataRows, keptSelectedRows, fi
|
|
|
15778
15797
|
if (index === 0) {
|
|
15779
15798
|
return (
|
|
15780
15799
|
// Ensure the fallback message is the same width as the table
|
|
15781
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15800
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15782
15801
|
...getTableRefWidthStyles(true),
|
|
15783
15802
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15784
15803
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
15785
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15804
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15786
15805
|
...style.firstRowMessageCss,
|
|
15787
15806
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
15788
15807
|
...visibleDataRows.length === 0 && style.lastRowFirstCellCss,
|
|
@@ -15827,7 +15846,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
15827
15846
|
style,
|
|
15828
15847
|
children
|
|
15829
15848
|
}, ref) {
|
|
15830
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref, ...(0,
|
|
15849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref, ...(0, import_runtime51.mergeProps)(void 0, style, {
|
|
15831
15850
|
...gs.rootCss,
|
|
15832
15851
|
...gs.minWidthPx ? {
|
|
15833
15852
|
minWidth: ["mw_var", {
|
|
@@ -15843,7 +15862,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
15843
15862
|
});
|
|
15844
15863
|
|
|
15845
15864
|
// src/components/ToggleChip.tsx
|
|
15846
|
-
var
|
|
15865
|
+
var import_runtime52 = require("@homebound/truss/runtime");
|
|
15847
15866
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
15848
15867
|
function ToggleChip(props) {
|
|
15849
15868
|
const {
|
|
@@ -15862,7 +15881,7 @@ function ToggleChip(props) {
|
|
|
15862
15881
|
} = useHover2({});
|
|
15863
15882
|
const compact = fieldProps?.compact;
|
|
15864
15883
|
const tid = useTestIds(props, "chip");
|
|
15865
|
-
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("button", { type: "button", ...(0,
|
|
15884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("button", { type: "button", ...(0, import_runtime52.trussProps)({
|
|
15866
15885
|
...chipBaseStyles(compact),
|
|
15867
15886
|
...isHovered && !disabled && chipHoverStyles,
|
|
15868
15887
|
// Use a lower right-padding to get closer to the `X` circle when clearable, i.e. not disabled
|
|
@@ -15878,7 +15897,7 @@ function ToggleChip(props) {
|
|
|
15878
15897
|
...xss
|
|
15879
15898
|
}), disabled, onClick, ...hoverProps, ...tid, children: [
|
|
15880
15899
|
icon && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "fs0", ...tid.icon, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon, { icon, color: "rgba(36, 36, 36, 1)" /* Gray900 */, inc: 2 }) }),
|
|
15881
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { ...(0,
|
|
15900
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { ...(0, import_runtime52.trussProps)({
|
|
15882
15901
|
textAlign: "tal",
|
|
15883
15902
|
overflow: "oh",
|
|
15884
15903
|
display: "d_negwebkit_box",
|
|
@@ -15890,7 +15909,7 @@ function ToggleChip(props) {
|
|
|
15890
15909
|
paddingRight: "pr0"
|
|
15891
15910
|
} : {}
|
|
15892
15911
|
}), title: text, children: text }),
|
|
15893
|
-
!disabled && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { ...(0,
|
|
15912
|
+
!disabled && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { ...(0, import_runtime52.trussProps)({
|
|
15894
15913
|
...{
|
|
15895
15914
|
flexShrink: "fs0",
|
|
15896
15915
|
borderRadius: "br16",
|
|
@@ -15912,7 +15931,7 @@ var chipDisabledStyles = {
|
|
|
15912
15931
|
};
|
|
15913
15932
|
|
|
15914
15933
|
// src/components/ToggleChips.tsx
|
|
15915
|
-
var
|
|
15934
|
+
var import_runtime53 = require("@homebound/truss/runtime");
|
|
15916
15935
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
15917
15936
|
function ToggleChips(props) {
|
|
15918
15937
|
const {
|
|
@@ -15922,7 +15941,7 @@ function ToggleChips(props) {
|
|
|
15922
15941
|
xss
|
|
15923
15942
|
} = props;
|
|
15924
15943
|
const tid = useTestIds(props, "toggleChips");
|
|
15925
|
-
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...(0,
|
|
15944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...(0, import_runtime53.trussProps)({
|
|
15926
15945
|
...{
|
|
15927
15946
|
display: "df",
|
|
15928
15947
|
flexWrap: "flexWrap_wrap",
|
|
@@ -15936,7 +15955,7 @@ function ToggleChips(props) {
|
|
|
15936
15955
|
var import_utils69 = require("@react-aria/utils");
|
|
15937
15956
|
var import_react73 = require("react");
|
|
15938
15957
|
var import_react_aria40 = require("react-aria");
|
|
15939
|
-
var
|
|
15958
|
+
var import_runtime54 = require("@homebound/truss/runtime");
|
|
15940
15959
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
15941
15960
|
var __maybeInc8 = (inc) => {
|
|
15942
15961
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -16036,7 +16055,7 @@ function Accordion(props) {
|
|
|
16036
16055
|
},
|
|
16037
16056
|
...xss
|
|
16038
16057
|
}), [compact, disabled, isFocusVisible, titleOnClick, xss]);
|
|
16039
|
-
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { ...tid.container, ...(0,
|
|
16058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { ...tid.container, ...(0, import_runtime54.trussProps)({
|
|
16040
16059
|
...{
|
|
16041
16060
|
borderColor: "bcGray300",
|
|
16042
16061
|
...topBorder ? {
|
|
@@ -16055,13 +16074,13 @@ function Accordion(props) {
|
|
|
16055
16074
|
} : {}
|
|
16056
16075
|
}), children: [
|
|
16057
16076
|
titleOnClick ? /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { ...focusProps, "aria-controls": id, "aria-expanded": expanded, className: "df", children: [
|
|
16058
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("button", { ...tid.title, disabled, ...(0,
|
|
16077
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("button", { ...tid.title, disabled, ...(0, import_runtime54.trussProps)({
|
|
16059
16078
|
...touchableStyle,
|
|
16060
16079
|
...{
|
|
16061
16080
|
flexGrow: "fg1"
|
|
16062
16081
|
}
|
|
16063
16082
|
}), onClick: titleOnClick, children: title }),
|
|
16064
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("button", { ...tid.toggle, disabled, ...(0,
|
|
16083
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("button", { ...tid.toggle, disabled, ...(0, import_runtime54.trussProps)({
|
|
16065
16084
|
...touchableStyle,
|
|
16066
16085
|
...{
|
|
16067
16086
|
paddingLeft: "pl2",
|
|
@@ -16073,7 +16092,7 @@ function Accordion(props) {
|
|
|
16073
16092
|
} : {}
|
|
16074
16093
|
}
|
|
16075
16094
|
}), onClick: toggle, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RotatingChevronIcon, { expanded }) })
|
|
16076
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("button", { ...tid.title, ...focusProps, "aria-controls": id, "aria-expanded": expanded, disabled, ...(0,
|
|
16095
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("button", { ...tid.title, ...focusProps, "aria-controls": id, "aria-expanded": expanded, disabled, ...(0, import_runtime54.trussProps)({
|
|
16077
16096
|
...{
|
|
16078
16097
|
width: "w100"
|
|
16079
16098
|
},
|
|
@@ -16082,13 +16101,13 @@ function Accordion(props) {
|
|
|
16082
16101
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "fg1 tal", children: title }),
|
|
16083
16102
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RotatingChevronIcon, { expanded })
|
|
16084
16103
|
] }),
|
|
16085
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0,
|
|
16104
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0, import_runtime54.trussProps)({
|
|
16086
16105
|
overflow: "oh",
|
|
16087
16106
|
height: ["h_var", {
|
|
16088
16107
|
"--height": __maybeInc8(contentHeight)
|
|
16089
16108
|
}],
|
|
16090
16109
|
transition: "transition_height_250ms_ease_in_out"
|
|
16091
|
-
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...(0,
|
|
16110
|
+
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...(0, import_runtime54.trussProps)({
|
|
16092
16111
|
paddingLeft: "pl2",
|
|
16093
16112
|
paddingRight: "pr2",
|
|
16094
16113
|
paddingBottom: "pb2",
|
|
@@ -16103,7 +16122,7 @@ function Accordion(props) {
|
|
|
16103
16122
|
] });
|
|
16104
16123
|
}
|
|
16105
16124
|
function RotatingChevronIcon(props) {
|
|
16106
|
-
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { ...(0,
|
|
16125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { ...(0, import_runtime54.trussProps)({
|
|
16107
16126
|
flexShrink: "fs0",
|
|
16108
16127
|
transition: "transition_transform_250ms_linear",
|
|
16109
16128
|
transform: ["transform_var", {
|
|
@@ -16203,7 +16222,7 @@ function Indicator({
|
|
|
16203
16222
|
}
|
|
16204
16223
|
|
|
16205
16224
|
// src/components/Banner.tsx
|
|
16206
|
-
var
|
|
16225
|
+
var import_runtime55 = require("@homebound/truss/runtime");
|
|
16207
16226
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
16208
16227
|
function Banner(props) {
|
|
16209
16228
|
const {
|
|
@@ -16214,7 +16233,7 @@ function Banner(props) {
|
|
|
16214
16233
|
...others
|
|
16215
16234
|
} = props;
|
|
16216
16235
|
const tid = useTestIds(others, "banner");
|
|
16217
|
-
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0,
|
|
16236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0, import_runtime55.trussProps)({
|
|
16218
16237
|
...variantStyles2[type],
|
|
16219
16238
|
...{
|
|
16220
16239
|
display: "df",
|
|
@@ -16338,7 +16357,7 @@ function useModal() {
|
|
|
16338
16357
|
}
|
|
16339
16358
|
|
|
16340
16359
|
// src/components/Modal/Modal.tsx
|
|
16341
|
-
var
|
|
16360
|
+
var import_runtime56 = require("@homebound/truss/runtime");
|
|
16342
16361
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
16343
16362
|
function Modal(props) {
|
|
16344
16363
|
const {
|
|
@@ -16419,7 +16438,7 @@ function Modal(props) {
|
|
|
16419
16438
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16420
16439
|
[modalBodyRef, modalFooterRef, modalHeaderRef]
|
|
16421
16440
|
);
|
|
16422
|
-
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria41.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "fixed tp_0 bot_0 l_0 r_0 df aic jcc bgc_rgba_36_36_36_0_6 z4", ...underlayProps, ...testId.underlay, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria41.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { ...(0,
|
|
16441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria41.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "fixed tp_0 bot_0 l_0 r_0 df aic jcc bgc_rgba_36_36_36_0_6 z4", ...underlayProps, ...testId.underlay, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria41.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { ...(0, import_runtime56.trussProps)({
|
|
16423
16442
|
borderRadius: "br24",
|
|
16424
16443
|
backgroundColor: "bgWhite",
|
|
16425
16444
|
boxShadow: "bshModal",
|
|
@@ -16445,7 +16464,7 @@ function Modal(props) {
|
|
|
16445
16464
|
borderRadius: "br0"
|
|
16446
16465
|
} : {}
|
|
16447
16466
|
}), ref, ...overlayProps, ...dialogProps, ...modalProps, ...testId, children: [
|
|
16448
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("header", { ...(0,
|
|
16467
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("header", { ...(0, import_runtime56.trussProps)({
|
|
16449
16468
|
display: "df",
|
|
16450
16469
|
flexDirection: "fdrr",
|
|
16451
16470
|
paddingTop: "pt3",
|
|
@@ -16462,7 +16481,7 @@ function Modal(props) {
|
|
|
16462
16481
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "fs0 pl1", children: allowClosing && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(IconButton, { icon: "x", onClick: closeModal, ...testId.titleClose }) }),
|
|
16463
16482
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h1", { className: "fg1 fw6 fz_30px lh_36px gray900", ref: modalHeaderRef, ...titleProps, ...testId.title })
|
|
16464
16483
|
] }),
|
|
16465
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("main", { ref: modalBodyRef, ...(0,
|
|
16484
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("main", { ref: modalBodyRef, ...(0, import_runtime56.trussProps)({
|
|
16466
16485
|
flexGrow: "fg1",
|
|
16467
16486
|
overflowY: "oya",
|
|
16468
16487
|
...hasScroll ? {
|
|
@@ -16495,7 +16514,7 @@ function ModalBody({
|
|
|
16495
16514
|
const testId = useTestIds({}, testIdPrefix);
|
|
16496
16515
|
return (0, import_react_dom3.createPortal)(
|
|
16497
16516
|
// If `virtualized`, then we are expecting the `children` will handle their own scrollbar, so have the overflow hidden and adjust padding
|
|
16498
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ...(0,
|
|
16517
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ...(0, import_runtime56.trussProps)({
|
|
16499
16518
|
height: "h100",
|
|
16500
16519
|
...virtualized ? {
|
|
16501
16520
|
overflow: "oh",
|
|
@@ -16516,7 +16535,7 @@ function ModalFooter({
|
|
|
16516
16535
|
modalFooterDiv
|
|
16517
16536
|
} = useBeamContext();
|
|
16518
16537
|
const testId = useTestIds({}, testIdPrefix);
|
|
16519
|
-
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ...(0,
|
|
16538
|
+
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ...(0, import_runtime56.trussProps)({
|
|
16520
16539
|
...{
|
|
16521
16540
|
paddingTop: "pt3",
|
|
16522
16541
|
paddingBottom: "pb3",
|
|
@@ -16551,7 +16570,7 @@ function getSize(size) {
|
|
|
16551
16570
|
var import_react79 = require("react");
|
|
16552
16571
|
|
|
16553
16572
|
// src/components/Snackbar/SnackbarNotice.tsx
|
|
16554
|
-
var
|
|
16573
|
+
var import_runtime57 = require("@homebound/truss/runtime");
|
|
16555
16574
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
16556
16575
|
function SnackbarNotice(props) {
|
|
16557
16576
|
const {
|
|
@@ -16569,7 +16588,7 @@ function SnackbarNotice(props) {
|
|
|
16569
16588
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
16570
16589
|
"span",
|
|
16571
16590
|
{
|
|
16572
|
-
...(0,
|
|
16591
|
+
...(0, import_runtime57.trussProps)({
|
|
16573
16592
|
overflow: "oh",
|
|
16574
16593
|
display: "d_negwebkit_box",
|
|
16575
16594
|
WebkitBoxOrient: "wbo_vertical",
|
|
@@ -16590,7 +16609,7 @@ function SnackbarNotice(props) {
|
|
|
16590
16609
|
}
|
|
16591
16610
|
),
|
|
16592
16611
|
(action || !reallyHideClose) && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("span", { className: "fs0 df aic", children: [
|
|
16593
|
-
action && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { ...(0,
|
|
16612
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { ...(0, import_runtime57.trussProps)({
|
|
16594
16613
|
textTransform: "ttu",
|
|
16595
16614
|
fontWeight: "fw4",
|
|
16596
16615
|
fontSize: "fz_14px",
|
|
@@ -16628,7 +16647,7 @@ var typeToIcon2 = {
|
|
|
16628
16647
|
};
|
|
16629
16648
|
|
|
16630
16649
|
// src/components/Snackbar/Snackbar.tsx
|
|
16631
|
-
var
|
|
16650
|
+
var import_runtime58 = require("@homebound/truss/runtime");
|
|
16632
16651
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
16633
16652
|
function Snackbar({
|
|
16634
16653
|
notices,
|
|
@@ -16639,7 +16658,7 @@ function Snackbar({
|
|
|
16639
16658
|
"div",
|
|
16640
16659
|
{
|
|
16641
16660
|
...tid.snackbarWrapper,
|
|
16642
|
-
...(0,
|
|
16661
|
+
...(0, import_runtime58.trussProps)({
|
|
16643
16662
|
position: "fixed",
|
|
16644
16663
|
zIndex: "z9999",
|
|
16645
16664
|
bottom: ["bottom_var", {
|
|
@@ -16690,7 +16709,7 @@ var SuperDrawerWidth = /* @__PURE__ */ ((SuperDrawerWidth2) => {
|
|
|
16690
16709
|
})(SuperDrawerWidth || {});
|
|
16691
16710
|
|
|
16692
16711
|
// src/components/SuperDrawer/SuperDrawer.tsx
|
|
16693
|
-
var
|
|
16712
|
+
var import_runtime59 = require("@homebound/truss/runtime");
|
|
16694
16713
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
16695
16714
|
var import_react81 = require("react");
|
|
16696
16715
|
function SuperDrawer() {
|
|
@@ -16752,7 +16771,7 @@ function SuperDrawer() {
|
|
|
16752
16771
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
16753
16772
|
import_framer_motion.motion.aside,
|
|
16754
16773
|
{
|
|
16755
|
-
...(0,
|
|
16774
|
+
...(0, import_runtime59.trussProps)({
|
|
16756
16775
|
backgroundColor: "bgWhite",
|
|
16757
16776
|
height: "h100",
|
|
16758
16777
|
maxWidth: ["maxw_var", {
|
|
@@ -17053,7 +17072,7 @@ var import_mobx_react8 = require("mobx-react");
|
|
|
17053
17072
|
// src/inputs/IconCardGroup.tsx
|
|
17054
17073
|
var import_react82 = require("react");
|
|
17055
17074
|
var import_react_aria42 = require("react-aria");
|
|
17056
|
-
var
|
|
17075
|
+
var import_runtime60 = require("@homebound/truss/runtime");
|
|
17057
17076
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
17058
17077
|
function IconCardGroup(props) {
|
|
17059
17078
|
const {
|
|
@@ -17100,7 +17119,7 @@ function IconCardGroup(props) {
|
|
|
17100
17119
|
...fieldPropsAria
|
|
17101
17120
|
});
|
|
17102
17121
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { ...groupProps, children: [
|
|
17103
|
-
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { ...(0,
|
|
17122
|
+
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { ...(0, import_runtime60.trussProps)({
|
|
17104
17123
|
...labelStyle === "left" ? {
|
|
17105
17124
|
width: "w50"
|
|
17106
17125
|
} : {}
|
|
@@ -17646,7 +17665,7 @@ function BoundTreeSelectField(props) {
|
|
|
17646
17665
|
|
|
17647
17666
|
// src/forms/FormLines.tsx
|
|
17648
17667
|
var import_react83 = require("react");
|
|
17649
|
-
var
|
|
17668
|
+
var import_runtime61 = require("@homebound/truss/runtime");
|
|
17650
17669
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
17651
17670
|
var __maybeInc9 = (inc) => {
|
|
17652
17671
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -17682,7 +17701,7 @@ function FormLines(props) {
|
|
|
17682
17701
|
fullWidth: true
|
|
17683
17702
|
} : {}
|
|
17684
17703
|
};
|
|
17685
|
-
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0,
|
|
17704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0, import_runtime61.trussProps)({
|
|
17686
17705
|
display: "df",
|
|
17687
17706
|
flexDirection: "fdc",
|
|
17688
17707
|
gap: ["gap_var", {
|
|
@@ -17718,7 +17737,7 @@ function FieldGroup(props) {
|
|
|
17718
17737
|
const width2 = widths2[i] || 1;
|
|
17719
17738
|
return typeof width2 === `number` ? `${width2}fr` : width2;
|
|
17720
17739
|
}).join(" ");
|
|
17721
|
-
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0,
|
|
17740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0, import_runtime61.trussProps)({
|
|
17722
17741
|
display: "dg",
|
|
17723
17742
|
gap: "gap2",
|
|
17724
17743
|
gridTemplateColumns: ["gtc_var", {
|
|
@@ -17734,7 +17753,7 @@ var sizes = {
|
|
|
17734
17753
|
};
|
|
17735
17754
|
|
|
17736
17755
|
// src/forms/BoundForm.tsx
|
|
17737
|
-
var
|
|
17756
|
+
var import_runtime62 = require("@homebound/truss/runtime");
|
|
17738
17757
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
17739
17758
|
var import_react85 = require("react");
|
|
17740
17759
|
var reactNodePrefix = "reactNode";
|
|
@@ -17789,7 +17808,7 @@ function FormRow({
|
|
|
17789
17808
|
component,
|
|
17790
17809
|
key,
|
|
17791
17810
|
minWidth
|
|
17792
|
-
}) => /* @__PURE__ */ (0, import_react85.createElement)("div", { ...(0,
|
|
17811
|
+
}) => /* @__PURE__ */ (0, import_react85.createElement)("div", { ...(0, import_runtime62.trussProps)({
|
|
17793
17812
|
minWidth: ["mw_var", {
|
|
17794
17813
|
"--minWidth": minWidth
|
|
17795
17814
|
}],
|
|
@@ -17907,7 +17926,7 @@ function boundTreeSelectField(props) {
|
|
|
17907
17926
|
|
|
17908
17927
|
// src/components/internal/CompoundField.tsx
|
|
17909
17928
|
var import_react86 = require("react");
|
|
17910
|
-
var
|
|
17929
|
+
var import_runtime63 = require("@homebound/truss/runtime");
|
|
17911
17930
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
17912
17931
|
function CompoundField({
|
|
17913
17932
|
children
|
|
@@ -17941,7 +17960,7 @@ function CompoundField({
|
|
|
17941
17960
|
setHasFocusWithin(false);
|
|
17942
17961
|
}
|
|
17943
17962
|
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "df", onFocusCapture, onBlurCapture, children: [
|
|
17944
|
-
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0,
|
|
17963
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17945
17964
|
...commonStyles,
|
|
17946
17965
|
...{
|
|
17947
17966
|
borderLeftStyle: "bls_solid",
|
|
@@ -17954,7 +17973,7 @@ function CompoundField({
|
|
|
17954
17973
|
}), children: (0, import_react86.cloneElement)(children[0], {
|
|
17955
17974
|
internalProps
|
|
17956
17975
|
}) }),
|
|
17957
|
-
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0,
|
|
17976
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17958
17977
|
...{
|
|
17959
17978
|
width: "w_1px",
|
|
17960
17979
|
flex: "fn",
|
|
@@ -17964,7 +17983,7 @@ function CompoundField({
|
|
|
17964
17983
|
backgroundColor: "bgBlue700"
|
|
17965
17984
|
}
|
|
17966
17985
|
}) }),
|
|
17967
|
-
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0,
|
|
17986
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17968
17987
|
...commonStyles,
|
|
17969
17988
|
...{
|
|
17970
17989
|
flexGrow: "fg1",
|
|
@@ -18008,7 +18027,7 @@ function BoundSelectAndTextField(props) {
|
|
|
18008
18027
|
}
|
|
18009
18028
|
|
|
18010
18029
|
// src/forms/FormHeading.tsx
|
|
18011
|
-
var
|
|
18030
|
+
var import_runtime64 = require("@homebound/truss/runtime");
|
|
18012
18031
|
var import_jsx_runtime117 = (
|
|
18013
18032
|
// Add space before the heading, but only if it's not first.
|
|
18014
18033
|
require("react/jsx-runtime")
|
|
@@ -18020,7 +18039,7 @@ function FormHeading(props) {
|
|
|
18020
18039
|
isFirst = false,
|
|
18021
18040
|
...others
|
|
18022
18041
|
} = props;
|
|
18023
|
-
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("h3", { ...(0,
|
|
18042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("h3", { ...(0, import_runtime64.trussProps)({
|
|
18024
18043
|
...{
|
|
18025
18044
|
fontWeight: "fw4",
|
|
18026
18045
|
fontSize: "fz_16px",
|
|
@@ -18036,7 +18055,7 @@ FormHeading.isFormHeading = true;
|
|
|
18036
18055
|
|
|
18037
18056
|
// src/forms/StaticField.tsx
|
|
18038
18057
|
var import_utils101 = require("@react-aria/utils");
|
|
18039
|
-
var
|
|
18058
|
+
var import_runtime65 = require("@homebound/truss/runtime");
|
|
18040
18059
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
18041
18060
|
function StaticField(props) {
|
|
18042
18061
|
const {
|
|
@@ -18050,7 +18069,7 @@ function StaticField(props) {
|
|
|
18050
18069
|
} = props;
|
|
18051
18070
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
18052
18071
|
const id = (0, import_utils101.useId)();
|
|
18053
|
-
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { ...(0,
|
|
18072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { ...(0, import_runtime65.trussProps)({
|
|
18054
18073
|
...labelStyle === "left" ? {
|
|
18055
18074
|
display: "df",
|
|
18056
18075
|
justifyContent: "jcsb",
|
|
@@ -18058,7 +18077,7 @@ function StaticField(props) {
|
|
|
18058
18077
|
} : {}
|
|
18059
18078
|
}), ...tid.container, children: [
|
|
18060
18079
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "db fw4 fz_14px lh_20px gray700 mb_4px", htmlFor: id, ...tid.label, children: label }),
|
|
18061
|
-
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { id, ...(0,
|
|
18080
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { id, ...(0, import_runtime65.trussProps)({
|
|
18062
18081
|
fontWeight: "fw4",
|
|
18063
18082
|
fontSize: "fz_14px",
|
|
18064
18083
|
lineHeight: "lh_20px",
|
|
@@ -18106,7 +18125,7 @@ var import_use_debounce6 = require("use-debounce");
|
|
|
18106
18125
|
// src/components/RightSidebar.tsx
|
|
18107
18126
|
var import_framer_motion2 = require("framer-motion");
|
|
18108
18127
|
var import_react87 = require("react");
|
|
18109
|
-
var
|
|
18128
|
+
var import_runtime66 = require("@homebound/truss/runtime");
|
|
18110
18129
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
18111
18130
|
var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
|
|
18112
18131
|
function RightSidebar({
|
|
@@ -18146,7 +18165,7 @@ function RightSidebar({
|
|
|
18146
18165
|
duration: 0.2
|
|
18147
18166
|
},
|
|
18148
18167
|
x: "100%"
|
|
18149
|
-
}, ...(0,
|
|
18168
|
+
}, ...(0, import_runtime66.trussProps)({
|
|
18150
18169
|
width: "w100",
|
|
18151
18170
|
minWidth: ["mw_var", {
|
|
18152
18171
|
"--minWidth": RIGHT_SIDEBAR_MIN_WIDTH
|
|
@@ -18160,7 +18179,7 @@ function RightSidebar({
|
|
|
18160
18179
|
paddingRight: "pr3"
|
|
18161
18180
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_jsx_runtime120.Fragment, { children: [
|
|
18162
18181
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "sticky top0 bgWhite", children: [
|
|
18163
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { ...(0,
|
|
18182
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { ...(0, import_runtime66.trussProps)({
|
|
18164
18183
|
position: "absolute",
|
|
18165
18184
|
left: ["left_var", {
|
|
18166
18185
|
"--left": `${-24}px`
|
|
@@ -18231,7 +18250,7 @@ function Toast() {
|
|
|
18231
18250
|
// src/components/Layout/PageHeaderBreadcrumbs.tsx
|
|
18232
18251
|
var import_react89 = require("react");
|
|
18233
18252
|
var import_react_router_dom4 = require("react-router-dom");
|
|
18234
|
-
var
|
|
18253
|
+
var import_runtime67 = require("@homebound/truss/runtime");
|
|
18235
18254
|
var import_jsx_runtime123 = (
|
|
18236
18255
|
// Adding index to key to prevent rendering issues when multiple items have the same label
|
|
18237
18256
|
require("react/jsx-runtime")
|
|
@@ -18245,7 +18264,7 @@ function PageHeaderBreadcrumbs({
|
|
|
18245
18264
|
function renderBreadcrumb(bc, index, hideDivisor) {
|
|
18246
18265
|
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_react89.Fragment, { children: [
|
|
18247
18266
|
index > 0 && !hideDivisor && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { className: "fw6 fz_14px lh_20px gray700 ml1 mr1 mt_2px mb_2px", children: "/" }),
|
|
18248
|
-
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_react_router_dom4.Link, { to: bc.href, ...(0,
|
|
18267
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_react_router_dom4.Link, { to: bc.href, ...(0, import_runtime67.mergeProps)("navLink", void 0, {
|
|
18249
18268
|
fontWeight: "fw6",
|
|
18250
18269
|
fontSize: "fz_14px",
|
|
18251
18270
|
lineHeight: "lh_20px",
|
|
@@ -18263,7 +18282,7 @@ function PageHeaderBreadcrumbs({
|
|
|
18263
18282
|
}
|
|
18264
18283
|
|
|
18265
18284
|
// src/components/Layout/FormPageLayout.tsx
|
|
18266
|
-
var
|
|
18285
|
+
var import_runtime68 = require("@homebound/truss/runtime");
|
|
18267
18286
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
18268
18287
|
var headerHeightPx = 120;
|
|
18269
18288
|
var maxContentWidthPx = 1600;
|
|
@@ -18286,7 +18305,7 @@ function FormPageLayoutComponent(props) {
|
|
|
18286
18305
|
// since this layout will be replacing most superdrawers/sidebars, we keep the listing mounted below to preserve the users's
|
|
18287
18306
|
// scroll position & filters
|
|
18288
18307
|
// Adding "align-items: start" allows "position: sticky" to work within a grid for the sidebars
|
|
18289
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: "fixed top0 bottom0 left0 right0 z_1000 oya bgWhite df jcc aifs", ...tids, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { ...(0,
|
|
18308
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: "fixed top0 bottom0 left0 right0 z_1000 oya bgWhite df jcc aifs", ...tids, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { ...(0, import_runtime68.trussProps)({
|
|
18290
18309
|
width: "w100",
|
|
18291
18310
|
maxWidth: ["maxw_var", {
|
|
18292
18311
|
"--maxWidth": `${maxContentWidthPx}px`
|
|
@@ -18302,7 +18321,7 @@ function FormPageLayoutComponent(props) {
|
|
|
18302
18321
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(PageHeader, { ...props, ...tids.pageHeader }),
|
|
18303
18322
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(LeftNav, { sectionsWithRefs, ...tids }),
|
|
18304
18323
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(FormSections, { sectionsWithRefs, formState, ...tids }),
|
|
18305
|
-
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0,
|
|
18324
|
+
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0, import_runtime68.trussProps)({
|
|
18306
18325
|
gridRow: "gr_2",
|
|
18307
18326
|
gridColumn: "gc_3_4",
|
|
18308
18327
|
position: "sticky",
|
|
@@ -18327,7 +18346,7 @@ function PageHeader(props) {
|
|
|
18327
18346
|
notice
|
|
18328
18347
|
} = useToastContext();
|
|
18329
18348
|
const tids = useTestIds(props);
|
|
18330
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("header", { ...(0,
|
|
18349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("header", { ...(0, import_runtime68.trussProps)({
|
|
18331
18350
|
gridRow: "gr_1",
|
|
18332
18351
|
gridColumn: "gc_1_4",
|
|
18333
18352
|
position: "sticky",
|
|
@@ -18361,7 +18380,7 @@ function FormSections(props) {
|
|
|
18361
18380
|
} = props;
|
|
18362
18381
|
const tids = useTestIds(props);
|
|
18363
18382
|
const bottomPaddingPx = sectionsWithRefs.length > 1 ? 200 : 0;
|
|
18364
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("article", { ...(0,
|
|
18383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("article", { ...(0, import_runtime68.trussProps)({
|
|
18365
18384
|
gridRow: "gr_2",
|
|
18366
18385
|
gridColumn: "gc_2_3",
|
|
18367
18386
|
paddingBottom: ["pb_var", {
|
|
@@ -18379,7 +18398,7 @@ function FormSections(props) {
|
|
|
18379
18398
|
{
|
|
18380
18399
|
id: sectionKey,
|
|
18381
18400
|
ref,
|
|
18382
|
-
...(0,
|
|
18401
|
+
...(0, import_runtime68.trussProps)({
|
|
18383
18402
|
display: "dg",
|
|
18384
18403
|
gridTemplateColumns: "gtc_50px_1fr",
|
|
18385
18404
|
gridTemplateRows: "gtr_auto",
|
|
@@ -18410,7 +18429,7 @@ function LeftNav(props) {
|
|
|
18410
18429
|
section
|
|
18411
18430
|
}) => !!section.title), [sectionsWithRefs]);
|
|
18412
18431
|
const activeSection = useActiveSection(sectionWithTitles);
|
|
18413
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0,
|
|
18432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0, import_runtime68.trussProps)({
|
|
18414
18433
|
gridRow: "gr_2",
|
|
18415
18434
|
gridColumn: "gc_1_2",
|
|
18416
18435
|
position: "sticky",
|
|
@@ -18479,7 +18498,7 @@ function SectionNavLink(props) {
|
|
|
18479
18498
|
hoverProps,
|
|
18480
18499
|
isHovered
|
|
18481
18500
|
} = useHover2({});
|
|
18482
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
18501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime68.trussProps)({
|
|
18483
18502
|
...{
|
|
18484
18503
|
fontWeight: "fw6",
|
|
18485
18504
|
fontSize: "fz_14px",
|
|
@@ -18554,7 +18573,7 @@ function useActiveSection(sectionsWithRefs) {
|
|
|
18554
18573
|
}
|
|
18555
18574
|
|
|
18556
18575
|
// src/components/Layout/FullBleed.tsx
|
|
18557
|
-
var
|
|
18576
|
+
var import_runtime69 = require("@homebound/truss/runtime");
|
|
18558
18577
|
var import_react91 = require("react");
|
|
18559
18578
|
var __maybeInc10 = (inc) => {
|
|
18560
18579
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -18580,7 +18599,7 @@ function FullBleed({
|
|
|
18580
18599
|
// ...for some reason this keeps the Layout top padding better than using
|
|
18581
18600
|
// react-aria's more generic mergeProps.
|
|
18582
18601
|
{
|
|
18583
|
-
...(0,
|
|
18602
|
+
...(0, import_runtime69.mergeProps)(
|
|
18584
18603
|
className,
|
|
18585
18604
|
style,
|
|
18586
18605
|
// ScrollableParent applies horizontal padding to its content column, so FullBleed
|
|
@@ -18666,7 +18685,7 @@ function isSelectionButtonMenuProps(props) {
|
|
|
18666
18685
|
var import_react96 = require("react");
|
|
18667
18686
|
|
|
18668
18687
|
// src/components/CountBadge.tsx
|
|
18669
|
-
var
|
|
18688
|
+
var import_runtime70 = require("@homebound/truss/runtime");
|
|
18670
18689
|
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
18671
18690
|
function CountBadge(props) {
|
|
18672
18691
|
const {
|
|
@@ -18678,7 +18697,7 @@ function CountBadge(props) {
|
|
|
18678
18697
|
} = props;
|
|
18679
18698
|
const tid = useTestIds(otherProps, "countBadge");
|
|
18680
18699
|
if (hideIfZero && count === 0) return null;
|
|
18681
|
-
return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { ...tid, ...(0,
|
|
18700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { ...tid, ...(0, import_runtime70.trussProps)({
|
|
18682
18701
|
...{
|
|
18683
18702
|
height: ["sq_var", {
|
|
18684
18703
|
"--height": `${count > 100 ? 18 : 16}px`
|
|
@@ -19079,7 +19098,7 @@ function OpenModal(props) {
|
|
|
19079
19098
|
}
|
|
19080
19099
|
|
|
19081
19100
|
// src/components/Filters/FilterModal.tsx
|
|
19082
|
-
var
|
|
19101
|
+
var import_runtime71 = require("@homebound/truss/runtime");
|
|
19083
19102
|
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
19084
19103
|
function FilterModal(props) {
|
|
19085
19104
|
const {
|
|
@@ -19116,7 +19135,7 @@ function ModalFilterItem({
|
|
|
19116
19135
|
label,
|
|
19117
19136
|
children
|
|
19118
19137
|
}) {
|
|
19119
|
-
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { ...(0,
|
|
19138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { ...(0, import_runtime71.trussProps)({
|
|
19120
19139
|
marginBottom: "mb4",
|
|
19121
19140
|
...!label ? {
|
|
19122
19141
|
borderTopStyle: "bts_solid",
|
|
@@ -19125,7 +19144,7 @@ function ModalFilterItem({
|
|
|
19125
19144
|
} : {}
|
|
19126
19145
|
}), children: [
|
|
19127
19146
|
label && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("h2", { className: "fw4 fz_16px lh_24px mb2", children: label }),
|
|
19128
|
-
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { ...(0,
|
|
19147
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { ...(0, import_runtime71.trussProps)({
|
|
19129
19148
|
...!label ? {
|
|
19130
19149
|
paddingTop: "pt3"
|
|
19131
19150
|
} : {}
|
|
@@ -19135,7 +19154,7 @@ function ModalFilterItem({
|
|
|
19135
19154
|
|
|
19136
19155
|
// src/components/Filters/Filters.tsx
|
|
19137
19156
|
var import_react95 = require("react");
|
|
19138
|
-
var
|
|
19157
|
+
var import_runtime72 = require("@homebound/truss/runtime");
|
|
19139
19158
|
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
19140
19159
|
function Filters(props) {
|
|
19141
19160
|
const {
|
|
@@ -19159,7 +19178,7 @@ function Filters(props) {
|
|
|
19159
19178
|
}, [numberOfInlineFilters, vertical, filterDefs]);
|
|
19160
19179
|
const numModalFilters = safeKeys(modalFilters).filter((fk) => filter[fk] !== void 0).length;
|
|
19161
19180
|
const maybeGroupByField = groupBy ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(SelectField, { label: "Group by", labelStyle: !vertical ? "inline" : "above", sizeToContent: !vertical, options: groupBy.options, getOptionValue: (o) => o.id, getOptionLabel: (o) => o.name, value: groupBy.value, onSelect: (g) => g && groupBy.setValue(g) }) }) : null;
|
|
19162
|
-
return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)("div", { ...(0,
|
|
19181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)("div", { ...(0, import_runtime72.trussProps)({
|
|
19163
19182
|
...vertical ? {
|
|
19164
19183
|
display: "df",
|
|
19165
19184
|
flexDirection: "fdc",
|
|
@@ -19410,7 +19429,7 @@ function EditColumnsButton(props) {
|
|
|
19410
19429
|
}
|
|
19411
19430
|
|
|
19412
19431
|
// src/components/Table/TableActions.tsx
|
|
19413
|
-
var
|
|
19432
|
+
var import_runtime73 = require("@homebound/truss/runtime");
|
|
19414
19433
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
19415
19434
|
function TableActions(props) {
|
|
19416
19435
|
const {
|
|
@@ -19418,7 +19437,7 @@ function TableActions(props) {
|
|
|
19418
19437
|
children,
|
|
19419
19438
|
right
|
|
19420
19439
|
} = props;
|
|
19421
|
-
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { ...(0,
|
|
19440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { ...(0, import_runtime73.trussProps)({
|
|
19422
19441
|
...{
|
|
19423
19442
|
display: "df",
|
|
19424
19443
|
gap: "gap1",
|
|
@@ -19441,7 +19460,7 @@ var import_use_query_params3 = require("use-query-params");
|
|
|
19441
19460
|
var import_react98 = require("react");
|
|
19442
19461
|
|
|
19443
19462
|
// src/components/LoadingSkeleton.tsx
|
|
19444
|
-
var
|
|
19463
|
+
var import_runtime74 = require("@homebound/truss/runtime");
|
|
19445
19464
|
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
19446
19465
|
function LoadingSkeleton({
|
|
19447
19466
|
rows = 1,
|
|
@@ -19455,7 +19474,7 @@ function LoadingSkeleton({
|
|
|
19455
19474
|
const rowHeight = sizeToPixels2[size];
|
|
19456
19475
|
const rowCells = (rowNumber) => {
|
|
19457
19476
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
19458
|
-
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0,
|
|
19477
|
+
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0, import_runtime74.trussProps)({
|
|
19459
19478
|
borderRadius: "br4",
|
|
19460
19479
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
19461
19480
|
flexGrow: ["flexGrow_var", {
|
|
@@ -19467,7 +19486,7 @@ function LoadingSkeleton({
|
|
|
19467
19486
|
} : {}
|
|
19468
19487
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
19469
19488
|
};
|
|
19470
|
-
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0,
|
|
19489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0, import_runtime74.trussProps)({
|
|
19471
19490
|
display: "df",
|
|
19472
19491
|
gap: "gap1",
|
|
19473
19492
|
marginBottom: "mb1",
|
|
@@ -19508,7 +19527,7 @@ function LoadingTable(props) {
|
|
|
19508
19527
|
}
|
|
19509
19528
|
|
|
19510
19529
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
19511
|
-
var
|
|
19530
|
+
var import_runtime75 = require("@homebound/truss/runtime");
|
|
19512
19531
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
19513
19532
|
function isGridTableProps(props) {
|
|
19514
19533
|
return "rows" in props;
|
|
@@ -19642,7 +19661,7 @@ function Header2(props) {
|
|
|
19642
19661
|
actionMenu
|
|
19643
19662
|
} = props;
|
|
19644
19663
|
const tids = useTestIds(props);
|
|
19645
|
-
return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("header", { ...(0,
|
|
19664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("header", { ...(0, import_runtime75.trussProps)({
|
|
19646
19665
|
...{
|
|
19647
19666
|
paddingTop: "pt3",
|
|
19648
19667
|
paddingBottom: "pb3",
|
|
@@ -19740,7 +19759,7 @@ function useRightPaneContext() {
|
|
|
19740
19759
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
19741
19760
|
var import_framer_motion3 = require("framer-motion");
|
|
19742
19761
|
var import_react101 = require("react");
|
|
19743
|
-
var
|
|
19762
|
+
var import_runtime76 = require("@homebound/truss/runtime");
|
|
19744
19763
|
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
19745
19764
|
var __maybeInc11 = (inc) => {
|
|
19746
19765
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -19760,7 +19779,7 @@ function RightPaneLayout(props) {
|
|
|
19760
19779
|
} = useRightPaneContext();
|
|
19761
19780
|
(0, import_react101.useEffect)(() => closePane, [closePane]);
|
|
19762
19781
|
return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "h100 df oxh", children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, { children: [
|
|
19763
|
-
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0,
|
|
19782
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0, import_runtime76.trussProps)({
|
|
19764
19783
|
...{
|
|
19765
19784
|
width: ["w_var", {
|
|
19766
19785
|
"--width": __maybeInc11(`calc(100% - ${paneWidth + 24}px)`)
|
|
@@ -19785,7 +19804,7 @@ function RightPaneLayout(props) {
|
|
|
19785
19804
|
} : {}
|
|
19786
19805
|
}
|
|
19787
19806
|
}), children }),
|
|
19788
|
-
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { ...(0,
|
|
19807
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { ...(0, import_runtime76.trussProps)({
|
|
19789
19808
|
position: "relative",
|
|
19790
19809
|
...!!defaultPaneContent ? {
|
|
19791
19810
|
width: ["w_var", {
|
|
@@ -19793,7 +19812,7 @@ function RightPaneLayout(props) {
|
|
|
19793
19812
|
}]
|
|
19794
19813
|
} : {}
|
|
19795
19814
|
}), children: [
|
|
19796
|
-
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0,
|
|
19815
|
+
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0, import_runtime76.trussProps)({
|
|
19797
19816
|
height: "h100",
|
|
19798
19817
|
width: ["w_var", {
|
|
19799
19818
|
"--width": `${paneWidth}px`
|
|
@@ -19811,7 +19830,7 @@ function RightPaneLayout(props) {
|
|
|
19811
19830
|
{
|
|
19812
19831
|
layout: "position",
|
|
19813
19832
|
"data-testid": "rightPaneContent",
|
|
19814
|
-
...(0,
|
|
19833
|
+
...(0, import_runtime76.trussProps)({
|
|
19815
19834
|
backgroundColor: ["bgColor_var", {
|
|
19816
19835
|
"--backgroundColor": paneBgColor
|
|
19817
19836
|
}],
|
|
@@ -19957,7 +19976,7 @@ function ButtonDatePicker(props) {
|
|
|
19957
19976
|
// src/components/ButtonGroup.tsx
|
|
19958
19977
|
var import_react104 = require("react");
|
|
19959
19978
|
var import_react_aria48 = require("react-aria");
|
|
19960
|
-
var
|
|
19979
|
+
var import_runtime77 = require("@homebound/truss/runtime");
|
|
19961
19980
|
var import_jsx_runtime151 = (
|
|
19962
19981
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
19963
19982
|
require("react/jsx-runtime")
|
|
@@ -19971,7 +19990,7 @@ function ButtonGroup(props) {
|
|
|
19971
19990
|
const tid = useTestIds(props, "buttonGroup");
|
|
19972
19991
|
return (
|
|
19973
19992
|
// Adding `line-height: 0` prevent inheriting line-heights that might throw off sizing within the button group.
|
|
19974
|
-
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...tid, ...(0,
|
|
19993
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...tid, ...(0, import_runtime77.trussProps)({
|
|
19975
19994
|
...{
|
|
19976
19995
|
display: "df",
|
|
19977
19996
|
lineHeight: "lh_0"
|
|
@@ -20017,10 +20036,10 @@ function GroupButton(props) {
|
|
|
20017
20036
|
isHovered
|
|
20018
20037
|
} = (0, import_react_aria48.useHover)(ariaProps);
|
|
20019
20038
|
const tid = useTestIds(props);
|
|
20020
|
-
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { ...(0,
|
|
20039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { ...(0, import_runtime77.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
20021
20040
|
title: resolveTooltip(disabled, tooltip),
|
|
20022
20041
|
placement: "top",
|
|
20023
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
20042
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime77.trussProps)({
|
|
20024
20043
|
...{
|
|
20025
20044
|
fontWeight: "fw6",
|
|
20026
20045
|
fontSize: "fz_14px",
|
|
@@ -20127,7 +20146,7 @@ var import_react_aria49 = require("react-aria");
|
|
|
20127
20146
|
// src/components/Tag.tsx
|
|
20128
20147
|
var import_utils118 = require("@react-aria/utils");
|
|
20129
20148
|
var import_react105 = require("react");
|
|
20130
|
-
var
|
|
20149
|
+
var import_runtime78 = require("@homebound/truss/runtime");
|
|
20131
20150
|
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
20132
20151
|
function Tag(props) {
|
|
20133
20152
|
const {
|
|
@@ -20151,7 +20170,7 @@ function Tag(props) {
|
|
|
20151
20170
|
});
|
|
20152
20171
|
return maybeTooltip({
|
|
20153
20172
|
title: !preventTooltip && showTooltip ? text : void 0,
|
|
20154
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { ...tid, ...(0,
|
|
20173
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { ...tid, ...(0, import_runtime78.trussProps)({
|
|
20155
20174
|
...{
|
|
20156
20175
|
display: "dif",
|
|
20157
20176
|
fontWeight: "fw6",
|
|
@@ -20201,7 +20220,7 @@ function getStyles(type) {
|
|
|
20201
20220
|
}
|
|
20202
20221
|
|
|
20203
20222
|
// src/components/Card.tsx
|
|
20204
|
-
var
|
|
20223
|
+
var import_runtime79 = require("@homebound/truss/runtime");
|
|
20205
20224
|
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
20206
20225
|
function Card(props) {
|
|
20207
20226
|
const {
|
|
@@ -20232,8 +20251,8 @@ function Card(props) {
|
|
|
20232
20251
|
...isHovered && cardHoverStyles,
|
|
20233
20252
|
...isDisabled && disabledStyles3
|
|
20234
20253
|
}), [isDisabled, isHovered, bordered, type, isList]);
|
|
20235
|
-
return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { ...(0,
|
|
20236
|
-
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { ...(0, import_runtime79.trussProps)(styles), ...hoverProps, ...tid, children: [
|
|
20255
|
+
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20237
20256
|
...{
|
|
20238
20257
|
height: ["h_var", {
|
|
20239
20258
|
"--height": `${imgHeight}px`
|
|
@@ -20250,14 +20269,14 @@ function Card(props) {
|
|
|
20250
20269
|
filter: "filter_brightness_1"
|
|
20251
20270
|
},
|
|
20252
20271
|
...isHovered && !isList && imageHoverStyles
|
|
20253
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("img", { ...(0,
|
|
20272
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("img", { ...(0, import_runtime79.trussProps)({
|
|
20254
20273
|
width: "w100",
|
|
20255
20274
|
height: "h100",
|
|
20256
20275
|
objectFit: ["objectFit_var", {
|
|
20257
20276
|
"--objectFit": imageFit
|
|
20258
20277
|
}]
|
|
20259
20278
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
20260
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20279
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20261
20280
|
position: "absolute",
|
|
20262
20281
|
right: "right1",
|
|
20263
20282
|
top: "top1",
|
|
@@ -20273,7 +20292,7 @@ function Card(props) {
|
|
|
20273
20292
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "df fdc aifs gap1", children: [
|
|
20274
20293
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { children: [
|
|
20275
20294
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "fw6 fz_12px lh_16px gray700", ...tid.subtitle, children: subtitle }),
|
|
20276
|
-
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20295
|
+
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20277
20296
|
fontWeight: "fw6",
|
|
20278
20297
|
fontSize: "fz_14px",
|
|
20279
20298
|
lineHeight: "lh_20px",
|
|
@@ -20331,10 +20350,10 @@ var imageHoverStyles = {
|
|
|
20331
20350
|
};
|
|
20332
20351
|
|
|
20333
20352
|
// src/components/Copy.tsx
|
|
20334
|
-
var
|
|
20353
|
+
var import_runtime80 = require("@homebound/truss/runtime");
|
|
20335
20354
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
20336
20355
|
function Copy(props) {
|
|
20337
|
-
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0,
|
|
20356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0, import_runtime80.mergeProps)("beam-copy", void 0, {
|
|
20338
20357
|
...{
|
|
20339
20358
|
fontWeight: "fw4",
|
|
20340
20359
|
fontSize: "fz_14px",
|
|
@@ -20363,7 +20382,7 @@ function useDnDGridContext() {
|
|
|
20363
20382
|
}
|
|
20364
20383
|
|
|
20365
20384
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
20366
|
-
var
|
|
20385
|
+
var import_runtime81 = require("@homebound/truss/runtime");
|
|
20367
20386
|
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
20368
20387
|
function DnDGrid(props) {
|
|
20369
20388
|
const {
|
|
@@ -20544,7 +20563,7 @@ function DnDGrid(props) {
|
|
|
20544
20563
|
return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(DnDGridContext.Provider, { value: {
|
|
20545
20564
|
dragEl,
|
|
20546
20565
|
onDragHandleKeyDown
|
|
20547
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { ref: gridEl, ...(0,
|
|
20566
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { ref: gridEl, ...(0, import_runtime81.trussProps)({
|
|
20548
20567
|
...{
|
|
20549
20568
|
containerType: "ctis",
|
|
20550
20569
|
display: "dg"
|
|
@@ -20557,7 +20576,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
20557
20576
|
|
|
20558
20577
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
20559
20578
|
var import_react_aria50 = require("react-aria");
|
|
20560
|
-
var
|
|
20579
|
+
var import_runtime82 = require("@homebound/truss/runtime");
|
|
20561
20580
|
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
20562
20581
|
function DnDGridItemHandle(props) {
|
|
20563
20582
|
const {
|
|
@@ -20587,7 +20606,7 @@ function DnDGridItemHandle(props) {
|
|
|
20587
20606
|
borderRadius: "br4",
|
|
20588
20607
|
borderWidth: "bw1"
|
|
20589
20608
|
};
|
|
20590
|
-
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("button", { ...(0,
|
|
20609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("button", { ...(0, import_runtime82.trussProps)({
|
|
20591
20610
|
...compact ? iconButtonCompact2 : iconButtonNormal2,
|
|
20592
20611
|
...{
|
|
20593
20612
|
cursor: "cursor_grab",
|
|
@@ -20649,7 +20668,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
20649
20668
|
var ResponsiveGridContext = (0, import_react110.createContext)(void 0);
|
|
20650
20669
|
|
|
20651
20670
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
20652
|
-
var
|
|
20671
|
+
var import_runtime83 = require("@homebound/truss/runtime");
|
|
20653
20672
|
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
20654
20673
|
function ResponsiveGrid(props) {
|
|
20655
20674
|
const {
|
|
@@ -20670,12 +20689,12 @@ function ResponsiveGrid(props) {
|
|
|
20670
20689
|
gap,
|
|
20671
20690
|
columns
|
|
20672
20691
|
}), [minColumnWidth, gap, columns]);
|
|
20673
|
-
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...(0,
|
|
20692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...(0, import_runtime83.trussProps)(gridStyles), children }) });
|
|
20674
20693
|
}
|
|
20675
20694
|
|
|
20676
20695
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
20677
20696
|
var import_react_aria51 = require("react-aria");
|
|
20678
|
-
var
|
|
20697
|
+
var import_runtime84 = require("@homebound/truss/runtime");
|
|
20679
20698
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
20680
20699
|
function ResponsiveGridItem(props) {
|
|
20681
20700
|
const {
|
|
@@ -20688,7 +20707,7 @@ function ResponsiveGridItem(props) {
|
|
|
20688
20707
|
} = useResponsiveGridItem({
|
|
20689
20708
|
colSpan
|
|
20690
20709
|
});
|
|
20691
|
-
return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0,
|
|
20710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0, import_runtime84.trussProps)(gridItemStyles)), children });
|
|
20692
20711
|
}
|
|
20693
20712
|
|
|
20694
20713
|
// src/components/Grid/useResponsiveGrid.ts
|
|
@@ -20840,7 +20859,7 @@ function HbSpinnerProvider({
|
|
|
20840
20859
|
// src/components/MaxLines.tsx
|
|
20841
20860
|
var import_utils126 = require("@react-aria/utils");
|
|
20842
20861
|
var import_react115 = require("react");
|
|
20843
|
-
var
|
|
20862
|
+
var import_runtime85 = require("@homebound/truss/runtime");
|
|
20844
20863
|
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
20845
20864
|
function MaxLines({
|
|
20846
20865
|
maxLines,
|
|
@@ -20865,7 +20884,7 @@ function MaxLines({
|
|
|
20865
20884
|
onResize
|
|
20866
20885
|
});
|
|
20867
20886
|
return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { children: [
|
|
20868
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0,
|
|
20887
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0, import_runtime85.trussProps)({
|
|
20869
20888
|
...!expanded ? {
|
|
20870
20889
|
WebkitLineClamp: ["lineClamp_var", {
|
|
20871
20890
|
"--WebkitLineClamp": maxLines
|
|
@@ -20883,7 +20902,7 @@ function MaxLines({
|
|
|
20883
20902
|
// src/components/ScrollShadows.tsx
|
|
20884
20903
|
var import_utils127 = require("@react-aria/utils");
|
|
20885
20904
|
var import_react116 = require("react");
|
|
20886
|
-
var
|
|
20905
|
+
var import_runtime86 = require("@homebound/truss/runtime");
|
|
20887
20906
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
20888
20907
|
function ScrollShadows(props) {
|
|
20889
20908
|
const {
|
|
@@ -20972,7 +20991,7 @@ function ScrollShadows(props) {
|
|
|
20972
20991
|
ref: scrollRef,
|
|
20973
20992
|
onResize
|
|
20974
20993
|
});
|
|
20975
|
-
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0,
|
|
20994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0, import_runtime86.trussProps)({
|
|
20976
20995
|
display: "df",
|
|
20977
20996
|
flexDirection: ["fd_var", {
|
|
20978
20997
|
"--flexDirection": !horizontal ? "column" : "row"
|
|
@@ -20988,7 +21007,7 @@ function ScrollShadows(props) {
|
|
|
20988
21007
|
width: width2
|
|
20989
21008
|
}
|
|
20990
21009
|
}), ...tid, children: [
|
|
20991
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
21010
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
20992
21011
|
...startShadowStyles,
|
|
20993
21012
|
...{
|
|
20994
21013
|
opacity: ["o_var", {
|
|
@@ -20996,7 +21015,7 @@ function ScrollShadows(props) {
|
|
|
20996
21015
|
}]
|
|
20997
21016
|
}
|
|
20998
21017
|
}), "data-chromatic": "ignore" }),
|
|
20999
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
21018
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
21000
21019
|
...endShadowStyles,
|
|
21001
21020
|
...{
|
|
21002
21021
|
opacity: ["o_var", {
|
|
@@ -21004,7 +21023,7 @@ function ScrollShadows(props) {
|
|
|
21004
21023
|
}]
|
|
21005
21024
|
}
|
|
21006
21025
|
}), "data-chromatic": "ignore" }),
|
|
21007
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
21026
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
21008
21027
|
...xss,
|
|
21009
21028
|
...{
|
|
21010
21029
|
overflow: "oa",
|
|
@@ -21077,7 +21096,7 @@ var snackbarId = 1;
|
|
|
21077
21096
|
// src/components/Stepper.tsx
|
|
21078
21097
|
var import_react118 = require("react");
|
|
21079
21098
|
var import_react_aria52 = require("react-aria");
|
|
21080
|
-
var
|
|
21099
|
+
var import_runtime87 = require("@homebound/truss/runtime");
|
|
21081
21100
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
21082
21101
|
var import_react119 = require("react");
|
|
21083
21102
|
var __maybeInc13 = (inc) => {
|
|
@@ -21098,7 +21117,7 @@ function Stepper(props) {
|
|
|
21098
21117
|
const minStepWidth = 100;
|
|
21099
21118
|
const gap = 8;
|
|
21100
21119
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
21101
|
-
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("ol", { ...(0,
|
|
21120
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("ol", { ...(0, import_runtime87.trussProps)({
|
|
21102
21121
|
padding: "p_0",
|
|
21103
21122
|
margin: "m_0",
|
|
21104
21123
|
listStyle: "lis_none",
|
|
@@ -21108,7 +21127,7 @@ function Stepper(props) {
|
|
|
21108
21127
|
}]
|
|
21109
21128
|
}), children: steps.map((step) => {
|
|
21110
21129
|
const isCurrent = currentStep === step.value;
|
|
21111
|
-
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0,
|
|
21130
|
+
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0, import_runtime87.trussProps)({
|
|
21112
21131
|
display: "df",
|
|
21113
21132
|
flexGrow: "fg1",
|
|
21114
21133
|
flexDirection: "fdc",
|
|
@@ -21120,7 +21139,7 @@ function Stepper(props) {
|
|
|
21120
21139
|
}]
|
|
21121
21140
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
21122
21141
|
}) }),
|
|
21123
|
-
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21142
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
21124
21143
|
marginTop: "mt1",
|
|
21125
21144
|
backgroundColor: "bgGray300",
|
|
21126
21145
|
height: "h_4px",
|
|
@@ -21131,7 +21150,7 @@ function Stepper(props) {
|
|
|
21131
21150
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
21132
21151
|
}],
|
|
21133
21152
|
width: "w100"
|
|
21134
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21153
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
21135
21154
|
backgroundColor: "bgBlue600",
|
|
21136
21155
|
transition: "transition_width_200ms",
|
|
21137
21156
|
height: "h100",
|
|
@@ -21172,7 +21191,7 @@ function StepButton(props) {
|
|
|
21172
21191
|
boxShadow: "bshFocus"
|
|
21173
21192
|
};
|
|
21174
21193
|
const tid = useTestIds(props, "stepButton");
|
|
21175
|
-
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
21194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime87.trussProps)({
|
|
21176
21195
|
...{
|
|
21177
21196
|
fontWeight: "fw6",
|
|
21178
21197
|
fontSize: "fz_14px",
|
|
@@ -21240,7 +21259,7 @@ function StepIcon({
|
|
|
21240
21259
|
if (state === "complete") {
|
|
21241
21260
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Icon, { icon: "check" });
|
|
21242
21261
|
}
|
|
21243
|
-
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,
|
|
21262
|
+
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)({
|
|
21244
21263
|
width: "w_10px",
|
|
21245
21264
|
height: "h_10px",
|
|
21246
21265
|
borderStyle: "bss",
|
|
@@ -21255,7 +21274,7 @@ function StepIcon({
|
|
|
21255
21274
|
|
|
21256
21275
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
21257
21276
|
var import_react_dom5 = require("react-dom");
|
|
21258
|
-
var
|
|
21277
|
+
var import_runtime88 = require("@homebound/truss/runtime");
|
|
21259
21278
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
21260
21279
|
function SuperDrawerHeader(props) {
|
|
21261
21280
|
const {
|
|
@@ -21281,7 +21300,7 @@ function SuperDrawerHeader(props) {
|
|
|
21281
21300
|
] }),
|
|
21282
21301
|
props.right && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fs0", children: props.right })
|
|
21283
21302
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fg1", children: props.children }),
|
|
21284
|
-
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0,
|
|
21303
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0, import_runtime88.trussProps)({
|
|
21285
21304
|
flexShrink: "fs0",
|
|
21286
21305
|
...isDetail ? {
|
|
21287
21306
|
visibility: "vh"
|
|
@@ -21461,7 +21480,7 @@ function canClose(canCloseCheck) {
|
|
|
21461
21480
|
}
|
|
21462
21481
|
|
|
21463
21482
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
21464
|
-
var
|
|
21483
|
+
var import_runtime89 = require("@homebound/truss/runtime");
|
|
21465
21484
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
21466
21485
|
var SuperDrawerContent = ({
|
|
21467
21486
|
children,
|
|
@@ -21510,7 +21529,7 @@ var SuperDrawerContent = ({
|
|
|
21510
21529
|
}, className: "pt2", children: children2 })
|
|
21511
21530
|
] }, "content");
|
|
21512
21531
|
} else {
|
|
21513
|
-
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0,
|
|
21532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0, import_runtime89.mergeProps)(void 0, {
|
|
21514
21533
|
overflow: "auto"
|
|
21515
21534
|
}, {
|
|
21516
21535
|
paddingTop: "pt3",
|
|
@@ -21551,7 +21570,7 @@ var import_react121 = require("react");
|
|
|
21551
21570
|
var import_react_aria53 = require("react-aria");
|
|
21552
21571
|
var import_react_router2 = require("react-router");
|
|
21553
21572
|
var import_react_router_dom5 = require("react-router-dom");
|
|
21554
|
-
var
|
|
21573
|
+
var import_runtime90 = require("@homebound/truss/runtime");
|
|
21555
21574
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
21556
21575
|
function TabsWithContent(props) {
|
|
21557
21576
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -21584,7 +21603,7 @@ function TabContent(props) {
|
|
|
21584
21603
|
return (
|
|
21585
21604
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
21586
21605
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
21587
|
-
/* @__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,
|
|
21606
|
+
/* @__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() }) })
|
|
21588
21607
|
);
|
|
21589
21608
|
}
|
|
21590
21609
|
function Tabs(props) {
|
|
@@ -21623,7 +21642,7 @@ function Tabs(props) {
|
|
|
21623
21642
|
setActive(selected);
|
|
21624
21643
|
}
|
|
21625
21644
|
}
|
|
21626
|
-
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0,
|
|
21645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0, import_runtime90.trussProps)({
|
|
21627
21646
|
...{
|
|
21628
21647
|
display: "df",
|
|
21629
21648
|
alignItems: "aic",
|
|
@@ -21687,7 +21706,7 @@ function TabImpl(props) {
|
|
|
21687
21706
|
role: "tab",
|
|
21688
21707
|
tabIndex: active ? 0 : -1,
|
|
21689
21708
|
...others,
|
|
21690
|
-
...(0,
|
|
21709
|
+
...(0, import_runtime90.trussProps)({
|
|
21691
21710
|
...baseStyles5,
|
|
21692
21711
|
...active && activeStyles4,
|
|
21693
21712
|
...isDisabled && disabledStyles4,
|
|
@@ -21929,7 +21948,7 @@ function useToast() {
|
|
|
21929
21948
|
RightPaneProvider,
|
|
21930
21949
|
RightSidebar,
|
|
21931
21950
|
Row,
|
|
21932
|
-
|
|
21951
|
+
RuntimeCss,
|
|
21933
21952
|
ScrollShadows,
|
|
21934
21953
|
ScrollableContent,
|
|
21935
21954
|
ScrollableParent,
|