@fabio.caffarello/react-design-system 3.7.0 → 3.9.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 +4 -2
- package/dist/granular/index.js +445 -0
- package/dist/granular/index.js.map +1 -0
- package/dist/granular/ui/components/Accordion/Accordion.js +105 -0
- package/dist/granular/ui/components/Accordion/Accordion.js.map +1 -0
- package/dist/granular/ui/components/Autocomplete/Autocomplete.js +133 -0
- package/dist/granular/ui/components/Autocomplete/Autocomplete.js.map +1 -0
- package/dist/granular/ui/components/Autocomplete/AutocompleteList.js +119 -0
- package/dist/granular/ui/components/Autocomplete/AutocompleteList.js.map +1 -0
- package/dist/granular/ui/components/Autocomplete/AutocompleteOption.js +42 -0
- package/dist/granular/ui/components/Autocomplete/AutocompleteOption.js.map +1 -0
- package/dist/granular/ui/components/Breadcrumb/Breadcrumb.js +100 -0
- package/dist/granular/ui/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/granular/ui/components/Card/Card.js +113 -0
- package/dist/granular/ui/components/Card/Card.js.map +1 -0
- package/dist/granular/ui/components/Card/CardActions.js +51 -0
- package/dist/granular/ui/components/Card/CardActions.js.map +1 -0
- package/dist/granular/ui/components/Card/CardBody.js +32 -0
- package/dist/granular/ui/components/Card/CardBody.js.map +1 -0
- package/dist/granular/ui/components/Card/CardHeader.js +47 -0
- package/dist/granular/ui/components/Card/CardHeader.js.map +1 -0
- package/dist/granular/ui/components/Card/CardSubtitle.js +38 -0
- package/dist/granular/ui/components/Card/CardSubtitle.js.map +1 -0
- package/dist/granular/ui/components/Card/CardTitle.js +61 -0
- package/dist/granular/ui/components/Card/CardTitle.js.map +1 -0
- package/dist/granular/ui/components/ColorPicker/ColorPicker.js +250 -0
- package/dist/granular/ui/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/granular/ui/components/CommandPalette/CommandPalette.js +274 -0
- package/dist/granular/ui/components/CommandPalette/CommandPalette.js.map +1 -0
- package/dist/granular/ui/components/DashboardLayout/DashboardLayout.js +37 -0
- package/dist/granular/ui/components/DashboardLayout/DashboardLayout.js.map +1 -0
- package/dist/granular/ui/components/DataGrid/DataGrid.js +155 -0
- package/dist/granular/ui/components/DataGrid/DataGrid.js.map +1 -0
- package/dist/granular/ui/components/DataTablePattern/DataTablePattern.js +113 -0
- package/dist/granular/ui/components/DataTablePattern/DataTablePattern.js.map +1 -0
- package/dist/granular/ui/components/DatePicker/DatePicker.js +126 -0
- package/dist/granular/ui/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/granular/ui/components/DatePicker/DatePickerCalendar.js +294 -0
- package/dist/granular/ui/components/DatePicker/DatePickerCalendar.js.map +1 -0
- package/dist/granular/ui/components/DatePicker/DatePickerContext.js +16 -0
- package/dist/granular/ui/components/DatePicker/DatePickerContext.js.map +1 -0
- package/dist/granular/ui/components/DatePicker/DatePickerInput.js +119 -0
- package/dist/granular/ui/components/DatePicker/DatePickerInput.js.map +1 -0
- package/dist/granular/ui/components/DatePicker/DatePickerProvider.js +47 -0
- package/dist/granular/ui/components/DatePicker/DatePickerProvider.js.map +1 -0
- package/dist/granular/ui/components/Dialog/AlertDialog.js +48 -0
- package/dist/granular/ui/components/Dialog/AlertDialog.js.map +1 -0
- package/dist/granular/ui/components/Dialog/Dialog.js +36 -0
- package/dist/granular/ui/components/Dialog/Dialog.js.map +1 -0
- package/dist/granular/ui/components/Dialog/DialogClose.js +34 -0
- package/dist/granular/ui/components/Dialog/DialogClose.js.map +1 -0
- package/dist/granular/ui/components/Dialog/DialogContent.js +114 -0
- package/dist/granular/ui/components/Dialog/DialogContent.js.map +1 -0
- package/dist/granular/ui/components/Dialog/DialogDescription.js +51 -0
- package/dist/granular/ui/components/Dialog/DialogDescription.js.map +1 -0
- package/dist/granular/ui/components/Dialog/DialogFooter.js +45 -0
- package/dist/granular/ui/components/Dialog/DialogFooter.js.map +1 -0
- package/dist/granular/ui/components/Dialog/DialogHeader.js +45 -0
- package/dist/granular/ui/components/Dialog/DialogHeader.js.map +1 -0
- package/dist/granular/ui/components/Dialog/DialogTitle.js +53 -0
- package/dist/granular/ui/components/Dialog/DialogTitle.js.map +1 -0
- package/dist/granular/ui/components/Dialog/DialogTrigger.js +28 -0
- package/dist/granular/ui/components/Dialog/DialogTrigger.js.map +1 -0
- package/dist/granular/ui/components/Drawer/Drawer.js +47 -0
- package/dist/granular/ui/components/Drawer/Drawer.js.map +1 -0
- package/dist/granular/ui/components/Drawer/DrawerContent.js +140 -0
- package/dist/granular/ui/components/Drawer/DrawerContent.js.map +1 -0
- package/dist/granular/ui/components/Drawer/DrawerContext.js +21 -0
- package/dist/granular/ui/components/Drawer/DrawerContext.js.map +1 -0
- package/dist/granular/ui/components/Drawer/DrawerFooter.js +53 -0
- package/dist/granular/ui/components/Drawer/DrawerFooter.js.map +1 -0
- package/dist/granular/ui/components/Drawer/DrawerHeader.js +50 -0
- package/dist/granular/ui/components/Drawer/DrawerHeader.js.map +1 -0
- package/dist/granular/ui/components/Dropdown/Dropdown.js +243 -0
- package/dist/granular/ui/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/granular/ui/components/EmptyState/EmptyState.js +102 -0
- package/dist/granular/ui/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/granular/ui/components/FileUpload/FileUpload.js +342 -0
- package/dist/granular/ui/components/FileUpload/FileUpload.js.map +1 -0
- package/dist/granular/ui/components/Form/Form.js +184 -0
- package/dist/granular/ui/components/Form/Form.js.map +1 -0
- package/dist/granular/ui/components/Form/FormContext.js +19 -0
- package/dist/granular/ui/components/Form/FormContext.js.map +1 -0
- package/dist/granular/ui/components/Form/FormField.js +66 -0
- package/dist/granular/ui/components/Form/FormField.js.map +1 -0
- package/dist/granular/ui/components/Form/FormProvider.js +17 -0
- package/dist/granular/ui/components/Form/FormProvider.js.map +1 -0
- package/dist/granular/ui/components/Form/useFormFieldArray.js +29 -0
- package/dist/granular/ui/components/Form/useFormFieldArray.js.map +1 -0
- package/dist/granular/ui/components/FormWizardPattern/FormWizardPattern.js +121 -0
- package/dist/granular/ui/components/FormWizardPattern/FormWizardPattern.js.map +1 -0
- package/dist/granular/ui/components/Header/Header.js +98 -0
- package/dist/granular/ui/components/Header/Header.js.map +1 -0
- package/dist/granular/ui/components/Header/components/HeaderActions.js +21 -0
- package/dist/granular/ui/components/Header/components/HeaderActions.js.map +1 -0
- package/dist/granular/ui/components/Header/components/HeaderHamburger.js +31 -0
- package/dist/granular/ui/components/Header/components/HeaderHamburger.js.map +1 -0
- package/dist/granular/ui/components/Header/components/HeaderLogo.js +50 -0
- package/dist/granular/ui/components/Header/components/HeaderLogo.js.map +1 -0
- package/dist/granular/ui/components/Header/components/HeaderMobileMenu.js +38 -0
- package/dist/granular/ui/components/Header/components/HeaderMobileMenu.js.map +1 -0
- package/dist/granular/ui/components/Header/components/HeaderNavigation.js +27 -0
- package/dist/granular/ui/components/Header/components/HeaderNavigation.js.map +1 -0
- package/dist/granular/ui/components/Header/contexts/HeaderContext.js +49 -0
- package/dist/granular/ui/components/Header/contexts/HeaderContext.js.map +1 -0
- package/dist/granular/ui/components/LoginBox/LoginBox.js +84 -0
- package/dist/granular/ui/components/LoginBox/LoginBox.js.map +1 -0
- package/dist/granular/ui/components/Menu/Menu.js +45 -0
- package/dist/granular/ui/components/Menu/Menu.js.map +1 -0
- package/dist/granular/ui/components/Menu/MenuContent.js +94 -0
- package/dist/granular/ui/components/Menu/MenuContent.js.map +1 -0
- package/dist/granular/ui/components/Menu/MenuContext.js +21 -0
- package/dist/granular/ui/components/Menu/MenuContext.js.map +1 -0
- package/dist/granular/ui/components/Menu/MenuItem.js +93 -0
- package/dist/granular/ui/components/Menu/MenuItem.js.map +1 -0
- package/dist/granular/ui/components/Menu/MenuSeparator.js +46 -0
- package/dist/granular/ui/components/Menu/MenuSeparator.js.map +1 -0
- package/dist/granular/ui/components/Menu/MenuTrigger.js +71 -0
- package/dist/granular/ui/components/Menu/MenuTrigger.js.map +1 -0
- package/dist/granular/ui/components/Modal/Modal.js +171 -0
- package/dist/granular/ui/components/Modal/Modal.js.map +1 -0
- package/dist/granular/ui/components/MultiSelect/MultiSelect.js +193 -0
- package/dist/granular/ui/components/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/granular/ui/components/Navigation/Navigation.js +141 -0
- package/dist/granular/ui/components/Navigation/Navigation.js.map +1 -0
- package/dist/granular/ui/components/PageHeader/PageHeader.js +95 -0
- package/dist/granular/ui/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/granular/ui/components/Pagination/Pagination.js +156 -0
- package/dist/granular/ui/components/Pagination/Pagination.js.map +1 -0
- package/dist/granular/ui/components/Popover/Popover.js +171 -0
- package/dist/granular/ui/components/Popover/Popover.js.map +1 -0
- package/dist/granular/ui/components/Rating/Rating.js +110 -0
- package/dist/granular/ui/components/Rating/Rating.js.map +1 -0
- package/dist/granular/ui/components/SearchAndFilterPattern/SearchAndFilterPattern.js +120 -0
- package/dist/granular/ui/components/SearchAndFilterPattern/SearchAndFilterPattern.js.map +1 -0
- package/dist/granular/ui/components/SearchInput/SearchInput.js +103 -0
- package/dist/granular/ui/components/SearchInput/SearchInput.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/SideNavbar.js +143 -0
- package/dist/granular/ui/components/SideNavbar/SideNavbar.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/Navbar.js +173 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/Navbar.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarGroup.js +87 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarGroup.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarItem.js +242 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarItem.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarSeparator.js +66 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarSeparator.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarToggle.js +108 -0
- package/dist/granular/ui/components/SideNavbar/components/Navbar/NavbarToggle.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarBackdrop.js +63 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarBackdrop.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarResizeHandle.js +113 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarResizeHandle.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarRoot.js +150 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarRoot.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarToggle.js +197 -0
- package/dist/granular/ui/components/SideNavbar/components/SideNavbarToggle.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/Sidebar.js +108 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/Sidebar.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarContent.js +71 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarContent.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarFooter.js +64 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarFooter.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarGroup.js +141 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarGroup.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarHeader.js +90 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarHeader.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarSlot.js +12 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarSlot.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarSlotContent.js +13 -0
- package/dist/granular/ui/components/SideNavbar/components/Sidebar/SidebarSlotContent.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/contexts/NavbarContext.js +20 -0
- package/dist/granular/ui/components/SideNavbar/contexts/NavbarContext.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarConfigContext.js +37 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarConfigContext.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarStateContext.js +20 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarStateContext.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarThemeContext.js +28 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarThemeContext.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarToggleContext.js +19 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SideNavbarToggleContext.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SidebarContext.js +20 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SidebarContext.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SidebarSlotContext.js +22 -0
- package/dist/granular/ui/components/SideNavbar/contexts/SidebarSlotContext.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useFocusManagement.js +43 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useFocusManagement.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useGroupState.js +59 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useGroupState.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useKeyboardShortcut.js +34 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useKeyboardShortcut.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useResize.js +58 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useResize.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useResponsiveSidebar.js +35 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useResponsiveSidebar.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useSideNavbar.js +21 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useSideNavbar.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useSideNavbarContent.js +19 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useSideNavbarContent.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useSideNavbarNavigation.js +21 -0
- package/dist/granular/ui/components/SideNavbar/hooks/useSideNavbarNavigation.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarConfigProvider.js +61 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarConfigProvider.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarProvider.js +82 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarProvider.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarStateProvider.js +165 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarStateProvider.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarThemeProvider.js +34 -0
- package/dist/granular/ui/components/SideNavbar/providers/SideNavbarThemeProvider.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/providers/SidebarSlotProvider.js +28 -0
- package/dist/granular/ui/components/SideNavbar/providers/SidebarSlotProvider.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/utils/parseKeyboardShortcut.js +60 -0
- package/dist/granular/ui/components/SideNavbar/utils/parseKeyboardShortcut.js.map +1 -0
- package/dist/granular/ui/components/SideNavbar/utils/parseWidth.js +19 -0
- package/dist/granular/ui/components/SideNavbar/utils/parseWidth.js.map +1 -0
- package/dist/granular/ui/components/Stat/Stat.js +84 -0
- package/dist/granular/ui/components/Stat/Stat.js.map +1 -0
- package/dist/granular/ui/components/Stat/StatGroup.js +61 -0
- package/dist/granular/ui/components/Stat/StatGroup.js.map +1 -0
- package/dist/granular/ui/components/Stepper/Stepper.js +248 -0
- package/dist/granular/ui/components/Stepper/Stepper.js.map +1 -0
- package/dist/granular/ui/components/Table/Table.js +162 -0
- package/dist/granular/ui/components/Table/Table.js.map +1 -0
- package/dist/granular/ui/components/Table/TableActions/TableActions.js +67 -0
- package/dist/granular/ui/components/Table/TableActions/TableActions.js.map +1 -0
- package/dist/granular/ui/components/Table/TableActions.js +44 -0
- package/dist/granular/ui/components/Table/TableActions.js.map +1 -0
- package/dist/granular/ui/components/Table/TableBody.js +134 -0
- package/dist/granular/ui/components/Table/TableBody.js.map +1 -0
- package/dist/granular/ui/components/Table/TableCell.js +40 -0
- package/dist/granular/ui/components/Table/TableCell.js.map +1 -0
- package/dist/granular/ui/components/Table/TableContext.js +19 -0
- package/dist/granular/ui/components/Table/TableContext.js.map +1 -0
- package/dist/granular/ui/components/Table/TableEmptyState.js +62 -0
- package/dist/granular/ui/components/Table/TableEmptyState.js.map +1 -0
- package/dist/granular/ui/components/Table/TableFilters/TableFilters.js +189 -0
- package/dist/granular/ui/components/Table/TableFilters/TableFilters.js.map +1 -0
- package/dist/granular/ui/components/Table/TableFilters.js +48 -0
- package/dist/granular/ui/components/Table/TableFilters.js.map +1 -0
- package/dist/granular/ui/components/Table/TableHeader.js +45 -0
- package/dist/granular/ui/components/Table/TableHeader.js.map +1 -0
- package/dist/granular/ui/components/Table/TableHeaderCell.js +117 -0
- package/dist/granular/ui/components/Table/TableHeaderCell.js.map +1 -0
- package/dist/granular/ui/components/Table/TableHeaderRow.js +89 -0
- package/dist/granular/ui/components/Table/TableHeaderRow.js.map +1 -0
- package/dist/granular/ui/components/Table/TablePagination/TablePagination.js +216 -0
- package/dist/granular/ui/components/Table/TablePagination/TablePagination.js.map +1 -0
- package/dist/granular/ui/components/Table/TablePagination.js +56 -0
- package/dist/granular/ui/components/Table/TablePagination.js.map +1 -0
- package/dist/granular/ui/components/Table/TableProvider.js +244 -0
- package/dist/granular/ui/components/Table/TableProvider.js.map +1 -0
- package/dist/granular/ui/components/Table/TableRow.js +95 -0
- package/dist/granular/ui/components/Table/TableRow.js.map +1 -0
- package/dist/granular/ui/components/Table/useColumnResizing.js +71 -0
- package/dist/granular/ui/components/Table/useColumnResizing.js.map +1 -0
- package/dist/granular/ui/components/Table/useVirtualScrolling.js +50 -0
- package/dist/granular/ui/components/Table/useVirtualScrolling.js.map +1 -0
- package/dist/granular/ui/components/Tabs/Tabs.js +39 -0
- package/dist/granular/ui/components/Tabs/Tabs.js.map +1 -0
- package/dist/granular/ui/components/Tabs/TabsContent.js +59 -0
- package/dist/granular/ui/components/Tabs/TabsContent.js.map +1 -0
- package/dist/granular/ui/components/Tabs/TabsContext.js +18 -0
- package/dist/granular/ui/components/Tabs/TabsContext.js.map +1 -0
- package/dist/granular/ui/components/Tabs/TabsList.js +84 -0
- package/dist/granular/ui/components/Tabs/TabsList.js.map +1 -0
- package/dist/granular/ui/components/Tabs/TabsProvider.js +31 -0
- package/dist/granular/ui/components/Tabs/TabsProvider.js.map +1 -0
- package/dist/granular/ui/components/Tabs/TabsTrigger.js +103 -0
- package/dist/granular/ui/components/Tabs/TabsTrigger.js.map +1 -0
- package/dist/granular/ui/components/TimePicker/TimePicker.js +216 -0
- package/dist/granular/ui/components/TimePicker/TimePicker.js.map +1 -0
- package/dist/granular/ui/components/Timeline/Timeline.js +152 -0
- package/dist/granular/ui/components/Timeline/Timeline.js.map +1 -0
- package/dist/granular/ui/components/Toast/Toast.js +159 -0
- package/dist/granular/ui/components/Toast/Toast.js.map +1 -0
- package/dist/granular/ui/components/Toast/ToastContainer.js +41 -0
- package/dist/granular/ui/components/Toast/ToastContainer.js.map +1 -0
- package/dist/granular/ui/components/Toast/useToast.js +64 -0
- package/dist/granular/ui/components/Toast/useToast.js.map +1 -0
- package/dist/granular/ui/hooks/createGenericContext.js +27 -0
- package/dist/granular/ui/hooks/createGenericContext.js.map +1 -0
- package/dist/granular/ui/hooks/focusable.js +14 -0
- package/dist/granular/ui/hooks/focusable.js.map +1 -0
- package/dist/granular/ui/hooks/useAutoFocus.js +23 -0
- package/dist/granular/ui/hooks/useAutoFocus.js.map +1 -0
- package/dist/granular/ui/hooks/useCollapsible.js +37 -0
- package/dist/granular/ui/hooks/useCollapsible.js.map +1 -0
- package/dist/granular/ui/hooks/useFocusRestore.js +20 -0
- package/dist/granular/ui/hooks/useFocusRestore.js.map +1 -0
- package/dist/granular/ui/hooks/useFocusTrap.js +31 -0
- package/dist/granular/ui/hooks/useFocusTrap.js.map +1 -0
- package/dist/granular/ui/hooks/useScrollSpy.js +23 -0
- package/dist/granular/ui/hooks/useScrollSpy.js.map +1 -0
- package/dist/granular/ui/layouts/Container/Container.js +73 -0
- package/dist/granular/ui/layouts/Container/Container.js.map +1 -0
- package/dist/granular/ui/layouts/Stack/Stack.js +79 -0
- package/dist/granular/ui/layouts/Stack/Stack.js.map +1 -0
- package/dist/granular/ui/primitives/Avatar/Avatar.js +122 -0
- package/dist/granular/ui/primitives/Avatar/Avatar.js.map +1 -0
- package/dist/granular/ui/primitives/Avatar/AvatarGroup.js +97 -0
- package/dist/granular/ui/primitives/Avatar/AvatarGroup.js.map +1 -0
- package/dist/granular/ui/primitives/Badge/Badge.js +212 -0
- package/dist/granular/ui/primitives/Badge/Badge.js.map +1 -0
- package/dist/granular/ui/primitives/Button/Button.js +288 -0
- package/dist/granular/ui/primitives/Button/Button.js.map +1 -0
- package/dist/granular/ui/primitives/Checkbox/Checkbox.js +129 -0
- package/dist/granular/ui/primitives/Checkbox/Checkbox.js.map +1 -0
- package/dist/granular/ui/primitives/Chip/Chip.js +206 -0
- package/dist/granular/ui/primitives/Chip/Chip.js.map +1 -0
- package/dist/granular/ui/primitives/Collapsible/Collapsible.js +115 -0
- package/dist/granular/ui/primitives/Collapsible/Collapsible.js.map +1 -0
- package/dist/granular/ui/primitives/ErrorMessage/ErrorMessage.js +54 -0
- package/dist/granular/ui/primitives/ErrorMessage/ErrorMessage.js.map +1 -0
- package/dist/granular/ui/primitives/Info/Info.js +57 -0
- package/dist/granular/ui/primitives/Info/Info.js.map +1 -0
- package/dist/granular/ui/primitives/Input/Input.js +351 -0
- package/dist/granular/ui/primitives/Input/Input.js.map +1 -0
- package/dist/granular/ui/primitives/Label/Label.js +61 -0
- package/dist/granular/ui/primitives/Label/Label.js.map +1 -0
- package/dist/granular/ui/primitives/NavLink/NavLink.js +229 -0
- package/dist/granular/ui/primitives/NavLink/NavLink.js.map +1 -0
- package/dist/granular/ui/primitives/NavLink/hooks/useNavLink.js +15 -0
- package/dist/granular/ui/primitives/NavLink/hooks/useNavLink.js.map +1 -0
- package/dist/granular/ui/primitives/Progress/Progress.js +182 -0
- package/dist/granular/ui/primitives/Progress/Progress.js.map +1 -0
- package/dist/granular/ui/primitives/Radio/Radio.js +118 -0
- package/dist/granular/ui/primitives/Radio/Radio.js.map +1 -0
- package/dist/granular/ui/primitives/Select/Select.js +210 -0
- package/dist/granular/ui/primitives/Select/Select.js.map +1 -0
- package/dist/granular/ui/primitives/Separator/Separator.js +69 -0
- package/dist/granular/ui/primitives/Separator/Separator.js.map +1 -0
- package/dist/granular/ui/primitives/Skeleton/Skeleton.js +87 -0
- package/dist/granular/ui/primitives/Skeleton/Skeleton.js.map +1 -0
- package/dist/granular/ui/primitives/Slider/Slider.js +291 -0
- package/dist/granular/ui/primitives/Slider/Slider.js.map +1 -0
- package/dist/granular/ui/primitives/Spinner/Spinner.js +95 -0
- package/dist/granular/ui/primitives/Spinner/Spinner.js.map +1 -0
- package/dist/granular/ui/primitives/Switch/Switch.js +212 -0
- package/dist/granular/ui/primitives/Switch/Switch.js.map +1 -0
- package/dist/granular/ui/primitives/Text/Text.js +118 -0
- package/dist/granular/ui/primitives/Text/Text.js.map +1 -0
- package/dist/granular/ui/primitives/Textarea/Textarea.js +129 -0
- package/dist/granular/ui/primitives/Textarea/Textarea.js.map +1 -0
- package/dist/granular/ui/primitives/Tooltip/Tooltip.js +227 -0
- package/dist/granular/ui/primitives/Tooltip/Tooltip.js.map +1 -0
- package/dist/granular/ui/providers/AppProvider.js +50 -0
- package/dist/granular/ui/providers/AppProvider.js.map +1 -0
- package/dist/granular/ui/providers/ConfigProvider.js +95 -0
- package/dist/granular/ui/providers/ConfigProvider.js.map +1 -0
- package/dist/granular/ui/providers/DialogContext.js +20 -0
- package/dist/granular/ui/providers/DialogContext.js.map +1 -0
- package/dist/granular/ui/providers/DialogProvider.js +32 -0
- package/dist/granular/ui/providers/DialogProvider.js.map +1 -0
- package/dist/granular/ui/providers/ThemeProvider.js +56 -0
- package/dist/granular/ui/providers/ThemeProvider.js.map +1 -0
- package/dist/granular/ui/providers/ToastContext.js +20 -0
- package/dist/granular/ui/providers/ToastContext.js.map +1 -0
- package/dist/granular/ui/providers/ToastProvider.js +47 -0
- package/dist/granular/ui/providers/ToastProvider.js.map +1 -0
- package/dist/granular/ui/providers/providers-bundle.js +23 -0
- package/dist/granular/ui/providers/providers-bundle.js.map +1 -0
- package/dist/granular/ui/tokens/animations.js +106 -0
- package/dist/granular/ui/tokens/animations.js.map +1 -0
- package/dist/granular/ui/tokens/borders.js +54 -0
- package/dist/granular/ui/tokens/borders.js.map +1 -0
- package/dist/granular/ui/tokens/breakpoints.js +43 -0
- package/dist/granular/ui/tokens/breakpoints.js.map +1 -0
- package/dist/granular/ui/tokens/colors/brand.js +67 -0
- package/dist/granular/ui/tokens/colors/brand.js.map +1 -0
- package/dist/granular/ui/tokens/colors/index.js +25 -0
- package/dist/granular/ui/tokens/colors/index.js.map +1 -0
- package/dist/granular/ui/tokens/colors/primitives.js +320 -0
- package/dist/granular/ui/tokens/colors/primitives.js.map +1 -0
- package/dist/granular/ui/tokens/colors/semantic.js +212 -0
- package/dist/granular/ui/tokens/colors/semantic.js.map +1 -0
- package/dist/granular/ui/tokens/colors/types.js +18 -0
- package/dist/granular/ui/tokens/colors/types.js.map +1 -0
- package/dist/granular/ui/tokens/colors/utils.js +131 -0
- package/dist/granular/ui/tokens/colors/utils.js.map +1 -0
- package/dist/granular/ui/tokens/opacity.js +59 -0
- package/dist/granular/ui/tokens/opacity.js.map +1 -0
- package/dist/granular/ui/tokens/radius.js +76 -0
- package/dist/granular/ui/tokens/radius.js.map +1 -0
- package/dist/granular/ui/tokens/shadows.js +63 -0
- package/dist/granular/ui/tokens/shadows.js.map +1 -0
- package/dist/granular/ui/tokens/sidebar.js +92 -0
- package/dist/granular/ui/tokens/sidebar.js.map +1 -0
- package/dist/granular/ui/tokens/spacing.js +143 -0
- package/dist/granular/ui/tokens/spacing.js.map +1 -0
- package/dist/granular/ui/tokens/switch.js +51 -0
- package/dist/granular/ui/tokens/switch.js.map +1 -0
- package/dist/granular/ui/tokens/typography.js +146 -0
- package/dist/granular/ui/tokens/typography.js.map +1 -0
- package/dist/granular/ui/tokens/z-index.js +79 -0
- package/dist/granular/ui/tokens/z-index.js.map +1 -0
- package/dist/granular/ui/utils/cn.js +10 -0
- package/dist/granular/ui/utils/cn.js.map +1 -0
- package/dist/granular/ui/utils/cva.js +14 -0
- package/dist/granular/ui/utils/cva.js.map +1 -0
- package/dist/granular/ui/utils/mergeRefs.js +11 -0
- package/dist/granular/ui/utils/mergeRefs.js.map +1 -0
- package/dist/granular/vite.svg +1 -0
- package/dist/hooks/index.cjs +2 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.js +23 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.cjs +44 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1900 -1885
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +23 -23
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +863 -1180
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/Accordion/Accordion.d.ts +9 -1
- package/dist/ui/hooks-entry.d.ts +2 -0
- package/dist/ui/utils/tailwind-safelist.d.ts +3 -1
- package/package.json +24 -13
package/dist/server/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
for (var
|
|
19
|
-
a.indexOf(
|
|
20
|
-
return
|
|
1
|
+
var ae = Object.defineProperty, re = Object.defineProperties;
|
|
2
|
+
var se = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var W = Object.getOwnPropertySymbols;
|
|
4
|
+
var U = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var O = (e, a, r) => a in e ? ae(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, f = (e, a) => {
|
|
6
|
+
for (var r in a || (a = {}))
|
|
7
|
+
U.call(a, r) && O(e, r, a[r]);
|
|
8
|
+
if (W)
|
|
9
|
+
for (var r of W(a))
|
|
10
|
+
K.call(a, r) && O(e, r, a[r]);
|
|
11
|
+
return e;
|
|
12
|
+
}, x = (e, a) => re(e, se(a));
|
|
13
|
+
var p = (e, a) => {
|
|
14
|
+
var r = {};
|
|
15
|
+
for (var t in e)
|
|
16
|
+
U.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
|
17
|
+
if (e != null && W)
|
|
18
|
+
for (var t of W(e))
|
|
19
|
+
a.indexOf(t) < 0 && K.call(e, t) && (r[t] = e[t]);
|
|
20
|
+
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { jsx as
|
|
24
|
-
import * as
|
|
25
|
-
import
|
|
26
|
-
import { clsx as
|
|
27
|
-
import { twMerge as
|
|
28
|
-
import { cva as
|
|
29
|
-
import { X as
|
|
30
|
-
class
|
|
22
|
+
var X = (e, a, r) => O(e, typeof a != "symbol" ? a + "" : a, r);
|
|
23
|
+
import { jsx as l, jsxs as $ } from "react/jsx-runtime";
|
|
24
|
+
import * as k from "react";
|
|
25
|
+
import ee, { memo as D, forwardRef as _ } from "react";
|
|
26
|
+
import { clsx as ne } from "clsx";
|
|
27
|
+
import { twMerge as ie } from "tailwind-merge";
|
|
28
|
+
import { cva as le } from "class-variance-authority";
|
|
29
|
+
import { X as oe, AlertCircle as de, Loader2 as ce, CheckCircle2 as q } from "lucide-react";
|
|
30
|
+
class F {
|
|
31
31
|
/**
|
|
32
32
|
* Create a radius token
|
|
33
33
|
*/
|
|
34
34
|
static create(a) {
|
|
35
|
-
const
|
|
35
|
+
const t = {
|
|
36
36
|
none: {
|
|
37
37
|
px: 0,
|
|
38
38
|
tailwind: "rounded-none",
|
|
@@ -75,38 +75,38 @@ class I {
|
|
|
75
75
|
}
|
|
76
76
|
}[a];
|
|
77
77
|
return {
|
|
78
|
-
value:
|
|
79
|
-
rem: `${
|
|
80
|
-
px: `${
|
|
81
|
-
tailwind:
|
|
82
|
-
description:
|
|
78
|
+
value: t.px,
|
|
79
|
+
rem: `${t.px / 16}rem`,
|
|
80
|
+
px: `${t.px}px`,
|
|
81
|
+
tailwind: t.tailwind,
|
|
82
|
+
description: t.description
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
none:
|
|
88
|
-
sm:
|
|
89
|
-
md:
|
|
90
|
-
lg:
|
|
91
|
-
xl:
|
|
92
|
-
"2xl":
|
|
93
|
-
"3xl":
|
|
94
|
-
full:
|
|
86
|
+
const fe = {
|
|
87
|
+
none: F.create("none"),
|
|
88
|
+
sm: F.create("sm"),
|
|
89
|
+
md: F.create("md"),
|
|
90
|
+
lg: F.create("lg"),
|
|
91
|
+
xl: F.create("xl"),
|
|
92
|
+
"2xl": F.create("2xl"),
|
|
93
|
+
"3xl": F.create("3xl"),
|
|
94
|
+
full: F.create("full")
|
|
95
95
|
};
|
|
96
|
-
function
|
|
97
|
-
return
|
|
96
|
+
function C(e) {
|
|
97
|
+
return fe[e].tailwind;
|
|
98
98
|
}
|
|
99
|
-
class
|
|
99
|
+
class w {
|
|
100
100
|
// 4px base
|
|
101
101
|
/**
|
|
102
102
|
* Create a spacing token from scale value
|
|
103
103
|
*/
|
|
104
104
|
static create(a) {
|
|
105
|
-
const
|
|
105
|
+
const r = a * this.BASE_UNIT, t = r / 16;
|
|
106
106
|
return {
|
|
107
|
-
value:
|
|
108
|
-
rem: `${
|
|
109
|
-
px: `${
|
|
107
|
+
value: r,
|
|
108
|
+
rem: `${t}rem`,
|
|
109
|
+
px: `${r}px`,
|
|
110
110
|
tailwind: this.getTailwindClass(a)
|
|
111
111
|
};
|
|
112
112
|
}
|
|
@@ -163,46 +163,46 @@ class N {
|
|
|
163
163
|
}[a] || String(a);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
X(w, "BASE_UNIT", 4);
|
|
167
|
+
const ue = {
|
|
168
168
|
// Micro spacing (0-14px)
|
|
169
|
-
none:
|
|
170
|
-
"0.5":
|
|
169
|
+
none: w.create(0),
|
|
170
|
+
"0.5": w.create(0.5),
|
|
171
171
|
// 2px (half-step)
|
|
172
|
-
xs:
|
|
172
|
+
xs: w.create(1),
|
|
173
173
|
// 4px
|
|
174
|
-
"1.5":
|
|
174
|
+
"1.5": w.create(1.5),
|
|
175
175
|
// 6px (half-step)
|
|
176
|
-
sm:
|
|
176
|
+
sm: w.create(2),
|
|
177
177
|
// 8px
|
|
178
|
-
"2.5":
|
|
178
|
+
"2.5": w.create(2.5),
|
|
179
179
|
// 10px (half-step)
|
|
180
|
-
md:
|
|
180
|
+
md: w.create(3),
|
|
181
181
|
// 12px
|
|
182
|
-
"3.5":
|
|
182
|
+
"3.5": w.create(3.5),
|
|
183
183
|
// 14px (half-step)
|
|
184
184
|
// Standard spacing (16-32px)
|
|
185
|
-
base:
|
|
185
|
+
base: w.create(4),
|
|
186
186
|
// 16px
|
|
187
|
-
lg:
|
|
187
|
+
lg: w.create(6),
|
|
188
188
|
// 24px
|
|
189
|
-
xl:
|
|
189
|
+
xl: w.create(8),
|
|
190
190
|
// 32px
|
|
191
191
|
// Large spacing (40-64px)
|
|
192
|
-
"2xl":
|
|
192
|
+
"2xl": w.create(10),
|
|
193
193
|
// 40px
|
|
194
|
-
"3xl":
|
|
194
|
+
"3xl": w.create(12),
|
|
195
195
|
// 48px
|
|
196
|
-
"4xl":
|
|
196
|
+
"4xl": w.create(16),
|
|
197
197
|
// 64px
|
|
198
198
|
// Extra large spacing (80px+)
|
|
199
|
-
"5xl":
|
|
199
|
+
"5xl": w.create(20),
|
|
200
200
|
// 80px
|
|
201
|
-
"6xl":
|
|
201
|
+
"6xl": w.create(24)
|
|
202
202
|
// 96px
|
|
203
203
|
};
|
|
204
|
-
function
|
|
205
|
-
const
|
|
204
|
+
function i(e, a = "p") {
|
|
205
|
+
const t = ue[e].tailwind;
|
|
206
206
|
return `${{
|
|
207
207
|
p: "p",
|
|
208
208
|
m: "m",
|
|
@@ -223,14 +223,14 @@ function d(t, a = "p") {
|
|
|
223
223
|
"gap-y": "gap-y",
|
|
224
224
|
"space-x": "space-x",
|
|
225
225
|
"space-y": "space-y"
|
|
226
|
-
}[a]}-${
|
|
226
|
+
}[a]}-${t}`;
|
|
227
227
|
}
|
|
228
|
-
class
|
|
228
|
+
class N {
|
|
229
229
|
/**
|
|
230
230
|
* Create font size token
|
|
231
231
|
*/
|
|
232
232
|
static createFontSize(a) {
|
|
233
|
-
const
|
|
233
|
+
const t = {
|
|
234
234
|
"2xs": { px: 10, tailwind: "text-2xs" },
|
|
235
235
|
// micro-text (badge counters, mini chips)
|
|
236
236
|
xs: { px: 12, tailwind: "text-xs" },
|
|
@@ -245,17 +245,17 @@ class k {
|
|
|
245
245
|
"6xl": { px: 60, tailwind: "text-6xl" }
|
|
246
246
|
}[a];
|
|
247
247
|
return {
|
|
248
|
-
value:
|
|
249
|
-
rem: `${
|
|
250
|
-
px: `${
|
|
251
|
-
tailwind:
|
|
248
|
+
value: t.px,
|
|
249
|
+
rem: `${t.px / 16}rem`,
|
|
250
|
+
px: `${t.px}px`,
|
|
251
|
+
tailwind: t.tailwind
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
255
|
* Create line height token
|
|
256
256
|
*/
|
|
257
257
|
static createLineHeight(a) {
|
|
258
|
-
const
|
|
258
|
+
const t = {
|
|
259
259
|
none: { value: 1, tailwind: "leading-none" },
|
|
260
260
|
tight: { value: 1.25, tailwind: "leading-tight" },
|
|
261
261
|
snug: { value: 1.375, tailwind: "leading-snug" },
|
|
@@ -264,15 +264,15 @@ class k {
|
|
|
264
264
|
loose: { value: 2, tailwind: "leading-loose" }
|
|
265
265
|
}[a];
|
|
266
266
|
return {
|
|
267
|
-
value:
|
|
268
|
-
tailwind:
|
|
267
|
+
value: t.value,
|
|
268
|
+
tailwind: t.tailwind
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* Create font weight token
|
|
273
273
|
*/
|
|
274
274
|
static createFontWeight(a) {
|
|
275
|
-
const
|
|
275
|
+
const t = {
|
|
276
276
|
light: { value: 300, tailwind: "font-light" },
|
|
277
277
|
normal: { value: 400, tailwind: "font-normal" },
|
|
278
278
|
medium: { value: 500, tailwind: "font-medium" },
|
|
@@ -280,66 +280,66 @@ class k {
|
|
|
280
280
|
bold: { value: 700, tailwind: "font-bold" }
|
|
281
281
|
}[a];
|
|
282
282
|
return {
|
|
283
|
-
value:
|
|
284
|
-
tailwind:
|
|
283
|
+
value: t.value,
|
|
284
|
+
tailwind: t.tailwind
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
288
|
* Create complete typography token
|
|
289
289
|
*/
|
|
290
|
-
static create(a,
|
|
290
|
+
static create(a, r = "normal", t = "normal") {
|
|
291
291
|
return {
|
|
292
292
|
fontSize: this.createFontSize(a),
|
|
293
|
-
lineHeight: this.createLineHeight(
|
|
294
|
-
fontWeight: this.createFontWeight(
|
|
293
|
+
lineHeight: this.createLineHeight(r),
|
|
294
|
+
fontWeight: this.createFontWeight(t)
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
|
|
299
|
-
const
|
|
298
|
+
N.createFontWeight("light"), N.createFontWeight("normal"), N.createFontWeight("medium"), N.createFontWeight("semibold"), N.createFontWeight("bold");
|
|
299
|
+
const B = {
|
|
300
300
|
// Headings
|
|
301
|
-
h1:
|
|
302
|
-
h2:
|
|
303
|
-
h3:
|
|
304
|
-
h4:
|
|
305
|
-
h5:
|
|
306
|
-
h6:
|
|
301
|
+
h1: N.create("4xl", "tight", "bold"),
|
|
302
|
+
h2: N.create("3xl", "tight", "bold"),
|
|
303
|
+
h3: N.create("2xl", "snug", "semibold"),
|
|
304
|
+
h4: N.create("xl", "snug", "semibold"),
|
|
305
|
+
h5: N.create("lg", "normal", "medium"),
|
|
306
|
+
h6: N.create("base", "normal", "medium"),
|
|
307
307
|
// Body text
|
|
308
|
-
body:
|
|
309
|
-
bodySmall:
|
|
310
|
-
bodyLarge:
|
|
308
|
+
body: N.create("base", "relaxed", "normal"),
|
|
309
|
+
bodySmall: N.create("sm", "relaxed", "normal"),
|
|
310
|
+
bodyLarge: N.create("lg", "relaxed", "normal"),
|
|
311
311
|
// UI elements
|
|
312
|
-
label:
|
|
313
|
-
caption:
|
|
314
|
-
button:
|
|
312
|
+
label: N.create("sm", "normal", "medium"),
|
|
313
|
+
caption: N.create("xs", "normal", "normal"),
|
|
314
|
+
button: N.create("base", "normal", "medium")
|
|
315
315
|
};
|
|
316
|
-
function
|
|
317
|
-
const a =
|
|
316
|
+
function R(e) {
|
|
317
|
+
const a = B[e];
|
|
318
318
|
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
320
|
+
function E(e) {
|
|
321
|
+
return B[e].fontSize.tailwind;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
323
|
+
function j(e) {
|
|
324
|
+
return B[e].fontWeight.tailwind;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
326
|
+
function n(...e) {
|
|
327
|
+
return ie(ne(e));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
const
|
|
331
|
-
return ((
|
|
332
|
-
const s =
|
|
333
|
-
return
|
|
329
|
+
const M = (e, a) => {
|
|
330
|
+
const r = le(e, a);
|
|
331
|
+
return ((t) => {
|
|
332
|
+
const s = r(t);
|
|
333
|
+
return n(s);
|
|
334
334
|
});
|
|
335
|
-
},
|
|
335
|
+
}, pe = M(
|
|
336
336
|
// Base classes
|
|
337
|
-
|
|
337
|
+
n(
|
|
338
338
|
"inline-flex",
|
|
339
339
|
"items-center",
|
|
340
340
|
"justify-center",
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
j("label"),
|
|
342
|
+
C("md"),
|
|
343
343
|
"border"
|
|
344
344
|
),
|
|
345
345
|
{
|
|
@@ -354,20 +354,20 @@ const j = (t, a) => {
|
|
|
354
354
|
secondary: ""
|
|
355
355
|
},
|
|
356
356
|
size: {
|
|
357
|
-
sm:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
357
|
+
sm: n(
|
|
358
|
+
i("1.5", "px"),
|
|
359
|
+
i("0.5", "py"),
|
|
360
|
+
E("caption")
|
|
361
361
|
),
|
|
362
|
-
md:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
362
|
+
md: n(
|
|
363
|
+
i("sm", "px"),
|
|
364
|
+
i("xs", "py"),
|
|
365
|
+
E("caption")
|
|
366
366
|
),
|
|
367
|
-
lg:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
367
|
+
lg: n(
|
|
368
|
+
i("sm", "px"),
|
|
369
|
+
i("xs", "py"),
|
|
370
|
+
E("bodySmall")
|
|
371
371
|
)
|
|
372
372
|
},
|
|
373
373
|
style: {
|
|
@@ -380,32 +380,32 @@ const j = (t, a) => {
|
|
|
380
380
|
{
|
|
381
381
|
variant: "success",
|
|
382
382
|
style: "solid",
|
|
383
|
-
class:
|
|
383
|
+
class: n("bg-success-bg", "text-success-dark", "border-success")
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
variant: "warning",
|
|
387
387
|
style: "solid",
|
|
388
|
-
class:
|
|
388
|
+
class: n("bg-warning-bg", "text-warning-dark", "border-warning")
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
variant: "error",
|
|
392
392
|
style: "solid",
|
|
393
|
-
class:
|
|
393
|
+
class: n("bg-error-bg", "text-error-dark", "border-error")
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
variant: "info",
|
|
397
397
|
style: "solid",
|
|
398
|
-
class:
|
|
398
|
+
class: n("bg-info-bg", "text-info-dark", "border-info")
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
variant: "neutral",
|
|
402
402
|
style: "solid",
|
|
403
|
-
class:
|
|
403
|
+
class: n("bg-surface-muted", "text-fg-primary", "border-line-default")
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
variant: "primary",
|
|
407
407
|
style: "solid",
|
|
408
|
-
class:
|
|
408
|
+
class: n(
|
|
409
409
|
"bg-surface-brand-subtle",
|
|
410
410
|
"text-fg-brand-emphasis",
|
|
411
411
|
"border-line-brand"
|
|
@@ -417,7 +417,7 @@ const j = (t, a) => {
|
|
|
417
417
|
// bg-pink-300: secondary solid badge — no semantic equivalent
|
|
418
418
|
// (would shift 2 shades to bg-surface-secondary). Kept literal until
|
|
419
419
|
// secondary brand surface palette expands beyond DEFAULT.
|
|
420
|
-
class:
|
|
420
|
+
class: n(
|
|
421
421
|
"bg-pink-300",
|
|
422
422
|
"text-fg-brand-secondary-emphasis",
|
|
423
423
|
"border-line-secondary"
|
|
@@ -427,37 +427,37 @@ const j = (t, a) => {
|
|
|
427
427
|
{
|
|
428
428
|
variant: "success",
|
|
429
429
|
style: "outline",
|
|
430
|
-
class:
|
|
430
|
+
class: n("bg-transparent", "border-success", "text-fg-success")
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
variant: "warning",
|
|
434
434
|
style: "outline",
|
|
435
|
-
class:
|
|
435
|
+
class: n("bg-transparent", "border-warning", "text-fg-warning")
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
variant: "error",
|
|
439
439
|
style: "outline",
|
|
440
|
-
class:
|
|
440
|
+
class: n("bg-transparent", "border-error", "text-fg-error")
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
variant: "info",
|
|
444
444
|
style: "outline",
|
|
445
|
-
class:
|
|
445
|
+
class: n("bg-transparent", "border-info", "text-fg-info")
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
448
|
variant: "neutral",
|
|
449
449
|
style: "outline",
|
|
450
|
-
class:
|
|
450
|
+
class: n("bg-transparent", "border-line-default", "text-fg-secondary")
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
453
|
variant: "primary",
|
|
454
454
|
style: "outline",
|
|
455
|
-
class:
|
|
455
|
+
class: n("bg-transparent", "border-line-brand", "text-fg-brand")
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
variant: "secondary",
|
|
459
459
|
style: "outline",
|
|
460
|
-
class:
|
|
460
|
+
class: n(
|
|
461
461
|
"bg-transparent",
|
|
462
462
|
"border-line-secondary",
|
|
463
463
|
"text-fg-brand-secondary"
|
|
@@ -470,16 +470,16 @@ const j = (t, a) => {
|
|
|
470
470
|
style: "solid"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
),
|
|
474
|
-
|
|
475
|
-
var
|
|
473
|
+
), me = D(
|
|
474
|
+
_(function(g, u) {
|
|
475
|
+
var y = g, {
|
|
476
476
|
variant: a = "neutral",
|
|
477
|
-
size:
|
|
478
|
-
style:
|
|
477
|
+
size: r = "md",
|
|
478
|
+
style: t = "solid",
|
|
479
479
|
className: s = "",
|
|
480
|
-
children:
|
|
481
|
-
"aria-label":
|
|
482
|
-
} =
|
|
480
|
+
children: o,
|
|
481
|
+
"aria-label": d
|
|
482
|
+
} = y, c = p(y, [
|
|
483
483
|
"variant",
|
|
484
484
|
"size",
|
|
485
485
|
"style",
|
|
@@ -487,130 +487,148 @@ const j = (t, a) => {
|
|
|
487
487
|
"children",
|
|
488
488
|
"aria-label"
|
|
489
489
|
]);
|
|
490
|
-
const
|
|
491
|
-
let
|
|
492
|
-
if (
|
|
493
|
-
|
|
494
|
-
else if (typeof
|
|
495
|
-
|
|
496
|
-
else if (typeof
|
|
497
|
-
const
|
|
498
|
-
|
|
490
|
+
const b = n(pe({ variant: a, size: r, style: t }), s);
|
|
491
|
+
let m;
|
|
492
|
+
if (d)
|
|
493
|
+
m = d;
|
|
494
|
+
else if (typeof o == "string")
|
|
495
|
+
m = o;
|
|
496
|
+
else if (typeof o == "object" && o !== null && "props" in o) {
|
|
497
|
+
const h = o.props;
|
|
498
|
+
h != null && h.children && typeof h.children == "string" && (m = h.children);
|
|
499
499
|
}
|
|
500
|
-
return /* @__PURE__ */
|
|
500
|
+
return /* @__PURE__ */ l(
|
|
501
501
|
"span",
|
|
502
|
-
|
|
502
|
+
x(f({
|
|
503
503
|
ref: u,
|
|
504
504
|
role: "status",
|
|
505
|
-
"aria-label":
|
|
506
|
-
className:
|
|
507
|
-
},
|
|
508
|
-
children:
|
|
505
|
+
"aria-label": m,
|
|
506
|
+
className: b
|
|
507
|
+
}, c), {
|
|
508
|
+
children: o
|
|
509
509
|
})
|
|
510
510
|
);
|
|
511
511
|
})
|
|
512
512
|
);
|
|
513
|
-
|
|
514
|
-
function
|
|
515
|
-
if (typeof
|
|
516
|
-
return
|
|
517
|
-
|
|
513
|
+
me.displayName = "Badge";
|
|
514
|
+
function G(e, a) {
|
|
515
|
+
if (typeof e == "function")
|
|
516
|
+
return e(a);
|
|
517
|
+
e != null && (e.current = a);
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function ge(...e) {
|
|
520
520
|
return (a) => {
|
|
521
|
-
let
|
|
522
|
-
const
|
|
523
|
-
const
|
|
524
|
-
return !
|
|
521
|
+
let r = !1;
|
|
522
|
+
const t = e.map((s) => {
|
|
523
|
+
const o = G(s, a);
|
|
524
|
+
return !r && typeof o == "function" && (r = !0), o;
|
|
525
525
|
});
|
|
526
|
-
if (
|
|
526
|
+
if (r)
|
|
527
527
|
return () => {
|
|
528
|
-
for (let s = 0; s <
|
|
529
|
-
const
|
|
530
|
-
typeof
|
|
528
|
+
for (let s = 0; s < t.length; s++) {
|
|
529
|
+
const o = t[s];
|
|
530
|
+
typeof o == "function" ? o() : G(e[s], null);
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
return typeof t == "object" && t !== null && "then" in t;
|
|
538
|
-
}
|
|
539
|
-
function le(t) {
|
|
540
|
-
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === ke && "_payload" in t && $e(t._payload);
|
|
535
|
+
function xe(...e) {
|
|
536
|
+
return k.useCallback(ge(...e), e);
|
|
541
537
|
}
|
|
542
538
|
// @__NO_SIDE_EFFECTS__
|
|
543
|
-
function
|
|
544
|
-
const a =
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
539
|
+
function be(e) {
|
|
540
|
+
const a = k.forwardRef((r, t) => {
|
|
541
|
+
var h;
|
|
542
|
+
let m = r, { children: s } = m, o = p(m, ["children"]), d = null, c = !1;
|
|
543
|
+
const u = [];
|
|
544
|
+
Y(s) && typeof H == "function" && (s = H(s._payload)), k.Children.forEach(s, (v) => {
|
|
545
|
+
var S;
|
|
546
|
+
if ($e(v)) {
|
|
547
|
+
c = !0;
|
|
548
|
+
const A = v;
|
|
549
|
+
let L = "child" in A.props ? A.props.child : A.props.children;
|
|
550
|
+
Y(L) && typeof H == "function" && (L = H(L._payload)), d = ve(A, L), u.push((S = d == null ? void 0 : d.props) == null ? void 0 : S.children);
|
|
551
|
+
} else
|
|
552
|
+
u.push(v);
|
|
553
|
+
}), d ? d = k.cloneElement(d, void 0, u) : (
|
|
554
|
+
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
555
|
+
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
556
|
+
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
557
|
+
// itself as the slot target — throw a descriptive error below instead.
|
|
558
|
+
!c && k.Children.count(s) === 1 && k.isValidElement(s) && (d = s)
|
|
559
|
+
);
|
|
560
|
+
const g = d ? Ne(d) : void 0, y = xe(t, g);
|
|
561
|
+
if (!d) {
|
|
562
|
+
if (s || s === 0)
|
|
563
|
+
throw new Error(
|
|
564
|
+
c ? Ee(e) : ke(e)
|
|
565
|
+
);
|
|
566
|
+
return s;
|
|
551
567
|
}
|
|
552
|
-
|
|
568
|
+
const b = we(o, (h = d.props) != null ? h : {});
|
|
569
|
+
return d.type !== k.Fragment && (b.ref = t ? y : g), k.cloneElement(d, b);
|
|
553
570
|
});
|
|
554
|
-
return
|
|
571
|
+
return a.displayName = `${e}.Slot`, a;
|
|
555
572
|
}
|
|
556
|
-
var
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
573
|
+
var he = /* @__PURE__ */ be("Slot"), ye = /* @__PURE__ */ Symbol.for("radix.slottable"), ve = (e, a) => {
|
|
574
|
+
if ("child" in e.props) {
|
|
575
|
+
const r = e.props.child;
|
|
576
|
+
return k.isValidElement(r) ? k.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
|
|
577
|
+
}
|
|
578
|
+
return k.isValidElement(a) ? a : null;
|
|
579
|
+
};
|
|
580
|
+
function we(e, a) {
|
|
581
|
+
const r = f({}, a);
|
|
582
|
+
for (const t in a) {
|
|
583
|
+
const s = e[t], o = a[t];
|
|
584
|
+
/^on[A-Z]/.test(t) ? s && o ? r[t] = (...c) => {
|
|
585
|
+
const u = o(...c);
|
|
586
|
+
return s(...c), u;
|
|
587
|
+
} : s && (r[t] = s) : t === "style" ? r[t] = f(f({}, s), o) : t === "className" && (r[t] = [s, o].filter(Boolean).join(" "));
|
|
588
|
+
}
|
|
589
|
+
return f(f({}, e), r);
|
|
568
590
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
591
|
+
function Ne(e) {
|
|
592
|
+
var t, s;
|
|
593
|
+
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = a && "isReactWarning" in a && a.isReactWarning;
|
|
594
|
+
return r ? e.ref : (a = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, r = a && "isReactWarning" in a && a.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
572
595
|
}
|
|
573
|
-
function
|
|
574
|
-
|
|
575
|
-
for (const r in a) {
|
|
576
|
-
const s = t[r], i = a[r];
|
|
577
|
-
/^on[A-Z]/.test(r) ? s && i ? n[r] = (...f) => {
|
|
578
|
-
const u = i(...f);
|
|
579
|
-
return s(...f), u;
|
|
580
|
-
} : s && (n[r] = s) : r === "style" ? n[r] = p(p({}, s), i) : r === "className" && (n[r] = [s, i].filter(Boolean).join(" "));
|
|
581
|
-
}
|
|
582
|
-
return p(p({}, t), n);
|
|
596
|
+
function $e(e) {
|
|
597
|
+
return k.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ye;
|
|
583
598
|
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
return n ? t.ref : (a = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
599
|
+
var Se = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
600
|
+
function Y(e) {
|
|
601
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Se && "_payload" in e && Ce(e._payload);
|
|
588
602
|
}
|
|
589
|
-
|
|
603
|
+
function Ce(e) {
|
|
604
|
+
return typeof e == "object" && e !== null && "then" in e;
|
|
605
|
+
}
|
|
606
|
+
var ke = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, Ee = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, H = k[" use ".trim().toString()];
|
|
607
|
+
const Z = M(
|
|
590
608
|
// Base classes
|
|
591
|
-
|
|
609
|
+
n(
|
|
592
610
|
"inline-flex",
|
|
593
611
|
"items-center",
|
|
594
612
|
"font-medium",
|
|
595
|
-
|
|
596
|
-
|
|
613
|
+
C("full"),
|
|
614
|
+
i("xs", "gap")
|
|
597
615
|
),
|
|
598
616
|
{
|
|
599
617
|
variants: {
|
|
600
618
|
variant: {
|
|
601
|
-
default:
|
|
619
|
+
default: n(
|
|
602
620
|
"bg-surface-muted",
|
|
603
621
|
"text-fg-primary",
|
|
604
622
|
"border",
|
|
605
623
|
"border-line-default"
|
|
606
624
|
),
|
|
607
|
-
outlined:
|
|
625
|
+
outlined: n(
|
|
608
626
|
"bg-transparent",
|
|
609
627
|
"text-fg-primary",
|
|
610
628
|
"border",
|
|
611
629
|
"border-line-default"
|
|
612
630
|
),
|
|
613
|
-
filled:
|
|
631
|
+
filled: n(
|
|
614
632
|
"bg-surface-brand-strong",
|
|
615
633
|
"text-fg-inverse",
|
|
616
634
|
"border",
|
|
@@ -618,24 +636,24 @@ const re = j(
|
|
|
618
636
|
)
|
|
619
637
|
},
|
|
620
638
|
size: {
|
|
621
|
-
sm:
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
639
|
+
sm: n(
|
|
640
|
+
i("xs", "px"),
|
|
641
|
+
i("xs", "py"),
|
|
642
|
+
E("caption")
|
|
625
643
|
),
|
|
626
|
-
md:
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
644
|
+
md: n(
|
|
645
|
+
i("sm", "px"),
|
|
646
|
+
i("xs", "py"),
|
|
647
|
+
E("bodySmall")
|
|
630
648
|
),
|
|
631
|
-
lg:
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
649
|
+
lg: n(
|
|
650
|
+
i("md", "px"),
|
|
651
|
+
i("sm", "py"),
|
|
652
|
+
E("body")
|
|
635
653
|
)
|
|
636
654
|
},
|
|
637
655
|
selected: {
|
|
638
|
-
true:
|
|
656
|
+
true: n(
|
|
639
657
|
"bg-surface-brand-strong",
|
|
640
658
|
"text-fg-inverse",
|
|
641
659
|
"border",
|
|
@@ -675,70 +693,70 @@ const re = j(
|
|
|
675
693
|
disabled: !1
|
|
676
694
|
}
|
|
677
695
|
}
|
|
678
|
-
),
|
|
696
|
+
), Te = _(function(a, r) {
|
|
679
697
|
const {
|
|
680
|
-
children:
|
|
698
|
+
children: t,
|
|
681
699
|
variant: s = "default",
|
|
682
|
-
size:
|
|
683
|
-
selected:
|
|
684
|
-
disabled:
|
|
700
|
+
size: o = "md",
|
|
701
|
+
selected: d = !1,
|
|
702
|
+
disabled: c = !1,
|
|
685
703
|
className: u = "",
|
|
686
|
-
"aria-label":
|
|
687
|
-
tabIndex:
|
|
688
|
-
asChild:
|
|
689
|
-
} = a,
|
|
690
|
-
if (
|
|
691
|
-
if (typeof
|
|
692
|
-
if (typeof
|
|
693
|
-
const
|
|
694
|
-
if (
|
|
695
|
-
return
|
|
704
|
+
"aria-label": g,
|
|
705
|
+
tabIndex: y,
|
|
706
|
+
asChild: b = !1
|
|
707
|
+
} = a, h = (() => {
|
|
708
|
+
if (g) return g;
|
|
709
|
+
if (typeof t == "string") return t;
|
|
710
|
+
if (typeof t == "object" && t !== null && "props" in t) {
|
|
711
|
+
const T = t.props;
|
|
712
|
+
if (T != null && T.children && typeof T.children == "string")
|
|
713
|
+
return T.children;
|
|
696
714
|
}
|
|
697
715
|
})();
|
|
698
|
-
if (
|
|
699
|
-
return /* @__PURE__ */
|
|
700
|
-
|
|
716
|
+
if (b)
|
|
717
|
+
return /* @__PURE__ */ l(
|
|
718
|
+
he,
|
|
701
719
|
{
|
|
702
|
-
ref:
|
|
703
|
-
className:
|
|
704
|
-
|
|
720
|
+
ref: r,
|
|
721
|
+
className: n(
|
|
722
|
+
Z({ variant: s, size: o, selected: d, disabled: c }),
|
|
705
723
|
u
|
|
706
724
|
),
|
|
707
|
-
"aria-label":
|
|
708
|
-
"aria-disabled":
|
|
709
|
-
tabIndex:
|
|
710
|
-
children:
|
|
725
|
+
"aria-label": g,
|
|
726
|
+
"aria-disabled": c || void 0,
|
|
727
|
+
tabIndex: y,
|
|
728
|
+
children: t
|
|
711
729
|
}
|
|
712
730
|
);
|
|
713
|
-
const { onRemove:
|
|
714
|
-
|
|
731
|
+
const { onRemove: v, onClick: S } = a, A = S !== void 0, L = A && !c, V = (T) => {
|
|
732
|
+
c || (T.key === "Enter" || T.key === " ") && (T.preventDefault(), S == null || S());
|
|
715
733
|
};
|
|
716
734
|
return /* @__PURE__ */ $(
|
|
717
735
|
"div",
|
|
718
736
|
{
|
|
719
|
-
ref:
|
|
720
|
-
className:
|
|
721
|
-
|
|
722
|
-
|
|
737
|
+
ref: r,
|
|
738
|
+
className: n(
|
|
739
|
+
Z({ variant: s, size: o, selected: d, disabled: c }),
|
|
740
|
+
v && i("xs", "pr"),
|
|
723
741
|
u
|
|
724
742
|
),
|
|
725
|
-
"aria-disabled":
|
|
743
|
+
"aria-disabled": c,
|
|
726
744
|
children: [
|
|
727
|
-
|
|
745
|
+
A ? /* @__PURE__ */ l(
|
|
728
746
|
"button",
|
|
729
747
|
{
|
|
730
748
|
type: "button",
|
|
731
|
-
onClick:
|
|
732
|
-
onKeyDown:
|
|
733
|
-
disabled:
|
|
734
|
-
"aria-pressed":
|
|
735
|
-
"aria-label":
|
|
736
|
-
tabIndex:
|
|
737
|
-
className:
|
|
749
|
+
onClick: c ? void 0 : S,
|
|
750
|
+
onKeyDown: V,
|
|
751
|
+
disabled: c,
|
|
752
|
+
"aria-pressed": d ? !0 : void 0,
|
|
753
|
+
"aria-label": g || h,
|
|
754
|
+
tabIndex: y !== void 0 ? y : L ? 0 : void 0,
|
|
755
|
+
className: n(
|
|
738
756
|
"flex-1",
|
|
739
757
|
"bg-transparent",
|
|
740
758
|
"border-0",
|
|
741
|
-
|
|
759
|
+
i("none", "p"),
|
|
742
760
|
"text-inherit",
|
|
743
761
|
"text-left",
|
|
744
762
|
"cursor-pointer",
|
|
@@ -746,213 +764,120 @@ const re = j(
|
|
|
746
764
|
"focus:ring-2",
|
|
747
765
|
"focus:ring-line-focus",
|
|
748
766
|
"focus:ring-offset-2",
|
|
749
|
-
|
|
767
|
+
C("full")
|
|
750
768
|
),
|
|
751
|
-
children:
|
|
769
|
+
children: t
|
|
752
770
|
}
|
|
753
|
-
) : /* @__PURE__ */
|
|
754
|
-
|
|
771
|
+
) : /* @__PURE__ */ l("span", { children: t }),
|
|
772
|
+
v && !c && /* @__PURE__ */ l(
|
|
755
773
|
"button",
|
|
756
774
|
{
|
|
757
775
|
type: "button",
|
|
758
|
-
onClick: (
|
|
759
|
-
|
|
776
|
+
onClick: (T) => {
|
|
777
|
+
T.stopPropagation(), v();
|
|
760
778
|
},
|
|
761
|
-
className:
|
|
762
|
-
|
|
779
|
+
className: n(
|
|
780
|
+
i("xs", "ml"),
|
|
763
781
|
"hover:bg-tint-hover",
|
|
764
|
-
|
|
765
|
-
|
|
782
|
+
C("full"),
|
|
783
|
+
i("xs", "p"),
|
|
766
784
|
"transition-colors",
|
|
767
785
|
"focus:outline-none",
|
|
768
786
|
"focus:ring-2",
|
|
769
787
|
"focus:ring-line-focus",
|
|
770
788
|
"focus:ring-offset-1"
|
|
771
789
|
),
|
|
772
|
-
"aria-label": `Remove ${
|
|
773
|
-
children: /* @__PURE__ */
|
|
790
|
+
"aria-label": `Remove ${h || "chip"}`,
|
|
791
|
+
children: /* @__PURE__ */ l(oe, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
774
792
|
}
|
|
775
793
|
)
|
|
776
794
|
]
|
|
777
795
|
}
|
|
778
796
|
);
|
|
779
797
|
});
|
|
780
|
-
|
|
781
|
-
function
|
|
782
|
-
var
|
|
783
|
-
message:
|
|
798
|
+
Te.displayName = "Chip";
|
|
799
|
+
function dt(s) {
|
|
800
|
+
var o = s, {
|
|
801
|
+
message: e,
|
|
784
802
|
id: a,
|
|
785
|
-
className:
|
|
786
|
-
} =
|
|
803
|
+
className: r = ""
|
|
804
|
+
} = o, t = p(o, [
|
|
787
805
|
"message",
|
|
788
806
|
"id",
|
|
789
807
|
"className"
|
|
790
808
|
]);
|
|
791
|
-
const
|
|
792
|
-
|
|
793
|
-
|
|
809
|
+
const d = [
|
|
810
|
+
i("xs", "mt"),
|
|
811
|
+
E("bodySmall"),
|
|
794
812
|
"text-fg-error",
|
|
795
813
|
"flex",
|
|
796
814
|
"items-center",
|
|
797
|
-
|
|
798
|
-
],
|
|
799
|
-
return /* @__PURE__ */ $("div",
|
|
800
|
-
/* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
815
|
+
i("xs", "gap")
|
|
816
|
+
], c = n(...d, r);
|
|
817
|
+
return /* @__PURE__ */ $("div", x(f({ role: "alert", id: a, className: c, "aria-live": "polite" }, t), { children: [
|
|
818
|
+
/* @__PURE__ */ l(de, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
819
|
+
/* @__PURE__ */ l("span", { children: e })
|
|
802
820
|
] }));
|
|
803
821
|
}
|
|
804
|
-
function
|
|
805
|
-
var s =
|
|
806
|
-
variant:
|
|
822
|
+
function ct(t) {
|
|
823
|
+
var s = t, {
|
|
824
|
+
variant: e = "info",
|
|
807
825
|
className: a
|
|
808
|
-
} = s,
|
|
826
|
+
} = s, r = p(s, [
|
|
809
827
|
"variant",
|
|
810
828
|
"className"
|
|
811
829
|
]);
|
|
812
|
-
const
|
|
813
|
-
warning:
|
|
814
|
-
error:
|
|
815
|
-
info:
|
|
830
|
+
const o = {
|
|
831
|
+
warning: n("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
832
|
+
error: n("bg-error-bg", "text-error-dark", "border-error"),
|
|
833
|
+
info: n("bg-info-bg", "text-info-dark", "border-info")
|
|
816
834
|
};
|
|
817
|
-
return /* @__PURE__ */
|
|
835
|
+
return /* @__PURE__ */ l(
|
|
818
836
|
"div",
|
|
819
|
-
|
|
837
|
+
f({
|
|
820
838
|
role: "alert",
|
|
821
|
-
className:
|
|
839
|
+
className: n(
|
|
822
840
|
"border",
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
841
|
+
i("base", "px"),
|
|
842
|
+
i("sm", "py"),
|
|
843
|
+
C("lg"),
|
|
844
|
+
o[e],
|
|
827
845
|
a
|
|
828
846
|
)
|
|
829
|
-
},
|
|
847
|
+
}, r)
|
|
830
848
|
);
|
|
831
849
|
}
|
|
832
|
-
const
|
|
850
|
+
const Le = n(
|
|
833
851
|
"block",
|
|
834
|
-
|
|
835
|
-
|
|
852
|
+
E("label"),
|
|
853
|
+
j("label"),
|
|
836
854
|
"text-fg-primary"
|
|
837
|
-
),
|
|
855
|
+
), Ae = {
|
|
838
856
|
default: "",
|
|
839
|
-
required:
|
|
857
|
+
required: n(
|
|
840
858
|
"after:content-['*']",
|
|
841
|
-
`after:${
|
|
859
|
+
`after:${i("0.5", "ml")}`,
|
|
842
860
|
"after:text-fg-error"
|
|
843
861
|
),
|
|
844
|
-
optional:
|
|
862
|
+
optional: n(
|
|
845
863
|
"after:content-['(optional)']",
|
|
846
|
-
`after:${
|
|
864
|
+
`after:${i("xs", "ml")}`,
|
|
847
865
|
"after:text-fg-tertiary",
|
|
848
866
|
"after:font-normal"
|
|
849
867
|
)
|
|
850
|
-
},
|
|
851
|
-
|
|
852
|
-
var
|
|
853
|
-
const u =
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
868
|
+
}, Fe = D(
|
|
869
|
+
_(function(d, o) {
|
|
870
|
+
var c = d, { variant: a = "default", className: r = "", children: t } = c, s = p(c, ["variant", "className", "children"]);
|
|
871
|
+
const u = n(
|
|
872
|
+
Le,
|
|
873
|
+
Ae[a],
|
|
874
|
+
r
|
|
857
875
|
);
|
|
858
|
-
return /* @__PURE__ */
|
|
876
|
+
return /* @__PURE__ */ l("label", x(f({ ref: o, className: u }, s), { children: t }));
|
|
859
877
|
})
|
|
860
878
|
);
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
const r = Ve(t), s = We(t);
|
|
864
|
-
return {
|
|
865
|
-
hex: t,
|
|
866
|
-
rgb: r,
|
|
867
|
-
hsl: s,
|
|
868
|
-
cssVar: `var(--color-${a}-${n})`,
|
|
869
|
-
tailwind: `${a}-${n}`
|
|
870
|
-
};
|
|
871
|
-
}
|
|
872
|
-
function Ve(t) {
|
|
873
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
874
|
-
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
875
|
-
}
|
|
876
|
-
function We(t) {
|
|
877
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
878
|
-
if (!a) return "0, 0%, 0%";
|
|
879
|
-
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, s = parseInt(a[3], 16) / 255, i = Math.max(n, r, s), c = Math.min(n, r, s);
|
|
880
|
-
let f = 0, u = 0;
|
|
881
|
-
const b = (i + c) / 2;
|
|
882
|
-
if (i !== c) {
|
|
883
|
-
const m = i - c;
|
|
884
|
-
switch (u = b > 0.5 ? m / (2 - i - c) : m / (i + c), i) {
|
|
885
|
-
case n:
|
|
886
|
-
f = ((r - s) / m + (r < s ? 6 : 0)) / 6;
|
|
887
|
-
break;
|
|
888
|
-
case r:
|
|
889
|
-
f = ((s - n) / m + 2) / 6;
|
|
890
|
-
break;
|
|
891
|
-
case s:
|
|
892
|
-
f = ((n - r) / m + 4) / 6;
|
|
893
|
-
break;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
return `${Math.round(f * 360)}, ${Math.round(u * 100)}%, ${Math.round(b * 100)}%`;
|
|
897
|
-
}
|
|
898
|
-
w("#f0f4f8", "brand-primary", 50), w("#d9e2ec", "brand-primary", 100), w("#bcccdc", "brand-primary", 200), w("#9fb3c8", "brand-primary", 300), w("#7390ad", "brand-primary", 400), w("#486581", "brand-primary", 500), w("#334e68", "brand-primary", 600), w("#243b53", "brand-primary", 700), w("#1a2a3a", "brand-primary", 800), w("#102a43", "brand-primary", 900), w("#061a35", "brand-primary", 950);
|
|
899
|
-
w("#f7f5ff", "brand-secondary", 50), w("#eee9ff", "brand-secondary", 100), w("#e0d6ff", "brand-secondary", 200), w("#cbb8ff", "brand-secondary", 300), w("#aa89fc", "brand-secondary", 400), w("#8e58f2", "brand-secondary", 500), w("#703bc8", "brand-secondary", 600), w("#582aa2", "brand-secondary", 700), w("#44227e", "brand-secondary", 800), w("#32185d", "brand-secondary", 900), w("#180635", "brand-secondary", 950);
|
|
900
|
-
function e(t, a, n) {
|
|
901
|
-
const r = je(t), s = Re(t);
|
|
902
|
-
return {
|
|
903
|
-
hex: t,
|
|
904
|
-
rgb: r,
|
|
905
|
-
hsl: s,
|
|
906
|
-
cssVar: `var(--color-${a}-${n})`,
|
|
907
|
-
tailwind: `${a}-${n}`
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
function je(t) {
|
|
911
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
912
|
-
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
913
|
-
}
|
|
914
|
-
function Re(t) {
|
|
915
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
916
|
-
if (!a) return "0, 0%, 0%";
|
|
917
|
-
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, s = parseInt(a[3], 16) / 255, i = Math.max(n, r, s), c = Math.min(n, r, s);
|
|
918
|
-
let f = 0, u = 0;
|
|
919
|
-
const b = (i + c) / 2;
|
|
920
|
-
if (i !== c) {
|
|
921
|
-
const m = i - c;
|
|
922
|
-
switch (u = b > 0.5 ? m / (2 - i - c) : m / (i + c), i) {
|
|
923
|
-
case n:
|
|
924
|
-
f = ((r - s) / m + (r < s ? 6 : 0)) / 6;
|
|
925
|
-
break;
|
|
926
|
-
case r:
|
|
927
|
-
f = ((s - n) / m + 2) / 6;
|
|
928
|
-
break;
|
|
929
|
-
case s:
|
|
930
|
-
f = ((n - r) / m + 4) / 6;
|
|
931
|
-
break;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
return `${Math.round(f * 360)}, ${Math.round(u * 100)}%, ${Math.round(b * 100)}%`;
|
|
935
|
-
}
|
|
936
|
-
e("#eef2ff", "indigo", 50), e("#e0e7ff", "indigo", 100), e("#c7d2fe", "indigo", 200), e("#a5b4fc", "indigo", 300), e("#818cf8", "indigo", 400), e("#6366f1", "indigo", 500), e("#4f46e5", "indigo", 600), e("#4338ca", "indigo", 700), e("#3730a3", "indigo", 800), e("#312e81", "indigo", 900), e("#1e1b4b", "indigo", 950);
|
|
937
|
-
e("#f5f3ff", "violet", 50), e("#ede9fe", "violet", 100), e("#ddd6fe", "violet", 200), e("#c4b5fd", "violet", 300), e("#a78bfa", "violet", 400), e("#8b5cf6", "violet", 500), e("#7c3aed", "violet", 600), e("#6d28d9", "violet", 700), e("#5b21b6", "violet", 800), e("#4c1d95", "violet", 900), e("#2e1065", "violet", 950);
|
|
938
|
-
e("#ecfeff", "cyan", 50), e("#cffafe", "cyan", 100), e("#a5f3fc", "cyan", 200), e("#67e8f9", "cyan", 300), e("#22d3ee", "cyan", 400), e("#06b6d4", "cyan", 500), e("#0891b2", "cyan", 600), e("#0e7490", "cyan", 700), e("#155e75", "cyan", 800), e("#164e63", "cyan", 900), e("#083344", "cyan", 950);
|
|
939
|
-
e("#f8fafc", "slate", 50), e("#f1f5f9", "slate", 100), e("#e2e8f0", "slate", 200), e("#cbd5e1", "slate", 300), e("#94a3b8", "slate", 400), e("#64748b", "slate", 500), e("#475569", "slate", 600), e("#334155", "slate", 700), e("#1e293b", "slate", 800), e("#0f172a", "slate", 900), e("#020617", "slate", 950);
|
|
940
|
-
e("#f9fafb", "gray", 50), e("#f3f4f6", "gray", 100), e("#e5e7eb", "gray", 200), e("#d1d5db", "gray", 300), e("#9ca3af", "gray", 400), e("#6b7280", "gray", 500), e("#4b5563", "gray", 600), e("#374151", "gray", 700), e("#1f2937", "gray", 800), e("#111827", "gray", 900), e("#030712", "gray", 950);
|
|
941
|
-
e("#ecfdf5", "emerald", 50), e("#d1fae5", "emerald", 100), e("#a7f3d0", "emerald", 200), e("#6ee7b7", "emerald", 300), e("#34d399", "emerald", 400), e("#10b981", "emerald", 500), e("#059669", "emerald", 600), e("#047857", "emerald", 700), e("#065f46", "emerald", 800), e("#064e3b", "emerald", 900), e("#022c22", "emerald", 950);
|
|
942
|
-
e("#f0fdf4", "green", 50), e("#dcfce7", "green", 100), e("#bbf7d0", "green", 200), e("#86efac", "green", 300), e("#4ade80", "green", 400), e("#22c55e", "green", 500), e("#16a34a", "green", 600), e("#15803d", "green", 700), e("#166534", "green", 800), e("#14532d", "green", 900), e("#052e16", "green", 950);
|
|
943
|
-
e("#fffbeb", "amber", 50), e("#fef3c7", "amber", 100), e("#fde68a", "amber", 200), e("#fcd34d", "amber", 300), e("#fbbf24", "amber", 400), e("#f59e0b", "amber", 500), e("#d97706", "amber", 600), e("#b45309", "amber", 700), e("#92400e", "amber", 800), e("#78350f", "amber", 900), e("#451a03", "amber", 950);
|
|
944
|
-
e("#fefce8", "yellow", 50), e("#fef9c3", "yellow", 100), e("#fef08a", "yellow", 200), e("#fde047", "yellow", 300), e("#facc15", "yellow", 400), e("#eab308", "yellow", 500), e("#ca8a04", "yellow", 600), e("#a16207", "yellow", 700), e("#854d0e", "yellow", 800), e("#713f12", "yellow", 900), e("#422006", "yellow", 950);
|
|
945
|
-
e("#fff7ed", "orange", 50), e("#ffedd5", "orange", 100), e("#fed7aa", "orange", 200), e("#fdba74", "orange", 300), e("#fb923c", "orange", 400), e("#f97316", "orange", 500), e("#ea580c", "orange", 600), e("#c2410c", "orange", 700), e("#9a3412", "orange", 800), e("#7c2d12", "orange", 900), e("#431407", "orange", 950);
|
|
946
|
-
e("#fff1f2", "rose", 50), e("#ffe4e6", "rose", 100), e("#fecdd3", "rose", 200), e("#fda4af", "rose", 300), e("#fb7185", "rose", 400), e("#f43f5e", "rose", 500), e("#e11d48", "rose", 600), e("#be123c", "rose", 700), e("#9f1239", "rose", 800), e("#881337", "rose", 900), e("#4c0519", "rose", 950);
|
|
947
|
-
e("#fef2f2", "red", 50), e("#fee2e2", "red", 100), e("#fecaca", "red", 200), e("#fca5a5", "red", 300), e("#f87171", "red", 400), e("#ef4444", "red", 500), e("#dc2626", "red", 600), e("#b91c1c", "red", 700), e("#991b1b", "red", 800), e("#7f1d1d", "red", 900), e("#450a0a", "red", 950);
|
|
948
|
-
e("#f0f9ff", "sky", 50), e("#e0f2fe", "sky", 100), e("#bae6fd", "sky", 200), e("#7dd3fc", "sky", 300), e("#38bdf8", "sky", 400), e("#0ea5e9", "sky", 500), e("#0284c7", "sky", 600), e("#0369a1", "sky", 700), e("#075985", "sky", 800), e("#0c4a6e", "sky", 900), e("#082f49", "sky", 950);
|
|
949
|
-
e("#eff6ff", "blue", 50), e("#dbeafe", "blue", 100), e("#bfdbfe", "blue", 200), e("#93c5fd", "blue", 300), e("#60a5fa", "blue", 400), e("#3b82f6", "blue", 500), e("#2563eb", "blue", 600), e("#1d4ed8", "blue", 700), e("#1e40af", "blue", 800), e("#1e3a8a", "blue", 900), e("#172554", "blue", 950);
|
|
950
|
-
e("#fdf4ff", "fuchsia", 50), e("#fae8ff", "fuchsia", 100), e("#f5d0fe", "fuchsia", 200), e("#f0abfc", "fuchsia", 300), e("#e879f9", "fuchsia", 400), e("#d946ef", "fuchsia", 500), e("#c026d3", "fuchsia", 600), e("#a21caf", "fuchsia", 700), e("#86198f", "fuchsia", 800), e("#701a75", "fuchsia", 900), e("#4a044e", "fuchsia", 950);
|
|
951
|
-
e("#fdf2f8", "pink", 50), e("#fce7f3", "pink", 100), e("#fbcfe8", "pink", 200), e("#f9a8d4", "pink", 300), e("#f472b6", "pink", 400), e("#ec4899", "pink", 500), e("#db2777", "pink", 600), e("#be185d", "pink", 700), e("#9d174d", "pink", 800), e("#831843", "pink", 900), e("#500724", "pink", 950);
|
|
952
|
-
e("#faf5ff", "purple", 50), e("#f3e8ff", "purple", 100), e("#e9d5ff", "purple", 200), e("#d8b4fe", "purple", 300), e("#c084fc", "purple", 400), e("#a855f7", "purple", 500), e("#9333ea", "purple", 600), e("#7e22ce", "purple", 700), e("#6b21a8", "purple", 800), e("#581c87", "purple", 900), e("#3b0764", "purple", 950);
|
|
953
|
-
e("#f0fdfa", "teal", 50), e("#ccfbf1", "teal", 100), e("#99f6e4", "teal", 200), e("#5eead4", "teal", 300), e("#2dd4bf", "teal", 400), e("#14b8a6", "teal", 500), e("#0d9488", "teal", 600), e("#0f766e", "teal", 700), e("#115e59", "teal", 800), e("#134e4a", "teal", 900), e("#042f2e", "teal", 950);
|
|
954
|
-
e("#f7fee7", "lime", 50), e("#ecfccb", "lime", 100), e("#d9f99d", "lime", 200), e("#bef264", "lime", 300), e("#a3e635", "lime", 400), e("#84cc16", "lime", 500), e("#65a30d", "lime", 600), e("#4d7c0f", "lime", 700), e("#3f6212", "lime", 800), e("#365314", "lime", 900), e("#1a2e05", "lime", 950);
|
|
955
|
-
class W {
|
|
879
|
+
Fe.displayName = "Label";
|
|
880
|
+
class z {
|
|
956
881
|
/**
|
|
957
882
|
* Create a shadow token
|
|
958
883
|
*/
|
|
@@ -996,261 +921,19 @@ class W {
|
|
|
996
921
|
}[a];
|
|
997
922
|
}
|
|
998
923
|
}
|
|
999
|
-
const
|
|
1000
|
-
none:
|
|
1001
|
-
sm:
|
|
1002
|
-
md:
|
|
1003
|
-
lg:
|
|
1004
|
-
xl:
|
|
1005
|
-
"2xl":
|
|
1006
|
-
inner:
|
|
924
|
+
const Re = {
|
|
925
|
+
none: z.create("none"),
|
|
926
|
+
sm: z.create("sm"),
|
|
927
|
+
md: z.create("md"),
|
|
928
|
+
lg: z.create("lg"),
|
|
929
|
+
xl: z.create("xl"),
|
|
930
|
+
"2xl": z.create("2xl"),
|
|
931
|
+
inner: z.create("inner")
|
|
1007
932
|
};
|
|
1008
|
-
function
|
|
1009
|
-
return
|
|
1010
|
-
}
|
|
1011
|
-
class E {
|
|
1012
|
-
/**
|
|
1013
|
-
* Create a border width token
|
|
1014
|
-
*/
|
|
1015
|
-
static createWidth(a) {
|
|
1016
|
-
const r = {
|
|
1017
|
-
none: {
|
|
1018
|
-
px: 0,
|
|
1019
|
-
tailwind: "border-0"
|
|
1020
|
-
},
|
|
1021
|
-
thin: {
|
|
1022
|
-
px: 1,
|
|
1023
|
-
tailwind: "border"
|
|
1024
|
-
},
|
|
1025
|
-
base: {
|
|
1026
|
-
px: 1,
|
|
1027
|
-
tailwind: "border"
|
|
1028
|
-
},
|
|
1029
|
-
medium: {
|
|
1030
|
-
px: 2,
|
|
1031
|
-
tailwind: "border-2"
|
|
1032
|
-
},
|
|
1033
|
-
thick: {
|
|
1034
|
-
px: 4,
|
|
1035
|
-
tailwind: "border-4"
|
|
1036
|
-
}
|
|
1037
|
-
}[a];
|
|
1038
|
-
return {
|
|
1039
|
-
value: r.px,
|
|
1040
|
-
px: `${r.px}px`,
|
|
1041
|
-
tailwind: r.tailwind
|
|
1042
|
-
};
|
|
1043
|
-
}
|
|
1044
|
-
/**
|
|
1045
|
-
* Create a complete border token
|
|
1046
|
-
*/
|
|
1047
|
-
static create(a, n = "solid") {
|
|
1048
|
-
return {
|
|
1049
|
-
width: this.createWidth(a),
|
|
1050
|
-
style: n,
|
|
1051
|
-
description: `${a} ${n} border`
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
E.create("none"), E.create("thin"), E.create("base"), E.create("medium"), E.create("thick"), E.create("thin", "dashed"), E.create("base", "dashed"), E.create("thin", "dotted"), E.create("base", "dotted");
|
|
1056
|
-
class _ {
|
|
1057
|
-
/**
|
|
1058
|
-
* Create breakpoint token
|
|
1059
|
-
*/
|
|
1060
|
-
static create(a) {
|
|
1061
|
-
const r = {
|
|
1062
|
-
sm: { minWidth: 640, tailwind: "sm" },
|
|
1063
|
-
md: { minWidth: 768, tailwind: "md" },
|
|
1064
|
-
lg: { minWidth: 1024, tailwind: "lg" },
|
|
1065
|
-
xl: { minWidth: 1280, tailwind: "xl" },
|
|
1066
|
-
"2xl": { minWidth: 1536, tailwind: "2xl" }
|
|
1067
|
-
}[a];
|
|
1068
|
-
return {
|
|
1069
|
-
name: a,
|
|
1070
|
-
minWidth: r.minWidth,
|
|
1071
|
-
px: `${r.minWidth}px`,
|
|
1072
|
-
rem: `${r.minWidth / 16}rem`,
|
|
1073
|
-
tailwind: r.tailwind
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
933
|
+
function P(e) {
|
|
934
|
+
return Re[e].tailwind;
|
|
1076
935
|
}
|
|
1077
|
-
|
|
1078
|
-
class D {
|
|
1079
|
-
/**
|
|
1080
|
-
* Create an animation token
|
|
1081
|
-
*/
|
|
1082
|
-
static create(a, n = "ease-in-out") {
|
|
1083
|
-
const r = {
|
|
1084
|
-
fast: {
|
|
1085
|
-
value: "150ms",
|
|
1086
|
-
ms: 150,
|
|
1087
|
-
tailwind: "duration-150"
|
|
1088
|
-
},
|
|
1089
|
-
base: {
|
|
1090
|
-
value: "200ms",
|
|
1091
|
-
ms: 200,
|
|
1092
|
-
tailwind: "duration-200"
|
|
1093
|
-
},
|
|
1094
|
-
slow: {
|
|
1095
|
-
value: "300ms",
|
|
1096
|
-
ms: 300,
|
|
1097
|
-
tailwind: "duration-300"
|
|
1098
|
-
},
|
|
1099
|
-
slower: {
|
|
1100
|
-
value: "500ms",
|
|
1101
|
-
ms: 500,
|
|
1102
|
-
tailwind: "duration-500"
|
|
1103
|
-
}
|
|
1104
|
-
}, s = {
|
|
1105
|
-
"ease-in": {
|
|
1106
|
-
value: "cubic-bezier(0.4, 0, 1, 1)",
|
|
1107
|
-
tailwind: "ease-in",
|
|
1108
|
-
description: "Slow start, fast end"
|
|
1109
|
-
},
|
|
1110
|
-
"ease-out": {
|
|
1111
|
-
value: "cubic-bezier(0, 0, 0.2, 1)",
|
|
1112
|
-
tailwind: "ease-out",
|
|
1113
|
-
description: "Fast start, slow end"
|
|
1114
|
-
},
|
|
1115
|
-
"ease-in-out": {
|
|
1116
|
-
value: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1117
|
-
tailwind: "ease-in-out",
|
|
1118
|
-
description: "Slow start and end, fast middle"
|
|
1119
|
-
},
|
|
1120
|
-
spring: {
|
|
1121
|
-
value: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
|
|
1122
|
-
tailwind: "ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",
|
|
1123
|
-
description: "Spring-like bounce effect"
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
|
-
return {
|
|
1127
|
-
duration: r[a],
|
|
1128
|
-
easing: s[n]
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
/**
|
|
1132
|
-
* Create a transition token
|
|
1133
|
-
*/
|
|
1134
|
-
static createTransition(a, n = "base", r = "ease-in-out") {
|
|
1135
|
-
const s = this.create(n, r), i = Array.isArray(a) ? a.join(", ") : a, c = [
|
|
1136
|
-
s.duration.tailwind,
|
|
1137
|
-
s.easing.tailwind
|
|
1138
|
-
].join(" ");
|
|
1139
|
-
return {
|
|
1140
|
-
property: i,
|
|
1141
|
-
duration: s.duration.value,
|
|
1142
|
-
timingFunction: s.easing.value,
|
|
1143
|
-
tailwind: c
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
D.create("fast"), D.create("base"), D.create("slow"), D.create("slower"), D.createTransition(
|
|
1148
|
-
["color", "background-color", "border-color"],
|
|
1149
|
-
"base"
|
|
1150
|
-
), D.createTransition("opacity", "fast"), D.createTransition("transform", "base"), D.createTransition("all", "base");
|
|
1151
|
-
class A {
|
|
1152
|
-
/**
|
|
1153
|
-
* Create a z-index token
|
|
1154
|
-
*/
|
|
1155
|
-
static create(a) {
|
|
1156
|
-
return {
|
|
1157
|
-
base: {
|
|
1158
|
-
value: 0,
|
|
1159
|
-
tailwind: "z-0",
|
|
1160
|
-
description: "Base layer for normal content"
|
|
1161
|
-
},
|
|
1162
|
-
dropdown: {
|
|
1163
|
-
value: 1e3,
|
|
1164
|
-
tailwind: "z-[1000]",
|
|
1165
|
-
description: "Dropdown menus and select options"
|
|
1166
|
-
},
|
|
1167
|
-
sticky: {
|
|
1168
|
-
value: 1020,
|
|
1169
|
-
tailwind: "z-[1020]",
|
|
1170
|
-
description: "Sticky headers and navigation"
|
|
1171
|
-
},
|
|
1172
|
-
fixed: {
|
|
1173
|
-
value: 1030,
|
|
1174
|
-
tailwind: "z-[1030]",
|
|
1175
|
-
description: "Fixed position elements"
|
|
1176
|
-
},
|
|
1177
|
-
"modal-backdrop": {
|
|
1178
|
-
value: 1040,
|
|
1179
|
-
tailwind: "z-[1040]",
|
|
1180
|
-
description: "Modal backdrop/overlay"
|
|
1181
|
-
},
|
|
1182
|
-
modal: {
|
|
1183
|
-
value: 1050,
|
|
1184
|
-
tailwind: "z-[1050]",
|
|
1185
|
-
description: "Modal dialogs and drawers"
|
|
1186
|
-
},
|
|
1187
|
-
popover: {
|
|
1188
|
-
value: 1060,
|
|
1189
|
-
tailwind: "z-[1060]",
|
|
1190
|
-
description: "Popovers and tooltips"
|
|
1191
|
-
},
|
|
1192
|
-
tooltip: {
|
|
1193
|
-
value: 1070,
|
|
1194
|
-
tailwind: "z-[1070]",
|
|
1195
|
-
description: "Tooltips (highest priority)"
|
|
1196
|
-
},
|
|
1197
|
-
toast: {
|
|
1198
|
-
value: 1080,
|
|
1199
|
-
tailwind: "z-[1080]",
|
|
1200
|
-
description: "Toast notifications (highest priority)"
|
|
1201
|
-
}
|
|
1202
|
-
}[a];
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
A.create("base"), A.create("dropdown"), A.create("sticky"), A.create("fixed"), A.create("modal-backdrop"), A.create("modal"), A.create("popover"), A.create("tooltip"), A.create("toast");
|
|
1206
|
-
class S {
|
|
1207
|
-
/**
|
|
1208
|
-
* Create an opacity token
|
|
1209
|
-
*/
|
|
1210
|
-
static create(a) {
|
|
1211
|
-
const n = a / 100, r = {
|
|
1212
|
-
0: "Fully transparent",
|
|
1213
|
-
5: "Very light overlay",
|
|
1214
|
-
10: "Light overlay",
|
|
1215
|
-
20: "Subtle overlay",
|
|
1216
|
-
25: "Quarter opacity",
|
|
1217
|
-
30: "Light background",
|
|
1218
|
-
40: "Semi-transparent",
|
|
1219
|
-
50: "Half opacity",
|
|
1220
|
-
60: "Semi-opaque",
|
|
1221
|
-
70: "Mostly opaque",
|
|
1222
|
-
75: "Three-quarter opacity",
|
|
1223
|
-
80: "High opacity",
|
|
1224
|
-
90: "Very high opacity",
|
|
1225
|
-
95: "Nearly opaque",
|
|
1226
|
-
100: "Fully opaque"
|
|
1227
|
-
};
|
|
1228
|
-
return {
|
|
1229
|
-
value: a,
|
|
1230
|
-
decimal: n,
|
|
1231
|
-
tailwind: {
|
|
1232
|
-
0: "opacity-0",
|
|
1233
|
-
5: "opacity-5",
|
|
1234
|
-
10: "opacity-10",
|
|
1235
|
-
20: "opacity-20",
|
|
1236
|
-
25: "opacity-25",
|
|
1237
|
-
30: "opacity-30",
|
|
1238
|
-
40: "opacity-40",
|
|
1239
|
-
50: "opacity-50",
|
|
1240
|
-
60: "opacity-60",
|
|
1241
|
-
70: "opacity-70",
|
|
1242
|
-
75: "opacity-75",
|
|
1243
|
-
80: "opacity-80",
|
|
1244
|
-
90: "opacity-90",
|
|
1245
|
-
95: "opacity-95",
|
|
1246
|
-
100: "opacity-100"
|
|
1247
|
-
}[a],
|
|
1248
|
-
description: r[a]
|
|
1249
|
-
};
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
S.create(0), S.create(5), S.create(10), S.create(20), S.create(25), S.create(30), S.create(40), S.create(50), S.create(60), S.create(70), S.create(75), S.create(80), S.create(90), S.create(95), S.create(100);
|
|
1253
|
-
const He = j("w-full", {
|
|
936
|
+
const ze = M("w-full", {
|
|
1254
937
|
variants: {
|
|
1255
938
|
size: {
|
|
1256
939
|
sm: "h-1",
|
|
@@ -1270,7 +953,7 @@ const He = j("w-full", {
|
|
|
1270
953
|
size: "md",
|
|
1271
954
|
variant: "primary"
|
|
1272
955
|
}
|
|
1273
|
-
}),
|
|
956
|
+
}), J = M("transition-all", {
|
|
1274
957
|
variants: {
|
|
1275
958
|
variant: {
|
|
1276
959
|
primary: "bg-surface-brand",
|
|
@@ -1284,17 +967,17 @@ const He = j("w-full", {
|
|
|
1284
967
|
defaultVariants: {
|
|
1285
968
|
variant: "primary"
|
|
1286
969
|
}
|
|
1287
|
-
}),
|
|
1288
|
-
var
|
|
970
|
+
}), Me = _(function(b, y) {
|
|
971
|
+
var m = b, {
|
|
1289
972
|
value: a,
|
|
1290
|
-
max:
|
|
1291
|
-
variant:
|
|
973
|
+
max: r = 100,
|
|
974
|
+
variant: t = "primary",
|
|
1292
975
|
size: s = "md",
|
|
1293
|
-
showLabel:
|
|
1294
|
-
label:
|
|
1295
|
-
"aria-label":
|
|
976
|
+
showLabel: o = !1,
|
|
977
|
+
label: d,
|
|
978
|
+
"aria-label": c,
|
|
1296
979
|
className: u = ""
|
|
1297
|
-
} =
|
|
980
|
+
} = m, g = p(m, [
|
|
1298
981
|
"value",
|
|
1299
982
|
"max",
|
|
1300
983
|
"variant",
|
|
@@ -1304,38 +987,38 @@ const He = j("w-full", {
|
|
|
1304
987
|
"aria-label",
|
|
1305
988
|
"className"
|
|
1306
989
|
]);
|
|
1307
|
-
const
|
|
1308
|
-
return /* @__PURE__ */ $("div",
|
|
1309
|
-
|
|
990
|
+
const h = a === void 0, v = h ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), S = c || (h ? "Loading in progress" : `Progress: ${v == null ? void 0 : v.toFixed(0)}%`);
|
|
991
|
+
return /* @__PURE__ */ $("div", x(f({ ref: y, className: n("w-full", u) }, g), { children: [
|
|
992
|
+
o && (d || !h) && /* @__PURE__ */ $(
|
|
1310
993
|
"div",
|
|
1311
994
|
{
|
|
1312
|
-
className:
|
|
995
|
+
className: n(
|
|
1313
996
|
"flex",
|
|
1314
997
|
"items-center",
|
|
1315
998
|
"justify-between",
|
|
1316
|
-
|
|
999
|
+
i("xs", "mb")
|
|
1317
1000
|
),
|
|
1318
1001
|
children: [
|
|
1319
|
-
|
|
1002
|
+
d && /* @__PURE__ */ l(
|
|
1320
1003
|
"span",
|
|
1321
1004
|
{
|
|
1322
|
-
className:
|
|
1323
|
-
|
|
1324
|
-
|
|
1005
|
+
className: n(
|
|
1006
|
+
E("bodySmall"),
|
|
1007
|
+
j("label"),
|
|
1325
1008
|
"text-fg-primary"
|
|
1326
1009
|
),
|
|
1327
|
-
children:
|
|
1010
|
+
children: d
|
|
1328
1011
|
}
|
|
1329
1012
|
),
|
|
1330
|
-
!
|
|
1013
|
+
!h && v !== void 0 && /* @__PURE__ */ $(
|
|
1331
1014
|
"span",
|
|
1332
1015
|
{
|
|
1333
|
-
className:
|
|
1334
|
-
|
|
1016
|
+
className: n(
|
|
1017
|
+
E("bodySmall"),
|
|
1335
1018
|
"text-fg-secondary"
|
|
1336
1019
|
),
|
|
1337
1020
|
children: [
|
|
1338
|
-
|
|
1021
|
+
v.toFixed(0),
|
|
1339
1022
|
"%"
|
|
1340
1023
|
]
|
|
1341
1024
|
}
|
|
@@ -1343,32 +1026,32 @@ const He = j("w-full", {
|
|
|
1343
1026
|
]
|
|
1344
1027
|
}
|
|
1345
1028
|
),
|
|
1346
|
-
/* @__PURE__ */
|
|
1029
|
+
/* @__PURE__ */ l(
|
|
1347
1030
|
"div",
|
|
1348
1031
|
{
|
|
1349
1032
|
role: "progressbar",
|
|
1350
|
-
"aria-valuemin":
|
|
1351
|
-
"aria-valuemax":
|
|
1352
|
-
"aria-valuenow":
|
|
1353
|
-
"aria-label":
|
|
1354
|
-
"aria-busy":
|
|
1355
|
-
className:
|
|
1033
|
+
"aria-valuemin": h ? void 0 : 0,
|
|
1034
|
+
"aria-valuemax": h ? void 0 : r,
|
|
1035
|
+
"aria-valuenow": h ? void 0 : a,
|
|
1036
|
+
"aria-label": S,
|
|
1037
|
+
"aria-busy": h,
|
|
1038
|
+
className: n(
|
|
1356
1039
|
"relative",
|
|
1357
1040
|
"w-full",
|
|
1358
1041
|
"overflow-hidden",
|
|
1359
|
-
|
|
1360
|
-
|
|
1042
|
+
ze({ size: s, variant: t }),
|
|
1043
|
+
C("full")
|
|
1361
1044
|
),
|
|
1362
|
-
children:
|
|
1045
|
+
children: h ? /* @__PURE__ */ l(
|
|
1363
1046
|
"div",
|
|
1364
1047
|
{
|
|
1365
|
-
className:
|
|
1048
|
+
className: n(
|
|
1366
1049
|
"absolute",
|
|
1367
1050
|
"top-0",
|
|
1368
1051
|
"left-0",
|
|
1369
1052
|
"bottom-0",
|
|
1370
|
-
|
|
1371
|
-
|
|
1053
|
+
J({ variant: t }),
|
|
1054
|
+
C("full"),
|
|
1372
1055
|
"motion-reduce:animate-none"
|
|
1373
1056
|
),
|
|
1374
1057
|
style: {
|
|
@@ -1376,19 +1059,19 @@ const He = j("w-full", {
|
|
|
1376
1059
|
animation: "progress-indeterminate 1.5s ease-in-out infinite"
|
|
1377
1060
|
}
|
|
1378
1061
|
}
|
|
1379
|
-
) : /* @__PURE__ */
|
|
1062
|
+
) : /* @__PURE__ */ l(
|
|
1380
1063
|
"div",
|
|
1381
1064
|
{
|
|
1382
|
-
className:
|
|
1065
|
+
className: n(
|
|
1383
1066
|
"h-full",
|
|
1384
|
-
|
|
1385
|
-
|
|
1067
|
+
J({ variant: t }),
|
|
1068
|
+
C("full"),
|
|
1386
1069
|
"transition-all",
|
|
1387
1070
|
"duration-300",
|
|
1388
1071
|
"ease-out"
|
|
1389
1072
|
),
|
|
1390
1073
|
style: {
|
|
1391
|
-
width: `${
|
|
1074
|
+
width: `${v}%`
|
|
1392
1075
|
},
|
|
1393
1076
|
"aria-hidden": "true"
|
|
1394
1077
|
}
|
|
@@ -1397,57 +1080,57 @@ const He = j("w-full", {
|
|
|
1397
1080
|
)
|
|
1398
1081
|
] }));
|
|
1399
1082
|
});
|
|
1400
|
-
|
|
1401
|
-
const
|
|
1083
|
+
Me.displayName = "Progress";
|
|
1084
|
+
const Ve = {
|
|
1402
1085
|
horizontal: "w-full border-t",
|
|
1403
1086
|
vertical: "h-full border-l self-stretch"
|
|
1404
|
-
},
|
|
1087
|
+
}, je = {
|
|
1405
1088
|
solid: "border-solid",
|
|
1406
1089
|
dashed: "border-dashed",
|
|
1407
1090
|
dotted: "border-dotted"
|
|
1408
|
-
},
|
|
1409
|
-
var
|
|
1091
|
+
}, De = D(function(o) {
|
|
1092
|
+
var d = o, {
|
|
1410
1093
|
orientation: a = "horizontal",
|
|
1411
|
-
variant:
|
|
1412
|
-
className:
|
|
1413
|
-
} =
|
|
1094
|
+
variant: r = "solid",
|
|
1095
|
+
className: t = ""
|
|
1096
|
+
} = d, s = p(d, [
|
|
1414
1097
|
"orientation",
|
|
1415
1098
|
"variant",
|
|
1416
1099
|
"className"
|
|
1417
1100
|
]);
|
|
1418
|
-
const
|
|
1101
|
+
const c = n(
|
|
1419
1102
|
"border-0",
|
|
1420
1103
|
"border-line-default",
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1104
|
+
Ve[a],
|
|
1105
|
+
je[r],
|
|
1106
|
+
t
|
|
1424
1107
|
);
|
|
1425
|
-
return a === "vertical" ? /* @__PURE__ */
|
|
1108
|
+
return a === "vertical" ? /* @__PURE__ */ l(
|
|
1426
1109
|
"div",
|
|
1427
|
-
|
|
1428
|
-
className:
|
|
1110
|
+
f({
|
|
1111
|
+
className: c,
|
|
1429
1112
|
role: "separator",
|
|
1430
1113
|
"aria-orientation": "vertical"
|
|
1431
1114
|
}, s)
|
|
1432
|
-
) : /* @__PURE__ */
|
|
1115
|
+
) : /* @__PURE__ */ l(
|
|
1433
1116
|
"hr",
|
|
1434
|
-
|
|
1435
|
-
className:
|
|
1117
|
+
f({
|
|
1118
|
+
className: c,
|
|
1436
1119
|
role: "separator",
|
|
1437
1120
|
"aria-orientation": "horizontal"
|
|
1438
1121
|
}, s)
|
|
1439
1122
|
);
|
|
1440
1123
|
});
|
|
1441
|
-
|
|
1442
|
-
function
|
|
1443
|
-
var u =
|
|
1444
|
-
variant:
|
|
1124
|
+
De.displayName = "Separator";
|
|
1125
|
+
function ft(c) {
|
|
1126
|
+
var u = c, {
|
|
1127
|
+
variant: e = "text",
|
|
1445
1128
|
width: a,
|
|
1446
|
-
height:
|
|
1447
|
-
lines:
|
|
1129
|
+
height: r,
|
|
1130
|
+
lines: t = 1,
|
|
1448
1131
|
className: s = "",
|
|
1449
|
-
"aria-label":
|
|
1450
|
-
} = u,
|
|
1132
|
+
"aria-label": o
|
|
1133
|
+
} = u, d = p(u, [
|
|
1451
1134
|
"variant",
|
|
1452
1135
|
"width",
|
|
1453
1136
|
"height",
|
|
@@ -1455,48 +1138,48 @@ function ha(f) {
|
|
|
1455
1138
|
"className",
|
|
1456
1139
|
"aria-label"
|
|
1457
1140
|
]);
|
|
1458
|
-
const
|
|
1141
|
+
const g = [
|
|
1459
1142
|
"motion-safe:animate-pulse",
|
|
1460
1143
|
"bg-surface-muted",
|
|
1461
|
-
|
|
1462
|
-
],
|
|
1144
|
+
C("sm")
|
|
1145
|
+
], y = {
|
|
1463
1146
|
text: "h-4",
|
|
1464
1147
|
card: "h-32",
|
|
1465
1148
|
list: "h-12",
|
|
1466
|
-
circle:
|
|
1467
|
-
},
|
|
1468
|
-
a && (
|
|
1469
|
-
const
|
|
1470
|
-
return
|
|
1149
|
+
circle: C("full")
|
|
1150
|
+
}, b = n(...g, y[e], s), m = {};
|
|
1151
|
+
a && (m.width = a), r && (m.height = r);
|
|
1152
|
+
const h = o || `Loading ${e} content`;
|
|
1153
|
+
return e === "text" && t > 1 ? /* @__PURE__ */ l(
|
|
1471
1154
|
"div",
|
|
1472
|
-
|
|
1473
|
-
className:
|
|
1155
|
+
x(f({
|
|
1156
|
+
className: i("sm", "space-y"),
|
|
1474
1157
|
role: "status",
|
|
1475
1158
|
"aria-busy": "true",
|
|
1476
|
-
"aria-label":
|
|
1477
|
-
},
|
|
1478
|
-
children: Array.from({ length:
|
|
1159
|
+
"aria-label": h
|
|
1160
|
+
}, d), {
|
|
1161
|
+
children: Array.from({ length: t }).map((v, S) => /* @__PURE__ */ l(
|
|
1479
1162
|
"div",
|
|
1480
1163
|
{
|
|
1481
|
-
className:
|
|
1482
|
-
style:
|
|
1164
|
+
className: b,
|
|
1165
|
+
style: S === t - 1 ? { width: "75%" } : m,
|
|
1483
1166
|
"aria-hidden": "true"
|
|
1484
1167
|
},
|
|
1485
|
-
|
|
1168
|
+
S
|
|
1486
1169
|
))
|
|
1487
1170
|
})
|
|
1488
|
-
) : /* @__PURE__ */
|
|
1171
|
+
) : /* @__PURE__ */ l(
|
|
1489
1172
|
"div",
|
|
1490
|
-
|
|
1491
|
-
className:
|
|
1492
|
-
style:
|
|
1173
|
+
f({
|
|
1174
|
+
className: b,
|
|
1175
|
+
style: m,
|
|
1493
1176
|
role: "status",
|
|
1494
1177
|
"aria-busy": "true",
|
|
1495
|
-
"aria-label":
|
|
1496
|
-
},
|
|
1178
|
+
"aria-label": h
|
|
1179
|
+
}, d)
|
|
1497
1180
|
);
|
|
1498
1181
|
}
|
|
1499
|
-
const
|
|
1182
|
+
const _e = M("motion-safe:animate-spin", {
|
|
1500
1183
|
variants: {
|
|
1501
1184
|
size: {
|
|
1502
1185
|
sm: "h-4 w-4",
|
|
@@ -1513,13 +1196,13 @@ const Ue = j("motion-safe:animate-spin", {
|
|
|
1513
1196
|
size: "md",
|
|
1514
1197
|
variant: "primary"
|
|
1515
1198
|
}
|
|
1516
|
-
}),
|
|
1517
|
-
var
|
|
1199
|
+
}), Ie = D(function(d) {
|
|
1200
|
+
var c = d, {
|
|
1518
1201
|
size: a = "md",
|
|
1519
|
-
variant:
|
|
1520
|
-
label:
|
|
1202
|
+
variant: r = "primary",
|
|
1203
|
+
label: t,
|
|
1521
1204
|
className: s = ""
|
|
1522
|
-
} =
|
|
1205
|
+
} = c, o = p(c, [
|
|
1523
1206
|
"size",
|
|
1524
1207
|
"variant",
|
|
1525
1208
|
"label",
|
|
@@ -1527,38 +1210,38 @@ const Ue = j("motion-safe:animate-spin", {
|
|
|
1527
1210
|
]);
|
|
1528
1211
|
return /* @__PURE__ */ $(
|
|
1529
1212
|
"div",
|
|
1530
|
-
|
|
1531
|
-
className:
|
|
1213
|
+
x(f({
|
|
1214
|
+
className: n("inline-flex", "items-center", s),
|
|
1532
1215
|
role: "status",
|
|
1533
|
-
"aria-label":
|
|
1216
|
+
"aria-label": t || "Loading",
|
|
1534
1217
|
"aria-live": "polite"
|
|
1535
|
-
},
|
|
1218
|
+
}, o), {
|
|
1536
1219
|
children: [
|
|
1537
|
-
/* @__PURE__ */
|
|
1538
|
-
|
|
1220
|
+
/* @__PURE__ */ l(
|
|
1221
|
+
ce,
|
|
1539
1222
|
{
|
|
1540
|
-
className:
|
|
1223
|
+
className: n(_e({ size: a, variant: r })),
|
|
1541
1224
|
"aria-hidden": "true"
|
|
1542
1225
|
}
|
|
1543
1226
|
),
|
|
1544
|
-
|
|
1227
|
+
t && /* @__PURE__ */ l(
|
|
1545
1228
|
"span",
|
|
1546
1229
|
{
|
|
1547
|
-
className:
|
|
1548
|
-
|
|
1549
|
-
|
|
1230
|
+
className: n(
|
|
1231
|
+
i("sm", "ml"),
|
|
1232
|
+
E("bodySmall"),
|
|
1550
1233
|
"text-fg-secondary",
|
|
1551
1234
|
"sr-only"
|
|
1552
1235
|
),
|
|
1553
|
-
children:
|
|
1236
|
+
children: t
|
|
1554
1237
|
}
|
|
1555
1238
|
)
|
|
1556
1239
|
]
|
|
1557
1240
|
})
|
|
1558
1241
|
);
|
|
1559
1242
|
});
|
|
1560
|
-
|
|
1561
|
-
const
|
|
1243
|
+
Ie.displayName = "Spinner";
|
|
1244
|
+
const We = {
|
|
1562
1245
|
primary: {
|
|
1563
1246
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1564
1247
|
light: "text-indigo-400",
|
|
@@ -1610,16 +1293,16 @@ const Xe = {
|
|
|
1610
1293
|
contrast: "text-fg-inverse"
|
|
1611
1294
|
}
|
|
1612
1295
|
};
|
|
1613
|
-
function
|
|
1614
|
-
var
|
|
1615
|
-
variant:
|
|
1296
|
+
function He(g, u) {
|
|
1297
|
+
var y = g, {
|
|
1298
|
+
variant: e = "paragraph",
|
|
1616
1299
|
bold: a,
|
|
1617
|
-
italic:
|
|
1618
|
-
className:
|
|
1300
|
+
italic: r,
|
|
1301
|
+
className: t,
|
|
1619
1302
|
as: s,
|
|
1620
|
-
colorRole:
|
|
1621
|
-
colorShade:
|
|
1622
|
-
} =
|
|
1303
|
+
colorRole: o = "neutral",
|
|
1304
|
+
colorShade: d = "dark"
|
|
1305
|
+
} = y, c = p(y, [
|
|
1623
1306
|
"variant",
|
|
1624
1307
|
"bold",
|
|
1625
1308
|
"italic",
|
|
@@ -1628,41 +1311,41 @@ function Ge(b, u) {
|
|
|
1628
1311
|
"colorRole",
|
|
1629
1312
|
"colorShade"
|
|
1630
1313
|
]);
|
|
1631
|
-
const
|
|
1632
|
-
let
|
|
1314
|
+
const b = [];
|
|
1315
|
+
let m;
|
|
1633
1316
|
if (s)
|
|
1634
|
-
|
|
1317
|
+
m = s;
|
|
1635
1318
|
else
|
|
1636
|
-
switch (
|
|
1319
|
+
switch (e) {
|
|
1637
1320
|
case "heading":
|
|
1638
|
-
|
|
1321
|
+
m = "h2";
|
|
1639
1322
|
break;
|
|
1640
1323
|
case "list":
|
|
1641
|
-
|
|
1324
|
+
m = "li";
|
|
1642
1325
|
break;
|
|
1643
1326
|
default:
|
|
1644
|
-
|
|
1327
|
+
m = "p";
|
|
1645
1328
|
break;
|
|
1646
1329
|
}
|
|
1647
|
-
return
|
|
1330
|
+
return e === "heading" ? b.push(R("h2")) : e === "body" || e === "paragraph" ? b.push(R("body")) : e === "bodySmall" ? b.push(R("bodySmall")) : e === "bodyLarge" ? b.push(R("bodyLarge")) : e === "caption" ? b.push(R("caption")) : e === "label" ? b.push(R("label")) : b.push(R("body")), a && b.push("font-bold"), r && b.push("italic"), b.push(We[o][d]), /* @__PURE__ */ l(m, f({ ref: u, className: n(...b, t) }, c));
|
|
1648
1331
|
}
|
|
1649
|
-
const
|
|
1332
|
+
const Q = _(He), Oe = {
|
|
1650
1333
|
sm: "max-w-screen-sm",
|
|
1651
1334
|
md: "max-w-screen-md",
|
|
1652
1335
|
lg: "max-w-screen-lg",
|
|
1653
1336
|
xl: "max-w-screen-xl",
|
|
1654
1337
|
"2xl": "max-w-screen-2xl",
|
|
1655
1338
|
full: "max-w-full"
|
|
1656
|
-
},
|
|
1657
|
-
(u,
|
|
1658
|
-
var
|
|
1659
|
-
className:
|
|
1339
|
+
}, Pe = ee.forwardRef(
|
|
1340
|
+
(u, c) => {
|
|
1341
|
+
var g = u, {
|
|
1342
|
+
className: e,
|
|
1660
1343
|
maxWidth: a = "lg",
|
|
1661
|
-
paddingX:
|
|
1662
|
-
paddingY:
|
|
1344
|
+
paddingX: r = "base",
|
|
1345
|
+
paddingY: t = "base",
|
|
1663
1346
|
center: s = !0,
|
|
1664
|
-
children:
|
|
1665
|
-
} =
|
|
1347
|
+
children: o
|
|
1348
|
+
} = g, d = p(g, [
|
|
1666
1349
|
"className",
|
|
1667
1350
|
"maxWidth",
|
|
1668
1351
|
"paddingX",
|
|
@@ -1670,35 +1353,35 @@ const se = O(Ge), Ye = {
|
|
|
1670
1353
|
"center",
|
|
1671
1354
|
"children"
|
|
1672
1355
|
]);
|
|
1673
|
-
return /* @__PURE__ */
|
|
1356
|
+
return /* @__PURE__ */ l(
|
|
1674
1357
|
"div",
|
|
1675
|
-
|
|
1676
|
-
ref:
|
|
1677
|
-
className:
|
|
1358
|
+
x(f({
|
|
1359
|
+
ref: c,
|
|
1360
|
+
className: n(
|
|
1678
1361
|
"w-full",
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1362
|
+
Oe[a],
|
|
1363
|
+
i(r, "px"),
|
|
1364
|
+
i(t, "py"),
|
|
1682
1365
|
s && "mx-auto",
|
|
1683
|
-
|
|
1366
|
+
e
|
|
1684
1367
|
)
|
|
1685
|
-
},
|
|
1686
|
-
children:
|
|
1368
|
+
}, d), {
|
|
1369
|
+
children: o
|
|
1687
1370
|
})
|
|
1688
1371
|
);
|
|
1689
1372
|
}
|
|
1690
1373
|
);
|
|
1691
|
-
|
|
1692
|
-
const
|
|
1693
|
-
(u,
|
|
1694
|
-
var
|
|
1695
|
-
className:
|
|
1374
|
+
Pe.displayName = "Container";
|
|
1375
|
+
const Be = ee.forwardRef(
|
|
1376
|
+
(u, c) => {
|
|
1377
|
+
var g = u, {
|
|
1378
|
+
className: e,
|
|
1696
1379
|
spacing: a = "base",
|
|
1697
|
-
align:
|
|
1698
|
-
justify:
|
|
1380
|
+
align: r = "stretch",
|
|
1381
|
+
justify: t = "start",
|
|
1699
1382
|
direction: s = "column",
|
|
1700
|
-
children:
|
|
1701
|
-
} =
|
|
1383
|
+
children: o
|
|
1384
|
+
} = g, d = p(g, [
|
|
1702
1385
|
"className",
|
|
1703
1386
|
"spacing",
|
|
1704
1387
|
"align",
|
|
@@ -1706,12 +1389,12 @@ const Qe = ie.forwardRef(
|
|
|
1706
1389
|
"direction",
|
|
1707
1390
|
"children"
|
|
1708
1391
|
]);
|
|
1709
|
-
const
|
|
1392
|
+
const y = s === "column" ? i(a, "gap-y") : i(a, "gap-x"), b = {
|
|
1710
1393
|
start: "items-start",
|
|
1711
1394
|
center: "items-center",
|
|
1712
1395
|
end: "items-end",
|
|
1713
1396
|
stretch: "items-stretch"
|
|
1714
|
-
},
|
|
1397
|
+
}, m = {
|
|
1715
1398
|
start: "justify-start",
|
|
1716
1399
|
center: "justify-center",
|
|
1717
1400
|
end: "justify-end",
|
|
@@ -1719,82 +1402,82 @@ const Qe = ie.forwardRef(
|
|
|
1719
1402
|
around: "justify-around",
|
|
1720
1403
|
evenly: "justify-evenly"
|
|
1721
1404
|
};
|
|
1722
|
-
return /* @__PURE__ */
|
|
1405
|
+
return /* @__PURE__ */ l(
|
|
1723
1406
|
"div",
|
|
1724
|
-
|
|
1725
|
-
ref:
|
|
1726
|
-
className:
|
|
1407
|
+
x(f({
|
|
1408
|
+
ref: c,
|
|
1409
|
+
className: n(
|
|
1727
1410
|
"flex",
|
|
1728
1411
|
s === "column" ? "flex-col" : "flex-row",
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1412
|
+
y,
|
|
1413
|
+
b[r],
|
|
1414
|
+
m[t],
|
|
1415
|
+
e
|
|
1733
1416
|
)
|
|
1734
|
-
},
|
|
1735
|
-
children:
|
|
1417
|
+
}, d), {
|
|
1418
|
+
children: o
|
|
1736
1419
|
})
|
|
1737
1420
|
);
|
|
1738
1421
|
}
|
|
1739
1422
|
);
|
|
1740
|
-
|
|
1741
|
-
function
|
|
1742
|
-
var
|
|
1743
|
-
items:
|
|
1423
|
+
Be.displayName = "Stack";
|
|
1424
|
+
function Ue(s) {
|
|
1425
|
+
var o = s, {
|
|
1426
|
+
items: e,
|
|
1744
1427
|
separator: a = "/",
|
|
1745
|
-
className:
|
|
1746
|
-
} =
|
|
1428
|
+
className: r = ""
|
|
1429
|
+
} = o, t = p(o, [
|
|
1747
1430
|
"items",
|
|
1748
1431
|
"separator",
|
|
1749
1432
|
"className"
|
|
1750
1433
|
]);
|
|
1751
|
-
const
|
|
1434
|
+
const d = [
|
|
1752
1435
|
"flex",
|
|
1753
1436
|
"items-center",
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
],
|
|
1757
|
-
return /* @__PURE__ */
|
|
1437
|
+
i("sm", "space-x"),
|
|
1438
|
+
E("bodySmall")
|
|
1439
|
+
], c = n(...d, r);
|
|
1440
|
+
return /* @__PURE__ */ l("nav", x(f({ "aria-label": "Breadcrumb", className: c }, t), { children: /* @__PURE__ */ l(
|
|
1758
1441
|
"ol",
|
|
1759
1442
|
{
|
|
1760
|
-
className:
|
|
1761
|
-
children:
|
|
1762
|
-
const
|
|
1443
|
+
className: n("flex", "items-center", i("sm", "space-x")),
|
|
1444
|
+
children: e.map((u, g) => {
|
|
1445
|
+
const y = g === e.length - 1;
|
|
1763
1446
|
return /* @__PURE__ */ $("li", { className: "flex items-center", children: [
|
|
1764
|
-
|
|
1447
|
+
g > 0 && /* @__PURE__ */ l(
|
|
1765
1448
|
"span",
|
|
1766
1449
|
{
|
|
1767
|
-
className:
|
|
1768
|
-
|
|
1450
|
+
className: n(
|
|
1451
|
+
i("sm", "mx"),
|
|
1769
1452
|
"text-fg-tertiary"
|
|
1770
1453
|
),
|
|
1771
1454
|
"aria-hidden": "true",
|
|
1772
1455
|
children: a
|
|
1773
1456
|
}
|
|
1774
1457
|
),
|
|
1775
|
-
|
|
1458
|
+
y ? /* @__PURE__ */ l(
|
|
1776
1459
|
"span",
|
|
1777
1460
|
{
|
|
1778
|
-
className:
|
|
1461
|
+
className: n(
|
|
1779
1462
|
"text-fg-primary",
|
|
1780
|
-
|
|
1463
|
+
j("label")
|
|
1781
1464
|
),
|
|
1782
1465
|
"aria-current": "page",
|
|
1783
1466
|
children: u.label
|
|
1784
1467
|
}
|
|
1785
|
-
) : u.href ? /* @__PURE__ */
|
|
1468
|
+
) : u.href ? /* @__PURE__ */ l(
|
|
1786
1469
|
"a",
|
|
1787
1470
|
{
|
|
1788
1471
|
href: u.href,
|
|
1789
|
-
className:
|
|
1472
|
+
className: n(
|
|
1790
1473
|
"inline-flex",
|
|
1791
1474
|
"items-center",
|
|
1792
|
-
|
|
1793
|
-
|
|
1475
|
+
i("xs", "px"),
|
|
1476
|
+
i("xs", "pt"),
|
|
1794
1477
|
"border-b-2",
|
|
1795
1478
|
"border-transparent",
|
|
1796
|
-
|
|
1797
|
-
|
|
1479
|
+
E("bodySmall"),
|
|
1480
|
+
j("label"),
|
|
1798
1481
|
"transition-colors",
|
|
1799
1482
|
"text-fg-secondary",
|
|
1800
1483
|
"hover:border-line-emphasis",
|
|
@@ -1802,38 +1485,38 @@ function Je(s) {
|
|
|
1802
1485
|
),
|
|
1803
1486
|
children: u.label
|
|
1804
1487
|
}
|
|
1805
|
-
) : /* @__PURE__ */
|
|
1806
|
-
] },
|
|
1488
|
+
) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: u.label })
|
|
1489
|
+
] }, g);
|
|
1807
1490
|
})
|
|
1808
1491
|
}
|
|
1809
1492
|
) }));
|
|
1810
1493
|
}
|
|
1811
|
-
function
|
|
1812
|
-
var s =
|
|
1813
|
-
return /* @__PURE__ */
|
|
1494
|
+
function Ke(t) {
|
|
1495
|
+
var s = t, { children: e, className: a } = s, r = p(s, ["children", "className"]);
|
|
1496
|
+
return /* @__PURE__ */ l(
|
|
1814
1497
|
"div",
|
|
1815
|
-
|
|
1816
|
-
className:
|
|
1498
|
+
x(f({
|
|
1499
|
+
className: n(
|
|
1817
1500
|
"grid items-start",
|
|
1818
|
-
|
|
1819
|
-
|
|
1501
|
+
i("1.5", "gap"),
|
|
1502
|
+
i("base", "mb"),
|
|
1820
1503
|
"[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
|
|
1821
1504
|
"[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
|
|
1822
1505
|
a
|
|
1823
1506
|
)
|
|
1824
|
-
},
|
|
1825
|
-
children:
|
|
1507
|
+
}, r), {
|
|
1508
|
+
children: e
|
|
1826
1509
|
})
|
|
1827
1510
|
);
|
|
1828
1511
|
}
|
|
1829
|
-
function
|
|
1830
|
-
var
|
|
1831
|
-
children:
|
|
1512
|
+
function Xe(d) {
|
|
1513
|
+
var c = d, {
|
|
1514
|
+
children: e,
|
|
1832
1515
|
icon: a,
|
|
1833
|
-
badge:
|
|
1834
|
-
as:
|
|
1516
|
+
badge: r,
|
|
1517
|
+
as: t = "h2",
|
|
1835
1518
|
className: s
|
|
1836
|
-
} =
|
|
1519
|
+
} = c, o = p(c, [
|
|
1837
1520
|
"children",
|
|
1838
1521
|
"icon",
|
|
1839
1522
|
"badge",
|
|
@@ -1841,70 +1524,70 @@ function aa(c) {
|
|
|
1841
1524
|
"className"
|
|
1842
1525
|
]);
|
|
1843
1526
|
return /* @__PURE__ */ $(
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
className:
|
|
1527
|
+
t,
|
|
1528
|
+
x(f({
|
|
1529
|
+
className: n(
|
|
1847
1530
|
"text-base font-semibold text-fg-primary",
|
|
1848
1531
|
"flex items-center",
|
|
1849
|
-
|
|
1532
|
+
i("sm", "gap"),
|
|
1850
1533
|
s
|
|
1851
1534
|
)
|
|
1852
|
-
},
|
|
1535
|
+
}, o), {
|
|
1853
1536
|
children: [
|
|
1854
|
-
a ? /* @__PURE__ */
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
|
|
1537
|
+
a ? /* @__PURE__ */ l("span", { className: "shrink-0 inline-flex", children: a }) : null,
|
|
1538
|
+
/* @__PURE__ */ l("span", { children: e }),
|
|
1539
|
+
r ? /* @__PURE__ */ l("span", { className: "inline-flex", children: r }) : null
|
|
1857
1540
|
]
|
|
1858
1541
|
})
|
|
1859
1542
|
);
|
|
1860
1543
|
}
|
|
1861
|
-
function
|
|
1862
|
-
var s =
|
|
1863
|
-
children:
|
|
1544
|
+
function qe(t) {
|
|
1545
|
+
var s = t, {
|
|
1546
|
+
children: e,
|
|
1864
1547
|
className: a
|
|
1865
|
-
} = s,
|
|
1548
|
+
} = s, r = p(s, [
|
|
1866
1549
|
"children",
|
|
1867
1550
|
"className"
|
|
1868
1551
|
]);
|
|
1869
|
-
return /* @__PURE__ */
|
|
1552
|
+
return /* @__PURE__ */ l("p", x(f({ className: n("text-sm text-fg-secondary", a) }, r), { children: e }));
|
|
1870
1553
|
}
|
|
1871
|
-
function
|
|
1872
|
-
var s =
|
|
1873
|
-
children:
|
|
1554
|
+
function Ge(t) {
|
|
1555
|
+
var s = t, {
|
|
1556
|
+
children: e,
|
|
1874
1557
|
className: a
|
|
1875
|
-
} = s,
|
|
1558
|
+
} = s, r = p(s, [
|
|
1876
1559
|
"children",
|
|
1877
1560
|
"className"
|
|
1878
1561
|
]);
|
|
1879
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ l(
|
|
1880
1563
|
"div",
|
|
1881
|
-
|
|
1564
|
+
x(f({
|
|
1882
1565
|
"data-card-actions": "",
|
|
1883
|
-
className:
|
|
1566
|
+
className: n(
|
|
1884
1567
|
"flex items-center self-start",
|
|
1885
|
-
|
|
1568
|
+
i("sm", "gap"),
|
|
1886
1569
|
a
|
|
1887
1570
|
)
|
|
1888
|
-
},
|
|
1889
|
-
children:
|
|
1571
|
+
}, r), {
|
|
1572
|
+
children: e
|
|
1890
1573
|
})
|
|
1891
1574
|
);
|
|
1892
1575
|
}
|
|
1893
|
-
function
|
|
1894
|
-
var s =
|
|
1895
|
-
return /* @__PURE__ */
|
|
1576
|
+
function Ye(t) {
|
|
1577
|
+
var s = t, { children: e, className: a } = s, r = p(s, ["children", "className"]);
|
|
1578
|
+
return /* @__PURE__ */ l("div", x(f({ className: n(a) }, r), { children: e }));
|
|
1896
1579
|
}
|
|
1897
|
-
function
|
|
1898
|
-
var
|
|
1899
|
-
variant:
|
|
1580
|
+
function Ze(g) {
|
|
1581
|
+
var y = g, {
|
|
1582
|
+
variant: e = "default",
|
|
1900
1583
|
padding: a = "medium",
|
|
1901
|
-
className:
|
|
1902
|
-
onClick:
|
|
1584
|
+
className: r = "",
|
|
1585
|
+
onClick: t,
|
|
1903
1586
|
"aria-label": s,
|
|
1904
|
-
"aria-labelledby":
|
|
1905
|
-
asSection:
|
|
1906
|
-
children:
|
|
1907
|
-
} =
|
|
1587
|
+
"aria-labelledby": o,
|
|
1588
|
+
asSection: d = !1,
|
|
1589
|
+
children: c
|
|
1590
|
+
} = y, u = p(y, [
|
|
1908
1591
|
"variant",
|
|
1909
1592
|
"padding",
|
|
1910
1593
|
"className",
|
|
@@ -1914,33 +1597,33 @@ function sa(b) {
|
|
|
1914
1597
|
"asSection",
|
|
1915
1598
|
"children"
|
|
1916
1599
|
]);
|
|
1917
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" &&
|
|
1600
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && d && !s && !o && console.warn(
|
|
1918
1601
|
"[Card] `asSection={true}` requires an accessible name. Pass `aria-labelledby` pointing to your Card.Title `id`, or `aria-label`. A <section> without a name is an anonymous landmark that hurts screen-reader navigation."
|
|
1919
1602
|
);
|
|
1920
|
-
const
|
|
1921
|
-
|
|
1603
|
+
const b = M(
|
|
1604
|
+
n(
|
|
1922
1605
|
"bg-surface-base",
|
|
1923
|
-
|
|
1606
|
+
C("lg"),
|
|
1924
1607
|
"border",
|
|
1925
1608
|
"border-line-default",
|
|
1926
|
-
|
|
1609
|
+
P("sm")
|
|
1927
1610
|
),
|
|
1928
1611
|
{
|
|
1929
1612
|
variants: {
|
|
1930
1613
|
variant: {
|
|
1931
1614
|
default: "",
|
|
1932
|
-
hover:
|
|
1933
|
-
`hover:${
|
|
1615
|
+
hover: n(
|
|
1616
|
+
`hover:${P("md")}`,
|
|
1934
1617
|
"transition-shadow",
|
|
1935
1618
|
"cursor-pointer"
|
|
1936
1619
|
),
|
|
1937
|
-
selected:
|
|
1620
|
+
selected: n("border-line-brand", P("md"))
|
|
1938
1621
|
},
|
|
1939
1622
|
padding: {
|
|
1940
1623
|
none: "",
|
|
1941
|
-
small:
|
|
1942
|
-
medium:
|
|
1943
|
-
large:
|
|
1624
|
+
small: i("xs", "p"),
|
|
1625
|
+
medium: i("base", "p"),
|
|
1626
|
+
large: i("lg", "p")
|
|
1944
1627
|
}
|
|
1945
1628
|
},
|
|
1946
1629
|
defaultVariants: {
|
|
@@ -1948,182 +1631,182 @@ function sa(b) {
|
|
|
1948
1631
|
padding: "medium"
|
|
1949
1632
|
}
|
|
1950
1633
|
}
|
|
1951
|
-
),
|
|
1952
|
-
className:
|
|
1953
|
-
role:
|
|
1954
|
-
tabIndex:
|
|
1955
|
-
onClick:
|
|
1956
|
-
onKeyDown:
|
|
1957
|
-
|
|
1634
|
+
), m = t !== void 0, h = m ? "button" : void 0, v = m ? 0 : void 0, S = n(b({ variant: e, padding: a }), r), L = f({
|
|
1635
|
+
className: S,
|
|
1636
|
+
role: h,
|
|
1637
|
+
tabIndex: v,
|
|
1638
|
+
onClick: t,
|
|
1639
|
+
onKeyDown: m ? (V) => {
|
|
1640
|
+
m && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), t == null || t());
|
|
1958
1641
|
} : void 0,
|
|
1959
1642
|
"aria-label": s,
|
|
1960
|
-
"aria-labelledby":
|
|
1643
|
+
"aria-labelledby": o
|
|
1961
1644
|
}, u);
|
|
1962
|
-
return
|
|
1645
|
+
return d ? /* @__PURE__ */ l("section", x(f({}, L), { children: c })) : /* @__PURE__ */ l("div", x(f({}, L), { children: c }));
|
|
1963
1646
|
}
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1966
|
-
const
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
function
|
|
1973
|
-
var s =
|
|
1974
|
-
children:
|
|
1647
|
+
const te = D(Ze);
|
|
1648
|
+
te.displayName = "Card";
|
|
1649
|
+
const I = te;
|
|
1650
|
+
I.Header = Ke;
|
|
1651
|
+
I.Title = Xe;
|
|
1652
|
+
I.Subtitle = qe;
|
|
1653
|
+
I.Actions = Ge;
|
|
1654
|
+
I.Body = Ye;
|
|
1655
|
+
function ut(t) {
|
|
1656
|
+
var s = t, {
|
|
1657
|
+
children: e,
|
|
1975
1658
|
className: a = ""
|
|
1976
|
-
} = s,
|
|
1659
|
+
} = s, r = p(s, [
|
|
1977
1660
|
"children",
|
|
1978
1661
|
"className"
|
|
1979
1662
|
]);
|
|
1980
|
-
return /* @__PURE__ */
|
|
1663
|
+
return /* @__PURE__ */ l(
|
|
1981
1664
|
"div",
|
|
1982
|
-
|
|
1983
|
-
className: `flex flex-col ${
|
|
1984
|
-
},
|
|
1985
|
-
children:
|
|
1665
|
+
x(f({
|
|
1666
|
+
className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${a}`
|
|
1667
|
+
}, r), {
|
|
1668
|
+
children: e
|
|
1986
1669
|
})
|
|
1987
1670
|
);
|
|
1988
1671
|
}
|
|
1989
|
-
function
|
|
1990
|
-
var s =
|
|
1991
|
-
children:
|
|
1672
|
+
function pt(t) {
|
|
1673
|
+
var s = t, {
|
|
1674
|
+
children: e,
|
|
1992
1675
|
className: a = ""
|
|
1993
|
-
} = s,
|
|
1676
|
+
} = s, r = p(s, [
|
|
1994
1677
|
"children",
|
|
1995
1678
|
"className"
|
|
1996
1679
|
]);
|
|
1997
|
-
return /* @__PURE__ */
|
|
1680
|
+
return /* @__PURE__ */ l(
|
|
1998
1681
|
"div",
|
|
1999
|
-
|
|
2000
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${
|
|
2001
|
-
},
|
|
2002
|
-
children:
|
|
1682
|
+
x(f({
|
|
1683
|
+
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${a}`
|
|
1684
|
+
}, r), {
|
|
1685
|
+
children: e
|
|
2003
1686
|
})
|
|
2004
1687
|
);
|
|
2005
1688
|
}
|
|
2006
|
-
function
|
|
2007
|
-
var s =
|
|
2008
|
-
children:
|
|
1689
|
+
function mt(t) {
|
|
1690
|
+
var s = t, {
|
|
1691
|
+
children: e,
|
|
2009
1692
|
className: a = ""
|
|
2010
|
-
} = s,
|
|
1693
|
+
} = s, r = p(s, [
|
|
2011
1694
|
"children",
|
|
2012
1695
|
"className"
|
|
2013
1696
|
]);
|
|
2014
|
-
return /* @__PURE__ */
|
|
1697
|
+
return /* @__PURE__ */ l(
|
|
2015
1698
|
"div",
|
|
2016
|
-
|
|
1699
|
+
x(f({
|
|
2017
1700
|
className: `
|
|
2018
|
-
${
|
|
1701
|
+
${i("lg", "p")}
|
|
2019
1702
|
border-b
|
|
2020
1703
|
border-line-default
|
|
2021
1704
|
${a}
|
|
2022
1705
|
`
|
|
2023
|
-
},
|
|
2024
|
-
children:
|
|
1706
|
+
}, r), {
|
|
1707
|
+
children: e
|
|
2025
1708
|
})
|
|
2026
1709
|
);
|
|
2027
1710
|
}
|
|
2028
|
-
function
|
|
2029
|
-
var s =
|
|
2030
|
-
children:
|
|
1711
|
+
function gt(t) {
|
|
1712
|
+
var s = t, {
|
|
1713
|
+
children: e,
|
|
2031
1714
|
className: a = ""
|
|
2032
|
-
} = s,
|
|
1715
|
+
} = s, r = p(s, [
|
|
2033
1716
|
"children",
|
|
2034
1717
|
"className"
|
|
2035
1718
|
]);
|
|
2036
|
-
return /* @__PURE__ */
|
|
1719
|
+
return /* @__PURE__ */ l(
|
|
2037
1720
|
"div",
|
|
2038
|
-
|
|
1721
|
+
x(f({
|
|
2039
1722
|
className: `
|
|
2040
|
-
${
|
|
1723
|
+
${i("lg", "p")}
|
|
2041
1724
|
border-t
|
|
2042
1725
|
border-line-default
|
|
2043
1726
|
flex
|
|
2044
1727
|
justify-end
|
|
2045
|
-
${
|
|
1728
|
+
${i("sm", "gap")}
|
|
2046
1729
|
${a}
|
|
2047
1730
|
`
|
|
2048
|
-
},
|
|
2049
|
-
children:
|
|
1731
|
+
}, r), {
|
|
1732
|
+
children: e
|
|
2050
1733
|
})
|
|
2051
1734
|
);
|
|
2052
1735
|
}
|
|
2053
|
-
function
|
|
2054
|
-
return /* @__PURE__ */
|
|
1736
|
+
function xt({ children: e, className: a }) {
|
|
1737
|
+
return /* @__PURE__ */ l(
|
|
2055
1738
|
"div",
|
|
2056
1739
|
{
|
|
2057
|
-
className:
|
|
1740
|
+
className: n(
|
|
2058
1741
|
"flex-shrink-0 flex items-center",
|
|
2059
|
-
|
|
1742
|
+
i("sm", "gap"),
|
|
2060
1743
|
a
|
|
2061
1744
|
),
|
|
2062
|
-
children:
|
|
1745
|
+
children: e
|
|
2063
1746
|
}
|
|
2064
1747
|
);
|
|
2065
1748
|
}
|
|
2066
|
-
function
|
|
2067
|
-
children:
|
|
1749
|
+
function bt({
|
|
1750
|
+
children: e,
|
|
2068
1751
|
className: a
|
|
2069
1752
|
}) {
|
|
2070
|
-
return /* @__PURE__ */
|
|
1753
|
+
return /* @__PURE__ */ l(
|
|
2071
1754
|
"nav",
|
|
2072
1755
|
{
|
|
2073
|
-
className:
|
|
1756
|
+
className: n(
|
|
2074
1757
|
"flex-1 flex items-center justify-center",
|
|
2075
|
-
|
|
1758
|
+
i("base", "gap"),
|
|
2076
1759
|
"hidden md:flex",
|
|
2077
1760
|
// Hidden on mobile, visible on desktop
|
|
2078
1761
|
a
|
|
2079
1762
|
),
|
|
2080
1763
|
"aria-label": "Main navigation",
|
|
2081
|
-
children:
|
|
1764
|
+
children: e
|
|
2082
1765
|
}
|
|
2083
1766
|
);
|
|
2084
1767
|
}
|
|
2085
|
-
function
|
|
2086
|
-
var
|
|
2087
|
-
className:
|
|
2088
|
-
} =
|
|
1768
|
+
function ht(r) {
|
|
1769
|
+
var t = r, {
|
|
1770
|
+
className: e = ""
|
|
1771
|
+
} = t, a = p(t, [
|
|
2089
1772
|
"className"
|
|
2090
1773
|
]);
|
|
2091
|
-
return /* @__PURE__ */
|
|
1774
|
+
return /* @__PURE__ */ l(
|
|
2092
1775
|
"div",
|
|
2093
|
-
|
|
1776
|
+
f({
|
|
2094
1777
|
role: "separator",
|
|
2095
1778
|
className: `
|
|
2096
1779
|
h-px
|
|
2097
1780
|
bg-line-default
|
|
2098
|
-
${
|
|
2099
|
-
${
|
|
1781
|
+
${i("sm", "my")}
|
|
1782
|
+
${e}
|
|
2100
1783
|
`
|
|
2101
1784
|
}, a)
|
|
2102
1785
|
);
|
|
2103
1786
|
}
|
|
2104
|
-
function
|
|
2105
|
-
var s =
|
|
2106
|
-
orientation:
|
|
1787
|
+
function yt(t) {
|
|
1788
|
+
var s = t, {
|
|
1789
|
+
orientation: e = "horizontal",
|
|
2107
1790
|
className: a = ""
|
|
2108
|
-
} = s,
|
|
1791
|
+
} = s, r = p(s, [
|
|
2109
1792
|
"orientation",
|
|
2110
1793
|
"className"
|
|
2111
1794
|
]);
|
|
2112
|
-
return
|
|
1795
|
+
return e === "vertical" ? /* @__PURE__ */ l(
|
|
2113
1796
|
"div",
|
|
2114
|
-
|
|
2115
|
-
className:
|
|
1797
|
+
f({
|
|
1798
|
+
className: n("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
2116
1799
|
role: "separator",
|
|
2117
1800
|
"aria-orientation": "vertical"
|
|
2118
|
-
},
|
|
2119
|
-
) : /* @__PURE__ */
|
|
1801
|
+
}, r)
|
|
1802
|
+
) : /* @__PURE__ */ l(
|
|
2120
1803
|
"div",
|
|
2121
|
-
|
|
2122
|
-
className:
|
|
1804
|
+
f({
|
|
1805
|
+
className: n(
|
|
2123
1806
|
"w-full",
|
|
2124
1807
|
"h-px",
|
|
2125
1808
|
"bg-line-default",
|
|
2126
|
-
|
|
1809
|
+
i("sm", "my"),
|
|
2127
1810
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
2128
1811
|
"flex-shrink-0",
|
|
2129
1812
|
// Prevenir que separator encolha
|
|
@@ -2136,17 +1819,17 @@ function Ta(r) {
|
|
|
2136
1819
|
willChange: "auto",
|
|
2137
1820
|
transform: "none"
|
|
2138
1821
|
}
|
|
2139
|
-
},
|
|
1822
|
+
}, r)
|
|
2140
1823
|
);
|
|
2141
1824
|
}
|
|
2142
|
-
const
|
|
1825
|
+
const Je = M(
|
|
2143
1826
|
// Base classes
|
|
2144
|
-
|
|
1827
|
+
n("w-full", "flex", "flex-col", i("sm", "gap")),
|
|
2145
1828
|
{
|
|
2146
1829
|
variants: {
|
|
2147
1830
|
variant: {
|
|
2148
|
-
default:
|
|
2149
|
-
compact:
|
|
1831
|
+
default: n(i("base", "mb")),
|
|
1832
|
+
compact: n(i("sm", "mb"))
|
|
2150
1833
|
}
|
|
2151
1834
|
},
|
|
2152
1835
|
defaultVariants: {
|
|
@@ -2154,15 +1837,15 @@ const ia = j(
|
|
|
2154
1837
|
}
|
|
2155
1838
|
}
|
|
2156
1839
|
);
|
|
2157
|
-
function
|
|
2158
|
-
var u =
|
|
2159
|
-
title:
|
|
1840
|
+
function vt(c) {
|
|
1841
|
+
var u = c, {
|
|
1842
|
+
title: e,
|
|
2160
1843
|
description: a,
|
|
2161
|
-
breadcrumb:
|
|
2162
|
-
actions:
|
|
1844
|
+
breadcrumb: r,
|
|
1845
|
+
actions: t,
|
|
2163
1846
|
variant: s = "default",
|
|
2164
|
-
className:
|
|
2165
|
-
} = u,
|
|
1847
|
+
className: o
|
|
1848
|
+
} = u, d = p(u, [
|
|
2166
1849
|
"title",
|
|
2167
1850
|
"description",
|
|
2168
1851
|
"breadcrumb",
|
|
@@ -2170,30 +1853,30 @@ function Ma(f) {
|
|
|
2170
1853
|
"variant",
|
|
2171
1854
|
"className"
|
|
2172
1855
|
]);
|
|
2173
|
-
return /* @__PURE__ */ $("div",
|
|
2174
|
-
|
|
1856
|
+
return /* @__PURE__ */ $("div", x(f({ className: n(Je({ variant: s }), o) }, d), { children: [
|
|
1857
|
+
r && r.length > 0 && /* @__PURE__ */ l(Ue, { items: r }),
|
|
2175
1858
|
/* @__PURE__ */ $(
|
|
2176
1859
|
"div",
|
|
2177
1860
|
{
|
|
2178
|
-
className: `flex items-start justify-between ${
|
|
1861
|
+
className: `flex items-start justify-between ${i("base", "gap")}`,
|
|
2179
1862
|
children: [
|
|
2180
1863
|
/* @__PURE__ */ $("div", { className: "flex-1 min-w-0", children: [
|
|
2181
|
-
/* @__PURE__ */
|
|
2182
|
-
|
|
1864
|
+
/* @__PURE__ */ l(
|
|
1865
|
+
Q,
|
|
2183
1866
|
{
|
|
2184
1867
|
variant: "heading",
|
|
2185
1868
|
as: "h1",
|
|
2186
|
-
className: `${
|
|
2187
|
-
children:
|
|
1869
|
+
className: `${i("sm", "mb")} text-2xl font-bold`,
|
|
1870
|
+
children: e
|
|
2188
1871
|
}
|
|
2189
1872
|
),
|
|
2190
|
-
a && /* @__PURE__ */
|
|
1873
|
+
a && /* @__PURE__ */ l(Q, { variant: "body", className: "text-fg-secondary", children: a })
|
|
2191
1874
|
] }),
|
|
2192
|
-
|
|
1875
|
+
t && /* @__PURE__ */ l(
|
|
2193
1876
|
"div",
|
|
2194
1877
|
{
|
|
2195
|
-
className: `flex items-center ${
|
|
2196
|
-
children:
|
|
1878
|
+
className: `flex items-center ${i("sm", "gap")} flex-shrink-0`,
|
|
1879
|
+
children: t
|
|
2197
1880
|
}
|
|
2198
1881
|
)
|
|
2199
1882
|
]
|
|
@@ -2201,25 +1884,25 @@ function Ma(f) {
|
|
|
2201
1884
|
)
|
|
2202
1885
|
] }));
|
|
2203
1886
|
}
|
|
2204
|
-
const
|
|
1887
|
+
const Qe = {
|
|
2205
1888
|
start: "items-start text-left",
|
|
2206
1889
|
center: "items-center text-center"
|
|
2207
|
-
},
|
|
1890
|
+
}, et = {
|
|
2208
1891
|
neutral: "text-fg-tertiary",
|
|
2209
1892
|
success: "text-fg-success",
|
|
2210
1893
|
warning: "text-fg-warning",
|
|
2211
1894
|
error: "text-fg-error"
|
|
2212
1895
|
};
|
|
2213
|
-
function
|
|
2214
|
-
var
|
|
2215
|
-
value:
|
|
1896
|
+
function wt(u) {
|
|
1897
|
+
var g = u, {
|
|
1898
|
+
value: e,
|
|
2216
1899
|
label: a,
|
|
2217
|
-
hint:
|
|
2218
|
-
icon:
|
|
1900
|
+
hint: r,
|
|
1901
|
+
icon: t,
|
|
2219
1902
|
align: s = "start",
|
|
2220
|
-
tone:
|
|
2221
|
-
className:
|
|
2222
|
-
} =
|
|
1903
|
+
tone: o = "neutral",
|
|
1904
|
+
className: d
|
|
1905
|
+
} = g, c = p(g, [
|
|
2223
1906
|
"value",
|
|
2224
1907
|
"label",
|
|
2225
1908
|
"hint",
|
|
@@ -2228,241 +1911,241 @@ function za(u) {
|
|
|
2228
1911
|
"tone",
|
|
2229
1912
|
"className"
|
|
2230
1913
|
]);
|
|
2231
|
-
const
|
|
1914
|
+
const y = e == null;
|
|
2232
1915
|
return /* @__PURE__ */ $(
|
|
2233
1916
|
"div",
|
|
2234
|
-
|
|
2235
|
-
className:
|
|
1917
|
+
x(f({
|
|
1918
|
+
className: n(
|
|
2236
1919
|
"bg-surface-base flex-1 flex flex-col",
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
1920
|
+
i("base", "p"),
|
|
1921
|
+
i("xs", "gap-y"),
|
|
1922
|
+
Qe[s],
|
|
1923
|
+
d
|
|
2241
1924
|
)
|
|
2242
|
-
},
|
|
1925
|
+
}, c), {
|
|
2243
1926
|
children: [
|
|
2244
|
-
|
|
2245
|
-
|
|
1927
|
+
t ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: t }) : null,
|
|
1928
|
+
y ? /* @__PURE__ */ l(
|
|
2246
1929
|
"span",
|
|
2247
1930
|
{
|
|
2248
1931
|
"aria-label": "No data",
|
|
2249
1932
|
className: "text-fg-tertiary text-2xl font-semibold leading-tight",
|
|
2250
1933
|
children: "—"
|
|
2251
1934
|
}
|
|
2252
|
-
) : /* @__PURE__ */
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
|
|
1935
|
+
) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
1936
|
+
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
|
|
1937
|
+
r ? /* @__PURE__ */ l("span", { className: n("text-xs", et[o]), children: r }) : null
|
|
2255
1938
|
]
|
|
2256
1939
|
})
|
|
2257
1940
|
);
|
|
2258
1941
|
}
|
|
2259
|
-
const
|
|
1942
|
+
const tt = {
|
|
2260
1943
|
2: "md:grid-cols-2",
|
|
2261
1944
|
3: "md:grid-cols-3",
|
|
2262
1945
|
4: "md:grid-cols-4"
|
|
2263
1946
|
};
|
|
2264
|
-
function
|
|
2265
|
-
var
|
|
2266
|
-
layout:
|
|
1947
|
+
function Nt(o) {
|
|
1948
|
+
var d = o, {
|
|
1949
|
+
layout: e = "grid",
|
|
2267
1950
|
cols: a = 4,
|
|
2268
|
-
className:
|
|
2269
|
-
children:
|
|
2270
|
-
} =
|
|
1951
|
+
className: r,
|
|
1952
|
+
children: t
|
|
1953
|
+
} = d, s = p(d, [
|
|
2271
1954
|
"layout",
|
|
2272
1955
|
"cols",
|
|
2273
1956
|
"className",
|
|
2274
1957
|
"children"
|
|
2275
1958
|
]);
|
|
2276
|
-
const
|
|
2277
|
-
return /* @__PURE__ */
|
|
1959
|
+
const c = e === "grid";
|
|
1960
|
+
return /* @__PURE__ */ l(
|
|
2278
1961
|
"div",
|
|
2279
|
-
|
|
2280
|
-
className:
|
|
1962
|
+
x(f({
|
|
1963
|
+
className: n(
|
|
2281
1964
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
1965
|
+
C("lg"),
|
|
1966
|
+
c ? `grid grid-cols-2 ${tt[a]}` : "flex",
|
|
1967
|
+
r
|
|
2285
1968
|
)
|
|
2286
1969
|
}, s), {
|
|
2287
|
-
children:
|
|
1970
|
+
children: t
|
|
2288
1971
|
})
|
|
2289
1972
|
);
|
|
2290
1973
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var
|
|
2293
|
-
const
|
|
2294
|
-
return /* @__PURE__ */
|
|
1974
|
+
function $t(s) {
|
|
1975
|
+
var o = s, { column: e, row: a, className: r = "" } = o, t = p(o, ["column", "row", "className"]);
|
|
1976
|
+
const d = e.key in a ? a[e.key] : void 0;
|
|
1977
|
+
return /* @__PURE__ */ l(
|
|
2295
1978
|
"td",
|
|
2296
|
-
|
|
2297
|
-
className: `${
|
|
2298
|
-
},
|
|
2299
|
-
children:
|
|
1979
|
+
x(f({
|
|
1980
|
+
className: `${i("lg", "px")} ${i("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
1981
|
+
}, t), {
|
|
1982
|
+
children: e.render ? e.render(d, a) : String(d != null ? d : "")
|
|
2300
1983
|
})
|
|
2301
1984
|
);
|
|
2302
1985
|
}
|
|
2303
|
-
function
|
|
2304
|
-
items:
|
|
1986
|
+
function St({
|
|
1987
|
+
items: e,
|
|
2305
1988
|
orientation: a = "vertical",
|
|
2306
|
-
className:
|
|
1989
|
+
className: r = ""
|
|
2307
1990
|
}) {
|
|
2308
|
-
return a === "horizontal" ? /* @__PURE__ */
|
|
2309
|
-
const
|
|
2310
|
-
return /* @__PURE__ */
|
|
2311
|
-
/* @__PURE__ */
|
|
1991
|
+
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, s) => {
|
|
1992
|
+
const o = t.status || (s === 0 ? "active" : s < e.findIndex((c) => c.status === "active") ? "completed" : "default"), d = s === e.length - 1;
|
|
1993
|
+
return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ $("div", { className: "flex flex-col items-center flex-1", children: [
|
|
1994
|
+
/* @__PURE__ */ l(
|
|
2312
1995
|
"div",
|
|
2313
|
-
|
|
1996
|
+
x(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2314
1997
|
className: `
|
|
2315
1998
|
flex
|
|
2316
1999
|
items-center
|
|
2317
2000
|
justify-center
|
|
2318
2001
|
w-10
|
|
2319
2002
|
h-10
|
|
2320
|
-
${
|
|
2003
|
+
${C("full")}
|
|
2321
2004
|
border-2
|
|
2322
|
-
${
|
|
2005
|
+
${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2323
2006
|
`,
|
|
2324
|
-
children:
|
|
2007
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(q, { className: "h-4 w-4" }) : s + 1)
|
|
2325
2008
|
})
|
|
2326
2009
|
),
|
|
2327
|
-
!
|
|
2010
|
+
!d && /* @__PURE__ */ l(
|
|
2328
2011
|
"div",
|
|
2329
2012
|
{
|
|
2330
2013
|
className: `
|
|
2331
2014
|
w-full
|
|
2332
2015
|
h-0.5
|
|
2333
|
-
${
|
|
2334
|
-
${
|
|
2016
|
+
${i("sm", "mt")}
|
|
2017
|
+
${o === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2335
2018
|
`
|
|
2336
2019
|
}
|
|
2337
2020
|
),
|
|
2338
2021
|
/* @__PURE__ */ $(
|
|
2339
2022
|
"div",
|
|
2340
2023
|
{
|
|
2341
|
-
className: `${
|
|
2024
|
+
className: `${i("base", "mt")} text-center ${i("base", "px")}`,
|
|
2342
2025
|
children: [
|
|
2343
|
-
|
|
2026
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2344
2027
|
"p",
|
|
2345
2028
|
{
|
|
2346
|
-
className: `text-xs text-fg-tertiary ${
|
|
2347
|
-
children:
|
|
2029
|
+
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2030
|
+
children: t.timestamp
|
|
2348
2031
|
}
|
|
2349
2032
|
),
|
|
2350
|
-
/* @__PURE__ */
|
|
2351
|
-
|
|
2033
|
+
/* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
|
|
2034
|
+
t.description && /* @__PURE__ */ l(
|
|
2352
2035
|
"p",
|
|
2353
2036
|
{
|
|
2354
|
-
className: `text-xs text-fg-secondary ${
|
|
2355
|
-
children:
|
|
2037
|
+
className: `text-xs text-fg-secondary ${i("xs", "mt")}`,
|
|
2038
|
+
children: t.description
|
|
2356
2039
|
}
|
|
2357
2040
|
),
|
|
2358
|
-
|
|
2041
|
+
t.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: t.content })
|
|
2359
2042
|
]
|
|
2360
2043
|
}
|
|
2361
2044
|
)
|
|
2362
|
-
] }) },
|
|
2363
|
-
}) }) : /* @__PURE__ */
|
|
2364
|
-
const
|
|
2045
|
+
] }) }, t.id);
|
|
2046
|
+
}) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((t, s) => {
|
|
2047
|
+
const o = t.status || (s === 0 ? "active" : s < e.findIndex((c) => c.status === "active") ? "completed" : "default"), d = s === e.length - 1;
|
|
2365
2048
|
return /* @__PURE__ */ $(
|
|
2366
2049
|
"div",
|
|
2367
2050
|
{
|
|
2368
|
-
className: `flex items-start ${
|
|
2051
|
+
className: `flex items-start ${i("base", "gap")}`,
|
|
2369
2052
|
children: [
|
|
2370
2053
|
/* @__PURE__ */ $("div", { className: "flex flex-col items-center", children: [
|
|
2371
|
-
/* @__PURE__ */
|
|
2054
|
+
/* @__PURE__ */ l(
|
|
2372
2055
|
"div",
|
|
2373
|
-
|
|
2056
|
+
x(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2374
2057
|
className: `
|
|
2375
2058
|
flex
|
|
2376
2059
|
items-center
|
|
2377
2060
|
justify-center
|
|
2378
2061
|
w-10
|
|
2379
2062
|
h-10
|
|
2380
|
-
${
|
|
2063
|
+
${C("full")}
|
|
2381
2064
|
border-2
|
|
2382
|
-
${
|
|
2065
|
+
${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2383
2066
|
`,
|
|
2384
|
-
children:
|
|
2067
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(q, { className: "h-4 w-4" }) : s + 1)
|
|
2385
2068
|
})
|
|
2386
2069
|
),
|
|
2387
|
-
!
|
|
2070
|
+
!d && /* @__PURE__ */ l(
|
|
2388
2071
|
"div",
|
|
2389
2072
|
{
|
|
2390
2073
|
className: `
|
|
2391
2074
|
w-0.5
|
|
2392
2075
|
flex-1
|
|
2393
2076
|
min-h-16
|
|
2394
|
-
${
|
|
2395
|
-
${
|
|
2077
|
+
${i("sm", "mt")}
|
|
2078
|
+
${o === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2396
2079
|
`
|
|
2397
2080
|
}
|
|
2398
2081
|
)
|
|
2399
2082
|
] }),
|
|
2400
|
-
/* @__PURE__ */ $("div", { className: `flex-1 ${
|
|
2401
|
-
|
|
2083
|
+
/* @__PURE__ */ $("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
|
|
2084
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2402
2085
|
"p",
|
|
2403
2086
|
{
|
|
2404
|
-
className: `text-xs text-fg-tertiary ${
|
|
2405
|
-
children:
|
|
2087
|
+
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2088
|
+
children: t.timestamp
|
|
2406
2089
|
}
|
|
2407
2090
|
),
|
|
2408
|
-
/* @__PURE__ */
|
|
2091
|
+
/* @__PURE__ */ l(
|
|
2409
2092
|
"h3",
|
|
2410
2093
|
{
|
|
2411
2094
|
className: `
|
|
2412
2095
|
text-base
|
|
2413
2096
|
font-semibold
|
|
2414
|
-
${
|
|
2097
|
+
${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
|
|
2415
2098
|
`,
|
|
2416
|
-
children:
|
|
2099
|
+
children: t.title
|
|
2417
2100
|
}
|
|
2418
2101
|
),
|
|
2419
|
-
|
|
2102
|
+
t.description && /* @__PURE__ */ l(
|
|
2420
2103
|
"p",
|
|
2421
2104
|
{
|
|
2422
|
-
className: `text-sm text-fg-secondary ${
|
|
2423
|
-
children:
|
|
2105
|
+
className: `text-sm text-fg-secondary ${i("xs", "mt")}`,
|
|
2106
|
+
children: t.description
|
|
2424
2107
|
}
|
|
2425
2108
|
),
|
|
2426
|
-
|
|
2109
|
+
t.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: t.content })
|
|
2427
2110
|
] })
|
|
2428
2111
|
]
|
|
2429
2112
|
},
|
|
2430
|
-
|
|
2113
|
+
t.id
|
|
2431
2114
|
);
|
|
2432
2115
|
}) });
|
|
2433
2116
|
}
|
|
2434
2117
|
export {
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2118
|
+
me as Badge,
|
|
2119
|
+
Ue as Breadcrumb,
|
|
2120
|
+
I as Card,
|
|
2121
|
+
Ge as CardActions,
|
|
2122
|
+
Ye as CardBody,
|
|
2123
|
+
Ke as CardHeader,
|
|
2124
|
+
qe as CardSubtitle,
|
|
2125
|
+
Xe as CardTitle,
|
|
2126
|
+
Te as Chip,
|
|
2127
|
+
Pe as Container,
|
|
2128
|
+
pt as DialogFooter,
|
|
2129
|
+
ut as DialogHeader,
|
|
2130
|
+
gt as DrawerFooter,
|
|
2131
|
+
mt as DrawerHeader,
|
|
2132
|
+
dt as ErrorMessage,
|
|
2133
|
+
xt as HeaderActions,
|
|
2134
|
+
bt as HeaderNavigation,
|
|
2135
|
+
ct as Info,
|
|
2136
|
+
Fe as Label,
|
|
2137
|
+
ht as MenuSeparator,
|
|
2138
|
+
yt as NavbarSeparator,
|
|
2139
|
+
vt as PageHeader,
|
|
2140
|
+
Me as Progress,
|
|
2141
|
+
De as Separator,
|
|
2142
|
+
ft as Skeleton,
|
|
2143
|
+
Ie as Spinner,
|
|
2144
|
+
Be as Stack,
|
|
2145
|
+
wt as Stat,
|
|
2146
|
+
Nt as StatGroup,
|
|
2147
|
+
$t as TableCell,
|
|
2148
|
+
Q as Text,
|
|
2149
|
+
St as Timeline
|
|
2467
2150
|
};
|
|
2468
2151
|
//# sourceMappingURL=index.js.map
|