@homebound/beam 3.0.3 → 3.0.4
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 +314 -297
- 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 +25 -8
- 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
|
} : {}
|
|
@@ -13080,7 +13097,7 @@ function formatValue(value, factor, numFractionDigits, numIntegerDigits, positiv
|
|
|
13080
13097
|
var import_react55 = require("react");
|
|
13081
13098
|
var import_react_aria34 = require("react-aria");
|
|
13082
13099
|
var import_react_stately13 = require("react-stately");
|
|
13083
|
-
var
|
|
13100
|
+
var import_runtime46 = require("@homebound/truss/runtime");
|
|
13084
13101
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
13085
13102
|
var nextNameId = 0;
|
|
13086
13103
|
function RadioGroupField(props) {
|
|
@@ -13113,7 +13130,7 @@ function RadioGroupField(props) {
|
|
|
13113
13130
|
}, state);
|
|
13114
13131
|
return (
|
|
13115
13132
|
// default styling to position `<Label />` above.
|
|
13116
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { ...(0,
|
|
13133
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { ...(0, import_runtime46.trussProps)({
|
|
13117
13134
|
display: "df",
|
|
13118
13135
|
flexDirection: "fdc",
|
|
13119
13136
|
gap: "gap1",
|
|
@@ -13173,7 +13190,7 @@ function Radio(props) {
|
|
|
13173
13190
|
} = (0, import_react_aria34.useHover)({
|
|
13174
13191
|
isDisabled: disabled
|
|
13175
13192
|
});
|
|
13176
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { ...(0,
|
|
13193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { ...(0, import_runtime46.trussProps)({
|
|
13177
13194
|
display: "df",
|
|
13178
13195
|
cursor: "cursorPointer",
|
|
13179
13196
|
marginBottom: "mb1",
|
|
@@ -13186,7 +13203,7 @@ function Radio(props) {
|
|
|
13186
13203
|
{
|
|
13187
13204
|
type: "radio",
|
|
13188
13205
|
ref,
|
|
13189
|
-
...(0,
|
|
13206
|
+
...(0, import_runtime46.trussProps)({
|
|
13190
13207
|
...radioReset,
|
|
13191
13208
|
...radioDefault,
|
|
13192
13209
|
...!disabled && state.selectedValue === value ? radioChecked : radioUnchecked,
|
|
@@ -13207,7 +13224,7 @@ function Radio(props) {
|
|
|
13207
13224
|
}
|
|
13208
13225
|
),
|
|
13209
13226
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { children: [
|
|
13210
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: labelId, ...(0,
|
|
13227
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: labelId, ...(0, import_runtime46.trussProps)({
|
|
13211
13228
|
fontWeight: "fw4",
|
|
13212
13229
|
fontSize: "fz_14px",
|
|
13213
13230
|
lineHeight: "lh_20px",
|
|
@@ -13218,7 +13235,7 @@ function Radio(props) {
|
|
|
13218
13235
|
}), ...description ? {
|
|
13219
13236
|
"aria-describedby": descriptionId
|
|
13220
13237
|
} : {}, children: label }),
|
|
13221
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: descriptionId, ...(0,
|
|
13238
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { id: descriptionId, ...(0, import_runtime46.trussProps)({
|
|
13222
13239
|
fontWeight: "fw4",
|
|
13223
13240
|
fontSize: "fz_14px",
|
|
13224
13241
|
lineHeight: "lh_20px",
|
|
@@ -13361,7 +13378,7 @@ var import_tributejs = __toESM(require("tributejs"), 1);
|
|
|
13361
13378
|
var import_tribute = require("tributejs/dist/tribute.css");
|
|
13362
13379
|
var import_trix = require("trix/dist/trix");
|
|
13363
13380
|
var import_trix2 = require("trix/dist/trix.css");
|
|
13364
|
-
var
|
|
13381
|
+
var import_runtime47 = require("@homebound/truss/runtime");
|
|
13365
13382
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
13366
13383
|
var RichTextField = withTestMock(RichTextFieldImpl, RichTextFieldMock);
|
|
13367
13384
|
function RichTextFieldImpl(props) {
|
|
@@ -13441,7 +13458,7 @@ function RichTextFieldImpl(props) {
|
|
|
13441
13458
|
autoFocus
|
|
13442
13459
|
} = props;
|
|
13443
13460
|
if (!readOnly) {
|
|
13444
|
-
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0,
|
|
13461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0, import_runtime47.trussProps)({
|
|
13445
13462
|
width: "w100",
|
|
13446
13463
|
...!fullWidth ? {
|
|
13447
13464
|
maxWidth: "maxw_550px"
|
|
@@ -13464,7 +13481,7 @@ function RichTextFieldImpl(props) {
|
|
|
13464
13481
|
] })
|
|
13465
13482
|
] });
|
|
13466
13483
|
} else {
|
|
13467
|
-
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0,
|
|
13484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { ...(0, import_runtime47.trussProps)({
|
|
13468
13485
|
width: "w100",
|
|
13469
13486
|
...!fullWidth ? {
|
|
13470
13487
|
maxWidth: "maxw_550px"
|
|
@@ -13538,7 +13555,7 @@ function SelectField(props) {
|
|
|
13538
13555
|
// src/inputs/Switch.tsx
|
|
13539
13556
|
var import_react59 = require("react");
|
|
13540
13557
|
var import_react_aria35 = require("react-aria");
|
|
13541
|
-
var
|
|
13558
|
+
var import_runtime48 = require("@homebound/truss/runtime");
|
|
13542
13559
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
13543
13560
|
var __maybeInc6 = (inc) => {
|
|
13544
13561
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -13588,7 +13605,7 @@ function Switch(props) {
|
|
|
13588
13605
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
13589
13606
|
const tooltip = resolveTooltip(disabled, props.tooltip);
|
|
13590
13607
|
const tid = useTestIds(otherProps, label);
|
|
13591
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { ...hoverProps, ...(0,
|
|
13608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { ...hoverProps, ...(0, import_runtime48.trussProps)({
|
|
13592
13609
|
...{
|
|
13593
13610
|
position: "relative",
|
|
13594
13611
|
cursor: "cursorPointer",
|
|
@@ -13631,13 +13648,13 @@ function Switch(props) {
|
|
|
13631
13648
|
color: "gray900"
|
|
13632
13649
|
} : {}
|
|
13633
13650
|
}, inline: labelStyle === "left" || labelStyle === "filter" }) }),
|
|
13634
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0,
|
|
13651
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0, import_runtime48.trussProps)({
|
|
13635
13652
|
...labelStyle === "left" ? {
|
|
13636
13653
|
width: ["w_var", {
|
|
13637
13654
|
"--width": __maybeInc6(labelLeftFieldWidth)
|
|
13638
13655
|
}]
|
|
13639
13656
|
} : {}
|
|
13640
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { "aria-hidden": "true", ...(0,
|
|
13657
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { "aria-hidden": "true", ...(0, import_runtime48.trussProps)({
|
|
13641
13658
|
...{
|
|
13642
13659
|
width: ["w_var", {
|
|
13643
13660
|
"--width": `${toggleWidth(compact)}px`
|
|
@@ -13659,7 +13676,7 @@ function Switch(props) {
|
|
|
13659
13676
|
backgroundColor: "bgBlue700"
|
|
13660
13677
|
},
|
|
13661
13678
|
...isSelected && isHovered && switchSelectedHoverStyles
|
|
13662
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0,
|
|
13679
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { ...(0, import_runtime48.trussProps)({
|
|
13663
13680
|
...switchCircleDefaultStyles(compact),
|
|
13664
13681
|
...isDisabled && {
|
|
13665
13682
|
backgroundColor: "bgGray100"
|
|
@@ -13845,7 +13862,7 @@ function TextField(props) {
|
|
|
13845
13862
|
var import_react62 = require("react");
|
|
13846
13863
|
var import_react_aria38 = require("react-aria");
|
|
13847
13864
|
var import_react_stately14 = require("react-stately");
|
|
13848
|
-
var
|
|
13865
|
+
var import_runtime49 = require("@homebound/truss/runtime");
|
|
13849
13866
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
13850
13867
|
function ToggleButton(props) {
|
|
13851
13868
|
const {
|
|
@@ -13910,7 +13927,7 @@ function ToggleButton(props) {
|
|
|
13910
13927
|
...focusProps,
|
|
13911
13928
|
...hoverProps,
|
|
13912
13929
|
...pressProps,
|
|
13913
|
-
...(0,
|
|
13930
|
+
...(0, import_runtime49.trussProps)({
|
|
13914
13931
|
...{
|
|
13915
13932
|
borderRadius: "br4",
|
|
13916
13933
|
display: "dif",
|
|
@@ -13966,7 +13983,7 @@ var togglePressStyles = {
|
|
|
13966
13983
|
var import_react63 = require("react");
|
|
13967
13984
|
var import_react_aria39 = require("react-aria");
|
|
13968
13985
|
var import_react_stately15 = require("react-stately");
|
|
13969
|
-
var
|
|
13986
|
+
var import_runtime50 = require("@homebound/truss/runtime");
|
|
13970
13987
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
13971
13988
|
var __maybeInc7 = (inc) => {
|
|
13972
13989
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -13998,7 +14015,7 @@ function ToggleChipGroup(props) {
|
|
|
13998
14015
|
} = (0, import_react_aria39.useCheckboxGroup)(props, state);
|
|
13999
14016
|
const tid = useTestIds(props, "toggleChip");
|
|
14000
14017
|
const labelSuffix = useLabelSuffix(required, false);
|
|
14001
|
-
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { ...groupProps, ...(0,
|
|
14018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { ...groupProps, ...(0, import_runtime50.trussProps)({
|
|
14002
14019
|
position: "relative",
|
|
14003
14020
|
display: "df",
|
|
14004
14021
|
flexDirection: "fdc",
|
|
@@ -14010,7 +14027,7 @@ function ToggleChipGroup(props) {
|
|
|
14010
14027
|
} : {}
|
|
14011
14028
|
}), children: [
|
|
14012
14029
|
/* @__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,
|
|
14030
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ...(0, import_runtime50.trussProps)({
|
|
14014
14031
|
display: "df",
|
|
14015
14032
|
gap: "gap1",
|
|
14016
14033
|
flexWrap: "flexWrap_wrap",
|
|
@@ -14075,7 +14092,7 @@ function ToggleChip2(props) {
|
|
|
14075
14092
|
return maybeTooltip({
|
|
14076
14093
|
title: tooltip,
|
|
14077
14094
|
placement: "top",
|
|
14078
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { ...(0,
|
|
14095
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { ...(0, import_runtime50.trussProps)({
|
|
14079
14096
|
...{
|
|
14080
14097
|
position: "relative",
|
|
14081
14098
|
display: "dif",
|
|
@@ -15357,7 +15374,7 @@ function useRenderCount() {
|
|
|
15357
15374
|
}
|
|
15358
15375
|
|
|
15359
15376
|
// src/components/Table/GridTable.tsx
|
|
15360
|
-
var
|
|
15377
|
+
var import_runtime51 = require("@homebound/truss/runtime");
|
|
15361
15378
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
15362
15379
|
var runningInJest = false;
|
|
15363
15380
|
function setRunningInJest() {
|
|
@@ -15629,7 +15646,7 @@ function GridTable(props) {
|
|
|
15629
15646
|
tableContainerRef
|
|
15630
15647
|
}), [tableState, tableContainerRef]);
|
|
15631
15648
|
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,
|
|
15649
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref: resizeRef, ...(0, import_runtime51.trussProps)(getTableRefWidthStyles(as === "virtual")) }),
|
|
15633
15650
|
renders[_as](style, id, columns, visibleDataRows, keptSelectedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
15634
15651
|
] }) });
|
|
15635
15652
|
}
|
|
@@ -15639,7 +15656,7 @@ var renders = {
|
|
|
15639
15656
|
virtual: renderVirtual
|
|
15640
15657
|
};
|
|
15641
15658
|
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,
|
|
15659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { ref: tableContainerRef, ...(0, import_runtime51.trussProps)({
|
|
15643
15660
|
// Use `fit-content` to ensure the width of the table takes up the full width of its content.
|
|
15644
15661
|
// Otherwise, the table's width would be that of its container, which may not be as wide as the table itself.
|
|
15645
15662
|
// 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 +15672,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15655
15672
|
} : {},
|
|
15656
15673
|
...xss
|
|
15657
15674
|
}), "data-testid": id, children: [
|
|
15658
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15675
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15659
15676
|
...stickyHeader ? {
|
|
15660
15677
|
position: "sticky",
|
|
15661
15678
|
top: ["top_var", {
|
|
@@ -15668,7 +15685,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15668
15685
|
}), children: tableHeadRows }),
|
|
15669
15686
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
|
|
15670
15687
|
keptSelectedRows,
|
|
15671
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15688
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15672
15689
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15673
15690
|
...style.firstRowMessageCss,
|
|
15674
15691
|
...visibleDataRows.length === 0 && style.lastRowCss,
|
|
@@ -15681,7 +15698,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15681
15698
|
] });
|
|
15682
15699
|
}
|
|
15683
15700
|
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,
|
|
15701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("table", { ref: tableContainerRef, ...(0, import_runtime51.trussProps)({
|
|
15685
15702
|
...{
|
|
15686
15703
|
width: "w100",
|
|
15687
15704
|
borderCollapse: "borderCollapse_separate",
|
|
@@ -15695,7 +15712,7 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firs
|
|
|
15695
15712
|
} : {},
|
|
15696
15713
|
...xss
|
|
15697
15714
|
}), "data-testid": id, children: [
|
|
15698
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("thead", { ...(0,
|
|
15715
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("thead", { ...(0, import_runtime51.trussProps)({
|
|
15699
15716
|
...stickyHeader ? {
|
|
15700
15717
|
position: "sticky",
|
|
15701
15718
|
top: ["top_var", {
|
|
@@ -15708,11 +15725,11 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firs
|
|
|
15708
15725
|
}), children: tableHeadRows }),
|
|
15709
15726
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("tbody", { children: [
|
|
15710
15727
|
keptSelectedRows,
|
|
15711
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tr", { ...(0,
|
|
15728
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tr", { ...(0, import_runtime51.trussProps)({
|
|
15712
15729
|
...tableRowPrintBreakCss,
|
|
15713
15730
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15714
15731
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
15715
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("td", { colSpan: columns.length, ...(0,
|
|
15732
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("td", { colSpan: columns.length, ...(0, import_runtime51.trussProps)({
|
|
15716
15733
|
...style.betweenRowsCss,
|
|
15717
15734
|
...style.firstRowMessageCss,
|
|
15718
15735
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
@@ -15755,7 +15772,7 @@ function renderVirtual(style, id, columns, visibleDataRows, keptSelectedRows, fi
|
|
|
15755
15772
|
} })),
|
|
15756
15773
|
List: VirtualRoot(style, columns, id, xss),
|
|
15757
15774
|
Footer: () => {
|
|
15758
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15759
15776
|
...style.virtualFooterPaddingBottomPx !== void 0 ? {
|
|
15760
15777
|
paddingBottom: ["pb_var", {
|
|
15761
15778
|
"--paddingBottom": `${style.virtualFooterPaddingBottomPx ?? 0}px`
|
|
@@ -15778,11 +15795,11 @@ function renderVirtual(style, id, columns, visibleDataRows, keptSelectedRows, fi
|
|
|
15778
15795
|
if (index === 0) {
|
|
15779
15796
|
return (
|
|
15780
15797
|
// Ensure the fallback message is the same width as the table
|
|
15781
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15798
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15782
15799
|
...getTableRefWidthStyles(true),
|
|
15783
15800
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15784
15801
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
15785
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0,
|
|
15802
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15786
15803
|
...style.firstRowMessageCss,
|
|
15787
15804
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
15788
15805
|
...visibleDataRows.length === 0 && style.lastRowFirstCellCss,
|
|
@@ -15827,7 +15844,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
15827
15844
|
style,
|
|
15828
15845
|
children
|
|
15829
15846
|
}, ref) {
|
|
15830
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref, ...(0,
|
|
15847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref, ...(0, import_runtime51.mergeProps)(void 0, style, {
|
|
15831
15848
|
...gs.rootCss,
|
|
15832
15849
|
...gs.minWidthPx ? {
|
|
15833
15850
|
minWidth: ["mw_var", {
|
|
@@ -15843,7 +15860,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
15843
15860
|
});
|
|
15844
15861
|
|
|
15845
15862
|
// src/components/ToggleChip.tsx
|
|
15846
|
-
var
|
|
15863
|
+
var import_runtime52 = require("@homebound/truss/runtime");
|
|
15847
15864
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
15848
15865
|
function ToggleChip(props) {
|
|
15849
15866
|
const {
|
|
@@ -15862,7 +15879,7 @@ function ToggleChip(props) {
|
|
|
15862
15879
|
} = useHover2({});
|
|
15863
15880
|
const compact = fieldProps?.compact;
|
|
15864
15881
|
const tid = useTestIds(props, "chip");
|
|
15865
|
-
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("button", { type: "button", ...(0,
|
|
15882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("button", { type: "button", ...(0, import_runtime52.trussProps)({
|
|
15866
15883
|
...chipBaseStyles(compact),
|
|
15867
15884
|
...isHovered && !disabled && chipHoverStyles,
|
|
15868
15885
|
// Use a lower right-padding to get closer to the `X` circle when clearable, i.e. not disabled
|
|
@@ -15878,7 +15895,7 @@ function ToggleChip(props) {
|
|
|
15878
15895
|
...xss
|
|
15879
15896
|
}), disabled, onClick, ...hoverProps, ...tid, children: [
|
|
15880
15897
|
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,
|
|
15898
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { ...(0, import_runtime52.trussProps)({
|
|
15882
15899
|
textAlign: "tal",
|
|
15883
15900
|
overflow: "oh",
|
|
15884
15901
|
display: "d_negwebkit_box",
|
|
@@ -15890,7 +15907,7 @@ function ToggleChip(props) {
|
|
|
15890
15907
|
paddingRight: "pr0"
|
|
15891
15908
|
} : {}
|
|
15892
15909
|
}), title: text, children: text }),
|
|
15893
|
-
!disabled && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { ...(0,
|
|
15910
|
+
!disabled && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { ...(0, import_runtime52.trussProps)({
|
|
15894
15911
|
...{
|
|
15895
15912
|
flexShrink: "fs0",
|
|
15896
15913
|
borderRadius: "br16",
|
|
@@ -15912,7 +15929,7 @@ var chipDisabledStyles = {
|
|
|
15912
15929
|
};
|
|
15913
15930
|
|
|
15914
15931
|
// src/components/ToggleChips.tsx
|
|
15915
|
-
var
|
|
15932
|
+
var import_runtime53 = require("@homebound/truss/runtime");
|
|
15916
15933
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
15917
15934
|
function ToggleChips(props) {
|
|
15918
15935
|
const {
|
|
@@ -15922,7 +15939,7 @@ function ToggleChips(props) {
|
|
|
15922
15939
|
xss
|
|
15923
15940
|
} = props;
|
|
15924
15941
|
const tid = useTestIds(props, "toggleChips");
|
|
15925
|
-
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...(0,
|
|
15942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...(0, import_runtime53.trussProps)({
|
|
15926
15943
|
...{
|
|
15927
15944
|
display: "df",
|
|
15928
15945
|
flexWrap: "flexWrap_wrap",
|
|
@@ -15936,7 +15953,7 @@ function ToggleChips(props) {
|
|
|
15936
15953
|
var import_utils69 = require("@react-aria/utils");
|
|
15937
15954
|
var import_react73 = require("react");
|
|
15938
15955
|
var import_react_aria40 = require("react-aria");
|
|
15939
|
-
var
|
|
15956
|
+
var import_runtime54 = require("@homebound/truss/runtime");
|
|
15940
15957
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
15941
15958
|
var __maybeInc8 = (inc) => {
|
|
15942
15959
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -16036,7 +16053,7 @@ function Accordion(props) {
|
|
|
16036
16053
|
},
|
|
16037
16054
|
...xss
|
|
16038
16055
|
}), [compact, disabled, isFocusVisible, titleOnClick, xss]);
|
|
16039
|
-
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { ...tid.container, ...(0,
|
|
16056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { ...tid.container, ...(0, import_runtime54.trussProps)({
|
|
16040
16057
|
...{
|
|
16041
16058
|
borderColor: "bcGray300",
|
|
16042
16059
|
...topBorder ? {
|
|
@@ -16055,13 +16072,13 @@ function Accordion(props) {
|
|
|
16055
16072
|
} : {}
|
|
16056
16073
|
}), children: [
|
|
16057
16074
|
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,
|
|
16075
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("button", { ...tid.title, disabled, ...(0, import_runtime54.trussProps)({
|
|
16059
16076
|
...touchableStyle,
|
|
16060
16077
|
...{
|
|
16061
16078
|
flexGrow: "fg1"
|
|
16062
16079
|
}
|
|
16063
16080
|
}), onClick: titleOnClick, children: title }),
|
|
16064
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("button", { ...tid.toggle, disabled, ...(0,
|
|
16081
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("button", { ...tid.toggle, disabled, ...(0, import_runtime54.trussProps)({
|
|
16065
16082
|
...touchableStyle,
|
|
16066
16083
|
...{
|
|
16067
16084
|
paddingLeft: "pl2",
|
|
@@ -16073,7 +16090,7 @@ function Accordion(props) {
|
|
|
16073
16090
|
} : {}
|
|
16074
16091
|
}
|
|
16075
16092
|
}), 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,
|
|
16093
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("button", { ...tid.title, ...focusProps, "aria-controls": id, "aria-expanded": expanded, disabled, ...(0, import_runtime54.trussProps)({
|
|
16077
16094
|
...{
|
|
16078
16095
|
width: "w100"
|
|
16079
16096
|
},
|
|
@@ -16082,13 +16099,13 @@ function Accordion(props) {
|
|
|
16082
16099
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "fg1 tal", children: title }),
|
|
16083
16100
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RotatingChevronIcon, { expanded })
|
|
16084
16101
|
] }),
|
|
16085
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0,
|
|
16102
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0, import_runtime54.trussProps)({
|
|
16086
16103
|
overflow: "oh",
|
|
16087
16104
|
height: ["h_var", {
|
|
16088
16105
|
"--height": __maybeInc8(contentHeight)
|
|
16089
16106
|
}],
|
|
16090
16107
|
transition: "transition_height_250ms_ease_in_out"
|
|
16091
|
-
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...(0,
|
|
16108
|
+
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { ...(0, import_runtime54.trussProps)({
|
|
16092
16109
|
paddingLeft: "pl2",
|
|
16093
16110
|
paddingRight: "pr2",
|
|
16094
16111
|
paddingBottom: "pb2",
|
|
@@ -16103,7 +16120,7 @@ function Accordion(props) {
|
|
|
16103
16120
|
] });
|
|
16104
16121
|
}
|
|
16105
16122
|
function RotatingChevronIcon(props) {
|
|
16106
|
-
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { ...(0,
|
|
16123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { ...(0, import_runtime54.trussProps)({
|
|
16107
16124
|
flexShrink: "fs0",
|
|
16108
16125
|
transition: "transition_transform_250ms_linear",
|
|
16109
16126
|
transform: ["transform_var", {
|
|
@@ -16203,7 +16220,7 @@ function Indicator({
|
|
|
16203
16220
|
}
|
|
16204
16221
|
|
|
16205
16222
|
// src/components/Banner.tsx
|
|
16206
|
-
var
|
|
16223
|
+
var import_runtime55 = require("@homebound/truss/runtime");
|
|
16207
16224
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
16208
16225
|
function Banner(props) {
|
|
16209
16226
|
const {
|
|
@@ -16214,7 +16231,7 @@ function Banner(props) {
|
|
|
16214
16231
|
...others
|
|
16215
16232
|
} = props;
|
|
16216
16233
|
const tid = useTestIds(others, "banner");
|
|
16217
|
-
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0,
|
|
16234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0, import_runtime55.trussProps)({
|
|
16218
16235
|
...variantStyles2[type],
|
|
16219
16236
|
...{
|
|
16220
16237
|
display: "df",
|
|
@@ -16338,7 +16355,7 @@ function useModal() {
|
|
|
16338
16355
|
}
|
|
16339
16356
|
|
|
16340
16357
|
// src/components/Modal/Modal.tsx
|
|
16341
|
-
var
|
|
16358
|
+
var import_runtime56 = require("@homebound/truss/runtime");
|
|
16342
16359
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
16343
16360
|
function Modal(props) {
|
|
16344
16361
|
const {
|
|
@@ -16419,7 +16436,7 @@ function Modal(props) {
|
|
|
16419
16436
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16420
16437
|
[modalBodyRef, modalFooterRef, modalHeaderRef]
|
|
16421
16438
|
);
|
|
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,
|
|
16439
|
+
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
16440
|
borderRadius: "br24",
|
|
16424
16441
|
backgroundColor: "bgWhite",
|
|
16425
16442
|
boxShadow: "bshModal",
|
|
@@ -16445,7 +16462,7 @@ function Modal(props) {
|
|
|
16445
16462
|
borderRadius: "br0"
|
|
16446
16463
|
} : {}
|
|
16447
16464
|
}), ref, ...overlayProps, ...dialogProps, ...modalProps, ...testId, children: [
|
|
16448
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("header", { ...(0,
|
|
16465
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("header", { ...(0, import_runtime56.trussProps)({
|
|
16449
16466
|
display: "df",
|
|
16450
16467
|
flexDirection: "fdrr",
|
|
16451
16468
|
paddingTop: "pt3",
|
|
@@ -16462,7 +16479,7 @@ function Modal(props) {
|
|
|
16462
16479
|
/* @__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
16480
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h1", { className: "fg1 fw6 fz_30px lh_36px gray900", ref: modalHeaderRef, ...titleProps, ...testId.title })
|
|
16464
16481
|
] }),
|
|
16465
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("main", { ref: modalBodyRef, ...(0,
|
|
16482
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("main", { ref: modalBodyRef, ...(0, import_runtime56.trussProps)({
|
|
16466
16483
|
flexGrow: "fg1",
|
|
16467
16484
|
overflowY: "oya",
|
|
16468
16485
|
...hasScroll ? {
|
|
@@ -16495,7 +16512,7 @@ function ModalBody({
|
|
|
16495
16512
|
const testId = useTestIds({}, testIdPrefix);
|
|
16496
16513
|
return (0, import_react_dom3.createPortal)(
|
|
16497
16514
|
// 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,
|
|
16515
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ...(0, import_runtime56.trussProps)({
|
|
16499
16516
|
height: "h100",
|
|
16500
16517
|
...virtualized ? {
|
|
16501
16518
|
overflow: "oh",
|
|
@@ -16516,7 +16533,7 @@ function ModalFooter({
|
|
|
16516
16533
|
modalFooterDiv
|
|
16517
16534
|
} = useBeamContext();
|
|
16518
16535
|
const testId = useTestIds({}, testIdPrefix);
|
|
16519
|
-
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ...(0,
|
|
16536
|
+
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ...(0, import_runtime56.trussProps)({
|
|
16520
16537
|
...{
|
|
16521
16538
|
paddingTop: "pt3",
|
|
16522
16539
|
paddingBottom: "pb3",
|
|
@@ -16551,7 +16568,7 @@ function getSize(size) {
|
|
|
16551
16568
|
var import_react79 = require("react");
|
|
16552
16569
|
|
|
16553
16570
|
// src/components/Snackbar/SnackbarNotice.tsx
|
|
16554
|
-
var
|
|
16571
|
+
var import_runtime57 = require("@homebound/truss/runtime");
|
|
16555
16572
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
16556
16573
|
function SnackbarNotice(props) {
|
|
16557
16574
|
const {
|
|
@@ -16569,7 +16586,7 @@ function SnackbarNotice(props) {
|
|
|
16569
16586
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
16570
16587
|
"span",
|
|
16571
16588
|
{
|
|
16572
|
-
...(0,
|
|
16589
|
+
...(0, import_runtime57.trussProps)({
|
|
16573
16590
|
overflow: "oh",
|
|
16574
16591
|
display: "d_negwebkit_box",
|
|
16575
16592
|
WebkitBoxOrient: "wbo_vertical",
|
|
@@ -16590,7 +16607,7 @@ function SnackbarNotice(props) {
|
|
|
16590
16607
|
}
|
|
16591
16608
|
),
|
|
16592
16609
|
(action || !reallyHideClose) && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("span", { className: "fs0 df aic", children: [
|
|
16593
|
-
action && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { ...(0,
|
|
16610
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { ...(0, import_runtime57.trussProps)({
|
|
16594
16611
|
textTransform: "ttu",
|
|
16595
16612
|
fontWeight: "fw4",
|
|
16596
16613
|
fontSize: "fz_14px",
|
|
@@ -16628,7 +16645,7 @@ var typeToIcon2 = {
|
|
|
16628
16645
|
};
|
|
16629
16646
|
|
|
16630
16647
|
// src/components/Snackbar/Snackbar.tsx
|
|
16631
|
-
var
|
|
16648
|
+
var import_runtime58 = require("@homebound/truss/runtime");
|
|
16632
16649
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
16633
16650
|
function Snackbar({
|
|
16634
16651
|
notices,
|
|
@@ -16639,7 +16656,7 @@ function Snackbar({
|
|
|
16639
16656
|
"div",
|
|
16640
16657
|
{
|
|
16641
16658
|
...tid.snackbarWrapper,
|
|
16642
|
-
...(0,
|
|
16659
|
+
...(0, import_runtime58.trussProps)({
|
|
16643
16660
|
position: "fixed",
|
|
16644
16661
|
zIndex: "z9999",
|
|
16645
16662
|
bottom: ["bottom_var", {
|
|
@@ -16690,7 +16707,7 @@ var SuperDrawerWidth = /* @__PURE__ */ ((SuperDrawerWidth2) => {
|
|
|
16690
16707
|
})(SuperDrawerWidth || {});
|
|
16691
16708
|
|
|
16692
16709
|
// src/components/SuperDrawer/SuperDrawer.tsx
|
|
16693
|
-
var
|
|
16710
|
+
var import_runtime59 = require("@homebound/truss/runtime");
|
|
16694
16711
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
16695
16712
|
var import_react81 = require("react");
|
|
16696
16713
|
function SuperDrawer() {
|
|
@@ -16752,7 +16769,7 @@ function SuperDrawer() {
|
|
|
16752
16769
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
16753
16770
|
import_framer_motion.motion.aside,
|
|
16754
16771
|
{
|
|
16755
|
-
...(0,
|
|
16772
|
+
...(0, import_runtime59.trussProps)({
|
|
16756
16773
|
backgroundColor: "bgWhite",
|
|
16757
16774
|
height: "h100",
|
|
16758
16775
|
maxWidth: ["maxw_var", {
|
|
@@ -17053,7 +17070,7 @@ var import_mobx_react8 = require("mobx-react");
|
|
|
17053
17070
|
// src/inputs/IconCardGroup.tsx
|
|
17054
17071
|
var import_react82 = require("react");
|
|
17055
17072
|
var import_react_aria42 = require("react-aria");
|
|
17056
|
-
var
|
|
17073
|
+
var import_runtime60 = require("@homebound/truss/runtime");
|
|
17057
17074
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
17058
17075
|
function IconCardGroup(props) {
|
|
17059
17076
|
const {
|
|
@@ -17100,7 +17117,7 @@ function IconCardGroup(props) {
|
|
|
17100
17117
|
...fieldPropsAria
|
|
17101
17118
|
});
|
|
17102
17119
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { ...groupProps, children: [
|
|
17103
|
-
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { ...(0,
|
|
17120
|
+
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { ...(0, import_runtime60.trussProps)({
|
|
17104
17121
|
...labelStyle === "left" ? {
|
|
17105
17122
|
width: "w50"
|
|
17106
17123
|
} : {}
|
|
@@ -17646,7 +17663,7 @@ function BoundTreeSelectField(props) {
|
|
|
17646
17663
|
|
|
17647
17664
|
// src/forms/FormLines.tsx
|
|
17648
17665
|
var import_react83 = require("react");
|
|
17649
|
-
var
|
|
17666
|
+
var import_runtime61 = require("@homebound/truss/runtime");
|
|
17650
17667
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
17651
17668
|
var __maybeInc9 = (inc) => {
|
|
17652
17669
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -17682,7 +17699,7 @@ function FormLines(props) {
|
|
|
17682
17699
|
fullWidth: true
|
|
17683
17700
|
} : {}
|
|
17684
17701
|
};
|
|
17685
|
-
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0,
|
|
17702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0, import_runtime61.trussProps)({
|
|
17686
17703
|
display: "df",
|
|
17687
17704
|
flexDirection: "fdc",
|
|
17688
17705
|
gap: ["gap_var", {
|
|
@@ -17718,7 +17735,7 @@ function FieldGroup(props) {
|
|
|
17718
17735
|
const width2 = widths2[i] || 1;
|
|
17719
17736
|
return typeof width2 === `number` ? `${width2}fr` : width2;
|
|
17720
17737
|
}).join(" ");
|
|
17721
|
-
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0,
|
|
17738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { ...(0, import_runtime61.trussProps)({
|
|
17722
17739
|
display: "dg",
|
|
17723
17740
|
gap: "gap2",
|
|
17724
17741
|
gridTemplateColumns: ["gtc_var", {
|
|
@@ -17734,7 +17751,7 @@ var sizes = {
|
|
|
17734
17751
|
};
|
|
17735
17752
|
|
|
17736
17753
|
// src/forms/BoundForm.tsx
|
|
17737
|
-
var
|
|
17754
|
+
var import_runtime62 = require("@homebound/truss/runtime");
|
|
17738
17755
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
17739
17756
|
var import_react85 = require("react");
|
|
17740
17757
|
var reactNodePrefix = "reactNode";
|
|
@@ -17789,7 +17806,7 @@ function FormRow({
|
|
|
17789
17806
|
component,
|
|
17790
17807
|
key,
|
|
17791
17808
|
minWidth
|
|
17792
|
-
}) => /* @__PURE__ */ (0, import_react85.createElement)("div", { ...(0,
|
|
17809
|
+
}) => /* @__PURE__ */ (0, import_react85.createElement)("div", { ...(0, import_runtime62.trussProps)({
|
|
17793
17810
|
minWidth: ["mw_var", {
|
|
17794
17811
|
"--minWidth": minWidth
|
|
17795
17812
|
}],
|
|
@@ -17907,7 +17924,7 @@ function boundTreeSelectField(props) {
|
|
|
17907
17924
|
|
|
17908
17925
|
// src/components/internal/CompoundField.tsx
|
|
17909
17926
|
var import_react86 = require("react");
|
|
17910
|
-
var
|
|
17927
|
+
var import_runtime63 = require("@homebound/truss/runtime");
|
|
17911
17928
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
17912
17929
|
function CompoundField({
|
|
17913
17930
|
children
|
|
@@ -17941,7 +17958,7 @@ function CompoundField({
|
|
|
17941
17958
|
setHasFocusWithin(false);
|
|
17942
17959
|
}
|
|
17943
17960
|
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "df", onFocusCapture, onBlurCapture, children: [
|
|
17944
|
-
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0,
|
|
17961
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17945
17962
|
...commonStyles,
|
|
17946
17963
|
...{
|
|
17947
17964
|
borderLeftStyle: "bls_solid",
|
|
@@ -17954,7 +17971,7 @@ function CompoundField({
|
|
|
17954
17971
|
}), children: (0, import_react86.cloneElement)(children[0], {
|
|
17955
17972
|
internalProps
|
|
17956
17973
|
}) }),
|
|
17957
|
-
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0,
|
|
17974
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17958
17975
|
...{
|
|
17959
17976
|
width: "w_1px",
|
|
17960
17977
|
flex: "fn",
|
|
@@ -17964,7 +17981,7 @@ function CompoundField({
|
|
|
17964
17981
|
backgroundColor: "bgBlue700"
|
|
17965
17982
|
}
|
|
17966
17983
|
}) }),
|
|
17967
|
-
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0,
|
|
17984
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17968
17985
|
...commonStyles,
|
|
17969
17986
|
...{
|
|
17970
17987
|
flexGrow: "fg1",
|
|
@@ -18008,7 +18025,7 @@ function BoundSelectAndTextField(props) {
|
|
|
18008
18025
|
}
|
|
18009
18026
|
|
|
18010
18027
|
// src/forms/FormHeading.tsx
|
|
18011
|
-
var
|
|
18028
|
+
var import_runtime64 = require("@homebound/truss/runtime");
|
|
18012
18029
|
var import_jsx_runtime117 = (
|
|
18013
18030
|
// Add space before the heading, but only if it's not first.
|
|
18014
18031
|
require("react/jsx-runtime")
|
|
@@ -18020,7 +18037,7 @@ function FormHeading(props) {
|
|
|
18020
18037
|
isFirst = false,
|
|
18021
18038
|
...others
|
|
18022
18039
|
} = props;
|
|
18023
|
-
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("h3", { ...(0,
|
|
18040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("h3", { ...(0, import_runtime64.trussProps)({
|
|
18024
18041
|
...{
|
|
18025
18042
|
fontWeight: "fw4",
|
|
18026
18043
|
fontSize: "fz_16px",
|
|
@@ -18036,7 +18053,7 @@ FormHeading.isFormHeading = true;
|
|
|
18036
18053
|
|
|
18037
18054
|
// src/forms/StaticField.tsx
|
|
18038
18055
|
var import_utils101 = require("@react-aria/utils");
|
|
18039
|
-
var
|
|
18056
|
+
var import_runtime65 = require("@homebound/truss/runtime");
|
|
18040
18057
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
18041
18058
|
function StaticField(props) {
|
|
18042
18059
|
const {
|
|
@@ -18050,7 +18067,7 @@ function StaticField(props) {
|
|
|
18050
18067
|
} = props;
|
|
18051
18068
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
18052
18069
|
const id = (0, import_utils101.useId)();
|
|
18053
|
-
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { ...(0,
|
|
18070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { ...(0, import_runtime65.trussProps)({
|
|
18054
18071
|
...labelStyle === "left" ? {
|
|
18055
18072
|
display: "df",
|
|
18056
18073
|
justifyContent: "jcsb",
|
|
@@ -18058,7 +18075,7 @@ function StaticField(props) {
|
|
|
18058
18075
|
} : {}
|
|
18059
18076
|
}), ...tid.container, children: [
|
|
18060
18077
|
/* @__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,
|
|
18078
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { id, ...(0, import_runtime65.trussProps)({
|
|
18062
18079
|
fontWeight: "fw4",
|
|
18063
18080
|
fontSize: "fz_14px",
|
|
18064
18081
|
lineHeight: "lh_20px",
|
|
@@ -18106,7 +18123,7 @@ var import_use_debounce6 = require("use-debounce");
|
|
|
18106
18123
|
// src/components/RightSidebar.tsx
|
|
18107
18124
|
var import_framer_motion2 = require("framer-motion");
|
|
18108
18125
|
var import_react87 = require("react");
|
|
18109
|
-
var
|
|
18126
|
+
var import_runtime66 = require("@homebound/truss/runtime");
|
|
18110
18127
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
18111
18128
|
var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
|
|
18112
18129
|
function RightSidebar({
|
|
@@ -18146,7 +18163,7 @@ function RightSidebar({
|
|
|
18146
18163
|
duration: 0.2
|
|
18147
18164
|
},
|
|
18148
18165
|
x: "100%"
|
|
18149
|
-
}, ...(0,
|
|
18166
|
+
}, ...(0, import_runtime66.trussProps)({
|
|
18150
18167
|
width: "w100",
|
|
18151
18168
|
minWidth: ["mw_var", {
|
|
18152
18169
|
"--minWidth": RIGHT_SIDEBAR_MIN_WIDTH
|
|
@@ -18160,7 +18177,7 @@ function RightSidebar({
|
|
|
18160
18177
|
paddingRight: "pr3"
|
|
18161
18178
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_jsx_runtime120.Fragment, { children: [
|
|
18162
18179
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "sticky top0 bgWhite", children: [
|
|
18163
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { ...(0,
|
|
18180
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { ...(0, import_runtime66.trussProps)({
|
|
18164
18181
|
position: "absolute",
|
|
18165
18182
|
left: ["left_var", {
|
|
18166
18183
|
"--left": `${-24}px`
|
|
@@ -18231,7 +18248,7 @@ function Toast() {
|
|
|
18231
18248
|
// src/components/Layout/PageHeaderBreadcrumbs.tsx
|
|
18232
18249
|
var import_react89 = require("react");
|
|
18233
18250
|
var import_react_router_dom4 = require("react-router-dom");
|
|
18234
|
-
var
|
|
18251
|
+
var import_runtime67 = require("@homebound/truss/runtime");
|
|
18235
18252
|
var import_jsx_runtime123 = (
|
|
18236
18253
|
// Adding index to key to prevent rendering issues when multiple items have the same label
|
|
18237
18254
|
require("react/jsx-runtime")
|
|
@@ -18245,7 +18262,7 @@ function PageHeaderBreadcrumbs({
|
|
|
18245
18262
|
function renderBreadcrumb(bc, index, hideDivisor) {
|
|
18246
18263
|
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_react89.Fragment, { children: [
|
|
18247
18264
|
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,
|
|
18265
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_react_router_dom4.Link, { to: bc.href, ...(0, import_runtime67.mergeProps)("navLink", void 0, {
|
|
18249
18266
|
fontWeight: "fw6",
|
|
18250
18267
|
fontSize: "fz_14px",
|
|
18251
18268
|
lineHeight: "lh_20px",
|
|
@@ -18263,7 +18280,7 @@ function PageHeaderBreadcrumbs({
|
|
|
18263
18280
|
}
|
|
18264
18281
|
|
|
18265
18282
|
// src/components/Layout/FormPageLayout.tsx
|
|
18266
|
-
var
|
|
18283
|
+
var import_runtime68 = require("@homebound/truss/runtime");
|
|
18267
18284
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
18268
18285
|
var headerHeightPx = 120;
|
|
18269
18286
|
var maxContentWidthPx = 1600;
|
|
@@ -18286,7 +18303,7 @@ function FormPageLayoutComponent(props) {
|
|
|
18286
18303
|
// since this layout will be replacing most superdrawers/sidebars, we keep the listing mounted below to preserve the users's
|
|
18287
18304
|
// scroll position & filters
|
|
18288
18305
|
// 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,
|
|
18306
|
+
/* @__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
18307
|
width: "w100",
|
|
18291
18308
|
maxWidth: ["maxw_var", {
|
|
18292
18309
|
"--maxWidth": `${maxContentWidthPx}px`
|
|
@@ -18302,7 +18319,7 @@ function FormPageLayoutComponent(props) {
|
|
|
18302
18319
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(PageHeader, { ...props, ...tids.pageHeader }),
|
|
18303
18320
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(LeftNav, { sectionsWithRefs, ...tids }),
|
|
18304
18321
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(FormSections, { sectionsWithRefs, formState, ...tids }),
|
|
18305
|
-
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0,
|
|
18322
|
+
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0, import_runtime68.trussProps)({
|
|
18306
18323
|
gridRow: "gr_2",
|
|
18307
18324
|
gridColumn: "gc_3_4",
|
|
18308
18325
|
position: "sticky",
|
|
@@ -18327,7 +18344,7 @@ function PageHeader(props) {
|
|
|
18327
18344
|
notice
|
|
18328
18345
|
} = useToastContext();
|
|
18329
18346
|
const tids = useTestIds(props);
|
|
18330
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("header", { ...(0,
|
|
18347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("header", { ...(0, import_runtime68.trussProps)({
|
|
18331
18348
|
gridRow: "gr_1",
|
|
18332
18349
|
gridColumn: "gc_1_4",
|
|
18333
18350
|
position: "sticky",
|
|
@@ -18361,7 +18378,7 @@ function FormSections(props) {
|
|
|
18361
18378
|
} = props;
|
|
18362
18379
|
const tids = useTestIds(props);
|
|
18363
18380
|
const bottomPaddingPx = sectionsWithRefs.length > 1 ? 200 : 0;
|
|
18364
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("article", { ...(0,
|
|
18381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("article", { ...(0, import_runtime68.trussProps)({
|
|
18365
18382
|
gridRow: "gr_2",
|
|
18366
18383
|
gridColumn: "gc_2_3",
|
|
18367
18384
|
paddingBottom: ["pb_var", {
|
|
@@ -18379,7 +18396,7 @@ function FormSections(props) {
|
|
|
18379
18396
|
{
|
|
18380
18397
|
id: sectionKey,
|
|
18381
18398
|
ref,
|
|
18382
|
-
...(0,
|
|
18399
|
+
...(0, import_runtime68.trussProps)({
|
|
18383
18400
|
display: "dg",
|
|
18384
18401
|
gridTemplateColumns: "gtc_50px_1fr",
|
|
18385
18402
|
gridTemplateRows: "gtr_auto",
|
|
@@ -18410,7 +18427,7 @@ function LeftNav(props) {
|
|
|
18410
18427
|
section
|
|
18411
18428
|
}) => !!section.title), [sectionsWithRefs]);
|
|
18412
18429
|
const activeSection = useActiveSection(sectionWithTitles);
|
|
18413
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0,
|
|
18430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("aside", { ...(0, import_runtime68.trussProps)({
|
|
18414
18431
|
gridRow: "gr_2",
|
|
18415
18432
|
gridColumn: "gc_1_2",
|
|
18416
18433
|
position: "sticky",
|
|
@@ -18479,7 +18496,7 @@ function SectionNavLink(props) {
|
|
|
18479
18496
|
hoverProps,
|
|
18480
18497
|
isHovered
|
|
18481
18498
|
} = useHover2({});
|
|
18482
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
18499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime68.trussProps)({
|
|
18483
18500
|
...{
|
|
18484
18501
|
fontWeight: "fw6",
|
|
18485
18502
|
fontSize: "fz_14px",
|
|
@@ -18554,7 +18571,7 @@ function useActiveSection(sectionsWithRefs) {
|
|
|
18554
18571
|
}
|
|
18555
18572
|
|
|
18556
18573
|
// src/components/Layout/FullBleed.tsx
|
|
18557
|
-
var
|
|
18574
|
+
var import_runtime69 = require("@homebound/truss/runtime");
|
|
18558
18575
|
var import_react91 = require("react");
|
|
18559
18576
|
var __maybeInc10 = (inc) => {
|
|
18560
18577
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -18580,7 +18597,7 @@ function FullBleed({
|
|
|
18580
18597
|
// ...for some reason this keeps the Layout top padding better than using
|
|
18581
18598
|
// react-aria's more generic mergeProps.
|
|
18582
18599
|
{
|
|
18583
|
-
...(0,
|
|
18600
|
+
...(0, import_runtime69.mergeProps)(
|
|
18584
18601
|
className,
|
|
18585
18602
|
style,
|
|
18586
18603
|
// ScrollableParent applies horizontal padding to its content column, so FullBleed
|
|
@@ -18666,7 +18683,7 @@ function isSelectionButtonMenuProps(props) {
|
|
|
18666
18683
|
var import_react96 = require("react");
|
|
18667
18684
|
|
|
18668
18685
|
// src/components/CountBadge.tsx
|
|
18669
|
-
var
|
|
18686
|
+
var import_runtime70 = require("@homebound/truss/runtime");
|
|
18670
18687
|
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
18671
18688
|
function CountBadge(props) {
|
|
18672
18689
|
const {
|
|
@@ -18678,7 +18695,7 @@ function CountBadge(props) {
|
|
|
18678
18695
|
} = props;
|
|
18679
18696
|
const tid = useTestIds(otherProps, "countBadge");
|
|
18680
18697
|
if (hideIfZero && count === 0) return null;
|
|
18681
|
-
return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { ...tid, ...(0,
|
|
18698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { ...tid, ...(0, import_runtime70.trussProps)({
|
|
18682
18699
|
...{
|
|
18683
18700
|
height: ["sq_var", {
|
|
18684
18701
|
"--height": `${count > 100 ? 18 : 16}px`
|
|
@@ -19079,7 +19096,7 @@ function OpenModal(props) {
|
|
|
19079
19096
|
}
|
|
19080
19097
|
|
|
19081
19098
|
// src/components/Filters/FilterModal.tsx
|
|
19082
|
-
var
|
|
19099
|
+
var import_runtime71 = require("@homebound/truss/runtime");
|
|
19083
19100
|
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
19084
19101
|
function FilterModal(props) {
|
|
19085
19102
|
const {
|
|
@@ -19116,7 +19133,7 @@ function ModalFilterItem({
|
|
|
19116
19133
|
label,
|
|
19117
19134
|
children
|
|
19118
19135
|
}) {
|
|
19119
|
-
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { ...(0,
|
|
19136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { ...(0, import_runtime71.trussProps)({
|
|
19120
19137
|
marginBottom: "mb4",
|
|
19121
19138
|
...!label ? {
|
|
19122
19139
|
borderTopStyle: "bts_solid",
|
|
@@ -19125,7 +19142,7 @@ function ModalFilterItem({
|
|
|
19125
19142
|
} : {}
|
|
19126
19143
|
}), children: [
|
|
19127
19144
|
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,
|
|
19145
|
+
/* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { ...(0, import_runtime71.trussProps)({
|
|
19129
19146
|
...!label ? {
|
|
19130
19147
|
paddingTop: "pt3"
|
|
19131
19148
|
} : {}
|
|
@@ -19135,7 +19152,7 @@ function ModalFilterItem({
|
|
|
19135
19152
|
|
|
19136
19153
|
// src/components/Filters/Filters.tsx
|
|
19137
19154
|
var import_react95 = require("react");
|
|
19138
|
-
var
|
|
19155
|
+
var import_runtime72 = require("@homebound/truss/runtime");
|
|
19139
19156
|
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
19140
19157
|
function Filters(props) {
|
|
19141
19158
|
const {
|
|
@@ -19159,7 +19176,7 @@ function Filters(props) {
|
|
|
19159
19176
|
}, [numberOfInlineFilters, vertical, filterDefs]);
|
|
19160
19177
|
const numModalFilters = safeKeys(modalFilters).filter((fk) => filter[fk] !== void 0).length;
|
|
19161
19178
|
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,
|
|
19179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)("div", { ...(0, import_runtime72.trussProps)({
|
|
19163
19180
|
...vertical ? {
|
|
19164
19181
|
display: "df",
|
|
19165
19182
|
flexDirection: "fdc",
|
|
@@ -19410,7 +19427,7 @@ function EditColumnsButton(props) {
|
|
|
19410
19427
|
}
|
|
19411
19428
|
|
|
19412
19429
|
// src/components/Table/TableActions.tsx
|
|
19413
|
-
var
|
|
19430
|
+
var import_runtime73 = require("@homebound/truss/runtime");
|
|
19414
19431
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
19415
19432
|
function TableActions(props) {
|
|
19416
19433
|
const {
|
|
@@ -19418,7 +19435,7 @@ function TableActions(props) {
|
|
|
19418
19435
|
children,
|
|
19419
19436
|
right
|
|
19420
19437
|
} = props;
|
|
19421
|
-
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { ...(0,
|
|
19438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { ...(0, import_runtime73.trussProps)({
|
|
19422
19439
|
...{
|
|
19423
19440
|
display: "df",
|
|
19424
19441
|
gap: "gap1",
|
|
@@ -19441,7 +19458,7 @@ var import_use_query_params3 = require("use-query-params");
|
|
|
19441
19458
|
var import_react98 = require("react");
|
|
19442
19459
|
|
|
19443
19460
|
// src/components/LoadingSkeleton.tsx
|
|
19444
|
-
var
|
|
19461
|
+
var import_runtime74 = require("@homebound/truss/runtime");
|
|
19445
19462
|
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
19446
19463
|
function LoadingSkeleton({
|
|
19447
19464
|
rows = 1,
|
|
@@ -19455,7 +19472,7 @@ function LoadingSkeleton({
|
|
|
19455
19472
|
const rowHeight = sizeToPixels2[size];
|
|
19456
19473
|
const rowCells = (rowNumber) => {
|
|
19457
19474
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
19458
|
-
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0,
|
|
19475
|
+
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0, import_runtime74.trussProps)({
|
|
19459
19476
|
borderRadius: "br4",
|
|
19460
19477
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
19461
19478
|
flexGrow: ["flexGrow_var", {
|
|
@@ -19467,7 +19484,7 @@ function LoadingSkeleton({
|
|
|
19467
19484
|
} : {}
|
|
19468
19485
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
19469
19486
|
};
|
|
19470
|
-
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0,
|
|
19487
|
+
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
19488
|
display: "df",
|
|
19472
19489
|
gap: "gap1",
|
|
19473
19490
|
marginBottom: "mb1",
|
|
@@ -19508,7 +19525,7 @@ function LoadingTable(props) {
|
|
|
19508
19525
|
}
|
|
19509
19526
|
|
|
19510
19527
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
19511
|
-
var
|
|
19528
|
+
var import_runtime75 = require("@homebound/truss/runtime");
|
|
19512
19529
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
19513
19530
|
function isGridTableProps(props) {
|
|
19514
19531
|
return "rows" in props;
|
|
@@ -19642,7 +19659,7 @@ function Header2(props) {
|
|
|
19642
19659
|
actionMenu
|
|
19643
19660
|
} = props;
|
|
19644
19661
|
const tids = useTestIds(props);
|
|
19645
|
-
return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("header", { ...(0,
|
|
19662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("header", { ...(0, import_runtime75.trussProps)({
|
|
19646
19663
|
...{
|
|
19647
19664
|
paddingTop: "pt3",
|
|
19648
19665
|
paddingBottom: "pb3",
|
|
@@ -19740,7 +19757,7 @@ function useRightPaneContext() {
|
|
|
19740
19757
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
19741
19758
|
var import_framer_motion3 = require("framer-motion");
|
|
19742
19759
|
var import_react101 = require("react");
|
|
19743
|
-
var
|
|
19760
|
+
var import_runtime76 = require("@homebound/truss/runtime");
|
|
19744
19761
|
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
19745
19762
|
var __maybeInc11 = (inc) => {
|
|
19746
19763
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -19760,7 +19777,7 @@ function RightPaneLayout(props) {
|
|
|
19760
19777
|
} = useRightPaneContext();
|
|
19761
19778
|
(0, import_react101.useEffect)(() => closePane, [closePane]);
|
|
19762
19779
|
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,
|
|
19780
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0, import_runtime76.trussProps)({
|
|
19764
19781
|
...{
|
|
19765
19782
|
width: ["w_var", {
|
|
19766
19783
|
"--width": __maybeInc11(`calc(100% - ${paneWidth + 24}px)`)
|
|
@@ -19785,7 +19802,7 @@ function RightPaneLayout(props) {
|
|
|
19785
19802
|
} : {}
|
|
19786
19803
|
}
|
|
19787
19804
|
}), children }),
|
|
19788
|
-
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { ...(0,
|
|
19805
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { ...(0, import_runtime76.trussProps)({
|
|
19789
19806
|
position: "relative",
|
|
19790
19807
|
...!!defaultPaneContent ? {
|
|
19791
19808
|
width: ["w_var", {
|
|
@@ -19793,7 +19810,7 @@ function RightPaneLayout(props) {
|
|
|
19793
19810
|
}]
|
|
19794
19811
|
} : {}
|
|
19795
19812
|
}), children: [
|
|
19796
|
-
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0,
|
|
19813
|
+
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0, import_runtime76.trussProps)({
|
|
19797
19814
|
height: "h100",
|
|
19798
19815
|
width: ["w_var", {
|
|
19799
19816
|
"--width": `${paneWidth}px`
|
|
@@ -19811,7 +19828,7 @@ function RightPaneLayout(props) {
|
|
|
19811
19828
|
{
|
|
19812
19829
|
layout: "position",
|
|
19813
19830
|
"data-testid": "rightPaneContent",
|
|
19814
|
-
...(0,
|
|
19831
|
+
...(0, import_runtime76.trussProps)({
|
|
19815
19832
|
backgroundColor: ["bgColor_var", {
|
|
19816
19833
|
"--backgroundColor": paneBgColor
|
|
19817
19834
|
}],
|
|
@@ -19957,7 +19974,7 @@ function ButtonDatePicker(props) {
|
|
|
19957
19974
|
// src/components/ButtonGroup.tsx
|
|
19958
19975
|
var import_react104 = require("react");
|
|
19959
19976
|
var import_react_aria48 = require("react-aria");
|
|
19960
|
-
var
|
|
19977
|
+
var import_runtime77 = require("@homebound/truss/runtime");
|
|
19961
19978
|
var import_jsx_runtime151 = (
|
|
19962
19979
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
19963
19980
|
require("react/jsx-runtime")
|
|
@@ -19971,7 +19988,7 @@ function ButtonGroup(props) {
|
|
|
19971
19988
|
const tid = useTestIds(props, "buttonGroup");
|
|
19972
19989
|
return (
|
|
19973
19990
|
// 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,
|
|
19991
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...tid, ...(0, import_runtime77.trussProps)({
|
|
19975
19992
|
...{
|
|
19976
19993
|
display: "df",
|
|
19977
19994
|
lineHeight: "lh_0"
|
|
@@ -20017,10 +20034,10 @@ function GroupButton(props) {
|
|
|
20017
20034
|
isHovered
|
|
20018
20035
|
} = (0, import_react_aria48.useHover)(ariaProps);
|
|
20019
20036
|
const tid = useTestIds(props);
|
|
20020
|
-
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { ...(0,
|
|
20037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { ...(0, import_runtime77.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
20021
20038
|
title: resolveTooltip(disabled, tooltip),
|
|
20022
20039
|
placement: "top",
|
|
20023
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
20040
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime77.trussProps)({
|
|
20024
20041
|
...{
|
|
20025
20042
|
fontWeight: "fw6",
|
|
20026
20043
|
fontSize: "fz_14px",
|
|
@@ -20127,7 +20144,7 @@ var import_react_aria49 = require("react-aria");
|
|
|
20127
20144
|
// src/components/Tag.tsx
|
|
20128
20145
|
var import_utils118 = require("@react-aria/utils");
|
|
20129
20146
|
var import_react105 = require("react");
|
|
20130
|
-
var
|
|
20147
|
+
var import_runtime78 = require("@homebound/truss/runtime");
|
|
20131
20148
|
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
20132
20149
|
function Tag(props) {
|
|
20133
20150
|
const {
|
|
@@ -20151,7 +20168,7 @@ function Tag(props) {
|
|
|
20151
20168
|
});
|
|
20152
20169
|
return maybeTooltip({
|
|
20153
20170
|
title: !preventTooltip && showTooltip ? text : void 0,
|
|
20154
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { ...tid, ...(0,
|
|
20171
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { ...tid, ...(0, import_runtime78.trussProps)({
|
|
20155
20172
|
...{
|
|
20156
20173
|
display: "dif",
|
|
20157
20174
|
fontWeight: "fw6",
|
|
@@ -20201,7 +20218,7 @@ function getStyles(type) {
|
|
|
20201
20218
|
}
|
|
20202
20219
|
|
|
20203
20220
|
// src/components/Card.tsx
|
|
20204
|
-
var
|
|
20221
|
+
var import_runtime79 = require("@homebound/truss/runtime");
|
|
20205
20222
|
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
20206
20223
|
function Card(props) {
|
|
20207
20224
|
const {
|
|
@@ -20232,8 +20249,8 @@ function Card(props) {
|
|
|
20232
20249
|
...isHovered && cardHoverStyles,
|
|
20233
20250
|
...isDisabled && disabledStyles3
|
|
20234
20251
|
}), [isDisabled, isHovered, bordered, type, isList]);
|
|
20235
|
-
return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { ...(0,
|
|
20236
|
-
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { ...(0, import_runtime79.trussProps)(styles), ...hoverProps, ...tid, children: [
|
|
20253
|
+
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20237
20254
|
...{
|
|
20238
20255
|
height: ["h_var", {
|
|
20239
20256
|
"--height": `${imgHeight}px`
|
|
@@ -20250,14 +20267,14 @@ function Card(props) {
|
|
|
20250
20267
|
filter: "filter_brightness_1"
|
|
20251
20268
|
},
|
|
20252
20269
|
...isHovered && !isList && imageHoverStyles
|
|
20253
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("img", { ...(0,
|
|
20270
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("img", { ...(0, import_runtime79.trussProps)({
|
|
20254
20271
|
width: "w100",
|
|
20255
20272
|
height: "h100",
|
|
20256
20273
|
objectFit: ["objectFit_var", {
|
|
20257
20274
|
"--objectFit": imageFit
|
|
20258
20275
|
}]
|
|
20259
20276
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
20260
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20277
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20261
20278
|
position: "absolute",
|
|
20262
20279
|
right: "right1",
|
|
20263
20280
|
top: "top1",
|
|
@@ -20273,7 +20290,7 @@ function Card(props) {
|
|
|
20273
20290
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "df fdc aifs gap1", children: [
|
|
20274
20291
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { children: [
|
|
20275
20292
|
/* @__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,
|
|
20293
|
+
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20277
20294
|
fontWeight: "fw6",
|
|
20278
20295
|
fontSize: "fz_14px",
|
|
20279
20296
|
lineHeight: "lh_20px",
|
|
@@ -20331,10 +20348,10 @@ var imageHoverStyles = {
|
|
|
20331
20348
|
};
|
|
20332
20349
|
|
|
20333
20350
|
// src/components/Copy.tsx
|
|
20334
|
-
var
|
|
20351
|
+
var import_runtime80 = require("@homebound/truss/runtime");
|
|
20335
20352
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
20336
20353
|
function Copy(props) {
|
|
20337
|
-
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0,
|
|
20354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0, import_runtime80.mergeProps)("beam-copy", void 0, {
|
|
20338
20355
|
...{
|
|
20339
20356
|
fontWeight: "fw4",
|
|
20340
20357
|
fontSize: "fz_14px",
|
|
@@ -20363,7 +20380,7 @@ function useDnDGridContext() {
|
|
|
20363
20380
|
}
|
|
20364
20381
|
|
|
20365
20382
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
20366
|
-
var
|
|
20383
|
+
var import_runtime81 = require("@homebound/truss/runtime");
|
|
20367
20384
|
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
20368
20385
|
function DnDGrid(props) {
|
|
20369
20386
|
const {
|
|
@@ -20544,7 +20561,7 @@ function DnDGrid(props) {
|
|
|
20544
20561
|
return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(DnDGridContext.Provider, { value: {
|
|
20545
20562
|
dragEl,
|
|
20546
20563
|
onDragHandleKeyDown
|
|
20547
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { ref: gridEl, ...(0,
|
|
20564
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { ref: gridEl, ...(0, import_runtime81.trussProps)({
|
|
20548
20565
|
...{
|
|
20549
20566
|
containerType: "ctis",
|
|
20550
20567
|
display: "dg"
|
|
@@ -20557,7 +20574,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
20557
20574
|
|
|
20558
20575
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
20559
20576
|
var import_react_aria50 = require("react-aria");
|
|
20560
|
-
var
|
|
20577
|
+
var import_runtime82 = require("@homebound/truss/runtime");
|
|
20561
20578
|
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
20562
20579
|
function DnDGridItemHandle(props) {
|
|
20563
20580
|
const {
|
|
@@ -20587,7 +20604,7 @@ function DnDGridItemHandle(props) {
|
|
|
20587
20604
|
borderRadius: "br4",
|
|
20588
20605
|
borderWidth: "bw1"
|
|
20589
20606
|
};
|
|
20590
|
-
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("button", { ...(0,
|
|
20607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("button", { ...(0, import_runtime82.trussProps)({
|
|
20591
20608
|
...compact ? iconButtonCompact2 : iconButtonNormal2,
|
|
20592
20609
|
...{
|
|
20593
20610
|
cursor: "cursor_grab",
|
|
@@ -20649,7 +20666,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
20649
20666
|
var ResponsiveGridContext = (0, import_react110.createContext)(void 0);
|
|
20650
20667
|
|
|
20651
20668
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
20652
|
-
var
|
|
20669
|
+
var import_runtime83 = require("@homebound/truss/runtime");
|
|
20653
20670
|
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
20654
20671
|
function ResponsiveGrid(props) {
|
|
20655
20672
|
const {
|
|
@@ -20670,12 +20687,12 @@ function ResponsiveGrid(props) {
|
|
|
20670
20687
|
gap,
|
|
20671
20688
|
columns
|
|
20672
20689
|
}), [minColumnWidth, gap, columns]);
|
|
20673
|
-
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...(0,
|
|
20690
|
+
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
20691
|
}
|
|
20675
20692
|
|
|
20676
20693
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
20677
20694
|
var import_react_aria51 = require("react-aria");
|
|
20678
|
-
var
|
|
20695
|
+
var import_runtime84 = require("@homebound/truss/runtime");
|
|
20679
20696
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
20680
20697
|
function ResponsiveGridItem(props) {
|
|
20681
20698
|
const {
|
|
@@ -20688,7 +20705,7 @@ function ResponsiveGridItem(props) {
|
|
|
20688
20705
|
} = useResponsiveGridItem({
|
|
20689
20706
|
colSpan
|
|
20690
20707
|
});
|
|
20691
|
-
return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0,
|
|
20708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0, import_runtime84.trussProps)(gridItemStyles)), children });
|
|
20692
20709
|
}
|
|
20693
20710
|
|
|
20694
20711
|
// src/components/Grid/useResponsiveGrid.ts
|
|
@@ -20840,7 +20857,7 @@ function HbSpinnerProvider({
|
|
|
20840
20857
|
// src/components/MaxLines.tsx
|
|
20841
20858
|
var import_utils126 = require("@react-aria/utils");
|
|
20842
20859
|
var import_react115 = require("react");
|
|
20843
|
-
var
|
|
20860
|
+
var import_runtime85 = require("@homebound/truss/runtime");
|
|
20844
20861
|
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
20845
20862
|
function MaxLines({
|
|
20846
20863
|
maxLines,
|
|
@@ -20865,7 +20882,7 @@ function MaxLines({
|
|
|
20865
20882
|
onResize
|
|
20866
20883
|
});
|
|
20867
20884
|
return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { children: [
|
|
20868
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0,
|
|
20885
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0, import_runtime85.trussProps)({
|
|
20869
20886
|
...!expanded ? {
|
|
20870
20887
|
WebkitLineClamp: ["lineClamp_var", {
|
|
20871
20888
|
"--WebkitLineClamp": maxLines
|
|
@@ -20883,7 +20900,7 @@ function MaxLines({
|
|
|
20883
20900
|
// src/components/ScrollShadows.tsx
|
|
20884
20901
|
var import_utils127 = require("@react-aria/utils");
|
|
20885
20902
|
var import_react116 = require("react");
|
|
20886
|
-
var
|
|
20903
|
+
var import_runtime86 = require("@homebound/truss/runtime");
|
|
20887
20904
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
20888
20905
|
function ScrollShadows(props) {
|
|
20889
20906
|
const {
|
|
@@ -20972,7 +20989,7 @@ function ScrollShadows(props) {
|
|
|
20972
20989
|
ref: scrollRef,
|
|
20973
20990
|
onResize
|
|
20974
20991
|
});
|
|
20975
|
-
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0,
|
|
20992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0, import_runtime86.trussProps)({
|
|
20976
20993
|
display: "df",
|
|
20977
20994
|
flexDirection: ["fd_var", {
|
|
20978
20995
|
"--flexDirection": !horizontal ? "column" : "row"
|
|
@@ -20988,7 +21005,7 @@ function ScrollShadows(props) {
|
|
|
20988
21005
|
width: width2
|
|
20989
21006
|
}
|
|
20990
21007
|
}), ...tid, children: [
|
|
20991
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
21008
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
20992
21009
|
...startShadowStyles,
|
|
20993
21010
|
...{
|
|
20994
21011
|
opacity: ["o_var", {
|
|
@@ -20996,7 +21013,7 @@ function ScrollShadows(props) {
|
|
|
20996
21013
|
}]
|
|
20997
21014
|
}
|
|
20998
21015
|
}), "data-chromatic": "ignore" }),
|
|
20999
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
21016
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
21000
21017
|
...endShadowStyles,
|
|
21001
21018
|
...{
|
|
21002
21019
|
opacity: ["o_var", {
|
|
@@ -21004,7 +21021,7 @@ function ScrollShadows(props) {
|
|
|
21004
21021
|
}]
|
|
21005
21022
|
}
|
|
21006
21023
|
}), "data-chromatic": "ignore" }),
|
|
21007
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
21024
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime86.trussProps)({
|
|
21008
21025
|
...xss,
|
|
21009
21026
|
...{
|
|
21010
21027
|
overflow: "oa",
|
|
@@ -21077,7 +21094,7 @@ var snackbarId = 1;
|
|
|
21077
21094
|
// src/components/Stepper.tsx
|
|
21078
21095
|
var import_react118 = require("react");
|
|
21079
21096
|
var import_react_aria52 = require("react-aria");
|
|
21080
|
-
var
|
|
21097
|
+
var import_runtime87 = require("@homebound/truss/runtime");
|
|
21081
21098
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
21082
21099
|
var import_react119 = require("react");
|
|
21083
21100
|
var __maybeInc13 = (inc) => {
|
|
@@ -21098,7 +21115,7 @@ function Stepper(props) {
|
|
|
21098
21115
|
const minStepWidth = 100;
|
|
21099
21116
|
const gap = 8;
|
|
21100
21117
|
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,
|
|
21118
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("ol", { ...(0, import_runtime87.trussProps)({
|
|
21102
21119
|
padding: "p_0",
|
|
21103
21120
|
margin: "m_0",
|
|
21104
21121
|
listStyle: "lis_none",
|
|
@@ -21108,7 +21125,7 @@ function Stepper(props) {
|
|
|
21108
21125
|
}]
|
|
21109
21126
|
}), children: steps.map((step) => {
|
|
21110
21127
|
const isCurrent = currentStep === step.value;
|
|
21111
|
-
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0,
|
|
21128
|
+
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0, import_runtime87.trussProps)({
|
|
21112
21129
|
display: "df",
|
|
21113
21130
|
flexGrow: "fg1",
|
|
21114
21131
|
flexDirection: "fdc",
|
|
@@ -21120,7 +21137,7 @@ function Stepper(props) {
|
|
|
21120
21137
|
}]
|
|
21121
21138
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
21122
21139
|
}) }),
|
|
21123
|
-
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21140
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
21124
21141
|
marginTop: "mt1",
|
|
21125
21142
|
backgroundColor: "bgGray300",
|
|
21126
21143
|
height: "h_4px",
|
|
@@ -21131,7 +21148,7 @@ function Stepper(props) {
|
|
|
21131
21148
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
21132
21149
|
}],
|
|
21133
21150
|
width: "w100"
|
|
21134
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21151
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
21135
21152
|
backgroundColor: "bgBlue600",
|
|
21136
21153
|
transition: "transition_width_200ms",
|
|
21137
21154
|
height: "h100",
|
|
@@ -21172,7 +21189,7 @@ function StepButton(props) {
|
|
|
21172
21189
|
boxShadow: "bshFocus"
|
|
21173
21190
|
};
|
|
21174
21191
|
const tid = useTestIds(props, "stepButton");
|
|
21175
|
-
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
21192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime87.trussProps)({
|
|
21176
21193
|
...{
|
|
21177
21194
|
fontWeight: "fw6",
|
|
21178
21195
|
fontSize: "fz_14px",
|
|
@@ -21240,7 +21257,7 @@ function StepIcon({
|
|
|
21240
21257
|
if (state === "complete") {
|
|
21241
21258
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Icon, { icon: "check" });
|
|
21242
21259
|
}
|
|
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,
|
|
21260
|
+
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
21261
|
width: "w_10px",
|
|
21245
21262
|
height: "h_10px",
|
|
21246
21263
|
borderStyle: "bss",
|
|
@@ -21255,7 +21272,7 @@ function StepIcon({
|
|
|
21255
21272
|
|
|
21256
21273
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
21257
21274
|
var import_react_dom5 = require("react-dom");
|
|
21258
|
-
var
|
|
21275
|
+
var import_runtime88 = require("@homebound/truss/runtime");
|
|
21259
21276
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
21260
21277
|
function SuperDrawerHeader(props) {
|
|
21261
21278
|
const {
|
|
@@ -21281,7 +21298,7 @@ function SuperDrawerHeader(props) {
|
|
|
21281
21298
|
] }),
|
|
21282
21299
|
props.right && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fs0", children: props.right })
|
|
21283
21300
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fg1", children: props.children }),
|
|
21284
|
-
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0,
|
|
21301
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0, import_runtime88.trussProps)({
|
|
21285
21302
|
flexShrink: "fs0",
|
|
21286
21303
|
...isDetail ? {
|
|
21287
21304
|
visibility: "vh"
|
|
@@ -21461,7 +21478,7 @@ function canClose(canCloseCheck) {
|
|
|
21461
21478
|
}
|
|
21462
21479
|
|
|
21463
21480
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
21464
|
-
var
|
|
21481
|
+
var import_runtime89 = require("@homebound/truss/runtime");
|
|
21465
21482
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
21466
21483
|
var SuperDrawerContent = ({
|
|
21467
21484
|
children,
|
|
@@ -21510,7 +21527,7 @@ var SuperDrawerContent = ({
|
|
|
21510
21527
|
}, className: "pt2", children: children2 })
|
|
21511
21528
|
] }, "content");
|
|
21512
21529
|
} else {
|
|
21513
|
-
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0,
|
|
21530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0, import_runtime89.mergeProps)(void 0, {
|
|
21514
21531
|
overflow: "auto"
|
|
21515
21532
|
}, {
|
|
21516
21533
|
paddingTop: "pt3",
|
|
@@ -21551,7 +21568,7 @@ var import_react121 = require("react");
|
|
|
21551
21568
|
var import_react_aria53 = require("react-aria");
|
|
21552
21569
|
var import_react_router2 = require("react-router");
|
|
21553
21570
|
var import_react_router_dom5 = require("react-router-dom");
|
|
21554
|
-
var
|
|
21571
|
+
var import_runtime90 = require("@homebound/truss/runtime");
|
|
21555
21572
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
21556
21573
|
function TabsWithContent(props) {
|
|
21557
21574
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -21584,7 +21601,7 @@ function TabContent(props) {
|
|
|
21584
21601
|
return (
|
|
21585
21602
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
21586
21603
|
// 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,
|
|
21604
|
+
/* @__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
21605
|
);
|
|
21589
21606
|
}
|
|
21590
21607
|
function Tabs(props) {
|
|
@@ -21623,7 +21640,7 @@ function Tabs(props) {
|
|
|
21623
21640
|
setActive(selected);
|
|
21624
21641
|
}
|
|
21625
21642
|
}
|
|
21626
|
-
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0,
|
|
21643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0, import_runtime90.trussProps)({
|
|
21627
21644
|
...{
|
|
21628
21645
|
display: "df",
|
|
21629
21646
|
alignItems: "aic",
|
|
@@ -21687,7 +21704,7 @@ function TabImpl(props) {
|
|
|
21687
21704
|
role: "tab",
|
|
21688
21705
|
tabIndex: active ? 0 : -1,
|
|
21689
21706
|
...others,
|
|
21690
|
-
...(0,
|
|
21707
|
+
...(0, import_runtime90.trussProps)({
|
|
21691
21708
|
...baseStyles5,
|
|
21692
21709
|
...active && activeStyles4,
|
|
21693
21710
|
...isDisabled && disabledStyles4,
|
|
@@ -21929,7 +21946,7 @@ function useToast() {
|
|
|
21929
21946
|
RightPaneProvider,
|
|
21930
21947
|
RightSidebar,
|
|
21931
21948
|
Row,
|
|
21932
|
-
|
|
21949
|
+
RuntimeCss,
|
|
21933
21950
|
ScrollShadows,
|
|
21934
21951
|
ScrollableContent,
|
|
21935
21952
|
ScrollableParent,
|