@ug666/ui-react 0.2.0 → 0.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aliases.d.ts +59 -0
- package/dist/aliases.d.ts.map +1 -0
- package/dist/blocks/feature-grid.d.ts +40 -0
- package/dist/blocks/feature-grid.d.ts.map +1 -0
- package/dist/blocks/index.cjs +293 -64
- package/dist/blocks/index.cjs.map +1 -1
- package/dist/blocks/index.d.ts +6 -84
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +80 -39
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/landing-hero.d.ts +55 -0
- package/dist/blocks/landing-hero.d.ts.map +1 -0
- package/dist/chunk-AKWJMDCW.js +467 -0
- package/dist/chunk-AKWJMDCW.js.map +1 -0
- package/dist/chunk-F23X4N6B.js +11 -0
- package/dist/chunk-F23X4N6B.js.map +1 -0
- package/dist/chunk-HGO3GZ56.js +1777 -0
- package/dist/chunk-HGO3GZ56.js.map +1 -0
- package/dist/chunk-HXIWD5LQ.js +319 -0
- package/dist/chunk-HXIWD5LQ.js.map +1 -0
- package/dist/chunk-M6J4PLF4.js +521 -0
- package/dist/chunk-M6J4PLF4.js.map +1 -0
- package/dist/chunk-N3Z7R6GG.js +139 -0
- package/dist/chunk-N3Z7R6GG.js.map +1 -0
- package/dist/chunk-UXWCK6M7.js +5757 -0
- package/dist/chunk-UXWCK6M7.js.map +1 -0
- package/dist/components/accordion.d.ts +59 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/alert.d.ts +23 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/avatar-group.d.ts +20 -0
- package/dist/components/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar.d.ts +34 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/badge.d.ts +17 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/breadcrumb.d.ts +33 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/button-group.d.ts +26 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button.d.ts +43 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/card.d.ts +26 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/checkbox-group-context.d.ts +14 -0
- package/dist/components/checkbox-group-context.d.ts.map +1 -0
- package/dist/components/checkbox-group.d.ts +18 -0
- package/dist/components/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox.d.ts +32 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/config-provider.d.ts +29 -0
- package/dist/components/config-provider.d.ts.map +1 -0
- package/dist/components/container.d.ts +27 -0
- package/dist/components/container.d.ts.map +1 -0
- package/dist/components/context/form-context.d.ts +41 -0
- package/dist/components/context/form-context.d.ts.map +1 -0
- package/dist/components/context-menu.d.ts +39 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/descriptions.d.ts +40 -0
- package/dist/components/descriptions.d.ts.map +1 -0
- package/dist/components/dialog.d.ts +55 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/drawer.d.ts +38 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/dropdown.d.ts +42 -0
- package/dist/components/dropdown.d.ts.map +1 -0
- package/dist/components/empty-state.d.ts +24 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/form.d.ts +127 -0
- package/dist/components/form.d.ts.map +1 -0
- package/dist/components/icon.d.ts +16 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/index.cjs +6173 -1482
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +59 -1096
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +67 -6
- package/dist/components/input.d.ts +28 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/label.d.ts +18 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/layout.d.ts +34 -0
- package/dist/components/layout.d.ts.map +1 -0
- package/dist/components/link.d.ts +18 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/modal.d.ts +46 -0
- package/dist/components/modal.d.ts.map +1 -0
- package/dist/components/navigation-menu.d.ts +39 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/number-input.d.ts +35 -0
- package/dist/components/number-input.d.ts.map +1 -0
- package/dist/components/otp-input.d.ts +35 -0
- package/dist/components/otp-input.d.ts.map +1 -0
- package/dist/components/pagination.d.ts +16 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/popover.d.ts +36 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/progress.d.ts +21 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/radio.d.ts +68 -0
- package/dist/components/radio.d.ts.map +1 -0
- package/dist/components/scrollbar.d.ts +29 -0
- package/dist/components/scrollbar.d.ts.map +1 -0
- package/dist/components/select.d.ts +48 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/separator.d.ts +28 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/sheet.d.ts +24 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sidebar.d.ts +48 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/skeleton.d.ts +16 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/slider.d.ts +44 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/space.d.ts +19 -0
- package/dist/components/space.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +18 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/splitter.d.ts +51 -0
- package/dist/components/splitter.d.ts.map +1 -0
- package/dist/components/statistic.d.ts +30 -0
- package/dist/components/statistic.d.ts.map +1 -0
- package/dist/components/steps.d.ts +33 -0
- package/dist/components/steps.d.ts.map +1 -0
- package/dist/components/switch.d.ts +49 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/table.d.ts +32 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +27 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tag.d.ts +27 -0
- package/dist/components/tag.d.ts.map +1 -0
- package/dist/components/text.d.ts +16 -0
- package/dist/components/text.d.ts.map +1 -0
- package/dist/components/textarea.d.ts +26 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/toast.d.ts +26 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/tooltip.d.ts +29 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/hooks/index.cjs +228 -27
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +19 -231
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-click-outside.d.ts +9 -0
- package/dist/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +12 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/hooks/use-debounce.d.ts +7 -0
- package/dist/hooks/use-debounce.d.ts.map +1 -0
- package/dist/hooks/use-escape-key.d.ts +10 -0
- package/dist/hooks/use-escape-key.d.ts.map +1 -0
- package/dist/hooks/use-event-listener.d.ts +28 -0
- package/dist/hooks/use-event-listener.d.ts.map +1 -0
- package/dist/hooks/use-form.d.ts +48 -0
- package/dist/hooks/use-form.d.ts.map +1 -0
- package/dist/hooks/use-hotkeys.d.ts +30 -0
- package/dist/hooks/use-hotkeys.d.ts.map +1 -0
- package/dist/hooks/use-interval.d.ts +19 -0
- package/dist/hooks/use-interval.d.ts.map +1 -0
- package/dist/hooks/use-local-storage.d.ts +9 -0
- package/dist/hooks/use-local-storage.d.ts.map +1 -0
- package/dist/hooks/use-media-query.d.ts +8 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-mounted.d.ts +18 -0
- package/dist/hooks/use-mounted.d.ts.map +1 -0
- package/dist/hooks/use-pagination.d.ts +36 -0
- package/dist/hooks/use-pagination.d.ts.map +1 -0
- package/dist/hooks/use-timeout.d.ts +19 -0
- package/dist/hooks/use-timeout.d.ts.map +1 -0
- package/dist/hooks/use-toggle.d.ts +9 -0
- package/dist/hooks/use-toggle.d.ts.map +1 -0
- package/dist/index.cjs +6475 -1768
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +73 -294
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +64 -184
- package/dist/index.js.map +1 -1
- package/dist/internal/button-group-context.d.ts +11 -0
- package/dist/internal/button-group-context.d.ts.map +1 -0
- package/dist/internal/cn.d.ts +8 -0
- package/dist/internal/cn.d.ts.map +1 -0
- package/dist/internal/use-overlay-focus.d.ts +8 -0
- package/dist/internal/use-overlay-focus.d.ts.map +1 -0
- package/dist/internal/use-portal-container.d.ts +2 -0
- package/dist/internal/use-portal-container.d.ts.map +1 -0
- package/dist/labs/file-preview.d.ts +44 -0
- package/dist/labs/file-preview.d.ts.map +1 -0
- package/dist/labs/index.cjs +191 -1
- package/dist/labs/index.cjs.map +1 -1
- package/dist/labs/index.d.ts +8 -6
- package/dist/labs/index.d.ts.map +1 -0
- package/dist/labs/index.js +180 -1
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/model-card.d.ts +50 -0
- package/dist/labs/model-card.d.ts.map +1 -0
- package/dist/patterns/admin-shell.d.ts +52 -0
- package/dist/patterns/admin-shell.d.ts.map +1 -0
- package/dist/patterns/confirm-dialog.d.ts +50 -0
- package/dist/patterns/confirm-dialog.d.ts.map +1 -0
- package/dist/patterns/copy-field.d.ts +29 -0
- package/dist/patterns/copy-field.d.ts.map +1 -0
- package/dist/patterns/index.cjs +699 -251
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.ts +5 -158
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/patterns/index.js +137 -82
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/page-header.d.ts +37 -0
- package/dist/patterns/page-header.d.ts.map +1 -0
- package/dist/primitives/index.cjs +1889 -112
- package/dist/primitives/index.cjs.map +1 -1
- package/dist/primitives/index.d.ts +22 -135
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +55 -4
- package/dist/styles.css +2819 -953
- package/dist/theme.cjs +161 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.ts +39 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +19 -0
- package/dist/theme.js.map +1 -0
- package/dist/themes/default.css +80 -0
- package/dist/themes/mecha.css +195 -0
- package/dist/themes/minimal.css +160 -0
- package/dist/tokens.css +1173 -18
- package/package.json +22 -12
- package/dist/blocks/index.d.cts +0 -86
- package/dist/button-CaLZig8j.d.cts +0 -22
- package/dist/button-CaLZig8j.d.ts +0 -22
- package/dist/chunk-2IVRUJKO.js +0 -377
- package/dist/chunk-2IVRUJKO.js.map +0 -1
- package/dist/chunk-73WQAE3E.js +0 -3003
- package/dist/chunk-73WQAE3E.js.map +0 -1
- package/dist/chunk-MGXIF756.js +0 -313
- package/dist/chunk-MGXIF756.js.map +0 -1
- package/dist/chunk-RUDEZA5Q.js +0 -62
- package/dist/chunk-RUDEZA5Q.js.map +0 -1
- package/dist/chunk-S45GP6IB.js +0 -254
- package/dist/chunk-S45GP6IB.js.map +0 -1
- package/dist/components/index.d.cts +0 -1097
- package/dist/hooks/index.d.cts +0 -232
- package/dist/index.d.cts +0 -297
- package/dist/labs/index.d.cts +0 -12
- package/dist/patterns/index.d.cts +0 -158
- package/dist/primitives/index.d.cts +0 -137
- package/dist/sidebar-vl00Z2o-.d.cts +0 -93
- package/dist/sidebar-vl00Z2o-.d.ts +0 -93
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: React 组件 UG 前缀导出入口
|
|
3
|
+
* @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
|
|
4
|
+
* @date: 2026-05-27
|
|
5
|
+
*/
|
|
6
|
+
export { Button as UGButton, buttonVariants as ugButtonVariants, type ButtonLoadingPlacement as UGButtonLoadingPlacement, type ButtonProps as UGButtonProps, type ButtonShape as UGButtonShape, type ButtonSize as UGButtonSize, type ButtonTone as UGButtonTone, type ButtonVariant as UGButtonVariant, } from './components/button';
|
|
7
|
+
export { ButtonGroup as UGButtonGroup, type ButtonGroupProps as UGButtonGroupProps, } from './components/button-group';
|
|
8
|
+
export { Input as UGInput, type InputProps as UGInputProps } from './components/input';
|
|
9
|
+
export { Label as UGLabel, type LabelProps as UGLabelProps } from './components/label';
|
|
10
|
+
export { Card as UGCard, CardHeader as UGCardHeader, CardTitle as UGCardTitle, CardDescription as UGCardDescription, CardContent as UGCardContent, CardFooter as UGCardFooter, type CardProps as UGCardProps, type CardHeaderProps as UGCardHeaderProps, type CardTitleProps as UGCardTitleProps, type CardDescriptionProps as UGCardDescriptionProps, type CardContentProps as UGCardContentProps, type CardFooterProps as UGCardFooterProps, } from './components/card';
|
|
11
|
+
export { Badge as UGBadge, badgeVariants as ugBadgeVariants, type BadgeProps as UGBadgeProps, } from './components/badge';
|
|
12
|
+
export { Tag as UGTag, tagVariants as ugTagVariants, type TagProps as UGTagProps, } from './components/tag';
|
|
13
|
+
export { Modal as UGModal, ModalContent as UGModalContent, ModalHeader as UGModalHeader, ModalTitle as UGModalTitle, ModalFooter as UGModalFooter, ModalCloseButton as UGModalCloseButton, type ModalProps as UGModalProps, type ModalContentProps as UGModalContentProps, type ModalHeaderProps as UGModalHeaderProps, type ModalTitleProps as UGModalTitleProps, type ModalFooterProps as UGModalFooterProps, type ModalCloseButtonProps as UGModalCloseButtonProps, } from './components/modal';
|
|
14
|
+
export { Dialog as UGDialog, type DialogProps as UGDialogProps, type DialogVariant as UGDialogVariant, } from './components/dialog';
|
|
15
|
+
export { Drawer as UGDrawer, DrawerContent as UGDrawerContent, DrawerHeader as UGDrawerHeader, DrawerTitle as UGDrawerTitle, DrawerDescription as UGDrawerDescription, DrawerFooter as UGDrawerFooter, DrawerClose as UGDrawerClose, type DrawerProps as UGDrawerProps, type DrawerSide as UGDrawerSide, type DrawerContentProps as UGDrawerContentProps, type DrawerHeaderProps as UGDrawerHeaderProps, type DrawerTitleProps as UGDrawerTitleProps, type DrawerDescriptionProps as UGDrawerDescriptionProps, type DrawerFooterProps as UGDrawerFooterProps, type DrawerCloseProps as UGDrawerCloseProps, } from './components/drawer';
|
|
16
|
+
export { Table as UGTable, TableHeader as UGTableHeader, TableBody as UGTableBody, TableRow as UGTableRow, TableHead as UGTableHead, TableCell as UGTableCell, type TableProps as UGTableProps, type TableHeaderProps as UGTableHeaderProps, type TableBodyProps as UGTableBodyProps, type TableRowProps as UGTableRowProps, type TableHeadProps as UGTableHeadProps, type TableCellProps as UGTableCellProps, } from './components/table';
|
|
17
|
+
export { Toaster as UGToaster, type ToastType as UGToastType, type ToastItem as UGToastItem, } from './components/toast';
|
|
18
|
+
export { Sidebar as UGSidebar, type SidebarProps as UGSidebarProps, type SidebarItem as UGSidebarItem, } from './components/sidebar';
|
|
19
|
+
export { Pagination as UGPagination, type PaginationProps as UGPaginationProps, } from './components/pagination';
|
|
20
|
+
export { Select as UGSelect, type SelectModelValue as UGSelectModelValue, type SelectProps as UGSelectProps, type SelectOption as UGSelectOption, type SelectValue as UGSelectValue, } from './components/select';
|
|
21
|
+
export { Spinner as UGSpinner, type SpinnerProps as UGSpinnerProps } from './components/spinner';
|
|
22
|
+
export { Checkbox as UGCheckbox, checkboxVariants as ugCheckboxVariants, type CheckboxProps as UGCheckboxProps, } from './components/checkbox';
|
|
23
|
+
export { CheckboxGroup as UGCheckboxGroup, type CheckboxGroupProps as UGCheckboxGroupProps, type CheckboxValue as UGCheckboxValue, } from './components/checkbox-group';
|
|
24
|
+
export { Radio as UGRadio, RadioGroup as UGRadioGroup, type RadioProps as UGRadioProps, type RadioGroupProps as UGRadioGroupProps, type RadioValue as UGRadioValue, } from './components/radio';
|
|
25
|
+
export { Slider as UGSlider, type SliderMark as UGSliderMark, type SliderMarks as UGSliderMarks, type SliderProps as UGSliderProps, type SliderStep as UGSliderStep, type SliderTooltipPlacement as UGSliderTooltipPlacement, type SliderValue as UGSliderValue, } from './components/slider';
|
|
26
|
+
export { NumberInput as UGNumberInput, numberInputVariants as ugNumberInputVariants, type NumberInputControlsPosition as UGNumberInputControlsPosition, type NumberInputProps as UGNumberInputProps, type NumberInputValue as UGNumberInputValue, } from './components/number-input';
|
|
27
|
+
export { OTPInput as UGOTPInput, type OTPInputProps as UGOTPInputProps, } from './components/otp-input';
|
|
28
|
+
export { Form as UGForm, FormField as UGFormField, FormItem as UGFormItem, FormLabel as UGFormLabel, FormControl as UGFormControl, FormDescription as UGFormDescription, FormMessage as UGFormMessage, type FormProps as UGFormProps, type FormFieldProps as UGFormFieldProps, type FormItemProps as UGFormItemProps, type FormLabelProps as UGFormLabelProps, type FormControlProps as UGFormControlProps, type FormDescriptionProps as UGFormDescriptionProps, type FormFieldStatus as UGFormFieldStatus, type FormLabelPosition as UGFormLabelPosition, type FormLayout as UGFormLayout, type FormMessageProps as UGFormMessageProps, type FormRequiredMarkPosition as UGFormRequiredMarkPosition, } from './components/form';
|
|
29
|
+
export { Tabs as UGTabs, TabsList as UGTabsList, TabsTrigger as UGTabsTrigger, TabsContent as UGTabsContent, type TabsProps as UGTabsProps, type TabsListProps as UGTabsListProps, type TabsTriggerProps as UGTabsTriggerProps, type TabsContentProps as UGTabsContentProps, } from './components/tabs';
|
|
30
|
+
export { Accordion as UGAccordion, AccordionItem as UGAccordionItem, AccordionTrigger as UGAccordionTrigger, AccordionContent as UGAccordionContent, type AccordionProps as UGAccordionProps, type AccordionSingleProps as UGAccordionSingleProps, type AccordionMultipleProps as UGAccordionMultipleProps, type AccordionType as UGAccordionType, type AccordionItemProps as UGAccordionItemProps, type AccordionTriggerProps as UGAccordionTriggerProps, type AccordionContentProps as UGAccordionContentProps, } from './components/accordion';
|
|
31
|
+
export { Steps as UGSteps, type StepsProps as UGStepsProps, type StepItem as UGStepItem, } from './components/steps';
|
|
32
|
+
export { DropdownMenu as UGDropdown, DropdownMenu as UGDropdownMenu, DropdownTrigger as UGDropdownTrigger, DropdownContent as UGDropdownContent, DropdownItem as UGDropdownItem, DropdownSeparator as UGDropdownSeparator, type DropdownMenuProps as UGDropdownProps, type DropdownMenuProps as UGDropdownMenuProps, type DropdownTriggerProps as UGDropdownTriggerProps, type DropdownContentProps as UGDropdownContentProps, type DropdownItemProps as UGDropdownItemProps, type DropdownSeparatorProps as UGDropdownSeparatorProps, } from './components/dropdown';
|
|
33
|
+
export { Popover as UGPopover, PopoverTrigger as UGPopoverTrigger, PopoverContent as UGPopoverContent, type PopoverProps as UGPopoverProps, type PopoverTriggerProps as UGPopoverTriggerProps, type PopoverContentProps as UGPopoverContentProps, type PopoverSide as UGPopoverSide, type PopoverAlign as UGPopoverAlign, } from './components/popover';
|
|
34
|
+
export { ContextMenu as UGContextMenu, ContextMenuTrigger as UGContextMenuTrigger, ContextMenuContent as UGContextMenuContent, ContextMenuItem as UGContextMenuItem, ContextMenuSeparator as UGContextMenuSeparator, type ContextMenuProps as UGContextMenuProps, type ContextMenuTriggerProps as UGContextMenuTriggerProps, type ContextMenuContentProps as UGContextMenuContentProps, type ContextMenuItemProps as UGContextMenuItemProps, type ContextMenuSeparatorProps as UGContextMenuSeparatorProps, } from './components/context-menu';
|
|
35
|
+
export { NavigationMenu as UGNavigationMenu, NavigationMenuItem as UGNavigationMenuItem, NavigationMenuLink as UGNavigationMenuLink, NavigationMenuTrigger as UGNavigationMenuTrigger, NavigationMenuContent as UGNavigationMenuContent, type NavigationMenuProps as UGNavigationMenuProps, type NavigationMenuItemProps as UGNavigationMenuItemProps, type NavigationMenuLinkProps as UGNavigationMenuLinkProps, type NavigationMenuTriggerProps as UGNavigationMenuTriggerProps, type NavigationMenuContentProps as UGNavigationMenuContentProps, } from './components/navigation-menu';
|
|
36
|
+
export { Avatar as UGAvatar, AvatarImage as UGAvatarImage, AvatarFallback as UGAvatarFallback, type AvatarProps as UGAvatarProps, type AvatarImageProps as UGAvatarImageProps, type AvatarFallbackProps as UGAvatarFallbackProps, } from './components/avatar';
|
|
37
|
+
export { AvatarGroup as UGAvatarGroup, type AvatarGroupProps as UGAvatarGroupProps, type AvatarGroupSize as UGAvatarGroupSize, } from './components/avatar-group';
|
|
38
|
+
export { Tooltip as UGTooltip, TooltipTrigger as UGTooltipTrigger, TooltipContent as UGTooltipContent, type TooltipProps as UGTooltipProps, type TooltipTriggerProps as UGTooltipTriggerProps, type TooltipContentProps as UGTooltipContentProps, } from './components/tooltip';
|
|
39
|
+
export { Alert as UGAlert, AlertTitle as UGAlertTitle, AlertDescription as UGAlertDescription, type AlertProps as UGAlertProps, type AlertTitleProps as UGAlertTitleProps, type AlertDescriptionProps as UGAlertDescriptionProps, } from './components/alert';
|
|
40
|
+
export { Breadcrumb as UGBreadcrumb, BreadcrumbItem as UGBreadcrumbItem, BreadcrumbLink as UGBreadcrumbLink, BreadcrumbSeparator as UGBreadcrumbSeparator, type BreadcrumbProps as UGBreadcrumbProps, type BreadcrumbItemProps as UGBreadcrumbItemProps, type BreadcrumbLinkProps as UGBreadcrumbLinkProps, type BreadcrumbSeparatorProps as UGBreadcrumbSeparatorProps, } from './components/breadcrumb';
|
|
41
|
+
export { Switch as UGSwitch, type SwitchProps as UGSwitchProps } from './components/switch';
|
|
42
|
+
export { Textarea as UGTextarea, type TextareaProps as UGTextareaProps, } from './components/textarea';
|
|
43
|
+
export { Skeleton as UGSkeleton, type SkeletonProps as UGSkeletonProps, } from './components/skeleton';
|
|
44
|
+
export { Progress as UGProgress, type ProgressColor as UGProgressColor, type ProgressProps as UGProgressProps, } from './components/progress';
|
|
45
|
+
export { Sheet as UGSheet, type SheetProps as UGSheetProps } from './components/sheet';
|
|
46
|
+
export { EmptyState as UGEmptyState, type EmptyStateProps as UGEmptyStateProps, } from './components/empty-state';
|
|
47
|
+
export { Separator as UGSeparator, type SeparatorContentPosition as UGSeparatorContentPosition, type SeparatorLineStyle as UGSeparatorLineStyle, type SeparatorProps as UGSeparatorProps, type SeparatorOrientation as UGSeparatorOrientation, } from './components/separator';
|
|
48
|
+
export { Descriptions as UGDescriptions, DescriptionsItem as UGDescriptionsItem, type DescriptionsProps as UGDescriptionsProps, type DescriptionsItemProps as UGDescriptionsItemProps, type DescriptionsSize as UGDescriptionsSize, } from './components/descriptions';
|
|
49
|
+
export { Statistic as UGStatistic, type StatisticProps as UGStatisticProps, type StatisticSize as UGStatisticSize, type StatisticTrend as UGStatisticTrend, } from './components/statistic';
|
|
50
|
+
export { Link as UGLink, type LinkProps as UGLinkProps, type LinkTone as UGLinkTone, type LinkUnderline as UGLinkUnderline, } from './components/link';
|
|
51
|
+
export { Text as UGText, type TextElement as UGTextElement, type TextProps as UGTextProps, type TextSize as UGTextSize, type TextTone as UGTextTone, } from './components/text';
|
|
52
|
+
export { Space as UGSpace, type SpaceAlign as UGSpaceAlign, type SpaceDirection as UGSpaceDirection, type SpaceGap as UGSpaceGap, type SpacePresetSize as UGSpacePresetSize, type SpaceProps as UGSpaceProps, type SpaceSize as UGSpaceSize, } from './components/space';
|
|
53
|
+
export { Scrollbar as UGScrollbar, type ScrollbarAppearance as UGScrollbarAppearance, type ScrollbarEndDirection as UGScrollbarEndDirection, type ScrollbarOrientation as UGScrollbarOrientation, type ScrollbarOverscroll as UGScrollbarOverscroll, type ScrollbarPosition as UGScrollbarPosition, type ScrollbarProps as UGScrollbarProps, } from './components/scrollbar';
|
|
54
|
+
export { Row as UGRow, Col as UGCol, type RowAlign as UGRowAlign, type RowGutter as UGRowGutter, type RowJustify as UGRowJustify, type RowProps as UGRowProps, type ColBreakpoint as UGColBreakpoint, type ColProps as UGColProps, type ColSize as UGColSize, } from './components/layout';
|
|
55
|
+
export { Container as UGContainer, Header as UGHeader, Aside as UGAside, Main as UGMain, Footer as UGFooter, type AsideProps as UGAsideProps, type ContainerDirection as UGContainerDirection, type ContainerProps as UGContainerProps, type ContainerRegionProps as UGContainerRegionProps, type ContainerRegionSize as UGContainerRegionSize, type FooterProps as UGFooterProps, type HeaderProps as UGHeaderProps, type MainProps as UGMainProps, } from './components/container';
|
|
56
|
+
export { ConfigProvider as UGConfigProvider, type ConfigProviderProps as UGConfigProviderProps } from './components/config-provider';
|
|
57
|
+
export { Splitter as UGSplitter, SplitterPanel as UGSplitterPanel, type SplitterCollapseDetail as UGSplitterCollapseDetail, type SplitterDirection as UGSplitterDirection, type SplitterPanelProps as UGSplitterPanelProps, type SplitterProps as UGSplitterProps, type SplitterResizeDetail as UGSplitterResizeDetail, } from './components/splitter';
|
|
58
|
+
export { Icon as UGIcon, type IconProps as UGIconProps } from './components/icon';
|
|
59
|
+
//# sourceMappingURL=aliases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../src/aliases.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,MAAM,IAAI,QAAQ,EAClB,cAAc,IAAI,gBAAgB,EAClC,KAAK,sBAAsB,IAAI,wBAAwB,EACvD,KAAK,WAAW,IAAI,aAAa,EACjC,KAAK,WAAW,IAAI,aAAa,EACjC,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,aAAa,IAAI,eAAe,GACtC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,WAAW,IAAI,aAAa,EAC5B,KAAK,gBAAgB,IAAI,kBAAkB,GAC5C,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,UAAU,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtF,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,UAAU,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtF,OAAO,EACL,IAAI,IAAI,MAAM,EAC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IAAI,QAAQ,EAClB,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,kBAAkB,IAAI,oBAAoB,EAC/C,KAAK,cAAc,IAAI,gBAAgB,EACvC,KAAK,oBAAoB,IAAI,sBAAsB,EACnD,KAAK,mBAAmB,IAAI,qBAAqB,EACjD,KAAK,WAAW,IAAI,aAAa,EACjC,KAAK,WAAW,IAAI,aAAa,EACjC,KAAK,SAAS,IAAI,WAAW,GAC9B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,KAAK,mBAAmB,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACpI,OAAO,EACL,QAAQ,IAAI,UAAU,EACtB,aAAa,IAAI,eAAe,EAChC,KAAK,sBAAsB,IAAI,wBAAwB,EACvD,KAAK,iBAAiB,IAAI,mBAAmB,EAC7C,KAAK,kBAAkB,IAAI,oBAAoB,EAC/C,KAAK,aAAa,IAAI,eAAe,EACrC,KAAK,oBAAoB,IAAI,sBAAsB,GACpD,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: FeatureGrid 特性网格区块 — 用于产品能力、服务优势和功能模块展示
|
|
3
|
+
* @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
|
|
4
|
+
* @date: 2026-05-30
|
|
5
|
+
*/
|
|
6
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
7
|
+
import { type LucideIcon } from 'lucide-react';
|
|
8
|
+
export interface FeatureGridItem {
|
|
9
|
+
/** 标题 */
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
/** 描述 */
|
|
12
|
+
description: ReactNode;
|
|
13
|
+
/** 图标 */
|
|
14
|
+
icon?: LucideIcon;
|
|
15
|
+
/** 角标或状态 */
|
|
16
|
+
meta?: ReactNode;
|
|
17
|
+
/** 链接地址 */
|
|
18
|
+
href?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface FeatureGridProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
21
|
+
/** 区块标题 */
|
|
22
|
+
title?: ReactNode;
|
|
23
|
+
/** 区块说明 */
|
|
24
|
+
description?: ReactNode;
|
|
25
|
+
/** 特性列表 */
|
|
26
|
+
features: FeatureGridItem[];
|
|
27
|
+
/** 列数,默认三列 */
|
|
28
|
+
columns?: 2 | 3 | 4;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 特性网格区块
|
|
32
|
+
* @example
|
|
33
|
+
* <FeatureGrid
|
|
34
|
+
* title="平台能力"
|
|
35
|
+
* features={[{ title: '认证中心', description: '统一登录与授权。' }]}
|
|
36
|
+
* />
|
|
37
|
+
*/
|
|
38
|
+
declare const FeatureGrid: import("react").ForwardRefExoticComponent<FeatureGridProps & import("react").RefAttributes<HTMLElement>>;
|
|
39
|
+
export { FeatureGrid };
|
|
40
|
+
//# sourceMappingURL=feature-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-grid.d.ts","sourceRoot":"","sources":["../../src/blocks/feature-grid.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACvE,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAG1D,MAAM,WAAW,eAAe;IAC9B,SAAS;IACT,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS;IACT,WAAW,EAAE,SAAS,CAAA;IACtB,SAAS;IACT,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,YAAY;IACZ,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAClF,WAAW;IACX,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,WAAW;IACX,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,WAAW;IACX,QAAQ,EAAE,eAAe,EAAE,CAAA;IAC3B,cAAc;IACd,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;CACpB;AAcD;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW,0GAwFhB,CAAA;AAID,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/blocks/index.cjs
CHANGED
|
@@ -45,33 +45,52 @@ var columnClasses = {
|
|
|
45
45
|
3: "lg:grid-cols-3",
|
|
46
46
|
4: "lg:grid-cols-4"
|
|
47
47
|
};
|
|
48
|
+
var columnVariant = {
|
|
49
|
+
2: "two",
|
|
50
|
+
3: "three",
|
|
51
|
+
4: "four"
|
|
52
|
+
};
|
|
48
53
|
var FeatureGrid = (0, import_react.forwardRef)(
|
|
49
54
|
({ title, description, features, columns = 3, className, ...props }, ref) => {
|
|
50
55
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
56
|
"section",
|
|
52
57
|
{
|
|
53
58
|
ref,
|
|
54
|
-
className: cn("bg-surface-0 px-4 py-16 sm:px-6 lg:px-8", className),
|
|
55
59
|
...props,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
"data-ug": "feature-grid",
|
|
61
|
+
"data-state": "default",
|
|
62
|
+
"data-variant": columnVariant[columns],
|
|
63
|
+
"data-size": "md",
|
|
64
|
+
className: cn(
|
|
65
|
+
"bg-surface-0 px-[var(--content-gap)] py-[var(--section-gap)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]",
|
|
66
|
+
className
|
|
67
|
+
),
|
|
68
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-auto w-full max-w-7xl space-y-[calc(var(--section-gap)*0.8)]", children: [
|
|
69
|
+
title || description ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-ug-slot": "header", className: "max-w-3xl space-y-[calc(var(--content-gap)*0.5)]", children: [
|
|
70
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { "data-ug-slot": "title", className: "break-words text-3xl font-bold leading-tight text-text-primary", children: title }) : null,
|
|
71
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { "data-ug-slot": "description", className: "text-sm leading-6 text-text-secondary", children: description }) : null
|
|
60
72
|
] }) : null,
|
|
61
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("grid gap-
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-ug-slot": "grid", className: cn("grid gap-[calc(var(--content-gap)*0.8)] md:grid-cols-2", columnClasses[columns]), children: features.map((feature, index) => {
|
|
62
74
|
const Icon = feature.icon;
|
|
63
75
|
const content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
64
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex min-w-0 items-start justify-between gap-
|
|
65
|
-
Icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
|
-
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex min-w-0 items-start justify-between gap-[calc(var(--content-gap)*0.6)]", children: [
|
|
77
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
|
+
"span",
|
|
79
|
+
{
|
|
80
|
+
"data-ug-slot": "icon",
|
|
81
|
+
className: "flex h-[var(--control-height-lg)] w-[var(--control-height-lg)] shrink-0 items-center justify-center rounded-[var(--radius-control)] bg-primary-soft text-primary-soft-fg",
|
|
82
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size: 20, "aria-hidden": "true", focusable: "false" })
|
|
83
|
+
}
|
|
84
|
+
) : null,
|
|
85
|
+
feature.meta ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "data-ug-slot": "meta", className: "shrink-0 text-xs font-medium text-text-tertiary", children: feature.meta }) : null
|
|
67
86
|
] }),
|
|
68
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 space-y-
|
|
69
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "break-words text-base font-semibold text-text-primary", children: feature.title }),
|
|
70
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm leading-6 text-text-secondary", children: feature.description })
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-ug-slot": "content", className: "min-w-0 space-y-[calc(var(--content-gap)*0.4)]", children: [
|
|
88
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { "data-ug-slot": "item-title", className: "break-words text-base font-semibold text-text-primary", children: feature.title }),
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { "data-ug-slot": "item-description", className: "text-sm leading-6 text-text-secondary", children: feature.description })
|
|
71
90
|
] }),
|
|
72
|
-
feature.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "inline-flex items-center gap-
|
|
91
|
+
feature.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { "data-ug-slot": "item-action", className: "inline-flex items-center gap-[calc(var(--content-gap)*0.25)] text-sm font-medium text-primary", children: [
|
|
73
92
|
"\u67E5\u770B\u8BE6\u60C5",
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { size: 14, "aria-hidden": "true" })
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { size: 14, "aria-hidden": "true", focusable: "false" })
|
|
75
94
|
] }) : null
|
|
76
95
|
] });
|
|
77
96
|
if (feature.href) {
|
|
@@ -79,7 +98,9 @@ var FeatureGrid = (0, import_react.forwardRef)(
|
|
|
79
98
|
"a",
|
|
80
99
|
{
|
|
81
100
|
href: feature.href,
|
|
82
|
-
|
|
101
|
+
"data-ug-slot": "item",
|
|
102
|
+
"data-state": "interactive",
|
|
103
|
+
className: "flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] border border-border-base bg-surface-1 p-[var(--content-gap)] transition-colors hover:border-primary/35 hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
83
104
|
children: content
|
|
84
105
|
},
|
|
85
106
|
index
|
|
@@ -88,7 +109,9 @@ var FeatureGrid = (0, import_react.forwardRef)(
|
|
|
88
109
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
110
|
"article",
|
|
90
111
|
{
|
|
91
|
-
|
|
112
|
+
"data-ug-slot": "item",
|
|
113
|
+
"data-state": "static",
|
|
114
|
+
className: "flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] border border-border-base bg-surface-1 p-[var(--content-gap)]",
|
|
92
115
|
children: content
|
|
93
116
|
},
|
|
94
117
|
index
|
|
@@ -102,51 +125,243 @@ var FeatureGrid = (0, import_react.forwardRef)(
|
|
|
102
125
|
FeatureGrid.displayName = "FeatureGrid";
|
|
103
126
|
|
|
104
127
|
// src/blocks/landing-hero.tsx
|
|
105
|
-
var
|
|
128
|
+
var import_react5 = require("react");
|
|
106
129
|
var import_lucide_react3 = require("lucide-react");
|
|
107
130
|
|
|
108
131
|
// src/components/button.tsx
|
|
109
|
-
var
|
|
132
|
+
var import_react4 = require("react");
|
|
110
133
|
var import_lucide_react2 = require("lucide-react");
|
|
111
134
|
var import_class_variance_authority = require("class-variance-authority");
|
|
135
|
+
|
|
136
|
+
// src/internal/button-group-context.ts
|
|
137
|
+
var import_react2 = require("react");
|
|
138
|
+
var ButtonGroupContext = (0, import_react2.createContext)({});
|
|
139
|
+
var ButtonGroupProvider = ButtonGroupContext.Provider;
|
|
140
|
+
function useButtonGroup() {
|
|
141
|
+
return (0, import_react2.useContext)(ButtonGroupContext);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// src/components/config-provider.tsx
|
|
145
|
+
var import_react3 = require("react");
|
|
112
146
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
147
|
+
function resolveDisabled(disabled, configDisabled) {
|
|
148
|
+
return disabled ?? configDisabled;
|
|
149
|
+
}
|
|
150
|
+
var defaultConfig = {
|
|
151
|
+
namespace: "ug",
|
|
152
|
+
size: "medium",
|
|
153
|
+
disabled: false,
|
|
154
|
+
button: {},
|
|
155
|
+
link: {}
|
|
156
|
+
};
|
|
157
|
+
var ConfigContext = (0, import_react3.createContext)(defaultConfig);
|
|
158
|
+
function useUIConfig() {
|
|
159
|
+
return (0, import_react3.useContext)(ConfigContext);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// src/components/button.tsx
|
|
163
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
113
164
|
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
114
|
-
"inline-flex items-center justify-center gap-
|
|
165
|
+
"inline-flex items-center justify-center gap-[var(--button-icon-gap)] whitespace-nowrap border-solid border-transparent font-[var(--button-font-weight)] transition-[background,border-color,color,box-shadow,opacity] duration-[var(--motion-duration-base)] ease-[var(--motion-easing-standard)] motion-reduce:transition-none focus-visible:outline-none focus-visible:ring-[length:var(--button-focus-ring-width)] focus-visible:ring-primary focus-visible:ring-offset-[length:var(--button-focus-ring-offset)] disabled:pointer-events-none disabled:cursor-not-allowed select-none",
|
|
115
166
|
{
|
|
116
167
|
variants: {
|
|
117
168
|
variant: {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
169
|
+
solid: "",
|
|
170
|
+
soft: "",
|
|
171
|
+
// 蓝绿主按钮
|
|
172
|
+
primary: "bg-[var(--button-primary-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-primary-solid-hover)] active:bg-[var(--button-primary-solid-active)] focus-visible:ring-primary",
|
|
173
|
+
// 成功绿按钮 (主流框架标准绿)
|
|
174
|
+
success: "bg-[var(--button-success-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-success-solid-hover)] active:bg-[var(--button-success-solid-active)] focus-visible:ring-success",
|
|
175
|
+
// 警告黄/橙按钮 (主流框架标准橙)
|
|
176
|
+
warning: "bg-[var(--button-warning-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-warning-solid-hover)] active:bg-[var(--button-warning-solid-active)] focus-visible:ring-warning",
|
|
177
|
+
// 危险红按钮 (主流框架标准红)
|
|
178
|
+
danger: "bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger",
|
|
179
|
+
destructive: "bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger",
|
|
180
|
+
// 信息蓝按钮 (主流框架标准蓝)
|
|
181
|
+
info: "bg-[var(--button-info-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-info-solid-hover)] active:bg-[var(--button-info-solid-active)] focus-visible:ring-info",
|
|
182
|
+
// 默认按钮:经典白底/浅灰底 + 1px 标准边框,Hover 时变主色
|
|
183
|
+
default: "border-border-base bg-surface-1 text-text-primary shadow-xs hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40",
|
|
184
|
+
outline: "bg-transparent",
|
|
185
|
+
// 次要按钮:柔和背景
|
|
186
|
+
secondary: "border-border-base bg-surface-2 text-text-primary shadow-xs hover:bg-surface-3 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
187
|
+
// 虚线按钮:标准 1px 虚线框
|
|
188
|
+
dashed: "border-dashed bg-transparent",
|
|
189
|
+
// 幽灵与文本按钮的视觉由语义色映射控制
|
|
190
|
+
ghost: "",
|
|
191
|
+
text: "",
|
|
192
|
+
link: ""
|
|
124
193
|
},
|
|
125
194
|
size: {
|
|
126
|
-
default: "h-
|
|
127
|
-
sm: "h-
|
|
128
|
-
lg: "h-
|
|
129
|
-
icon: "h-
|
|
195
|
+
default: "h-[var(--control-height-md)] px-[var(--control-padding-x-md)] py-0",
|
|
196
|
+
sm: "h-[var(--control-height-sm)] px-[var(--control-padding-x-sm)] py-0",
|
|
197
|
+
lg: "h-[var(--control-height-lg)] px-[var(--control-padding-x-lg)] py-0",
|
|
198
|
+
icon: "h-[var(--control-height-md)] w-[var(--control-height-md)] p-0"
|
|
199
|
+
},
|
|
200
|
+
shape: {
|
|
201
|
+
default: "rounded-[var(--radius-control)]",
|
|
202
|
+
circle: "!rounded-full !p-0 aspect-square",
|
|
203
|
+
round: "!rounded-full"
|
|
204
|
+
},
|
|
205
|
+
block: {
|
|
206
|
+
true: "w-full flex",
|
|
207
|
+
false: ""
|
|
130
208
|
}
|
|
131
209
|
},
|
|
132
210
|
defaultVariants: {
|
|
133
211
|
variant: "default",
|
|
134
|
-
size: "default"
|
|
212
|
+
size: "default",
|
|
213
|
+
shape: "default",
|
|
214
|
+
block: false
|
|
135
215
|
}
|
|
136
216
|
}
|
|
137
217
|
);
|
|
138
|
-
var
|
|
139
|
-
|
|
140
|
-
|
|
218
|
+
var TONE_VARIANT_CLASSES = {
|
|
219
|
+
neutral: {
|
|
220
|
+
solid: "border-border-strong bg-surface-3 text-text-primary shadow-xs hover:bg-surface-2 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
221
|
+
soft: "bg-surface-2 text-text-primary shadow-xs hover:bg-surface-3 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
222
|
+
outline: "border-border-strong bg-transparent text-text-primary shadow-xs hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40",
|
|
223
|
+
dashed: "border-border-strong text-text-primary hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40",
|
|
224
|
+
ghost: "text-text-primary hover:bg-surface-2 active:bg-surface-3 focus-visible:ring-primary/40",
|
|
225
|
+
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-primary/40",
|
|
226
|
+
link: "text-text-primary focus-visible:ring-primary/40"
|
|
227
|
+
},
|
|
228
|
+
primary: {
|
|
229
|
+
solid: "bg-[var(--button-primary-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-primary-solid-hover)] active:bg-[var(--button-primary-solid-active)] focus-visible:ring-primary",
|
|
230
|
+
soft: "bg-primary-soft text-text-primary hover:shadow-sm active:bg-primary-soft focus-visible:ring-primary/40",
|
|
231
|
+
outline: "border-primary bg-transparent text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40",
|
|
232
|
+
dashed: "border-primary text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40",
|
|
233
|
+
ghost: "text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40",
|
|
234
|
+
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-primary/40",
|
|
235
|
+
link: "text-text-primary focus-visible:ring-primary/40"
|
|
236
|
+
},
|
|
237
|
+
success: {
|
|
238
|
+
solid: "bg-[var(--button-success-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-success-solid-hover)] active:bg-[var(--button-success-solid-active)] focus-visible:ring-success",
|
|
239
|
+
soft: "bg-success-soft text-text-primary hover:shadow-sm active:bg-success-soft focus-visible:ring-success/40",
|
|
240
|
+
outline: "border-success bg-transparent text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40",
|
|
241
|
+
dashed: "border-success text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40",
|
|
242
|
+
ghost: "text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40",
|
|
243
|
+
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-success/40",
|
|
244
|
+
link: "text-text-primary focus-visible:ring-success/40"
|
|
245
|
+
},
|
|
246
|
+
warning: {
|
|
247
|
+
solid: "bg-[var(--button-warning-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-warning-solid-hover)] active:bg-[var(--button-warning-solid-active)] focus-visible:ring-warning",
|
|
248
|
+
soft: "bg-warning-soft text-text-primary hover:shadow-sm active:bg-warning-soft focus-visible:ring-warning/40",
|
|
249
|
+
outline: "border-warning bg-transparent text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40",
|
|
250
|
+
dashed: "border-warning text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40",
|
|
251
|
+
ghost: "text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40",
|
|
252
|
+
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-warning/40",
|
|
253
|
+
link: "text-text-primary focus-visible:ring-warning/40"
|
|
254
|
+
},
|
|
255
|
+
danger: {
|
|
256
|
+
solid: "bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger",
|
|
257
|
+
soft: "bg-danger-soft text-text-primary hover:shadow-sm active:bg-danger-soft focus-visible:ring-danger/40",
|
|
258
|
+
outline: "border-danger bg-transparent text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40",
|
|
259
|
+
dashed: "border-danger text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40",
|
|
260
|
+
ghost: "text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40",
|
|
261
|
+
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-danger/40",
|
|
262
|
+
link: "text-text-primary focus-visible:ring-danger/40"
|
|
263
|
+
},
|
|
264
|
+
info: {
|
|
265
|
+
solid: "bg-[var(--button-info-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-info-solid-hover)] active:bg-[var(--button-info-solid-active)] focus-visible:ring-info",
|
|
266
|
+
soft: "bg-info-soft text-text-primary hover:shadow-sm active:bg-info-soft focus-visible:ring-info/40",
|
|
267
|
+
outline: "border-info bg-transparent text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40",
|
|
268
|
+
dashed: "border-info text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40",
|
|
269
|
+
ghost: "text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40",
|
|
270
|
+
text: "text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-info/40",
|
|
271
|
+
link: "text-text-primary focus-visible:ring-info/40"
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
var VARIANT_LAYOUT_CLASSES = {
|
|
275
|
+
text: "px-[var(--control-padding-x-sm)]",
|
|
276
|
+
link: "h-auto p-0 underline-offset-4 hover:underline"
|
|
277
|
+
};
|
|
278
|
+
var CONFIG_SIZE_TO_BUTTON_SIZE = {
|
|
279
|
+
small: "sm",
|
|
280
|
+
medium: "default",
|
|
281
|
+
large: "lg"
|
|
282
|
+
};
|
|
283
|
+
var LEGACY_VARIANT_TONES = {
|
|
284
|
+
primary: "primary",
|
|
285
|
+
success: "success",
|
|
286
|
+
warning: "warning",
|
|
287
|
+
danger: "danger",
|
|
288
|
+
destructive: "danger",
|
|
289
|
+
info: "info"
|
|
290
|
+
};
|
|
291
|
+
function isToneVariant(variant) {
|
|
292
|
+
return ["solid", "soft", "outline", "dashed", "ghost", "text", "link"].includes(variant);
|
|
293
|
+
}
|
|
294
|
+
function getButtonState(loading, disabled) {
|
|
295
|
+
const states = [];
|
|
296
|
+
if (loading) states.push("loading");
|
|
297
|
+
if (disabled || loading) states.push("disabled");
|
|
298
|
+
return states.length > 0 ? states.join(" ") : void 0;
|
|
299
|
+
}
|
|
300
|
+
var Button = (0, import_react4.forwardRef)(
|
|
301
|
+
({
|
|
302
|
+
className,
|
|
303
|
+
variant,
|
|
304
|
+
tone,
|
|
305
|
+
size,
|
|
306
|
+
shape,
|
|
307
|
+
block,
|
|
308
|
+
loading = false,
|
|
309
|
+
loadingText,
|
|
310
|
+
loadingIcon,
|
|
311
|
+
loadingPlacement = "start",
|
|
312
|
+
disabled,
|
|
313
|
+
type = "button",
|
|
314
|
+
style,
|
|
315
|
+
children,
|
|
316
|
+
...props
|
|
317
|
+
}, ref) => {
|
|
318
|
+
const group = useButtonGroup();
|
|
319
|
+
const config = useUIConfig();
|
|
320
|
+
const resolvedVariant = variant ?? group.variant ?? config.button.variant ?? "default";
|
|
321
|
+
const resolvedTone = tone ?? group.tone ?? config.button.tone ?? LEGACY_VARIANT_TONES[resolvedVariant] ?? (resolvedVariant === "solid" || resolvedVariant === "soft" ? "primary" : "neutral");
|
|
322
|
+
const resolvedSize = size ?? group.size ?? CONFIG_SIZE_TO_BUTTON_SIZE[config.size];
|
|
323
|
+
const resolvedShape = shape ?? group.shape ?? config.button.shape ?? "default";
|
|
324
|
+
const resolvedDisabled = resolveDisabled(
|
|
325
|
+
disabled,
|
|
326
|
+
group.disabled ?? config.disabled
|
|
327
|
+
);
|
|
328
|
+
const state = getButtonState(loading, resolvedDisabled);
|
|
329
|
+
const loader = loadingIcon ?? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.Loader2, { className: "animate-spin motion-reduce:animate-none", size: resolvedSize === "sm" ? 14 : 16 });
|
|
330
|
+
const label = loading && loadingText !== void 0 ? loadingText : children;
|
|
331
|
+
const toneClasses = isToneVariant(resolvedVariant) ? TONE_VARIANT_CLASSES[resolvedTone][resolvedVariant] : void 0;
|
|
332
|
+
const loaderNode = loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "data-ug-slot": "loader", className: "inline-flex shrink-0 items-center justify-center", "aria-hidden": "true", children: loader }) : null;
|
|
333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
141
334
|
"button",
|
|
142
335
|
{
|
|
143
336
|
ref,
|
|
144
|
-
className: cn(buttonVariants({ variant, size }), className),
|
|
145
|
-
disabled: disabled || loading,
|
|
146
337
|
...props,
|
|
338
|
+
type,
|
|
339
|
+
style: { fontWeight: "var(--button-font-weight)", ...style },
|
|
340
|
+
className: cn(
|
|
341
|
+
buttonVariants({
|
|
342
|
+
variant: resolvedVariant,
|
|
343
|
+
size: resolvedSize,
|
|
344
|
+
shape: resolvedShape,
|
|
345
|
+
block
|
|
346
|
+
}),
|
|
347
|
+
toneClasses,
|
|
348
|
+
VARIANT_LAYOUT_CLASSES[resolvedVariant],
|
|
349
|
+
className
|
|
350
|
+
),
|
|
351
|
+
disabled: resolvedDisabled || loading,
|
|
352
|
+
"aria-busy": loading || void 0,
|
|
353
|
+
"data-ug": "button",
|
|
354
|
+
"data-state": state,
|
|
355
|
+
"data-variant": resolvedVariant,
|
|
356
|
+
"data-tone": resolvedTone,
|
|
357
|
+
"data-size": resolvedSize,
|
|
358
|
+
"data-shape": resolvedShape,
|
|
359
|
+
"data-block": block ? "true" : void 0,
|
|
360
|
+
"data-ug-namespace": config.namespace,
|
|
147
361
|
children: [
|
|
148
|
-
|
|
149
|
-
children
|
|
362
|
+
loadingPlacement === "start" ? loaderNode : null,
|
|
363
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "data-ug-slot": "label", className: "inline-flex min-w-0 items-center justify-center gap-[var(--button-icon-gap)]", children: label }),
|
|
364
|
+
loadingPlacement === "end" ? loaderNode : null
|
|
150
365
|
]
|
|
151
366
|
}
|
|
152
367
|
);
|
|
@@ -155,31 +370,41 @@ var Button = (0, import_react2.forwardRef)(
|
|
|
155
370
|
Button.displayName = "Button";
|
|
156
371
|
|
|
157
372
|
// src/blocks/landing-hero.tsx
|
|
158
|
-
var
|
|
159
|
-
function HeroAction({
|
|
160
|
-
|
|
161
|
-
|
|
373
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
374
|
+
function HeroAction({
|
|
375
|
+
label,
|
|
376
|
+
href,
|
|
377
|
+
icon: Icon = import_lucide_react3.ArrowRight,
|
|
378
|
+
variant = "primary",
|
|
379
|
+
className,
|
|
380
|
+
disabled,
|
|
381
|
+
onClick,
|
|
382
|
+
...props
|
|
383
|
+
}) {
|
|
384
|
+
if (href && !disabled) {
|
|
385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
162
386
|
"a",
|
|
163
387
|
{
|
|
164
388
|
href,
|
|
389
|
+
onClick: (event) => onClick?.(event),
|
|
165
390
|
className: cn(
|
|
166
|
-
"inline-flex h-
|
|
391
|
+
"inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] px-[var(--control-padding-x-md)] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
167
392
|
variant === "outline" ? "border border-border-strong bg-surface-1 text-text-primary hover:bg-surface-2" : "bg-primary text-primary-fg hover:bg-primary-hover",
|
|
168
393
|
className
|
|
169
394
|
),
|
|
170
395
|
children: [
|
|
171
|
-
label,
|
|
172
|
-
/* @__PURE__ */ (0,
|
|
396
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "data-ug-slot": "action-label", children: label }),
|
|
397
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { size: 16, "aria-hidden": "true", focusable: "false", "data-ug-slot": "action-icon" })
|
|
173
398
|
]
|
|
174
399
|
}
|
|
175
400
|
);
|
|
176
401
|
}
|
|
177
|
-
return /* @__PURE__ */ (0,
|
|
178
|
-
label,
|
|
179
|
-
/* @__PURE__ */ (0,
|
|
402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Button, { variant, className, disabled, onClick, ...props, children: [
|
|
403
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "data-ug-slot": "action-label", children: label }),
|
|
404
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { size: 16, "aria-hidden": "true", focusable: "false", "data-ug-slot": "action-icon" })
|
|
180
405
|
] });
|
|
181
406
|
}
|
|
182
|
-
var LandingHero = (0,
|
|
407
|
+
var LandingHero = (0, import_react5.forwardRef)(
|
|
183
408
|
({
|
|
184
409
|
eyebrow,
|
|
185
410
|
title,
|
|
@@ -192,7 +417,7 @@ var LandingHero = (0, import_react3.forwardRef)(
|
|
|
192
417
|
className,
|
|
193
418
|
...props
|
|
194
419
|
}, ref) => {
|
|
195
|
-
return /* @__PURE__ */ (0,
|
|
420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
196
421
|
"section",
|
|
197
422
|
{
|
|
198
423
|
ref,
|
|
@@ -201,26 +426,30 @@ var LandingHero = (0, import_react3.forwardRef)(
|
|
|
201
426
|
className
|
|
202
427
|
),
|
|
203
428
|
...props,
|
|
429
|
+
"data-ug": "landing-hero",
|
|
430
|
+
"data-state": "default",
|
|
431
|
+
"data-variant": media ? "media" : "default",
|
|
432
|
+
"data-size": "md",
|
|
204
433
|
children: [
|
|
205
|
-
media ? /* @__PURE__ */ (0,
|
|
206
|
-
/* @__PURE__ */ (0,
|
|
207
|
-
/* @__PURE__ */ (0,
|
|
434
|
+
media ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
435
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "absolute inset-0 -z-20 overflow-hidden", "data-ug-slot": "media", children: media }),
|
|
436
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "absolute inset-0 -z-10 bg-surface-0/78", "aria-hidden": "true", "data-ug-slot": "overlay" })
|
|
208
437
|
] }) : null,
|
|
209
|
-
/* @__PURE__ */ (0,
|
|
210
|
-
eyebrow ? /* @__PURE__ */ (0,
|
|
211
|
-
/* @__PURE__ */ (0,
|
|
212
|
-
/* @__PURE__ */ (0,
|
|
213
|
-
description ? /* @__PURE__ */ (0,
|
|
438
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mx-auto flex min-h-[calc(var(--control-height-lg)*10)] w-full max-w-7xl flex-col justify-center px-[var(--content-gap)] py-[calc(var(--content-gap)*4)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]", "data-ug-slot": "container", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "max-w-4xl space-y-[calc(var(--content-gap)*1.75)]", "data-ug-slot": "content", children: [
|
|
439
|
+
eyebrow ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "inline-flex rounded-[var(--radius-control)] border border-primary/25 bg-primary-soft px-[var(--control-padding-x-sm)] py-[calc(var(--content-gap)*0.25)] text-xs font-semibold text-primary-soft-fg", "data-ug-slot": "eyebrow", children: eyebrow }) : null,
|
|
440
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "space-y-[var(--content-gap)]", children: [
|
|
441
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h1", { className: "max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl", "data-ug-slot": "title", children: title }),
|
|
442
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "max-w-2xl text-base leading-7 text-text-secondary sm:text-lg", "data-ug-slot": "description", children: description }) : null
|
|
214
443
|
] }),
|
|
215
|
-
primaryAction || secondaryAction ? /* @__PURE__ */ (0,
|
|
216
|
-
primaryAction ? /* @__PURE__ */ (0,
|
|
217
|
-
secondaryAction ? /* @__PURE__ */ (0,
|
|
444
|
+
primaryAction || secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-wrap items-center gap-[calc(var(--content-gap)*0.75)]", "data-ug-slot": "actions", children: [
|
|
445
|
+
primaryAction ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HeroAction, { ...primaryAction }) : null,
|
|
446
|
+
secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HeroAction, { variant: "outline", ...secondaryAction }) : null
|
|
218
447
|
] }) : null,
|
|
219
|
-
stats?.length ? /* @__PURE__ */ (0,
|
|
220
|
-
/* @__PURE__ */ (0,
|
|
221
|
-
/* @__PURE__ */ (0,
|
|
448
|
+
stats?.length ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dl", { className: "grid max-w-2xl gap-[var(--content-gap)] sm:grid-cols-3", "data-ug-slot": "stats", children: stats.map((stat, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "border-l border-border-base pl-[var(--content-gap)]", "data-ug-slot": "stat", children: [
|
|
449
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", { className: "text-xs font-medium text-text-tertiary", "data-ug-slot": "stat-label", children: stat.label }),
|
|
450
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", { className: "mt-[calc(var(--content-gap)*0.25)] text-2xl font-bold text-text-primary", "data-ug-slot": "stat-value", children: stat.value })
|
|
222
451
|
] }, index)) }) : null,
|
|
223
|
-
children ? /* @__PURE__ */ (0,
|
|
452
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "min-w-0", "data-ug-slot": "footer", children }) : null
|
|
224
453
|
] }) })
|
|
225
454
|
]
|
|
226
455
|
}
|