@pixpilot/shadcn 0.1.2 → 0.1.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.
Files changed (132) hide show
  1. package/dist/index-ygHlSc0_.d.ts +795 -0
  2. package/dist/index.js +2276 -31
  3. package/package.json +7 -15
  4. package/dist/OrContinueWithSeparator-BQalGx6O.d.ts +0 -11
  5. package/dist/OrContinueWithSeparator-Cs96m5UB.js +0 -28
  6. package/dist/alert-BDcOuBrO.d.ts +0 -24
  7. package/dist/alert-DuQQzE0M.js +0 -39
  8. package/dist/alert-dialog-Iw5UG8d3.d.ts +0 -48
  9. package/dist/avatar-BRZS2oIf.d.ts +0 -19
  10. package/dist/avatar-DWlyZZC1.js +0 -31
  11. package/dist/badge-ChGpGKfr.js +0 -27
  12. package/dist/badge-Dwxq7JaA.d.ts +0 -19
  13. package/dist/button-CSw4bOk7.d.ts +0 -21
  14. package/dist/button-CoM3CepB.js +0 -46
  15. package/dist/calendar-5J34tX7L.js +0 -107
  16. package/dist/calendar-Vx7GBiN5.d.ts +0 -26
  17. package/dist/card-Bf0-1Hox.js +0 -58
  18. package/dist/card-CN1Wv1_W.d.ts +0 -34
  19. package/dist/checkbox-COC2Igpo.d.ts +0 -11
  20. package/dist/checkbox-ChqHvI5Y.js +0 -23
  21. package/dist/command-BzJMrpFw.js +0 -88
  22. package/dist/command-CJXf3-UR.d.ts +0 -52
  23. package/dist/components/index-2Smtu_1u.d.ts +0 -30
  24. package/dist/components/index.js +0 -33
  25. package/dist/components/ui/OrContinueWithSeparator-OYGOTHTw.d.ts +0 -2
  26. package/dist/components/ui/OrContinueWithSeparator.js +0 -7
  27. package/dist/components/ui/alert-DuyLuX68.d.ts +0 -2
  28. package/dist/components/ui/alert-dialog-CUL8nAeI.d.ts +0 -2
  29. package/dist/components/ui/alert-dialog.js +0 -35
  30. package/dist/components/ui/alert.js +0 -6
  31. package/dist/components/ui/avatar-DAQzpqqD.d.ts +0 -2
  32. package/dist/components/ui/avatar.js +0 -6
  33. package/dist/components/ui/badge-BM6RVFS5.d.ts +0 -2
  34. package/dist/components/ui/badge.js +0 -6
  35. package/dist/components/ui/button-D9y8v_Tt.d.ts +0 -2
  36. package/dist/components/ui/button.js +0 -6
  37. package/dist/components/ui/calendar-B9zfwi7H.d.ts +0 -2
  38. package/dist/components/ui/calendar.js +0 -7
  39. package/dist/components/ui/card-BYi1Jf3z.d.ts +0 -2
  40. package/dist/components/ui/card.js +0 -6
  41. package/dist/components/ui/checkbox-QkowwGnR.d.ts +0 -2
  42. package/dist/components/ui/checkbox.js +0 -8
  43. package/dist/components/ui/command-BkXDbodx.d.ts +0 -2
  44. package/dist/components/ui/command.js +0 -9
  45. package/dist/components/ui/dialog-BvEqiJH6.d.ts +0 -2
  46. package/dist/components/ui/dialog.js +0 -6
  47. package/dist/components/ui/dropdown-menu-BJ2FNIH4.d.ts +0 -2
  48. package/dist/components/ui/dropdown-menu.js +0 -6
  49. package/dist/components/ui/file-upload-DZGaOzQS.d.ts +0 -2
  50. package/dist/components/ui/file-upload.js +0 -8
  51. package/dist/components/ui/form-CpVuTht7.d.ts +0 -2
  52. package/dist/components/ui/form.js +0 -7
  53. package/dist/components/ui/index-q7RUuYJ2.d.ts +0 -30
  54. package/dist/components/ui/index.js +0 -33
  55. package/dist/components/ui/input-DVpolrW-.d.ts +0 -2
  56. package/dist/components/ui/input.js +0 -6
  57. package/dist/components/ui/label-BW9JhwyW.d.ts +0 -2
  58. package/dist/components/ui/label.js +0 -6
  59. package/dist/components/ui/pagination-CDtFyXkC.d.ts +0 -2
  60. package/dist/components/ui/pagination.js +0 -33
  61. package/dist/components/ui/popover-B6PDCy8U.d.ts +0 -2
  62. package/dist/components/ui/popover.js +0 -6
  63. package/dist/components/ui/radio-group-DuGtPMcp.d.ts +0 -2
  64. package/dist/components/ui/radio-group.js +0 -6
  65. package/dist/components/ui/select-DAN9r02Z.d.ts +0 -2
  66. package/dist/components/ui/select.js +0 -8
  67. package/dist/components/ui/separator-D53tTv-J.d.ts +0 -2
  68. package/dist/components/ui/separator.js +0 -6
  69. package/dist/components/ui/shadcn-io/tags/index-CnMq6aeV.d.ts +0 -2
  70. package/dist/components/ui/shadcn-io/tags/index.js +0 -13
  71. package/dist/components/ui/shadcn-io/tags-input-inline/index-D7OIPdfu.d.ts +0 -2
  72. package/dist/components/ui/shadcn-io/tags-input-inline/index.js +0 -5
  73. package/dist/components/ui/sheet-Bo7lvlRA.d.ts +0 -2
  74. package/dist/components/ui/sheet.js +0 -6
  75. package/dist/components/ui/slider-lAthKpva.d.ts +0 -2
  76. package/dist/components/ui/slider.js +0 -6
  77. package/dist/components/ui/switch-D7WzMqgv.d.ts +0 -2
  78. package/dist/components/ui/switch.js +0 -8
  79. package/dist/components/ui/tabs-CnjGY6eE.d.ts +0 -2
  80. package/dist/components/ui/tabs.js +0 -6
  81. package/dist/components/ui/textarea-BJpu8fK5.d.ts +0 -2
  82. package/dist/components/ui/textarea.js +0 -6
  83. package/dist/components/ui/tooltip-JdLdCVsY.d.ts +0 -2
  84. package/dist/components/ui/tooltip.js +0 -6
  85. package/dist/dialog-CnHQjTPX.js +0 -88
  86. package/dist/dialog-a61KKgp5.d.ts +0 -47
  87. package/dist/dropdown-menu-BytmAQI6.js +0 -125
  88. package/dist/dropdown-menu-DTRzUFxv.d.ts +0 -77
  89. package/dist/file-upload-BEeMesnR.js +0 -907
  90. package/dist/file-upload-C38U9nyT.d.ts +0 -94
  91. package/dist/form-BjnyYpgw.js +0 -89
  92. package/dist/form-Cx2k120Z.d.ts +0 -45
  93. package/dist/index-2apAhpYW.d.ts +0 -31
  94. package/dist/index-B6o0TAoD.d.ts +0 -31
  95. package/dist/index-B9p9Ocoz.d.ts +0 -39
  96. package/dist/index-CZUtOTjh.d.ts +0 -1
  97. package/dist/index-fkXKhUlW.d.ts +0 -70
  98. package/dist/input-CUeyj64L.js +0 -17
  99. package/dist/input-DCWzuP_2.d.ts +0 -11
  100. package/dist/jsx-runtime-CjFsk39Z.js +0 -274
  101. package/dist/label-DGznqsHm.js +0 -17
  102. package/dist/label-pEqCQKel.d.ts +0 -11
  103. package/dist/lib/index-ChuxSUKt.d.ts +0 -2
  104. package/dist/lib/index.js +0 -4
  105. package/dist/lib/utils-45Ez8x6p.d.ts +0 -2
  106. package/dist/lib/utils.js +0 -3
  107. package/dist/lib-B_fww26I.js +0 -1
  108. package/dist/popover-CV48KL0e.js +0 -37
  109. package/dist/popover-RnfYQfGo.d.ts +0 -22
  110. package/dist/radio-group-BNj4EfLg.d.ts +0 -15
  111. package/dist/radio-group-jaFHISZ7.js +0 -30
  112. package/dist/select-B4b-ZC31.d.ts +0 -52
  113. package/dist/select-C96xvMSx.js +0 -99
  114. package/dist/separator-C71XEO3E.js +0 -19
  115. package/dist/separator-izY8KL7y.d.ts +0 -13
  116. package/dist/sheet-BlZGrRNt.js +0 -84
  117. package/dist/sheet-Dag7L2Xd.d.ts +0 -40
  118. package/dist/slider-CdK5O4pc.js +0 -38
  119. package/dist/slider-DEUGdZC4.d.ts +0 -15
  120. package/dist/src-DQlJgy1h.js +0 -157
  121. package/dist/switch-Bz5Iiy2_.js +0 -21
  122. package/dist/switch-RbFzvnvM.d.ts +0 -11
  123. package/dist/tabs-BjolTUEI.js +0 -38
  124. package/dist/tabs-had5ildI.d.ts +0 -23
  125. package/dist/tags-BnJCu0NQ.js +0 -131
  126. package/dist/tags-input-inline-DnEu3Dyw.js +0 -58
  127. package/dist/textarea-BNZyZgAM.js +0 -16
  128. package/dist/textarea-s8H46Zg0.d.ts +0 -10
  129. package/dist/tooltip-CS40su1S.d.ts +0 -23
  130. package/dist/tooltip-CuYs-__e.js +0 -38
  131. package/dist/utils-D2WOFi-N.js +0 -10
  132. package/dist/utils-_VBxPjie.d.ts +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/shadcn",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
5
  "packageManager": "pnpm@10.17.0",
6
6
  "description": "A collection of reusable UI components built with shadcn/ui and Radix UI primitives.",
7
7
  "author": "m.doaie <m.doaie@hotmail.com>",
@@ -12,23 +12,15 @@
12
12
  "directory": "packages/ui"
13
13
  },
14
14
  "keywords": [],
15
- "exports": "./src/index.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ }
20
+ },
16
21
  "files": [
17
22
  "dist"
18
23
  ],
19
- "publishConfig": {
20
- "access": "public",
21
- "exports": {
22
- ".": {
23
- "types": "./dist/index.d.ts",
24
- "import": "./dist/index.js",
25
- "require": "./dist/index.cjs"
26
- }
27
- },
28
- "main": "./dist/index.cjs",
29
- "module": "./dist/index.js",
30
- "types": "./dist/index.d.ts"
31
- },
32
24
  "scripts": {
33
25
  "prepublishOnly": "pnpm run clean && pnpm run build",
34
26
  "clean": "git clean -xdf .cache .turbo dist",
@@ -1,11 +0,0 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
-
3
- //#region src/components/ui/OrContinueWithSeparator.d.ts
4
-
5
- /**
6
- * A separator with a label for alternative sign-in methods.
7
- * Used in authentication forms to visually separate sections.
8
- */
9
- declare function OrContinueWithSeparator(): react_jsx_runtime12.JSX.Element;
10
- //#endregion
11
- export { OrContinueWithSeparator as t };
@@ -1,28 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as Separator } from "./separator-C71XEO3E.js";
3
- import "react";
4
-
5
- //#region src/components/ui/OrContinueWithSeparator.tsx
6
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
7
- /**
8
- * A separator with a label for alternative sign-in methods.
9
- * Used in authentication forms to visually separate sections.
10
- */
11
- function OrContinueWithSeparator() {
12
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
13
- className: "relative my-4",
14
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
15
- className: "absolute inset-0 flex items-center",
16
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {})
17
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
18
- className: "relative flex justify-center text-xs uppercase",
19
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
20
- className: "bg-background text-muted-foreground px-2",
21
- children: "Or continue with"
22
- })
23
- })]
24
- });
25
- }
26
-
27
- //#endregion
28
- export { OrContinueWithSeparator as t };
@@ -1,24 +0,0 @@
1
- import { VariantProps } from "class-variance-authority";
2
- import * as React from "react";
3
- import * as class_variance_authority_types0 from "class-variance-authority/types";
4
- import * as react_jsx_runtime13 from "react/jsx-runtime";
5
-
6
- //#region src/components/ui/alert.d.ts
7
- declare const alertVariants: (props?: ({
8
- variant?: "default" | "destructive" | null | undefined;
9
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
10
- declare function Alert({
11
- className,
12
- variant,
13
- ...props
14
- }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime13.JSX.Element;
15
- declare function AlertTitle({
16
- className,
17
- ...props
18
- }: React.ComponentProps<'div'>): react_jsx_runtime13.JSX.Element;
19
- declare function AlertDescription({
20
- className,
21
- ...props
22
- }: React.ComponentProps<'div'>): react_jsx_runtime13.JSX.Element;
23
- //#endregion
24
- export { AlertDescription as n, AlertTitle as r, Alert as t };
@@ -1,39 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as cn } from "./utils-D2WOFi-N.js";
3
- import { cva } from "class-variance-authority";
4
- import "react";
5
-
6
- //#region src/components/ui/alert.tsx
7
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
8
- const alertVariants = cva("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", {
9
- variants: { 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
- defaultVariants: { variant: "default" }
14
- });
15
- function Alert({ className, variant, ...props }) {
16
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
17
- "data-slot": "alert",
18
- role: "alert",
19
- className: cn(alertVariants({ variant }), className),
20
- ...props
21
- });
22
- }
23
- function AlertTitle({ className, ...props }) {
24
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
25
- "data-slot": "alert-title",
26
- className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
27
- ...props
28
- });
29
- }
30
- function AlertDescription({ className, ...props }) {
31
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
32
- "data-slot": "alert-description",
33
- className: cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className),
34
- ...props
35
- });
36
- }
37
-
38
- //#endregion
39
- export { AlertDescription as n, AlertTitle as r, Alert as t };
@@ -1,48 +0,0 @@
1
- import * as React from "react";
2
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
-
5
- //#region src/components/ui/alert-dialog.d.ts
6
- declare function AlertDialog({
7
- ...props
8
- }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime0.JSX.Element;
9
- declare function AlertDialogTrigger({
10
- ...props
11
- }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime0.JSX.Element;
12
- declare function AlertDialogPortal({
13
- ...props
14
- }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime0.JSX.Element;
15
- declare function AlertDialogOverlay({
16
- className,
17
- ...props
18
- }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime0.JSX.Element;
19
- declare function AlertDialogContent({
20
- className,
21
- ...props
22
- }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime0.JSX.Element;
23
- declare function AlertDialogHeader({
24
- className,
25
- ...props
26
- }: React.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
27
- declare function AlertDialogFooter({
28
- className,
29
- ...props
30
- }: React.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
31
- declare function AlertDialogTitle({
32
- className,
33
- ...props
34
- }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime0.JSX.Element;
35
- declare function AlertDialogDescription({
36
- className,
37
- ...props
38
- }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime0.JSX.Element;
39
- declare function AlertDialogAction({
40
- className,
41
- ...props
42
- }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime0.JSX.Element;
43
- declare function AlertDialogCancel({
44
- className,
45
- ...props
46
- }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime0.JSX.Element;
47
- //#endregion
48
- export { AlertDialogDescription as a, AlertDialogOverlay as c, AlertDialogTrigger as d, AlertDialogContent as i, AlertDialogPortal as l, AlertDialogAction as n, AlertDialogFooter as o, AlertDialogCancel as r, AlertDialogHeader as s, AlertDialog as t, AlertDialogTitle as u };
@@ -1,19 +0,0 @@
1
- import * as React from "react";
2
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
- import * as react_jsx_runtime106 from "react/jsx-runtime";
4
-
5
- //#region src/components/ui/avatar.d.ts
6
- declare function Avatar({
7
- className,
8
- ...props
9
- }: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime106.JSX.Element;
10
- declare function AvatarImage({
11
- className,
12
- ...props
13
- }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime106.JSX.Element;
14
- declare function AvatarFallback({
15
- className,
16
- ...props
17
- }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime106.JSX.Element;
18
- //#endregion
19
- export { AvatarFallback as n, AvatarImage as r, Avatar as t };
@@ -1,31 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as cn } from "./utils-D2WOFi-N.js";
3
- import "react";
4
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
5
-
6
- //#region src/components/ui/avatar.tsx
7
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
8
- function Avatar({ className, ...props }) {
9
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Root, {
10
- "data-slot": "avatar",
11
- className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
12
- ...props
13
- });
14
- }
15
- function AvatarImage({ className, ...props }) {
16
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Image, {
17
- "data-slot": "avatar-image",
18
- className: cn("aspect-square size-full", className),
19
- ...props
20
- });
21
- }
22
- function AvatarFallback({ className, ...props }) {
23
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Fallback, {
24
- "data-slot": "avatar-fallback",
25
- className: cn("bg-muted flex size-full items-center justify-center rounded-full", className),
26
- ...props
27
- });
28
- }
29
-
30
- //#endregion
31
- export { AvatarFallback as n, AvatarImage as r, Avatar as t };
@@ -1,27 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as cn } from "./utils-D2WOFi-N.js";
3
- import { cva } from "class-variance-authority";
4
- import "react";
5
- import { Slot } from "@radix-ui/react-slot";
6
-
7
- //#region src/components/ui/badge.tsx
8
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
9
- const badgeVariants = cva("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", {
10
- variants: { 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
- defaultVariants: { variant: "default" }
17
- });
18
- function Badge({ className, variant, asChild = false, ...props }) {
19
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(asChild ? Slot : "span", {
20
- "data-slot": "badge",
21
- className: cn(badgeVariants({ variant }), className),
22
- ...props
23
- });
24
- }
25
-
26
- //#endregion
27
- export { badgeVariants as n, Badge as t };
@@ -1,19 +0,0 @@
1
- import { VariantProps } from "class-variance-authority";
2
- import * as React from "react";
3
- import * as class_variance_authority_types1 from "class-variance-authority/types";
4
- import * as react_jsx_runtime127 from "react/jsx-runtime";
5
-
6
- //#region src/components/ui/badge.d.ts
7
- declare const badgeVariants: (props?: ({
8
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
9
- } & class_variance_authority_types1.ClassProp) | undefined) => string;
10
- declare function Badge({
11
- className,
12
- variant,
13
- asChild,
14
- ...props
15
- }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
16
- asChild?: boolean;
17
- }): react_jsx_runtime127.JSX.Element;
18
- //#endregion
19
- export { badgeVariants as n, Badge as t };
@@ -1,21 +0,0 @@
1
- import { VariantProps } from "class-variance-authority";
2
- import * as React from "react";
3
- import * as class_variance_authority_types0 from "class-variance-authority/types";
4
- import * as react_jsx_runtime80 from "react/jsx-runtime";
5
-
6
- //#region src/components/ui/button.d.ts
7
- declare const buttonVariants: (props?: ({
8
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
9
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
10
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
11
- declare function Button({
12
- className,
13
- variant,
14
- size,
15
- asChild,
16
- ...props
17
- }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
18
- asChild?: boolean;
19
- }): react_jsx_runtime80.JSX.Element;
20
- //#endregion
21
- export { buttonVariants as n, Button as t };
@@ -1,46 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as cn } from "./utils-D2WOFi-N.js";
3
- import { cva } from "class-variance-authority";
4
- import "react";
5
- import { Slot } from "@radix-ui/react-slot";
6
-
7
- //#region src/components/ui/button.tsx
8
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
9
- 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", {
10
- variants: {
11
- variant: {
12
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
13
- destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
14
- outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
15
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
16
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
17
- link: "text-primary underline-offset-4 hover:underline"
18
- },
19
- size: {
20
- default: "h-9 px-4 py-2 has-[>svg]:px-3",
21
- sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
22
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
23
- icon: "size-9",
24
- "icon-sm": "size-8",
25
- "icon-lg": "size-10"
26
- }
27
- },
28
- defaultVariants: {
29
- variant: "default",
30
- size: "default"
31
- }
32
- });
33
- function Button({ className, variant, size, asChild = false, ...props }) {
34
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(asChild ? Slot : "button", {
35
- "data-slot": "button",
36
- className: cn(buttonVariants({
37
- variant,
38
- size,
39
- className
40
- })),
41
- ...props
42
- });
43
- }
44
-
45
- //#endregion
46
- export { buttonVariants as n, Button as t };
@@ -1,107 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as cn } from "./utils-D2WOFi-N.js";
3
- import { n as buttonVariants, t as Button } from "./button-CoM3CepB.js";
4
- import * as React from "react";
5
- import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
6
- import { DayPicker, getDefaultClassNames } from "react-day-picker";
7
-
8
- //#region src/components/ui/calendar.tsx
9
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
10
- function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
11
- const defaultClassNames = getDefaultClassNames();
12
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DayPicker, {
13
- showOutsideDays,
14
- className: cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className),
15
- captionLayout,
16
- formatters: {
17
- formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
18
- ...formatters
19
- },
20
- classNames: {
21
- root: cn("w-fit", defaultClassNames.root),
22
- months: cn("flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
23
- month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
24
- nav: cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
25
- button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_previous),
26
- button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_next),
27
- month_caption: cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", defaultClassNames.month_caption),
28
- dropdowns: cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", defaultClassNames.dropdowns),
29
- dropdown_root: cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", defaultClassNames.dropdown_root),
30
- dropdown: cn("absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
31
- caption_label: cn("select-none font-medium", captionLayout === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", defaultClassNames.caption_label),
32
- table: "w-full border-collapse",
33
- weekdays: cn("flex", defaultClassNames.weekdays),
34
- weekday: cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", defaultClassNames.weekday),
35
- week: cn("flex w-full mt-2", defaultClassNames.week),
36
- week_number_header: cn("select-none w-(--cell-size)", defaultClassNames.week_number_header),
37
- week_number: cn("text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
38
- day: cn("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md", defaultClassNames.day),
39
- range_start: cn("rounded-l-md bg-accent", defaultClassNames.range_start),
40
- range_middle: cn("rounded-none", defaultClassNames.range_middle),
41
- range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
42
- today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
43
- outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
44
- disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
45
- hidden: cn("invisible", defaultClassNames.hidden),
46
- ...classNames
47
- },
48
- components: {
49
- Root: ({ className: className$1, rootRef, ...props$1 }) => {
50
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
51
- "data-slot": "calendar",
52
- ref: rootRef,
53
- className: cn(className$1),
54
- ...props$1
55
- });
56
- },
57
- Chevron: ({ className: className$1, orientation, ...props$1 }) => {
58
- if (orientation === "left") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeftIcon, {
59
- className: cn("size-4", className$1),
60
- ...props$1
61
- });
62
- if (orientation === "right") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRightIcon, {
63
- className: cn("size-4", className$1),
64
- ...props$1
65
- });
66
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDownIcon, {
67
- className: cn("size-4", className$1),
68
- ...props$1
69
- });
70
- },
71
- DayButton: CalendarDayButton,
72
- WeekNumber: ({ children, ...props$1 }) => {
73
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
74
- ...props$1,
75
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
76
- className: "flex size-(--cell-size) items-center justify-center text-center",
77
- children
78
- })
79
- });
80
- },
81
- ...components
82
- },
83
- ...props
84
- });
85
- }
86
- function CalendarDayButton({ className, day, modifiers, ...props }) {
87
- const defaultClassNames = getDefaultClassNames();
88
- const ref = React.useRef(null);
89
- React.useEffect(() => {
90
- if (modifiers.focused) ref.current?.focus();
91
- }, [modifiers.focused]);
92
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
93
- ref,
94
- variant: "ghost",
95
- size: "icon",
96
- "data-day": day.date.toLocaleDateString(),
97
- "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
98
- "data-range-start": modifiers.range_start,
99
- "data-range-end": modifiers.range_end,
100
- "data-range-middle": modifiers.range_middle,
101
- className: cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className),
102
- ...props
103
- });
104
- }
105
-
106
- //#endregion
107
- export { CalendarDayButton as n, Calendar as t };
@@ -1,26 +0,0 @@
1
- import { t as Button } from "./button-CSw4bOk7.js";
2
- import * as React from "react";
3
- import { DayButton, DayPicker } from "react-day-picker";
4
- import * as react_jsx_runtime78 from "react/jsx-runtime";
5
-
6
- //#region src/components/ui/calendar.d.ts
7
- declare function Calendar({
8
- className,
9
- classNames,
10
- showOutsideDays,
11
- captionLayout,
12
- buttonVariant,
13
- formatters,
14
- components,
15
- ...props
16
- }: React.ComponentProps<typeof DayPicker> & {
17
- buttonVariant?: React.ComponentProps<typeof Button>['variant'];
18
- }): react_jsx_runtime78.JSX.Element;
19
- declare function CalendarDayButton({
20
- className,
21
- day,
22
- modifiers,
23
- ...props
24
- }: React.ComponentProps<typeof DayButton>): react_jsx_runtime78.JSX.Element;
25
- //#endregion
26
- export { CalendarDayButton as n, Calendar as t };
@@ -1,58 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as cn } from "./utils-D2WOFi-N.js";
3
- import "react";
4
-
5
- //#region src/components/ui/card.tsx
6
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
7
- function Card({ className, ...props }) {
8
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
9
- "data-slot": "card",
10
- className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
11
- ...props
12
- });
13
- }
14
- function CardHeader({ className, ...props }) {
15
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
16
- "data-slot": "card-header",
17
- className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
18
- ...props
19
- });
20
- }
21
- function CardTitle({ className, ...props }) {
22
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
23
- "data-slot": "card-title",
24
- className: cn("leading-none font-semibold", className),
25
- ...props
26
- });
27
- }
28
- function CardDescription({ className, ...props }) {
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
30
- "data-slot": "card-description",
31
- className: cn("text-muted-foreground text-sm", className),
32
- ...props
33
- });
34
- }
35
- function CardAction({ className, ...props }) {
36
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
37
- "data-slot": "card-action",
38
- className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
39
- ...props
40
- });
41
- }
42
- function CardContent({ className, ...props }) {
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
44
- "data-slot": "card-content",
45
- className: cn("px-6", className),
46
- ...props
47
- });
48
- }
49
- function CardFooter({ className, ...props }) {
50
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
51
- "data-slot": "card-footer",
52
- className: cn("flex items-center px-6 [.border-t]:pt-6", className),
53
- ...props
54
- });
55
- }
56
-
57
- //#endregion
58
- export { CardFooter as a, CardDescription as i, CardAction as n, CardHeader as o, CardContent as r, CardTitle as s, Card as t };
@@ -1,34 +0,0 @@
1
- import * as React from "react";
2
- import * as react_jsx_runtime24 from "react/jsx-runtime";
3
-
4
- //#region src/components/ui/card.d.ts
5
- declare function Card({
6
- className,
7
- ...props
8
- }: React.ComponentProps<'div'>): react_jsx_runtime24.JSX.Element;
9
- declare function CardHeader({
10
- className,
11
- ...props
12
- }: React.ComponentProps<'div'>): react_jsx_runtime24.JSX.Element;
13
- declare function CardTitle({
14
- className,
15
- ...props
16
- }: React.ComponentProps<'div'>): react_jsx_runtime24.JSX.Element;
17
- declare function CardDescription({
18
- className,
19
- ...props
20
- }: React.ComponentProps<'div'>): react_jsx_runtime24.JSX.Element;
21
- declare function CardAction({
22
- className,
23
- ...props
24
- }: React.ComponentProps<'div'>): react_jsx_runtime24.JSX.Element;
25
- declare function CardContent({
26
- className,
27
- ...props
28
- }: React.ComponentProps<'div'>): react_jsx_runtime24.JSX.Element;
29
- declare function CardFooter({
30
- className,
31
- ...props
32
- }: React.ComponentProps<'div'>): react_jsx_runtime24.JSX.Element;
33
- //#endregion
34
- export { CardFooter as a, CardDescription as i, CardAction as n, CardHeader as o, CardContent as r, CardTitle as s, Card as t };
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
- import * as react_jsx_runtime23 from "react/jsx-runtime";
4
-
5
- //#region src/components/ui/checkbox.d.ts
6
- declare function Checkbox({
7
- className,
8
- ...props
9
- }: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime23.JSX.Element;
10
- //#endregion
11
- export { Checkbox as t };
@@ -1,23 +0,0 @@
1
- import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
- import { t as cn } from "./utils-D2WOFi-N.js";
3
- import "react";
4
- import { CheckIcon } from "lucide-react";
5
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
6
-
7
- //#region src/components/ui/checkbox.tsx
8
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
9
- function Checkbox({ className, ...props }) {
10
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckboxPrimitive.Root, {
11
- "data-slot": "checkbox",
12
- className: cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
13
- ...props,
14
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckboxPrimitive.Indicator, {
15
- "data-slot": "checkbox-indicator",
16
- className: "grid place-content-center text-current transition-none",
17
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckIcon, { className: "size-3.5" })
18
- })
19
- });
20
- }
21
-
22
- //#endregion
23
- export { Checkbox as t };