@theroutingcompany/components 0.0.74-alpha.1 → 0.0.74-alpha.3
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 +39 -36
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +3 -3
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Input/DateInput/DateInput.d.ts +2 -1
|
@@ -23113,6 +23113,7 @@ function iO({ item: e, state: t }) {
|
|
|
23113
23113
|
ref: r,
|
|
23114
23114
|
isFocused: n.isFocused,
|
|
23115
23115
|
isSelected: n.isSelected,
|
|
23116
|
+
"aria-label": i,
|
|
23116
23117
|
children: [
|
|
23117
23118
|
/* @__PURE__ */ x(z_, { isDisabled: n.isDisabled, isSelected: n.isSelected, "aria-label": i }),
|
|
23118
23119
|
/* @__PURE__ */ x(gf, { children: /* @__PURE__ */ ne($f.Provider, { value: { labelProps: n.labelProps, descriptionProps: n.labelProps }, children: [
|
|
@@ -27592,46 +27593,47 @@ function XN(e) {
|
|
|
27592
27593
|
function JB({
|
|
27593
27594
|
granularity: e = "minute",
|
|
27594
27595
|
paddingSize: t = I_.small,
|
|
27595
|
-
|
|
27596
|
+
timeZone: r = "America/New_York",
|
|
27597
|
+
...n
|
|
27596
27598
|
}) {
|
|
27597
|
-
const
|
|
27599
|
+
const o = Ye(), a = /* @__PURE__ */ new Date(), i = Jl({}), l = V(null), { menuTriggerProps: s, menuProps: c } = Xl(
|
|
27598
27600
|
{},
|
|
27599
|
-
|
|
27600
|
-
|
|
27601
|
-
),
|
|
27601
|
+
i,
|
|
27602
|
+
l
|
|
27603
|
+
), d = R_({
|
|
27602
27604
|
hourCycle: 12,
|
|
27603
27605
|
// force all 12 hour for now
|
|
27604
27606
|
granularity: e,
|
|
27605
|
-
defaultValue:
|
|
27606
|
-
|
|
27607
|
-
|
|
27608
|
-
|
|
27609
|
-
|
|
27610
|
-
|
|
27611
|
-
|
|
27607
|
+
defaultValue: n.defaultValue ?? new ra(
|
|
27608
|
+
a.getFullYear(),
|
|
27609
|
+
a.getMonth() + 1,
|
|
27610
|
+
a.getDate(),
|
|
27611
|
+
a.getHours(),
|
|
27612
|
+
a.getMinutes(),
|
|
27613
|
+
a.getSeconds()
|
|
27612
27614
|
),
|
|
27613
|
-
...
|
|
27614
|
-
locale:
|
|
27615
|
+
...n,
|
|
27616
|
+
locale: o.locale,
|
|
27615
27617
|
createCalendar: ef
|
|
27616
|
-
}),
|
|
27618
|
+
}), u = XN(d.segments), p = V(null), { labelProps: m, fieldProps: h } = k_(n, d, p), b = /* @__PURE__ */ ne(or, { children: [
|
|
27617
27619
|
/* @__PURE__ */ ne(
|
|
27618
27620
|
ZN,
|
|
27619
27621
|
{
|
|
27620
|
-
...
|
|
27621
|
-
ref:
|
|
27622
|
-
id:
|
|
27622
|
+
...h,
|
|
27623
|
+
ref: p,
|
|
27624
|
+
id: h.id,
|
|
27623
27625
|
paddingSize: t,
|
|
27624
27626
|
children: [
|
|
27625
|
-
/* @__PURE__ */ x(Dt, { flex: "1", children:
|
|
27626
|
-
(
|
|
27627
|
-
).map((
|
|
27627
|
+
/* @__PURE__ */ x(Dt, { flex: "1", children: u == null ? void 0 : u.filter(
|
|
27628
|
+
(v) => !(v.type === "literal" && v.text === " ")
|
|
27629
|
+
).map((v, $) => /* @__PURE__ */ x(O_, { segment: v, state: d }, $)) }),
|
|
27628
27630
|
/* @__PURE__ */ x(
|
|
27629
27631
|
qN,
|
|
27630
27632
|
{
|
|
27631
27633
|
as: "button",
|
|
27632
27634
|
type: "button",
|
|
27633
|
-
...
|
|
27634
|
-
onClick: () =>
|
|
27635
|
+
...s,
|
|
27636
|
+
onClick: () => i.toggle(),
|
|
27635
27637
|
children: /* @__PURE__ */ x(
|
|
27636
27638
|
kS,
|
|
27637
27639
|
{
|
|
@@ -27648,33 +27650,33 @@ function JB({
|
|
|
27648
27650
|
]
|
|
27649
27651
|
}
|
|
27650
27652
|
),
|
|
27651
|
-
!!
|
|
27653
|
+
!!i.isOpen && /* @__PURE__ */ x(
|
|
27652
27654
|
ts,
|
|
27653
27655
|
{
|
|
27654
|
-
state:
|
|
27655
|
-
targetRef:
|
|
27656
|
+
state: i,
|
|
27657
|
+
targetRef: p,
|
|
27656
27658
|
placement: "bottom start",
|
|
27657
|
-
...
|
|
27659
|
+
...c,
|
|
27658
27660
|
children: /* @__PURE__ */ x(
|
|
27659
27661
|
oy,
|
|
27660
27662
|
{
|
|
27661
|
-
value:
|
|
27662
|
-
focusedValue:
|
|
27663
|
-
onChange: (
|
|
27664
|
-
|
|
27663
|
+
value: d.value,
|
|
27664
|
+
focusedValue: d.value,
|
|
27665
|
+
onChange: (v) => {
|
|
27666
|
+
d.setValue(v);
|
|
27665
27667
|
},
|
|
27666
|
-
timeZone:
|
|
27668
|
+
timeZone: r
|
|
27667
27669
|
}
|
|
27668
27670
|
)
|
|
27669
27671
|
}
|
|
27670
27672
|
)
|
|
27671
27673
|
] });
|
|
27672
27674
|
return /* @__PURE__ */ ne(M_, { children: [
|
|
27673
|
-
/* @__PURE__ */ ne(qe, { ...
|
|
27674
|
-
|
|
27675
|
-
|
|
27675
|
+
/* @__PURE__ */ ne(qe, { ...m, mb: f.spacing_100, children: [
|
|
27676
|
+
n.label,
|
|
27677
|
+
n.tooltipContent ? /* @__PURE__ */ x(yr, { children: n.tooltipContent }) : null
|
|
27676
27678
|
] }),
|
|
27677
|
-
|
|
27679
|
+
b
|
|
27678
27680
|
] });
|
|
27679
27681
|
}
|
|
27680
27682
|
const JN = N(nn)`
|
|
@@ -28003,6 +28005,7 @@ const nF = N.span`
|
|
|
28003
28005
|
isFocused: y,
|
|
28004
28006
|
tabIndex: y ? 0 : -1,
|
|
28005
28007
|
onClick: F,
|
|
28008
|
+
"aria-label": "Select All",
|
|
28006
28009
|
children: [
|
|
28007
28010
|
/* @__PURE__ */ x(
|
|
28008
28011
|
z_,
|