@medialane/ui 0.105.0 → 0.107.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.
Files changed (141) hide show
  1. package/dist/components/asset-lightbox.cjs +66 -0
  2. package/dist/components/asset-lightbox.cjs.map +1 -0
  3. package/dist/components/asset-lightbox.d.cts +11 -0
  4. package/dist/components/asset-lightbox.d.ts +11 -0
  5. package/dist/components/asset-lightbox.js +42 -0
  6. package/dist/components/asset-lightbox.js.map +1 -0
  7. package/dist/components/club-owner-actions.cjs +56 -0
  8. package/dist/components/club-owner-actions.cjs.map +1 -0
  9. package/dist/components/club-owner-actions.d.cts +11 -0
  10. package/dist/components/club-owner-actions.d.ts +11 -0
  11. package/dist/components/club-owner-actions.js +22 -0
  12. package/dist/components/club-owner-actions.js.map +1 -0
  13. package/dist/components/collection-activity-tab.cjs +60 -0
  14. package/dist/components/collection-activity-tab.cjs.map +1 -0
  15. package/dist/components/collection-activity-tab.d.cts +10 -0
  16. package/dist/components/collection-activity-tab.d.ts +10 -0
  17. package/dist/components/collection-activity-tab.js +36 -0
  18. package/dist/components/collection-activity-tab.js.map +1 -0
  19. package/dist/components/collection-traits-tab.cjs +79 -0
  20. package/dist/components/collection-traits-tab.cjs.map +1 -0
  21. package/dist/components/collection-traits-tab.d.cts +10 -0
  22. package/dist/components/collection-traits-tab.d.ts +10 -0
  23. package/dist/components/collection-traits-tab.js +55 -0
  24. package/dist/components/collection-traits-tab.js.map +1 -0
  25. package/dist/components/create-form-primitives.cjs +61 -0
  26. package/dist/components/create-form-primitives.cjs.map +1 -0
  27. package/dist/components/create-form-primitives.d.cts +16 -0
  28. package/dist/components/create-form-primitives.d.ts +16 -0
  29. package/dist/components/create-form-primitives.js +36 -0
  30. package/dist/components/create-form-primitives.js.map +1 -0
  31. package/dist/components/creation-record.cjs +86 -0
  32. package/dist/components/creation-record.cjs.map +1 -0
  33. package/dist/components/creation-record.d.cts +14 -0
  34. package/dist/components/creation-record.d.ts +14 -0
  35. package/dist/components/creation-record.js +52 -0
  36. package/dist/components/creation-record.js.map +1 -0
  37. package/dist/components/creator-chip.cjs +58 -0
  38. package/dist/components/creator-chip.cjs.map +1 -0
  39. package/dist/components/creator-chip.d.cts +10 -0
  40. package/dist/components/creator-chip.d.ts +10 -0
  41. package/dist/components/creator-chip.js +24 -0
  42. package/dist/components/creator-chip.js.map +1 -0
  43. package/dist/components/creator-score-inline.cjs +52 -0
  44. package/dist/components/creator-score-inline.cjs.map +1 -0
  45. package/dist/components/creator-score-inline.d.cts +19 -0
  46. package/dist/components/creator-score-inline.d.ts +19 -0
  47. package/dist/components/creator-score-inline.js +18 -0
  48. package/dist/components/creator-score-inline.js.map +1 -0
  49. package/dist/components/dialog.d.cts +9 -9
  50. package/dist/components/dialog.d.ts +9 -9
  51. package/dist/components/ip-type-fields.cjs +307 -0
  52. package/dist/components/ip-type-fields.cjs.map +1 -0
  53. package/dist/components/ip-type-fields.d.cts +17 -0
  54. package/dist/components/ip-type-fields.d.ts +17 -0
  55. package/dist/components/ip-type-fields.js +293 -0
  56. package/dist/components/ip-type-fields.js.map +1 -0
  57. package/dist/components/json-ld.cjs +39 -0
  58. package/dist/components/json-ld.cjs.map +1 -0
  59. package/dist/components/json-ld.d.cts +8 -0
  60. package/dist/components/json-ld.d.ts +8 -0
  61. package/dist/components/json-ld.js +15 -0
  62. package/dist/components/json-ld.js.map +1 -0
  63. package/dist/components/nav-theme-toggle.cjs +66 -0
  64. package/dist/components/nav-theme-toggle.cjs.map +1 -0
  65. package/dist/components/nav-theme-toggle.d.cts +9 -0
  66. package/dist/components/nav-theme-toggle.d.ts +9 -0
  67. package/dist/components/nav-theme-toggle.js +42 -0
  68. package/dist/components/nav-theme-toggle.js.map +1 -0
  69. package/dist/components/order-sort-control.cjs +58 -0
  70. package/dist/components/order-sort-control.cjs.map +1 -0
  71. package/dist/components/order-sort-control.d.cts +13 -0
  72. package/dist/components/order-sort-control.d.ts +13 -0
  73. package/dist/components/order-sort-control.js +39 -0
  74. package/dist/components/order-sort-control.js.map +1 -0
  75. package/dist/components/portfolio-activity.cjs +117 -0
  76. package/dist/components/portfolio-activity.cjs.map +1 -0
  77. package/dist/components/portfolio-activity.d.cts +10 -0
  78. package/dist/components/portfolio-activity.d.ts +10 -0
  79. package/dist/components/portfolio-activity.js +93 -0
  80. package/dist/components/portfolio-activity.js.map +1 -0
  81. package/dist/components/price-history-chart.cjs +130 -0
  82. package/dist/components/price-history-chart.cjs.map +1 -0
  83. package/dist/components/price-history-chart.d.cts +9 -0
  84. package/dist/components/price-history-chart.d.ts +9 -0
  85. package/dist/components/price-history-chart.js +114 -0
  86. package/dist/components/price-history-chart.js.map +1 -0
  87. package/dist/components/sheet.cjs +160 -0
  88. package/dist/components/sheet.cjs.map +1 -0
  89. package/dist/components/sheet.d.cts +30 -0
  90. package/dist/components/sheet.d.ts +30 -0
  91. package/dist/components/sheet.js +117 -0
  92. package/dist/components/sheet.js.map +1 -0
  93. package/dist/components/textarea.cjs +57 -0
  94. package/dist/components/textarea.cjs.map +1 -0
  95. package/dist/components/textarea.d.cts +6 -0
  96. package/dist/components/textarea.d.ts +6 -0
  97. package/dist/components/textarea.js +23 -0
  98. package/dist/components/textarea.js.map +1 -0
  99. package/dist/index.cjs +110 -0
  100. package/dist/index.cjs.map +1 -1
  101. package/dist/index.d.cts +24 -2
  102. package/dist/index.d.ts +24 -2
  103. package/dist/index.js +88 -0
  104. package/dist/index.js.map +1 -1
  105. package/dist/utils/format-activity.cjs +143 -0
  106. package/dist/utils/format-activity.cjs.map +1 -0
  107. package/dist/utils/format-activity.d.cts +14 -0
  108. package/dist/utils/format-activity.d.ts +14 -0
  109. package/dist/utils/format-activity.js +116 -0
  110. package/dist/utils/format-activity.js.map +1 -0
  111. package/dist/utils/proxy-body.cjs +60 -0
  112. package/dist/utils/proxy-body.cjs.map +1 -0
  113. package/dist/utils/proxy-body.d.cts +22 -0
  114. package/dist/utils/proxy-body.d.ts +22 -0
  115. package/dist/utils/proxy-body.js +36 -0
  116. package/dist/utils/proxy-body.js.map +1 -0
  117. package/dist/utils/query-keys.cjs +80 -0
  118. package/dist/utils/query-keys.cjs.map +1 -0
  119. package/dist/utils/query-keys.d.cts +39 -0
  120. package/dist/utils/query-keys.d.ts +39 -0
  121. package/dist/utils/query-keys.js +54 -0
  122. package/dist/utils/query-keys.js.map +1 -0
  123. package/dist/utils/use-activities.cjs +68 -0
  124. package/dist/utils/use-activities.cjs.map +1 -0
  125. package/dist/utils/use-activities.d.cts +20 -0
  126. package/dist/utils/use-activities.d.ts +20 -0
  127. package/dist/utils/use-activities.js +33 -0
  128. package/dist/utils/use-activities.js.map +1 -0
  129. package/dist/utils/use-collections.cjs +113 -0
  130. package/dist/utils/use-collections.cjs.map +1 -0
  131. package/dist/utils/use-collections.d.cts +43 -0
  132. package/dist/utils/use-collections.d.ts +43 -0
  133. package/dist/utils/use-collections.js +75 -0
  134. package/dist/utils/use-collections.js.map +1 -0
  135. package/dist/utils/use-profiles.cjs +69 -0
  136. package/dist/utils/use-profiles.cjs.map +1 -0
  137. package/dist/utils/use-profiles.d.cts +18 -0
  138. package/dist/utils/use-profiles.d.ts +18 -0
  139. package/dist/utils/use-profiles.js +34 -0
  140. package/dist/utils/use-profiles.js.map +1 -0
  141. package/package.json +2 -2
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var sheet_exports = {};
31
+ __export(sheet_exports, {
32
+ Sheet: () => Sheet,
33
+ SheetClose: () => SheetClose,
34
+ SheetContent: () => SheetContent,
35
+ SheetDescription: () => SheetDescription,
36
+ SheetFooter: () => SheetFooter,
37
+ SheetHeader: () => SheetHeader,
38
+ SheetOverlay: () => SheetOverlay,
39
+ SheetPortal: () => SheetPortal,
40
+ SheetTitle: () => SheetTitle,
41
+ SheetTrigger: () => SheetTrigger
42
+ });
43
+ module.exports = __toCommonJS(sheet_exports);
44
+ var import_jsx_runtime = require("react/jsx-runtime");
45
+ var React = __toESM(require("react"), 1);
46
+ var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
47
+ var import_class_variance_authority = require("class-variance-authority");
48
+ var import_lucide_react = require("lucide-react");
49
+ var import_cn = require("../utils/cn.js");
50
+ const Sheet = SheetPrimitive.Root;
51
+ const SheetTrigger = SheetPrimitive.Trigger;
52
+ const SheetClose = SheetPrimitive.Close;
53
+ const SheetPortal = SheetPrimitive.Portal;
54
+ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
+ SheetPrimitive.Overlay,
56
+ {
57
+ className: (0, import_cn.cn)(
58
+ "fixed inset-0 z-50 backdrop-blur-[48px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
59
+ className
60
+ ),
61
+ ...props,
62
+ ref
63
+ }
64
+ ));
65
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
66
+ const sheetVariants = (0, import_class_variance_authority.cva)(
67
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
68
+ {
69
+ variants: {
70
+ side: {
71
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
72
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
73
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
74
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
75
+ }
76
+ },
77
+ defaultVariants: {
78
+ side: "right"
79
+ }
80
+ }
81
+ );
82
+ const SheetContent = React.forwardRef(({ side = "right", className, children, overlayClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPortal, { children: [
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetOverlay, { className: overlayClassName }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
85
+ SheetPrimitive.Content,
86
+ {
87
+ ref,
88
+ className: (0, import_cn.cn)(sheetVariants({ side }), className),
89
+ ...props,
90
+ children: [
91
+ children,
92
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
93
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.X, { className: "h-4 w-4" }),
94
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
95
+ ] })
96
+ ]
97
+ }
98
+ )
99
+ ] }));
100
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
101
+ const SheetHeader = ({
102
+ className,
103
+ ...props
104
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
105
+ "div",
106
+ {
107
+ className: (0, import_cn.cn)(
108
+ "flex flex-col space-y-2 text-center sm:text-left",
109
+ className
110
+ ),
111
+ ...props
112
+ }
113
+ );
114
+ SheetHeader.displayName = "SheetHeader";
115
+ const SheetFooter = ({
116
+ className,
117
+ ...props
118
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
119
+ "div",
120
+ {
121
+ className: (0, import_cn.cn)(
122
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
123
+ className
124
+ ),
125
+ ...props
126
+ }
127
+ );
128
+ SheetFooter.displayName = "SheetFooter";
129
+ const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
130
+ SheetPrimitive.Title,
131
+ {
132
+ ref,
133
+ className: (0, import_cn.cn)("text-lg font-semibold text-foreground", className),
134
+ ...props
135
+ }
136
+ ));
137
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
138
+ const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
139
+ SheetPrimitive.Description,
140
+ {
141
+ ref,
142
+ className: (0, import_cn.cn)("text-sm text-muted-foreground", className),
143
+ ...props
144
+ }
145
+ ));
146
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
147
+ // Annotate the CommonJS export names for ESM import in node:
148
+ 0 && (module.exports = {
149
+ Sheet,
150
+ SheetClose,
151
+ SheetContent,
152
+ SheetDescription,
153
+ SheetFooter,
154
+ SheetHeader,
155
+ SheetOverlay,
156
+ SheetPortal,
157
+ SheetTitle,
158
+ SheetTrigger
159
+ });
160
+ //# sourceMappingURL=sheet.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/sheet.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"../utils/cn.js\"\n\nconst Sheet = SheetPrimitive.Root\n\nconst SheetTrigger = SheetPrimitive.Trigger\n\nconst SheetClose = SheetPrimitive.Close\n\nconst SheetPortal = SheetPrimitive.Portal\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 backdrop-blur-[48px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n ref={ref}\n />\n))\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n }\n)\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {\n overlayClassName?: string;\n}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = \"right\", className, children, overlayClassName, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay className={overlayClassName} />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n))\nSheetContent.displayName = SheetPrimitive.Content.displayName\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className\n )}\n {...props}\n />\n)\nSheetHeader.displayName = \"SheetHeader\"\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className\n )}\n {...props}\n />\n)\nSheetFooter.displayName = \"SheetFooter\"\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n))\nSheetTitle.displayName = SheetPrimitive.Title.displayName\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nSheetDescription.displayName = SheetPrimitive.Description.displayName\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBE;AAnBF,YAAuB;AACvB,qBAAgC;AAChC,sCAAuC;AACvC,0BAAkB;AAElB,gBAAmB;AAEnB,MAAM,QAAQ,eAAe;AAE7B,MAAM,eAAe,eAAe;AAEpC,MAAM,aAAa,eAAe;AAElC,MAAM,cAAc,eAAe;AAEnC,MAAM,eAAe,MAAM,WAGzB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,eAAe;AAAA,EAAf;AAAA,IACC,eAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA,IACJ;AAAA;AACF,CACD;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,MAAM,oBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,QACE;AAAA,QACF,MAAM;AAAA,QACN,OACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAQA,MAAM,eAAe,MAAM,WAGzB,CAAC,EAAE,OAAO,SAAS,WAAW,UAAU,kBAAkB,GAAG,MAAM,GAAG,QACtE,6CAAC,eACC;AAAA,8CAAC,gBAAa,WAAW,kBAAkB;AAAA,EAC3C;AAAA,IAAC,eAAe;AAAA,IAAf;AAAA,MACC;AAAA,MACA,eAAW,cAAG,cAAc,EAAE,KAAK,CAAC,GAAG,SAAS;AAAA,MAC/C,GAAG;AAAA,MAEH;AAAA;AAAA,QACD,6CAAC,eAAe,OAAf,EAAqB,WAAU,4OAC9B;AAAA,sDAAC,yBAAE,WAAU,WAAU;AAAA,UACvB,4CAAC,UAAK,WAAU,WAAU,mBAAK;AAAA,WACjC;AAAA;AAAA;AAAA,EACF;AAAA,GACF,CACD;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA,GAAG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACC,eAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN;AAEF,YAAY,cAAc;AAE1B,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA,GAAG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACC,eAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN;AAEF,YAAY,cAAc;AAE1B,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,eAAe;AAAA,EAAf;AAAA,IACC;AAAA,IACA,eAAW,cAAG,yCAAyC,SAAS;AAAA,IAC/D,GAAG;AAAA;AACN,CACD;AACD,WAAW,cAAc,eAAe,MAAM;AAE9C,MAAM,mBAAmB,MAAM,WAG7B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,eAAe;AAAA,EAAf;AAAA,IACC;AAAA,IACA,eAAW,cAAG,iCAAiC,SAAS;AAAA,IACvD,GAAG;AAAA;AACN,CACD;AACD,iBAAiB,cAAc,eAAe,YAAY;","names":[]}
@@ -0,0 +1,30 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import * as React from 'react';
4
+ import * as SheetPrimitive from '@radix-ui/react-dialog';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
8
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const sheetVariants: (props?: ({
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
15
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
+ overlayClassName?: string;
17
+ }
18
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
19
+ declare const SheetHeader: {
20
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ declare const SheetFooter: {
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
25
+ displayName: string;
26
+ };
27
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
28
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
29
+
30
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
@@ -0,0 +1,30 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import * as React from 'react';
4
+ import * as SheetPrimitive from '@radix-ui/react-dialog';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
8
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const sheetVariants: (props?: ({
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
15
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
+ overlayClassName?: string;
17
+ }
18
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
19
+ declare const SheetHeader: {
20
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ declare const SheetFooter: {
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
25
+ displayName: string;
26
+ };
27
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
28
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
29
+
30
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
@@ -0,0 +1,117 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
5
+ import { cva } from "class-variance-authority";
6
+ import { X } from "lucide-react";
7
+ import { cn } from "../utils/cn.js";
8
+ const Sheet = SheetPrimitive.Root;
9
+ const SheetTrigger = SheetPrimitive.Trigger;
10
+ const SheetClose = SheetPrimitive.Close;
11
+ const SheetPortal = SheetPrimitive.Portal;
12
+ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
13
+ SheetPrimitive.Overlay,
14
+ {
15
+ className: cn(
16
+ "fixed inset-0 z-50 backdrop-blur-[48px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
17
+ className
18
+ ),
19
+ ...props,
20
+ ref
21
+ }
22
+ ));
23
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
24
+ const sheetVariants = cva(
25
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
26
+ {
27
+ variants: {
28
+ side: {
29
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
30
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
31
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
32
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ side: "right"
37
+ }
38
+ }
39
+ );
40
+ const SheetContent = React.forwardRef(({ side = "right", className, children, overlayClassName, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
41
+ /* @__PURE__ */ jsx(SheetOverlay, { className: overlayClassName }),
42
+ /* @__PURE__ */ jsxs(
43
+ SheetPrimitive.Content,
44
+ {
45
+ ref,
46
+ className: cn(sheetVariants({ side }), className),
47
+ ...props,
48
+ children: [
49
+ children,
50
+ /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
51
+ /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
52
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
53
+ ] })
54
+ ]
55
+ }
56
+ )
57
+ ] }));
58
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
59
+ const SheetHeader = ({
60
+ className,
61
+ ...props
62
+ }) => /* @__PURE__ */ jsx(
63
+ "div",
64
+ {
65
+ className: cn(
66
+ "flex flex-col space-y-2 text-center sm:text-left",
67
+ className
68
+ ),
69
+ ...props
70
+ }
71
+ );
72
+ SheetHeader.displayName = "SheetHeader";
73
+ const SheetFooter = ({
74
+ className,
75
+ ...props
76
+ }) => /* @__PURE__ */ jsx(
77
+ "div",
78
+ {
79
+ className: cn(
80
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
81
+ className
82
+ ),
83
+ ...props
84
+ }
85
+ );
86
+ SheetFooter.displayName = "SheetFooter";
87
+ const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
88
+ SheetPrimitive.Title,
89
+ {
90
+ ref,
91
+ className: cn("text-lg font-semibold text-foreground", className),
92
+ ...props
93
+ }
94
+ ));
95
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
96
+ const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
97
+ SheetPrimitive.Description,
98
+ {
99
+ ref,
100
+ className: cn("text-sm text-muted-foreground", className),
101
+ ...props
102
+ }
103
+ ));
104
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
105
+ export {
106
+ Sheet,
107
+ SheetClose,
108
+ SheetContent,
109
+ SheetDescription,
110
+ SheetFooter,
111
+ SheetHeader,
112
+ SheetOverlay,
113
+ SheetPortal,
114
+ SheetTitle,
115
+ SheetTrigger
116
+ };
117
+ //# sourceMappingURL=sheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/sheet.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"../utils/cn.js\"\n\nconst Sheet = SheetPrimitive.Root\n\nconst SheetTrigger = SheetPrimitive.Trigger\n\nconst SheetClose = SheetPrimitive.Close\n\nconst SheetPortal = SheetPrimitive.Portal\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 backdrop-blur-[48px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n ref={ref}\n />\n))\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n }\n)\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {\n overlayClassName?: string;\n}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = \"right\", className, children, overlayClassName, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay className={overlayClassName} />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n))\nSheetContent.displayName = SheetPrimitive.Content.displayName\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className\n )}\n {...props}\n />\n)\nSheetHeader.displayName = \"SheetHeader\"\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className\n )}\n {...props}\n />\n)\nSheetFooter.displayName = \"SheetFooter\"\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n))\nSheetTitle.displayName = SheetPrimitive.Title.displayName\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nSheetDescription.displayName = SheetPrimitive.Description.displayName\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n}\n"],"mappings":";AAqBE,cAgDI,YAhDJ;AAnBF,YAAY,WAAW;AACvB,YAAY,oBAAoB;AAChC,SAAS,WAA8B;AACvC,SAAS,SAAS;AAElB,SAAS,UAAU;AAEnB,MAAM,QAAQ,eAAe;AAE7B,MAAM,eAAe,eAAe;AAEpC,MAAM,aAAa,eAAe;AAElC,MAAM,cAAc,eAAe;AAEnC,MAAM,eAAe,MAAM,WAGzB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,eAAe;AAAA,EAAf;AAAA,IACC,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA,IACJ;AAAA;AACF,CACD;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,QACE;AAAA,QACF,MAAM;AAAA,QACN,OACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAQA,MAAM,eAAe,MAAM,WAGzB,CAAC,EAAE,OAAO,SAAS,WAAW,UAAU,kBAAkB,GAAG,MAAM,GAAG,QACtE,qBAAC,eACC;AAAA,sBAAC,gBAAa,WAAW,kBAAkB;AAAA,EAC3C;AAAA,IAAC,eAAe;AAAA,IAAf;AAAA,MACC;AAAA,MACA,WAAW,GAAG,cAAc,EAAE,KAAK,CAAC,GAAG,SAAS;AAAA,MAC/C,GAAG;AAAA,MAEH;AAAA;AAAA,QACD,qBAAC,eAAe,OAAf,EAAqB,WAAU,4OAC9B;AAAA,8BAAC,KAAE,WAAU,WAAU;AAAA,UACvB,oBAAC,UAAK,WAAU,WAAU,mBAAK;AAAA,WACjC;AAAA;AAAA;AAAA,EACF;AAAA,GACF,CACD;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA,GAAG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACC,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN;AAEF,YAAY,cAAc;AAE1B,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA,GAAG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACC,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN;AAEF,YAAY,cAAc;AAE1B,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,eAAe;AAAA,EAAf;AAAA,IACC;AAAA,IACA,WAAW,GAAG,yCAAyC,SAAS;AAAA,IAC/D,GAAG;AAAA;AACN,CACD;AACD,WAAW,cAAc,eAAe,MAAM;AAE9C,MAAM,mBAAmB,MAAM,WAG7B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,eAAe;AAAA,EAAf;AAAA,IACC;AAAA,IACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,IACvD,GAAG;AAAA;AACN,CACD;AACD,iBAAiB,cAAc,eAAe,YAAY;","names":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var textarea_exports = {};
30
+ __export(textarea_exports, {
31
+ Textarea: () => Textarea
32
+ });
33
+ module.exports = __toCommonJS(textarea_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var React = __toESM(require("react"), 1);
36
+ var import_cn = require("../utils/cn.js");
37
+ const Textarea = React.forwardRef(
38
+ ({ className, ...props }, ref) => {
39
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ "textarea",
41
+ {
42
+ className: (0, import_cn.cn)(
43
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
44
+ className
45
+ ),
46
+ ref,
47
+ ...props
48
+ }
49
+ );
50
+ }
51
+ );
52
+ Textarea.displayName = "Textarea";
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ Textarea
56
+ });
57
+ //# sourceMappingURL=textarea.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/textarea.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQM;AARN,YAAuB;AACvB,gBAAmB;AAInB,MAAM,WAAW,MAAM;AAAA,EACrB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ;AAChC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA,QACA;AAAA,QACC,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+
3
+ type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
4
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
+
6
+ export { Textarea, type TextareaProps };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+
3
+ type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
4
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
+
6
+ export { Textarea, type TextareaProps };
@@ -0,0 +1,23 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../utils/cn.js";
4
+ const Textarea = React.forwardRef(
5
+ ({ className, ...props }, ref) => {
6
+ return /* @__PURE__ */ jsx(
7
+ "textarea",
8
+ {
9
+ className: cn(
10
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
11
+ className
12
+ ),
13
+ ref,
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ );
19
+ Textarea.displayName = "Textarea";
20
+ export {
21
+ Textarea
22
+ };
23
+ //# sourceMappingURL=textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/textarea.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n"],"mappings":"AAQM;AARN,YAAY,WAAW;AACvB,SAAS,UAAU;AAInB,MAAM,WAAW,MAAM;AAAA,EACrB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ;AAChC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA,QACA;AAAA,QACC,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}