@regardio/react 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/background-slideshow.d.ts +7 -5
- package/dist/components/background-slideshow.js +172 -74
- package/dist/components/blurry-gradient.d.ts +11 -4
- package/dist/components/blurry-gradient.js +121 -5
- package/dist/components/box.d.ts +12 -9
- package/dist/components/box.js +48 -23
- package/dist/components/carousel.d.ts +12 -10
- package/dist/components/carousel.js +146 -66
- package/dist/components/countdown.d.ts +5 -2
- package/dist/components/countdown.js +55 -21
- package/dist/components/definition-list.d.ts +19 -16
- package/dist/components/definition-list.js +83 -51
- package/dist/components/generic-error.d.ts +25 -5
- package/dist/components/generic-error.js +42 -34
- package/dist/components/heading.d.ts +13 -10
- package/dist/components/heading.js +114 -25
- package/dist/components/highlight.d.ts +11 -8
- package/dist/components/highlight.js +65 -17
- package/dist/components/icon-button.d.ts +7 -4
- package/dist/components/icon-button.js +16 -5
- package/dist/components/if.d.ts +6 -4
- package/dist/components/if.js +22 -14
- package/dist/components/iframe.d.ts +6 -4
- package/dist/components/iframe.js +26 -3
- package/dist/components/item.d.ts +17 -14
- package/dist/components/item.js +504 -301
- package/dist/components/leaflet-map.d.ts +5 -4
- package/dist/components/leaflet-map.js +192 -186
- package/dist/components/link.d.ts +24 -16
- package/dist/components/link.js +191 -102
- package/dist/components/list-item.d.ts +11 -8
- package/dist/components/list-item.js +35 -17
- package/dist/components/maptiler-map.d.ts +5 -4
- package/dist/components/maptiler-map.js +125 -112
- package/dist/components/markdown-container.d.ts +10 -8
- package/dist/components/markdown-container.js +181 -82
- package/dist/components/password-input.d.ts +7 -5
- package/dist/components/password-input.js +50 -8
- package/dist/components/picture.d.ts +19 -7
- package/dist/components/picture.js +75 -34
- package/dist/components/protected-email.d.ts +14 -3
- package/dist/components/protected-email.js +29 -15
- package/dist/components/text.d.ts +12 -9
- package/dist/components/text.js +42 -24
- package/dist/components/unordered-list.d.ts +11 -8
- package/dist/components/unordered-list.js +37 -19
- package/dist/hooks/use-current-route-data.d.ts +7 -2
- package/dist/hooks/use-current-route-data.js +13 -9
- package/dist/hooks/use-focus-search.d.ts +6 -3
- package/dist/hooks/use-focus-search.js +17 -13
- package/dist/hooks/use-matches-data.d.ts +9 -2
- package/dist/hooks/use-matches-data.js +12 -8
- package/dist/hooks/use-media-query.d.ts +8 -2
- package/dist/hooks/use-media-query.js +19 -15
- package/dist/hooks/use-mobile.d.ts +3 -2
- package/dist/hooks/use-mobile.js +18 -14
- package/dist/hooks/use-nonce.d.ts +12 -5
- package/dist/hooks/use-nonce.js +11 -7
- package/dist/hooks/use-orientation.d.ts +11 -3
- package/dist/hooks/use-orientation.js +28 -24
- package/dist/hooks/use-user.d.ts +43 -8
- package/dist/hooks/use-user.js +21 -13
- package/dist/utils/author.d.ts +4 -4
- package/dist/utils/author.js +49 -31
- package/dist/utils/cn.d.ts +8 -4
- package/dist/utils/cn.js +12 -8
- package/dist/utils/is-route-active.d.ts +19 -3
- package/dist/utils/is-route-active.js +45 -43
- package/dist/utils/locale.d.ts +66 -4
- package/dist/utils/locale.js +33 -22
- package/dist/utils/text.d.ts +24 -7
- package/dist/utils/text.js +114 -89
- package/package.json +4 -3
- package/src/stories/ListItem.stories.tsx +3 -2
- package/dist/components/background-slideshow.d.ts.map +0 -1
- package/dist/components/blurry-gradient.d.ts.map +0 -1
- package/dist/components/box.d.ts.map +0 -1
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/countdown.d.ts.map +0 -1
- package/dist/components/definition-list.d.ts.map +0 -1
- package/dist/components/generic-error.d.ts.map +0 -1
- package/dist/components/heading.d.ts.map +0 -1
- package/dist/components/highlight.d.ts.map +0 -1
- package/dist/components/icon-button.d.ts.map +0 -1
- package/dist/components/if.d.ts.map +0 -1
- package/dist/components/iframe.d.ts.map +0 -1
- package/dist/components/item.d.ts.map +0 -1
- package/dist/components/leaflet-map.d.ts.map +0 -1
- package/dist/components/link.d.ts.map +0 -1
- package/dist/components/link.test.d.ts +0 -2
- package/dist/components/link.test.d.ts.map +0 -1
- package/dist/components/link.test.js +0 -204
- package/dist/components/list-item.d.ts.map +0 -1
- package/dist/components/maptiler-map.d.ts.map +0 -1
- package/dist/components/markdown-container.d.ts.map +0 -1
- package/dist/components/password-input.d.ts.map +0 -1
- package/dist/components/picture.d.ts.map +0 -1
- package/dist/components/protected-email.d.ts.map +0 -1
- package/dist/components/text.d.ts.map +0 -1
- package/dist/components/unordered-list.d.ts.map +0 -1
- package/dist/hooks/use-current-route-data.d.ts.map +0 -1
- package/dist/hooks/use-focus-search.d.ts.map +0 -1
- package/dist/hooks/use-matches-data.d.ts.map +0 -1
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-mobile.d.ts.map +0 -1
- package/dist/hooks/use-nonce.d.ts.map +0 -1
- package/dist/hooks/use-nonce.test.d.ts +0 -2
- package/dist/hooks/use-nonce.test.d.ts.map +0 -1
- package/dist/hooks/use-nonce.test.js +0 -27
- package/dist/hooks/use-orientation.d.ts.map +0 -1
- package/dist/hooks/use-user.d.ts.map +0 -1
- package/dist/shadcn/accordion.d.ts +0 -25
- package/dist/shadcn/accordion.d.ts.map +0 -1
- package/dist/shadcn/accordion.js +0 -45
- package/dist/shadcn/alert-dialog.d.ts +0 -73
- package/dist/shadcn/alert-dialog.d.ts.map +0 -1
- package/dist/shadcn/alert-dialog.js +0 -93
- package/dist/shadcn/alert.d.ts +0 -34
- package/dist/shadcn/alert.d.ts.map +0 -1
- package/dist/shadcn/alert.js +0 -42
- package/dist/shadcn/aspect-ratio.d.ts +0 -6
- package/dist/shadcn/aspect-ratio.d.ts.map +0 -1
- package/dist/shadcn/aspect-ratio.js +0 -7
- package/dist/shadcn/avatar.d.ts +0 -16
- package/dist/shadcn/avatar.d.ts.map +0 -1
- package/dist/shadcn/avatar.js +0 -27
- package/dist/shadcn/badge.d.ts +0 -29
- package/dist/shadcn/badge.d.ts.map +0 -1
- package/dist/shadcn/badge.js +0 -29
- package/dist/shadcn/breadcrumb.d.ts +0 -42
- package/dist/shadcn/breadcrumb.d.ts.map +0 -1
- package/dist/shadcn/breadcrumb.js +0 -74
- package/dist/shadcn/button.d.ts +0 -38
- package/dist/shadcn/button.d.ts.map +0 -1
- package/dist/shadcn/button.js +0 -38
- package/dist/shadcn/calendar.d.ts +0 -23
- package/dist/shadcn/calendar.d.ts.map +0 -1
- package/dist/shadcn/calendar.js +0 -163
- package/dist/shadcn/card.d.ts +0 -31
- package/dist/shadcn/card.d.ts.map +0 -1
- package/dist/shadcn/card.js +0 -55
- package/dist/shadcn/carousel.d.ts +0 -51
- package/dist/shadcn/carousel.d.ts.map +0 -1
- package/dist/shadcn/carousel.js +0 -161
- package/dist/shadcn/chart.d.ts +0 -103
- package/dist/shadcn/chart.d.ts.map +0 -1
- package/dist/shadcn/chart.js +0 -248
- package/dist/shadcn/checkbox.d.ts +0 -8
- package/dist/shadcn/checkbox.d.ts.map +0 -1
- package/dist/shadcn/checkbox.js +0 -22
- package/dist/shadcn/collapsible.d.ts +0 -16
- package/dist/shadcn/collapsible.d.ts.map +0 -1
- package/dist/shadcn/collapsible.js +0 -19
- package/dist/shadcn/command.d.ts +0 -61
- package/dist/shadcn/command.d.ts.map +0 -1
- package/dist/shadcn/command.js +0 -123
- package/dist/shadcn/context-menu.d.ts +0 -107
- package/dist/shadcn/context-menu.d.ts.map +0 -1
- package/dist/shadcn/context-menu.js +0 -151
- package/dist/shadcn/dialog.d.ts +0 -57
- package/dist/shadcn/dialog.d.ts.map +0 -1
- package/dist/shadcn/dialog.js +0 -96
- package/dist/shadcn/drawer.d.ts +0 -54
- package/dist/shadcn/drawer.d.ts.map +0 -1
- package/dist/shadcn/drawer.js +0 -96
- package/dist/shadcn/dropdown-menu.d.ts +0 -110
- package/dist/shadcn/dropdown-menu.d.ts.map +0 -1
- package/dist/shadcn/dropdown-menu.js +0 -152
- package/dist/shadcn/form.d.ts +0 -59
- package/dist/shadcn/form.d.ts.map +0 -1
- package/dist/shadcn/form.js +0 -99
- package/dist/shadcn/hover-card.d.ts +0 -20
- package/dist/shadcn/hover-card.d.ts.map +0 -1
- package/dist/shadcn/hover-card.js +0 -26
- package/dist/shadcn/input-otp.d.ts +0 -25
- package/dist/shadcn/input-otp.d.ts.map +0 -1
- package/dist/shadcn/input-otp.js +0 -54
- package/dist/shadcn/input.d.ts +0 -14
- package/dist/shadcn/input.d.ts.map +0 -1
- package/dist/shadcn/input.js +0 -48
- package/dist/shadcn/label.d.ts +0 -8
- package/dist/shadcn/label.d.ts.map +0 -1
- package/dist/shadcn/label.js +0 -16
- package/dist/shadcn/menubar.d.ts +0 -108
- package/dist/shadcn/menubar.d.ts.map +0 -1
- package/dist/shadcn/menubar.js +0 -174
- package/dist/shadcn/navigation-menu.d.ts +0 -79
- package/dist/shadcn/navigation-menu.d.ts.map +0 -1
- package/dist/shadcn/navigation-menu.js +0 -108
- package/dist/shadcn/pagination.d.ts +0 -45
- package/dist/shadcn/pagination.d.ts.map +0 -1
- package/dist/shadcn/pagination.js +0 -83
- package/dist/shadcn/popover.d.ts +0 -19
- package/dist/shadcn/popover.d.ts.map +0 -1
- package/dist/shadcn/popover.js +0 -29
- package/dist/shadcn/progress.d.ts +0 -9
- package/dist/shadcn/progress.d.ts.map +0 -1
- package/dist/shadcn/progress.js +0 -17
- package/dist/shadcn/radio-group.d.ts +0 -12
- package/dist/shadcn/radio-group.d.ts.map +0 -1
- package/dist/shadcn/radio-group.js +0 -32
- package/dist/shadcn/resizable.d.ts +0 -20
- package/dist/shadcn/resizable.d.ts.map +0 -1
- package/dist/shadcn/resizable.js +0 -32
- package/dist/shadcn/scroll-area.d.ts +0 -16
- package/dist/shadcn/scroll-area.d.ts.map +0 -1
- package/dist/shadcn/scroll-area.js +0 -40
- package/dist/shadcn/select.d.ts +0 -63
- package/dist/shadcn/select.d.ts.map +0 -1
- package/dist/shadcn/select.js +0 -120
- package/dist/shadcn/separator.d.ts +0 -10
- package/dist/shadcn/separator.d.ts.map +0 -1
- package/dist/shadcn/separator.js +0 -18
- package/dist/shadcn/sheet.d.ts +0 -48
- package/dist/shadcn/sheet.d.ts.map +0 -1
- package/dist/shadcn/sheet.js +0 -99
- package/dist/shadcn/sidebar.d.ts +0 -200
- package/dist/shadcn/sidebar.d.ts.map +0 -1
- package/dist/shadcn/sidebar.js +0 -528
- package/dist/shadcn/skeleton.d.ts +0 -6
- package/dist/shadcn/skeleton.d.ts.map +0 -1
- package/dist/shadcn/skeleton.js +0 -11
- package/dist/shadcn/slider.d.ts +0 -12
- package/dist/shadcn/slider.d.ts.map +0 -1
- package/dist/shadcn/slider.js +0 -50
- package/dist/shadcn/sonner.d.ts +0 -7
- package/dist/shadcn/sonner.d.ts.map +0 -1
- package/dist/shadcn/sonner.js +0 -20
- package/dist/shadcn/switch.d.ts +0 -8
- package/dist/shadcn/switch.d.ts.map +0 -1
- package/dist/shadcn/switch.js +0 -22
- package/dist/shadcn/table.d.ts +0 -35
- package/dist/shadcn/table.d.ts.map +0 -1
- package/dist/shadcn/table.js +0 -73
- package/dist/shadcn/tabs.d.ts +0 -20
- package/dist/shadcn/tabs.d.ts.map +0 -1
- package/dist/shadcn/tabs.js +0 -40
- package/dist/shadcn/textarea.d.ts +0 -7
- package/dist/shadcn/textarea.d.ts.map +0 -1
- package/dist/shadcn/textarea.js +0 -14
- package/dist/shadcn/toggle-group.d.ts +0 -22
- package/dist/shadcn/toggle-group.d.ts.map +0 -1
- package/dist/shadcn/toggle-group.js +0 -43
- package/dist/shadcn/toggle.d.ts +0 -29
- package/dist/shadcn/toggle.d.ts.map +0 -1
- package/dist/shadcn/toggle.js +0 -31
- package/dist/shadcn/tooltip.d.ts +0 -20
- package/dist/shadcn/tooltip.d.ts.map +0 -1
- package/dist/shadcn/tooltip.js +0 -40
- package/dist/stories/BackgroundSlideshow.stories.d.ts +0 -9
- package/dist/stories/BackgroundSlideshow.stories.d.ts.map +0 -1
- package/dist/stories/BackgroundSlideshow.stories.js +0 -60
- package/dist/stories/BlurryGradient.stories.d.ts +0 -11
- package/dist/stories/BlurryGradient.stories.d.ts.map +0 -1
- package/dist/stories/BlurryGradient.stories.js +0 -53
- package/dist/stories/Box.stories.d.ts +0 -13
- package/dist/stories/Box.stories.d.ts.map +0 -1
- package/dist/stories/Box.stories.js +0 -50
- package/dist/stories/Carousel.stories.d.ts +0 -9
- package/dist/stories/Carousel.stories.d.ts.map +0 -1
- package/dist/stories/Carousel.stories.js +0 -30
- package/dist/stories/Countdown.stories.d.ts +0 -7
- package/dist/stories/Countdown.stories.d.ts.map +0 -1
- package/dist/stories/Countdown.stories.js +0 -11
- package/dist/stories/DefinitionList.stories.d.ts +0 -9
- package/dist/stories/DefinitionList.stories.d.ts.map +0 -1
- package/dist/stories/DefinitionList.stories.js +0 -20
- package/dist/stories/GenericError.stories.d.ts +0 -9
- package/dist/stories/GenericError.stories.d.ts.map +0 -1
- package/dist/stories/GenericError.stories.js +0 -39
- package/dist/stories/Heading.stories.d.ts +0 -15
- package/dist/stories/Heading.stories.d.ts.map +0 -1
- package/dist/stories/Heading.stories.js +0 -61
- package/dist/stories/Highlight.stories.d.ts +0 -8
- package/dist/stories/Highlight.stories.d.ts.map +0 -1
- package/dist/stories/Highlight.stories.js +0 -19
- package/dist/stories/IconButton.stories.d.ts +0 -10
- package/dist/stories/IconButton.stories.d.ts.map +0 -1
- package/dist/stories/IconButton.stories.js +0 -32
- package/dist/stories/If.stories.d.ts +0 -13
- package/dist/stories/If.stories.d.ts.map +0 -1
- package/dist/stories/If.stories.js +0 -54
- package/dist/stories/Iframe.stories.d.ts +0 -8
- package/dist/stories/Iframe.stories.d.ts.map +0 -1
- package/dist/stories/Iframe.stories.js +0 -23
- package/dist/stories/Item.stories.d.ts +0 -10
- package/dist/stories/Item.stories.d.ts.map +0 -1
- package/dist/stories/Item.stories.js +0 -32
- package/dist/stories/Link.stories.d.ts +0 -10
- package/dist/stories/Link.stories.d.ts.map +0 -1
- package/dist/stories/Link.stories.js +0 -36
- package/dist/stories/ListItem.stories.d.ts +0 -9
- package/dist/stories/ListItem.stories.d.ts.map +0 -1
- package/dist/stories/ListItem.stories.js +0 -25
- package/dist/stories/MarkdownContainer.stories.d.ts +0 -11
- package/dist/stories/MarkdownContainer.stories.d.ts.map +0 -1
- package/dist/stories/MarkdownContainer.stories.js +0 -66
- package/dist/stories/PasswordInput.stories.d.ts +0 -9
- package/dist/stories/PasswordInput.stories.d.ts.map +0 -1
- package/dist/stories/PasswordInput.stories.js +0 -27
- package/dist/stories/Picture.stories.d.ts +0 -10
- package/dist/stories/Picture.stories.d.ts.map +0 -1
- package/dist/stories/Picture.stories.js +0 -46
- package/dist/stories/ProtectedEmail.stories.d.ts +0 -10
- package/dist/stories/ProtectedEmail.stories.d.ts.map +0 -1
- package/dist/stories/ProtectedEmail.stories.js +0 -34
- package/dist/stories/Text.stories.d.ts +0 -10
- package/dist/stories/Text.stories.d.ts.map +0 -1
- package/dist/stories/Text.stories.js +0 -31
- package/dist/stories/UnorderedList.stories.d.ts +0 -10
- package/dist/stories/UnorderedList.stories.d.ts.map +0 -1
- package/dist/stories/UnorderedList.stories.js +0 -24
- package/dist/test-setup.d.ts +0 -2
- package/dist/test-setup.d.ts.map +0 -1
- package/dist/test-setup.js +0 -1
- package/dist/utils/author.d.ts.map +0 -1
- package/dist/utils/author.test.d.ts +0 -2
- package/dist/utils/author.test.d.ts.map +0 -1
- package/dist/utils/author.test.js +0 -46
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.test.d.ts +0 -2
- package/dist/utils/cn.test.d.ts.map +0 -1
- package/dist/utils/cn.test.js +0 -33
- package/dist/utils/is-route-active.d.ts.map +0 -1
- package/dist/utils/is-route-active.test.d.ts +0 -2
- package/dist/utils/is-route-active.test.d.ts.map +0 -1
- package/dist/utils/is-route-active.test.js +0 -61
- package/dist/utils/locale.d.ts.map +0 -1
- package/dist/utils/locale.test.d.ts +0 -2
- package/dist/utils/locale.test.d.ts.map +0 -1
- package/dist/utils/locale.test.js +0 -99
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/text.test.d.ts +0 -2
- package/dist/utils/text.test.d.ts.map +0 -1
- package/dist/utils/text.test.js +0 -122
package/dist/shadcn/resizable.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { GripVerticalIcon } from 'lucide-react';
|
|
2
|
-
import { jsx as _jsx } from 'react/jsx-runtime';
|
|
3
|
-
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
4
|
-
import { cn } from '../utils/cn';
|
|
5
|
-
|
|
6
|
-
function ResizablePanelGroup({ className, ...props }) {
|
|
7
|
-
return _jsx(ResizablePrimitive.PanelGroup, {
|
|
8
|
-
className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
|
|
9
|
-
'data-slot': 'resizable-panel-group',
|
|
10
|
-
...props,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function ResizablePanel({ ...props }) {
|
|
14
|
-
return _jsx(ResizablePrimitive.Panel, { 'data-slot': 'resizable-panel', ...props });
|
|
15
|
-
}
|
|
16
|
-
function ResizableHandle({ withHandle, className, ...props }) {
|
|
17
|
-
return _jsx(ResizablePrimitive.PanelResizeHandle, {
|
|
18
|
-
className: cn(
|
|
19
|
-
'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90',
|
|
20
|
-
className,
|
|
21
|
-
),
|
|
22
|
-
'data-slot': 'resizable-handle',
|
|
23
|
-
...props,
|
|
24
|
-
children:
|
|
25
|
-
withHandle &&
|
|
26
|
-
_jsx('div', {
|
|
27
|
-
children: _jsx(GripVerticalIcon, { className: 'size-2.5' }),
|
|
28
|
-
className: 'bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border',
|
|
29
|
-
}),
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
declare function ScrollArea({
|
|
4
|
-
className,
|
|
5
|
-
children,
|
|
6
|
-
...props
|
|
7
|
-
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import('react/jsx-runtime').JSX.Element;
|
|
8
|
-
declare function ScrollBar({
|
|
9
|
-
className,
|
|
10
|
-
orientation,
|
|
11
|
-
...props
|
|
12
|
-
}: React.ComponentProps<
|
|
13
|
-
typeof ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
14
|
-
>): import('react/jsx-runtime').JSX.Element;
|
|
15
|
-
export { ScrollArea, ScrollBar };
|
|
16
|
-
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/shadcn/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,2CAiBvD;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,mBAAmB,CAAC,2CAmBtE;AAED,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
|
|
4
|
-
import { cn } from '../utils/cn';
|
|
5
|
-
|
|
6
|
-
function ScrollArea({ className, children, ...props }) {
|
|
7
|
-
return _jsxs(ScrollAreaPrimitive.Root, {
|
|
8
|
-
className: cn('relative', className),
|
|
9
|
-
'data-slot': 'scroll-area',
|
|
10
|
-
...props,
|
|
11
|
-
children: [
|
|
12
|
-
_jsx(ScrollAreaPrimitive.Viewport, {
|
|
13
|
-
children: children,
|
|
14
|
-
className:
|
|
15
|
-
'focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1',
|
|
16
|
-
'data-slot': 'scroll-area-viewport',
|
|
17
|
-
}),
|
|
18
|
-
_jsx(ScrollBar, {}),
|
|
19
|
-
_jsx(ScrollAreaPrimitive.Corner, {}),
|
|
20
|
-
],
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function ScrollBar({ className, orientation = 'vertical', ...props }) {
|
|
24
|
-
return _jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
25
|
-
className: cn(
|
|
26
|
-
'flex touch-none p-px transition-colors select-none',
|
|
27
|
-
orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent',
|
|
28
|
-
orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent',
|
|
29
|
-
className,
|
|
30
|
-
),
|
|
31
|
-
'data-slot': 'scroll-area-scrollbar',
|
|
32
|
-
orientation: orientation,
|
|
33
|
-
...props,
|
|
34
|
-
children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
35
|
-
className: 'bg-border relative flex-1 rounded-full',
|
|
36
|
-
'data-slot': 'scroll-area-thumb',
|
|
37
|
-
}),
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
export { ScrollArea, ScrollBar };
|
package/dist/shadcn/select.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
declare function Select({
|
|
4
|
-
...props
|
|
5
|
-
}: React.ComponentProps<typeof SelectPrimitive.Root>): import('react/jsx-runtime').JSX.Element;
|
|
6
|
-
declare function SelectGroup({
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof SelectPrimitive.Group>): import('react/jsx-runtime').JSX.Element;
|
|
9
|
-
declare function SelectValue({
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof SelectPrimitive.Value>): import('react/jsx-runtime').JSX.Element;
|
|
12
|
-
declare function SelectTrigger({
|
|
13
|
-
className,
|
|
14
|
-
size,
|
|
15
|
-
children,
|
|
16
|
-
...props
|
|
17
|
-
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
18
|
-
size?: 'sm' | 'default';
|
|
19
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
20
|
-
declare function SelectContent({
|
|
21
|
-
className,
|
|
22
|
-
children,
|
|
23
|
-
position,
|
|
24
|
-
...props
|
|
25
|
-
}: React.ComponentProps<typeof SelectPrimitive.Content>): import('react/jsx-runtime').JSX.Element;
|
|
26
|
-
declare function SelectLabel({
|
|
27
|
-
className,
|
|
28
|
-
...props
|
|
29
|
-
}: React.ComponentProps<typeof SelectPrimitive.Label>): import('react/jsx-runtime').JSX.Element;
|
|
30
|
-
declare function SelectItem({
|
|
31
|
-
className,
|
|
32
|
-
children,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<typeof SelectPrimitive.Item>): import('react/jsx-runtime').JSX.Element;
|
|
35
|
-
declare function SelectSeparator({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}: React.ComponentProps<typeof SelectPrimitive.Separator>): import('react/jsx-runtime').JSX.Element;
|
|
39
|
-
declare function SelectScrollUpButton({
|
|
40
|
-
className,
|
|
41
|
-
...props
|
|
42
|
-
}: React.ComponentProps<
|
|
43
|
-
typeof SelectPrimitive.ScrollUpButton
|
|
44
|
-
>): import('react/jsx-runtime').JSX.Element;
|
|
45
|
-
declare function SelectScrollDownButton({
|
|
46
|
-
className,
|
|
47
|
-
...props
|
|
48
|
-
}: React.ComponentProps<
|
|
49
|
-
typeof SelectPrimitive.ScrollDownButton
|
|
50
|
-
>): import('react/jsx-runtime').JSX.Element;
|
|
51
|
-
export {
|
|
52
|
-
Select,
|
|
53
|
-
SelectContent,
|
|
54
|
-
SelectGroup,
|
|
55
|
-
SelectItem,
|
|
56
|
-
SelectLabel,
|
|
57
|
-
SelectScrollDownButton,
|
|
58
|
-
SelectScrollUpButton,
|
|
59
|
-
SelectSeparator,
|
|
60
|
-
SelectTrigger,
|
|
61
|
-
SelectValue,
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/shadcn/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAO9E;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAOpF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAOpF;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,2CAiBA;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,QAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CA4BtD;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQ/F;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAkBnD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,2CAQxD;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,2CAU7D;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,2CAU/D;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAC"}
|
package/dist/shadcn/select.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
|
|
4
|
-
import { cn } from '../utils/cn';
|
|
5
|
-
|
|
6
|
-
function Select({ ...props }) {
|
|
7
|
-
return _jsx(SelectPrimitive.Root, { 'data-slot': 'select', ...props });
|
|
8
|
-
}
|
|
9
|
-
function SelectGroup({ ...props }) {
|
|
10
|
-
return _jsx(SelectPrimitive.Group, { 'data-slot': 'select-group', ...props });
|
|
11
|
-
}
|
|
12
|
-
function SelectValue({ ...props }) {
|
|
13
|
-
return _jsx(SelectPrimitive.Value, { 'data-slot': 'select-value', ...props });
|
|
14
|
-
}
|
|
15
|
-
function SelectTrigger({ className, size = 'default', children, ...props }) {
|
|
16
|
-
return _jsxs(SelectPrimitive.Trigger, {
|
|
17
|
-
className: cn(
|
|
18
|
-
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
19
|
-
className,
|
|
20
|
-
),
|
|
21
|
-
'data-size': size,
|
|
22
|
-
'data-slot': 'select-trigger',
|
|
23
|
-
...props,
|
|
24
|
-
children: [
|
|
25
|
-
children,
|
|
26
|
-
_jsx(SelectPrimitive.Icon, {
|
|
27
|
-
asChild: true,
|
|
28
|
-
children: _jsx(ChevronDownIcon, { className: 'size-4 opacity-50' }),
|
|
29
|
-
}),
|
|
30
|
-
],
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function SelectContent({ className, children, position = 'popper', ...props }) {
|
|
34
|
-
return _jsx(SelectPrimitive.Portal, {
|
|
35
|
-
children: _jsxs(SelectPrimitive.Content, {
|
|
36
|
-
className: cn(
|
|
37
|
-
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md',
|
|
38
|
-
position === 'popper' &&
|
|
39
|
-
'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
|
|
40
|
-
className,
|
|
41
|
-
),
|
|
42
|
-
'data-slot': 'select-content',
|
|
43
|
-
position: position,
|
|
44
|
-
...props,
|
|
45
|
-
children: [
|
|
46
|
-
_jsx(SelectScrollUpButton, {}),
|
|
47
|
-
_jsx(SelectPrimitive.Viewport, {
|
|
48
|
-
children: children,
|
|
49
|
-
className: cn(
|
|
50
|
-
'p-1',
|
|
51
|
-
position === 'popper' &&
|
|
52
|
-
'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1',
|
|
53
|
-
),
|
|
54
|
-
}),
|
|
55
|
-
_jsx(SelectScrollDownButton, {}),
|
|
56
|
-
],
|
|
57
|
-
}),
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function SelectLabel({ className, ...props }) {
|
|
61
|
-
return _jsx(SelectPrimitive.Label, {
|
|
62
|
-
className: cn('text-muted-foreground px-2 py-1.5 text-xs', className),
|
|
63
|
-
'data-slot': 'select-label',
|
|
64
|
-
...props,
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function SelectItem({ className, children, ...props }) {
|
|
68
|
-
return _jsxs(SelectPrimitive.Item, {
|
|
69
|
-
className: cn(
|
|
70
|
-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
71
|
-
className,
|
|
72
|
-
),
|
|
73
|
-
'data-slot': 'select-item',
|
|
74
|
-
...props,
|
|
75
|
-
children: [
|
|
76
|
-
_jsx('span', {
|
|
77
|
-
children: _jsx(SelectPrimitive.ItemIndicator, {
|
|
78
|
-
children: _jsx(CheckIcon, { className: 'size-4' }),
|
|
79
|
-
}),
|
|
80
|
-
className: 'absolute right-2 flex size-3.5 items-center justify-center',
|
|
81
|
-
}),
|
|
82
|
-
_jsx(SelectPrimitive.ItemText, { children: children }),
|
|
83
|
-
],
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function SelectSeparator({ className, ...props }) {
|
|
87
|
-
return _jsx(SelectPrimitive.Separator, {
|
|
88
|
-
className: cn('bg-border pointer-events-none -mx-1 my-1 h-px', className),
|
|
89
|
-
'data-slot': 'select-separator',
|
|
90
|
-
...props,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
function SelectScrollUpButton({ className, ...props }) {
|
|
94
|
-
return _jsx(SelectPrimitive.ScrollUpButton, {
|
|
95
|
-
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
96
|
-
'data-slot': 'select-scroll-up-button',
|
|
97
|
-
...props,
|
|
98
|
-
children: _jsx(ChevronUpIcon, { className: 'size-4' }),
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function SelectScrollDownButton({ className, ...props }) {
|
|
102
|
-
return _jsx(SelectPrimitive.ScrollDownButton, {
|
|
103
|
-
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
104
|
-
'data-slot': 'select-scroll-down-button',
|
|
105
|
-
...props,
|
|
106
|
-
children: _jsx(ChevronDownIcon, { className: 'size-4' }),
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
export {
|
|
110
|
-
Select,
|
|
111
|
-
SelectContent,
|
|
112
|
-
SelectGroup,
|
|
113
|
-
SelectItem,
|
|
114
|
-
SelectLabel,
|
|
115
|
-
SelectScrollDownButton,
|
|
116
|
-
SelectScrollUpButton,
|
|
117
|
-
SelectSeparator,
|
|
118
|
-
SelectTrigger,
|
|
119
|
-
SelectValue,
|
|
120
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
declare function Separator({
|
|
4
|
-
className,
|
|
5
|
-
orientation,
|
|
6
|
-
decorative,
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>): import('react/jsx-runtime').JSX.Element;
|
|
9
|
-
export { Separator };
|
|
10
|
-
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../src/shadcn/separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAatD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/shadcn/separator.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
-
import { jsx as _jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { cn } from '../utils/cn';
|
|
5
|
-
|
|
6
|
-
function Separator({ className, orientation = 'horizontal', decorative = true, ...props }) {
|
|
7
|
-
return _jsx(SeparatorPrimitive.Root, {
|
|
8
|
-
className: cn(
|
|
9
|
-
'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
|
|
10
|
-
className,
|
|
11
|
-
),
|
|
12
|
-
'data-slot': 'separator',
|
|
13
|
-
decorative: decorative,
|
|
14
|
-
orientation: orientation,
|
|
15
|
-
...props,
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export { Separator };
|
package/dist/shadcn/sheet.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
declare function Sheet({
|
|
4
|
-
...props
|
|
5
|
-
}: React.ComponentProps<typeof SheetPrimitive.Root>): import('react/jsx-runtime').JSX.Element;
|
|
6
|
-
declare function SheetTrigger({
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof SheetPrimitive.Trigger>): import('react/jsx-runtime').JSX.Element;
|
|
9
|
-
declare function SheetClose({
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof SheetPrimitive.Close>): import('react/jsx-runtime').JSX.Element;
|
|
12
|
-
declare function SheetContent({
|
|
13
|
-
className,
|
|
14
|
-
children,
|
|
15
|
-
side,
|
|
16
|
-
...props
|
|
17
|
-
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
18
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
19
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
20
|
-
declare function SheetHeader({
|
|
21
|
-
className,
|
|
22
|
-
...props
|
|
23
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
24
|
-
declare function SheetFooter({
|
|
25
|
-
className,
|
|
26
|
-
...props
|
|
27
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
28
|
-
declare function SheetTitle({
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}: React.ComponentProps<typeof SheetPrimitive.Title>): import('react/jsx-runtime').JSX.Element;
|
|
32
|
-
declare function SheetDescription({
|
|
33
|
-
className,
|
|
34
|
-
...props
|
|
35
|
-
}: React.ComponentProps<
|
|
36
|
-
typeof SheetPrimitive.Description
|
|
37
|
-
>): import('react/jsx-runtime').JSX.Element;
|
|
38
|
-
export {
|
|
39
|
-
Sheet,
|
|
40
|
-
SheetTrigger,
|
|
41
|
-
SheetClose,
|
|
42
|
-
SheetContent,
|
|
43
|
-
SheetHeader,
|
|
44
|
-
SheetFooter,
|
|
45
|
-
SheetTitle,
|
|
46
|
-
SheetDescription,
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/shadcn/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAO5E;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,2CAOtF;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAOlF;AA2BD,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACvD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC5C,2CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAQ7F;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,2CAQzD;AAED,OAAO,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
|
package/dist/shadcn/sheet.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
2
|
-
import { XIcon } from 'lucide-react';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
|
|
4
|
-
import { cn } from '../utils/cn';
|
|
5
|
-
|
|
6
|
-
function Sheet({ ...props }) {
|
|
7
|
-
return _jsx(SheetPrimitive.Root, { 'data-slot': 'sheet', ...props });
|
|
8
|
-
}
|
|
9
|
-
function SheetTrigger({ ...props }) {
|
|
10
|
-
return _jsx(SheetPrimitive.Trigger, { 'data-slot': 'sheet-trigger', ...props });
|
|
11
|
-
}
|
|
12
|
-
function SheetClose({ ...props }) {
|
|
13
|
-
return _jsx(SheetPrimitive.Close, { 'data-slot': 'sheet-close', ...props });
|
|
14
|
-
}
|
|
15
|
-
function SheetPortal({ ...props }) {
|
|
16
|
-
return _jsx(SheetPrimitive.Portal, { 'data-slot': 'sheet-portal', ...props });
|
|
17
|
-
}
|
|
18
|
-
function SheetOverlay({ className, ...props }) {
|
|
19
|
-
return _jsx(SheetPrimitive.Overlay, {
|
|
20
|
-
className: cn(
|
|
21
|
-
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',
|
|
22
|
-
className,
|
|
23
|
-
),
|
|
24
|
-
'data-slot': 'sheet-overlay',
|
|
25
|
-
...props,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function SheetContent({ className, children, side = 'right', ...props }) {
|
|
29
|
-
return _jsxs(SheetPortal, {
|
|
30
|
-
children: [
|
|
31
|
-
_jsx(SheetOverlay, {}),
|
|
32
|
-
_jsxs(SheetPrimitive.Content, {
|
|
33
|
-
className: cn(
|
|
34
|
-
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
|
|
35
|
-
side === 'right' &&
|
|
36
|
-
'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',
|
|
37
|
-
side === 'left' &&
|
|
38
|
-
'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
|
|
39
|
-
side === 'top' &&
|
|
40
|
-
'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',
|
|
41
|
-
side === 'bottom' &&
|
|
42
|
-
'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
|
|
43
|
-
className,
|
|
44
|
-
),
|
|
45
|
-
'data-slot': 'sheet-content',
|
|
46
|
-
...props,
|
|
47
|
-
children: [
|
|
48
|
-
children,
|
|
49
|
-
_jsxs(SheetPrimitive.Close, {
|
|
50
|
-
children: [
|
|
51
|
-
_jsx(XIcon, { className: 'size-4' }),
|
|
52
|
-
_jsx('span', { children: 'Close', className: 'sr-only' }),
|
|
53
|
-
],
|
|
54
|
-
className:
|
|
55
|
-
'ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none',
|
|
56
|
-
}),
|
|
57
|
-
],
|
|
58
|
-
}),
|
|
59
|
-
],
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function SheetHeader({ className, ...props }) {
|
|
63
|
-
return _jsx('div', {
|
|
64
|
-
className: cn('flex flex-col gap-1.5 p-4', className),
|
|
65
|
-
'data-slot': 'sheet-header',
|
|
66
|
-
...props,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function SheetFooter({ className, ...props }) {
|
|
70
|
-
return _jsx('div', {
|
|
71
|
-
className: cn('mt-auto flex flex-col gap-2 p-4', className),
|
|
72
|
-
'data-slot': 'sheet-footer',
|
|
73
|
-
...props,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function SheetTitle({ className, ...props }) {
|
|
77
|
-
return _jsx(SheetPrimitive.Title, {
|
|
78
|
-
className: cn('text-foreground font-semibold', className),
|
|
79
|
-
'data-slot': 'sheet-title',
|
|
80
|
-
...props,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function SheetDescription({ className, ...props }) {
|
|
84
|
-
return _jsx(SheetPrimitive.Description, {
|
|
85
|
-
className: cn('text-muted-foreground text-sm', className),
|
|
86
|
-
'data-slot': 'sheet-description',
|
|
87
|
-
...props,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
Sheet,
|
|
92
|
-
SheetTrigger,
|
|
93
|
-
SheetClose,
|
|
94
|
-
SheetContent,
|
|
95
|
-
SheetHeader,
|
|
96
|
-
SheetFooter,
|
|
97
|
-
SheetTitle,
|
|
98
|
-
SheetDescription,
|
|
99
|
-
};
|
package/dist/shadcn/sidebar.d.ts
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type VariantProps } from '../utils/cn';
|
|
3
|
-
import { Button } from './button';
|
|
4
|
-
import { Input } from './input';
|
|
5
|
-
import { Separator } from './separator';
|
|
6
|
-
import { TooltipContent } from './tooltip';
|
|
7
|
-
type SidebarContextProps = {
|
|
8
|
-
state: 'expanded' | 'collapsed';
|
|
9
|
-
open: boolean;
|
|
10
|
-
setOpen: (open: boolean) => void;
|
|
11
|
-
openMobile: boolean;
|
|
12
|
-
setOpenMobile: (open: boolean) => void;
|
|
13
|
-
isMobile: boolean;
|
|
14
|
-
toggleSidebar: () => void;
|
|
15
|
-
};
|
|
16
|
-
declare function useSidebar(): SidebarContextProps;
|
|
17
|
-
declare function SidebarProvider({
|
|
18
|
-
defaultOpen,
|
|
19
|
-
open: openProp,
|
|
20
|
-
onOpenChange: setOpenProp,
|
|
21
|
-
className,
|
|
22
|
-
style,
|
|
23
|
-
children,
|
|
24
|
-
...props
|
|
25
|
-
}: React.ComponentProps<'div'> & {
|
|
26
|
-
defaultOpen?: boolean;
|
|
27
|
-
open?: boolean;
|
|
28
|
-
onOpenChange?: (open: boolean) => void;
|
|
29
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
30
|
-
declare function Sidebar({
|
|
31
|
-
side,
|
|
32
|
-
variant,
|
|
33
|
-
collapsible,
|
|
34
|
-
className,
|
|
35
|
-
children,
|
|
36
|
-
...props
|
|
37
|
-
}: React.ComponentProps<'div'> & {
|
|
38
|
-
side?: 'left' | 'right';
|
|
39
|
-
variant?: 'sidebar' | 'floating' | 'inset';
|
|
40
|
-
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
41
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
42
|
-
declare function SidebarTrigger({
|
|
43
|
-
className,
|
|
44
|
-
onClick,
|
|
45
|
-
...props
|
|
46
|
-
}: React.ComponentProps<typeof Button>): import('react/jsx-runtime').JSX.Element;
|
|
47
|
-
declare function SidebarRail({
|
|
48
|
-
className,
|
|
49
|
-
...props
|
|
50
|
-
}: React.ComponentProps<'button'>): import('react/jsx-runtime').JSX.Element;
|
|
51
|
-
declare function SidebarInset({
|
|
52
|
-
className,
|
|
53
|
-
...props
|
|
54
|
-
}: React.ComponentProps<'main'>): import('react/jsx-runtime').JSX.Element;
|
|
55
|
-
declare function SidebarInput({
|
|
56
|
-
className,
|
|
57
|
-
...props
|
|
58
|
-
}: React.ComponentProps<typeof Input>): import('react/jsx-runtime').JSX.Element;
|
|
59
|
-
declare function SidebarHeader({
|
|
60
|
-
className,
|
|
61
|
-
...props
|
|
62
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
63
|
-
declare function SidebarFooter({
|
|
64
|
-
className,
|
|
65
|
-
...props
|
|
66
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
67
|
-
declare function SidebarSeparator({
|
|
68
|
-
className,
|
|
69
|
-
...props
|
|
70
|
-
}: React.ComponentProps<typeof Separator>): import('react/jsx-runtime').JSX.Element;
|
|
71
|
-
declare function SidebarContent({
|
|
72
|
-
className,
|
|
73
|
-
...props
|
|
74
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
75
|
-
declare function SidebarGroup({
|
|
76
|
-
className,
|
|
77
|
-
...props
|
|
78
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
79
|
-
declare function SidebarGroupLabel({
|
|
80
|
-
className,
|
|
81
|
-
asChild,
|
|
82
|
-
...props
|
|
83
|
-
}: React.ComponentProps<'div'> & {
|
|
84
|
-
asChild?: boolean;
|
|
85
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
86
|
-
declare function SidebarGroupAction({
|
|
87
|
-
className,
|
|
88
|
-
asChild,
|
|
89
|
-
...props
|
|
90
|
-
}: React.ComponentProps<'button'> & {
|
|
91
|
-
asChild?: boolean;
|
|
92
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
93
|
-
declare function SidebarGroupContent({
|
|
94
|
-
className,
|
|
95
|
-
...props
|
|
96
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
97
|
-
declare function SidebarMenu({
|
|
98
|
-
className,
|
|
99
|
-
...props
|
|
100
|
-
}: React.ComponentProps<'ul'>): import('react/jsx-runtime').JSX.Element;
|
|
101
|
-
declare function SidebarMenuItem({
|
|
102
|
-
className,
|
|
103
|
-
...props
|
|
104
|
-
}: React.ComponentProps<'li'>): import('react/jsx-runtime').JSX.Element;
|
|
105
|
-
declare const sidebarMenuButtonVariants: (
|
|
106
|
-
props?:
|
|
107
|
-
| ({
|
|
108
|
-
size?: 'default' | 'lg' | 'sm' | undefined;
|
|
109
|
-
variant?: 'default' | 'outline' | undefined;
|
|
110
|
-
} & (
|
|
111
|
-
| {
|
|
112
|
-
class?: import('cva').ClassValue;
|
|
113
|
-
className?: never;
|
|
114
|
-
}
|
|
115
|
-
| {
|
|
116
|
-
class?: never;
|
|
117
|
-
className?: import('cva').ClassValue;
|
|
118
|
-
}
|
|
119
|
-
))
|
|
120
|
-
| undefined,
|
|
121
|
-
) => string;
|
|
122
|
-
declare function SidebarMenuButton({
|
|
123
|
-
asChild,
|
|
124
|
-
isActive,
|
|
125
|
-
variant,
|
|
126
|
-
size,
|
|
127
|
-
tooltip,
|
|
128
|
-
className,
|
|
129
|
-
...props
|
|
130
|
-
}: React.ComponentProps<'button'> & {
|
|
131
|
-
asChild?: boolean;
|
|
132
|
-
isActive?: boolean;
|
|
133
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
134
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>): import('react/jsx-runtime').JSX.Element;
|
|
135
|
-
declare function SidebarMenuAction({
|
|
136
|
-
className,
|
|
137
|
-
asChild,
|
|
138
|
-
showOnHover,
|
|
139
|
-
...props
|
|
140
|
-
}: React.ComponentProps<'button'> & {
|
|
141
|
-
asChild?: boolean;
|
|
142
|
-
showOnHover?: boolean;
|
|
143
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
144
|
-
declare function SidebarMenuBadge({
|
|
145
|
-
className,
|
|
146
|
-
...props
|
|
147
|
-
}: React.ComponentProps<'div'>): import('react/jsx-runtime').JSX.Element;
|
|
148
|
-
declare function SidebarMenuSkeleton({
|
|
149
|
-
className,
|
|
150
|
-
showIcon,
|
|
151
|
-
...props
|
|
152
|
-
}: React.ComponentProps<'div'> & {
|
|
153
|
-
showIcon?: boolean;
|
|
154
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
155
|
-
declare function SidebarMenuSub({
|
|
156
|
-
className,
|
|
157
|
-
...props
|
|
158
|
-
}: React.ComponentProps<'ul'>): import('react/jsx-runtime').JSX.Element;
|
|
159
|
-
declare function SidebarMenuSubItem({
|
|
160
|
-
className,
|
|
161
|
-
...props
|
|
162
|
-
}: React.ComponentProps<'li'>): import('react/jsx-runtime').JSX.Element;
|
|
163
|
-
declare function SidebarMenuSubButton({
|
|
164
|
-
asChild,
|
|
165
|
-
size,
|
|
166
|
-
isActive,
|
|
167
|
-
className,
|
|
168
|
-
...props
|
|
169
|
-
}: React.ComponentProps<'a'> & {
|
|
170
|
-
asChild?: boolean;
|
|
171
|
-
size?: 'sm' | 'md';
|
|
172
|
-
isActive?: boolean;
|
|
173
|
-
}): import('react/jsx-runtime').JSX.Element;
|
|
174
|
-
export {
|
|
175
|
-
Sidebar,
|
|
176
|
-
SidebarContent,
|
|
177
|
-
SidebarFooter,
|
|
178
|
-
SidebarGroup,
|
|
179
|
-
SidebarGroupAction,
|
|
180
|
-
SidebarGroupContent,
|
|
181
|
-
SidebarGroupLabel,
|
|
182
|
-
SidebarHeader,
|
|
183
|
-
SidebarInput,
|
|
184
|
-
SidebarInset,
|
|
185
|
-
SidebarMenu,
|
|
186
|
-
SidebarMenuAction,
|
|
187
|
-
SidebarMenuBadge,
|
|
188
|
-
SidebarMenuButton,
|
|
189
|
-
SidebarMenuItem,
|
|
190
|
-
SidebarMenuSkeleton,
|
|
191
|
-
SidebarMenuSub,
|
|
192
|
-
SidebarMenuSubButton,
|
|
193
|
-
SidebarMenuSubItem,
|
|
194
|
-
SidebarProvider,
|
|
195
|
-
SidebarRail,
|
|
196
|
-
SidebarSeparator,
|
|
197
|
-
SidebarTrigger,
|
|
198
|
-
useSidebar,
|
|
199
|
-
};
|
|
200
|
-
//# sourceMappingURL=sidebar.d.ts.map
|