@codefast/ui 0.3.11-canary.0 → 0.3.11-canary.1

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 (75) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/package.json +79 -153
  3. package/dist/components/accordion.cjs +0 -98
  4. package/dist/components/alert-dialog.cjs +0 -156
  5. package/dist/components/alert.cjs +0 -84
  6. package/dist/components/aspect-ratio.cjs +0 -44
  7. package/dist/components/avatar.cjs +0 -66
  8. package/dist/components/badge.cjs +0 -67
  9. package/dist/components/breadcrumb.cjs +0 -125
  10. package/dist/components/button-group.cjs +0 -87
  11. package/dist/components/button.cjs +0 -92
  12. package/dist/components/calendar.cjs +0 -151
  13. package/dist/components/card.cjs +0 -105
  14. package/dist/components/carousel.cjs +0 -211
  15. package/dist/components/chart.cjs +0 -251
  16. package/dist/components/checkbox-cards.cjs +0 -70
  17. package/dist/components/checkbox-group.cjs +0 -64
  18. package/dist/components/checkbox.cjs +0 -54
  19. package/dist/components/collapsible.cjs +0 -62
  20. package/dist/components/command.cjs +0 -168
  21. package/dist/components/context-menu.cjs +0 -219
  22. package/dist/components/dialog.cjs +0 -165
  23. package/dist/components/drawer.cjs +0 -144
  24. package/dist/components/dropdown-menu.cjs +0 -222
  25. package/dist/components/empty.cjs +0 -113
  26. package/dist/components/field.cjs +0 -194
  27. package/dist/components/form.cjs +0 -152
  28. package/dist/components/hover-card.cjs +0 -78
  29. package/dist/components/input-group.cjs +0 -156
  30. package/dist/components/input-number.cjs +0 -99
  31. package/dist/components/input-otp.cjs +0 -102
  32. package/dist/components/input-password.cjs +0 -72
  33. package/dist/components/input-search.cjs +0 -81
  34. package/dist/components/input.cjs +0 -46
  35. package/dist/components/item.cjs +0 -186
  36. package/dist/components/kbd.cjs +0 -54
  37. package/dist/components/label.cjs +0 -46
  38. package/dist/components/menubar.cjs +0 -233
  39. package/dist/components/native-select.cjs +0 -75
  40. package/dist/components/navigation-menu.cjs +0 -146
  41. package/dist/components/pagination.cjs +0 -138
  42. package/dist/components/popover.cjs +0 -87
  43. package/dist/components/progress-circle.cjs +0 -185
  44. package/dist/components/progress.cjs +0 -53
  45. package/dist/components/radio-cards.cjs +0 -67
  46. package/dist/components/radio-group.cjs +0 -60
  47. package/dist/components/radio.cjs +0 -48
  48. package/dist/components/resizable.cjs +0 -72
  49. package/dist/components/scroll-area.cjs +0 -141
  50. package/dist/components/select.cjs +0 -181
  51. package/dist/components/separator.cjs +0 -83
  52. package/dist/components/sheet.cjs +0 -185
  53. package/dist/components/sidebar.cjs +0 -507
  54. package/dist/components/skeleton.cjs +0 -44
  55. package/dist/components/slider.cjs +0 -80
  56. package/dist/components/sonner.cjs +0 -58
  57. package/dist/components/spinner.cjs +0 -76
  58. package/dist/components/switch.cjs +0 -50
  59. package/dist/components/table.cjs +0 -118
  60. package/dist/components/tabs.cjs +0 -76
  61. package/dist/components/textarea.cjs +0 -44
  62. package/dist/components/toggle-group.cjs +0 -91
  63. package/dist/components/toggle.cjs +0 -72
  64. package/dist/components/tooltip.cjs +0 -91
  65. package/dist/hooks/use-animated-value.cjs +0 -75
  66. package/dist/hooks/use-copy-to-clipboard.cjs +0 -58
  67. package/dist/hooks/use-is-mobile.cjs +0 -40
  68. package/dist/hooks/use-media-query.cjs +0 -57
  69. package/dist/hooks/use-mutation-observer.cjs +0 -57
  70. package/dist/hooks/use-pagination.cjs +0 -93
  71. package/dist/index.cjs +0 -1081
  72. package/dist/primitives/checkbox-group.cjs +0 -151
  73. package/dist/primitives/input-number.cjs +0 -439
  74. package/dist/primitives/input.cjs +0 -99
  75. package/dist/primitives/progress-circle.cjs +0 -199
@@ -1,83 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __webpack_require__ = {};
4
- (()=>{
5
- __webpack_require__.d = (exports1, definition)=>{
6
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
- enumerable: true,
8
- get: definition[key]
9
- });
10
- };
11
- })();
12
- (()=>{
13
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
14
- })();
15
- (()=>{
16
- __webpack_require__.r = (exports1)=>{
17
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
18
- value: 'Module'
19
- });
20
- Object.defineProperty(exports1, '__esModule', {
21
- value: true
22
- });
23
- };
24
- })();
25
- var __webpack_exports__ = {};
26
- __webpack_require__.r(__webpack_exports__);
27
- __webpack_require__.d(__webpack_exports__, {
28
- Separator: ()=>Separator,
29
- SeparatorItem: ()=>SeparatorItem,
30
- separatorVariants: ()=>separatorVariants
31
- });
32
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
- const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
34
- const react_separator_namespaceObject = require("@radix-ui/react-separator");
35
- const separatorVariants = (0, tailwind_variants_namespaceObject.tv)({
36
- base: "relative flex shrink-0 items-center bg-border",
37
- defaultVariants: {
38
- align: "center",
39
- orientation: "horizontal"
40
- },
41
- variants: {
42
- align: {
43
- center: "justify-center",
44
- end: "justify-end",
45
- start: "justify-start"
46
- },
47
- orientation: {
48
- horizontal: "h-px w-full",
49
- vertical: "h-full w-px flex-col"
50
- }
51
- }
52
- });
53
- function Separator({ align, className, decorative = true, orientation, ...props }) {
54
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_separator_namespaceObject.Root, {
55
- className: separatorVariants({
56
- align,
57
- className,
58
- orientation
59
- }),
60
- "data-slot": "separator",
61
- decorative: decorative,
62
- orientation: orientation,
63
- ...props
64
- });
65
- }
66
- function SeparatorItem({ className, ...props }) {
67
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
68
- className: (0, tailwind_variants_namespaceObject.cn)("absolute mx-2 bg-background px-2 text-sm text-muted-foreground", className),
69
- "data-slot": "separator-item",
70
- ...props
71
- });
72
- }
73
- exports.Separator = __webpack_exports__.Separator;
74
- exports.SeparatorItem = __webpack_exports__.SeparatorItem;
75
- exports.separatorVariants = __webpack_exports__.separatorVariants;
76
- for(var __rspack_i in __webpack_exports__)if (-1 === [
77
- "Separator",
78
- "SeparatorItem",
79
- "separatorVariants"
80
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
81
- Object.defineProperty(exports, '__esModule', {
82
- value: true
83
- });
@@ -1,185 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __webpack_require__ = {};
4
- (()=>{
5
- __webpack_require__.d = (exports1, definition)=>{
6
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
- enumerable: true,
8
- get: definition[key]
9
- });
10
- };
11
- })();
12
- (()=>{
13
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
14
- })();
15
- (()=>{
16
- __webpack_require__.r = (exports1)=>{
17
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
18
- value: 'Module'
19
- });
20
- Object.defineProperty(exports1, '__esModule', {
21
- value: true
22
- });
23
- };
24
- })();
25
- var __webpack_exports__ = {};
26
- __webpack_require__.r(__webpack_exports__);
27
- __webpack_require__.d(__webpack_exports__, {
28
- SheetClose: ()=>SheetClose,
29
- SheetContent: ()=>SheetContent,
30
- Sheet: ()=>Sheet,
31
- SheetFooter: ()=>SheetFooter,
32
- SheetDescription: ()=>SheetDescription,
33
- SheetHeader: ()=>SheetHeader,
34
- SheetTitle: ()=>SheetTitle,
35
- sheetContentVariants: ()=>sheetContentVariants,
36
- SheetBody: ()=>SheetBody,
37
- SheetTrigger: ()=>SheetTrigger
38
- });
39
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
40
- const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
41
- const react_dialog_namespaceObject = require("@radix-ui/react-dialog");
42
- const external_lucide_react_namespaceObject = require("lucide-react");
43
- const external_button_cjs_namespaceObject = require("./button.cjs");
44
- const sheetContentVariants = (0, tailwind_variants_namespaceObject.tv)({
45
- base: "fixed z-50 flex flex-col overflow-auto bg-background shadow-lg ease-ui data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 data-[state=open]:animate-in data-[state=open]:animation-duration-500",
46
- defaultVariants: {
47
- side: "right"
48
- },
49
- variants: {
50
- side: {
51
- bottom: "inset-x-0 bottom-0 max-h-[80vh] border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
52
- 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",
53
- 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",
54
- top: "inset-x-0 top-0 max-h-[80vh] border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top"
55
- }
56
- }
57
- });
58
- function Sheet({ children, ...props }) {
59
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root, {
60
- "data-slot": "sheet",
61
- ...props,
62
- children: children
63
- });
64
- }
65
- function SheetTrigger({ ...props }) {
66
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger, {
67
- "data-slot": "sheet-trigger",
68
- ...props
69
- });
70
- }
71
- function SheetContent({ children, className, classNames, side = "right", ...props }) {
72
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Portal, {
73
- children: [
74
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay, {
75
- className: (0, tailwind_variants_namespaceObject.cn)("fixed inset-0 z-50 bg-black/50 ease-ui data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=open]:fade-in-0", classNames?.overlay),
76
- "data-slot": "sheet-overlay"
77
- }),
78
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content, {
79
- className: sheetContentVariants({
80
- className: [
81
- classNames?.content,
82
- className
83
- ],
84
- side
85
- }),
86
- "data-slot": "sheet-content",
87
- ...props,
88
- children: [
89
- children,
90
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close, {
91
- className: (0, external_button_cjs_namespaceObject.buttonVariants)({
92
- className: [
93
- "absolute top-4 right-4 size-7",
94
- classNames?.close
95
- ],
96
- size: "icon",
97
- variant: "ghost"
98
- }),
99
- "data-slot": "sheet-close",
100
- children: [
101
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon, {
102
- className: "size-4"
103
- }),
104
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
105
- className: "sr-only",
106
- children: "Close"
107
- })
108
- ]
109
- })
110
- ]
111
- })
112
- ]
113
- });
114
- }
115
- function SheetHeader({ className, ...props }) {
116
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("header", {
117
- className: (0, tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left", className),
118
- "data-slot": "sheet-header",
119
- ...props
120
- });
121
- }
122
- function SheetBody({ className, ...props }) {
123
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("main", {
124
- className: (0, tailwind_variants_namespaceObject.cn)("px-6 py-2", className),
125
- "data-slot": "sheet-body",
126
- ...props
127
- });
128
- }
129
- function SheetFooter({ className, ...props }) {
130
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("footer", {
131
- className: (0, tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end", className),
132
- "data-slot": "sheet-footer",
133
- ...props
134
- });
135
- }
136
- function SheetTitle({ className, ...props }) {
137
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title, {
138
- className: (0, tailwind_variants_namespaceObject.cn)("text-lg font-semibold text-foreground", className),
139
- "data-slot": "sheet-title",
140
- ...props
141
- });
142
- }
143
- function SheetDescription({ className, ...props }) {
144
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description, {
145
- className: (0, tailwind_variants_namespaceObject.cn)("text-sm text-muted-foreground", className),
146
- "data-slot": "sheet-description",
147
- ...props
148
- });
149
- }
150
- function SheetClose({ className, size, variant = "outline", ...props }) {
151
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close, {
152
- className: (0, external_button_cjs_namespaceObject.buttonVariants)({
153
- className,
154
- size,
155
- variant
156
- }),
157
- "data-slot": "sheet-close",
158
- ...props
159
- });
160
- }
161
- exports.Sheet = __webpack_exports__.Sheet;
162
- exports.SheetBody = __webpack_exports__.SheetBody;
163
- exports.SheetClose = __webpack_exports__.SheetClose;
164
- exports.SheetContent = __webpack_exports__.SheetContent;
165
- exports.SheetDescription = __webpack_exports__.SheetDescription;
166
- exports.SheetFooter = __webpack_exports__.SheetFooter;
167
- exports.SheetHeader = __webpack_exports__.SheetHeader;
168
- exports.SheetTitle = __webpack_exports__.SheetTitle;
169
- exports.SheetTrigger = __webpack_exports__.SheetTrigger;
170
- exports.sheetContentVariants = __webpack_exports__.sheetContentVariants;
171
- for(var __rspack_i in __webpack_exports__)if (-1 === [
172
- "Sheet",
173
- "SheetBody",
174
- "SheetClose",
175
- "SheetContent",
176
- "SheetDescription",
177
- "SheetFooter",
178
- "SheetHeader",
179
- "SheetTitle",
180
- "SheetTrigger",
181
- "sheetContentVariants"
182
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
183
- Object.defineProperty(exports, '__esModule', {
184
- value: true
185
- });