@jbpark/ui-kit 5.4.7 → 6.0.0
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/components/atoms/checkbox/checkbox.mjs.map +1 -1
- package/dist/components/atoms/date-picker.mjs.map +1 -1
- package/dist/components/atoms/input/input.mjs.map +1 -1
- package/dist/components/atoms/input/search.mjs.map +1 -1
- package/dist/components/atoms/input/text-area.d.mts.map +1 -1
- package/dist/components/atoms/input/text-area.mjs.map +1 -1
- package/dist/components/atoms/popover.mjs.map +1 -1
- package/dist/components/atoms/progress.d.mts.map +1 -1
- package/dist/components/atoms/progress.mjs.map +1 -1
- package/dist/components/atoms/radio/group.mjs.map +1 -1
- package/dist/components/atoms/radio/radio.d.mts +2 -2
- package/dist/components/atoms/radio/radio.mjs.map +1 -1
- package/dist/components/atoms/select.d.mts +1 -1
- package/dist/components/atoms/select.d.mts.map +1 -1
- package/dist/components/atoms/select.mjs.map +1 -1
- package/dist/components/atoms/skeleton/skeleton.d.mts.map +1 -1
- package/dist/components/atoms/skeleton/skeleton.mjs.map +1 -1
- package/dist/components/atoms/switch.d.mts.map +1 -1
- package/dist/components/atoms/switch.mjs.map +1 -1
- package/dist/components/molecules/collapse.d.mts.map +1 -1
- package/dist/components/molecules/collapse.mjs.map +1 -1
- package/dist/components/molecules/splitter/panel.d.mts +1 -1
- package/dist/components/molecules/splitter/panel.d.mts.map +1 -1
- package/dist/components/molecules/splitter/panel.mjs.map +1 -1
- package/dist/components/molecules/splitter/splitter.d.mts +1 -1
- package/dist/components/molecules/splitter/splitter.d.mts.map +1 -1
- package/dist/components/molecules/splitter/splitter.mjs.map +1 -1
- package/dist/components/organisms/drawer.mjs.map +1 -1
- package/dist/components/organisms/modal.mjs.map +1 -1
- package/dist/core/accordion.d.mts +2 -15
- package/dist/core/badge.d.mts +2 -15
- package/dist/core/button.d.mts +2 -16
- package/dist/core/button.mjs +1 -6
- package/dist/core/button.mjs.map +1 -1
- package/dist/core/calendar.d.mts +3 -13
- package/dist/core/checkbox.d.mts +2 -9
- package/dist/core/dialog.d.mts +2 -28
- package/dist/core/drawer.d.mts +2 -26
- package/dist/core/field.d.mts +2 -29
- package/dist/core/index.d.mts +18 -0
- package/dist/core/input.d.mts +1 -8
- package/dist/core/label.d.mts +2 -9
- package/dist/core/popover.d.mts +2 -17
- package/dist/core/progress.d.mts +2 -13
- package/dist/core/radio-group.d.mts +2 -7
- package/dist/core/radio-group.d.mts.map +1 -1
- package/dist/core/resizable.d.mts +2 -7
- package/dist/core/resizable.d.mts.map +1 -1
- package/dist/core/select.d.mts +2 -17
- package/dist/core/select.d.mts.map +1 -1
- package/dist/core/separator.d.mts +2 -9
- package/dist/core/separator.mjs +1 -3
- package/dist/core/separator.mjs.map +1 -1
- package/dist/core/switch.d.mts +2 -15
- package/dist/core/textarea.d.mts +1 -8
- package/package.json +2 -7
- package/dist/core/accordion.d.mts.map +0 -1
- package/dist/core/badge.d.mts.map +0 -1
- package/dist/core/badge.mjs +0 -37
- package/dist/core/badge.mjs.map +0 -1
- package/dist/core/button.d.mts.map +0 -1
- package/dist/core/calendar.d.mts.map +0 -1
- package/dist/core/checkbox.d.mts.map +0 -1
- package/dist/core/dialog.d.mts.map +0 -1
- package/dist/core/drawer.d.mts.map +0 -1
- package/dist/core/field.d.mts.map +0 -1
- package/dist/core/input.d.mts.map +0 -1
- package/dist/core/label.d.mts.map +0 -1
- package/dist/core/popover.d.mts.map +0 -1
- package/dist/core/progress.d.mts.map +0 -1
- package/dist/core/separator.d.mts.map +0 -1
- package/dist/core/skeleton.d.mts +0 -7
- package/dist/core/skeleton.d.mts.map +0 -1
- package/dist/core/switch.d.mts.map +0 -1
- package/dist/core/textarea.d.mts.map +0 -1
- package/dist/core.d.mts +0 -20
- package/dist/core.mjs +0 -20
package/dist/core/button.d.mts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace button_d_exports {
|
|
4
|
-
export { Button, Props, buttonVariants };
|
|
5
|
-
}
|
|
6
|
-
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "link" | "default" | "outline" | "secondary" | "destructive" | "ghost" | null | undefined;
|
|
8
|
-
size?: "icon" | "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
9
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
-
type Props = React$1.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
11
|
-
asChild?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare function Button({ className, variant, size, asChild, ...props }: Props): React$1.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Button, type Props, buttonVariants, button_d_exports };
|
|
16
|
-
//# sourceMappingURL=button.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "class-variance-authority";
|
package/dist/core/button.mjs
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { cn } from "../utils.mjs";
|
|
3
2
|
import "react";
|
|
4
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { cva } from "class-variance-authority";
|
|
7
6
|
//#region src/core/button.tsx
|
|
8
|
-
var button_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
-
Button: () => Button,
|
|
10
|
-
buttonVariants: () => buttonVariants
|
|
11
|
-
});
|
|
12
7
|
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
13
8
|
variants: {
|
|
14
9
|
variant: {
|
|
@@ -49,6 +44,6 @@ function Button({ className, variant = "default", size = "default", asChild = fa
|
|
|
49
44
|
});
|
|
50
45
|
}
|
|
51
46
|
//#endregion
|
|
52
|
-
export { Button, buttonVariants
|
|
47
|
+
export { Button, buttonVariants };
|
|
53
48
|
|
|
54
49
|
//# sourceMappingURL=button.mjs.map
|
package/dist/core/button.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.mjs","names":[],"sources":["../../src/core/button.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { type VariantProps, cva } from 'class-variance-authority';\n\nimport { cn } from '@repo/ui/utils';\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive:\n 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',\n outline:\n 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',\n secondary:\n 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost:\n 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-9 px-4 py-2 has-[>svg]:px-3',\n xs: \"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',\n lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',\n icon: 'size-9',\n 'icon-xs': \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3\",\n 'icon-sm': 'size-8',\n 'icon-lg': 'size-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\ntype Props = React.ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n };\n\nfunction Button({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n ...props\n}: Props) {\n const Comp = asChild ? Slot : 'button';\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n );\n}\n\nexport { Button, buttonVariants, type Props };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.mjs","names":[],"sources":["../../src/core/button.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { type VariantProps, cva } from 'class-variance-authority';\n\nimport { cn } from '@repo/ui/utils';\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive:\n 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',\n outline:\n 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',\n secondary:\n 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost:\n 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-9 px-4 py-2 has-[>svg]:px-3',\n xs: \"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',\n lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',\n icon: 'size-9',\n 'icon-xs': \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3\",\n 'icon-sm': 'size-8',\n 'icon-lg': 'size-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\ntype Props = React.ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n };\n\nfunction Button({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n ...props\n}: Props) {\n const Comp = asChild ? Slot : 'button';\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n );\n}\n\nexport { Button, buttonVariants, type Props };\n"],"mappings":";;;;;;AAOA,MAAM,iBAAiB,IACrB,+bACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aACE;GACF,SACE;GACF,WACE;GACF,OACE;GACF,MAAM;EACR;EACA,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,MAAM;GACN,WAAW;GACX,WAAW;GACX,WAAW;EACb;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAOA,SAAS,OAAO,EACd,WACA,UAAU,WACV,OAAO,WACP,UAAU,OACV,GAAG,SACK;CAGR,OACE,oBAHW,UAAU,OAAO,UAG5B;EACE,aAAU;EACV,gBAAc;EACd,aAAW;EACX,WAAW,GAAG,eAAe;GAAE;GAAS;GAAM;EAAU,CAAC,CAAC;EAC1D,GAAI;CACL,CAAA;AAEL"}
|
package/dist/core/calendar.d.mts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
declare namespace calendar_d_exports {
|
|
5
|
-
export { Calendar, CalendarDayButton };
|
|
6
|
-
}
|
|
7
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
8
|
-
buttonVariant?: React$1.ComponentProps<typeof Button>['variant'];
|
|
9
|
-
}): React$1.JSX.Element;
|
|
10
|
-
declare function CalendarDayButton({ className, day, modifiers, ...props }: React$1.ComponentProps<typeof DayButton>): React$1.JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Calendar, CalendarDayButton, calendar_d_exports };
|
|
13
|
-
//# sourceMappingURL=calendar.d.mts.map
|
|
1
|
+
import "./button.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import { DayPicker } from "react-day-picker";
|
package/dist/core/checkbox.d.mts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace checkbox_d_exports {
|
|
4
|
-
export { Checkbox };
|
|
5
|
-
}
|
|
6
|
-
declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { Checkbox, checkbox_d_exports };
|
|
9
|
-
//# sourceMappingURL=checkbox.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "@radix-ui/react-checkbox";
|
package/dist/core/dialog.d.mts
CHANGED
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace dialog_d_exports {
|
|
4
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
5
|
-
}
|
|
6
|
-
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
-
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): React$1.JSX.Element;
|
|
8
|
-
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): React$1.JSX.Element;
|
|
9
|
-
declare function DialogClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): React$1.JSX.Element;
|
|
10
|
-
declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): React$1.JSX.Element;
|
|
11
|
-
interface CustomContentProps {
|
|
12
|
-
classNames?: Record<string, string>;
|
|
13
|
-
closeIcon?: React$1.ReactNode;
|
|
14
|
-
closable?: boolean | {
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
};
|
|
17
|
-
container?: HTMLElement;
|
|
18
|
-
}
|
|
19
|
-
declare function DialogContent({ className, children, classNames, closeIcon: _closeIcon, closable, container, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & CustomContentProps): React$1.JSX.Element;
|
|
20
|
-
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
21
|
-
declare function DialogFooter({ className, showCloseButton, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
22
|
-
showCloseButton?: boolean;
|
|
23
|
-
}): React$1.JSX.Element;
|
|
24
|
-
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): React$1.JSX.Element;
|
|
25
|
-
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): React$1.JSX.Element;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, dialog_d_exports };
|
|
28
|
-
//# sourceMappingURL=dialog.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "@radix-ui/react-dialog";
|
package/dist/core/drawer.d.mts
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Drawer } from "vaul";
|
|
3
|
-
declare namespace drawer_d_exports {
|
|
4
|
-
export { Drawer$1 as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
5
|
-
}
|
|
6
|
-
interface CustomProps {
|
|
7
|
-
draggable?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare function Drawer$1({ draggable, container, ...props }: React$1.ComponentProps<typeof Drawer.Root> & CustomProps): React$1.JSX.Element;
|
|
10
|
-
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer.Trigger>): React$1.JSX.Element;
|
|
11
|
-
declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer.Portal>): React$1.JSX.Element;
|
|
12
|
-
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer.Close>): React$1.JSX.Element;
|
|
13
|
-
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer.Overlay>): React$1.JSX.Element;
|
|
14
|
-
interface CustomContentProps {
|
|
15
|
-
classNames?: Record<string, string>;
|
|
16
|
-
handlebar?: boolean;
|
|
17
|
-
mask?: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare function DrawerContent({ className, children, classNames, handlebar, mask, ...props }: React$1.ComponentProps<typeof Drawer.Content> & CustomContentProps): React$1.JSX.Element;
|
|
20
|
-
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
21
|
-
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
22
|
-
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer.Title>): React$1.JSX.Element;
|
|
23
|
-
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer.Description>): React$1.JSX.Element;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Drawer$1 as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, drawer_d_exports };
|
|
26
|
-
//# sourceMappingURL=drawer.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import { Drawer } from "vaul";
|
package/dist/core/field.d.mts
CHANGED
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace field_d_exports {
|
|
4
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
5
|
-
}
|
|
6
|
-
declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): import("react").JSX.Element;
|
|
7
|
-
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
|
|
8
|
-
variant?: 'legend' | 'label';
|
|
9
|
-
}): import("react").JSX.Element;
|
|
10
|
-
declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
11
|
-
declare const fieldVariants: (props?: ({
|
|
12
|
-
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
13
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
|
-
declare function Field({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>): import("react").JSX.Element;
|
|
15
|
-
declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
16
|
-
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react").JSX.Element;
|
|
17
|
-
declare function FieldTitle({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
18
|
-
declare function FieldDescription({ className, ...props }: React.ComponentProps<'p'>): import("react").JSX.Element;
|
|
19
|
-
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<'div'> & {
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}): import("react").JSX.Element;
|
|
22
|
-
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<'div'> & {
|
|
23
|
-
errors?: Array<{
|
|
24
|
-
message?: string;
|
|
25
|
-
} | undefined>;
|
|
26
|
-
}): import("react").JSX.Element | null;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, field_d_exports };
|
|
29
|
-
//# sourceMappingURL=field.d.mts.map
|
|
1
|
+
import "./label.mjs";
|
|
2
|
+
import "class-variance-authority";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./accordion.mjs";
|
|
2
|
+
import "./badge.mjs";
|
|
3
|
+
import "./button.mjs";
|
|
4
|
+
import "./calendar.mjs";
|
|
5
|
+
import "./checkbox.mjs";
|
|
6
|
+
import "./dialog.mjs";
|
|
7
|
+
import "./drawer.mjs";
|
|
8
|
+
import "./label.mjs";
|
|
9
|
+
import "./field.mjs";
|
|
10
|
+
import "./input.mjs";
|
|
11
|
+
import "./popover.mjs";
|
|
12
|
+
import "./progress.mjs";
|
|
13
|
+
import "./radio-group.mjs";
|
|
14
|
+
import "./resizable.mjs";
|
|
15
|
+
import "./select.mjs";
|
|
16
|
+
import "./separator.mjs";
|
|
17
|
+
import "./switch.mjs";
|
|
18
|
+
import "./textarea.mjs";
|
package/dist/core/input.d.mts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare namespace input_d_exports {
|
|
3
|
-
export { Input };
|
|
4
|
-
}
|
|
5
|
-
declare function Input({ className, type, ...props }: React$1.ComponentProps<'input'>): React$1.JSX.Element;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { Input, input_d_exports };
|
|
8
|
-
//# sourceMappingURL=input.d.mts.map
|
|
1
|
+
import "react";
|
package/dist/core/label.d.mts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace label_d_exports {
|
|
4
|
-
export { Label };
|
|
5
|
-
}
|
|
6
|
-
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { Label, label_d_exports };
|
|
9
|
-
//# sourceMappingURL=label.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "@radix-ui/react-label";
|
package/dist/core/popover.d.mts
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace popover_d_exports {
|
|
4
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
|
5
|
-
}
|
|
6
|
-
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
-
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): React$1.JSX.Element;
|
|
8
|
-
declare function PopoverContent({ className, align, sideOffset, container, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
9
|
-
container?: HTMLElement;
|
|
10
|
-
}): React$1.JSX.Element;
|
|
11
|
-
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): React$1.JSX.Element;
|
|
12
|
-
declare function PopoverHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
13
|
-
declare function PopoverTitle({ className, ...props }: React$1.ComponentProps<'h2'>): React$1.JSX.Element;
|
|
14
|
-
declare function PopoverDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, popover_d_exports };
|
|
17
|
-
//# sourceMappingURL=popover.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "@radix-ui/react-popover";
|
package/dist/core/progress.d.mts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace progress_d_exports {
|
|
4
|
-
export { Progress };
|
|
5
|
-
}
|
|
6
|
-
interface CustomProps {
|
|
7
|
-
barClassName?: string;
|
|
8
|
-
barStyle?: React$1.CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
declare function Progress({ className, value, barClassName, barStyle, ...props }: React$1.ComponentProps<typeof ProgressPrimitive.Root> & CustomProps): React$1.JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Progress, progress_d_exports };
|
|
13
|
-
//# sourceMappingURL=progress.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "@radix-ui/react-progress";
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
-
|
|
4
|
-
export { RadioGroup, RadioGroupItem };
|
|
5
|
-
}
|
|
3
|
+
//#region src/core/radio-group.d.ts
|
|
6
4
|
declare function RadioGroup({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
-
declare function RadioGroupItem({ className, asChild, children, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Item> & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}): React$1.JSX.Element;
|
|
10
5
|
//#endregion
|
|
11
|
-
export { RadioGroup
|
|
6
|
+
export { RadioGroup };
|
|
12
7
|
//# sourceMappingURL=radio-group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.mts","names":[],"sources":["../../src/core/radio-group.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio-group.d.mts","names":[],"sources":["../../src/core/radio-group.tsx"],"mappings":";;;iBASS,aACP,cACG,SACF,QAAM,sBAAsB,oBAAoB,QAAK,QAAA,IAAA"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
|
-
|
|
3
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
4
|
-
}
|
|
2
|
+
//#region src/core/resizable.d.ts
|
|
5
3
|
declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react").JSX.Element;
|
|
6
4
|
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): import("react").JSX.Element;
|
|
7
|
-
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
8
|
-
withHandle?: boolean;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
10
5
|
//#endregion
|
|
11
|
-
export {
|
|
6
|
+
export { ResizablePanel, ResizablePanelGroup };
|
|
12
7
|
//# sourceMappingURL=resizable.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.d.mts","names":[],"sources":["../../src/core/resizable.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resizable.d.mts","names":[],"sources":["../../src/core/resizable.tsx"],"mappings":";;iBAQS,sBACP,cACG,SACF,mBAAmB,6BAAU,IAAA;iBAavB,oBAAoB,SAAS,mBAAmB,6BAAU,IAAA"}
|
package/dist/core/select.d.mts
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
-
|
|
4
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
5
|
-
}
|
|
3
|
+
//#region src/core/select.d.ts
|
|
6
4
|
declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
-
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Group>): React$1.JSX.Element;
|
|
8
|
-
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Value>): React$1.JSX.Element;
|
|
9
|
-
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
10
|
-
size?: 'sm' | 'default';
|
|
11
|
-
}): React$1.JSX.Element;
|
|
12
|
-
declare function SelectContent({ className, children, position, align, container, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content> & {
|
|
13
|
-
container?: HTMLElement;
|
|
14
|
-
}): React$1.JSX.Element;
|
|
15
|
-
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): React$1.JSX.Element;
|
|
16
|
-
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): React$1.JSX.Element;
|
|
17
|
-
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): React$1.JSX.Element;
|
|
18
|
-
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React$1.JSX.Element;
|
|
19
|
-
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React$1.JSX.Element;
|
|
20
5
|
//#endregion
|
|
21
|
-
export { Select
|
|
6
|
+
export { Select };
|
|
22
7
|
//# sourceMappingURL=select.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.mts","names":[],"sources":["../../src/core/select.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.mts","names":[],"sources":["../../src/core/select.tsx"],"mappings":";;;iBAUS,YACJ,SACF,QAAM,sBAAsB,gBAAgB,QAAK,QAAA,IAAA"}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace separator_d_exports {
|
|
4
|
-
export { Separator };
|
|
5
|
-
}
|
|
6
|
-
declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { Separator, separator_d_exports };
|
|
9
|
-
//# sourceMappingURL=separator.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "@radix-ui/react-separator";
|
package/dist/core/separator.mjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
3
2
|
import { cn } from "../utils.mjs";
|
|
4
3
|
import "react";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
7
6
|
//#region src/core/separator.tsx
|
|
8
|
-
var separator_exports = /* @__PURE__ */ __exportAll({ Separator: () => Separator });
|
|
9
7
|
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
10
8
|
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
|
|
11
9
|
"data-slot": "separator",
|
|
@@ -18,6 +16,6 @@ function Separator({ className, orientation = "horizontal", decorative = true, .
|
|
|
18
16
|
});
|
|
19
17
|
}
|
|
20
18
|
//#endregion
|
|
21
|
-
export { Separator
|
|
19
|
+
export { Separator };
|
|
22
20
|
|
|
23
21
|
//# sourceMappingURL=separator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.mjs","names":[],"sources":["../../src/core/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from '@repo/ui/utils';\n\nfunction Separator({\n className,\n orientation = 'horizontal',\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n `bg-border shrink-0 data-[orientation=horizontal]:h-px\n data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full\n data-[orientation=vertical]:w-px`,\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"separator.mjs","names":[],"sources":["../../src/core/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from '@repo/ui/utils';\n\nfunction Separator({\n className,\n orientation = 'horizontal',\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n `bg-border shrink-0 data-[orientation=horizontal]:h-px\n data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full\n data-[orientation=vertical]:w-px`,\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n"],"mappings":";;;;;;AAQA,SAAS,UAAU,EACjB,WACA,cAAc,cACd,aAAa,MACb,GAAG,SACoD;CACvD,OACE,oBAAC,mBAAmB,MAApB;EACE,aAAU;EACE;EACC;EACb,WAAW,GACT;;2CAGA,SACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
package/dist/core/switch.d.mts
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare namespace switch_d_exports {
|
|
4
|
-
export { Switch };
|
|
5
|
-
}
|
|
6
|
-
interface CustomProps {
|
|
7
|
-
handleClassName?: string;
|
|
8
|
-
children?: React$1.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare function Switch({ className, size, handleClassName, children, ...props }: React$1.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
11
|
-
size?: 'sm' | 'default';
|
|
12
|
-
} & CustomProps): React$1.JSX.Element;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Switch, switch_d_exports };
|
|
15
|
-
//# sourceMappingURL=switch.d.mts.map
|
|
1
|
+
import "react";
|
|
2
|
+
import "@radix-ui/react-switch";
|
package/dist/core/textarea.d.mts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare namespace textarea_d_exports {
|
|
3
|
-
export { Textarea };
|
|
4
|
-
}
|
|
5
|
-
declare function Textarea({ className, ...props }: React$1.ComponentProps<'textarea'>): React$1.JSX.Element;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { Textarea, textarea_d_exports };
|
|
8
|
-
//# sourceMappingURL=textarea.d.mts.map
|
|
1
|
+
import "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbpark/ui-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Modern React UI component library built with TypeScript, Tailwind CSS, and Radix UI. Featuring atoms, molecules, organisms and layout templates for building beautiful interfaces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -89,11 +89,6 @@
|
|
|
89
89
|
"import": "./dist/utils.mjs",
|
|
90
90
|
"default": "./dist/utils.mjs"
|
|
91
91
|
},
|
|
92
|
-
"./core": {
|
|
93
|
-
"types": "./dist/core.d.mts",
|
|
94
|
-
"import": "./dist/core.mjs",
|
|
95
|
-
"default": "./dist/core.mjs"
|
|
96
|
-
},
|
|
97
92
|
"./providers": {
|
|
98
93
|
"types": "./dist/providers.d.mts",
|
|
99
94
|
"import": "./dist/providers.mjs",
|
|
@@ -106,7 +101,7 @@
|
|
|
106
101
|
},
|
|
107
102
|
"scripts": {
|
|
108
103
|
"build": "tsdown",
|
|
109
|
-
"lint": "eslint .",
|
|
104
|
+
"lint": "eslint . --max-warnings 0",
|
|
110
105
|
"check-dynamic-classes": "node scripts/check-dynamic-tailwind-classes.mjs",
|
|
111
106
|
"check-api-surface": "node scripts/check-api-surface.mjs",
|
|
112
107
|
"check-preflight-reset": "node scripts/check-preflight-reset.mjs",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.mts","names":[],"sources":["../../src/core/accordion.tsx"],"mappings":";;;;;iBASS,eACJ,SACF,QAAM,sBAAsB,mBAAmB,QAAK,QAAA,IAAA;iBAI9C,gBACP,cACG,SACF,QAAM,sBAAsB,mBAAmB,QAAK,QAAA,IAAA;UAU7C;EACR,aAAa,QAAM;;iBAGZ,mBACP,WACA,UACA,eACG,SACF,QAAM,sBAAsB,mBAAmB,WAChD,qBAAkB,QAAA,IAAA;iBA2BX,mBACP,WACA,aACG,SACF,QAAM,sBAAsB,mBAAmB,WAAQ,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.mts","names":[],"sources":["../../src/core/badge.tsx"],"mappings":";;;;;cAOM,gBAAa;;6CAyBlB;KAEI,QAAQ,QAAM,yBACjB,oBAAoB;EAClB;;iBAGK,QAAQ,WAAW,SAAS,YAAoB,SAAS,QAAK,QAAA,IAAA"}
|
package/dist/core/badge.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { cn } from "../utils.mjs";
|
|
3
|
-
import "react";
|
|
4
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { cva } from "class-variance-authority";
|
|
7
|
-
//#region src/core/badge.tsx
|
|
8
|
-
var badge_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
-
Badge: () => Badge,
|
|
10
|
-
badgeVariants: () => badgeVariants
|
|
11
|
-
});
|
|
12
|
-
const badgeVariants = cva(`inline-flex items-center justify-center rounded-md border px-2 py-0.5
|
|
13
|
-
text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1
|
|
14
|
-
[&>svg]:pointer-events-none focus-visible:border-ring
|
|
15
|
-
focus-visible:ring-ring/50 focus-visible:ring-[3px]
|
|
16
|
-
aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40
|
|
17
|
-
aria-invalid:border-destructive transition-[color,box-shadow]
|
|
18
|
-
overflow-hidden`, {
|
|
19
|
-
variants: { variant: {
|
|
20
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
21
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
22
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
23
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
24
|
-
} },
|
|
25
|
-
defaultVariants: { variant: "default" }
|
|
26
|
-
});
|
|
27
|
-
function Badge({ className, variant, asChild = false, ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsx(asChild ? Slot : "span", {
|
|
29
|
-
"data-slot": "badge",
|
|
30
|
-
className: cn(badgeVariants({ variant }), className),
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { Badge, badgeVariants, badge_exports };
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=badge.mjs.map
|
package/dist/core/badge.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.mjs","names":[],"sources":["../../src/core/badge.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { type VariantProps, cva } from 'class-variance-authority';\n\nimport { cn } from '@repo/ui/utils';\n\nconst badgeVariants = cva(\n `inline-flex items-center justify-center rounded-md border px-2 py-0.5\n text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1\n [&>svg]:pointer-events-none focus-visible:border-ring\n focus-visible:ring-ring/50 focus-visible:ring-[3px]\n aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40\n aria-invalid:border-destructive transition-[color,box-shadow]\n overflow-hidden`,\n {\n variants: {\n variant: {\n default:\n 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90',\n secondary:\n 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90',\n destructive:\n 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',\n outline:\n 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\ntype Props = React.ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & {\n asChild?: boolean;\n };\n\nfunction Badge({ className, variant, asChild = false, ...props }: Props) {\n const Comp = asChild ? Slot : 'span';\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nexport { Badge, badgeVariants, type Props };\n"],"mappings":";;;;;;;;;;;AAOA,MAAM,gBAAgB,IACpB;;;;;;oBAOA;CACE,UAAU,EACR,SAAS;EACP,SACE;EACF,WACE;EACF,aACE;EACF,SACE;CACJ,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAOA,SAAS,MAAM,EAAE,WAAW,SAAS,UAAU,OAAO,GAAG,SAAgB;CAGvE,OACE,oBAHW,UAAU,OAAO,QAG5B;EACE,aAAU;EACV,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;EACnD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.mts","names":[],"sources":["../../src/core/button.tsx"],"mappings":";;;;;cAOM,iBAAc;;;6CAgCnB;KAEI,QAAQ,QAAM,2BACjB,oBAAoB;EAClB;;iBAGK,SACP,WACA,SACA,MACA,YACG,SACF,QAAK,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.mts","names":[],"sources":["../../src/core/calendar.tsx"],"mappings":";;;;;;iBAeS,WACP,WACA,YACA,iBACA,eACA,eACA,YACA,eACG,SACF,QAAM,sBAAsB;EAC7B,gBAAgB,QAAM,sBAAsB;IAC7C,QAAA,IAAA;iBAkKQ,oBACP,WACA,KACA,cACG,SACF,QAAM,sBAAsB,aAAU,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.mts","names":[],"sources":["../../src/core/checkbox.tsx"],"mappings":";;;;;iBASS,WACP,cACG,SACF,QAAM,sBAAsB,kBAAkB,QAAK,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.mts","names":[],"sources":["../../src/core/dialog.tsx"],"mappings":";;;;;iBAYS,YACJ,SACF,QAAM,sBAAsB,gBAAgB,QAAK,QAAA,IAAA;iBAI3C,mBACJ,SACF,QAAM,sBAAsB,gBAAgB,WAAQ,QAAA,IAAA;iBAI9C,kBACJ,SACF,QAAM,sBAAsB,gBAAgB,UAAO,QAAA,IAAA;iBAI7C,iBACJ,SACF,QAAM,sBAAsB,gBAAgB,SAAM,QAAA,IAAA;iBAI5C,gBACP,cACG,SACF,QAAM,sBAAsB,gBAAgB,WAAQ,QAAA,IAAA;UAe7C;EACR,aAAa;EACb,YAAY,QAAM;EAClB;IAAuB;;EACvB,YAAY;;iBAGL,gBACP,WACA,UACA,YACA,WAAW,YACX,UACA,cACG,SACF,QAAM,sBAAsB,gBAAgB,WAAW,qBAAkB,QAAA,IAAA;iBA4CnE,eAAe,cAAc,SAAS,QAAM,wBAAqB,QAAA,IAAA;iBAUjE,eACP,WACA,iBACA,aACG,SACF,QAAM;EACP;IACD,QAAA,IAAA;iBAoBQ,cACP,cACG,SACF,QAAM,sBAAsB,gBAAgB,SAAM,QAAA,IAAA;iBAU5C,oBACP,cACG,SACF,QAAM,sBAAsB,gBAAgB,eAAY,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.mts","names":[],"sources":["../../src/core/drawer.tsx"],"mappings":";;;;;UASU;EACR;;iBAGO,WACP,WACA,cACG,SACF,QAAM,sBAAsB,OAAgB,QAAQ,cAAW,QAAA,IAAA;iBAazD,mBACJ,SACF,QAAM,sBAAsB,OAAgB,WAAQ,QAAA,IAAA;iBAI9C,kBACJ,SACF,QAAM,sBAAsB,OAAgB,UAAO,QAAA,IAAA;iBAI7C,iBACJ,SACF,QAAM,sBAAsB,OAAgB,SAAM,QAAA,IAAA;iBAI5C,gBACP,cACG,SACF,QAAM,sBAAsB,OAAgB,WAAQ,QAAA,IAAA;UAe7C;EACR,aAAa;EACb;EACA;;iBAGO,gBACP,WACA,UACA,YACA,WACA,SACG,SACF,QAAM,sBAAsB,OAAgB,WAAW,qBAAkB,QAAA,IAAA;iBA2DnE,eAAe,cAAc,SAAS,QAAM,wBAAqB,QAAA,IAAA;iBAgBjE,eAAe,cAAc,SAAS,QAAM,wBAAqB,QAAA,IAAA;iBAUjE,cACP,cACG,SACF,QAAM,sBAAsB,OAAgB,SAAM,QAAA,IAAA;iBAU5C,oBACP,cACG,SACF,QAAM,sBAAsB,OAAgB,eAAY,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.mts","names":[],"sources":["../../src/core/field.tsx"],"mappings":";;;;;iBAWS,WAAW,cAAc,SAAS,MAAM,6CAA0B,IAAA;iBAelE,cACP,WACA,YACG,SACF,MAAM;EAA6B;oBAA8B,IAAA;iBAiB3D,aAAa,cAAc,SAAS,MAAM,wCAAqB,IAAA;cAclE,gBAAa;;6CAsBlB;iBAEQ,QACP,WACA,gBACG,SACF,MAAM,wBAAwB,oBAAoB,iCAAc,IAAA;iBAY1D,eAAe,cAAc,SAAS,MAAM,wCAAqB,IAAA;iBAajE,aACP,cACG,SACF,MAAM,sBAAsB,yBAAM,IAAA;iBAoB5B,aAAa,cAAc,SAAS,MAAM,wCAAqB,IAAA;iBAc/D,mBAAmB,cAAc,SAAS,MAAM,sCAAmB,IAAA;iBAgBnE,iBACP,UACA,cACG,SACF,MAAM;EACP,WAAW,MAAM;oBAClB,IAAA;iBA0BQ,aACP,WACA,UACA,WACG,SACF,MAAM;EACP,SAAS;IAAQ;;oBAClB,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.mts","names":[],"sources":["../../src/core/input.tsx"],"mappings":";;;;iBAIS,QAAQ,WAAW,SAAS,SAAS,QAAM,0BAAuB,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.mts","names":[],"sources":["../../src/core/label.tsx"],"mappings":";;;;;iBAQS,QACP,cACG,SACF,QAAM,sBAAsB,eAAe,QAAK,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.mts","names":[],"sources":["../../src/core/popover.tsx"],"mappings":";;;;;iBASS,aACJ,SACF,QAAM,sBAAsB,iBAAiB,QAAK,QAAA,IAAA;iBAI5C,oBACJ,SACF,QAAM,sBAAsB,iBAAiB,WAAQ,QAAA,IAAA;iBAI/C,iBACP,WACA,OACA,YACA,cACG,SACF,QAAM,sBAAsB,iBAAiB;EAC9C,YAAY;IACb,QAAA,IAAA;iBA2BQ,mBACJ,SACF,QAAM,sBAAsB,iBAAiB,UAAO,QAAA,IAAA;iBAI9C,gBAAgB,cAAc,SAAS,QAAM,wBAAqB,QAAA,IAAA;iBAUlE,eAAe,cAAc,SAAS,QAAM,uBAAoB,QAAA,IAAA;iBAUhE,qBACP,cACG,SACF,QAAM,sBAAmB,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.mts","names":[],"sources":["../../src/core/progress.tsx"],"mappings":";;;;;UAQU;EACR;EACA,WAAW,QAAM;;iBAGV,WACP,WACA,OACA,cACA,aACG,SACF,QAAM,sBAAsB,kBAAkB,QAAQ,cAAW,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.mts","names":[],"sources":["../../src/core/separator.tsx"],"mappings":";;;;;iBAQS,YACP,WACA,aACA,eACG,SACF,QAAM,sBAAsB,mBAAmB,QAAK,QAAA,IAAA"}
|
package/dist/core/skeleton.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare namespace skeleton_d_exports {
|
|
2
|
-
export { Skeleton };
|
|
3
|
-
}
|
|
4
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { Skeleton, skeleton_d_exports };
|
|
7
|
-
//# sourceMappingURL=skeleton.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.mts","names":[],"sources":["../../src/core/skeleton.tsx"],"mappings":";;;iBAES,WAAW,cAAc,SAAS,MAAM,wCAAqB,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.mts","names":[],"sources":["../../src/core/switch.tsx"],"mappings":";;;;;UAQU;EACR;EACA,WAAW,QAAM;;iBAGV,SACP,WACA,MACA,iBACA,aACG,SACF,QAAM,sBAAsB,gBAAgB;EAC7C;IACE,cAAW,QAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.mts","names":[],"sources":["../../src/core/textarea.tsx"],"mappings":";;;;iBAIS,WAAW,cAAc,SAAS,QAAM,6BAA0B,QAAA,IAAA"}
|
package/dist/core.d.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { accordion_d_exports } from "./core/accordion.mjs";
|
|
2
|
-
import { badge_d_exports } from "./core/badge.mjs";
|
|
3
|
-
import { button_d_exports } from "./core/button.mjs";
|
|
4
|
-
import { calendar_d_exports } from "./core/calendar.mjs";
|
|
5
|
-
import { checkbox_d_exports } from "./core/checkbox.mjs";
|
|
6
|
-
import { dialog_d_exports } from "./core/dialog.mjs";
|
|
7
|
-
import { drawer_d_exports } from "./core/drawer.mjs";
|
|
8
|
-
import { label_d_exports } from "./core/label.mjs";
|
|
9
|
-
import { field_d_exports } from "./core/field.mjs";
|
|
10
|
-
import { input_d_exports } from "./core/input.mjs";
|
|
11
|
-
import { popover_d_exports } from "./core/popover.mjs";
|
|
12
|
-
import { progress_d_exports } from "./core/progress.mjs";
|
|
13
|
-
import { radio_group_d_exports } from "./core/radio-group.mjs";
|
|
14
|
-
import { resizable_d_exports } from "./core/resizable.mjs";
|
|
15
|
-
import { select_d_exports } from "./core/select.mjs";
|
|
16
|
-
import { separator_d_exports } from "./core/separator.mjs";
|
|
17
|
-
import { skeleton_d_exports } from "./core/skeleton.mjs";
|
|
18
|
-
import { switch_d_exports } from "./core/switch.mjs";
|
|
19
|
-
import { textarea_d_exports } from "./core/textarea.mjs";
|
|
20
|
-
export { accordion_d_exports as accordion, badge_d_exports as badge, button_d_exports as button, calendar_d_exports as calendar, checkbox_d_exports as checkbox, dialog_d_exports as dialog, drawer_d_exports as drawer, field_d_exports as field, input_d_exports as input, label_d_exports as label, popover_d_exports as popover, progress_d_exports as progress, radio_group_d_exports as radio, resizable_d_exports as resizable, select_d_exports as select, separator_d_exports as separator, skeleton_d_exports as skeleton, switch_d_exports as switchComponent, textarea_d_exports as textarea };
|
package/dist/core.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { accordion_exports } from "./core/accordion.mjs";
|
|
2
|
-
import { badge_exports } from "./core/badge.mjs";
|
|
3
|
-
import { button_exports } from "./core/button.mjs";
|
|
4
|
-
import { calendar_exports } from "./core/calendar.mjs";
|
|
5
|
-
import { checkbox_exports } from "./core/checkbox.mjs";
|
|
6
|
-
import { dialog_exports } from "./core/dialog.mjs";
|
|
7
|
-
import { drawer_exports } from "./core/drawer.mjs";
|
|
8
|
-
import { label_exports } from "./core/label.mjs";
|
|
9
|
-
import { separator_exports } from "./core/separator.mjs";
|
|
10
|
-
import { field_exports } from "./core/field.mjs";
|
|
11
|
-
import { input_exports } from "./core/input.mjs";
|
|
12
|
-
import { popover_exports } from "./core/popover.mjs";
|
|
13
|
-
import { progress_exports } from "./core/progress.mjs";
|
|
14
|
-
import { radio_group_exports } from "./core/radio-group.mjs";
|
|
15
|
-
import { resizable_exports } from "./core/resizable.mjs";
|
|
16
|
-
import { select_exports } from "./core/select.mjs";
|
|
17
|
-
import { skeleton_exports } from "./core/skeleton.mjs";
|
|
18
|
-
import { switch_exports } from "./core/switch.mjs";
|
|
19
|
-
import { textarea_exports } from "./core/textarea.mjs";
|
|
20
|
-
export { accordion_exports as accordion, badge_exports as badge, button_exports as button, calendar_exports as calendar, checkbox_exports as checkbox, dialog_exports as dialog, drawer_exports as drawer, field_exports as field, input_exports as input, label_exports as label, popover_exports as popover, progress_exports as progress, radio_group_exports as radio, resizable_exports as resizable, select_exports as select, separator_exports as separator, skeleton_exports as skeleton, switch_exports as switchComponent, textarea_exports as textarea };
|