@onesaz/ui 0.2.1 → 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 +27 -11
- package/dist/index.js +318 -130
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
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",
|
|
@@ -1000,19 +1170,22 @@ Combobox.displayName = "Combobox";
|
|
|
1000
1170
|
|
|
1001
1171
|
// src/playground.tsx
|
|
1002
1172
|
import * as React17 from "react";
|
|
1003
|
-
import { jsx as jsx17, jsxs as
|
|
1004
|
-
var Section = ({ title, children }) => /* @__PURE__ */
|
|
1173
|
+
import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1174
|
+
var Section = ({ title, children }) => /* @__PURE__ */ jsxs6("div", { className: "mb-8", children: [
|
|
1005
1175
|
/* @__PURE__ */ jsx17("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
|
|
1006
1176
|
/* @__PURE__ */ jsx17("div", { className: "p-4 border border-border rounded-lg bg-background", children })
|
|
1007
1177
|
] });
|
|
1008
1178
|
var ThemeToggle = () => {
|
|
1009
1179
|
const { theme, setTheme } = useTheme();
|
|
1010
|
-
return /* @__PURE__ */
|
|
1180
|
+
return /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1011
1181
|
/* @__PURE__ */ jsx17(Label, { children: "Theme:" }),
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
/* @__PURE__ */ jsx17(
|
|
1014
|
-
/* @__PURE__ */
|
|
1015
|
-
|
|
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
|
+
] })
|
|
1016
1189
|
] })
|
|
1017
1190
|
] });
|
|
1018
1191
|
};
|
|
@@ -1031,13 +1204,13 @@ var PlaygroundContent = () => {
|
|
|
1031
1204
|
{ value: "svelte", label: "Svelte" },
|
|
1032
1205
|
{ value: "solid", label: "SolidJS" }
|
|
1033
1206
|
];
|
|
1034
|
-
return /* @__PURE__ */ jsx17("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
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: [
|
|
1036
1209
|
/* @__PURE__ */ jsx17("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
|
|
1037
1210
|
/* @__PURE__ */ jsx17(ThemeToggle, {})
|
|
1038
1211
|
] }),
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ jsxs6(Section, { title: "Button", children: [
|
|
1213
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4", children: [
|
|
1041
1214
|
/* @__PURE__ */ jsx17(Button, { variant: "default", children: "Default" }),
|
|
1042
1215
|
/* @__PURE__ */ jsx17(Button, { variant: "destructive", children: "Destructive" }),
|
|
1043
1216
|
/* @__PURE__ */ jsx17(Button, { variant: "outline", children: "Outline" }),
|
|
@@ -1045,19 +1218,19 @@ var PlaygroundContent = () => {
|
|
|
1045
1218
|
/* @__PURE__ */ jsx17(Button, { variant: "ghost", children: "Ghost" }),
|
|
1046
1219
|
/* @__PURE__ */ jsx17(Button, { variant: "link", children: "Link" })
|
|
1047
1220
|
] }),
|
|
1048
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
1049
1222
|
/* @__PURE__ */ jsx17(Button, { size: "sm", children: "Small" }),
|
|
1050
1223
|
/* @__PURE__ */ jsx17(Button, { size: "default", children: "Default" }),
|
|
1051
1224
|
/* @__PURE__ */ jsx17(Button, { size: "lg", children: "Large" }),
|
|
1052
1225
|
/* @__PURE__ */ jsx17(Button, { size: "icon", children: "\u{1F514}" })
|
|
1053
1226
|
] }),
|
|
1054
|
-
/* @__PURE__ */
|
|
1227
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
1055
1228
|
/* @__PURE__ */ jsx17(Button, { disabled: true, children: "Disabled" }),
|
|
1056
1229
|
/* @__PURE__ */ jsx17(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
|
|
1057
1230
|
] })
|
|
1058
1231
|
] }),
|
|
1059
|
-
/* @__PURE__ */ jsx17(Section, { title: "Input", children: /* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1232
|
+
/* @__PURE__ */ jsx17(Section, { title: "Input", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4 max-w-md", children: [
|
|
1233
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1061
1234
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "input-default", children: "Default Input" }),
|
|
1062
1235
|
/* @__PURE__ */ jsx17(
|
|
1063
1236
|
Input,
|
|
@@ -1069,17 +1242,17 @@ var PlaygroundContent = () => {
|
|
|
1069
1242
|
}
|
|
1070
1243
|
)
|
|
1071
1244
|
] }),
|
|
1072
|
-
/* @__PURE__ */
|
|
1245
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1073
1246
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
|
|
1074
1247
|
/* @__PURE__ */ jsx17(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
|
|
1075
1248
|
] }),
|
|
1076
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1077
1250
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "input-type", children: "Email Input" }),
|
|
1078
1251
|
/* @__PURE__ */ jsx17(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
|
|
1079
1252
|
] })
|
|
1080
1253
|
] }) }),
|
|
1081
|
-
/* @__PURE__ */ jsx17(Section, { title: "Textarea", children: /* @__PURE__ */
|
|
1082
|
-
/* @__PURE__ */
|
|
1254
|
+
/* @__PURE__ */ jsx17(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4 max-w-md", children: [
|
|
1255
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1083
1256
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
|
|
1084
1257
|
/* @__PURE__ */ jsx17(
|
|
1085
1258
|
Textarea,
|
|
@@ -1091,48 +1264,50 @@ var PlaygroundContent = () => {
|
|
|
1091
1264
|
}
|
|
1092
1265
|
)
|
|
1093
1266
|
] }),
|
|
1094
|
-
/* @__PURE__ */
|
|
1267
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1095
1268
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
|
|
1096
1269
|
/* @__PURE__ */ jsx17(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
|
|
1097
1270
|
] })
|
|
1098
1271
|
] }) }),
|
|
1099
|
-
/* @__PURE__ */ jsx17(Section, { title: "Select", children: /* @__PURE__ */
|
|
1100
|
-
/* @__PURE__ */
|
|
1101
|
-
/* @__PURE__ */ jsx17(Label, {
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
-
|
|
1104
|
-
{
|
|
1105
|
-
|
|
1106
|
-
value:
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
/* @__PURE__ */ jsx17(SelectOption, { value: "option1", children: "Option 1" }),
|
|
1111
|
-
/* @__PURE__ */ jsx17(SelectOption, { value: "option2", children: "Option 2" }),
|
|
1112
|
-
/* @__PURE__ */ jsx17(SelectOption, { value: "option3", children: "Option 3" })
|
|
1113
|
-
]
|
|
1114
|
-
}
|
|
1115
|
-
)
|
|
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
|
+
] })
|
|
1116
1283
|
] }),
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */ jsx17(Label, {
|
|
1119
|
-
/* @__PURE__ */
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
|
|
1122
|
-
/* @__PURE__ */
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
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
|
+
] })
|
|
1127
1299
|
] })
|
|
1128
1300
|
] })
|
|
1129
1301
|
] }),
|
|
1130
|
-
/* @__PURE__ */
|
|
1131
|
-
/* @__PURE__ */ jsx17(Label, {
|
|
1132
|
-
/* @__PURE__ */
|
|
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
|
+
] })
|
|
1133
1308
|
] })
|
|
1134
1309
|
] }) }),
|
|
1135
|
-
/* @__PURE__ */ jsx17(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx17("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */
|
|
1310
|
+
/* @__PURE__ */ jsx17(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx17("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs6("div", { children: [
|
|
1136
1311
|
/* @__PURE__ */ jsx17(Label, { children: "Framework" }),
|
|
1137
1312
|
/* @__PURE__ */ jsx17(
|
|
1138
1313
|
Combobox,
|
|
@@ -1144,8 +1319,8 @@ var PlaygroundContent = () => {
|
|
|
1144
1319
|
}
|
|
1145
1320
|
)
|
|
1146
1321
|
] }) }) }),
|
|
1147
|
-
/* @__PURE__ */ jsx17(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */
|
|
1148
|
-
/* @__PURE__ */
|
|
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: [
|
|
1149
1324
|
/* @__PURE__ */ jsx17(
|
|
1150
1325
|
Checkbox,
|
|
1151
1326
|
{
|
|
@@ -1156,12 +1331,12 @@ var PlaygroundContent = () => {
|
|
|
1156
1331
|
),
|
|
1157
1332
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
|
|
1158
1333
|
] }),
|
|
1159
|
-
/* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1160
1335
|
/* @__PURE__ */ jsx17(Checkbox, { id: "checkbox-disabled", disabled: true }),
|
|
1161
1336
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
|
|
1162
1337
|
] }),
|
|
1163
1338
|
/* @__PURE__ */ jsx17(Separator, {}),
|
|
1164
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1165
1340
|
/* @__PURE__ */ jsx17(
|
|
1166
1341
|
Switch,
|
|
1167
1342
|
{
|
|
@@ -1172,106 +1347,110 @@ var PlaygroundContent = () => {
|
|
|
1172
1347
|
),
|
|
1173
1348
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "switch", children: "Enable notifications" })
|
|
1174
1349
|
] }),
|
|
1175
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1176
1351
|
/* @__PURE__ */ jsx17(Switch, { id: "switch-disabled", disabled: true }),
|
|
1177
1352
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
|
|
1178
1353
|
] })
|
|
1179
1354
|
] }) }),
|
|
1180
|
-
/* @__PURE__ */ jsx17(Section, { title: "Badge", children: /* @__PURE__ */
|
|
1355
|
+
/* @__PURE__ */ jsx17(Section, { title: "Badge", children: /* @__PURE__ */ jsxs6("div", { className: "flex flex-wrap gap-4", children: [
|
|
1181
1356
|
/* @__PURE__ */ jsx17(Badge, { children: "Default" }),
|
|
1182
1357
|
/* @__PURE__ */ jsx17(Badge, { variant: "secondary", children: "Secondary" }),
|
|
1183
1358
|
/* @__PURE__ */ jsx17(Badge, { variant: "destructive", children: "Destructive" }),
|
|
1184
1359
|
/* @__PURE__ */ jsx17(Badge, { variant: "outline", children: "Outline" })
|
|
1185
1360
|
] }) }),
|
|
1186
|
-
/* @__PURE__ */ jsx17(Section, { title: "Card", children: /* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
1188
|
-
/* @__PURE__ */
|
|
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: [
|
|
1189
1364
|
/* @__PURE__ */ jsx17(CardTitle, { children: "Card Title" }),
|
|
1190
1365
|
/* @__PURE__ */ jsx17(CardDescription, { children: "Card description goes here" })
|
|
1191
1366
|
] }),
|
|
1192
1367
|
/* @__PURE__ */ jsx17(CardContent, { children: /* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "This is the card content area." }) }),
|
|
1193
|
-
/* @__PURE__ */
|
|
1368
|
+
/* @__PURE__ */ jsxs6(CardFooter, { children: [
|
|
1194
1369
|
/* @__PURE__ */ jsx17(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
|
|
1195
1370
|
/* @__PURE__ */ jsx17(Button, { children: "Submit" })
|
|
1196
1371
|
] })
|
|
1197
1372
|
] }),
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1373
|
+
/* @__PURE__ */ jsxs6(Card, { children: [
|
|
1374
|
+
/* @__PURE__ */ jsxs6(CardHeader, { children: [
|
|
1200
1375
|
/* @__PURE__ */ jsx17(CardTitle, { children: "Another Card" }),
|
|
1201
1376
|
/* @__PURE__ */ jsx17(CardDescription, { children: "With different content" })
|
|
1202
1377
|
] }),
|
|
1203
|
-
/* @__PURE__ */ jsx17(CardContent, { children: /* @__PURE__ */
|
|
1378
|
+
/* @__PURE__ */ jsx17(CardContent, { children: /* @__PURE__ */ jsxs6("div", { className: "space-y-2", children: [
|
|
1204
1379
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "card-input", children: "Name" }),
|
|
1205
1380
|
/* @__PURE__ */ jsx17(Input, { id: "card-input", placeholder: "Enter name..." })
|
|
1206
1381
|
] }) }),
|
|
1207
1382
|
/* @__PURE__ */ jsx17(CardFooter, { children: /* @__PURE__ */ jsx17(Button, { className: "w-full", children: "Save" }) })
|
|
1208
1383
|
] })
|
|
1209
1384
|
] }) }),
|
|
1210
|
-
/* @__PURE__ */
|
|
1385
|
+
/* @__PURE__ */ jsxs6(Section, { title: "Dialog", children: [
|
|
1211
1386
|
/* @__PURE__ */ jsx17(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
|
|
1212
|
-
/* @__PURE__ */ jsx17(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ jsx17(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs6(DialogContent, { onClose: () => setDialogOpen(false), children: [
|
|
1388
|
+
/* @__PURE__ */ jsxs6(DialogHeader, { children: [
|
|
1214
1389
|
/* @__PURE__ */ jsx17(DialogTitle, { children: "Create New Zone" }),
|
|
1215
1390
|
/* @__PURE__ */ jsx17(DialogDescription, { children: "Fill in the details below to create a new zone." })
|
|
1216
1391
|
] }),
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
/* @__PURE__ */
|
|
1219
|
-
/* @__PURE__ */
|
|
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: [
|
|
1220
1395
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
|
|
1221
1396
|
/* @__PURE__ */ jsx17(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
|
|
1222
1397
|
] }),
|
|
1223
|
-
/* @__PURE__ */
|
|
1398
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1224
1399
|
/* @__PURE__ */ jsx17(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
|
|
1225
1400
|
/* @__PURE__ */ jsx17(Input, { id: "zone-code", placeholder: "eg :hyd022" })
|
|
1226
1401
|
] })
|
|
1227
1402
|
] }),
|
|
1228
|
-
/* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */ jsx17(Label, {
|
|
1231
|
-
/* @__PURE__ */
|
|
1232
|
-
/* @__PURE__ */ jsx17(
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
|
|
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
|
+
] })
|
|
1235
1412
|
] })
|
|
1236
1413
|
] }),
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */ jsx17(Label, {
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */ jsx17(
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
|
|
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
|
+
] })
|
|
1243
1422
|
] })
|
|
1244
1423
|
] })
|
|
1245
1424
|
] })
|
|
1246
1425
|
] }),
|
|
1247
|
-
/* @__PURE__ */
|
|
1426
|
+
/* @__PURE__ */ jsxs6(DialogFooter, { children: [
|
|
1248
1427
|
/* @__PURE__ */ jsx17(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
|
|
1249
1428
|
/* @__PURE__ */ jsx17(Button, { onClick: () => setDialogOpen(false), children: "Create" })
|
|
1250
1429
|
] })
|
|
1251
1430
|
] }) })
|
|
1252
1431
|
] }),
|
|
1253
|
-
/* @__PURE__ */ jsx17(Section, { title: "Table", children: /* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ jsx17(Section, { title: "Table", children: /* @__PURE__ */ jsxs6(TableNamespace, { children: [
|
|
1254
1433
|
/* @__PURE__ */ jsx17(TableCaption, { children: "A list of recent invoices" }),
|
|
1255
|
-
/* @__PURE__ */ jsx17(TableHeader, { children: /* @__PURE__ */
|
|
1434
|
+
/* @__PURE__ */ jsx17(TableHeader, { children: /* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1256
1435
|
/* @__PURE__ */ jsx17(TableHead, { children: "Invoice" }),
|
|
1257
1436
|
/* @__PURE__ */ jsx17(TableHead, { children: "Status" }),
|
|
1258
1437
|
/* @__PURE__ */ jsx17(TableHead, { children: "Method" }),
|
|
1259
1438
|
/* @__PURE__ */ jsx17(TableHead, { className: "text-right", children: "Amount" })
|
|
1260
1439
|
] }) }),
|
|
1261
|
-
/* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ jsxs6(TableBody, { children: [
|
|
1441
|
+
/* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1263
1442
|
/* @__PURE__ */ jsx17(TableCell, { children: "INV001" }),
|
|
1264
1443
|
/* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(Badge, { children: "Paid" }) }),
|
|
1265
1444
|
/* @__PURE__ */ jsx17(TableCell, { children: "Credit Card" }),
|
|
1266
1445
|
/* @__PURE__ */ jsx17(TableCell, { className: "text-right", children: "$250.00" })
|
|
1267
1446
|
] }),
|
|
1268
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1269
1448
|
/* @__PURE__ */ jsx17(TableCell, { children: "INV002" }),
|
|
1270
1449
|
/* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(Badge, { variant: "secondary", children: "Pending" }) }),
|
|
1271
1450
|
/* @__PURE__ */ jsx17(TableCell, { children: "PayPal" }),
|
|
1272
1451
|
/* @__PURE__ */ jsx17(TableCell, { className: "text-right", children: "$150.00" })
|
|
1273
1452
|
] }),
|
|
1274
|
-
/* @__PURE__ */
|
|
1453
|
+
/* @__PURE__ */ jsxs6(TableRow, { children: [
|
|
1275
1454
|
/* @__PURE__ */ jsx17(TableCell, { children: "INV003" }),
|
|
1276
1455
|
/* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(Badge, { variant: "destructive", children: "Failed" }) }),
|
|
1277
1456
|
/* @__PURE__ */ jsx17(TableCell, { children: "Bank Transfer" }),
|
|
@@ -1279,7 +1458,7 @@ var PlaygroundContent = () => {
|
|
|
1279
1458
|
] })
|
|
1280
1459
|
] })
|
|
1281
1460
|
] }) }),
|
|
1282
|
-
/* @__PURE__ */ jsx17(Section, { title: "Pagination", children: /* @__PURE__ */ jsx17(PaginationNamespace, { children: /* @__PURE__ */
|
|
1461
|
+
/* @__PURE__ */ jsx17(Section, { title: "Pagination", children: /* @__PURE__ */ jsx17(PaginationNamespace, { children: /* @__PURE__ */ jsxs6(PaginationContent, { children: [
|
|
1283
1462
|
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
|
|
1284
1463
|
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationLink, { isActive: true, children: "1" }) }),
|
|
1285
1464
|
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationLink, { children: "2" }) }),
|
|
@@ -1287,31 +1466,31 @@ var PlaygroundContent = () => {
|
|
|
1287
1466
|
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationEllipsis, {}) }),
|
|
1288
1467
|
/* @__PURE__ */ jsx17(PaginationItem, { children: /* @__PURE__ */ jsx17(PaginationNext, { onClick: () => console.log("Next") }) })
|
|
1289
1468
|
] }) }) }),
|
|
1290
|
-
/* @__PURE__ */ jsx17(Section, { title: "Spinner", children: /* @__PURE__ */
|
|
1291
|
-
/* @__PURE__ */
|
|
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: [
|
|
1292
1471
|
/* @__PURE__ */ jsx17(Spinner, { size: "sm" }),
|
|
1293
1472
|
/* @__PURE__ */ jsx17("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
|
|
1294
1473
|
] }),
|
|
1295
|
-
/* @__PURE__ */
|
|
1474
|
+
/* @__PURE__ */ jsxs6("div", { className: "text-center", children: [
|
|
1296
1475
|
/* @__PURE__ */ jsx17(Spinner, { size: "default" }),
|
|
1297
1476
|
/* @__PURE__ */ jsx17("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
|
|
1298
1477
|
] }),
|
|
1299
|
-
/* @__PURE__ */
|
|
1478
|
+
/* @__PURE__ */ jsxs6("div", { className: "text-center", children: [
|
|
1300
1479
|
/* @__PURE__ */ jsx17(Spinner, { size: "lg" }),
|
|
1301
1480
|
/* @__PURE__ */ jsx17("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
|
|
1302
1481
|
] })
|
|
1303
1482
|
] }) }),
|
|
1304
|
-
/* @__PURE__ */ jsx17(Section, { title: "Separator", children: /* @__PURE__ */
|
|
1483
|
+
/* @__PURE__ */ jsx17(Section, { title: "Separator", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-4", children: [
|
|
1305
1484
|
/* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "Content above separator" }),
|
|
1306
1485
|
/* @__PURE__ */ jsx17(Separator, {}),
|
|
1307
1486
|
/* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "Content below separator" }),
|
|
1308
|
-
/* @__PURE__ */
|
|
1487
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center h-10", children: [
|
|
1309
1488
|
/* @__PURE__ */ jsx17("span", { className: "text-foreground", children: "Left" }),
|
|
1310
1489
|
/* @__PURE__ */ jsx17(Separator, { orientation: "vertical", className: "mx-4" }),
|
|
1311
1490
|
/* @__PURE__ */ jsx17("span", { className: "text-foreground", children: "Right" })
|
|
1312
1491
|
] })
|
|
1313
1492
|
] }) }),
|
|
1314
|
-
/* @__PURE__ */ jsx17(Section, { title: "Typography & Colors", children: /* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ jsx17(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs6("div", { className: "space-y-2", children: [
|
|
1315
1494
|
/* @__PURE__ */ jsx17("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
|
|
1316
1495
|
/* @__PURE__ */ jsx17("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
|
|
1317
1496
|
/* @__PURE__ */ jsx17("p", { className: "text-accent", children: "text-accent - Accent color" }),
|
|
@@ -1339,6 +1518,8 @@ export {
|
|
|
1339
1518
|
DialogTitle,
|
|
1340
1519
|
Input,
|
|
1341
1520
|
Label,
|
|
1521
|
+
NativeSelect,
|
|
1522
|
+
NativeSelectOption,
|
|
1342
1523
|
PaginationNamespace as Pagination,
|
|
1343
1524
|
PaginationContent,
|
|
1344
1525
|
PaginationEllipsis,
|
|
@@ -1348,8 +1529,15 @@ export {
|
|
|
1348
1529
|
PaginationPrevious,
|
|
1349
1530
|
Playground,
|
|
1350
1531
|
SelectNamespace as Select,
|
|
1532
|
+
SelectContent,
|
|
1351
1533
|
SelectGroup,
|
|
1352
|
-
|
|
1534
|
+
SelectItem,
|
|
1535
|
+
SelectLabel,
|
|
1536
|
+
SelectScrollDownButton,
|
|
1537
|
+
SelectScrollUpButton,
|
|
1538
|
+
SelectSeparator,
|
|
1539
|
+
SelectTrigger,
|
|
1540
|
+
SelectValue,
|
|
1353
1541
|
Separator,
|
|
1354
1542
|
Spinner,
|
|
1355
1543
|
Switch,
|