auxalia-ui-kit 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +135 -120
- package/dist/index.d.cts +22 -11
- package/dist/index.d.ts +22 -11
- package/dist/index.js +234 -61
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -99,7 +99,7 @@ __export(index_exports, {
|
|
|
99
99
|
});
|
|
100
100
|
module.exports = __toCommonJS(index_exports);
|
|
101
101
|
|
|
102
|
-
// src/components/
|
|
102
|
+
// src/components/Button.tsx
|
|
103
103
|
var React = __toESM(require("react"), 1);
|
|
104
104
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
105
105
|
var import_class_variance_authority = require("class-variance-authority");
|
|
@@ -111,7 +111,7 @@ function cn(...inputs) {
|
|
|
111
111
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
// src/components/
|
|
114
|
+
// src/components/Button.tsx
|
|
115
115
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
116
116
|
var compoundVariants = [
|
|
117
117
|
// FILLED - Using Auxalia Brand Colors
|
|
@@ -241,7 +241,7 @@ var Button = React.forwardRef(
|
|
|
241
241
|
);
|
|
242
242
|
Button.displayName = "Button";
|
|
243
243
|
|
|
244
|
-
// src/components/
|
|
244
|
+
// src/components/Collapsible.tsx
|
|
245
245
|
var import_radix_ui = require("radix-ui");
|
|
246
246
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
247
247
|
function CollapsibleRoot({
|
|
@@ -260,10 +260,32 @@ function CollapsibleContent({
|
|
|
260
260
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_radix_ui.Collapsible.Content, { className: "bg-red dark:bg-amber-50", "data-slot": "collapsible-content", ...props });
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
// src/components/
|
|
263
|
+
// src/components/DropdownMenu/index.tsx
|
|
264
264
|
var React2 = __toESM(require("react"), 1);
|
|
265
265
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
266
266
|
var import_lucide_react = require("lucide-react");
|
|
267
|
+
|
|
268
|
+
// src/components/DropdownMenu/dropdown.styles.ts
|
|
269
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
270
|
+
var dropdownMenuItemVariants = (0, import_class_variance_authority2.cva)(
|
|
271
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
272
|
+
{
|
|
273
|
+
variants: {
|
|
274
|
+
variant: {
|
|
275
|
+
default: "focus:bg-black/5 dark:focus:bg-white/6 focus:text-primary",
|
|
276
|
+
primary: "focus:bg-primary/10 dark:focus:bg-primary/15 focus:text-primary",
|
|
277
|
+
secondary: "focus:bg-secondary/10 dark:focus:bg-secondary/15 focus:text-primary",
|
|
278
|
+
accent: "focus:bg-accent/10 dark:focus:bg-accent/15 focus:text-primary",
|
|
279
|
+
destructive: "focus:bg-destructive/10 dark:focus:bg-destructive/15 focus:text-destructive"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
defaultVariants: {
|
|
283
|
+
variant: "default"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
// src/components/DropdownMenu/index.tsx
|
|
267
289
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
268
290
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
269
291
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
@@ -293,7 +315,7 @@ var DropdownMenuSubContent = React2.forwardRef(({ className, ...props }, ref) =>
|
|
|
293
315
|
{
|
|
294
316
|
ref,
|
|
295
317
|
className: cn(
|
|
296
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-
|
|
318
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-black/6 dark:border-white/8 bg-popover p-1.5 text-primary shadow-xl dark:shadow-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
297
319
|
className
|
|
298
320
|
),
|
|
299
321
|
...props
|
|
@@ -306,7 +328,7 @@ var DropdownMenuContent = React2.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
306
328
|
ref,
|
|
307
329
|
sideOffset,
|
|
308
330
|
className: cn(
|
|
309
|
-
"
|
|
331
|
+
"bg-popover z-50 min-w-32 overflow-hidden p-2 text-primary rounded-2xl border border-black/6 dark:border-white/8 transition-colors shadow-xl dark:shadow-black/40",
|
|
310
332
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
311
333
|
className
|
|
312
334
|
),
|
|
@@ -314,25 +336,22 @@ var DropdownMenuContent = React2.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
314
336
|
}
|
|
315
337
|
) }));
|
|
316
338
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
317
|
-
var DropdownMenuItem = React2.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
339
|
+
var DropdownMenuItem = React2.forwardRef(({ className, inset, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
318
340
|
DropdownMenuPrimitive.Item,
|
|
319
341
|
{
|
|
320
342
|
ref,
|
|
321
|
-
className: cn(
|
|
322
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
323
|
-
inset && "pl-8",
|
|
324
|
-
className
|
|
325
|
-
),
|
|
343
|
+
className: cn(dropdownMenuItemVariants({ variant }), inset && "pl-8", className),
|
|
326
344
|
...props
|
|
327
345
|
}
|
|
328
346
|
));
|
|
329
347
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
330
|
-
var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
348
|
+
var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
331
349
|
DropdownMenuPrimitive.CheckboxItem,
|
|
332
350
|
{
|
|
333
351
|
ref,
|
|
334
352
|
className: cn(
|
|
335
|
-
|
|
353
|
+
dropdownMenuItemVariants({ variant }),
|
|
354
|
+
"py-1.5 pl-8 pr-2",
|
|
336
355
|
className
|
|
337
356
|
),
|
|
338
357
|
checked,
|
|
@@ -344,12 +363,13 @@ var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked
|
|
|
344
363
|
}
|
|
345
364
|
));
|
|
346
365
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
347
|
-
var DropdownMenuRadioItem = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
366
|
+
var DropdownMenuRadioItem = React2.forwardRef(({ className, children, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
348
367
|
DropdownMenuPrimitive.RadioItem,
|
|
349
368
|
{
|
|
350
369
|
ref,
|
|
351
370
|
className: cn(
|
|
352
|
-
|
|
371
|
+
dropdownMenuItemVariants({ variant }),
|
|
372
|
+
"py-1.5 pl-8 pr-2",
|
|
353
373
|
className
|
|
354
374
|
),
|
|
355
375
|
...props,
|
|
@@ -398,7 +418,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
398
418
|
|
|
399
419
|
// src/components/Field.tsx
|
|
400
420
|
var import_react = require("react");
|
|
401
|
-
var
|
|
421
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
402
422
|
var import_react_separator = require("@radix-ui/react-separator");
|
|
403
423
|
var import_radix_ui2 = require("radix-ui");
|
|
404
424
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
@@ -449,7 +469,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
449
469
|
}
|
|
450
470
|
);
|
|
451
471
|
}
|
|
452
|
-
var fieldVariants = (0,
|
|
472
|
+
var fieldVariants = (0, import_class_variance_authority3.cva)(
|
|
453
473
|
"group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
454
474
|
{
|
|
455
475
|
variants: {
|
|
@@ -611,7 +631,7 @@ function FieldError({
|
|
|
611
631
|
);
|
|
612
632
|
}
|
|
613
633
|
|
|
614
|
-
// src/components/
|
|
634
|
+
// src/components/Labels.tsx
|
|
615
635
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
616
636
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
617
637
|
function Label3({
|
|
@@ -631,7 +651,7 @@ function Label3({
|
|
|
631
651
|
);
|
|
632
652
|
}
|
|
633
653
|
|
|
634
|
-
// src/components/
|
|
654
|
+
// src/components/Pagination.tsx
|
|
635
655
|
var import_lucide_react2 = require("lucide-react");
|
|
636
656
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
637
657
|
function Pagination({ className, ...props }) {
|
|
@@ -688,7 +708,7 @@ function PaginationPrevious({
|
|
|
688
708
|
{
|
|
689
709
|
"aria-label": "Go to previous page",
|
|
690
710
|
size: "1",
|
|
691
|
-
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
711
|
+
className: cn("flex flex-row items-center gap-1 px-2.5 sm:pl-2.5", className),
|
|
692
712
|
...props,
|
|
693
713
|
children: [
|
|
694
714
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.ChevronLeftIcon, {}),
|
|
@@ -706,7 +726,7 @@ function PaginationNext({
|
|
|
706
726
|
{
|
|
707
727
|
"aria-label": "Go to next page",
|
|
708
728
|
size: "1",
|
|
709
|
-
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
729
|
+
className: cn("flex flex-row items-center gap-1 px-2.5 sm:pr-2.5", className),
|
|
710
730
|
...props,
|
|
711
731
|
children: [
|
|
712
732
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "hidden sm:block", children: "Next" }),
|
|
@@ -734,29 +754,48 @@ function PaginationEllipsis({
|
|
|
734
754
|
);
|
|
735
755
|
}
|
|
736
756
|
|
|
737
|
-
// src/components/
|
|
757
|
+
// src/components/Popover.tsx
|
|
738
758
|
var React3 = __toESM(require("react"), 1);
|
|
739
759
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
740
760
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
741
761
|
var Popover = PopoverPrimitive.Root;
|
|
742
762
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
743
763
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
744
|
-
var PopoverContent = React3.forwardRef(
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
className: cn(
|
|
751
|
-
"z-50 w-72 p-2 text-primary rounded-2xl border border-black/8 glass transition-colors shadow-xl dark:shadow-slate-900/50 outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
752
|
-
className
|
|
753
|
-
),
|
|
764
|
+
var PopoverContent = React3.forwardRef(
|
|
765
|
+
({
|
|
766
|
+
className,
|
|
767
|
+
align = "center",
|
|
768
|
+
sideOffset = 6,
|
|
769
|
+
collisionPadding = 8,
|
|
754
770
|
...props
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
|
|
771
|
+
}, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
772
|
+
PopoverPrimitive.Content,
|
|
773
|
+
{
|
|
774
|
+
ref,
|
|
775
|
+
align,
|
|
776
|
+
sideOffset,
|
|
777
|
+
collisionPadding,
|
|
778
|
+
className: cn(
|
|
779
|
+
// base
|
|
780
|
+
"z-50 w-72 rounded-md border border-black/10 dark:border-white/10 bg-[#f87171] p-4 text-primary shadow-md outline-none",
|
|
781
|
+
// animations
|
|
782
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
783
|
+
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
784
|
+
"data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
|
|
785
|
+
// slide
|
|
786
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
787
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
788
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
789
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
790
|
+
className
|
|
791
|
+
),
|
|
792
|
+
...props
|
|
793
|
+
}
|
|
794
|
+
) })
|
|
795
|
+
);
|
|
796
|
+
PopoverContent.displayName = "PopoverContent";
|
|
758
797
|
|
|
759
|
-
// src/components/
|
|
798
|
+
// src/components/Tooltip.tsx
|
|
760
799
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
761
800
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
762
801
|
function TooltipProvider({
|
|
@@ -807,8 +846,8 @@ function TooltipContent({
|
|
|
807
846
|
}
|
|
808
847
|
|
|
809
848
|
// src/components/Card/card.styles.ts
|
|
810
|
-
var
|
|
811
|
-
var cardVariants = (0,
|
|
849
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
850
|
+
var cardVariants = (0, import_class_variance_authority4.cva)(
|
|
812
851
|
`
|
|
813
852
|
rounded-lg border p-4 transition-all duration-300
|
|
814
853
|
`,
|
|
@@ -836,8 +875,8 @@ function Card({ variant, className, ...props }) {
|
|
|
836
875
|
}
|
|
837
876
|
|
|
838
877
|
// src/components/Input/input.styles.ts
|
|
839
|
-
var
|
|
840
|
-
var inputVariants = (0,
|
|
878
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
879
|
+
var inputVariants = (0, import_class_variance_authority5.cva)(
|
|
841
880
|
`
|
|
842
881
|
w-full rounded-md border transition-colors
|
|
843
882
|
bg-white dark:bg-white/5
|
|
@@ -5982,8 +6021,8 @@ var Separator3 = SelectSeparator;
|
|
|
5982
6021
|
var import_lucide_react3 = require("lucide-react");
|
|
5983
6022
|
|
|
5984
6023
|
// src/components/Select/select.styles.ts
|
|
5985
|
-
var
|
|
5986
|
-
var selectTriggerVariants = (0,
|
|
6024
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
6025
|
+
var selectTriggerVariants = (0, import_class_variance_authority6.cva)(
|
|
5987
6026
|
`
|
|
5988
6027
|
flex w-full items-center justify-between gap-2 rounded-md border transition-colors
|
|
5989
6028
|
bg-white dark:bg-white/5
|
|
@@ -6002,6 +6041,30 @@ var selectTriggerVariants = (0, import_class_variance_authority5.cva)(
|
|
|
6002
6041
|
focus:border-black/20 dark:focus:border-white/20
|
|
6003
6042
|
focus:ring-black/10 dark:focus:ring-white/10
|
|
6004
6043
|
`,
|
|
6044
|
+
primary: `
|
|
6045
|
+
border-primary/30 dark:border-primary/25
|
|
6046
|
+
hover:border-primary/50 dark:hover:border-primary/40
|
|
6047
|
+
focus:border-primary/50 dark:focus:border-primary/40
|
|
6048
|
+
focus:ring-primary/20 dark:focus:ring-primary/15
|
|
6049
|
+
`,
|
|
6050
|
+
secondary: `
|
|
6051
|
+
border-secondary/30 dark:border-secondary/25
|
|
6052
|
+
hover:border-secondary/50 dark:hover:border-secondary/40
|
|
6053
|
+
focus:border-secondary/50 dark:focus:border-secondary/40
|
|
6054
|
+
focus:ring-secondary/20 dark:focus:ring-secondary/15
|
|
6055
|
+
`,
|
|
6056
|
+
accent: `
|
|
6057
|
+
border-accent/30 dark:border-accent/25
|
|
6058
|
+
hover:border-accent/50 dark:hover:border-accent/40
|
|
6059
|
+
focus:border-accent/50 dark:focus:border-accent/40
|
|
6060
|
+
focus:ring-accent/20 dark:focus:ring-accent/15
|
|
6061
|
+
`,
|
|
6062
|
+
destructive: `
|
|
6063
|
+
border-destructive/40 dark:border-destructive/35
|
|
6064
|
+
hover:border-destructive/60 dark:hover:border-destructive/50
|
|
6065
|
+
focus:border-destructive/60 dark:focus:border-destructive/50
|
|
6066
|
+
focus:ring-destructive/20 dark:focus:ring-destructive/15
|
|
6067
|
+
`,
|
|
6005
6068
|
error: `
|
|
6006
6069
|
border-red-500 dark:border-red-400
|
|
6007
6070
|
focus:border-red-600 dark:focus:border-red-500
|
|
@@ -6020,6 +6083,23 @@ var selectTriggerVariants = (0, import_class_variance_authority5.cva)(
|
|
|
6020
6083
|
}
|
|
6021
6084
|
}
|
|
6022
6085
|
);
|
|
6086
|
+
var selectItemVariants = (0, import_class_variance_authority6.cva)(
|
|
6087
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6088
|
+
{
|
|
6089
|
+
variants: {
|
|
6090
|
+
variant: {
|
|
6091
|
+
default: "focus:bg-black/5 dark:focus:bg-white/6 focus:text-primary",
|
|
6092
|
+
primary: "focus:bg-primary/10 dark:focus:bg-primary/15 focus:text-primary",
|
|
6093
|
+
secondary: "focus:bg-secondary/10 dark:focus:bg-secondary/15 focus:text-primary",
|
|
6094
|
+
accent: "focus:bg-accent/10 dark:focus:bg-accent/15 focus:text-primary",
|
|
6095
|
+
destructive: "focus:bg-destructive/10 dark:focus:bg-destructive/15 focus:text-destructive"
|
|
6096
|
+
}
|
|
6097
|
+
},
|
|
6098
|
+
defaultVariants: {
|
|
6099
|
+
variant: "default"
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
);
|
|
6023
6103
|
|
|
6024
6104
|
// src/components/Select/index.tsx
|
|
6025
6105
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
@@ -6064,7 +6144,7 @@ var SelectContent2 = React34.forwardRef(({ className, children, position = "popp
|
|
|
6064
6144
|
{
|
|
6065
6145
|
ref,
|
|
6066
6146
|
className: cn(
|
|
6067
|
-
"bg-
|
|
6147
|
+
"bg-popover z-50 min-w-32 overflow-hidden rounded-2xl border border-black/6 dark:border-white/8 p-2 text-primary shadow-xl dark:shadow-black/40",
|
|
6068
6148
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6069
6149
|
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",
|
|
6070
6150
|
className
|
|
@@ -6096,16 +6176,11 @@ var SelectLabel2 = React34.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
6096
6176
|
}
|
|
6097
6177
|
));
|
|
6098
6178
|
SelectLabel2.displayName = Label4.displayName;
|
|
6099
|
-
var SelectItem2 = React34.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
6179
|
+
var SelectItem2 = React34.forwardRef(({ className, children, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
6100
6180
|
Item2,
|
|
6101
6181
|
{
|
|
6102
6182
|
ref,
|
|
6103
|
-
className: cn(
|
|
6104
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
6105
|
-
"focus:bg-primary focus:text-primary",
|
|
6106
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6107
|
-
className
|
|
6108
|
-
),
|
|
6183
|
+
className: cn(selectItemVariants({ variant }), className),
|
|
6109
6184
|
...props,
|
|
6110
6185
|
children: [
|
|
6111
6186
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ItemIndicator2, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react3.Check, { className: "size-4" }) }) }),
|
|
@@ -6128,14 +6203,14 @@ SelectSeparator2.displayName = Separator3.displayName;
|
|
|
6128
6203
|
var import_react6 = require("react");
|
|
6129
6204
|
|
|
6130
6205
|
// src/components/Tabs/tabs.styles.ts
|
|
6131
|
-
var
|
|
6132
|
-
var tabsVariants = (0,
|
|
6206
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
6207
|
+
var tabsVariants = (0, import_class_variance_authority7.cva)(
|
|
6133
6208
|
`
|
|
6134
6209
|
inline-flex items-center gap-1 rounded-lg p-1
|
|
6135
6210
|
border border-black/8 bg-white/50 dark:border-white/10 dark:bg-white/5
|
|
6136
6211
|
`
|
|
6137
6212
|
);
|
|
6138
|
-
var tabVariants = (0,
|
|
6213
|
+
var tabVariants = (0, import_class_variance_authority7.cva)(
|
|
6139
6214
|
`
|
|
6140
6215
|
inline-flex items-center justify-center px-4 py-2 text-sm font-medium
|
|
6141
6216
|
rounded-md transition-colors duration-200
|
|
@@ -6188,8 +6263,8 @@ function TabsContent({ value, children, className }) {
|
|
|
6188
6263
|
}
|
|
6189
6264
|
|
|
6190
6265
|
// src/components/Text/text.styles.ts
|
|
6191
|
-
var
|
|
6192
|
-
var textVariants = (0,
|
|
6266
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
6267
|
+
var textVariants = (0, import_class_variance_authority8.cva)(`text-primary`, {
|
|
6193
6268
|
variants: {
|
|
6194
6269
|
size: {
|
|
6195
6270
|
sm: "text-sm",
|
|
@@ -6550,7 +6625,7 @@ var ControlledPagination = ({
|
|
|
6550
6625
|
)
|
|
6551
6626
|
] }),
|
|
6552
6627
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-4 text-sm", children: [
|
|
6553
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("
|
|
6628
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "w-full", children: countLabel(startItem, endItem, totalCount) }),
|
|
6554
6629
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Pagination, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(PaginationContent, { children: [
|
|
6555
6630
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
6556
6631
|
PaginationPrevious,
|
|
@@ -6965,8 +7040,9 @@ var preset = {
|
|
|
6965
7040
|
},
|
|
6966
7041
|
backgroundColor: {
|
|
6967
7042
|
hero: "var(--color-bg-hero)",
|
|
6968
|
-
card: "var(--
|
|
6969
|
-
cardHover: "var(--
|
|
7043
|
+
card: "var(--card)",
|
|
7044
|
+
cardHover: "var(--card-hover)",
|
|
7045
|
+
popover: "var(--popover)"
|
|
6970
7046
|
},
|
|
6971
7047
|
backgroundImage: {
|
|
6972
7048
|
"gradient-radial-green": "radial-gradient(circle at 20% 20%, rgba(167, 213, 0, 0.15), transparent 35%)",
|
|
@@ -6976,67 +7052,6 @@ var preset = {
|
|
|
6976
7052
|
}
|
|
6977
7053
|
}
|
|
6978
7054
|
};
|
|
6979
|
-
preset.safelist = [
|
|
6980
|
-
// ─── Button: filled (default) ──────────────────────────────────────────────
|
|
6981
|
-
"bg-primary",
|
|
6982
|
-
"bg-secondary",
|
|
6983
|
-
"bg-accent",
|
|
6984
|
-
"bg-destructive",
|
|
6985
|
-
"text-primary-foreground",
|
|
6986
|
-
"text-secondary-foreground",
|
|
6987
|
-
"text-accent-foreground",
|
|
6988
|
-
"text-destructive-foreground",
|
|
6989
|
-
"hover:bg-primary-hover",
|
|
6990
|
-
"hover:bg-secondary-hover",
|
|
6991
|
-
"hover:bg-destructive-hover",
|
|
6992
|
-
"shadow-sm",
|
|
6993
|
-
// ─── Button: outline ───────────────────────────────────────────────────────
|
|
6994
|
-
"border-2",
|
|
6995
|
-
"border-primary",
|
|
6996
|
-
"border-secondary",
|
|
6997
|
-
"border-accent",
|
|
6998
|
-
"border-destructive",
|
|
6999
|
-
"text-primary",
|
|
7000
|
-
"text-secondary",
|
|
7001
|
-
"text-accent",
|
|
7002
|
-
"text-destructive",
|
|
7003
|
-
"hover:bg-primary",
|
|
7004
|
-
"hover:bg-secondary",
|
|
7005
|
-
"hover:bg-accent",
|
|
7006
|
-
"hover:bg-destructive",
|
|
7007
|
-
"hover:text-primary-foreground",
|
|
7008
|
-
"hover:text-secondary-foreground",
|
|
7009
|
-
"hover:text-accent-foreground",
|
|
7010
|
-
"hover:text-destructive-foreground",
|
|
7011
|
-
"dark:border-primary",
|
|
7012
|
-
"dark:text-primary",
|
|
7013
|
-
// ─── Button: ghost ─────────────────────────────────────────────────────────
|
|
7014
|
-
"hover:bg-primary/10",
|
|
7015
|
-
"dark:hover:bg-primary/20",
|
|
7016
|
-
"hover:bg-secondary/10",
|
|
7017
|
-
"hover:bg-accent/10",
|
|
7018
|
-
"hover:bg-destructive/10",
|
|
7019
|
-
// ─── Button: link ──────────────────────────────────────────────────────────
|
|
7020
|
-
"underline",
|
|
7021
|
-
"hover:text-primary-hover",
|
|
7022
|
-
"hover:text-secondary-hover",
|
|
7023
|
-
// ─── Card: border opacity ──────────────────────────────────────────────────
|
|
7024
|
-
"border-primary/10",
|
|
7025
|
-
"border-primary/20",
|
|
7026
|
-
"border-primary/30",
|
|
7027
|
-
"border-primary/40",
|
|
7028
|
-
"border-primary/50",
|
|
7029
|
-
"hover:border-primary/20",
|
|
7030
|
-
"hover:border-primary/50",
|
|
7031
|
-
"dark:border-primary/20",
|
|
7032
|
-
"dark:border-primary/40",
|
|
7033
|
-
"border-accent/10",
|
|
7034
|
-
// ─── Card: background opacity ──────────────────────────────────────────────
|
|
7035
|
-
"bg-primary/10",
|
|
7036
|
-
"bg-primary/20",
|
|
7037
|
-
"hover:shadow-md",
|
|
7038
|
-
"hover:shadow-xl"
|
|
7039
|
-
];
|
|
7040
7055
|
var tailwind_preset_default = preset;
|
|
7041
7056
|
|
|
7042
7057
|
// src/lib/tokens.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -10,9 +10,8 @@ import { Button as Button$1 } from '@radix-ui/themes';
|
|
|
10
10
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
11
11
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
12
12
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
13
|
-
|
|
13
|
+
import { Config } from 'tailwindcss';
|
|
14
14
|
import { ClassValue } from 'clsx';
|
|
15
|
-
import 'tailwindcss';
|
|
16
15
|
|
|
17
16
|
declare const buttonVariants: (props?: {
|
|
18
17
|
variant?: "default" | "outline" | "ghost" | "link";
|
|
@@ -29,6 +28,11 @@ declare function CollapsibleRoot({ ...props }: React.ComponentProps<typeof Colla
|
|
|
29
28
|
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible.Trigger>): react_jsx_runtime.JSX.Element;
|
|
30
29
|
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof Collapsible.Content>): react_jsx_runtime.JSX.Element;
|
|
31
30
|
|
|
31
|
+
declare const dropdownMenuItemVariants: (props?: {
|
|
32
|
+
variant?: "default" | "primary" | "secondary" | "accent" | "destructive";
|
|
33
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
34
|
+
type DropdownMenuItemVariantProps = VariantProps<typeof dropdownMenuItemVariants>;
|
|
35
|
+
|
|
32
36
|
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
33
37
|
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
34
38
|
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -40,11 +44,11 @@ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<Dropd
|
|
|
40
44
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
41
45
|
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
46
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
47
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemVariantProps & {
|
|
44
48
|
inset?: boolean;
|
|
45
49
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
52
|
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
49
53
|
inset?: boolean;
|
|
50
54
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -115,10 +119,15 @@ type InputVariantProps = {
|
|
|
115
119
|
type InputProps = Omit<React.ComponentProps<'input'>, 'size'> & InputVariantProps;
|
|
116
120
|
declare function Input({ size, variant, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
117
121
|
|
|
118
|
-
|
|
119
|
-
variant?:
|
|
120
|
-
size?:
|
|
121
|
-
};
|
|
122
|
+
declare const selectTriggerVariants: (props?: {
|
|
123
|
+
variant?: "default" | "primary" | "secondary" | "accent" | "destructive" | "error";
|
|
124
|
+
size?: "sm" | "lg" | "md";
|
|
125
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
126
|
+
declare const selectItemVariants: (props?: {
|
|
127
|
+
variant?: "default" | "primary" | "secondary" | "accent" | "destructive";
|
|
128
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
129
|
+
type SelectTriggerVariantProps = VariantProps<typeof selectTriggerVariants>;
|
|
130
|
+
type SelectItemVariantProps = VariantProps<typeof selectItemVariants>;
|
|
122
131
|
|
|
123
132
|
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
124
133
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -128,7 +137,7 @@ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectP
|
|
|
128
137
|
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
138
|
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
130
139
|
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
131
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
140
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectItemVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
132
141
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
133
142
|
|
|
134
143
|
type TabsProps = {
|
|
@@ -271,6 +280,8 @@ interface CustomComponentType {
|
|
|
271
280
|
|
|
272
281
|
declare const ControlledTable: ({ tableSource, tableConfig, filteredParams, isSelectable, selectedRows, rowUniqueKey, emptyMessage, withOpenAction, withEditAction, withDownloadAction, withCloneAction, withRemoveAction, withPagination, loading, toolbarActions, openPath, handleClickIcon, handleOpenAction, handleEditAction, handleDownloadAction, handleRemoveAction, setSelectedRows, setFilteredParams, onSearchCallback, onFilterCallback, onRowClick, getDataOnChange, }: CommonTableProps) => react_jsx_runtime.JSX.Element;
|
|
273
282
|
|
|
283
|
+
declare const preset: Config;
|
|
284
|
+
|
|
274
285
|
/**
|
|
275
286
|
* Auxalia Design System - Color Tokens
|
|
276
287
|
*
|
|
@@ -362,4 +373,4 @@ declare const AuxaliaTokens: {
|
|
|
362
373
|
|
|
363
374
|
declare function cn(...inputs: ClassValue[]): string;
|
|
364
375
|
|
|
365
|
-
export { AuxaliaTokens, Button, type ButtonProps, Card, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, type CommonTableProps, type CustomComponentType, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOption, FieldSeparator, FieldSet, FieldTitle, type FilterField, Input, Label, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type QueryParams, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SortObj, type TableConfig, type TableField, ControlledTable as TableView, Tabs, TabsContent, TabsList, TabsTrigger, Text, type ToolbarActionsProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cn };
|
|
376
|
+
export { AuxaliaTokens, Button, type ButtonProps, Card, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, type CommonTableProps, type CustomComponentType, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOption, FieldSeparator, FieldSet, FieldTitle, type FilterField, Input, Label, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type QueryParams, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SortObj, type TableConfig, type TableField, ControlledTable as TableView, Tabs, TabsContent, TabsList, TabsTrigger, Text, type ToolbarActionsProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cn, preset as tailwindPreset };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,9 +10,8 @@ import { Button as Button$1 } from '@radix-ui/themes';
|
|
|
10
10
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
11
11
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
12
12
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
13
|
-
|
|
13
|
+
import { Config } from 'tailwindcss';
|
|
14
14
|
import { ClassValue } from 'clsx';
|
|
15
|
-
import 'tailwindcss';
|
|
16
15
|
|
|
17
16
|
declare const buttonVariants: (props?: {
|
|
18
17
|
variant?: "default" | "outline" | "ghost" | "link";
|
|
@@ -29,6 +28,11 @@ declare function CollapsibleRoot({ ...props }: React.ComponentProps<typeof Colla
|
|
|
29
28
|
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible.Trigger>): react_jsx_runtime.JSX.Element;
|
|
30
29
|
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof Collapsible.Content>): react_jsx_runtime.JSX.Element;
|
|
31
30
|
|
|
31
|
+
declare const dropdownMenuItemVariants: (props?: {
|
|
32
|
+
variant?: "default" | "primary" | "secondary" | "accent" | "destructive";
|
|
33
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
34
|
+
type DropdownMenuItemVariantProps = VariantProps<typeof dropdownMenuItemVariants>;
|
|
35
|
+
|
|
32
36
|
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
33
37
|
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
34
38
|
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -40,11 +44,11 @@ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<Dropd
|
|
|
40
44
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
41
45
|
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
46
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
47
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemVariantProps & {
|
|
44
48
|
inset?: boolean;
|
|
45
49
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & DropdownMenuItemVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
52
|
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
49
53
|
inset?: boolean;
|
|
50
54
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -115,10 +119,15 @@ type InputVariantProps = {
|
|
|
115
119
|
type InputProps = Omit<React.ComponentProps<'input'>, 'size'> & InputVariantProps;
|
|
116
120
|
declare function Input({ size, variant, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
117
121
|
|
|
118
|
-
|
|
119
|
-
variant?:
|
|
120
|
-
size?:
|
|
121
|
-
};
|
|
122
|
+
declare const selectTriggerVariants: (props?: {
|
|
123
|
+
variant?: "default" | "primary" | "secondary" | "accent" | "destructive" | "error";
|
|
124
|
+
size?: "sm" | "lg" | "md";
|
|
125
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
126
|
+
declare const selectItemVariants: (props?: {
|
|
127
|
+
variant?: "default" | "primary" | "secondary" | "accent" | "destructive";
|
|
128
|
+
} & class_variance_authority_types.ClassProp) => string;
|
|
129
|
+
type SelectTriggerVariantProps = VariantProps<typeof selectTriggerVariants>;
|
|
130
|
+
type SelectItemVariantProps = VariantProps<typeof selectItemVariants>;
|
|
122
131
|
|
|
123
132
|
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
124
133
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -128,7 +137,7 @@ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectP
|
|
|
128
137
|
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
138
|
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
130
139
|
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
131
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
140
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectItemVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
132
141
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
133
142
|
|
|
134
143
|
type TabsProps = {
|
|
@@ -271,6 +280,8 @@ interface CustomComponentType {
|
|
|
271
280
|
|
|
272
281
|
declare const ControlledTable: ({ tableSource, tableConfig, filteredParams, isSelectable, selectedRows, rowUniqueKey, emptyMessage, withOpenAction, withEditAction, withDownloadAction, withCloneAction, withRemoveAction, withPagination, loading, toolbarActions, openPath, handleClickIcon, handleOpenAction, handleEditAction, handleDownloadAction, handleRemoveAction, setSelectedRows, setFilteredParams, onSearchCallback, onFilterCallback, onRowClick, getDataOnChange, }: CommonTableProps) => react_jsx_runtime.JSX.Element;
|
|
273
282
|
|
|
283
|
+
declare const preset: Config;
|
|
284
|
+
|
|
274
285
|
/**
|
|
275
286
|
* Auxalia Design System - Color Tokens
|
|
276
287
|
*
|
|
@@ -362,4 +373,4 @@ declare const AuxaliaTokens: {
|
|
|
362
373
|
|
|
363
374
|
declare function cn(...inputs: ClassValue[]): string;
|
|
364
375
|
|
|
365
|
-
export { AuxaliaTokens, Button, type ButtonProps, Card, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, type CommonTableProps, type CustomComponentType, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOption, FieldSeparator, FieldSet, FieldTitle, type FilterField, Input, Label, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type QueryParams, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SortObj, type TableConfig, type TableField, ControlledTable as TableView, Tabs, TabsContent, TabsList, TabsTrigger, Text, type ToolbarActionsProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cn };
|
|
376
|
+
export { AuxaliaTokens, Button, type ButtonProps, Card, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, type CommonTableProps, type CustomComponentType, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOption, FieldSeparator, FieldSet, FieldTitle, type FilterField, Input, Label, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type QueryParams, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SortObj, type TableConfig, type TableField, ControlledTable as TableView, Tabs, TabsContent, TabsList, TabsTrigger, Text, type ToolbarActionsProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cn, preset as tailwindPreset };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
tailwind_preset_default
|
|
3
|
-
} from "./chunk-O6RHMFJG.js";
|
|
4
|
-
|
|
5
|
-
// src/components/button.tsx
|
|
1
|
+
// src/components/Button.tsx
|
|
6
2
|
import * as React from "react";
|
|
7
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
8
4
|
import { cva } from "class-variance-authority";
|
|
@@ -14,7 +10,7 @@ function cn(...inputs) {
|
|
|
14
10
|
return twMerge(clsx(inputs));
|
|
15
11
|
}
|
|
16
12
|
|
|
17
|
-
// src/components/
|
|
13
|
+
// src/components/Button.tsx
|
|
18
14
|
import { jsx } from "react/jsx-runtime";
|
|
19
15
|
var compoundVariants = [
|
|
20
16
|
// FILLED - Using Auxalia Brand Colors
|
|
@@ -144,7 +140,7 @@ var Button = React.forwardRef(
|
|
|
144
140
|
);
|
|
145
141
|
Button.displayName = "Button";
|
|
146
142
|
|
|
147
|
-
// src/components/
|
|
143
|
+
// src/components/Collapsible.tsx
|
|
148
144
|
import { Collapsible } from "radix-ui";
|
|
149
145
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
150
146
|
function CollapsibleRoot({
|
|
@@ -163,10 +159,32 @@ function CollapsibleContent({
|
|
|
163
159
|
return /* @__PURE__ */ jsx2(Collapsible.Content, { className: "bg-red dark:bg-amber-50", "data-slot": "collapsible-content", ...props });
|
|
164
160
|
}
|
|
165
161
|
|
|
166
|
-
// src/components/
|
|
162
|
+
// src/components/DropdownMenu/index.tsx
|
|
167
163
|
import * as React2 from "react";
|
|
168
164
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
169
165
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
166
|
+
|
|
167
|
+
// src/components/DropdownMenu/dropdown.styles.ts
|
|
168
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
169
|
+
var dropdownMenuItemVariants = cva2(
|
|
170
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
171
|
+
{
|
|
172
|
+
variants: {
|
|
173
|
+
variant: {
|
|
174
|
+
default: "focus:bg-black/5 dark:focus:bg-white/6 focus:text-primary",
|
|
175
|
+
primary: "focus:bg-primary/10 dark:focus:bg-primary/15 focus:text-primary",
|
|
176
|
+
secondary: "focus:bg-secondary/10 dark:focus:bg-secondary/15 focus:text-primary",
|
|
177
|
+
accent: "focus:bg-accent/10 dark:focus:bg-accent/15 focus:text-primary",
|
|
178
|
+
destructive: "focus:bg-destructive/10 dark:focus:bg-destructive/15 focus:text-destructive"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
defaultVariants: {
|
|
182
|
+
variant: "default"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
// src/components/DropdownMenu/index.tsx
|
|
170
188
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
171
189
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
172
190
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
@@ -196,7 +214,7 @@ var DropdownMenuSubContent = React2.forwardRef(({ className, ...props }, ref) =>
|
|
|
196
214
|
{
|
|
197
215
|
ref,
|
|
198
216
|
className: cn(
|
|
199
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-
|
|
217
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-black/6 dark:border-white/8 bg-popover p-1.5 text-primary shadow-xl dark:shadow-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
200
218
|
className
|
|
201
219
|
),
|
|
202
220
|
...props
|
|
@@ -209,7 +227,7 @@ var DropdownMenuContent = React2.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
209
227
|
ref,
|
|
210
228
|
sideOffset,
|
|
211
229
|
className: cn(
|
|
212
|
-
"
|
|
230
|
+
"bg-popover z-50 min-w-32 overflow-hidden p-2 text-primary rounded-2xl border border-black/6 dark:border-white/8 transition-colors shadow-xl dark:shadow-black/40",
|
|
213
231
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
214
232
|
className
|
|
215
233
|
),
|
|
@@ -217,25 +235,22 @@ var DropdownMenuContent = React2.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
217
235
|
}
|
|
218
236
|
) }));
|
|
219
237
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
220
|
-
var DropdownMenuItem = React2.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
238
|
+
var DropdownMenuItem = React2.forwardRef(({ className, inset, variant, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
221
239
|
DropdownMenuPrimitive.Item,
|
|
222
240
|
{
|
|
223
241
|
ref,
|
|
224
|
-
className: cn(
|
|
225
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
226
|
-
inset && "pl-8",
|
|
227
|
-
className
|
|
228
|
-
),
|
|
242
|
+
className: cn(dropdownMenuItemVariants({ variant }), inset && "pl-8", className),
|
|
229
243
|
...props
|
|
230
244
|
}
|
|
231
245
|
));
|
|
232
246
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
233
|
-
var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
247
|
+
var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked, variant, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
234
248
|
DropdownMenuPrimitive.CheckboxItem,
|
|
235
249
|
{
|
|
236
250
|
ref,
|
|
237
251
|
className: cn(
|
|
238
|
-
|
|
252
|
+
dropdownMenuItemVariants({ variant }),
|
|
253
|
+
"py-1.5 pl-8 pr-2",
|
|
239
254
|
className
|
|
240
255
|
),
|
|
241
256
|
checked,
|
|
@@ -247,12 +262,13 @@ var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked
|
|
|
247
262
|
}
|
|
248
263
|
));
|
|
249
264
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
250
|
-
var DropdownMenuRadioItem = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
265
|
+
var DropdownMenuRadioItem = React2.forwardRef(({ className, children, variant, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
251
266
|
DropdownMenuPrimitive.RadioItem,
|
|
252
267
|
{
|
|
253
268
|
ref,
|
|
254
269
|
className: cn(
|
|
255
|
-
|
|
270
|
+
dropdownMenuItemVariants({ variant }),
|
|
271
|
+
"py-1.5 pl-8 pr-2",
|
|
256
272
|
className
|
|
257
273
|
),
|
|
258
274
|
...props,
|
|
@@ -301,7 +317,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
301
317
|
|
|
302
318
|
// src/components/Field.tsx
|
|
303
319
|
import { useMemo } from "react";
|
|
304
|
-
import { cva as
|
|
320
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
305
321
|
import { Separator as Separator2 } from "@radix-ui/react-separator";
|
|
306
322
|
import { Label as Label2 } from "radix-ui";
|
|
307
323
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -352,7 +368,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
352
368
|
}
|
|
353
369
|
);
|
|
354
370
|
}
|
|
355
|
-
var fieldVariants =
|
|
371
|
+
var fieldVariants = cva3(
|
|
356
372
|
"group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
357
373
|
{
|
|
358
374
|
variants: {
|
|
@@ -514,7 +530,7 @@ function FieldError({
|
|
|
514
530
|
);
|
|
515
531
|
}
|
|
516
532
|
|
|
517
|
-
// src/components/
|
|
533
|
+
// src/components/Labels.tsx
|
|
518
534
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
519
535
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
520
536
|
function Label3({
|
|
@@ -534,7 +550,7 @@ function Label3({
|
|
|
534
550
|
);
|
|
535
551
|
}
|
|
536
552
|
|
|
537
|
-
// src/components/
|
|
553
|
+
// src/components/Pagination.tsx
|
|
538
554
|
import {
|
|
539
555
|
ChevronLeftIcon,
|
|
540
556
|
ChevronRightIcon,
|
|
@@ -595,7 +611,7 @@ function PaginationPrevious({
|
|
|
595
611
|
{
|
|
596
612
|
"aria-label": "Go to previous page",
|
|
597
613
|
size: "1",
|
|
598
|
-
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
614
|
+
className: cn("flex flex-row items-center gap-1 px-2.5 sm:pl-2.5", className),
|
|
599
615
|
...props,
|
|
600
616
|
children: [
|
|
601
617
|
/* @__PURE__ */ jsx6(ChevronLeftIcon, {}),
|
|
@@ -613,7 +629,7 @@ function PaginationNext({
|
|
|
613
629
|
{
|
|
614
630
|
"aria-label": "Go to next page",
|
|
615
631
|
size: "1",
|
|
616
|
-
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
632
|
+
className: cn("flex flex-row items-center gap-1 px-2.5 sm:pr-2.5", className),
|
|
617
633
|
...props,
|
|
618
634
|
children: [
|
|
619
635
|
/* @__PURE__ */ jsx6("span", { className: "hidden sm:block", children: "Next" }),
|
|
@@ -641,29 +657,48 @@ function PaginationEllipsis({
|
|
|
641
657
|
);
|
|
642
658
|
}
|
|
643
659
|
|
|
644
|
-
// src/components/
|
|
660
|
+
// src/components/Popover.tsx
|
|
645
661
|
import * as React3 from "react";
|
|
646
662
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
647
663
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
648
664
|
var Popover = PopoverPrimitive.Root;
|
|
649
665
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
650
666
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
651
|
-
var PopoverContent = React3.forwardRef(
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
className: cn(
|
|
658
|
-
"z-50 w-72 p-2 text-primary rounded-2xl border border-black/8 glass transition-colors shadow-xl dark:shadow-slate-900/50 outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
659
|
-
className
|
|
660
|
-
),
|
|
667
|
+
var PopoverContent = React3.forwardRef(
|
|
668
|
+
({
|
|
669
|
+
className,
|
|
670
|
+
align = "center",
|
|
671
|
+
sideOffset = 6,
|
|
672
|
+
collisionPadding = 8,
|
|
661
673
|
...props
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
|
|
674
|
+
}, ref) => /* @__PURE__ */ jsx7(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx7(
|
|
675
|
+
PopoverPrimitive.Content,
|
|
676
|
+
{
|
|
677
|
+
ref,
|
|
678
|
+
align,
|
|
679
|
+
sideOffset,
|
|
680
|
+
collisionPadding,
|
|
681
|
+
className: cn(
|
|
682
|
+
// base
|
|
683
|
+
"z-50 w-72 rounded-md border border-black/10 dark:border-white/10 bg-[#f87171] p-4 text-primary shadow-md outline-none",
|
|
684
|
+
// animations
|
|
685
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
686
|
+
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
687
|
+
"data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
|
|
688
|
+
// slide
|
|
689
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
690
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
691
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
692
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
693
|
+
className
|
|
694
|
+
),
|
|
695
|
+
...props
|
|
696
|
+
}
|
|
697
|
+
) })
|
|
698
|
+
);
|
|
699
|
+
PopoverContent.displayName = "PopoverContent";
|
|
665
700
|
|
|
666
|
-
// src/components/
|
|
701
|
+
// src/components/Tooltip.tsx
|
|
667
702
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
668
703
|
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
669
704
|
function TooltipProvider({
|
|
@@ -714,8 +749,8 @@ function TooltipContent({
|
|
|
714
749
|
}
|
|
715
750
|
|
|
716
751
|
// src/components/Card/card.styles.ts
|
|
717
|
-
import { cva as
|
|
718
|
-
var cardVariants =
|
|
752
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
753
|
+
var cardVariants = cva4(
|
|
719
754
|
`
|
|
720
755
|
rounded-lg border p-4 transition-all duration-300
|
|
721
756
|
`,
|
|
@@ -743,8 +778,8 @@ function Card({ variant, className, ...props }) {
|
|
|
743
778
|
}
|
|
744
779
|
|
|
745
780
|
// src/components/Input/input.styles.ts
|
|
746
|
-
import { cva as
|
|
747
|
-
var inputVariants =
|
|
781
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
782
|
+
var inputVariants = cva5(
|
|
748
783
|
`
|
|
749
784
|
w-full rounded-md border transition-colors
|
|
750
785
|
bg-white dark:bg-white/5
|
|
@@ -5889,8 +5924,8 @@ var Separator3 = SelectSeparator;
|
|
|
5889
5924
|
import { Check as Check2, ChevronDown, ChevronUp } from "lucide-react";
|
|
5890
5925
|
|
|
5891
5926
|
// src/components/Select/select.styles.ts
|
|
5892
|
-
import { cva as
|
|
5893
|
-
var selectTriggerVariants =
|
|
5927
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
5928
|
+
var selectTriggerVariants = cva6(
|
|
5894
5929
|
`
|
|
5895
5930
|
flex w-full items-center justify-between gap-2 rounded-md border transition-colors
|
|
5896
5931
|
bg-white dark:bg-white/5
|
|
@@ -5909,6 +5944,30 @@ var selectTriggerVariants = cva5(
|
|
|
5909
5944
|
focus:border-black/20 dark:focus:border-white/20
|
|
5910
5945
|
focus:ring-black/10 dark:focus:ring-white/10
|
|
5911
5946
|
`,
|
|
5947
|
+
primary: `
|
|
5948
|
+
border-primary/30 dark:border-primary/25
|
|
5949
|
+
hover:border-primary/50 dark:hover:border-primary/40
|
|
5950
|
+
focus:border-primary/50 dark:focus:border-primary/40
|
|
5951
|
+
focus:ring-primary/20 dark:focus:ring-primary/15
|
|
5952
|
+
`,
|
|
5953
|
+
secondary: `
|
|
5954
|
+
border-secondary/30 dark:border-secondary/25
|
|
5955
|
+
hover:border-secondary/50 dark:hover:border-secondary/40
|
|
5956
|
+
focus:border-secondary/50 dark:focus:border-secondary/40
|
|
5957
|
+
focus:ring-secondary/20 dark:focus:ring-secondary/15
|
|
5958
|
+
`,
|
|
5959
|
+
accent: `
|
|
5960
|
+
border-accent/30 dark:border-accent/25
|
|
5961
|
+
hover:border-accent/50 dark:hover:border-accent/40
|
|
5962
|
+
focus:border-accent/50 dark:focus:border-accent/40
|
|
5963
|
+
focus:ring-accent/20 dark:focus:ring-accent/15
|
|
5964
|
+
`,
|
|
5965
|
+
destructive: `
|
|
5966
|
+
border-destructive/40 dark:border-destructive/35
|
|
5967
|
+
hover:border-destructive/60 dark:hover:border-destructive/50
|
|
5968
|
+
focus:border-destructive/60 dark:focus:border-destructive/50
|
|
5969
|
+
focus:ring-destructive/20 dark:focus:ring-destructive/15
|
|
5970
|
+
`,
|
|
5912
5971
|
error: `
|
|
5913
5972
|
border-red-500 dark:border-red-400
|
|
5914
5973
|
focus:border-red-600 dark:focus:border-red-500
|
|
@@ -5927,6 +5986,23 @@ var selectTriggerVariants = cva5(
|
|
|
5927
5986
|
}
|
|
5928
5987
|
}
|
|
5929
5988
|
);
|
|
5989
|
+
var selectItemVariants = cva6(
|
|
5990
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
5991
|
+
{
|
|
5992
|
+
variants: {
|
|
5993
|
+
variant: {
|
|
5994
|
+
default: "focus:bg-black/5 dark:focus:bg-white/6 focus:text-primary",
|
|
5995
|
+
primary: "focus:bg-primary/10 dark:focus:bg-primary/15 focus:text-primary",
|
|
5996
|
+
secondary: "focus:bg-secondary/10 dark:focus:bg-secondary/15 focus:text-primary",
|
|
5997
|
+
accent: "focus:bg-accent/10 dark:focus:bg-accent/15 focus:text-primary",
|
|
5998
|
+
destructive: "focus:bg-destructive/10 dark:focus:bg-destructive/15 focus:text-destructive"
|
|
5999
|
+
}
|
|
6000
|
+
},
|
|
6001
|
+
defaultVariants: {
|
|
6002
|
+
variant: "default"
|
|
6003
|
+
}
|
|
6004
|
+
}
|
|
6005
|
+
);
|
|
5930
6006
|
|
|
5931
6007
|
// src/components/Select/index.tsx
|
|
5932
6008
|
import { jsx as jsx23, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -5971,7 +6047,7 @@ var SelectContent2 = React34.forwardRef(({ className, children, position = "popp
|
|
|
5971
6047
|
{
|
|
5972
6048
|
ref,
|
|
5973
6049
|
className: cn(
|
|
5974
|
-
"bg-
|
|
6050
|
+
"bg-popover z-50 min-w-32 overflow-hidden rounded-2xl border border-black/6 dark:border-white/8 p-2 text-primary shadow-xl dark:shadow-black/40",
|
|
5975
6051
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
5976
6052
|
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",
|
|
5977
6053
|
className
|
|
@@ -6003,16 +6079,11 @@ var SelectLabel2 = React34.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
6003
6079
|
}
|
|
6004
6080
|
));
|
|
6005
6081
|
SelectLabel2.displayName = Label4.displayName;
|
|
6006
|
-
var SelectItem2 = React34.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
6082
|
+
var SelectItem2 = React34.forwardRef(({ className, children, variant, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
6007
6083
|
Item2,
|
|
6008
6084
|
{
|
|
6009
6085
|
ref,
|
|
6010
|
-
className: cn(
|
|
6011
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
6012
|
-
"focus:bg-primary focus:text-primary",
|
|
6013
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6014
|
-
className
|
|
6015
|
-
),
|
|
6086
|
+
className: cn(selectItemVariants({ variant }), className),
|
|
6016
6087
|
...props,
|
|
6017
6088
|
children: [
|
|
6018
6089
|
/* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(ItemIndicator2, { children: /* @__PURE__ */ jsx23(Check2, { className: "size-4" }) }) }),
|
|
@@ -6035,14 +6106,14 @@ SelectSeparator2.displayName = Separator3.displayName;
|
|
|
6035
6106
|
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
6036
6107
|
|
|
6037
6108
|
// src/components/Tabs/tabs.styles.ts
|
|
6038
|
-
import { cva as
|
|
6039
|
-
var tabsVariants =
|
|
6109
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
6110
|
+
var tabsVariants = cva7(
|
|
6040
6111
|
`
|
|
6041
6112
|
inline-flex items-center gap-1 rounded-lg p-1
|
|
6042
6113
|
border border-black/8 bg-white/50 dark:border-white/10 dark:bg-white/5
|
|
6043
6114
|
`
|
|
6044
6115
|
);
|
|
6045
|
-
var tabVariants =
|
|
6116
|
+
var tabVariants = cva7(
|
|
6046
6117
|
`
|
|
6047
6118
|
inline-flex items-center justify-center px-4 py-2 text-sm font-medium
|
|
6048
6119
|
rounded-md transition-colors duration-200
|
|
@@ -6095,8 +6166,8 @@ function TabsContent({ value, children, className }) {
|
|
|
6095
6166
|
}
|
|
6096
6167
|
|
|
6097
6168
|
// src/components/Text/text.styles.ts
|
|
6098
|
-
import { cva as
|
|
6099
|
-
var textVariants =
|
|
6169
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
6170
|
+
var textVariants = cva8(`text-primary`, {
|
|
6100
6171
|
variants: {
|
|
6101
6172
|
size: {
|
|
6102
6173
|
sm: "text-sm",
|
|
@@ -6480,7 +6551,7 @@ var ControlledPagination = ({
|
|
|
6480
6551
|
)
|
|
6481
6552
|
] }),
|
|
6482
6553
|
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-4 text-sm", children: [
|
|
6483
|
-
/* @__PURE__ */ jsx31("
|
|
6554
|
+
/* @__PURE__ */ jsx31("p", { className: "w-full", children: countLabel(startItem, endItem, totalCount) }),
|
|
6484
6555
|
/* @__PURE__ */ jsx31(Pagination, { children: /* @__PURE__ */ jsxs10(PaginationContent, { children: [
|
|
6485
6556
|
/* @__PURE__ */ jsx31(PaginationItem, { children: /* @__PURE__ */ jsx31(
|
|
6486
6557
|
PaginationPrevious,
|
|
@@ -6807,6 +6878,108 @@ var ControlledTable = ({
|
|
|
6807
6878
|
};
|
|
6808
6879
|
var ControlledTable_default = ControlledTable;
|
|
6809
6880
|
|
|
6881
|
+
// src/tailwind.preset.ts
|
|
6882
|
+
var auxaliaColors = {
|
|
6883
|
+
// Primary Brand Color - Fresh Green
|
|
6884
|
+
"auxalia-green": {
|
|
6885
|
+
50: "#f8fbf0",
|
|
6886
|
+
100: "#f0f7e1",
|
|
6887
|
+
200: "#ddf0c0",
|
|
6888
|
+
300: "#c3e88a",
|
|
6889
|
+
400: "#a7d500",
|
|
6890
|
+
// Brand primary
|
|
6891
|
+
500: "#93b800",
|
|
6892
|
+
600: "#749400",
|
|
6893
|
+
700: "#5a7600",
|
|
6894
|
+
800: "#3d5000",
|
|
6895
|
+
900: "#1f2800"
|
|
6896
|
+
},
|
|
6897
|
+
// Secondary Brand Color - Dark Blue
|
|
6898
|
+
"auxalia-blue": {
|
|
6899
|
+
50: "#f0f4f8",
|
|
6900
|
+
100: "#e0eaf3",
|
|
6901
|
+
200: "#c0d6e6",
|
|
6902
|
+
300: "#8fb3d1",
|
|
6903
|
+
400: "#5c8fb5",
|
|
6904
|
+
500: "#3e6897",
|
|
6905
|
+
// Brand secondary
|
|
6906
|
+
600: "#2d5080",
|
|
6907
|
+
700: "#1f3860",
|
|
6908
|
+
800: "#142a47",
|
|
6909
|
+
900: "#0a1628"
|
|
6910
|
+
},
|
|
6911
|
+
// Accent - Petrol Green
|
|
6912
|
+
"auxalia-petrol": {
|
|
6913
|
+
50: "#f0fbfc",
|
|
6914
|
+
100: "#dff8f9",
|
|
6915
|
+
200: "#bef1f3",
|
|
6916
|
+
300: "#7fe6eb",
|
|
6917
|
+
400: "#3fd9e1",
|
|
6918
|
+
500: "#0f868b",
|
|
6919
|
+
// Auxalia petrol
|
|
6920
|
+
600: "#0a646b",
|
|
6921
|
+
700: "#064952",
|
|
6922
|
+
800: "#033539",
|
|
6923
|
+
900: "#011f22"
|
|
6924
|
+
},
|
|
6925
|
+
// Supporting Colors
|
|
6926
|
+
"auxalia-orange": "#dc6b39",
|
|
6927
|
+
"auxalia-yellow": "#cfd12d",
|
|
6928
|
+
"auxalia-red": "#93383a",
|
|
6929
|
+
"auxalia-cyan": "#abbfbd"
|
|
6930
|
+
};
|
|
6931
|
+
var preset = {
|
|
6932
|
+
darkMode: "class",
|
|
6933
|
+
theme: {
|
|
6934
|
+
extend: {
|
|
6935
|
+
fontFamily: {
|
|
6936
|
+
display: ['"Weissenhof Grotesk"', '"Calibri"', "sans-serif"],
|
|
6937
|
+
body: ['"Weissenhof Grotesk"', '"Calibri"', "sans-serif"]
|
|
6938
|
+
},
|
|
6939
|
+
colors: {
|
|
6940
|
+
// Primary using Auxalia Green — RGB channels enable Tailwind opacity modifiers (e.g. bg-primary/20)
|
|
6941
|
+
primary: "rgb(var(--color-primary) / <alpha-value>)",
|
|
6942
|
+
"primary-foreground": "var(--color-primary-foreground)",
|
|
6943
|
+
"primary-hover": "var(--color-primary-hover)",
|
|
6944
|
+
// Secondary using Auxalia Blue
|
|
6945
|
+
secondary: "rgb(var(--color-secondary) / <alpha-value>)",
|
|
6946
|
+
"secondary-foreground": "var(--color-secondary-foreground)",
|
|
6947
|
+
"secondary-hover": "var(--color-secondary-hover)",
|
|
6948
|
+
// Accent using Auxalia Petrol
|
|
6949
|
+
accent: "rgb(var(--color-accent) / <alpha-value>)",
|
|
6950
|
+
"accent-foreground": "var(--color-accent-foreground)",
|
|
6951
|
+
surface: "var(--color-surface)",
|
|
6952
|
+
"surface-hover": "var(--color-surface-hover)",
|
|
6953
|
+
"surface-foreground": "var(--color-surface-foreground)",
|
|
6954
|
+
destructive: "rgb(var(--color-destructive) / <alpha-value>)",
|
|
6955
|
+
"destructive-hover": "var(--color-destructive-hover)",
|
|
6956
|
+
"destructive-foreground": "var(--color-destructive-foreground)",
|
|
6957
|
+
// Auxalia specific colors for direct use
|
|
6958
|
+
"auxalia-green": auxaliaColors["auxalia-green"],
|
|
6959
|
+
"auxalia-blue": auxaliaColors["auxalia-blue"],
|
|
6960
|
+
"auxalia-petrol": auxaliaColors["auxalia-petrol"]
|
|
6961
|
+
},
|
|
6962
|
+
textColor: {
|
|
6963
|
+
primary: "var(--color-text)",
|
|
6964
|
+
secondary: "var(--color-text-secondary)",
|
|
6965
|
+
muted: "var(--color-text-muted)"
|
|
6966
|
+
},
|
|
6967
|
+
backgroundColor: {
|
|
6968
|
+
hero: "var(--color-bg-hero)",
|
|
6969
|
+
card: "var(--card)",
|
|
6970
|
+
cardHover: "var(--card-hover)",
|
|
6971
|
+
popover: "var(--popover)"
|
|
6972
|
+
},
|
|
6973
|
+
backgroundImage: {
|
|
6974
|
+
"gradient-radial-green": "radial-gradient(circle at 20% 20%, rgba(167, 213, 0, 0.15), transparent 35%)",
|
|
6975
|
+
"gradient-radial-blue": "radial-gradient(circle at 80% 0%, rgba(62, 104, 151, 0.1), transparent 40%)",
|
|
6976
|
+
"gradient-glow": "linear-gradient(to bottom right, rgba(6, 182, 212, 0.1), transparent, rgba(255, 255, 255, 0.05))"
|
|
6977
|
+
}
|
|
6978
|
+
}
|
|
6979
|
+
}
|
|
6980
|
+
};
|
|
6981
|
+
var tailwind_preset_default = preset;
|
|
6982
|
+
|
|
6810
6983
|
// src/lib/tokens.ts
|
|
6811
6984
|
var AuxaliaTokens = {
|
|
6812
6985
|
// PRIMARY: BRAND GREEN
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auxalia-ui-kit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "A React component library built with Radix UI and Tailwind CSS, designed to provide accessible and customizable UI components for modern web applications.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": {
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"dist/tokens.css"
|
|
68
68
|
],
|
|
69
69
|
"scripts": {
|
|
70
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
70
71
|
"storybook": "storybook dev -p 6006",
|
|
71
72
|
"build-storybook": "storybook build",
|
|
72
73
|
"vercel-build": "npm run build-storybook"
|