@fabio.caffarello/react-design-system 3.8.0 → 3.10.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 +2 -1
- package/dist/granular/index.js +447 -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/FilterChips/FilterChips.js +67 -0
- package/dist/granular/ui/components/FilterChips/FilterChips.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/index.cjs +46 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1172 -1135
- 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 +882 -1179
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/FilterChips/FilterChips.d.ts +83 -0
- package/dist/ui/components/FilterChips/index.d.ts +2 -0
- package/dist/ui/components/index.d.ts +2 -0
- package/dist/ui/server.d.ts +2 -0
- package/package.json +9 -2
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
|
+
}, g = (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 v } 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 V {
|
|
|
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 N {
|
|
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 k {
|
|
|
163
163
|
}[a] || String(a);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
X(N, "BASE_UNIT", 4);
|
|
167
|
+
const ue = {
|
|
168
168
|
// Micro spacing (0-14px)
|
|
169
|
-
none:
|
|
170
|
-
"0.5":
|
|
169
|
+
none: N.create(0),
|
|
170
|
+
"0.5": N.create(0.5),
|
|
171
171
|
// 2px (half-step)
|
|
172
|
-
xs:
|
|
172
|
+
xs: N.create(1),
|
|
173
173
|
// 4px
|
|
174
|
-
"1.5":
|
|
174
|
+
"1.5": N.create(1.5),
|
|
175
175
|
// 6px (half-step)
|
|
176
|
-
sm:
|
|
176
|
+
sm: N.create(2),
|
|
177
177
|
// 8px
|
|
178
|
-
"2.5":
|
|
178
|
+
"2.5": N.create(2.5),
|
|
179
179
|
// 10px (half-step)
|
|
180
|
-
md:
|
|
180
|
+
md: N.create(3),
|
|
181
181
|
// 12px
|
|
182
|
-
"3.5":
|
|
182
|
+
"3.5": N.create(3.5),
|
|
183
183
|
// 14px (half-step)
|
|
184
184
|
// Standard spacing (16-32px)
|
|
185
|
-
base:
|
|
185
|
+
base: N.create(4),
|
|
186
186
|
// 16px
|
|
187
|
-
lg:
|
|
187
|
+
lg: N.create(6),
|
|
188
188
|
// 24px
|
|
189
|
-
xl:
|
|
189
|
+
xl: N.create(8),
|
|
190
190
|
// 32px
|
|
191
191
|
// Large spacing (40-64px)
|
|
192
|
-
"2xl":
|
|
192
|
+
"2xl": N.create(10),
|
|
193
193
|
// 40px
|
|
194
|
-
"3xl":
|
|
194
|
+
"3xl": N.create(12),
|
|
195
195
|
// 48px
|
|
196
|
-
"4xl":
|
|
196
|
+
"4xl": N.create(16),
|
|
197
197
|
// 64px
|
|
198
198
|
// Extra large spacing (80px+)
|
|
199
|
-
"5xl":
|
|
199
|
+
"5xl": N.create(20),
|
|
200
200
|
// 80px
|
|
201
|
-
"6xl":
|
|
201
|
+
"6xl": N.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
228
|
class $ {
|
|
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 $ {
|
|
|
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 $ {
|
|
|
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,23 +280,23 @@ class $ {
|
|
|
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
298
|
$.createFontWeight("light"), $.createFontWeight("normal"), $.createFontWeight("medium"), $.createFontWeight("semibold"), $.createFontWeight("bold");
|
|
299
|
-
const
|
|
299
|
+
const B = {
|
|
300
300
|
// Headings
|
|
301
301
|
h1: $.create("4xl", "tight", "bold"),
|
|
302
302
|
h2: $.create("3xl", "tight", "bold"),
|
|
@@ -313,33 +313,33 @@ const Z = {
|
|
|
313
313
|
caption: $.create("xs", "normal", "normal"),
|
|
314
314
|
button: $.create("base", "normal", "medium")
|
|
315
315
|
};
|
|
316
|
-
function R(
|
|
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 _ = (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 _ = (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 _ = (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 _ = (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 _ = (t, a) => {
|
|
|
470
470
|
style: "solid"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
),
|
|
474
|
-
|
|
475
|
-
var
|
|
473
|
+
), me = D(
|
|
474
|
+
_(function(x, u) {
|
|
475
|
+
var y = x, {
|
|
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,148 +487,148 @@ const _ = (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
|
+
g(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
|
-
function
|
|
536
|
-
return
|
|
535
|
+
function xe(...e) {
|
|
536
|
+
return k.useCallback(ge(...e), e);
|
|
537
537
|
}
|
|
538
538
|
// @__NO_SIDE_EFFECTS__
|
|
539
|
-
function
|
|
540
|
-
const a =
|
|
541
|
-
var
|
|
542
|
-
let
|
|
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
543
|
const u = [];
|
|
544
|
-
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
let L = "child" in
|
|
550
|
-
|
|
544
|
+
Y(s) && typeof H == "function" && (s = H(s._payload)), k.Children.forEach(s, (w) => {
|
|
545
|
+
var S;
|
|
546
|
+
if ($e(w)) {
|
|
547
|
+
c = !0;
|
|
548
|
+
const A = w;
|
|
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
551
|
} else
|
|
552
|
-
u.push(
|
|
553
|
-
}),
|
|
552
|
+
u.push(w);
|
|
553
|
+
}), d ? d = k.cloneElement(d, void 0, u) : (
|
|
554
554
|
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
555
555
|
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
556
556
|
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
557
557
|
// itself as the slot target — throw a descriptive error below instead.
|
|
558
|
-
!
|
|
558
|
+
!c && k.Children.count(s) === 1 && k.isValidElement(s) && (d = s)
|
|
559
559
|
);
|
|
560
|
-
const
|
|
561
|
-
if (!
|
|
560
|
+
const x = d ? Ne(d) : void 0, y = xe(t, x);
|
|
561
|
+
if (!d) {
|
|
562
562
|
if (s || s === 0)
|
|
563
563
|
throw new Error(
|
|
564
|
-
|
|
564
|
+
c ? Ee(e) : ke(e)
|
|
565
565
|
);
|
|
566
566
|
return s;
|
|
567
567
|
}
|
|
568
|
-
const
|
|
569
|
-
return
|
|
568
|
+
const b = we(o, (h = d.props) != null ? h : {});
|
|
569
|
+
return d.type !== k.Fragment && (b.ref = t ? y : x), k.cloneElement(d, b);
|
|
570
570
|
});
|
|
571
|
-
return a.displayName = `${
|
|
571
|
+
return a.displayName = `${e}.Slot`, a;
|
|
572
572
|
}
|
|
573
|
-
var
|
|
574
|
-
if ("child" in
|
|
575
|
-
const
|
|
576
|
-
return
|
|
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
577
|
}
|
|
578
|
-
return
|
|
578
|
+
return k.isValidElement(a) ? a : null;
|
|
579
579
|
};
|
|
580
|
-
function
|
|
581
|
-
const
|
|
582
|
-
for (const
|
|
583
|
-
const s = t
|
|
584
|
-
/^on[A-Z]/.test(
|
|
585
|
-
const u =
|
|
586
|
-
return s(...
|
|
587
|
-
} : s && (
|
|
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
588
|
}
|
|
589
|
-
return
|
|
589
|
+
return f(f({}, e), r);
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
var
|
|
593
|
-
let a = (
|
|
594
|
-
return
|
|
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);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function $e(e) {
|
|
597
|
+
return k.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ye;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
function
|
|
601
|
-
return
|
|
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);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
return typeof
|
|
603
|
+
function Ce(e) {
|
|
604
|
+
return typeof e == "object" && e !== null && "then" in e;
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
const
|
|
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(
|
|
608
608
|
// Base classes
|
|
609
|
-
|
|
609
|
+
n(
|
|
610
610
|
"inline-flex",
|
|
611
611
|
"items-center",
|
|
612
612
|
"font-medium",
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
C("full"),
|
|
614
|
+
i("xs", "gap")
|
|
615
615
|
),
|
|
616
616
|
{
|
|
617
617
|
variants: {
|
|
618
618
|
variant: {
|
|
619
|
-
default:
|
|
619
|
+
default: n(
|
|
620
620
|
"bg-surface-muted",
|
|
621
621
|
"text-fg-primary",
|
|
622
622
|
"border",
|
|
623
623
|
"border-line-default"
|
|
624
624
|
),
|
|
625
|
-
outlined:
|
|
625
|
+
outlined: n(
|
|
626
626
|
"bg-transparent",
|
|
627
627
|
"text-fg-primary",
|
|
628
628
|
"border",
|
|
629
629
|
"border-line-default"
|
|
630
630
|
),
|
|
631
|
-
filled:
|
|
631
|
+
filled: n(
|
|
632
632
|
"bg-surface-brand-strong",
|
|
633
633
|
"text-fg-inverse",
|
|
634
634
|
"border",
|
|
@@ -636,24 +636,24 @@ const ne = _(
|
|
|
636
636
|
)
|
|
637
637
|
},
|
|
638
638
|
size: {
|
|
639
|
-
sm:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
639
|
+
sm: n(
|
|
640
|
+
i("xs", "px"),
|
|
641
|
+
i("xs", "py"),
|
|
642
|
+
E("caption")
|
|
643
643
|
),
|
|
644
|
-
md:
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
644
|
+
md: n(
|
|
645
|
+
i("sm", "px"),
|
|
646
|
+
i("xs", "py"),
|
|
647
|
+
E("bodySmall")
|
|
648
648
|
),
|
|
649
|
-
lg:
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
649
|
+
lg: n(
|
|
650
|
+
i("md", "px"),
|
|
651
|
+
i("sm", "py"),
|
|
652
|
+
E("body")
|
|
653
653
|
)
|
|
654
654
|
},
|
|
655
655
|
selected: {
|
|
656
|
-
true:
|
|
656
|
+
true: n(
|
|
657
657
|
"bg-surface-brand-strong",
|
|
658
658
|
"text-fg-inverse",
|
|
659
659
|
"border",
|
|
@@ -693,70 +693,70 @@ const ne = _(
|
|
|
693
693
|
disabled: !1
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
),
|
|
696
|
+
), Te = _(function(a, r) {
|
|
697
697
|
const {
|
|
698
|
-
children:
|
|
698
|
+
children: t,
|
|
699
699
|
variant: s = "default",
|
|
700
|
-
size:
|
|
701
|
-
selected:
|
|
702
|
-
disabled:
|
|
700
|
+
size: o = "md",
|
|
701
|
+
selected: d = !1,
|
|
702
|
+
disabled: c = !1,
|
|
703
703
|
className: u = "",
|
|
704
|
-
"aria-label":
|
|
705
|
-
tabIndex:
|
|
706
|
-
asChild:
|
|
707
|
-
} = a,
|
|
708
|
-
if (
|
|
709
|
-
if (typeof
|
|
710
|
-
if (typeof
|
|
711
|
-
const
|
|
712
|
-
if (
|
|
713
|
-
return
|
|
704
|
+
"aria-label": x,
|
|
705
|
+
tabIndex: y,
|
|
706
|
+
asChild: b = !1
|
|
707
|
+
} = a, h = (() => {
|
|
708
|
+
if (x) return x;
|
|
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;
|
|
714
714
|
}
|
|
715
715
|
})();
|
|
716
|
-
if (
|
|
717
|
-
return /* @__PURE__ */
|
|
718
|
-
|
|
716
|
+
if (b)
|
|
717
|
+
return /* @__PURE__ */ l(
|
|
718
|
+
he,
|
|
719
719
|
{
|
|
720
|
-
ref:
|
|
721
|
-
className:
|
|
722
|
-
|
|
720
|
+
ref: r,
|
|
721
|
+
className: n(
|
|
722
|
+
Z({ variant: s, size: o, selected: d, disabled: c }),
|
|
723
723
|
u
|
|
724
724
|
),
|
|
725
|
-
"aria-label":
|
|
726
|
-
"aria-disabled":
|
|
727
|
-
tabIndex:
|
|
728
|
-
children:
|
|
725
|
+
"aria-label": x,
|
|
726
|
+
"aria-disabled": c || void 0,
|
|
727
|
+
tabIndex: y,
|
|
728
|
+
children: t
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
|
-
const { onRemove:
|
|
732
|
-
|
|
731
|
+
const { onRemove: w, onClick: S } = a, A = S !== void 0, L = A && !c, V = (T) => {
|
|
732
|
+
c || (T.key === "Enter" || T.key === " ") && (T.preventDefault(), S == null || S());
|
|
733
733
|
};
|
|
734
|
-
return /* @__PURE__ */
|
|
734
|
+
return /* @__PURE__ */ v(
|
|
735
735
|
"div",
|
|
736
736
|
{
|
|
737
|
-
ref:
|
|
738
|
-
className:
|
|
739
|
-
|
|
740
|
-
|
|
737
|
+
ref: r,
|
|
738
|
+
className: n(
|
|
739
|
+
Z({ variant: s, size: o, selected: d, disabled: c }),
|
|
740
|
+
w && i("xs", "pr"),
|
|
741
741
|
u
|
|
742
742
|
),
|
|
743
|
-
"aria-disabled":
|
|
743
|
+
"aria-disabled": c,
|
|
744
744
|
children: [
|
|
745
|
-
|
|
745
|
+
A ? /* @__PURE__ */ l(
|
|
746
746
|
"button",
|
|
747
747
|
{
|
|
748
748
|
type: "button",
|
|
749
|
-
onClick:
|
|
750
|
-
onKeyDown:
|
|
751
|
-
disabled:
|
|
752
|
-
"aria-pressed":
|
|
753
|
-
"aria-label":
|
|
754
|
-
tabIndex:
|
|
755
|
-
className:
|
|
749
|
+
onClick: c ? void 0 : S,
|
|
750
|
+
onKeyDown: V,
|
|
751
|
+
disabled: c,
|
|
752
|
+
"aria-pressed": d ? !0 : void 0,
|
|
753
|
+
"aria-label": x || h,
|
|
754
|
+
tabIndex: y !== void 0 ? y : L ? 0 : void 0,
|
|
755
|
+
className: n(
|
|
756
756
|
"flex-1",
|
|
757
757
|
"bg-transparent",
|
|
758
758
|
"border-0",
|
|
759
|
-
|
|
759
|
+
i("none", "p"),
|
|
760
760
|
"text-inherit",
|
|
761
761
|
"text-left",
|
|
762
762
|
"cursor-pointer",
|
|
@@ -764,213 +764,120 @@ const ne = _(
|
|
|
764
764
|
"focus:ring-2",
|
|
765
765
|
"focus:ring-line-focus",
|
|
766
766
|
"focus:ring-offset-2",
|
|
767
|
-
|
|
767
|
+
C("full")
|
|
768
768
|
),
|
|
769
|
-
children:
|
|
769
|
+
children: t
|
|
770
770
|
}
|
|
771
|
-
) : /* @__PURE__ */
|
|
772
|
-
|
|
771
|
+
) : /* @__PURE__ */ l("span", { children: t }),
|
|
772
|
+
w && !c && /* @__PURE__ */ l(
|
|
773
773
|
"button",
|
|
774
774
|
{
|
|
775
775
|
type: "button",
|
|
776
|
-
onClick: (
|
|
777
|
-
|
|
776
|
+
onClick: (T) => {
|
|
777
|
+
T.stopPropagation(), w();
|
|
778
778
|
},
|
|
779
|
-
className:
|
|
780
|
-
|
|
779
|
+
className: n(
|
|
780
|
+
i("xs", "ml"),
|
|
781
781
|
"hover:bg-tint-hover",
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
C("full"),
|
|
783
|
+
i("xs", "p"),
|
|
784
784
|
"transition-colors",
|
|
785
785
|
"focus:outline-none",
|
|
786
786
|
"focus:ring-2",
|
|
787
787
|
"focus:ring-line-focus",
|
|
788
788
|
"focus:ring-offset-1"
|
|
789
789
|
),
|
|
790
|
-
"aria-label": `Remove ${
|
|
791
|
-
children: /* @__PURE__ */
|
|
790
|
+
"aria-label": `Remove ${h || "chip"}`,
|
|
791
|
+
children: /* @__PURE__ */ l(oe, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
792
792
|
}
|
|
793
793
|
)
|
|
794
794
|
]
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
797
|
});
|
|
798
|
-
|
|
799
|
-
function
|
|
800
|
-
var
|
|
801
|
-
message:
|
|
798
|
+
Te.displayName = "Chip";
|
|
799
|
+
function dt(s) {
|
|
800
|
+
var o = s, {
|
|
801
|
+
message: e,
|
|
802
802
|
id: a,
|
|
803
|
-
className:
|
|
804
|
-
} =
|
|
803
|
+
className: r = ""
|
|
804
|
+
} = o, t = p(o, [
|
|
805
805
|
"message",
|
|
806
806
|
"id",
|
|
807
807
|
"className"
|
|
808
808
|
]);
|
|
809
|
-
const
|
|
810
|
-
|
|
811
|
-
|
|
809
|
+
const d = [
|
|
810
|
+
i("xs", "mt"),
|
|
811
|
+
E("bodySmall"),
|
|
812
812
|
"text-fg-error",
|
|
813
813
|
"flex",
|
|
814
814
|
"items-center",
|
|
815
|
-
|
|
816
|
-
],
|
|
817
|
-
return /* @__PURE__ */
|
|
818
|
-
/* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */
|
|
815
|
+
i("xs", "gap")
|
|
816
|
+
], c = n(...d, r);
|
|
817
|
+
return /* @__PURE__ */ v("div", g(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 })
|
|
820
820
|
] }));
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
var s =
|
|
824
|
-
variant:
|
|
822
|
+
function ct(t) {
|
|
823
|
+
var s = t, {
|
|
824
|
+
variant: e = "info",
|
|
825
825
|
className: a
|
|
826
|
-
} = s,
|
|
826
|
+
} = s, r = p(s, [
|
|
827
827
|
"variant",
|
|
828
828
|
"className"
|
|
829
829
|
]);
|
|
830
|
-
const
|
|
831
|
-
warning:
|
|
832
|
-
error:
|
|
833
|
-
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")
|
|
834
834
|
};
|
|
835
|
-
return /* @__PURE__ */
|
|
835
|
+
return /* @__PURE__ */ l(
|
|
836
836
|
"div",
|
|
837
|
-
|
|
837
|
+
f({
|
|
838
838
|
role: "alert",
|
|
839
|
-
className:
|
|
839
|
+
className: n(
|
|
840
840
|
"border",
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
841
|
+
i("base", "px"),
|
|
842
|
+
i("sm", "py"),
|
|
843
|
+
C("lg"),
|
|
844
|
+
o[e],
|
|
845
845
|
a
|
|
846
846
|
)
|
|
847
|
-
},
|
|
847
|
+
}, r)
|
|
848
848
|
);
|
|
849
849
|
}
|
|
850
|
-
const
|
|
850
|
+
const Le = n(
|
|
851
851
|
"block",
|
|
852
|
-
|
|
853
|
-
|
|
852
|
+
E("label"),
|
|
853
|
+
j("label"),
|
|
854
854
|
"text-fg-primary"
|
|
855
|
-
),
|
|
855
|
+
), Ae = {
|
|
856
856
|
default: "",
|
|
857
|
-
required:
|
|
857
|
+
required: n(
|
|
858
858
|
"after:content-['*']",
|
|
859
|
-
`after:${
|
|
859
|
+
`after:${i("0.5", "ml")}`,
|
|
860
860
|
"after:text-fg-error"
|
|
861
861
|
),
|
|
862
|
-
optional:
|
|
862
|
+
optional: n(
|
|
863
863
|
"after:content-['(optional)']",
|
|
864
|
-
`after:${
|
|
864
|
+
`after:${i("xs", "ml")}`,
|
|
865
865
|
"after:text-fg-tertiary",
|
|
866
866
|
"after:font-normal"
|
|
867
867
|
)
|
|
868
|
-
},
|
|
869
|
-
|
|
870
|
-
var
|
|
871
|
-
const u =
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
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
|
|
875
875
|
);
|
|
876
|
-
return /* @__PURE__ */
|
|
876
|
+
return /* @__PURE__ */ l("label", g(f({ ref: o, className: u }, s), { children: t }));
|
|
877
877
|
})
|
|
878
878
|
);
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
const r = je(t), s = _e(t);
|
|
882
|
-
return {
|
|
883
|
-
hex: t,
|
|
884
|
-
rgb: r,
|
|
885
|
-
hsl: s,
|
|
886
|
-
cssVar: `var(--color-${a}-${n})`,
|
|
887
|
-
tailwind: `${a}-${n}`
|
|
888
|
-
};
|
|
889
|
-
}
|
|
890
|
-
function je(t) {
|
|
891
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
892
|
-
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
893
|
-
}
|
|
894
|
-
function _e(t) {
|
|
895
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
896
|
-
if (!a) return "0, 0%, 0%";
|
|
897
|
-
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), o = Math.min(n, r, s);
|
|
898
|
-
let f = 0, u = 0;
|
|
899
|
-
const b = (i + o) / 2;
|
|
900
|
-
if (i !== o) {
|
|
901
|
-
const m = i - o;
|
|
902
|
-
switch (u = b > 0.5 ? m / (2 - i - o) : m / (i + o), i) {
|
|
903
|
-
case n:
|
|
904
|
-
f = ((r - s) / m + (r < s ? 6 : 0)) / 6;
|
|
905
|
-
break;
|
|
906
|
-
case r:
|
|
907
|
-
f = ((s - n) / m + 2) / 6;
|
|
908
|
-
break;
|
|
909
|
-
case s:
|
|
910
|
-
f = ((n - r) / m + 4) / 6;
|
|
911
|
-
break;
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
return `${Math.round(f * 360)}, ${Math.round(u * 100)}%, ${Math.round(b * 100)}%`;
|
|
915
|
-
}
|
|
916
|
-
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);
|
|
917
|
-
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);
|
|
918
|
-
function e(t, a, n) {
|
|
919
|
-
const r = He(t), s = Be(t);
|
|
920
|
-
return {
|
|
921
|
-
hex: t,
|
|
922
|
-
rgb: r,
|
|
923
|
-
hsl: s,
|
|
924
|
-
cssVar: `var(--color-${a}-${n})`,
|
|
925
|
-
tailwind: `${a}-${n}`
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
function He(t) {
|
|
929
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
930
|
-
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
931
|
-
}
|
|
932
|
-
function Be(t) {
|
|
933
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
934
|
-
if (!a) return "0, 0%, 0%";
|
|
935
|
-
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), o = Math.min(n, r, s);
|
|
936
|
-
let f = 0, u = 0;
|
|
937
|
-
const b = (i + o) / 2;
|
|
938
|
-
if (i !== o) {
|
|
939
|
-
const m = i - o;
|
|
940
|
-
switch (u = b > 0.5 ? m / (2 - i - o) : m / (i + o), i) {
|
|
941
|
-
case n:
|
|
942
|
-
f = ((r - s) / m + (r < s ? 6 : 0)) / 6;
|
|
943
|
-
break;
|
|
944
|
-
case r:
|
|
945
|
-
f = ((s - n) / m + 2) / 6;
|
|
946
|
-
break;
|
|
947
|
-
case s:
|
|
948
|
-
f = ((n - r) / m + 4) / 6;
|
|
949
|
-
break;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
return `${Math.round(f * 360)}, ${Math.round(u * 100)}%, ${Math.round(b * 100)}%`;
|
|
953
|
-
}
|
|
954
|
-
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);
|
|
955
|
-
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);
|
|
956
|
-
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);
|
|
957
|
-
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);
|
|
958
|
-
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);
|
|
959
|
-
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);
|
|
960
|
-
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);
|
|
961
|
-
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);
|
|
962
|
-
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);
|
|
963
|
-
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);
|
|
964
|
-
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);
|
|
965
|
-
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);
|
|
966
|
-
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);
|
|
967
|
-
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);
|
|
968
|
-
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);
|
|
969
|
-
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);
|
|
970
|
-
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);
|
|
971
|
-
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);
|
|
972
|
-
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);
|
|
973
|
-
class j {
|
|
879
|
+
Fe.displayName = "Label";
|
|
880
|
+
class z {
|
|
974
881
|
/**
|
|
975
882
|
* Create a shadow token
|
|
976
883
|
*/
|
|
@@ -1014,261 +921,19 @@ class j {
|
|
|
1014
921
|
}[a];
|
|
1015
922
|
}
|
|
1016
923
|
}
|
|
1017
|
-
const
|
|
1018
|
-
none:
|
|
1019
|
-
sm:
|
|
1020
|
-
md:
|
|
1021
|
-
lg:
|
|
1022
|
-
xl:
|
|
1023
|
-
"2xl":
|
|
1024
|
-
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")
|
|
1025
932
|
};
|
|
1026
|
-
function
|
|
1027
|
-
return
|
|
1028
|
-
}
|
|
1029
|
-
class A {
|
|
1030
|
-
/**
|
|
1031
|
-
* Create a border width token
|
|
1032
|
-
*/
|
|
1033
|
-
static createWidth(a) {
|
|
1034
|
-
const r = {
|
|
1035
|
-
none: {
|
|
1036
|
-
px: 0,
|
|
1037
|
-
tailwind: "border-0"
|
|
1038
|
-
},
|
|
1039
|
-
thin: {
|
|
1040
|
-
px: 1,
|
|
1041
|
-
tailwind: "border"
|
|
1042
|
-
},
|
|
1043
|
-
base: {
|
|
1044
|
-
px: 1,
|
|
1045
|
-
tailwind: "border"
|
|
1046
|
-
},
|
|
1047
|
-
medium: {
|
|
1048
|
-
px: 2,
|
|
1049
|
-
tailwind: "border-2"
|
|
1050
|
-
},
|
|
1051
|
-
thick: {
|
|
1052
|
-
px: 4,
|
|
1053
|
-
tailwind: "border-4"
|
|
1054
|
-
}
|
|
1055
|
-
}[a];
|
|
1056
|
-
return {
|
|
1057
|
-
value: r.px,
|
|
1058
|
-
px: `${r.px}px`,
|
|
1059
|
-
tailwind: r.tailwind
|
|
1060
|
-
};
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* Create a complete border token
|
|
1064
|
-
*/
|
|
1065
|
-
static create(a, n = "solid") {
|
|
1066
|
-
return {
|
|
1067
|
-
width: this.createWidth(a),
|
|
1068
|
-
style: n,
|
|
1069
|
-
description: `${a} ${n} border`
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
933
|
+
function P(e) {
|
|
934
|
+
return Re[e].tailwind;
|
|
1072
935
|
}
|
|
1073
|
-
|
|
1074
|
-
class B {
|
|
1075
|
-
/**
|
|
1076
|
-
* Create breakpoint token
|
|
1077
|
-
*/
|
|
1078
|
-
static create(a) {
|
|
1079
|
-
const r = {
|
|
1080
|
-
sm: { minWidth: 640, tailwind: "sm" },
|
|
1081
|
-
md: { minWidth: 768, tailwind: "md" },
|
|
1082
|
-
lg: { minWidth: 1024, tailwind: "lg" },
|
|
1083
|
-
xl: { minWidth: 1280, tailwind: "xl" },
|
|
1084
|
-
"2xl": { minWidth: 1536, tailwind: "2xl" }
|
|
1085
|
-
}[a];
|
|
1086
|
-
return {
|
|
1087
|
-
name: a,
|
|
1088
|
-
minWidth: r.minWidth,
|
|
1089
|
-
px: `${r.minWidth}px`,
|
|
1090
|
-
rem: `${r.minWidth / 16}rem`,
|
|
1091
|
-
tailwind: r.tailwind
|
|
1092
|
-
};
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
B.create("sm"), B.create("md"), B.create("lg"), B.create("xl"), B.create("2xl");
|
|
1096
|
-
class W {
|
|
1097
|
-
/**
|
|
1098
|
-
* Create an animation token
|
|
1099
|
-
*/
|
|
1100
|
-
static create(a, n = "ease-in-out") {
|
|
1101
|
-
const r = {
|
|
1102
|
-
fast: {
|
|
1103
|
-
value: "150ms",
|
|
1104
|
-
ms: 150,
|
|
1105
|
-
tailwind: "duration-150"
|
|
1106
|
-
},
|
|
1107
|
-
base: {
|
|
1108
|
-
value: "200ms",
|
|
1109
|
-
ms: 200,
|
|
1110
|
-
tailwind: "duration-200"
|
|
1111
|
-
},
|
|
1112
|
-
slow: {
|
|
1113
|
-
value: "300ms",
|
|
1114
|
-
ms: 300,
|
|
1115
|
-
tailwind: "duration-300"
|
|
1116
|
-
},
|
|
1117
|
-
slower: {
|
|
1118
|
-
value: "500ms",
|
|
1119
|
-
ms: 500,
|
|
1120
|
-
tailwind: "duration-500"
|
|
1121
|
-
}
|
|
1122
|
-
}, s = {
|
|
1123
|
-
"ease-in": {
|
|
1124
|
-
value: "cubic-bezier(0.4, 0, 1, 1)",
|
|
1125
|
-
tailwind: "ease-in",
|
|
1126
|
-
description: "Slow start, fast end"
|
|
1127
|
-
},
|
|
1128
|
-
"ease-out": {
|
|
1129
|
-
value: "cubic-bezier(0, 0, 0.2, 1)",
|
|
1130
|
-
tailwind: "ease-out",
|
|
1131
|
-
description: "Fast start, slow end"
|
|
1132
|
-
},
|
|
1133
|
-
"ease-in-out": {
|
|
1134
|
-
value: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1135
|
-
tailwind: "ease-in-out",
|
|
1136
|
-
description: "Slow start and end, fast middle"
|
|
1137
|
-
},
|
|
1138
|
-
spring: {
|
|
1139
|
-
value: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
|
|
1140
|
-
tailwind: "ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",
|
|
1141
|
-
description: "Spring-like bounce effect"
|
|
1142
|
-
}
|
|
1143
|
-
};
|
|
1144
|
-
return {
|
|
1145
|
-
duration: r[a],
|
|
1146
|
-
easing: s[n]
|
|
1147
|
-
};
|
|
1148
|
-
}
|
|
1149
|
-
/**
|
|
1150
|
-
* Create a transition token
|
|
1151
|
-
*/
|
|
1152
|
-
static createTransition(a, n = "base", r = "ease-in-out") {
|
|
1153
|
-
const s = this.create(n, r), i = Array.isArray(a) ? a.join(", ") : a, o = [
|
|
1154
|
-
s.duration.tailwind,
|
|
1155
|
-
s.easing.tailwind
|
|
1156
|
-
].join(" ");
|
|
1157
|
-
return {
|
|
1158
|
-
property: i,
|
|
1159
|
-
duration: s.duration.value,
|
|
1160
|
-
timingFunction: s.easing.value,
|
|
1161
|
-
tailwind: o
|
|
1162
|
-
};
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.createTransition(
|
|
1166
|
-
["color", "background-color", "border-color"],
|
|
1167
|
-
"base"
|
|
1168
|
-
), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
|
|
1169
|
-
class I {
|
|
1170
|
-
/**
|
|
1171
|
-
* Create a z-index token
|
|
1172
|
-
*/
|
|
1173
|
-
static create(a) {
|
|
1174
|
-
return {
|
|
1175
|
-
base: {
|
|
1176
|
-
value: 0,
|
|
1177
|
-
tailwind: "z-0",
|
|
1178
|
-
description: "Base layer for normal content"
|
|
1179
|
-
},
|
|
1180
|
-
dropdown: {
|
|
1181
|
-
value: 1e3,
|
|
1182
|
-
tailwind: "z-[1000]",
|
|
1183
|
-
description: "Dropdown menus and select options"
|
|
1184
|
-
},
|
|
1185
|
-
sticky: {
|
|
1186
|
-
value: 1020,
|
|
1187
|
-
tailwind: "z-[1020]",
|
|
1188
|
-
description: "Sticky headers and navigation"
|
|
1189
|
-
},
|
|
1190
|
-
fixed: {
|
|
1191
|
-
value: 1030,
|
|
1192
|
-
tailwind: "z-[1030]",
|
|
1193
|
-
description: "Fixed position elements"
|
|
1194
|
-
},
|
|
1195
|
-
"modal-backdrop": {
|
|
1196
|
-
value: 1040,
|
|
1197
|
-
tailwind: "z-[1040]",
|
|
1198
|
-
description: "Modal backdrop/overlay"
|
|
1199
|
-
},
|
|
1200
|
-
modal: {
|
|
1201
|
-
value: 1050,
|
|
1202
|
-
tailwind: "z-[1050]",
|
|
1203
|
-
description: "Modal dialogs and drawers"
|
|
1204
|
-
},
|
|
1205
|
-
popover: {
|
|
1206
|
-
value: 1060,
|
|
1207
|
-
tailwind: "z-[1060]",
|
|
1208
|
-
description: "Popovers and tooltips"
|
|
1209
|
-
},
|
|
1210
|
-
tooltip: {
|
|
1211
|
-
value: 1070,
|
|
1212
|
-
tailwind: "z-[1070]",
|
|
1213
|
-
description: "Tooltips (highest priority)"
|
|
1214
|
-
},
|
|
1215
|
-
toast: {
|
|
1216
|
-
value: 1080,
|
|
1217
|
-
tailwind: "z-[1080]",
|
|
1218
|
-
description: "Toast notifications (highest priority)"
|
|
1219
|
-
}
|
|
1220
|
-
}[a];
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
I.create("base"), I.create("dropdown"), I.create("sticky"), I.create("fixed"), I.create("modal-backdrop"), I.create("modal"), I.create("popover"), I.create("tooltip"), I.create("toast");
|
|
1224
|
-
class C {
|
|
1225
|
-
/**
|
|
1226
|
-
* Create an opacity token
|
|
1227
|
-
*/
|
|
1228
|
-
static create(a) {
|
|
1229
|
-
const n = a / 100, r = {
|
|
1230
|
-
0: "Fully transparent",
|
|
1231
|
-
5: "Very light overlay",
|
|
1232
|
-
10: "Light overlay",
|
|
1233
|
-
20: "Subtle overlay",
|
|
1234
|
-
25: "Quarter opacity",
|
|
1235
|
-
30: "Light background",
|
|
1236
|
-
40: "Semi-transparent",
|
|
1237
|
-
50: "Half opacity",
|
|
1238
|
-
60: "Semi-opaque",
|
|
1239
|
-
70: "Mostly opaque",
|
|
1240
|
-
75: "Three-quarter opacity",
|
|
1241
|
-
80: "High opacity",
|
|
1242
|
-
90: "Very high opacity",
|
|
1243
|
-
95: "Nearly opaque",
|
|
1244
|
-
100: "Fully opaque"
|
|
1245
|
-
};
|
|
1246
|
-
return {
|
|
1247
|
-
value: a,
|
|
1248
|
-
decimal: n,
|
|
1249
|
-
tailwind: {
|
|
1250
|
-
0: "opacity-0",
|
|
1251
|
-
5: "opacity-5",
|
|
1252
|
-
10: "opacity-10",
|
|
1253
|
-
20: "opacity-20",
|
|
1254
|
-
25: "opacity-25",
|
|
1255
|
-
30: "opacity-30",
|
|
1256
|
-
40: "opacity-40",
|
|
1257
|
-
50: "opacity-50",
|
|
1258
|
-
60: "opacity-60",
|
|
1259
|
-
70: "opacity-70",
|
|
1260
|
-
75: "opacity-75",
|
|
1261
|
-
80: "opacity-80",
|
|
1262
|
-
90: "opacity-90",
|
|
1263
|
-
95: "opacity-95",
|
|
1264
|
-
100: "opacity-100"
|
|
1265
|
-
}[a],
|
|
1266
|
-
description: r[a]
|
|
1267
|
-
};
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
C.create(0), C.create(5), C.create(10), C.create(20), C.create(25), C.create(30), C.create(40), C.create(50), C.create(60), C.create(70), C.create(75), C.create(80), C.create(90), C.create(95), C.create(100);
|
|
1271
|
-
const Pe = _("w-full", {
|
|
936
|
+
const ze = M("w-full", {
|
|
1272
937
|
variants: {
|
|
1273
938
|
size: {
|
|
1274
939
|
sm: "h-1",
|
|
@@ -1288,7 +953,7 @@ const Pe = _("w-full", {
|
|
|
1288
953
|
size: "md",
|
|
1289
954
|
variant: "primary"
|
|
1290
955
|
}
|
|
1291
|
-
}),
|
|
956
|
+
}), J = M("transition-all", {
|
|
1292
957
|
variants: {
|
|
1293
958
|
variant: {
|
|
1294
959
|
primary: "bg-surface-brand",
|
|
@@ -1302,17 +967,17 @@ const Pe = _("w-full", {
|
|
|
1302
967
|
defaultVariants: {
|
|
1303
968
|
variant: "primary"
|
|
1304
969
|
}
|
|
1305
|
-
}),
|
|
1306
|
-
var
|
|
970
|
+
}), Me = _(function(b, y) {
|
|
971
|
+
var m = b, {
|
|
1307
972
|
value: a,
|
|
1308
|
-
max:
|
|
1309
|
-
variant:
|
|
973
|
+
max: r = 100,
|
|
974
|
+
variant: t = "primary",
|
|
1310
975
|
size: s = "md",
|
|
1311
|
-
showLabel:
|
|
1312
|
-
label:
|
|
1313
|
-
"aria-label":
|
|
976
|
+
showLabel: o = !1,
|
|
977
|
+
label: d,
|
|
978
|
+
"aria-label": c,
|
|
1314
979
|
className: u = ""
|
|
1315
|
-
} =
|
|
980
|
+
} = m, x = p(m, [
|
|
1316
981
|
"value",
|
|
1317
982
|
"max",
|
|
1318
983
|
"variant",
|
|
@@ -1322,38 +987,38 @@ const Pe = _("w-full", {
|
|
|
1322
987
|
"aria-label",
|
|
1323
988
|
"className"
|
|
1324
989
|
]);
|
|
1325
|
-
const
|
|
1326
|
-
return /* @__PURE__ */
|
|
1327
|
-
|
|
990
|
+
const h = a === void 0, w = h ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), S = c || (h ? "Loading in progress" : `Progress: ${w == null ? void 0 : w.toFixed(0)}%`);
|
|
991
|
+
return /* @__PURE__ */ v("div", g(f({ ref: y, className: n("w-full", u) }, x), { children: [
|
|
992
|
+
o && (d || !h) && /* @__PURE__ */ v(
|
|
1328
993
|
"div",
|
|
1329
994
|
{
|
|
1330
|
-
className:
|
|
995
|
+
className: n(
|
|
1331
996
|
"flex",
|
|
1332
997
|
"items-center",
|
|
1333
998
|
"justify-between",
|
|
1334
|
-
|
|
999
|
+
i("xs", "mb")
|
|
1335
1000
|
),
|
|
1336
1001
|
children: [
|
|
1337
|
-
|
|
1002
|
+
d && /* @__PURE__ */ l(
|
|
1338
1003
|
"span",
|
|
1339
1004
|
{
|
|
1340
|
-
className:
|
|
1341
|
-
|
|
1342
|
-
|
|
1005
|
+
className: n(
|
|
1006
|
+
E("bodySmall"),
|
|
1007
|
+
j("label"),
|
|
1343
1008
|
"text-fg-primary"
|
|
1344
1009
|
),
|
|
1345
|
-
children:
|
|
1010
|
+
children: d
|
|
1346
1011
|
}
|
|
1347
1012
|
),
|
|
1348
|
-
!
|
|
1013
|
+
!h && w !== void 0 && /* @__PURE__ */ v(
|
|
1349
1014
|
"span",
|
|
1350
1015
|
{
|
|
1351
|
-
className:
|
|
1352
|
-
|
|
1016
|
+
className: n(
|
|
1017
|
+
E("bodySmall"),
|
|
1353
1018
|
"text-fg-secondary"
|
|
1354
1019
|
),
|
|
1355
1020
|
children: [
|
|
1356
|
-
|
|
1021
|
+
w.toFixed(0),
|
|
1357
1022
|
"%"
|
|
1358
1023
|
]
|
|
1359
1024
|
}
|
|
@@ -1361,32 +1026,32 @@ const Pe = _("w-full", {
|
|
|
1361
1026
|
]
|
|
1362
1027
|
}
|
|
1363
1028
|
),
|
|
1364
|
-
/* @__PURE__ */
|
|
1029
|
+
/* @__PURE__ */ l(
|
|
1365
1030
|
"div",
|
|
1366
1031
|
{
|
|
1367
1032
|
role: "progressbar",
|
|
1368
|
-
"aria-valuemin":
|
|
1369
|
-
"aria-valuemax":
|
|
1370
|
-
"aria-valuenow":
|
|
1371
|
-
"aria-label":
|
|
1372
|
-
"aria-busy":
|
|
1373
|
-
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(
|
|
1374
1039
|
"relative",
|
|
1375
1040
|
"w-full",
|
|
1376
1041
|
"overflow-hidden",
|
|
1377
|
-
|
|
1378
|
-
|
|
1042
|
+
ze({ size: s, variant: t }),
|
|
1043
|
+
C("full")
|
|
1379
1044
|
),
|
|
1380
|
-
children:
|
|
1045
|
+
children: h ? /* @__PURE__ */ l(
|
|
1381
1046
|
"div",
|
|
1382
1047
|
{
|
|
1383
|
-
className:
|
|
1048
|
+
className: n(
|
|
1384
1049
|
"absolute",
|
|
1385
1050
|
"top-0",
|
|
1386
1051
|
"left-0",
|
|
1387
1052
|
"bottom-0",
|
|
1388
|
-
|
|
1389
|
-
|
|
1053
|
+
J({ variant: t }),
|
|
1054
|
+
C("full"),
|
|
1390
1055
|
"motion-reduce:animate-none"
|
|
1391
1056
|
),
|
|
1392
1057
|
style: {
|
|
@@ -1394,19 +1059,19 @@ const Pe = _("w-full", {
|
|
|
1394
1059
|
animation: "progress-indeterminate 1.5s ease-in-out infinite"
|
|
1395
1060
|
}
|
|
1396
1061
|
}
|
|
1397
|
-
) : /* @__PURE__ */
|
|
1062
|
+
) : /* @__PURE__ */ l(
|
|
1398
1063
|
"div",
|
|
1399
1064
|
{
|
|
1400
|
-
className:
|
|
1065
|
+
className: n(
|
|
1401
1066
|
"h-full",
|
|
1402
|
-
|
|
1403
|
-
|
|
1067
|
+
J({ variant: t }),
|
|
1068
|
+
C("full"),
|
|
1404
1069
|
"transition-all",
|
|
1405
1070
|
"duration-300",
|
|
1406
1071
|
"ease-out"
|
|
1407
1072
|
),
|
|
1408
1073
|
style: {
|
|
1409
|
-
width: `${
|
|
1074
|
+
width: `${w}%`
|
|
1410
1075
|
},
|
|
1411
1076
|
"aria-hidden": "true"
|
|
1412
1077
|
}
|
|
@@ -1415,57 +1080,57 @@ const Pe = _("w-full", {
|
|
|
1415
1080
|
)
|
|
1416
1081
|
] }));
|
|
1417
1082
|
});
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1083
|
+
Me.displayName = "Progress";
|
|
1084
|
+
const Ve = {
|
|
1420
1085
|
horizontal: "w-full border-t",
|
|
1421
1086
|
vertical: "h-full border-l self-stretch"
|
|
1422
|
-
},
|
|
1087
|
+
}, je = {
|
|
1423
1088
|
solid: "border-solid",
|
|
1424
1089
|
dashed: "border-dashed",
|
|
1425
1090
|
dotted: "border-dotted"
|
|
1426
|
-
},
|
|
1427
|
-
var
|
|
1091
|
+
}, De = D(function(o) {
|
|
1092
|
+
var d = o, {
|
|
1428
1093
|
orientation: a = "horizontal",
|
|
1429
|
-
variant:
|
|
1430
|
-
className:
|
|
1431
|
-
} =
|
|
1094
|
+
variant: r = "solid",
|
|
1095
|
+
className: t = ""
|
|
1096
|
+
} = d, s = p(d, [
|
|
1432
1097
|
"orientation",
|
|
1433
1098
|
"variant",
|
|
1434
1099
|
"className"
|
|
1435
1100
|
]);
|
|
1436
|
-
const
|
|
1101
|
+
const c = n(
|
|
1437
1102
|
"border-0",
|
|
1438
1103
|
"border-line-default",
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1104
|
+
Ve[a],
|
|
1105
|
+
je[r],
|
|
1106
|
+
t
|
|
1442
1107
|
);
|
|
1443
|
-
return a === "vertical" ? /* @__PURE__ */
|
|
1108
|
+
return a === "vertical" ? /* @__PURE__ */ l(
|
|
1444
1109
|
"div",
|
|
1445
|
-
|
|
1446
|
-
className:
|
|
1110
|
+
f({
|
|
1111
|
+
className: c,
|
|
1447
1112
|
role: "separator",
|
|
1448
1113
|
"aria-orientation": "vertical"
|
|
1449
1114
|
}, s)
|
|
1450
|
-
) : /* @__PURE__ */
|
|
1115
|
+
) : /* @__PURE__ */ l(
|
|
1451
1116
|
"hr",
|
|
1452
|
-
|
|
1453
|
-
className:
|
|
1117
|
+
f({
|
|
1118
|
+
className: c,
|
|
1454
1119
|
role: "separator",
|
|
1455
1120
|
"aria-orientation": "horizontal"
|
|
1456
1121
|
}, s)
|
|
1457
1122
|
);
|
|
1458
1123
|
});
|
|
1459
|
-
|
|
1460
|
-
function
|
|
1461
|
-
var u =
|
|
1462
|
-
variant:
|
|
1124
|
+
De.displayName = "Separator";
|
|
1125
|
+
function ft(c) {
|
|
1126
|
+
var u = c, {
|
|
1127
|
+
variant: e = "text",
|
|
1463
1128
|
width: a,
|
|
1464
|
-
height:
|
|
1465
|
-
lines:
|
|
1129
|
+
height: r,
|
|
1130
|
+
lines: t = 1,
|
|
1466
1131
|
className: s = "",
|
|
1467
|
-
"aria-label":
|
|
1468
|
-
} = u,
|
|
1132
|
+
"aria-label": o
|
|
1133
|
+
} = u, d = p(u, [
|
|
1469
1134
|
"variant",
|
|
1470
1135
|
"width",
|
|
1471
1136
|
"height",
|
|
@@ -1473,48 +1138,48 @@ function Na(f) {
|
|
|
1473
1138
|
"className",
|
|
1474
1139
|
"aria-label"
|
|
1475
1140
|
]);
|
|
1476
|
-
const
|
|
1141
|
+
const x = [
|
|
1477
1142
|
"motion-safe:animate-pulse",
|
|
1478
1143
|
"bg-surface-muted",
|
|
1479
|
-
|
|
1480
|
-
],
|
|
1144
|
+
C("sm")
|
|
1145
|
+
], y = {
|
|
1481
1146
|
text: "h-4",
|
|
1482
1147
|
card: "h-32",
|
|
1483
1148
|
list: "h-12",
|
|
1484
|
-
circle:
|
|
1485
|
-
},
|
|
1486
|
-
a && (
|
|
1487
|
-
const
|
|
1488
|
-
return
|
|
1149
|
+
circle: C("full")
|
|
1150
|
+
}, b = n(...x, 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(
|
|
1489
1154
|
"div",
|
|
1490
|
-
|
|
1491
|
-
className:
|
|
1155
|
+
g(f({
|
|
1156
|
+
className: i("sm", "space-y"),
|
|
1492
1157
|
role: "status",
|
|
1493
1158
|
"aria-busy": "true",
|
|
1494
|
-
"aria-label":
|
|
1495
|
-
},
|
|
1496
|
-
children: Array.from({ length:
|
|
1159
|
+
"aria-label": h
|
|
1160
|
+
}, d), {
|
|
1161
|
+
children: Array.from({ length: t }).map((w, S) => /* @__PURE__ */ l(
|
|
1497
1162
|
"div",
|
|
1498
1163
|
{
|
|
1499
|
-
className:
|
|
1500
|
-
style:
|
|
1164
|
+
className: b,
|
|
1165
|
+
style: S === t - 1 ? { width: "75%" } : m,
|
|
1501
1166
|
"aria-hidden": "true"
|
|
1502
1167
|
},
|
|
1503
|
-
|
|
1168
|
+
S
|
|
1504
1169
|
))
|
|
1505
1170
|
})
|
|
1506
|
-
) : /* @__PURE__ */
|
|
1171
|
+
) : /* @__PURE__ */ l(
|
|
1507
1172
|
"div",
|
|
1508
|
-
|
|
1509
|
-
className:
|
|
1510
|
-
style:
|
|
1173
|
+
f({
|
|
1174
|
+
className: b,
|
|
1175
|
+
style: m,
|
|
1511
1176
|
role: "status",
|
|
1512
1177
|
"aria-busy": "true",
|
|
1513
|
-
"aria-label":
|
|
1514
|
-
},
|
|
1178
|
+
"aria-label": h
|
|
1179
|
+
}, d)
|
|
1515
1180
|
);
|
|
1516
1181
|
}
|
|
1517
|
-
const
|
|
1182
|
+
const _e = M("motion-safe:animate-spin", {
|
|
1518
1183
|
variants: {
|
|
1519
1184
|
size: {
|
|
1520
1185
|
sm: "h-4 w-4",
|
|
@@ -1531,52 +1196,52 @@ const Ge = _("motion-safe:animate-spin", {
|
|
|
1531
1196
|
size: "md",
|
|
1532
1197
|
variant: "primary"
|
|
1533
1198
|
}
|
|
1534
|
-
}),
|
|
1535
|
-
var
|
|
1199
|
+
}), Ie = D(function(d) {
|
|
1200
|
+
var c = d, {
|
|
1536
1201
|
size: a = "md",
|
|
1537
|
-
variant:
|
|
1538
|
-
label:
|
|
1202
|
+
variant: r = "primary",
|
|
1203
|
+
label: t,
|
|
1539
1204
|
className: s = ""
|
|
1540
|
-
} =
|
|
1205
|
+
} = c, o = p(c, [
|
|
1541
1206
|
"size",
|
|
1542
1207
|
"variant",
|
|
1543
1208
|
"label",
|
|
1544
1209
|
"className"
|
|
1545
1210
|
]);
|
|
1546
|
-
return /* @__PURE__ */
|
|
1211
|
+
return /* @__PURE__ */ v(
|
|
1547
1212
|
"div",
|
|
1548
|
-
|
|
1549
|
-
className:
|
|
1213
|
+
g(f({
|
|
1214
|
+
className: n("inline-flex", "items-center", s),
|
|
1550
1215
|
role: "status",
|
|
1551
|
-
"aria-label":
|
|
1216
|
+
"aria-label": t || "Loading",
|
|
1552
1217
|
"aria-live": "polite"
|
|
1553
|
-
},
|
|
1218
|
+
}, o), {
|
|
1554
1219
|
children: [
|
|
1555
|
-
/* @__PURE__ */
|
|
1556
|
-
|
|
1220
|
+
/* @__PURE__ */ l(
|
|
1221
|
+
ce,
|
|
1557
1222
|
{
|
|
1558
|
-
className:
|
|
1223
|
+
className: n(_e({ size: a, variant: r })),
|
|
1559
1224
|
"aria-hidden": "true"
|
|
1560
1225
|
}
|
|
1561
1226
|
),
|
|
1562
|
-
|
|
1227
|
+
t && /* @__PURE__ */ l(
|
|
1563
1228
|
"span",
|
|
1564
1229
|
{
|
|
1565
|
-
className:
|
|
1566
|
-
|
|
1567
|
-
|
|
1230
|
+
className: n(
|
|
1231
|
+
i("sm", "ml"),
|
|
1232
|
+
E("bodySmall"),
|
|
1568
1233
|
"text-fg-secondary",
|
|
1569
1234
|
"sr-only"
|
|
1570
1235
|
),
|
|
1571
|
-
children:
|
|
1236
|
+
children: t
|
|
1572
1237
|
}
|
|
1573
1238
|
)
|
|
1574
1239
|
]
|
|
1575
1240
|
})
|
|
1576
1241
|
);
|
|
1577
1242
|
});
|
|
1578
|
-
|
|
1579
|
-
const
|
|
1243
|
+
Ie.displayName = "Spinner";
|
|
1244
|
+
const We = {
|
|
1580
1245
|
primary: {
|
|
1581
1246
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1582
1247
|
light: "text-indigo-400",
|
|
@@ -1628,16 +1293,16 @@ const Ze = {
|
|
|
1628
1293
|
contrast: "text-fg-inverse"
|
|
1629
1294
|
}
|
|
1630
1295
|
};
|
|
1631
|
-
function
|
|
1632
|
-
var
|
|
1633
|
-
variant:
|
|
1296
|
+
function He(x, u) {
|
|
1297
|
+
var y = x, {
|
|
1298
|
+
variant: e = "paragraph",
|
|
1634
1299
|
bold: a,
|
|
1635
|
-
italic:
|
|
1636
|
-
className:
|
|
1300
|
+
italic: r,
|
|
1301
|
+
className: t,
|
|
1637
1302
|
as: s,
|
|
1638
|
-
colorRole:
|
|
1639
|
-
colorShade:
|
|
1640
|
-
} =
|
|
1303
|
+
colorRole: o = "neutral",
|
|
1304
|
+
colorShade: d = "dark"
|
|
1305
|
+
} = y, c = p(y, [
|
|
1641
1306
|
"variant",
|
|
1642
1307
|
"bold",
|
|
1643
1308
|
"italic",
|
|
@@ -1646,41 +1311,41 @@ function Qe(b, u) {
|
|
|
1646
1311
|
"colorRole",
|
|
1647
1312
|
"colorShade"
|
|
1648
1313
|
]);
|
|
1649
|
-
const
|
|
1650
|
-
let
|
|
1314
|
+
const b = [];
|
|
1315
|
+
let m;
|
|
1651
1316
|
if (s)
|
|
1652
|
-
|
|
1317
|
+
m = s;
|
|
1653
1318
|
else
|
|
1654
|
-
switch (
|
|
1319
|
+
switch (e) {
|
|
1655
1320
|
case "heading":
|
|
1656
|
-
|
|
1321
|
+
m = "h2";
|
|
1657
1322
|
break;
|
|
1658
1323
|
case "list":
|
|
1659
|
-
|
|
1324
|
+
m = "li";
|
|
1660
1325
|
break;
|
|
1661
1326
|
default:
|
|
1662
|
-
|
|
1327
|
+
m = "p";
|
|
1663
1328
|
break;
|
|
1664
1329
|
}
|
|
1665
|
-
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));
|
|
1666
1331
|
}
|
|
1667
|
-
const
|
|
1332
|
+
const Q = _(He), Oe = {
|
|
1668
1333
|
sm: "max-w-screen-sm",
|
|
1669
1334
|
md: "max-w-screen-md",
|
|
1670
1335
|
lg: "max-w-screen-lg",
|
|
1671
1336
|
xl: "max-w-screen-xl",
|
|
1672
1337
|
"2xl": "max-w-screen-2xl",
|
|
1673
1338
|
full: "max-w-full"
|
|
1674
|
-
},
|
|
1675
|
-
(u,
|
|
1676
|
-
var
|
|
1677
|
-
className:
|
|
1339
|
+
}, Pe = ee.forwardRef(
|
|
1340
|
+
(u, c) => {
|
|
1341
|
+
var x = u, {
|
|
1342
|
+
className: e,
|
|
1678
1343
|
maxWidth: a = "lg",
|
|
1679
|
-
paddingX:
|
|
1680
|
-
paddingY:
|
|
1344
|
+
paddingX: r = "base",
|
|
1345
|
+
paddingY: t = "base",
|
|
1681
1346
|
center: s = !0,
|
|
1682
|
-
children:
|
|
1683
|
-
} =
|
|
1347
|
+
children: o
|
|
1348
|
+
} = x, d = p(x, [
|
|
1684
1349
|
"className",
|
|
1685
1350
|
"maxWidth",
|
|
1686
1351
|
"paddingX",
|
|
@@ -1688,35 +1353,35 @@ const ie = q(Qe), Je = {
|
|
|
1688
1353
|
"center",
|
|
1689
1354
|
"children"
|
|
1690
1355
|
]);
|
|
1691
|
-
return /* @__PURE__ */
|
|
1356
|
+
return /* @__PURE__ */ l(
|
|
1692
1357
|
"div",
|
|
1693
|
-
|
|
1694
|
-
ref:
|
|
1695
|
-
className:
|
|
1358
|
+
g(f({
|
|
1359
|
+
ref: c,
|
|
1360
|
+
className: n(
|
|
1696
1361
|
"w-full",
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1362
|
+
Oe[a],
|
|
1363
|
+
i(r, "px"),
|
|
1364
|
+
i(t, "py"),
|
|
1700
1365
|
s && "mx-auto",
|
|
1701
|
-
|
|
1366
|
+
e
|
|
1702
1367
|
)
|
|
1703
|
-
},
|
|
1704
|
-
children:
|
|
1368
|
+
}, d), {
|
|
1369
|
+
children: o
|
|
1705
1370
|
})
|
|
1706
1371
|
);
|
|
1707
1372
|
}
|
|
1708
1373
|
);
|
|
1709
|
-
|
|
1710
|
-
const
|
|
1711
|
-
(u,
|
|
1712
|
-
var
|
|
1713
|
-
className:
|
|
1374
|
+
Pe.displayName = "Container";
|
|
1375
|
+
const Be = ee.forwardRef(
|
|
1376
|
+
(u, c) => {
|
|
1377
|
+
var x = u, {
|
|
1378
|
+
className: e,
|
|
1714
1379
|
spacing: a = "base",
|
|
1715
|
-
align:
|
|
1716
|
-
justify:
|
|
1380
|
+
align: r = "stretch",
|
|
1381
|
+
justify: t = "start",
|
|
1717
1382
|
direction: s = "column",
|
|
1718
|
-
children:
|
|
1719
|
-
} =
|
|
1383
|
+
children: o
|
|
1384
|
+
} = x, d = p(x, [
|
|
1720
1385
|
"className",
|
|
1721
1386
|
"spacing",
|
|
1722
1387
|
"align",
|
|
@@ -1724,12 +1389,12 @@ const aa = le.forwardRef(
|
|
|
1724
1389
|
"direction",
|
|
1725
1390
|
"children"
|
|
1726
1391
|
]);
|
|
1727
|
-
const
|
|
1392
|
+
const y = s === "column" ? i(a, "gap-y") : i(a, "gap-x"), b = {
|
|
1728
1393
|
start: "items-start",
|
|
1729
1394
|
center: "items-center",
|
|
1730
1395
|
end: "items-end",
|
|
1731
1396
|
stretch: "items-stretch"
|
|
1732
|
-
},
|
|
1397
|
+
}, m = {
|
|
1733
1398
|
start: "justify-start",
|
|
1734
1399
|
center: "justify-center",
|
|
1735
1400
|
end: "justify-end",
|
|
@@ -1737,82 +1402,82 @@ const aa = le.forwardRef(
|
|
|
1737
1402
|
around: "justify-around",
|
|
1738
1403
|
evenly: "justify-evenly"
|
|
1739
1404
|
};
|
|
1740
|
-
return /* @__PURE__ */
|
|
1405
|
+
return /* @__PURE__ */ l(
|
|
1741
1406
|
"div",
|
|
1742
|
-
|
|
1743
|
-
ref:
|
|
1744
|
-
className:
|
|
1407
|
+
g(f({
|
|
1408
|
+
ref: c,
|
|
1409
|
+
className: n(
|
|
1745
1410
|
"flex",
|
|
1746
1411
|
s === "column" ? "flex-col" : "flex-row",
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1412
|
+
y,
|
|
1413
|
+
b[r],
|
|
1414
|
+
m[t],
|
|
1415
|
+
e
|
|
1751
1416
|
)
|
|
1752
|
-
},
|
|
1753
|
-
children:
|
|
1417
|
+
}, d), {
|
|
1418
|
+
children: o
|
|
1754
1419
|
})
|
|
1755
1420
|
);
|
|
1756
1421
|
}
|
|
1757
1422
|
);
|
|
1758
|
-
|
|
1759
|
-
function
|
|
1760
|
-
var
|
|
1761
|
-
items:
|
|
1423
|
+
Be.displayName = "Stack";
|
|
1424
|
+
function Ue(s) {
|
|
1425
|
+
var o = s, {
|
|
1426
|
+
items: e,
|
|
1762
1427
|
separator: a = "/",
|
|
1763
|
-
className:
|
|
1764
|
-
} =
|
|
1428
|
+
className: r = ""
|
|
1429
|
+
} = o, t = p(o, [
|
|
1765
1430
|
"items",
|
|
1766
1431
|
"separator",
|
|
1767
1432
|
"className"
|
|
1768
1433
|
]);
|
|
1769
|
-
const
|
|
1434
|
+
const d = [
|
|
1770
1435
|
"flex",
|
|
1771
1436
|
"items-center",
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
],
|
|
1775
|
-
return /* @__PURE__ */
|
|
1437
|
+
i("sm", "space-x"),
|
|
1438
|
+
E("bodySmall")
|
|
1439
|
+
], c = n(...d, r);
|
|
1440
|
+
return /* @__PURE__ */ l("nav", g(f({ "aria-label": "Breadcrumb", className: c }, t), { children: /* @__PURE__ */ l(
|
|
1776
1441
|
"ol",
|
|
1777
1442
|
{
|
|
1778
|
-
className:
|
|
1779
|
-
children:
|
|
1780
|
-
const
|
|
1781
|
-
return /* @__PURE__ */
|
|
1782
|
-
|
|
1443
|
+
className: n("flex", "items-center", i("sm", "space-x")),
|
|
1444
|
+
children: e.map((u, x) => {
|
|
1445
|
+
const y = x === e.length - 1;
|
|
1446
|
+
return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
|
|
1447
|
+
x > 0 && /* @__PURE__ */ l(
|
|
1783
1448
|
"span",
|
|
1784
1449
|
{
|
|
1785
|
-
className:
|
|
1786
|
-
|
|
1450
|
+
className: n(
|
|
1451
|
+
i("sm", "mx"),
|
|
1787
1452
|
"text-fg-tertiary"
|
|
1788
1453
|
),
|
|
1789
1454
|
"aria-hidden": "true",
|
|
1790
1455
|
children: a
|
|
1791
1456
|
}
|
|
1792
1457
|
),
|
|
1793
|
-
|
|
1458
|
+
y ? /* @__PURE__ */ l(
|
|
1794
1459
|
"span",
|
|
1795
1460
|
{
|
|
1796
|
-
className:
|
|
1461
|
+
className: n(
|
|
1797
1462
|
"text-fg-primary",
|
|
1798
|
-
|
|
1463
|
+
j("label")
|
|
1799
1464
|
),
|
|
1800
1465
|
"aria-current": "page",
|
|
1801
1466
|
children: u.label
|
|
1802
1467
|
}
|
|
1803
|
-
) : u.href ? /* @__PURE__ */
|
|
1468
|
+
) : u.href ? /* @__PURE__ */ l(
|
|
1804
1469
|
"a",
|
|
1805
1470
|
{
|
|
1806
1471
|
href: u.href,
|
|
1807
|
-
className:
|
|
1472
|
+
className: n(
|
|
1808
1473
|
"inline-flex",
|
|
1809
1474
|
"items-center",
|
|
1810
|
-
|
|
1811
|
-
|
|
1475
|
+
i("xs", "px"),
|
|
1476
|
+
i("xs", "pt"),
|
|
1812
1477
|
"border-b-2",
|
|
1813
1478
|
"border-transparent",
|
|
1814
|
-
|
|
1815
|
-
|
|
1479
|
+
E("bodySmall"),
|
|
1480
|
+
j("label"),
|
|
1816
1481
|
"transition-colors",
|
|
1817
1482
|
"text-fg-secondary",
|
|
1818
1483
|
"hover:border-line-emphasis",
|
|
@@ -1820,109 +1485,109 @@ function ta(s) {
|
|
|
1820
1485
|
),
|
|
1821
1486
|
children: u.label
|
|
1822
1487
|
}
|
|
1823
|
-
) : /* @__PURE__ */
|
|
1824
|
-
] },
|
|
1488
|
+
) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: u.label })
|
|
1489
|
+
] }, x);
|
|
1825
1490
|
})
|
|
1826
1491
|
}
|
|
1827
1492
|
) }));
|
|
1828
1493
|
}
|
|
1829
|
-
function
|
|
1830
|
-
var s =
|
|
1831
|
-
return /* @__PURE__ */
|
|
1494
|
+
function Ke(t) {
|
|
1495
|
+
var s = t, { children: e, className: a } = s, r = p(s, ["children", "className"]);
|
|
1496
|
+
return /* @__PURE__ */ l(
|
|
1832
1497
|
"div",
|
|
1833
|
-
|
|
1834
|
-
className:
|
|
1498
|
+
g(f({
|
|
1499
|
+
className: n(
|
|
1835
1500
|
"grid items-start",
|
|
1836
|
-
|
|
1837
|
-
|
|
1501
|
+
i("1.5", "gap"),
|
|
1502
|
+
i("base", "mb"),
|
|
1838
1503
|
"[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
|
|
1839
1504
|
"[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
|
|
1840
1505
|
a
|
|
1841
1506
|
)
|
|
1842
|
-
},
|
|
1843
|
-
children:
|
|
1507
|
+
}, r), {
|
|
1508
|
+
children: e
|
|
1844
1509
|
})
|
|
1845
1510
|
);
|
|
1846
1511
|
}
|
|
1847
|
-
function
|
|
1848
|
-
var
|
|
1849
|
-
children:
|
|
1512
|
+
function Xe(d) {
|
|
1513
|
+
var c = d, {
|
|
1514
|
+
children: e,
|
|
1850
1515
|
icon: a,
|
|
1851
|
-
badge:
|
|
1852
|
-
as:
|
|
1516
|
+
badge: r,
|
|
1517
|
+
as: t = "h2",
|
|
1853
1518
|
className: s
|
|
1854
|
-
} =
|
|
1519
|
+
} = c, o = p(c, [
|
|
1855
1520
|
"children",
|
|
1856
1521
|
"icon",
|
|
1857
1522
|
"badge",
|
|
1858
1523
|
"as",
|
|
1859
1524
|
"className"
|
|
1860
1525
|
]);
|
|
1861
|
-
return /* @__PURE__ */
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
className:
|
|
1526
|
+
return /* @__PURE__ */ v(
|
|
1527
|
+
t,
|
|
1528
|
+
g(f({
|
|
1529
|
+
className: n(
|
|
1865
1530
|
"text-base font-semibold text-fg-primary",
|
|
1866
1531
|
"flex items-center",
|
|
1867
|
-
|
|
1532
|
+
i("sm", "gap"),
|
|
1868
1533
|
s
|
|
1869
1534
|
)
|
|
1870
|
-
},
|
|
1535
|
+
}, o), {
|
|
1871
1536
|
children: [
|
|
1872
|
-
a ? /* @__PURE__ */
|
|
1873
|
-
/* @__PURE__ */
|
|
1874
|
-
|
|
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
|
|
1875
1540
|
]
|
|
1876
1541
|
})
|
|
1877
1542
|
);
|
|
1878
1543
|
}
|
|
1879
|
-
function
|
|
1880
|
-
var s =
|
|
1881
|
-
children:
|
|
1544
|
+
function qe(t) {
|
|
1545
|
+
var s = t, {
|
|
1546
|
+
children: e,
|
|
1882
1547
|
className: a
|
|
1883
|
-
} = s,
|
|
1548
|
+
} = s, r = p(s, [
|
|
1884
1549
|
"children",
|
|
1885
1550
|
"className"
|
|
1886
1551
|
]);
|
|
1887
|
-
return /* @__PURE__ */
|
|
1552
|
+
return /* @__PURE__ */ l("p", g(f({ className: n("text-sm text-fg-secondary", a) }, r), { children: e }));
|
|
1888
1553
|
}
|
|
1889
|
-
function
|
|
1890
|
-
var s =
|
|
1891
|
-
children:
|
|
1554
|
+
function Ge(t) {
|
|
1555
|
+
var s = t, {
|
|
1556
|
+
children: e,
|
|
1892
1557
|
className: a
|
|
1893
|
-
} = s,
|
|
1558
|
+
} = s, r = p(s, [
|
|
1894
1559
|
"children",
|
|
1895
1560
|
"className"
|
|
1896
1561
|
]);
|
|
1897
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ l(
|
|
1898
1563
|
"div",
|
|
1899
|
-
|
|
1564
|
+
g(f({
|
|
1900
1565
|
"data-card-actions": "",
|
|
1901
|
-
className:
|
|
1566
|
+
className: n(
|
|
1902
1567
|
"flex items-center self-start",
|
|
1903
|
-
|
|
1568
|
+
i("sm", "gap"),
|
|
1904
1569
|
a
|
|
1905
1570
|
)
|
|
1906
|
-
},
|
|
1907
|
-
children:
|
|
1571
|
+
}, r), {
|
|
1572
|
+
children: e
|
|
1908
1573
|
})
|
|
1909
1574
|
);
|
|
1910
1575
|
}
|
|
1911
|
-
function
|
|
1912
|
-
var s =
|
|
1913
|
-
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", g(f({ className: n(a) }, r), { children: e }));
|
|
1914
1579
|
}
|
|
1915
|
-
function
|
|
1916
|
-
var
|
|
1917
|
-
variant:
|
|
1580
|
+
function Ze(x) {
|
|
1581
|
+
var y = x, {
|
|
1582
|
+
variant: e = "default",
|
|
1918
1583
|
padding: a = "medium",
|
|
1919
|
-
className:
|
|
1920
|
-
onClick:
|
|
1584
|
+
className: r = "",
|
|
1585
|
+
onClick: t,
|
|
1921
1586
|
"aria-label": s,
|
|
1922
|
-
"aria-labelledby":
|
|
1923
|
-
asSection:
|
|
1924
|
-
children:
|
|
1925
|
-
} =
|
|
1587
|
+
"aria-labelledby": o,
|
|
1588
|
+
asSection: d = !1,
|
|
1589
|
+
children: c
|
|
1590
|
+
} = y, u = p(y, [
|
|
1926
1591
|
"variant",
|
|
1927
1592
|
"padding",
|
|
1928
1593
|
"className",
|
|
@@ -1932,33 +1597,33 @@ function oa(b) {
|
|
|
1932
1597
|
"asSection",
|
|
1933
1598
|
"children"
|
|
1934
1599
|
]);
|
|
1935
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" &&
|
|
1600
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && d && !s && !o && console.warn(
|
|
1936
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."
|
|
1937
1602
|
);
|
|
1938
|
-
const
|
|
1939
|
-
|
|
1603
|
+
const b = M(
|
|
1604
|
+
n(
|
|
1940
1605
|
"bg-surface-base",
|
|
1941
|
-
|
|
1606
|
+
C("lg"),
|
|
1942
1607
|
"border",
|
|
1943
1608
|
"border-line-default",
|
|
1944
|
-
|
|
1609
|
+
P("sm")
|
|
1945
1610
|
),
|
|
1946
1611
|
{
|
|
1947
1612
|
variants: {
|
|
1948
1613
|
variant: {
|
|
1949
1614
|
default: "",
|
|
1950
|
-
hover:
|
|
1951
|
-
`hover:${
|
|
1615
|
+
hover: n(
|
|
1616
|
+
`hover:${P("md")}`,
|
|
1952
1617
|
"transition-shadow",
|
|
1953
1618
|
"cursor-pointer"
|
|
1954
1619
|
),
|
|
1955
|
-
selected:
|
|
1620
|
+
selected: n("border-line-brand", P("md"))
|
|
1956
1621
|
},
|
|
1957
1622
|
padding: {
|
|
1958
1623
|
none: "",
|
|
1959
|
-
small:
|
|
1960
|
-
medium:
|
|
1961
|
-
large:
|
|
1624
|
+
small: i("xs", "p"),
|
|
1625
|
+
medium: i("base", "p"),
|
|
1626
|
+
large: i("lg", "p")
|
|
1962
1627
|
}
|
|
1963
1628
|
},
|
|
1964
1629
|
defaultVariants: {
|
|
@@ -1966,182 +1631,219 @@ function oa(b) {
|
|
|
1966
1631
|
padding: "medium"
|
|
1967
1632
|
}
|
|
1968
1633
|
}
|
|
1969
|
-
),
|
|
1970
|
-
className:
|
|
1971
|
-
role:
|
|
1972
|
-
tabIndex:
|
|
1973
|
-
onClick:
|
|
1974
|
-
onKeyDown:
|
|
1975
|
-
|
|
1634
|
+
), m = t !== void 0, h = m ? "button" : void 0, w = m ? 0 : void 0, S = n(b({ variant: e, padding: a }), r), L = f({
|
|
1635
|
+
className: S,
|
|
1636
|
+
role: h,
|
|
1637
|
+
tabIndex: w,
|
|
1638
|
+
onClick: t,
|
|
1639
|
+
onKeyDown: m ? (V) => {
|
|
1640
|
+
m && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), t == null || t());
|
|
1976
1641
|
} : void 0,
|
|
1977
1642
|
"aria-label": s,
|
|
1978
|
-
"aria-labelledby":
|
|
1643
|
+
"aria-labelledby": o
|
|
1979
1644
|
}, u);
|
|
1980
|
-
return
|
|
1645
|
+
return d ? /* @__PURE__ */ l("section", g(f({}, L), { children: c })) : /* @__PURE__ */ l("div", g(f({}, L), { children: c }));
|
|
1981
1646
|
}
|
|
1982
|
-
const
|
|
1983
|
-
|
|
1984
|
-
const
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
function
|
|
1991
|
-
var s =
|
|
1992
|
-
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,
|
|
1993
1658
|
className: a = ""
|
|
1994
|
-
} = s,
|
|
1659
|
+
} = s, r = p(s, [
|
|
1995
1660
|
"children",
|
|
1996
1661
|
"className"
|
|
1997
1662
|
]);
|
|
1998
|
-
return /* @__PURE__ */
|
|
1663
|
+
return /* @__PURE__ */ l(
|
|
1999
1664
|
"div",
|
|
2000
|
-
|
|
2001
|
-
className: `flex flex-col ${
|
|
2002
|
-
},
|
|
2003
|
-
children:
|
|
1665
|
+
g(f({
|
|
1666
|
+
className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${a}`
|
|
1667
|
+
}, r), {
|
|
1668
|
+
children: e
|
|
2004
1669
|
})
|
|
2005
1670
|
);
|
|
2006
1671
|
}
|
|
2007
|
-
function
|
|
2008
|
-
var s =
|
|
2009
|
-
children:
|
|
1672
|
+
function pt(t) {
|
|
1673
|
+
var s = t, {
|
|
1674
|
+
children: e,
|
|
2010
1675
|
className: a = ""
|
|
2011
|
-
} = s,
|
|
1676
|
+
} = s, r = p(s, [
|
|
2012
1677
|
"children",
|
|
2013
1678
|
"className"
|
|
2014
1679
|
]);
|
|
2015
|
-
return /* @__PURE__ */
|
|
1680
|
+
return /* @__PURE__ */ l(
|
|
2016
1681
|
"div",
|
|
2017
|
-
|
|
2018
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${
|
|
2019
|
-
},
|
|
2020
|
-
children:
|
|
1682
|
+
g(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
|
|
2021
1686
|
})
|
|
2022
1687
|
);
|
|
2023
1688
|
}
|
|
2024
|
-
function
|
|
2025
|
-
var s =
|
|
2026
|
-
children:
|
|
1689
|
+
function mt(t) {
|
|
1690
|
+
var s = t, {
|
|
1691
|
+
children: e,
|
|
2027
1692
|
className: a = ""
|
|
2028
|
-
} = s,
|
|
1693
|
+
} = s, r = p(s, [
|
|
2029
1694
|
"children",
|
|
2030
1695
|
"className"
|
|
2031
1696
|
]);
|
|
2032
|
-
return /* @__PURE__ */
|
|
1697
|
+
return /* @__PURE__ */ l(
|
|
2033
1698
|
"div",
|
|
2034
|
-
|
|
1699
|
+
g(f({
|
|
2035
1700
|
className: `
|
|
2036
|
-
${
|
|
1701
|
+
${i("lg", "p")}
|
|
2037
1702
|
border-b
|
|
2038
1703
|
border-line-default
|
|
2039
1704
|
${a}
|
|
2040
1705
|
`
|
|
2041
|
-
},
|
|
2042
|
-
children:
|
|
1706
|
+
}, r), {
|
|
1707
|
+
children: e
|
|
2043
1708
|
})
|
|
2044
1709
|
);
|
|
2045
1710
|
}
|
|
2046
|
-
function
|
|
2047
|
-
var s =
|
|
2048
|
-
children:
|
|
1711
|
+
function gt(t) {
|
|
1712
|
+
var s = t, {
|
|
1713
|
+
children: e,
|
|
2049
1714
|
className: a = ""
|
|
2050
|
-
} = s,
|
|
1715
|
+
} = s, r = p(s, [
|
|
2051
1716
|
"children",
|
|
2052
1717
|
"className"
|
|
2053
1718
|
]);
|
|
2054
|
-
return /* @__PURE__ */
|
|
1719
|
+
return /* @__PURE__ */ l(
|
|
2055
1720
|
"div",
|
|
2056
|
-
|
|
1721
|
+
g(f({
|
|
2057
1722
|
className: `
|
|
2058
|
-
${
|
|
1723
|
+
${i("lg", "p")}
|
|
2059
1724
|
border-t
|
|
2060
1725
|
border-line-default
|
|
2061
1726
|
flex
|
|
2062
1727
|
justify-end
|
|
2063
|
-
${
|
|
1728
|
+
${i("sm", "gap")}
|
|
2064
1729
|
${a}
|
|
2065
1730
|
`
|
|
2066
|
-
},
|
|
2067
|
-
children:
|
|
1731
|
+
}, r), {
|
|
1732
|
+
children: e
|
|
1733
|
+
})
|
|
1734
|
+
);
|
|
1735
|
+
}
|
|
1736
|
+
function xt(o) {
|
|
1737
|
+
var d = o, {
|
|
1738
|
+
label: e,
|
|
1739
|
+
children: a,
|
|
1740
|
+
wrap: r = !0,
|
|
1741
|
+
className: t
|
|
1742
|
+
} = d, s = p(d, [
|
|
1743
|
+
"label",
|
|
1744
|
+
"children",
|
|
1745
|
+
"wrap",
|
|
1746
|
+
"className"
|
|
1747
|
+
]);
|
|
1748
|
+
const u = !(s["aria-label"] != null || s["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
|
|
1749
|
+
return /* @__PURE__ */ v(
|
|
1750
|
+
"div",
|
|
1751
|
+
g(f({
|
|
1752
|
+
role: "group",
|
|
1753
|
+
"aria-label": u,
|
|
1754
|
+
className: n(
|
|
1755
|
+
"flex items-center",
|
|
1756
|
+
r ? "flex-wrap" : "flex-nowrap",
|
|
1757
|
+
i("sm", "gap"),
|
|
1758
|
+
t
|
|
1759
|
+
)
|
|
1760
|
+
}, s), {
|
|
1761
|
+
children: [
|
|
1762
|
+
e ? (
|
|
1763
|
+
// shrink-0 keeps the label a stable leading unit: in the wrapping
|
|
1764
|
+
// flex run it must not be squeezed or mid-word-wrapped when the
|
|
1765
|
+
// chips overflow — it stays on one line and the chips wrap around it.
|
|
1766
|
+
/* @__PURE__ */ l("span", { className: "shrink-0 text-fg-secondary text-sm", children: e })
|
|
1767
|
+
) : null,
|
|
1768
|
+
a
|
|
1769
|
+
]
|
|
2068
1770
|
})
|
|
2069
1771
|
);
|
|
2070
1772
|
}
|
|
2071
|
-
function
|
|
2072
|
-
return /* @__PURE__ */
|
|
1773
|
+
function bt({ children: e, className: a }) {
|
|
1774
|
+
return /* @__PURE__ */ l(
|
|
2073
1775
|
"div",
|
|
2074
1776
|
{
|
|
2075
|
-
className:
|
|
1777
|
+
className: n(
|
|
2076
1778
|
"flex-shrink-0 flex items-center",
|
|
2077
|
-
|
|
1779
|
+
i("sm", "gap"),
|
|
2078
1780
|
a
|
|
2079
1781
|
),
|
|
2080
|
-
children:
|
|
1782
|
+
children: e
|
|
2081
1783
|
}
|
|
2082
1784
|
);
|
|
2083
1785
|
}
|
|
2084
|
-
function
|
|
2085
|
-
children:
|
|
1786
|
+
function ht({
|
|
1787
|
+
children: e,
|
|
2086
1788
|
className: a
|
|
2087
1789
|
}) {
|
|
2088
|
-
return /* @__PURE__ */
|
|
1790
|
+
return /* @__PURE__ */ l(
|
|
2089
1791
|
"nav",
|
|
2090
1792
|
{
|
|
2091
|
-
className:
|
|
1793
|
+
className: n(
|
|
2092
1794
|
"flex-1 flex items-center justify-center",
|
|
2093
|
-
|
|
1795
|
+
i("base", "gap"),
|
|
2094
1796
|
"hidden md:flex",
|
|
2095
1797
|
// Hidden on mobile, visible on desktop
|
|
2096
1798
|
a
|
|
2097
1799
|
),
|
|
2098
1800
|
"aria-label": "Main navigation",
|
|
2099
|
-
children:
|
|
1801
|
+
children: e
|
|
2100
1802
|
}
|
|
2101
1803
|
);
|
|
2102
1804
|
}
|
|
2103
|
-
function
|
|
2104
|
-
var
|
|
2105
|
-
className:
|
|
2106
|
-
} =
|
|
1805
|
+
function yt(r) {
|
|
1806
|
+
var t = r, {
|
|
1807
|
+
className: e = ""
|
|
1808
|
+
} = t, a = p(t, [
|
|
2107
1809
|
"className"
|
|
2108
1810
|
]);
|
|
2109
|
-
return /* @__PURE__ */
|
|
1811
|
+
return /* @__PURE__ */ l(
|
|
2110
1812
|
"div",
|
|
2111
|
-
|
|
1813
|
+
f({
|
|
2112
1814
|
role: "separator",
|
|
2113
1815
|
className: `
|
|
2114
1816
|
h-px
|
|
2115
1817
|
bg-line-default
|
|
2116
|
-
${
|
|
2117
|
-
${
|
|
1818
|
+
${i("sm", "my")}
|
|
1819
|
+
${e}
|
|
2118
1820
|
`
|
|
2119
1821
|
}, a)
|
|
2120
1822
|
);
|
|
2121
1823
|
}
|
|
2122
|
-
function
|
|
2123
|
-
var s =
|
|
2124
|
-
orientation:
|
|
1824
|
+
function vt(t) {
|
|
1825
|
+
var s = t, {
|
|
1826
|
+
orientation: e = "horizontal",
|
|
2125
1827
|
className: a = ""
|
|
2126
|
-
} = s,
|
|
1828
|
+
} = s, r = p(s, [
|
|
2127
1829
|
"orientation",
|
|
2128
1830
|
"className"
|
|
2129
1831
|
]);
|
|
2130
|
-
return
|
|
1832
|
+
return e === "vertical" ? /* @__PURE__ */ l(
|
|
2131
1833
|
"div",
|
|
2132
|
-
|
|
2133
|
-
className:
|
|
1834
|
+
f({
|
|
1835
|
+
className: n("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
2134
1836
|
role: "separator",
|
|
2135
1837
|
"aria-orientation": "vertical"
|
|
2136
|
-
},
|
|
2137
|
-
) : /* @__PURE__ */
|
|
1838
|
+
}, r)
|
|
1839
|
+
) : /* @__PURE__ */ l(
|
|
2138
1840
|
"div",
|
|
2139
|
-
|
|
2140
|
-
className:
|
|
1841
|
+
f({
|
|
1842
|
+
className: n(
|
|
2141
1843
|
"w-full",
|
|
2142
1844
|
"h-px",
|
|
2143
1845
|
"bg-line-default",
|
|
2144
|
-
|
|
1846
|
+
i("sm", "my"),
|
|
2145
1847
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
2146
1848
|
"flex-shrink-0",
|
|
2147
1849
|
// Prevenir que separator encolha
|
|
@@ -2154,17 +1856,17 @@ function za(r) {
|
|
|
2154
1856
|
willChange: "auto",
|
|
2155
1857
|
transform: "none"
|
|
2156
1858
|
}
|
|
2157
|
-
},
|
|
1859
|
+
}, r)
|
|
2158
1860
|
);
|
|
2159
1861
|
}
|
|
2160
|
-
const
|
|
1862
|
+
const Je = M(
|
|
2161
1863
|
// Base classes
|
|
2162
|
-
|
|
1864
|
+
n("w-full", "flex", "flex-col", i("sm", "gap")),
|
|
2163
1865
|
{
|
|
2164
1866
|
variants: {
|
|
2165
1867
|
variant: {
|
|
2166
|
-
default:
|
|
2167
|
-
compact:
|
|
1868
|
+
default: n(i("base", "mb")),
|
|
1869
|
+
compact: n(i("sm", "mb"))
|
|
2168
1870
|
}
|
|
2169
1871
|
},
|
|
2170
1872
|
defaultVariants: {
|
|
@@ -2172,15 +1874,15 @@ const da = _(
|
|
|
2172
1874
|
}
|
|
2173
1875
|
}
|
|
2174
1876
|
);
|
|
2175
|
-
function
|
|
2176
|
-
var u =
|
|
2177
|
-
title:
|
|
1877
|
+
function wt(c) {
|
|
1878
|
+
var u = c, {
|
|
1879
|
+
title: e,
|
|
2178
1880
|
description: a,
|
|
2179
|
-
breadcrumb:
|
|
2180
|
-
actions:
|
|
1881
|
+
breadcrumb: r,
|
|
1882
|
+
actions: t,
|
|
2181
1883
|
variant: s = "default",
|
|
2182
|
-
className:
|
|
2183
|
-
} = u,
|
|
1884
|
+
className: o
|
|
1885
|
+
} = u, d = p(u, [
|
|
2184
1886
|
"title",
|
|
2185
1887
|
"description",
|
|
2186
1888
|
"breadcrumb",
|
|
@@ -2188,30 +1890,30 @@ function Fa(f) {
|
|
|
2188
1890
|
"variant",
|
|
2189
1891
|
"className"
|
|
2190
1892
|
]);
|
|
2191
|
-
return /* @__PURE__ */
|
|
2192
|
-
|
|
2193
|
-
/* @__PURE__ */
|
|
1893
|
+
return /* @__PURE__ */ v("div", g(f({ className: n(Je({ variant: s }), o) }, d), { children: [
|
|
1894
|
+
r && r.length > 0 && /* @__PURE__ */ l(Ue, { items: r }),
|
|
1895
|
+
/* @__PURE__ */ v(
|
|
2194
1896
|
"div",
|
|
2195
1897
|
{
|
|
2196
|
-
className: `flex items-start justify-between ${
|
|
1898
|
+
className: `flex items-start justify-between ${i("base", "gap")}`,
|
|
2197
1899
|
children: [
|
|
2198
|
-
/* @__PURE__ */
|
|
2199
|
-
/* @__PURE__ */
|
|
2200
|
-
|
|
1900
|
+
/* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
|
|
1901
|
+
/* @__PURE__ */ l(
|
|
1902
|
+
Q,
|
|
2201
1903
|
{
|
|
2202
1904
|
variant: "heading",
|
|
2203
1905
|
as: "h1",
|
|
2204
|
-
className: `${
|
|
2205
|
-
children:
|
|
1906
|
+
className: `${i("sm", "mb")} text-2xl font-bold`,
|
|
1907
|
+
children: e
|
|
2206
1908
|
}
|
|
2207
1909
|
),
|
|
2208
|
-
a && /* @__PURE__ */
|
|
1910
|
+
a && /* @__PURE__ */ l(Q, { variant: "body", className: "text-fg-secondary", children: a })
|
|
2209
1911
|
] }),
|
|
2210
|
-
|
|
1912
|
+
t && /* @__PURE__ */ l(
|
|
2211
1913
|
"div",
|
|
2212
1914
|
{
|
|
2213
|
-
className: `flex items-center ${
|
|
2214
|
-
children:
|
|
1915
|
+
className: `flex items-center ${i("sm", "gap")} flex-shrink-0`,
|
|
1916
|
+
children: t
|
|
2215
1917
|
}
|
|
2216
1918
|
)
|
|
2217
1919
|
]
|
|
@@ -2219,25 +1921,25 @@ function Fa(f) {
|
|
|
2219
1921
|
)
|
|
2220
1922
|
] }));
|
|
2221
1923
|
}
|
|
2222
|
-
const
|
|
1924
|
+
const Qe = {
|
|
2223
1925
|
start: "items-start text-left",
|
|
2224
1926
|
center: "items-center text-center"
|
|
2225
|
-
},
|
|
1927
|
+
}, et = {
|
|
2226
1928
|
neutral: "text-fg-tertiary",
|
|
2227
1929
|
success: "text-fg-success",
|
|
2228
1930
|
warning: "text-fg-warning",
|
|
2229
1931
|
error: "text-fg-error"
|
|
2230
1932
|
};
|
|
2231
|
-
function
|
|
2232
|
-
var
|
|
2233
|
-
value:
|
|
1933
|
+
function Nt(u) {
|
|
1934
|
+
var x = u, {
|
|
1935
|
+
value: e,
|
|
2234
1936
|
label: a,
|
|
2235
|
-
hint:
|
|
2236
|
-
icon:
|
|
1937
|
+
hint: r,
|
|
1938
|
+
icon: t,
|
|
2237
1939
|
align: s = "start",
|
|
2238
|
-
tone:
|
|
2239
|
-
className:
|
|
2240
|
-
} =
|
|
1940
|
+
tone: o = "neutral",
|
|
1941
|
+
className: d
|
|
1942
|
+
} = x, c = p(x, [
|
|
2241
1943
|
"value",
|
|
2242
1944
|
"label",
|
|
2243
1945
|
"hint",
|
|
@@ -2246,241 +1948,242 @@ function La(u) {
|
|
|
2246
1948
|
"tone",
|
|
2247
1949
|
"className"
|
|
2248
1950
|
]);
|
|
2249
|
-
const
|
|
2250
|
-
return /* @__PURE__ */
|
|
1951
|
+
const y = e == null;
|
|
1952
|
+
return /* @__PURE__ */ v(
|
|
2251
1953
|
"div",
|
|
2252
|
-
|
|
2253
|
-
className:
|
|
1954
|
+
g(f({
|
|
1955
|
+
className: n(
|
|
2254
1956
|
"bg-surface-base flex-1 flex flex-col",
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
1957
|
+
i("base", "p"),
|
|
1958
|
+
i("xs", "gap-y"),
|
|
1959
|
+
Qe[s],
|
|
1960
|
+
d
|
|
2259
1961
|
)
|
|
2260
|
-
},
|
|
1962
|
+
}, c), {
|
|
2261
1963
|
children: [
|
|
2262
|
-
|
|
2263
|
-
|
|
1964
|
+
t ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: t }) : null,
|
|
1965
|
+
y ? /* @__PURE__ */ l(
|
|
2264
1966
|
"span",
|
|
2265
1967
|
{
|
|
2266
1968
|
"aria-label": "No data",
|
|
2267
1969
|
className: "text-fg-tertiary text-2xl font-semibold leading-tight",
|
|
2268
1970
|
children: "—"
|
|
2269
1971
|
}
|
|
2270
|
-
) : /* @__PURE__ */
|
|
2271
|
-
/* @__PURE__ */
|
|
2272
|
-
|
|
1972
|
+
) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
1973
|
+
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
|
|
1974
|
+
r ? /* @__PURE__ */ l("span", { className: n("text-xs", et[o]), children: r }) : null
|
|
2273
1975
|
]
|
|
2274
1976
|
})
|
|
2275
1977
|
);
|
|
2276
1978
|
}
|
|
2277
|
-
const
|
|
1979
|
+
const tt = {
|
|
2278
1980
|
2: "md:grid-cols-2",
|
|
2279
1981
|
3: "md:grid-cols-3",
|
|
2280
1982
|
4: "md:grid-cols-4"
|
|
2281
1983
|
};
|
|
2282
|
-
function
|
|
2283
|
-
var
|
|
2284
|
-
layout:
|
|
1984
|
+
function $t(o) {
|
|
1985
|
+
var d = o, {
|
|
1986
|
+
layout: e = "grid",
|
|
2285
1987
|
cols: a = 4,
|
|
2286
|
-
className:
|
|
2287
|
-
children:
|
|
2288
|
-
} =
|
|
1988
|
+
className: r,
|
|
1989
|
+
children: t
|
|
1990
|
+
} = d, s = p(d, [
|
|
2289
1991
|
"layout",
|
|
2290
1992
|
"cols",
|
|
2291
1993
|
"className",
|
|
2292
1994
|
"children"
|
|
2293
1995
|
]);
|
|
2294
|
-
const
|
|
2295
|
-
return /* @__PURE__ */
|
|
1996
|
+
const c = e === "grid";
|
|
1997
|
+
return /* @__PURE__ */ l(
|
|
2296
1998
|
"div",
|
|
2297
|
-
|
|
2298
|
-
className:
|
|
1999
|
+
g(f({
|
|
2000
|
+
className: n(
|
|
2299
2001
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2002
|
+
C("lg"),
|
|
2003
|
+
c ? `grid grid-cols-2 ${tt[a]}` : "flex",
|
|
2004
|
+
r
|
|
2303
2005
|
)
|
|
2304
2006
|
}, s), {
|
|
2305
|
-
children:
|
|
2007
|
+
children: t
|
|
2306
2008
|
})
|
|
2307
2009
|
);
|
|
2308
2010
|
}
|
|
2309
|
-
function
|
|
2310
|
-
var
|
|
2311
|
-
const
|
|
2312
|
-
return /* @__PURE__ */
|
|
2011
|
+
function St(s) {
|
|
2012
|
+
var o = s, { column: e, row: a, className: r = "" } = o, t = p(o, ["column", "row", "className"]);
|
|
2013
|
+
const d = e.key in a ? a[e.key] : void 0;
|
|
2014
|
+
return /* @__PURE__ */ l(
|
|
2313
2015
|
"td",
|
|
2314
|
-
|
|
2315
|
-
className: `${
|
|
2316
|
-
},
|
|
2317
|
-
children:
|
|
2016
|
+
g(f({
|
|
2017
|
+
className: `${i("lg", "px")} ${i("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
2018
|
+
}, t), {
|
|
2019
|
+
children: e.render ? e.render(d, a) : String(d != null ? d : "")
|
|
2318
2020
|
})
|
|
2319
2021
|
);
|
|
2320
2022
|
}
|
|
2321
|
-
function
|
|
2322
|
-
items:
|
|
2023
|
+
function Ct({
|
|
2024
|
+
items: e,
|
|
2323
2025
|
orientation: a = "vertical",
|
|
2324
|
-
className:
|
|
2026
|
+
className: r = ""
|
|
2325
2027
|
}) {
|
|
2326
|
-
return a === "horizontal" ? /* @__PURE__ */
|
|
2327
|
-
const
|
|
2328
|
-
return /* @__PURE__ */
|
|
2329
|
-
/* @__PURE__ */
|
|
2028
|
+
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, s) => {
|
|
2029
|
+
const o = t.status || (s === 0 ? "active" : s < e.findIndex((c) => c.status === "active") ? "completed" : "default"), d = s === e.length - 1;
|
|
2030
|
+
return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2031
|
+
/* @__PURE__ */ l(
|
|
2330
2032
|
"div",
|
|
2331
|
-
|
|
2033
|
+
g(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2332
2034
|
className: `
|
|
2333
2035
|
flex
|
|
2334
2036
|
items-center
|
|
2335
2037
|
justify-center
|
|
2336
2038
|
w-10
|
|
2337
2039
|
h-10
|
|
2338
|
-
${
|
|
2040
|
+
${C("full")}
|
|
2339
2041
|
border-2
|
|
2340
|
-
${
|
|
2042
|
+
${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"}
|
|
2341
2043
|
`,
|
|
2342
|
-
children:
|
|
2044
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(q, { className: "h-4 w-4" }) : s + 1)
|
|
2343
2045
|
})
|
|
2344
2046
|
),
|
|
2345
|
-
!
|
|
2047
|
+
!d && /* @__PURE__ */ l(
|
|
2346
2048
|
"div",
|
|
2347
2049
|
{
|
|
2348
2050
|
className: `
|
|
2349
2051
|
w-full
|
|
2350
2052
|
h-0.5
|
|
2351
|
-
${
|
|
2352
|
-
${
|
|
2053
|
+
${i("sm", "mt")}
|
|
2054
|
+
${o === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2353
2055
|
`
|
|
2354
2056
|
}
|
|
2355
2057
|
),
|
|
2356
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ v(
|
|
2357
2059
|
"div",
|
|
2358
2060
|
{
|
|
2359
|
-
className: `${
|
|
2061
|
+
className: `${i("base", "mt")} text-center ${i("base", "px")}`,
|
|
2360
2062
|
children: [
|
|
2361
|
-
|
|
2063
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2362
2064
|
"p",
|
|
2363
2065
|
{
|
|
2364
|
-
className: `text-xs text-fg-tertiary ${
|
|
2365
|
-
children:
|
|
2066
|
+
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2067
|
+
children: t.timestamp
|
|
2366
2068
|
}
|
|
2367
2069
|
),
|
|
2368
|
-
/* @__PURE__ */
|
|
2369
|
-
|
|
2070
|
+
/* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
|
|
2071
|
+
t.description && /* @__PURE__ */ l(
|
|
2370
2072
|
"p",
|
|
2371
2073
|
{
|
|
2372
|
-
className: `text-xs text-fg-secondary ${
|
|
2373
|
-
children:
|
|
2074
|
+
className: `text-xs text-fg-secondary ${i("xs", "mt")}`,
|
|
2075
|
+
children: t.description
|
|
2374
2076
|
}
|
|
2375
2077
|
),
|
|
2376
|
-
|
|
2078
|
+
t.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: t.content })
|
|
2377
2079
|
]
|
|
2378
2080
|
}
|
|
2379
2081
|
)
|
|
2380
|
-
] }) },
|
|
2381
|
-
}) }) : /* @__PURE__ */
|
|
2382
|
-
const
|
|
2383
|
-
return /* @__PURE__ */
|
|
2082
|
+
] }) }, t.id);
|
|
2083
|
+
}) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((t, s) => {
|
|
2084
|
+
const o = t.status || (s === 0 ? "active" : s < e.findIndex((c) => c.status === "active") ? "completed" : "default"), d = s === e.length - 1;
|
|
2085
|
+
return /* @__PURE__ */ v(
|
|
2384
2086
|
"div",
|
|
2385
2087
|
{
|
|
2386
|
-
className: `flex items-start ${
|
|
2088
|
+
className: `flex items-start ${i("base", "gap")}`,
|
|
2387
2089
|
children: [
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2090
|
+
/* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
|
|
2091
|
+
/* @__PURE__ */ l(
|
|
2390
2092
|
"div",
|
|
2391
|
-
|
|
2093
|
+
g(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2392
2094
|
className: `
|
|
2393
2095
|
flex
|
|
2394
2096
|
items-center
|
|
2395
2097
|
justify-center
|
|
2396
2098
|
w-10
|
|
2397
2099
|
h-10
|
|
2398
|
-
${
|
|
2100
|
+
${C("full")}
|
|
2399
2101
|
border-2
|
|
2400
|
-
${
|
|
2102
|
+
${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"}
|
|
2401
2103
|
`,
|
|
2402
|
-
children:
|
|
2104
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(q, { className: "h-4 w-4" }) : s + 1)
|
|
2403
2105
|
})
|
|
2404
2106
|
),
|
|
2405
|
-
!
|
|
2107
|
+
!d && /* @__PURE__ */ l(
|
|
2406
2108
|
"div",
|
|
2407
2109
|
{
|
|
2408
2110
|
className: `
|
|
2409
2111
|
w-0.5
|
|
2410
2112
|
flex-1
|
|
2411
2113
|
min-h-16
|
|
2412
|
-
${
|
|
2413
|
-
${
|
|
2114
|
+
${i("sm", "mt")}
|
|
2115
|
+
${o === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2414
2116
|
`
|
|
2415
2117
|
}
|
|
2416
2118
|
)
|
|
2417
2119
|
] }),
|
|
2418
|
-
/* @__PURE__ */
|
|
2419
|
-
|
|
2120
|
+
/* @__PURE__ */ v("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
|
|
2121
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2420
2122
|
"p",
|
|
2421
2123
|
{
|
|
2422
|
-
className: `text-xs text-fg-tertiary ${
|
|
2423
|
-
children:
|
|
2124
|
+
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2125
|
+
children: t.timestamp
|
|
2424
2126
|
}
|
|
2425
2127
|
),
|
|
2426
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ l(
|
|
2427
2129
|
"h3",
|
|
2428
2130
|
{
|
|
2429
2131
|
className: `
|
|
2430
2132
|
text-base
|
|
2431
2133
|
font-semibold
|
|
2432
|
-
${
|
|
2134
|
+
${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
|
|
2433
2135
|
`,
|
|
2434
|
-
children:
|
|
2136
|
+
children: t.title
|
|
2435
2137
|
}
|
|
2436
2138
|
),
|
|
2437
|
-
|
|
2139
|
+
t.description && /* @__PURE__ */ l(
|
|
2438
2140
|
"p",
|
|
2439
2141
|
{
|
|
2440
|
-
className: `text-sm text-fg-secondary ${
|
|
2441
|
-
children:
|
|
2142
|
+
className: `text-sm text-fg-secondary ${i("xs", "mt")}`,
|
|
2143
|
+
children: t.description
|
|
2442
2144
|
}
|
|
2443
2145
|
),
|
|
2444
|
-
|
|
2146
|
+
t.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: t.content })
|
|
2445
2147
|
] })
|
|
2446
2148
|
]
|
|
2447
2149
|
},
|
|
2448
|
-
|
|
2150
|
+
t.id
|
|
2449
2151
|
);
|
|
2450
2152
|
}) });
|
|
2451
2153
|
}
|
|
2452
2154
|
export {
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2155
|
+
me as Badge,
|
|
2156
|
+
Ue as Breadcrumb,
|
|
2157
|
+
I as Card,
|
|
2158
|
+
Ge as CardActions,
|
|
2159
|
+
Ye as CardBody,
|
|
2160
|
+
Ke as CardHeader,
|
|
2161
|
+
qe as CardSubtitle,
|
|
2162
|
+
Xe as CardTitle,
|
|
2163
|
+
Te as Chip,
|
|
2164
|
+
Pe as Container,
|
|
2165
|
+
pt as DialogFooter,
|
|
2166
|
+
ut as DialogHeader,
|
|
2167
|
+
gt as DrawerFooter,
|
|
2168
|
+
mt as DrawerHeader,
|
|
2169
|
+
dt as ErrorMessage,
|
|
2170
|
+
xt as FilterChips,
|
|
2171
|
+
bt as HeaderActions,
|
|
2172
|
+
ht as HeaderNavigation,
|
|
2173
|
+
ct as Info,
|
|
2174
|
+
Fe as Label,
|
|
2175
|
+
yt as MenuSeparator,
|
|
2176
|
+
vt as NavbarSeparator,
|
|
2177
|
+
wt as PageHeader,
|
|
2178
|
+
Me as Progress,
|
|
2179
|
+
De as Separator,
|
|
2180
|
+
ft as Skeleton,
|
|
2181
|
+
Ie as Spinner,
|
|
2182
|
+
Be as Stack,
|
|
2183
|
+
Nt as Stat,
|
|
2184
|
+
$t as StatGroup,
|
|
2185
|
+
St as TableCell,
|
|
2186
|
+
Q as Text,
|
|
2187
|
+
Ct as Timeline
|
|
2485
2188
|
};
|
|
2486
2189
|
//# sourceMappingURL=index.js.map
|