@codefast/ui 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/components/accordion.cjs +97 -1
- package/dist/components/accordion.d.ts +4 -4
- package/dist/components/accordion.js +51 -1
- package/dist/components/alert-dialog.cjs +155 -1
- package/dist/components/alert-dialog.d.ts +11 -11
- package/dist/components/alert-dialog.js +94 -1
- package/dist/components/alert.cjs +84 -1
- package/dist/components/alert.d.ts +5 -5
- package/dist/components/alert.js +41 -1
- package/dist/components/aspect-ratio.cjs +43 -1
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.js +9 -1
- package/dist/components/avatar.cjs +65 -1
- package/dist/components/avatar.d.ts +2 -2
- package/dist/components/avatar.js +25 -1
- package/dist/components/badge.cjs +66 -1
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.js +29 -1
- package/dist/components/breadcrumb.cjs +126 -1
- package/dist/components/breadcrumb.d.ts +8 -8
- package/dist/components/breadcrumb.js +74 -1
- package/dist/components/button-group.cjs +86 -1
- package/dist/components/button-group.d.ts +5 -5
- package/dist/components/button-group.js +43 -1
- package/dist/components/button.cjs +92 -1
- package/dist/components/button.d.ts +6 -6
- package/dist/components/button.js +55 -1
- package/dist/components/calendar.cjs +150 -1
- package/dist/components/calendar.d.ts +12 -19
- package/dist/components/calendar.js +113 -1
- package/dist/components/card.cjs +105 -1
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.js +53 -1
- package/dist/components/carousel.cjs +210 -1
- package/dist/components/carousel.d.ts +10 -10
- package/dist/components/carousel.js +151 -1
- package/dist/components/chart.cjs +250 -3
- package/dist/components/chart.d.ts +9 -9
- package/dist/components/chart.js +198 -3
- package/dist/components/checkbox-cards.cjs +69 -1
- package/dist/components/checkbox-cards.d.ts +2 -2
- package/dist/components/checkbox-cards.js +32 -1
- package/dist/components/checkbox-group.cjs +63 -1
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +26 -1
- package/dist/components/checkbox.cjs +53 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +19 -1
- package/dist/components/collapsible.cjs +61 -1
- package/dist/components/collapsible.d.ts +2 -2
- package/dist/components/collapsible.js +21 -1
- package/dist/components/command.cjs +167 -1
- package/dist/components/command.d.ts +4 -4
- package/dist/components/command.js +106 -1
- package/dist/components/context-menu.cjs +218 -1
- package/dist/components/context-menu.d.ts +4 -4
- package/dist/components/context-menu.js +142 -1
- package/dist/components/dialog.cjs +164 -1
- package/dist/components/dialog.d.ts +10 -10
- package/dist/components/dialog.js +106 -1
- package/dist/components/drawer.cjs +143 -1
- package/dist/components/drawer.d.ts +9 -9
- package/dist/components/drawer.js +85 -1
- package/dist/components/dropdown-menu.cjs +221 -1
- package/dist/components/dropdown-menu.d.ts +4 -4
- package/dist/components/dropdown-menu.js +145 -1
- package/dist/components/empty.cjs +113 -1
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.js +61 -1
- package/dist/components/field.cjs +193 -1
- package/dist/components/field.d.ts +14 -14
- package/dist/components/field.js +129 -1
- package/dist/components/form.cjs +151 -1
- package/dist/components/form.d.ts +10 -10
- package/dist/components/form.js +96 -1
- package/dist/components/hover-card.cjs +77 -1
- package/dist/components/hover-card.d.ts +2 -2
- package/dist/components/hover-card.js +34 -1
- package/dist/components/input-group.cjs +155 -1
- package/dist/components/input-group.d.ts +15 -15
- package/dist/components/input-group.js +97 -1
- package/dist/components/input-number.cjs +98 -1
- package/dist/components/input-number.d.ts +2 -2
- package/dist/components/input-number.js +64 -1
- package/dist/components/input-otp.cjs +101 -1
- package/dist/components/input-otp.d.ts +6 -6
- package/dist/components/input-otp.js +49 -1
- package/dist/components/input-password.cjs +71 -1
- package/dist/components/input-password.d.ts +3 -3
- package/dist/components/input-password.js +37 -1
- package/dist/components/input-search.cjs +80 -1
- package/dist/components/input-search.d.ts +3 -3
- package/dist/components/input-search.js +46 -1
- package/dist/components/input.cjs +45 -1
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +11 -1
- package/dist/components/item.cjs +186 -1
- package/dist/components/item.d.ts +12 -12
- package/dist/components/item.js +119 -1
- package/dist/components/kbd.cjs +54 -1
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +17 -1
- package/dist/components/label.cjs +45 -1
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +11 -1
- package/dist/components/menubar.cjs +232 -1
- package/dist/components/menubar.d.ts +4 -4
- package/dist/components/menubar.js +153 -1
- package/dist/components/native-select.cjs +75 -1
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.js +35 -1
- package/dist/components/navigation-menu.cjs +146 -2
- package/dist/components/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu.js +94 -2
- package/dist/components/pagination.cjs +138 -1
- package/dist/components/pagination.d.ts +10 -10
- package/dist/components/pagination.js +86 -1
- package/dist/components/popover.cjs +86 -1
- package/dist/components/popover.d.ts +3 -3
- package/dist/components/popover.js +40 -1
- package/dist/components/progress-circle.cjs +184 -1
- package/dist/components/progress-circle.d.ts +5 -5
- package/dist/components/progress-circle.js +147 -1
- package/dist/components/progress.cjs +52 -1
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +18 -1
- package/dist/components/radio-cards.cjs +66 -1
- package/dist/components/radio-cards.d.ts +2 -2
- package/dist/components/radio-cards.js +29 -1
- package/dist/components/radio-group.cjs +59 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +22 -1
- package/dist/components/radio.cjs +47 -1
- package/dist/components/radio.d.ts +2 -2
- package/dist/components/radio.js +13 -1
- package/dist/components/resizable.cjs +71 -1
- package/dist/components/resizable.d.ts +8 -8
- package/dist/components/resizable.js +31 -1
- package/dist/components/scroll-area.cjs +140 -1
- package/dist/components/scroll-area.d.ts +5 -5
- package/dist/components/scroll-area.js +100 -1
- package/dist/components/select.cjs +180 -1
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.js +119 -1
- package/dist/components/separator.cjs +82 -1
- package/dist/components/separator.d.ts +5 -5
- package/dist/components/separator.js +42 -1
- package/dist/components/sheet.cjs +184 -1
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sheet.js +123 -1
- package/dist/components/sidebar.cjs +506 -1
- package/dist/components/sidebar.d.ts +31 -31
- package/dist/components/sidebar.js +400 -1
- package/dist/components/skeleton.cjs +44 -1
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +10 -1
- package/dist/components/slider.cjs +79 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +45 -1
- package/dist/components/sonner.cjs +57 -1
- package/dist/components/sonner.d.ts +3 -3
- package/dist/components/sonner.js +17 -1
- package/dist/components/spinner.cjs +75 -1
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +41 -1
- package/dist/components/switch.cjs +49 -1
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +15 -1
- package/dist/components/table.cjs +118 -1
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +63 -1
- package/dist/components/tabs.cjs +75 -1
- package/dist/components/tabs.d.ts +3 -3
- package/dist/components/tabs.js +32 -1
- package/dist/components/textarea.cjs +44 -1
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +10 -1
- package/dist/components/toggle-group.cjs +90 -1
- package/dist/components/toggle-group.d.ts +10 -12
- package/dist/components/toggle-group.js +53 -1
- package/dist/components/toggle.cjs +71 -1
- package/dist/components/toggle.d.ts +10 -12
- package/dist/components/toggle.js +34 -1
- package/dist/components/tooltip.cjs +90 -1
- package/dist/components/tooltip.d.ts +3 -3
- package/dist/components/tooltip.js +44 -1
- package/dist/css/amber.css +95 -1
- package/dist/css/blue.css +95 -1
- package/dist/css/cyan.css +95 -1
- package/dist/css/emerald.css +95 -1
- package/dist/css/fuchsia.css +95 -1
- package/dist/css/gray.css +95 -1
- package/dist/css/green.css +95 -1
- package/dist/css/indigo.css +95 -1
- package/dist/css/lime.css +95 -1
- package/dist/css/neutral.css +95 -1
- package/dist/css/orange.css +95 -1
- package/dist/css/pink.css +95 -1
- package/dist/css/preset.css +118 -1
- package/dist/css/purple.css +95 -1
- package/dist/css/red.css +95 -1
- package/dist/css/rose.css +95 -1
- package/dist/css/sky.css +95 -1
- package/dist/css/slate.css +95 -1
- package/dist/css/stone.css +95 -1
- package/dist/css/style.css +3 -1
- package/dist/css/teal.css +95 -1
- package/dist/css/violet.css +95 -1
- package/dist/css/yellow.css +95 -1
- package/dist/css/zinc.css +95 -1
- package/dist/hooks/use-animated-value.cjs +74 -1
- package/dist/hooks/use-animated-value.d.ts +9 -10
- package/dist/hooks/use-animated-value.js +40 -1
- package/dist/hooks/use-copy-to-clipboard.cjs +57 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts +18 -1
- package/dist/hooks/use-copy-to-clipboard.js +23 -1
- package/dist/hooks/use-is-mobile.cjs +39 -1
- package/dist/hooks/use-is-mobile.d.ts +15 -6
- package/dist/hooks/use-is-mobile.js +5 -1
- package/dist/hooks/use-media-query.cjs +56 -1
- package/dist/hooks/use-media-query.d.ts +11 -3
- package/dist/hooks/use-media-query.js +22 -1
- package/dist/hooks/use-mutation-observer.cjs +56 -1
- package/dist/hooks/use-mutation-observer.d.ts +8 -12
- package/dist/hooks/use-mutation-observer.js +22 -1
- package/dist/hooks/use-pagination.cjs +92 -1
- package/dist/hooks/use-pagination.d.ts +12 -10
- package/dist/hooks/use-pagination.js +55 -1
- package/dist/index.cjs +1081 -1
- package/dist/index.d.ts +130 -131
- package/dist/index.js +69 -1
- package/dist/primitives/checkbox-group.cjs +151 -1
- package/dist/primitives/checkbox-group.d.ts +11 -11
- package/dist/primitives/checkbox-group.js +99 -1
- package/dist/primitives/input-number.cjs +439 -1
- package/dist/primitives/input-number.d.ts +8 -8
- package/dist/primitives/input-number.js +381 -1
- package/dist/primitives/input.cjs +99 -1
- package/dist/primitives/input.d.ts +4 -4
- package/dist/primitives/input.js +53 -1
- package/dist/primitives/progress-circle.cjs +198 -1
- package/dist/primitives/progress-circle.d.ts +7 -7
- package/dist/primitives/progress-circle.js +128 -1
- package/package.json +385 -38
|
@@ -1,2 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
"use client";
|
|
2
|
-
|
|
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
|
+
Slider: ()=>Slider
|
|
29
|
+
});
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
32
|
+
const react_slider_namespaceObject = require("@radix-ui/react-slider");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
|
+
function Slider({ className, defaultValue, max = 100, min = 0, value, ...props }) {
|
|
35
|
+
const _values = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
36
|
+
if (Array.isArray(value)) return value;
|
|
37
|
+
return Array.isArray(defaultValue) ? defaultValue : [
|
|
38
|
+
min,
|
|
39
|
+
max
|
|
40
|
+
];
|
|
41
|
+
}, [
|
|
42
|
+
value,
|
|
43
|
+
defaultValue,
|
|
44
|
+
min,
|
|
45
|
+
max
|
|
46
|
+
]);
|
|
47
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_slider_namespaceObject.Root, {
|
|
48
|
+
className: (0, tailwind_variants_namespaceObject.cn)('relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', className),
|
|
49
|
+
"data-slot": "slider",
|
|
50
|
+
defaultValue: defaultValue,
|
|
51
|
+
max: max,
|
|
52
|
+
min: min,
|
|
53
|
+
value: value,
|
|
54
|
+
...props,
|
|
55
|
+
children: [
|
|
56
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_slider_namespaceObject.Track, {
|
|
57
|
+
className: "bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1",
|
|
58
|
+
"data-slot": "slider-track",
|
|
59
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_slider_namespaceObject.Range, {
|
|
60
|
+
className: "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",
|
|
61
|
+
"data-slot": "slider-range"
|
|
62
|
+
})
|
|
63
|
+
}),
|
|
64
|
+
Array.from({
|
|
65
|
+
length: _values.length
|
|
66
|
+
}, (_, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_slider_namespaceObject.Thumb, {
|
|
67
|
+
"aria-label": "Volume",
|
|
68
|
+
className: (0, tailwind_variants_namespaceObject.cn)('border-primary bg-primary after:bg-background focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 flex size-4 items-center justify-center rounded-full border-2 shadow-sm outline-hidden after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4 active:not-data-disabled:after:size-1'),
|
|
69
|
+
"data-slot": "slider-thumb"
|
|
70
|
+
}, index))
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
exports.Slider = __webpack_exports__.Slider;
|
|
75
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
76
|
+
"Slider"
|
|
77
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
78
|
+
Object.defineProperty(exports, '__esModule', {
|
|
79
|
+
value: true
|
|
80
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps, JSX } from
|
|
2
|
-
import * as SliderPrimitive from
|
|
1
|
+
import type { ComponentProps, JSX } from 'react';
|
|
2
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
3
3
|
type SliderProps = ComponentProps<typeof SliderPrimitive.Root>;
|
|
4
4
|
declare function Slider({ className, defaultValue, max, min, value, ...props }: SliderProps): JSX.Element;
|
|
5
5
|
export { Slider };
|
|
@@ -1,2 +1,46 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@codefast/tailwind-variants";
|
|
4
|
+
import { Range, Root, Thumb, Track } from "@radix-ui/react-slider";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
function Slider({ className, defaultValue, max = 100, min = 0, value, ...props }) {
|
|
7
|
+
const _values = useMemo(()=>{
|
|
8
|
+
if (Array.isArray(value)) return value;
|
|
9
|
+
return Array.isArray(defaultValue) ? defaultValue : [
|
|
10
|
+
min,
|
|
11
|
+
max
|
|
12
|
+
];
|
|
13
|
+
}, [
|
|
14
|
+
value,
|
|
15
|
+
defaultValue,
|
|
16
|
+
min,
|
|
17
|
+
max
|
|
18
|
+
]);
|
|
19
|
+
return /*#__PURE__*/ jsxs(Root, {
|
|
20
|
+
className: cn('relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', className),
|
|
21
|
+
"data-slot": "slider",
|
|
22
|
+
defaultValue: defaultValue,
|
|
23
|
+
max: max,
|
|
24
|
+
min: min,
|
|
25
|
+
value: value,
|
|
26
|
+
...props,
|
|
27
|
+
children: [
|
|
28
|
+
/*#__PURE__*/ jsx(Track, {
|
|
29
|
+
className: "bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1",
|
|
30
|
+
"data-slot": "slider-track",
|
|
31
|
+
children: /*#__PURE__*/ jsx(Range, {
|
|
32
|
+
className: "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",
|
|
33
|
+
"data-slot": "slider-range"
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
Array.from({
|
|
37
|
+
length: _values.length
|
|
38
|
+
}, (_, index)=>/*#__PURE__*/ jsx(Thumb, {
|
|
39
|
+
"aria-label": "Volume",
|
|
40
|
+
className: cn('border-primary bg-primary after:bg-background focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 flex size-4 items-center justify-center rounded-full border-2 shadow-sm outline-hidden after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4 active:not-data-disabled:after:size-1'),
|
|
41
|
+
"data-slot": "slider-thumb"
|
|
42
|
+
}, index))
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export { Slider };
|
|
@@ -1,2 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
"use client";
|
|
2
|
-
|
|
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
|
+
Toaster: ()=>Toaster,
|
|
29
|
+
useSonner: ()=>external_sonner_namespaceObject.useSonner,
|
|
30
|
+
toast: ()=>external_sonner_namespaceObject.toast
|
|
31
|
+
});
|
|
32
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
33
|
+
const external_next_themes_namespaceObject = require("next-themes");
|
|
34
|
+
const external_sonner_namespaceObject = require("sonner");
|
|
35
|
+
function Toaster({ ...props }) {
|
|
36
|
+
const { theme = 'system' } = (0, external_next_themes_namespaceObject.useTheme)();
|
|
37
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_sonner_namespaceObject.Toaster, {
|
|
38
|
+
className: "toaster group",
|
|
39
|
+
style: {
|
|
40
|
+
'--normal-bg': 'var(--popover)',
|
|
41
|
+
'--normal-border': 'var(--border)',
|
|
42
|
+
'--normal-text': 'var(--popover-foreground)'
|
|
43
|
+
},
|
|
44
|
+
theme: theme,
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
exports.Toaster = __webpack_exports__.Toaster;
|
|
49
|
+
exports.toast = __webpack_exports__.toast;
|
|
50
|
+
exports.useSonner = __webpack_exports__.useSonner;
|
|
51
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
52
|
+
"Toaster",
|
|
53
|
+
"toast",
|
|
54
|
+
"useSonner"
|
|
55
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
56
|
+
Object.defineProperty(exports, '__esModule', {
|
|
57
|
+
value: true
|
|
58
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { JSX } from
|
|
2
|
-
import type { ToasterProps as SonnerToasterProps } from
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import type { ToasterProps as SonnerToasterProps } from 'sonner';
|
|
3
3
|
type ToasterProps = SonnerToasterProps;
|
|
4
4
|
declare function Toaster({ ...props }: ToasterProps): JSX.Element;
|
|
5
|
-
export { toast, useSonner } from
|
|
5
|
+
export { toast, useSonner } from 'sonner';
|
|
6
6
|
export { Toaster };
|
|
7
7
|
export type { ToasterProps };
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useTheme } from "next-themes";
|
|
4
|
+
import { Toaster, toast, useSonner } from "sonner";
|
|
5
|
+
function sonner_Toaster({ ...props }) {
|
|
6
|
+
const { theme = 'system' } = useTheme();
|
|
7
|
+
return /*#__PURE__*/ jsx(Toaster, {
|
|
8
|
+
className: "toaster group",
|
|
9
|
+
style: {
|
|
10
|
+
'--normal-bg': 'var(--popover)',
|
|
11
|
+
'--normal-border': 'var(--border)',
|
|
12
|
+
'--normal-text': 'var(--popover-foreground)'
|
|
13
|
+
},
|
|
14
|
+
theme: theme,
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export { sonner_Toaster as Toaster, toast, useSonner };
|
|
@@ -1,2 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
"use client";
|
|
2
|
-
|
|
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
|
+
Spinner: ()=>Spinner
|
|
29
|
+
});
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
32
|
+
const react_visually_hidden_namespaceObject = require("@radix-ui/react-visually-hidden");
|
|
33
|
+
const SPINNER_COUNT = 8;
|
|
34
|
+
function Spinner({ children, className, loading = true, ...props }) {
|
|
35
|
+
if (!loading) return children;
|
|
36
|
+
const spinner = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
37
|
+
className: (0, tailwind_variants_namespaceObject.cn)('relative flex size-4 items-center justify-center opacity-60', className),
|
|
38
|
+
...props,
|
|
39
|
+
children: Array.from({
|
|
40
|
+
length: SPINNER_COUNT
|
|
41
|
+
}, (_, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
42
|
+
className: (0, tailwind_variants_namespaceObject.cn)('before:animate-out before:fade-out-25 before:repeat-infinite before:animation-duration-(--spinner-duration) absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:rounded-full before:bg-current before:delay-(--spinner-delay)'),
|
|
43
|
+
style: {
|
|
44
|
+
'--spinner-delay': `-${((SPINNER_COUNT - index) * 100).toString()}ms`,
|
|
45
|
+
'--spinner-duration': `${(100 * SPINNER_COUNT).toString()}ms`,
|
|
46
|
+
'--spinner-rotate': `${(360 / SPINNER_COUNT * index).toString()}deg`,
|
|
47
|
+
width: `${(100 / SPINNER_COUNT).toString()}%`
|
|
48
|
+
}
|
|
49
|
+
}, index))
|
|
50
|
+
});
|
|
51
|
+
if (void 0 === children) return spinner;
|
|
52
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
|
|
53
|
+
className: "relative",
|
|
54
|
+
children: [
|
|
55
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
56
|
+
"aria-hidden": true,
|
|
57
|
+
className: "invisible contents",
|
|
58
|
+
children: children
|
|
59
|
+
}),
|
|
60
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_visually_hidden_namespaceObject.VisuallyHidden, {
|
|
61
|
+
children: children
|
|
62
|
+
}),
|
|
63
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
64
|
+
className: "absolute inset-0 flex items-center justify-center",
|
|
65
|
+
children: spinner
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
exports.Spinner = __webpack_exports__.Spinner;
|
|
71
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
72
|
+
"Spinner"
|
|
73
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
74
|
+
Object.defineProperty(exports, '__esModule', {
|
|
75
|
+
value: true
|
|
76
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from
|
|
2
|
-
interface SpinnerProps extends ComponentProps<
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
interface SpinnerProps extends ComponentProps<'span'> {
|
|
3
3
|
loading?: boolean;
|
|
4
4
|
}
|
|
5
5
|
declare function Spinner({ children, className, loading, ...props }: SpinnerProps): ReactNode;
|
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@codefast/tailwind-variants";
|
|
4
|
+
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
5
|
+
const SPINNER_COUNT = 8;
|
|
6
|
+
function Spinner({ children, className, loading = true, ...props }) {
|
|
7
|
+
if (!loading) return children;
|
|
8
|
+
const spinner = /*#__PURE__*/ jsx("span", {
|
|
9
|
+
className: cn('relative flex size-4 items-center justify-center opacity-60', className),
|
|
10
|
+
...props,
|
|
11
|
+
children: Array.from({
|
|
12
|
+
length: SPINNER_COUNT
|
|
13
|
+
}, (_, index)=>/*#__PURE__*/ jsx("span", {
|
|
14
|
+
className: cn('before:animate-out before:fade-out-25 before:repeat-infinite before:animation-duration-(--spinner-duration) absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:rounded-full before:bg-current before:delay-(--spinner-delay)'),
|
|
15
|
+
style: {
|
|
16
|
+
'--spinner-delay': `-${((SPINNER_COUNT - index) * 100).toString()}ms`,
|
|
17
|
+
'--spinner-duration': `${(100 * SPINNER_COUNT).toString()}ms`,
|
|
18
|
+
'--spinner-rotate': `${(360 / SPINNER_COUNT * index).toString()}deg`,
|
|
19
|
+
width: `${(100 / SPINNER_COUNT).toString()}%`
|
|
20
|
+
}
|
|
21
|
+
}, index))
|
|
22
|
+
});
|
|
23
|
+
if (void 0 === children) return spinner;
|
|
24
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
25
|
+
className: "relative",
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ jsx("span", {
|
|
28
|
+
"aria-hidden": true,
|
|
29
|
+
className: "invisible contents",
|
|
30
|
+
children: children
|
|
31
|
+
}),
|
|
32
|
+
/*#__PURE__*/ jsx(VisuallyHidden, {
|
|
33
|
+
children: children
|
|
34
|
+
}),
|
|
35
|
+
/*#__PURE__*/ jsx("span", {
|
|
36
|
+
className: "absolute inset-0 flex items-center justify-center",
|
|
37
|
+
children: spinner
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export { Spinner };
|
|
@@ -1,2 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
"use client";
|
|
2
|
-
|
|
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
|
+
Switch: ()=>Switch
|
|
29
|
+
});
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
32
|
+
const react_switch_namespaceObject = require("@radix-ui/react-switch");
|
|
33
|
+
function Switch({ className, ...props }) {
|
|
34
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Root, {
|
|
35
|
+
className: (0, tailwind_variants_namespaceObject.cn)('data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:focus-visible:ring-primary/20 dark:data-[state=checked]:focus-visible:ring-primary/40 focus-visible:not-data-[state=checked]:border-ring/60 focus-visible:ring-ring/50 peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent p-0.75 shadow-xs outline-hidden transition-all focus-visible:ring-3 disabled:opacity-50', className),
|
|
36
|
+
"data-slot": "switch",
|
|
37
|
+
...props,
|
|
38
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Thumb, {
|
|
39
|
+
className: "bg-background dark:not-data-[state=checked]:bg-foreground pointer-events-none block size-3.5 rounded-full shadow-sm transition-transform data-[state=checked]:translate-x-3.5 data-[state=unchecked]:translate-x-0",
|
|
40
|
+
"data-slot": "switch-thumb"
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
exports.Switch = __webpack_exports__.Switch;
|
|
45
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
46
|
+
"Switch"
|
|
47
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
48
|
+
Object.defineProperty(exports, '__esModule', {
|
|
49
|
+
value: true
|
|
50
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps, JSX } from
|
|
2
|
-
import * as SwitchPrimitives from
|
|
1
|
+
import type { ComponentProps, JSX } from 'react';
|
|
2
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
3
|
type SwitchProps = ComponentProps<typeof SwitchPrimitives.Root>;
|
|
4
4
|
declare function Switch({ className, ...props }: SwitchProps): JSX.Element;
|
|
5
5
|
export { Switch };
|
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@codefast/tailwind-variants";
|
|
4
|
+
import { Root, Thumb } from "@radix-ui/react-switch";
|
|
5
|
+
function Switch({ className, ...props }) {
|
|
6
|
+
return /*#__PURE__*/ jsx(Root, {
|
|
7
|
+
className: cn('data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:focus-visible:ring-primary/20 dark:data-[state=checked]:focus-visible:ring-primary/40 focus-visible:not-data-[state=checked]:border-ring/60 focus-visible:ring-ring/50 peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent p-0.75 shadow-xs outline-hidden transition-all focus-visible:ring-3 disabled:opacity-50', className),
|
|
8
|
+
"data-slot": "switch",
|
|
9
|
+
...props,
|
|
10
|
+
children: /*#__PURE__*/ jsx(Thumb, {
|
|
11
|
+
className: "bg-background dark:not-data-[state=checked]:bg-foreground pointer-events-none block size-3.5 rounded-full shadow-sm transition-transform data-[state=checked]:translate-x-3.5 data-[state=unchecked]:translate-x-0",
|
|
12
|
+
"data-slot": "switch-thumb"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export { Switch };
|
|
@@ -1 +1,118 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
TableFooter: ()=>TableFooter,
|
|
28
|
+
TableHead: ()=>TableHead,
|
|
29
|
+
TableCaption: ()=>TableCaption,
|
|
30
|
+
TableBody: ()=>TableBody,
|
|
31
|
+
TableCell: ()=>TableCell,
|
|
32
|
+
TableRow: ()=>TableRow,
|
|
33
|
+
TableHeader: ()=>TableHeader,
|
|
34
|
+
Table: ()=>Table
|
|
35
|
+
});
|
|
36
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
37
|
+
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
38
|
+
function Table({ className, ...props }) {
|
|
39
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
40
|
+
className: "relative w-full overflow-auto",
|
|
41
|
+
"data-slot": "table-cotainer",
|
|
42
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("table", {
|
|
43
|
+
className: (0, tailwind_variants_namespaceObject.cn)('w-full caption-bottom text-sm', className),
|
|
44
|
+
"data-slot": "table",
|
|
45
|
+
...props
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function TableHeader({ className, ...props }) {
|
|
50
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("thead", {
|
|
51
|
+
className: (0, tailwind_variants_namespaceObject.cn)('*:border-b *:has-aria-expanded:bg-transparent', className),
|
|
52
|
+
"data-slot": "table-header",
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function TableBody({ className, ...props }) {
|
|
57
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tbody", {
|
|
58
|
+
className: (0, tailwind_variants_namespaceObject.cn)('*:last-child:border-0', className),
|
|
59
|
+
"data-slot": "table-body",
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function TableFooter({ className, ...props }) {
|
|
64
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tfoot", {
|
|
65
|
+
className: (0, tailwind_variants_namespaceObject.cn)('bg-muted/50 font-medium *:border-t *:border-b-0 *:has-aria-expanded:bg-transparent', className),
|
|
66
|
+
"data-slot": "table-footer",
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function TableRow({ className, ...props }) {
|
|
71
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tr", {
|
|
72
|
+
className: (0, tailwind_variants_namespaceObject.cn)('hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', className),
|
|
73
|
+
"data-slot": "table-row",
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function TableHead({ className, ...props }) {
|
|
78
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("th", {
|
|
79
|
+
className: (0, tailwind_variants_namespaceObject.cn)('p-2 text-left align-middle font-medium', className),
|
|
80
|
+
"data-slot": "table-head",
|
|
81
|
+
...props
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function TableCell({ className, ...props }) {
|
|
85
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("td", {
|
|
86
|
+
className: (0, tailwind_variants_namespaceObject.cn)('p-2 align-middle', className),
|
|
87
|
+
"data-slot": "table-cell",
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function TableCaption({ className, ...props }) {
|
|
92
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("caption", {
|
|
93
|
+
className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground mt-4 text-sm', className),
|
|
94
|
+
"data-slot": "table-caption",
|
|
95
|
+
...props
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
exports.Table = __webpack_exports__.Table;
|
|
99
|
+
exports.TableBody = __webpack_exports__.TableBody;
|
|
100
|
+
exports.TableCaption = __webpack_exports__.TableCaption;
|
|
101
|
+
exports.TableCell = __webpack_exports__.TableCell;
|
|
102
|
+
exports.TableFooter = __webpack_exports__.TableFooter;
|
|
103
|
+
exports.TableHead = __webpack_exports__.TableHead;
|
|
104
|
+
exports.TableHeader = __webpack_exports__.TableHeader;
|
|
105
|
+
exports.TableRow = __webpack_exports__.TableRow;
|
|
106
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
107
|
+
"Table",
|
|
108
|
+
"TableBody",
|
|
109
|
+
"TableCaption",
|
|
110
|
+
"TableCell",
|
|
111
|
+
"TableFooter",
|
|
112
|
+
"TableHead",
|
|
113
|
+
"TableHeader",
|
|
114
|
+
"TableRow"
|
|
115
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
116
|
+
Object.defineProperty(exports, '__esModule', {
|
|
117
|
+
value: true
|
|
118
|
+
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { ComponentProps, JSX } from
|
|
2
|
-
type TableProps = ComponentProps<
|
|
1
|
+
import type { ComponentProps, JSX } from 'react';
|
|
2
|
+
type TableProps = ComponentProps<'table'>;
|
|
3
3
|
declare function Table({ className, ...props }: TableProps): JSX.Element;
|
|
4
|
-
type TableHeaderProps = ComponentProps<
|
|
4
|
+
type TableHeaderProps = ComponentProps<'thead'>;
|
|
5
5
|
declare function TableHeader({ className, ...props }: TableHeaderProps): JSX.Element;
|
|
6
|
-
type TableBodyProps = ComponentProps<
|
|
6
|
+
type TableBodyProps = ComponentProps<'tbody'>;
|
|
7
7
|
declare function TableBody({ className, ...props }: TableBodyProps): JSX.Element;
|
|
8
|
-
type TableFooterProps = ComponentProps<
|
|
8
|
+
type TableFooterProps = ComponentProps<'tfoot'>;
|
|
9
9
|
declare function TableFooter({ className, ...props }: TableFooterProps): JSX.Element;
|
|
10
|
-
type TableRowProps = ComponentProps<
|
|
10
|
+
type TableRowProps = ComponentProps<'tr'>;
|
|
11
11
|
declare function TableRow({ className, ...props }: TableRowProps): JSX.Element;
|
|
12
|
-
type TableHeadProps = ComponentProps<
|
|
12
|
+
type TableHeadProps = ComponentProps<'th'>;
|
|
13
13
|
declare function TableHead({ className, ...props }: TableHeadProps): JSX.Element;
|
|
14
|
-
type TableCellProps = ComponentProps<
|
|
14
|
+
type TableCellProps = ComponentProps<'td'>;
|
|
15
15
|
declare function TableCell({ className, ...props }: TableCellProps): JSX.Element;
|
|
16
|
-
type TableCaptionProps = ComponentProps<
|
|
16
|
+
type TableCaptionProps = ComponentProps<'caption'>;
|
|
17
17
|
declare function TableCaption({ className, ...props }: TableCaptionProps): JSX.Element;
|
|
18
18
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
19
19
|
export type { TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, };
|