@doscientos/ui 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +243 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +218 -121
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2507,10 +2507,101 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
2507
2507
|
);
|
|
2508
2508
|
}
|
|
2509
2509
|
|
|
2510
|
-
// src/ui/
|
|
2510
|
+
// src/ui/kanban/kanban.tsx
|
|
2511
2511
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2512
|
-
|
|
2512
|
+
var columnSize = {
|
|
2513
|
+
compact: "w-56",
|
|
2514
|
+
default: "w-72",
|
|
2515
|
+
wide: "w-80"
|
|
2516
|
+
};
|
|
2517
|
+
function KanbanViewport({
|
|
2518
|
+
children,
|
|
2519
|
+
className,
|
|
2520
|
+
contentClassName,
|
|
2521
|
+
...props
|
|
2522
|
+
}) {
|
|
2513
2523
|
return /* @__PURE__ */ jsx31(
|
|
2524
|
+
"div",
|
|
2525
|
+
{
|
|
2526
|
+
"data-slot": "kanban-viewport",
|
|
2527
|
+
className: cn("-mx-1 overflow-x-auto pb-3", className),
|
|
2528
|
+
...props,
|
|
2529
|
+
children: /* @__PURE__ */ jsx31(
|
|
2530
|
+
"div",
|
|
2531
|
+
{
|
|
2532
|
+
"data-slot": "kanban-viewport-content",
|
|
2533
|
+
className: cn("flex min-w-max items-start gap-3 px-1", contentClassName),
|
|
2534
|
+
children
|
|
2535
|
+
}
|
|
2536
|
+
)
|
|
2537
|
+
}
|
|
2538
|
+
);
|
|
2539
|
+
}
|
|
2540
|
+
function KanbanColumn({
|
|
2541
|
+
className,
|
|
2542
|
+
size = "default",
|
|
2543
|
+
...props
|
|
2544
|
+
}) {
|
|
2545
|
+
return /* @__PURE__ */ jsx31(
|
|
2546
|
+
"section",
|
|
2547
|
+
{
|
|
2548
|
+
"data-slot": "kanban-column",
|
|
2549
|
+
"data-size": size,
|
|
2550
|
+
className: cn("shrink-0 rounded-lg border border-border/70 p-2", columnSize[size], className),
|
|
2551
|
+
...props
|
|
2552
|
+
}
|
|
2553
|
+
);
|
|
2554
|
+
}
|
|
2555
|
+
function KanbanColumnHeader({ className, ...props }) {
|
|
2556
|
+
return /* @__PURE__ */ jsx31(
|
|
2557
|
+
"header",
|
|
2558
|
+
{
|
|
2559
|
+
"data-slot": "kanban-column-header",
|
|
2560
|
+
className: cn("mb-2 flex items-center justify-between gap-2 px-1 py-1", className),
|
|
2561
|
+
...props
|
|
2562
|
+
}
|
|
2563
|
+
);
|
|
2564
|
+
}
|
|
2565
|
+
function KanbanColumnTitle({ className, ...props }) {
|
|
2566
|
+
return /* @__PURE__ */ jsx31(
|
|
2567
|
+
"span",
|
|
2568
|
+
{
|
|
2569
|
+
"data-slot": "kanban-column-title",
|
|
2570
|
+
className: cn(
|
|
2571
|
+
"text-foreground truncate text-[11px] font-semibold tracking-wide uppercase",
|
|
2572
|
+
className
|
|
2573
|
+
),
|
|
2574
|
+
...props
|
|
2575
|
+
}
|
|
2576
|
+
);
|
|
2577
|
+
}
|
|
2578
|
+
function KanbanColumnBody({ className, ...props }) {
|
|
2579
|
+
return /* @__PURE__ */ jsx31("div", { "data-slot": "kanban-column-body", className: cn("space-y-2", className), ...props });
|
|
2580
|
+
}
|
|
2581
|
+
function KanbanEmpty({
|
|
2582
|
+
className,
|
|
2583
|
+
compact = false,
|
|
2584
|
+
...props
|
|
2585
|
+
}) {
|
|
2586
|
+
return /* @__PURE__ */ jsx31(
|
|
2587
|
+
"p",
|
|
2588
|
+
{
|
|
2589
|
+
"data-slot": "kanban-empty",
|
|
2590
|
+
"data-compact": compact || void 0,
|
|
2591
|
+
className: cn(
|
|
2592
|
+
"border-border text-muted-foreground rounded-md border border-dashed py-6 text-center",
|
|
2593
|
+
compact ? "px-2 text-[11px]" : "px-3 text-xs",
|
|
2594
|
+
className
|
|
2595
|
+
),
|
|
2596
|
+
...props
|
|
2597
|
+
}
|
|
2598
|
+
);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
// src/ui/kbd/kbd.tsx
|
|
2602
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2603
|
+
function Kbd({ className, ...props }) {
|
|
2604
|
+
return /* @__PURE__ */ jsx32(
|
|
2514
2605
|
"kbd",
|
|
2515
2606
|
{
|
|
2516
2607
|
"data-slot": "kbd",
|
|
@@ -2523,7 +2614,7 @@ function Kbd({ className, ...props }) {
|
|
|
2523
2614
|
);
|
|
2524
2615
|
}
|
|
2525
2616
|
function KbdGroup({ className, ...props }) {
|
|
2526
|
-
return /* @__PURE__ */
|
|
2617
|
+
return /* @__PURE__ */ jsx32(
|
|
2527
2618
|
"span",
|
|
2528
2619
|
{
|
|
2529
2620
|
"data-slot": "kbd-group",
|
|
@@ -2535,13 +2626,13 @@ function KbdGroup({ className, ...props }) {
|
|
|
2535
2626
|
|
|
2536
2627
|
// src/ui/loading-overlay/loading-overlay.tsx
|
|
2537
2628
|
import { LoaderCircle as LoaderCircle2 } from "lucide-react";
|
|
2538
|
-
import { jsx as
|
|
2629
|
+
import { jsx as jsx33, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2539
2630
|
function LoadingOverlay({
|
|
2540
2631
|
label = "Cargando",
|
|
2541
2632
|
className,
|
|
2542
2633
|
...props
|
|
2543
2634
|
}) {
|
|
2544
|
-
return /* @__PURE__ */
|
|
2635
|
+
return /* @__PURE__ */ jsx33(
|
|
2545
2636
|
"output",
|
|
2546
2637
|
{
|
|
2547
2638
|
"aria-live": "polite",
|
|
@@ -2551,8 +2642,8 @@ function LoadingOverlay({
|
|
|
2551
2642
|
),
|
|
2552
2643
|
...props,
|
|
2553
2644
|
children: /* @__PURE__ */ jsxs14("div", { className: "border-border bg-background flex items-center gap-2 rounded-lg border px-3 py-2 text-sm shadow-sm", children: [
|
|
2554
|
-
/* @__PURE__ */
|
|
2555
|
-
/* @__PURE__ */
|
|
2645
|
+
/* @__PURE__ */ jsx33(LoaderCircle2, { className: "animate-spin", "aria-hidden": "true" }),
|
|
2646
|
+
/* @__PURE__ */ jsx33("span", { children: label })
|
|
2556
2647
|
] })
|
|
2557
2648
|
}
|
|
2558
2649
|
);
|
|
@@ -2565,10 +2656,10 @@ import {
|
|
|
2565
2656
|
MenuTrigger as AriaMenuTrigger,
|
|
2566
2657
|
Popover as Popover3
|
|
2567
2658
|
} from "react-aria-components";
|
|
2568
|
-
import { jsx as
|
|
2659
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2569
2660
|
var MenuTrigger = AriaMenuTrigger;
|
|
2570
2661
|
function MenuContent({ className, ...props }) {
|
|
2571
|
-
return /* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ jsx34(
|
|
2572
2663
|
Popover3,
|
|
2573
2664
|
{
|
|
2574
2665
|
"data-slot": "menu-content",
|
|
@@ -2581,10 +2672,10 @@ function MenuContent({ className, ...props }) {
|
|
|
2581
2672
|
);
|
|
2582
2673
|
}
|
|
2583
2674
|
function Menu({ className, ...props }) {
|
|
2584
|
-
return /* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ jsx34(AriaMenu, { "data-slot": "menu", className: cn("outline-none", className), ...props });
|
|
2585
2676
|
}
|
|
2586
2677
|
function MenuItem({ className, children, ...props }) {
|
|
2587
|
-
return /* @__PURE__ */
|
|
2678
|
+
return /* @__PURE__ */ jsx34(
|
|
2588
2679
|
AriaMenuItem,
|
|
2589
2680
|
{
|
|
2590
2681
|
"data-slot": "menu-item",
|
|
@@ -2599,7 +2690,7 @@ function MenuItem({ className, children, ...props }) {
|
|
|
2599
2690
|
}
|
|
2600
2691
|
|
|
2601
2692
|
// src/ui/metric-card/metric-card.tsx
|
|
2602
|
-
import { jsx as
|
|
2693
|
+
import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2603
2694
|
function MetricCard({
|
|
2604
2695
|
className,
|
|
2605
2696
|
label,
|
|
@@ -2609,11 +2700,11 @@ function MetricCard({
|
|
|
2609
2700
|
tone = "default",
|
|
2610
2701
|
...props
|
|
2611
2702
|
}) {
|
|
2612
|
-
return /* @__PURE__ */
|
|
2613
|
-
icon ? /* @__PURE__ */
|
|
2703
|
+
return /* @__PURE__ */ jsx35(Card, { "data-slot": "metric-card", "data-tone": tone, className: cn("min-w-0", className), ...props, children: /* @__PURE__ */ jsxs15(CardContent, { className: "flex items-start gap-3", children: [
|
|
2704
|
+
icon ? /* @__PURE__ */ jsx35("div", { "data-slot": "metric-card-icon", className: "text-muted-foreground shrink-0", children: icon }) : null,
|
|
2614
2705
|
/* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
|
|
2615
|
-
/* @__PURE__ */
|
|
2616
|
-
/* @__PURE__ */
|
|
2706
|
+
/* @__PURE__ */ jsx35("p", { "data-slot": "metric-card-label", className: "text-muted-foreground text-sm", children: label }),
|
|
2707
|
+
/* @__PURE__ */ jsx35(
|
|
2617
2708
|
"strong",
|
|
2618
2709
|
{
|
|
2619
2710
|
"data-slot": "metric-card-value",
|
|
@@ -2621,7 +2712,7 @@ function MetricCard({
|
|
|
2621
2712
|
children: value
|
|
2622
2713
|
}
|
|
2623
2714
|
),
|
|
2624
|
-
description ? /* @__PURE__ */
|
|
2715
|
+
description ? /* @__PURE__ */ jsx35("p", { "data-slot": "metric-card-description", className: "text-muted-foreground mt-1 text-xs", children: description }) : null
|
|
2625
2716
|
] })
|
|
2626
2717
|
] }) });
|
|
2627
2718
|
}
|
|
@@ -2634,7 +2725,7 @@ import {
|
|
|
2634
2725
|
useState as useState10
|
|
2635
2726
|
} from "react";
|
|
2636
2727
|
import { Input as AriaInput3 } from "react-aria-components";
|
|
2637
|
-
import { jsx as
|
|
2728
|
+
import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2638
2729
|
function normalizeOtp(value, length) {
|
|
2639
2730
|
return value.replace(/[^0-9]/g, "").slice(0, length);
|
|
2640
2731
|
}
|
|
@@ -2696,7 +2787,7 @@ var OtpInputImpl = forwardRef4(function OtpInput({
|
|
|
2696
2787
|
style: { gridTemplateColumns: `repeat(${slotCount}, minmax(0, 2.5rem))` },
|
|
2697
2788
|
onPointerDown: handlePointerDown,
|
|
2698
2789
|
children: [
|
|
2699
|
-
/* @__PURE__ */
|
|
2790
|
+
/* @__PURE__ */ jsx36(
|
|
2700
2791
|
AriaInput3,
|
|
2701
2792
|
{
|
|
2702
2793
|
...props,
|
|
@@ -2736,7 +2827,7 @@ var OtpInputImpl = forwardRef4(function OtpInput({
|
|
|
2736
2827
|
}
|
|
2737
2828
|
}
|
|
2738
2829
|
),
|
|
2739
|
-
slots.map((slot, index) => /* @__PURE__ */
|
|
2830
|
+
slots.map((slot, index) => /* @__PURE__ */ jsx36(
|
|
2740
2831
|
"span",
|
|
2741
2832
|
{
|
|
2742
2833
|
"aria-hidden": "true",
|
|
@@ -2759,9 +2850,9 @@ var OtpInputImpl = forwardRef4(function OtpInput({
|
|
|
2759
2850
|
var OtpInput2 = OtpInputImpl;
|
|
2760
2851
|
|
|
2761
2852
|
// src/ui/page-header/page-header.tsx
|
|
2762
|
-
import { jsx as
|
|
2853
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2763
2854
|
function PageHeader({ className, ...props }) {
|
|
2764
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ jsx37(
|
|
2765
2856
|
"header",
|
|
2766
2857
|
{
|
|
2767
2858
|
"data-slot": "page-header",
|
|
@@ -2774,10 +2865,10 @@ function PageHeader({ className, ...props }) {
|
|
|
2774
2865
|
);
|
|
2775
2866
|
}
|
|
2776
2867
|
function PageHeaderHeading({ className, ...props }) {
|
|
2777
|
-
return /* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ jsx37("div", { "data-slot": "page-header-heading", className: cn("min-w-0", className), ...props });
|
|
2778
2869
|
}
|
|
2779
2870
|
function PageHeaderTitle({ className, children, ...props }) {
|
|
2780
|
-
return /* @__PURE__ */
|
|
2871
|
+
return /* @__PURE__ */ jsx37(
|
|
2781
2872
|
"h1",
|
|
2782
2873
|
{
|
|
2783
2874
|
"data-slot": "page-header-title",
|
|
@@ -2788,7 +2879,7 @@ function PageHeaderTitle({ className, children, ...props }) {
|
|
|
2788
2879
|
);
|
|
2789
2880
|
}
|
|
2790
2881
|
function PageHeaderDescription({ className, ...props }) {
|
|
2791
|
-
return /* @__PURE__ */
|
|
2882
|
+
return /* @__PURE__ */ jsx37(
|
|
2792
2883
|
"p",
|
|
2793
2884
|
{
|
|
2794
2885
|
"data-slot": "page-header-description",
|
|
@@ -2798,7 +2889,7 @@ function PageHeaderDescription({ className, ...props }) {
|
|
|
2798
2889
|
);
|
|
2799
2890
|
}
|
|
2800
2891
|
function PageHeaderActions({ className, ...props }) {
|
|
2801
|
-
return /* @__PURE__ */
|
|
2892
|
+
return /* @__PURE__ */ jsx37(
|
|
2802
2893
|
"div",
|
|
2803
2894
|
{
|
|
2804
2895
|
"data-slot": "page-header-actions",
|
|
@@ -2811,7 +2902,7 @@ function PageHeaderActions({ className, ...props }) {
|
|
|
2811
2902
|
// src/ui/pagination/pagination.tsx
|
|
2812
2903
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
2813
2904
|
import * as React6 from "react";
|
|
2814
|
-
import { jsx as
|
|
2905
|
+
import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2815
2906
|
function visiblePages(page, pageCount, siblingCount) {
|
|
2816
2907
|
return [
|
|
2817
2908
|
.../* @__PURE__ */ new Set([
|
|
@@ -2838,9 +2929,9 @@ function Pagination({
|
|
|
2838
2929
|
"aria-label": ariaLabel,
|
|
2839
2930
|
className: cn("flex flex-wrap items-center justify-between gap-4", className),
|
|
2840
2931
|
children: [
|
|
2841
|
-
/* @__PURE__ */
|
|
2932
|
+
/* @__PURE__ */ jsx38("p", { className: "text-muted-foreground text-sm", children: summary ?? `P\xE1gina ${page} de ${pageCount}` }),
|
|
2842
2933
|
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-1", children: [
|
|
2843
|
-
/* @__PURE__ */
|
|
2934
|
+
/* @__PURE__ */ jsx38(
|
|
2844
2935
|
Button,
|
|
2845
2936
|
{
|
|
2846
2937
|
"aria-label": "P\xE1gina anterior",
|
|
@@ -2848,14 +2939,14 @@ function Pagination({
|
|
|
2848
2939
|
onPress: () => onPageChange(page - 1),
|
|
2849
2940
|
size: "icon",
|
|
2850
2941
|
variant: "ghost",
|
|
2851
|
-
children: /* @__PURE__ */
|
|
2942
|
+
children: /* @__PURE__ */ jsx38(ChevronLeft, {})
|
|
2852
2943
|
}
|
|
2853
2944
|
),
|
|
2854
2945
|
pages.map((item, index) => {
|
|
2855
2946
|
const previousPage = pages[index - 1];
|
|
2856
2947
|
return /* @__PURE__ */ jsxs17(React6.Fragment, { children: [
|
|
2857
|
-
previousPage !== void 0 && item > previousPage + 1 ? /* @__PURE__ */
|
|
2858
|
-
/* @__PURE__ */
|
|
2948
|
+
previousPage !== void 0 && item > previousPage + 1 ? /* @__PURE__ */ jsx38("span", { "aria-hidden": "true", className: "text-muted-foreground px-1", children: "\u2026" }) : null,
|
|
2949
|
+
/* @__PURE__ */ jsx38(
|
|
2859
2950
|
Button,
|
|
2860
2951
|
{
|
|
2861
2952
|
"aria-current": item === page ? "page" : void 0,
|
|
@@ -2868,7 +2959,7 @@ function Pagination({
|
|
|
2868
2959
|
)
|
|
2869
2960
|
] }, item);
|
|
2870
2961
|
}),
|
|
2871
|
-
/* @__PURE__ */
|
|
2962
|
+
/* @__PURE__ */ jsx38(
|
|
2872
2963
|
Button,
|
|
2873
2964
|
{
|
|
2874
2965
|
"aria-label": "P\xE1gina siguiente",
|
|
@@ -2876,7 +2967,7 @@ function Pagination({
|
|
|
2876
2967
|
onPress: () => onPageChange(page + 1),
|
|
2877
2968
|
size: "icon",
|
|
2878
2969
|
variant: "ghost",
|
|
2879
|
-
children: /* @__PURE__ */
|
|
2970
|
+
children: /* @__PURE__ */ jsx38(ChevronRight, {})
|
|
2880
2971
|
}
|
|
2881
2972
|
)
|
|
2882
2973
|
] })
|
|
@@ -2890,10 +2981,10 @@ import {
|
|
|
2890
2981
|
DialogTrigger as AriaDialogTrigger,
|
|
2891
2982
|
Popover as AriaPopover
|
|
2892
2983
|
} from "react-aria-components";
|
|
2893
|
-
import { jsx as
|
|
2984
|
+
import { jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2894
2985
|
var PopoverTrigger = AriaDialogTrigger;
|
|
2895
2986
|
function PopoverContent({ className, ...props }) {
|
|
2896
|
-
return /* @__PURE__ */
|
|
2987
|
+
return /* @__PURE__ */ jsx39(
|
|
2897
2988
|
AriaPopover,
|
|
2898
2989
|
{
|
|
2899
2990
|
"data-slot": "popover",
|
|
@@ -2907,12 +2998,12 @@ function PopoverContent({ className, ...props }) {
|
|
|
2907
2998
|
);
|
|
2908
2999
|
}
|
|
2909
3000
|
function Popover4(props) {
|
|
2910
|
-
if (!("trigger" in props)) return /* @__PURE__ */
|
|
3001
|
+
if (!("trigger" in props)) return /* @__PURE__ */ jsx39(PopoverContent, { ...props });
|
|
2911
3002
|
const { children, trigger, triggerProps, defaultOpen, isOpen, onOpenChange, ...contentProps } = props;
|
|
2912
|
-
const triggerElement = typeof trigger === "string" ? /* @__PURE__ */
|
|
3003
|
+
const triggerElement = typeof trigger === "string" ? /* @__PURE__ */ jsx39(Button, { ...triggerProps, children: trigger }) : trigger;
|
|
2913
3004
|
return /* @__PURE__ */ jsxs18(PopoverTrigger, { defaultOpen, isOpen, onOpenChange, children: [
|
|
2914
3005
|
triggerElement,
|
|
2915
|
-
/* @__PURE__ */
|
|
3006
|
+
/* @__PURE__ */ jsx39(PopoverContent, { ...contentProps, children })
|
|
2916
3007
|
] });
|
|
2917
3008
|
}
|
|
2918
3009
|
|
|
@@ -2924,7 +3015,7 @@ import {
|
|
|
2924
3015
|
Input as AriaInput4,
|
|
2925
3016
|
NumberField as AriaNumberField
|
|
2926
3017
|
} from "react-aria-components";
|
|
2927
|
-
import { jsx as
|
|
3018
|
+
import { jsx as jsx40, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2928
3019
|
function QuantityInput({
|
|
2929
3020
|
className,
|
|
2930
3021
|
inputClassName,
|
|
@@ -2934,7 +3025,7 @@ function QuantityInput({
|
|
|
2934
3025
|
step = 1,
|
|
2935
3026
|
...props
|
|
2936
3027
|
}) {
|
|
2937
|
-
return /* @__PURE__ */
|
|
3028
|
+
return /* @__PURE__ */ jsx40(
|
|
2938
3029
|
AriaNumberField,
|
|
2939
3030
|
{
|
|
2940
3031
|
...props,
|
|
@@ -2951,17 +3042,17 @@ function QuantityInput({
|
|
|
2951
3042
|
"data-slot": "quantity-input-group",
|
|
2952
3043
|
className: "border-border bg-background text-foreground focus-within:border-ring focus-within:ring-ring/50 group-data-invalid/quantity-input:border-destructive flex h-8 min-w-0 items-stretch overflow-hidden rounded-lg border transition-[border-color,box-shadow] focus-within:ring-3",
|
|
2953
3044
|
children: [
|
|
2954
|
-
/* @__PURE__ */
|
|
3045
|
+
/* @__PURE__ */ jsx40(
|
|
2955
3046
|
AriaButton,
|
|
2956
3047
|
{
|
|
2957
3048
|
slot: "decrement",
|
|
2958
3049
|
"aria-label": decrementAriaLabel,
|
|
2959
3050
|
"data-slot": "quantity-input-decrement",
|
|
2960
3051
|
className: "border-border text-muted-foreground hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted flex size-8 shrink-0 cursor-pointer items-center justify-center border-r transition-colors outline-none data-disabled:pointer-events-none",
|
|
2961
|
-
children: /* @__PURE__ */
|
|
3052
|
+
children: /* @__PURE__ */ jsx40(Minus, { "aria-hidden": "true", className: "size-4" })
|
|
2962
3053
|
}
|
|
2963
3054
|
),
|
|
2964
|
-
/* @__PURE__ */
|
|
3055
|
+
/* @__PURE__ */ jsx40(
|
|
2965
3056
|
AriaInput4,
|
|
2966
3057
|
{
|
|
2967
3058
|
"data-slot": "quantity-input-value",
|
|
@@ -2971,14 +3062,14 @@ function QuantityInput({
|
|
|
2971
3062
|
)
|
|
2972
3063
|
}
|
|
2973
3064
|
),
|
|
2974
|
-
/* @__PURE__ */
|
|
3065
|
+
/* @__PURE__ */ jsx40(
|
|
2975
3066
|
AriaButton,
|
|
2976
3067
|
{
|
|
2977
3068
|
slot: "increment",
|
|
2978
3069
|
"aria-label": incrementAriaLabel,
|
|
2979
3070
|
"data-slot": "quantity-input-increment",
|
|
2980
3071
|
className: "border-border text-muted-foreground hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted flex size-8 shrink-0 cursor-pointer items-center justify-center border-l transition-colors outline-none data-disabled:pointer-events-none",
|
|
2981
|
-
children: /* @__PURE__ */
|
|
3072
|
+
children: /* @__PURE__ */ jsx40(Plus, { "aria-hidden": "true", className: "size-4" })
|
|
2982
3073
|
}
|
|
2983
3074
|
)
|
|
2984
3075
|
]
|
|
@@ -2998,10 +3089,10 @@ import {
|
|
|
2998
3089
|
ListBoxItem as ListBoxItem3,
|
|
2999
3090
|
Popover as Popover5
|
|
3000
3091
|
} from "react-aria-components";
|
|
3001
|
-
import { Fragment as Fragment8, jsx as
|
|
3092
|
+
import { Fragment as Fragment8, jsx as jsx41, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3002
3093
|
var Select = AriaSelect;
|
|
3003
3094
|
function SelectTrigger({ className, children, ...props }) {
|
|
3004
|
-
return /* @__PURE__ */
|
|
3095
|
+
return /* @__PURE__ */ jsx41(
|
|
3005
3096
|
AriaButton2,
|
|
3006
3097
|
{
|
|
3007
3098
|
"data-slot": "select-trigger",
|
|
@@ -3012,7 +3103,7 @@ function SelectTrigger({ className, children, ...props }) {
|
|
|
3012
3103
|
...props,
|
|
3013
3104
|
children: (state) => /* @__PURE__ */ jsxs20(Fragment8, { children: [
|
|
3014
3105
|
typeof children === "function" ? children(state) : children,
|
|
3015
|
-
/* @__PURE__ */
|
|
3106
|
+
/* @__PURE__ */ jsx41(
|
|
3016
3107
|
ChevronDown2,
|
|
3017
3108
|
{
|
|
3018
3109
|
"aria-hidden": "true",
|
|
@@ -3024,7 +3115,7 @@ function SelectTrigger({ className, children, ...props }) {
|
|
|
3024
3115
|
);
|
|
3025
3116
|
}
|
|
3026
3117
|
function SelectValue({ className, ...props }) {
|
|
3027
|
-
return /* @__PURE__ */
|
|
3118
|
+
return /* @__PURE__ */ jsx41(
|
|
3028
3119
|
AriaSelectValue,
|
|
3029
3120
|
{
|
|
3030
3121
|
"data-slot": "select-value",
|
|
@@ -3034,7 +3125,7 @@ function SelectValue({ className, ...props }) {
|
|
|
3034
3125
|
);
|
|
3035
3126
|
}
|
|
3036
3127
|
function SelectContent({ className, ...props }) {
|
|
3037
|
-
return /* @__PURE__ */
|
|
3128
|
+
return /* @__PURE__ */ jsx41(
|
|
3038
3129
|
Popover5,
|
|
3039
3130
|
{
|
|
3040
3131
|
"data-slot": "select-content",
|
|
@@ -3047,7 +3138,7 @@ function SelectContent({ className, ...props }) {
|
|
|
3047
3138
|
);
|
|
3048
3139
|
}
|
|
3049
3140
|
function SelectList({ className, ...props }) {
|
|
3050
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ jsx41(
|
|
3051
3142
|
ListBox3,
|
|
3052
3143
|
{
|
|
3053
3144
|
"data-slot": "select-list",
|
|
@@ -3061,7 +3152,7 @@ function SelectItem({
|
|
|
3061
3152
|
children,
|
|
3062
3153
|
...props
|
|
3063
3154
|
}) {
|
|
3064
|
-
return /* @__PURE__ */
|
|
3155
|
+
return /* @__PURE__ */ jsx41(
|
|
3065
3156
|
ListBoxItem3,
|
|
3066
3157
|
{
|
|
3067
3158
|
"data-slot": "select-item",
|
|
@@ -3085,12 +3176,12 @@ import {
|
|
|
3085
3176
|
DialogTrigger as SheetTriggerPrimitive,
|
|
3086
3177
|
Text as Text3
|
|
3087
3178
|
} from "react-aria-components";
|
|
3088
|
-
import { jsx as
|
|
3179
|
+
import { jsx as jsx42, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3089
3180
|
function SheetTrigger({ ...props }) {
|
|
3090
|
-
return /* @__PURE__ */
|
|
3181
|
+
return /* @__PURE__ */ jsx42(SheetTriggerPrimitive, { "data-slot": "sheet-trigger", ...props });
|
|
3091
3182
|
}
|
|
3092
3183
|
function SheetClose({ className, variant = "outline", size = "default", ...props }) {
|
|
3093
|
-
return /* @__PURE__ */
|
|
3184
|
+
return /* @__PURE__ */ jsx42(
|
|
3094
3185
|
Button,
|
|
3095
3186
|
{
|
|
3096
3187
|
slot: "close",
|
|
@@ -3107,7 +3198,7 @@ function SheetOverlay({
|
|
|
3107
3198
|
children,
|
|
3108
3199
|
...props
|
|
3109
3200
|
}) {
|
|
3110
|
-
return /* @__PURE__ */
|
|
3201
|
+
return /* @__PURE__ */ jsx42(
|
|
3111
3202
|
ModalOverlayPrimitive,
|
|
3112
3203
|
{
|
|
3113
3204
|
"data-slot": "sheet-overlay",
|
|
@@ -3128,7 +3219,7 @@ function Sheet({
|
|
|
3128
3219
|
showCloseButton = true,
|
|
3129
3220
|
...props
|
|
3130
3221
|
}) {
|
|
3131
|
-
return /* @__PURE__ */
|
|
3222
|
+
return /* @__PURE__ */ jsx42(SheetOverlay, { ...props, children: /* @__PURE__ */ jsx42(
|
|
3132
3223
|
ModalPrimitive,
|
|
3133
3224
|
{
|
|
3134
3225
|
"data-slot": "sheet-content",
|
|
@@ -3145,8 +3236,8 @@ function Sheet({
|
|
|
3145
3236
|
children: [
|
|
3146
3237
|
children,
|
|
3147
3238
|
showCloseButton && /* @__PURE__ */ jsxs21(SheetClose, { variant: "ghost", className: "absolute top-3 right-3", size: "icon-sm", children: [
|
|
3148
|
-
/* @__PURE__ */
|
|
3149
|
-
/* @__PURE__ */
|
|
3239
|
+
/* @__PURE__ */ jsx42(XIcon2, {}),
|
|
3240
|
+
/* @__PURE__ */ jsx42("span", { className: "sr-only", children: "Cerrar" })
|
|
3150
3241
|
] })
|
|
3151
3242
|
]
|
|
3152
3243
|
}
|
|
@@ -3161,7 +3252,7 @@ function SheetContent({
|
|
|
3161
3252
|
showCloseButton = true,
|
|
3162
3253
|
...props
|
|
3163
3254
|
}) {
|
|
3164
|
-
return /* @__PURE__ */
|
|
3255
|
+
return /* @__PURE__ */ jsx42(Sheet, { className, side, showCloseButton, ...props, children });
|
|
3165
3256
|
}
|
|
3166
3257
|
function Drawer({
|
|
3167
3258
|
children,
|
|
@@ -3172,14 +3263,14 @@ function Drawer({
|
|
|
3172
3263
|
onOpenChange,
|
|
3173
3264
|
...contentProps
|
|
3174
3265
|
}) {
|
|
3175
|
-
const triggerElement = typeof trigger === "string" ? /* @__PURE__ */
|
|
3266
|
+
const triggerElement = typeof trigger === "string" ? /* @__PURE__ */ jsx42(Button, { ...triggerProps, children: trigger }) : trigger;
|
|
3176
3267
|
return /* @__PURE__ */ jsxs21(SheetTrigger, { defaultOpen, isOpen, onOpenChange, children: [
|
|
3177
3268
|
triggerElement,
|
|
3178
|
-
/* @__PURE__ */
|
|
3269
|
+
/* @__PURE__ */ jsx42(SheetContent, { ...contentProps, children })
|
|
3179
3270
|
] });
|
|
3180
3271
|
}
|
|
3181
3272
|
function SheetHeader({ className, ...props }) {
|
|
3182
|
-
return /* @__PURE__ */
|
|
3273
|
+
return /* @__PURE__ */ jsx42(
|
|
3183
3274
|
"div",
|
|
3184
3275
|
{
|
|
3185
3276
|
"data-slot": "sheet-header",
|
|
@@ -3189,7 +3280,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
3189
3280
|
);
|
|
3190
3281
|
}
|
|
3191
3282
|
function SheetFooter({ className, ...props }) {
|
|
3192
|
-
return /* @__PURE__ */
|
|
3283
|
+
return /* @__PURE__ */ jsx42(
|
|
3193
3284
|
"div",
|
|
3194
3285
|
{
|
|
3195
3286
|
"data-slot": "sheet-footer",
|
|
@@ -3199,7 +3290,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
3199
3290
|
);
|
|
3200
3291
|
}
|
|
3201
3292
|
function SheetTitle({ className, ...props }) {
|
|
3202
|
-
return /* @__PURE__ */
|
|
3293
|
+
return /* @__PURE__ */ jsx42(
|
|
3203
3294
|
Heading3,
|
|
3204
3295
|
{
|
|
3205
3296
|
slot: "title",
|
|
@@ -3213,7 +3304,7 @@ function SheetDescription({
|
|
|
3213
3304
|
className,
|
|
3214
3305
|
...props
|
|
3215
3306
|
}) {
|
|
3216
|
-
return /* @__PURE__ */
|
|
3307
|
+
return /* @__PURE__ */ jsx42(
|
|
3217
3308
|
Text3,
|
|
3218
3309
|
{
|
|
3219
3310
|
slot: "description",
|
|
@@ -3246,7 +3337,7 @@ function useSidebar() {
|
|
|
3246
3337
|
}
|
|
3247
3338
|
|
|
3248
3339
|
// src/ui/sidebar/sidebar.tsx
|
|
3249
|
-
import { Fragment as Fragment9, jsx as
|
|
3340
|
+
import { Fragment as Fragment9, jsx as jsx43, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3250
3341
|
function SidebarProvider({
|
|
3251
3342
|
defaultCollapsed = false,
|
|
3252
3343
|
children
|
|
@@ -3260,11 +3351,11 @@ function SidebarProvider({
|
|
|
3260
3351
|
}),
|
|
3261
3352
|
[collapsed]
|
|
3262
3353
|
);
|
|
3263
|
-
return /* @__PURE__ */
|
|
3354
|
+
return /* @__PURE__ */ jsx43(SidebarContext.Provider, { value, children });
|
|
3264
3355
|
}
|
|
3265
3356
|
function Sidebar({ className, ...props }) {
|
|
3266
3357
|
const { collapsed } = useSidebar();
|
|
3267
|
-
return /* @__PURE__ */
|
|
3358
|
+
return /* @__PURE__ */ jsx43(
|
|
3268
3359
|
"aside",
|
|
3269
3360
|
{
|
|
3270
3361
|
"data-slot": "sidebar",
|
|
@@ -3278,7 +3369,7 @@ function Sidebar({ className, ...props }) {
|
|
|
3278
3369
|
);
|
|
3279
3370
|
}
|
|
3280
3371
|
function SidebarHeader({ className, ...props }) {
|
|
3281
|
-
return /* @__PURE__ */
|
|
3372
|
+
return /* @__PURE__ */ jsx43(
|
|
3282
3373
|
"div",
|
|
3283
3374
|
{
|
|
3284
3375
|
"data-slot": "sidebar-header",
|
|
@@ -3304,15 +3395,15 @@ function SidebarSearch({
|
|
|
3304
3395
|
),
|
|
3305
3396
|
...props,
|
|
3306
3397
|
children: [
|
|
3307
|
-
/* @__PURE__ */
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
/* @__PURE__ */
|
|
3398
|
+
/* @__PURE__ */ jsx43(Search, { className: "size-4 shrink-0" }),
|
|
3399
|
+
/* @__PURE__ */ jsx43("span", { className: "flex-1 text-left", children: label }),
|
|
3400
|
+
/* @__PURE__ */ jsx43("kbd", { className: "bg-secondary text-muted-foreground rounded px-1.5 py-0.5 font-mono text-[10px]", children: shortcut })
|
|
3310
3401
|
]
|
|
3311
3402
|
}
|
|
3312
3403
|
);
|
|
3313
3404
|
}
|
|
3314
3405
|
function SidebarContent({ className, ...props }) {
|
|
3315
|
-
return /* @__PURE__ */
|
|
3406
|
+
return /* @__PURE__ */ jsx43(
|
|
3316
3407
|
"nav",
|
|
3317
3408
|
{
|
|
3318
3409
|
"data-slot": "sidebar-content",
|
|
@@ -3323,7 +3414,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
3323
3414
|
);
|
|
3324
3415
|
}
|
|
3325
3416
|
function SidebarFooter({ className, ...props }) {
|
|
3326
|
-
return /* @__PURE__ */
|
|
3417
|
+
return /* @__PURE__ */ jsx43(
|
|
3327
3418
|
"div",
|
|
3328
3419
|
{
|
|
3329
3420
|
"data-slot": "sidebar-footer",
|
|
@@ -3340,7 +3431,7 @@ function SidebarGroup({
|
|
|
3340
3431
|
}) {
|
|
3341
3432
|
const { collapsed } = useSidebar();
|
|
3342
3433
|
return /* @__PURE__ */ jsxs22("section", { "data-slot": "sidebar-group", className: cn("mb-4 last:mb-0", className), ...props, children: [
|
|
3343
|
-
label && /* @__PURE__ */
|
|
3434
|
+
label && /* @__PURE__ */ jsx43(
|
|
3344
3435
|
"h2",
|
|
3345
3436
|
{
|
|
3346
3437
|
className: cn(
|
|
@@ -3364,7 +3455,7 @@ function SidebarItem({
|
|
|
3364
3455
|
}) {
|
|
3365
3456
|
const { collapsed } = useSidebar();
|
|
3366
3457
|
const content = typeof children === "function" ? label : children ?? label;
|
|
3367
|
-
return /* @__PURE__ */
|
|
3458
|
+
return /* @__PURE__ */ jsx43(
|
|
3368
3459
|
Link3,
|
|
3369
3460
|
{
|
|
3370
3461
|
"data-slot": "sidebar-item",
|
|
@@ -3377,15 +3468,15 @@ function SidebarItem({
|
|
|
3377
3468
|
),
|
|
3378
3469
|
...props,
|
|
3379
3470
|
children: (values) => /* @__PURE__ */ jsxs22(Fragment9, { children: [
|
|
3380
|
-
/* @__PURE__ */
|
|
3381
|
-
/* @__PURE__ */
|
|
3382
|
-
badge && !collapsed && /* @__PURE__ */
|
|
3471
|
+
/* @__PURE__ */ jsx43("span", { className: "flex size-4 shrink-0 items-center justify-center", children: icon }),
|
|
3472
|
+
/* @__PURE__ */ jsx43("span", { className: cn("min-w-0 flex-1 truncate", collapsed && "sr-only"), children: typeof children === "function" ? children(values) : content }),
|
|
3473
|
+
badge && !collapsed && /* @__PURE__ */ jsx43("span", { className: "text-muted-foreground text-xs", children: badge })
|
|
3383
3474
|
] })
|
|
3384
3475
|
}
|
|
3385
3476
|
);
|
|
3386
3477
|
}
|
|
3387
3478
|
function SidebarSeparator({ className, ...props }) {
|
|
3388
|
-
return /* @__PURE__ */
|
|
3479
|
+
return /* @__PURE__ */ jsx43(
|
|
3389
3480
|
"hr",
|
|
3390
3481
|
{
|
|
3391
3482
|
"data-slot": "sidebar-separator",
|
|
@@ -3396,7 +3487,7 @@ function SidebarSeparator({ className, ...props }) {
|
|
|
3396
3487
|
}
|
|
3397
3488
|
function SidebarTrigger({ className, ...props }) {
|
|
3398
3489
|
const { collapsed, toggle } = useSidebar();
|
|
3399
|
-
return /* @__PURE__ */
|
|
3490
|
+
return /* @__PURE__ */ jsx43(
|
|
3400
3491
|
Button,
|
|
3401
3492
|
{
|
|
3402
3493
|
"aria-label": collapsed ? "Expandir navegaci\xF3n" : "Colapsar navegaci\xF3n",
|
|
@@ -3405,13 +3496,13 @@ function SidebarTrigger({ className, ...props }) {
|
|
|
3405
3496
|
variant: "ghost",
|
|
3406
3497
|
className: cn("ml-auto", className),
|
|
3407
3498
|
...props,
|
|
3408
|
-
children: collapsed ? /* @__PURE__ */
|
|
3499
|
+
children: collapsed ? /* @__PURE__ */ jsx43(ChevronRight2, {}) : /* @__PURE__ */ jsx43(ChevronLeft2, {})
|
|
3409
3500
|
}
|
|
3410
3501
|
);
|
|
3411
3502
|
}
|
|
3412
3503
|
function SidebarRail({ className, ...props }) {
|
|
3413
3504
|
const { toggle } = useSidebar();
|
|
3414
|
-
return /* @__PURE__ */
|
|
3505
|
+
return /* @__PURE__ */ jsx43(
|
|
3415
3506
|
"button",
|
|
3416
3507
|
{
|
|
3417
3508
|
type: "button",
|
|
@@ -3426,7 +3517,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
3426
3517
|
);
|
|
3427
3518
|
}
|
|
3428
3519
|
function SidebarMore({ className, ...props }) {
|
|
3429
|
-
return /* @__PURE__ */
|
|
3520
|
+
return /* @__PURE__ */ jsx43(
|
|
3430
3521
|
Button,
|
|
3431
3522
|
{
|
|
3432
3523
|
"aria-label": "M\xE1s opciones",
|
|
@@ -3434,15 +3525,15 @@ function SidebarMore({ className, ...props }) {
|
|
|
3434
3525
|
variant: "ghost",
|
|
3435
3526
|
className: cn("size-7", className),
|
|
3436
3527
|
...props,
|
|
3437
|
-
children: /* @__PURE__ */
|
|
3528
|
+
children: /* @__PURE__ */ jsx43(Ellipsis, {})
|
|
3438
3529
|
}
|
|
3439
3530
|
);
|
|
3440
3531
|
}
|
|
3441
3532
|
|
|
3442
3533
|
// src/ui/skeleton/skeleton.tsx
|
|
3443
|
-
import { jsx as
|
|
3534
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3444
3535
|
function Skeleton({ className, ...props }) {
|
|
3445
|
-
return /* @__PURE__ */
|
|
3536
|
+
return /* @__PURE__ */ jsx44(
|
|
3446
3537
|
"div",
|
|
3447
3538
|
{
|
|
3448
3539
|
"aria-hidden": "true",
|
|
@@ -3457,7 +3548,7 @@ function Skeleton({ className, ...props }) {
|
|
|
3457
3548
|
import { LoaderCircle as LoaderCircle3 } from "lucide-react";
|
|
3458
3549
|
import { useCallback as useCallback6, useLayoutEffect, useRef as useRef5 } from "react";
|
|
3459
3550
|
import { useFormStatus } from "react-dom";
|
|
3460
|
-
import { Fragment as Fragment10, jsx as
|
|
3551
|
+
import { Fragment as Fragment10, jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3461
3552
|
function assignRef(ref, node) {
|
|
3462
3553
|
if (typeof ref === "function") {
|
|
3463
3554
|
ref(node);
|
|
@@ -3492,7 +3583,7 @@ function SubmitButton({
|
|
|
3492
3583
|
if (busy) button.setAttribute("aria-busy", "true");
|
|
3493
3584
|
else button.removeAttribute("aria-busy");
|
|
3494
3585
|
}, [busy]);
|
|
3495
|
-
return /* @__PURE__ */
|
|
3586
|
+
return /* @__PURE__ */ jsx45(
|
|
3496
3587
|
Button,
|
|
3497
3588
|
{
|
|
3498
3589
|
ref: setButtonRef,
|
|
@@ -3502,7 +3593,7 @@ function SubmitButton({
|
|
|
3502
3593
|
"aria-busy": busy || void 0,
|
|
3503
3594
|
...props,
|
|
3504
3595
|
children: busy ? /* @__PURE__ */ jsxs23(Fragment10, { children: [
|
|
3505
|
-
/* @__PURE__ */
|
|
3596
|
+
/* @__PURE__ */ jsx45(LoaderCircle3, { "aria-hidden": "true", className: "size-3.5 animate-spin" }),
|
|
3506
3597
|
label
|
|
3507
3598
|
] }) : children
|
|
3508
3599
|
}
|
|
@@ -3512,7 +3603,7 @@ function SubmitButton({
|
|
|
3512
3603
|
// src/ui/switch/switch.tsx
|
|
3513
3604
|
import { useEffect as useEffect5, useRef as useRef6 } from "react";
|
|
3514
3605
|
import { Switch as AriaSwitch } from "react-aria-components";
|
|
3515
|
-
import { Fragment as Fragment11, jsx as
|
|
3606
|
+
import { Fragment as Fragment11, jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3516
3607
|
var switchSizes = {
|
|
3517
3608
|
sm: {
|
|
3518
3609
|
control: "h-4 w-[1.875rem] p-0.5",
|
|
@@ -3569,7 +3660,7 @@ function Switch({
|
|
|
3569
3660
|
ownerDocument.addEventListener("keydown", handleDirectionalKey);
|
|
3570
3661
|
return () => ownerDocument.removeEventListener("keydown", handleDirectionalKey);
|
|
3571
3662
|
}, [isDisabled, isReadOnly, resolvedInputRef]);
|
|
3572
|
-
return /* @__PURE__ */
|
|
3663
|
+
return /* @__PURE__ */ jsx46(
|
|
3573
3664
|
AriaSwitch,
|
|
3574
3665
|
{
|
|
3575
3666
|
"data-slot": "switch",
|
|
@@ -3587,7 +3678,7 @@ function Switch({
|
|
|
3587
3678
|
const isThumbPressed = state.isPressed;
|
|
3588
3679
|
const thumbOffset = state.isSelected ? isThumbPressed ? styles.activeSelectedOffset : styles.selectedOffset : "0";
|
|
3589
3680
|
return /* @__PURE__ */ jsxs24(Fragment11, { children: [
|
|
3590
|
-
/* @__PURE__ */
|
|
3681
|
+
/* @__PURE__ */ jsx46(
|
|
3591
3682
|
"span",
|
|
3592
3683
|
{
|
|
3593
3684
|
"aria-hidden": "true",
|
|
@@ -3601,7 +3692,7 @@ function Switch({
|
|
|
3601
3692
|
"group-data-focus-visible/switch:ring-3 group-data-focus-visible/switch:ring-ring/50",
|
|
3602
3693
|
styles.control
|
|
3603
3694
|
),
|
|
3604
|
-
children: /* @__PURE__ */
|
|
3695
|
+
children: /* @__PURE__ */ jsx46(
|
|
3605
3696
|
"span",
|
|
3606
3697
|
{
|
|
3607
3698
|
"data-slot": "switch-thumb",
|
|
@@ -3622,8 +3713,8 @@ function Switch({
|
|
|
3622
3713
|
}
|
|
3623
3714
|
),
|
|
3624
3715
|
children || description ? /* @__PURE__ */ jsxs24("span", { className: "grid gap-0.5 leading-tight", children: [
|
|
3625
|
-
children ? /* @__PURE__ */
|
|
3626
|
-
description ? /* @__PURE__ */
|
|
3716
|
+
children ? /* @__PURE__ */ jsx46("span", { "data-slot": "switch-label", className: "font-medium", children: typeof children === "function" ? children(state) : children }) : null,
|
|
3717
|
+
description ? /* @__PURE__ */ jsx46(
|
|
3627
3718
|
"span",
|
|
3628
3719
|
{
|
|
3629
3720
|
"data-slot": "switch-description",
|
|
@@ -3639,9 +3730,9 @@ function Switch({
|
|
|
3639
3730
|
}
|
|
3640
3731
|
|
|
3641
3732
|
// src/ui/table/table.tsx
|
|
3642
|
-
import { jsx as
|
|
3733
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
3643
3734
|
function Table({ className, ...props }) {
|
|
3644
|
-
return /* @__PURE__ */
|
|
3735
|
+
return /* @__PURE__ */ jsx47("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ jsx47(
|
|
3645
3736
|
"table",
|
|
3646
3737
|
{
|
|
3647
3738
|
"data-slot": "table",
|
|
@@ -3651,10 +3742,10 @@ function Table({ className, ...props }) {
|
|
|
3651
3742
|
) });
|
|
3652
3743
|
}
|
|
3653
3744
|
function TableHeader({ className, ...props }) {
|
|
3654
|
-
return /* @__PURE__ */
|
|
3745
|
+
return /* @__PURE__ */ jsx47("thead", { "data-slot": "table-header", className: cn("[&_tr]:border-b", className), ...props });
|
|
3655
3746
|
}
|
|
3656
3747
|
function TableBody({ className, ...props }) {
|
|
3657
|
-
return /* @__PURE__ */
|
|
3748
|
+
return /* @__PURE__ */ jsx47(
|
|
3658
3749
|
"tbody",
|
|
3659
3750
|
{
|
|
3660
3751
|
"data-slot": "table-body",
|
|
@@ -3664,7 +3755,7 @@ function TableBody({ className, ...props }) {
|
|
|
3664
3755
|
);
|
|
3665
3756
|
}
|
|
3666
3757
|
function TableRow({ className, ...props }) {
|
|
3667
|
-
return /* @__PURE__ */
|
|
3758
|
+
return /* @__PURE__ */ jsx47(
|
|
3668
3759
|
"tr",
|
|
3669
3760
|
{
|
|
3670
3761
|
"data-slot": "table-row",
|
|
@@ -3677,7 +3768,7 @@ function TableRow({ className, ...props }) {
|
|
|
3677
3768
|
);
|
|
3678
3769
|
}
|
|
3679
3770
|
function TableHead({ className, ...props }) {
|
|
3680
|
-
return /* @__PURE__ */
|
|
3771
|
+
return /* @__PURE__ */ jsx47(
|
|
3681
3772
|
"th",
|
|
3682
3773
|
{
|
|
3683
3774
|
"data-slot": "table-head",
|
|
@@ -3690,7 +3781,7 @@ function TableHead({ className, ...props }) {
|
|
|
3690
3781
|
);
|
|
3691
3782
|
}
|
|
3692
3783
|
function TableCell({ className, ...props }) {
|
|
3693
|
-
return /* @__PURE__ */
|
|
3784
|
+
return /* @__PURE__ */ jsx47(
|
|
3694
3785
|
"td",
|
|
3695
3786
|
{
|
|
3696
3787
|
"data-slot": "table-cell",
|
|
@@ -3700,7 +3791,7 @@ function TableCell({ className, ...props }) {
|
|
|
3700
3791
|
);
|
|
3701
3792
|
}
|
|
3702
3793
|
function TableCaption({ className, ...props }) {
|
|
3703
|
-
return /* @__PURE__ */
|
|
3794
|
+
return /* @__PURE__ */ jsx47(
|
|
3704
3795
|
"caption",
|
|
3705
3796
|
{
|
|
3706
3797
|
"data-slot": "table-caption",
|
|
@@ -3710,7 +3801,7 @@ function TableCaption({ className, ...props }) {
|
|
|
3710
3801
|
);
|
|
3711
3802
|
}
|
|
3712
3803
|
function TableFooter({ className, ...props }) {
|
|
3713
|
-
return /* @__PURE__ */
|
|
3804
|
+
return /* @__PURE__ */ jsx47(
|
|
3714
3805
|
"tfoot",
|
|
3715
3806
|
{
|
|
3716
3807
|
"data-slot": "table-footer",
|
|
@@ -3732,9 +3823,9 @@ import {
|
|
|
3732
3823
|
Tabs as AriaTabs,
|
|
3733
3824
|
composeRenderProps as composeRenderProps2
|
|
3734
3825
|
} from "react-aria-components";
|
|
3735
|
-
import { jsx as
|
|
3826
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
3736
3827
|
function Tabs({ className, ...props }) {
|
|
3737
|
-
return /* @__PURE__ */
|
|
3828
|
+
return /* @__PURE__ */ jsx48(
|
|
3738
3829
|
AriaTabs,
|
|
3739
3830
|
{
|
|
3740
3831
|
"data-slot": "tabs",
|
|
@@ -3744,7 +3835,7 @@ function Tabs({ className, ...props }) {
|
|
|
3744
3835
|
);
|
|
3745
3836
|
}
|
|
3746
3837
|
function TabsList({ className, ...props }) {
|
|
3747
|
-
return /* @__PURE__ */
|
|
3838
|
+
return /* @__PURE__ */ jsx48(
|
|
3748
3839
|
AriaTabList,
|
|
3749
3840
|
{
|
|
3750
3841
|
"data-slot": "tabs-list",
|
|
@@ -3760,7 +3851,7 @@ function TabsList({ className, ...props }) {
|
|
|
3760
3851
|
);
|
|
3761
3852
|
}
|
|
3762
3853
|
function TabsTrigger({ className, ...props }) {
|
|
3763
|
-
return /* @__PURE__ */
|
|
3854
|
+
return /* @__PURE__ */ jsx48(
|
|
3764
3855
|
AriaTab,
|
|
3765
3856
|
{
|
|
3766
3857
|
"data-slot": "tabs-trigger",
|
|
@@ -3776,10 +3867,10 @@ function TabsTrigger({ className, ...props }) {
|
|
|
3776
3867
|
);
|
|
3777
3868
|
}
|
|
3778
3869
|
function TabsPanels({ className, ...props }) {
|
|
3779
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsx48(AriaTabPanels, { "data-slot": "tabs-panels", className: cn("min-w-0", className), ...props });
|
|
3780
3871
|
}
|
|
3781
3872
|
function TabsContent({ className, ...props }) {
|
|
3782
|
-
return /* @__PURE__ */
|
|
3873
|
+
return /* @__PURE__ */ jsx48(
|
|
3783
3874
|
AriaTabPanel,
|
|
3784
3875
|
{
|
|
3785
3876
|
"data-slot": "tabs-content",
|
|
@@ -3843,15 +3934,15 @@ function useToast() {
|
|
|
3843
3934
|
}
|
|
3844
3935
|
|
|
3845
3936
|
// src/ui/toast/toast.tsx
|
|
3846
|
-
import { Fragment as Fragment12, jsx as
|
|
3937
|
+
import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3847
3938
|
function ToastProvider({ children }) {
|
|
3848
3939
|
return /* @__PURE__ */ jsxs25(Fragment12, { children: [
|
|
3849
3940
|
children,
|
|
3850
|
-
/* @__PURE__ */
|
|
3941
|
+
/* @__PURE__ */ jsx49(Toaster, {})
|
|
3851
3942
|
] });
|
|
3852
3943
|
}
|
|
3853
3944
|
function Toaster({ position }) {
|
|
3854
|
-
return /* @__PURE__ */
|
|
3945
|
+
return /* @__PURE__ */ jsx49(SileoToaster, { position, options: { fill: "var(--ui-secondary)" } });
|
|
3855
3946
|
}
|
|
3856
3947
|
function ToastViewport({
|
|
3857
3948
|
position,
|
|
@@ -3860,7 +3951,7 @@ function ToastViewport({
|
|
|
3860
3951
|
}) {
|
|
3861
3952
|
void className;
|
|
3862
3953
|
if (visiblePosition && visiblePosition !== position) return null;
|
|
3863
|
-
return /* @__PURE__ */
|
|
3954
|
+
return /* @__PURE__ */ jsx49(Toaster, { position });
|
|
3864
3955
|
}
|
|
3865
3956
|
function Toast({
|
|
3866
3957
|
id,
|
|
@@ -3885,9 +3976,9 @@ function Toast({
|
|
|
3885
3976
|
}
|
|
3886
3977
|
|
|
3887
3978
|
// src/ui/toolbar/toolbar.tsx
|
|
3888
|
-
import { jsx as
|
|
3979
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
3889
3980
|
function Toolbar({ className, ...props }) {
|
|
3890
|
-
return /* @__PURE__ */
|
|
3981
|
+
return /* @__PURE__ */ jsx50(
|
|
3891
3982
|
"div",
|
|
3892
3983
|
{
|
|
3893
3984
|
role: "toolbar",
|
|
@@ -3898,7 +3989,7 @@ function Toolbar({ className, ...props }) {
|
|
|
3898
3989
|
);
|
|
3899
3990
|
}
|
|
3900
3991
|
function ToolbarGroup({ className, ...props }) {
|
|
3901
|
-
return /* @__PURE__ */
|
|
3992
|
+
return /* @__PURE__ */ jsx50(
|
|
3902
3993
|
"div",
|
|
3903
3994
|
{
|
|
3904
3995
|
"data-slot": "toolbar-group",
|
|
@@ -3908,7 +3999,7 @@ function ToolbarGroup({ className, ...props }) {
|
|
|
3908
3999
|
);
|
|
3909
4000
|
}
|
|
3910
4001
|
function ToolbarSpacer({ className, ...props }) {
|
|
3911
|
-
return /* @__PURE__ */
|
|
4002
|
+
return /* @__PURE__ */ jsx50("div", { "aria-hidden": "true", className: cn("hidden flex-1 sm:block", className), ...props });
|
|
3912
4003
|
}
|
|
3913
4004
|
export {
|
|
3914
4005
|
Accordion,
|
|
@@ -4036,6 +4127,12 @@ export {
|
|
|
4036
4127
|
InputGroupInput,
|
|
4037
4128
|
InputGroupText,
|
|
4038
4129
|
InputGroupTextarea,
|
|
4130
|
+
KanbanColumn,
|
|
4131
|
+
KanbanColumnBody,
|
|
4132
|
+
KanbanColumnHeader,
|
|
4133
|
+
KanbanColumnTitle,
|
|
4134
|
+
KanbanEmpty,
|
|
4135
|
+
KanbanViewport,
|
|
4039
4136
|
Kbd,
|
|
4040
4137
|
KbdGroup,
|
|
4041
4138
|
Label2 as Label,
|