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