@homebound/beam 3.0.0-alpha.10 → 3.0.0-alpha.11
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 +319 -297
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +29 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -143,6 +143,7 @@ __export(index_exports, {
|
|
|
143
143
|
RightPaneProvider: () => RightPaneProvider,
|
|
144
144
|
RightSidebar: () => RightSidebar,
|
|
145
145
|
Row: () => Row,
|
|
146
|
+
RuntimeStyle: () => import_runtime2.RuntimeStyle,
|
|
146
147
|
ScrollShadows: () => ScrollShadows,
|
|
147
148
|
ScrollableContent: () => ScrollableContent,
|
|
148
149
|
ScrollableParent: () => ScrollableParent,
|
|
@@ -319,6 +320,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
319
320
|
|
|
320
321
|
// src/Css.ts
|
|
321
322
|
var import_runtime = require("@homebound/truss/runtime");
|
|
323
|
+
var import_runtime2 = require("@homebound/truss/runtime");
|
|
322
324
|
var CssBuilder = class _CssBuilder {
|
|
323
325
|
constructor(opts) {
|
|
324
326
|
this.opts = opts;
|
|
@@ -4066,6 +4068,12 @@ var CssBuilder = class _CssBuilder {
|
|
|
4066
4068
|
}
|
|
4067
4069
|
// aliases
|
|
4068
4070
|
get $() {
|
|
4071
|
+
if (this.opts.runtimeError) {
|
|
4072
|
+
throw new Error(this.opts.runtimeError);
|
|
4073
|
+
}
|
|
4074
|
+
if (this.selector !== void 0) {
|
|
4075
|
+
throw new Error("Selector-based Css helpers cannot be used in RuntimeStyle css expressions.");
|
|
4076
|
+
}
|
|
4069
4077
|
return this.rules;
|
|
4070
4078
|
}
|
|
4071
4079
|
get onHover() {
|
|
@@ -4094,11 +4102,11 @@ var CssBuilder = class _CssBuilder {
|
|
|
4094
4102
|
}
|
|
4095
4103
|
/** Marks this element as a default hover marker (for ancestor pseudo selectors). */
|
|
4096
4104
|
get marker() {
|
|
4097
|
-
return this;
|
|
4105
|
+
return this.unsupportedRuntime("marker cannot be used in RuntimeStyle css expressions.");
|
|
4098
4106
|
}
|
|
4099
4107
|
/** Marks this element with a user-defined marker. */
|
|
4100
4108
|
markerOf(_marker) {
|
|
4101
|
-
return this;
|
|
4109
|
+
return this.unsupportedRuntime("markerOf() cannot be used in RuntimeStyle css expressions.");
|
|
4102
4110
|
}
|
|
4103
4111
|
/** Creates a marker token for use with markerOf() and when(). */
|
|
4104
4112
|
newMarker() {
|
|
@@ -4108,14 +4116,14 @@ var CssBuilder = class _CssBuilder {
|
|
|
4108
4116
|
return this[key];
|
|
4109
4117
|
}
|
|
4110
4118
|
when(_selectorOrMarker, _relationship, _pseudo) {
|
|
4111
|
-
return this;
|
|
4119
|
+
return this.unsupportedRuntime("when() cannot be used in RuntimeStyle css expressions.");
|
|
4112
4120
|
}
|
|
4113
4121
|
ifContainer(_props) {
|
|
4114
|
-
return this;
|
|
4122
|
+
return this.unsupportedRuntime("ifContainer() cannot be used in RuntimeStyle css expressions.");
|
|
4115
4123
|
}
|
|
4116
4124
|
/** Apply styles within a pseudo-element (e.g. `"::placeholder"`, `"::selection"`). */
|
|
4117
4125
|
element(_pseudoElement) {
|
|
4118
|
-
return this;
|
|
4126
|
+
return this.unsupportedRuntime("element() cannot be used in RuntimeStyle css expressions.");
|
|
4119
4127
|
}
|
|
4120
4128
|
get ifPrint() {
|
|
4121
4129
|
return this.newCss({ selector: "@media print" });
|
|
@@ -4145,7 +4153,7 @@ var CssBuilder = class _CssBuilder {
|
|
|
4145
4153
|
if (typeof condOrMediaQuery === "boolean") {
|
|
4146
4154
|
return new _CssBuilder({ ...this.opts, enabled: condOrMediaQuery, elseApplied: false });
|
|
4147
4155
|
}
|
|
4148
|
-
return this.
|
|
4156
|
+
return this.unsupportedRuntime("if(mediaQuery) cannot be used in RuntimeStyle css expressions.");
|
|
4149
4157
|
}
|
|
4150
4158
|
get else() {
|
|
4151
4159
|
if (this.selector !== void 0) {
|
|
@@ -4174,12 +4182,16 @@ var CssBuilder = class _CssBuilder {
|
|
|
4174
4182
|
/** Marker for the build-time transform to append a raw className. */
|
|
4175
4183
|
className(className) {
|
|
4176
4184
|
void className;
|
|
4177
|
-
return this;
|
|
4185
|
+
return this.unsupportedRuntime("className() cannot be used in RuntimeStyle css expressions.");
|
|
4178
4186
|
}
|
|
4179
4187
|
/** Convert a style hash into `{ className, style }` props for manual spreading into non-`css=` contexts. */
|
|
4180
4188
|
props(styles) {
|
|
4181
4189
|
return (0, import_runtime.trussProps)(styles);
|
|
4182
4190
|
}
|
|
4191
|
+
/** Tagged template literal for raw CSS in .css.ts files; passes through the string as-is. */
|
|
4192
|
+
raw(strings, ...values) {
|
|
4193
|
+
return String.raw(strings, ...values);
|
|
4194
|
+
}
|
|
4183
4195
|
get rules() {
|
|
4184
4196
|
return this.opts.rules;
|
|
4185
4197
|
}
|
|
@@ -4189,6 +4201,9 @@ var CssBuilder = class _CssBuilder {
|
|
|
4189
4201
|
get selector() {
|
|
4190
4202
|
return this.opts.selector;
|
|
4191
4203
|
}
|
|
4204
|
+
unsupportedRuntime(message) {
|
|
4205
|
+
return this.newCss({ runtimeError: message });
|
|
4206
|
+
}
|
|
4192
4207
|
newCss(opts) {
|
|
4193
4208
|
return new _CssBuilder({ ...this.opts, ...opts });
|
|
4194
4209
|
}
|
|
@@ -4284,7 +4299,13 @@ var Palette = /* @__PURE__ */ ((Palette4) => {
|
|
|
4284
4299
|
return Palette4;
|
|
4285
4300
|
})(Palette || {});
|
|
4286
4301
|
var marker = /* @__PURE__ */ Symbol.for("truss-default-marker");
|
|
4287
|
-
var Css = new CssBuilder({
|
|
4302
|
+
var Css = new CssBuilder({
|
|
4303
|
+
rules: {},
|
|
4304
|
+
enabled: true,
|
|
4305
|
+
selector: void 0,
|
|
4306
|
+
elseApplied: false,
|
|
4307
|
+
runtimeError: void 0
|
|
4308
|
+
});
|
|
4288
4309
|
var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
|
|
4289
4310
|
Breakpoints2["print"] = "@media print";
|
|
4290
4311
|
Breakpoints2["sm"] = "@media screen and (max-width: 599px)";
|
|
@@ -4499,7 +4520,7 @@ function pluralize(count, noun, pluralNoun) {
|
|
|
4499
4520
|
}
|
|
4500
4521
|
|
|
4501
4522
|
// src/components/Tooltip.tsx
|
|
4502
|
-
var
|
|
4523
|
+
var import_runtime3 = require("@homebound/truss/runtime");
|
|
4503
4524
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
4504
4525
|
var gapCrossingDelay = 100;
|
|
4505
4526
|
function Tooltip(props) {
|
|
@@ -4578,7 +4599,7 @@ function Popper(props) {
|
|
|
4578
4599
|
}],
|
|
4579
4600
|
placement
|
|
4580
4601
|
});
|
|
4581
|
-
return (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref: popperRef, ...attributes.popper, ...ariaProps, onMouseEnter, onMouseLeave, ...(0,
|
|
4602
|
+
return (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref: popperRef, ...attributes.popper, ...ariaProps, onMouseEnter, onMouseLeave, ...(0, import_runtime3.mergeProps)(void 0, styles.popper, {
|
|
4582
4603
|
...{
|
|
4583
4604
|
maxWidth: "maxw_320px",
|
|
4584
4605
|
backgroundColor: ["bgColor_var", {
|
|
@@ -4612,7 +4633,7 @@ function resolveTooltip(disabled, tooltip, readOnly) {
|
|
|
4612
4633
|
}
|
|
4613
4634
|
|
|
4614
4635
|
// src/components/Icon.tsx
|
|
4615
|
-
var
|
|
4636
|
+
var import_runtime4 = require("@homebound/truss/runtime");
|
|
4616
4637
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4617
4638
|
var Icon = import_react4.default.memo((props) => {
|
|
4618
4639
|
const {
|
|
@@ -4628,7 +4649,7 @@ var Icon = import_react4.default.memo((props) => {
|
|
|
4628
4649
|
return maybeTooltip({
|
|
4629
4650
|
title: tooltip,
|
|
4630
4651
|
placement: "top",
|
|
4631
|
-
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,
|
|
4652
|
+
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_runtime4.trussProps)({
|
|
4632
4653
|
...{
|
|
4633
4654
|
fill: ["fill_var", {
|
|
4634
4655
|
"--fill": color
|
|
@@ -5126,7 +5147,7 @@ function usePresentationContext() {
|
|
|
5126
5147
|
}
|
|
5127
5148
|
|
|
5128
5149
|
// src/components/Chip.tsx
|
|
5129
|
-
var
|
|
5150
|
+
var import_runtime5 = require("@homebound/truss/runtime");
|
|
5130
5151
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
5131
5152
|
var ChipTypes = {
|
|
5132
5153
|
caution: "caution",
|
|
@@ -5159,7 +5180,7 @@ function Chip(props) {
|
|
|
5159
5180
|
return maybeTooltip({
|
|
5160
5181
|
title,
|
|
5161
5182
|
placement: "bottom",
|
|
5162
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { ...(0,
|
|
5183
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { ...(0, import_runtime5.trussProps)(styles), ...tid, children: [
|
|
5163
5184
|
icon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon, inc: 2, xss: {
|
|
5164
5185
|
flexShrink: "fs0"
|
|
5165
5186
|
} }),
|
|
@@ -5221,7 +5242,7 @@ var pyHeight = (compact) => compact ? 2 : 4;
|
|
|
5221
5242
|
var minhPx = (compact) => compact ? 20 : 24;
|
|
5222
5243
|
|
|
5223
5244
|
// src/components/Chips.tsx
|
|
5224
|
-
var
|
|
5245
|
+
var import_runtime6 = require("@homebound/truss/runtime");
|
|
5225
5246
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
5226
5247
|
function Chips(props) {
|
|
5227
5248
|
const {
|
|
@@ -5233,7 +5254,7 @@ function Chips(props) {
|
|
|
5233
5254
|
xss = {},
|
|
5234
5255
|
wrap = presentationWrap
|
|
5235
5256
|
} = props;
|
|
5236
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...(0,
|
|
5257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...(0, import_runtime6.trussProps)({
|
|
5237
5258
|
...{
|
|
5238
5259
|
display: "df",
|
|
5239
5260
|
alignItems: "aifs",
|
|
@@ -5262,7 +5283,7 @@ var import_react71 = __toESM(require("react"), 1);
|
|
|
5262
5283
|
var import_react_virtuoso2 = require("react-virtuoso");
|
|
5263
5284
|
|
|
5264
5285
|
// src/components/Loader.tsx
|
|
5265
|
-
var
|
|
5286
|
+
var import_runtime7 = require("@homebound/truss/runtime");
|
|
5266
5287
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5267
5288
|
function Loader({
|
|
5268
5289
|
size = "lg",
|
|
@@ -5270,7 +5291,7 @@ function Loader({
|
|
|
5270
5291
|
}) {
|
|
5271
5292
|
const [dimensions, borderSize] = sizeToPixels[size];
|
|
5272
5293
|
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 */];
|
|
5273
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { "aria-label": "Loading", ...(0,
|
|
5294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { "aria-label": "Loading", ...(0, import_runtime7.trussProps)({
|
|
5274
5295
|
borderRadius: "br100",
|
|
5275
5296
|
borderStyle: "bss",
|
|
5276
5297
|
borderWidth: ["bw_var", {
|
|
@@ -5426,7 +5447,7 @@ function getButtonOrLink(content, onClick, attrs, openInNew = false, downloadLin
|
|
|
5426
5447
|
}
|
|
5427
5448
|
|
|
5428
5449
|
// src/components/IconButton.tsx
|
|
5429
|
-
var
|
|
5450
|
+
var import_runtime8 = require("@homebound/truss/runtime");
|
|
5430
5451
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
5431
5452
|
function IconButton(props) {
|
|
5432
5453
|
const {
|
|
@@ -5498,7 +5519,7 @@ function IconButton(props) {
|
|
|
5498
5519
|
...focusProps,
|
|
5499
5520
|
...hoverProps,
|
|
5500
5521
|
ref,
|
|
5501
|
-
...(0,
|
|
5522
|
+
...(0, import_runtime8.mergeProps)(typeof onPress === "string" ? navLink : void 0, void 0, styles),
|
|
5502
5523
|
"aria-label": label
|
|
5503
5524
|
};
|
|
5504
5525
|
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime9.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 });
|
|
@@ -5572,7 +5593,7 @@ var activeStyles = {
|
|
|
5572
5593
|
|
|
5573
5594
|
// src/components/Table/components/ExpandableHeader.tsx
|
|
5574
5595
|
var import_react16 = require("react");
|
|
5575
|
-
var
|
|
5596
|
+
var import_runtime9 = require("@homebound/truss/runtime");
|
|
5576
5597
|
|
|
5577
5598
|
// src/hooks/useBreakpoint.tsx
|
|
5578
5599
|
var import_fast_deep_equal = __toESM(require("fast-deep-equal"), 1);
|
|
@@ -5797,7 +5818,7 @@ function ExpandableHeader(props) {
|
|
|
5797
5818
|
hoverProps,
|
|
5798
5819
|
isHovered
|
|
5799
5820
|
} = useHover2({});
|
|
5800
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { ...hoverProps, ...(0,
|
|
5821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { ...hoverProps, ...(0, import_runtime9.trussProps)({
|
|
5801
5822
|
display: "df",
|
|
5802
5823
|
fontWeight: "fw4",
|
|
5803
5824
|
fontSize: "fz_12px",
|
|
@@ -5828,7 +5849,7 @@ function ExpandableHeader(props) {
|
|
|
5828
5849
|
}
|
|
5829
5850
|
tableState.toggleExpandedColumn(column2.id);
|
|
5830
5851
|
}, "data-testid": "expandableColumn", children: [
|
|
5831
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { ...(0,
|
|
5852
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { ...(0, import_runtime9.trussProps)({
|
|
5832
5853
|
display: "df",
|
|
5833
5854
|
alignItems: "aic",
|
|
5834
5855
|
...applyStickyStyles ? {
|
|
@@ -5850,7 +5871,7 @@ function ExpandableHeader(props) {
|
|
|
5850
5871
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "tal oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: title }),
|
|
5851
5872
|
tooltipEl
|
|
5852
5873
|
] }),
|
|
5853
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { ...(0,
|
|
5874
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { ...(0, import_runtime9.trussProps)({
|
|
5854
5875
|
...applyStickyStyles ? {
|
|
5855
5876
|
position: "sticky",
|
|
5856
5877
|
right: "right_12px",
|
|
@@ -5864,7 +5885,7 @@ function ExpandableHeader(props) {
|
|
|
5864
5885
|
|
|
5865
5886
|
// src/components/Table/components/SortHeader.tsx
|
|
5866
5887
|
var import_react17 = require("react");
|
|
5867
|
-
var
|
|
5888
|
+
var import_runtime10 = require("@homebound/truss/runtime");
|
|
5868
5889
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
5869
5890
|
function SortHeader(props) {
|
|
5870
5891
|
const {
|
|
@@ -5900,7 +5921,7 @@ function SortHeader(props) {
|
|
|
5900
5921
|
} : {}
|
|
5901
5922
|
}
|
|
5902
5923
|
}, inc: 2, ...tid.icon }) });
|
|
5903
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ...tid, ...(0,
|
|
5924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ...tid, ...(0, import_runtime10.trussProps)({
|
|
5904
5925
|
...{
|
|
5905
5926
|
display: "df",
|
|
5906
5927
|
alignItems: "aic",
|
|
@@ -5918,7 +5939,7 @@ function SortHeader(props) {
|
|
|
5918
5939
|
}
|
|
5919
5940
|
|
|
5920
5941
|
// src/components/Table/utils/utils.tsx
|
|
5921
|
-
var
|
|
5942
|
+
var import_runtime11 = require("@homebound/truss/runtime");
|
|
5922
5943
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
5923
5944
|
function toContent(maybeContent, isHeader, canSortColumn, isClientSideSorting, style, as, alignment, column2, isExpandableHeader, isExpandable, minStickyLeftOffset, isKeptSelectedRow) {
|
|
5924
5945
|
if (isKeptSelectedRow && column2.id === "beamCollapseColumn") {
|
|
@@ -5932,7 +5953,7 @@ function toContent(maybeContent, isHeader, canSortColumn, isClientSideSorting, s
|
|
|
5932
5953
|
}
|
|
5933
5954
|
const tooltip = isGridCellContent(maybeContent) ? maybeContent.tooltip : void 0;
|
|
5934
5955
|
const tooltipEl = tooltip ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "fs0 ml_4px", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { icon: "infoCircle", tooltip, inc: 2, color: "rgba(141, 141, 141, 1)" /* Gray600 */ }) }) : null;
|
|
5935
|
-
content = isGridCellContent(maybeContent) && !!maybeContent.onClick ? getButtonOrLink(content, maybeContent.onClick, (0,
|
|
5956
|
+
content = isGridCellContent(maybeContent) && !!maybeContent.onClick ? getButtonOrLink(content, maybeContent.onClick, (0, import_runtime11.trussProps)({
|
|
5936
5957
|
maxWidth: "maxw100",
|
|
5937
5958
|
color: "blue700",
|
|
5938
5959
|
textAlign: "ta_inherit",
|
|
@@ -6167,7 +6188,7 @@ var import_react_day_picker3 = require("react-day-picker");
|
|
|
6167
6188
|
// src/components/internal/DatePicker/Day.tsx
|
|
6168
6189
|
var import_react19 = require("react");
|
|
6169
6190
|
var import_react_day_picker = require("react-day-picker");
|
|
6170
|
-
var
|
|
6191
|
+
var import_runtime12 = require("@homebound/truss/runtime");
|
|
6171
6192
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
6172
6193
|
function Day(props) {
|
|
6173
6194
|
const tid = useTestIds(props, "datePickerDay");
|
|
@@ -6201,7 +6222,7 @@ function Day(props) {
|
|
|
6201
6222
|
} = activeModifiers;
|
|
6202
6223
|
const showRangeStyles = !(range_end === true && range_start === true);
|
|
6203
6224
|
const showActiveStyles = !disabled;
|
|
6204
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", { ...otherProps, ref: buttonRef, type: "button", ...(0,
|
|
6225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", { ...otherProps, ref: buttonRef, type: "button", ...(0, import_runtime12.mergeProps)("beam-day-button", void 0, {
|
|
6205
6226
|
position: "relative",
|
|
6206
6227
|
paddingBottom: "pb_4px",
|
|
6207
6228
|
outline: "outline0",
|
|
@@ -6213,7 +6234,7 @@ function Day(props) {
|
|
|
6213
6234
|
}, ...disabled && {
|
|
6214
6235
|
"data-disabled": ""
|
|
6215
6236
|
}, ...tid, children: [
|
|
6216
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { ...(0,
|
|
6237
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { ...(0, import_runtime12.trussProps)({
|
|
6217
6238
|
...{
|
|
6218
6239
|
overflow: "oh",
|
|
6219
6240
|
color: "gray900",
|
|
@@ -6238,7 +6259,7 @@ function Day(props) {
|
|
|
6238
6259
|
color: "gray500"
|
|
6239
6260
|
}
|
|
6240
6261
|
}), children: [
|
|
6241
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { ...(0,
|
|
6262
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { ...(0, import_runtime12.trussProps)({
|
|
6242
6263
|
marginTop: ["mt_var", {
|
|
6243
6264
|
"--marginTop": `${-2}px`
|
|
6244
6265
|
}]
|
|
@@ -6246,7 +6267,7 @@ function Day(props) {
|
|
|
6246
6267
|
indicatorDot && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
6247
6268
|
"div",
|
|
6248
6269
|
{
|
|
6249
|
-
...(0,
|
|
6270
|
+
...(0, import_runtime12.trussProps)({
|
|
6250
6271
|
position: "absolute",
|
|
6251
6272
|
bottom: "bottom_4px",
|
|
6252
6273
|
width: "w_4px",
|
|
@@ -6261,7 +6282,7 @@ function Day(props) {
|
|
|
6261
6282
|
}
|
|
6262
6283
|
)
|
|
6263
6284
|
] }),
|
|
6264
|
-
showRangeStyles && range_start && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { ...(0,
|
|
6285
|
+
showRangeStyles && range_start && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { ...(0, import_runtime12.trussProps)({
|
|
6265
6286
|
...rangeBaseStyles,
|
|
6266
6287
|
...{
|
|
6267
6288
|
right: ["right_var", {
|
|
@@ -6270,7 +6291,7 @@ function Day(props) {
|
|
|
6270
6291
|
width: "w_8px"
|
|
6271
6292
|
}
|
|
6272
6293
|
}) }),
|
|
6273
|
-
showRangeStyles && range_end && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { ...(0,
|
|
6294
|
+
showRangeStyles && range_end && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { ...(0, import_runtime12.trussProps)({
|
|
6274
6295
|
...rangeBaseStyles,
|
|
6275
6296
|
...{
|
|
6276
6297
|
width: "w_8px",
|
|
@@ -6279,7 +6300,7 @@ function Day(props) {
|
|
|
6279
6300
|
}]
|
|
6280
6301
|
}
|
|
6281
6302
|
}) }),
|
|
6282
|
-
showRangeStyles && range_middle && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { ...(0,
|
|
6303
|
+
showRangeStyles && range_middle && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { ...(0, import_runtime12.trussProps)({
|
|
6283
6304
|
...rangeBaseStyles,
|
|
6284
6305
|
...{
|
|
6285
6306
|
left: ["left_var", {
|
|
@@ -6426,7 +6447,7 @@ var import_react_stately2 = require("react-stately");
|
|
|
6426
6447
|
|
|
6427
6448
|
// src/components/internal/MenuSection.tsx
|
|
6428
6449
|
var import_react_aria4 = require("react-aria");
|
|
6429
|
-
var
|
|
6450
|
+
var import_runtime13 = require("@homebound/truss/runtime");
|
|
6430
6451
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
6431
6452
|
function MenuSectionImpl(props) {
|
|
6432
6453
|
const {
|
|
@@ -6448,7 +6469,7 @@ function MenuSectionImpl(props) {
|
|
|
6448
6469
|
const tid = useTestIds(props);
|
|
6449
6470
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
6450
6471
|
isPersistentSection && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("li", { ...separatorProps, className: "bts_solid btw_1px bcGray200" }),
|
|
6451
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("li", { ...itemProps, ...(0,
|
|
6472
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("li", { ...itemProps, ...(0, import_runtime13.trussProps)({
|
|
6452
6473
|
color: "gray900",
|
|
6453
6474
|
...!isPersistentSection ? {
|
|
6454
6475
|
overflow: "oa"
|
|
@@ -6461,7 +6482,7 @@ function MenuSectionImpl(props) {
|
|
|
6461
6482
|
}
|
|
6462
6483
|
|
|
6463
6484
|
// src/components/internal/Menu.tsx
|
|
6464
|
-
var
|
|
6485
|
+
var import_runtime23 = require("@homebound/truss/runtime");
|
|
6465
6486
|
|
|
6466
6487
|
// src/inputs/internal/MenuSearchField.tsx
|
|
6467
6488
|
var import_textfield = require("@react-aria/textfield");
|
|
@@ -6472,7 +6493,7 @@ var import_react25 = require("react");
|
|
|
6472
6493
|
var import_react_aria8 = require("react-aria");
|
|
6473
6494
|
|
|
6474
6495
|
// src/components/HelperText.tsx
|
|
6475
|
-
var
|
|
6496
|
+
var import_runtime14 = require("@homebound/truss/runtime");
|
|
6476
6497
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
6477
6498
|
function HelperText(props) {
|
|
6478
6499
|
const {
|
|
@@ -6480,7 +6501,7 @@ function HelperText(props) {
|
|
|
6480
6501
|
contrast = false,
|
|
6481
6502
|
...others
|
|
6482
6503
|
} = props;
|
|
6483
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { ...(0,
|
|
6504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { ...(0, import_runtime14.trussProps)({
|
|
6484
6505
|
color: "gray700",
|
|
6485
6506
|
fontWeight: "fw4",
|
|
6486
6507
|
fontSize: "fz_12px",
|
|
@@ -6495,7 +6516,7 @@ function HelperText(props) {
|
|
|
6495
6516
|
// src/components/Label.tsx
|
|
6496
6517
|
var import_react20 = __toESM(require("react"), 1);
|
|
6497
6518
|
var import_react_aria5 = require("react-aria");
|
|
6498
|
-
var
|
|
6519
|
+
var import_runtime15 = require("@homebound/truss/runtime");
|
|
6499
6520
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
6500
6521
|
function LabelComponent(props) {
|
|
6501
6522
|
const {
|
|
@@ -6509,7 +6530,7 @@ function LabelComponent(props) {
|
|
|
6509
6530
|
xss,
|
|
6510
6531
|
...others
|
|
6511
6532
|
} = props;
|
|
6512
|
-
const labelEl = /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { ...labelProps, ...others, ...(0,
|
|
6533
|
+
const labelEl = /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { ...labelProps, ...others, ...(0, import_runtime15.trussProps)({
|
|
6513
6534
|
...{
|
|
6514
6535
|
display: "dif",
|
|
6515
6536
|
alignItems: "aic",
|
|
@@ -6544,7 +6565,7 @@ function InlineLabel({
|
|
|
6544
6565
|
multiline = false,
|
|
6545
6566
|
...others
|
|
6546
6567
|
}) {
|
|
6547
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { ...labelProps, ...others, ...(0,
|
|
6568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { ...labelProps, ...others, ...(0, import_runtime15.trussProps)({
|
|
6548
6569
|
fontWeight: "fw4",
|
|
6549
6570
|
fontSize: "fz_14px",
|
|
6550
6571
|
lineHeight: "lh_20px",
|
|
@@ -6577,11 +6598,11 @@ function CssReset() {
|
|
|
6577
6598
|
}
|
|
6578
6599
|
|
|
6579
6600
|
// src/components/Table/components/cell.tsx
|
|
6580
|
-
var
|
|
6601
|
+
var import_runtime16 = require("@homebound/truss/runtime");
|
|
6581
6602
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
6582
6603
|
var defaultRenderFn = (as, colSpan) => (key, css, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6583
6604
|
const Cell = as === "table" ? "td" : "div";
|
|
6584
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Cell, { ...(0,
|
|
6605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Cell, { ...(0, import_runtime16.mergeProps)(classNames, void 0, {
|
|
6585
6606
|
...css,
|
|
6586
6607
|
...{
|
|
6587
6608
|
cursor: "cursor_default"
|
|
@@ -6592,7 +6613,7 @@ var defaultRenderFn = (as, colSpan) => (key, css, content, row, rowStyle, classN
|
|
|
6592
6613
|
};
|
|
6593
6614
|
var headerRenderFn = (column2, as, colSpan) => (key, css, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6594
6615
|
const Cell = as === "table" ? "th" : "div";
|
|
6595
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Cell, { ...(0,
|
|
6616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Cell, { ...(0, import_runtime16.mergeProps)(classNames, void 0, {
|
|
6596
6617
|
...css
|
|
6597
6618
|
}), ...as === "table" && {
|
|
6598
6619
|
colSpan
|
|
@@ -6601,15 +6622,15 @@ var headerRenderFn = (column2, as, colSpan) => (key, css, content, row, rowStyle
|
|
|
6601
6622
|
var rowLinkRenderFn = (as, colSpan) => (key, css, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6602
6623
|
const to = rowStyle.rowLink(row);
|
|
6603
6624
|
if (as === "table") {
|
|
6604
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { ...(0,
|
|
6625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { ...(0, import_runtime16.mergeProps)(classNames, void 0, {
|
|
6605
6626
|
...css
|
|
6606
|
-
}), colSpan, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_router_dom2.Link, { to, ...(0,
|
|
6627
|
+
}), colSpan, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_router_dom2.Link, { to, ...(0, import_runtime16.mergeProps)(navLink, void 0, {
|
|
6607
6628
|
textDecoration: "tdn",
|
|
6608
6629
|
color: "color_unset",
|
|
6609
6630
|
display: "db"
|
|
6610
6631
|
}), children: content }) }, key);
|
|
6611
6632
|
}
|
|
6612
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_router_dom2.Link, { to, ...(0,
|
|
6633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_router_dom2.Link, { to, ...(0, import_runtime16.mergeProps)(`${navLink} ${classNames}`, void 0, {
|
|
6613
6634
|
...{
|
|
6614
6635
|
textDecoration: "tdn",
|
|
6615
6636
|
color: "color_unset"
|
|
@@ -6619,7 +6640,7 @@ var rowLinkRenderFn = (as, colSpan) => (key, css, content, row, rowStyle, classN
|
|
|
6619
6640
|
};
|
|
6620
6641
|
var rowClickRenderFn = (as, api, colSpan) => (key, css, content, row, rowStyle, classNames, onClick, tooltip) => {
|
|
6621
6642
|
const Cell = as === "table" ? "td" : "div";
|
|
6622
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Cell, { ...(0,
|
|
6643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Cell, { ...(0, import_runtime16.mergeProps)(classNames, void 0, {
|
|
6623
6644
|
...css
|
|
6624
6645
|
}), onClick: (e) => {
|
|
6625
6646
|
rowStyle.onClick(row, api);
|
|
@@ -6634,7 +6655,7 @@ var import_react22 = require("react");
|
|
|
6634
6655
|
|
|
6635
6656
|
// src/components/Layout/ScrollableParent.tsx
|
|
6636
6657
|
var import_react21 = require("react");
|
|
6637
|
-
var
|
|
6658
|
+
var import_runtime17 = require("@homebound/truss/runtime");
|
|
6638
6659
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
6639
6660
|
var __maybeInc = (inc) => {
|
|
6640
6661
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -6674,7 +6695,7 @@ function ScrollableParent(props) {
|
|
|
6674
6695
|
(0, import_react21.useEffect)(() => {
|
|
6675
6696
|
scrollableRef.current.appendChild(scrollableEl);
|
|
6676
6697
|
}, [scrollableEl]);
|
|
6677
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollableParentContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Tag2, { ...(0,
|
|
6698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollableParentContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Tag2, { ...(0, import_runtime17.trussProps)({
|
|
6678
6699
|
...{
|
|
6679
6700
|
minHeight: "mh0",
|
|
6680
6701
|
minWidth: "mw0",
|
|
@@ -6684,7 +6705,7 @@ function ScrollableParent(props) {
|
|
|
6684
6705
|
},
|
|
6685
6706
|
...xss
|
|
6686
6707
|
}), children: [
|
|
6687
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { ...(0,
|
|
6708
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { ...(0, import_runtime17.trussProps)({
|
|
6688
6709
|
...{
|
|
6689
6710
|
paddingLeft: ["pl_var", {
|
|
6690
6711
|
"--paddingLeft": __maybeInc(context.paddingLeft)
|
|
@@ -6709,7 +6730,7 @@ function useScrollableParent() {
|
|
|
6709
6730
|
}
|
|
6710
6731
|
|
|
6711
6732
|
// src/components/Table/components/ColumnResizeHandle.tsx
|
|
6712
|
-
var
|
|
6733
|
+
var import_runtime18 = require("@homebound/truss/runtime");
|
|
6713
6734
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
6714
6735
|
function findScrollableParent(element) {
|
|
6715
6736
|
if (!element) return null;
|
|
@@ -6874,7 +6895,7 @@ function ColumnResizeHandle({
|
|
|
6874
6895
|
};
|
|
6875
6896
|
}, []);
|
|
6876
6897
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
6877
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref: handleRef, onMouseDown: handleMouseDown, onMouseEnter: () => setIsHovering(true), onMouseLeave: () => !isDragging && setIsHovering(false), ...(0,
|
|
6898
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref: handleRef, onMouseDown: handleMouseDown, onMouseEnter: () => setIsHovering(true), onMouseLeave: () => !isDragging && setIsHovering(false), ...(0, import_runtime18.trussProps)({
|
|
6878
6899
|
position: "absolute",
|
|
6879
6900
|
top: "top0",
|
|
6880
6901
|
bottom: "bottom0",
|
|
@@ -6890,7 +6911,7 @@ function ColumnResizeHandle({
|
|
|
6890
6911
|
backgroundColor: "bgGray700"
|
|
6891
6912
|
} : {}
|
|
6892
6913
|
}), ...tid.handle, "data-column-id": columnId, "data-column-index": columnIndex }),
|
|
6893
|
-
isDragging && guideLineX !== null && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...(0,
|
|
6914
|
+
isDragging && guideLineX !== null && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...(0, import_runtime18.trussProps)({
|
|
6894
6915
|
position: "fixed",
|
|
6895
6916
|
top: ["top_var", {
|
|
6896
6917
|
"--top": `${guideLineTop}px`
|
|
@@ -6912,7 +6933,7 @@ function ColumnResizeHandle({
|
|
|
6912
6933
|
|
|
6913
6934
|
// src/components/Table/components/KeptGroupRow.tsx
|
|
6914
6935
|
var import_react23 = require("react");
|
|
6915
|
-
var
|
|
6936
|
+
var import_runtime19 = require("@homebound/truss/runtime");
|
|
6916
6937
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
6917
6938
|
var __maybeInc2 = (inc) => {
|
|
6918
6939
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -6931,7 +6952,7 @@ function KeptGroupRow(props) {
|
|
|
6931
6952
|
tableState
|
|
6932
6953
|
} = (0, import_react23.useContext)(TableStateContext);
|
|
6933
6954
|
const numHiddenSelectedRows = useComputed(() => tableState.keptRows.length, [tableState]);
|
|
6934
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CellTag, { ...(0,
|
|
6955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CellTag, { ...(0, import_runtime19.trussProps)({
|
|
6935
6956
|
...style.cellCss,
|
|
6936
6957
|
...style.betweenRowsCss,
|
|
6937
6958
|
...isLastBodyRow && style.lastRowCellCss,
|
|
@@ -7729,7 +7750,7 @@ function canClientSideSort(value) {
|
|
|
7729
7750
|
|
|
7730
7751
|
// src/components/Table/components/Row.tsx
|
|
7731
7752
|
var import_use_debounce2 = require("use-debounce");
|
|
7732
|
-
var
|
|
7753
|
+
var import_runtime20 = require("@homebound/truss/runtime");
|
|
7733
7754
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
7734
7755
|
var __maybeInc3 = (inc) => {
|
|
7735
7756
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -7897,7 +7918,7 @@ function RowImpl(props) {
|
|
|
7897
7918
|
const ref = (0, import_react24.useRef)(null);
|
|
7898
7919
|
const dragOverCallback = (0, import_react24.useCallback)((row2, evt) => onDragOver?.(row2, evt), [onDragOver]);
|
|
7899
7920
|
const onDragOverDebounced = (0, import_use_debounce2.useDebouncedCallback)(dragOverCallback, 100);
|
|
7900
|
-
const RowContent = () => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RowTag, { ...(0,
|
|
7921
|
+
const RowContent = () => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RowTag, { ...(0, import_runtime20.mergeProps)(BorderHoverParent, void 0, rowCss), ...others, "data-gridrow": true, ...getCount(row.id), ref, children: isKeptGroupRow ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(KeptGroupRow, { as, style, columnSizes, row, colSpan: columns.length, isLastBodyRow }) : columns.map((column2, columnIndex) => {
|
|
7901
7922
|
const maybeExpandedColumn = expandColumnHidden ? columns[columnIndex - 1] : column2;
|
|
7902
7923
|
const isExpanded = tableState.isExpandedColumn(maybeExpandedColumn.id);
|
|
7903
7924
|
if (column2.hideOnExpand && isExpanded) {
|
|
@@ -8062,7 +8083,7 @@ function RowImpl(props) {
|
|
|
8062
8083
|
const currentSizeStr = columnSizes[columnIndex];
|
|
8063
8084
|
const minWidthPx = column2.mw ? parseInt(column2.mw.replace("px", ""), 10) : 100;
|
|
8064
8085
|
const currentWidthPx = parseWidthToPx(currentSizeStr, void 0) ?? resizedWidths?.[column2.id] ?? minWidthPx;
|
|
8065
|
-
const cellElementWithHandle = import_react24.default.cloneElement(cellElement, (0, import_react_aria6.mergeProps)(cellElement.props, (0,
|
|
8086
|
+
const cellElementWithHandle = import_react24.default.cloneElement(cellElement, (0, import_react_aria6.mergeProps)(cellElement.props, (0, import_runtime20.trussProps)({
|
|
8066
8087
|
...!maybeSticky && {
|
|
8067
8088
|
position: "relative"
|
|
8068
8089
|
}
|
|
@@ -8079,7 +8100,7 @@ function RowImpl(props) {
|
|
|
8079
8100
|
return row.draggable ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
8080
8101
|
"div",
|
|
8081
8102
|
{
|
|
8082
|
-
...(0,
|
|
8103
|
+
...(0, import_runtime20.trussProps)(containerCss),
|
|
8083
8104
|
onDrop: (evt) => onDrop?.(row, evt),
|
|
8084
8105
|
onDragEnter: (evt) => onDragEnter?.(row, evt),
|
|
8085
8106
|
onDragOver: (evt) => {
|
|
@@ -8109,7 +8130,7 @@ function useLabelSuffix(required, readOnly) {
|
|
|
8109
8130
|
|
|
8110
8131
|
// src/inputs/ErrorMessage.tsx
|
|
8111
8132
|
var import_react_aria7 = require("react-aria");
|
|
8112
|
-
var
|
|
8133
|
+
var import_runtime21 = require("@homebound/truss/runtime");
|
|
8113
8134
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
8114
8135
|
function ErrorMessage(props) {
|
|
8115
8136
|
const {
|
|
@@ -8119,7 +8140,7 @@ function ErrorMessage(props) {
|
|
|
8119
8140
|
hidden = false,
|
|
8120
8141
|
...others
|
|
8121
8142
|
} = props;
|
|
8122
|
-
const errorEl = errorMsg ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ...(0,
|
|
8143
|
+
const errorEl = errorMsg ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ...(0, import_runtime21.trussProps)({
|
|
8123
8144
|
color: "red600",
|
|
8124
8145
|
fontWeight: "fw4",
|
|
8125
8146
|
fontSize: "fz_14px",
|
|
@@ -8142,7 +8163,7 @@ function getFieldWidth(fullWidth) {
|
|
|
8142
8163
|
}
|
|
8143
8164
|
|
|
8144
8165
|
// src/inputs/TextFieldBase.tsx
|
|
8145
|
-
var
|
|
8166
|
+
var import_runtime22 = require("@homebound/truss/runtime");
|
|
8146
8167
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
8147
8168
|
var __maybeInc4 = (inc) => {
|
|
8148
8169
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -8522,12 +8543,12 @@ function TextFieldBase(props) {
|
|
|
8522
8543
|
...xss
|
|
8523
8544
|
};
|
|
8524
8545
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
8525
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0,
|
|
8546
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0, import_runtime22.trussProps)(fieldStyles.container), ...groupProps, ...focusWithinProps, children: [
|
|
8526
8547
|
label && labelStyle !== "inline" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Label, { labelProps, hidden: labelStyle === "hidden" || compound, label, inline: labelStyle !== "above", suffix: labelSuffix, contrast, ...tid.label }),
|
|
8527
8548
|
maybeTooltip({
|
|
8528
8549
|
title: tooltip,
|
|
8529
8550
|
placement: "top",
|
|
8530
|
-
children: inputProps.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0,
|
|
8551
|
+
children: inputProps.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0, import_runtime22.mergeProps)(BorderHoverChild, void 0, {
|
|
8531
8552
|
// Use input wrapper to get common styles, but then we need to override some
|
|
8532
8553
|
...fieldStyles.inputWrapperReadOnly,
|
|
8533
8554
|
...multiline ? {
|
|
@@ -8551,7 +8572,7 @@ function TextFieldBase(props) {
|
|
|
8551
8572
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
8552
8573
|
"div",
|
|
8553
8574
|
{
|
|
8554
|
-
...(0,
|
|
8575
|
+
...(0, import_runtime22.mergeProps)(BorderHoverChild, void 0, {
|
|
8555
8576
|
...fieldStyles.inputWrapper,
|
|
8556
8577
|
...inputProps.disabled ? fieldStyles.disabled : {},
|
|
8557
8578
|
...showFocus ? fieldStyles.focus : {},
|
|
@@ -8579,7 +8600,7 @@ function TextFieldBase(props) {
|
|
|
8579
8600
|
{
|
|
8580
8601
|
tabIndex: -1,
|
|
8581
8602
|
...tid.unfocusedPlaceholderContainer,
|
|
8582
|
-
...(0,
|
|
8603
|
+
...(0, import_runtime22.trussProps)({
|
|
8583
8604
|
...{
|
|
8584
8605
|
display: "df",
|
|
8585
8606
|
alignSelf: "asc",
|
|
@@ -8607,7 +8628,7 @@ function TextFieldBase(props) {
|
|
|
8607
8628
|
children: unfocusedPlaceholder
|
|
8608
8629
|
}
|
|
8609
8630
|
),
|
|
8610
|
-
multiline ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("textarea", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, rows: 1, ...(0,
|
|
8631
|
+
multiline ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("textarea", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, rows: 1, ...(0, import_runtime22.trussProps)(fieldElementCss), ...tid }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("input", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, ...(0, import_runtime22.trussProps)(fieldElementCss), ...tid }),
|
|
8611
8632
|
isFocused && clearable && onChange && inputProps.value && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(IconButton, { icon: "xCircle", color: "rgba(100, 100, 100, 1)" /* Gray700 */, onClick: () => {
|
|
8612
8633
|
onChange(void 0);
|
|
8613
8634
|
fieldRef.current?.focus();
|
|
@@ -8624,7 +8645,7 @@ function TextFieldBase(props) {
|
|
|
8624
8645
|
] })
|
|
8625
8646
|
] }),
|
|
8626
8647
|
labelStyle === "left" && (alwaysShowHelperText || !compound && !inputProps.disabled && !inputProps.readOnly && (errorMsg && !errorInTooltip || helperText)) && // Reduces the margin between the error/helper text and input field
|
|
8627
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0,
|
|
8648
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...(0, import_runtime22.trussProps)({
|
|
8628
8649
|
marginTop: ["mt_var", {
|
|
8629
8650
|
"--marginTop": `${-8}px`
|
|
8630
8651
|
}]
|
|
@@ -8751,7 +8772,7 @@ function Menu(props) {
|
|
|
8751
8772
|
label: "items",
|
|
8752
8773
|
items
|
|
8753
8774
|
}), [items]);
|
|
8754
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_aria9.FocusScope, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ...(0,
|
|
8775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_aria9.FocusScope, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ...(0, import_runtime23.trussProps)({
|
|
8755
8776
|
// Using `max-height: inherit` allows us to take advantage of the height set on the overlay container,
|
|
8756
8777
|
// which updates based on the available space for the overlay within the viewport
|
|
8757
8778
|
...{
|
|
@@ -8788,7 +8809,7 @@ var import_react_router_dom3 = require("react-router-dom");
|
|
|
8788
8809
|
|
|
8789
8810
|
// src/components/Avatar/Avatar.tsx
|
|
8790
8811
|
var import_react28 = require("react");
|
|
8791
|
-
var
|
|
8812
|
+
var import_runtime24 = require("@homebound/truss/runtime");
|
|
8792
8813
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
8793
8814
|
var __typography4 = {
|
|
8794
8815
|
xs2: {
|
|
@@ -8871,7 +8892,7 @@ function Avatar({
|
|
|
8871
8892
|
}],
|
|
8872
8893
|
overflow: "oh"
|
|
8873
8894
|
};
|
|
8874
|
-
const img = showFallback ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...(0,
|
|
8895
|
+
const img = showFallback ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...(0, import_runtime24.trussProps)({
|
|
8875
8896
|
...styles,
|
|
8876
8897
|
...{
|
|
8877
8898
|
...__typography4[sizeToFallbackTypeScale[size]] ?? {},
|
|
@@ -8881,13 +8902,13 @@ function Avatar({
|
|
|
8881
8902
|
alignItems: "aic",
|
|
8882
8903
|
justifyContent: "jcc"
|
|
8883
8904
|
}
|
|
8884
|
-
}), ...tid, children: name ? nameToInitials(name) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { icon: "userCircle", inc: sizeToIconInc[size] }) }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("img", { src, alt: name, ...(0,
|
|
8905
|
+
}), ...tid, children: name ? nameToInitials(name) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { icon: "userCircle", inc: sizeToIconInc[size] }) }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("img", { src, alt: name, ...(0, import_runtime24.trussProps)({
|
|
8885
8906
|
...styles,
|
|
8886
8907
|
...{
|
|
8887
8908
|
objectFit: "objectCover"
|
|
8888
8909
|
}
|
|
8889
8910
|
}), onError: () => setShowFallback(true), loading: "lazy", ...tid });
|
|
8890
|
-
return showName && name ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...(0,
|
|
8911
|
+
return showName && name ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...(0, import_runtime24.trussProps)({
|
|
8891
8912
|
display: "dif",
|
|
8892
8913
|
alignItems: "aic",
|
|
8893
8914
|
gap: "gap1",
|
|
@@ -8896,7 +8917,7 @@ function Avatar({
|
|
|
8896
8917
|
} : {}
|
|
8897
8918
|
}), children: [
|
|
8898
8919
|
img,
|
|
8899
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { ...(0,
|
|
8920
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { ...(0, import_runtime24.trussProps)({
|
|
8900
8921
|
...__typography4[sizeToTypeScale[size]] ?? {}
|
|
8901
8922
|
}), children: name })
|
|
8902
8923
|
] }) : maybeTooltip({
|
|
@@ -8936,7 +8957,7 @@ function nameToInitials(name) {
|
|
|
8936
8957
|
// src/components/Avatar/AvatarButton.tsx
|
|
8937
8958
|
var import_react29 = require("react");
|
|
8938
8959
|
var import_react_aria10 = require("react-aria");
|
|
8939
|
-
var
|
|
8960
|
+
var import_runtime25 = require("@homebound/truss/runtime");
|
|
8940
8961
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
8941
8962
|
function AvatarButton(props) {
|
|
8942
8963
|
const {
|
|
@@ -8992,11 +9013,11 @@ function AvatarButton(props) {
|
|
|
8992
9013
|
...focusProps,
|
|
8993
9014
|
...hoverProps,
|
|
8994
9015
|
ref,
|
|
8995
|
-
...(0,
|
|
9016
|
+
...(0, import_runtime25.mergeProps)(typeof onPress === "string" ? navLink : void 0, void 0, styles)
|
|
8996
9017
|
};
|
|
8997
9018
|
const content = /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
8998
9019
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Avatar, { ...avatarProps, ...tid, disableTooltip: true }),
|
|
8999
|
-
isPressed && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { ...(0,
|
|
9020
|
+
isPressed && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { ...(0, import_runtime25.trussProps)(pressedOverlayCss) })
|
|
9000
9021
|
] });
|
|
9001
9022
|
return maybeTooltip({
|
|
9002
9023
|
// Default the tooltip to the avatar's name, if defined.
|
|
@@ -9047,7 +9068,7 @@ var import_react_aria13 = require("react-aria");
|
|
|
9047
9068
|
// src/components/Button.tsx
|
|
9048
9069
|
var import_react30 = require("react");
|
|
9049
9070
|
var import_react_aria11 = require("react-aria");
|
|
9050
|
-
var
|
|
9071
|
+
var import_runtime26 = require("@homebound/truss/runtime");
|
|
9051
9072
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
9052
9073
|
function Button(props) {
|
|
9053
9074
|
const {
|
|
@@ -9124,7 +9145,7 @@ function Button(props) {
|
|
|
9124
9145
|
...buttonProps,
|
|
9125
9146
|
...focusProps,
|
|
9126
9147
|
...hoverProps,
|
|
9127
|
-
...(0,
|
|
9148
|
+
...(0, import_runtime26.mergeProps)(asLink ? navLink : void 0, void 0, {
|
|
9128
9149
|
...{
|
|
9129
9150
|
fontWeight: "fw6",
|
|
9130
9151
|
fontSize: "fz_14px",
|
|
@@ -9529,7 +9550,7 @@ var iconStyles = {
|
|
|
9529
9550
|
// src/components/NavLink.tsx
|
|
9530
9551
|
var import_react31 = require("react");
|
|
9531
9552
|
var import_react_aria12 = require("react-aria");
|
|
9532
|
-
var
|
|
9553
|
+
var import_runtime27 = require("@homebound/truss/runtime");
|
|
9533
9554
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
9534
9555
|
function NavLink(props) {
|
|
9535
9556
|
const {
|
|
@@ -9585,7 +9606,7 @@ function NavLink(props) {
|
|
|
9585
9606
|
tabIndex: isDisabled ? -1 : 0,
|
|
9586
9607
|
/** aria-current represents the current page within a set of pages */
|
|
9587
9608
|
"aria-current": active ? "page" : void 0,
|
|
9588
|
-
...(0,
|
|
9609
|
+
...(0, import_runtime27.trussProps)({
|
|
9589
9610
|
...baseStyles5,
|
|
9590
9611
|
...active && activeStyles4,
|
|
9591
9612
|
...isDisabled && disabledStyles4,
|
|
@@ -9796,7 +9817,7 @@ function ButtonModal(props) {
|
|
|
9796
9817
|
}
|
|
9797
9818
|
|
|
9798
9819
|
// src/components/Avatar/AvatarGroup.tsx
|
|
9799
|
-
var
|
|
9820
|
+
var import_runtime28 = require("@homebound/truss/runtime");
|
|
9800
9821
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
9801
9822
|
function AvatarGroup(props) {
|
|
9802
9823
|
const {
|
|
@@ -9807,7 +9828,7 @@ function AvatarGroup(props) {
|
|
|
9807
9828
|
const visibleAvatars = avatars.slice(0, maxVisibleAvatars);
|
|
9808
9829
|
const menuAvatars = avatars.slice(maxVisibleAvatars);
|
|
9809
9830
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "df aic gap1 fw6 fz_12px lh_16px", children: [
|
|
9810
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "df aic", children: visibleAvatars.map((avatar, idx) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ...(0,
|
|
9831
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "df aic", children: visibleAvatars.map((avatar, idx) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ...(0, import_runtime28.trussProps)({
|
|
9811
9832
|
borderRadius: "br100",
|
|
9812
9833
|
borderStyle: "bss",
|
|
9813
9834
|
borderWidth: "borderWidth_3px",
|
|
@@ -9821,7 +9842,7 @@ function AvatarGroup(props) {
|
|
|
9821
9842
|
menuAvatars.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ButtonModal, { trigger: {
|
|
9822
9843
|
label: `+ ${menuAvatars.length} more`,
|
|
9823
9844
|
variant: "text"
|
|
9824
|
-
}, hideEndAdornment: true, content: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ...(0,
|
|
9845
|
+
}, hideEndAdornment: true, content: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ...(0, import_runtime28.trussProps)({
|
|
9825
9846
|
display: "df",
|
|
9826
9847
|
flexDirection: "fdc",
|
|
9827
9848
|
gap: "gap1",
|
|
@@ -9848,7 +9869,7 @@ var sizeToOverlap = {
|
|
|
9848
9869
|
};
|
|
9849
9870
|
|
|
9850
9871
|
// src/components/internal/MenuItem.tsx
|
|
9851
|
-
var
|
|
9872
|
+
var import_runtime29 = require("@homebound/truss/runtime");
|
|
9852
9873
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
9853
9874
|
function MenuItemImpl(props) {
|
|
9854
9875
|
const {
|
|
@@ -9895,7 +9916,7 @@ function MenuItemImpl(props) {
|
|
|
9895
9916
|
},
|
|
9896
9917
|
onClose
|
|
9897
9918
|
}, state, ref);
|
|
9898
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", { ...menuItemProps, ...hoverProps, ref, ...(0,
|
|
9919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", { ...menuItemProps, ...hoverProps, ref, ...(0, import_runtime29.trussProps)({
|
|
9899
9920
|
...{
|
|
9900
9921
|
display: "df",
|
|
9901
9922
|
alignItems: "aic",
|
|
@@ -9973,7 +9994,7 @@ function maybeWrapInLink(onClick, content, disabled) {
|
|
|
9973
9994
|
if (disabled || typeof onClick !== "string") {
|
|
9974
9995
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: content });
|
|
9975
9996
|
}
|
|
9976
|
-
return isAbsoluteUrl(onClick) ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("a", { href: onClick, target: "_blank", rel: "noopener noreferrer", ...(0,
|
|
9997
|
+
return isAbsoluteUrl(onClick) ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("a", { href: onClick, target: "_blank", rel: "noopener noreferrer", ...(0, import_runtime29.mergeProps)("navLink", void 0, {
|
|
9977
9998
|
display: "df",
|
|
9978
9999
|
alignItems: "aic",
|
|
9979
10000
|
justifyContent: "jcsb",
|
|
@@ -10020,12 +10041,12 @@ function Popover(props) {
|
|
|
10020
10041
|
var import_react45 = require("react");
|
|
10021
10042
|
var import_react_aria27 = require("react-aria");
|
|
10022
10043
|
var import_react_stately6 = require("react-stately");
|
|
10023
|
-
var
|
|
10044
|
+
var import_runtime41 = require("@homebound/truss/runtime");
|
|
10024
10045
|
|
|
10025
10046
|
// src/inputs/internal/ComboBoxInput.tsx
|
|
10026
10047
|
var import_react44 = require("react");
|
|
10027
10048
|
var import_react_aria26 = require("react-aria");
|
|
10028
|
-
var
|
|
10049
|
+
var import_runtime40 = require("@homebound/truss/runtime");
|
|
10029
10050
|
|
|
10030
10051
|
// src/inputs/hooks/useGrowingTextField.tsx
|
|
10031
10052
|
var import_utils32 = require("@react-aria/utils");
|
|
@@ -10091,12 +10112,12 @@ function useGrowingTextField({ inputRef, inputWrapRef, value, disabled, maxLines
|
|
|
10091
10112
|
var import_react43 = __toESM(require("react"), 1);
|
|
10092
10113
|
var import_react_aria25 = require("react-aria");
|
|
10093
10114
|
var import_react_stately5 = require("react-stately");
|
|
10094
|
-
var
|
|
10115
|
+
var import_runtime39 = require("@homebound/truss/runtime");
|
|
10095
10116
|
|
|
10096
10117
|
// src/inputs/internal/ListBox.tsx
|
|
10097
10118
|
var import_react42 = require("react");
|
|
10098
10119
|
var import_react_aria24 = require("react-aria");
|
|
10099
|
-
var
|
|
10120
|
+
var import_runtime38 = require("@homebound/truss/runtime");
|
|
10100
10121
|
|
|
10101
10122
|
// src/inputs/internal/constants.ts
|
|
10102
10123
|
var persistentItemHeight = 42;
|
|
@@ -10104,7 +10125,7 @@ var sectionSeparatorHeight = 1;
|
|
|
10104
10125
|
|
|
10105
10126
|
// src/inputs/internal/ListBoxSection.tsx
|
|
10106
10127
|
var import_react_aria23 = require("react-aria");
|
|
10107
|
-
var
|
|
10128
|
+
var import_runtime37 = require("@homebound/truss/runtime");
|
|
10108
10129
|
|
|
10109
10130
|
// src/inputs/internal/Option.tsx
|
|
10110
10131
|
var import_react38 = require("react");
|
|
@@ -10119,7 +10140,7 @@ var import_react_stately4 = require("react-stately");
|
|
|
10119
10140
|
// src/inputs/ChipTextField.tsx
|
|
10120
10141
|
var import_react36 = require("react");
|
|
10121
10142
|
var import_react_aria18 = require("react-aria");
|
|
10122
|
-
var
|
|
10143
|
+
var import_runtime30 = require("@homebound/truss/runtime");
|
|
10123
10144
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
10124
10145
|
function ChipTextField(props) {
|
|
10125
10146
|
const {
|
|
@@ -10179,7 +10200,7 @@ function ChipTextField(props) {
|
|
|
10179
10200
|
target.innerHTML = target.textContent?.replace(/[A\n\r]/g, " ") ?? "";
|
|
10180
10201
|
}
|
|
10181
10202
|
onChange(target.textContent ?? "");
|
|
10182
|
-
}, ...focusProps, ...(0,
|
|
10203
|
+
}, ...focusProps, ...(0, import_runtime30.trussProps)({
|
|
10183
10204
|
...chipBaseStyles(fieldProps?.compact),
|
|
10184
10205
|
...{
|
|
10185
10206
|
minWidth: "mw_32px",
|
|
@@ -10192,7 +10213,7 @@ function ChipTextField(props) {
|
|
|
10192
10213
|
}
|
|
10193
10214
|
|
|
10194
10215
|
// src/inputs/internal/ListBoxChip.tsx
|
|
10195
|
-
var
|
|
10216
|
+
var import_runtime31 = require("@homebound/truss/runtime");
|
|
10196
10217
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
10197
10218
|
function ListBoxChip({
|
|
10198
10219
|
label
|
|
@@ -10200,7 +10221,7 @@ function ListBoxChip({
|
|
|
10200
10221
|
const {
|
|
10201
10222
|
fieldProps
|
|
10202
10223
|
} = usePresentationContext();
|
|
10203
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { ...(0,
|
|
10224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { ...(0, import_runtime31.trussProps)({
|
|
10204
10225
|
...chipBaseStyles(fieldProps?.compact),
|
|
10205
10226
|
...{
|
|
10206
10227
|
whiteSpace: "wsnw",
|
|
@@ -10261,7 +10282,7 @@ function defaultOptionLabel(opt) {
|
|
|
10261
10282
|
}
|
|
10262
10283
|
|
|
10263
10284
|
// src/inputs/ChipSelectField.tsx
|
|
10264
|
-
var
|
|
10285
|
+
var import_runtime32 = require("@homebound/truss/runtime");
|
|
10265
10286
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
10266
10287
|
function ChipSelectField(props) {
|
|
10267
10288
|
const firstRender = (0, import_react37.useRef)(true);
|
|
@@ -10439,7 +10460,7 @@ function ChipSelectField(props) {
|
|
|
10439
10460
|
maybeTooltip({
|
|
10440
10461
|
title: resolveTooltip(disabled),
|
|
10441
10462
|
placement: "top",
|
|
10442
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { ref: wrapperRef, ...(0,
|
|
10463
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { ref: wrapperRef, ...(0, import_runtime32.trussProps)({
|
|
10443
10464
|
...chipStyles,
|
|
10444
10465
|
...{
|
|
10445
10466
|
position: "relative",
|
|
@@ -10457,7 +10478,7 @@ function ChipSelectField(props) {
|
|
|
10457
10478
|
} : {}
|
|
10458
10479
|
}), children: [
|
|
10459
10480
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Label, { label, labelProps, hidden: true, ...tid.label }),
|
|
10460
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("button", { ...(0, import_react_aria19.mergeProps)(focusProps, buttonProps), ref: buttonRef, ...(0,
|
|
10481
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("button", { ...(0, import_react_aria19.mergeProps)(focusProps, buttonProps), ref: buttonRef, ...(0, import_runtime32.trussProps)({
|
|
10461
10482
|
...{
|
|
10462
10483
|
textAlign: "tal",
|
|
10463
10484
|
borderRadius: "br16",
|
|
@@ -10473,7 +10494,7 @@ function ChipSelectField(props) {
|
|
|
10473
10494
|
},
|
|
10474
10495
|
...isDisabled ? chipDisabledStyles : chipHoverOnlyStyles
|
|
10475
10496
|
}), title: state.selectedItem ? state.selectedItem.textValue : placeholder, ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { ...valueProps, className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1 wbba", children: state.selectedItem ? state.selectedItem.textValue : placeholder }) }),
|
|
10476
|
-
showClearButton && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("button", { ...clearFocusProps, ...(0,
|
|
10497
|
+
showClearButton && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("button", { ...clearFocusProps, ...(0, import_runtime32.trussProps)({
|
|
10477
10498
|
...{
|
|
10478
10499
|
paddingRight: "pr_4px",
|
|
10479
10500
|
borderRadius: "borderRadius_0_16px_16px_0",
|
|
@@ -10519,7 +10540,7 @@ function CreateNewField(props) {
|
|
|
10519
10540
|
}
|
|
10520
10541
|
|
|
10521
10542
|
// src/inputs/internal/Option.tsx
|
|
10522
|
-
var
|
|
10543
|
+
var import_runtime33 = require("@homebound/truss/runtime");
|
|
10523
10544
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
10524
10545
|
function Option(props) {
|
|
10525
10546
|
const {
|
|
@@ -10573,7 +10594,7 @@ function Option(props) {
|
|
|
10573
10594
|
return maybeTooltip({
|
|
10574
10595
|
title: disabledReason,
|
|
10575
10596
|
placement: "right",
|
|
10576
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("li", { ...(0, import_react_aria20.mergeProps)(optionProps, hoverProps), "data-label": item.textValue, ref, ...(0,
|
|
10597
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("li", { ...(0, import_react_aria20.mergeProps)(optionProps, hoverProps), "data-label": item.textValue, ref, ...(0, import_runtime33.trussProps)({
|
|
10577
10598
|
...{
|
|
10578
10599
|
display: "df",
|
|
10579
10600
|
alignItems: "aic",
|
|
@@ -10612,7 +10633,7 @@ var import_react41 = require("react");
|
|
|
10612
10633
|
var import_react_virtuoso = require("react-virtuoso");
|
|
10613
10634
|
|
|
10614
10635
|
// src/inputs/internal/LoadingDots.tsx
|
|
10615
|
-
var
|
|
10636
|
+
var import_runtime34 = require("@homebound/truss/runtime");
|
|
10616
10637
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
10617
10638
|
function LoadingDots({
|
|
10618
10639
|
contrast
|
|
@@ -10634,19 +10655,19 @@ function LoadingDots({
|
|
|
10634
10655
|
};
|
|
10635
10656
|
const tid = useTestIds({});
|
|
10636
10657
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "pt2 pb2 df jcc", ...tid.loadingDots, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { "aria-label": "Loading", className: "df gap_4px", children: [
|
|
10637
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...(0,
|
|
10658
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...(0, import_runtime34.trussProps)({
|
|
10638
10659
|
...dotCss,
|
|
10639
10660
|
...{
|
|
10640
10661
|
animationDelay: "animationDelay_0ms"
|
|
10641
10662
|
}
|
|
10642
10663
|
}) }),
|
|
10643
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...(0,
|
|
10664
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...(0, import_runtime34.trussProps)({
|
|
10644
10665
|
...dotCss,
|
|
10645
10666
|
...{
|
|
10646
10667
|
animationDelay: "animationDelay_300ms"
|
|
10647
10668
|
}
|
|
10648
10669
|
}) }),
|
|
10649
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...(0,
|
|
10670
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...(0, import_runtime34.trussProps)({
|
|
10650
10671
|
...dotCss,
|
|
10651
10672
|
...{
|
|
10652
10673
|
animationDelay: "animationDelay_600ms"
|
|
@@ -10662,7 +10683,7 @@ var import_react_aria22 = require("react-aria");
|
|
|
10662
10683
|
// src/inputs/CheckboxBase.tsx
|
|
10663
10684
|
var import_react39 = require("react");
|
|
10664
10685
|
var import_react_aria21 = require("react-aria");
|
|
10665
|
-
var
|
|
10686
|
+
var import_runtime35 = require("@homebound/truss/runtime");
|
|
10666
10687
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
10667
10688
|
function CheckboxBase(props) {
|
|
10668
10689
|
const {
|
|
@@ -10690,7 +10711,7 @@ function CheckboxBase(props) {
|
|
|
10690
10711
|
return maybeTooltip({
|
|
10691
10712
|
title: tooltip,
|
|
10692
10713
|
placement: "top",
|
|
10693
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Tag2, { ...(0,
|
|
10714
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Tag2, { ...(0, import_runtime35.trussProps)({
|
|
10694
10715
|
display: "df",
|
|
10695
10716
|
cursor: "cursorPointer",
|
|
10696
10717
|
position: "relative",
|
|
@@ -10706,17 +10727,17 @@ function CheckboxBase(props) {
|
|
|
10706
10727
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(StyledCheckbox, { ...props, isFocusVisible, ...tid }),
|
|
10707
10728
|
!checkboxOnly && // Use a mtPx(-2) to better align the label with the checkbox.
|
|
10708
10729
|
// 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
|
|
10709
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { ...(0,
|
|
10730
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { ...(0, import_runtime35.trussProps)({
|
|
10710
10731
|
marginLeft: "ml1",
|
|
10711
10732
|
marginTop: ["mt_var", {
|
|
10712
10733
|
"--marginTop": `${-2}px`
|
|
10713
10734
|
}]
|
|
10714
10735
|
}), children: [
|
|
10715
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0,
|
|
10736
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0, import_runtime35.trussProps)({
|
|
10716
10737
|
...labelStyles,
|
|
10717
10738
|
...isDisabled && disabledColor
|
|
10718
10739
|
}), children: label }),
|
|
10719
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0,
|
|
10740
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ...(0, import_runtime35.trussProps)({
|
|
10720
10741
|
...descStyles,
|
|
10721
10742
|
...isDisabled && disabledColor
|
|
10722
10743
|
}), children: description }),
|
|
@@ -10798,7 +10819,7 @@ function StyledCheckbox(props) {
|
|
|
10798
10819
|
});
|
|
10799
10820
|
const markIcon = isIndeterminate ? dashSmall : isSelected ? checkmarkSmall : "";
|
|
10800
10821
|
const tid = useTestIds(props);
|
|
10801
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ...hoverProps, ...(0,
|
|
10822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { ...hoverProps, ...(0, import_runtime35.trussProps)({
|
|
10802
10823
|
...baseStyles2,
|
|
10803
10824
|
...(isSelected && !isDisabled || isIndeterminate) && filledBoxStyles,
|
|
10804
10825
|
...(isSelected && !isDisabled || isIndeterminate) && isHovered && filledBoxHoverStyles,
|
|
@@ -10808,11 +10829,11 @@ function StyledCheckbox(props) {
|
|
|
10808
10829
|
...isHovered && hoverBorderStyles
|
|
10809
10830
|
}), "aria-hidden": "true", "data-checked": isSelected ? true : isIndeterminate ? "mixed" : false, ...tid.checkbox, children: markIcon });
|
|
10810
10831
|
}
|
|
10811
|
-
var checkmarkSmall = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { width: "16", height: "16", ...(0,
|
|
10812
|
-
var dashSmall = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { width: "16", height: "16", ...(0,
|
|
10832
|
+
var checkmarkSmall = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime35.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime47.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 */ }) });
|
|
10833
|
+
var dashSmall = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime35.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("rect", { x: "4", y: "7.5", width: "8", height: "1.35", fill: "rgba(255,255,255,1)" /* White */ }) });
|
|
10813
10834
|
|
|
10814
10835
|
// src/inputs/TreeSelectField/TreeOption.tsx
|
|
10815
|
-
var
|
|
10836
|
+
var import_runtime36 = require("@homebound/truss/runtime");
|
|
10816
10837
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
10817
10838
|
function TreeOption(props) {
|
|
10818
10839
|
const {
|
|
@@ -10872,7 +10893,7 @@ function TreeOption(props) {
|
|
|
10872
10893
|
}]
|
|
10873
10894
|
}
|
|
10874
10895
|
};
|
|
10875
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("li", { ...hoverProps, ...(0,
|
|
10896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("li", { ...hoverProps, ...(0, import_runtime36.trussProps)({
|
|
10876
10897
|
...{
|
|
10877
10898
|
display: "df",
|
|
10878
10899
|
alignItems: "aic",
|
|
@@ -11055,11 +11076,11 @@ function ListBoxSection(props) {
|
|
|
11055
11076
|
const childNodes = [...section.childNodes];
|
|
11056
11077
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
11057
11078
|
isPersistentSection && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("li", { ...separatorProps, className: "bts_solid btw_1px bcGray200" }),
|
|
11058
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("li", { ...itemProps, ...(0,
|
|
11079
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("li", { ...itemProps, ...(0, import_runtime37.trussProps)({
|
|
11059
11080
|
...!isPersistentSection ? {
|
|
11060
11081
|
overflow: "oa"
|
|
11061
11082
|
} : {}
|
|
11062
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("ul", { ...(0,
|
|
11083
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("ul", { ...(0, import_runtime37.trussProps)({
|
|
11063
11084
|
padding: "p_0",
|
|
11064
11085
|
margin: "m_0",
|
|
11065
11086
|
listStyle: "lis_none",
|
|
@@ -11135,7 +11156,7 @@ function ListBox(props) {
|
|
|
11135
11156
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11136
11157
|
[state.selectionManager.selectedKeys.size]
|
|
11137
11158
|
);
|
|
11138
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { ...(0,
|
|
11159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { ...(0, import_runtime38.trussProps)({
|
|
11139
11160
|
backgroundColor: "bgWhite",
|
|
11140
11161
|
borderRadius: "br4",
|
|
11141
11162
|
width: "w100",
|
|
@@ -11571,7 +11592,7 @@ function TreeSelectFieldBase(props) {
|
|
|
11571
11592
|
minWidth: 320
|
|
11572
11593
|
};
|
|
11573
11594
|
const fieldMaxWidth = getFieldWidth(fullWidth);
|
|
11574
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { ...(0,
|
|
11595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { ...(0, import_runtime39.trussProps)({
|
|
11575
11596
|
display: "df",
|
|
11576
11597
|
flexDirection: "fdc",
|
|
11577
11598
|
width: "w100",
|
|
@@ -11666,7 +11687,7 @@ function ComboBoxInput(props) {
|
|
|
11666
11687
|
});
|
|
11667
11688
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TextFieldBase, { ...otherProps, ...multilineProps, unfocusedPlaceholder: showChipSelection && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Chips, { compact: otherProps.compact, values: chipLabels, wrap: allowWrap }), inputRef, inputWrapRef, errorMsg, contrast, xss: otherProps.labelStyle !== "inline" && !inputProps.readOnly ? {
|
|
11668
11689
|
fontWeight: "fw5"
|
|
11669
|
-
} : {}, startAdornment: showNumSelection && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Tooltip, { title: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectedOptionBullets, { labels: chipLabels }), children: /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsx)("button", { ...buttonProps, disabled: inputProps.disabled, ref: buttonRef, ...(0,
|
|
11690
|
+
} : {}, startAdornment: showNumSelection && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Tooltip, { title: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectedOptionBullets, { labels: chipLabels }), children: /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsx)("button", { ...buttonProps, disabled: inputProps.disabled, ref: buttonRef, ...(0, import_runtime40.trussProps)({
|
|
11670
11691
|
...{
|
|
11671
11692
|
borderRadius: "br4",
|
|
11672
11693
|
outline: "outline0",
|
|
@@ -12000,7 +12021,7 @@ function ComboBoxBase(props) {
|
|
|
12000
12021
|
minWidth: 200
|
|
12001
12022
|
};
|
|
12002
12023
|
const fieldMaxWidth = getFieldWidth(fullWidth);
|
|
12003
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { ...(0,
|
|
12024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { ...(0, import_runtime41.trussProps)({
|
|
12004
12025
|
display: "df",
|
|
12005
12026
|
flexDirection: "fdc",
|
|
12006
12027
|
width: "w100",
|
|
@@ -12224,7 +12245,7 @@ function Checkbox(props) {
|
|
|
12224
12245
|
var import_react48 = require("react");
|
|
12225
12246
|
var import_react_aria30 = require("react-aria");
|
|
12226
12247
|
var import_react_stately9 = require("react-stately");
|
|
12227
|
-
var
|
|
12248
|
+
var import_runtime42 = require("@homebound/truss/runtime");
|
|
12228
12249
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
12229
12250
|
function CheckboxGroup(props) {
|
|
12230
12251
|
const {
|
|
@@ -12252,18 +12273,18 @@ function CheckboxGroup(props) {
|
|
|
12252
12273
|
} = (0, import_react_aria30.useCheckboxGroup)(props, state);
|
|
12253
12274
|
const tid = useTestIds(props);
|
|
12254
12275
|
const labelSuffix = useLabelSuffix(required, false);
|
|
12255
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { ...groupProps, ...(0,
|
|
12276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { ...groupProps, ...(0, import_runtime42.trussProps)({
|
|
12256
12277
|
...labelStyle === "left" ? {
|
|
12257
12278
|
display: "df",
|
|
12258
12279
|
flexDirection: "fdr"
|
|
12259
12280
|
} : {}
|
|
12260
12281
|
}), onBlur, onFocus, ...tid, children: [
|
|
12261
|
-
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ...(0,
|
|
12282
|
+
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ...(0, import_runtime42.trussProps)({
|
|
12262
12283
|
...labelStyle === "left" ? {
|
|
12263
12284
|
width: "w50"
|
|
12264
12285
|
} : {}
|
|
12265
12286
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label, { label, ...labelProps, ...tid.label, suffix: labelSuffix }) }),
|
|
12266
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ...(0,
|
|
12287
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ...(0, import_runtime42.trussProps)({
|
|
12267
12288
|
display: "dg",
|
|
12268
12289
|
gridTemplateColumns: ["gtc_var", {
|
|
12269
12290
|
"--gridTemplateColumns": `repeat(${columns}, auto)`
|
|
@@ -12399,7 +12420,7 @@ function isValidDate(d) {
|
|
|
12399
12420
|
}
|
|
12400
12421
|
|
|
12401
12422
|
// src/inputs/DateFields/DateFieldBase.tsx
|
|
12402
|
-
var
|
|
12423
|
+
var import_runtime43 = require("@homebound/truss/runtime");
|
|
12403
12424
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
12404
12425
|
function DateFieldBase(props) {
|
|
12405
12426
|
const {
|
|
@@ -12542,7 +12563,7 @@ function DateFieldBase(props) {
|
|
|
12542
12563
|
setInputValue("");
|
|
12543
12564
|
onChange(void 0);
|
|
12544
12565
|
} }) });
|
|
12545
|
-
const calendarButton = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("button", { ref: buttonRef, ...buttonProps, disabled: isDisabled, ...(0,
|
|
12566
|
+
const calendarButton = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("button", { ref: buttonRef, ...buttonProps, disabled: isDisabled, ...(0, import_runtime43.trussProps)({
|
|
12546
12567
|
...isDisabled ? {
|
|
12547
12568
|
cursor: "cursorNotAllowed"
|
|
12548
12569
|
} : {}
|
|
@@ -12629,7 +12650,7 @@ function DateRangeField(props) {
|
|
|
12629
12650
|
var import_react51 = require("react");
|
|
12630
12651
|
var import_react_aria32 = require("react-aria");
|
|
12631
12652
|
var import_react_stately11 = require("react-stately");
|
|
12632
|
-
var
|
|
12653
|
+
var import_runtime44 = require("@homebound/truss/runtime");
|
|
12633
12654
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
12634
12655
|
function IconCard(props) {
|
|
12635
12656
|
const {
|
|
@@ -12671,10 +12692,10 @@ function IconCard(props) {
|
|
|
12671
12692
|
return maybeTooltip({
|
|
12672
12693
|
title: resolveTooltip(isDisabled, tooltip),
|
|
12673
12694
|
placement: "top",
|
|
12674
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("button", { ...(0,
|
|
12695
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("button", { ...(0, import_runtime44.trussProps)(styles), ...hoverProps, onClick: toggleState.toggle, disabled: isDisabled, ...tid, children: [
|
|
12675
12696
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_aria32.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("input", { ref, ...inputProps, ...tid.value }) }),
|
|
12676
12697
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { icon, inc: 4, color: isDisabled ? "rgba(221, 220, 220, 1)" /* Gray300 */ : "rgba(36, 36, 36, 1)" /* Gray900 */ }),
|
|
12677
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { ...(0,
|
|
12698
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { ...(0, import_runtime44.trussProps)({
|
|
12678
12699
|
fontWeight: "fw4",
|
|
12679
12700
|
fontSize: "fz_12px",
|
|
12680
12701
|
lineHeight: "lh_16px",
|
|
@@ -12719,7 +12740,7 @@ var iconCardStylesHover = {
|
|
|
12719
12740
|
|
|
12720
12741
|
// src/inputs/MultiLineSelectField.tsx
|
|
12721
12742
|
var import_react52 = require("react");
|
|
12722
|
-
var
|
|
12743
|
+
var import_runtime45 = require("@homebound/truss/runtime");
|
|
12723
12744
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
12724
12745
|
function MultiLineSelectField(props) {
|
|
12725
12746
|
const {
|
|
@@ -12734,18 +12755,18 @@ function MultiLineSelectField(props) {
|
|
|
12734
12755
|
const tid = useTestIds(props, "");
|
|
12735
12756
|
const [isDisplayed, setIsDisplayed] = (0, import_react52.useState)(true);
|
|
12736
12757
|
const currentOptions = options.filter((o) => !values.includes(getOptionValue(o)));
|
|
12737
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...(0,
|
|
12758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...(0, import_runtime45.trussProps)({
|
|
12738
12759
|
marginTop: "mt1",
|
|
12739
12760
|
...labelStyle === "left" ? {
|
|
12740
12761
|
display: "df"
|
|
12741
12762
|
} : {}
|
|
12742
12763
|
}), children: [
|
|
12743
|
-
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { ...(0,
|
|
12764
|
+
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { ...(0, import_runtime45.trussProps)({
|
|
12744
12765
|
...labelStyle === "left" ? {
|
|
12745
12766
|
width: "w50"
|
|
12746
12767
|
} : {}
|
|
12747
12768
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Label, { ...tid.label, label: props.label }) }),
|
|
12748
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...(0,
|
|
12769
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...(0, import_runtime45.trussProps)({
|
|
12749
12770
|
...labelStyle === "left" ? {
|
|
12750
12771
|
width: "w50"
|
|
12751
12772
|
} : {}
|
|
@@ -12974,7 +12995,7 @@ function formatValue(value, factor, numFractionDigits, numIntegerDigits, positiv
|
|
|
12974
12995
|
var import_react54 = require("react");
|
|
12975
12996
|
var import_react_aria34 = require("react-aria");
|
|
12976
12997
|
var import_react_stately13 = require("react-stately");
|
|
12977
|
-
var
|
|
12998
|
+
var import_runtime46 = require("@homebound/truss/runtime");
|
|
12978
12999
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
12979
13000
|
var nextNameId = 0;
|
|
12980
13001
|
function RadioGroupField(props) {
|
|
@@ -13007,7 +13028,7 @@ function RadioGroupField(props) {
|
|
|
13007
13028
|
}, state);
|
|
13008
13029
|
return (
|
|
13009
13030
|
// default styling to position `<Label />` above.
|
|
13010
|
-
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { ...(0,
|
|
13031
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { ...(0, import_runtime46.trussProps)({
|
|
13011
13032
|
display: "df",
|
|
13012
13033
|
flexDirection: "fdc",
|
|
13013
13034
|
gap: "gap1",
|
|
@@ -13067,7 +13088,7 @@ function Radio(props) {
|
|
|
13067
13088
|
} = (0, import_react_aria34.useHover)({
|
|
13068
13089
|
isDisabled: disabled
|
|
13069
13090
|
});
|
|
13070
|
-
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { ...(0,
|
|
13091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { ...(0, import_runtime46.trussProps)({
|
|
13071
13092
|
display: "df",
|
|
13072
13093
|
cursor: "cursorPointer",
|
|
13073
13094
|
marginBottom: "mb1",
|
|
@@ -13080,7 +13101,7 @@ function Radio(props) {
|
|
|
13080
13101
|
{
|
|
13081
13102
|
type: "radio",
|
|
13082
13103
|
ref,
|
|
13083
|
-
...(0,
|
|
13104
|
+
...(0, import_runtime46.trussProps)({
|
|
13084
13105
|
...radioReset,
|
|
13085
13106
|
...radioDefault,
|
|
13086
13107
|
...!disabled && state.selectedValue === value ? radioChecked : radioUnchecked,
|
|
@@ -13101,7 +13122,7 @@ function Radio(props) {
|
|
|
13101
13122
|
}
|
|
13102
13123
|
),
|
|
13103
13124
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { children: [
|
|
13104
|
-
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { id: labelId, ...(0,
|
|
13125
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { id: labelId, ...(0, import_runtime46.trussProps)({
|
|
13105
13126
|
fontWeight: "fw4",
|
|
13106
13127
|
fontSize: "fz_14px",
|
|
13107
13128
|
lineHeight: "lh_20px",
|
|
@@ -13112,7 +13133,7 @@ function Radio(props) {
|
|
|
13112
13133
|
}), ...description ? {
|
|
13113
13134
|
"aria-describedby": descriptionId
|
|
13114
13135
|
} : {}, children: label }),
|
|
13115
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { id: descriptionId, ...(0,
|
|
13136
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { id: descriptionId, ...(0, import_runtime46.trussProps)({
|
|
13116
13137
|
fontWeight: "fw4",
|
|
13117
13138
|
fontSize: "fz_14px",
|
|
13118
13139
|
lineHeight: "lh_20px",
|
|
@@ -13255,7 +13276,7 @@ var import_tributejs = __toESM(require("tributejs"), 1);
|
|
|
13255
13276
|
var import_tribute = require("tributejs/dist/tribute.css");
|
|
13256
13277
|
var import_trix = require("trix/dist/trix");
|
|
13257
13278
|
var import_trix2 = require("trix/dist/trix.css");
|
|
13258
|
-
var
|
|
13279
|
+
var import_runtime47 = require("@homebound/truss/runtime");
|
|
13259
13280
|
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
13260
13281
|
var RichTextField = withTestMock(RichTextFieldImpl, RichTextFieldMock);
|
|
13261
13282
|
function RichTextFieldImpl(props) {
|
|
@@ -13335,7 +13356,7 @@ function RichTextFieldImpl(props) {
|
|
|
13335
13356
|
autoFocus
|
|
13336
13357
|
} = props;
|
|
13337
13358
|
if (!readOnly) {
|
|
13338
|
-
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { ...(0,
|
|
13359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { ...(0, import_runtime47.trussProps)({
|
|
13339
13360
|
width: "w100",
|
|
13340
13361
|
...!fullWidth ? {
|
|
13341
13362
|
maxWidth: "maxw_550px"
|
|
@@ -13358,7 +13379,7 @@ function RichTextFieldImpl(props) {
|
|
|
13358
13379
|
] })
|
|
13359
13380
|
] });
|
|
13360
13381
|
} else {
|
|
13361
|
-
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { ...(0,
|
|
13382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { ...(0, import_runtime47.trussProps)({
|
|
13362
13383
|
width: "w100",
|
|
13363
13384
|
...!fullWidth ? {
|
|
13364
13385
|
maxWidth: "maxw_550px"
|
|
@@ -13432,7 +13453,7 @@ function SelectField(props) {
|
|
|
13432
13453
|
// src/inputs/Switch.tsx
|
|
13433
13454
|
var import_react58 = require("react");
|
|
13434
13455
|
var import_react_aria35 = require("react-aria");
|
|
13435
|
-
var
|
|
13456
|
+
var import_runtime48 = require("@homebound/truss/runtime");
|
|
13436
13457
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
13437
13458
|
var __maybeInc5 = (inc) => {
|
|
13438
13459
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -13482,7 +13503,7 @@ function Switch(props) {
|
|
|
13482
13503
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
13483
13504
|
const tooltip = resolveTooltip(disabled, props.tooltip);
|
|
13484
13505
|
const tid = useTestIds(otherProps, label);
|
|
13485
|
-
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { ...hoverProps, ...(0,
|
|
13506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { ...hoverProps, ...(0, import_runtime48.trussProps)({
|
|
13486
13507
|
...{
|
|
13487
13508
|
position: "relative",
|
|
13488
13509
|
cursor: "cursorPointer",
|
|
@@ -13525,13 +13546,13 @@ function Switch(props) {
|
|
|
13525
13546
|
color: "gray900"
|
|
13526
13547
|
} : {}
|
|
13527
13548
|
}, inline: labelStyle === "left" || labelStyle === "filter" }) }),
|
|
13528
|
-
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ...(0,
|
|
13549
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ...(0, import_runtime48.trussProps)({
|
|
13529
13550
|
...labelStyle === "left" ? {
|
|
13530
13551
|
width: ["w_var", {
|
|
13531
13552
|
"--width": __maybeInc5(labelLeftFieldWidth)
|
|
13532
13553
|
}]
|
|
13533
13554
|
} : {}
|
|
13534
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { "aria-hidden": "true", ...(0,
|
|
13555
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { "aria-hidden": "true", ...(0, import_runtime48.trussProps)({
|
|
13535
13556
|
...{
|
|
13536
13557
|
width: ["w_var", {
|
|
13537
13558
|
"--width": `${toggleWidth(compact)}px`
|
|
@@ -13553,7 +13574,7 @@ function Switch(props) {
|
|
|
13553
13574
|
backgroundColor: "bgBlue700"
|
|
13554
13575
|
},
|
|
13555
13576
|
...isSelected && isHovered && switchSelectedHoverStyles
|
|
13556
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ...(0,
|
|
13577
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ...(0, import_runtime48.trussProps)({
|
|
13557
13578
|
...switchCircleDefaultStyles(compact),
|
|
13558
13579
|
...isDisabled && {
|
|
13559
13580
|
backgroundColor: "bgGray100"
|
|
@@ -13739,7 +13760,7 @@ function TextField(props) {
|
|
|
13739
13760
|
var import_react61 = require("react");
|
|
13740
13761
|
var import_react_aria38 = require("react-aria");
|
|
13741
13762
|
var import_react_stately14 = require("react-stately");
|
|
13742
|
-
var
|
|
13763
|
+
var import_runtime49 = require("@homebound/truss/runtime");
|
|
13743
13764
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
13744
13765
|
function ToggleButton(props) {
|
|
13745
13766
|
const {
|
|
@@ -13804,7 +13825,7 @@ function ToggleButton(props) {
|
|
|
13804
13825
|
...focusProps,
|
|
13805
13826
|
...hoverProps,
|
|
13806
13827
|
...pressProps,
|
|
13807
|
-
...(0,
|
|
13828
|
+
...(0, import_runtime49.trussProps)({
|
|
13808
13829
|
...{
|
|
13809
13830
|
borderRadius: "br4",
|
|
13810
13831
|
display: "dif",
|
|
@@ -13860,7 +13881,7 @@ var togglePressStyles = {
|
|
|
13860
13881
|
var import_react62 = require("react");
|
|
13861
13882
|
var import_react_aria39 = require("react-aria");
|
|
13862
13883
|
var import_react_stately15 = require("react-stately");
|
|
13863
|
-
var
|
|
13884
|
+
var import_runtime50 = require("@homebound/truss/runtime");
|
|
13864
13885
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
13865
13886
|
var __maybeInc6 = (inc) => {
|
|
13866
13887
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -13892,7 +13913,7 @@ function ToggleChipGroup(props) {
|
|
|
13892
13913
|
} = (0, import_react_aria39.useCheckboxGroup)(props, state);
|
|
13893
13914
|
const tid = useTestIds(props, "toggleChip");
|
|
13894
13915
|
const labelSuffix = useLabelSuffix(required, false);
|
|
13895
|
-
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { ...groupProps, ...(0,
|
|
13916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { ...groupProps, ...(0, import_runtime50.trussProps)({
|
|
13896
13917
|
position: "relative",
|
|
13897
13918
|
display: "df",
|
|
13898
13919
|
flexDirection: "fdc",
|
|
@@ -13904,7 +13925,7 @@ function ToggleChipGroup(props) {
|
|
|
13904
13925
|
} : {}
|
|
13905
13926
|
}), children: [
|
|
13906
13927
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Label, { label, ...labelProps, hidden: labelStyle === "hidden", inline: labelStyle !== "above", suffix: labelSuffix }),
|
|
13907
|
-
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ...(0,
|
|
13928
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ...(0, import_runtime50.trussProps)({
|
|
13908
13929
|
display: "df",
|
|
13909
13930
|
gap: "gap1",
|
|
13910
13931
|
flexWrap: "flexWrap_wrap",
|
|
@@ -13969,7 +13990,7 @@ function ToggleChip2(props) {
|
|
|
13969
13990
|
return maybeTooltip({
|
|
13970
13991
|
title: tooltip,
|
|
13971
13992
|
placement: "top",
|
|
13972
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { ...(0,
|
|
13993
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { ...(0, import_runtime50.trussProps)({
|
|
13973
13994
|
...{
|
|
13974
13995
|
position: "relative",
|
|
13975
13996
|
display: "dif",
|
|
@@ -15251,7 +15272,7 @@ function useRenderCount() {
|
|
|
15251
15272
|
}
|
|
15252
15273
|
|
|
15253
15274
|
// src/components/Table/GridTable.tsx
|
|
15254
|
-
var
|
|
15275
|
+
var import_runtime51 = require("@homebound/truss/runtime");
|
|
15255
15276
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
15256
15277
|
var runningInJest = false;
|
|
15257
15278
|
function setRunningInJest() {
|
|
@@ -15523,7 +15544,7 @@ function GridTable(props) {
|
|
|
15523
15544
|
tableContainerRef
|
|
15524
15545
|
}), [tableState, tableContainerRef]);
|
|
15525
15546
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
15526
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ref: resizeRef, ...(0,
|
|
15547
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ref: resizeRef, ...(0, import_runtime51.trussProps)(getTableRefWidthStyles(as === "virtual")) }),
|
|
15527
15548
|
renders[_as](style, id, columns, visibleDataRows, keptSelectedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
15528
15549
|
] }) });
|
|
15529
15550
|
}
|
|
@@ -15533,7 +15554,7 @@ var renders = {
|
|
|
15533
15554
|
virtual: renderVirtual
|
|
15534
15555
|
};
|
|
15535
15556
|
function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
15536
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { ref: tableContainerRef, ...(0,
|
|
15557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { ref: tableContainerRef, ...(0, import_runtime51.trussProps)({
|
|
15537
15558
|
// Use `fit-content` to ensure the width of the table takes up the full width of its content.
|
|
15538
15559
|
// Otherwise, the table's width would be that of its container, which may not be as wide as the table itself.
|
|
15539
15560
|
// In cases where we have sticky columns on a very wide table, then the container which the columns "stick" to (which is the table),
|
|
@@ -15549,7 +15570,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15549
15570
|
} : {},
|
|
15550
15571
|
...xss
|
|
15551
15572
|
}), "data-testid": id, children: [
|
|
15552
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0,
|
|
15573
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15553
15574
|
...stickyHeader ? {
|
|
15554
15575
|
position: "sticky",
|
|
15555
15576
|
top: ["top_var", {
|
|
@@ -15562,7 +15583,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15562
15583
|
}), children: tableHeadRows }),
|
|
15563
15584
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
|
|
15564
15585
|
keptSelectedRows,
|
|
15565
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0,
|
|
15586
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15566
15587
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15567
15588
|
...style.firstRowMessageCss,
|
|
15568
15589
|
...visibleDataRows.length === 0 && style.lastRowCss,
|
|
@@ -15575,7 +15596,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, firstR
|
|
|
15575
15596
|
] });
|
|
15576
15597
|
}
|
|
15577
15598
|
function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
15578
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("table", { ref: tableContainerRef, ...(0,
|
|
15599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("table", { ref: tableContainerRef, ...(0, import_runtime51.trussProps)({
|
|
15579
15600
|
...{
|
|
15580
15601
|
width: "w100",
|
|
15581
15602
|
borderCollapse: "borderCollapse_separate",
|
|
@@ -15589,7 +15610,7 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firs
|
|
|
15589
15610
|
} : {},
|
|
15590
15611
|
...xss
|
|
15591
15612
|
}), "data-testid": id, children: [
|
|
15592
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("thead", { ...(0,
|
|
15613
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("thead", { ...(0, import_runtime51.trussProps)({
|
|
15593
15614
|
...stickyHeader ? {
|
|
15594
15615
|
position: "sticky",
|
|
15595
15616
|
top: ["top_var", {
|
|
@@ -15602,11 +15623,11 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, firs
|
|
|
15602
15623
|
}), children: tableHeadRows }),
|
|
15603
15624
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("tbody", { children: [
|
|
15604
15625
|
keptSelectedRows,
|
|
15605
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { ...(0,
|
|
15626
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { ...(0, import_runtime51.trussProps)({
|
|
15606
15627
|
...tableRowPrintBreakCss,
|
|
15607
15628
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15608
15629
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
15609
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("td", { colSpan: columns.length, ...(0,
|
|
15630
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("td", { colSpan: columns.length, ...(0, import_runtime51.trussProps)({
|
|
15610
15631
|
...style.betweenRowsCss,
|
|
15611
15632
|
...style.firstRowMessageCss,
|
|
15612
15633
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
@@ -15645,7 +15666,7 @@ function renderVirtual(style, id, columns, visibleDataRows, keptSelectedRows, fi
|
|
|
15645
15666
|
} })),
|
|
15646
15667
|
List: VirtualRoot(style, columns, id, xss),
|
|
15647
15668
|
Footer: () => {
|
|
15648
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0,
|
|
15669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15649
15670
|
...style.virtualFooterPaddingBottomPx !== void 0 ? {
|
|
15650
15671
|
paddingBottom: ["pb_var", {
|
|
15651
15672
|
"--paddingBottom": `${style.virtualFooterPaddingBottomPx ?? 0}px`
|
|
@@ -15668,11 +15689,11 @@ function renderVirtual(style, id, columns, visibleDataRows, keptSelectedRows, fi
|
|
|
15668
15689
|
if (index === 0) {
|
|
15669
15690
|
return (
|
|
15670
15691
|
// Ensure the fallback message is the same width as the table
|
|
15671
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0,
|
|
15692
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15672
15693
|
...getTableRefWidthStyles(true),
|
|
15673
15694
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
15674
15695
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
15675
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0,
|
|
15696
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0, import_runtime51.trussProps)({
|
|
15676
15697
|
...style.firstRowMessageCss,
|
|
15677
15698
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
15678
15699
|
...visibleDataRows.length === 0 && style.lastRowFirstCellCss,
|
|
@@ -15717,7 +15738,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
15717
15738
|
style,
|
|
15718
15739
|
children
|
|
15719
15740
|
}, ref) {
|
|
15720
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ref, ...(0,
|
|
15741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ref, ...(0, import_runtime51.mergeProps)(void 0, style, {
|
|
15721
15742
|
...gs.rootCss,
|
|
15722
15743
|
...gs.minWidthPx ? {
|
|
15723
15744
|
minWidth: ["mw_var", {
|
|
@@ -15733,7 +15754,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
15733
15754
|
});
|
|
15734
15755
|
|
|
15735
15756
|
// src/components/ToggleChip.tsx
|
|
15736
|
-
var
|
|
15757
|
+
var import_runtime52 = require("@homebound/truss/runtime");
|
|
15737
15758
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
15738
15759
|
function ToggleChip(props) {
|
|
15739
15760
|
const {
|
|
@@ -15752,7 +15773,7 @@ function ToggleChip(props) {
|
|
|
15752
15773
|
} = useHover2({});
|
|
15753
15774
|
const compact = fieldProps?.compact;
|
|
15754
15775
|
const tid = useTestIds(props, "chip");
|
|
15755
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("button", { type: "button", ...(0,
|
|
15776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("button", { type: "button", ...(0, import_runtime52.trussProps)({
|
|
15756
15777
|
...chipBaseStyles(compact),
|
|
15757
15778
|
...isHovered && !disabled && chipHoverStyles,
|
|
15758
15779
|
// Use a lower right-padding to get closer to the `X` circle when clearable, i.e. not disabled
|
|
@@ -15768,7 +15789,7 @@ function ToggleChip(props) {
|
|
|
15768
15789
|
...xss
|
|
15769
15790
|
}), disabled, onClick, ...hoverProps, ...tid, children: [
|
|
15770
15791
|
icon && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "fs0", ...tid.icon, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { icon, color: "rgba(36, 36, 36, 1)" /* Gray900 */, inc: 2 }) }),
|
|
15771
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { ...(0,
|
|
15792
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { ...(0, import_runtime52.trussProps)({
|
|
15772
15793
|
textAlign: "tal",
|
|
15773
15794
|
overflow: "oh",
|
|
15774
15795
|
display: "d_negwebkit_box",
|
|
@@ -15780,7 +15801,7 @@ function ToggleChip(props) {
|
|
|
15780
15801
|
paddingRight: "pr0"
|
|
15781
15802
|
} : {}
|
|
15782
15803
|
}), title: text, children: text }),
|
|
15783
|
-
!disabled && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { ...(0,
|
|
15804
|
+
!disabled && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { ...(0, import_runtime52.trussProps)({
|
|
15784
15805
|
...{
|
|
15785
15806
|
flexShrink: "fs0",
|
|
15786
15807
|
borderRadius: "br16",
|
|
@@ -15802,7 +15823,7 @@ var chipDisabledStyles = {
|
|
|
15802
15823
|
};
|
|
15803
15824
|
|
|
15804
15825
|
// src/components/ToggleChips.tsx
|
|
15805
|
-
var
|
|
15826
|
+
var import_runtime53 = require("@homebound/truss/runtime");
|
|
15806
15827
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
15807
15828
|
function ToggleChips(props) {
|
|
15808
15829
|
const {
|
|
@@ -15812,7 +15833,7 @@ function ToggleChips(props) {
|
|
|
15812
15833
|
xss
|
|
15813
15834
|
} = props;
|
|
15814
15835
|
const tid = useTestIds(props, "toggleChips");
|
|
15815
|
-
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { ...(0,
|
|
15836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { ...(0, import_runtime53.trussProps)({
|
|
15816
15837
|
...{
|
|
15817
15838
|
display: "df",
|
|
15818
15839
|
flexWrap: "flexWrap_wrap",
|
|
@@ -15826,7 +15847,7 @@ function ToggleChips(props) {
|
|
|
15826
15847
|
var import_utils69 = require("@react-aria/utils");
|
|
15827
15848
|
var import_react72 = require("react");
|
|
15828
15849
|
var import_react_aria40 = require("react-aria");
|
|
15829
|
-
var
|
|
15850
|
+
var import_runtime54 = require("@homebound/truss/runtime");
|
|
15830
15851
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
15831
15852
|
var __maybeInc7 = (inc) => {
|
|
15832
15853
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -15926,7 +15947,7 @@ function Accordion(props) {
|
|
|
15926
15947
|
},
|
|
15927
15948
|
...xss
|
|
15928
15949
|
}), [compact, disabled, isFocusVisible, titleOnClick, xss]);
|
|
15929
|
-
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { ...tid.container, ...(0,
|
|
15950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { ...tid.container, ...(0, import_runtime54.trussProps)({
|
|
15930
15951
|
...{
|
|
15931
15952
|
borderColor: "bcGray300",
|
|
15932
15953
|
...topBorder ? {
|
|
@@ -15945,13 +15966,13 @@ function Accordion(props) {
|
|
|
15945
15966
|
} : {}
|
|
15946
15967
|
}), children: [
|
|
15947
15968
|
titleOnClick ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { ...focusProps, "aria-controls": id, "aria-expanded": expanded, className: "df", children: [
|
|
15948
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("button", { ...tid.title, disabled, ...(0,
|
|
15969
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("button", { ...tid.title, disabled, ...(0, import_runtime54.trussProps)({
|
|
15949
15970
|
...touchableStyle,
|
|
15950
15971
|
...{
|
|
15951
15972
|
flexGrow: "fg1"
|
|
15952
15973
|
}
|
|
15953
15974
|
}), onClick: titleOnClick, children: title }),
|
|
15954
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("button", { ...tid.toggle, disabled, ...(0,
|
|
15975
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("button", { ...tid.toggle, disabled, ...(0, import_runtime54.trussProps)({
|
|
15955
15976
|
...touchableStyle,
|
|
15956
15977
|
...{
|
|
15957
15978
|
paddingLeft: "pl2",
|
|
@@ -15963,7 +15984,7 @@ function Accordion(props) {
|
|
|
15963
15984
|
} : {}
|
|
15964
15985
|
}
|
|
15965
15986
|
}), onClick: toggle, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(RotatingChevronIcon, { expanded }) })
|
|
15966
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("button", { ...tid.title, ...focusProps, "aria-controls": id, "aria-expanded": expanded, disabled, ...(0,
|
|
15987
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("button", { ...tid.title, ...focusProps, "aria-controls": id, "aria-expanded": expanded, disabled, ...(0, import_runtime54.trussProps)({
|
|
15967
15988
|
...{
|
|
15968
15989
|
width: "w100"
|
|
15969
15990
|
},
|
|
@@ -15972,13 +15993,13 @@ function Accordion(props) {
|
|
|
15972
15993
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "fg1 tal", children: title }),
|
|
15973
15994
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(RotatingChevronIcon, { expanded })
|
|
15974
15995
|
] }),
|
|
15975
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0,
|
|
15996
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0, import_runtime54.trussProps)({
|
|
15976
15997
|
overflow: "oh",
|
|
15977
15998
|
height: ["h_var", {
|
|
15978
15999
|
"--height": __maybeInc7(contentHeight)
|
|
15979
16000
|
}],
|
|
15980
16001
|
transition: "transition_height_250ms_ease_in_out"
|
|
15981
|
-
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...(0,
|
|
16002
|
+
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { ...(0, import_runtime54.trussProps)({
|
|
15982
16003
|
paddingLeft: "pl2",
|
|
15983
16004
|
paddingRight: "pr2",
|
|
15984
16005
|
paddingBottom: "pb2",
|
|
@@ -15993,7 +16014,7 @@ function Accordion(props) {
|
|
|
15993
16014
|
] });
|
|
15994
16015
|
}
|
|
15995
16016
|
function RotatingChevronIcon(props) {
|
|
15996
|
-
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { ...(0,
|
|
16017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { ...(0, import_runtime54.trussProps)({
|
|
15997
16018
|
flexShrink: "fs0",
|
|
15998
16019
|
transition: "transition_transform_250ms_linear",
|
|
15999
16020
|
transform: ["transform_var", {
|
|
@@ -16093,7 +16114,7 @@ function Indicator({
|
|
|
16093
16114
|
}
|
|
16094
16115
|
|
|
16095
16116
|
// src/components/Banner.tsx
|
|
16096
|
-
var
|
|
16117
|
+
var import_runtime55 = require("@homebound/truss/runtime");
|
|
16097
16118
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
16098
16119
|
function Banner(props) {
|
|
16099
16120
|
const {
|
|
@@ -16104,7 +16125,7 @@ function Banner(props) {
|
|
|
16104
16125
|
...others
|
|
16105
16126
|
} = props;
|
|
16106
16127
|
const tid = useTestIds(others, "banner");
|
|
16107
|
-
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { ...(0,
|
|
16128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { ...(0, import_runtime55.trussProps)({
|
|
16108
16129
|
...variantStyles2[type],
|
|
16109
16130
|
...{
|
|
16110
16131
|
display: "df",
|
|
@@ -16228,7 +16249,7 @@ function useModal() {
|
|
|
16228
16249
|
}
|
|
16229
16250
|
|
|
16230
16251
|
// src/components/Modal/Modal.tsx
|
|
16231
|
-
var
|
|
16252
|
+
var import_runtime56 = require("@homebound/truss/runtime");
|
|
16232
16253
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
16233
16254
|
function Modal(props) {
|
|
16234
16255
|
const {
|
|
@@ -16309,7 +16330,7 @@ function Modal(props) {
|
|
|
16309
16330
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16310
16331
|
[modalBodyRef, modalFooterRef, modalHeaderRef]
|
|
16311
16332
|
);
|
|
16312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_aria41.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime87.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_runtime87.jsx)(import_react_aria41.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ...(0,
|
|
16333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_aria41.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime87.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_runtime87.jsx)(import_react_aria41.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ...(0, import_runtime56.trussProps)({
|
|
16313
16334
|
borderRadius: "br24",
|
|
16314
16335
|
backgroundColor: "bgWhite",
|
|
16315
16336
|
boxShadow: "bshModal",
|
|
@@ -16335,7 +16356,7 @@ function Modal(props) {
|
|
|
16335
16356
|
borderRadius: "br0"
|
|
16336
16357
|
} : {}
|
|
16337
16358
|
}), ref, ...overlayProps, ...dialogProps, ...modalProps, ...testId, children: [
|
|
16338
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("header", { ...(0,
|
|
16359
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("header", { ...(0, import_runtime56.trussProps)({
|
|
16339
16360
|
display: "df",
|
|
16340
16361
|
flexDirection: "fdrr",
|
|
16341
16362
|
paddingTop: "pt3",
|
|
@@ -16352,7 +16373,7 @@ function Modal(props) {
|
|
|
16352
16373
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "fs0 pl1", children: allowClosing && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(IconButton, { icon: "x", onClick: closeModal, ...testId.titleClose }) }),
|
|
16353
16374
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h1", { className: "fg1 fw6 fz_30px lh_36px gray900", ref: modalHeaderRef, ...titleProps, ...testId.title })
|
|
16354
16375
|
] }),
|
|
16355
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("main", { ref: modalBodyRef, ...(0,
|
|
16376
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("main", { ref: modalBodyRef, ...(0, import_runtime56.trussProps)({
|
|
16356
16377
|
flexGrow: "fg1",
|
|
16357
16378
|
overflowY: "oya",
|
|
16358
16379
|
...hasScroll ? {
|
|
@@ -16385,7 +16406,7 @@ function ModalBody({
|
|
|
16385
16406
|
const testId = useTestIds({}, testIdPrefix);
|
|
16386
16407
|
return (0, import_react_dom2.createPortal)(
|
|
16387
16408
|
// If `virtualized`, then we are expecting the `children` will handle their own scrollbar, so have the overflow hidden and adjust padding
|
|
16388
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { ...(0,
|
|
16409
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { ...(0, import_runtime56.trussProps)({
|
|
16389
16410
|
height: "h100",
|
|
16390
16411
|
...virtualized ? {
|
|
16391
16412
|
overflow: "oh",
|
|
@@ -16406,7 +16427,7 @@ function ModalFooter({
|
|
|
16406
16427
|
modalFooterDiv
|
|
16407
16428
|
} = useBeamContext();
|
|
16408
16429
|
const testId = useTestIds({}, testIdPrefix);
|
|
16409
|
-
return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { ...(0,
|
|
16430
|
+
return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { ...(0, import_runtime56.trussProps)({
|
|
16410
16431
|
...{
|
|
16411
16432
|
paddingTop: "pt3",
|
|
16412
16433
|
paddingBottom: "pb3",
|
|
@@ -16441,7 +16462,7 @@ function getSize(size) {
|
|
|
16441
16462
|
var import_react78 = require("react");
|
|
16442
16463
|
|
|
16443
16464
|
// src/components/Snackbar/SnackbarNotice.tsx
|
|
16444
|
-
var
|
|
16465
|
+
var import_runtime57 = require("@homebound/truss/runtime");
|
|
16445
16466
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
16446
16467
|
function SnackbarNotice(props) {
|
|
16447
16468
|
const {
|
|
@@ -16459,7 +16480,7 @@ function SnackbarNotice(props) {
|
|
|
16459
16480
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
16460
16481
|
"span",
|
|
16461
16482
|
{
|
|
16462
|
-
...(0,
|
|
16483
|
+
...(0, import_runtime57.trussProps)({
|
|
16463
16484
|
overflow: "oh",
|
|
16464
16485
|
display: "d_negwebkit_box",
|
|
16465
16486
|
WebkitBoxOrient: "wbo_vertical",
|
|
@@ -16480,7 +16501,7 @@ function SnackbarNotice(props) {
|
|
|
16480
16501
|
}
|
|
16481
16502
|
),
|
|
16482
16503
|
(action || !reallyHideClose) && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("span", { className: "fs0 df aic", children: [
|
|
16483
|
-
action && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { ...(0,
|
|
16504
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { ...(0, import_runtime57.trussProps)({
|
|
16484
16505
|
textTransform: "ttu",
|
|
16485
16506
|
fontWeight: "fw4",
|
|
16486
16507
|
fontSize: "fz_14px",
|
|
@@ -16518,7 +16539,7 @@ var typeToIcon2 = {
|
|
|
16518
16539
|
};
|
|
16519
16540
|
|
|
16520
16541
|
// src/components/Snackbar/Snackbar.tsx
|
|
16521
|
-
var
|
|
16542
|
+
var import_runtime58 = require("@homebound/truss/runtime");
|
|
16522
16543
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
16523
16544
|
function Snackbar({
|
|
16524
16545
|
notices,
|
|
@@ -16529,7 +16550,7 @@ function Snackbar({
|
|
|
16529
16550
|
"div",
|
|
16530
16551
|
{
|
|
16531
16552
|
...tid.snackbarWrapper,
|
|
16532
|
-
...(0,
|
|
16553
|
+
...(0, import_runtime58.trussProps)({
|
|
16533
16554
|
position: "fixed",
|
|
16534
16555
|
zIndex: "z9999",
|
|
16535
16556
|
bottom: ["bottom_var", {
|
|
@@ -16580,7 +16601,7 @@ var SuperDrawerWidth = /* @__PURE__ */ ((SuperDrawerWidth2) => {
|
|
|
16580
16601
|
})(SuperDrawerWidth || {});
|
|
16581
16602
|
|
|
16582
16603
|
// src/components/SuperDrawer/SuperDrawer.tsx
|
|
16583
|
-
var
|
|
16604
|
+
var import_runtime59 = require("@homebound/truss/runtime");
|
|
16584
16605
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
16585
16606
|
var import_react80 = require("react");
|
|
16586
16607
|
function SuperDrawer() {
|
|
@@ -16642,7 +16663,7 @@ function SuperDrawer() {
|
|
|
16642
16663
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16643
16664
|
import_framer_motion.motion.aside,
|
|
16644
16665
|
{
|
|
16645
|
-
...(0,
|
|
16666
|
+
...(0, import_runtime59.trussProps)({
|
|
16646
16667
|
backgroundColor: "bgWhite",
|
|
16647
16668
|
height: "h100",
|
|
16648
16669
|
maxWidth: ["maxw_var", {
|
|
@@ -16943,7 +16964,7 @@ var import_mobx_react8 = require("mobx-react");
|
|
|
16943
16964
|
// src/inputs/IconCardGroup.tsx
|
|
16944
16965
|
var import_react81 = require("react");
|
|
16945
16966
|
var import_react_aria42 = require("react-aria");
|
|
16946
|
-
var
|
|
16967
|
+
var import_runtime60 = require("@homebound/truss/runtime");
|
|
16947
16968
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
16948
16969
|
function IconCardGroup(props) {
|
|
16949
16970
|
const {
|
|
@@ -16990,7 +17011,7 @@ function IconCardGroup(props) {
|
|
|
16990
17011
|
...fieldPropsAria
|
|
16991
17012
|
});
|
|
16992
17013
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { ...groupProps, children: [
|
|
16993
|
-
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ...(0,
|
|
17014
|
+
labelStyle !== "hidden" && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ...(0, import_runtime60.trussProps)({
|
|
16994
17015
|
...labelStyle === "left" ? {
|
|
16995
17016
|
width: "w50"
|
|
16996
17017
|
} : {}
|
|
@@ -17536,7 +17557,7 @@ function BoundTreeSelectField(props) {
|
|
|
17536
17557
|
|
|
17537
17558
|
// src/forms/FormLines.tsx
|
|
17538
17559
|
var import_react82 = require("react");
|
|
17539
|
-
var
|
|
17560
|
+
var import_runtime61 = require("@homebound/truss/runtime");
|
|
17540
17561
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
17541
17562
|
var __maybeInc8 = (inc) => {
|
|
17542
17563
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -17572,7 +17593,7 @@ function FormLines(props) {
|
|
|
17572
17593
|
fullWidth: true
|
|
17573
17594
|
} : {}
|
|
17574
17595
|
};
|
|
17575
|
-
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { ...(0,
|
|
17596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { ...(0, import_runtime61.trussProps)({
|
|
17576
17597
|
display: "df",
|
|
17577
17598
|
flexDirection: "fdc",
|
|
17578
17599
|
gap: ["gap_var", {
|
|
@@ -17608,7 +17629,7 @@ function FieldGroup(props) {
|
|
|
17608
17629
|
const width2 = widths2[i] || 1;
|
|
17609
17630
|
return typeof width2 === `number` ? `${width2}fr` : width2;
|
|
17610
17631
|
}).join(" ");
|
|
17611
|
-
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { ...(0,
|
|
17632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { ...(0, import_runtime61.trussProps)({
|
|
17612
17633
|
display: "dg",
|
|
17613
17634
|
gap: "gap2",
|
|
17614
17635
|
gridTemplateColumns: ["gtc_var", {
|
|
@@ -17624,7 +17645,7 @@ var sizes = {
|
|
|
17624
17645
|
};
|
|
17625
17646
|
|
|
17626
17647
|
// src/forms/BoundForm.tsx
|
|
17627
|
-
var
|
|
17648
|
+
var import_runtime62 = require("@homebound/truss/runtime");
|
|
17628
17649
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
17629
17650
|
var import_react84 = require("react");
|
|
17630
17651
|
var reactNodePrefix = "reactNode";
|
|
@@ -17679,7 +17700,7 @@ function FormRow({
|
|
|
17679
17700
|
component,
|
|
17680
17701
|
key,
|
|
17681
17702
|
minWidth
|
|
17682
|
-
}) => /* @__PURE__ */ (0, import_react84.createElement)("div", { ...(0,
|
|
17703
|
+
}) => /* @__PURE__ */ (0, import_react84.createElement)("div", { ...(0, import_runtime62.trussProps)({
|
|
17683
17704
|
minWidth: ["mw_var", {
|
|
17684
17705
|
"--minWidth": minWidth
|
|
17685
17706
|
}],
|
|
@@ -17797,7 +17818,7 @@ function boundTreeSelectField(props) {
|
|
|
17797
17818
|
|
|
17798
17819
|
// src/components/internal/CompoundField.tsx
|
|
17799
17820
|
var import_react85 = require("react");
|
|
17800
|
-
var
|
|
17821
|
+
var import_runtime63 = require("@homebound/truss/runtime");
|
|
17801
17822
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
17802
17823
|
function CompoundField({
|
|
17803
17824
|
children
|
|
@@ -17831,7 +17852,7 @@ function CompoundField({
|
|
|
17831
17852
|
setHasFocusWithin(false);
|
|
17832
17853
|
}
|
|
17833
17854
|
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "df", onFocusCapture, onBlurCapture, children: [
|
|
17834
|
-
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { ...(0,
|
|
17855
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17835
17856
|
...commonStyles,
|
|
17836
17857
|
...{
|
|
17837
17858
|
borderLeftStyle: "bls_solid",
|
|
@@ -17844,7 +17865,7 @@ function CompoundField({
|
|
|
17844
17865
|
}), children: (0, import_react85.cloneElement)(children[0], {
|
|
17845
17866
|
internalProps
|
|
17846
17867
|
}) }),
|
|
17847
|
-
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { ...(0,
|
|
17868
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17848
17869
|
...{
|
|
17849
17870
|
width: "w_1px",
|
|
17850
17871
|
flex: "fn",
|
|
@@ -17854,7 +17875,7 @@ function CompoundField({
|
|
|
17854
17875
|
backgroundColor: "bgBlue700"
|
|
17855
17876
|
}
|
|
17856
17877
|
}) }),
|
|
17857
|
-
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { ...(0,
|
|
17878
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { ...(0, import_runtime63.trussProps)({
|
|
17858
17879
|
...commonStyles,
|
|
17859
17880
|
...{
|
|
17860
17881
|
flexGrow: "fg1",
|
|
@@ -17898,7 +17919,7 @@ function BoundSelectAndTextField(props) {
|
|
|
17898
17919
|
}
|
|
17899
17920
|
|
|
17900
17921
|
// src/forms/FormHeading.tsx
|
|
17901
|
-
var
|
|
17922
|
+
var import_runtime64 = require("@homebound/truss/runtime");
|
|
17902
17923
|
var import_jsx_runtime116 = (
|
|
17903
17924
|
// Add space before the heading, but only if it's not first.
|
|
17904
17925
|
require("react/jsx-runtime")
|
|
@@ -17910,7 +17931,7 @@ function FormHeading(props) {
|
|
|
17910
17931
|
isFirst = false,
|
|
17911
17932
|
...others
|
|
17912
17933
|
} = props;
|
|
17913
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h3", { ...(0,
|
|
17934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h3", { ...(0, import_runtime64.trussProps)({
|
|
17914
17935
|
...{
|
|
17915
17936
|
fontWeight: "fw4",
|
|
17916
17937
|
fontSize: "fz_16px",
|
|
@@ -17926,7 +17947,7 @@ FormHeading.isFormHeading = true;
|
|
|
17926
17947
|
|
|
17927
17948
|
// src/forms/StaticField.tsx
|
|
17928
17949
|
var import_utils101 = require("@react-aria/utils");
|
|
17929
|
-
var
|
|
17950
|
+
var import_runtime65 = require("@homebound/truss/runtime");
|
|
17930
17951
|
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
17931
17952
|
function StaticField(props) {
|
|
17932
17953
|
const {
|
|
@@ -17940,7 +17961,7 @@ function StaticField(props) {
|
|
|
17940
17961
|
} = props;
|
|
17941
17962
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
17942
17963
|
const id = (0, import_utils101.useId)();
|
|
17943
|
-
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { ...(0,
|
|
17964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { ...(0, import_runtime65.trussProps)({
|
|
17944
17965
|
...labelStyle === "left" ? {
|
|
17945
17966
|
display: "df",
|
|
17946
17967
|
justifyContent: "jcsb",
|
|
@@ -17948,7 +17969,7 @@ function StaticField(props) {
|
|
|
17948
17969
|
} : {}
|
|
17949
17970
|
}), ...tid.container, children: [
|
|
17950
17971
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("label", { className: "db fw4 fz_14px lh_20px gray700 mb_4px", htmlFor: id, ...tid.label, children: label }),
|
|
17951
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { id, ...(0,
|
|
17972
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { id, ...(0, import_runtime65.trussProps)({
|
|
17952
17973
|
fontWeight: "fw4",
|
|
17953
17974
|
fontSize: "fz_14px",
|
|
17954
17975
|
lineHeight: "lh_20px",
|
|
@@ -17996,7 +18017,7 @@ var import_use_debounce6 = require("use-debounce");
|
|
|
17996
18017
|
// src/components/RightSidebar.tsx
|
|
17997
18018
|
var import_framer_motion2 = require("framer-motion");
|
|
17998
18019
|
var import_react86 = require("react");
|
|
17999
|
-
var
|
|
18020
|
+
var import_runtime66 = require("@homebound/truss/runtime");
|
|
18000
18021
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
18001
18022
|
var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
|
|
18002
18023
|
function RightSidebar({
|
|
@@ -18036,7 +18057,7 @@ function RightSidebar({
|
|
|
18036
18057
|
duration: 0.2
|
|
18037
18058
|
},
|
|
18038
18059
|
x: "100%"
|
|
18039
|
-
}, ...(0,
|
|
18060
|
+
}, ...(0, import_runtime66.trussProps)({
|
|
18040
18061
|
width: "w100",
|
|
18041
18062
|
minWidth: ["mw_var", {
|
|
18042
18063
|
"--minWidth": RIGHT_SIDEBAR_MIN_WIDTH
|
|
@@ -18050,7 +18071,7 @@ function RightSidebar({
|
|
|
18050
18071
|
paddingRight: "pr3"
|
|
18051
18072
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
|
|
18052
18073
|
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "sticky top0 bgWhite", children: [
|
|
18053
|
-
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { ...(0,
|
|
18074
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { ...(0, import_runtime66.trussProps)({
|
|
18054
18075
|
position: "absolute",
|
|
18055
18076
|
left: ["left_var", {
|
|
18056
18077
|
"--left": `${-24}px`
|
|
@@ -18121,7 +18142,7 @@ function Toast() {
|
|
|
18121
18142
|
// src/components/Layout/PageHeaderBreadcrumbs.tsx
|
|
18122
18143
|
var import_react88 = require("react");
|
|
18123
18144
|
var import_react_router_dom4 = require("react-router-dom");
|
|
18124
|
-
var
|
|
18145
|
+
var import_runtime67 = require("@homebound/truss/runtime");
|
|
18125
18146
|
var import_jsx_runtime122 = (
|
|
18126
18147
|
// Adding index to key to prevent rendering issues when multiple items have the same label
|
|
18127
18148
|
require("react/jsx-runtime")
|
|
@@ -18135,7 +18156,7 @@ function PageHeaderBreadcrumbs({
|
|
|
18135
18156
|
function renderBreadcrumb(bc, index, hideDivisor) {
|
|
18136
18157
|
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_react88.Fragment, { children: [
|
|
18137
18158
|
index > 0 && !hideDivisor && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "fw6 fz_14px lh_20px gray700 ml1 mr1 mt_2px mb_2px", children: "/" }),
|
|
18138
|
-
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react_router_dom4.Link, { to: bc.href, ...(0,
|
|
18159
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react_router_dom4.Link, { to: bc.href, ...(0, import_runtime67.mergeProps)("navLink", void 0, {
|
|
18139
18160
|
fontWeight: "fw6",
|
|
18140
18161
|
fontSize: "fz_14px",
|
|
18141
18162
|
lineHeight: "lh_20px",
|
|
@@ -18153,7 +18174,7 @@ function PageHeaderBreadcrumbs({
|
|
|
18153
18174
|
}
|
|
18154
18175
|
|
|
18155
18176
|
// src/components/Layout/FormPageLayout.tsx
|
|
18156
|
-
var
|
|
18177
|
+
var import_runtime68 = require("@homebound/truss/runtime");
|
|
18157
18178
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
18158
18179
|
var headerHeightPx = 120;
|
|
18159
18180
|
var maxContentWidthPx = 1600;
|
|
@@ -18176,7 +18197,7 @@ function FormPageLayoutComponent(props) {
|
|
|
18176
18197
|
// since this layout will be replacing most superdrawers/sidebars, we keep the listing mounted below to preserve the users's
|
|
18177
18198
|
// scroll position & filters
|
|
18178
18199
|
// Adding "align-items: start" allows "position: sticky" to work within a grid for the sidebars
|
|
18179
|
-
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "fixed top0 bottom0 left0 right0 z_1000 oya bgWhite df jcc aifs", ...tids, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { ...(0,
|
|
18200
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "fixed top0 bottom0 left0 right0 z_1000 oya bgWhite df jcc aifs", ...tids, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { ...(0, import_runtime68.trussProps)({
|
|
18180
18201
|
width: "w100",
|
|
18181
18202
|
maxWidth: ["maxw_var", {
|
|
18182
18203
|
"--maxWidth": `${maxContentWidthPx}px`
|
|
@@ -18192,7 +18213,7 @@ function FormPageLayoutComponent(props) {
|
|
|
18192
18213
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(PageHeader, { ...props, ...tids.pageHeader }),
|
|
18193
18214
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(LeftNav, { sectionsWithRefs, ...tids }),
|
|
18194
18215
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(FormSections, { sectionsWithRefs, formState, ...tids }),
|
|
18195
|
-
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("aside", { ...(0,
|
|
18216
|
+
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("aside", { ...(0, import_runtime68.trussProps)({
|
|
18196
18217
|
gridRow: "gr_2",
|
|
18197
18218
|
gridColumn: "gc_3_4",
|
|
18198
18219
|
position: "sticky",
|
|
@@ -18217,7 +18238,7 @@ function PageHeader(props) {
|
|
|
18217
18238
|
notice
|
|
18218
18239
|
} = useToastContext();
|
|
18219
18240
|
const tids = useTestIds(props);
|
|
18220
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("header", { ...(0,
|
|
18241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("header", { ...(0, import_runtime68.trussProps)({
|
|
18221
18242
|
gridRow: "gr_1",
|
|
18222
18243
|
gridColumn: "gc_1_4",
|
|
18223
18244
|
position: "sticky",
|
|
@@ -18251,7 +18272,7 @@ function FormSections(props) {
|
|
|
18251
18272
|
} = props;
|
|
18252
18273
|
const tids = useTestIds(props);
|
|
18253
18274
|
const bottomPaddingPx = sectionsWithRefs.length > 1 ? 200 : 0;
|
|
18254
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("article", { ...(0,
|
|
18275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("article", { ...(0, import_runtime68.trussProps)({
|
|
18255
18276
|
gridRow: "gr_2",
|
|
18256
18277
|
gridColumn: "gc_2_3",
|
|
18257
18278
|
paddingBottom: ["pb_var", {
|
|
@@ -18269,7 +18290,7 @@ function FormSections(props) {
|
|
|
18269
18290
|
{
|
|
18270
18291
|
id: sectionKey,
|
|
18271
18292
|
ref,
|
|
18272
|
-
...(0,
|
|
18293
|
+
...(0, import_runtime68.trussProps)({
|
|
18273
18294
|
display: "dg",
|
|
18274
18295
|
gridTemplateColumns: "gtc_50px_1fr",
|
|
18275
18296
|
gridTemplateRows: "gtr_auto",
|
|
@@ -18300,7 +18321,7 @@ function LeftNav(props) {
|
|
|
18300
18321
|
section
|
|
18301
18322
|
}) => !!section.title), [sectionsWithRefs]);
|
|
18302
18323
|
const activeSection = useActiveSection(sectionWithTitles);
|
|
18303
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("aside", { ...(0,
|
|
18324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("aside", { ...(0, import_runtime68.trussProps)({
|
|
18304
18325
|
gridRow: "gr_2",
|
|
18305
18326
|
gridColumn: "gc_1_2",
|
|
18306
18327
|
position: "sticky",
|
|
@@ -18369,7 +18390,7 @@ function SectionNavLink(props) {
|
|
|
18369
18390
|
hoverProps,
|
|
18370
18391
|
isHovered
|
|
18371
18392
|
} = useHover2({});
|
|
18372
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
18393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime68.trussProps)({
|
|
18373
18394
|
...{
|
|
18374
18395
|
fontWeight: "fw6",
|
|
18375
18396
|
fontSize: "fz_14px",
|
|
@@ -18444,7 +18465,7 @@ function useActiveSection(sectionsWithRefs) {
|
|
|
18444
18465
|
}
|
|
18445
18466
|
|
|
18446
18467
|
// src/components/Layout/FullBleed.tsx
|
|
18447
|
-
var
|
|
18468
|
+
var import_runtime69 = require("@homebound/truss/runtime");
|
|
18448
18469
|
var import_react90 = require("react");
|
|
18449
18470
|
var __maybeInc9 = (inc) => {
|
|
18450
18471
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -18470,7 +18491,7 @@ function FullBleed({
|
|
|
18470
18491
|
// ...for some reason this keeps the Layout top padding better than using
|
|
18471
18492
|
// react-aria's more generic mergeProps.
|
|
18472
18493
|
{
|
|
18473
|
-
...(0,
|
|
18494
|
+
...(0, import_runtime69.mergeProps)(
|
|
18474
18495
|
className,
|
|
18475
18496
|
style,
|
|
18476
18497
|
// ScrollableParent applies horizontal padding to its content column, so FullBleed
|
|
@@ -18556,7 +18577,7 @@ function isSelectionButtonMenuProps(props) {
|
|
|
18556
18577
|
var import_react95 = require("react");
|
|
18557
18578
|
|
|
18558
18579
|
// src/components/CountBadge.tsx
|
|
18559
|
-
var
|
|
18580
|
+
var import_runtime70 = require("@homebound/truss/runtime");
|
|
18560
18581
|
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
18561
18582
|
function CountBadge(props) {
|
|
18562
18583
|
const {
|
|
@@ -18568,7 +18589,7 @@ function CountBadge(props) {
|
|
|
18568
18589
|
} = props;
|
|
18569
18590
|
const tid = useTestIds(otherProps, "countBadge");
|
|
18570
18591
|
if (hideIfZero && count === 0) return null;
|
|
18571
|
-
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { ...tid, ...(0,
|
|
18592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { ...tid, ...(0, import_runtime70.trussProps)({
|
|
18572
18593
|
...{
|
|
18573
18594
|
height: ["sq_var", {
|
|
18574
18595
|
"--height": `${count > 100 ? 18 : 16}px`
|
|
@@ -18969,7 +18990,7 @@ function OpenModal(props) {
|
|
|
18969
18990
|
}
|
|
18970
18991
|
|
|
18971
18992
|
// src/components/Filters/FilterModal.tsx
|
|
18972
|
-
var
|
|
18993
|
+
var import_runtime71 = require("@homebound/truss/runtime");
|
|
18973
18994
|
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
18974
18995
|
function FilterModal(props) {
|
|
18975
18996
|
const {
|
|
@@ -19006,7 +19027,7 @@ function ModalFilterItem({
|
|
|
19006
19027
|
label,
|
|
19007
19028
|
children
|
|
19008
19029
|
}) {
|
|
19009
|
-
return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { ...(0,
|
|
19030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { ...(0, import_runtime71.trussProps)({
|
|
19010
19031
|
marginBottom: "mb4",
|
|
19011
19032
|
...!label ? {
|
|
19012
19033
|
borderTopStyle: "bts_solid",
|
|
@@ -19015,7 +19036,7 @@ function ModalFilterItem({
|
|
|
19015
19036
|
} : {}
|
|
19016
19037
|
}), children: [
|
|
19017
19038
|
label && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("h2", { className: "fw4 fz_16px lh_24px mb2", children: label }),
|
|
19018
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { ...(0,
|
|
19039
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { ...(0, import_runtime71.trussProps)({
|
|
19019
19040
|
...!label ? {
|
|
19020
19041
|
paddingTop: "pt3"
|
|
19021
19042
|
} : {}
|
|
@@ -19025,7 +19046,7 @@ function ModalFilterItem({
|
|
|
19025
19046
|
|
|
19026
19047
|
// src/components/Filters/Filters.tsx
|
|
19027
19048
|
var import_react94 = require("react");
|
|
19028
|
-
var
|
|
19049
|
+
var import_runtime72 = require("@homebound/truss/runtime");
|
|
19029
19050
|
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
19030
19051
|
function Filters(props) {
|
|
19031
19052
|
const {
|
|
@@ -19049,7 +19070,7 @@ function Filters(props) {
|
|
|
19049
19070
|
}, [numberOfInlineFilters, vertical, filterDefs]);
|
|
19050
19071
|
const numModalFilters = safeKeys(modalFilters).filter((fk) => filter[fk] !== void 0).length;
|
|
19051
19072
|
const maybeGroupByField = groupBy ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime136.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;
|
|
19052
|
-
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { ...(0,
|
|
19073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { ...(0, import_runtime72.trussProps)({
|
|
19053
19074
|
...vertical ? {
|
|
19054
19075
|
display: "df",
|
|
19055
19076
|
flexDirection: "fdc",
|
|
@@ -19300,7 +19321,7 @@ function EditColumnsButton(props) {
|
|
|
19300
19321
|
}
|
|
19301
19322
|
|
|
19302
19323
|
// src/components/Table/TableActions.tsx
|
|
19303
|
-
var
|
|
19324
|
+
var import_runtime73 = require("@homebound/truss/runtime");
|
|
19304
19325
|
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
19305
19326
|
function TableActions(props) {
|
|
19306
19327
|
const {
|
|
@@ -19308,7 +19329,7 @@ function TableActions(props) {
|
|
|
19308
19329
|
children,
|
|
19309
19330
|
right
|
|
19310
19331
|
} = props;
|
|
19311
|
-
return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", { ...(0,
|
|
19332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", { ...(0, import_runtime73.trussProps)({
|
|
19312
19333
|
...{
|
|
19313
19334
|
display: "df",
|
|
19314
19335
|
gap: "gap1",
|
|
@@ -19330,7 +19351,7 @@ var import_use_query_params3 = require("use-query-params");
|
|
|
19330
19351
|
// src/components/Layout/ScrollableContent.tsx
|
|
19331
19352
|
var import_react97 = require("react");
|
|
19332
19353
|
var import_react_dom4 = require("react-dom");
|
|
19333
|
-
var
|
|
19354
|
+
var import_runtime74 = require("@homebound/truss/runtime");
|
|
19334
19355
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
19335
19356
|
var __maybeInc10 = (inc) => {
|
|
19336
19357
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -19356,7 +19377,7 @@ function ScrollableContent(props) {
|
|
|
19356
19377
|
return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_jsx_runtime142.Fragment, { children });
|
|
19357
19378
|
}
|
|
19358
19379
|
const showBottomSpacer = !omitBottomPadding && !virtualized;
|
|
19359
|
-
return (0, import_react_dom4.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { ...(0,
|
|
19380
|
+
return (0, import_react_dom4.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { ...(0, import_runtime74.trussProps)({
|
|
19360
19381
|
...{
|
|
19361
19382
|
height: "h100",
|
|
19362
19383
|
paddingRight: ["pr_var", {
|
|
@@ -19384,7 +19405,7 @@ function ScrollableContent(props) {
|
|
|
19384
19405
|
var import_react98 = require("react");
|
|
19385
19406
|
|
|
19386
19407
|
// src/components/LoadingSkeleton.tsx
|
|
19387
|
-
var
|
|
19408
|
+
var import_runtime75 = require("@homebound/truss/runtime");
|
|
19388
19409
|
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
19389
19410
|
function LoadingSkeleton({
|
|
19390
19411
|
rows = 1,
|
|
@@ -19398,7 +19419,7 @@ function LoadingSkeleton({
|
|
|
19398
19419
|
const rowHeight = sizeToPixels2[size];
|
|
19399
19420
|
const rowCells = (rowNumber) => {
|
|
19400
19421
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
19401
|
-
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0,
|
|
19422
|
+
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0, import_runtime75.trussProps)({
|
|
19402
19423
|
borderRadius: "br4",
|
|
19403
19424
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
19404
19425
|
flexGrow: ["flexGrow_var", {
|
|
@@ -19410,7 +19431,7 @@ function LoadingSkeleton({
|
|
|
19410
19431
|
} : {}
|
|
19411
19432
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
19412
19433
|
};
|
|
19413
|
-
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0,
|
|
19434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0, import_runtime75.trussProps)({
|
|
19414
19435
|
display: "df",
|
|
19415
19436
|
gap: "gap1",
|
|
19416
19437
|
marginBottom: "mb1",
|
|
@@ -19451,7 +19472,7 @@ function LoadingTable(props) {
|
|
|
19451
19472
|
}
|
|
19452
19473
|
|
|
19453
19474
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
19454
|
-
var
|
|
19475
|
+
var import_runtime76 = require("@homebound/truss/runtime");
|
|
19455
19476
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
19456
19477
|
function isGridTableProps(props) {
|
|
19457
19478
|
return "rows" in props;
|
|
@@ -19585,7 +19606,7 @@ function Header2(props) {
|
|
|
19585
19606
|
actionMenu
|
|
19586
19607
|
} = props;
|
|
19587
19608
|
const tids = useTestIds(props);
|
|
19588
|
-
return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("header", { ...(0,
|
|
19609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("header", { ...(0, import_runtime76.trussProps)({
|
|
19589
19610
|
...{
|
|
19590
19611
|
paddingTop: "pt3",
|
|
19591
19612
|
paddingBottom: "pb3",
|
|
@@ -19683,7 +19704,7 @@ function useRightPaneContext() {
|
|
|
19683
19704
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
19684
19705
|
var import_framer_motion3 = require("framer-motion");
|
|
19685
19706
|
var import_react101 = require("react");
|
|
19686
|
-
var
|
|
19707
|
+
var import_runtime77 = require("@homebound/truss/runtime");
|
|
19687
19708
|
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
19688
19709
|
var __maybeInc11 = (inc) => {
|
|
19689
19710
|
return typeof inc === "string" ? inc : `${inc * 8}px`;
|
|
@@ -19703,7 +19724,7 @@ function RightPaneLayout(props) {
|
|
|
19703
19724
|
} = useRightPaneContext();
|
|
19704
19725
|
(0, import_react101.useEffect)(() => closePane, [closePane]);
|
|
19705
19726
|
return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "h100 df oxh", children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, { children: [
|
|
19706
|
-
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0,
|
|
19727
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0, import_runtime77.trussProps)({
|
|
19707
19728
|
...{
|
|
19708
19729
|
width: ["w_var", {
|
|
19709
19730
|
"--width": __maybeInc11(`calc(100% - ${paneWidth + 24}px)`)
|
|
@@ -19728,7 +19749,7 @@ function RightPaneLayout(props) {
|
|
|
19728
19749
|
} : {}
|
|
19729
19750
|
}
|
|
19730
19751
|
}), children }),
|
|
19731
|
-
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { ...(0,
|
|
19752
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { ...(0, import_runtime77.trussProps)({
|
|
19732
19753
|
position: "relative",
|
|
19733
19754
|
...!!defaultPaneContent ? {
|
|
19734
19755
|
width: ["w_var", {
|
|
@@ -19736,7 +19757,7 @@ function RightPaneLayout(props) {
|
|
|
19736
19757
|
}]
|
|
19737
19758
|
} : {}
|
|
19738
19759
|
}), children: [
|
|
19739
|
-
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0,
|
|
19760
|
+
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ...(0, import_runtime77.trussProps)({
|
|
19740
19761
|
height: "h100",
|
|
19741
19762
|
width: ["w_var", {
|
|
19742
19763
|
"--width": `${paneWidth}px`
|
|
@@ -19754,7 +19775,7 @@ function RightPaneLayout(props) {
|
|
|
19754
19775
|
{
|
|
19755
19776
|
layout: "position",
|
|
19756
19777
|
"data-testid": "rightPaneContent",
|
|
19757
|
-
...(0,
|
|
19778
|
+
...(0, import_runtime77.trussProps)({
|
|
19758
19779
|
backgroundColor: ["bgColor_var", {
|
|
19759
19780
|
"--backgroundColor": paneBgColor
|
|
19760
19781
|
}],
|
|
@@ -19900,7 +19921,7 @@ function ButtonDatePicker(props) {
|
|
|
19900
19921
|
// src/components/ButtonGroup.tsx
|
|
19901
19922
|
var import_react104 = require("react");
|
|
19902
19923
|
var import_react_aria48 = require("react-aria");
|
|
19903
|
-
var
|
|
19924
|
+
var import_runtime78 = require("@homebound/truss/runtime");
|
|
19904
19925
|
var import_jsx_runtime151 = (
|
|
19905
19926
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
19906
19927
|
require("react/jsx-runtime")
|
|
@@ -19914,7 +19935,7 @@ function ButtonGroup(props) {
|
|
|
19914
19935
|
const tid = useTestIds(props, "buttonGroup");
|
|
19915
19936
|
return (
|
|
19916
19937
|
// Adding `line-height: 0` prevent inheriting line-heights that might throw off sizing within the button group.
|
|
19917
|
-
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...tid, ...(0,
|
|
19938
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...tid, ...(0, import_runtime78.trussProps)({
|
|
19918
19939
|
...{
|
|
19919
19940
|
display: "df",
|
|
19920
19941
|
lineHeight: "lh_0"
|
|
@@ -19960,10 +19981,10 @@ function GroupButton(props) {
|
|
|
19960
19981
|
isHovered
|
|
19961
19982
|
} = (0, import_react_aria48.useHover)(ariaProps);
|
|
19962
19983
|
const tid = useTestIds(props);
|
|
19963
|
-
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { ...(0,
|
|
19984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { ...(0, import_runtime78.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
19964
19985
|
title: resolveTooltip(disabled, tooltip),
|
|
19965
19986
|
placement: "top",
|
|
19966
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
19987
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime78.trussProps)({
|
|
19967
19988
|
...{
|
|
19968
19989
|
fontWeight: "fw6",
|
|
19969
19990
|
fontSize: "fz_14px",
|
|
@@ -20070,7 +20091,7 @@ var import_react_aria49 = require("react-aria");
|
|
|
20070
20091
|
// src/components/Tag.tsx
|
|
20071
20092
|
var import_utils118 = require("@react-aria/utils");
|
|
20072
20093
|
var import_react105 = require("react");
|
|
20073
|
-
var
|
|
20094
|
+
var import_runtime79 = require("@homebound/truss/runtime");
|
|
20074
20095
|
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
20075
20096
|
function Tag(props) {
|
|
20076
20097
|
const {
|
|
@@ -20094,7 +20115,7 @@ function Tag(props) {
|
|
|
20094
20115
|
});
|
|
20095
20116
|
return maybeTooltip({
|
|
20096
20117
|
title: !preventTooltip && showTooltip ? text : void 0,
|
|
20097
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { ...tid, ...(0,
|
|
20118
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { ...tid, ...(0, import_runtime79.trussProps)({
|
|
20098
20119
|
...{
|
|
20099
20120
|
display: "dif",
|
|
20100
20121
|
fontWeight: "fw6",
|
|
@@ -20144,7 +20165,7 @@ function getStyles(type) {
|
|
|
20144
20165
|
}
|
|
20145
20166
|
|
|
20146
20167
|
// src/components/Card.tsx
|
|
20147
|
-
var
|
|
20168
|
+
var import_runtime80 = require("@homebound/truss/runtime");
|
|
20148
20169
|
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
20149
20170
|
function Card(props) {
|
|
20150
20171
|
const {
|
|
@@ -20175,8 +20196,8 @@ function Card(props) {
|
|
|
20175
20196
|
...isHovered && cardHoverStyles,
|
|
20176
20197
|
...isDisabled && disabledStyles3
|
|
20177
20198
|
}), [isDisabled, isHovered, bordered, type, isList]);
|
|
20178
|
-
return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { ...(0,
|
|
20179
|
-
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { ...(0, import_runtime80.trussProps)(styles), ...hoverProps, ...tid, children: [
|
|
20200
|
+
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime80.trussProps)({
|
|
20180
20201
|
...{
|
|
20181
20202
|
height: ["h_var", {
|
|
20182
20203
|
"--height": `${imgHeight}px`
|
|
@@ -20193,14 +20214,14 @@ function Card(props) {
|
|
|
20193
20214
|
filter: "filter_brightness_1"
|
|
20194
20215
|
},
|
|
20195
20216
|
...isHovered && !isList && imageHoverStyles
|
|
20196
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("img", { ...(0,
|
|
20217
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("img", { ...(0, import_runtime80.trussProps)({
|
|
20197
20218
|
width: "w100",
|
|
20198
20219
|
height: "h100",
|
|
20199
20220
|
objectFit: ["objectFit_var", {
|
|
20200
20221
|
"--objectFit": imageFit
|
|
20201
20222
|
}]
|
|
20202
20223
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
20203
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20224
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime80.trussProps)({
|
|
20204
20225
|
position: "absolute",
|
|
20205
20226
|
right: "right1",
|
|
20206
20227
|
top: "top1",
|
|
@@ -20216,7 +20237,7 @@ function Card(props) {
|
|
|
20216
20237
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "df fdc aifs gap1", children: [
|
|
20217
20238
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { children: [
|
|
20218
20239
|
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "fw6 fz_12px lh_16px gray700", ...tid.subtitle, children: subtitle }),
|
|
20219
|
-
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0,
|
|
20240
|
+
/* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { ...(0, import_runtime80.trussProps)({
|
|
20220
20241
|
fontWeight: "fw6",
|
|
20221
20242
|
fontSize: "fz_14px",
|
|
20222
20243
|
lineHeight: "lh_20px",
|
|
@@ -20274,10 +20295,10 @@ var imageHoverStyles = {
|
|
|
20274
20295
|
};
|
|
20275
20296
|
|
|
20276
20297
|
// src/components/Copy.tsx
|
|
20277
|
-
var
|
|
20298
|
+
var import_runtime81 = require("@homebound/truss/runtime");
|
|
20278
20299
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
20279
20300
|
function Copy(props) {
|
|
20280
|
-
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0,
|
|
20301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0, import_runtime81.mergeProps)("beam-copy", void 0, {
|
|
20281
20302
|
...{
|
|
20282
20303
|
fontWeight: "fw4",
|
|
20283
20304
|
fontSize: "fz_14px",
|
|
@@ -20306,7 +20327,7 @@ function useDnDGridContext() {
|
|
|
20306
20327
|
}
|
|
20307
20328
|
|
|
20308
20329
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
20309
|
-
var
|
|
20330
|
+
var import_runtime82 = require("@homebound/truss/runtime");
|
|
20310
20331
|
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
20311
20332
|
function DnDGrid(props) {
|
|
20312
20333
|
const {
|
|
@@ -20487,7 +20508,7 @@ function DnDGrid(props) {
|
|
|
20487
20508
|
return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(DnDGridContext.Provider, { value: {
|
|
20488
20509
|
dragEl,
|
|
20489
20510
|
onDragHandleKeyDown
|
|
20490
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { ref: gridEl, ...(0,
|
|
20511
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { ref: gridEl, ...(0, import_runtime82.trussProps)({
|
|
20491
20512
|
...{
|
|
20492
20513
|
containerType: "ctis",
|
|
20493
20514
|
display: "dg"
|
|
@@ -20500,7 +20521,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
20500
20521
|
|
|
20501
20522
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
20502
20523
|
var import_react_aria50 = require("react-aria");
|
|
20503
|
-
var
|
|
20524
|
+
var import_runtime83 = require("@homebound/truss/runtime");
|
|
20504
20525
|
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
20505
20526
|
function DnDGridItemHandle(props) {
|
|
20506
20527
|
const {
|
|
@@ -20530,7 +20551,7 @@ function DnDGridItemHandle(props) {
|
|
|
20530
20551
|
borderRadius: "br4",
|
|
20531
20552
|
borderWidth: "bw1"
|
|
20532
20553
|
};
|
|
20533
|
-
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("button", { ...(0,
|
|
20554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("button", { ...(0, import_runtime83.trussProps)({
|
|
20534
20555
|
...compact ? iconButtonCompact2 : iconButtonNormal2,
|
|
20535
20556
|
...{
|
|
20536
20557
|
cursor: "cursor_grab",
|
|
@@ -20592,7 +20613,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
20592
20613
|
var ResponsiveGridContext = (0, import_react110.createContext)(void 0);
|
|
20593
20614
|
|
|
20594
20615
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
20595
|
-
var
|
|
20616
|
+
var import_runtime84 = require("@homebound/truss/runtime");
|
|
20596
20617
|
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
20597
20618
|
function ResponsiveGrid(props) {
|
|
20598
20619
|
const {
|
|
@@ -20613,12 +20634,12 @@ function ResponsiveGrid(props) {
|
|
|
20613
20634
|
gap,
|
|
20614
20635
|
columns
|
|
20615
20636
|
}), [minColumnWidth, gap, columns]);
|
|
20616
|
-
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...(0,
|
|
20637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...(0, import_runtime84.trussProps)(gridStyles), children }) });
|
|
20617
20638
|
}
|
|
20618
20639
|
|
|
20619
20640
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
20620
20641
|
var import_react_aria51 = require("react-aria");
|
|
20621
|
-
var
|
|
20642
|
+
var import_runtime85 = require("@homebound/truss/runtime");
|
|
20622
20643
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
20623
20644
|
function ResponsiveGridItem(props) {
|
|
20624
20645
|
const {
|
|
@@ -20631,7 +20652,7 @@ function ResponsiveGridItem(props) {
|
|
|
20631
20652
|
} = useResponsiveGridItem({
|
|
20632
20653
|
colSpan
|
|
20633
20654
|
});
|
|
20634
|
-
return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0,
|
|
20655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0, import_runtime85.trussProps)(gridItemStyles)), children });
|
|
20635
20656
|
}
|
|
20636
20657
|
|
|
20637
20658
|
// src/components/Grid/useResponsiveGrid.ts
|
|
@@ -20783,7 +20804,7 @@ function HbSpinnerProvider({
|
|
|
20783
20804
|
// src/components/MaxLines.tsx
|
|
20784
20805
|
var import_utils126 = require("@react-aria/utils");
|
|
20785
20806
|
var import_react115 = require("react");
|
|
20786
|
-
var
|
|
20807
|
+
var import_runtime86 = require("@homebound/truss/runtime");
|
|
20787
20808
|
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
20788
20809
|
function MaxLines({
|
|
20789
20810
|
maxLines,
|
|
@@ -20808,7 +20829,7 @@ function MaxLines({
|
|
|
20808
20829
|
onResize
|
|
20809
20830
|
});
|
|
20810
20831
|
return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { children: [
|
|
20811
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0,
|
|
20832
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ref: elRef, ...(0, import_runtime86.trussProps)({
|
|
20812
20833
|
...!expanded ? {
|
|
20813
20834
|
WebkitLineClamp: ["lineClamp_var", {
|
|
20814
20835
|
"--WebkitLineClamp": maxLines
|
|
@@ -20826,7 +20847,7 @@ function MaxLines({
|
|
|
20826
20847
|
// src/components/ScrollShadows.tsx
|
|
20827
20848
|
var import_utils127 = require("@react-aria/utils");
|
|
20828
20849
|
var import_react116 = require("react");
|
|
20829
|
-
var
|
|
20850
|
+
var import_runtime87 = require("@homebound/truss/runtime");
|
|
20830
20851
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
20831
20852
|
function ScrollShadows(props) {
|
|
20832
20853
|
const {
|
|
@@ -20915,7 +20936,7 @@ function ScrollShadows(props) {
|
|
|
20915
20936
|
ref: scrollRef,
|
|
20916
20937
|
onResize
|
|
20917
20938
|
});
|
|
20918
|
-
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0,
|
|
20939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { ...(0, import_runtime87.trussProps)({
|
|
20919
20940
|
display: "df",
|
|
20920
20941
|
flexDirection: ["fd_var", {
|
|
20921
20942
|
"--flexDirection": !horizontal ? "column" : "row"
|
|
@@ -20931,7 +20952,7 @@ function ScrollShadows(props) {
|
|
|
20931
20952
|
width: width2
|
|
20932
20953
|
}
|
|
20933
20954
|
}), ...tid, children: [
|
|
20934
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
20955
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
20935
20956
|
...startShadowStyles,
|
|
20936
20957
|
...{
|
|
20937
20958
|
opacity: ["o_var", {
|
|
@@ -20939,7 +20960,7 @@ function ScrollShadows(props) {
|
|
|
20939
20960
|
}]
|
|
20940
20961
|
}
|
|
20941
20962
|
}), "data-chromatic": "ignore" }),
|
|
20942
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
20963
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
20943
20964
|
...endShadowStyles,
|
|
20944
20965
|
...{
|
|
20945
20966
|
opacity: ["o_var", {
|
|
@@ -20947,7 +20968,7 @@ function ScrollShadows(props) {
|
|
|
20947
20968
|
}]
|
|
20948
20969
|
}
|
|
20949
20970
|
}), "data-chromatic": "ignore" }),
|
|
20950
|
-
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0,
|
|
20971
|
+
/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
20951
20972
|
...xss,
|
|
20952
20973
|
...{
|
|
20953
20974
|
overflow: "oa",
|
|
@@ -21020,7 +21041,7 @@ var snackbarId = 1;
|
|
|
21020
21041
|
// src/components/Stepper.tsx
|
|
21021
21042
|
var import_react118 = require("react");
|
|
21022
21043
|
var import_react_aria52 = require("react-aria");
|
|
21023
|
-
var
|
|
21044
|
+
var import_runtime88 = require("@homebound/truss/runtime");
|
|
21024
21045
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
21025
21046
|
var import_react119 = require("react");
|
|
21026
21047
|
var __maybeInc13 = (inc) => {
|
|
@@ -21041,7 +21062,7 @@ function Stepper(props) {
|
|
|
21041
21062
|
const minStepWidth = 100;
|
|
21042
21063
|
const gap = 8;
|
|
21043
21064
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
21044
|
-
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("ol", { ...(0,
|
|
21065
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("ol", { ...(0, import_runtime88.trussProps)({
|
|
21045
21066
|
padding: "p_0",
|
|
21046
21067
|
margin: "m_0",
|
|
21047
21068
|
listStyle: "lis_none",
|
|
@@ -21051,7 +21072,7 @@ function Stepper(props) {
|
|
|
21051
21072
|
}]
|
|
21052
21073
|
}), children: steps.map((step) => {
|
|
21053
21074
|
const isCurrent = currentStep === step.value;
|
|
21054
|
-
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0,
|
|
21075
|
+
return /* @__PURE__ */ (0, import_react119.createElement)("li", { ...(0, import_runtime88.trussProps)({
|
|
21055
21076
|
display: "df",
|
|
21056
21077
|
flexGrow: "fg1",
|
|
21057
21078
|
flexDirection: "fdc",
|
|
@@ -21063,7 +21084,7 @@ function Stepper(props) {
|
|
|
21063
21084
|
}]
|
|
21064
21085
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
21065
21086
|
}) }),
|
|
21066
|
-
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21087
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime88.trussProps)({
|
|
21067
21088
|
marginTop: "mt1",
|
|
21068
21089
|
backgroundColor: "bgGray300",
|
|
21069
21090
|
height: "h_4px",
|
|
@@ -21074,7 +21095,7 @@ function Stepper(props) {
|
|
|
21074
21095
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
21075
21096
|
}],
|
|
21076
21097
|
width: "w100"
|
|
21077
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0,
|
|
21098
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { ...(0, import_runtime88.trussProps)({
|
|
21078
21099
|
backgroundColor: "bgBlue600",
|
|
21079
21100
|
transition: "transition_width_200ms",
|
|
21080
21101
|
height: "h100",
|
|
@@ -21115,7 +21136,7 @@ function StepButton(props) {
|
|
|
21115
21136
|
boxShadow: "bshFocus"
|
|
21116
21137
|
};
|
|
21117
21138
|
const tid = useTestIds(props, "stepButton");
|
|
21118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
21139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime88.trussProps)({
|
|
21119
21140
|
...{
|
|
21120
21141
|
fontWeight: "fw6",
|
|
21121
21142
|
fontSize: "fz_14px",
|
|
@@ -21183,7 +21204,7 @@ function StepIcon({
|
|
|
21183
21204
|
if (state === "complete") {
|
|
21184
21205
|
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Icon, { icon: "check" });
|
|
21185
21206
|
}
|
|
21186
|
-
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,
|
|
21207
|
+
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_runtime88.trussProps)({
|
|
21187
21208
|
width: "w_10px",
|
|
21188
21209
|
height: "h_10px",
|
|
21189
21210
|
borderStyle: "bss",
|
|
@@ -21198,7 +21219,7 @@ function StepIcon({
|
|
|
21198
21219
|
|
|
21199
21220
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
21200
21221
|
var import_react_dom5 = require("react-dom");
|
|
21201
|
-
var
|
|
21222
|
+
var import_runtime89 = require("@homebound/truss/runtime");
|
|
21202
21223
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
21203
21224
|
function SuperDrawerHeader(props) {
|
|
21204
21225
|
const {
|
|
@@ -21224,7 +21245,7 @@ function SuperDrawerHeader(props) {
|
|
|
21224
21245
|
] }),
|
|
21225
21246
|
props.right && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fs0", children: props.right })
|
|
21226
21247
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "fg1", children: props.children }),
|
|
21227
|
-
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0,
|
|
21248
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0, import_runtime89.trussProps)({
|
|
21228
21249
|
flexShrink: "fs0",
|
|
21229
21250
|
...isDetail ? {
|
|
21230
21251
|
visibility: "vh"
|
|
@@ -21404,7 +21425,7 @@ function canClose(canCloseCheck) {
|
|
|
21404
21425
|
}
|
|
21405
21426
|
|
|
21406
21427
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
21407
|
-
var
|
|
21428
|
+
var import_runtime90 = require("@homebound/truss/runtime");
|
|
21408
21429
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
21409
21430
|
var SuperDrawerContent = ({
|
|
21410
21431
|
children,
|
|
@@ -21453,7 +21474,7 @@ var SuperDrawerContent = ({
|
|
|
21453
21474
|
}, className: "pt2", children: children2 })
|
|
21454
21475
|
] }, "content");
|
|
21455
21476
|
} else {
|
|
21456
|
-
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0,
|
|
21477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_framer_motion4.motion.div, { ...(0, import_runtime90.mergeProps)(void 0, {
|
|
21457
21478
|
overflow: "auto"
|
|
21458
21479
|
}, {
|
|
21459
21480
|
paddingTop: "pt3",
|
|
@@ -21494,7 +21515,7 @@ var import_react121 = require("react");
|
|
|
21494
21515
|
var import_react_aria53 = require("react-aria");
|
|
21495
21516
|
var import_react_router2 = require("react-router");
|
|
21496
21517
|
var import_react_router_dom5 = require("react-router-dom");
|
|
21497
|
-
var
|
|
21518
|
+
var import_runtime91 = require("@homebound/truss/runtime");
|
|
21498
21519
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
21499
21520
|
function TabsWithContent(props) {
|
|
21500
21521
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -21527,7 +21548,7 @@ function TabContent(props) {
|
|
|
21527
21548
|
return (
|
|
21528
21549
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
21529
21550
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
21530
|
-
/* @__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,
|
|
21551
|
+
/* @__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_runtime91.trussProps)(contentXss), children: isRouteTab(selectedTab) ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router2.Route, { path: selectedTab.path, render: selectedTab.render }) : selectedTab.render() }) })
|
|
21531
21552
|
);
|
|
21532
21553
|
}
|
|
21533
21554
|
function Tabs(props) {
|
|
@@ -21566,7 +21587,7 @@ function Tabs(props) {
|
|
|
21566
21587
|
setActive(selected);
|
|
21567
21588
|
}
|
|
21568
21589
|
}
|
|
21569
|
-
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0,
|
|
21590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0, import_runtime91.trussProps)({
|
|
21570
21591
|
...{
|
|
21571
21592
|
display: "df",
|
|
21572
21593
|
alignItems: "aic",
|
|
@@ -21630,7 +21651,7 @@ function TabImpl(props) {
|
|
|
21630
21651
|
role: "tab",
|
|
21631
21652
|
tabIndex: active ? 0 : -1,
|
|
21632
21653
|
...others,
|
|
21633
|
-
...(0,
|
|
21654
|
+
...(0, import_runtime91.trussProps)({
|
|
21634
21655
|
...baseStyles5,
|
|
21635
21656
|
...active && activeStyles4,
|
|
21636
21657
|
...isDisabled && disabledStyles4,
|
|
@@ -21872,6 +21893,7 @@ function useToast() {
|
|
|
21872
21893
|
RightPaneProvider,
|
|
21873
21894
|
RightSidebar,
|
|
21874
21895
|
Row,
|
|
21896
|
+
RuntimeStyle,
|
|
21875
21897
|
ScrollShadows,
|
|
21876
21898
|
ScrollableContent,
|
|
21877
21899
|
ScrollableParent,
|