@thangnqdev/ui 0.1.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/README.md +196 -0
- package/dist/Label-DWOlgSNW.d.cts +14 -0
- package/dist/Label-DWOlgSNW.d.ts +14 -0
- package/dist/bento/index.cjs +140 -0
- package/dist/bento/index.cjs.map +1 -0
- package/dist/bento/index.d.cts +4 -0
- package/dist/bento/index.d.ts +4 -0
- package/dist/bento/index.js +4 -0
- package/dist/bento/index.js.map +1 -0
- package/dist/bento/styles.css +46 -0
- package/dist/buttons/index.cjs +365 -0
- package/dist/buttons/index.cjs.map +1 -0
- package/dist/buttons/index.d.cts +4 -0
- package/dist/buttons/index.d.ts +4 -0
- package/dist/buttons/index.js +5 -0
- package/dist/buttons/index.js.map +1 -0
- package/dist/buttons/styles.css +6 -0
- package/dist/chunk-2OXZK6IP.js +514 -0
- package/dist/chunk-2OXZK6IP.js.map +1 -0
- package/dist/chunk-4S6L5V7X.js +15 -0
- package/dist/chunk-4S6L5V7X.js.map +1 -0
- package/dist/chunk-5FZ6ZFII.js +728 -0
- package/dist/chunk-5FZ6ZFII.js.map +1 -0
- package/dist/chunk-66VWUJEI.js +86 -0
- package/dist/chunk-66VWUJEI.js.map +1 -0
- package/dist/chunk-A7P3O5Z5.js +163 -0
- package/dist/chunk-A7P3O5Z5.js.map +1 -0
- package/dist/chunk-ATYGDTMK.js +257 -0
- package/dist/chunk-ATYGDTMK.js.map +1 -0
- package/dist/chunk-C4SUXMI3.js +138 -0
- package/dist/chunk-C4SUXMI3.js.map +1 -0
- package/dist/chunk-EU2LPUYP.js +25 -0
- package/dist/chunk-EU2LPUYP.js.map +1 -0
- package/dist/chunk-F5Q7BTMH.js +1991 -0
- package/dist/chunk-F5Q7BTMH.js.map +1 -0
- package/dist/chunk-GXI2H5XA.js +46 -0
- package/dist/chunk-GXI2H5XA.js.map +1 -0
- package/dist/chunk-H3LCNPMC.js +101 -0
- package/dist/chunk-H3LCNPMC.js.map +1 -0
- package/dist/chunk-IABPUCAQ.js +19 -0
- package/dist/chunk-IABPUCAQ.js.map +1 -0
- package/dist/chunk-KJRBRTQE.js +101 -0
- package/dist/chunk-KJRBRTQE.js.map +1 -0
- package/dist/chunk-LBUBXUYQ.js +40 -0
- package/dist/chunk-LBUBXUYQ.js.map +1 -0
- package/dist/chunk-LWFRUJRU.js +537 -0
- package/dist/chunk-LWFRUJRU.js.map +1 -0
- package/dist/chunk-NFVONJUK.js +882 -0
- package/dist/chunk-NFVONJUK.js.map +1 -0
- package/dist/chunk-PF4ZHGVW.js +284 -0
- package/dist/chunk-PF4ZHGVW.js.map +1 -0
- package/dist/chunk-WAFHC4DQ.js +366 -0
- package/dist/chunk-WAFHC4DQ.js.map +1 -0
- package/dist/chunk-X76KBH4Y.js +71 -0
- package/dist/chunk-X76KBH4Y.js.map +1 -0
- package/dist/core/index.cjs +103 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +3 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/styles.css +128 -0
- package/dist/data-display/index.cjs +1023 -0
- package/dist/data-display/index.cjs.map +1 -0
- package/dist/data-display/index.d.cts +4 -0
- package/dist/data-display/index.d.ts +4 -0
- package/dist/data-display/index.js +6 -0
- package/dist/data-display/index.js.map +1 -0
- package/dist/data-display/styles.css +4 -0
- package/dist/feedback/index.cjs +368 -0
- package/dist/feedback/index.cjs.map +1 -0
- package/dist/feedback/index.d.cts +4 -0
- package/dist/feedback/index.d.ts +4 -0
- package/dist/feedback/index.js +4 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/feedback/styles.css +4 -0
- package/dist/forms/index.cjs +2287 -0
- package/dist/forms/index.cjs.map +1 -0
- package/dist/forms/index.d.cts +5 -0
- package/dist/forms/index.d.ts +5 -0
- package/dist/forms/index.js +10 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/forms/styles.css +6 -0
- package/dist/glass/index.cjs +165 -0
- package/dist/glass/index.cjs.map +1 -0
- package/dist/glass/index.d.cts +4 -0
- package/dist/glass/index.d.ts +4 -0
- package/dist/glass/index.js +4 -0
- package/dist/glass/index.js.map +1 -0
- package/dist/glass/styles.css +81 -0
- package/dist/index-BTvkbCIj.d.cts +146 -0
- package/dist/index-BTvkbCIj.d.ts +146 -0
- package/dist/index-BkRqGNG1.d.cts +201 -0
- package/dist/index-BkRqGNG1.d.ts +201 -0
- package/dist/index-BlPcGeW-.d.cts +45 -0
- package/dist/index-BlPcGeW-.d.ts +45 -0
- package/dist/index-BzOCqvC6.d.cts +32 -0
- package/dist/index-BzOCqvC6.d.ts +32 -0
- package/dist/index-CCeWYAvn.d.cts +83 -0
- package/dist/index-COQ7uwt9.d.cts +44 -0
- package/dist/index-COQ7uwt9.d.ts +44 -0
- package/dist/index-CenuF_P2.d.cts +221 -0
- package/dist/index-CenuF_P2.d.ts +221 -0
- package/dist/index-Cle6QzQl.d.ts +371 -0
- package/dist/index-D6fE7w-b.d.cts +90 -0
- package/dist/index-D6fE7w-b.d.ts +90 -0
- package/dist/index-DR8cfJUG.d.ts +83 -0
- package/dist/index-DzcWh1Hs.d.cts +131 -0
- package/dist/index-DzcWh1Hs.d.ts +131 -0
- package/dist/index-TyK-Ldpy.d.cts +371 -0
- package/dist/index-ugj5s6a3.d.cts +95 -0
- package/dist/index-ugj5s6a3.d.ts +95 -0
- package/dist/index.cjs +6400 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/index.cjs +516 -0
- package/dist/layout/index.cjs.map +1 -0
- package/dist/layout/index.d.cts +4 -0
- package/dist/layout/index.d.ts +4 -0
- package/dist/layout/index.js +4 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/styles.css +8 -0
- package/dist/navigation/index.cjs +673 -0
- package/dist/navigation/index.cjs.map +1 -0
- package/dist/navigation/index.d.cts +2 -0
- package/dist/navigation/index.d.ts +2 -0
- package/dist/navigation/index.js +8 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/navigation/styles.css +4 -0
- package/dist/overlays/index.cjs +954 -0
- package/dist/overlays/index.cjs.map +1 -0
- package/dist/overlays/index.d.cts +4 -0
- package/dist/overlays/index.d.ts +4 -0
- package/dist/overlays/index.js +9 -0
- package/dist/overlays/index.js.map +1 -0
- package/dist/overlays/styles.css +8 -0
- package/dist/styles.css +333 -0
- package/dist/typography/index.cjs +311 -0
- package/dist/typography/index.cjs.map +1 -0
- package/dist/typography/index.d.cts +5 -0
- package/dist/typography/index.d.ts +5 -0
- package/dist/typography/index.js +6 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/styles.css +5 -0
- package/llms.txt +113 -0
- package/package.json +116 -0
- package/src/bento/BentoCard.tsx +140 -0
- package/src/bento/BentoGrid.tsx +50 -0
- package/src/bento/index.ts +2 -0
- package/src/bento/tokens.css +46 -0
- package/src/buttons/Button.tsx +104 -0
- package/src/buttons/ButtonGroup.tsx +43 -0
- package/src/buttons/IconButton.tsx +79 -0
- package/src/buttons/SplitButton.tsx +86 -0
- package/src/buttons/ToggleButton.tsx +157 -0
- package/src/buttons/index.ts +5 -0
- package/src/buttons/tokens.css +6 -0
- package/src/core/ThemeProvider.tsx +123 -0
- package/src/core/index.ts +2 -0
- package/src/core/tokens.css +128 -0
- package/src/data-display/Accordion.tsx +147 -0
- package/src/data-display/Avatar.tsx +134 -0
- package/src/data-display/Card.tsx +112 -0
- package/src/data-display/Carousel.tsx +130 -0
- package/src/data-display/Chip.tsx +74 -0
- package/src/data-display/DataTablePro.tsx +356 -0
- package/src/data-display/StatCard.tsx +60 -0
- package/src/data-display/Table.tsx +74 -0
- package/src/data-display/Timeline.tsx +62 -0
- package/src/data-display/TreeView.tsx +140 -0
- package/src/data-display/index.ts +10 -0
- package/src/data-display/tokens.css +4 -0
- package/src/feedback/Alert.tsx +80 -0
- package/src/feedback/EmptyState.tsx +45 -0
- package/src/feedback/ProgressBar.tsx +174 -0
- package/src/feedback/Skeleton.tsx +66 -0
- package/src/feedback/Spinner.tsx +65 -0
- package/src/feedback/index.ts +5 -0
- package/src/feedback/tokens.css +4 -0
- package/src/forms/Checkbox.tsx +69 -0
- package/src/forms/CheckboxGroup.tsx +29 -0
- package/src/forms/Combobox.tsx +368 -0
- package/src/forms/DatePicker.tsx +480 -0
- package/src/forms/FileUpload.tsx +222 -0
- package/src/forms/FormField.tsx +115 -0
- package/src/forms/Input.tsx +151 -0
- package/src/forms/MaskedInput.tsx +97 -0
- package/src/forms/NumberInput.tsx +248 -0
- package/src/forms/PasswordInput.tsx +35 -0
- package/src/forms/PinInput.tsx +125 -0
- package/src/forms/Radio.tsx +142 -0
- package/src/forms/RangeSlider.tsx +111 -0
- package/src/forms/SearchInput.tsx +34 -0
- package/src/forms/Select.tsx +103 -0
- package/src/forms/Slider.tsx +85 -0
- package/src/forms/Switch.tsx +95 -0
- package/src/forms/Textarea.tsx +114 -0
- package/src/forms/index.ts +18 -0
- package/src/forms/tokens.css +6 -0
- package/src/glass/GlassBadge.tsx +61 -0
- package/src/glass/GlassButton.tsx +59 -0
- package/src/glass/GlassCard.tsx +71 -0
- package/src/glass/index.ts +3 -0
- package/src/glass/tokens.css +81 -0
- package/src/index.ts +26 -0
- package/src/layout/AspectRatio.tsx +39 -0
- package/src/layout/Container.tsx +53 -0
- package/src/layout/Divider.tsx +61 -0
- package/src/layout/Flex.tsx +79 -0
- package/src/layout/Grid.tsx +124 -0
- package/src/layout/PageLayout.tsx +59 -0
- package/src/layout/ScrollArea.tsx +43 -0
- package/src/layout/Section.tsx +47 -0
- package/src/layout/Spacer.tsx +30 -0
- package/src/layout/Stack.tsx +88 -0
- package/src/layout/index.ts +10 -0
- package/src/layout/tokens.css +8 -0
- package/src/navigation/Breadcrumb.tsx +73 -0
- package/src/navigation/CommandPalette.tsx +142 -0
- package/src/navigation/DropdownMenu.tsx +160 -0
- package/src/navigation/Pagination.tsx +114 -0
- package/src/navigation/Stepper.tsx +93 -0
- package/src/navigation/Tabs.tsx +133 -0
- package/src/navigation/index.ts +6 -0
- package/src/navigation/tokens.css +4 -0
- package/src/overlays/AlertDialog.tsx +54 -0
- package/src/overlays/BottomSheet.tsx +123 -0
- package/src/overlays/ContextMenu.tsx +119 -0
- package/src/overlays/Drawer.tsx +145 -0
- package/src/overlays/FocusTrap.tsx +49 -0
- package/src/overlays/HoverCard.tsx +72 -0
- package/src/overlays/Modal.tsx +219 -0
- package/src/overlays/Popover.tsx +126 -0
- package/src/overlays/Portal.tsx +23 -0
- package/src/overlays/Toast.tsx +137 -0
- package/src/overlays/Tooltip.tsx +100 -0
- package/src/overlays/index.ts +11 -0
- package/src/overlays/tokens.css +8 -0
- package/src/styles/tokens.css +2 -0
- package/src/typography/Blockquote.tsx +32 -0
- package/src/typography/Code.tsx +89 -0
- package/src/typography/Heading.tsx +56 -0
- package/src/typography/Kbd.tsx +25 -0
- package/src/typography/Label.tsx +47 -0
- package/src/typography/Link.tsx +56 -0
- package/src/typography/Text.tsx +62 -0
- package/src/typography/index.ts +7 -0
- package/src/typography/tokens.css +5 -0
- package/src/utils/cn.ts +6 -0
- package/ui-contract.json +62 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { i as Core, T as Theme, a as ThemeProvider, b as ThemeProviderProps, c as cn, u as useTheme } from './index-BzOCqvC6.cjs';
|
|
2
|
+
export { A as AspectRatio, a as AspectRatioProps, C as Container, b as ContainerProps, D as Divider, c as DividerProps, F as Flex, d as FlexProps, G as Grid, e as GridItem, f as GridItemProps, g as GridProps, H as HStack, i as Layout, P as PageHeader, h as PageLayout, j as PageLayoutProps, k as PageSidebar, S as ScrollArea, l as ScrollAreaProps, m as Section, n as SectionProps, o as Spacer, p as SpacerProps, q as Stack, r as StackProps, V as VStack, s as containerVariants, t as dividerVariants, u as flexVariants, v as gridItemVariants, w as gridVariants, x as sectionVariants, y as stackVariants } from './index-BTvkbCIj.cjs';
|
|
3
|
+
export { B as Blockquote, a as BlockquoteProps, C as Code, b as CodeBlock, c as CodeBlockProps, d as CodeProps, H as Heading, e as HeadingProps, K as Kbd, f as KbdProps, L as Link, g as LinkProps, T as Text, h as TextProps, i as Typography, j as headingVariants, l as linkVariants, t as textVariants } from './index-CCeWYAvn.cjs';
|
|
4
|
+
export { B as Button, a as ButtonGroup, b as ButtonGroupProps, c as ButtonProps, i as Buttons, I as IconButton, d as IconButtonProps, S as SplitButton, e as SplitButtonItem, f as SplitButtonProps, T as ToggleButton, g as ToggleButtonProps, h as ToggleGroup, j as ToggleGroupProps, k as buttonGroupVariants, l as buttonVariants, m as iconButtonVariants, t as toggleVariants } from './index-D6fE7w-b.cjs';
|
|
5
|
+
export { C as Checkbox, a as CheckboxGroup, b as CheckboxGroupProps, c as CheckboxProps, d as Combobox, e as ComboboxOption, f as ComboboxProps, g as CurrencyInput, h as CurrencyInputProps, D as DatePicker, i as DatePickerProps, j as DateRange, k as DateRangePicker, l as DateRangePickerProps, F as FileUpload, m as FileUploadProps, n as FormErrorMessage, o as FormField, p as FormFieldProps, q as FormHelperText, r as FormLabel, s as Forms, I as Input, t as InputProps, M as MaskedInput, u as MaskedInputProps, v as MultiSelect, w as MultiSelectProps, N as NumberInput, x as NumberInputProps, P as PasswordInput, y as PasswordInputProps, z as PinInput, A as PinInputProps, R as Radio, B as RadioGroup, E as RadioGroupProps, G as RadioProps, H as RangeSlider, J as RangeSliderProps, S as SearchInput, K as SearchInputProps, L as Select, O as SelectOption, Q as SelectProps, T as Slider, U as SliderProps, V as Switch, W as SwitchProps, X as Textarea, Y as TextareaProps, Z as TimePicker, _ as TimePickerProps, $ as UploadedFile, a0 as applyMask, a1 as checkboxVariants, a2 as formatCurrencyString, a3 as formatDate, a4 as formatDisplayDate, a5 as formatFileSize, a6 as inputVariants, a7 as radioVariants, a8 as selectVariants, a9 as switchThumbVariants, aa as switchVariants, ab as textareaVariants, ac as useFormField } from './index-TyK-Ldpy.cjs';
|
|
6
|
+
export { A as AlertDialog, a as AlertDialogProps, B as BottomSheet, b as BottomSheetBody, c as BottomSheetFooter, d as BottomSheetHeader, e as BottomSheetProps, C as ContextMenu, f as ContextMenuItem, g as ContextMenuItemProps, h as ContextMenuProps, i as ContextMenuSeparator, D as Drawer, j as DrawerBody, k as DrawerFooter, l as DrawerHeader, m as DrawerProps, F as FocusTrap, n as FocusTrapProps, H as HoverCard, o as HoverCardProps, M as Modal, p as ModalBody, q as ModalCloseButton, r as ModalContent, s as ModalContentProps, t as ModalDescription, u as ModalFooter, v as ModalHeader, w as ModalOverlay, x as ModalOverlayProps, y as ModalProps, z as ModalTitle, E as Overlays, P as Popover, G as PopoverProps, I as Portal, J as PortalProps, T as ToastItem, K as ToastOptions, L as ToastType, N as ToasterProvider, O as ToasterProviderProps, Q as Tooltip, R as TooltipProps, S as drawerVariants, U as modalContentVariants, V as toastVariants, W as tooltipVariants, X as useDrawer, Y as useModal, Z as useToast } from './index-CenuF_P2.cjs';
|
|
7
|
+
export { B as Breadcrumb, a as BreadcrumbItem, b as BreadcrumbLink, c as BreadcrumbLinkProps, d as BreadcrumbPage, e as BreadcrumbSeparator, C as CommandItem, f as CommandPalette, g as CommandPaletteProps, D as DropdownMenu, h as DropdownMenuContent, i as DropdownMenuContentProps, j as DropdownMenuItem, k as DropdownMenuItemProps, l as DropdownMenuLabel, m as DropdownMenuProps, n as DropdownMenuSeparator, o as DropdownMenuTrigger, p as Navigation, P as Pagination, q as PaginationProps, S as StepItem, r as Stepper, s as StepperProps, T as Tabs, t as TabsContent, u as TabsContentProps, v as TabsList, w as TabsProps, x as TabsTrigger, y as TabsTriggerProps, z as useDropdown, A as useTabs } from './index-DzcWh1Hs.cjs';
|
|
8
|
+
export { A as Accordion, a as AccordionContent, b as AccordionItem, c as AccordionItemProps, d as AccordionProps, e as AccordionTrigger, f as Avatar, g as AvatarGroup, h as AvatarGroupProps, i as AvatarProps, C as Card, j as CardContent, k as CardDescription, l as CardFooter, m as CardHeader, n as CardProps, o as CardTitle, p as Carousel, q as CarouselProps, r as Chip, s as ChipProps, t as ColumnDef, u as DataDisplay, D as DataTablePro, v as DataTableProProps, S as StatCard, w as StatCardProps, T as Table, x as TableBody, y as TableCaption, z as TableCell, B as TableFooter, E as TableHead, F as TableHeader, G as TableRow, H as Timeline, I as TimelineItem, J as TimelineProps, K as TreeItem, L as TreeView, M as TreeViewProps, N as avatarVariants, O as cardVariants, P as chipVariants, Q as statusVariants, R as useAccordion } from './index-BkRqGNG1.cjs';
|
|
9
|
+
export { A as Alert, a as AlertDescription, b as AlertProps, c as AlertTitle, C as CircularProgress, d as CircularProgressProps, E as EmptyState, e as EmptyStateProps, i as Feedback, P as ProgressBar, f as ProgressBarProps, S as Skeleton, g as SkeletonCircle, h as SkeletonCircleProps, j as SkeletonProps, k as SkeletonText, l as SkeletonTextProps, m as Spinner, n as SpinnerProps, o as alertVariants, p as progressVariants, s as spinnerVariants } from './index-ugj5s6a3.cjs';
|
|
10
|
+
export { i as Glass, G as GlassBadge, a as GlassBadgeProps, b as GlassButton, c as GlassButtonProps, d as GlassCard, e as GlassCardProps } from './index-COQ7uwt9.cjs';
|
|
11
|
+
export { i as Bento, B as BentoCard, a as BentoCardProps, b as BentoGrid, c as BentoGridProps } from './index-BlPcGeW-.cjs';
|
|
12
|
+
export { L as Label, a as LabelProps, l as labelVariants } from './Label-DWOlgSNW.cjs';
|
|
13
|
+
import 'react';
|
|
14
|
+
import 'clsx';
|
|
15
|
+
import 'class-variance-authority/types';
|
|
16
|
+
import 'class-variance-authority';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { i as Core, T as Theme, a as ThemeProvider, b as ThemeProviderProps, c as cn, u as useTheme } from './index-BzOCqvC6.js';
|
|
2
|
+
export { A as AspectRatio, a as AspectRatioProps, C as Container, b as ContainerProps, D as Divider, c as DividerProps, F as Flex, d as FlexProps, G as Grid, e as GridItem, f as GridItemProps, g as GridProps, H as HStack, i as Layout, P as PageHeader, h as PageLayout, j as PageLayoutProps, k as PageSidebar, S as ScrollArea, l as ScrollAreaProps, m as Section, n as SectionProps, o as Spacer, p as SpacerProps, q as Stack, r as StackProps, V as VStack, s as containerVariants, t as dividerVariants, u as flexVariants, v as gridItemVariants, w as gridVariants, x as sectionVariants, y as stackVariants } from './index-BTvkbCIj.js';
|
|
3
|
+
export { B as Blockquote, a as BlockquoteProps, C as Code, b as CodeBlock, c as CodeBlockProps, d as CodeProps, H as Heading, e as HeadingProps, K as Kbd, f as KbdProps, L as Link, g as LinkProps, T as Text, h as TextProps, i as Typography, j as headingVariants, l as linkVariants, t as textVariants } from './index-DR8cfJUG.js';
|
|
4
|
+
export { B as Button, a as ButtonGroup, b as ButtonGroupProps, c as ButtonProps, i as Buttons, I as IconButton, d as IconButtonProps, S as SplitButton, e as SplitButtonItem, f as SplitButtonProps, T as ToggleButton, g as ToggleButtonProps, h as ToggleGroup, j as ToggleGroupProps, k as buttonGroupVariants, l as buttonVariants, m as iconButtonVariants, t as toggleVariants } from './index-D6fE7w-b.js';
|
|
5
|
+
export { C as Checkbox, a as CheckboxGroup, b as CheckboxGroupProps, c as CheckboxProps, d as Combobox, e as ComboboxOption, f as ComboboxProps, g as CurrencyInput, h as CurrencyInputProps, D as DatePicker, i as DatePickerProps, j as DateRange, k as DateRangePicker, l as DateRangePickerProps, F as FileUpload, m as FileUploadProps, n as FormErrorMessage, o as FormField, p as FormFieldProps, q as FormHelperText, r as FormLabel, s as Forms, I as Input, t as InputProps, M as MaskedInput, u as MaskedInputProps, v as MultiSelect, w as MultiSelectProps, N as NumberInput, x as NumberInputProps, P as PasswordInput, y as PasswordInputProps, z as PinInput, A as PinInputProps, R as Radio, B as RadioGroup, E as RadioGroupProps, G as RadioProps, H as RangeSlider, J as RangeSliderProps, S as SearchInput, K as SearchInputProps, L as Select, O as SelectOption, Q as SelectProps, T as Slider, U as SliderProps, V as Switch, W as SwitchProps, X as Textarea, Y as TextareaProps, Z as TimePicker, _ as TimePickerProps, $ as UploadedFile, a0 as applyMask, a1 as checkboxVariants, a2 as formatCurrencyString, a3 as formatDate, a4 as formatDisplayDate, a5 as formatFileSize, a6 as inputVariants, a7 as radioVariants, a8 as selectVariants, a9 as switchThumbVariants, aa as switchVariants, ab as textareaVariants, ac as useFormField } from './index-Cle6QzQl.js';
|
|
6
|
+
export { A as AlertDialog, a as AlertDialogProps, B as BottomSheet, b as BottomSheetBody, c as BottomSheetFooter, d as BottomSheetHeader, e as BottomSheetProps, C as ContextMenu, f as ContextMenuItem, g as ContextMenuItemProps, h as ContextMenuProps, i as ContextMenuSeparator, D as Drawer, j as DrawerBody, k as DrawerFooter, l as DrawerHeader, m as DrawerProps, F as FocusTrap, n as FocusTrapProps, H as HoverCard, o as HoverCardProps, M as Modal, p as ModalBody, q as ModalCloseButton, r as ModalContent, s as ModalContentProps, t as ModalDescription, u as ModalFooter, v as ModalHeader, w as ModalOverlay, x as ModalOverlayProps, y as ModalProps, z as ModalTitle, E as Overlays, P as Popover, G as PopoverProps, I as Portal, J as PortalProps, T as ToastItem, K as ToastOptions, L as ToastType, N as ToasterProvider, O as ToasterProviderProps, Q as Tooltip, R as TooltipProps, S as drawerVariants, U as modalContentVariants, V as toastVariants, W as tooltipVariants, X as useDrawer, Y as useModal, Z as useToast } from './index-CenuF_P2.js';
|
|
7
|
+
export { B as Breadcrumb, a as BreadcrumbItem, b as BreadcrumbLink, c as BreadcrumbLinkProps, d as BreadcrumbPage, e as BreadcrumbSeparator, C as CommandItem, f as CommandPalette, g as CommandPaletteProps, D as DropdownMenu, h as DropdownMenuContent, i as DropdownMenuContentProps, j as DropdownMenuItem, k as DropdownMenuItemProps, l as DropdownMenuLabel, m as DropdownMenuProps, n as DropdownMenuSeparator, o as DropdownMenuTrigger, p as Navigation, P as Pagination, q as PaginationProps, S as StepItem, r as Stepper, s as StepperProps, T as Tabs, t as TabsContent, u as TabsContentProps, v as TabsList, w as TabsProps, x as TabsTrigger, y as TabsTriggerProps, z as useDropdown, A as useTabs } from './index-DzcWh1Hs.js';
|
|
8
|
+
export { A as Accordion, a as AccordionContent, b as AccordionItem, c as AccordionItemProps, d as AccordionProps, e as AccordionTrigger, f as Avatar, g as AvatarGroup, h as AvatarGroupProps, i as AvatarProps, C as Card, j as CardContent, k as CardDescription, l as CardFooter, m as CardHeader, n as CardProps, o as CardTitle, p as Carousel, q as CarouselProps, r as Chip, s as ChipProps, t as ColumnDef, u as DataDisplay, D as DataTablePro, v as DataTableProProps, S as StatCard, w as StatCardProps, T as Table, x as TableBody, y as TableCaption, z as TableCell, B as TableFooter, E as TableHead, F as TableHeader, G as TableRow, H as Timeline, I as TimelineItem, J as TimelineProps, K as TreeItem, L as TreeView, M as TreeViewProps, N as avatarVariants, O as cardVariants, P as chipVariants, Q as statusVariants, R as useAccordion } from './index-BkRqGNG1.js';
|
|
9
|
+
export { A as Alert, a as AlertDescription, b as AlertProps, c as AlertTitle, C as CircularProgress, d as CircularProgressProps, E as EmptyState, e as EmptyStateProps, i as Feedback, P as ProgressBar, f as ProgressBarProps, S as Skeleton, g as SkeletonCircle, h as SkeletonCircleProps, j as SkeletonProps, k as SkeletonText, l as SkeletonTextProps, m as Spinner, n as SpinnerProps, o as alertVariants, p as progressVariants, s as spinnerVariants } from './index-ugj5s6a3.js';
|
|
10
|
+
export { i as Glass, G as GlassBadge, a as GlassBadgeProps, b as GlassButton, c as GlassButtonProps, d as GlassCard, e as GlassCardProps } from './index-COQ7uwt9.js';
|
|
11
|
+
export { i as Bento, B as BentoCard, a as BentoCardProps, b as BentoGrid, c as BentoGridProps } from './index-BlPcGeW-.js';
|
|
12
|
+
export { L as Label, a as LabelProps, l as labelVariants } from './Label-DWOlgSNW.js';
|
|
13
|
+
import 'react';
|
|
14
|
+
import 'clsx';
|
|
15
|
+
import 'class-variance-authority/types';
|
|
16
|
+
import 'class-variance-authority';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarGroup, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, data_display_exports as DataDisplay, DataTablePro, StatCard, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Timeline, TreeView, avatarVariants, cardVariants, statusVariants, useAccordion } from './chunk-NFVONJUK.js';
|
|
2
|
+
export { Alert, AlertDescription, AlertTitle, CircularProgress, EmptyState, feedback_exports as Feedback, ProgressBar, Skeleton, SkeletonCircle, SkeletonText, Spinner, alertVariants, progressVariants, spinnerVariants } from './chunk-WAFHC4DQ.js';
|
|
3
|
+
export { glass_exports as Glass, GlassBadge, GlassButton, GlassCard } from './chunk-A7P3O5Z5.js';
|
|
4
|
+
export { bento_exports as Bento, BentoCard, BentoGrid } from './chunk-C4SUXMI3.js';
|
|
5
|
+
export { core_exports as Core, ThemeProvider, useTheme } from './chunk-KJRBRTQE.js';
|
|
6
|
+
export { AspectRatio, Container, Divider, Flex, Grid, GridItem, HStack, layout_exports as Layout, PageHeader, PageLayout, PageSidebar, ScrollArea, Section, Spacer, Stack, VStack, containerVariants, dividerVariants, flexVariants, gridItemVariants, gridVariants, sectionVariants, stackVariants } from './chunk-2OXZK6IP.js';
|
|
7
|
+
export { Blockquote, Code, CodeBlock, Heading, Link, Text, typography_exports as Typography, headingVariants, linkVariants, textVariants } from './chunk-ATYGDTMK.js';
|
|
8
|
+
export { ButtonGroup, buttons_exports as Buttons, IconButton, SplitButton, ToggleButton, ToggleGroup, buttonGroupVariants, iconButtonVariants, toggleVariants } from './chunk-PF4ZHGVW.js';
|
|
9
|
+
export { Checkbox, CheckboxGroup, Combobox, CurrencyInput, DatePicker, DateRangePicker, FileUpload, FormErrorMessage, FormField, FormHelperText, FormLabel, forms_exports as Forms, Input, MaskedInput, MultiSelect, NumberInput, PasswordInput, PinInput, Radio, RadioGroup, RangeSlider, SearchInput, Select, Slider, Switch, Textarea, TimePicker, applyMask, checkboxVariants, formatCurrencyString, formatDate, formatDisplayDate, formatFileSize, inputVariants, radioVariants, selectVariants, switchThumbVariants, switchVariants, textareaVariants, useFormField } from './chunk-F5Q7BTMH.js';
|
|
10
|
+
export { Chip, chipVariants } from './chunk-X76KBH4Y.js';
|
|
11
|
+
export { Label, labelVariants } from './chunk-GXI2H5XA.js';
|
|
12
|
+
export { AlertDialog, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetHeader, ContextMenu, ContextMenuItem, ContextMenuSeparator, Drawer, DrawerBody, DrawerFooter, DrawerHeader, HoverCard, Modal, ModalBody, ModalCloseButton, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalTitle, overlays_exports as Overlays, ToasterProvider, Tooltip, drawerVariants, modalContentVariants, toastVariants, tooltipVariants, useDrawer, useModal, useToast } from './chunk-5FZ6ZFII.js';
|
|
13
|
+
export { Popover } from './chunk-H3LCNPMC.js';
|
|
14
|
+
export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, CommandPalette, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, navigation_exports as Navigation, Pagination, Stepper, Tabs, TabsContent, TabsList, TabsTrigger, useDropdown, useTabs } from './chunk-LWFRUJRU.js';
|
|
15
|
+
export { FocusTrap } from './chunk-LBUBXUYQ.js';
|
|
16
|
+
export { Portal } from './chunk-IABPUCAQ.js';
|
|
17
|
+
export { Kbd } from './chunk-EU2LPUYP.js';
|
|
18
|
+
export { Button, buttonVariants } from './chunk-66VWUJEI.js';
|
|
19
|
+
export { cn } from './chunk-4S6L5V7X.js';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
+
var clsx = require('clsx');
|
|
6
|
+
var tailwindMerge = require('tailwind-merge');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
// src/layout/Container.tsx
|
|
10
|
+
function cn(...inputs) {
|
|
11
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
12
|
+
}
|
|
13
|
+
var containerVariants = classVarianceAuthority.cva("w-full mx-auto", {
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
sm: "max-w-screen-sm",
|
|
17
|
+
md: "max-w-screen-md",
|
|
18
|
+
lg: "max-w-screen-lg",
|
|
19
|
+
xl: "max-w-screen-xl",
|
|
20
|
+
"2xl": "max-w-screen-2xl",
|
|
21
|
+
fluid: "max-w-full"
|
|
22
|
+
},
|
|
23
|
+
padding: {
|
|
24
|
+
none: "px-0",
|
|
25
|
+
sm: "px-4",
|
|
26
|
+
md: "px-6",
|
|
27
|
+
lg: "px-8 sm:px-12"
|
|
28
|
+
},
|
|
29
|
+
centered: {
|
|
30
|
+
true: "flex flex-col items-center justify-center",
|
|
31
|
+
false: ""
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
size: "xl",
|
|
36
|
+
padding: "md",
|
|
37
|
+
centered: false
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
var Container = react.forwardRef(
|
|
41
|
+
({ className, size, padding, centered, as: Component = "div", children, ...props }, ref) => {
|
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
+
Component,
|
|
44
|
+
{
|
|
45
|
+
ref,
|
|
46
|
+
className: cn(containerVariants({ size, padding, centered }), className),
|
|
47
|
+
...props,
|
|
48
|
+
children
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
Container.displayName = "Container";
|
|
54
|
+
var sectionVariants = classVarianceAuthority.cva("w-full relative", {
|
|
55
|
+
variants: {
|
|
56
|
+
spacing: {
|
|
57
|
+
none: "py-0",
|
|
58
|
+
sm: "py-6 md:py-8",
|
|
59
|
+
md: "py-12 md:py-16",
|
|
60
|
+
lg: "py-16 md:py-24",
|
|
61
|
+
xl: "py-24 md:py-32"
|
|
62
|
+
},
|
|
63
|
+
variant: {
|
|
64
|
+
default: "bg-transparent text-[var(--ui-text-primary)]",
|
|
65
|
+
subtle: "bg-[var(--ui-bg-secondary)] text-[var(--ui-text-primary)]",
|
|
66
|
+
surface: "bg-[var(--ui-bg-surface)] text-[var(--ui-text-primary)]",
|
|
67
|
+
muted: "bg-[var(--ui-bg-tertiary)] text-[var(--ui-text-primary)]"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
spacing: "md",
|
|
72
|
+
variant: "default"
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
var Section = react.forwardRef(
|
|
76
|
+
({ className, spacing, variant, as: Component = "section", children, ...props }, ref) => {
|
|
77
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
78
|
+
Component,
|
|
79
|
+
{
|
|
80
|
+
ref,
|
|
81
|
+
className: cn(sectionVariants({ spacing, variant }), className),
|
|
82
|
+
...props,
|
|
83
|
+
children
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
Section.displayName = "Section";
|
|
89
|
+
var stackVariants = classVarianceAuthority.cva("flex", {
|
|
90
|
+
variants: {
|
|
91
|
+
direction: {
|
|
92
|
+
row: "flex-row",
|
|
93
|
+
"row-reverse": "flex-row-reverse",
|
|
94
|
+
column: "flex-col",
|
|
95
|
+
"column-reverse": "flex-col-reverse"
|
|
96
|
+
},
|
|
97
|
+
gap: {
|
|
98
|
+
0: "gap-0",
|
|
99
|
+
1: "gap-1",
|
|
100
|
+
2: "gap-2",
|
|
101
|
+
3: "gap-3",
|
|
102
|
+
4: "gap-4",
|
|
103
|
+
5: "gap-5",
|
|
104
|
+
6: "gap-6",
|
|
105
|
+
8: "gap-8",
|
|
106
|
+
10: "gap-10",
|
|
107
|
+
12: "gap-12"
|
|
108
|
+
},
|
|
109
|
+
align: {
|
|
110
|
+
start: "items-start",
|
|
111
|
+
center: "items-center",
|
|
112
|
+
end: "items-end",
|
|
113
|
+
stretch: "items-stretch",
|
|
114
|
+
baseline: "items-baseline"
|
|
115
|
+
},
|
|
116
|
+
justify: {
|
|
117
|
+
start: "justify-start",
|
|
118
|
+
center: "justify-center",
|
|
119
|
+
end: "justify-end",
|
|
120
|
+
between: "justify-between",
|
|
121
|
+
around: "justify-around",
|
|
122
|
+
evenly: "justify-evenly"
|
|
123
|
+
},
|
|
124
|
+
wrap: {
|
|
125
|
+
nowrap: "flex-nowrap",
|
|
126
|
+
wrap: "flex-wrap",
|
|
127
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
defaultVariants: {
|
|
131
|
+
direction: "column",
|
|
132
|
+
gap: 4,
|
|
133
|
+
align: "stretch",
|
|
134
|
+
justify: "start",
|
|
135
|
+
wrap: "nowrap"
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
var Stack = react.forwardRef(
|
|
139
|
+
({ className, direction, gap, align, justify, wrap, as: Component = "div", children, ...props }, ref) => {
|
|
140
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
141
|
+
Component,
|
|
142
|
+
{
|
|
143
|
+
ref,
|
|
144
|
+
className: cn(stackVariants({ direction, gap, align, justify, wrap }), className),
|
|
145
|
+
...props,
|
|
146
|
+
children
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
Stack.displayName = "Stack";
|
|
152
|
+
var HStack = react.forwardRef(
|
|
153
|
+
({ align = "center", ...props }, ref) => {
|
|
154
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, { ref, direction: "row", align, ...props });
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
HStack.displayName = "HStack";
|
|
158
|
+
var VStack = react.forwardRef(
|
|
159
|
+
({ align = "stretch", ...props }, ref) => {
|
|
160
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, { ref, direction: "column", align, ...props });
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
VStack.displayName = "VStack";
|
|
164
|
+
var gridVariants = classVarianceAuthority.cva("grid", {
|
|
165
|
+
variants: {
|
|
166
|
+
cols: {
|
|
167
|
+
1: "grid-cols-1",
|
|
168
|
+
2: "grid-cols-1 sm:grid-cols-2",
|
|
169
|
+
3: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3",
|
|
170
|
+
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
|
|
171
|
+
5: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5",
|
|
172
|
+
6: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-6",
|
|
173
|
+
12: "grid-cols-12"
|
|
174
|
+
},
|
|
175
|
+
gap: {
|
|
176
|
+
0: "gap-0",
|
|
177
|
+
1: "gap-1",
|
|
178
|
+
2: "gap-2",
|
|
179
|
+
3: "gap-3",
|
|
180
|
+
4: "gap-4",
|
|
181
|
+
5: "gap-5",
|
|
182
|
+
6: "gap-6",
|
|
183
|
+
8: "gap-8",
|
|
184
|
+
10: "gap-10",
|
|
185
|
+
12: "gap-12"
|
|
186
|
+
},
|
|
187
|
+
flow: {
|
|
188
|
+
row: "grid-flow-row",
|
|
189
|
+
col: "grid-flow-col",
|
|
190
|
+
dense: "grid-flow-dense",
|
|
191
|
+
"row-dense": "grid-flow-row-dense",
|
|
192
|
+
"col-dense": "grid-flow-col-dense"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
defaultVariants: {
|
|
196
|
+
cols: 1,
|
|
197
|
+
gap: 4,
|
|
198
|
+
flow: "row"
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
var Grid = react.forwardRef(
|
|
202
|
+
({ className, cols, gap, flow, as: Component = "div", children, ...props }, ref) => {
|
|
203
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
204
|
+
Component,
|
|
205
|
+
{
|
|
206
|
+
ref,
|
|
207
|
+
className: cn(gridVariants({ cols, gap, flow }), className),
|
|
208
|
+
...props,
|
|
209
|
+
children
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
Grid.displayName = "Grid";
|
|
215
|
+
var gridItemVariants = classVarianceAuthority.cva("", {
|
|
216
|
+
variants: {
|
|
217
|
+
colSpan: {
|
|
218
|
+
1: "col-span-1",
|
|
219
|
+
2: "col-span-2",
|
|
220
|
+
3: "col-span-3",
|
|
221
|
+
4: "col-span-4",
|
|
222
|
+
5: "col-span-5",
|
|
223
|
+
6: "col-span-6",
|
|
224
|
+
7: "col-span-7",
|
|
225
|
+
8: "col-span-8",
|
|
226
|
+
9: "col-span-9",
|
|
227
|
+
10: "col-span-10",
|
|
228
|
+
11: "col-span-11",
|
|
229
|
+
12: "col-span-12",
|
|
230
|
+
full: "col-span-full"
|
|
231
|
+
},
|
|
232
|
+
rowSpan: {
|
|
233
|
+
1: "row-span-1",
|
|
234
|
+
2: "row-span-2",
|
|
235
|
+
3: "row-span-3",
|
|
236
|
+
4: "row-span-4",
|
|
237
|
+
5: "row-span-5",
|
|
238
|
+
6: "row-span-6",
|
|
239
|
+
full: "row-span-full"
|
|
240
|
+
},
|
|
241
|
+
colStart: {
|
|
242
|
+
1: "col-start-1",
|
|
243
|
+
2: "col-start-2",
|
|
244
|
+
3: "col-start-3",
|
|
245
|
+
4: "col-start-4",
|
|
246
|
+
5: "col-start-5",
|
|
247
|
+
6: "col-start-6",
|
|
248
|
+
auto: "col-start-auto"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
defaultVariants: {
|
|
252
|
+
colSpan: 1
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
var GridItem = react.forwardRef(
|
|
256
|
+
({ className, colSpan, rowSpan, colStart, as: Component = "div", children, ...props }, ref) => {
|
|
257
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
258
|
+
Component,
|
|
259
|
+
{
|
|
260
|
+
ref,
|
|
261
|
+
className: cn(gridItemVariants({ colSpan, rowSpan, colStart }), className),
|
|
262
|
+
...props,
|
|
263
|
+
children
|
|
264
|
+
}
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
GridItem.displayName = "GridItem";
|
|
269
|
+
var flexVariants = classVarianceAuthority.cva("flex", {
|
|
270
|
+
variants: {
|
|
271
|
+
direction: {
|
|
272
|
+
row: "flex-row",
|
|
273
|
+
"row-reverse": "flex-row-reverse",
|
|
274
|
+
column: "flex-col",
|
|
275
|
+
"column-reverse": "flex-col-reverse"
|
|
276
|
+
},
|
|
277
|
+
align: {
|
|
278
|
+
start: "items-start",
|
|
279
|
+
center: "items-center",
|
|
280
|
+
end: "items-end",
|
|
281
|
+
stretch: "items-stretch",
|
|
282
|
+
baseline: "items-baseline"
|
|
283
|
+
},
|
|
284
|
+
justify: {
|
|
285
|
+
start: "justify-start",
|
|
286
|
+
center: "justify-center",
|
|
287
|
+
end: "justify-end",
|
|
288
|
+
between: "justify-between",
|
|
289
|
+
around: "justify-around",
|
|
290
|
+
evenly: "justify-evenly"
|
|
291
|
+
},
|
|
292
|
+
wrap: {
|
|
293
|
+
nowrap: "flex-nowrap",
|
|
294
|
+
wrap: "flex-wrap",
|
|
295
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
296
|
+
},
|
|
297
|
+
gap: {
|
|
298
|
+
0: "gap-0",
|
|
299
|
+
1: "gap-1",
|
|
300
|
+
2: "gap-2",
|
|
301
|
+
3: "gap-3",
|
|
302
|
+
4: "gap-4",
|
|
303
|
+
5: "gap-5",
|
|
304
|
+
6: "gap-6",
|
|
305
|
+
8: "gap-8",
|
|
306
|
+
10: "gap-10",
|
|
307
|
+
12: "gap-12"
|
|
308
|
+
},
|
|
309
|
+
inline: {
|
|
310
|
+
true: "inline-flex",
|
|
311
|
+
false: "flex"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
defaultVariants: {
|
|
315
|
+
direction: "row",
|
|
316
|
+
align: "stretch",
|
|
317
|
+
justify: "start",
|
|
318
|
+
wrap: "nowrap",
|
|
319
|
+
inline: false
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
var Flex = react.forwardRef(
|
|
323
|
+
({ className, direction, align, justify, wrap, gap, inline, as: Component = "div", children, ...props }, ref) => {
|
|
324
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
325
|
+
Component,
|
|
326
|
+
{
|
|
327
|
+
ref,
|
|
328
|
+
className: cn(flexVariants({ direction, align, justify, wrap, gap, inline }), className),
|
|
329
|
+
...props,
|
|
330
|
+
children
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
);
|
|
335
|
+
Flex.displayName = "Flex";
|
|
336
|
+
var dividerVariants = classVarianceAuthority.cva("border-0 flex-shrink-0", {
|
|
337
|
+
variants: {
|
|
338
|
+
orientation: {
|
|
339
|
+
horizontal: "w-full h-px border-t border-[var(--ui-border-subtle)] my-4",
|
|
340
|
+
vertical: "h-full w-px border-l border-[var(--ui-border-subtle)] mx-4 inline-block align-middle self-stretch"
|
|
341
|
+
},
|
|
342
|
+
variant: {
|
|
343
|
+
solid: "border-solid",
|
|
344
|
+
dashed: "border-dashed",
|
|
345
|
+
dotted: "border-dotted"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
defaultVariants: {
|
|
349
|
+
orientation: "horizontal",
|
|
350
|
+
variant: "solid"
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
var Divider = react.forwardRef(
|
|
354
|
+
({ className, orientation = "horizontal", variant, label, children, ...props }, ref) => {
|
|
355
|
+
const content = label || children;
|
|
356
|
+
if (orientation === "horizontal" && content) {
|
|
357
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
358
|
+
"div",
|
|
359
|
+
{
|
|
360
|
+
ref,
|
|
361
|
+
role: "separator",
|
|
362
|
+
"aria-orientation": "horizontal",
|
|
363
|
+
className: cn("flex items-center w-full my-4 text-xs font-medium text-[var(--ui-text-muted)]", className),
|
|
364
|
+
...props,
|
|
365
|
+
children: [
|
|
366
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex-grow border-t border-[var(--ui-border-subtle)]", dividerVariants({ variant })) }),
|
|
367
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "px-3 select-none", children: content }),
|
|
368
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex-grow border-t border-[var(--ui-border-subtle)]", dividerVariants({ variant })) })
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
374
|
+
"div",
|
|
375
|
+
{
|
|
376
|
+
ref,
|
|
377
|
+
role: "separator",
|
|
378
|
+
"aria-orientation": orientation || "horizontal",
|
|
379
|
+
className: cn(dividerVariants({ orientation, variant }), className),
|
|
380
|
+
...props
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
Divider.displayName = "Divider";
|
|
386
|
+
var Spacer = react.forwardRef(
|
|
387
|
+
({ className, x, y, style, ...props }, ref) => {
|
|
388
|
+
const spacingStyle = {
|
|
389
|
+
...style,
|
|
390
|
+
...x !== void 0 && {
|
|
391
|
+
width: typeof x === "number" ? `${x * 0.25}rem` : x,
|
|
392
|
+
minWidth: typeof x === "number" ? `${x * 0.25}rem` : x
|
|
393
|
+
},
|
|
394
|
+
...y !== void 0 && {
|
|
395
|
+
height: typeof y === "number" ? `${y * 0.25}rem` : y,
|
|
396
|
+
minHeight: typeof y === "number" ? `${y * 0.25}rem` : y
|
|
397
|
+
},
|
|
398
|
+
...x === void 0 && y === void 0 && {
|
|
399
|
+
flex: "1 1 0%"
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "aria-hidden": "true", style: spacingStyle, className: cn("pointer-events-none", className), ...props });
|
|
403
|
+
}
|
|
404
|
+
);
|
|
405
|
+
Spacer.displayName = "Spacer";
|
|
406
|
+
var AspectRatio = react.forwardRef(
|
|
407
|
+
({ className, ratio = 16 / 9, style, children, ...props }, ref) => {
|
|
408
|
+
const computedRatio = typeof ratio === "string" ? ratio.split("/").map(Number).reduce((w, h) => h ? w / h : 1) : ratio;
|
|
409
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
410
|
+
"div",
|
|
411
|
+
{
|
|
412
|
+
ref,
|
|
413
|
+
style: {
|
|
414
|
+
...style,
|
|
415
|
+
position: "relative",
|
|
416
|
+
width: "100%",
|
|
417
|
+
paddingBottom: `${1 / computedRatio * 100}%`
|
|
418
|
+
},
|
|
419
|
+
className: cn("overflow-hidden", className),
|
|
420
|
+
...props,
|
|
421
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 w-full h-full [&>img]:object-cover [&>video]:object-cover [&>img]:w-full [&>img]:h-full [&>video]:w-full [&>video]:h-full", children })
|
|
422
|
+
}
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
AspectRatio.displayName = "AspectRatio";
|
|
427
|
+
var PageLayout = react.forwardRef(
|
|
428
|
+
({ className, header, sidebar, footer, children, sidebarWidth = "16rem", sidebarCollapsed = false, ...props }, ref) => {
|
|
429
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: cn("min-h-screen flex flex-col bg-[var(--ui-bg-primary)] text-[var(--ui-text-primary)]", className), ...props, children: [
|
|
430
|
+
header && /* @__PURE__ */ jsxRuntime.jsx("header", { className: "sticky top-0 z-30 w-full border-b border-[var(--ui-border-subtle)] bg-[var(--ui-bg-surface)] backdrop-blur-md", children: header }),
|
|
431
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex w-full", children: [
|
|
432
|
+
sidebar && /* @__PURE__ */ jsxRuntime.jsx(
|
|
433
|
+
"aside",
|
|
434
|
+
{
|
|
435
|
+
style: { width: sidebarCollapsed ? "4rem" : sidebarWidth },
|
|
436
|
+
className: "hidden md:flex flex-col flex-shrink-0 border-r border-[var(--ui-border-subtle)] bg-[var(--ui-bg-secondary)] transition-[width] duration-200",
|
|
437
|
+
children: sidebar
|
|
438
|
+
}
|
|
439
|
+
),
|
|
440
|
+
/* @__PURE__ */ jsxRuntime.jsxs("main", { className: "flex-1 flex flex-col min-w-0 overflow-y-auto", children: [
|
|
441
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 p-4 md:p-6 lg:p-8", children }),
|
|
442
|
+
footer && /* @__PURE__ */ jsxRuntime.jsx("footer", { className: "border-t border-[var(--ui-border-subtle)] bg-[var(--ui-bg-surface)] p-4 md:p-6", children: footer })
|
|
443
|
+
] })
|
|
444
|
+
] })
|
|
445
|
+
] });
|
|
446
|
+
}
|
|
447
|
+
);
|
|
448
|
+
PageLayout.displayName = "PageLayout";
|
|
449
|
+
var PageHeader = react.forwardRef(
|
|
450
|
+
({ className, children, ...props }, ref) => {
|
|
451
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center justify-between h-16 px-4 md:px-6 w-full", className), ...props, children });
|
|
452
|
+
}
|
|
453
|
+
);
|
|
454
|
+
PageHeader.displayName = "PageHeader";
|
|
455
|
+
var PageSidebar = react.forwardRef(
|
|
456
|
+
({ className, children, ...props }, ref) => {
|
|
457
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex flex-col h-full p-4 overflow-y-auto", className), ...props, children });
|
|
458
|
+
}
|
|
459
|
+
);
|
|
460
|
+
PageSidebar.displayName = "PageSidebar";
|
|
461
|
+
var ScrollArea = react.forwardRef(
|
|
462
|
+
({
|
|
463
|
+
maxHeight = "100%",
|
|
464
|
+
orientation = "vertical",
|
|
465
|
+
hideScrollbar = false,
|
|
466
|
+
children,
|
|
467
|
+
className,
|
|
468
|
+
style,
|
|
469
|
+
...props
|
|
470
|
+
}, ref) => {
|
|
471
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
472
|
+
"div",
|
|
473
|
+
{
|
|
474
|
+
ref,
|
|
475
|
+
style: { maxHeight, ...style },
|
|
476
|
+
className: cn(
|
|
477
|
+
"relative w-full overflow-auto",
|
|
478
|
+
orientation === "vertical" && "overflow-y-auto overflow-x-hidden",
|
|
479
|
+
orientation === "horizontal" && "overflow-x-auto overflow-y-hidden",
|
|
480
|
+
orientation === "both" && "overflow-auto",
|
|
481
|
+
hideScrollbar && "[scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
482
|
+
!hideScrollbar && "[scrollbar-width:thin] [scrollbar-color:rgba(150,150,160,0.3)_transparent]",
|
|
483
|
+
className
|
|
484
|
+
),
|
|
485
|
+
...props,
|
|
486
|
+
children
|
|
487
|
+
}
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
);
|
|
491
|
+
ScrollArea.displayName = "ScrollArea";
|
|
492
|
+
|
|
493
|
+
exports.AspectRatio = AspectRatio;
|
|
494
|
+
exports.Container = Container;
|
|
495
|
+
exports.Divider = Divider;
|
|
496
|
+
exports.Flex = Flex;
|
|
497
|
+
exports.Grid = Grid;
|
|
498
|
+
exports.GridItem = GridItem;
|
|
499
|
+
exports.HStack = HStack;
|
|
500
|
+
exports.PageHeader = PageHeader;
|
|
501
|
+
exports.PageLayout = PageLayout;
|
|
502
|
+
exports.PageSidebar = PageSidebar;
|
|
503
|
+
exports.ScrollArea = ScrollArea;
|
|
504
|
+
exports.Section = Section;
|
|
505
|
+
exports.Spacer = Spacer;
|
|
506
|
+
exports.Stack = Stack;
|
|
507
|
+
exports.VStack = VStack;
|
|
508
|
+
exports.containerVariants = containerVariants;
|
|
509
|
+
exports.dividerVariants = dividerVariants;
|
|
510
|
+
exports.flexVariants = flexVariants;
|
|
511
|
+
exports.gridItemVariants = gridItemVariants;
|
|
512
|
+
exports.gridVariants = gridVariants;
|
|
513
|
+
exports.sectionVariants = sectionVariants;
|
|
514
|
+
exports.stackVariants = stackVariants;
|
|
515
|
+
//# sourceMappingURL=index.cjs.map
|
|
516
|
+
//# sourceMappingURL=index.cjs.map
|