@badnpm/ui 0.0.0-stage → 0.0.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.
- package/LICENSE +21 -0
- package/README.md +193 -2
- package/dist/cjs/components/accordion.cjs +24 -0
- package/dist/cjs/components/alert-dialog.cjs +56 -0
- package/dist/cjs/components/alert.cjs +34 -0
- package/dist/cjs/components/aspect-ratio.cjs +12 -0
- package/dist/cjs/components/attachment.cjs +80 -0
- package/dist/cjs/components/avatar.cjs +31 -0
- package/dist/cjs/components/badge.cjs +38 -0
- package/dist/cjs/components/breadcrumb.cjs +46 -0
- package/dist/cjs/components/bubble.cjs +66 -0
- package/dist/cjs/components/button-group.cjs +43 -0
- package/dist/cjs/components/button.cjs +41 -0
- package/dist/cjs/components/calendar.cjs +100 -0
- package/dist/cjs/components/card.cjs +34 -0
- package/dist/cjs/components/carousel.cjs +113 -0
- package/dist/cjs/components/chart.cjs +160 -0
- package/dist/cjs/components/checkbox.cjs +13 -0
- package/dist/cjs/components/code-block.cjs +110 -0
- package/dist/cjs/components/collapsible.cjs +18 -0
- package/dist/cjs/components/combobox.cjs +96 -0
- package/dist/cjs/components/command.cjs +46 -0
- package/dist/cjs/components/context-menu.cjs +69 -0
- package/dist/cjs/components/dialog.cjs +50 -0
- package/dist/cjs/components/drawer.cjs +108 -0
- package/dist/cjs/components/dropdown-menu.cjs +68 -0
- package/dist/cjs/components/empty.cjs +42 -0
- package/dist/cjs/components/field.cjs +80 -0
- package/dist/cjs/components/hover-card.cjs +20 -0
- package/dist/cjs/components/input-group.cjs +66 -0
- package/dist/cjs/components/input-otp.cjs +46 -0
- package/dist/cjs/components/input.cjs +11 -0
- package/dist/cjs/components/item.cjs +91 -0
- package/dist/cjs/components/kbd.cjs +14 -0
- package/dist/cjs/components/label.cjs +11 -0
- package/dist/cjs/components/marker.cjs +41 -0
- package/dist/cjs/components/menubar.cjs +75 -0
- package/dist/cjs/components/message-scroller.cjs +45 -0
- package/dist/cjs/components/message.cjs +30 -0
- package/dist/cjs/components/native-select.cjs +19 -0
- package/dist/cjs/components/navigation-menu.cjs +43 -0
- package/dist/cjs/components/pagination.cjs +36 -0
- package/dist/cjs/components/popover.cjs +31 -0
- package/dist/cjs/components/progress.cjs +28 -0
- package/dist/cjs/components/questionnaire.cjs +70 -0
- package/dist/cjs/components/radio-group.cjs +16 -0
- package/dist/cjs/components/resizable.cjs +39 -0
- package/dist/cjs/components/scroll-area.cjs +15 -0
- package/dist/cjs/components/select.cjs +47 -0
- package/dist/cjs/components/separator.cjs +11 -0
- package/dist/cjs/components/sheet.cjs +47 -0
- package/dist/cjs/components/sidebar.cjs +301 -0
- package/dist/cjs/components/skeleton.cjs +10 -0
- package/dist/cjs/components/slider.cjs +16 -0
- package/dist/cjs/components/spinner.cjs +11 -0
- package/dist/cjs/components/switch.cjs +12 -0
- package/dist/cjs/components/table.cjs +38 -0
- package/dist/cjs/components/tabs.cjs +37 -0
- package/dist/cjs/components/textarea.cjs +10 -0
- package/dist/cjs/components/theme-toggle.cjs +19 -0
- package/dist/cjs/components/toast.cjs +82 -0
- package/dist/cjs/components/toggle-group.cjs +47 -0
- package/dist/cjs/components/toggle.cjs +30 -0
- package/dist/cjs/components/tooltip.cjs +24 -0
- package/dist/cjs/components/trace.cjs +40 -0
- package/dist/cjs/hooks/use-highlighted-code.cjs +73 -0
- package/dist/cjs/hooks/use-hydrated.cjs +15 -0
- package/dist/cjs/hooks/use-mobile.cjs +36 -0
- package/dist/cjs/index.cjs +497 -0
- package/dist/cjs/lib/highlighter.cjs +96 -0
- package/dist/cjs/lib/preference.cjs +40 -0
- package/dist/cjs/providers/preference-provider.cjs +127 -0
- package/dist/cjs/providers/theme-provider.cjs +181 -0
- package/dist/cjs/types/components/accordion.d.ts +9 -0
- package/dist/cjs/types/components/alert-dialog.d.ts +20 -0
- package/dist/cjs/types/components/alert.d.ts +13 -0
- package/dist/cjs/types/components/aspect-ratio.d.ts +7 -0
- package/dist/cjs/types/components/attachment.d.ts +26 -0
- package/dist/cjs/types/components/avatar.d.ts +13 -0
- package/dist/cjs/types/components/badge.d.ts +11 -0
- package/dist/cjs/types/components/breadcrumb.d.ts +12 -0
- package/dist/cjs/types/components/bubble.d.ts +19 -0
- package/dist/cjs/types/components/button-group.d.ts +14 -0
- package/dist/cjs/types/components/button.d.ts +12 -0
- package/dist/cjs/types/components/calendar.d.ts +12 -0
- package/dist/cjs/types/components/card.d.ts +13 -0
- package/dist/cjs/types/components/carousel.d.ts +31 -0
- package/dist/cjs/types/components/chart.d.ts +47 -0
- package/dist/cjs/types/components/checkbox.d.ts +6 -0
- package/dist/cjs/types/components/code-block.d.ts +29 -0
- package/dist/cjs/types/components/collapsible.d.ts +8 -0
- package/dist/cjs/types/components/combobox.d.ts +26 -0
- package/dist/cjs/types/components/command.d.ts +21 -0
- package/dist/cjs/types/components/context-menu.d.ts +31 -0
- package/dist/cjs/types/components/dialog.d.ts +19 -0
- package/dist/cjs/types/components/direction.d.ts +1 -0
- package/dist/cjs/types/components/drawer.d.ts +18 -0
- package/dist/cjs/types/components/dropdown-menu.d.ts +31 -0
- package/dist/cjs/types/components/empty.d.ts +15 -0
- package/dist/cjs/types/components/field.d.ts +28 -0
- package/dist/cjs/types/components/hover-card.d.ts +8 -0
- package/dist/cjs/types/components/index.d.ts +65 -0
- package/dist/cjs/types/components/input-group.d.ts +21 -0
- package/dist/cjs/types/components/input-otp.d.ts +13 -0
- package/dist/cjs/types/components/input.d.ts +5 -0
- package/dist/cjs/types/components/item.d.ts +25 -0
- package/dist/cjs/types/components/kbd.d.ts +6 -0
- package/dist/cjs/types/components/label.d.ts +5 -0
- package/dist/cjs/types/components/marker.d.ts +13 -0
- package/dist/cjs/types/components/menubar.d.ts +31 -0
- package/dist/cjs/types/components/message-scroller.d.ts +13 -0
- package/dist/cjs/types/components/message.d.ts +12 -0
- package/dist/cjs/types/components/native-select.d.ts +10 -0
- package/dist/cjs/types/components/navigation-menu.d.ts +15 -0
- package/dist/cjs/types/components/pagination.d.ts +19 -0
- package/dist/cjs/types/components/popover.d.ts +11 -0
- package/dist/cjs/types/components/progress.d.ts +10 -0
- package/dist/cjs/types/components/questionnaire.d.ts +21 -0
- package/dist/cjs/types/components/radio-group.d.ts +8 -0
- package/dist/cjs/types/components/resizable.d.ts +10 -0
- package/dist/cjs/types/components/scroll-area.d.ts +7 -0
- package/dist/cjs/types/components/select.d.ts +17 -0
- package/dist/cjs/types/components/separator.d.ts +6 -0
- package/dist/cjs/types/components/sheet.d.ts +16 -0
- package/dist/cjs/types/components/sidebar.d.ts +66 -0
- package/dist/cjs/types/components/skeleton.d.ts +5 -0
- package/dist/cjs/types/components/slider.d.ts +6 -0
- package/dist/cjs/types/components/spinner.d.ts +5 -0
- package/dist/cjs/types/components/switch.d.ts +8 -0
- package/dist/cjs/types/components/table.d.ts +12 -0
- package/dist/cjs/types/components/tabs.d.ts +14 -0
- package/dist/cjs/types/components/textarea.d.ts +5 -0
- package/dist/cjs/types/components/theme-toggle.d.ts +14 -0
- package/dist/cjs/types/components/toast.d.ts +19 -0
- package/dist/cjs/types/components/toggle-group.d.ts +13 -0
- package/dist/cjs/types/components/toggle.d.ts +12 -0
- package/dist/cjs/types/components/tooltip.d.ts +9 -0
- package/dist/cjs/types/components/trace.d.ts +20 -0
- package/dist/cjs/types/hooks/index.d.ts +3 -0
- package/dist/cjs/types/hooks/use-highlighted-code.d.ts +3 -0
- package/dist/cjs/types/hooks/use-hydrated.d.ts +4 -0
- package/dist/cjs/types/hooks/use-mobile.d.ts +3 -0
- package/dist/cjs/types/index.d.ts +73 -0
- package/dist/cjs/types/lib/highlighter.d.ts +11 -0
- package/dist/cjs/types/lib/index.d.ts +3 -0
- package/dist/cjs/types/lib/preference.d.ts +85 -0
- package/dist/cjs/types/lib/utils.d.ts +1 -0
- package/dist/cjs/types/package.json +1 -0
- package/dist/cjs/types/providers/index.d.ts +2 -0
- package/dist/cjs/types/providers/preference-provider.d.ts +20 -0
- package/dist/cjs/types/providers/theme-provider.d.ts +25 -0
- package/dist/esm/components/accordion.js +19 -0
- package/dist/esm/components/alert-dialog.js +43 -0
- package/dist/esm/components/alert.js +29 -0
- package/dist/esm/components/aspect-ratio.js +10 -0
- package/dist/esm/components/attachment.js +70 -0
- package/dist/esm/components/avatar.js +24 -0
- package/dist/esm/components/badge.js +35 -0
- package/dist/esm/components/breadcrumb.js +38 -0
- package/dist/esm/components/bubble.js +61 -0
- package/dist/esm/components/button-group.js +38 -0
- package/dist/esm/components/button.js +38 -0
- package/dist/esm/components/calendar.js +78 -0
- package/dist/esm/components/card.js +26 -0
- package/dist/esm/components/carousel.js +87 -0
- package/dist/esm/components/chart.js +133 -0
- package/dist/esm/components/checkbox.js +11 -0
- package/dist/esm/components/code-block.js +82 -0
- package/dist/esm/components/collapsible.js +14 -0
- package/dist/esm/components/combobox.js +60 -0
- package/dist/esm/components/command.js +36 -0
- package/dist/esm/components/context-menu.js +53 -0
- package/dist/esm/components/dialog.js +39 -0
- package/dist/esm/components/drawer.js +77 -0
- package/dist/esm/components/dropdown-menu.js +52 -0
- package/dist/esm/components/empty.js +35 -0
- package/dist/esm/components/field.js +69 -0
- package/dist/esm/components/hover-card.js +16 -0
- package/dist/esm/components/input-group.js +59 -0
- package/dist/esm/components/input-otp.js +22 -0
- package/dist/esm/components/input.js +9 -0
- package/dist/esm/components/item.js +80 -0
- package/dist/esm/components/kbd.js +11 -0
- package/dist/esm/components/label.js +9 -0
- package/dist/esm/components/marker.js +36 -0
- package/dist/esm/components/menubar.js +58 -0
- package/dist/esm/components/message-scroller.js +27 -0
- package/dist/esm/components/message.js +23 -0
- package/dist/esm/components/native-select.js +15 -0
- package/dist/esm/components/navigation-menu.js +33 -0
- package/dist/esm/components/pagination.js +28 -0
- package/dist/esm/components/popover.js +24 -0
- package/dist/esm/components/progress.js +22 -0
- package/dist/esm/components/questionnaire.js +54 -0
- package/dist/esm/components/radio-group.js +13 -0
- package/dist/esm/components/resizable.js +16 -0
- package/dist/esm/components/scroll-area.js +12 -0
- package/dist/esm/components/select.js +36 -0
- package/dist/esm/components/separator.js +9 -0
- package/dist/esm/components/sheet.js +38 -0
- package/dist/esm/components/sidebar.js +257 -0
- package/dist/esm/components/skeleton.js +8 -0
- package/dist/esm/components/slider.js +14 -0
- package/dist/esm/components/spinner.js +9 -0
- package/dist/esm/components/switch.js +10 -0
- package/dist/esm/components/table.js +29 -0
- package/dist/esm/components/tabs.js +31 -0
- package/dist/esm/components/textarea.js +8 -0
- package/dist/esm/components/theme-toggle.js +17 -0
- package/dist/esm/components/toast.js +68 -0
- package/dist/esm/components/toggle-group.js +25 -0
- package/dist/esm/components/toggle.js +27 -0
- package/dist/esm/components/tooltip.js +19 -0
- package/dist/esm/components/trace.js +31 -0
- package/dist/esm/hooks/use-highlighted-code.js +52 -0
- package/dist/esm/hooks/use-hydrated.js +13 -0
- package/dist/esm/hooks/use-mobile.js +15 -0
- package/dist/esm/index.js +73 -0
- package/dist/esm/lib/highlighter.js +93 -0
- package/dist/esm/lib/preference.js +35 -0
- package/dist/esm/providers/preference-provider.js +124 -0
- package/dist/esm/providers/theme-provider.js +178 -0
- package/dist/styles/custom.css +2 -0
- package/dist/styles/font/LICENSE +93 -0
- package/dist/styles/font/files/11944884.woff2 +0 -0
- package/dist/styles/font/files/3f081d19.woff2 +0 -0
- package/dist/styles/font/files/aa4aa22f.woff2 +0 -0
- package/dist/styles/font/files/ba1a9b92.woff2 +0 -0
- package/dist/styles/font/files/eadd8e6c.woff2 +0 -0
- package/dist/styles/font/geist.css +2 -0
- package/dist/styles/index.css +2 -0
- package/dist/types/components/accordion.d.ts +9 -0
- package/dist/types/components/alert-dialog.d.ts +20 -0
- package/dist/types/components/alert.d.ts +13 -0
- package/dist/types/components/aspect-ratio.d.ts +7 -0
- package/dist/types/components/attachment.d.ts +26 -0
- package/dist/types/components/avatar.d.ts +13 -0
- package/dist/types/components/badge.d.ts +11 -0
- package/dist/types/components/breadcrumb.d.ts +12 -0
- package/dist/types/components/bubble.d.ts +19 -0
- package/dist/types/components/button-group.d.ts +14 -0
- package/dist/types/components/button.d.ts +12 -0
- package/dist/types/components/calendar.d.ts +12 -0
- package/dist/types/components/card.d.ts +13 -0
- package/dist/types/components/carousel.d.ts +31 -0
- package/dist/types/components/chart.d.ts +47 -0
- package/dist/types/components/checkbox.d.ts +6 -0
- package/dist/types/components/code-block.d.ts +29 -0
- package/dist/types/components/collapsible.d.ts +8 -0
- package/dist/types/components/combobox.d.ts +26 -0
- package/dist/types/components/command.d.ts +21 -0
- package/dist/types/components/context-menu.d.ts +31 -0
- package/dist/types/components/dialog.d.ts +19 -0
- package/dist/types/components/direction.d.ts +1 -0
- package/dist/types/components/drawer.d.ts +18 -0
- package/dist/types/components/dropdown-menu.d.ts +31 -0
- package/dist/types/components/empty.d.ts +15 -0
- package/dist/types/components/field.d.ts +28 -0
- package/dist/types/components/hover-card.d.ts +8 -0
- package/dist/types/components/index.d.ts +65 -0
- package/dist/types/components/input-group.d.ts +21 -0
- package/dist/types/components/input-otp.d.ts +13 -0
- package/dist/types/components/input.d.ts +5 -0
- package/dist/types/components/item.d.ts +25 -0
- package/dist/types/components/kbd.d.ts +6 -0
- package/dist/types/components/label.d.ts +5 -0
- package/dist/types/components/marker.d.ts +13 -0
- package/dist/types/components/menubar.d.ts +31 -0
- package/dist/types/components/message-scroller.d.ts +13 -0
- package/dist/types/components/message.d.ts +12 -0
- package/dist/types/components/native-select.d.ts +10 -0
- package/dist/types/components/navigation-menu.d.ts +15 -0
- package/dist/types/components/pagination.d.ts +19 -0
- package/dist/types/components/popover.d.ts +11 -0
- package/dist/types/components/progress.d.ts +10 -0
- package/dist/types/components/questionnaire.d.ts +21 -0
- package/dist/types/components/radio-group.d.ts +8 -0
- package/dist/types/components/resizable.d.ts +10 -0
- package/dist/types/components/scroll-area.d.ts +7 -0
- package/dist/types/components/select.d.ts +17 -0
- package/dist/types/components/separator.d.ts +6 -0
- package/dist/types/components/sheet.d.ts +16 -0
- package/dist/types/components/sidebar.d.ts +66 -0
- package/dist/types/components/skeleton.d.ts +5 -0
- package/dist/types/components/slider.d.ts +6 -0
- package/dist/types/components/spinner.d.ts +5 -0
- package/dist/types/components/switch.d.ts +8 -0
- package/dist/types/components/table.d.ts +12 -0
- package/dist/types/components/tabs.d.ts +14 -0
- package/dist/types/components/textarea.d.ts +5 -0
- package/dist/types/components/theme-toggle.d.ts +14 -0
- package/dist/types/components/toast.d.ts +19 -0
- package/dist/types/components/toggle-group.d.ts +13 -0
- package/dist/types/components/toggle.d.ts +12 -0
- package/dist/types/components/tooltip.d.ts +9 -0
- package/dist/types/components/trace.d.ts +20 -0
- package/dist/types/hooks/index.d.ts +3 -0
- package/dist/types/hooks/use-highlighted-code.d.ts +3 -0
- package/dist/types/hooks/use-hydrated.d.ts +4 -0
- package/dist/types/hooks/use-mobile.d.ts +3 -0
- package/dist/types/index.d.ts +73 -0
- package/dist/types/lib/highlighter.d.ts +11 -0
- package/dist/types/lib/index.d.ts +3 -0
- package/dist/types/lib/preference.d.ts +85 -0
- package/dist/types/lib/utils.d.ts +1 -0
- package/dist/types/providers/index.d.ts +2 -0
- package/dist/types/providers/preference-provider.d.ts +20 -0
- package/dist/types/providers/theme-provider.d.ts +25 -0
- package/dist/umd/index.js +86818 -0
- package/package.json +116 -4
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var mergeProps = require('@base-ui/react/merge-props');
|
|
5
|
+
var useRender = require('@base-ui/react/use-render');
|
|
6
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
+
var cn = require('cn');
|
|
8
|
+
var separator = require('./separator.cjs');
|
|
9
|
+
|
|
10
|
+
const buttonGroupVariants = classVarianceAuthority.cva("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
11
|
+
variants: {
|
|
12
|
+
orientation: {
|
|
13
|
+
horizontal: "*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",
|
|
14
|
+
vertical: "flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
orientation: "horizontal",
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
function ButtonGroup({ className, orientation, ...props }) {
|
|
22
|
+
return (jsxRuntime.jsx("div", { role: "group", "data-slot": "button-group", "data-orientation": orientation, className: cn.cn(buttonGroupVariants({ orientation }), className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
function ButtonGroupText({ className, render, ...props }) {
|
|
25
|
+
return useRender.useRender({
|
|
26
|
+
defaultTagName: "div",
|
|
27
|
+
props: mergeProps.mergeProps({
|
|
28
|
+
className: cn.cn("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className),
|
|
29
|
+
}, props),
|
|
30
|
+
render,
|
|
31
|
+
state: {
|
|
32
|
+
slot: "button-group-text",
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
|
|
37
|
+
return (jsxRuntime.jsx(separator.Separator, { "data-slot": "button-group-separator", orientation: orientation, className: cn.cn("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", className), ...props }));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.ButtonGroup = ButtonGroup;
|
|
41
|
+
exports.ButtonGroupSeparator = ButtonGroupSeparator;
|
|
42
|
+
exports.ButtonGroupText = ButtonGroupText;
|
|
43
|
+
exports.buttonGroupVariants = buttonGroupVariants;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var button = require('@base-ui/react/button');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var cn = require('cn');
|
|
7
|
+
|
|
8
|
+
const buttonVariants = classVarianceAuthority.cva("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/80',
|
|
12
|
+
outline: 'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
|
|
13
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
|
|
14
|
+
ghost: 'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',
|
|
15
|
+
destructive: 'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40',
|
|
16
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
default: 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
|
|
20
|
+
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
21
|
+
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
22
|
+
lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
|
|
23
|
+
icon: 'size-8',
|
|
24
|
+
'icon-xs': "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
25
|
+
'icon-sm': 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',
|
|
26
|
+
'icon-lg': 'size-9',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
variant: 'default',
|
|
31
|
+
size: 'default',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
function Button({ className, variant = 'default', size = 'default', ...props }) {
|
|
35
|
+
return (jsxRuntime.jsx(button.Button, { "data-slot": "button", className: typeof className === 'function'
|
|
36
|
+
? (state) => cn.cn(buttonVariants({ variant, size }), className(state))
|
|
37
|
+
: cn.cn(buttonVariants({ variant, size }), className), ...props }));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.Button = Button;
|
|
41
|
+
exports.buttonVariants = buttonVariants;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var cn = require('cn');
|
|
7
|
+
var reactDayPicker = require('react-day-picker');
|
|
8
|
+
var button = require('./button.cjs');
|
|
9
|
+
var lucideReact = require('lucide-react');
|
|
10
|
+
|
|
11
|
+
function _interopNamespaceDefault(e) {
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
|
+
|
|
30
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", locale, formatters, components, ...props }) {
|
|
31
|
+
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
32
|
+
return (jsxRuntime.jsx(reactDayPicker.DayPicker, { showOutsideDays: showOutsideDays, className: cn.cn("group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw `rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw `rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className), captionLayout: captionLayout, locale: locale, formatters: {
|
|
33
|
+
formatMonthDropdown: (date) => date.toLocaleString(locale?.code, { month: "short" }),
|
|
34
|
+
...formatters,
|
|
35
|
+
}, classNames: {
|
|
36
|
+
root: cn.cn("w-fit", defaultClassNames.root),
|
|
37
|
+
months: cn.cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
|
|
38
|
+
month: cn.cn("flex w-full flex-col gap-4", defaultClassNames.month),
|
|
39
|
+
nav: cn.cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
|
|
40
|
+
button_previous: cn.cn(button.buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous),
|
|
41
|
+
button_next: cn.cn(button.buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next),
|
|
42
|
+
month_caption: cn.cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
|
|
43
|
+
dropdowns: cn.cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
|
|
44
|
+
dropdown_root: cn.cn("relative rounded-(--cell-radius)", defaultClassNames.dropdown_root),
|
|
45
|
+
dropdown: cn.cn("absolute inset-0 bg-popover opacity-0", defaultClassNames.dropdown),
|
|
46
|
+
caption_label: cn.cn("font-medium select-none", captionLayout === "label"
|
|
47
|
+
? "text-sm"
|
|
48
|
+
: "flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground", defaultClassNames.caption_label),
|
|
49
|
+
month_grid: cn.cn("w-full border-collapse", defaultClassNames.month_grid),
|
|
50
|
+
weekdays: cn.cn("flex", defaultClassNames.weekdays),
|
|
51
|
+
weekday: cn.cn("flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none", defaultClassNames.weekday),
|
|
52
|
+
week: cn.cn("mt-2 flex w-full", defaultClassNames.week),
|
|
53
|
+
week_number_header: cn.cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
|
|
54
|
+
week_number: cn.cn("text-[0.8rem] text-muted-foreground select-none", defaultClassNames.week_number),
|
|
55
|
+
day: cn.cn("group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)", props.showWeekNumber
|
|
56
|
+
? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)"
|
|
57
|
+
: "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)", defaultClassNames.day),
|
|
58
|
+
range_start: cn.cn("relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted", defaultClassNames.range_start),
|
|
59
|
+
range_middle: cn.cn("rounded-none", defaultClassNames.range_middle),
|
|
60
|
+
range_end: cn.cn("relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted", defaultClassNames.range_end),
|
|
61
|
+
today: cn.cn("rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none", defaultClassNames.today),
|
|
62
|
+
outside: cn.cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
63
|
+
disabled: cn.cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
64
|
+
hidden: cn.cn("invisible", defaultClassNames.hidden),
|
|
65
|
+
...classNames,
|
|
66
|
+
}, components: {
|
|
67
|
+
Root: ({ className, rootRef, ...props }) => {
|
|
68
|
+
return (jsxRuntime.jsx("div", { "data-slot": "calendar", ref: rootRef, className: cn.cn(className), ...props }));
|
|
69
|
+
},
|
|
70
|
+
Chevron: ({ className, orientation, ...props }) => {
|
|
71
|
+
if (orientation === "left") {
|
|
72
|
+
return (jsxRuntime.jsx(lucideReact.ChevronLeftIcon, { className: cn.cn("size-4", className), ...props }));
|
|
73
|
+
}
|
|
74
|
+
if (orientation === "right") {
|
|
75
|
+
return (jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: cn.cn("size-4", className), ...props }));
|
|
76
|
+
}
|
|
77
|
+
return (jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: cn.cn("size-4", className), ...props }));
|
|
78
|
+
},
|
|
79
|
+
DayButton: ({ ...props }) => (jsxRuntime.jsx(CalendarDayButton, { locale: locale, ...props })),
|
|
80
|
+
WeekNumber: ({ children, week, ...props }) => {
|
|
81
|
+
return (jsxRuntime.jsx("th", { ...props, "data-week-number": week.weekNumber, children: jsxRuntime.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: children }) }));
|
|
82
|
+
},
|
|
83
|
+
...components,
|
|
84
|
+
}, ...props }));
|
|
85
|
+
}
|
|
86
|
+
function CalendarDayButton({ className, day, modifiers, locale, ...props }) {
|
|
87
|
+
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
88
|
+
const ref = React__namespace.useRef(null);
|
|
89
|
+
React__namespace.useEffect(() => {
|
|
90
|
+
if (modifiers.focused)
|
|
91
|
+
ref.current?.focus();
|
|
92
|
+
}, [modifiers.focused]);
|
|
93
|
+
return (jsxRuntime.jsx(button.Button, { variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(locale?.code), "data-selected-single": modifiers.selected &&
|
|
94
|
+
!modifiers.range_start &&
|
|
95
|
+
!modifiers.range_end &&
|
|
96
|
+
!modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn.cn("relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className), ...props }));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
exports.Calendar = Calendar;
|
|
100
|
+
exports.CalendarDayButton = CalendarDayButton;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var cn = require('cn');
|
|
5
|
+
|
|
6
|
+
function Card({ className, size = "default", ...props }) {
|
|
7
|
+
return (jsxRuntime.jsx("div", { "data-slot": "card", "data-size": size, className: cn.cn("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", className), ...props }));
|
|
8
|
+
}
|
|
9
|
+
function CardHeader({ className, ...props }) {
|
|
10
|
+
return (jsxRuntime.jsx("div", { "data-slot": "card-header", className: cn.cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", className), ...props }));
|
|
11
|
+
}
|
|
12
|
+
function CardTitle({ className, ...props }) {
|
|
13
|
+
return (jsxRuntime.jsx("div", { "data-slot": "card-title", className: cn.cn("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", className), ...props }));
|
|
14
|
+
}
|
|
15
|
+
function CardDescription({ className, ...props }) {
|
|
16
|
+
return (jsxRuntime.jsx("div", { "data-slot": "card-description", className: cn.cn("text-sm text-muted-foreground", className), ...props }));
|
|
17
|
+
}
|
|
18
|
+
function CardAction({ className, ...props }) {
|
|
19
|
+
return (jsxRuntime.jsx("div", { "data-slot": "card-action", className: cn.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className), ...props }));
|
|
20
|
+
}
|
|
21
|
+
function CardContent({ className, ...props }) {
|
|
22
|
+
return (jsxRuntime.jsx("div", { "data-slot": "card-content", className: cn.cn("px-(--card-spacing)", className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
function CardFooter({ className, ...props }) {
|
|
25
|
+
return (jsxRuntime.jsx("div", { "data-slot": "card-footer", className: cn.cn("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)", className), ...props }));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.Card = Card;
|
|
29
|
+
exports.CardAction = CardAction;
|
|
30
|
+
exports.CardContent = CardContent;
|
|
31
|
+
exports.CardDescription = CardDescription;
|
|
32
|
+
exports.CardFooter = CardFooter;
|
|
33
|
+
exports.CardHeader = CardHeader;
|
|
34
|
+
exports.CardTitle = CardTitle;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var cn = require('cn');
|
|
6
|
+
var useEmblaCarousel = require('embla-carousel-react');
|
|
7
|
+
var button = require('./button.cjs');
|
|
8
|
+
var lucideReact = require('lucide-react');
|
|
9
|
+
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
28
|
+
|
|
29
|
+
const CarouselContext = React__namespace.createContext(null);
|
|
30
|
+
function useCarousel() {
|
|
31
|
+
const context = React__namespace.useContext(CarouselContext);
|
|
32
|
+
if (!context) {
|
|
33
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
34
|
+
}
|
|
35
|
+
return context;
|
|
36
|
+
}
|
|
37
|
+
function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }) {
|
|
38
|
+
const [carouselRef, api] = useEmblaCarousel({
|
|
39
|
+
...opts,
|
|
40
|
+
axis: orientation === "horizontal" ? "x" : "y",
|
|
41
|
+
}, plugins);
|
|
42
|
+
// Embla 是外部状态源,订阅选择和重置事件并直接读取快照。
|
|
43
|
+
const subscribe = React__namespace.useCallback((onChange) => {
|
|
44
|
+
if (!api)
|
|
45
|
+
return () => { };
|
|
46
|
+
api.on("reInit", onChange);
|
|
47
|
+
api.on("select", onChange);
|
|
48
|
+
return () => {
|
|
49
|
+
api.off("reInit", onChange);
|
|
50
|
+
api.off("select", onChange);
|
|
51
|
+
};
|
|
52
|
+
}, [api]);
|
|
53
|
+
const canScrollPrev = React__namespace.useSyncExternalStore(subscribe, () => api?.canScrollPrev() ?? false, () => false);
|
|
54
|
+
const canScrollNext = React__namespace.useSyncExternalStore(subscribe, () => api?.canScrollNext() ?? false, () => false);
|
|
55
|
+
const scrollPrev = React__namespace.useCallback(() => {
|
|
56
|
+
api?.scrollPrev();
|
|
57
|
+
}, [api]);
|
|
58
|
+
const scrollNext = React__namespace.useCallback(() => {
|
|
59
|
+
api?.scrollNext();
|
|
60
|
+
}, [api]);
|
|
61
|
+
const handleKeyDown = React__namespace.useCallback((event) => {
|
|
62
|
+
if (event.key === "ArrowLeft") {
|
|
63
|
+
event.preventDefault();
|
|
64
|
+
scrollPrev();
|
|
65
|
+
}
|
|
66
|
+
else if (event.key === "ArrowRight") {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
scrollNext();
|
|
69
|
+
}
|
|
70
|
+
}, [scrollPrev, scrollNext]);
|
|
71
|
+
React__namespace.useEffect(() => {
|
|
72
|
+
if (!api || !setApi)
|
|
73
|
+
return;
|
|
74
|
+
setApi(api);
|
|
75
|
+
}, [api, setApi]);
|
|
76
|
+
return (jsxRuntime.jsx(CarouselContext.Provider, { value: {
|
|
77
|
+
carouselRef,
|
|
78
|
+
api: api,
|
|
79
|
+
opts,
|
|
80
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
81
|
+
scrollPrev,
|
|
82
|
+
scrollNext,
|
|
83
|
+
canScrollPrev,
|
|
84
|
+
canScrollNext,
|
|
85
|
+
}, children: jsxRuntime.jsx("div", { onKeyDownCapture: handleKeyDown, className: cn.cn("relative", className), role: "region", "aria-roledescription": "carousel", "data-slot": "carousel", ...props, children: children }) }));
|
|
86
|
+
}
|
|
87
|
+
function CarouselContent({ className, ...props }) {
|
|
88
|
+
const { carouselRef, orientation } = useCarousel();
|
|
89
|
+
return (jsxRuntime.jsx("div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: jsxRuntime.jsx("div", { className: cn.cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) }));
|
|
90
|
+
}
|
|
91
|
+
function CarouselItem({ className, ...props }) {
|
|
92
|
+
const { orientation } = useCarousel();
|
|
93
|
+
return (jsxRuntime.jsx("div", { role: "group", "aria-roledescription": "slide", "data-slot": "carousel-item", className: cn.cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className), ...props }));
|
|
94
|
+
}
|
|
95
|
+
function CarouselPrevious({ className, variant = "outline", size = "icon-sm", ...props }) {
|
|
96
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
97
|
+
return (jsxRuntime.jsxs(button.Button, { "data-slot": "carousel-previous", variant: variant, size: size, className: cn.cn("absolute touch-manipulation rounded-full", orientation === "horizontal"
|
|
98
|
+
? "inset-y-0 -left-12 my-auto"
|
|
99
|
+
: "-top-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollPrev, onClick: scrollPrev, ...props, children: [jsxRuntime.jsx(lucideReact.ChevronLeftIcon, {}), jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })] }));
|
|
100
|
+
}
|
|
101
|
+
function CarouselNext({ className, variant = "outline", size = "icon-sm", ...props }) {
|
|
102
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
103
|
+
return (jsxRuntime.jsxs(button.Button, { "data-slot": "carousel-next", variant: variant, size: size, className: cn.cn("absolute touch-manipulation rounded-full", orientation === "horizontal"
|
|
104
|
+
? "inset-y-0 -right-12 my-auto"
|
|
105
|
+
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollNext, onClick: scrollNext, ...props, children: [jsxRuntime.jsx(lucideReact.ChevronRightIcon, {}), jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })] }));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
exports.Carousel = Carousel;
|
|
109
|
+
exports.CarouselContent = CarouselContent;
|
|
110
|
+
exports.CarouselItem = CarouselItem;
|
|
111
|
+
exports.CarouselNext = CarouselNext;
|
|
112
|
+
exports.CarouselPrevious = CarouselPrevious;
|
|
113
|
+
exports.useCarousel = useCarousel;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var cn = require('cn');
|
|
6
|
+
var RechartsPrimitive = require('recharts');
|
|
7
|
+
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
26
|
+
var RechartsPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(RechartsPrimitive);
|
|
27
|
+
|
|
28
|
+
// Format: { THEME_NAME: CSS_SELECTOR }
|
|
29
|
+
const THEMES = { light: "", dark: ".dark" };
|
|
30
|
+
const INITIAL_DIMENSION = { width: 320, height: 200 };
|
|
31
|
+
const ChartContext = React__namespace.createContext(null);
|
|
32
|
+
function useChart() {
|
|
33
|
+
const context = React__namespace.useContext(ChartContext);
|
|
34
|
+
if (!context) {
|
|
35
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
36
|
+
}
|
|
37
|
+
return context;
|
|
38
|
+
}
|
|
39
|
+
function ChartContainer({ id, className, children, config, initialDimension = INITIAL_DIMENSION, ...props }) {
|
|
40
|
+
const uniqueId = React__namespace.useId();
|
|
41
|
+
const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
|
|
42
|
+
return (jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: jsxRuntime.jsxs("div", { "data-slot": "chart", "data-chart": chartId, className: cn.cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className), ...props, children: [jsxRuntime.jsx(ChartStyle, { id: chartId, config: config }), jsxRuntime.jsx(RechartsPrimitive__namespace.ResponsiveContainer, { initialDimension: initialDimension, children: children })] }) }));
|
|
43
|
+
}
|
|
44
|
+
const ChartStyle = ({ id, config }) => {
|
|
45
|
+
const colorConfig = Object.entries(config).filter(([, config]) => config.theme ?? config.color);
|
|
46
|
+
if (!colorConfig.length) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return (jsxRuntime.jsx("style", { dangerouslySetInnerHTML: {
|
|
50
|
+
__html: Object.entries(THEMES)
|
|
51
|
+
.map(([theme, prefix]) => `
|
|
52
|
+
${prefix} [data-chart=${id}] {
|
|
53
|
+
${colorConfig
|
|
54
|
+
.map(([key, itemConfig]) => {
|
|
55
|
+
const color = itemConfig.theme?.[theme] ??
|
|
56
|
+
itemConfig.color;
|
|
57
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
58
|
+
})
|
|
59
|
+
.join("\n")}
|
|
60
|
+
}
|
|
61
|
+
`)
|
|
62
|
+
.join("\n"),
|
|
63
|
+
} }));
|
|
64
|
+
};
|
|
65
|
+
const ChartTooltip = RechartsPrimitive__namespace.Tooltip;
|
|
66
|
+
function ChartTooltipContent({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }) {
|
|
67
|
+
const { config } = useChart();
|
|
68
|
+
const tooltipLabel = React__namespace.useMemo(() => {
|
|
69
|
+
if (hideLabel || !payload?.length) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
const [item] = payload;
|
|
73
|
+
const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
|
|
74
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
75
|
+
const value = !labelKey && typeof label === "string"
|
|
76
|
+
? (config[label]?.label ?? label)
|
|
77
|
+
: itemConfig?.label;
|
|
78
|
+
if (labelFormatter) {
|
|
79
|
+
return (jsxRuntime.jsx("div", { className: cn.cn("font-medium", labelClassName), children: labelFormatter(value, payload) }));
|
|
80
|
+
}
|
|
81
|
+
if (!value) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return jsxRuntime.jsx("div", { className: cn.cn("font-medium", labelClassName), children: value });
|
|
85
|
+
}, [
|
|
86
|
+
label,
|
|
87
|
+
labelFormatter,
|
|
88
|
+
payload,
|
|
89
|
+
hideLabel,
|
|
90
|
+
labelClassName,
|
|
91
|
+
config,
|
|
92
|
+
labelKey,
|
|
93
|
+
]);
|
|
94
|
+
if (!active || !payload?.length) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
98
|
+
return (jsxRuntime.jsxs("div", { className: cn.cn("grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", className), children: [!nestLabel ? tooltipLabel : null, jsxRuntime.jsx("div", { className: "grid gap-1.5", children: payload
|
|
99
|
+
.filter((item) => item.type !== "none")
|
|
100
|
+
.map((item, index) => {
|
|
101
|
+
const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;
|
|
102
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
103
|
+
const indicatorColor = color ?? item.payload?.fill ?? item.color;
|
|
104
|
+
return (jsxRuntime.jsx("div", { className: cn.cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"), children: formatter && item?.value !== undefined && item.name ? (formatter(item.value, item.name, item, index, item.payload)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [itemConfig?.icon ? (jsxRuntime.jsx(itemConfig.icon, {})) : (!hideIndicator && (jsxRuntime.jsx("div", { className: cn.cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
105
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
106
|
+
"w-1": indicator === "line",
|
|
107
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
108
|
+
"my-0.5": nestLabel && indicator === "dashed",
|
|
109
|
+
}), style: {
|
|
110
|
+
"--color-bg": indicatorColor,
|
|
111
|
+
"--color-border": indicatorColor,
|
|
112
|
+
} }))), jsxRuntime.jsxs("div", { className: cn.cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"), children: [jsxRuntime.jsxs("div", { className: "grid gap-1.5", children: [nestLabel ? tooltipLabel : null, jsxRuntime.jsx("span", { className: "text-muted-foreground", children: itemConfig?.label ?? item.name })] }), item.value != null && (jsxRuntime.jsx("span", { className: "font-mono font-medium text-foreground tabular-nums", children: typeof item.value === "number"
|
|
113
|
+
? item.value.toLocaleString()
|
|
114
|
+
: String(item.value) }))] })] })) }, index));
|
|
115
|
+
}) })] }));
|
|
116
|
+
}
|
|
117
|
+
const ChartLegend = RechartsPrimitive__namespace.Legend;
|
|
118
|
+
function ChartLegendContent({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey, }) {
|
|
119
|
+
const { config } = useChart();
|
|
120
|
+
if (!payload?.length) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
return (jsxRuntime.jsx("div", { className: cn.cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload
|
|
124
|
+
.filter((item) => item.type !== "none")
|
|
125
|
+
.map((item, index) => {
|
|
126
|
+
const key = `${nameKey ?? item.dataKey ?? "value"}`;
|
|
127
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
128
|
+
return (jsxRuntime.jsxs("div", { className: cn.cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"), children: [itemConfig?.icon && !hideIcon ? (jsxRuntime.jsx(itemConfig.icon, {})) : (jsxRuntime.jsx("div", { className: "h-2 w-2 shrink-0 rounded-[2px]", style: {
|
|
129
|
+
backgroundColor: item.color,
|
|
130
|
+
} })), itemConfig?.label] }, index));
|
|
131
|
+
}) }));
|
|
132
|
+
}
|
|
133
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
134
|
+
if (typeof payload !== "object" || payload === null) {
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
const payloadPayload = "payload" in payload &&
|
|
138
|
+
typeof payload.payload === "object" &&
|
|
139
|
+
payload.payload !== null
|
|
140
|
+
? payload.payload
|
|
141
|
+
: undefined;
|
|
142
|
+
let configLabelKey = key;
|
|
143
|
+
if (key in payload &&
|
|
144
|
+
typeof payload[key] === "string") {
|
|
145
|
+
configLabelKey = payload[key];
|
|
146
|
+
}
|
|
147
|
+
else if (payloadPayload &&
|
|
148
|
+
key in payloadPayload &&
|
|
149
|
+
typeof payloadPayload[key] === "string") {
|
|
150
|
+
configLabelKey = payloadPayload[key];
|
|
151
|
+
}
|
|
152
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
exports.ChartContainer = ChartContainer;
|
|
156
|
+
exports.ChartLegend = ChartLegend;
|
|
157
|
+
exports.ChartLegendContent = ChartLegendContent;
|
|
158
|
+
exports.ChartStyle = ChartStyle;
|
|
159
|
+
exports.ChartTooltip = ChartTooltip;
|
|
160
|
+
exports.ChartTooltipContent = ChartTooltipContent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var checkbox = require('@base-ui/react/checkbox');
|
|
6
|
+
var cn = require('cn');
|
|
7
|
+
var lucideReact = require('lucide-react');
|
|
8
|
+
|
|
9
|
+
function Checkbox({ className, ...props }) {
|
|
10
|
+
return (jsxRuntime.jsx(checkbox.Checkbox.Root, { "data-slot": "checkbox", className: cn.cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary", className), ...props, children: jsxRuntime.jsx(checkbox.Checkbox.Indicator, { "data-slot": "checkbox-indicator", className: "grid place-content-center text-current transition-none [&>svg]:size-3.5", children: jsxRuntime.jsx(lucideReact.CheckIcon, {}) }) }));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.Checkbox = Checkbox;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
+
var cn = require('cn');
|
|
8
|
+
var button = require('./button.cjs');
|
|
9
|
+
var lucideReact = require('lucide-react');
|
|
10
|
+
|
|
11
|
+
function _interopNamespaceDefault(e) {
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
|
+
|
|
30
|
+
const codeBlockVariants = classVarianceAuthority.cva("group/code-block relative flex w-full min-w-0 flex-col overflow-hidden rounded-lg text-sm has-[>[data-slot=code-block-content]:focus-visible]:ring-3 has-[>[data-slot=code-block-content]:focus-visible]:ring-ring/50 data-[size=sm]:text-xs", {
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
default: "border border-input text-foreground has-[>[data-slot=code-block-content]:focus-visible]:border-ring dark:bg-input/30",
|
|
34
|
+
destructive: "border border-destructive/30 text-destructive dark:border-destructive/40",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
variant: "default",
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
function CodeBlock({ className, variant = "default", size = "default", ...props }) {
|
|
42
|
+
return (jsxRuntime.jsx("div", { "data-slot": "code-block", "data-variant": variant, "data-size": size, className: cn.cn(codeBlockVariants({ variant }), className), ...props }));
|
|
43
|
+
}
|
|
44
|
+
function CodeBlockHeader({ className, ...props }) {
|
|
45
|
+
return (jsxRuntime.jsx("div", { "data-slot": "code-block-header", className: cn.cn("flex min-w-0 shrink-0 items-center gap-2 px-3 pt-3 text-muted-foreground group-data-[size=sm]/code-block:px-2.5 group-data-[size=sm]/code-block:pt-2.5 group-data-[variant=destructive]/code-block:text-destructive *:has-[>[data-slot=code-block-title]]:min-w-0", className), ...props }));
|
|
46
|
+
}
|
|
47
|
+
function CodeBlockTitle({ className, ...props }) {
|
|
48
|
+
return (jsxRuntime.jsx("div", { "data-slot": "code-block-title", className: cn.cn("min-w-0 truncate font-sans text-sm font-medium text-foreground group-data-[size=sm]/code-block:text-xs group-data-[variant=destructive]/code-block:text-destructive [&_svg]:pointer-events-none [&_svg]:inline-block [&_svg]:align-middle [&_svg:not([class*='size-'])]:size-3.5 *:[svg]:me-1.5", className), ...props }));
|
|
49
|
+
}
|
|
50
|
+
function CodeBlockActions({ className, ...props }) {
|
|
51
|
+
return (jsxRuntime.jsx("div", { "data-slot": "code-block-actions", className: cn.cn("-my-1 ms-auto -me-1.5 flex shrink-0 items-center gap-1 [[data-slot=code-block]>&]:absolute [[data-slot=code-block]>&]:end-2 [[data-slot=code-block]>&]:top-2 [[data-slot=code-block]>&]:z-10 [[data-slot=code-block]>&]:m-0 [[data-slot=code-block]>&]:opacity-0 [[data-slot=code-block]>&]:transition-opacity [[data-slot=code-block]>&]:group-focus-within/code-block:opacity-100 [[data-slot=code-block]>&]:group-hover/code-block:opacity-100 group-data-[size=sm]/code-block:[[data-slot=code-block]>&]:end-1.5 group-data-[size=sm]/code-block:[[data-slot=code-block]>&]:top-1.5 [[data-slot=code-block]>&]:pointer-coarse:opacity-100 [[data-slot=code-block]>&]:*:[button]:bg-background [[data-slot=code-block]>&]:*:[button]:ring-1 [[data-slot=code-block]>&]:*:[button]:ring-foreground/10", className), ...props }));
|
|
52
|
+
}
|
|
53
|
+
function CodeBlockCopyButton({ value, variant = "ghost", size = "icon-xs", className, onClick, ...props }) {
|
|
54
|
+
const [copied, setCopied] = React__namespace.useState(false);
|
|
55
|
+
React__namespace.useEffect(() => {
|
|
56
|
+
if (!copied) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const timeout = setTimeout(() => setCopied(false), 2000);
|
|
60
|
+
return () => clearTimeout(timeout);
|
|
61
|
+
}, [copied]);
|
|
62
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(button.Button, { "data-slot": "code-block-copy-button", "data-copied": copied || undefined, variant: variant, size: size, "aria-label": copied ? "Copied" : "Copy", className: cn.cn(className), onClick: (event) => {
|
|
63
|
+
onClick?.(event);
|
|
64
|
+
navigator.clipboard
|
|
65
|
+
.writeText(value)
|
|
66
|
+
.then(() => setCopied(true))
|
|
67
|
+
.catch(() => { });
|
|
68
|
+
}, ...props, children: copied ? (jsxRuntime.jsx(lucideReact.CheckIcon, {})) : (jsxRuntime.jsx(lucideReact.CopyIcon, {})) }), jsxRuntime.jsx("span", { "aria-live": "polite", className: "sr-only", children: copied ? "Copied" : "" })] }));
|
|
69
|
+
}
|
|
70
|
+
function CodeBlockContent({ className, children, style, wrap = false, lineNumbers = false, startLine = 1, ...props }) {
|
|
71
|
+
return (jsxRuntime.jsx("pre", { "data-slot": "code-block-content", "data-wrap": wrap || undefined, "data-numbered": lineNumbers || undefined, dir: "ltr", tabIndex: 0, style: { counterReset: `line ${startLine - 1}`, ...style }, className: cn.cn("min-h-0 min-w-0 scroll-fade-x scrollbar-thin overflow-auto px-3 py-3 text-start font-mono leading-relaxed outline-none group-has-data-[slot=code-block-footer]/code-block:pb-2 group-has-data-[slot=code-block-header]/code-block:pt-2 group-data-[size=sm]/code-block:px-2.5 group-data-[size=sm]/code-block:py-2.5 group-data-[size=sm]/code-block:group-has-data-[slot=code-block-header]/code-block:pt-1.5 data-wrap:scroll-fade-y data-wrap:wrap-break-word data-wrap:whitespace-pre-wrap", className), ...props, children: jsxRuntime.jsx("code", { "data-slot": "code-block-code", className: "grid min-h-lh min-w-max content-start in-data-numbered:grid-cols-[auto_1fr] in-data-wrap:min-w-0", children: lineNumbers && typeof children === "string"
|
|
72
|
+
? children
|
|
73
|
+
.replace(/\n$/, "")
|
|
74
|
+
.split("\n")
|
|
75
|
+
.map((line, index) => (jsxRuntime.jsx(CodeBlockLine, { children: line }, index)))
|
|
76
|
+
: children }) }));
|
|
77
|
+
}
|
|
78
|
+
const codeBlockLineVariants = classVarianceAuthority.cva("relative -mx-3 block min-h-lh px-3 group-data-[size=sm]/code-block:-mx-2.5 group-data-[size=sm]/code-block:px-2.5 before:min-w-6 before:text-end before:text-muted-foreground after:absolute after:start-1 after:top-0 after:text-muted-foreground after:select-none in-data-numbered:col-span-2 in-data-numbered:grid in-data-numbered:grid-cols-subgrid in-data-numbered:gap-x-3 in-data-numbered:[counter-increment:line] in-data-numbered:before:content-[counter(line)] in-data-numbered:before:select-none in-data-numbered:supports-[content:counter(line)_/_'']:before:content-[counter(line)_/_'']", {
|
|
79
|
+
variants: {
|
|
80
|
+
variant: {
|
|
81
|
+
default: "",
|
|
82
|
+
added: "bg-muted after:content-['+']",
|
|
83
|
+
removed: "bg-destructive/10 after:text-destructive after:content-['−']",
|
|
84
|
+
highlighted: "bg-muted",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
defaultVariants: {
|
|
88
|
+
variant: "default",
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
function CodeBlockLine({ className, variant = "default", children, ...props }) {
|
|
92
|
+
// An empty line holds a newline so copying a selection keeps blank lines.
|
|
93
|
+
const empty = children === undefined ||
|
|
94
|
+
children === null ||
|
|
95
|
+
children === "" ||
|
|
96
|
+
(Array.isArray(children) && children.length === 0);
|
|
97
|
+
return (jsxRuntime.jsx("span", { "data-slot": "code-block-line", "data-variant": variant, className: cn.cn(codeBlockLineVariants({ variant }), className), ...props, children: jsxRuntime.jsx("span", { "data-slot": "code-block-line-content", className: "min-w-0", children: empty ? "\n" : children }) }));
|
|
98
|
+
}
|
|
99
|
+
function CodeBlockFooter({ className, ...props }) {
|
|
100
|
+
return (jsxRuntime.jsx("div", { "data-slot": "code-block-footer", className: cn.cn("flex min-w-0 shrink-0 items-center gap-2 px-3 pb-3 text-muted-foreground group-data-[size=sm]/code-block:px-2.5 group-data-[size=sm]/code-block:pb-2.5", className), ...props }));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
exports.CodeBlock = CodeBlock;
|
|
104
|
+
exports.CodeBlockActions = CodeBlockActions;
|
|
105
|
+
exports.CodeBlockContent = CodeBlockContent;
|
|
106
|
+
exports.CodeBlockCopyButton = CodeBlockCopyButton;
|
|
107
|
+
exports.CodeBlockFooter = CodeBlockFooter;
|
|
108
|
+
exports.CodeBlockHeader = CodeBlockHeader;
|
|
109
|
+
exports.CodeBlockLine = CodeBlockLine;
|
|
110
|
+
exports.CodeBlockTitle = CodeBlockTitle;
|