@theroutingcompany/components 0.0.85 → 0.0.86
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/trc-components.es.js +45 -34
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +90 -90
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Input/NumberInput/NumberInput.d.ts +3 -0
|
@@ -27161,6 +27161,7 @@ const G3 = W(
|
|
|
27161
27161
|
{
|
|
27162
27162
|
height: m,
|
|
27163
27163
|
...k,
|
|
27164
|
+
"data-value": w.numberValue,
|
|
27164
27165
|
paddingSize: i,
|
|
27165
27166
|
ref: _,
|
|
27166
27167
|
onClick: T,
|
|
@@ -27178,6 +27179,7 @@ const G3 = W(
|
|
|
27178
27179
|
height: m,
|
|
27179
27180
|
ref: _,
|
|
27180
27181
|
...k,
|
|
27182
|
+
"data-value": w.numberValue,
|
|
27181
27183
|
paddingSize: i,
|
|
27182
27184
|
required: a
|
|
27183
27185
|
}
|
|
@@ -27191,7 +27193,15 @@ const G3 = W(
|
|
|
27191
27193
|
}
|
|
27192
27194
|
);
|
|
27193
27195
|
G3.displayName = "NumberInput";
|
|
27194
|
-
const
|
|
27196
|
+
const jj = (e) => {
|
|
27197
|
+
var n;
|
|
27198
|
+
const t = Object.fromEntries(new FormData(e));
|
|
27199
|
+
for (let r = 0; r < e.elements.length; r++) {
|
|
27200
|
+
const o = e.elements[r];
|
|
27201
|
+
o.attributes["data-value"] && (t[o.name] = (n = o.attributes["data-value"]) == null ? void 0 : n.value);
|
|
27202
|
+
}
|
|
27203
|
+
return t;
|
|
27204
|
+
}, Y3 = W((e, t) => {
|
|
27195
27205
|
const {
|
|
27196
27206
|
errorMessage: n,
|
|
27197
27207
|
description: r,
|
|
@@ -27308,7 +27318,7 @@ Tf.displayName = "FormControlContext";
|
|
|
27308
27318
|
function kf() {
|
|
27309
27319
|
return je(Tf);
|
|
27310
27320
|
}
|
|
27311
|
-
function
|
|
27321
|
+
function Uj({
|
|
27312
27322
|
children: e,
|
|
27313
27323
|
label: t,
|
|
27314
27324
|
errorMessage: n,
|
|
@@ -27627,7 +27637,7 @@ function KM(e) {
|
|
|
27627
27637
|
o
|
|
27628
27638
|
), t;
|
|
27629
27639
|
}
|
|
27630
|
-
function
|
|
27640
|
+
function Wj({
|
|
27631
27641
|
granularity: e = "minute",
|
|
27632
27642
|
paddingSize: t = P1.small,
|
|
27633
27643
|
timeZone: n,
|
|
@@ -27734,7 +27744,7 @@ const VM = M(or)`
|
|
|
27734
27744
|
`, jM = ({ label: e, value: t, truncate: n = !1 }) => /* @__PURE__ */ oe(Pe, { role: "group", title: e, children: [
|
|
27735
27745
|
/* @__PURE__ */ D(qe, { htmlFor: `labeled-text-${e}`, color: f.color_gray_52, size: "medium", bold: !0, title: e, "aria-label": e, children: e }),
|
|
27736
27746
|
/* @__PURE__ */ D(VM, { id: `labeled-text-${e}`, title: typeof t == "string" ? t : e, "aria-label": typeof t == "string" ? t : e, truncate: n, children: t })
|
|
27737
|
-
] }),
|
|
27747
|
+
] }), Hj = jM;
|
|
27738
27748
|
function Z3(e) {
|
|
27739
27749
|
var t, n, r = "";
|
|
27740
27750
|
if (typeof e == "string" || typeof e == "number")
|
|
@@ -28234,12 +28244,12 @@ const n5 = M.div`
|
|
|
28234
28244
|
border-top: 1px solid hsl(0deg 0% 0% / 12%);
|
|
28235
28245
|
`;
|
|
28236
28246
|
yo.Separator = n5;
|
|
28237
|
-
const
|
|
28247
|
+
const Gj = Object.assign(yo, {
|
|
28238
28248
|
Trigger: Q3,
|
|
28239
28249
|
List: e5,
|
|
28240
28250
|
Item: t5,
|
|
28241
28251
|
Separator: n5
|
|
28242
|
-
}),
|
|
28252
|
+
}), Yj = () => /* @__PURE__ */ D("div", { id: Af }), qj = M.div`
|
|
28243
28253
|
display: grid;
|
|
28244
28254
|
grid-template-columns: repeat(12, minmax(var(--min-col-width, 0), 150px));
|
|
28245
28255
|
column-gap: ${f.sizing_600};
|
|
@@ -28256,7 +28266,7 @@ const Hj = Object.assign(yo, {
|
|
|
28256
28266
|
min-height: 100%;
|
|
28257
28267
|
margin: 0 auto;
|
|
28258
28268
|
padding: 0 ${f.sizing_100};
|
|
28259
|
-
`,
|
|
28269
|
+
`, Zj = M.div`
|
|
28260
28270
|
padding-top: ${f.sizing_600};
|
|
28261
28271
|
padding-bottom: ${f.sizing_800};
|
|
28262
28272
|
`, rN = M.header`
|
|
@@ -28275,10 +28285,10 @@ const Hj = Object.assign(yo, {
|
|
|
28275
28285
|
rgba(0, 0, 0, 0.07) 0px 0px 2px, rgba(0, 0, 0, 0.1) 0px 1px 1px,
|
|
28276
28286
|
rgba(0, 0, 0, 0.05) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
|
|
28277
28287
|
rgba(0, 0, 0, 0.08) 0px 1px 4px;
|
|
28278
|
-
`,
|
|
28288
|
+
`, Xj = ({
|
|
28279
28289
|
children: e,
|
|
28280
28290
|
className: t
|
|
28281
|
-
}) => /* @__PURE__ */ D(oN, { className: t, children: /* @__PURE__ */ D(nN, { children: /* @__PURE__ */ D(rN, { as: "div", children: e }) }) }),
|
|
28291
|
+
}) => /* @__PURE__ */ D(oN, { className: t, children: /* @__PURE__ */ D(nN, { children: /* @__PURE__ */ D(rN, { as: "div", children: e }) }) }), Jj = M(Pe)`
|
|
28282
28292
|
display: flex;
|
|
28283
28293
|
align-items: center;
|
|
28284
28294
|
|
|
@@ -28314,7 +28324,7 @@ const Hj = Object.assign(yo, {
|
|
|
28314
28324
|
border-radius: ${f.border_radius_800};
|
|
28315
28325
|
${({ size: e }) => sN(e)}
|
|
28316
28326
|
${({ variant: e }) => dN(e)}
|
|
28317
|
-
`,
|
|
28327
|
+
`, Qj = L.forwardRef(
|
|
28318
28328
|
function(t, n) {
|
|
28319
28329
|
const {
|
|
28320
28330
|
"data-id": r,
|
|
@@ -28418,7 +28428,7 @@ const yN = [
|
|
|
28418
28428
|
"ArrowDown",
|
|
28419
28429
|
"ArrowLeft",
|
|
28420
28430
|
"ArrowRight"
|
|
28421
|
-
], i5 = "RadioGroup", [_N,
|
|
28431
|
+
], i5 = "RadioGroup", [_N, eU] = He(i5, [
|
|
28422
28432
|
Vn,
|
|
28423
28433
|
o5
|
|
28424
28434
|
]), l5 = Vn(), s5 = o5(), [xN, DN] = _N(i5), wN = /* @__PURE__ */ W((e, t) => {
|
|
@@ -28577,7 +28587,7 @@ const yN = [
|
|
|
28577
28587
|
background-color: var(--inner-circle-color);
|
|
28578
28588
|
}
|
|
28579
28589
|
`;
|
|
28580
|
-
function
|
|
28590
|
+
function tU({
|
|
28581
28591
|
children: e,
|
|
28582
28592
|
disabled: t,
|
|
28583
28593
|
loop: n,
|
|
@@ -28597,7 +28607,7 @@ function eU({
|
|
|
28597
28607
|
}
|
|
28598
28608
|
);
|
|
28599
28609
|
}
|
|
28600
|
-
function
|
|
28610
|
+
function nU({
|
|
28601
28611
|
disabled: e,
|
|
28602
28612
|
...t
|
|
28603
28613
|
}) {
|
|
@@ -32257,7 +32267,7 @@ const PK = M.span`
|
|
|
32257
32267
|
display: inline-flex;
|
|
32258
32268
|
align-items: center;
|
|
32259
32269
|
`;
|
|
32260
|
-
function
|
|
32270
|
+
function rU(e) {
|
|
32261
32271
|
const t = SK(e), { placeholder: n = "Select...", hideLabel: r, showCaret: o = !0, isInvalid: a } = e, i = Q.useRef(null), { labelProps: l, triggerProps: s, valueProps: c, menuProps: u, errorMessageProps: d } = DK(e, t, i), { buttonProps: p } = go(s, i), { focusProps: m, isFocusVisible: h } = xa();
|
|
32262
32272
|
return /* @__PURE__ */ oe(Un, { children: [
|
|
32263
32273
|
e.label ? /* @__PURE__ */ oe(
|
|
@@ -32304,7 +32314,7 @@ function nU(e) {
|
|
|
32304
32314
|
t.isOpen ? /* @__PURE__ */ D(os, { state: t, targetRef: i, children: /* @__PURE__ */ D(Gx, { ...u, state: t }) }) : null
|
|
32305
32315
|
] });
|
|
32306
32316
|
}
|
|
32307
|
-
const E2 = "Switch", [kK,
|
|
32317
|
+
const E2 = "Switch", [kK, oU] = He(E2), [AK, RK] = kK(E2), IK = /* @__PURE__ */ W((e, t) => {
|
|
32308
32318
|
const { __scopeSwitch: n, name: r, checked: o, defaultChecked: a, required: i, disabled: l, value: s = "on", onCheckedChange: c, ...u } = e, [d, p] = Z(null), m = xe(
|
|
32309
32319
|
t,
|
|
32310
32320
|
(b) => p(b)
|
|
@@ -32457,7 +32467,7 @@ const BK = M(NK)`
|
|
|
32457
32467
|
return /* @__PURE__ */ D(BK, { ...r, ...o, ref: t, children: /* @__PURE__ */ D(KK, {}) });
|
|
32458
32468
|
});
|
|
32459
32469
|
VK.displayName = "Switch";
|
|
32460
|
-
const P2 = "Tabs", [jK,
|
|
32470
|
+
const P2 = "Tabs", [jK, aU] = He(P2, [
|
|
32461
32471
|
Vn
|
|
32462
32472
|
]), C2 = Vn(), [UK, Wf] = jK(P2), WK = /* @__PURE__ */ W((e, t) => {
|
|
32463
32473
|
const { __scopeTabs: n, value: r, onValueChange: o, defaultValue: a, orientation: i = "horizontal", dir: l, activationMode: s = "automatic", ...c } = e, u = mr(l), [d, p] = Ue({
|
|
@@ -32764,7 +32774,7 @@ Defaulting to \`${Gu}\`.`;
|
|
|
32764
32774
|
function K2(e) {
|
|
32765
32775
|
return rV.includes(e);
|
|
32766
32776
|
}
|
|
32767
|
-
const aV = B2, V2 = "ToastProvider", [Gf, iV, lV] = ga("Toast"), [j2,
|
|
32777
|
+
const aV = B2, V2 = "ToastProvider", [Gf, iV, lV] = ga("Toast"), [j2, iU] = He("Toast", [
|
|
32768
32778
|
lV
|
|
32769
32779
|
]), [sV, ds] = j2(V2), U2 = (e) => {
|
|
32770
32780
|
const { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: o = "right", swipeThreshold: a = 50, children: i } = e, [l, s] = Z(null), [c, u] = Z(0), d = z(!1), p = z(!1);
|
|
@@ -33294,7 +33304,7 @@ const PV = U2, CV = dV, TV = bV, kV = _V, AV = H2, RV = G2, Yf = 25, IV = We`
|
|
|
33294
33304
|
info: f.color_gray_opacity_94,
|
|
33295
33305
|
primary: f.color_white,
|
|
33296
33306
|
negative: f.color_white
|
|
33297
|
-
},
|
|
33307
|
+
}, lU = M(CV)`
|
|
33298
33308
|
position: fixed;
|
|
33299
33309
|
bottom: 0;
|
|
33300
33310
|
right: 0;
|
|
@@ -33347,7 +33357,7 @@ const PV = U2, CV = dV, TV = bV, kV = _V, AV = H2, RV = G2, Yf = 25, IV = We`
|
|
|
33347
33357
|
transform: translateX(var(--radix-toast-swipe-move-x));
|
|
33348
33358
|
}
|
|
33349
33359
|
`;
|
|
33350
|
-
function
|
|
33360
|
+
function sU({
|
|
33351
33361
|
children: e,
|
|
33352
33362
|
...t
|
|
33353
33363
|
}) {
|
|
@@ -33408,7 +33418,7 @@ export {
|
|
|
33408
33418
|
xf as ChevronDown,
|
|
33409
33419
|
Yx as ComboBox,
|
|
33410
33420
|
BM as DateField,
|
|
33411
|
-
|
|
33421
|
+
Wj as DateInput,
|
|
33412
33422
|
oj as Dialog,
|
|
33413
33423
|
ij as DialogClose,
|
|
33414
33424
|
rj as DialogCloseButton,
|
|
@@ -33441,39 +33451,39 @@ export {
|
|
|
33441
33451
|
gj as Fieldset,
|
|
33442
33452
|
xM as FileUpload,
|
|
33443
33453
|
Dt as Flex,
|
|
33444
|
-
|
|
33454
|
+
Uj as FormControl,
|
|
33445
33455
|
Hi as IconButton,
|
|
33446
33456
|
Gt as IconTooltip,
|
|
33447
33457
|
LM as InlineEdit,
|
|
33448
33458
|
t5 as Item,
|
|
33449
33459
|
qe as Label,
|
|
33450
|
-
|
|
33460
|
+
Hj as LabeledText,
|
|
33451
33461
|
JV as Modal,
|
|
33452
33462
|
qM as MultiSelect,
|
|
33453
33463
|
J3 as MultiSelectComponent,
|
|
33454
33464
|
Su as MultiSelectItem,
|
|
33455
33465
|
pI as MultiSelectSection,
|
|
33456
|
-
|
|
33457
|
-
|
|
33466
|
+
Gj as NavigationMenu,
|
|
33467
|
+
Yj as NavigationMenuPortal,
|
|
33458
33468
|
RM as NumberFormControl,
|
|
33459
33469
|
G3 as NumberInput,
|
|
33460
33470
|
nN as Page,
|
|
33461
|
-
|
|
33462
|
-
|
|
33471
|
+
Zj as PageContent,
|
|
33472
|
+
qj as PageGrid,
|
|
33463
33473
|
rN as PageHeader,
|
|
33464
|
-
|
|
33474
|
+
Jj as PageHeaderContent,
|
|
33465
33475
|
$j as Pagination,
|
|
33466
33476
|
Gi as PaginatorButton,
|
|
33467
33477
|
bu as PaginatorNumber,
|
|
33468
|
-
|
|
33478
|
+
Qj as Panel,
|
|
33469
33479
|
w2 as Placeholder,
|
|
33470
33480
|
Kj as Popover,
|
|
33471
33481
|
_h as PopoverClose,
|
|
33472
33482
|
Bj as PopoverCloseCross,
|
|
33473
33483
|
pM as PopoverContent,
|
|
33474
33484
|
Vj as PopoverTrigger,
|
|
33475
|
-
|
|
33476
|
-
|
|
33485
|
+
nU as Radio,
|
|
33486
|
+
tU as RadioGroup,
|
|
33477
33487
|
RN as RadioGroupIndicator,
|
|
33478
33488
|
AN as RadioGroupRadio,
|
|
33479
33489
|
vj as RangeCalendar,
|
|
@@ -33482,11 +33492,11 @@ export {
|
|
|
33482
33492
|
_6 as SectionItem,
|
|
33483
33493
|
$6 as SectionTitle,
|
|
33484
33494
|
n5 as Separator,
|
|
33485
|
-
|
|
33495
|
+
rU as SingleSelect,
|
|
33486
33496
|
Su as SingleSelectItem,
|
|
33487
33497
|
pI as SingleSelectSection,
|
|
33488
33498
|
Md as Stack,
|
|
33489
|
-
|
|
33499
|
+
Xj as StickyPageHeader,
|
|
33490
33500
|
Zp as StyledButtonBox,
|
|
33491
33501
|
JT as StyledButtonGroup,
|
|
33492
33502
|
gT as StyledFieldSet,
|
|
@@ -33507,9 +33517,9 @@ export {
|
|
|
33507
33517
|
oo as Title,
|
|
33508
33518
|
br as TitleBase,
|
|
33509
33519
|
X2 as Toast,
|
|
33510
|
-
|
|
33520
|
+
sU as ToastProvider,
|
|
33511
33521
|
LV as ToastSeparator,
|
|
33512
|
-
|
|
33522
|
+
lU as ToastViewport,
|
|
33513
33523
|
MR as Tooltip,
|
|
33514
33524
|
NR as TooltipContent,
|
|
33515
33525
|
FR as TooltipProvider,
|
|
@@ -33525,6 +33535,7 @@ export {
|
|
|
33525
33535
|
Hb as dialogTitleStyles,
|
|
33526
33536
|
Cd as dialogWidths,
|
|
33527
33537
|
Sg as getTruncate,
|
|
33538
|
+
jj as handleFormWithNumbers,
|
|
33528
33539
|
Ub as overlayStyles,
|
|
33529
33540
|
tN as pageMinMaxWidth,
|
|
33530
33541
|
xj as useDrawer,
|