opsfuse-ui 0.1.22 → 0.1.23
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/.claude/skills/opsfuse-components/SKILL.md +31 -22
- package/.claude/skills/opsfuse-ui-consistency/SKILL.md +15 -15
- package/dist/components/ui/alert-dialog.d.ts +2 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/core.js +1 -1
- package/dist/extended.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{input-otp-Cbt2uaq7.js → input-otp-CBFh_Ez5.js} +11 -11
- package/dist/{toggle-group-Cwi9rLMs.js → toggle-group-UI-J1H4k.js} +3 -3
- package/package.json +1 -1
|
@@ -189,7 +189,13 @@ import { UserIcon, LogOutIcon } from "lucide-react";
|
|
|
189
189
|
groupLabel="Options"
|
|
190
190
|
options={[
|
|
191
191
|
{ label: "Profile", value: "profile", icon: <UserIcon /> },
|
|
192
|
-
{
|
|
192
|
+
{
|
|
193
|
+
label: "Logout",
|
|
194
|
+
value: "logout",
|
|
195
|
+
icon: <LogOutIcon />,
|
|
196
|
+
iconPosition: "inline-end",
|
|
197
|
+
separator: true,
|
|
198
|
+
},
|
|
193
199
|
]}
|
|
194
200
|
/>;
|
|
195
201
|
```
|
|
@@ -292,7 +298,7 @@ Portal target is `.opsfuse-ui` root (via `OPSFUSE_THEME_SCOPE`). Overlay uses `b
|
|
|
292
298
|
|
|
293
299
|
**Internal primitives** (Radix compound, not re-exported from `alert-dialog.tsx`): `src/components/ui/shadcn/shadcn-alert-dialog.tsx` — used only to render the dialog opened by `confirm()`.
|
|
294
300
|
|
|
295
|
-
`<OpsfuseThemeProvider>` and `<OpsfuseRoot />` mount the full root stack (`ConfirmationDialogProvider`, tooltip/alert/dialog/sheet/slider providers, and `Toaster`), so `confirm()` and other imperative APIs work without duplicating providers in `main.tsx`. For isolated unit tests outside that tree, mount only the providers your component needs (or wrap with `OpsfuseThemeProvider`). Call `confirm({ title, description?, confirmText?, cancelText?, onConfirm?, onCancel? })` for destructive confirmations (delete, reset). `onConfirm` may be async; the dialog closes after the promise settles.
|
|
301
|
+
`<OpsfuseThemeProvider>` and `<OpsfuseRoot />` mount the full root stack (`ConfirmationDialogProvider`, tooltip/alert/dialog/sheet/slider providers, and `Toaster`), so `confirm()` and other imperative APIs work without duplicating providers in `main.tsx`. For isolated unit tests outside that tree, mount only the providers your component needs (or wrap with `OpsfuseThemeProvider`). Call `confirm({ title, description?, confirmText?, cancelText?, hideCancel?, hideConfirm?, onConfirm?, onCancel? })` for destructive confirmations (delete, reset). Set `hideCancel` or `hideConfirm` to omit that footer button. `onConfirm` may be async; the dialog closes after the promise settles.
|
|
296
302
|
|
|
297
303
|
**Storybook:** `src/stories/alert-dialog.stories.tsx` documents this API only — no separate story file for `shadcn-alert-dialog.tsx`.
|
|
298
304
|
|
|
@@ -594,8 +600,8 @@ import { User, Shield, Bell } from "opsfuse-ui/icons";
|
|
|
594
600
|
|
|
595
601
|
<Tabs defaultValue="profile" orientation="vertical" className="w-full gap-6">
|
|
596
602
|
{/* Sidebar */}
|
|
597
|
-
<TabsList
|
|
598
|
-
variant="line"
|
|
603
|
+
<TabsList
|
|
604
|
+
variant="line"
|
|
599
605
|
className="w-[250px] shrink-0 flex flex-row md:flex-col h-auto md:h-full justify-start gap-1 bg-muted/10 p-4 overflow-y-auto"
|
|
600
606
|
>
|
|
601
607
|
<TabsTrigger value="profile">
|
|
@@ -613,10 +619,8 @@ import { User, Shield, Bell } from "opsfuse-ui/icons";
|
|
|
613
619
|
<TabsContent value="profile" className="flex-1">
|
|
614
620
|
Profile Settings Content
|
|
615
621
|
</TabsContent>
|
|
616
|
-
<TabsContent value="security">
|
|
617
|
-
|
|
618
|
-
</TabsContent>
|
|
619
|
-
</Tabs>
|
|
622
|
+
<TabsContent value="security">Security Settings Content</TabsContent>
|
|
623
|
+
</Tabs>;
|
|
620
624
|
```
|
|
621
625
|
|
|
622
626
|
> [!TIP]
|
|
@@ -755,19 +759,19 @@ Simplified wrapper around `CCombobox` with a button trigger for single-select an
|
|
|
755
759
|
|
|
756
760
|
**Props:**
|
|
757
761
|
|
|
758
|
-
| Prop
|
|
759
|
-
|
|
|
760
|
-
| `items`
|
|
761
|
-
| `multiple`
|
|
762
|
-
| `value`
|
|
763
|
-
| `defaultValue`
|
|
764
|
-
| `placeholder`
|
|
765
|
-
| `emptyMessage`
|
|
766
|
-
| `disabled`
|
|
767
|
-
| `triggerWidth`
|
|
768
|
-
| `label`
|
|
769
|
-
| `placeholderIcon` | `React.ReactNode`
|
|
770
|
-
| `onValueChange`
|
|
762
|
+
| Prop | Type | Default | Description |
|
|
763
|
+
| ----------------- | ----------------------------------- | ------------------- | ------------------------------------------------------------------------- |
|
|
764
|
+
| `items` | `AutocompleteItem[]` | required | Array of `{ value, label, ... }` objects |
|
|
765
|
+
| `multiple` | `boolean` | `false` | Switch to multi-select with chips |
|
|
766
|
+
| `value` | `T \| T[]` | — | Controlled selected value (`T[]` when `multiple`) |
|
|
767
|
+
| `defaultValue` | `T \| T[]` | — | Uncontrolled default value (`T[]` when `multiple`) |
|
|
768
|
+
| `placeholder` | `string` | `"Select..."` | Placeholder text when nothing selected |
|
|
769
|
+
| `emptyMessage` | `string` | `"No items found."` | Message shown when filter returns no results |
|
|
770
|
+
| `disabled` | `boolean` | `false` | Disables the trigger / chips input |
|
|
771
|
+
| `triggerWidth` | `string` | `"w-64"` | Tailwind width class applied to trigger or chips container |
|
|
772
|
+
| `label` | `string` | — | Label rendered above the field |
|
|
773
|
+
| `placeholderIcon` | `React.ReactNode` | — | Icon rendered at the start of the trigger/chips field (inline-start only) |
|
|
774
|
+
| `onValueChange` | `(value: T \| null \| T[]) => void` | — | Callback — `T \| null` for single, `T[]` for multiple |
|
|
771
775
|
|
|
772
776
|
`AutocompleteItem` interface: `{ value: string; label: string; [key: string]: string }` — extend with extra fields as needed.
|
|
773
777
|
|
|
@@ -1404,7 +1408,12 @@ const Icon = Icons[name as keyof typeof Icons] as Icons.LucideIcon;
|
|
|
1404
1408
|
Import any date-fns function from `opsfuse-ui/date-fns` — no need to install `date-fns` directly. The library pins the version, so the host and library always agree.
|
|
1405
1409
|
|
|
1406
1410
|
```tsx
|
|
1407
|
-
import {
|
|
1411
|
+
import {
|
|
1412
|
+
format,
|
|
1413
|
+
addDays,
|
|
1414
|
+
parseISO,
|
|
1415
|
+
differenceInDays,
|
|
1416
|
+
} from "opsfuse-ui/date-fns";
|
|
1408
1417
|
|
|
1409
1418
|
const today = new Date();
|
|
1410
1419
|
const next = addDays(today, 7);
|
|
@@ -99,7 +99,7 @@ Imperative APIs and where they are satisfied:
|
|
|
99
99
|
| `showAlert({ title, description, variant })` | `<AlertProvider />` inside theme |
|
|
100
100
|
| `openDialog({ title, children })` | `<DialogProvider />` inside theme |
|
|
101
101
|
| `openSheet({ title, children, side })` | `<SheetProvider />` inside theme |
|
|
102
|
-
| `confirm({ title, description?, confirmText?, cancelText?, onConfirm?, onCancel? })` | `<ConfirmationDialogProvider />` inside theme |
|
|
102
|
+
| `confirm({ title, description?, confirmText?, cancelText?, hideCancel?, hideConfirm?, onConfirm?, onCancel? })` | `<ConfirmationDialogProvider />` inside theme |
|
|
103
103
|
| `openSlider({ title, value, min, max, ... })` | `<SliderDialogProvider />` inside theme |
|
|
104
104
|
| `<Tooltip>` anywhere in the tree | `<TooltipProvider />` inside theme |
|
|
105
105
|
|
|
@@ -153,17 +153,17 @@ Write stories for all new components. Test in both light and dark mode. Page-lev
|
|
|
153
153
|
|
|
154
154
|
## 6. DO / DON'T
|
|
155
155
|
|
|
156
|
-
| ✅ DO
|
|
157
|
-
|
|
|
158
|
-
| Use design tokens for all colors
|
|
159
|
-
| Use `cn()` for all className merging
|
|
160
|
-
| Use `cva()` for multi-variant components
|
|
161
|
-
| Add `data-slot` to every component part
|
|
162
|
-
| Use `<Field>` compound for form inputs
|
|
163
|
-
| Import icons from `opsfuse-ui/icons`
|
|
164
|
-
| Import dates from `opsfuse-ui/date-fns`
|
|
165
|
-
| Use `.transition-micro/smooth/data` motion classes
|
|
166
|
-
| Use `confirm()` before destructive actions
|
|
167
|
-
| Use spacing tokens `--space-1` through `--space-10`
|
|
168
|
-
| Write stories for all new components
|
|
169
|
-
| Test in light AND dark mode
|
|
156
|
+
| ✅ DO | ❌ DON'T |
|
|
157
|
+
| --------------------------------------------------- | -------------------------------------------------- |
|
|
158
|
+
| Use design tokens for all colors | Use arbitrary hex like `#ff0000` or `bg-red-500` |
|
|
159
|
+
| Use `cn()` for all className merging | String-concatenate classNames directly |
|
|
160
|
+
| Use `cva()` for multi-variant components | Inline ternary chains for variants |
|
|
161
|
+
| Add `data-slot` to every component part | Skip `data-slot` on wrapper/part elements |
|
|
162
|
+
| Use `<Field>` compound for form inputs | Lay out label + input with raw divs |
|
|
163
|
+
| Import icons from `opsfuse-ui/icons` | Import from `lucide-react` or other icon libraries |
|
|
164
|
+
| Import dates from `opsfuse-ui/date-fns` | Install/import `date-fns` directly in host apps |
|
|
165
|
+
| Use `.transition-micro/smooth/data` motion classes | Hardcode `transition duration-200` everywhere |
|
|
166
|
+
| Use `confirm()` before destructive actions | Skip confirmation on destructive button clicks |
|
|
167
|
+
| Use spacing tokens `--space-1` through `--space-10` | Use arbitrary gaps like `gap-[13px]` |
|
|
168
|
+
| Write stories for all new components | Add components without Storybook coverage |
|
|
169
|
+
| Test in light AND dark mode | Only check light mode |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAIF,mNAAmN;AACnN,wBAAgB,OAAO,CAAC,OAAO,EAAE,mBAAmB,QAEnD;AAED,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAIF,mNAAmN;AACnN,wBAAgB,OAAO,CAAC,OAAO,EAAE,mBAAmB,QAEnD;AAED,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,qBAmFA"}
|
|
@@ -2,7 +2,7 @@ declare const Empty: ({ title, description, actionLabel, onAction, icon, childre
|
|
|
2
2
|
title?: string;
|
|
3
3
|
description: string;
|
|
4
4
|
actionLabel?: string;
|
|
5
|
-
onAction:
|
|
5
|
+
onAction?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
6
|
icon?: React.ReactNode | null;
|
|
7
7
|
children?: React.ReactNode | null;
|
|
8
8
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/ui/empty.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,KAAK,GAAI,2EAQZ;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/ui/empty.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,KAAK,GAAI,2EAQZ;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC5D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,gCAkBA,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,eAAe,KAAK,CAAC"}
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { A as e, B as t, C as n, F as r, I as i, L as a, M as o, N as s, R as c, S as l, _ as u, a as d, b as f, c as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, v as O, x as k, y as A, z as j } from "./input-group-COKxQf1K.js";
|
|
3
|
-
import { $ as M, $n as N, $r as P, $t as F, A as I, An as L, Ar as R, At as z, B, Bn as V, Br as H, Bt as U, C as W, Cn as G, Cr as K, Ct as q, D as J, Dn as Y, Dr as X, Dt as Z, E as Q, En as $, Er as ee, Et as te, F as ne, Fn as re, Fr as ie, Ft as ae, G as oe, Gn as se, Gr as ce, Gt as le, H as ue, Hn as de, Hr as fe, Ht as pe, I as me, In as he, Ir as ge, It as _e, J as ve, Jn as ye, Jr as be, Jt as xe, K as Se, Kn as Ce, Kr as we, Kt as Te, L as Ee, Ln as De, Lr as Oe, Lt as ke, M as Ae, Mn as je, Mr as Me, Mt as Ne, N as Pe, Nn as Fe, Nr as Ie, Nt as Le, O as Re, On as ze, Or as Be, Ot as Ve, P as He, Pn as Ue, Pr as We, Pt as Ge, Q as Ke, Qn as qe, Qr as Je, Qt as Ye, R as Xe, Rn as Ze, Rr as Qe, Rt as $e, S as et, Sn as tt, Sr as nt, St as rt, T as it, Tn as at, Tr as ot, Tt as st, U as ct, Un as lt, Ur as ut, Ut as dt, V as ft, Vn as pt, Vr as mt, Vt as ht, W as gt, Wn as _t, Wr as vt, Wt as yt, X as bt, Xn as xt, Xr as St, Xt as Ct, Y as wt, Yn as Tt, Yr as Et, Yt as Dt, Z as Ot, Zn as kt, Zr as At, Zt as jt, _ as Mt, _n as Nt, _r as Pt, _t as Ft, a as It, ai as Lt, an as Rt, ar as zt, at as Bt, b as Vt, bn as Ht, br as Ut, bt as Wt, c as Gt, ci as Kt, cn as qt, cr as Jt, ct as Yt, d as Xt, di as Zt, dn as Qt, dr as $t, dt as en, ei as tn, en as nn, er as rn, et as an, f as on, fn as sn, fr as cn, ft as ln, g as un, gn as dn, gr as fn, gt as pn, h as mn, hn, hr as gn, ht as _n, i as vn, ii as yn, in as bn, ir as xn, it as Sn, j as Cn, jn as wn, jr as Tn, jt as En, k as Dn, kn as On, kr as kn, kt as An, l as jn, li as Mn, ln as Nn, lr as Pn, lt as Fn, m as In, mn as Ln, mr as Rn, mt as zn, n as Bn, ni as Vn, nn as Hn, nr as Un, nt as Wn, o as Gn, oi as Kn, on as qn, or as Jn, ot as Yn, p as Xn, pn as Zn, pr as Qn, pt as $n, q as er, qn as tr, qr as nr, qt as rr, r as ir, ri as ar, rn as or, rr as sr, rt as cr, s as lr, si as ur, sn as dr, sr as fr, st as pr, t as mr, ti as hr, tn as gr, tr as _r, tt as vr, u as yr, ui as br, un as xr, ur as Sr, ut as Cr, v as wr, vn as Tr, vr as Er, vt as Dr, w as Or, wn as kr, wr as Ar, wt as jr, x as Mr, xn as Nr, xr as Pr, xt as Fr, y as Ir, yn as Lr, yr as Rr, yt as zr, z as Br, zn as Vr, zr as Hr, zt as Ur } from "./toggle-group-
|
|
3
|
+
import { $ as M, $n as N, $r as P, $t as F, A as I, An as L, Ar as R, At as z, B, Bn as V, Br as H, Bt as U, C as W, Cn as G, Cr as K, Ct as q, D as J, Dn as Y, Dr as X, Dt as Z, E as Q, En as $, Er as ee, Et as te, F as ne, Fn as re, Fr as ie, Ft as ae, G as oe, Gn as se, Gr as ce, Gt as le, H as ue, Hn as de, Hr as fe, Ht as pe, I as me, In as he, Ir as ge, It as _e, J as ve, Jn as ye, Jr as be, Jt as xe, K as Se, Kn as Ce, Kr as we, Kt as Te, L as Ee, Ln as De, Lr as Oe, Lt as ke, M as Ae, Mn as je, Mr as Me, Mt as Ne, N as Pe, Nn as Fe, Nr as Ie, Nt as Le, O as Re, On as ze, Or as Be, Ot as Ve, P as He, Pn as Ue, Pr as We, Pt as Ge, Q as Ke, Qn as qe, Qr as Je, Qt as Ye, R as Xe, Rn as Ze, Rr as Qe, Rt as $e, S as et, Sn as tt, Sr as nt, St as rt, T as it, Tn as at, Tr as ot, Tt as st, U as ct, Un as lt, Ur as ut, Ut as dt, V as ft, Vn as pt, Vr as mt, Vt as ht, W as gt, Wn as _t, Wr as vt, Wt as yt, X as bt, Xn as xt, Xr as St, Xt as Ct, Y as wt, Yn as Tt, Yr as Et, Yt as Dt, Z as Ot, Zn as kt, Zr as At, Zt as jt, _ as Mt, _n as Nt, _r as Pt, _t as Ft, a as It, ai as Lt, an as Rt, ar as zt, at as Bt, b as Vt, bn as Ht, br as Ut, bt as Wt, c as Gt, ci as Kt, cn as qt, cr as Jt, ct as Yt, d as Xt, di as Zt, dn as Qt, dr as $t, dt as en, ei as tn, en as nn, er as rn, et as an, f as on, fn as sn, fr as cn, ft as ln, g as un, gn as dn, gr as fn, gt as pn, h as mn, hn, hr as gn, ht as _n, i as vn, ii as yn, in as bn, ir as xn, it as Sn, j as Cn, jn as wn, jr as Tn, jt as En, k as Dn, kn as On, kr as kn, kt as An, l as jn, li as Mn, ln as Nn, lr as Pn, lt as Fn, m as In, mn as Ln, mr as Rn, mt as zn, n as Bn, ni as Vn, nn as Hn, nr as Un, nt as Wn, o as Gn, oi as Kn, on as qn, or as Jn, ot as Yn, p as Xn, pn as Zn, pr as Qn, pt as $n, q as er, qn as tr, qr as nr, qt as rr, r as ir, ri as ar, rn as or, rr as sr, rt as cr, s as lr, si as ur, sn as dr, sr as fr, st as pr, t as mr, ti as hr, tn as gr, tr as _r, tt as vr, u as yr, ui as br, un as xr, ur as Sr, ut as Cr, v as wr, vn as Tr, vr as Er, vt as Dr, w as Or, wn as kr, wr as Ar, wt as jr, x as Mr, xn as Nr, xr as Pr, xt as Fr, y as Ir, yn as Lr, yr as Rr, yt as zr, z as Br, zn as Vr, zr as Hr, zt as Ur } from "./toggle-group-UI-J1H4k.js";
|
|
4
4
|
export { Rn as Accordion, gn as AccordionContent, fn as AccordionItem, Pt as AccordionTrigger, tn as Alert, hr as AlertAction, Vn as AlertDescription, fe as AlertDialog, ut as AlertDialogAction, vt as AlertDialogCancel, ce as AlertDialogContent, we as AlertDialogDescription, nr as AlertDialogFooter, be as AlertDialogHeader, Et as AlertDialogMedia, St as AlertDialogOverlay, At as AlertDialogPortal, Je as AlertDialogTitle, P as AlertDialogTrigger, ar as AlertProvider, yn as AlertTitle, Qn as AspectRatio, cn as Avatar, Sr as Badge, sr as Breadcrumb, xn as BreadcrumbEllipsis, zt as BreadcrumbItem, Jn as BreadcrumbLink, fr as BreadcrumbList, Jt as BreadcrumbPage, Pn as BreadcrumbSeparator, a as Button, qe as ButtonGroup, N as ButtonGroupSeparator, rn as ButtonGroupText, se as Card, Ce as CardAction, tr as CardContent, ye as CardDescription, Tt as CardFooter, xt as CardHeader, kt as CardTitle, _t as Checkbox, pt as Collapsible, de as CollapsibleContent, lt as CollapsibleTrigger, H as ConfirmationDialogProvider, $ as ContextMenu, Y as ContextMenuCheckboxItem, ze as ContextMenuContent, On as ContextMenuGroup, L as ContextMenuItem, wn as ContextMenuLabel, je as ContextMenuPortal, Fe as ContextMenuRadioGroup, Ue as ContextMenuRadioItem, re as ContextMenuSeparator, he as ContextMenuShortcut, De as ContextMenuSub, Ze as ContextMenuSubContent, Vr as ContextMenuSubTrigger, V as ContextMenuTrigger, r as DEFAULT_OPSFUSE_BRAND_THEME, m as Dialog, w as DialogClose, x as DialogContent, g as DialogDescription, h as DialogFooter, u as DialogHeader, O as DialogOverlay, A as DialogPortal, f as DialogProvider, k as DialogTitle, l as DialogTrigger, kr as DirectionProvider, G as DropdownMenu, tt as Empty, sn as Field, Zn as FieldContent, Ln as FieldDescription, hn as FieldError, dn as FieldGroup, Nt as FieldLabel, Tr as FieldLegend, Lr as FieldSeparator, Ht as FieldSet, Nr as FieldTitle, Nn as HoverCard, xr as HoverCardContent, Qt as HoverCardTrigger, p as Input, D as InputGroup, S as InputGroupAddon, T as InputGroupButton, _ as InputGroupInput, d as InputGroupText, C as InputGroupTextarea, Ye as Item, F as ItemActions, nn as ItemContent, gr as ItemDescription, Hn as ItemFooter, or as ItemGroup, bn as ItemHeader, Rt as ItemMedia, qn as ItemSeparator, dr as ItemTitle, Ct as Kbd, jt as KbdGroup, b as Label, Ge as Menubar, ae as MenubarCheckboxItem, _e as MenubarContent, ke as MenubarGroup, $e as MenubarItem, Ur as MenubarLabel, U as MenubarMenu, ht as MenubarPortal, pe as MenubarRadioGroup, dt as MenubarRadioItem, yt as MenubarSeparator, le as MenubarShortcut, Te as MenubarSub, rr as MenubarSubContent, xe as MenubarSubTrigger, Dt as MenubarTrigger, st as NavigationMenu, te as NavigationMenuContent, Z as NavigationMenuIndicator, Ve as NavigationMenuItem, An as NavigationMenuLink, z as NavigationMenuList, En as NavigationMenuTrigger, Ne as NavigationMenuViewport, i as OPSFUSE_BRAND_THEMES, s as OPSFUSE_THEME_SCOPE, Rr as OpsfuseRoot, Ut as OpsfuseThemeProvider, qt as PageHeader, Dr as Pagination, zr as PaginationContent, Wt as PaginationEllipsis, Fr as PaginationItem, rt as PaginationLink, q as PaginationNext, jr as PaginationPrevious, Ft as PaginationWrapper, Cr as Popover, en as PopoverAnchor, ln as PopoverContent, $n as PopoverDescription, zn as PopoverHeader, _n as PopoverTitle, pn as PopoverTrigger, Fn as Progress, pr as RadioGroup, Yt as RadioGroupItem, Zt as RecruitSmartly, Sn as ResizableHandle, Bt as ResizablePanel, Yn as ResizablePanelGroup, oe as SSelect, Ar as STooltip, Wn as ScrollArea, cr as ScrollBar, gt as Select, Se as SelectContent, er as SelectField, ve as SelectGroup, wt as SelectItem, bt as SelectLabel, Ot as SelectScrollDownButton, Ke as SelectScrollUpButton, M as SelectSeparator, an as SelectTrigger, vr as SelectValue, Un as Separator, R as Sheet, Tn as SheetClose, Me as SheetContent, Ie as SheetDescription, We as SheetFooter, ie as SheetHeader, ge as SheetProvider, Oe as SheetTitle, Qe as SheetTrigger, Ir as Sidebar, Vt as SidebarContent, Mr as SidebarFooter, et as SidebarGroup, W as SidebarGroupAction, Or as SidebarGroupContent, it as SidebarGroupLabel, Q as SidebarHeader, J as SidebarInput, Re as SidebarInset, Dn as SidebarMenu, I as SidebarMenuAction, Cn as SidebarMenuBadge, Ae as SidebarMenuButton, Pe as SidebarMenuItem, He as SidebarMenuSkeleton, ne as SidebarMenuSub, me as SidebarMenuSubButton, Ee as SidebarMenuSubItem, Xe as SidebarProvider, Br as SidebarRail, B as SidebarSeparator, ft as SidebarTrigger, ct as Skeleton, br as SkillReady, X as Slider, Be as SliderDialogProvider, j as Spinner, wr as Switch, yr as Table, Xt as TableBody, on as TableCaption, Xn as TableCell, In as TableFooter, mn as TableHead, un as TableHeader, Mt as TableRow, Gn as Tabs, It as TabsComponent, lr as TabsContent, Gt as TabsList, jn as TabsTrigger, Mn as TalentScan, E as Textarea, ir as Toggle, mr as ToggleGroup, Bn as ToggleGroupItem, nt as Tooltip, K as TooltipContent, ot as TooltipProvider, ee as TooltipTrigger, Kt as Verity, ur as WorkLog, $t as badgeVariants, _r as buttonGroupVariants, c as buttonVariants, t as cn, mt as confirm, Lt as dismissAlert, y as mergeOpsfusePortalSurface, Le as navigationMenuTriggerStyle, n as openDialog, Hr as openSheet, kn as openSlider, e as opsfuseBrandThemeClass, Kn as showAlert, vn as toggleVariants, at as useDirection, Er as useIsMobile, Pr as useLinkComponent, v as useOpsfuseBrandTheme, o as useOpsfusePortalSurface, ue as useSidebar };
|
package/dist/extended.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as e, u as t } from "./input-group-COKxQf1K.js";
|
|
3
|
-
import { $ as n, A as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, W as T, X as E, Y as D, Z as O, _ as k, a as A, b as j, c as M, d as N, et as P, f as F, g as I, h as L, i as R, j as z, k as B, l as V, m as H, n as U, nt as W, o as G, p as K, q, r as J, s as Y, t as X, tt as Z, u as Q, v as $, w as ee, x as te, y as ne, z as re } from "./input-otp-
|
|
3
|
+
import { $ as n, A as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, W as T, X as E, Y as D, Z as O, _ as k, a as A, b as j, c as M, d as N, et as P, f as F, g as I, h as L, i as R, j as z, k as B, l as V, m as H, n as U, nt as W, o as G, p as K, q, r as J, s as Y, t as X, tt as Z, u as Q, v as $, w as ee, x as te, y as ne, z as re } from "./input-otp-CBFh_Ez5.js";
|
|
4
4
|
export { re as CCombobox, d as Calendar, m as CalendarDayButton, r as Carousel, z as CarouselContent, h as CarouselItem, g as CarouselNext, v as CarouselPrevious, ee as ChartContainer, S as ChartLegend, s as ChartLegendContent, o as ChartStyle, _ as ChartTooltip, B as ChartTooltipContent, b as Combobox, i as ComboboxChip, w as ComboboxChips, u as ComboboxChipsInput, C as ComboboxCollection, T as ComboboxContent, l as ComboboxEmpty, p as ComboboxField, q as ComboboxGroup, f as ComboboxInput, D as ComboboxItem, E as ComboboxLabel, O as ComboboxList, y as ComboboxSeparator, n as ComboboxStatus, P as ComboboxTrigger, Z as ComboboxValue, L as Command, I as CommandDialog, k as CommandEmpty, $ as CommandGroup, ne as CommandInput, j as CommandItem, te as CommandList, x as CommandSeparator, a as CommandShortcut, A as Drawer, G as DrawerClose, Y as DrawerContent, M as DrawerDescription, V as DrawerFooter, Q as DrawerHeader, N as DrawerOverlay, F as DrawerPortal, K as DrawerTitle, H as DrawerTrigger, X as InputOTP, U as InputOTPGroup, J as InputOTPSeparator, R as InputOTPSlot, t as Toaster, e as toast, c as useCarousel, W as useComboboxAnchor };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { A as e, B as t, C as n, F as r, I as i, L as a, M as o, N as s, R as c, S as l, _ as u, a as d, b as ee, c as te, d as ne, f as re, g as ie, h as ae, i as oe, j as se, k as ce, l as f, m as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge, v as _e, x as p, y as m, z as h } from "./input-group-COKxQf1K.js";
|
|
3
|
-
import { $ as g, $n as _, $r as v, $t as y, A as b, An as x, Ar as S, At as C, B as w, Bn as T, Br as E, Bt as D, C as O, Cn as k, Cr as A, Ct as j, D as M, Dn as N, Dr as P, Dt as F, E as I, En as ve, Er as ye, Et as be, F as xe, Fn as Se, Fr as Ce, Ft as we, G as Te, Gn as Ee, Gr as De, Gt as Oe, H as ke, Hn as Ae, Hr as je, Ht as Me, I as Ne, In as Pe, Ir as Fe, It as Ie, J as Le, Jn as Re, Jr as ze, Jt as Be, K as Ve, Kn as He, Kr as Ue, Kt as We, L as Ge, Ln as Ke, Lr as qe, Lt as Je, M as Ye, Mn as Xe, Mr as Ze, Mt as Qe, N as $e, Nn as et, Nr as tt, Nt as nt, O as rt, On as it, Or as at, Ot as ot, P as st, Pn as ct, Pr as lt, Pt as ut, Q as dt, Qn as ft, Qr as pt, Qt as mt, R as ht, Rn as gt, Rr as _t, Rt as vt, S as yt, Sn as bt, Sr as xt, St, T as Ct, Tn as wt, Tr as Tt, Tt as Et, U as Dt, Un as Ot, Ur as kt, Ut as At, V as jt, Vn as Mt, Vr as Nt, Vt as Pt, W as Ft, Wn as It, Wr as Lt, Wt as Rt, X as zt, Xn as Bt, Xr as Vt, Xt as Ht, Y as Ut, Yn as Wt, Yr as Gt, Yt as Kt, Z as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _n as Qt, _r as $t, _t as en, a as tn, ai as nn, an as rn, ar as an, at as on, b as sn, bn as cn, br as ln, bt as un, c as dn, ci as fn, cn as pn, cr as mn, ct as hn, d as gn, di as _n, dn as vn, dr as yn, dt as bn, ei as xn, en as Sn, er as Cn, et as wn, f as Tn, fn as En, fr as Dn, ft as On, g as kn, gn as An, gr as jn, gt as Mn, h as Nn, hn as Pn, hr as Fn, ht as In, i as Ln, ii as Rn, in as zn, ir as Bn, it as Vn, j as Hn, jn as Un, jr as L, jt as Wn, k as Gn, kn as Kn, kr as qn, kt as Jn, l as Yn, li as Xn, ln as Zn, lr as Qn, lt as $n, m as er, mn as tr, mr as nr, mt as rr, n as ir, ni as ar, nn as or, nr as sr, nt as cr, o as lr, oi as ur, on as dr, or as fr, ot as pr, p as mr, pn as hr, pr as gr, pt as _r, q as vr, qn as yr, qr as br, qt as xr, r as Sr, ri as Cr, rn as wr, rr as Tr, rt as Er, s as Dr, si as Or, sn as kr, sr as Ar, st as jr, t as Mr, ti as Nr, tn as Pr, tr as Fr, tt as Ir, u as Lr, ui as Rr, un as zr, ur as Br, ut as Vr, v as Hr, vn as Ur, vr as Wr, vt as Gr, w as Kr, wn as qr, wr as Jr, wt as Yr, x as Xr, xn as Zr, xr as Qr, xt as $r, y as ei, yn as ti, yr as ni, yt as ri, z as ii, zn as ai, zr as oi, zt as si } from "./toggle-group-
|
|
4
|
-
import { $ as ci, A as li, B as R, C as ui, D as di, E as fi, F as pi, G as z, H as B, I as mi, J as V, K as hi, L as gi, M as _i, N as vi, O as yi, P as bi, Q as xi, R as Si, S as Ci, T as wi, U as Ti, V as H, W as U, X as Ei, Y as W, Z as G, _ as Di, a as Oi, b as ki, c as Ai, d as ji, et as K, f as Mi, g as Ni, h as Pi, i as Fi, j as Ii, k as Li, l as Ri, m as zi, n as Bi, nt as q, o as Vi, p as Hi, q as Ui, r as Wi, s as Gi, t as Ki, tt as J, u as qi, v as Ji, w as Yi, x as Xi, y as Zi, z as Y } from "./input-otp-
|
|
3
|
+
import { $ as g, $n as _, $r as v, $t as y, A as b, An as x, Ar as S, At as C, B as w, Bn as T, Br as E, Bt as D, C as O, Cn as k, Cr as A, Ct as j, D as M, Dn as N, Dr as P, Dt as F, E as I, En as ve, Er as ye, Et as be, F as xe, Fn as Se, Fr as Ce, Ft as we, G as Te, Gn as Ee, Gr as De, Gt as Oe, H as ke, Hn as Ae, Hr as je, Ht as Me, I as Ne, In as Pe, Ir as Fe, It as Ie, J as Le, Jn as Re, Jr as ze, Jt as Be, K as Ve, Kn as He, Kr as Ue, Kt as We, L as Ge, Ln as Ke, Lr as qe, Lt as Je, M as Ye, Mn as Xe, Mr as Ze, Mt as Qe, N as $e, Nn as et, Nr as tt, Nt as nt, O as rt, On as it, Or as at, Ot as ot, P as st, Pn as ct, Pr as lt, Pt as ut, Q as dt, Qn as ft, Qr as pt, Qt as mt, R as ht, Rn as gt, Rr as _t, Rt as vt, S as yt, Sn as bt, Sr as xt, St, T as Ct, Tn as wt, Tr as Tt, Tt as Et, U as Dt, Un as Ot, Ur as kt, Ut as At, V as jt, Vn as Mt, Vr as Nt, Vt as Pt, W as Ft, Wn as It, Wr as Lt, Wt as Rt, X as zt, Xn as Bt, Xr as Vt, Xt as Ht, Y as Ut, Yn as Wt, Yr as Gt, Yt as Kt, Z as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _n as Qt, _r as $t, _t as en, a as tn, ai as nn, an as rn, ar as an, at as on, b as sn, bn as cn, br as ln, bt as un, c as dn, ci as fn, cn as pn, cr as mn, ct as hn, d as gn, di as _n, dn as vn, dr as yn, dt as bn, ei as xn, en as Sn, er as Cn, et as wn, f as Tn, fn as En, fr as Dn, ft as On, g as kn, gn as An, gr as jn, gt as Mn, h as Nn, hn as Pn, hr as Fn, ht as In, i as Ln, ii as Rn, in as zn, ir as Bn, it as Vn, j as Hn, jn as Un, jr as L, jt as Wn, k as Gn, kn as Kn, kr as qn, kt as Jn, l as Yn, li as Xn, ln as Zn, lr as Qn, lt as $n, m as er, mn as tr, mr as nr, mt as rr, n as ir, ni as ar, nn as or, nr as sr, nt as cr, o as lr, oi as ur, on as dr, or as fr, ot as pr, p as mr, pn as hr, pr as gr, pt as _r, q as vr, qn as yr, qr as br, qt as xr, r as Sr, ri as Cr, rn as wr, rr as Tr, rt as Er, s as Dr, si as Or, sn as kr, sr as Ar, st as jr, t as Mr, ti as Nr, tn as Pr, tr as Fr, tt as Ir, u as Lr, ui as Rr, un as zr, ur as Br, ut as Vr, v as Hr, vn as Ur, vr as Wr, vt as Gr, w as Kr, wn as qr, wr as Jr, wt as Yr, x as Xr, xn as Zr, xr as Qr, xt as $r, y as ei, yn as ti, yr as ni, yt as ri, z as ii, zn as ai, zr as oi, zt as si } from "./toggle-group-UI-J1H4k.js";
|
|
4
|
+
import { $ as ci, A as li, B as R, C as ui, D as di, E as fi, F as pi, G as z, H as B, I as mi, J as V, K as hi, L as gi, M as _i, N as vi, O as yi, P as bi, Q as xi, R as Si, S as Ci, T as wi, U as Ti, V as H, W as U, X as Ei, Y as W, Z as G, _ as Di, a as Oi, b as ki, c as Ai, d as ji, et as K, f as Mi, g as Ni, h as Pi, i as Fi, j as Ii, k as Li, l as Ri, m as zi, n as Bi, nt as q, o as Vi, p as Hi, q as Ui, r as Wi, s as Gi, t as Ki, tt as J, u as qi, v as Ji, w as Yi, x as Xi, y as Zi, z as Y } from "./input-otp-CBFh_Ez5.js";
|
|
5
5
|
import * as Qi from "date-fns";
|
|
6
6
|
import * as $i from "lucide-react";
|
|
7
7
|
import { ChevronDownIcon as ea } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { B as e, E as t, L as n, M as r, R as i, T as a, _ as o, f as s, h as c, i as l, l as u, m as d, n as f, r as p, t as m, w as h, x as g, z as ee } from "./input-group-COKxQf1K.js";
|
|
3
|
-
import { CheckIcon as _, ChevronDownIcon as te, ChevronLeftIcon as v, ChevronRightIcon as ne, MinusIcon as y, SearchIcon as
|
|
3
|
+
import { CheckIcon as _, ChevronDownIcon as te, ChevronLeftIcon as v, ChevronRightIcon as ne, MinusIcon as y, SearchIcon as re, XIcon as b } from "lucide-react";
|
|
4
4
|
import * as x from "recharts";
|
|
5
5
|
import * as S from "react";
|
|
6
6
|
import C from "react";
|
|
@@ -324,7 +324,7 @@ function Ae({ className: t, ...n }) {
|
|
|
324
324
|
}),
|
|
325
325
|
className: e(t),
|
|
326
326
|
...n,
|
|
327
|
-
children: /* @__PURE__ */ T(
|
|
327
|
+
children: /* @__PURE__ */ T(b, { className: "pointer-events-none" })
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
function je({ className: t, children: n, disabled: r = !1, showTrigger: i = !0, showClear: a = !1, ...o }) {
|
|
@@ -462,7 +462,7 @@ function He({ className: t, children: r, showRemove: i = !0, ...a }) {
|
|
|
462
462
|
}),
|
|
463
463
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
464
464
|
"data-slot": "combobox-chip-remove",
|
|
465
|
-
children: /* @__PURE__ */ T(
|
|
465
|
+
children: /* @__PURE__ */ T(b, { className: "pointer-events-none" })
|
|
466
466
|
})]
|
|
467
467
|
});
|
|
468
468
|
}
|
|
@@ -507,7 +507,7 @@ function qe(e, t, n) {
|
|
|
507
507
|
}
|
|
508
508
|
function Je({ option: e }) {
|
|
509
509
|
let t = e.iconPosition ?? "inline-start";
|
|
510
|
-
return /* @__PURE__ */ E(
|
|
510
|
+
return /* @__PURE__ */ E(w, { children: [e.separator ? /* @__PURE__ */ T(Be, {}) : null, /* @__PURE__ */ E(Pe, {
|
|
511
511
|
value: e,
|
|
512
512
|
disabled: e.disabled,
|
|
513
513
|
children: [
|
|
@@ -523,9 +523,9 @@ function Je({ option: e }) {
|
|
|
523
523
|
children: e.icon
|
|
524
524
|
}) : null
|
|
525
525
|
]
|
|
526
|
-
})] }
|
|
526
|
+
})] });
|
|
527
527
|
}
|
|
528
|
-
var Ye = ({ options: n = [], placeholder: r = "Search...", placeholderIcon: i, groupLabel: a, fieldLabel: o, helperText: s, error: c = !1, emptyMessage: l = "No results found.", disabled: u, multiple: d, showTrigger: p = !0, showClear: m = !1, showBadges: h = !1, fieldClassName: g, inputClassName: _, contentClassName: te, onSearch: v, searchDebounce: ne = 300, fetchOnOpen: y = !1, loadingMessage:
|
|
528
|
+
var Ye = ({ options: n = [], placeholder: r = "Search...", placeholderIcon: i, groupLabel: a, fieldLabel: o, helperText: s, error: c = !1, emptyMessage: l = "No results found.", disabled: u, multiple: d, showTrigger: p = !0, showClear: m = !1, showBadges: h = !1, fieldClassName: g, inputClassName: _, contentClassName: te, onSearch: v, searchDebounce: ne = 300, fetchOnOpen: y = !1, loadingMessage: re = "Searching…", loadMoreMessage: b = "Loading more…", searchPromptMessage: x = "Start typing to search…", scrollLoadThreshold: S = 48, modal: w = !0, onValueChange: D, onOpenChange: O, value: k, defaultValue: A, open: j, ...M }) => {
|
|
529
529
|
let N = !!v, ie = We(), [ae, P] = C.useState(() => N ? n : []), [F, I] = C.useState(""), [L, R] = C.useState(!1), [z, B] = C.useState(!1), [V, H] = C.useState(null), [oe, U] = C.useState(!1), [se, ce] = C.useState(!1), [le, ue] = C.useState(A ?? null), W = C.useRef(1), G = C.useRef(null), K = j ?? se;
|
|
530
530
|
t(K && w);
|
|
531
531
|
let q = k === void 0 ? le : k, J = Ke(F, ne), Y = J.trim(), de = N ? qe(ae, q, d) : n, X = C.useCallback(async (e, t, n) => {
|
|
@@ -590,12 +590,12 @@ var Ye = ({ options: n = [], placeholder: r = "Search...", placeholderIcon: i, g
|
|
|
590
590
|
Y
|
|
591
591
|
]), Q = C.useMemo(() => N ? L ? /* @__PURE__ */ E("span", {
|
|
592
592
|
className: "inline-flex items-center justify-center gap-2",
|
|
593
|
-
children: [/* @__PURE__ */ T(ee, {}),
|
|
593
|
+
children: [/* @__PURE__ */ T(ee, {}), re]
|
|
594
594
|
}) : V || (Y === "" && !y ? (d ? (q?.length ?? 0) > 0 : q) ? null : x : null) : null, [
|
|
595
595
|
y,
|
|
596
596
|
N,
|
|
597
597
|
L,
|
|
598
|
-
|
|
598
|
+
re,
|
|
599
599
|
d,
|
|
600
600
|
V,
|
|
601
601
|
x,
|
|
@@ -658,9 +658,9 @@ var Ye = ({ options: n = [], placeholder: r = "Search...", placeholderIcon: i, g
|
|
|
658
658
|
/* @__PURE__ */ T(Re, { children: l }),
|
|
659
659
|
/* @__PURE__ */ E(Ne, {
|
|
660
660
|
onScroll: N ? he : void 0,
|
|
661
|
-
children: [/* @__PURE__ */ E(Fe, { children: [a ? /* @__PURE__ */ T(Ie, { children: a }) : null, /* @__PURE__ */ T(Le, { children: (e) => /* @__PURE__ */ T(Je, { option: e }) })] }), N && z ? /* @__PURE__ */ E("div", {
|
|
661
|
+
children: [/* @__PURE__ */ E(Fe, { children: [a ? /* @__PURE__ */ T(Ie, { children: a }) : null, /* @__PURE__ */ T(Le, { children: (e) => /* @__PURE__ */ T(Je, { option: e }, e.value) })] }), N && z ? /* @__PURE__ */ E("div", {
|
|
662
662
|
className: "flex items-center justify-center gap-2 py-2 text-sm text-muted-foreground",
|
|
663
|
-
children: [/* @__PURE__ */ T(ee, {}),
|
|
663
|
+
children: [/* @__PURE__ */ T(ee, {}), b]
|
|
664
664
|
}) : null]
|
|
665
665
|
})
|
|
666
666
|
]
|
|
@@ -1013,7 +1013,7 @@ function _t({ className: t, ...n }) {
|
|
|
1013
1013
|
"data-slot": "command-input",
|
|
1014
1014
|
className: e("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1015
1015
|
...n
|
|
1016
|
-
}), /* @__PURE__ */ T(f, { children: /* @__PURE__ */ T(
|
|
1016
|
+
}), /* @__PURE__ */ T(f, { children: /* @__PURE__ */ T(re, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
1017
1017
|
})
|
|
1018
1018
|
});
|
|
1019
1019
|
}
|
|
@@ -670,10 +670,10 @@ function Ge({ children: e }) {
|
|
|
670
670
|
children: /* @__PURE__ */ k(Ne, { children: [/* @__PURE__ */ k(Pe, { children: [/* @__PURE__ */ O(Le, { children: t.title }), /* @__PURE__ */ O(Re, {
|
|
671
671
|
className: t.description ? void 0 : "sr-only",
|
|
672
672
|
children: t.description ?? t.title
|
|
673
|
-
})] }), /* @__PURE__ */ k(Fe, { children: [/* @__PURE__ */ O(Be, {
|
|
673
|
+
})] }), t.hideCancel && t.hideConfirm ? null : /* @__PURE__ */ k(Fe, { children: [t.hideCancel ? null : /* @__PURE__ */ O(Be, {
|
|
674
674
|
disabled: i,
|
|
675
675
|
children: t.cancelText ?? He
|
|
676
|
-
}), /* @__PURE__ */ O(ze, {
|
|
676
|
+
}), t.hideConfirm ? null : /* @__PURE__ */ O(ze, {
|
|
677
677
|
onClick: async (e) => {
|
|
678
678
|
e.preventDefault(), await s();
|
|
679
679
|
},
|
|
@@ -1648,7 +1648,7 @@ var Vn = ({ title: t, description: n, actionLabel: i, onAction: a = () => {}, ic
|
|
|
1648
1648
|
n && /* @__PURE__ */ O(zn, { children: n })
|
|
1649
1649
|
] }), /* @__PURE__ */ k(Bn, { children: [s, i && /* @__PURE__ */ O(r, {
|
|
1650
1650
|
size: "sm",
|
|
1651
|
-
onClick: a,
|
|
1651
|
+
onClick: (e) => a && a(e),
|
|
1652
1652
|
children: i
|
|
1653
1653
|
})] })]
|
|
1654
1654
|
});
|