@overvis/hmi-workspace-ui 0.1.0 → 0.1.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/alarm-list-DKFio0hg.js +414 -0
- package/dist/alarm-rule-dialog-mb4_nHRW.js +417 -0
- package/dist/{alarm-rule-lists-C5v1Kf7A.js → alarm-rule-lists-CfZXTWkK.js} +123 -125
- package/dist/{alarm-rules-page-CqFzofPd.js → alarm-rules-page-DBLSkrrG.js} +15 -18
- package/dist/alert-dialog-D_iDv2lQ.js +891 -0
- package/dist/{base-revision-YCO27zR4.js → base-revision-DLF9EnGV.js} +26 -29
- package/dist/{breadcrumbs-0cjsV2cq.js → breadcrumbs-D5R6Fz74.js} +6 -7
- package/dist/{catalog-list-DjZojYLJ.js → catalog-list-BkWosvh1.js} +2 -4
- package/dist/{code-editor-BVimvjDV.js → code-editor-DCM0KdMJ.js} +9 -6
- package/dist/dashboard-bindings.js +1 -2
- package/dist/{dashboards-page-BlrJguNz.js → dashboards-page-DLc11Vzu.js} +335 -359
- package/dist/{de-14WdmJxZ.js → de-Z2er-E5v.js} +4 -2
- package/dist/diagnostic-text-CYZFPiND.js +116 -0
- package/dist/{dialogs-D_v1LeH4.js → dialogs-BX023zml.js} +2523 -2590
- package/dist/{dialogs-B6BRnf3Q.js → dialogs-DEOg9lxy.js} +219 -227
- package/dist/{display-DmOo23mi.js → display-VYGzneE0.js} +4 -6
- package/dist/{editor-language-To9MxloY.js → editor-language-CGENZxbI.js} +3 -5
- package/dist/editor-page-CaN52OQh.js +1337 -0
- package/dist/{en-BgercpT0.js → en-CKPPL6bQ.js} +4 -2
- package/dist/entity-controls-DJT47yeV.js +71 -0
- package/dist/errors-BAWoH_5w.js +25 -0
- package/dist/{footer-DC-Q0052.js → footer-CbPMP8aq.js} +2404 -2515
- package/dist/host.js +8254 -675
- package/dist/{i18n-BgzakKoC.js → i18n-ChjEbYEg.js} +77 -90
- package/dist/i18n.js +1 -2
- package/dist/index.js +5168 -5353
- package/dist/{lat-lng-B12P7QyY.js → lat-lng-Bl77AGSO.js} +1 -2
- package/dist/{list-page-CvsdZb86.js → list-page-Fa29SkaJ.js} +116 -123
- package/dist/{location-map-renderer-DO5yfdSU.js → location-map-renderer-DvXIYc1Z.js} +6 -6
- package/dist/{location-picker-renderer-CjCxg6ai.js → location-picker-renderer-B1_-n8lf.js} +3 -4
- package/dist/{model-B8gGi4OK.js → model-tpg_xpFB.js} +1 -2
- package/dist/{notice-card-DyGywFsW.js → notice-card-V_0K0lO0.js} +54 -58
- package/dist/page-B5te_1Lc.js +449 -0
- package/dist/{page-v6LCwswN.js → page-BorlLnMX.js} +92 -100
- package/dist/page-DxF7FOve.js +507 -0
- package/dist/panel-DuZD-cBP.js +949 -0
- package/dist/parameter-values.js +3 -16
- package/dist/{pl-lQ9HXV9k.js → pl-DVABrn5G.js} +4 -2
- package/dist/presence-code-DsabLTZs.js +73 -0
- package/dist/{query-gate-DVhNIkge.js → query-gate-BbIo1Xrj.js} +6 -6
- package/dist/{provider-DoEpKcQ-.js → quick-report-BcZsfkCZ.js} +9423 -5102
- package/dist/{retention-BYXNpYmR.js → retention-C7EZsq8u.js} +4 -6
- package/dist/retention-note-CmMeHV_u.js +40 -0
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{ru-qTKINoUj.js → ru-CBRLC_xM.js} +8 -6
- package/dist/run-text-CDdfbKbg.js +112 -0
- package/dist/{search-D4rDnE9T.js → search-C6xQ_Hvo.js} +26 -29
- package/dist/{sections-kCOyc4NR.js → sections-D_SBfVzV.js} +2 -3
- package/dist/{select-BKiOWdSr.js → select-nNLG-AMz.js} +17 -23
- package/dist/{spinner-C-HPNxOc.js → spinner-B-KLtBjp.js} +182 -201
- package/dist/src/code-editor/code-editor.d.ts +3 -0
- package/dist/src/code-editor/taskfile-language.d.ts +22 -2
- package/dist/src/i18n/catalogs/de/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/de.d.ts +3 -0
- package/dist/src/i18n/catalogs/en/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/en.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl/edge-program.d.ts +3 -0
- package/dist/src/i18n/catalogs/pl.d.ts +3 -0
- package/dist/src/i18n/catalogs/ru/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/ru/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/ru.d.ts +7 -4
- package/dist/src/i18n/catalogs/uk/edge-program.d.ts +5 -2
- package/dist/src/i18n/catalogs/uk/graphics.d.ts +2 -2
- package/dist/src/i18n/catalogs/uk.d.ts +7 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/workspace/graphics/inspector/item.d.ts +6 -6
- package/dist/src/workspace/local-workspace-app.d.ts +1 -1
- package/dist/src/workspace/routes.d.ts +1 -1
- package/dist/{starter-fields-BRLX0z-v.js → starter-fields-7S3LmtGa.js} +154 -157
- package/dist/{starter-handoff-BA3ucMKL.js → starter-handoff-BaK8Ss8I.js} +1 -2
- package/dist/styles.css +1 -1
- package/dist/ui.js +334 -374
- package/dist/{uk-CwpJAxmx.js → uk-17pbVYZa.js} +8 -6
- package/dist/{wireguard-docs-AfU6NzTL.js → wireguard-docs-Clb-7xRY.js} +14 -17
- package/package.json +15 -9
- package/dist/alarm-list-BL3xQ5Lf.js +0 -423
- package/dist/alarm-rule-dialog-S1ZUg-74.js +0 -423
- package/dist/alert-B8MAoIO8.js +0 -45
- package/dist/alert-dialog-CYkuMg5D.js +0 -129
- package/dist/api-error-9rQmUN5L.js +0 -93
- package/dist/breadcrumb-DzVL1yHa.js +0 -74
- package/dist/button-6SxPBYMz.js +0 -44
- package/dist/context-u9KJQmdB.js +0 -102
- package/dist/copyable-id-DYGiAcnq.js +0 -40
- package/dist/dashboard-context-CBfG6DoT.js +0 -191
- package/dist/date-time-picker-C3FhMXk6.js +0 -266
- package/dist/diagnostic-text-BAkzW0SE.js +0 -111
- package/dist/diagnostic-text-DiKd2i1w.js +0 -76
- package/dist/dialog-BIhQXcZC.js +0 -237
- package/dist/dialog-BqyIxMD-.js +0 -54
- package/dist/dropdown-menu-DSzbBq3v.js +0 -136
- package/dist/editor-page-BiSZJz5b.js +0 -1353
- package/dist/empty-B-QJ-06w.js +0 -59
- package/dist/entity-controls-D1K4Ot3O.js +0 -76
- package/dist/errors-CcsvDHu8.js +0 -26
- package/dist/history-page-sAAhG54V.js +0 -1400
- package/dist/icon-D-pR9htW.js +0 -57
- package/dist/index-page-DMH82fZe.js +0 -214
- package/dist/item-B5SaTFQU.js +0 -120
- package/dist/mutation-form-validators-BNz5bsv1.js +0 -2408
- package/dist/mutations-THtGG6Ai.js +0 -240
- package/dist/page-2KPemaAj.js +0 -328
- package/dist/page-6rIoTg2L.js +0 -459
- package/dist/page-C6giEoEd.js +0 -1935
- package/dist/page-DCbTxKsi.js +0 -313
- package/dist/page-DWO427hT.js +0 -208
- package/dist/page-LXu_2zm3.js +0 -137
- package/dist/page-aaUiVOnk.js +0 -513
- package/dist/page-header-RB2YFWlE.js +0 -55
- package/dist/page-title-CdCbiLt8.js +0 -14
- package/dist/panel-DDy8tUNR.js +0 -338
- package/dist/presence-code-BfSXr50g.js +0 -83
- package/dist/progress-C7cxNJA1.js +0 -83
- package/dist/provider-BOeYHi0n.js +0 -134
- package/dist/quick-report-CUVJnbKP.js +0 -416
- package/dist/radio-group-CZGqVbkJ.js +0 -26
- package/dist/retention-note-CHhA6gjY.js +0 -42
- package/dist/run-text-DvaO8LDF.js +0 -113
- package/dist/select-eNgZdZ30.js +0 -521
- package/dist/skeleton-6yk8Tdh5.js +0 -19
- package/dist/slider-DorDsoF8.js +0 -37
- package/dist/status-page-DAHiKM9P.js +0 -3286
- package/dist/switch-BqD0RH_G.js +0 -18
- package/dist/table-Q2-voLuw.js +0 -65
- package/dist/tabs-CSIucYFP.js +0 -57
- package/dist/theme-provider-BkRohQFU.js +0 -61
- package/dist/toggle-group-9Bs0Mm3r.js +0 -82
- package/dist/trpc-CvJUuUXp.js +0 -153
- package/dist/utils-CX-Pz5p6.js +0 -8
- package/dist/writability-BuH-spxv.js +0 -57
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { m as e } from "./i18n-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./button-6SxPBYMz.js";
|
|
4
|
-
import { b as r, f as i, h as a, m as o, x as s, y as c } from "./dialog-BIhQXcZC.js";
|
|
1
|
+
import { m as e } from "./i18n-ChjEbYEg.js";
|
|
2
|
+
import { At as t, Ct as n, Nt as r, Ot as i, jt as a, kt as o, wt as s, yt as c } from "./alert-dialog-D_iDv2lQ.js";
|
|
5
3
|
import * as l from "react";
|
|
6
4
|
import { useMemo as u, useSyncExternalStore as d } from "react";
|
|
7
5
|
import { Fragment as ee, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -13,61 +11,58 @@ import { OTPInput as y, OTPInputContext as re } from "input-otp";
|
|
|
13
11
|
import { Drawer as b } from "@base-ui/react/drawer";
|
|
14
12
|
import { Popover as x } from "@base-ui/react/popover";
|
|
15
13
|
import { Input as ie } from "@base-ui/react/input";
|
|
16
|
-
|
|
17
|
-
function ae({ className: e, ...
|
|
14
|
+
// src/ui/checkbox.tsx
|
|
15
|
+
function ae({ className: e, ...t }) {
|
|
18
16
|
return /* @__PURE__ */ f(m.Root, {
|
|
19
17
|
"data-slot": "checkbox",
|
|
20
|
-
className:
|
|
21
|
-
...
|
|
18
|
+
className: r("\n peer relative flex size-4 shrink-0 cursor-pointer items-center justify-center\n rounded-[4px] border border-input transition-colors outline-none\n after:absolute after:-inset-x-3 after:-inset-y-2\n focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50\n disabled:cursor-not-allowed disabled:opacity-50\n aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20\n data-indeterminate:border-primary data-indeterminate:bg-primary\n data-indeterminate:text-primary-foreground\n dark:bg-input/30\n dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\n data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground\n dark:data-checked:bg-primary\n ", e),
|
|
19
|
+
...t,
|
|
22
20
|
children: /* @__PURE__ */ f(m.Indicator, {
|
|
23
21
|
"data-slot": "checkbox-indicator",
|
|
24
22
|
className: "\n grid place-content-center text-current transition-none\n [&_svg]:size-3.5\n ",
|
|
25
23
|
keepMounted: !1,
|
|
26
|
-
children:
|
|
24
|
+
children: t.indeterminate ? /* @__PURE__ */ f(g, {}) : /* @__PURE__ */ f(h, {})
|
|
27
25
|
})
|
|
28
26
|
});
|
|
29
27
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
function S({ className: e, ...n }) {
|
|
28
|
+
// src/ui/label.tsx
|
|
29
|
+
function S({ className: e, ...t }) {
|
|
33
30
|
return /* @__PURE__ */ f("label", {
|
|
34
31
|
"data-slot": "label",
|
|
35
|
-
className:
|
|
36
|
-
...
|
|
32
|
+
className: r("\n flex cursor-pointer items-center gap-2 text-sm leading-none font-medium select-none\n group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50\n peer-disabled:cursor-not-allowed peer-disabled:opacity-50\n ", e),
|
|
33
|
+
...t
|
|
37
34
|
});
|
|
38
35
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
function C({ className: e, orientation: n = "horizontal", ...r }) {
|
|
36
|
+
// src/ui/separator.tsx
|
|
37
|
+
function C({ className: e, orientation: t = "horizontal", ...n }) {
|
|
42
38
|
return /* @__PURE__ */ f(v, {
|
|
43
39
|
"data-slot": "separator",
|
|
44
|
-
orientation:
|
|
45
|
-
className:
|
|
46
|
-
...
|
|
40
|
+
orientation: t,
|
|
41
|
+
className: r("\n shrink-0 bg-border\n data-horizontal:h-px data-horizontal:w-full\n data-vertical:w-px data-vertical:self-stretch\n ", e),
|
|
42
|
+
...n
|
|
47
43
|
});
|
|
48
44
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
function w({ className: e, ...n }) {
|
|
45
|
+
// src/ui/field.tsx
|
|
46
|
+
function w({ className: e, ...t }) {
|
|
52
47
|
return /* @__PURE__ */ f("fieldset", {
|
|
53
48
|
"data-slot": "field-set",
|
|
54
|
-
className:
|
|
55
|
-
...
|
|
49
|
+
className: r("\n flex flex-col gap-4\n has-[>[data-slot=checkbox-group]]:gap-3\n has-[>[data-slot=radio-group]]:gap-3\n ", e),
|
|
50
|
+
...t
|
|
56
51
|
});
|
|
57
52
|
}
|
|
58
|
-
function T({ className: e, variant:
|
|
53
|
+
function T({ className: e, variant: t = "legend", ...n }) {
|
|
59
54
|
return /* @__PURE__ */ f("legend", {
|
|
60
55
|
"data-slot": "field-legend",
|
|
61
|
-
"data-variant":
|
|
62
|
-
className:
|
|
63
|
-
...
|
|
56
|
+
"data-variant": t,
|
|
57
|
+
className: r("font-medium", "\n data-[variant=label]:mb-1.5 data-[variant=label]:text-sm\n data-[variant=legend]:mb-4 data-[variant=legend]:w-full data-[variant=legend]:border-b\n data-[variant=legend]:pb-2 data-[variant=legend]:font-heading\n data-[variant=legend]:text-base data-[variant=legend]:tracking-tight\n ", e),
|
|
58
|
+
...n
|
|
64
59
|
});
|
|
65
60
|
}
|
|
66
|
-
function E({ className: e, ...
|
|
61
|
+
function E({ className: e, ...t }) {
|
|
67
62
|
return /* @__PURE__ */ f("div", {
|
|
68
63
|
"data-slot": "field-group",
|
|
69
|
-
className:
|
|
70
|
-
...
|
|
64
|
+
className: r("\n group/field-group @container/field-group flex w-full flex-col gap-5\n data-[slot=checkbox-group]:gap-3\n *:data-[slot=field-group]:gap-4\n ", e),
|
|
65
|
+
...t
|
|
71
66
|
});
|
|
72
67
|
}
|
|
73
68
|
var D = _("\n group/field flex w-full gap-2\n data-[invalid=true]:text-destructive\n ", {
|
|
@@ -78,48 +73,48 @@ var D = _("\n group/field flex w-full gap-2\n data-[invalid=true]:text-des
|
|
|
78
73
|
} },
|
|
79
74
|
defaultVariants: { orientation: "vertical" }
|
|
80
75
|
});
|
|
81
|
-
function O({ className: e, orientation:
|
|
76
|
+
function O({ className: e, orientation: t = "vertical", ...n }) {
|
|
82
77
|
return /* @__PURE__ */ f("div", {
|
|
83
78
|
role: "group",
|
|
84
79
|
"data-slot": "field",
|
|
85
|
-
"data-orientation":
|
|
86
|
-
className:
|
|
87
|
-
...
|
|
80
|
+
"data-orientation": t,
|
|
81
|
+
className: r(D({ orientation: t }), e),
|
|
82
|
+
...n
|
|
88
83
|
});
|
|
89
84
|
}
|
|
90
|
-
function k({ className: e, ...
|
|
85
|
+
function k({ className: e, ...t }) {
|
|
91
86
|
return /* @__PURE__ */ f("div", {
|
|
92
87
|
"data-slot": "field-content",
|
|
93
|
-
className:
|
|
94
|
-
...
|
|
88
|
+
className: r("group/field-content flex flex-1 flex-col gap-0.5 leading-snug", e),
|
|
89
|
+
...t
|
|
95
90
|
});
|
|
96
91
|
}
|
|
97
|
-
function A({ className: e, ...
|
|
92
|
+
function A({ className: e, ...t }) {
|
|
98
93
|
return /* @__PURE__ */ f(S, {
|
|
99
94
|
"data-slot": "field-label",
|
|
100
|
-
className:
|
|
101
|
-
...
|
|
95
|
+
className: r("\n group/field-label peer/field-label flex w-fit gap-2 leading-snug\n group-data-[disabled=true]/field:opacity-50\n has-data-checked:border-primary/30 has-data-checked:bg-primary/5\n has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border\n *:data-[slot=field]:p-2.5\n dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10\n ", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
96
|
+
...t
|
|
102
97
|
});
|
|
103
98
|
}
|
|
104
|
-
function j({ className: e, ...
|
|
99
|
+
function j({ className: e, ...t }) {
|
|
105
100
|
return /* @__PURE__ */ f("div", {
|
|
106
101
|
"data-slot": "field-label",
|
|
107
|
-
className:
|
|
108
|
-
...
|
|
102
|
+
className: r("\n flex w-fit items-center gap-2 text-sm font-medium\n group-data-[disabled=true]/field:opacity-50\n ", e),
|
|
103
|
+
...t
|
|
109
104
|
});
|
|
110
105
|
}
|
|
111
|
-
function M({ className: e, ...
|
|
106
|
+
function M({ className: e, ...t }) {
|
|
112
107
|
return /* @__PURE__ */ f("p", {
|
|
113
108
|
"data-slot": "field-description",
|
|
114
|
-
className:
|
|
115
|
-
...
|
|
109
|
+
className: r("\n text-left text-sm/normal font-normal text-muted-foreground\n group-has-data-horizontal/field:text-balance\n [[data-variant=legend]+&]:-mt-1.5\n ", "\n last:mt-0\n nth-last-2:-mt-1\n ", "\n [&>a]:underline [&>a]:underline-offset-4\n [&>a:hover]:text-primary\n ", e),
|
|
110
|
+
...t
|
|
116
111
|
});
|
|
117
112
|
}
|
|
118
|
-
function N({ children: e, className:
|
|
113
|
+
function N({ children: e, className: t, ...n }) {
|
|
119
114
|
return /* @__PURE__ */ p("div", {
|
|
120
115
|
"data-slot": "field-separator",
|
|
121
|
-
className:
|
|
122
|
-
...
|
|
116
|
+
className: r("\n -my-2 flex h-5 items-center gap-2 text-sm\n group-data-[variant=outline]/field-group:-mb-2\n ", t),
|
|
117
|
+
...n,
|
|
123
118
|
children: [/* @__PURE__ */ f(C, { className: "flex-1" }), e && /* @__PURE__ */ p(ee, { children: [/* @__PURE__ */ f("span", {
|
|
124
119
|
className: "shrink-0 text-muted-foreground",
|
|
125
120
|
"data-slot": "field-separator-content",
|
|
@@ -127,49 +122,48 @@ function N({ children: e, className: n, ...r }) {
|
|
|
127
122
|
}), /* @__PURE__ */ f(C, { className: "flex-1" })] })]
|
|
128
123
|
});
|
|
129
124
|
}
|
|
130
|
-
function P({ className: e, children:
|
|
125
|
+
function P({ className: e, children: t, errors: n, ...i }) {
|
|
131
126
|
let a = u(() => {
|
|
132
|
-
if (
|
|
133
|
-
if (!
|
|
134
|
-
let e = [...new Map(
|
|
127
|
+
if (t) return t;
|
|
128
|
+
if (!n?.length) return null;
|
|
129
|
+
let e = [...new Map(n.map((e) => [e?.message, e])).values()];
|
|
135
130
|
return e.length == 1 ? e[0]?.message : /* @__PURE__ */ f("ul", {
|
|
136
131
|
className: "ml-4 flex list-disc flex-col gap-1",
|
|
137
132
|
children: e.map((e, t) => e?.message && /* @__PURE__ */ f("li", { children: e.message }, t))
|
|
138
133
|
});
|
|
139
|
-
}, [
|
|
134
|
+
}, [t, n]);
|
|
140
135
|
return a ? /* @__PURE__ */ f("div", {
|
|
141
136
|
role: "alert",
|
|
142
137
|
"data-slot": "field-error",
|
|
143
|
-
className:
|
|
138
|
+
className: r("text-sm font-normal text-destructive", e),
|
|
144
139
|
...i,
|
|
145
140
|
children: a
|
|
146
141
|
}) : null;
|
|
147
142
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
function F({ className: e, containerClassName: n, ...r }) {
|
|
143
|
+
// src/ui/input-otp.tsx
|
|
144
|
+
function F({ className: e, containerClassName: t, ...n }) {
|
|
151
145
|
return /* @__PURE__ */ f(y, {
|
|
152
146
|
"data-slot": "input-otp",
|
|
153
|
-
containerClassName:
|
|
147
|
+
containerClassName: r("\n flex items-center\n has-disabled:opacity-50\n ", t),
|
|
154
148
|
spellCheck: !1,
|
|
155
|
-
className:
|
|
156
|
-
...
|
|
149
|
+
className: r("disabled:cursor-not-allowed", e),
|
|
150
|
+
...n
|
|
157
151
|
});
|
|
158
152
|
}
|
|
159
|
-
function I({ className: e, ...
|
|
153
|
+
function I({ className: e, ...t }) {
|
|
160
154
|
return /* @__PURE__ */ f("div", {
|
|
161
155
|
"data-slot": "input-otp-group",
|
|
162
|
-
className:
|
|
163
|
-
...
|
|
156
|
+
className: r("\n flex items-center rounded-lg\n has-aria-invalid:border-destructive has-aria-invalid:ring-3\n has-aria-invalid:ring-destructive/20\n dark:has-aria-invalid:ring-destructive/40\n ", e),
|
|
157
|
+
...t
|
|
164
158
|
});
|
|
165
159
|
}
|
|
166
|
-
function L({ index: e, className:
|
|
160
|
+
function L({ index: e, className: t, ...n }) {
|
|
167
161
|
let { char: i, hasFakeCaret: a, isActive: o } = l.useContext(re).slots[e] ?? {};
|
|
168
162
|
return /* @__PURE__ */ p("div", {
|
|
169
163
|
"data-slot": "input-otp-slot",
|
|
170
164
|
"data-active": o,
|
|
171
|
-
className:
|
|
172
|
-
...
|
|
165
|
+
className: r("\n relative flex size-8 items-center justify-center border-y border-r border-input text-sm\n transition-all outline-none\n first:rounded-l-lg first:border-l\n last:rounded-r-lg\n aria-invalid:border-destructive\n data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3\n data-[active=true]:ring-ring/50\n data-[active=true]:aria-invalid:border-destructive\n data-[active=true]:aria-invalid:ring-destructive/20\n dark:bg-input/30\n dark:data-[active=true]:aria-invalid:ring-destructive/40\n ", t),
|
|
166
|
+
...n,
|
|
173
167
|
children: [i, a && /* @__PURE__ */ f("div", {
|
|
174
168
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
175
169
|
children: /* @__PURE__ */ f("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" })
|
|
@@ -185,41 +179,39 @@ function R({ ...e }) {
|
|
|
185
179
|
children: /* @__PURE__ */ f(g, {})
|
|
186
180
|
});
|
|
187
181
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
function z({ className: e, size: n = "default", ...r }) {
|
|
182
|
+
// src/ui/native-select.tsx
|
|
183
|
+
function z({ className: e, size: t = "default", ...n }) {
|
|
191
184
|
return /* @__PURE__ */ p("div", {
|
|
192
|
-
className:
|
|
185
|
+
className: r("\n group/native-select relative w-fit\n has-[select:disabled]:opacity-50\n ", t === "inline" && "min-w-0", e),
|
|
193
186
|
"data-slot": "native-select-wrapper",
|
|
194
|
-
"data-size":
|
|
187
|
+
"data-size": t,
|
|
195
188
|
children: [/* @__PURE__ */ f("select", {
|
|
196
189
|
"data-slot": "native-select",
|
|
197
|
-
"data-size":
|
|
198
|
-
className:
|
|
199
|
-
...
|
|
190
|
+
"data-size": t,
|
|
191
|
+
className: r("\n h-8 w-full min-w-0 cursor-pointer appearance-none rounded-lg border border-input\n bg-background py-1 pr-8 pl-2.5 text-sm shadow-xs transition-colors outline-none\n select-none\n selection:bg-primary selection:text-primary-foreground\n placeholder:text-muted-foreground\n focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50\n disabled:pointer-events-none disabled:cursor-not-allowed\n aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20\n data-[size=inline]:h-auto data-[size=inline]:min-h-0 data-[size=inline]:rounded-none\n data-[size=inline]:border-0 data-[size=inline]:bg-transparent data-[size=inline]:py-0\n data-[size=inline]:pr-4 data-[size=inline]:pl-0 data-[size=inline]:font-mono\n data-[size=inline]:text-xs data-[size=inline]:leading-none\n data-[size=inline]:shadow-none\n data-[size=inline]:focus-visible:border-0 data-[size=inline]:focus-visible:ring-0\n data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)]\n data-[size=sm]:py-0.5\n dark:bg-input/20\n dark:hover:bg-input/40\n dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\n dark:data-[size=inline]:bg-transparent\n dark:data-[size=inline]:hover:bg-transparent\n "),
|
|
192
|
+
...n
|
|
200
193
|
}), /* @__PURE__ */ f(te, {
|
|
201
|
-
className:
|
|
194
|
+
className: r("\n pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2\n text-muted-foreground select-none\n ", t === "inline" && "right-0 size-3"),
|
|
202
195
|
"aria-hidden": "true",
|
|
203
196
|
"data-slot": "native-select-icon"
|
|
204
197
|
})]
|
|
205
198
|
});
|
|
206
199
|
}
|
|
207
|
-
function B({ className: e, ...
|
|
200
|
+
function B({ className: e, ...t }) {
|
|
208
201
|
return /* @__PURE__ */ f("option", {
|
|
209
202
|
"data-slot": "native-select-option",
|
|
210
|
-
className:
|
|
211
|
-
...
|
|
203
|
+
className: r("bg-[Canvas] text-[CanvasText]", e),
|
|
204
|
+
...t
|
|
212
205
|
});
|
|
213
206
|
}
|
|
214
|
-
function V({ className: e, ...
|
|
207
|
+
function V({ className: e, ...t }) {
|
|
215
208
|
return /* @__PURE__ */ f("optgroup", {
|
|
216
209
|
"data-slot": "native-select-optgroup",
|
|
217
|
-
className:
|
|
218
|
-
...
|
|
210
|
+
className: r("bg-[Canvas] text-[CanvasText]", e),
|
|
211
|
+
...t
|
|
219
212
|
});
|
|
220
213
|
}
|
|
221
|
-
|
|
222
|
-
//#region src/hooks/use-media-query.ts
|
|
214
|
+
// src/hooks/use-media-query.ts
|
|
223
215
|
function H(e) {
|
|
224
216
|
return d((t) => {
|
|
225
217
|
let n = window.matchMedia(e);
|
|
@@ -228,48 +220,42 @@ function H(e) {
|
|
|
228
220
|
};
|
|
229
221
|
}, () => window.matchMedia(e).matches, () => !1);
|
|
230
222
|
}
|
|
231
|
-
|
|
232
|
-
//#region src/hooks/use-mobile.ts
|
|
223
|
+
// src/hooks/use-mobile.ts
|
|
233
224
|
var U = "(max-width: 767px)";
|
|
234
225
|
function W() {
|
|
235
226
|
return H(U);
|
|
236
227
|
}
|
|
237
|
-
|
|
238
|
-
//#region src/ui/drawer.tsx
|
|
228
|
+
// src/ui/drawer.tsx
|
|
239
229
|
var G = l.createContext(null);
|
|
240
230
|
function K() {
|
|
241
231
|
let e = l.useContext(G);
|
|
242
232
|
if (!e) throw Error("useDrawer must be used within a Drawer.");
|
|
243
233
|
return e;
|
|
244
234
|
}
|
|
245
|
-
function oe({ showSwipeHandle: e = !1, snapPoints:
|
|
246
|
-
let
|
|
247
|
-
hasSnapPoints:
|
|
235
|
+
function oe({ showSwipeHandle: e = !1, snapPoints: n, swipeDirection: r = "down", onOpenChange: i, ...a }) {
|
|
236
|
+
let o = n != null && n.length > 0, s = l.useMemo(() => ({
|
|
237
|
+
hasSnapPoints: o,
|
|
248
238
|
showSwipeHandle: e,
|
|
249
|
-
swipeDirection:
|
|
239
|
+
swipeDirection: r
|
|
250
240
|
}), [
|
|
251
|
-
|
|
241
|
+
o,
|
|
252
242
|
e,
|
|
253
|
-
|
|
243
|
+
r
|
|
254
244
|
]);
|
|
255
245
|
return /* @__PURE__ */ f(G.Provider, {
|
|
256
|
-
value:
|
|
246
|
+
value: s,
|
|
257
247
|
children: /* @__PURE__ */ f(b.Root, {
|
|
258
248
|
"data-slot": "drawer",
|
|
259
|
-
snapPoints:
|
|
260
|
-
swipeDirection:
|
|
261
|
-
onOpenChange: (e,
|
|
262
|
-
|
|
249
|
+
snapPoints: n,
|
|
250
|
+
swipeDirection: r,
|
|
251
|
+
onOpenChange: (e, n) => {
|
|
252
|
+
t({
|
|
263
253
|
nextOpen: e,
|
|
264
|
-
reason:
|
|
265
|
-
event:
|
|
266
|
-
}))
|
|
267
|
-
t.cancel();
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
|
-
r?.(e, t);
|
|
254
|
+
reason: n.reason,
|
|
255
|
+
event: n.event
|
|
256
|
+
}) ? n.cancel() : i?.(e, n);
|
|
271
257
|
},
|
|
272
|
-
...
|
|
258
|
+
...a,
|
|
273
259
|
modal: !1
|
|
274
260
|
})
|
|
275
261
|
});
|
|
@@ -281,7 +267,7 @@ function q({ ...e }) {
|
|
|
281
267
|
});
|
|
282
268
|
}
|
|
283
269
|
function J({ ...e }) {
|
|
284
|
-
let t =
|
|
270
|
+
let t = o(), n = t?.container;
|
|
285
271
|
return t != null && n == null ? null : /* @__PURE__ */ f(b.Portal, {
|
|
286
272
|
"data-slot": "drawer-portal",
|
|
287
273
|
container: n ?? void 0,
|
|
@@ -294,79 +280,78 @@ function se({ ...e }) {
|
|
|
294
280
|
...e
|
|
295
281
|
});
|
|
296
282
|
}
|
|
297
|
-
function Y({ className: e, ...
|
|
298
|
-
|
|
299
|
-
let
|
|
283
|
+
function Y({ className: e, ...t }) {
|
|
284
|
+
i();
|
|
285
|
+
let n = o();
|
|
300
286
|
return /* @__PURE__ */ f(b.Backdrop, {
|
|
301
287
|
"data-slot": "drawer-overlay",
|
|
302
288
|
forceRender: !0,
|
|
303
|
-
className:
|
|
304
|
-
...
|
|
289
|
+
className: r("\n inset-0 z-50 min-h-dvh bg-black/10\n opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))]\n transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] select-none\n data-ending-style:pointer-events-none data-ending-style:opacity-0\n data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)]\n data-snap-points:[--drawer-overlay-min-opacity:0.5]\n data-starting-style:opacity-0\n data-swiping:duration-0\n supports-backdrop-filter:backdrop-blur-xs\n supports-[-webkit-touch-callout:none]:absolute\n ", n?.container == null ? "fixed" : "absolute", e),
|
|
290
|
+
...t
|
|
305
291
|
});
|
|
306
292
|
}
|
|
307
|
-
function X({ className: e, ...
|
|
293
|
+
function X({ className: e, ...t }) {
|
|
308
294
|
return /* @__PURE__ */ f("div", {
|
|
309
295
|
"data-slot": "drawer-swipe-handle",
|
|
310
296
|
"aria-hidden": "true",
|
|
311
|
-
className:
|
|
312
|
-
...
|
|
297
|
+
className: r("\n relative z-10 flex shrink-0 cursor-grab transition-opacity duration-200\n group-data-nested-drawer-open/drawer-popup:opacity-0\n group-data-nested-drawer-swiping/drawer-popup:opacity-100\n group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3\n group-data-[swipe-axis=x]/drawer-popup:items-center\n group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full\n group-data-[swipe-axis=y]/drawer-popup:justify-center\n group-data-[swipe-direction=down]/drawer-popup:items-end\n group-data-[swipe-direction=left]/drawer-popup:order-last\n group-data-[swipe-direction=left]/drawer-popup:justify-start\n group-data-[swipe-direction=right]/drawer-popup:justify-end\n group-data-[swipe-direction=up]/drawer-popup:order-last\n group-data-[swipe-direction=up]/drawer-popup:items-start\n after:block after:shrink-0 after:rounded-full after:bg-muted\n group-data-[swipe-axis=x]/drawer-popup:after:h-24\n group-data-[swipe-axis=x]/drawer-popup:after:w-1\n group-data-[swipe-axis=y]/drawer-popup:after:h-1\n group-data-[swipe-axis=y]/drawer-popup:after:w-24\n active:cursor-grabbing\n ", e),
|
|
298
|
+
...t
|
|
313
299
|
});
|
|
314
300
|
}
|
|
315
|
-
function ce({ className: e, children:
|
|
316
|
-
let { hasSnapPoints:
|
|
301
|
+
function ce({ className: e, children: t, onKeyDown: n, ...i }) {
|
|
302
|
+
let { hasSnapPoints: a, showSwipeHandle: c, swipeDirection: l } = K(), u = o(), d = l === "down" || l === "up" ? "y" : "x";
|
|
317
303
|
return /* @__PURE__ */ p(J, {
|
|
318
304
|
"data-slot": "drawer-portal",
|
|
319
|
-
children: [/* @__PURE__ */ f(Y, { "data-snap-points":
|
|
305
|
+
children: [/* @__PURE__ */ f(Y, { "data-snap-points": a ? "" : void 0 }), /* @__PURE__ */ f(b.Viewport, {
|
|
320
306
|
"data-slot": "drawer-viewport",
|
|
321
|
-
className:
|
|
307
|
+
className: r("pointer-events-none inset-0 z-50 select-none", u?.container == null ? "fixed" : "absolute"),
|
|
322
308
|
children: /* @__PURE__ */ p(b.Popup, {
|
|
323
309
|
"data-slot": "drawer-popup",
|
|
324
310
|
"data-swipe-axis": d,
|
|
325
|
-
"data-snap-points":
|
|
326
|
-
className:
|
|
311
|
+
"data-snap-points": a ? "" : void 0,
|
|
312
|
+
className: r("\n group/drawer-popup pointer-events-auto z-50 m-(--drawer-inset,0px) flex\n h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0\n w-(--drawer-content-width,auto)\n transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)_scale(var(--stack-scale))]\n flex-col bg-popover text-sm text-popover-foreground\n transition-[transform,height,opacity,filter] duration-450\n ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none\n [interpolate-size:allow-keywords]\n data-[swipe-direction=down]:rounded-t-xl data-[swipe-direction=down]:border-t\n data-[swipe-direction=left]:rounded-r-xl data-[swipe-direction=left]:border-r\n data-[swipe-direction=right]:rounded-l-xl data-[swipe-direction=right]:border-l\n data-[swipe-direction=up]:rounded-b-xl data-[swipe-direction=up]:border-b\n ", u?.container == null ? "fixed" : "absolute", "data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95", "\n after:pointer-events-none after:absolute\n after:bg-(--drawer-bleed-background,var(--color-popover))\n data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed)\n data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed)\n data-[swipe-direction=down]:after:top-full\n data-[swipe-direction=left]:after:right-full\n data-[swipe-direction=right]:after:left-full\n data-[swipe-direction=up]:after:bottom-full\n ", "\n [--drawer-content-height:var(--drawer-height,auto)]\n data-[swipe-axis=x]:[--drawer-content-width:75%]\n data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)]\n data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh]\n data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]\n ", "\n [--bleed:3rem] [--peek:1rem]\n [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))]\n [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))]\n [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)]\n [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))]\n [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)]\n [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]\n ", "\n data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999]\n data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)]\n data-nested-drawer-swiping:duration-0\n data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]\n data-starting-style:transform-(--closed-transform)\n data-swiping:duration-0\n data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]\n ", "\n data-[swipe-axis=y]:inset-x-0\n data-[swipe-axis=y]:data-nested-drawer-open:h-(--stack-height)\n ", "data-[swipe-axis=x]:inset-y-0 data-[swipe-axis=x]:flex-row", "\n data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:origin-bottom\n data-[swipe-direction=down]:[--closed-transform:translate3d(0,calc(100%+var(--drawer-inset,0px)+2px),0)]\n data-[swipe-direction=down]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height)))]\n ", "\n data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:origin-top\n data-[swipe-direction=up]:[--closed-transform:translate3d(0,calc(-100%-var(--drawer-inset,0px)-2px),0)]\n data-[swipe-direction=up]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height)))]\n ", "\n data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:origin-left\n data-[swipe-direction=left]:[--closed-transform:translate3d(calc(-100%-var(--drawer-inset,0px)-2px),0,0)]\n data-[swipe-direction=left]:[--translate-x:calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)+(var(--stack-shrink)*100%))]\n ", "\n data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:origin-right\n data-[swipe-direction=right]:[--closed-transform:translate3d(calc(100%+var(--drawer-inset,0px)+2px),0,0)]\n data-[swipe-direction=right]:[--translate-x:calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)-(var(--stack-shrink)*100%))]\n ", e),
|
|
327
313
|
onKeyDown: (e) => {
|
|
328
|
-
|
|
314
|
+
s(e, e.currentTarget), n?.(e);
|
|
329
315
|
},
|
|
330
|
-
...
|
|
316
|
+
...i,
|
|
331
317
|
children: [c && /* @__PURE__ */ f(X, {}), /* @__PURE__ */ f(b.Content, {
|
|
332
318
|
"data-slot": "drawer-content",
|
|
333
|
-
className:
|
|
334
|
-
children:
|
|
319
|
+
className: r("\n flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain rounded-[inherit]\n transition-opacity duration-300 ease-[cubic-bezier(0.45,1.005,0,1.005)] select-text\n group-data-nested-drawer-open/drawer-popup:opacity-0\n group-data-nested-drawer-swiping/drawer-popup:opacity-100\n group-data-swiping/drawer-popup:select-none\n "),
|
|
320
|
+
children: t
|
|
335
321
|
})]
|
|
336
322
|
})
|
|
337
323
|
})]
|
|
338
324
|
});
|
|
339
325
|
}
|
|
340
|
-
function le({ className: e, ...
|
|
326
|
+
function le({ className: e, ...t }) {
|
|
341
327
|
return /* @__PURE__ */ f("div", {
|
|
342
328
|
"data-slot": "drawer-header",
|
|
343
|
-
className:
|
|
344
|
-
...
|
|
329
|
+
className: r("\n flex shrink-0 flex-col gap-0.5 p-4 pb-0\n group-data-[swipe-axis=y]/drawer-popup:text-center\n md:gap-0.5 md:text-left\n ", e),
|
|
330
|
+
...t
|
|
345
331
|
});
|
|
346
332
|
}
|
|
347
|
-
function ue({ className: e, ...
|
|
333
|
+
function ue({ className: e, ...t }) {
|
|
348
334
|
return /* @__PURE__ */ f("div", {
|
|
349
335
|
"data-slot": "drawer-footer",
|
|
350
|
-
className:
|
|
351
|
-
...
|
|
336
|
+
className: r("mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0", e),
|
|
337
|
+
...t
|
|
352
338
|
});
|
|
353
339
|
}
|
|
354
|
-
function de({ className: e, ...
|
|
340
|
+
function de({ className: e, ...t }) {
|
|
355
341
|
return /* @__PURE__ */ f(b.Title, {
|
|
356
342
|
"data-slot": "drawer-title",
|
|
357
|
-
className:
|
|
358
|
-
...
|
|
343
|
+
className: r("text-base font-medium text-foreground", e),
|
|
344
|
+
...t
|
|
359
345
|
});
|
|
360
346
|
}
|
|
361
|
-
function fe({ className: e, ...
|
|
347
|
+
function fe({ className: e, ...t }) {
|
|
362
348
|
return /* @__PURE__ */ f(b.Description, {
|
|
363
349
|
"data-slot": "drawer-description",
|
|
364
|
-
className:
|
|
365
|
-
...
|
|
350
|
+
className: r("text-sm text-balance text-muted-foreground", e),
|
|
351
|
+
...t
|
|
366
352
|
});
|
|
367
353
|
}
|
|
368
|
-
|
|
369
|
-
//#region src/ui/popover.tsx
|
|
354
|
+
// src/ui/popover.tsx
|
|
370
355
|
function pe({ ...e }) {
|
|
371
356
|
return /* @__PURE__ */ f(x.Root, {
|
|
372
357
|
"data-slot": "popover",
|
|
@@ -379,45 +364,44 @@ function me({ ...e }) {
|
|
|
379
364
|
...e
|
|
380
365
|
});
|
|
381
366
|
}
|
|
382
|
-
function he({ className: e, align:
|
|
383
|
-
let c =
|
|
367
|
+
function he({ className: e, align: t = "center", alignOffset: i = 0, side: a = "bottom", sideOffset: o = 4, ...s }) {
|
|
368
|
+
let c = n();
|
|
384
369
|
return /* @__PURE__ */ f(x.Portal, { children: /* @__PURE__ */ f(x.Positioner, {
|
|
385
|
-
align:
|
|
386
|
-
alignOffset:
|
|
387
|
-
side:
|
|
388
|
-
sideOffset:
|
|
370
|
+
align: t,
|
|
371
|
+
alignOffset: i,
|
|
372
|
+
side: a,
|
|
373
|
+
sideOffset: o,
|
|
389
374
|
className: "isolate z-50",
|
|
390
375
|
children: /* @__PURE__ */ f(x.Popup, {
|
|
391
376
|
"data-slot": "popover-content",
|
|
392
377
|
"data-theme": c,
|
|
393
|
-
className:
|
|
378
|
+
className: r("\n z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg border\n bg-popover p-2.5 text-sm text-popover-foreground shadow-lg outline-hidden\n duration-100\n data-[side=bottom]:slide-in-from-top-2\n data-[side=inline-end]:slide-in-from-left-2\n data-[side=inline-start]:slide-in-from-right-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2\n data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95\n data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\n ", e),
|
|
394
379
|
...s
|
|
395
380
|
})
|
|
396
381
|
}) });
|
|
397
382
|
}
|
|
398
|
-
function ge({ className: e, ...
|
|
383
|
+
function ge({ className: e, ...t }) {
|
|
399
384
|
return /* @__PURE__ */ f("div", {
|
|
400
385
|
"data-slot": "popover-header",
|
|
401
|
-
className:
|
|
402
|
-
...
|
|
386
|
+
className: r("flex flex-col gap-0.5 text-sm", e),
|
|
387
|
+
...t
|
|
403
388
|
});
|
|
404
389
|
}
|
|
405
|
-
function _e({ className: e, ...
|
|
390
|
+
function _e({ className: e, ...t }) {
|
|
406
391
|
return /* @__PURE__ */ f(x.Title, {
|
|
407
392
|
"data-slot": "popover-title",
|
|
408
|
-
className:
|
|
409
|
-
...
|
|
393
|
+
className: r("font-medium", e),
|
|
394
|
+
...t
|
|
410
395
|
});
|
|
411
396
|
}
|
|
412
|
-
function ve({ className: e, ...
|
|
397
|
+
function ve({ className: e, ...t }) {
|
|
413
398
|
return /* @__PURE__ */ f(x.Description, {
|
|
414
399
|
"data-slot": "popover-description",
|
|
415
|
-
className:
|
|
416
|
-
...
|
|
400
|
+
className: r("text-muted-foreground", e),
|
|
401
|
+
...t
|
|
417
402
|
});
|
|
418
403
|
}
|
|
419
|
-
|
|
420
|
-
//#region src/ui/badge.tsx
|
|
404
|
+
// src/ui/badge.tsx
|
|
421
405
|
var Z = _("\n inline-flex h-5 w-fit shrink-0 items-center gap-1 rounded-md border px-1.5 text-[11px]\n leading-none font-medium whitespace-nowrap\n [&_svg:not([class*='size-'])]:size-3\n ", {
|
|
422
406
|
variants: { variant: {
|
|
423
407
|
default: "border-transparent bg-primary text-primary-foreground",
|
|
@@ -429,31 +413,29 @@ var Z = _("\n inline-flex h-5 w-fit shrink-0 items-center gap-1 rounded-md bo
|
|
|
429
413
|
} },
|
|
430
414
|
defaultVariants: { variant: "default" }
|
|
431
415
|
});
|
|
432
|
-
function ye({ className: e, variant:
|
|
416
|
+
function ye({ className: e, variant: t, ...n }) {
|
|
433
417
|
return /* @__PURE__ */ f("span", {
|
|
434
418
|
"data-slot": "badge",
|
|
435
|
-
className:
|
|
436
|
-
...
|
|
419
|
+
className: r(Z({ variant: t }), e),
|
|
420
|
+
...n
|
|
437
421
|
});
|
|
438
422
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
function Q({ className: e, type: n, ...r }) {
|
|
423
|
+
// src/ui/input.tsx
|
|
424
|
+
function Q({ className: e, type: t, ...n }) {
|
|
442
425
|
return /* @__PURE__ */ f(ie, {
|
|
443
|
-
type:
|
|
426
|
+
type: t,
|
|
444
427
|
"data-slot": "input",
|
|
445
|
-
className:
|
|
446
|
-
...
|
|
428
|
+
className: r("\n h-8 w-full min-w-0 rounded-lg border border-input bg-background px-2.5 py-1 text-sm\n shadow-xs transition-colors outline-none\n file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium\n file:text-foreground\n placeholder:text-muted-foreground\n focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50\n disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50\n disabled:opacity-50\n aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20\n dark:bg-input/20\n dark:disabled:bg-input/80\n dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\n ", e),
|
|
429
|
+
...n
|
|
447
430
|
});
|
|
448
431
|
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
function be({ className: e, ...n }) {
|
|
432
|
+
// src/ui/input-group.tsx
|
|
433
|
+
function be({ className: e, ...t }) {
|
|
452
434
|
return /* @__PURE__ */ f("div", {
|
|
453
435
|
"data-slot": "input-group",
|
|
454
436
|
role: "group",
|
|
455
|
-
className:
|
|
456
|
-
...
|
|
437
|
+
className: r("\n group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border\n border-input transition-colors outline-none\n in-data-[slot=combobox-content]:focus-within:border-inherit\n in-data-[slot=combobox-content]:focus-within:ring-0\n has-disabled:bg-input/50 has-disabled:opacity-50\n has-[[data-slot=input-group-control]:focus-visible]:border-ring\n has-[[data-slot=input-group-control]:focus-visible]:ring-3\n has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50\n has-[[data-slot][aria-invalid=true]]:border-destructive\n has-[[data-slot][aria-invalid=true]]:ring-3\n has-[[data-slot][aria-invalid=true]]:ring-destructive/20\n has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col\n has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col\n has-[>textarea]:h-auto\n dark:bg-input/30\n dark:has-disabled:bg-input/80\n dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40\n has-[>[data-align=block-end]]:[&>input]:pt-3\n has-[>[data-align=block-start]]:[&>input]:pb-3\n has-[>[data-align=inline-end]]:[&>input]:pr-1.5\n has-[>[data-align=inline-start]]:[&>input]:pl-1.5\n ", e),
|
|
438
|
+
...t
|
|
457
439
|
});
|
|
458
440
|
}
|
|
459
441
|
var xe = _("\n flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium\n text-muted-foreground select-none\n group-data-[disabled=true]/input-group:opacity-50\n [&>kbd]:rounded-[calc(var(--radius)-5px)]\n [&>svg:not([class*='size-'])]:size-4\n ", {
|
|
@@ -465,16 +447,16 @@ var xe = _("\n flex h-auto cursor-text items-center justify-center gap-2 py-1
|
|
|
465
447
|
} },
|
|
466
448
|
defaultVariants: { align: "inline-start" }
|
|
467
449
|
});
|
|
468
|
-
function Se({ className: e, align:
|
|
450
|
+
function Se({ className: e, align: t = "inline-start", ...n }) {
|
|
469
451
|
return /* @__PURE__ */ f("div", {
|
|
470
452
|
role: "group",
|
|
471
453
|
"data-slot": "input-group-addon",
|
|
472
|
-
"data-align":
|
|
473
|
-
className:
|
|
454
|
+
"data-align": t,
|
|
455
|
+
className: r(xe({ align: t }), e),
|
|
474
456
|
onClick: (e) => {
|
|
475
457
|
e.target instanceof Element && e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
476
458
|
},
|
|
477
|
-
...
|
|
459
|
+
...n
|
|
478
460
|
});
|
|
479
461
|
}
|
|
480
462
|
var Ce = _("flex items-center gap-2 text-sm shadow-none", {
|
|
@@ -486,45 +468,44 @@ var Ce = _("flex items-center gap-2 text-sm shadow-none", {
|
|
|
486
468
|
} },
|
|
487
469
|
defaultVariants: { size: "xs" }
|
|
488
470
|
});
|
|
489
|
-
function $({ className: e, type:
|
|
490
|
-
return /* @__PURE__ */ f(
|
|
491
|
-
type:
|
|
492
|
-
"data-size":
|
|
493
|
-
variant:
|
|
494
|
-
className:
|
|
471
|
+
function $({ className: e, type: t = "button", variant: n = "ghost", size: i = "xs", ...o }) {
|
|
472
|
+
return /* @__PURE__ */ f(a, {
|
|
473
|
+
type: t,
|
|
474
|
+
"data-size": i,
|
|
475
|
+
variant: n,
|
|
476
|
+
className: r(Ce({ size: i }), e),
|
|
495
477
|
...o
|
|
496
478
|
});
|
|
497
479
|
}
|
|
498
|
-
function we({ className: e, ...
|
|
480
|
+
function we({ className: e, ...t }) {
|
|
499
481
|
return /* @__PURE__ */ f("span", {
|
|
500
|
-
className:
|
|
501
|
-
...
|
|
482
|
+
className: r("\n flex items-center gap-2 text-sm text-muted-foreground\n [&_svg]:pointer-events-none\n [&_svg:not([class*='size-'])]:size-4\n ", e),
|
|
483
|
+
...t
|
|
502
484
|
});
|
|
503
485
|
}
|
|
504
|
-
function Te({ className: e, ...
|
|
486
|
+
function Te({ className: e, ...t }) {
|
|
505
487
|
return /* @__PURE__ */ f(Q, {
|
|
506
488
|
"data-slot": "input-group-control",
|
|
507
|
-
className:
|
|
508
|
-
...
|
|
489
|
+
className: r("\n flex-1 rounded-none border-0 bg-transparent shadow-none ring-0\n focus-visible:ring-0\n disabled:bg-transparent\n aria-invalid:ring-0\n dark:bg-transparent\n dark:disabled:bg-transparent\n ", e),
|
|
490
|
+
...t
|
|
509
491
|
});
|
|
510
492
|
}
|
|
511
|
-
function Ee({ className: e, ...
|
|
512
|
-
return /* @__PURE__ */ f(
|
|
493
|
+
function Ee({ className: e, ...t }) {
|
|
494
|
+
return /* @__PURE__ */ f(c, {
|
|
513
495
|
"data-slot": "input-group-control",
|
|
514
|
-
className:
|
|
515
|
-
...
|
|
496
|
+
className: r("\n flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0\n focus-visible:ring-0\n disabled:bg-transparent\n aria-invalid:ring-0\n dark:bg-transparent\n dark:disabled:bg-transparent\n ", e),
|
|
497
|
+
...t
|
|
516
498
|
});
|
|
517
499
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
500
|
+
// src/ui/spinner.tsx
|
|
501
|
+
function De({ className: t, ...n }) {
|
|
502
|
+
let i = e();
|
|
521
503
|
return /* @__PURE__ */ f(ne, {
|
|
522
504
|
"data-slot": "spinner",
|
|
523
505
|
role: "status",
|
|
524
|
-
"aria-label":
|
|
525
|
-
className:
|
|
526
|
-
...
|
|
506
|
+
"aria-label": i("ui_loading"),
|
|
507
|
+
className: r("size-4 animate-spin", t),
|
|
508
|
+
...n
|
|
527
509
|
});
|
|
528
510
|
}
|
|
529
|
-
//#endregion
|
|
530
511
|
export { z as A, P as B, Y as C, q as D, de as E, R as F, w as G, A as H, L as I, S as J, j as K, O as L, B as M, F as N, W as O, I as P, k as R, le as S, X as T, T as U, E as V, N as W, ae as Y, oe as _, Te as a, fe as b, Q as c, pe as d, he as f, me as g, _e as h, $ as i, V as j, H as k, ye as l, ge as m, be as n, we as o, ve as p, C as q, Se as r, Ee as s, De as t, Z as u, se as v, J as w, ue as x, ce as y, M as z };
|