@gentiq/ui 1.0.0-alpha.11 → 1.0.0-alpha.12

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.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { A as s, b as t, c as o, d as r, e as n, C as i, g as u, h as p, i as d, j as S, k as g, l as c, m as h, D as b, F as l, n as m, G as P, o as C, p as T, q as M, M as A, r as I, s as R, t as B, u as q, v as w, P as Q, a as U, w as f, x as v, y as x, Q as G, z as D, R as F, B as L, E as W, H as k, I as y, S as E, J as H, K as O, L as V, N as j, O as z, T as J, U as K, V as N, W as X, X as Y, Y as Z, Z as _, _ as $, $ as aa, a0 as ea, a1 as sa, a2 as ta, a3 as oa, a4 as ra, a5 as na, a6 as ia, a7 as ua, a8 as pa, a9 as da, aa as Sa, ab as ga, ac as ca, ad as ha, ae as ba, af as la } from "./shared-B11Re3ZY.js";
3
- import { T as Pa, j as Ca, i as Ta } from "./shared-Cqv1mrcZ.js";
2
+ import { A as s, b as t, c as o, d as r, e as n, g as i, h as u, i as p, j as d, k as g, l as S, m as c, n as h, D as b, F as l, o as m, G as P, p as T, q as C, r as M, M as A, s as I, t as R, v as B, w as q, x as w, P as Q, a as U, y as f, z as v, B as x, Q as G, E as D, R as F, H as L, I as W, J as k, K as y, S as E, L as H, N as O, O as V, T as j, U as z, V as J, W as K, X as N, Y as X, Z as Y, _ as Z, $ as _, a0 as $, a1 as aa, a2 as ea, a3 as sa, a4 as ta, a5 as oa, a6 as ra, a7 as na, a8 as ia, a9 as ua, aa as pa, ab as da, ac as ga, u as Sa, ad as ca, ae as ha, af as ba, ag as la } from "./shared-HOMT87-R.js";
3
+ import { T as Pa, j as Ta, i as Ca } from "./shared-C6NokIol.js";
4
4
  export {
5
5
  s as ActiveThreadMenu,
6
6
  t as AppBrand,
@@ -11,16 +11,16 @@ export {
11
11
  u as ChatBackground,
12
12
  p as ChatError,
13
13
  d as ChatLayout,
14
- S as ChoiceQuestionDock,
15
- g as ChoiceQuestionPart,
14
+ g as ChoiceQuestionDock,
15
+ S as ChoiceQuestionPart,
16
16
  c as ChoiceQuestionProvider,
17
17
  h as CreditsBar,
18
18
  b as DocumentSync,
19
19
  l as FilePart,
20
20
  m as FollowUpSuggestions,
21
21
  P as GentiqChatApp,
22
- C as GentiqProvider,
23
- T as GentiqRoot,
22
+ T as GentiqProvider,
23
+ C as GentiqRoot,
24
24
  M as GentiqUI,
25
25
  A as MaintenanceBanner,
26
26
  I as MaintenanceScreen,
@@ -59,8 +59,8 @@ export {
59
59
  sa as ThreadRowMenu,
60
60
  ta as ToolPart,
61
61
  Pa as Tooltip,
62
- Ca as TooltipContent,
63
- Ta as TooltipTrigger,
62
+ Ta as TooltipContent,
63
+ Ca as TooltipTrigger,
64
64
  oa as UsageMeter,
65
65
  ra as UserLoginPage,
66
66
  na as UserMessage,
@@ -68,8 +68,8 @@ export {
68
68
  ua as useChoiceQuestion,
69
69
  pa as useGentiqUIOptions,
70
70
  da as useOptionalSidebar,
71
- Sa as useResolvedSettingsSections,
72
- ga as useSettingsView,
71
+ ga as useResolvedSettingsSections,
72
+ Sa as useSettingsView,
73
73
  ca as useSidebar,
74
74
  ha as useSmoothStreamingConfig,
75
75
  ba as useSmoothText,
@@ -1,4 +1,5 @@
1
1
  import { AskUserPart } from '@gentiq/core';
2
+ import { CalendarKind } from '@gentiq/core';
2
3
  import { ChatStatus } from '@gentiq/react';
3
4
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
4
5
  import { ClassProp } from 'class-variance-authority/types';
@@ -232,6 +233,27 @@ declare interface ComposerToolProps extends ComposerFooterProps {
232
233
  addFiles: (files: File[]) => void;
233
234
  }
234
235
 
236
+ /**
237
+ * Date-and-time field with an inline month grid supporting both Gregorian and Solar Hijri
238
+ * (Jalali) calendars. The value is a `datetime-local` string (`YYYY-MM-DDTHH:mm`).
239
+ */
240
+ export declare function DateTimeField({ id, value, onChange, calendar: calendarProp, onCalendarChange, open: openProp, onOpenChange, defaultTime, label, disabled, clearable, }: DateTimeFieldProps): JSX.Element;
241
+
242
+ export declare interface DateTimeFieldProps {
243
+ id?: string;
244
+ value: string;
245
+ onChange: (value: string) => void;
246
+ calendar?: CalendarKind;
247
+ onCalendarChange?: (kind: CalendarKind) => void;
248
+ open?: boolean;
249
+ onOpenChange?: (open: boolean) => void;
250
+ /** The time a day picked with no time set yet gets: the day's start, or its last minute. */
251
+ defaultTime?: 'start' | 'end';
252
+ label?: string;
253
+ disabled?: boolean;
254
+ clearable?: boolean;
255
+ }
256
+
235
257
  /** "1 year", "3 months" — or "Until canceled" for a plan without a duration. */
236
258
  export declare function describeDuration(t: TFunction, duration: PlanDuration | null | undefined): string;
237
259
 
@@ -469,6 +491,10 @@ declare interface GentiqComponents {
469
491
  * `fullscreen`. `null` falls back to the banner.
470
492
  */
471
493
  MaintenanceScreen?: ComponentType<MaintenanceNoticeProps> | null;
494
+ /** Replaces the built-in Scheduled Tasks settings section. */
495
+ SchedulesPanel?: ComponentType;
496
+ /** Replaces the built-in Connectors settings section. */
497
+ ConnectorsPanel?: ComponentType;
472
498
  /**
473
499
  * Per-tool/card reference display adapters.
474
500
  * Return label/excerpt/data overrides used in composer chips, sent context,
@@ -1,56 +1,35 @@
1
1
  "use client";
2
- import { T as u, i as h, B as m, j as p, c as r } from "./shared-Cqv1mrcZ.js";
3
- import { a1 as z, h as B, C as H, b as O, a as P, D as Q, a2 as R, e as j, W as A, X as q, f as F, g as G, d as U, l as W, n as X, o as J, m as K, Q as V, J as Y, L as Z, a3 as $, K as ee, O as ae, P as te, M as re, N as se, S as oe, A as ie, G as ne, E as de, F as ce, a4 as le, x as ge, I as ue, w as he, Y as me, y as pe, u as be } from "./shared-Cqv1mrcZ.js";
4
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
5
- import { Monitor as c, Moon as b, Sun as k, CheckIcon as f } from "lucide-react";
6
- import { useGentiqTranslation as T, useTheme as x } from "@gentiq/react";
2
+ import { T as g, i as m, B as u, j as h, c as r } from "./shared-C6NokIol.js";
3
+ import { a1 as v, h as L, C as _, b as B, a as H, D as O, a2 as Q, e as j, W as A, X as F, f as P, g as R, d as q, m as z, o as G, l as U, n as W, Q as X, J, L as K, a3 as V, K as Y, O as Z, P as $, M as ee, N as ae, S as te, A as se, G as oe, E as re, F as ne, a4 as ie, x as le, I as ce, w as de, Y as ge, y as me, u as ue } from "./shared-C6NokIol.js";
4
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
5
+ import { Monitor as l, Moon as p, Sun as b } from "lucide-react";
6
+ import { useGentiqTranslation as T, useTheme as f } from "@gentiq/react";
7
+ import { C as pe, D as be } from "./shared-C0zGnIf8.js";
7
8
  import "react";
8
- import * as n from "@radix-ui/react-checkbox";
9
- import * as d from "@radix-ui/react-switch";
10
- import { T as fe } from "./shared-Crxb3V4w.js";
11
- const D = { system: "light", light: "dark", dark: "system" }, S = { light: k, dark: b, system: c }, M = ({ className: t }) => {
12
- const { t: a } = T(["theme"]), { theme: s, setTheme: l } = x(), g = S[s] ?? c, o = D[s];
13
- return /* @__PURE__ */ i(u, { children: [
14
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ i(
15
- m,
9
+ import * as i from "@radix-ui/react-switch";
10
+ import { T as fe } from "./shared-BqghN38E.js";
11
+ const D = { system: "light", light: "dark", dark: "system" }, k = { light: b, dark: p, system: l }, y = ({ className: t }) => {
12
+ const { t: a } = T(["theme"]), { theme: s, setTheme: c } = f(), d = k[s] ?? l, o = D[s];
13
+ return /* @__PURE__ */ n(g, { children: [
14
+ /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ n(
15
+ u,
16
16
  {
17
17
  variant: "ghost",
18
18
  size: "icon",
19
- onClick: () => l(o ?? "system"),
19
+ onClick: () => c(o ?? "system"),
20
20
  className: t,
21
21
  children: [
22
- /* @__PURE__ */ e(g, { className: "h-[1.2rem] w-[1.2rem]" }),
22
+ /* @__PURE__ */ e(d, { className: "h-[1.2rem] w-[1.2rem]" }),
23
23
  /* @__PURE__ */ e("span", { className: "sr-only", children: a("toggle") })
24
24
  ]
25
25
  }
26
26
  ) }),
27
- /* @__PURE__ */ e(p, { children: a(o ?? "toggle") })
27
+ /* @__PURE__ */ e(h, { children: a(o ?? "toggle") })
28
28
  ] });
29
29
  };
30
- function N({ className: t, ...a }) {
31
- return /* @__PURE__ */ e(
32
- n.Root,
33
- {
34
- "data-slot": "checkbox",
35
- className: r(
36
- "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
37
- t
38
- ),
39
- ...a,
40
- children: /* @__PURE__ */ e(
41
- n.Indicator,
42
- {
43
- "data-slot": "checkbox-indicator",
44
- className: "grid place-content-center text-current transition-none",
45
- children: /* @__PURE__ */ e(f, { className: "size-3.5" })
46
- }
47
- )
48
- }
49
- );
50
- }
51
30
  function E({ className: t, ...a }) {
52
31
  return /* @__PURE__ */ e(
53
- d.Root,
32
+ i.Root,
54
33
  {
55
34
  "data-slot": "switch",
56
35
  dir: "ltr",
@@ -60,7 +39,7 @@ function E({ className: t, ...a }) {
60
39
  ),
61
40
  ...a,
62
41
  children: /* @__PURE__ */ e(
63
- d.Thumb,
42
+ i.Thumb,
64
43
  {
65
44
  "data-slot": "switch-thumb",
66
45
  className: r(
@@ -72,48 +51,49 @@ function E({ className: t, ...a }) {
72
51
  );
73
52
  }
74
53
  export {
75
- z as BUILT_IN_METERS,
76
- B as Badge,
77
- m as Button,
78
- N as Checkbox,
79
- H as Collapsible,
80
- O as CollapsibleContent,
81
- P as CollapsibleTrigger,
82
- Q as Dialog,
83
- R as DialogClose,
54
+ v as BUILT_IN_METERS,
55
+ L as Badge,
56
+ u as Button,
57
+ pe as Checkbox,
58
+ _ as Collapsible,
59
+ B as CollapsibleContent,
60
+ H as CollapsibleTrigger,
61
+ be as DateTimeField,
62
+ O as Dialog,
63
+ Q as DialogClose,
84
64
  j as DialogContent,
85
65
  A as DialogDescription,
86
- q as DialogFooter,
87
- F as DialogHeader,
88
- G as DialogTitle,
89
- U as DialogTrigger,
90
- W as DropdownMenu,
91
- X as DropdownMenuContent,
92
- J as DropdownMenuItem,
93
- K as DropdownMenuTrigger,
94
- V as Input,
95
- Y as Label,
96
- Z as Loader,
97
- M as ModeToggle,
98
- $ as QUOTA_PERIODS,
99
- ee as Select,
100
- ae as SelectContent,
101
- te as SelectItem,
102
- re as SelectTrigger,
103
- se as SelectValue,
104
- oe as Sheet,
105
- ie as SheetContent,
106
- ne as SheetDescription,
107
- de as SheetHeader,
108
- ce as SheetTitle,
66
+ F as DialogFooter,
67
+ P as DialogHeader,
68
+ R as DialogTitle,
69
+ q as DialogTrigger,
70
+ z as DropdownMenu,
71
+ G as DropdownMenuContent,
72
+ U as DropdownMenuItem,
73
+ W as DropdownMenuTrigger,
74
+ X as Input,
75
+ J as Label,
76
+ K as Loader,
77
+ y as ModeToggle,
78
+ V as QUOTA_PERIODS,
79
+ Y as Select,
80
+ Z as SelectContent,
81
+ $ as SelectItem,
82
+ ee as SelectTrigger,
83
+ ae as SelectValue,
84
+ te as Sheet,
85
+ se as SheetContent,
86
+ oe as SheetDescription,
87
+ re as SheetHeader,
88
+ ne as SheetTitle,
109
89
  E as Switch,
110
90
  fe as Textarea,
111
91
  r as cn,
112
- le as describeDuration,
113
- ge as describeWindow,
114
- ue as formatQuotaAmount,
115
- he as formatQuotaDate,
116
- me as gentiqLogo,
117
- pe as meterLabel,
118
- be as useSlots
92
+ ie as describeDuration,
93
+ le as describeWindow,
94
+ ce as formatQuotaAmount,
95
+ de as formatQuotaDate,
96
+ ge as gentiqLogo,
97
+ me as meterLabel,
98
+ ue as useSlots
119
99
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import "react";
4
- import { c as t } from "./shared-Cqv1mrcZ.js";
4
+ import { c as t } from "./shared-C6NokIol.js";
5
5
  function d({ className: r, ...e }) {
6
6
  return /* @__PURE__ */ i(
7
7
  "textarea",
@@ -0,0 +1,226 @@
1
+ "use client";
2
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
3
+ import { useState as D, useMemo as me } from "react";
4
+ import * as $ from "@radix-ui/react-checkbox";
5
+ import { CheckIcon as ue, CalendarDays as pe, X as fe, ChevronRight as A, ChevronLeft as G } from "lucide-react";
6
+ import { c as g } from "./shared-C6NokIol.js";
7
+ import { getCalendar as ge, getCalendarSystem as L, weekStart as he, addMonths as O, toLocalInput as R } from "@gentiq/core";
8
+ import { useGentiqTranslation as be, useGentiqLanguage as xe } from "@gentiq/react";
9
+ function Ce({ className: n, ...a }) {
10
+ return /* @__PURE__ */ t(
11
+ $.Root,
12
+ {
13
+ "data-slot": "checkbox",
14
+ className: g(
15
+ "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
16
+ n
17
+ ),
18
+ ...a,
19
+ children: /* @__PURE__ */ t(
20
+ $.Indicator,
21
+ {
22
+ "data-slot": "checkbox-indicator",
23
+ className: "grid place-content-center text-current transition-none",
24
+ children: /* @__PURE__ */ t(ue, { className: "size-3.5" })
25
+ }
26
+ )
27
+ }
28
+ );
29
+ }
30
+ function y(n, a, u) {
31
+ try {
32
+ return new Intl.DateTimeFormat(n, { ...u, calendar: a });
33
+ } catch {
34
+ return new Intl.DateTimeFormat(n, u);
35
+ }
36
+ }
37
+ const q = (n, a) => !!n && !!a && n.year === a.year && n.month === a.month && n.day === a.day;
38
+ function _e({
39
+ id: n,
40
+ value: a,
41
+ onChange: u,
42
+ calendar: C,
43
+ onCalendarChange: U,
44
+ open: _,
45
+ onOpenChange: H,
46
+ defaultTime: V = "start",
47
+ label: h,
48
+ disabled: S = !1,
49
+ clearable: X = !0
50
+ }) {
51
+ const { t: o } = be("common"), { language: c, dir: B } = xe(), E = B === "rtl", J = ge(c) === "persian" ? "persian" : "gregory", [P, Q] = D(J), m = C ?? P, W = (e) => {
52
+ C === void 0 && Q(e), U?.(e);
53
+ }, [Y, Z] = D(!1), b = _ ?? Y, I = (e) => {
54
+ _ === void 0 && Z(e), H?.(e);
55
+ }, d = L(m), v = a ? new Date(a) : null, l = v && !Number.isNaN(v.getTime()) ? v : null, p = l ? d.fromDate(l) : null, z = d.fromDate(/* @__PURE__ */ new Date()), [k, N] = l ? [l.getHours(), l.getMinutes()] : V === "end" ? [23, 59] : [0, 0], [ee, x] = D(null), s = ee ?? p ?? z, te = (e) => {
56
+ const r = d.toDate(s);
57
+ x(L(e).fromDate(r)), W(e);
58
+ }, re = me(() => new Intl.NumberFormat(c, { useGrouping: !1 }), [c]), ne = y(c, m, { month: "long", year: "numeric" }).format(
59
+ d.toDate({ ...s, day: Math.min(15, d.daysInMonth(s.year, s.month)) })
60
+ ), M = l ? y(c, m, { dateStyle: "medium", timeStyle: "short" }).format(l) : null, T = he(c), ae = y(c, m, { weekday: "narrow" }), oe = Array.from(
61
+ { length: 7 },
62
+ (e, r) => ae.format(new Date(2024, 0, 7 + (T + r) % 7))
63
+ ), de = (d.toDate({ ...s, day: 1 }).getDay() - T + 7) % 7, se = d.daysInMonth(s.year, s.month), ie = [
64
+ ...Array.from({ length: de }, () => null),
65
+ ...Array.from({ length: se }, (e, r) => r + 1)
66
+ ], j = (e, r, f) => u(R(d.toDate(e, r, f))), F = (e, r) => {
67
+ p && j(p, e, r);
68
+ }, K = (e, r) => Math.min(r, Math.max(0, Number(e) || 0)), [ce, le] = E ? [A, G] : [G, A];
69
+ return /* @__PURE__ */ i("div", { className: "space-y-1.5", children: [
70
+ h && /* @__PURE__ */ t("span", { className: "text-xs font-medium text-muted-foreground", children: h }),
71
+ /* @__PURE__ */ i("div", { className: "relative", children: [
72
+ /* @__PURE__ */ i(
73
+ "button",
74
+ {
75
+ id: n,
76
+ type: "button",
77
+ disabled: S,
78
+ onClick: () => I(!b),
79
+ "aria-expanded": b,
80
+ className: g(
81
+ "flex h-10 w-full items-center gap-2 rounded-lg border bg-input/50 ps-3 pe-9 text-start text-sm transition-all disabled:opacity-50",
82
+ b ? "border-transparent ring-2 ring-ring" : "border-border"
83
+ ),
84
+ children: [
85
+ /* @__PURE__ */ t(pe, { className: "size-4 shrink-0 text-muted-foreground" }),
86
+ /* @__PURE__ */ t("span", { className: g("truncate", M ? "text-foreground" : "text-muted-foreground"), children: M ?? o("date_picker.placeholder") })
87
+ ]
88
+ }
89
+ ),
90
+ X && l && !S && /* @__PURE__ */ t(
91
+ "button",
92
+ {
93
+ type: "button",
94
+ onClick: () => u(""),
95
+ className: "absolute end-2 top-1/2 flex size-6 -translate-y-1/2 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground",
96
+ "aria-label": h ? `${o("date_picker.clear")}: ${h}` : o("date_picker.clear"),
97
+ children: /* @__PURE__ */ t(fe, { className: "size-3.5" })
98
+ }
99
+ )
100
+ ] }),
101
+ b && /* @__PURE__ */ i("div", { className: "space-y-3 rounded-xl border border-border bg-card p-3 shadow-sm animate-in fade-in slide-in-from-top-1 duration-150", children: [
102
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
103
+ /* @__PURE__ */ t(
104
+ "button",
105
+ {
106
+ type: "button",
107
+ onClick: () => x(O(d, s, -1)),
108
+ className: "flex size-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground",
109
+ "aria-label": o("date_picker.previous_month"),
110
+ children: /* @__PURE__ */ t(ce, { className: "size-4" })
111
+ }
112
+ ),
113
+ /* @__PURE__ */ t("span", { className: "flex-1 text-center text-sm font-semibold text-foreground", children: ne }),
114
+ /* @__PURE__ */ t(
115
+ "button",
116
+ {
117
+ type: "button",
118
+ onClick: () => x(O(d, s, 1)),
119
+ className: "flex size-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground",
120
+ "aria-label": o("date_picker.next_month"),
121
+ children: /* @__PURE__ */ t(le, { className: "size-4" })
122
+ }
123
+ )
124
+ ] }),
125
+ /* @__PURE__ */ t("div", { className: "flex justify-center", children: /* @__PURE__ */ t("div", { className: "inline-flex rounded-lg bg-muted/50 p-0.5", role: "radiogroup", children: ["persian", "gregory"].map((e) => /* @__PURE__ */ t(
126
+ "button",
127
+ {
128
+ type: "button",
129
+ role: "radio",
130
+ "aria-checked": m === e,
131
+ onClick: () => te(e),
132
+ className: g(
133
+ "rounded-md px-3 py-1 text-xs font-medium transition-all",
134
+ m === e ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
135
+ ),
136
+ children: o(`date_picker.calendar_${e}`)
137
+ },
138
+ e
139
+ )) }) }),
140
+ /* @__PURE__ */ i("div", { className: "grid grid-cols-7 gap-0.5 text-center", role: "grid", children: [
141
+ oe.map((e, r) => /* @__PURE__ */ t("span", { className: "py-1 text-xs font-semibold text-muted-foreground", children: e }, r)),
142
+ ie.map((e, r) => {
143
+ if (e === null) return /* @__PURE__ */ t("span", {}, `blank-${r}`);
144
+ const f = { year: s.year, month: s.month, day: e }, w = q(f, p);
145
+ return /* @__PURE__ */ t(
146
+ "button",
147
+ {
148
+ type: "button",
149
+ onClick: () => j(f, k, N),
150
+ "aria-pressed": w,
151
+ "aria-label": y(c, m, { dateStyle: "full" }).format(
152
+ d.toDate(f)
153
+ ),
154
+ className: g(
155
+ "flex h-8 items-center justify-center rounded-lg text-xs transition-colors",
156
+ w ? "bg-primary font-semibold text-primary-foreground" : "text-foreground hover:bg-muted",
157
+ !w && q(f, z) && "font-bold text-primary ring-1 ring-primary/40"
158
+ ),
159
+ children: re.format(e)
160
+ },
161
+ e
162
+ );
163
+ })
164
+ ] }),
165
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-2 border-t border-border/60 pt-3", children: [
166
+ /* @__PURE__ */ t("span", { className: "text-xs font-medium text-muted-foreground", children: o("date_picker.time") }),
167
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-1", dir: "ltr", children: [
168
+ /* @__PURE__ */ t(
169
+ "input",
170
+ {
171
+ type: "number",
172
+ min: 0,
173
+ max: 23,
174
+ value: String(k).padStart(2, "0"),
175
+ onChange: (e) => F(K(e.target.value, 23), N),
176
+ disabled: !p,
177
+ "aria-label": o("date_picker.hour"),
178
+ className: "h-8 w-12 rounded-md border border-border bg-input/50 text-center text-sm tabular-nums disabled:opacity-50"
179
+ }
180
+ ),
181
+ /* @__PURE__ */ t("span", { className: "text-muted-foreground", children: ":" }),
182
+ /* @__PURE__ */ t(
183
+ "input",
184
+ {
185
+ type: "number",
186
+ min: 0,
187
+ max: 59,
188
+ value: String(N).padStart(2, "0"),
189
+ onChange: (e) => F(k, K(e.target.value, 59)),
190
+ disabled: !p,
191
+ "aria-label": o("date_picker.minute"),
192
+ className: "h-8 w-12 rounded-md border border-border bg-input/50 text-center text-sm tabular-nums disabled:opacity-50"
193
+ }
194
+ )
195
+ ] }),
196
+ /* @__PURE__ */ i("div", { className: "ms-auto flex gap-1", children: [
197
+ /* @__PURE__ */ t(
198
+ "button",
199
+ {
200
+ type: "button",
201
+ onClick: () => {
202
+ const e = /* @__PURE__ */ new Date();
203
+ x(null), u(R(e));
204
+ },
205
+ className: "rounded-md px-2.5 py-1.5 text-xs font-medium text-muted-foreground hover:bg-muted hover:text-foreground",
206
+ children: o("date_picker.now")
207
+ }
208
+ ),
209
+ /* @__PURE__ */ t(
210
+ "button",
211
+ {
212
+ type: "button",
213
+ onClick: () => I(!1),
214
+ className: "rounded-md bg-primary px-3 py-1.5 text-xs font-semibold text-primary-foreground hover:opacity-90",
215
+ children: o("date_picker.done")
216
+ }
217
+ )
218
+ ] })
219
+ ] })
220
+ ] })
221
+ ] });
222
+ }
223
+ export {
224
+ Ce as C,
225
+ _e as D
226
+ };
@@ -614,10 +614,10 @@ export {
614
614
  w2 as i,
615
615
  y2 as j,
616
616
  w as k,
617
- N2 as l,
618
- C2 as m,
619
- z2 as n,
620
- D2 as o,
617
+ D2 as l,
618
+ N2 as m,
619
+ C2 as n,
620
+ z2 as o,
621
621
  y as p,
622
622
  f as q,
623
623
  V2 as r,