@onesaz/ui 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +29 -11
- package/dist/index.js +543 -31
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Theme, AccentColor, GrayColor, RadiusPreset } from '@onesaz/tokens';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
5
6
|
|
|
6
7
|
interface ThemeProviderProps {
|
|
7
8
|
children: React.ReactNode;
|
|
@@ -76,18 +77,33 @@ interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
76
77
|
}
|
|
77
78
|
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
82
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
83
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
89
|
+
declare const SelectNamespace: React.FC<SelectPrimitive.SelectProps> & {
|
|
90
|
+
Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
93
|
+
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
94
|
+
Label: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
ScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
ScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
82
102
|
}
|
|
83
|
-
declare const
|
|
84
|
-
interface
|
|
103
|
+
declare const NativeSelect: React.ForwardRefExoticComponent<NativeSelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
104
|
+
interface NativeSelectOptionProps extends React.OptionHTMLAttributes<HTMLOptionElement> {
|
|
85
105
|
}
|
|
86
|
-
declare const
|
|
87
|
-
declare const SelectNamespace: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>> & {
|
|
88
|
-
Option: React.ForwardRefExoticComponent<SelectOptionProps & React.RefAttributes<HTMLOptionElement>>;
|
|
89
|
-
Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLOptGroupElement>>;
|
|
90
|
-
};
|
|
106
|
+
declare const NativeSelectOption: React.ForwardRefExoticComponent<NativeSelectOptionProps & React.RefAttributes<HTMLOptionElement>>;
|
|
91
107
|
|
|
92
108
|
interface DialogProps {
|
|
93
109
|
open?: boolean;
|
|
@@ -170,4 +186,6 @@ interface ComboboxProps {
|
|
|
170
186
|
}
|
|
171
187
|
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
172
188
|
|
|
173
|
-
|
|
189
|
+
declare const Playground: () => react_jsx_runtime.JSX.Element;
|
|
190
|
+
|
|
191
|
+
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, DialogNamespace as Dialog, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, Input, type InputProps, Label, type LabelProps, NativeSelect, NativeSelectOption, type NativeSelectOptionProps, type NativeSelectProps, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type PaginationProps, Playground, SelectNamespace as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Spinner, type SpinnerProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, cn, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -418,8 +418,186 @@ Separator.displayName = "Separator";
|
|
|
418
418
|
|
|
419
419
|
// src/components/select/index.tsx
|
|
420
420
|
import * as React11 from "react";
|
|
421
|
-
import
|
|
422
|
-
|
|
421
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
422
|
+
import { jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
423
|
+
var ChevronDownIcon = () => /* @__PURE__ */ jsx11(
|
|
424
|
+
"svg",
|
|
425
|
+
{
|
|
426
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
427
|
+
width: "16",
|
|
428
|
+
height: "16",
|
|
429
|
+
viewBox: "0 0 24 24",
|
|
430
|
+
fill: "none",
|
|
431
|
+
stroke: "currentColor",
|
|
432
|
+
strokeWidth: "2",
|
|
433
|
+
strokeLinecap: "round",
|
|
434
|
+
strokeLinejoin: "round",
|
|
435
|
+
children: /* @__PURE__ */ jsx11("path", { d: "m6 9 6 6 6-6" })
|
|
436
|
+
}
|
|
437
|
+
);
|
|
438
|
+
var ChevronUpIcon = () => /* @__PURE__ */ jsx11(
|
|
439
|
+
"svg",
|
|
440
|
+
{
|
|
441
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
442
|
+
width: "16",
|
|
443
|
+
height: "16",
|
|
444
|
+
viewBox: "0 0 24 24",
|
|
445
|
+
fill: "none",
|
|
446
|
+
stroke: "currentColor",
|
|
447
|
+
strokeWidth: "2",
|
|
448
|
+
strokeLinecap: "round",
|
|
449
|
+
strokeLinejoin: "round",
|
|
450
|
+
children: /* @__PURE__ */ jsx11("path", { d: "m18 15-6-6-6 6" })
|
|
451
|
+
}
|
|
452
|
+
);
|
|
453
|
+
var CheckIcon = () => /* @__PURE__ */ jsx11(
|
|
454
|
+
"svg",
|
|
455
|
+
{
|
|
456
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
457
|
+
width: "16",
|
|
458
|
+
height: "16",
|
|
459
|
+
viewBox: "0 0 24 24",
|
|
460
|
+
fill: "none",
|
|
461
|
+
stroke: "currentColor",
|
|
462
|
+
strokeWidth: "2",
|
|
463
|
+
strokeLinecap: "round",
|
|
464
|
+
strokeLinejoin: "round",
|
|
465
|
+
children: /* @__PURE__ */ jsx11("path", { d: "M20 6 9 17l-5-5" })
|
|
466
|
+
}
|
|
467
|
+
);
|
|
468
|
+
var Select = SelectPrimitive.Root;
|
|
469
|
+
var SelectGroup = SelectPrimitive.Group;
|
|
470
|
+
var SelectValue = SelectPrimitive.Value;
|
|
471
|
+
var SelectTrigger = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
472
|
+
SelectPrimitive.Trigger,
|
|
473
|
+
{
|
|
474
|
+
ref,
|
|
475
|
+
className: cn(
|
|
476
|
+
"flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm",
|
|
477
|
+
"border-input bg-background text-foreground",
|
|
478
|
+
"ring-offset-background",
|
|
479
|
+
"placeholder:text-muted-foreground",
|
|
480
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
481
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
482
|
+
"[&>span]:line-clamp-1",
|
|
483
|
+
className
|
|
484
|
+
),
|
|
485
|
+
...props,
|
|
486
|
+
children: [
|
|
487
|
+
children,
|
|
488
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx11(ChevronDownIcon, {}) })
|
|
489
|
+
]
|
|
490
|
+
}
|
|
491
|
+
));
|
|
492
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
493
|
+
var SelectScrollUpButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
494
|
+
SelectPrimitive.ScrollUpButton,
|
|
495
|
+
{
|
|
496
|
+
ref,
|
|
497
|
+
className: cn(
|
|
498
|
+
"flex cursor-default items-center justify-center py-1",
|
|
499
|
+
className
|
|
500
|
+
),
|
|
501
|
+
...props,
|
|
502
|
+
children: /* @__PURE__ */ jsx11(ChevronUpIcon, {})
|
|
503
|
+
}
|
|
504
|
+
));
|
|
505
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
506
|
+
var SelectScrollDownButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
507
|
+
SelectPrimitive.ScrollDownButton,
|
|
508
|
+
{
|
|
509
|
+
ref,
|
|
510
|
+
className: cn(
|
|
511
|
+
"flex cursor-default items-center justify-center py-1",
|
|
512
|
+
className
|
|
513
|
+
),
|
|
514
|
+
...props,
|
|
515
|
+
children: /* @__PURE__ */ jsx11(ChevronDownIcon, {})
|
|
516
|
+
}
|
|
517
|
+
));
|
|
518
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
519
|
+
var SelectContent = React11.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx11(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs2(
|
|
520
|
+
SelectPrimitive.Content,
|
|
521
|
+
{
|
|
522
|
+
ref,
|
|
523
|
+
className: cn(
|
|
524
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
|
|
525
|
+
"border-border bg-popover text-popover-foreground",
|
|
526
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
527
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
528
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
529
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
530
|
+
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
531
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
532
|
+
className
|
|
533
|
+
),
|
|
534
|
+
position,
|
|
535
|
+
...props,
|
|
536
|
+
children: [
|
|
537
|
+
/* @__PURE__ */ jsx11(SelectScrollUpButton, {}),
|
|
538
|
+
/* @__PURE__ */ jsx11(
|
|
539
|
+
SelectPrimitive.Viewport,
|
|
540
|
+
{
|
|
541
|
+
className: cn(
|
|
542
|
+
"p-1",
|
|
543
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
544
|
+
),
|
|
545
|
+
children
|
|
546
|
+
}
|
|
547
|
+
),
|
|
548
|
+
/* @__PURE__ */ jsx11(SelectScrollDownButton, {})
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
) }));
|
|
552
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
553
|
+
var SelectLabel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
554
|
+
SelectPrimitive.Label,
|
|
555
|
+
{
|
|
556
|
+
ref,
|
|
557
|
+
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
558
|
+
...props
|
|
559
|
+
}
|
|
560
|
+
));
|
|
561
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
562
|
+
var SelectItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
563
|
+
SelectPrimitive.Item,
|
|
564
|
+
{
|
|
565
|
+
ref,
|
|
566
|
+
className: cn(
|
|
567
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
568
|
+
"focus:bg-accent focus:text-accent-foreground",
|
|
569
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
570
|
+
className
|
|
571
|
+
),
|
|
572
|
+
...props,
|
|
573
|
+
children: [
|
|
574
|
+
/* @__PURE__ */ jsx11("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx11(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(CheckIcon, {}) }) }),
|
|
575
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.ItemText, { children })
|
|
576
|
+
]
|
|
577
|
+
}
|
|
578
|
+
));
|
|
579
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
580
|
+
var SelectSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
581
|
+
SelectPrimitive.Separator,
|
|
582
|
+
{
|
|
583
|
+
ref,
|
|
584
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
585
|
+
...props
|
|
586
|
+
}
|
|
587
|
+
));
|
|
588
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
589
|
+
var SelectNamespace = Object.assign(Select, {
|
|
590
|
+
Group: SelectGroup,
|
|
591
|
+
Value: SelectValue,
|
|
592
|
+
Trigger: SelectTrigger,
|
|
593
|
+
Content: SelectContent,
|
|
594
|
+
Label: SelectLabel,
|
|
595
|
+
Item: SelectItem,
|
|
596
|
+
Separator: SelectSeparator,
|
|
597
|
+
ScrollUpButton: SelectScrollUpButton,
|
|
598
|
+
ScrollDownButton: SelectScrollDownButton
|
|
599
|
+
});
|
|
600
|
+
var NativeSelect = React11.forwardRef(
|
|
423
601
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
424
602
|
"select",
|
|
425
603
|
{
|
|
@@ -436,23 +614,15 @@ var Select = React11.forwardRef(
|
|
|
436
614
|
}
|
|
437
615
|
)
|
|
438
616
|
);
|
|
439
|
-
|
|
440
|
-
var
|
|
617
|
+
NativeSelect.displayName = "NativeSelect";
|
|
618
|
+
var NativeSelectOption = React11.forwardRef(
|
|
441
619
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx11("option", { ref, className: cn("py-1.5", className), ...props })
|
|
442
620
|
);
|
|
443
|
-
|
|
444
|
-
var SelectGroup = React11.forwardRef(
|
|
445
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx11("optgroup", { ref, className: cn("font-semibold", className), ...props })
|
|
446
|
-
);
|
|
447
|
-
SelectGroup.displayName = "SelectGroup";
|
|
448
|
-
var SelectNamespace = Object.assign(Select, {
|
|
449
|
-
Option: SelectOption,
|
|
450
|
-
Group: SelectGroup
|
|
451
|
-
});
|
|
621
|
+
NativeSelectOption.displayName = "NativeSelectOption";
|
|
452
622
|
|
|
453
623
|
// src/components/dialog/index.tsx
|
|
454
624
|
import * as React12 from "react";
|
|
455
|
-
import { Fragment, jsx as jsx12, jsxs as
|
|
625
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
456
626
|
var Dialog = ({ open, onOpenChange, children }) => {
|
|
457
627
|
React12.useEffect(() => {
|
|
458
628
|
const handleEscape = (e) => {
|
|
@@ -468,7 +638,7 @@ var Dialog = ({ open, onOpenChange, children }) => {
|
|
|
468
638
|
};
|
|
469
639
|
Dialog.displayName = "Dialog";
|
|
470
640
|
var DialogContent = React12.forwardRef(
|
|
471
|
-
({ className, children, onClose, ...props }, ref) => /* @__PURE__ */
|
|
641
|
+
({ className, children, onClose, ...props }, ref) => /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
472
642
|
/* @__PURE__ */ jsx12(
|
|
473
643
|
"div",
|
|
474
644
|
{
|
|
@@ -476,7 +646,7 @@ var DialogContent = React12.forwardRef(
|
|
|
476
646
|
onClick: onClose
|
|
477
647
|
}
|
|
478
648
|
),
|
|
479
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ jsxs3(
|
|
480
650
|
"div",
|
|
481
651
|
{
|
|
482
652
|
ref,
|
|
@@ -489,14 +659,14 @@ var DialogContent = React12.forwardRef(
|
|
|
489
659
|
...props,
|
|
490
660
|
children: [
|
|
491
661
|
children,
|
|
492
|
-
onClose && /* @__PURE__ */
|
|
662
|
+
onClose && /* @__PURE__ */ jsxs3(
|
|
493
663
|
"button",
|
|
494
664
|
{
|
|
495
665
|
type: "button",
|
|
496
666
|
onClick: onClose,
|
|
497
667
|
className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
498
668
|
children: [
|
|
499
|
-
/* @__PURE__ */
|
|
669
|
+
/* @__PURE__ */ jsxs3(
|
|
500
670
|
"svg",
|
|
501
671
|
{
|
|
502
672
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -701,7 +871,7 @@ var TableNamespace = Object.assign(Table, {
|
|
|
701
871
|
|
|
702
872
|
// src/components/pagination.tsx
|
|
703
873
|
import * as React15 from "react";
|
|
704
|
-
import { jsx as jsx15, jsxs as
|
|
874
|
+
import { jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
705
875
|
var Pagination = React15.forwardRef(
|
|
706
876
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
707
877
|
"nav",
|
|
@@ -739,7 +909,7 @@ var PaginationLink = React15.forwardRef(
|
|
|
739
909
|
)
|
|
740
910
|
);
|
|
741
911
|
PaginationLink.displayName = "PaginationLink";
|
|
742
|
-
var PaginationPrevious = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
912
|
+
var PaginationPrevious = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
743
913
|
Button,
|
|
744
914
|
{
|
|
745
915
|
ref,
|
|
@@ -769,7 +939,7 @@ var PaginationPrevious = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
769
939
|
}
|
|
770
940
|
));
|
|
771
941
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
772
|
-
var PaginationNext = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
942
|
+
var PaginationNext = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
773
943
|
Button,
|
|
774
944
|
{
|
|
775
945
|
ref,
|
|
@@ -799,7 +969,7 @@ var PaginationNext = React15.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
799
969
|
}
|
|
800
970
|
));
|
|
801
971
|
PaginationNext.displayName = "PaginationNext";
|
|
802
|
-
var PaginationEllipsis = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
972
|
+
var PaginationEllipsis = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
803
973
|
"span",
|
|
804
974
|
{
|
|
805
975
|
ref,
|
|
@@ -807,7 +977,7 @@ var PaginationEllipsis = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
807
977
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
808
978
|
...props,
|
|
809
979
|
children: [
|
|
810
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ jsxs4(
|
|
811
981
|
"svg",
|
|
812
982
|
{
|
|
813
983
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -843,7 +1013,7 @@ var PaginationNamespace = Object.assign(Pagination, {
|
|
|
843
1013
|
|
|
844
1014
|
// src/components/combobox/index.tsx
|
|
845
1015
|
import * as React16 from "react";
|
|
846
|
-
import { jsx as jsx16, jsxs as
|
|
1016
|
+
import { jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
847
1017
|
var Combobox = React16.forwardRef(
|
|
848
1018
|
({
|
|
849
1019
|
options,
|
|
@@ -885,8 +1055,8 @@ var Combobox = React16.forwardRef(
|
|
|
885
1055
|
document.addEventListener("mousedown", handleClickOutside);
|
|
886
1056
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
887
1057
|
}, []);
|
|
888
|
-
return /* @__PURE__ */
|
|
889
|
-
/* @__PURE__ */
|
|
1058
|
+
return /* @__PURE__ */ jsxs5("div", { ref: containerRef, className: "relative", children: [
|
|
1059
|
+
/* @__PURE__ */ jsxs5(
|
|
890
1060
|
"button",
|
|
891
1061
|
{
|
|
892
1062
|
type: "button",
|
|
@@ -925,9 +1095,9 @@ var Combobox = React16.forwardRef(
|
|
|
925
1095
|
]
|
|
926
1096
|
}
|
|
927
1097
|
),
|
|
928
|
-
open && /* @__PURE__ */
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
/* @__PURE__ */
|
|
1098
|
+
open && /* @__PURE__ */ jsxs5("div", { className: "absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md", children: [
|
|
1099
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center border-b border-border px-3", children: [
|
|
1100
|
+
/* @__PURE__ */ jsxs5(
|
|
931
1101
|
"svg",
|
|
932
1102
|
{
|
|
933
1103
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -957,7 +1127,7 @@ var Combobox = React16.forwardRef(
|
|
|
957
1127
|
}
|
|
958
1128
|
)
|
|
959
1129
|
] }),
|
|
960
|
-
/* @__PURE__ */ jsx16("div", { className: "max-h-[300px] overflow-y-auto p-1", children: filteredOptions.length === 0 ? /* @__PURE__ */ jsx16("div", { className: "py-6 text-center text-sm text-muted-foreground", children: emptyMessage }) : filteredOptions.map((option) => /* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ jsx16("div", { className: "max-h-[300px] overflow-y-auto p-1", children: filteredOptions.length === 0 ? /* @__PURE__ */ jsx16("div", { className: "py-6 text-center text-sm text-muted-foreground", children: emptyMessage }) : filteredOptions.map((option) => /* @__PURE__ */ jsxs5(
|
|
961
1131
|
"button",
|
|
962
1132
|
{
|
|
963
1133
|
type: "button",
|
|
@@ -997,6 +1167,338 @@ var Combobox = React16.forwardRef(
|
|
|
997
1167
|
}
|
|
998
1168
|
);
|
|
999
1169
|
Combobox.displayName = "Combobox";
|
|
1170
|
+
|
|
1171
|
+
// src/playground.tsx
|
|
1172
|
+
import * as React17 from "react";
|
|
1173
|
+
import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1174
|
+
var Section = ({ title, children }) => /* @__PURE__ */ jsxs6("div", { className: "mb-8", children: [
|
|
1175
|
+
/* @__PURE__ */ jsx17("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
|
|
1176
|
+
/* @__PURE__ */ jsx17("div", { className: "p-4 border border-border rounded-lg bg-background", children })
|
|
1177
|
+
] });
|
|
1178
|
+
var ThemeToggle = () => {
|
|
1179
|
+
const { theme, setTheme } = useTheme();
|
|
1180
|
+
return /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1181
|
+
/* @__PURE__ */ jsx17(Label, { children: "Theme:" }),
|
|
1182
|
+
/* @__PURE__ */ jsxs6(SelectNamespace, { value: theme, onValueChange: (value) => setTheme(value), children: [
|
|
1183
|
+
/* @__PURE__ */ jsx17(SelectTrigger, { className: "w-32", children: /* @__PURE__ */ jsx17(SelectValue, { placeholder: "Select theme" }) }),
|
|
1184
|
+
/* @__PURE__ */ jsxs6(SelectContent, { children: [
|
|
1185
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "light", children: "Light" }),
|
|
1186
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "dark", children: "Dark" }),
|
|
1187
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "system", children: "System" })
|
|
1188
|
+
] })
|
|
1189
|
+
] })
|
|
1190
|
+
] });
|
|
1191
|
+
};
|
|
1192
|
+
var PlaygroundContent = () => {
|
|
1193
|
+
const [dialogOpen, setDialogOpen] = React17.useState(false);
|
|
1194
|
+
const [checkboxChecked, setCheckboxChecked] = React17.useState(false);
|
|
1195
|
+
const [switchChecked, setSwitchChecked] = React17.useState(false);
|
|
1196
|
+
const [inputValue, setInputValue] = React17.useState("");
|
|
1197
|
+
const [textareaValue, setTextareaValue] = React17.useState("");
|
|
1198
|
+
const [selectValue, setSelectValue] = React17.useState("");
|
|
1199
|
+
const [comboboxValue, setComboboxValue] = React17.useState("");
|
|
1200
|
+
const comboboxOptions = [
|
|
1201
|
+
{ value: "react", label: "React" },
|
|
1202
|
+
{ value: "vue", label: "Vue" },
|
|
1203
|
+
{ value: "angular", label: "Angular" },
|
|
1204
|
+
{ value: "svelte", label: "Svelte" },
|
|
1205
|
+
{ value: "solid", label: "SolidJS" }
|
|
1206
|
+
];
|
|
1207
|
+
return /* @__PURE__ */ jsx17("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */ jsxs6("div", { className: "max-w-4xl mx-auto", children: [
|
|
1208
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between mb-8", children: [
|
|
1209
|
+
/* @__PURE__ */ jsx17("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
|
|
1210
|
+
/* @__PURE__ */ jsx17(ThemeToggle, {})
|
|
1211
|
+
] }),
|
|
1212
|
+
/* @__PURE__ */ jsxs6(Section, { title: "Button", children: [
|
|
1213
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4", children: [
|
|
1214
|
+
/* @__PURE__ */ jsx17(Button, { variant: "default", children: "Default" }),
|
|
1215
|
+
/* @__PURE__ */ jsx17(Button, { variant: "destructive", children: "Destructive" }),
|
|
1216
|
+
/* @__PURE__ */ jsx17(Button, { variant: "outline", children: "Outline" }),
|
|
1217
|
+
/* @__PURE__ */ jsx17(Button, { variant: "secondary", children: "Secondary" }),
|
|
1218
|
+
/* @__PURE__ */ jsx17(Button, { variant: "ghost", children: "Ghost" }),
|
|
1219
|
+
/* @__PURE__ */ jsx17(Button, { variant: "link", children: "Link" })
|
|
1220
|
+
] }),
|
|
1221
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
1222
|
+
/* @__PURE__ */ jsx17(Button, { size: "sm", children: "Small" }),
|
|
1223
|
+
/* @__PURE__ */ jsx17(Button, { size: "default", children: "Default" }),
|
|
1224
|
+
/* @__PURE__ */ jsx17(Button, { size: "lg", children: "Large" }),
|
|
1225
|
+
/* @__PURE__ */ jsx17(Button, { size: "icon", children: "\u{1F514}" })
|
|
1226
|
+
] }),
|
|
1227
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
1228
|
+
/* @__PURE__ */ jsx17(Button, { disabled: true, children: "Disabled" }),
|
|
1229
|
+
/* @__PURE__ */ jsx17(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
|
|
1230
|
+
] })
|
|
1231
|
+
] }),
|
|
1232
|
+
/* @__PURE__ */ jsx17(Section, { title: "Input", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4 max-w-md", children: [
|
|
1233
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1234
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "input-default", children: "Default Input" }),
|
|
1235
|
+
/* @__PURE__ */ jsx17(
|
|
1236
|
+
Input,
|
|
1237
|
+
{
|
|
1238
|
+
id: "input-default",
|
|
1239
|
+
placeholder: "Enter text...",
|
|
1240
|
+
value: inputValue,
|
|
1241
|
+
onChange: (e) => setInputValue(e.target.value)
|
|
1242
|
+
}
|
|
1243
|
+
)
|
|
1244
|
+
] }),
|
|
1245
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1246
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
|
|
1247
|
+
/* @__PURE__ */ jsx17(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
|
|
1248
|
+
] }),
|
|
1249
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1250
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "input-type", children: "Email Input" }),
|
|
1251
|
+
/* @__PURE__ */ jsx17(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
|
|
1252
|
+
] })
|
|
1253
|
+
] }) }),
|
|
1254
|
+
/* @__PURE__ */ jsx17(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4 max-w-md", children: [
|
|
1255
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1256
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
|
|
1257
|
+
/* @__PURE__ */ jsx17(
|
|
1258
|
+
Textarea,
|
|
1259
|
+
{
|
|
1260
|
+
id: "textarea-default",
|
|
1261
|
+
placeholder: "Enter long text...",
|
|
1262
|
+
value: textareaValue,
|
|
1263
|
+
onChange: (e) => setTextareaValue(e.target.value)
|
|
1264
|
+
}
|
|
1265
|
+
)
|
|
1266
|
+
] }),
|
|
1267
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1268
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
|
|
1269
|
+
/* @__PURE__ */ jsx17(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
|
|
1270
|
+
] })
|
|
1271
|
+
] }) }),
|
|
1272
|
+
/* @__PURE__ */ jsx17(Section, { title: "Select", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4 max-w-md", children: [
|
|
1273
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1274
|
+
/* @__PURE__ */ jsx17(Label, { children: "Default Select" }),
|
|
1275
|
+
/* @__PURE__ */ jsxs6(SelectNamespace, { value: selectValue, onValueChange: setSelectValue, children: [
|
|
1276
|
+
/* @__PURE__ */ jsx17(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx17(SelectValue, { placeholder: "Select an option..." }) }),
|
|
1277
|
+
/* @__PURE__ */ jsxs6(SelectContent, { children: [
|
|
1278
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "option1", children: "Option 1" }),
|
|
1279
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "option2", children: "Option 2" }),
|
|
1280
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "option3", children: "Option 3" })
|
|
1281
|
+
] })
|
|
1282
|
+
] })
|
|
1283
|
+
] }),
|
|
1284
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1285
|
+
/* @__PURE__ */ jsx17(Label, { children: "Grouped Select" }),
|
|
1286
|
+
/* @__PURE__ */ jsxs6(SelectNamespace, { children: [
|
|
1287
|
+
/* @__PURE__ */ jsx17(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx17(SelectValue, { placeholder: "Select a food..." }) }),
|
|
1288
|
+
/* @__PURE__ */ jsxs6(SelectContent, { children: [
|
|
1289
|
+
/* @__PURE__ */ jsxs6(SelectGroup, { children: [
|
|
1290
|
+
/* @__PURE__ */ jsx17(SelectLabel, { children: "Fruits" }),
|
|
1291
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "apple", children: "Apple" }),
|
|
1292
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "banana", children: "Banana" })
|
|
1293
|
+
] }),
|
|
1294
|
+
/* @__PURE__ */ jsxs6(SelectGroup, { children: [
|
|
1295
|
+
/* @__PURE__ */ jsx17(SelectLabel, { children: "Vegetables" }),
|
|
1296
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "carrot", children: "Carrot" }),
|
|
1297
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "potato", children: "Potato" })
|
|
1298
|
+
] })
|
|
1299
|
+
] })
|
|
1300
|
+
] })
|
|
1301
|
+
] }),
|
|
1302
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1303
|
+
/* @__PURE__ */ jsx17(Label, { children: "Disabled Select" }),
|
|
1304
|
+
/* @__PURE__ */ jsxs6(SelectNamespace, { disabled: true, children: [
|
|
1305
|
+
/* @__PURE__ */ jsx17(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx17(SelectValue, { placeholder: "Disabled..." }) }),
|
|
1306
|
+
/* @__PURE__ */ jsx17(SelectContent, { children: /* @__PURE__ */ jsx17(SelectItem, { value: "none", children: "None" }) })
|
|
1307
|
+
] })
|
|
1308
|
+
] })
|
|
1309
|
+
] }) }),
|
|
1310
|
+
/* @__PURE__ */ jsx17(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx17("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs6("div", { children: [
|
|
1311
|
+
/* @__PURE__ */ jsx17(Label, { children: "Framework" }),
|
|
1312
|
+
/* @__PURE__ */ jsx17(
|
|
1313
|
+
Combobox,
|
|
1314
|
+
{
|
|
1315
|
+
options: comboboxOptions,
|
|
1316
|
+
value: comboboxValue,
|
|
1317
|
+
onValueChange: setComboboxValue,
|
|
1318
|
+
placeholder: "Search frameworks..."
|
|
1319
|
+
}
|
|
1320
|
+
)
|
|
1321
|
+
] }) }) }),
|
|
1322
|
+
/* @__PURE__ */ jsx17(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4", children: [
|
|
1323
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1324
|
+
/* @__PURE__ */ jsx17(
|
|
1325
|
+
Checkbox,
|
|
1326
|
+
{
|
|
1327
|
+
id: "checkbox",
|
|
1328
|
+
checked: checkboxChecked,
|
|
1329
|
+
onChange: (e) => setCheckboxChecked(e.target.checked)
|
|
1330
|
+
}
|
|
1331
|
+
),
|
|
1332
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
|
|
1333
|
+
] }),
|
|
1334
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1335
|
+
/* @__PURE__ */ jsx17(Checkbox, { id: "checkbox-disabled", disabled: true }),
|
|
1336
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
|
|
1337
|
+
] }),
|
|
1338
|
+
/* @__PURE__ */ jsx17(Separator, {}),
|
|
1339
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1340
|
+
/* @__PURE__ */ jsx17(
|
|
1341
|
+
Switch,
|
|
1342
|
+
{
|
|
1343
|
+
id: "switch",
|
|
1344
|
+
checked: switchChecked,
|
|
1345
|
+
onChange: (e) => setSwitchChecked(e.target.checked)
|
|
1346
|
+
}
|
|
1347
|
+
),
|
|
1348
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "switch", children: "Enable notifications" })
|
|
1349
|
+
] }),
|
|
1350
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1351
|
+
/* @__PURE__ */ jsx17(Switch, { id: "switch-disabled", disabled: true }),
|
|
1352
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
|
|
1353
|
+
] })
|
|
1354
|
+
] }) }),
|
|
1355
|
+
/* @__PURE__ */ jsx17(Section, { title: "Badge", children: /* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4", children: [
|
|
1356
|
+
/* @__PURE__ */ jsx17(Badge, { children: "Default" }),
|
|
1357
|
+
/* @__PURE__ */ jsx17(Badge, { variant: "secondary", children: "Secondary" }),
|
|
1358
|
+
/* @__PURE__ */ jsx17(Badge, { variant: "destructive", children: "Destructive" }),
|
|
1359
|
+
/* @__PURE__ */ jsx17(Badge, { variant: "outline", children: "Outline" })
|
|
1360
|
+
] }) }),
|
|
1361
|
+
/* @__PURE__ */ jsx17(Section, { title: "Card", children: /* @__PURE__ */ jsxs6("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
1362
|
+
/* @__PURE__ */ jsxs6(Card, { children: [
|
|
1363
|
+
/* @__PURE__ */ jsxs6(CardHeader, { children: [
|
|
1364
|
+
/* @__PURE__ */ jsx17(CardTitle, { children: "Card Title" }),
|
|
1365
|
+
/* @__PURE__ */ jsx17(CardDescription, { children: "Card description goes here" })
|
|
1366
|
+
] }),
|
|
1367
|
+
/* @__PURE__ */ jsx17(CardContent, { children: /* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "This is the card content area." }) }),
|
|
1368
|
+
/* @__PURE__ */ jsxs6(CardFooter, { children: [
|
|
1369
|
+
/* @__PURE__ */ jsx17(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
|
|
1370
|
+
/* @__PURE__ */ jsx17(Button, { children: "Submit" })
|
|
1371
|
+
] })
|
|
1372
|
+
] }),
|
|
1373
|
+
/* @__PURE__ */ jsxs6(Card, { children: [
|
|
1374
|
+
/* @__PURE__ */ jsxs6(CardHeader, { children: [
|
|
1375
|
+
/* @__PURE__ */ jsx17(CardTitle, { children: "Another Card" }),
|
|
1376
|
+
/* @__PURE__ */ jsx17(CardDescription, { children: "With different content" })
|
|
1377
|
+
] }),
|
|
1378
|
+
/* @__PURE__ */ jsx17(CardContent, { children: /* @__PURE__ */ jsxs6("div", { className: "space-y-2", children: [
|
|
1379
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "card-input", children: "Name" }),
|
|
1380
|
+
/* @__PURE__ */ jsx17(Input, { id: "card-input", placeholder: "Enter name..." })
|
|
1381
|
+
] }) }),
|
|
1382
|
+
/* @__PURE__ */ jsx17(CardFooter, { children: /* @__PURE__ */ jsx17(Button, { className: "w-full", children: "Save" }) })
|
|
1383
|
+
] })
|
|
1384
|
+
] }) }),
|
|
1385
|
+
/* @__PURE__ */ jsxs6(Section, { title: "Dialog", children: [
|
|
1386
|
+
/* @__PURE__ */ jsx17(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
|
|
1387
|
+
/* @__PURE__ */ jsx17(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs6(DialogContent, { onClose: () => setDialogOpen(false), children: [
|
|
1388
|
+
/* @__PURE__ */ jsxs6(DialogHeader, { children: [
|
|
1389
|
+
/* @__PURE__ */ jsx17(DialogTitle, { children: "Create New Zone" }),
|
|
1390
|
+
/* @__PURE__ */ jsx17(DialogDescription, { children: "Fill in the details below to create a new zone." })
|
|
1391
|
+
] }),
|
|
1392
|
+
/* @__PURE__ */ jsxs6("div", { className: "space-y-4 py-4", children: [
|
|
1393
|
+
/* @__PURE__ */ jsxs6("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
1394
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1395
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
|
|
1396
|
+
/* @__PURE__ */ jsx17(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
|
|
1397
|
+
] }),
|
|
1398
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1399
|
+
/* @__PURE__ */ jsx17(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
|
|
1400
|
+
/* @__PURE__ */ jsx17(Input, { id: "zone-code", placeholder: "eg :hyd022" })
|
|
1401
|
+
] })
|
|
1402
|
+
] }),
|
|
1403
|
+
/* @__PURE__ */ jsxs6("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
1404
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1405
|
+
/* @__PURE__ */ jsx17(Label, { children: "State *" }),
|
|
1406
|
+
/* @__PURE__ */ jsxs6(SelectNamespace, { children: [
|
|
1407
|
+
/* @__PURE__ */ jsx17(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx17(SelectValue, { placeholder: "Select state" }) }),
|
|
1408
|
+
/* @__PURE__ */ jsxs6(SelectContent, { children: [
|
|
1409
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "telangana", children: "TELANGANA" }),
|
|
1410
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "andhra", children: "ANDHRA PRADESH" })
|
|
1411
|
+
] })
|
|
1412
|
+
] })
|
|
1413
|
+
] }),
|
|
1414
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1415
|
+
/* @__PURE__ */ jsx17(Label, { children: "District *" }),
|
|
1416
|
+
/* @__PURE__ */ jsxs6(SelectNamespace, { children: [
|
|
1417
|
+
/* @__PURE__ */ jsx17(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx17(SelectValue, { placeholder: "Select District" }) }),
|
|
1418
|
+
/* @__PURE__ */ jsxs6(SelectContent, { children: [
|
|
1419
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "hyderabad", children: "HYDERABAD" }),
|
|
1420
|
+
/* @__PURE__ */ jsx17(SelectItem, { value: "rangareddy", children: "RANGAREDDY" })
|
|
1421
|
+
] })
|
|
1422
|
+
] })
|
|
1423
|
+
] })
|
|
1424
|
+
] })
|
|
1425
|
+
] }),
|
|
1426
|
+
/* @__PURE__ */ jsxs6(DialogFooter, { children: [
|
|
1427
|
+
/* @__PURE__ */ jsx17(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
|
|
1428
|
+
/* @__PURE__ */ jsx17(Button, { onClick: () => setDialogOpen(false), children: "Create" })
|
|
1429
|
+
] })
|
|
1430
|
+
] }) })
|
|
1431
|
+
] }),
|
|
1432
|
+
/* @__PURE__ */ jsx17(Section, { title: "Table", children: /* @__PURE__ */ jsxs6(TableNamespace, { children: [
|
|
1433
|
+
/* @__PURE__ */ jsx17(TableCaption, { children: "A list of recent invoices" }),
|
|
1434
|
+
/* @__PURE__ */ jsx17(TableHeader, { children: /* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1435
|
+
/* @__PURE__ */ jsx17(TableHead, { children: "Invoice" }),
|
|
1436
|
+
/* @__PURE__ */ jsx17(TableHead, { children: "Status" }),
|
|
1437
|
+
/* @__PURE__ */ jsx17(TableHead, { children: "Method" }),
|
|
1438
|
+
/* @__PURE__ */ jsx17(TableHead, { className: "text-right", children: "Amount" })
|
|
1439
|
+
] }) }),
|
|
1440
|
+
/* @__PURE__ */ jsxs6(TableBody, { children: [
|
|
1441
|
+
/* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1442
|
+
/* @__PURE__ */ jsx17(TableCell, { children: "INV001" }),
|
|
1443
|
+
/* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(Badge, { children: "Paid" }) }),
|
|
1444
|
+
/* @__PURE__ */ jsx17(TableCell, { children: "Credit Card" }),
|
|
1445
|
+
/* @__PURE__ */ jsx17(TableCell, { className: "text-right", children: "$250.00" })
|
|
1446
|
+
] }),
|
|
1447
|
+
/* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1448
|
+
/* @__PURE__ */ jsx17(TableCell, { children: "INV002" }),
|
|
1449
|
+
/* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(Badge, { variant: "secondary", children: "Pending" }) }),
|
|
1450
|
+
/* @__PURE__ */ jsx17(TableCell, { children: "PayPal" }),
|
|
1451
|
+
/* @__PURE__ */ jsx17(TableCell, { className: "text-right", children: "$150.00" })
|
|
1452
|
+
] }),
|
|
1453
|
+
/* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1454
|
+
/* @__PURE__ */ jsx17(TableCell, { children: "INV003" }),
|
|
1455
|
+
/* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(Badge, { variant: "destructive", children: "Failed" }) }),
|
|
1456
|
+
/* @__PURE__ */ jsx17(TableCell, { children: "Bank Transfer" }),
|
|
1457
|
+
/* @__PURE__ */ jsx17(TableCell, { className: "text-right", children: "$350.00" })
|
|
1458
|
+
] })
|
|
1459
|
+
] })
|
|
1460
|
+
] }) }),
|
|
1461
|
+
/* @__PURE__ */ jsx17(Section, { title: "Pagination", children: /* @__PURE__ */ jsx17(PaginationNamespace, { children: /* @__PURE__ */ jsxs6(PaginationContent, { children: [
|
|
1462
|
+
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
|
|
1463
|
+
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationLink, { isActive: true, children: "1" }) }),
|
|
1464
|
+
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationLink, { children: "2" }) }),
|
|
1465
|
+
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationLink, { children: "3" }) }),
|
|
1466
|
+
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationEllipsis, {}) }),
|
|
1467
|
+
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationNext, { onClick: () => console.log("Next") }) })
|
|
1468
|
+
] }) }) }),
|
|
1469
|
+
/* @__PURE__ */ jsx17(Section, { title: "Spinner", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-8", children: [
|
|
1470
|
+
/* @__PURE__ */ jsxs6("div", { className: "text-center", children: [
|
|
1471
|
+
/* @__PURE__ */ jsx17(Spinner, { size: "sm" }),
|
|
1472
|
+
/* @__PURE__ */ jsx17("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
|
|
1473
|
+
] }),
|
|
1474
|
+
/* @__PURE__ */ jsxs6("div", { className: "text-center", children: [
|
|
1475
|
+
/* @__PURE__ */ jsx17(Spinner, { size: "default" }),
|
|
1476
|
+
/* @__PURE__ */ jsx17("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
|
|
1477
|
+
] }),
|
|
1478
|
+
/* @__PURE__ */ jsxs6("div", { className: "text-center", children: [
|
|
1479
|
+
/* @__PURE__ */ jsx17(Spinner, { size: "lg" }),
|
|
1480
|
+
/* @__PURE__ */ jsx17("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
|
|
1481
|
+
] })
|
|
1482
|
+
] }) }),
|
|
1483
|
+
/* @__PURE__ */ jsx17(Section, { title: "Separator", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4", children: [
|
|
1484
|
+
/* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "Content above separator" }),
|
|
1485
|
+
/* @__PURE__ */ jsx17(Separator, {}),
|
|
1486
|
+
/* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "Content below separator" }),
|
|
1487
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center h-10", children: [
|
|
1488
|
+
/* @__PURE__ */ jsx17("span", { className: "text-foreground", children: "Left" }),
|
|
1489
|
+
/* @__PURE__ */ jsx17(Separator, { orientation: "vertical", className: "mx-4" }),
|
|
1490
|
+
/* @__PURE__ */ jsx17("span", { className: "text-foreground", children: "Right" })
|
|
1491
|
+
] })
|
|
1492
|
+
] }) }),
|
|
1493
|
+
/* @__PURE__ */ jsx17(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-2", children: [
|
|
1494
|
+
/* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
|
|
1495
|
+
/* @__PURE__ */ jsx17("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
|
|
1496
|
+
/* @__PURE__ */ jsx17("p", { className: "text-accent", children: "text-accent - Accent color" }),
|
|
1497
|
+
/* @__PURE__ */ jsx17("p", { className: "text-destructive", children: "text-destructive - Destructive color" })
|
|
1498
|
+
] }) })
|
|
1499
|
+
] }) });
|
|
1500
|
+
};
|
|
1501
|
+
var Playground = () => /* @__PURE__ */ jsx17(ThemeProvider, { defaultTheme: "light", children: /* @__PURE__ */ jsx17(PlaygroundContent, {}) });
|
|
1000
1502
|
export {
|
|
1001
1503
|
Badge,
|
|
1002
1504
|
Button,
|
|
@@ -1016,6 +1518,8 @@ export {
|
|
|
1016
1518
|
DialogTitle,
|
|
1017
1519
|
Input,
|
|
1018
1520
|
Label,
|
|
1521
|
+
NativeSelect,
|
|
1522
|
+
NativeSelectOption,
|
|
1019
1523
|
PaginationNamespace as Pagination,
|
|
1020
1524
|
PaginationContent,
|
|
1021
1525
|
PaginationEllipsis,
|
|
@@ -1023,9 +1527,17 @@ export {
|
|
|
1023
1527
|
PaginationLink,
|
|
1024
1528
|
PaginationNext,
|
|
1025
1529
|
PaginationPrevious,
|
|
1530
|
+
Playground,
|
|
1026
1531
|
SelectNamespace as Select,
|
|
1532
|
+
SelectContent,
|
|
1027
1533
|
SelectGroup,
|
|
1028
|
-
|
|
1534
|
+
SelectItem,
|
|
1535
|
+
SelectLabel,
|
|
1536
|
+
SelectScrollDownButton,
|
|
1537
|
+
SelectScrollUpButton,
|
|
1538
|
+
SelectSeparator,
|
|
1539
|
+
SelectTrigger,
|
|
1540
|
+
SelectValue,
|
|
1029
1541
|
Separator,
|
|
1030
1542
|
Spinner,
|
|
1031
1543
|
Switch,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/provider.tsx","../src/theme/context.ts","../src/theme/use-theme.ts","../src/utils/cn.ts","../src/components/button.tsx","../src/components/input.tsx","../src/components/textarea.tsx","../src/components/card.tsx","../src/components/badge.tsx","../src/components/label.tsx","../src/components/checkbox.tsx","../src/components/switch.tsx","../src/components/separator.tsx","../src/components/select/index.tsx","../src/components/dialog/index.tsx","../src/components/spinner.tsx","../src/components/table.tsx","../src/components/pagination.tsx","../src/components/combobox/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport {\n accentColors,\n grayColors,\n radiusPresets,\n lightTheme,\n darkTheme,\n type AccentColor,\n type GrayColor,\n type RadiusPreset,\n type Theme,\n} from '@onesaz/tokens'\nimport { ThemeContext } from './context'\n\nexport interface ThemeProviderProps {\n children: React.ReactNode\n defaultTheme?: Theme\n accentColor?: AccentColor\n grayColor?: GrayColor\n radius?: RadiusPreset\n storageKey?: string\n}\n\nfunction getSystemTheme(): 'light' | 'dark' {\n if (typeof window === 'undefined') return 'light'\n return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'\n}\n\nexport function ThemeProvider({\n children,\n defaultTheme = 'system',\n accentColor: defaultAccent = 'purple',\n grayColor: defaultGray = 'slate',\n radius: defaultRadius = 'medium',\n storageKey = 'onesaz-theme',\n}: ThemeProviderProps) {\n const [theme, setThemeState] = React.useState<Theme>(() => {\n if (typeof window === 'undefined') return defaultTheme\n const stored = localStorage.getItem(`${storageKey}-mode`)\n return (stored as Theme) || defaultTheme\n })\n\n const [accentColor, setAccentColorState] = React.useState<AccentColor>(() => {\n if (typeof window === 'undefined') return defaultAccent\n const stored = localStorage.getItem(`${storageKey}-accent`)\n return (stored as AccentColor) || defaultAccent\n })\n\n const [grayColor, setGrayColorState] = React.useState<GrayColor>(() => {\n if (typeof window === 'undefined') return defaultGray\n const stored = localStorage.getItem(`${storageKey}-gray`)\n return (stored as GrayColor) || defaultGray\n })\n\n const [radius, setRadiusState] = React.useState<RadiusPreset>(() => {\n if (typeof window === 'undefined') return defaultRadius\n const stored = localStorage.getItem(`${storageKey}-radius`)\n return (stored as RadiusPreset) || defaultRadius\n })\n\n const [resolvedTheme, setResolvedTheme] = React.useState<'light' | 'dark'>(() =>\n theme === 'system' ? getSystemTheme() : theme\n )\n\n // Listen for system theme changes\n React.useEffect(() => {\n if (theme !== 'system') {\n setResolvedTheme(theme)\n return\n }\n\n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)')\n setResolvedTheme(mediaQuery.matches ? 'dark' : 'light')\n\n const handler = (e: MediaQueryListEvent) => {\n setResolvedTheme(e.matches ? 'dark' : 'light')\n }\n\n mediaQuery.addEventListener('change', handler)\n return () => mediaQuery.removeEventListener('change', handler)\n }, [theme])\n\n // Generate CSS variables\n React.useEffect(() => {\n const root = document.documentElement\n const themeTokens = resolvedTheme === 'dark' ? darkTheme : lightTheme\n const accent = accentColors[accentColor]\n const gray = grayColors[grayColor]\n const radiusValues = radiusPresets[radius]\n\n // Set theme attribute\n root.setAttribute('data-theme', resolvedTheme)\n root.setAttribute('data-accent', accentColor)\n\n // Set gray-based semantic tokens\n root.style.setProperty('--background', gray[themeTokens.background])\n root.style.setProperty('--foreground', gray[themeTokens.foreground])\n root.style.setProperty('--card', gray[themeTokens.card])\n root.style.setProperty('--card-foreground', gray[themeTokens.cardForeground])\n root.style.setProperty('--popover', gray[themeTokens.popover])\n root.style.setProperty('--popover-foreground', gray[themeTokens.popoverForeground])\n root.style.setProperty('--muted', gray[themeTokens.muted])\n root.style.setProperty('--muted-foreground', gray[themeTokens.mutedForeground])\n root.style.setProperty('--border', gray[themeTokens.border])\n root.style.setProperty('--input', gray[themeTokens.input])\n\n // Set accent colors\n root.style.setProperty('--accent', accent[6])\n root.style.setProperty('--accent-foreground', '#ffffff')\n root.style.setProperty('--accent-hover', accent[7])\n root.style.setProperty('--ring', accent[6])\n\n // Set all accent scale values\n Object.entries(accent).forEach(([step, value]) => {\n root.style.setProperty(`--accent-${step}`, value)\n })\n\n // Set destructive colors\n root.style.setProperty('--destructive', resolvedTheme === 'dark' ? '#ef4444' : '#dc2626')\n root.style.setProperty('--destructive-foreground', '#ffffff')\n\n // Set radius\n root.style.setProperty('--radius', radiusValues.md)\n root.style.setProperty('--radius-sm', radiusValues.sm)\n root.style.setProperty('--radius-lg', radiusValues.lg)\n }, [resolvedTheme, accentColor, grayColor, radius])\n\n const setTheme = React.useCallback((newTheme: Theme) => {\n localStorage.setItem(`${storageKey}-mode`, newTheme)\n setThemeState(newTheme)\n }, [storageKey])\n\n const setAccentColor = React.useCallback((color: AccentColor) => {\n localStorage.setItem(`${storageKey}-accent`, color)\n setAccentColorState(color)\n }, [storageKey])\n\n const setGrayColor = React.useCallback((color: GrayColor) => {\n localStorage.setItem(`${storageKey}-gray`, color)\n setGrayColorState(color)\n }, [storageKey])\n\n const setRadius = React.useCallback((newRadius: RadiusPreset) => {\n localStorage.setItem(`${storageKey}-radius`, newRadius)\n setRadiusState(newRadius)\n }, [storageKey])\n\n const value = React.useMemo(\n () => ({\n theme,\n resolvedTheme,\n accentColor,\n grayColor,\n radius,\n setTheme,\n setAccentColor,\n setGrayColor,\n setRadius,\n }),\n [theme, resolvedTheme, accentColor, grayColor, radius, setTheme, setAccentColor, setGrayColor, setRadius]\n )\n\n return (\n <ThemeContext.Provider value={value}>\n {children}\n </ThemeContext.Provider>\n )\n}\n\nThemeProvider.displayName = 'ThemeProvider'\n","import { createContext } from 'react'\nimport type { AccentColor, GrayColor, RadiusPreset, Theme } from '@onesaz/tokens'\n\nexport interface ThemeContextValue {\n theme: Theme\n resolvedTheme: 'light' | 'dark'\n accentColor: AccentColor\n grayColor: GrayColor\n radius: RadiusPreset\n setTheme: (theme: Theme) => void\n setAccentColor: (color: AccentColor) => void\n setGrayColor: (color: GrayColor) => void\n setRadius: (radius: RadiusPreset) => void\n}\n\nexport const ThemeContext = createContext<ThemeContextValue | undefined>(undefined)\n","import { useContext } from 'react'\nimport { ThemeContext, type ThemeContextValue } from './context'\n\nexport function useTheme(): ThemeContextValue {\n const context = useContext(ThemeContext)\n if (!context) {\n throw new Error('useTheme must be used within a ThemeProvider')\n }\n return context\n}\n","import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'\n size?: 'default' | 'sm' | 'lg' | 'icon'\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant = 'default', size = 'default', ...props }, ref) => {\n return (\n <button\n className={cn(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n {\n 'bg-accent text-accent-foreground hover:bg-accent-hover':\n variant === 'default',\n 'bg-destructive text-destructive-foreground hover:bg-destructive/90':\n variant === 'destructive',\n 'border border-input bg-background hover:bg-muted hover:text-foreground':\n variant === 'outline',\n 'bg-muted text-foreground hover:bg-muted/80':\n variant === 'secondary',\n 'hover:bg-muted hover:text-foreground':\n variant === 'ghost',\n 'text-accent underline-offset-4 hover:underline':\n variant === 'link',\n },\n {\n 'h-10 px-4 py-2': size === 'default',\n 'h-9 rounded-md px-3': size === 'sm',\n 'h-11 rounded-md px-8': size === 'lg',\n 'h-10 w-10': size === 'icon',\n },\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nButton.displayName = 'Button'\n\nexport { Button }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n 'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium',\n 'placeholder:text-muted-foreground',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nInput.displayName = 'Input'\n\nexport { Input }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background',\n 'placeholder:text-muted-foreground',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nTextarea.displayName = 'Textarea'\n\nexport { Textarea }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'rounded-lg border border-border bg-card text-card-foreground shadow-sm',\n className\n )}\n {...props}\n />\n )\n)\nCard.displayName = 'Card'\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex flex-col space-y-1.5 p-6', className)}\n {...props}\n />\n )\n)\nCardHeader.displayName = 'CardHeader'\n\nconst CardTitle = React.forwardRef<HTMLHeadingElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn('text-2xl font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = 'CardTitle'\n\nconst CardDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n)\nCardDescription.displayName = 'CardDescription'\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('p-6 pt-0', className)} {...props} />\n )\n)\nCardContent.displayName = 'CardContent'\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex items-center p-6 pt-0', className)}\n {...props}\n />\n )\n)\nCardFooter.displayName = 'CardFooter'\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: 'default' | 'secondary' | 'destructive' | 'outline'\n}\n\nconst Badge = React.forwardRef<HTMLDivElement, BadgeProps>(\n ({ className, variant = 'default', ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n {\n 'border-transparent bg-accent text-accent-foreground':\n variant === 'default',\n 'border-transparent bg-muted text-foreground':\n variant === 'secondary',\n 'border-transparent bg-destructive text-destructive-foreground':\n variant === 'destructive',\n 'border border-border text-foreground':\n variant === 'outline',\n },\n className\n )}\n {...props}\n />\n )\n }\n)\nBadge.displayName = 'Badge'\n\nexport { Badge }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {}\n\nconst Label = React.forwardRef<HTMLLabelElement, LabelProps>(\n ({ className, ...props }, ref) => (\n <label\n ref={ref}\n className={cn(\n 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n className\n )}\n {...props}\n />\n )\n)\nLabel.displayName = 'Label'\n\nexport { Label }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {}\n\nconst Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <input\n type=\"checkbox\"\n ref={ref}\n className={cn(\n 'h-4 w-4 shrink-0 rounded-sm border border-accent cursor-pointer',\n 'ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'accent-accent',\n className\n )}\n {...props}\n />\n )\n)\nCheckbox.displayName = 'Checkbox'\n\nexport { Checkbox }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {}\n\nconst Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\n ({ className, ...props }, ref) => (\n <label className={cn('relative inline-flex items-center cursor-pointer', className)}>\n <input\n type=\"checkbox\"\n ref={ref}\n className=\"sr-only peer\"\n {...props}\n />\n <div\n className={cn(\n 'w-11 h-6 rounded-full transition-colors',\n 'bg-input peer-checked:bg-accent',\n 'peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background',\n 'peer-disabled:cursor-not-allowed peer-disabled:opacity-50',\n 'after:content-[\"\"] after:absolute after:top-[2px] after:left-[2px]',\n 'after:bg-background after:rounded-full after:h-5 after:w-5',\n 'after:transition-transform after:shadow-lg',\n 'peer-checked:after:translate-x-5'\n )}\n />\n </label>\n )\n)\nSwitch.displayName = 'Switch'\n\nexport { Switch }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {\n orientation?: 'horizontal' | 'vertical'\n}\n\nconst Separator = React.forwardRef<HTMLDivElement, SeparatorProps>(\n ({ className, orientation = 'horizontal', ...props }, ref) => (\n <div\n ref={ref}\n role=\"separator\"\n aria-orientation={orientation}\n className={cn(\n 'shrink-0 bg-border',\n orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\n className\n )}\n {...props}\n />\n )\n)\nSeparator.displayName = 'Separator'\n\nexport { Separator }\n","import * as React from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {}\n\nconst Select = React.forwardRef<HTMLSelectElement, SelectProps>(\n ({ className, children, ...props }, ref) => (\n <select\n ref={ref}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n {children}\n </select>\n )\n)\nSelect.displayName = 'Select'\n\nexport interface SelectOptionProps extends React.OptionHTMLAttributes<HTMLOptionElement> {}\n\nconst SelectOption = React.forwardRef<HTMLOptionElement, SelectOptionProps>(\n ({ className, ...props }, ref) => (\n <option ref={ref} className={cn('py-1.5', className)} {...props} />\n )\n)\nSelectOption.displayName = 'SelectOption'\n\nexport interface SelectGroupProps extends React.OptgroupHTMLAttributes<HTMLOptGroupElement> {}\n\nconst SelectGroup = React.forwardRef<HTMLOptGroupElement, SelectGroupProps>(\n ({ className, ...props }, ref) => (\n <optgroup ref={ref} className={cn('font-semibold', className)} {...props} />\n )\n)\nSelectGroup.displayName = 'SelectGroup'\n\n// Compound component pattern\nconst SelectNamespace = Object.assign(Select, {\n Option: SelectOption,\n Group: SelectGroup,\n})\n\nexport {\n SelectNamespace as Select,\n SelectOption,\n SelectGroup,\n}\n","import * as React from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface DialogProps {\n open?: boolean\n onOpenChange?: (open: boolean) => void\n children: React.ReactNode\n}\n\nconst Dialog: React.FC<DialogProps> = ({ open, onOpenChange, children }) => {\n // Close on Escape key\n React.useEffect(() => {\n const handleEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape' && open) {\n onOpenChange?.(false)\n }\n }\n document.addEventListener('keydown', handleEscape)\n return () => document.removeEventListener('keydown', handleEscape)\n }, [open, onOpenChange])\n\n if (!open) return null\n\n return <>{children}</>\n}\nDialog.displayName = 'Dialog'\n\nexport interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {\n onClose?: () => void\n}\n\nconst DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps>(\n ({ className, children, onClose, ...props }, ref) => (\n <>\n {/* Overlay */}\n <div\n className=\"fixed inset-0 z-50 bg-black/80\"\n onClick={onClose}\n />\n {/* Content */}\n <div\n ref={ref}\n className={cn(\n 'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 p-6 shadow-lg',\n 'bg-popover border border-border text-popover-foreground',\n 'rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n {onClose && (\n <button\n type=\"button\"\n onClick={onClose}\n className=\"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n <span className=\"sr-only\">Close</span>\n </button>\n )}\n </div>\n </>\n )\n)\nDialogContent.displayName = 'DialogContent'\n\nconst DialogHeader: React.FC<React.HTMLAttributes<HTMLDivElement>> = ({\n className,\n ...props\n}) => (\n <div\n className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)}\n {...props}\n />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter: React.FC<React.HTMLAttributes<HTMLDivElement>> = ({\n className,\n ...props\n}) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<HTMLHeadingElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h2\n ref={ref}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n )\n)\nDialogTitle.displayName = 'DialogTitle'\n\nconst DialogDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n)\nDialogDescription.displayName = 'DialogDescription'\n\n// Compound component pattern\nconst DialogNamespace = Object.assign(Dialog, {\n Content: DialogContent,\n Header: DialogHeader,\n Footer: DialogFooter,\n Title: DialogTitle,\n Description: DialogDescription,\n})\n\nexport {\n DialogNamespace as Dialog,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {\n size?: 'sm' | 'default' | 'lg'\n}\n\nconst Spinner = React.forwardRef<HTMLDivElement, SpinnerProps>(\n ({ className, size = 'default', ...props }, ref) => {\n return (\n <div\n ref={ref}\n role=\"status\"\n aria-label=\"Loading\"\n className={cn(\n 'inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]',\n {\n 'h-4 w-4': size === 'sm',\n 'h-6 w-6': size === 'default',\n 'h-8 w-8': size === 'lg',\n },\n 'text-accent',\n className\n )}\n {...props}\n >\n <span className=\"sr-only\">Loading...</span>\n </div>\n )\n }\n)\nSpinner.displayName = 'Spinner'\n\nexport { Spinner }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n />\n </div>\n))\nTable.displayName = 'Table'\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n))\nTableHeader.displayName = 'TableHeader'\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn('[&_tr:last-child]:border-0', className)}\n {...props}\n />\n))\nTableBody.displayName = 'TableBody'\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n 'border-t bg-muted/50 font-medium [&>tr]:last:border-b-0',\n className\n )}\n {...props}\n />\n))\nTableFooter.displayName = 'TableFooter'\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'border-b border-border transition-colors',\n 'hover:bg-muted/50',\n 'data-[state=selected]:bg-muted',\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = 'TableRow'\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n 'h-12 px-4 text-left align-middle font-medium text-muted-foreground',\n '[&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n))\nTableHead.displayName = 'TableHead'\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n))\nTableCell.displayName = 'TableCell'\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn('mt-4 text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nTableCaption.displayName = 'TableCaption'\n\n// Compound component pattern\nconst TableNamespace = Object.assign(Table, {\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Head: TableHead,\n Cell: TableCell,\n Caption: TableCaption,\n})\n\nexport {\n TableNamespace as Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n}\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\nimport { Button } from './button'\n\nexport interface PaginationProps extends React.HTMLAttributes<HTMLElement> {}\n\nconst Pagination = React.forwardRef<HTMLElement, PaginationProps>(\n ({ className, ...props }, ref) => (\n <nav\n ref={ref}\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n )\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.HTMLAttributes<HTMLUListElement>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n))\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.LiHTMLAttributes<HTMLLIElement>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('', className)} {...props} />\n))\nPaginationItem.displayName = 'PaginationItem'\n\nexport interface PaginationLinkProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n isActive?: boolean\n}\n\nconst PaginationLink = React.forwardRef<HTMLButtonElement, PaginationLinkProps>(\n ({ className, isActive, ...props }, ref) => (\n <Button\n ref={ref}\n variant={isActive ? 'default' : 'outline'}\n size=\"icon\"\n className={cn('h-9 w-9', className)}\n {...props}\n />\n )\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <Button\n ref={ref}\n variant=\"outline\"\n size=\"default\"\n className={cn('gap-1 pl-2.5', className)}\n {...props}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n <span>Previous</span>\n </Button>\n))\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <Button\n ref={ref}\n variant=\"outline\"\n size=\"default\"\n className={cn('gap-1 pr-2.5', className)}\n {...props}\n >\n <span>Next</span>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n </Button>\n))\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement>\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n aria-hidden\n className={cn('flex h-9 w-9 items-center justify-center', className)}\n {...props}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"1\" />\n <circle cx=\"19\" cy=\"12\" r=\"1\" />\n <circle cx=\"5\" cy=\"12\" r=\"1\" />\n </svg>\n <span className=\"sr-only\">More pages</span>\n </span>\n))\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\n// Compound component pattern\nconst PaginationNamespace = Object.assign(Pagination, {\n Content: PaginationContent,\n Item: PaginationItem,\n Link: PaginationLink,\n Previous: PaginationPrevious,\n Next: PaginationNext,\n Ellipsis: PaginationEllipsis,\n})\n\nexport {\n PaginationNamespace as Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n","import * as React from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface ComboboxOption {\n value: string\n label: string\n disabled?: boolean\n}\n\nexport interface ComboboxProps {\n options: ComboboxOption[]\n value?: string\n defaultValue?: string\n onValueChange?: (value: string) => void\n placeholder?: string\n searchPlaceholder?: string\n emptyMessage?: string\n disabled?: boolean\n className?: string\n}\n\nconst Combobox = React.forwardRef<HTMLInputElement, ComboboxProps>(\n (\n {\n options,\n value: controlledValue,\n defaultValue,\n onValueChange,\n placeholder = 'Select option...',\n searchPlaceholder = 'Search...',\n emptyMessage = 'No results found.',\n disabled = false,\n className,\n },\n ref\n ) => {\n const [open, setOpen] = React.useState(false)\n const [search, setSearch] = React.useState('')\n const [internalValue, setInternalValue] = React.useState(defaultValue ?? '')\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n const value = controlledValue !== undefined ? controlledValue : internalValue\n\n const filteredOptions = React.useMemo(() => {\n if (!search) return options\n return options.filter((option) =>\n option.label.toLowerCase().includes(search.toLowerCase())\n )\n }, [options, search])\n\n const selectedOption = options.find((option) => option.value === value)\n\n const handleSelect = (optionValue: string) => {\n if (controlledValue === undefined) {\n setInternalValue(optionValue)\n }\n onValueChange?.(optionValue)\n setOpen(false)\n setSearch('')\n }\n\n // Close on click outside\n React.useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (containerRef.current && !containerRef.current.contains(event.target as Node)) {\n setOpen(false)\n }\n }\n document.addEventListener('mousedown', handleClickOutside)\n return () => document.removeEventListener('mousedown', handleClickOutside)\n }, [])\n\n return (\n <div ref={containerRef} className=\"relative\">\n <button\n type=\"button\"\n role=\"combobox\"\n aria-expanded={open}\n disabled={disabled}\n onClick={() => setOpen(!open)}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n >\n <span className={cn(!selectedOption && 'text-muted-foreground')}>\n {selectedOption?.label ?? placeholder}\n </span>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn(\n 'ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform',\n open && 'rotate-180'\n )}\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n\n {open && (\n <div className=\"absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md\">\n <div className=\"flex items-center border-b border-border px-3\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"mr-2 h-4 w-4 shrink-0 opacity-50\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n <input\n ref={ref}\n className=\"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground\"\n placeholder={searchPlaceholder}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n />\n </div>\n <div className=\"max-h-[300px] overflow-y-auto p-1\">\n {filteredOptions.length === 0 ? (\n <div className=\"py-6 text-center text-sm text-muted-foreground\">\n {emptyMessage}\n </div>\n ) : (\n filteredOptions.map((option) => (\n <button\n key={option.value}\n type=\"button\"\n disabled={option.disabled}\n onClick={() => handleSelect(option.value)}\n className={cn(\n 'relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none',\n 'hover:bg-muted hover:text-foreground',\n 'focus:bg-muted focus:text-foreground',\n 'disabled:pointer-events-none disabled:opacity-50',\n option.value === value && 'bg-muted'\n )}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n {option.value === value && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <polyline points=\"20 6 9 17 4 12\" />\n </svg>\n )}\n </span>\n {option.label}\n </button>\n ))\n )}\n </div>\n </div>\n )}\n </div>\n )\n }\n)\nCombobox.displayName = 'Combobox'\n\nexport { Combobox }\n"],"mappings":";AAAA,YAAY,WAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;;;ACXP,SAAS,qBAAqB;AAevB,IAAM,eAAe,cAA6C,MAAS;;;ADoJ9E;AA5IJ,SAAS,iBAAmC;AAC1C,MAAI,OAAO,WAAW,YAAa,QAAO;AAC1C,SAAO,OAAO,WAAW,8BAA8B,EAAE,UAAU,SAAS;AAC9E;AAEO,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA,eAAe;AAAA,EACf,aAAa,gBAAgB;AAAA,EAC7B,WAAW,cAAc;AAAA,EACzB,QAAQ,gBAAgB;AAAA,EACxB,aAAa;AACf,GAAuB;AACrB,QAAM,CAAC,OAAO,aAAa,IAAU,eAAgB,MAAM;AACzD,QAAI,OAAO,WAAW,YAAa,QAAO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A+Bd,CACD,GAEL;AAAA,SACF;AAAA,OAEJ;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":["value","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","jsxs","React","jsx","React","jsx","React","jsx","jsxs","React","jsx","jsxs"]}
|
|
1
|
+
{"version":3,"sources":["../src/theme/provider.tsx","../src/theme/context.ts","../src/theme/use-theme.ts","../src/utils/cn.ts","../src/components/button.tsx","../src/components/input.tsx","../src/components/textarea.tsx","../src/components/card.tsx","../src/components/badge.tsx","../src/components/label.tsx","../src/components/checkbox.tsx","../src/components/switch.tsx","../src/components/separator.tsx","../src/components/select/index.tsx","../src/components/dialog/index.tsx","../src/components/spinner.tsx","../src/components/table.tsx","../src/components/pagination.tsx","../src/components/combobox/index.tsx","../src/playground.tsx"],"sourcesContent":["import * as React from 'react'\nimport {\n accentColors,\n grayColors,\n radiusPresets,\n lightTheme,\n darkTheme,\n type AccentColor,\n type GrayColor,\n type RadiusPreset,\n type Theme,\n} from '@onesaz/tokens'\nimport { ThemeContext } from './context'\n\nexport interface ThemeProviderProps {\n children: React.ReactNode\n defaultTheme?: Theme\n accentColor?: AccentColor\n grayColor?: GrayColor\n radius?: RadiusPreset\n storageKey?: string\n}\n\nfunction getSystemTheme(): 'light' | 'dark' {\n if (typeof window === 'undefined') return 'light'\n return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'\n}\n\nexport function ThemeProvider({\n children,\n defaultTheme = 'system',\n accentColor: defaultAccent = 'purple',\n grayColor: defaultGray = 'slate',\n radius: defaultRadius = 'medium',\n storageKey = 'onesaz-theme',\n}: ThemeProviderProps) {\n const [theme, setThemeState] = React.useState<Theme>(() => {\n if (typeof window === 'undefined') return defaultTheme\n const stored = localStorage.getItem(`${storageKey}-mode`)\n return (stored as Theme) || defaultTheme\n })\n\n const [accentColor, setAccentColorState] = React.useState<AccentColor>(() => {\n if (typeof window === 'undefined') return defaultAccent\n const stored = localStorage.getItem(`${storageKey}-accent`)\n return (stored as AccentColor) || defaultAccent\n })\n\n const [grayColor, setGrayColorState] = React.useState<GrayColor>(() => {\n if (typeof window === 'undefined') return defaultGray\n const stored = localStorage.getItem(`${storageKey}-gray`)\n return (stored as GrayColor) || defaultGray\n })\n\n const [radius, setRadiusState] = React.useState<RadiusPreset>(() => {\n if (typeof window === 'undefined') return defaultRadius\n const stored = localStorage.getItem(`${storageKey}-radius`)\n return (stored as RadiusPreset) || defaultRadius\n })\n\n const [resolvedTheme, setResolvedTheme] = React.useState<'light' | 'dark'>(() =>\n theme === 'system' ? getSystemTheme() : theme\n )\n\n // Listen for system theme changes\n React.useEffect(() => {\n if (theme !== 'system') {\n setResolvedTheme(theme)\n return\n }\n\n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)')\n setResolvedTheme(mediaQuery.matches ? 'dark' : 'light')\n\n const handler = (e: MediaQueryListEvent) => {\n setResolvedTheme(e.matches ? 'dark' : 'light')\n }\n\n mediaQuery.addEventListener('change', handler)\n return () => mediaQuery.removeEventListener('change', handler)\n }, [theme])\n\n // Generate CSS variables\n React.useEffect(() => {\n const root = document.documentElement\n const themeTokens = resolvedTheme === 'dark' ? darkTheme : lightTheme\n const accent = accentColors[accentColor]\n const gray = grayColors[grayColor]\n const radiusValues = radiusPresets[radius]\n\n // Set theme attribute\n root.setAttribute('data-theme', resolvedTheme)\n root.setAttribute('data-accent', accentColor)\n\n // Set gray-based semantic tokens\n root.style.setProperty('--background', gray[themeTokens.background])\n root.style.setProperty('--foreground', gray[themeTokens.foreground])\n root.style.setProperty('--card', gray[themeTokens.card])\n root.style.setProperty('--card-foreground', gray[themeTokens.cardForeground])\n root.style.setProperty('--popover', gray[themeTokens.popover])\n root.style.setProperty('--popover-foreground', gray[themeTokens.popoverForeground])\n root.style.setProperty('--muted', gray[themeTokens.muted])\n root.style.setProperty('--muted-foreground', gray[themeTokens.mutedForeground])\n root.style.setProperty('--border', gray[themeTokens.border])\n root.style.setProperty('--input', gray[themeTokens.input])\n\n // Set accent colors\n root.style.setProperty('--accent', accent[6])\n root.style.setProperty('--accent-foreground', '#ffffff')\n root.style.setProperty('--accent-hover', accent[7])\n root.style.setProperty('--ring', accent[6])\n\n // Set all accent scale values\n Object.entries(accent).forEach(([step, value]) => {\n root.style.setProperty(`--accent-${step}`, value)\n })\n\n // Set destructive colors\n root.style.setProperty('--destructive', resolvedTheme === 'dark' ? '#ef4444' : '#dc2626')\n root.style.setProperty('--destructive-foreground', '#ffffff')\n\n // Set radius\n root.style.setProperty('--radius', radiusValues.md)\n root.style.setProperty('--radius-sm', radiusValues.sm)\n root.style.setProperty('--radius-lg', radiusValues.lg)\n }, [resolvedTheme, accentColor, grayColor, radius])\n\n const setTheme = React.useCallback((newTheme: Theme) => {\n localStorage.setItem(`${storageKey}-mode`, newTheme)\n setThemeState(newTheme)\n }, [storageKey])\n\n const setAccentColor = React.useCallback((color: AccentColor) => {\n localStorage.setItem(`${storageKey}-accent`, color)\n setAccentColorState(color)\n }, [storageKey])\n\n const setGrayColor = React.useCallback((color: GrayColor) => {\n localStorage.setItem(`${storageKey}-gray`, color)\n setGrayColorState(color)\n }, [storageKey])\n\n const setRadius = React.useCallback((newRadius: RadiusPreset) => {\n localStorage.setItem(`${storageKey}-radius`, newRadius)\n setRadiusState(newRadius)\n }, [storageKey])\n\n const value = React.useMemo(\n () => ({\n theme,\n resolvedTheme,\n accentColor,\n grayColor,\n radius,\n setTheme,\n setAccentColor,\n setGrayColor,\n setRadius,\n }),\n [theme, resolvedTheme, accentColor, grayColor, radius, setTheme, setAccentColor, setGrayColor, setRadius]\n )\n\n return (\n <ThemeContext.Provider value={value}>\n {children}\n </ThemeContext.Provider>\n )\n}\n\nThemeProvider.displayName = 'ThemeProvider'\n","import { createContext } from 'react'\nimport type { AccentColor, GrayColor, RadiusPreset, Theme } from '@onesaz/tokens'\n\nexport interface ThemeContextValue {\n theme: Theme\n resolvedTheme: 'light' | 'dark'\n accentColor: AccentColor\n grayColor: GrayColor\n radius: RadiusPreset\n setTheme: (theme: Theme) => void\n setAccentColor: (color: AccentColor) => void\n setGrayColor: (color: GrayColor) => void\n setRadius: (radius: RadiusPreset) => void\n}\n\nexport const ThemeContext = createContext<ThemeContextValue | undefined>(undefined)\n","import { useContext } from 'react'\nimport { ThemeContext, type ThemeContextValue } from './context'\n\nexport function useTheme(): ThemeContextValue {\n const context = useContext(ThemeContext)\n if (!context) {\n throw new Error('useTheme must be used within a ThemeProvider')\n }\n return context\n}\n","import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'\n size?: 'default' | 'sm' | 'lg' | 'icon'\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant = 'default', size = 'default', ...props }, ref) => {\n return (\n <button\n className={cn(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n {\n 'bg-accent text-accent-foreground hover:bg-accent-hover':\n variant === 'default',\n 'bg-destructive text-destructive-foreground hover:bg-destructive/90':\n variant === 'destructive',\n 'border border-input bg-background hover:bg-muted hover:text-foreground':\n variant === 'outline',\n 'bg-muted text-foreground hover:bg-muted/80':\n variant === 'secondary',\n 'hover:bg-muted hover:text-foreground':\n variant === 'ghost',\n 'text-accent underline-offset-4 hover:underline':\n variant === 'link',\n },\n {\n 'h-10 px-4 py-2': size === 'default',\n 'h-9 rounded-md px-3': size === 'sm',\n 'h-11 rounded-md px-8': size === 'lg',\n 'h-10 w-10': size === 'icon',\n },\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nButton.displayName = 'Button'\n\nexport { Button }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n 'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium',\n 'placeholder:text-muted-foreground',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nInput.displayName = 'Input'\n\nexport { Input }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background',\n 'placeholder:text-muted-foreground',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nTextarea.displayName = 'Textarea'\n\nexport { Textarea }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'rounded-lg border border-border bg-card text-card-foreground shadow-sm',\n className\n )}\n {...props}\n />\n )\n)\nCard.displayName = 'Card'\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex flex-col space-y-1.5 p-6', className)}\n {...props}\n />\n )\n)\nCardHeader.displayName = 'CardHeader'\n\nconst CardTitle = React.forwardRef<HTMLHeadingElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn('text-2xl font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = 'CardTitle'\n\nconst CardDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n)\nCardDescription.displayName = 'CardDescription'\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('p-6 pt-0', className)} {...props} />\n )\n)\nCardContent.displayName = 'CardContent'\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex items-center p-6 pt-0', className)}\n {...props}\n />\n )\n)\nCardFooter.displayName = 'CardFooter'\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: 'default' | 'secondary' | 'destructive' | 'outline'\n}\n\nconst Badge = React.forwardRef<HTMLDivElement, BadgeProps>(\n ({ className, variant = 'default', ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n {\n 'border-transparent bg-accent text-accent-foreground':\n variant === 'default',\n 'border-transparent bg-muted text-foreground':\n variant === 'secondary',\n 'border-transparent bg-destructive text-destructive-foreground':\n variant === 'destructive',\n 'border border-border text-foreground':\n variant === 'outline',\n },\n className\n )}\n {...props}\n />\n )\n }\n)\nBadge.displayName = 'Badge'\n\nexport { Badge }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {}\n\nconst Label = React.forwardRef<HTMLLabelElement, LabelProps>(\n ({ className, ...props }, ref) => (\n <label\n ref={ref}\n className={cn(\n 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n className\n )}\n {...props}\n />\n )\n)\nLabel.displayName = 'Label'\n\nexport { Label }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {}\n\nconst Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <input\n type=\"checkbox\"\n ref={ref}\n className={cn(\n 'h-4 w-4 shrink-0 rounded-sm border border-accent cursor-pointer',\n 'ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'accent-accent',\n className\n )}\n {...props}\n />\n )\n)\nCheckbox.displayName = 'Checkbox'\n\nexport { Checkbox }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {}\n\nconst Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\n ({ className, ...props }, ref) => (\n <label className={cn('relative inline-flex items-center cursor-pointer', className)}>\n <input\n type=\"checkbox\"\n ref={ref}\n className=\"sr-only peer\"\n {...props}\n />\n <div\n className={cn(\n 'w-11 h-6 rounded-full transition-colors',\n 'bg-input peer-checked:bg-accent',\n 'peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background',\n 'peer-disabled:cursor-not-allowed peer-disabled:opacity-50',\n 'after:content-[\"\"] after:absolute after:top-[2px] after:left-[2px]',\n 'after:bg-background after:rounded-full after:h-5 after:w-5',\n 'after:transition-transform after:shadow-lg',\n 'peer-checked:after:translate-x-5'\n )}\n />\n </label>\n )\n)\nSwitch.displayName = 'Switch'\n\nexport { Switch }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {\n orientation?: 'horizontal' | 'vertical'\n}\n\nconst Separator = React.forwardRef<HTMLDivElement, SeparatorProps>(\n ({ className, orientation = 'horizontal', ...props }, ref) => (\n <div\n ref={ref}\n role=\"separator\"\n aria-orientation={orientation}\n className={cn(\n 'shrink-0 bg-border',\n orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\n className\n )}\n {...props}\n />\n )\n)\nSeparator.displayName = 'Separator'\n\nexport { Separator }\n","import * as React from 'react'\nimport * as SelectPrimitive from '@radix-ui/react-select'\nimport { cn } from '../../utils/cn'\n\n// Icons\nconst ChevronDownIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n)\n\nconst ChevronUpIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n)\n\nconst CheckIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n)\n\n// Root\nconst Select = SelectPrimitive.Root\n\n// Group\nconst SelectGroup = SelectPrimitive.Group\n\n// Value\nconst SelectValue = SelectPrimitive.Value\n\n// Trigger\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm',\n 'border-input bg-background text-foreground',\n 'ring-offset-background',\n 'placeholder:text-muted-foreground',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n '[&>span]:line-clamp-1',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\n// ScrollUpButton\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\n// ScrollDownButton\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName\n\n// Content\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md',\n 'border-border bg-popover text-popover-foreground',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',\n 'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2',\n 'data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\n// Label\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\n// Item\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none',\n 'focus:bg-accent focus:text-accent-foreground',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\n// Separator\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\n// Compound component pattern\nconst SelectNamespace = Object.assign(Select, {\n Group: SelectGroup,\n Value: SelectValue,\n Trigger: SelectTrigger,\n Content: SelectContent,\n Label: SelectLabel,\n Item: SelectItem,\n Separator: SelectSeparator,\n ScrollUpButton: SelectScrollUpButton,\n ScrollDownButton: SelectScrollDownButton,\n})\n\nexport {\n SelectNamespace as Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n\n// ============================================\n// Native Select (for simple use cases)\n// ============================================\n\nexport interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {}\n\nconst NativeSelect = React.forwardRef<HTMLSelectElement, NativeSelectProps>(\n ({ className, children, ...props }, ref) => (\n <select\n ref={ref}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n {children}\n </select>\n )\n)\nNativeSelect.displayName = 'NativeSelect'\n\nexport interface NativeSelectOptionProps extends React.OptionHTMLAttributes<HTMLOptionElement> {}\n\nconst NativeSelectOption = React.forwardRef<HTMLOptionElement, NativeSelectOptionProps>(\n ({ className, ...props }, ref) => (\n <option ref={ref} className={cn('py-1.5', className)} {...props} />\n )\n)\nNativeSelectOption.displayName = 'NativeSelectOption'\n\nexport { NativeSelect, NativeSelectOption }\n","import * as React from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface DialogProps {\n open?: boolean\n onOpenChange?: (open: boolean) => void\n children: React.ReactNode\n}\n\nconst Dialog: React.FC<DialogProps> = ({ open, onOpenChange, children }) => {\n // Close on Escape key\n React.useEffect(() => {\n const handleEscape = (e: KeyboardEvent) => {\n if (e.key === 'Escape' && open) {\n onOpenChange?.(false)\n }\n }\n document.addEventListener('keydown', handleEscape)\n return () => document.removeEventListener('keydown', handleEscape)\n }, [open, onOpenChange])\n\n if (!open) return null\n\n return <>{children}</>\n}\nDialog.displayName = 'Dialog'\n\nexport interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {\n onClose?: () => void\n}\n\nconst DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps>(\n ({ className, children, onClose, ...props }, ref) => (\n <>\n {/* Overlay */}\n <div\n className=\"fixed inset-0 z-50 bg-black/80\"\n onClick={onClose}\n />\n {/* Content */}\n <div\n ref={ref}\n className={cn(\n 'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 p-6 shadow-lg',\n 'bg-popover border border-border text-popover-foreground',\n 'rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n {onClose && (\n <button\n type=\"button\"\n onClick={onClose}\n className=\"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n <span className=\"sr-only\">Close</span>\n </button>\n )}\n </div>\n </>\n )\n)\nDialogContent.displayName = 'DialogContent'\n\nconst DialogHeader: React.FC<React.HTMLAttributes<HTMLDivElement>> = ({\n className,\n ...props\n}) => (\n <div\n className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)}\n {...props}\n />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter: React.FC<React.HTMLAttributes<HTMLDivElement>> = ({\n className,\n ...props\n}) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<HTMLHeadingElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h2\n ref={ref}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n )\n)\nDialogTitle.displayName = 'DialogTitle'\n\nconst DialogDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n ({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n)\nDialogDescription.displayName = 'DialogDescription'\n\n// Compound component pattern\nconst DialogNamespace = Object.assign(Dialog, {\n Content: DialogContent,\n Header: DialogHeader,\n Footer: DialogFooter,\n Title: DialogTitle,\n Description: DialogDescription,\n})\n\nexport {\n DialogNamespace as Dialog,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nexport interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {\n size?: 'sm' | 'default' | 'lg'\n}\n\nconst Spinner = React.forwardRef<HTMLDivElement, SpinnerProps>(\n ({ className, size = 'default', ...props }, ref) => {\n return (\n <div\n ref={ref}\n role=\"status\"\n aria-label=\"Loading\"\n className={cn(\n 'inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]',\n {\n 'h-4 w-4': size === 'sm',\n 'h-6 w-6': size === 'default',\n 'h-8 w-8': size === 'lg',\n },\n 'text-accent',\n className\n )}\n {...props}\n >\n <span className=\"sr-only\">Loading...</span>\n </div>\n )\n }\n)\nSpinner.displayName = 'Spinner'\n\nexport { Spinner }\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n />\n </div>\n))\nTable.displayName = 'Table'\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n))\nTableHeader.displayName = 'TableHeader'\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn('[&_tr:last-child]:border-0', className)}\n {...props}\n />\n))\nTableBody.displayName = 'TableBody'\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n 'border-t bg-muted/50 font-medium [&>tr]:last:border-b-0',\n className\n )}\n {...props}\n />\n))\nTableFooter.displayName = 'TableFooter'\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'border-b border-border transition-colors',\n 'hover:bg-muted/50',\n 'data-[state=selected]:bg-muted',\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = 'TableRow'\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n 'h-12 px-4 text-left align-middle font-medium text-muted-foreground',\n '[&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n))\nTableHead.displayName = 'TableHead'\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n))\nTableCell.displayName = 'TableCell'\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn('mt-4 text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nTableCaption.displayName = 'TableCaption'\n\n// Compound component pattern\nconst TableNamespace = Object.assign(Table, {\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Head: TableHead,\n Cell: TableCell,\n Caption: TableCaption,\n})\n\nexport {\n TableNamespace as Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n}\n","import * as React from 'react'\nimport { cn } from '../utils/cn'\nimport { Button } from './button'\n\nexport interface PaginationProps extends React.HTMLAttributes<HTMLElement> {}\n\nconst Pagination = React.forwardRef<HTMLElement, PaginationProps>(\n ({ className, ...props }, ref) => (\n <nav\n ref={ref}\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n )\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.HTMLAttributes<HTMLUListElement>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n))\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.LiHTMLAttributes<HTMLLIElement>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('', className)} {...props} />\n))\nPaginationItem.displayName = 'PaginationItem'\n\nexport interface PaginationLinkProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n isActive?: boolean\n}\n\nconst PaginationLink = React.forwardRef<HTMLButtonElement, PaginationLinkProps>(\n ({ className, isActive, ...props }, ref) => (\n <Button\n ref={ref}\n variant={isActive ? 'default' : 'outline'}\n size=\"icon\"\n className={cn('h-9 w-9', className)}\n {...props}\n />\n )\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <Button\n ref={ref}\n variant=\"outline\"\n size=\"default\"\n className={cn('gap-1 pl-2.5', className)}\n {...props}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n <span>Previous</span>\n </Button>\n))\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <Button\n ref={ref}\n variant=\"outline\"\n size=\"default\"\n className={cn('gap-1 pr-2.5', className)}\n {...props}\n >\n <span>Next</span>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n </Button>\n))\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement>\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n aria-hidden\n className={cn('flex h-9 w-9 items-center justify-center', className)}\n {...props}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"1\" />\n <circle cx=\"19\" cy=\"12\" r=\"1\" />\n <circle cx=\"5\" cy=\"12\" r=\"1\" />\n </svg>\n <span className=\"sr-only\">More pages</span>\n </span>\n))\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\n// Compound component pattern\nconst PaginationNamespace = Object.assign(Pagination, {\n Content: PaginationContent,\n Item: PaginationItem,\n Link: PaginationLink,\n Previous: PaginationPrevious,\n Next: PaginationNext,\n Ellipsis: PaginationEllipsis,\n})\n\nexport {\n PaginationNamespace as Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n","import * as React from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface ComboboxOption {\n value: string\n label: string\n disabled?: boolean\n}\n\nexport interface ComboboxProps {\n options: ComboboxOption[]\n value?: string\n defaultValue?: string\n onValueChange?: (value: string) => void\n placeholder?: string\n searchPlaceholder?: string\n emptyMessage?: string\n disabled?: boolean\n className?: string\n}\n\nconst Combobox = React.forwardRef<HTMLInputElement, ComboboxProps>(\n (\n {\n options,\n value: controlledValue,\n defaultValue,\n onValueChange,\n placeholder = 'Select option...',\n searchPlaceholder = 'Search...',\n emptyMessage = 'No results found.',\n disabled = false,\n className,\n },\n ref\n ) => {\n const [open, setOpen] = React.useState(false)\n const [search, setSearch] = React.useState('')\n const [internalValue, setInternalValue] = React.useState(defaultValue ?? '')\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n const value = controlledValue !== undefined ? controlledValue : internalValue\n\n const filteredOptions = React.useMemo(() => {\n if (!search) return options\n return options.filter((option) =>\n option.label.toLowerCase().includes(search.toLowerCase())\n )\n }, [options, search])\n\n const selectedOption = options.find((option) => option.value === value)\n\n const handleSelect = (optionValue: string) => {\n if (controlledValue === undefined) {\n setInternalValue(optionValue)\n }\n onValueChange?.(optionValue)\n setOpen(false)\n setSearch('')\n }\n\n // Close on click outside\n React.useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (containerRef.current && !containerRef.current.contains(event.target as Node)) {\n setOpen(false)\n }\n }\n document.addEventListener('mousedown', handleClickOutside)\n return () => document.removeEventListener('mousedown', handleClickOutside)\n }, [])\n\n return (\n <div ref={containerRef} className=\"relative\">\n <button\n type=\"button\"\n role=\"combobox\"\n aria-expanded={open}\n disabled={disabled}\n onClick={() => setOpen(!open)}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm',\n 'ring-offset-background',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n >\n <span className={cn(!selectedOption && 'text-muted-foreground')}>\n {selectedOption?.label ?? placeholder}\n </span>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn(\n 'ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform',\n open && 'rotate-180'\n )}\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n\n {open && (\n <div className=\"absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md\">\n <div className=\"flex items-center border-b border-border px-3\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"mr-2 h-4 w-4 shrink-0 opacity-50\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n <input\n ref={ref}\n className=\"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground\"\n placeholder={searchPlaceholder}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n />\n </div>\n <div className=\"max-h-[300px] overflow-y-auto p-1\">\n {filteredOptions.length === 0 ? (\n <div className=\"py-6 text-center text-sm text-muted-foreground\">\n {emptyMessage}\n </div>\n ) : (\n filteredOptions.map((option) => (\n <button\n key={option.value}\n type=\"button\"\n disabled={option.disabled}\n onClick={() => handleSelect(option.value)}\n className={cn(\n 'relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none',\n 'hover:bg-muted hover:text-foreground',\n 'focus:bg-muted focus:text-foreground',\n 'disabled:pointer-events-none disabled:opacity-50',\n option.value === value && 'bg-muted'\n )}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n {option.value === value && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"h-4 w-4\"\n >\n <polyline points=\"20 6 9 17 4 12\" />\n </svg>\n )}\n </span>\n {option.label}\n </button>\n ))\n )}\n </div>\n </div>\n )}\n </div>\n )\n }\n)\nCombobox.displayName = 'Combobox'\n\nexport { Combobox }\n","import * as React from 'react'\n\n// Import all components\nimport { ThemeProvider } from './theme/provider'\nimport { useTheme } from './theme/use-theme'\nimport { Button } from './components/button'\nimport { Input } from './components/input'\nimport { Textarea } from './components/textarea'\nimport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n} from './components/card'\nimport { Badge } from './components/badge'\nimport { Label } from './components/label'\nimport { Checkbox } from './components/checkbox'\nimport { Switch } from './components/switch'\nimport { Separator } from './components/separator'\nimport { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel } from './components/select'\nimport {\n Dialog,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n} from './components/dialog'\nimport { Spinner } from './components/spinner'\nimport {\n Table,\n TableHeader,\n TableBody,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n} from './components/table'\nimport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n} from './components/pagination'\nimport { Combobox } from './components/combobox'\n\n// Section wrapper component\nconst Section = ({ title, children }: { title: string; children: React.ReactNode }) => (\n <div className=\"mb-8\">\n <h2 className=\"text-xl font-semibold mb-4 text-foreground\">{title}</h2>\n <div className=\"p-4 border border-border rounded-lg bg-background\">{children}</div>\n </div>\n)\n\n// Theme toggle component\nconst ThemeToggle = () => {\n const { theme, setTheme } = useTheme()\n return (\n <div className=\"flex items-center gap-2\">\n <Label>Theme:</Label>\n <Select value={theme} onValueChange={(value) => setTheme(value as 'light' | 'dark' | 'system')}>\n <SelectTrigger className=\"w-32\">\n <SelectValue placeholder=\"Select theme\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"light\">Light</SelectItem>\n <SelectItem value=\"dark\">Dark</SelectItem>\n <SelectItem value=\"system\">System</SelectItem>\n </SelectContent>\n </Select>\n </div>\n )\n}\n\n// Main Playground Component\nconst PlaygroundContent = () => {\n const [dialogOpen, setDialogOpen] = React.useState(false)\n const [checkboxChecked, setCheckboxChecked] = React.useState(false)\n const [switchChecked, setSwitchChecked] = React.useState(false)\n const [inputValue, setInputValue] = React.useState('')\n const [textareaValue, setTextareaValue] = React.useState('')\n const [selectValue, setSelectValue] = React.useState('')\n const [comboboxValue, setComboboxValue] = React.useState('')\n\n const comboboxOptions = [\n { value: 'react', label: 'React' },\n { value: 'vue', label: 'Vue' },\n { value: 'angular', label: 'Angular' },\n { value: 'svelte', label: 'Svelte' },\n { value: 'solid', label: 'SolidJS' },\n ]\n\n return (\n <div className=\"min-h-screen bg-background p-8\">\n <div className=\"max-w-4xl mx-auto\">\n <div className=\"flex items-center justify-between mb-8\">\n <h1 className=\"text-3xl font-bold text-foreground\">@onesaz/ui Playground</h1>\n <ThemeToggle />\n </div>\n\n {/* Buttons */}\n <Section title=\"Button\">\n <div className=\"flex flex-wrap gap-4\">\n <Button variant=\"default\">Default</Button>\n <Button variant=\"destructive\">Destructive</Button>\n <Button variant=\"outline\">Outline</Button>\n <Button variant=\"secondary\">Secondary</Button>\n <Button variant=\"ghost\">Ghost</Button>\n <Button variant=\"link\">Link</Button>\n </div>\n <div className=\"flex flex-wrap gap-4 mt-4\">\n <Button size=\"sm\">Small</Button>\n <Button size=\"default\">Default</Button>\n <Button size=\"lg\">Large</Button>\n <Button size=\"icon\">🔔</Button>\n </div>\n <div className=\"flex flex-wrap gap-4 mt-4\">\n <Button disabled>Disabled</Button>\n <Button variant=\"outline\" disabled>Disabled Outline</Button>\n </div>\n </Section>\n\n {/* Input */}\n <Section title=\"Input\">\n <div className=\"space-y-4 max-w-md\">\n <div>\n <Label htmlFor=\"input-default\">Default Input</Label>\n <Input\n id=\"input-default\"\n placeholder=\"Enter text...\"\n value={inputValue}\n onChange={(e) => setInputValue(e.target.value)}\n />\n </div>\n <div>\n <Label htmlFor=\"input-disabled\">Disabled Input</Label>\n <Input id=\"input-disabled\" placeholder=\"Disabled...\" disabled />\n </div>\n <div>\n <Label htmlFor=\"input-type\">Email Input</Label>\n <Input id=\"input-type\" type=\"email\" placeholder=\"email@example.com\" />\n </div>\n </div>\n </Section>\n\n {/* Textarea */}\n <Section title=\"Textarea\">\n <div className=\"space-y-4 max-w-md\">\n <div>\n <Label htmlFor=\"textarea-default\">Default Textarea</Label>\n <Textarea\n id=\"textarea-default\"\n placeholder=\"Enter long text...\"\n value={textareaValue}\n onChange={(e) => setTextareaValue(e.target.value)}\n />\n </div>\n <div>\n <Label htmlFor=\"textarea-disabled\">Disabled Textarea</Label>\n <Textarea id=\"textarea-disabled\" placeholder=\"Disabled...\" disabled />\n </div>\n </div>\n </Section>\n\n {/* Select */}\n <Section title=\"Select\">\n <div className=\"space-y-4 max-w-md\">\n <div>\n <Label>Default Select</Label>\n <Select value={selectValue} onValueChange={setSelectValue}>\n <SelectTrigger className=\"w-full\">\n <SelectValue placeholder=\"Select an option...\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"option1\">Option 1</SelectItem>\n <SelectItem value=\"option2\">Option 2</SelectItem>\n <SelectItem value=\"option3\">Option 3</SelectItem>\n </SelectContent>\n </Select>\n </div>\n <div>\n <Label>Grouped Select</Label>\n <Select>\n <SelectTrigger className=\"w-full\">\n <SelectValue placeholder=\"Select a food...\" />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n <SelectLabel>Fruits</SelectLabel>\n <SelectItem value=\"apple\">Apple</SelectItem>\n <SelectItem value=\"banana\">Banana</SelectItem>\n </SelectGroup>\n <SelectGroup>\n <SelectLabel>Vegetables</SelectLabel>\n <SelectItem value=\"carrot\">Carrot</SelectItem>\n <SelectItem value=\"potato\">Potato</SelectItem>\n </SelectGroup>\n </SelectContent>\n </Select>\n </div>\n <div>\n <Label>Disabled Select</Label>\n <Select disabled>\n <SelectTrigger className=\"w-full\">\n <SelectValue placeholder=\"Disabled...\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"none\">None</SelectItem>\n </SelectContent>\n </Select>\n </div>\n </div>\n </Section>\n\n {/* Combobox */}\n <Section title=\"Combobox (Searchable Select)\">\n <div className=\"space-y-4 max-w-md\">\n <div>\n <Label>Framework</Label>\n <Combobox\n options={comboboxOptions}\n value={comboboxValue}\n onValueChange={setComboboxValue}\n placeholder=\"Search frameworks...\"\n />\n </div>\n </div>\n </Section>\n\n {/* Checkbox & Switch */}\n <Section title=\"Checkbox & Switch\">\n <div className=\"space-y-4\">\n <div className=\"flex items-center gap-2\">\n <Checkbox\n id=\"checkbox\"\n checked={checkboxChecked}\n onChange={(e) => setCheckboxChecked(e.target.checked)}\n />\n <Label htmlFor=\"checkbox\">Accept terms and conditions</Label>\n </div>\n <div className=\"flex items-center gap-2\">\n <Checkbox id=\"checkbox-disabled\" disabled />\n <Label htmlFor=\"checkbox-disabled\">Disabled checkbox</Label>\n </div>\n <Separator />\n <div className=\"flex items-center gap-2\">\n <Switch\n id=\"switch\"\n checked={switchChecked}\n onChange={(e) => setSwitchChecked(e.target.checked)}\n />\n <Label htmlFor=\"switch\">Enable notifications</Label>\n </div>\n <div className=\"flex items-center gap-2\">\n <Switch id=\"switch-disabled\" disabled />\n <Label htmlFor=\"switch-disabled\">Disabled switch</Label>\n </div>\n </div>\n </Section>\n\n {/* Badge */}\n <Section title=\"Badge\">\n <div className=\"flex flex-wrap gap-4\">\n <Badge>Default</Badge>\n <Badge variant=\"secondary\">Secondary</Badge>\n <Badge variant=\"destructive\">Destructive</Badge>\n <Badge variant=\"outline\">Outline</Badge>\n </div>\n </Section>\n\n {/* Card */}\n <Section title=\"Card\">\n <div className=\"grid gap-4 md:grid-cols-2\">\n <Card>\n <CardHeader>\n <CardTitle>Card Title</CardTitle>\n <CardDescription>Card description goes here</CardDescription>\n </CardHeader>\n <CardContent>\n <p className=\"text-foreground\">This is the card content area.</p>\n </CardContent>\n <CardFooter>\n <Button variant=\"outline\" className=\"mr-2\">Cancel</Button>\n <Button>Submit</Button>\n </CardFooter>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Another Card</CardTitle>\n <CardDescription>With different content</CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"space-y-2\">\n <Label htmlFor=\"card-input\">Name</Label>\n <Input id=\"card-input\" placeholder=\"Enter name...\" />\n </div>\n </CardContent>\n <CardFooter>\n <Button className=\"w-full\">Save</Button>\n </CardFooter>\n </Card>\n </div>\n </Section>\n\n {/* Dialog */}\n <Section title=\"Dialog\">\n <Button onClick={() => setDialogOpen(true)}>Open Dialog</Button>\n <Dialog open={dialogOpen} onOpenChange={setDialogOpen}>\n <DialogContent onClose={() => setDialogOpen(false)}>\n <DialogHeader>\n <DialogTitle>Create New Zone</DialogTitle>\n <DialogDescription>\n Fill in the details below to create a new zone.\n </DialogDescription>\n </DialogHeader>\n <div className=\"space-y-4 py-4\">\n <div className=\"grid grid-cols-2 gap-4\">\n <div>\n <Label htmlFor=\"zone-name\">Zone Name *</Label>\n <Input id=\"zone-name\" placeholder=\"eg:hyderabad\" />\n </div>\n <div>\n <Label htmlFor=\"zone-code\">Zone Code *</Label>\n <Input id=\"zone-code\" placeholder=\"eg :hyd022\" />\n </div>\n </div>\n <div className=\"grid grid-cols-2 gap-4\">\n <div>\n <Label>State *</Label>\n <Select>\n <SelectTrigger className=\"w-full\">\n <SelectValue placeholder=\"Select state\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"telangana\">TELANGANA</SelectItem>\n <SelectItem value=\"andhra\">ANDHRA PRADESH</SelectItem>\n </SelectContent>\n </Select>\n </div>\n <div>\n <Label>District *</Label>\n <Select>\n <SelectTrigger className=\"w-full\">\n <SelectValue placeholder=\"Select District\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"hyderabad\">HYDERABAD</SelectItem>\n <SelectItem value=\"rangareddy\">RANGAREDDY</SelectItem>\n </SelectContent>\n </Select>\n </div>\n </div>\n </div>\n <DialogFooter>\n <Button variant=\"outline\" onClick={() => setDialogOpen(false)}>\n CANCEL\n </Button>\n <Button onClick={() => setDialogOpen(false)}>Create</Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n </Section>\n\n {/* Table */}\n <Section title=\"Table\">\n <Table>\n <TableCaption>A list of recent invoices</TableCaption>\n <TableHeader>\n <TableRow>\n <TableHead>Invoice</TableHead>\n <TableHead>Status</TableHead>\n <TableHead>Method</TableHead>\n <TableHead className=\"text-right\">Amount</TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n <TableRow>\n <TableCell>INV001</TableCell>\n <TableCell><Badge>Paid</Badge></TableCell>\n <TableCell>Credit Card</TableCell>\n <TableCell className=\"text-right\">$250.00</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>INV002</TableCell>\n <TableCell><Badge variant=\"secondary\">Pending</Badge></TableCell>\n <TableCell>PayPal</TableCell>\n <TableCell className=\"text-right\">$150.00</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>INV003</TableCell>\n <TableCell><Badge variant=\"destructive\">Failed</Badge></TableCell>\n <TableCell>Bank Transfer</TableCell>\n <TableCell className=\"text-right\">$350.00</TableCell>\n </TableRow>\n </TableBody>\n </Table>\n </Section>\n\n {/* Pagination */}\n <Section title=\"Pagination\">\n <Pagination>\n <PaginationContent>\n <PaginationItem>\n <PaginationPrevious onClick={() => console.log('Previous')} />\n </PaginationItem>\n <PaginationItem>\n <PaginationLink isActive>1</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink>2</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink>3</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationEllipsis />\n </PaginationItem>\n <PaginationItem>\n <PaginationNext onClick={() => console.log('Next')} />\n </PaginationItem>\n </PaginationContent>\n </Pagination>\n </Section>\n\n {/* Spinner */}\n <Section title=\"Spinner\">\n <div className=\"flex items-center gap-8\">\n <div className=\"text-center\">\n <Spinner size=\"sm\" />\n <p className=\"text-sm text-muted-foreground mt-2\">Small</p>\n </div>\n <div className=\"text-center\">\n <Spinner size=\"default\" />\n <p className=\"text-sm text-muted-foreground mt-2\">Default</p>\n </div>\n <div className=\"text-center\">\n <Spinner size=\"lg\" />\n <p className=\"text-sm text-muted-foreground mt-2\">Large</p>\n </div>\n </div>\n </Section>\n\n {/* Separator */}\n <Section title=\"Separator\">\n <div className=\"space-y-4\">\n <p className=\"text-foreground\">Content above separator</p>\n <Separator />\n <p className=\"text-foreground\">Content below separator</p>\n <div className=\"flex items-center h-10\">\n <span className=\"text-foreground\">Left</span>\n <Separator orientation=\"vertical\" className=\"mx-4\" />\n <span className=\"text-foreground\">Right</span>\n </div>\n </div>\n </Section>\n\n {/* Typography Colors */}\n <Section title=\"Typography & Colors\">\n <div className=\"space-y-2\">\n <p className=\"text-foreground\">text-foreground - Primary text color</p>\n <p className=\"text-muted-foreground\">text-muted-foreground - Muted text color</p>\n <p className=\"text-accent\">text-accent - Accent color</p>\n <p className=\"text-destructive\">text-destructive - Destructive color</p>\n </div>\n </Section>\n </div>\n </div>\n )\n}\n\n// Exported Playground wrapped with ThemeProvider\nexport const Playground = () => (\n <ThemeProvider defaultTheme=\"light\">\n <PlaygroundContent />\n </ThemeProvider>\n)\n\nexport default Playground\n"],"mappings":";AAAA,YAAY,WAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;;;ACXP,SAAS,qBAAqB;AAevB,IAAM,e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BAAAD,MAAC,WAAQ,MAAK,WAAU;AAAA,QACxB,gBAAAA,MAAC,OAAE,WAAU,sCAAqC,qBAAO;AAAA,SAC3D;AAAA,MACA,gBAAAC,MAAC,SAAI,WAAU,eACb;AAAA,wBAAAD,MAAC,WAAQ,MAAK,MAAK;AAAA,QACnB,gBAAAA,MAAC,OAAE,WAAU,sCAAqC,mBAAK;AAAA,SACzD;AAAA,OACF,GACF;AAAA,IAGA,gBAAAA,MAAC,WAAQ,OAAM,aACb,0BAAAC,MAAC,SAAI,WAAU,aACb;AAAA,sBAAAD,MAAC,OAAE,WAAU,mBAAkB,qCAAuB;AAAA,MACtD,gBAAAA,MAAC,aAAU;AAAA,MACX,gBAAAA,MAAC,OAAE,WAAU,mBAAkB,qCAAuB;AAAA,MACtD,gBAAAC,MAAC,SAAI,WAAU,0BACb;AAAA,wBAAAD,MAAC,UAAK,WAAU,mBAAkB,kBAAI;AAAA,QACtC,gBAAAA,MAAC,aAAU,aAAY,YAAW,WAAU,QAAO;AAAA,QACnD,gBAAAA,MAAC,UAAK,WAAU,mBAAkB,mBAAK;AAAA,SACzC;AAAA,OACF,GACF;AAAA,IAGA,gBAAAA,MAAC,WAAQ,OAAM,uBACb,0BAAAC,MAAC,SAAI,WAAU,aACb;AAAA,sBAAAD,MAAC,OAAE,WAAU,mBAAkB,kDAAoC;AAAA,MACnE,gBAAAA,MAAC,OAAE,WAAU,yBAAwB,sDAAwC;AAAA,MAC7E,gBAAAA,MAAC,OAAE,WAAU,eAAc,wCAA0B;AAAA,MACrD,gBAAAA,MAAC,OAAE,WAAU,oBAAmB,kDAAoC;AAAA,OACtE,GACF;AAAA,KACF,GACF;AAEJ;AAGO,IAAM,aAAa,MACxB,gBAAAA,MAAC,iBAAc,cAAa,SAC1B,0BAAAA,MAAC,qBAAkB,GACrB;","names":["value","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","React","jsx","jsxs","jsx","React","jsx","jsxs","React","jsx","React","jsx","React","jsx","jsxs","React","jsx","jsxs","React","jsx","jsxs"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onesaz/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Onesaz UI component library - React components with theming and Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"./styles.css": "./dist/styles.css"
|
|
38
38
|
},
|
|
39
|
-
"files": [
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
40
42
|
"scripts": {
|
|
41
43
|
"build": "tsup",
|
|
42
44
|
"dev": "tsup --watch",
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
},
|
|
45
47
|
"dependencies": {
|
|
46
48
|
"@onesaz/tokens": "*",
|
|
49
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
47
50
|
"clsx": "^2.1.1",
|
|
48
51
|
"tailwind-merge": "^2.6.0"
|
|
49
52
|
},
|