@clasing/ui 0.1.127 → 0.1.128
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/{badge-BnerQ2lF.js → badge-1kvIHznc.js} +1 -1
- package/dist/{badge-Czof3oqL.cjs → badge-P7DTJePf.cjs} +1 -1
- package/dist/{button-DddHyyHa.js → button-BMeBsgLZ.js} +156 -150
- package/dist/{button-Cegl49Yi.cjs → button-Chd1eL4R.cjs} +1 -1
- package/dist/{calendar-DL8gqdRp.cjs → calendar-B1iUTT_d.cjs} +1 -1
- package/dist/{calendar-BAQkzm4v.js → calendar-Bc6nud5f.js} +1 -1
- package/dist/{chip-A32aAc-8.cjs → chip-BtBgM97Y.cjs} +1 -1
- package/dist/{chip-ZZHZ8i1Q.js → chip-DOFVLzAe.js} +1 -1
- package/dist/command-BVqQYgq1.cjs +1 -0
- package/dist/command-DS_uqbdy.js +176 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +1 -1
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/date-picker.cjs.js +1 -1
- package/dist/components/blocks/date-picker.es.js +2 -2
- package/dist/components/blocks/date-range-picker.cjs.js +1 -1
- package/dist/components/blocks/date-range-picker.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +2 -2
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +1 -1
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +1 -1
- package/dist/components/chip.es.js +1 -1
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +1 -1
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -3
- package/dist/components/drawer.es.js +58 -1091
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +1 -1
- package/dist/components/icon-component.cjs.js +1 -1
- package/dist/components/icon-component.d.ts +2 -2
- package/dist/components/icon-component.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -20
- package/dist/components/input-otp.es.js +37 -225
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.d.ts +5 -8
- package/dist/components/input.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +1 -1
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +3 -3
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +1 -1
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +4 -4
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +24 -1527
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +1 -1
- package/dist/{dialog-DZpF7OXg.js → dialog-BdbmyluB.js} +1 -1
- package/dist/{dialog-BKm2PZl2.cjs → dialog-DEwsbeqW.cjs} +1 -1
- package/dist/{icon-component-BZ-4FDV6.js → icon-component-DS1KwkwD.js} +11 -10
- package/dist/icon-component-lt1cLU_1.cjs +1 -0
- package/dist/{input-DwPDvbRE.js → input-CToZ7rWo.js} +55 -55
- package/dist/input-DDSu84U-.cjs +1 -0
- package/package.json +1 -1
- package/dist/command-BGCSJ9vX.js +0 -506
- package/dist/command-D9M8dk1M.cjs +0 -1
- package/dist/icon-component-LY_vGYHZ.cjs +0 -1
- package/dist/input-DFPJ_mtM.cjs +0 -1
|
@@ -2,7 +2,7 @@ import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
|
2
2
|
import { Slot as c } from "@radix-ui/react-slot";
|
|
3
3
|
import { c as f } from "./index-BqtVL8d-.js";
|
|
4
4
|
import { c as h } from "./index-CRiPKpXj.js";
|
|
5
|
-
import { I as o } from "./icon-component-
|
|
5
|
+
import { I as o } from "./icon-component-DS1KwkwD.js";
|
|
6
6
|
const x = f(
|
|
7
7
|
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-2 overflow-hidden border font-semibold whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none",
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./jsx-runtime-DUiatUiq.cjs"),x=require("@radix-ui/react-slot"),p=require("./index-C8P6Mn4U.cjs"),h=require("./index-DoxiiusW.cjs"),s=require("./icon-component-
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-DUiatUiq.cjs"),x=require("@radix-ui/react-slot"),p=require("./index-C8P6Mn4U.cjs"),h=require("./index-DoxiiusW.cjs"),s=require("./icon-component-lt1cLU_1.cjs"),f=p.cva("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-2 overflow-hidden border font-semibold whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none",{variants:{variant:{default:"bg-muted text-muted-foreground [a&]:hover:bg-muted/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",error:"bg-error-light text-error-main [a&]:hover:bg-error-light/90 border-transparent",warning:"bg-warning-light text-warning-main [a&]:hover:bg-warning-light/90 border-transparent",success:"bg-success-light text-success-main [a&]:hover:bg-success-light/90 border-transparent",info:"bg-info-light text-info-main [a&]:hover:bg-info-light/90 border-transparent",neutral:"border-transparent bg-black text-white [a&]:hover:bg-black/90",primary:"bg-primary-600 [a&]:hover:bg-primary-600/90 border-transparent text-white",yellow:"border-transparent bg-yellow-600 text-white [a&]:hover:bg-yellow-600/90",blue:"border-transparent bg-blue-600 text-white [a&]:hover:bg-blue-600/90",violet:"border-transparent bg-violet-600 text-white [a&]:hover:bg-violet-600/90"},size:{xs:"px-3 py-px text-xs [&>svg]:size-3",sm:"px-4 py-1 text-xs [&>svg]:size-4",md:"px-4 py-2 text-sm [&>svg]:size-4",lg:"px-4 py-2 text-base [&>svg]:size-5"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{default:"rounded-2xl",full:"rounded-full"}},defaultVariants:{variant:"default",size:"xs",weight:"semibold",rounded:"full"}});function m({className:o,variant:a,size:d,weight:g,rounded:l,iconName:e,iconPosition:t="left",iconStroke:n,iconOnly:i,asChild:b=!1,children:u,...c}){const v=b?x.Slot:"span";return r.jsxRuntimeExports.jsxs(v,{"data-slot":"badge",className:h.cn(f({variant:a,size:d,weight:g,rounded:l}),i&&"px-2.5 py-2",o),...c,children:[e&&t==="left"&&r.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e,stroke:n}),!i&&u,e&&t==="right"&&r.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e,stroke:n})]})}exports.Badge=m;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { c as
|
|
5
|
-
import
|
|
6
|
-
import { I as s } from "./icon-component-
|
|
7
|
-
import { b as
|
|
8
|
-
const
|
|
2
|
+
import { c as u } from "./index-CRiPKpXj.js";
|
|
3
|
+
import { Slot as q } from "@radix-ui/react-slot";
|
|
4
|
+
import { c as v } from "./index-BqtVL8d-.js";
|
|
5
|
+
import y from "react";
|
|
6
|
+
import { I as s } from "./icon-component-DS1KwkwD.js";
|
|
7
|
+
import { b as P, T as j, c as N, a as I } from "./tooltip-Btr9ROSo.js";
|
|
8
|
+
const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]", F = v(f, {
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
// Variantes de botón sólido
|
|
@@ -128,7 +128,7 @@ const v = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
128
128
|
rounded: "full",
|
|
129
129
|
iconPosition: "left"
|
|
130
130
|
}
|
|
131
|
-
}),
|
|
131
|
+
}), M = v(`${f} cursor-default`, {
|
|
132
132
|
variants: {
|
|
133
133
|
variant: {
|
|
134
134
|
primary: ["bg-primary-800 text-white outline-transparent"],
|
|
@@ -239,7 +239,7 @@ const v = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
239
239
|
rounded: "full",
|
|
240
240
|
iconPosition: "left"
|
|
241
241
|
}
|
|
242
|
-
}),
|
|
242
|
+
}), R = v(f, {
|
|
243
243
|
variants: {
|
|
244
244
|
variant: {
|
|
245
245
|
primary: ["bg-primary-800 text-white outline-transparent"],
|
|
@@ -350,155 +350,161 @@ const v = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
350
350
|
rounded: "full",
|
|
351
351
|
iconPosition: "left"
|
|
352
352
|
}
|
|
353
|
-
})
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}) {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
size:
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
rounded: d,
|
|
407
|
-
iconPosition: e,
|
|
408
|
-
className: x
|
|
409
|
-
})
|
|
410
|
-
),
|
|
411
|
-
disabled: f || r,
|
|
412
|
-
...V,
|
|
413
|
-
children: e === "only" ? (
|
|
414
|
-
// Renderizado para modo icon-only
|
|
415
|
-
/* @__PURE__ */ t.jsx(t.Fragment, { children: r ? /* @__PURE__ */ t.jsx(
|
|
416
|
-
s,
|
|
353
|
+
}), _ = y.forwardRef(
|
|
354
|
+
({
|
|
355
|
+
className: g,
|
|
356
|
+
variant: d,
|
|
357
|
+
size: i,
|
|
358
|
+
weight: c,
|
|
359
|
+
rounded: m,
|
|
360
|
+
children: l,
|
|
361
|
+
iconName: n,
|
|
362
|
+
iconText: b,
|
|
363
|
+
iconPosition: h = "left",
|
|
364
|
+
isLoading: r,
|
|
365
|
+
isActive: S,
|
|
366
|
+
disabled: w,
|
|
367
|
+
tooltip: o,
|
|
368
|
+
tooltipPlacement: z = "top",
|
|
369
|
+
asChild: k,
|
|
370
|
+
...V
|
|
371
|
+
}, B) => {
|
|
372
|
+
const C = k ? q : "button", e = y.useMemo(() => !l && n || h === "only" ? "only" : h, [l, n, h]), a = y.useMemo(() => n ? typeof n == "string" ? { name: n } : n : null, [n]), p = e === "only" ? {
|
|
373
|
+
xl: "min-w-6 h-6",
|
|
374
|
+
lg: "min-w-6 h-6",
|
|
375
|
+
md: "min-w-5 h-5",
|
|
376
|
+
sm: "min-w-4 h-4",
|
|
377
|
+
xs: "min-w-3.5 h-3.5"
|
|
378
|
+
} : {
|
|
379
|
+
xl: "min-w-5 h-5",
|
|
380
|
+
lg: "min-w-5 h-5",
|
|
381
|
+
md: "min-w-4 h-4",
|
|
382
|
+
sm: "min-w-4 h-4",
|
|
383
|
+
xs: "min-w-3.5 h-3.5"
|
|
384
|
+
}, T = /* @__PURE__ */ t.jsx(t.Fragment, { children: e === "only" ? (
|
|
385
|
+
// Renderizado para modo icon-only
|
|
386
|
+
/* @__PURE__ */ t.jsx(t.Fragment, { children: r ? /* @__PURE__ */ t.jsx(
|
|
387
|
+
s,
|
|
388
|
+
{
|
|
389
|
+
iconName: "IconLoader2",
|
|
390
|
+
className: u("animate-spin", p[i || "xl"])
|
|
391
|
+
}
|
|
392
|
+
) : a && /* @__PURE__ */ t.jsx(
|
|
393
|
+
s,
|
|
394
|
+
{
|
|
395
|
+
iconName: a.name,
|
|
396
|
+
stroke: a.stroke,
|
|
397
|
+
iconText: b,
|
|
398
|
+
size: 24
|
|
399
|
+
}
|
|
400
|
+
) })
|
|
401
|
+
) : (
|
|
402
|
+
// Renderizado para modo botón normal con texto
|
|
403
|
+
/* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
404
|
+
/* @__PURE__ */ t.jsx(
|
|
405
|
+
"span",
|
|
417
406
|
{
|
|
418
|
-
|
|
419
|
-
|
|
407
|
+
className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${r ? "visible opacity-100" : "invisible opacity-0"}`,
|
|
408
|
+
children: /* @__PURE__ */ t.jsx(
|
|
409
|
+
s,
|
|
410
|
+
{
|
|
411
|
+
iconName: "IconLoader2",
|
|
412
|
+
className: u("animate-spin", p[i || "xl"])
|
|
413
|
+
}
|
|
414
|
+
)
|
|
420
415
|
}
|
|
421
|
-
)
|
|
422
|
-
|
|
416
|
+
),
|
|
417
|
+
/* @__PURE__ */ t.jsxs(
|
|
418
|
+
"span",
|
|
423
419
|
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
420
|
+
className: u(
|
|
421
|
+
"flex items-center justify-center gap-2",
|
|
422
|
+
r ? "invisible opacity-0" : "visible opacity-100"
|
|
423
|
+
),
|
|
424
|
+
children: [
|
|
425
|
+
a && e === "left" && /* @__PURE__ */ t.jsx(
|
|
426
|
+
s,
|
|
427
|
+
{
|
|
428
|
+
iconName: a.name,
|
|
429
|
+
iconText: b,
|
|
430
|
+
stroke: a.stroke,
|
|
431
|
+
className: p[i || "xl"]
|
|
432
|
+
}
|
|
433
|
+
),
|
|
434
|
+
l,
|
|
435
|
+
a && e === "right" && /* @__PURE__ */ t.jsx(
|
|
438
436
|
s,
|
|
439
437
|
{
|
|
440
|
-
iconName:
|
|
441
|
-
|
|
438
|
+
iconName: a.name,
|
|
439
|
+
iconText: b,
|
|
440
|
+
stroke: a.stroke,
|
|
441
|
+
className: p[i || "xl"]
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
children: [
|
|
451
|
-
a && e === "left" && /* @__PURE__ */ t.jsx(
|
|
452
|
-
s,
|
|
453
|
-
{
|
|
454
|
-
iconName: a.name,
|
|
455
|
-
iconText: m,
|
|
456
|
-
stroke: a.stroke,
|
|
457
|
-
className: o[i || "xl"]
|
|
458
|
-
}
|
|
459
|
-
),
|
|
460
|
-
c,
|
|
461
|
-
a && e === "right" && /* @__PURE__ */ t.jsx(
|
|
462
|
-
s,
|
|
463
|
-
{
|
|
464
|
-
iconName: a.name,
|
|
465
|
-
iconText: m,
|
|
466
|
-
stroke: a.stroke,
|
|
467
|
-
className: o[i || "xl"]
|
|
468
|
-
}
|
|
469
|
-
)
|
|
470
|
-
]
|
|
471
|
-
}
|
|
472
|
-
)
|
|
473
|
-
] })
|
|
474
|
-
)
|
|
475
|
-
}
|
|
476
|
-
);
|
|
477
|
-
return l && (f || r) ? /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsxs(P, { children: [
|
|
478
|
-
/* @__PURE__ */ t.jsx(j, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children: p }) : p }),
|
|
479
|
-
/* @__PURE__ */ t.jsx(
|
|
480
|
-
I,
|
|
481
|
-
{
|
|
482
|
-
side: w,
|
|
483
|
-
className: "text-muted-foreground",
|
|
484
|
-
children: l
|
|
485
|
-
}
|
|
486
|
-
)
|
|
487
|
-
] }) }) : l ? /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsxs(P, { children: [
|
|
488
|
-
/* @__PURE__ */ t.jsx(j, { asChild: e === "only", children: p }),
|
|
489
|
-
/* @__PURE__ */ t.jsx(
|
|
490
|
-
I,
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
)
|
|
447
|
+
] })
|
|
448
|
+
) }), x = /* @__PURE__ */ t.jsx(
|
|
449
|
+
C,
|
|
491
450
|
{
|
|
492
|
-
|
|
493
|
-
className:
|
|
494
|
-
|
|
451
|
+
ref: B,
|
|
452
|
+
className: u(
|
|
453
|
+
r ? M({
|
|
454
|
+
variant: d,
|
|
455
|
+
weight: c,
|
|
456
|
+
size: i,
|
|
457
|
+
rounded: m,
|
|
458
|
+
iconPosition: e,
|
|
459
|
+
className: g
|
|
460
|
+
}) : S ? R({
|
|
461
|
+
variant: d,
|
|
462
|
+
weight: c,
|
|
463
|
+
size: i,
|
|
464
|
+
rounded: m,
|
|
465
|
+
iconPosition: e,
|
|
466
|
+
className: g
|
|
467
|
+
}) : F({
|
|
468
|
+
variant: d,
|
|
469
|
+
weight: c,
|
|
470
|
+
size: i,
|
|
471
|
+
rounded: m,
|
|
472
|
+
iconPosition: e,
|
|
473
|
+
className: g
|
|
474
|
+
})
|
|
475
|
+
),
|
|
476
|
+
disabled: w || r,
|
|
477
|
+
...V,
|
|
478
|
+
children: k ? l : T
|
|
495
479
|
}
|
|
496
|
-
)
|
|
497
|
-
|
|
498
|
-
}
|
|
480
|
+
);
|
|
481
|
+
return o && (w || r) ? /* @__PURE__ */ t.jsx(P, { children: /* @__PURE__ */ t.jsxs(j, { children: [
|
|
482
|
+
/* @__PURE__ */ t.jsx(N, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children: x }) : x }),
|
|
483
|
+
/* @__PURE__ */ t.jsx(
|
|
484
|
+
I,
|
|
485
|
+
{
|
|
486
|
+
side: z,
|
|
487
|
+
className: "text-muted-foreground",
|
|
488
|
+
children: o
|
|
489
|
+
}
|
|
490
|
+
)
|
|
491
|
+
] }) }) : o ? /* @__PURE__ */ t.jsx(P, { children: /* @__PURE__ */ t.jsxs(j, { children: [
|
|
492
|
+
/* @__PURE__ */ t.jsx(N, { asChild: e === "only", children: x }),
|
|
493
|
+
/* @__PURE__ */ t.jsx(
|
|
494
|
+
I,
|
|
495
|
+
{
|
|
496
|
+
side: z,
|
|
497
|
+
className: "text-muted-foreground",
|
|
498
|
+
children: o
|
|
499
|
+
}
|
|
500
|
+
)
|
|
501
|
+
] }) }) : x;
|
|
502
|
+
}
|
|
503
|
+
);
|
|
504
|
+
_.displayName = "Button";
|
|
499
505
|
export {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
506
|
+
_ as B,
|
|
507
|
+
M as a,
|
|
508
|
+
R as b,
|
|
509
|
+
F as c
|
|
504
510
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-DUiatUiq.cjs"),
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-DUiatUiq.cjs"),c=require("./index-DoxiiusW.cjs"),V=require("@radix-ui/react-slot"),f=require("./index-C8P6Mn4U.cjs"),v=require("react"),o=require("./icon-component-lt1cLU_1.cjs"),i=require("./tooltip-W9iE1O--.cjs"),j="focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]",k=f.cva(j,{variants:{variant:{primary:["bg-primary-600 lg:hover:bg-primary-800 text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],secondary:["bg-black text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 lg:hover:bg-neutral-900 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],inverse:["lg:hover:bg-neutral-000 bg-white text-black outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],outline:["text-primary-600 outline-primary-600 lg:hover:bg-primary-050 bg-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:outline-transparent disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],ghost:["bg-primary-050 text-primary-600 lg:hover:bg-primary-100 outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],destructive:["bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],link:["text-primary-600 lg:hover:bg-primary-050 bg-transparent outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"]},size:{xl:"h-12 gap-2 px-6 py-1 text-base",lg:"h-10 gap-2 px-5 py-1 text-sm",md:"h-8 gap-1.5 px-4 py-1 text-xs",sm:"h-7 gap-1 px-3 py-1 text-xs",xs:"h-6 gap-1 px-3 py-1 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"outline-neutral-050 text-primary-600 lg:hover:bg-neutral-000 bg-white"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"text-primary-600 lg:hover:bg-primary-050 bg-transparent"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-1.5"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-1.5"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1.5"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-1.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-1.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),R=f.cva(`${j} cursor-default`,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),E=f.cva(j,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),C=v.forwardRef(({className:g,variant:d,size:s,weight:m,rounded:b,children:l,iconName:r,iconText:h,iconPosition:y="left",isLoading:a,isActive:q,disabled:w,tooltip:x,tooltipPlacement:z="top",asChild:P,...I},S)=>{const N=P?V.Slot:"button",e=v.useMemo(()=>!l&&r||y==="only"?"only":y,[l,r,y]),n=v.useMemo(()=>r?typeof r=="string"?{name:r}:r:null,[r]),p=e==="only"?{xl:"min-w-6 h-6",lg:"min-w-6 h-6",md:"min-w-5 h-5",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"}:{xl:"min-w-5 h-5",lg:"min-w-5 h-5",md:"min-w-4 h-4",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"},T=t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e==="only"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a?t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:"IconLoader2",className:c.cn("animate-spin",p[s||"xl"])}):n&&t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:n.name,stroke:n.stroke,iconText:h,size:24})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("span",{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${a?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:"IconLoader2",className:c.cn("animate-spin",p[s||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:c.cn("flex items-center justify-center gap-2",a?"invisible opacity-0":"visible opacity-100"),children:[n&&e==="left"&&t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:n.name,iconText:h,stroke:n.stroke,className:p[s||"xl"]}),l,n&&e==="right"&&t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:n.name,iconText:h,stroke:n.stroke,className:p[s||"xl"]})]})]})}),u=t.jsxRuntimeExports.jsx(N,{ref:S,className:c.cn(a?R({variant:d,weight:m,size:s,rounded:b,iconPosition:e,className:g}):q?E({variant:d,weight:m,size:s,rounded:b,iconPosition:e,className:g}):k({variant:d,weight:m,size:s,rounded:b,iconPosition:e,className:g})),disabled:w||a,...I,children:P?l:T});return x&&(w||a)?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:e==="only"?t.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:u}):u}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:x})]})}):x?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:u}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:x})]})}):u});C.displayName="Button";exports.Button=C;exports.buttonActiveStyles=E;exports.buttonLoadingStyles=R;exports.buttonStyles=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./jsx-runtime-DUiatUiq.cjs"),D=require("./index-DoxiiusW.cjs"),s=require("date-fns"),y=require("react"),R=require("react-day-picker"),c=require("./style-CA5976Oh.cjs"),k=require("./icon-component-
|
|
1
|
+
"use strict";const l=require("./jsx-runtime-DUiatUiq.cjs"),D=require("./index-DoxiiusW.cjs"),s=require("date-fns"),y=require("react"),R=require("react-day-picker"),c=require("./style-CA5976Oh.cjs"),k=require("./icon-component-lt1cLU_1.cjs"),N=({onChange:r,value:t,options:n})=>l.jsxRuntimeExports.jsx("select",{className:"text-md focus-visible:ring-ring-default h-fit w-fit! cursor-pointer appearance-none rounded-2xl border-none pr-9 pl-1 font-semibold transition-colors focus:border-0 focus:border-transparent focus:ring-0 focus:ring-transparent focus:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden",onChange:r,value:t,children:n?.map((o,d)=>{const b=o.value===t;return l.jsxRuntimeExports.jsx("option",{value:o.value,disabled:o.disabled,className:D.cn("disabled:hidden",{"bg-blue-050 font-semibold text-blue-800":b}),children:o.label},d)})}),z=({orientation:r="down",size:t=16})=>l.jsxRuntimeExports.jsx(k.IconComponent,{iconName:r==="left"?"IconChevronLeft":"IconChevronRight",stroke:"1.5",size:t}),I=({locale:r="enGB",disabledDates:t,enabledDates:n,dropdownsSelectors:o=!0,hideNavigation:d=!1,showOutsideDays:b=!0,minDate:j,maxDate:E,value:f,className:C,onChange:m})=>{const[_,p]=y.useState(),q=e=>e.filter(a=>a!==void 0),u=Array.isArray(n)?n.map(e=>new Date(e)):n?new Date(n):void 0,i=Array.isArray(u)?q(u):u?[u]:[],g=i.length>0?s.min(i):void 0,x=i.length>0?s.max(i):void 0,h=()=>Array.isArray(t)?t.map(e=>new Date(e)):t?new Date(t):void 0,v=Array.isArray(h())?[...h()]:[];if(g&&x){const e=s.startOfMonth(g),a=s.endOfMonth(x);s.eachDayOfInterval({start:e,end:a}).forEach(w=>{i.some(S=>S.setHours(0,0,0,0)===w.setHours(0,0,0,0))||v.push(w)})}y.useEffect(()=>{if(f){const e=new Date(f);isNaN(e.getTime())||p(e)}else p(void 0)},[f]);const A=e=>{p(e),m&&m(e?s.format(e,"yyyy-MM-dd"):void 0)},M=r==="enGB"?c.enGB:r==="enUS"?c.enUS:r==="fr"?c.fr:c.es;return l.jsxRuntimeExports.jsx(R.DayPicker,{mode:"single",captionLayout:o?"dropdown":"label",selected:_,onSelect:A,locale:M,startMonth:j||g||new Date(1900,1,1),endMonth:E||x||new Date(2100,12,31),disabled:v,showOutsideDays:b,hideNavigation:d,className:D.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,C),classNames:{root:"w-fit text-sm text-center",weekday:"text-muted-foreground font-regular",month_grid:"border-separate",month_caption:`h-9 relative flex items-center w-full ${d?"hidden":""}`,dropdowns:"absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",button_next:"rounded-md border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",button_previous:"rounded-md border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",nav:"w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",selected:"bg-blue-050! border-[0.5px] border-blue-800! text-blue-800! lg:hover:bg-blue-100 transition-colors font-semibold",today:"bg-blue-050 border-[0.5px] text-blue-800 lg:hover:bg-blue-100",disabled:"bg-white text-neutral-200 border-[0.5px] border-neutral-000 lg:hover:bg-white!",caption_label:"text-neutral-1000 text-base font-semibold leading-none self-center w-full",outside:"bg-white text-neutral-200 border-[0.5px] border-neutral-000",day_button:"text-sm h-9 w-9 whitespace-nowrap border-none focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] rounded-md",day:"h-9 w-9 aspect-square text-sm rounded-md border-[0.5px] border-neutral-050 lg:hover:bg-blue-050 transition-colors p-0 whitespace-nowrap"},components:{Dropdown:N,Chevron:({orientation:e,size:a})=>l.jsxRuntimeExports.jsx(z,{orientation:e,size:a})}})};exports.Calendar=I;
|
|
@@ -4,7 +4,7 @@ import { min as S, max as E, startOfMonth as N, endOfMonth as k, eachDayOfInterv
|
|
|
4
4
|
import { useState as T, useEffect as B } from "react";
|
|
5
5
|
import { DayPicker as G } from "react-day-picker";
|
|
6
6
|
import { e as L, a as O, f as F, b as H } from "./style-BNIXVvBA.js";
|
|
7
|
-
import { I as P } from "./icon-component-
|
|
7
|
+
import { I as P } from "./icon-component-DS1KwkwD.js";
|
|
8
8
|
const R = ({ onChange: r, value: t, options: o }) => /* @__PURE__ */ i.jsx(
|
|
9
9
|
"select",
|
|
10
10
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-DUiatUiq.cjs"),c=require("./index-DoxiiusW.cjs"),g=require("./index-C8P6Mn4U.cjs"),f=require("react"),r=require("./icon-component-
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-DUiatUiq.cjs"),c=require("./index-DoxiiusW.cjs"),g=require("./index-C8P6Mn4U.cjs"),f=require("react"),r=require("./icon-component-lt1cLU_1.cjs"),n=g.cva("focus-visible:ring-ring-default inline-flex items-center gap-1 rounded-full border px-3 py-1.5 transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-default disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100",{variants:{intent:{selected:["bg-blue-050 border-blue-800 font-semibold text-blue-800"],unselected:["text-neutral-1000 lg:hover:bg-neutral-000 border-neutral-500 bg-white"],error:["bg-error-light border-error-main text-muted-foreground"]},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"unselected",size:"md",weight:"regular"}}),p=f.forwardRef(({className:o,intent:i,size:l,weight:a,children:m,iconLeft:e,iconRight:s,notification:u,onClick:d,disabled:j,...x},b)=>(typeof e=="string"&&(e={name:e}),typeof s=="string"&&(s={name:s}),d?t.jsxRuntimeExports.jsxs("button",{ref:b,className:c.cn(n({intent:i,size:l,weight:a,className:o})),type:"button",disabled:j,onClick:d,...x,children:[e&&t.jsxRuntimeExports.jsx(r.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,s&&t.jsxRuntimeExports.jsx(r.IconComponent,{iconName:s?.name,stroke:s?.stroke,size:20,className:"min-w-5"}),u&&t.jsxRuntimeExports.jsx(r.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]}):t.jsxRuntimeExports.jsxs("div",{ref:b,className:c.cn(n({intent:i,size:l,weight:a,className:o})),...x,children:[e&&t.jsxRuntimeExports.jsx(r.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,s&&t.jsxRuntimeExports.jsx(r.IconComponent,{iconName:s?.name,stroke:s?.stroke,size:20,className:"min-w-5"}),u&&t.jsxRuntimeExports.jsx(r.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]})));p.displayName="Chip";exports.ChipComponent=p;exports.chipStyles=n;
|
|
@@ -2,7 +2,7 @@ import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
|
2
2
|
import { c as x } from "./index-CRiPKpXj.js";
|
|
3
3
|
import { c } from "./index-BqtVL8d-.js";
|
|
4
4
|
import { forwardRef as g } from "react";
|
|
5
|
-
import { I as t } from "./icon-component-
|
|
5
|
+
import { I as t } from "./icon-component-DS1KwkwD.js";
|
|
6
6
|
const f = c(
|
|
7
7
|
"focus-visible:ring-ring-default inline-flex items-center gap-1 rounded-full border px-3 py-1.5 transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-default disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100",
|
|
8
8
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-DUiatUiq.cjs"),m=require("cmdk"),a=require("./dialog-DEwsbeqW.cjs"),n=require("./index-DoxiiusW.cjs"),u=require("./icon-component-lt1cLU_1.cjs");function s({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command,{"data-slot":"command",className:n.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o})}function p({title:t="Command Palette",description:o="Search for a command to run...",children:r,className:d,showCloseButton:i=!0,...c}){return e.jsxRuntimeExports.jsxs(a.Dialog,{...c,children:[e.jsxRuntimeExports.jsxs(a.DialogHeader,{className:"sr-only",children:[e.jsxRuntimeExports.jsx(a.DialogTitle,{children:t}),e.jsxRuntimeExports.jsx(a.DialogDescription,{children:o})]}),e.jsxRuntimeExports.jsx(a.DialogContent,{className:n.cn("overflow-hidden p-0",d),showCloseButton:i,children:e.jsxRuntimeExports.jsx(s,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function x({className:t,...o}){return e.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[e.jsxRuntimeExports.jsx(u.IconComponent,{iconName:"IconSearch",className:"size-4 shrink-0 opacity-50"}),e.jsxRuntimeExports.jsx(m.Command.Input,{"data-slot":"command-input",className:n.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...o})]})}function l({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...o})}function g({...t}){return e.jsxRuntimeExports.jsx(m.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function h({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Group,{"data-slot":"command-group",className:n.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-semibold",t),...o})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-border -mx-1 h-px",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}function C({className:t,...o}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}exports.Command=s;exports.CommandDialog=p;exports.CommandEmpty=g;exports.CommandGroup=h;exports.CommandInput=x;exports.CommandItem=j;exports.CommandList=l;exports.CommandSeparator=f;exports.CommandShortcut=C;
|