@e-infra/design-system 0.0.2 → 0.0.4
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/README.md +1 -1
- package/dist/index.cjs.js +4721 -295
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs2.js +253 -295
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs3.js +253 -295
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.es.js +4432 -49
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +7 -49
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es3.js +7 -49
- package/dist/index.es3.js.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/ui/stepper.d.ts +42 -0
- package/dist/types/components/ui/stepper.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/index.cjs10.js +0 -105
- package/dist/index.cjs10.js.map +0 -1
- package/dist/index.cjs11.js +0 -56
- package/dist/index.cjs11.js.map +0 -1
- package/dist/index.cjs12.js +0 -206
- package/dist/index.cjs12.js.map +0 -1
- package/dist/index.cjs13.js +0 -92
- package/dist/index.cjs13.js.map +0 -1
- package/dist/index.cjs14.js +0 -216
- package/dist/index.cjs14.js.map +0 -1
- package/dist/index.cjs15.js +0 -261
- package/dist/index.cjs15.js.map +0 -1
- package/dist/index.cjs16.js +0 -50
- package/dist/index.cjs16.js.map +0 -1
- package/dist/index.cjs17.js +0 -53
- package/dist/index.cjs17.js.map +0 -1
- package/dist/index.cjs18.js +0 -173
- package/dist/index.cjs18.js.map +0 -1
- package/dist/index.cjs19.js +0 -242
- package/dist/index.cjs19.js.map +0 -1
- package/dist/index.cjs20.js +0 -156
- package/dist/index.cjs20.js.map +0 -1
- package/dist/index.cjs21.js +0 -130
- package/dist/index.cjs21.js.map +0 -1
- package/dist/index.cjs22.js +0 -251
- package/dist/index.cjs22.js.map +0 -1
- package/dist/index.cjs23.js +0 -134
- package/dist/index.cjs23.js.map +0 -1
- package/dist/index.cjs24.js +0 -57
- package/dist/index.cjs24.js.map +0 -1
- package/dist/index.cjs25.js +0 -23
- package/dist/index.cjs25.js.map +0 -1
- package/dist/index.cjs26.js +0 -85
- package/dist/index.cjs26.js.map +0 -1
- package/dist/index.cjs27.js +0 -41
- package/dist/index.cjs27.js.map +0 -1
- package/dist/index.cjs28.js +0 -271
- package/dist/index.cjs28.js.map +0 -1
- package/dist/index.cjs29.js +0 -189
- package/dist/index.cjs29.js.map +0 -1
- package/dist/index.cjs30.js +0 -120
- package/dist/index.cjs30.js.map +0 -1
- package/dist/index.cjs31.js +0 -63
- package/dist/index.cjs31.js.map +0 -1
- package/dist/index.cjs32.js +0 -51
- package/dist/index.cjs32.js.map +0 -1
- package/dist/index.cjs33.js +0 -64
- package/dist/index.cjs33.js.map +0 -1
- package/dist/index.cjs34.js +0 -49
- package/dist/index.cjs34.js.map +0 -1
- package/dist/index.cjs35.js +0 -79
- package/dist/index.cjs35.js.map +0 -1
- package/dist/index.cjs36.js +0 -198
- package/dist/index.cjs36.js.map +0 -1
- package/dist/index.cjs37.js +0 -45
- package/dist/index.cjs37.js.map +0 -1
- package/dist/index.cjs38.js +0 -146
- package/dist/index.cjs38.js.map +0 -1
- package/dist/index.cjs39.js +0 -657
- package/dist/index.cjs39.js.map +0 -1
- package/dist/index.cjs4.js +0 -83
- package/dist/index.cjs4.js.map +0 -1
- package/dist/index.cjs40.js +0 -16
- package/dist/index.cjs40.js.map +0 -1
- package/dist/index.cjs41.js +0 -82
- package/dist/index.cjs41.js.map +0 -1
- package/dist/index.cjs42.js +0 -33
- package/dist/index.cjs42.js.map +0 -1
- package/dist/index.cjs43.js +0 -50
- package/dist/index.cjs43.js.map +0 -1
- package/dist/index.cjs44.js +0 -117
- package/dist/index.cjs44.js.map +0 -1
- package/dist/index.cjs45.js +0 -86
- package/dist/index.cjs45.js.map +0 -1
- package/dist/index.cjs46.js +0 -20
- package/dist/index.cjs46.js.map +0 -1
- package/dist/index.cjs47.js +0 -63
- package/dist/index.cjs47.js.map +0 -1
- package/dist/index.cjs48.js +0 -88
- package/dist/index.cjs48.js.map +0 -1
- package/dist/index.cjs49.js +0 -74
- package/dist/index.cjs49.js.map +0 -1
- package/dist/index.cjs5.js +0 -68
- package/dist/index.cjs5.js.map +0 -1
- package/dist/index.cjs50.js +0 -9
- package/dist/index.cjs50.js.map +0 -1
- package/dist/index.cjs51.js +0 -38
- package/dist/index.cjs51.js.map +0 -1
- package/dist/index.cjs6.js +0 -166
- package/dist/index.cjs6.js.map +0 -1
- package/dist/index.cjs7.js +0 -29
- package/dist/index.cjs7.js.map +0 -1
- package/dist/index.cjs8.js +0 -72
- package/dist/index.cjs8.js.map +0 -1
- package/dist/index.cjs9.js +0 -42
- package/dist/index.cjs9.js.map +0 -1
- package/dist/index.es10.js +0 -105
- package/dist/index.es10.js.map +0 -1
- package/dist/index.es11.js +0 -56
- package/dist/index.es11.js.map +0 -1
- package/dist/index.es12.js +0 -189
- package/dist/index.es12.js.map +0 -1
- package/dist/index.es13.js +0 -92
- package/dist/index.es13.js.map +0 -1
- package/dist/index.es14.js +0 -199
- package/dist/index.es14.js.map +0 -1
- package/dist/index.es15.js +0 -243
- package/dist/index.es15.js.map +0 -1
- package/dist/index.es16.js +0 -33
- package/dist/index.es16.js.map +0 -1
- package/dist/index.es17.js +0 -36
- package/dist/index.es17.js.map +0 -1
- package/dist/index.es18.js +0 -173
- package/dist/index.es18.js.map +0 -1
- package/dist/index.es19.js +0 -225
- package/dist/index.es19.js.map +0 -1
- package/dist/index.es20.js +0 -139
- package/dist/index.es20.js.map +0 -1
- package/dist/index.es21.js +0 -130
- package/dist/index.es21.js.map +0 -1
- package/dist/index.es22.js +0 -234
- package/dist/index.es22.js.map +0 -1
- package/dist/index.es23.js +0 -117
- package/dist/index.es23.js.map +0 -1
- package/dist/index.es24.js +0 -40
- package/dist/index.es24.js.map +0 -1
- package/dist/index.es25.js +0 -23
- package/dist/index.es25.js.map +0 -1
- package/dist/index.es26.js +0 -68
- package/dist/index.es26.js.map +0 -1
- package/dist/index.es27.js +0 -24
- package/dist/index.es27.js.map +0 -1
- package/dist/index.es28.js +0 -254
- package/dist/index.es28.js.map +0 -1
- package/dist/index.es29.js +0 -172
- package/dist/index.es29.js.map +0 -1
- package/dist/index.es30.js +0 -120
- package/dist/index.es30.js.map +0 -1
- package/dist/index.es31.js +0 -46
- package/dist/index.es31.js.map +0 -1
- package/dist/index.es32.js +0 -34
- package/dist/index.es32.js.map +0 -1
- package/dist/index.es33.js +0 -47
- package/dist/index.es33.js.map +0 -1
- package/dist/index.es34.js +0 -49
- package/dist/index.es34.js.map +0 -1
- package/dist/index.es35.js +0 -62
- package/dist/index.es35.js.map +0 -1
- package/dist/index.es36.js +0 -181
- package/dist/index.es36.js.map +0 -1
- package/dist/index.es37.js +0 -28
- package/dist/index.es37.js.map +0 -1
- package/dist/index.es38.js +0 -129
- package/dist/index.es38.js.map +0 -1
- package/dist/index.es39.js +0 -640
- package/dist/index.es39.js.map +0 -1
- package/dist/index.es4.js +0 -66
- package/dist/index.es4.js.map +0 -1
- package/dist/index.es40.js +0 -16
- package/dist/index.es40.js.map +0 -1
- package/dist/index.es41.js +0 -64
- package/dist/index.es41.js.map +0 -1
- package/dist/index.es42.js +0 -33
- package/dist/index.es42.js.map +0 -1
- package/dist/index.es43.js +0 -33
- package/dist/index.es43.js.map +0 -1
- package/dist/index.es44.js +0 -117
- package/dist/index.es44.js.map +0 -1
- package/dist/index.es45.js +0 -69
- package/dist/index.es45.js.map +0 -1
- package/dist/index.es46.js +0 -20
- package/dist/index.es46.js.map +0 -1
- package/dist/index.es47.js +0 -46
- package/dist/index.es47.js.map +0 -1
- package/dist/index.es48.js +0 -70
- package/dist/index.es48.js.map +0 -1
- package/dist/index.es49.js +0 -57
- package/dist/index.es49.js.map +0 -1
- package/dist/index.es5.js +0 -68
- package/dist/index.es5.js.map +0 -1
- package/dist/index.es50.js +0 -9
- package/dist/index.es50.js.map +0 -1
- package/dist/index.es51.js +0 -21
- package/dist/index.es51.js.map +0 -1
- package/dist/index.es6.js +0 -149
- package/dist/index.es6.js.map +0 -1
- package/dist/index.es7.js +0 -12
- package/dist/index.es7.js.map +0 -1
- package/dist/index.es8.js +0 -55
- package/dist/index.es8.js.map +0 -1
- package/dist/index.es9.js +0 -42
- package/dist/index.es9.js.map +0 -1
package/dist/index.es48.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4
|
-
import "class-variance-authority";
|
|
5
|
-
import { cn } from "./index.es50.js";
|
|
6
|
-
import { toggleVariants } from "./index.es47.js";
|
|
7
|
-
const ToggleGroupContext = React.createContext({
|
|
8
|
-
size: "default",
|
|
9
|
-
variant: "default",
|
|
10
|
-
spacing: 0
|
|
11
|
-
});
|
|
12
|
-
function ToggleGroup({
|
|
13
|
-
className,
|
|
14
|
-
variant,
|
|
15
|
-
size,
|
|
16
|
-
spacing = 0,
|
|
17
|
-
children,
|
|
18
|
-
...props
|
|
19
|
-
}) {
|
|
20
|
-
return /* @__PURE__ */ jsx(
|
|
21
|
-
ToggleGroupPrimitive.Root,
|
|
22
|
-
{
|
|
23
|
-
"data-slot": "toggle-group",
|
|
24
|
-
"data-variant": variant,
|
|
25
|
-
"data-size": size,
|
|
26
|
-
"data-spacing": spacing,
|
|
27
|
-
style: { "--gap": spacing },
|
|
28
|
-
className: cn(
|
|
29
|
-
"group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",
|
|
30
|
-
className
|
|
31
|
-
),
|
|
32
|
-
...props,
|
|
33
|
-
children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
function ToggleGroupItem({
|
|
38
|
-
className,
|
|
39
|
-
children,
|
|
40
|
-
variant,
|
|
41
|
-
size,
|
|
42
|
-
...props
|
|
43
|
-
}) {
|
|
44
|
-
const context = React.useContext(ToggleGroupContext);
|
|
45
|
-
return /* @__PURE__ */ jsx(
|
|
46
|
-
ToggleGroupPrimitive.Item,
|
|
47
|
-
{
|
|
48
|
-
"data-slot": "toggle-group-item",
|
|
49
|
-
"data-variant": context.variant || variant,
|
|
50
|
-
"data-size": context.size || size,
|
|
51
|
-
"data-spacing": context.spacing,
|
|
52
|
-
className: cn(
|
|
53
|
-
toggleVariants({
|
|
54
|
-
variant: context.variant || variant,
|
|
55
|
-
size: context.size || size
|
|
56
|
-
}),
|
|
57
|
-
"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10",
|
|
58
|
-
"data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",
|
|
59
|
-
className
|
|
60
|
-
),
|
|
61
|
-
...props,
|
|
62
|
-
children
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
ToggleGroup,
|
|
68
|
-
ToggleGroupItem
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=index.es48.js.map
|
package/dist/index.es48.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es48.js","sources":["../lib/components/ui/toggle-group.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\nimport { toggleVariants } from \"./toggle\";\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants> & {\n spacing?: number;\n }\n>({\n size: \"default\",\n variant: \"default\",\n spacing: 0,\n});\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n spacing = 0,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants> & {\n spacing?: number;\n }) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n data-spacing={spacing}\n style={{ \"--gap\": spacing } as React.CSSProperties}\n className={cn(\n \"group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs\",\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size, spacing }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n );\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-spacing={context.spacing}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n \"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10\",\n \"data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l\",\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n}\n\nexport { ToggleGroup, ToggleGroupItem };\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,qBAAqB,MAAM,cAI/B;AAAA,EACA,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AACX,CAAC;AAED,SAAS,YAAY;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACL,GAGK;AACH,SACE;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACC,aAAU;AAAA,MACV,gBAAc;AAAA,MACd,aAAW;AAAA,MACX,gBAAc;AAAA,MACd,OAAO,EAAE,SAAS,QAAA;AAAA,MAClB,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,MAEJ,UAAA,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,SAAS,MAAM,QAAA,GAClD,SAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACuC;AACrC,QAAM,UAAU,MAAM,WAAW,kBAAkB;AAEnD,SACE;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACC,aAAU;AAAA,MACV,gBAAc,QAAQ,WAAW;AAAA,MACjC,aAAW,QAAQ,QAAQ;AAAA,MAC3B,gBAAc,QAAQ;AAAA,MACtB,WAAW;AAAA,QACT,eAAe;AAAA,UACb,SAAS,QAAQ,WAAW;AAAA,UAC5B,MAAM,QAAQ,QAAQ;AAAA,QAAA,CACvB;AAAA,QACD;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
package/dist/index.es49.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4
|
-
import { cn } from "./index.es50.js";
|
|
5
|
-
function TooltipProvider({
|
|
6
|
-
delayDuration = 0,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
TooltipPrimitive.Provider,
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "tooltip-provider",
|
|
13
|
-
delayDuration,
|
|
14
|
-
...props
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
function Tooltip({
|
|
19
|
-
...props
|
|
20
|
-
}) {
|
|
21
|
-
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
|
|
22
|
-
}
|
|
23
|
-
function TooltipTrigger({
|
|
24
|
-
...props
|
|
25
|
-
}) {
|
|
26
|
-
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
27
|
-
}
|
|
28
|
-
function TooltipContent({
|
|
29
|
-
className,
|
|
30
|
-
sideOffset = 0,
|
|
31
|
-
children,
|
|
32
|
-
...props
|
|
33
|
-
}) {
|
|
34
|
-
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
35
|
-
TooltipPrimitive.Content,
|
|
36
|
-
{
|
|
37
|
-
"data-slot": "tooltip-content",
|
|
38
|
-
sideOffset,
|
|
39
|
-
className: cn(
|
|
40
|
-
"bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
41
|
-
className
|
|
42
|
-
),
|
|
43
|
-
...props,
|
|
44
|
-
children: [
|
|
45
|
-
children,
|
|
46
|
-
/* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
) });
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
Tooltip,
|
|
53
|
-
TooltipContent,
|
|
54
|
-
TooltipProvider,
|
|
55
|
-
TooltipTrigger
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=index.es49.js.map
|
package/dist/index.es49.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es49.js","sources":["../lib/components/ui/tooltip.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n}\n\nfunction TooltipTrigger({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance\",\n className\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"],"names":[],"mappings":";;;;AAKA,SAAS,gBAAgB;AAAA,EACvB,gBAAgB;AAAA,EAChB,GAAG;AACL,GAA2D;AACzD,SACE;AAAA,IAAC,iBAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,QAAQ;AAAA,EACf,GAAG;AACL,GAAuD;AACrD,SACE,oBAAC,iBAAA,EACC,UAAA,oBAAC,iBAAiB,MAAjB,EAAsB,aAAU,WAAW,GAAG,MAAA,CAAO,EAAA,CACxD;AAEJ;AAEA,SAAS,eAAe;AAAA,EACtB,GAAG;AACL,GAA0D;AACxD,6BAAQ,iBAAiB,SAAjB,EAAyB,aAAU,mBAAmB,GAAG,OAAO;AAC1E;AAEA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA,GAAG;AACL,GAA0D;AACxD,SACE,oBAAC,iBAAiB,QAAjB,EACC,UAAA;AAAA,IAAC,iBAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA;AAAA,QACD,oBAAC,iBAAiB,OAAjB,EAAuB,WAAU,qGAAA,CAAqG;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE3I;AAEJ;"}
|
package/dist/index.es5.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "./index.es50.js";
|
|
5
|
-
const alertVariants = cva(
|
|
6
|
-
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
7
|
-
{
|
|
8
|
-
variants: {
|
|
9
|
-
variant: {
|
|
10
|
-
default: "bg-card text-card-foreground",
|
|
11
|
-
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
defaultVariants: {
|
|
15
|
-
variant: "default"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
function Alert({
|
|
20
|
-
className,
|
|
21
|
-
variant,
|
|
22
|
-
...props
|
|
23
|
-
}) {
|
|
24
|
-
return /* @__PURE__ */ jsx(
|
|
25
|
-
"div",
|
|
26
|
-
{
|
|
27
|
-
"data-slot": "alert",
|
|
28
|
-
role: "alert",
|
|
29
|
-
className: cn(alertVariants({ variant }), className),
|
|
30
|
-
...props
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
function AlertTitle({ className, ...props }) {
|
|
35
|
-
return /* @__PURE__ */ jsx(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
"data-slot": "alert-title",
|
|
39
|
-
className: cn(
|
|
40
|
-
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
41
|
-
className
|
|
42
|
-
),
|
|
43
|
-
...props
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
function AlertDescription({
|
|
48
|
-
className,
|
|
49
|
-
...props
|
|
50
|
-
}) {
|
|
51
|
-
return /* @__PURE__ */ jsx(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
"data-slot": "alert-description",
|
|
55
|
-
className: cn(
|
|
56
|
-
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
57
|
-
className
|
|
58
|
-
),
|
|
59
|
-
...props
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
Alert,
|
|
65
|
-
AlertDescription,
|
|
66
|
-
AlertTitle
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=index.es5.js.map
|
package/dist/index.es5.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es5.js","sources":["../lib/components/ui/alert.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive:\n \"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n \"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n \"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Alert, AlertTitle, AlertDescription };\n"],"names":[],"mappings":";;;;AAKA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,SAAS,MAAM;AAAA,EACb;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAqE;AACnE,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,MAAK;AAAA,MACL,WAAW,GAAG,cAAc,EAAE,QAAA,CAAS,GAAG,SAAS;AAAA,MAClD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;AACxE,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA,GAAG;AACL,GAAgC;AAC9B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es50.js
DELETED
package/dist/index.es50.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es50.js","sources":["../lib/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"names":[],"mappings":";;AAGO,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;"}
|
package/dist/index.es51.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
const MOBILE_BREAKPOINT = 768;
|
|
3
|
-
function useIsMobile() {
|
|
4
|
-
const [isMobile, setIsMobile] = React.useState(
|
|
5
|
-
void 0
|
|
6
|
-
);
|
|
7
|
-
React.useEffect(() => {
|
|
8
|
-
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
9
|
-
const onChange = () => {
|
|
10
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
11
|
-
};
|
|
12
|
-
mql.addEventListener("change", onChange);
|
|
13
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
14
|
-
return () => mql.removeEventListener("change", onChange);
|
|
15
|
-
}, []);
|
|
16
|
-
return !!isMobile;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
useIsMobile
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=index.es51.js.map
|
package/dist/index.es51.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es51.js","sources":["../lib/hooks/use-mobile.ts"],"sourcesContent":["import * as React from \"react\";\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(\n undefined\n );\n\n React.useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n };\n mql.addEventListener(\"change\", onChange);\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n return () => mql.removeEventListener(\"change\", onChange);\n }, []);\n\n return !!isMobile;\n}\n"],"names":[],"mappings":";AAEA,MAAM,oBAAoB;AAEnB,SAAS,cAAc;AAC5B,QAAM,CAAC,UAAU,WAAW,IAAI,MAAM;AAAA,IACpC;AAAA,EAAA;AAGF,QAAM,UAAU,MAAM;AACpB,UAAM,MAAM,OAAO,WAAW,eAAe,oBAAoB,CAAC,KAAK;AACvE,UAAM,WAAW,MAAM;AACrB,kBAAY,OAAO,aAAa,iBAAiB;AAAA,IACnD;AACA,QAAI,iBAAiB,UAAU,QAAQ;AACvC,gBAAY,OAAO,aAAa,iBAAiB;AACjD,WAAO,MAAM,IAAI,oBAAoB,UAAU,QAAQ;AAAA,EACzD,GAAG,CAAA,CAAE;AAEL,SAAO,CAAC,CAAC;AACX;"}
|
package/dist/index.es6.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import "react";
|
|
4
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
5
|
-
import { cn } from "./index.es50.js";
|
|
6
|
-
import { buttonVariants } from "./index.es11.js";
|
|
7
|
-
function AlertDialog({
|
|
8
|
-
...props
|
|
9
|
-
}) {
|
|
10
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
11
|
-
}
|
|
12
|
-
function AlertDialogTrigger({
|
|
13
|
-
...props
|
|
14
|
-
}) {
|
|
15
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
16
|
-
}
|
|
17
|
-
function AlertDialogPortal({
|
|
18
|
-
...props
|
|
19
|
-
}) {
|
|
20
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
21
|
-
}
|
|
22
|
-
function AlertDialogOverlay({
|
|
23
|
-
className,
|
|
24
|
-
...props
|
|
25
|
-
}) {
|
|
26
|
-
return /* @__PURE__ */ jsx(
|
|
27
|
-
AlertDialogPrimitive.Overlay,
|
|
28
|
-
{
|
|
29
|
-
"data-slot": "alert-dialog-overlay",
|
|
30
|
-
className: cn(
|
|
31
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
32
|
-
className
|
|
33
|
-
),
|
|
34
|
-
...props
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
function AlertDialogContent({
|
|
39
|
-
className,
|
|
40
|
-
...props
|
|
41
|
-
}) {
|
|
42
|
-
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
43
|
-
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
-
AlertDialogPrimitive.Content,
|
|
46
|
-
{
|
|
47
|
-
"data-slot": "alert-dialog-content",
|
|
48
|
-
className: cn(
|
|
49
|
-
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
50
|
-
className
|
|
51
|
-
),
|
|
52
|
-
...props
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
] });
|
|
56
|
-
}
|
|
57
|
-
function AlertDialogHeader({
|
|
58
|
-
className,
|
|
59
|
-
...props
|
|
60
|
-
}) {
|
|
61
|
-
return /* @__PURE__ */ jsx(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
"data-slot": "alert-dialog-header",
|
|
65
|
-
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
66
|
-
...props
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
function AlertDialogFooter({
|
|
71
|
-
className,
|
|
72
|
-
...props
|
|
73
|
-
}) {
|
|
74
|
-
return /* @__PURE__ */ jsx(
|
|
75
|
-
"div",
|
|
76
|
-
{
|
|
77
|
-
"data-slot": "alert-dialog-footer",
|
|
78
|
-
className: cn(
|
|
79
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
80
|
-
className
|
|
81
|
-
),
|
|
82
|
-
...props
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
function AlertDialogTitle({
|
|
87
|
-
className,
|
|
88
|
-
...props
|
|
89
|
-
}) {
|
|
90
|
-
return /* @__PURE__ */ jsx(
|
|
91
|
-
AlertDialogPrimitive.Title,
|
|
92
|
-
{
|
|
93
|
-
"data-slot": "alert-dialog-title",
|
|
94
|
-
className: cn("text-lg font-semibold", className),
|
|
95
|
-
...props
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
function AlertDialogDescription({
|
|
100
|
-
className,
|
|
101
|
-
...props
|
|
102
|
-
}) {
|
|
103
|
-
return /* @__PURE__ */ jsx(
|
|
104
|
-
AlertDialogPrimitive.Description,
|
|
105
|
-
{
|
|
106
|
-
"data-slot": "alert-dialog-description",
|
|
107
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
108
|
-
...props
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
function AlertDialogAction({
|
|
113
|
-
className,
|
|
114
|
-
...props
|
|
115
|
-
}) {
|
|
116
|
-
return /* @__PURE__ */ jsx(
|
|
117
|
-
AlertDialogPrimitive.Action,
|
|
118
|
-
{
|
|
119
|
-
className: cn(buttonVariants(), className),
|
|
120
|
-
...props
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
function AlertDialogCancel({
|
|
125
|
-
className,
|
|
126
|
-
...props
|
|
127
|
-
}) {
|
|
128
|
-
return /* @__PURE__ */ jsx(
|
|
129
|
-
AlertDialogPrimitive.Cancel,
|
|
130
|
-
{
|
|
131
|
-
className: cn(buttonVariants({ variant: "outline" }), className),
|
|
132
|
-
...props
|
|
133
|
-
}
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
export {
|
|
137
|
-
AlertDialog,
|
|
138
|
-
AlertDialogAction,
|
|
139
|
-
AlertDialogCancel,
|
|
140
|
-
AlertDialogContent,
|
|
141
|
-
AlertDialogDescription,
|
|
142
|
-
AlertDialogFooter,
|
|
143
|
-
AlertDialogHeader,
|
|
144
|
-
AlertDialogOverlay,
|
|
145
|
-
AlertDialogPortal,
|
|
146
|
-
AlertDialogTitle,
|
|
147
|
-
AlertDialogTrigger
|
|
148
|
-
};
|
|
149
|
-
//# sourceMappingURL=index.es6.js.map
|
package/dist/index.es6.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es6.js","sources":["../lib/components/ui/alert-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\n\nimport { cn } from \"@/lib/utils\";\nimport { buttonVariants } from \"./button\";\n\nfunction AlertDialog({\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\nfunction AlertDialogTrigger({\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {\n return (\n <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />\n );\n}\n\nfunction AlertDialogPortal({\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n return (\n <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />\n );\n}\n\nfunction AlertDialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\n return (\n <AlertDialogPrimitive.Overlay\n data-slot=\"alert-dialog-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogContent({\n className,\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {\n return (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n data-slot=\"alert-dialog-content\"\n className={cn(\n \"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n className\n )}\n {...props}\n />\n </AlertDialogPortal>\n );\n}\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n return (\n <AlertDialogPrimitive.Title\n data-slot=\"alert-dialog-title\"\n className={cn(\"text-lg font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n return (\n <AlertDialogPrimitive.Description\n data-slot=\"alert-dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nfunction AlertDialogAction({\n className,\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {\n return (\n <AlertDialogPrimitive.Action\n className={cn(buttonVariants(), className)}\n {...props}\n />\n );\n}\n\nfunction AlertDialogCancel({\n className,\n ...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {\n return (\n <AlertDialogPrimitive.Cancel\n className={cn(buttonVariants({ variant: \"outline\" }), className)}\n {...props}\n />\n );\n}\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n"],"names":[],"mappings":";;;;;;AAQA,SAAS,YAAY;AAAA,EACnB,GAAG;AACL,GAA2D;AACzD,6BAAQ,qBAAqB,MAArB,EAA0B,aAAU,gBAAgB,GAAG,OAAO;AACxE;AAEA,SAAS,mBAAmB;AAAA,EAC1B,GAAG;AACL,GAA8D;AAC5D,6BACG,qBAAqB,SAArB,EAA6B,aAAU,wBAAwB,GAAG,OAAO;AAE9E;AAEA,SAAS,kBAAkB;AAAA,EACzB,GAAG;AACL,GAA6D;AAC3D,6BACG,qBAAqB,QAArB,EAA4B,aAAU,uBAAuB,GAAG,OAAO;AAE5E;AAEA,SAAS,mBAAmB;AAAA,EAC1B;AAAA,EACA,GAAG;AACL,GAA8D;AAC5D,SACE;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,mBAAmB;AAAA,EAC1B;AAAA,EACA,GAAG;AACL,GAA8D;AAC5D,8BACG,mBAAA,EACC,UAAA;AAAA,IAAA,oBAAC,oBAAA,EAAmB;AAAA,IACpB;AAAA,MAAC,qBAAqB;AAAA,MAArB;AAAA,QACC,aAAU;AAAA,QACV,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EACN,GACF;AAEJ;AAEA,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA,GAAG;AACL,GAAgC;AAC9B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,gDAAgD,SAAS;AAAA,MACtE,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA,GAAG;AACL,GAAgC;AAC9B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA,GAAG;AACL,GAA4D;AAC1D,SACE;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,yBAAyB,SAAS;AAAA,MAC/C,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,uBAAuB;AAAA,EAC9B;AAAA,EACA,GAAG;AACL,GAAkE;AAChE,SACE;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,iCAAiC,SAAS;AAAA,MACvD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA,GAAG;AACL,GAA6D;AAC3D,SACE;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACC,WAAW,GAAG,eAAA,GAAkB,SAAS;AAAA,MACxC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA,GAAG;AACL,GAA6D;AAC3D,SACE;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACC,WAAW,GAAG,eAAe,EAAE,SAAS,UAAA,CAAW,GAAG,SAAS;AAAA,MAC9D,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es7.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
4
|
-
function AspectRatio({
|
|
5
|
-
...props
|
|
6
|
-
}) {
|
|
7
|
-
return /* @__PURE__ */ jsx(AspectRatioPrimitive.Root, { "data-slot": "aspect-ratio", ...props });
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
AspectRatio
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=index.es7.js.map
|
package/dist/index.es7.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es7.js","sources":["../lib/components/ui/aspect-ratio.tsx"],"sourcesContent":["\"use client\";\n\nimport * as AspectRatioPrimitive from \"@radix-ui/react-aspect-ratio\";\n\nfunction AspectRatio({\n ...props\n}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {\n return <AspectRatioPrimitive.Root data-slot=\"aspect-ratio\" {...props} />;\n}\n\nexport { AspectRatio };\n"],"names":[],"mappings":";;;AAIA,SAAS,YAAY;AAAA,EACnB,GAAG;AACL,GAA2D;AACzD,6BAAQ,qBAAqB,MAArB,EAA0B,aAAU,gBAAgB,GAAG,OAAO;AACxE;"}
|
package/dist/index.es8.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
4
|
-
import { cn } from "./index.es50.js";
|
|
5
|
-
function Avatar({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
AvatarPrimitive.Root,
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "avatar",
|
|
13
|
-
className: cn(
|
|
14
|
-
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
15
|
-
className
|
|
16
|
-
),
|
|
17
|
-
...props
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
function AvatarImage({
|
|
22
|
-
className,
|
|
23
|
-
...props
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
AvatarPrimitive.Image,
|
|
27
|
-
{
|
|
28
|
-
"data-slot": "avatar-image",
|
|
29
|
-
className: cn("aspect-square size-full", className),
|
|
30
|
-
...props
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
function AvatarFallback({
|
|
35
|
-
className,
|
|
36
|
-
...props
|
|
37
|
-
}) {
|
|
38
|
-
return /* @__PURE__ */ jsx(
|
|
39
|
-
AvatarPrimitive.Fallback,
|
|
40
|
-
{
|
|
41
|
-
"data-slot": "avatar-fallback",
|
|
42
|
-
className: cn(
|
|
43
|
-
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
44
|
-
className
|
|
45
|
-
),
|
|
46
|
-
...props
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
Avatar,
|
|
52
|
-
AvatarFallback,
|
|
53
|
-
AvatarImage
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=index.es8.js.map
|
package/dist/index.es8.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es8.js","sources":["../lib/components/ui/avatar.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Avatar({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n className={cn(\n \"relative flex size-8 shrink-0 overflow-hidden rounded-full\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn(\"aspect-square size-full\", className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn(\n \"bg-muted flex size-full items-center justify-center rounded-full\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"names":[],"mappings":";;;;AAKA,SAAS,OAAO;AAAA,EACd;AAAA,EACA,GAAG;AACL,GAAsD;AACpD,SACE;AAAA,IAAC,gBAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,YAAY;AAAA,EACnB;AAAA,EACA,GAAG;AACL,GAAuD;AACrD,SACE;AAAA,IAAC,gBAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,2BAA2B,SAAS;AAAA,MACjD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA,GAAG;AACL,GAA0D;AACxD,SACE;AAAA,IAAC,gBAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es9.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
-
import { cva } from "class-variance-authority";
|
|
5
|
-
import { cn } from "./index.es50.js";
|
|
6
|
-
const badgeVariants = cva(
|
|
7
|
-
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
12
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
13
|
-
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",
|
|
14
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
defaultVariants: {
|
|
18
|
-
variant: "default"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
function Badge({
|
|
23
|
-
className,
|
|
24
|
-
variant,
|
|
25
|
-
asChild = false,
|
|
26
|
-
...props
|
|
27
|
-
}) {
|
|
28
|
-
const Comp = asChild ? Slot : "span";
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
Comp,
|
|
31
|
-
{
|
|
32
|
-
"data-slot": "badge",
|
|
33
|
-
className: cn(badgeVariants({ variant }), className),
|
|
34
|
-
...props
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
Badge,
|
|
40
|
-
badgeVariants
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=index.es9.js.map
|
package/dist/index.es9.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es9.js","sources":["../lib/components/ui/badge.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] 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\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\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 };\n"],"names":[],"mappings":";;;;;AAMA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,SAAS,MAAM;AAAA,EACb;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,GAAG;AACL,GAC8D;AAC5D,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,cAAc,EAAE,QAAA,CAAS,GAAG,SAAS;AAAA,MAClD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|