@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.
@@ -27592,46 +27592,47 @@ function XN(e) {
27592
27592
  function JB({
27593
27593
  granularity: e = "minute",
27594
27594
  paddingSize: t = I_.small,
27595
- ...r
27595
+ timeZone: r = "America/New_York",
27596
+ ...n
27596
27597
  }) {
27597
- const n = Ye(), o = /* @__PURE__ */ new Date(), a = Jl({}), i = V(null), { menuTriggerProps: l, menuProps: s } = Xl(
27598
+ const o = Ye(), a = /* @__PURE__ */ new Date(), i = Jl({}), l = V(null), { menuTriggerProps: s, menuProps: c } = Xl(
27598
27599
  {},
27599
- a,
27600
- i
27601
- ), c = R_({
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: r.defaultValue ?? new ra(
27606
- o.getFullYear(),
27607
- o.getMonth() + 1,
27608
- o.getDate(),
27609
- o.getHours(),
27610
- o.getMinutes(),
27611
- o.getSeconds()
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
- ...r,
27614
- locale: n.locale,
27614
+ ...n,
27615
+ locale: o.locale,
27615
27616
  createCalendar: ef
27616
- }), d = XN(c.segments), u = V(null), { labelProps: p, fieldProps: m } = k_(r, c, u), h = /* @__PURE__ */ ne(or, { children: [
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
- ...m,
27621
- ref: u,
27622
- id: m.id,
27621
+ ...h,
27622
+ ref: p,
27623
+ id: h.id,
27623
27624
  paddingSize: t,
27624
27625
  children: [
27625
- /* @__PURE__ */ x(Dt, { flex: "1", children: d == null ? void 0 : d.filter(
27626
- (b) => !(b.type === "literal" && b.text === " ")
27627
- ).map((b, v) => /* @__PURE__ */ x(O_, { segment: b, state: c }, v)) }),
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
- ...l,
27634
- onClick: () => a.toggle(),
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
- !!a.isOpen && /* @__PURE__ */ x(
27652
+ !!i.isOpen && /* @__PURE__ */ x(
27652
27653
  ts,
27653
27654
  {
27654
- state: a,
27655
- targetRef: u,
27655
+ state: i,
27656
+ targetRef: p,
27656
27657
  placement: "bottom start",
27657
- ...s,
27658
+ ...c,
27658
27659
  children: /* @__PURE__ */ x(
27659
27660
  oy,
27660
27661
  {
27661
- value: c.value,
27662
- focusedValue: c.value,
27663
- onChange: (b) => {
27664
- c.setValue(b);
27662
+ value: d.value,
27663
+ focusedValue: d.value,
27664
+ onChange: (v) => {
27665
+ d.setValue(v);
27665
27666
  },
27666
- timeZone: "America/New_York"
27667
+ timeZone: r
27667
27668
  }
27668
27669
  )
27669
27670
  }
27670
27671
  )
27671
27672
  ] });
27672
27673
  return /* @__PURE__ */ ne(M_, { children: [
27673
- /* @__PURE__ */ ne(qe, { ...p, mb: f.spacing_100, children: [
27674
- r.label,
27675
- r.tooltipContent ? /* @__PURE__ */ x(yr, { children: r.tooltipContent }) : null
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
- h
27678
+ b
27678
27679
  ] });
27679
27680
  }
27680
27681
  const JN = N(nn)`