@kismet-ux/constellation 1.0.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/LICENSE +21 -0
- package/README.md +170 -0
- package/dist/brand/Logo/index.d.ts +2 -0
- package/dist/brand/Logo/index.d.ts.map +1 -0
- package/dist/brand/Logo/logo.d.ts +23 -0
- package/dist/brand/Logo/logo.d.ts.map +1 -0
- package/dist/brand/Logo/logo.js +28 -0
- package/dist/brand/Logo/logo.js.map +1 -0
- package/dist/brand/Logo/logo.module.scss.js +4 -0
- package/dist/brand/Logo/logo.module.scss.js.map +1 -0
- package/dist/brand/index.d.ts +2 -0
- package/dist/brand/index.d.ts.map +1 -0
- package/dist/brand.d.ts +25 -0
- package/dist/brand.js +2 -0
- package/dist/brand.js.map +1 -0
- package/dist/form/Checkbox/checkbox.d.ts +20 -0
- package/dist/form/Checkbox/checkbox.d.ts.map +1 -0
- package/dist/form/Checkbox/checkbox.js +57 -0
- package/dist/form/Checkbox/checkbox.js.map +1 -0
- package/dist/form/Checkbox/checkbox.module.scss.js +4 -0
- package/dist/form/Checkbox/checkbox.module.scss.js.map +1 -0
- package/dist/form/Checkbox/index.d.ts +2 -0
- package/dist/form/Checkbox/index.d.ts.map +1 -0
- package/dist/form/DatePicker/date-picker.d.ts +5 -0
- package/dist/form/DatePicker/date-picker.d.ts.map +1 -0
- package/dist/form/DatePicker/date-picker.js +251 -0
- package/dist/form/DatePicker/date-picker.js.map +1 -0
- package/dist/form/DatePicker/date-picker.module.scss.js +4 -0
- package/dist/form/DatePicker/date-picker.module.scss.js.map +1 -0
- package/dist/form/DatePicker/index.d.ts +2 -0
- package/dist/form/DatePicker/index.d.ts.map +1 -0
- package/dist/form/DatePicker/use-calendar.d.ts +40 -0
- package/dist/form/DatePicker/use-calendar.d.ts.map +1 -0
- package/dist/form/DatePicker/use-calendar.js +202 -0
- package/dist/form/DatePicker/use-calendar.js.map +1 -0
- package/dist/form/Input/index.d.ts +2 -0
- package/dist/form/Input/index.d.ts.map +1 -0
- package/dist/form/Input/input.d.ts +23 -0
- package/dist/form/Input/input.d.ts.map +1 -0
- package/dist/form/Input/input.js +24 -0
- package/dist/form/Input/input.js.map +1 -0
- package/dist/form/Input/input.module.scss.js +4 -0
- package/dist/form/Input/input.module.scss.js.map +1 -0
- package/dist/form/Label/index.d.ts +2 -0
- package/dist/form/Label/index.d.ts.map +1 -0
- package/dist/form/Label/label-variants.d.ts +5 -0
- package/dist/form/Label/label-variants.d.ts.map +1 -0
- package/dist/form/Label/label-variants.js +29 -0
- package/dist/form/Label/label-variants.js.map +1 -0
- package/dist/form/Label/label.d.ts +10 -0
- package/dist/form/Label/label.d.ts.map +1 -0
- package/dist/form/Label/label.js +13 -0
- package/dist/form/Label/label.js.map +1 -0
- package/dist/form/Label/label.module.scss.js +4 -0
- package/dist/form/Label/label.module.scss.js.map +1 -0
- package/dist/form/Select/index.d.ts +2 -0
- package/dist/form/Select/index.d.ts.map +1 -0
- package/dist/form/Select/select.d.ts +16 -0
- package/dist/form/Select/select.d.ts.map +1 -0
- package/dist/form/Select/select.js +857 -0
- package/dist/form/Select/select.js.map +1 -0
- package/dist/form/Select/select.module.scss.js +4 -0
- package/dist/form/Select/select.module.scss.js.map +1 -0
- package/dist/form/index.d.ts +6 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form.d.ts +5 -0
- package/dist/form.js +6 -0
- package/dist/form.js.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/layout/index.d.ts +2 -0
- package/dist/hooks/layout/index.d.ts.map +1 -0
- package/dist/hooks/layout/use-sidebar.d.ts +3 -0
- package/dist/hooks/layout/use-sidebar.d.ts.map +1 -0
- package/dist/hooks/layout/use-sidebar.js +13 -0
- package/dist/hooks/layout/use-sidebar.js.map +1 -0
- package/dist/hooks/ui/index.d.ts +3 -0
- package/dist/hooks/ui/index.d.ts.map +1 -0
- package/dist/hooks/ui/use-alerts.d.ts +3 -0
- package/dist/hooks/ui/use-alerts.d.ts.map +1 -0
- package/dist/hooks/ui/use-alerts.js +13 -0
- package/dist/hooks/ui/use-alerts.js.map +1 -0
- package/dist/hooks/ui/use-table-sorting.d.ts +6 -0
- package/dist/hooks/ui/use-table-sorting.d.ts.map +1 -0
- package/dist/hooks/ui/use-table-sorting.js +37 -0
- package/dist/hooks/ui/use-table-sorting.js.map +1 -0
- package/dist/hooks/use-appearance.d.ts +10 -0
- package/dist/hooks/use-appearance.d.ts.map +1 -0
- package/dist/hooks/use-appearance.js +123 -0
- package/dist/hooks/use-appearance.js.map +1 -0
- package/dist/hooks/use-initials.d.ts +2 -0
- package/dist/hooks/use-initials.d.ts.map +1 -0
- package/dist/hooks/use-initials.js +17 -0
- package/dist/hooks/use-initials.js.map +1 -0
- package/dist/hooks/use-mobile-navigation.d.ts +2 -0
- package/dist/hooks/use-mobile-navigation.d.ts.map +1 -0
- package/dist/hooks/use-mobile-navigation.js +11 -0
- package/dist/hooks/use-mobile-navigation.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +6 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +73 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/index-Bzf20Rpc.d.ts +120 -0
- package/dist/index-DECPicJT.d.ts +450 -0
- package/dist/index-qbk6vH0X.d.ts +186 -0
- package/dist/index.css +7611 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/input-CWHXOpeH.d.ts +25 -0
- package/dist/internal/create-ripple.d.ts +8 -0
- package/dist/internal/create-ripple.d.ts.map +1 -0
- package/dist/internal/create-ripple.js +24 -0
- package/dist/internal/create-ripple.js.map +1 -0
- package/dist/internal/merge-refs.d.ts +3 -0
- package/dist/internal/merge-refs.d.ts.map +1 -0
- package/dist/internal/merge-refs.js +15 -0
- package/dist/internal/merge-refs.js.map +1 -0
- package/dist/internal/slot.d.ts +7 -0
- package/dist/internal/slot.d.ts.map +1 -0
- package/dist/internal/slot.js +42 -0
- package/dist/internal/slot.js.map +1 -0
- package/dist/internal/use-animation-state.d.ts +12 -0
- package/dist/internal/use-animation-state.d.ts.map +1 -0
- package/dist/internal/use-animation-state.js +36 -0
- package/dist/internal/use-animation-state.js.map +1 -0
- package/dist/internal/use-focus-trap.d.ts +3 -0
- package/dist/internal/use-focus-trap.d.ts.map +1 -0
- package/dist/internal/use-focus-trap.js +55 -0
- package/dist/internal/use-focus-trap.js.map +1 -0
- package/dist/internal/use-scroll-lock.d.ts +2 -0
- package/dist/internal/use-scroll-lock.d.ts.map +1 -0
- package/dist/internal/use-scroll-lock.js +22 -0
- package/dist/internal/use-scroll-lock.js.map +1 -0
- package/dist/internal/with-aria-hidden-children.d.ts +16 -0
- package/dist/internal/with-aria-hidden-children.d.ts.map +1 -0
- package/dist/internal/with-aria-hidden-children.js +29 -0
- package/dist/internal/with-aria-hidden-children.js.map +1 -0
- package/dist/layout/AppContent/app-content.d.ts +3 -0
- package/dist/layout/AppContent/app-content.d.ts.map +1 -0
- package/dist/layout/AppContent/app-content.js +11 -0
- package/dist/layout/AppContent/app-content.js.map +1 -0
- package/dist/layout/AppContent/app-content.module.scss.js +4 -0
- package/dist/layout/AppContent/app-content.module.scss.js.map +1 -0
- package/dist/layout/AppContent/index.d.ts +2 -0
- package/dist/layout/AppContent/index.d.ts.map +1 -0
- package/dist/layout/AppFooter/app-footer.d.ts +10 -0
- package/dist/layout/AppFooter/app-footer.d.ts.map +1 -0
- package/dist/layout/AppFooter/app-footer.js +19 -0
- package/dist/layout/AppFooter/app-footer.js.map +1 -0
- package/dist/layout/AppFooter/app-footer.module.scss.js +4 -0
- package/dist/layout/AppFooter/app-footer.module.scss.js.map +1 -0
- package/dist/layout/AppFooter/index.d.ts +2 -0
- package/dist/layout/AppFooter/index.d.ts.map +1 -0
- package/dist/layout/AppShell/app-shell.d.ts +11 -0
- package/dist/layout/AppShell/app-shell.d.ts.map +1 -0
- package/dist/layout/AppShell/app-shell.js +9 -0
- package/dist/layout/AppShell/app-shell.js.map +1 -0
- package/dist/layout/AppShell/index.d.ts +2 -0
- package/dist/layout/AppShell/index.d.ts.map +1 -0
- package/dist/layout/AppSidebar/app-sidebar.d.ts +14 -0
- package/dist/layout/AppSidebar/app-sidebar.d.ts.map +1 -0
- package/dist/layout/AppSidebar/app-sidebar.js +71 -0
- package/dist/layout/AppSidebar/app-sidebar.js.map +1 -0
- package/dist/layout/AppSidebar/index.d.ts +2 -0
- package/dist/layout/AppSidebar/index.d.ts.map +1 -0
- package/dist/layout/AppSidebarHeader/app-sidebar-header.d.ts +13 -0
- package/dist/layout/AppSidebarHeader/app-sidebar-header.d.ts.map +1 -0
- package/dist/layout/AppSidebarHeader/app-sidebar-header.js +20 -0
- package/dist/layout/AppSidebarHeader/app-sidebar-header.js.map +1 -0
- package/dist/layout/AppSidebarHeader/app-sidebar-header.module.scss.js +4 -0
- package/dist/layout/AppSidebarHeader/app-sidebar-header.module.scss.js.map +1 -0
- package/dist/layout/AppSidebarHeader/index.d.ts +2 -0
- package/dist/layout/AppSidebarHeader/index.d.ts.map +1 -0
- package/dist/layout/Collapse/collapse.d.ts +8 -0
- package/dist/layout/Collapse/collapse.d.ts.map +1 -0
- package/dist/layout/Collapse/collapse.js +14 -0
- package/dist/layout/Collapse/collapse.js.map +1 -0
- package/dist/layout/Collapse/collapse.module.scss.js +4 -0
- package/dist/layout/Collapse/collapse.module.scss.js.map +1 -0
- package/dist/layout/Collapse/index.d.ts +2 -0
- package/dist/layout/Collapse/index.d.ts.map +1 -0
- package/dist/layout/Column/column.d.ts +4 -0
- package/dist/layout/Column/column.d.ts.map +1 -0
- package/dist/layout/Column/column.js +14 -0
- package/dist/layout/Column/column.js.map +1 -0
- package/dist/layout/Column/column.module.scss.js +4 -0
- package/dist/layout/Column/column.module.scss.js.map +1 -0
- package/dist/layout/Column/index.d.ts +3 -0
- package/dist/layout/Column/index.d.ts.map +1 -0
- package/dist/layout/Container/container.d.ts +4 -0
- package/dist/layout/Container/container.d.ts.map +1 -0
- package/dist/layout/Container/container.js +35 -0
- package/dist/layout/Container/container.js.map +1 -0
- package/dist/layout/Container/container.module.scss.js +4 -0
- package/dist/layout/Container/container.module.scss.js.map +1 -0
- package/dist/layout/Container/index.d.ts +2 -0
- package/dist/layout/Container/index.d.ts.map +1 -0
- package/dist/layout/Grid/grid.d.ts +5 -0
- package/dist/layout/Grid/grid.d.ts.map +1 -0
- package/dist/layout/Grid/grid.js +15 -0
- package/dist/layout/Grid/grid.js.map +1 -0
- package/dist/layout/Grid/grid.module.scss.js +4 -0
- package/dist/layout/Grid/grid.module.scss.js.map +1 -0
- package/dist/layout/Grid/index.d.ts +2 -0
- package/dist/layout/Grid/index.d.ts.map +1 -0
- package/dist/layout/Row/index.d.ts +3 -0
- package/dist/layout/Row/index.d.ts.map +1 -0
- package/dist/layout/Row/row.d.ts +4 -0
- package/dist/layout/Row/row.d.ts.map +1 -0
- package/dist/layout/Row/row.js +19 -0
- package/dist/layout/Row/row.js.map +1 -0
- package/dist/layout/Row/row.module.scss.js +4 -0
- package/dist/layout/Row/row.module.scss.js.map +1 -0
- package/dist/layout/Sidebar/index.d.ts +2 -0
- package/dist/layout/Sidebar/index.d.ts.map +1 -0
- package/dist/layout/Sidebar/sidebar-context.d.ts +4 -0
- package/dist/layout/Sidebar/sidebar-context.d.ts.map +1 -0
- package/dist/layout/Sidebar/sidebar-context.js +6 -0
- package/dist/layout/Sidebar/sidebar-context.js.map +1 -0
- package/dist/layout/Sidebar/sidebar-variants.d.ts +5 -0
- package/dist/layout/Sidebar/sidebar-variants.d.ts.map +1 -0
- package/dist/layout/Sidebar/sidebar-variants.js +23 -0
- package/dist/layout/Sidebar/sidebar-variants.js.map +1 -0
- package/dist/layout/Sidebar/sidebar.d.ts +57 -0
- package/dist/layout/Sidebar/sidebar.d.ts.map +1 -0
- package/dist/layout/Sidebar/sidebar.js +200 -0
- package/dist/layout/Sidebar/sidebar.js.map +1 -0
- package/dist/layout/Sidebar/sidebar.module.scss.js +4 -0
- package/dist/layout/Sidebar/sidebar.module.scss.js.map +1 -0
- package/dist/layout/Skeleton/index.d.ts +2 -0
- package/dist/layout/Skeleton/index.d.ts.map +1 -0
- package/dist/layout/Skeleton/skeleton.d.ts +3 -0
- package/dist/layout/Skeleton/skeleton.d.ts.map +1 -0
- package/dist/layout/Skeleton/skeleton.js +10 -0
- package/dist/layout/Skeleton/skeleton.js.map +1 -0
- package/dist/layout/Skeleton/skeleton.module.scss.js +4 -0
- package/dist/layout/Skeleton/skeleton.module.scss.js.map +1 -0
- package/dist/layout/index.d.ts +13 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout.d.ts +10 -0
- package/dist/layout.js +13 -0
- package/dist/layout.js.map +1 -0
- package/dist/nav-user-CJIcWKyY.d.ts +41 -0
- package/dist/navigation/Breadcrumbs/breadcrumbs.d.ts +7 -0
- package/dist/navigation/Breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/navigation/Breadcrumbs/breadcrumbs.js +19 -0
- package/dist/navigation/Breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/navigation/Breadcrumbs/breadcrumbs.module.scss.js +4 -0
- package/dist/navigation/Breadcrumbs/breadcrumbs.module.scss.js.map +1 -0
- package/dist/navigation/Breadcrumbs/index.d.ts +2 -0
- package/dist/navigation/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/navigation/DropdownMenu/dropdown-menu.d.ts +50 -0
- package/dist/navigation/DropdownMenu/dropdown-menu.d.ts.map +1 -0
- package/dist/navigation/DropdownMenu/dropdown-menu.js +193 -0
- package/dist/navigation/DropdownMenu/dropdown-menu.js.map +1 -0
- package/dist/navigation/DropdownMenu/dropdown-menu.module.scss.js +4 -0
- package/dist/navigation/DropdownMenu/dropdown-menu.module.scss.js.map +1 -0
- package/dist/navigation/DropdownMenu/index.d.ts +2 -0
- package/dist/navigation/DropdownMenu/index.d.ts.map +1 -0
- package/dist/navigation/Link/index.d.ts +2 -0
- package/dist/navigation/Link/index.d.ts.map +1 -0
- package/dist/navigation/Link/link-variants.d.ts +6 -0
- package/dist/navigation/Link/link-variants.d.ts.map +1 -0
- package/dist/navigation/Link/link-variants.js +33 -0
- package/dist/navigation/Link/link-variants.js.map +1 -0
- package/dist/navigation/Link/link.d.ts +24 -0
- package/dist/navigation/Link/link.d.ts.map +1 -0
- package/dist/navigation/Link/link.js +49 -0
- package/dist/navigation/Link/link.js.map +1 -0
- package/dist/navigation/Link/link.module.scss.js +4 -0
- package/dist/navigation/Link/link.module.scss.js.map +1 -0
- package/dist/navigation/NavUser/index.d.ts +2 -0
- package/dist/navigation/NavUser/index.d.ts.map +1 -0
- package/dist/navigation/NavUser/nav-user.d.ts +8 -0
- package/dist/navigation/NavUser/nav-user.d.ts.map +1 -0
- package/dist/navigation/NavUser/nav-user.js +15 -0
- package/dist/navigation/NavUser/nav-user.js.map +1 -0
- package/dist/navigation/NavUser/nav-user.module.scss.js +4 -0
- package/dist/navigation/NavUser/nav-user.module.scss.js.map +1 -0
- package/dist/navigation/Router/index.d.ts +2 -0
- package/dist/navigation/Router/index.d.ts.map +1 -0
- package/dist/navigation/Router/router-context.d.ts +38 -0
- package/dist/navigation/Router/router-context.d.ts.map +1 -0
- package/dist/navigation/Router/router-context.js +49 -0
- package/dist/navigation/Router/router-context.js.map +1 -0
- package/dist/navigation/Sheet/index.d.ts +2 -0
- package/dist/navigation/Sheet/index.d.ts.map +1 -0
- package/dist/navigation/Sheet/sheet.d.ts +36 -0
- package/dist/navigation/Sheet/sheet.d.ts.map +1 -0
- package/dist/navigation/Sheet/sheet.js +104 -0
- package/dist/navigation/Sheet/sheet.js.map +1 -0
- package/dist/navigation/Sheet/sheet.module.scss.js +4 -0
- package/dist/navigation/Sheet/sheet.module.scss.js.map +1 -0
- package/dist/navigation/index.d.ts +7 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/navigation.d.ts +160 -0
- package/dist/navigation.js +7 -0
- package/dist/navigation.js.map +1 -0
- package/dist/row-CS9-talZ.d.ts +14 -0
- package/dist/settings/AppearanceDropdown/appearance-dropdown.d.ts +3 -0
- package/dist/settings/AppearanceDropdown/appearance-dropdown.d.ts.map +1 -0
- package/dist/settings/AppearanceDropdown/appearance-dropdown.js +27 -0
- package/dist/settings/AppearanceDropdown/appearance-dropdown.js.map +1 -0
- package/dist/settings/AppearanceDropdown/index.d.ts +2 -0
- package/dist/settings/AppearanceDropdown/index.d.ts.map +1 -0
- package/dist/settings/AppearanceTabs/appearance-tabs.d.ts +7 -0
- package/dist/settings/AppearanceTabs/appearance-tabs.d.ts.map +1 -0
- package/dist/settings/AppearanceTabs/appearance-tabs.js +23 -0
- package/dist/settings/AppearanceTabs/appearance-tabs.js.map +1 -0
- package/dist/settings/AppearanceTabs/appearance-tabs.module.scss.js +4 -0
- package/dist/settings/AppearanceTabs/appearance-tabs.module.scss.js.map +1 -0
- package/dist/settings/AppearanceTabs/index.d.ts +2 -0
- package/dist/settings/AppearanceTabs/index.d.ts.map +1 -0
- package/dist/settings/index.d.ts +3 -0
- package/dist/settings/index.d.ts.map +1 -0
- package/dist/settings.d.ts +10 -0
- package/dist/settings.js +3 -0
- package/dist/settings.js.map +1 -0
- package/dist/styles/index.d.ts +2 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/tooltip-XagXjWLB.d.ts +41 -0
- package/dist/types/app.d.ts +7 -0
- package/dist/types/app.d.ts.map +1 -0
- package/dist/types/form/date-picker.d.ts +19 -0
- package/dist/types/form/date-picker.d.ts.map +1 -0
- package/dist/types/form/select.d.ts +52 -0
- package/dist/types/form/select.d.ts.map +1 -0
- package/dist/types/form/theme.d.ts +2 -0
- package/dist/types/form/theme.d.ts.map +1 -0
- package/dist/types/form/upload.d.ts +4 -0
- package/dist/types/form/upload.d.ts.map +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/layout/column.d.ts +11 -0
- package/dist/types/layout/column.d.ts.map +1 -0
- package/dist/types/layout/container.d.ts +18 -0
- package/dist/types/layout/container.d.ts.map +1 -0
- package/dist/types/layout/grid.d.ts +23 -0
- package/dist/types/layout/grid.d.ts.map +1 -0
- package/dist/types/layout/row.d.ts +12 -0
- package/dist/types/layout/row.d.ts.map +1 -0
- package/dist/types/layout/sidebar.d.ts +14 -0
- package/dist/types/layout/sidebar.d.ts.map +1 -0
- package/dist/types/navigation.d.ts +30 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/dist/types/ui/alerts.d.ts +20 -0
- package/dist/types/ui/alerts.d.ts.map +1 -0
- package/dist/types/ui/pagination.d.ts +10 -0
- package/dist/types/ui/pagination.d.ts.map +1 -0
- package/dist/types/ui/table.d.ts +11 -0
- package/dist/types/ui/table.d.ts.map +1 -0
- package/dist/typography/Heading/heading.d.ts +21 -0
- package/dist/typography/Heading/heading.d.ts.map +1 -0
- package/dist/typography/Heading/heading.js +21 -0
- package/dist/typography/Heading/heading.js.map +1 -0
- package/dist/typography/Heading/heading.module.scss.js +4 -0
- package/dist/typography/Heading/heading.module.scss.js.map +1 -0
- package/dist/typography/Heading/index.d.ts +2 -0
- package/dist/typography/Heading/index.d.ts.map +1 -0
- package/dist/typography/TruncatedText/index.d.ts +2 -0
- package/dist/typography/TruncatedText/index.d.ts.map +1 -0
- package/dist/typography/TruncatedText/truncated-text.d.ts +15 -0
- package/dist/typography/TruncatedText/truncated-text.d.ts.map +1 -0
- package/dist/typography/TruncatedText/truncated-text.js +61 -0
- package/dist/typography/TruncatedText/truncated-text.js.map +1 -0
- package/dist/typography/TruncatedText/truncated-text.module.scss.js +4 -0
- package/dist/typography/TruncatedText/truncated-text.module.scss.js.map +1 -0
- package/dist/typography/Typography/index.d.ts +2 -0
- package/dist/typography/Typography/index.d.ts.map +1 -0
- package/dist/typography/Typography/typography-variants.d.ts +9 -0
- package/dist/typography/Typography/typography-variants.d.ts.map +1 -0
- package/dist/typography/Typography/typography-variants.js +75 -0
- package/dist/typography/Typography/typography-variants.js.map +1 -0
- package/dist/typography/Typography/typography.d.ts +19 -0
- package/dist/typography/Typography/typography.d.ts.map +1 -0
- package/dist/typography/Typography/typography.js +43 -0
- package/dist/typography/Typography/typography.js.map +1 -0
- package/dist/typography/Typography/typography.module.scss.js +4 -0
- package/dist/typography/Typography/typography.module.scss.js.map +1 -0
- package/dist/typography/index.d.ts +4 -0
- package/dist/typography/index.d.ts.map +1 -0
- package/dist/typography-DOZHFR5A.d.ts +21 -0
- package/dist/typography.d.ts +37 -0
- package/dist/typography.js +4 -0
- package/dist/typography.js.map +1 -0
- package/dist/ui/Alert/alert-context.d.ts +3 -0
- package/dist/ui/Alert/alert-context.d.ts.map +1 -0
- package/dist/ui/Alert/alert-context.js +6 -0
- package/dist/ui/Alert/alert-context.js.map +1 -0
- package/dist/ui/Alert/alert-persist.d.ts +4 -0
- package/dist/ui/Alert/alert-persist.d.ts.map +1 -0
- package/dist/ui/Alert/alert-persist.js +27 -0
- package/dist/ui/Alert/alert-persist.js.map +1 -0
- package/dist/ui/Alert/alert-provider.d.ts +6 -0
- package/dist/ui/Alert/alert-provider.d.ts.map +1 -0
- package/dist/ui/Alert/alert-provider.js +57 -0
- package/dist/ui/Alert/alert-provider.js.map +1 -0
- package/dist/ui/Alert/alert-variants.d.ts +4 -0
- package/dist/ui/Alert/alert-variants.d.ts.map +1 -0
- package/dist/ui/Alert/alert-variants.js +23 -0
- package/dist/ui/Alert/alert-variants.js.map +1 -0
- package/dist/ui/Alert/alert.d.ts +24 -0
- package/dist/ui/Alert/alert.d.ts.map +1 -0
- package/dist/ui/Alert/alert.js +37 -0
- package/dist/ui/Alert/alert.js.map +1 -0
- package/dist/ui/Alert/alert.module.scss.js +4 -0
- package/dist/ui/Alert/alert.module.scss.js.map +1 -0
- package/dist/ui/Alert/index.d.ts +4 -0
- package/dist/ui/Alert/index.d.ts.map +1 -0
- package/dist/ui/Avatar/avatar.d.ts +9 -0
- package/dist/ui/Avatar/avatar.d.ts.map +1 -0
- package/dist/ui/Avatar/avatar.js +29 -0
- package/dist/ui/Avatar/avatar.js.map +1 -0
- package/dist/ui/Avatar/avatar.module.scss.js +4 -0
- package/dist/ui/Avatar/avatar.module.scss.js.map +1 -0
- package/dist/ui/Avatar/index.d.ts +2 -0
- package/dist/ui/Avatar/index.d.ts.map +1 -0
- package/dist/ui/Button/button-variants.d.ts +8 -0
- package/dist/ui/Button/button-variants.d.ts.map +1 -0
- package/dist/ui/Button/button-variants.js +45 -0
- package/dist/ui/Button/button-variants.js.map +1 -0
- package/dist/ui/Button/button.d.ts +9 -0
- package/dist/ui/Button/button.d.ts.map +1 -0
- package/dist/ui/Button/button.js +65 -0
- package/dist/ui/Button/button.js.map +1 -0
- package/dist/ui/Button/button.module.scss.js +4 -0
- package/dist/ui/Button/button.module.scss.js.map +1 -0
- package/dist/ui/Button/index.d.ts +2 -0
- package/dist/ui/Button/index.d.ts.map +1 -0
- package/dist/ui/Chip/chip-variants.d.ts +6 -0
- package/dist/ui/Chip/chip-variants.d.ts.map +1 -0
- package/dist/ui/Chip/chip-variants.js +32 -0
- package/dist/ui/Chip/chip-variants.js.map +1 -0
- package/dist/ui/Chip/chip.d.ts +8 -0
- package/dist/ui/Chip/chip.d.ts.map +1 -0
- package/dist/ui/Chip/chip.js +13 -0
- package/dist/ui/Chip/chip.js.map +1 -0
- package/dist/ui/Chip/chip.module.scss.js +4 -0
- package/dist/ui/Chip/chip.module.scss.js.map +1 -0
- package/dist/ui/Chip/index.d.ts +2 -0
- package/dist/ui/Chip/index.d.ts.map +1 -0
- package/dist/ui/CodeBlock/code-block-variants.d.ts +5 -0
- package/dist/ui/CodeBlock/code-block-variants.d.ts.map +1 -0
- package/dist/ui/CodeBlock/code-block-variants.js +29 -0
- package/dist/ui/CodeBlock/code-block-variants.js.map +1 -0
- package/dist/ui/CodeBlock/code-block.d.ts +20 -0
- package/dist/ui/CodeBlock/code-block.d.ts.map +1 -0
- package/dist/ui/CodeBlock/code-block.js +70 -0
- package/dist/ui/CodeBlock/code-block.js.map +1 -0
- package/dist/ui/CodeBlock/code-block.module.scss.js +4 -0
- package/dist/ui/CodeBlock/code-block.module.scss.js.map +1 -0
- package/dist/ui/CodeBlock/index.d.ts +2 -0
- package/dist/ui/CodeBlock/index.d.ts.map +1 -0
- package/dist/ui/DevIndicator/dev-indicator.d.ts +5 -0
- package/dist/ui/DevIndicator/dev-indicator.d.ts.map +1 -0
- package/dist/ui/DevIndicator/dev-indicator.js +20 -0
- package/dist/ui/DevIndicator/dev-indicator.js.map +1 -0
- package/dist/ui/DevIndicator/dev-indicator.module.scss.js +4 -0
- package/dist/ui/DevIndicator/dev-indicator.module.scss.js.map +1 -0
- package/dist/ui/DevIndicator/index.d.ts +2 -0
- package/dist/ui/DevIndicator/index.d.ts.map +1 -0
- package/dist/ui/Dialog/dialog.d.ts +50 -0
- package/dist/ui/Dialog/dialog.d.ts.map +1 -0
- package/dist/ui/Dialog/dialog.js +133 -0
- package/dist/ui/Dialog/dialog.js.map +1 -0
- package/dist/ui/Dialog/dialog.module.scss.js +4 -0
- package/dist/ui/Dialog/dialog.module.scss.js.map +1 -0
- package/dist/ui/Dialog/index.d.ts +2 -0
- package/dist/ui/Dialog/index.d.ts.map +1 -0
- package/dist/ui/EmptyState/empty-state-variants.d.ts +5 -0
- package/dist/ui/EmptyState/empty-state-variants.d.ts.map +1 -0
- package/dist/ui/EmptyState/empty-state-variants.js +29 -0
- package/dist/ui/EmptyState/empty-state-variants.js.map +1 -0
- package/dist/ui/EmptyState/empty-state.d.ts +16 -0
- package/dist/ui/EmptyState/empty-state.d.ts.map +1 -0
- package/dist/ui/EmptyState/empty-state.js +13 -0
- package/dist/ui/EmptyState/empty-state.js.map +1 -0
- package/dist/ui/EmptyState/empty-state.module.scss.js +4 -0
- package/dist/ui/EmptyState/empty-state.module.scss.js.map +1 -0
- package/dist/ui/EmptyState/index.d.ts +2 -0
- package/dist/ui/EmptyState/index.d.ts.map +1 -0
- package/dist/ui/Icon/icon-variants.d.ts +7 -0
- package/dist/ui/Icon/icon-variants.d.ts.map +1 -0
- package/dist/ui/Icon/icon-variants.js +43 -0
- package/dist/ui/Icon/icon-variants.js.map +1 -0
- package/dist/ui/Icon/icon.d.ts +44 -0
- package/dist/ui/Icon/icon.d.ts.map +1 -0
- package/dist/ui/Icon/icon.js +41 -0
- package/dist/ui/Icon/icon.js.map +1 -0
- package/dist/ui/Icon/icon.module.scss.js +4 -0
- package/dist/ui/Icon/icon.module.scss.js.map +1 -0
- package/dist/ui/Icon/index.d.ts +2 -0
- package/dist/ui/Icon/index.d.ts.map +1 -0
- package/dist/ui/List/index.d.ts +2 -0
- package/dist/ui/List/index.d.ts.map +1 -0
- package/dist/ui/List/list.d.ts +14 -0
- package/dist/ui/List/list.d.ts.map +1 -0
- package/dist/ui/List/list.js +20 -0
- package/dist/ui/List/list.js.map +1 -0
- package/dist/ui/List/list.module.scss.js +4 -0
- package/dist/ui/List/list.module.scss.js.map +1 -0
- package/dist/ui/Pagination/index.d.ts +2 -0
- package/dist/ui/Pagination/index.d.ts.map +1 -0
- package/dist/ui/Pagination/pagination.d.ts +5 -0
- package/dist/ui/Pagination/pagination.d.ts.map +1 -0
- package/dist/ui/Pagination/pagination.js +37 -0
- package/dist/ui/Pagination/pagination.js.map +1 -0
- package/dist/ui/Pagination/pagination.module.scss.js +4 -0
- package/dist/ui/Pagination/pagination.module.scss.js.map +1 -0
- package/dist/ui/ProgressBar/index.d.ts +2 -0
- package/dist/ui/ProgressBar/index.d.ts.map +1 -0
- package/dist/ui/ProgressBar/progress-bar-variants.d.ts +9 -0
- package/dist/ui/ProgressBar/progress-bar-variants.d.ts.map +1 -0
- package/dist/ui/ProgressBar/progress-bar-variants.js +46 -0
- package/dist/ui/ProgressBar/progress-bar-variants.js.map +1 -0
- package/dist/ui/ProgressBar/progress-bar.d.ts +12 -0
- package/dist/ui/ProgressBar/progress-bar.d.ts.map +1 -0
- package/dist/ui/ProgressBar/progress-bar.js +14 -0
- package/dist/ui/ProgressBar/progress-bar.js.map +1 -0
- package/dist/ui/ProgressBar/progress-bar.module.scss.js +4 -0
- package/dist/ui/ProgressBar/progress-bar.module.scss.js.map +1 -0
- package/dist/ui/Separator/index.d.ts +2 -0
- package/dist/ui/Separator/index.d.ts.map +1 -0
- package/dist/ui/Separator/separator.d.ts +8 -0
- package/dist/ui/Separator/separator.d.ts.map +1 -0
- package/dist/ui/Separator/separator.js +10 -0
- package/dist/ui/Separator/separator.js.map +1 -0
- package/dist/ui/Separator/separator.module.scss.js +4 -0
- package/dist/ui/Separator/separator.module.scss.js.map +1 -0
- package/dist/ui/StatCard/index.d.ts +2 -0
- package/dist/ui/StatCard/index.d.ts.map +1 -0
- package/dist/ui/StatCard/stat-card-variants.d.ts +6 -0
- package/dist/ui/StatCard/stat-card-variants.d.ts.map +1 -0
- package/dist/ui/StatCard/stat-card-variants.js +35 -0
- package/dist/ui/StatCard/stat-card-variants.js.map +1 -0
- package/dist/ui/StatCard/stat-card.d.ts +31 -0
- package/dist/ui/StatCard/stat-card.d.ts.map +1 -0
- package/dist/ui/StatCard/stat-card.js +56 -0
- package/dist/ui/StatCard/stat-card.js.map +1 -0
- package/dist/ui/StatCard/stat-card.module.scss.js +4 -0
- package/dist/ui/StatCard/stat-card.module.scss.js.map +1 -0
- package/dist/ui/StepProgress/index.d.ts +2 -0
- package/dist/ui/StepProgress/index.d.ts.map +1 -0
- package/dist/ui/StepProgress/step-progress-variants.d.ts +7 -0
- package/dist/ui/StepProgress/step-progress-variants.d.ts.map +1 -0
- package/dist/ui/StepProgress/step-progress-variants.js +39 -0
- package/dist/ui/StepProgress/step-progress-variants.js.map +1 -0
- package/dist/ui/StepProgress/step-progress.d.ts +20 -0
- package/dist/ui/StepProgress/step-progress.d.ts.map +1 -0
- package/dist/ui/StepProgress/step-progress.js +40 -0
- package/dist/ui/StepProgress/step-progress.js.map +1 -0
- package/dist/ui/StepProgress/step-progress.module.scss.js +4 -0
- package/dist/ui/StepProgress/step-progress.module.scss.js.map +1 -0
- package/dist/ui/Switch/index.d.ts +2 -0
- package/dist/ui/Switch/index.d.ts.map +1 -0
- package/dist/ui/Switch/switch-variants.d.ts +5 -0
- package/dist/ui/Switch/switch-variants.d.ts.map +1 -0
- package/dist/ui/Switch/switch-variants.js +29 -0
- package/dist/ui/Switch/switch-variants.js.map +1 -0
- package/dist/ui/Switch/switch.d.ts +10 -0
- package/dist/ui/Switch/switch.d.ts.map +1 -0
- package/dist/ui/Switch/switch.js +18 -0
- package/dist/ui/Switch/switch.js.map +1 -0
- package/dist/ui/Switch/switch.module.scss.js +4 -0
- package/dist/ui/Switch/switch.module.scss.js.map +1 -0
- package/dist/ui/Table/index.d.ts +2 -0
- package/dist/ui/Table/index.d.ts.map +1 -0
- package/dist/ui/Table/table-sort-context.d.ts +4 -0
- package/dist/ui/Table/table-sort-context.d.ts.map +1 -0
- package/dist/ui/Table/table-sort-context.js +6 -0
- package/dist/ui/Table/table-sort-context.js.map +1 -0
- package/dist/ui/Table/table.d.ts +32 -0
- package/dist/ui/Table/table.d.ts.map +1 -0
- package/dist/ui/Table/table.js +59 -0
- package/dist/ui/Table/table.js.map +1 -0
- package/dist/ui/Table/table.module.scss.js +4 -0
- package/dist/ui/Table/table.module.scss.js.map +1 -0
- package/dist/ui/TableActionCell/index.d.ts +2 -0
- package/dist/ui/TableActionCell/index.d.ts.map +1 -0
- package/dist/ui/TableActionCell/table-action-cell.d.ts +28 -0
- package/dist/ui/TableActionCell/table-action-cell.d.ts.map +1 -0
- package/dist/ui/TableActionCell/table-action-cell.js +27 -0
- package/dist/ui/TableActionCell/table-action-cell.js.map +1 -0
- package/dist/ui/TableActionCell/table-action-cell.module.scss.js +4 -0
- package/dist/ui/TableActionCell/table-action-cell.module.scss.js.map +1 -0
- package/dist/ui/TableToolbar/index.d.ts +2 -0
- package/dist/ui/TableToolbar/index.d.ts.map +1 -0
- package/dist/ui/TableToolbar/table-toolbar.d.ts +29 -0
- package/dist/ui/TableToolbar/table-toolbar.d.ts.map +1 -0
- package/dist/ui/TableToolbar/table-toolbar.js +18 -0
- package/dist/ui/TableToolbar/table-toolbar.js.map +1 -0
- package/dist/ui/TableToolbar/table-toolbar.module.scss.js +4 -0
- package/dist/ui/TableToolbar/table-toolbar.module.scss.js.map +1 -0
- package/dist/ui/Toggle/index.d.ts +2 -0
- package/dist/ui/Toggle/index.d.ts.map +1 -0
- package/dist/ui/Toggle/toggle-group-context.d.ts +9 -0
- package/dist/ui/Toggle/toggle-group-context.d.ts.map +1 -0
- package/dist/ui/Toggle/toggle-group-context.js +6 -0
- package/dist/ui/Toggle/toggle-group-context.js.map +1 -0
- package/dist/ui/Toggle/toggle-variants.d.ts +8 -0
- package/dist/ui/Toggle/toggle-variants.d.ts.map +1 -0
- package/dist/ui/Toggle/toggle-variants.js +45 -0
- package/dist/ui/Toggle/toggle-variants.js.map +1 -0
- package/dist/ui/Toggle/toggle.d.ts +12 -0
- package/dist/ui/Toggle/toggle.d.ts.map +1 -0
- package/dist/ui/Toggle/toggle.js +49 -0
- package/dist/ui/Toggle/toggle.js.map +1 -0
- package/dist/ui/Toggle/toggle.module.scss.js +4 -0
- package/dist/ui/Toggle/toggle.module.scss.js.map +1 -0
- package/dist/ui/ToggleGroup/index.d.ts +2 -0
- package/dist/ui/ToggleGroup/index.d.ts.map +1 -0
- package/dist/ui/ToggleGroup/toggle-group.d.ts +24 -0
- package/dist/ui/ToggleGroup/toggle-group.d.ts.map +1 -0
- package/dist/ui/ToggleGroup/toggle-group.js +80 -0
- package/dist/ui/ToggleGroup/toggle-group.js.map +1 -0
- package/dist/ui/ToggleGroup/toggle-group.module.scss.js +4 -0
- package/dist/ui/ToggleGroup/toggle-group.module.scss.js.map +1 -0
- package/dist/ui/Tooltip/index.d.ts +2 -0
- package/dist/ui/Tooltip/index.d.ts.map +1 -0
- package/dist/ui/Tooltip/tooltip.d.ts +24 -0
- package/dist/ui/Tooltip/tooltip.d.ts.map +1 -0
- package/dist/ui/Tooltip/tooltip.js +192 -0
- package/dist/ui/Tooltip/tooltip.js.map +1 -0
- package/dist/ui/Tooltip/tooltip.module.scss.js +4 -0
- package/dist/ui/Tooltip/tooltip.module.scss.js.map +1 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui.d.ts +6 -0
- package/dist/ui.js +25 -0
- package/dist/ui.js.map +1 -0
- package/dist/user/UserInfo/index.d.ts +2 -0
- package/dist/user/UserInfo/index.d.ts.map +1 -0
- package/dist/user/UserInfo/user-info.d.ts +6 -0
- package/dist/user/UserInfo/user-info.d.ts.map +1 -0
- package/dist/user/UserInfo/user-info.js +17 -0
- package/dist/user/UserInfo/user-info.js.map +1 -0
- package/dist/user/UserInfo/user-info.module.scss.js +4 -0
- package/dist/user/UserInfo/user-info.module.scss.js.map +1 -0
- package/dist/user/UserMenuContent/index.d.ts +2 -0
- package/dist/user/UserMenuContent/index.d.ts.map +1 -0
- package/dist/user/UserMenuContent/user-menu-content.d.ts +25 -0
- package/dist/user/UserMenuContent/user-menu-content.d.ts.map +1 -0
- package/dist/user/UserMenuContent/user-menu-content.js +23 -0
- package/dist/user/UserMenuContent/user-menu-content.js.map +1 -0
- package/dist/user/index.d.ts +3 -0
- package/dist/user/index.d.ts.map +1 -0
- package/dist/user-menu-content-D0Ldzigm.d.ts +34 -0
- package/dist/user.d.ts +10 -0
- package/dist/user.js +3 -0
- package/dist/user.js.map +1 -0
- package/dist/utils/csrf.d.ts +2 -0
- package/dist/utils/csrf.d.ts.map +1 -0
- package/dist/utils/csrf.js +13 -0
- package/dist/utils/csrf.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +2 -0
- package/dist/utils.js.map +1 -0
- package/package.json +208 -0
- package/src/styles/_mixins.scss +105 -0
- package/src/styles/_theme-context.scss +12 -0
- package/src/styles/mixins.scss +1 -0
- package/vite-plugin.d.ts +26 -0
- package/vite-plugin.mjs +95 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.tsx"],"names":[],"mappings":"AAgEA,wBAAgB,aAAa;;sBAUjB,MAAM;EAKjB;AAED,wBAAgB,WAAW,CAAC,UAAU,GAAE,MAA0B,WAGjE"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { useState, useEffect, useCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
const MOBILE_BREAKPOINT = 768;
|
|
4
|
+
let currentWidth = typeof window === 'undefined' ? undefined : window.innerWidth;
|
|
5
|
+
const listeners = new Set();
|
|
6
|
+
let resizeHandler = null;
|
|
7
|
+
let resizeRaf = 0;
|
|
8
|
+
function ensureResizeListener() {
|
|
9
|
+
if (typeof window === 'undefined' || resizeHandler)
|
|
10
|
+
return;
|
|
11
|
+
const notify = (width) => {
|
|
12
|
+
if (width === currentWidth)
|
|
13
|
+
return;
|
|
14
|
+
currentWidth = width;
|
|
15
|
+
listeners.forEach(listener => listener(width));
|
|
16
|
+
};
|
|
17
|
+
const readWidth = () => window.innerWidth;
|
|
18
|
+
const onResize = () => {
|
|
19
|
+
if (resizeRaf)
|
|
20
|
+
cancelAnimationFrame(resizeRaf);
|
|
21
|
+
resizeRaf = requestAnimationFrame(() => {
|
|
22
|
+
resizeRaf = 0;
|
|
23
|
+
notify(readWidth());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
resizeHandler = onResize;
|
|
27
|
+
window.addEventListener('resize', onResize, { passive: true });
|
|
28
|
+
// Prime current width
|
|
29
|
+
notify(readWidth());
|
|
30
|
+
}
|
|
31
|
+
function teardownResizeListener() {
|
|
32
|
+
if (!resizeHandler)
|
|
33
|
+
return;
|
|
34
|
+
window.removeEventListener('resize', resizeHandler);
|
|
35
|
+
resizeHandler = null;
|
|
36
|
+
if (resizeRaf) {
|
|
37
|
+
cancelAnimationFrame(resizeRaf);
|
|
38
|
+
resizeRaf = 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function subscribeWidth(listener) {
|
|
42
|
+
listeners.add(listener);
|
|
43
|
+
if (currentWidth !== undefined) {
|
|
44
|
+
listener(currentWidth);
|
|
45
|
+
}
|
|
46
|
+
if (listeners.size === 1) {
|
|
47
|
+
ensureResizeListener();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function unsubscribeWidth(listener) {
|
|
51
|
+
listeners.delete(listener);
|
|
52
|
+
if (listeners.size === 0) {
|
|
53
|
+
teardownResizeListener();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function useBreakpoint() {
|
|
57
|
+
const [width, setWidth] = useState(currentWidth);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (typeof window === 'undefined')
|
|
60
|
+
return;
|
|
61
|
+
subscribeWidth(setWidth);
|
|
62
|
+
return () => unsubscribeWidth(setWidth);
|
|
63
|
+
}, []);
|
|
64
|
+
const isBelow = useCallback((value = MOBILE_BREAKPOINT) => (width ?? Number.MAX_SAFE_INTEGER) < value, [width]);
|
|
65
|
+
return { width, isBelow };
|
|
66
|
+
}
|
|
67
|
+
function useIsMobile(breakpoint = MOBILE_BREAKPOINT) {
|
|
68
|
+
const { isBelow } = useBreakpoint();
|
|
69
|
+
return isBelow(breakpoint);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { useBreakpoint, useIsMobile };
|
|
73
|
+
//# sourceMappingURL=use-mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile.js","sources":["../../src/hooks/use-mobile.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nconst MOBILE_BREAKPOINT = 768;\n\ntype WidthListener = (width: number) => void;\n\nlet currentWidth = typeof window === 'undefined' ? undefined : window.innerWidth;\nconst listeners = new Set<WidthListener>();\nlet resizeHandler: (() => void) | null = null;\nlet resizeRaf = 0;\n\nfunction ensureResizeListener() {\n if (typeof window === 'undefined' || resizeHandler) return;\n\n const notify = (width: number) => {\n if (width === currentWidth) return;\n currentWidth = width;\n listeners.forEach(listener => listener(width));\n };\n\n const readWidth = () => window.innerWidth;\n\n const onResize = () => {\n if (resizeRaf) cancelAnimationFrame(resizeRaf);\n resizeRaf = requestAnimationFrame(() => {\n resizeRaf = 0;\n notify(readWidth());\n });\n };\n\n resizeHandler = onResize;\n window.addEventListener('resize', onResize, { passive: true });\n\n // Prime current width\n notify(readWidth());\n}\n\nfunction teardownResizeListener() {\n if (!resizeHandler) return;\n window.removeEventListener('resize', resizeHandler);\n resizeHandler = null;\n if (resizeRaf) {\n cancelAnimationFrame(resizeRaf);\n resizeRaf = 0;\n }\n}\n\nfunction subscribeWidth(listener: WidthListener) {\n listeners.add(listener);\n if (currentWidth !== undefined) {\n listener(currentWidth);\n }\n if (listeners.size === 1) {\n ensureResizeListener();\n }\n}\n\nfunction unsubscribeWidth(listener: WidthListener) {\n listeners.delete(listener);\n if (listeners.size === 0) {\n teardownResizeListener();\n }\n}\n\nexport function useBreakpoint() {\n const [width, setWidth] = useState<number | undefined>(currentWidth);\n\n useEffect(() => {\n if (typeof window === 'undefined') return;\n subscribeWidth(setWidth);\n return () => unsubscribeWidth(setWidth);\n }, []);\n\n const isBelow = useCallback(\n (value: number = MOBILE_BREAKPOINT) => (width ?? Number.MAX_SAFE_INTEGER) < value,\n [width],\n );\n\n return { width, isBelow };\n}\n\nexport function useIsMobile(breakpoint: number = MOBILE_BREAKPOINT) {\n const { isBelow } = useBreakpoint();\n return isBelow(breakpoint);\n}\n"],"names":[],"mappings":";;AAEA,MAAM,iBAAiB,GAAG,GAAG;AAI7B,IAAI,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,UAAU;AAChF,MAAM,SAAS,GAAG,IAAI,GAAG,EAAiB;AAC1C,IAAI,aAAa,GAAwB,IAAI;AAC7C,IAAI,SAAS,GAAG,CAAC;AAEjB,SAAS,oBAAoB,GAAA;AAC3B,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,aAAa;QAAE;AAEpD,IAAA,MAAM,MAAM,GAAG,CAAC,KAAa,KAAI;QAC/B,IAAI,KAAK,KAAK,YAAY;YAAE;QAC5B,YAAY,GAAG,KAAK;AACpB,QAAA,SAAS,CAAC,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;AAChD,IAAA,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,UAAU;IAEzC,MAAM,QAAQ,GAAG,MAAK;AACpB,QAAA,IAAI,SAAS;YAAE,oBAAoB,CAAC,SAAS,CAAC;AAC9C,QAAA,SAAS,GAAG,qBAAqB,CAAC,MAAK;YACrC,SAAS,GAAG,CAAC;AACb,YAAA,MAAM,CAAC,SAAS,EAAE,CAAC;AACrB,QAAA,CAAC,CAAC;AACJ,IAAA,CAAC;IAED,aAAa,GAAG,QAAQ;AACxB,IAAA,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAG9D,IAAA,MAAM,CAAC,SAAS,EAAE,CAAC;AACrB;AAEA,SAAS,sBAAsB,GAAA;AAC7B,IAAA,IAAI,CAAC,aAAa;QAAE;AACpB,IAAA,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC;IACnD,aAAa,GAAG,IAAI;IACpB,IAAI,SAAS,EAAE;QACb,oBAAoB,CAAC,SAAS,CAAC;QAC/B,SAAS,GAAG,CAAC;IACf;AACF;AAEA,SAAS,cAAc,CAAC,QAAuB,EAAA;AAC7C,IAAA,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;AACvB,IAAA,IAAI,YAAY,KAAK,SAAS,EAAE;QAC9B,QAAQ,CAAC,YAAY,CAAC;IACxB;AACA,IAAA,IAAI,SAAS,CAAC,IAAI,KAAK,CAAC,EAAE;AACxB,QAAA,oBAAoB,EAAE;IACxB;AACF;AAEA,SAAS,gBAAgB,CAAC,QAAuB,EAAA;AAC/C,IAAA,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC1B,IAAA,IAAI,SAAS,CAAC,IAAI,KAAK,CAAC,EAAE;AACxB,QAAA,sBAAsB,EAAE;IAC1B;AACF;SAEgB,aAAa,GAAA;IAC3B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAqB,YAAY,CAAC;IAEpE,SAAS,CAAC,MAAK;QACb,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE;QACnC,cAAc,CAAC,QAAQ,CAAC;AACxB,QAAA,OAAO,MAAM,gBAAgB,CAAC,QAAQ,CAAC;IACzC,CAAC,EAAE,EAAE,CAAC;IAEN,MAAM,OAAO,GAAG,WAAW,CACzB,CAAC,QAAgB,iBAAiB,KAAK,CAAC,KAAK,IAAI,MAAM,CAAC,gBAAgB,IAAI,KAAK,EACjF,CAAC,KAAK,CAAC,CACR;AAED,IAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;AAC3B;AAEM,SAAU,WAAW,CAAC,UAAA,GAAqB,iBAAiB,EAAA;AAChE,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,aAAa,EAAE;AACnC,IAAA,OAAO,OAAO,CAAC,UAAU,CAAC;AAC5B;;"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import './input-CWHXOpeH.js';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type DatePickerProps = {
|
|
8
|
+
value?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
label?: React__default.ReactNode;
|
|
12
|
+
helperText?: React__default.ReactNode;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
sizeVariant?: 'sm' | 'md';
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
min?: string;
|
|
18
|
+
max?: string;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
id?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type SelectAlign = 'start' | 'center' | 'end';
|
|
26
|
+
type SelectSide = 'top' | 'bottom' | 'left' | 'right';
|
|
27
|
+
type SelectPosition = 'item-aligned' | 'popper';
|
|
28
|
+
type SelectProps = {
|
|
29
|
+
open?: boolean;
|
|
30
|
+
defaultOpen?: boolean;
|
|
31
|
+
onOpenChange?: (open: boolean) => void;
|
|
32
|
+
value?: string;
|
|
33
|
+
defaultValue?: string;
|
|
34
|
+
onValueChange?: (value: string) => void;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
required?: boolean;
|
|
37
|
+
name?: string;
|
|
38
|
+
children?: React__default.ReactNode;
|
|
39
|
+
};
|
|
40
|
+
type SelectContentProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
41
|
+
position?: SelectPosition;
|
|
42
|
+
align?: SelectAlign;
|
|
43
|
+
side?: SelectSide;
|
|
44
|
+
sideOffset?: number;
|
|
45
|
+
collisionPadding?: number;
|
|
46
|
+
};
|
|
47
|
+
type SelectFieldContentProps = Pick<SelectContentProps, 'align' | 'className' | 'collisionPadding' | 'side' | 'sideOffset'>;
|
|
48
|
+
type SelectFieldBaseProps = Omit<SelectProps, 'value' | 'defaultValue' | 'onValueChange'> & {
|
|
49
|
+
'aria-required'?: boolean;
|
|
50
|
+
label?: React__default.ReactNode;
|
|
51
|
+
helperText?: React__default.ReactNode;
|
|
52
|
+
error?: boolean;
|
|
53
|
+
placeholder?: string;
|
|
54
|
+
fieldClassName?: string;
|
|
55
|
+
contentProps?: SelectFieldContentProps;
|
|
56
|
+
id?: string;
|
|
57
|
+
children?: React__default.ReactNode;
|
|
58
|
+
sizeVariant?: 'sm' | 'md';
|
|
59
|
+
searchThreshold?: number;
|
|
60
|
+
};
|
|
61
|
+
type SingleSelectFieldProps = SelectFieldBaseProps & {
|
|
62
|
+
multiple?: false;
|
|
63
|
+
value?: string;
|
|
64
|
+
defaultValue?: string;
|
|
65
|
+
onValueChange?: (value: string) => void;
|
|
66
|
+
};
|
|
67
|
+
type MultiSelectFieldProps = SelectFieldBaseProps & {
|
|
68
|
+
multiple: true;
|
|
69
|
+
value?: string[];
|
|
70
|
+
defaultValue?: string[];
|
|
71
|
+
onValueChange?: (value: string[]) => void;
|
|
72
|
+
};
|
|
73
|
+
type SelectFieldProps = SingleSelectFieldProps | MultiSelectFieldProps;
|
|
74
|
+
|
|
75
|
+
type FormTheme = 'inherit' | 'primary' | 'secondary' | 'destructive' | 'warning' | 'success' | 'info' | 'slate';
|
|
76
|
+
|
|
77
|
+
type CheckedState = boolean | 'indeterminate';
|
|
78
|
+
interface CheckboxProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'value' | 'defaultValue' | 'defaultChecked'> {
|
|
79
|
+
theme?: FormTheme;
|
|
80
|
+
destructive?: boolean;
|
|
81
|
+
checked?: CheckedState;
|
|
82
|
+
defaultChecked?: CheckedState;
|
|
83
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
84
|
+
value?: string;
|
|
85
|
+
name?: string;
|
|
86
|
+
required?: boolean;
|
|
87
|
+
/** Optional inline label rendered to the right of the checkbox and associated via htmlFor. */
|
|
88
|
+
label?: React.ReactNode;
|
|
89
|
+
/** Optional helper / validation text rendered beneath the checkbox + label row. */
|
|
90
|
+
helperText?: React.ReactNode;
|
|
91
|
+
}
|
|
92
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
93
|
+
|
|
94
|
+
declare function DatePicker({ value: valueProp, defaultValue, onChange, label, helperText, error, disabled, sizeVariant, placeholder, min, max, required, id, className, name, }: DatePickerProps): React.JSX.Element;
|
|
95
|
+
|
|
96
|
+
declare const labelVariants: (props?: ({
|
|
97
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
98
|
+
theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
|
|
99
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
100
|
+
|
|
101
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
|
|
102
|
+
theme?: FormTheme;
|
|
103
|
+
}
|
|
104
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
105
|
+
|
|
106
|
+
declare function Select({ open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, disabled, children, ...props }: SelectProps): React.JSX.Element;
|
|
107
|
+
declare function SelectGroup({ ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
108
|
+
declare function SelectValue({ children, placeholder, ...props }: React.HTMLAttributes<HTMLSpanElement> & {
|
|
109
|
+
placeholder?: React.ReactNode;
|
|
110
|
+
}): React.JSX.Element;
|
|
111
|
+
declare function SelectTrigger({ className, children, onClick, onKeyDown, type, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
|
|
112
|
+
declare function SelectContent({ align, className, children, collisionPadding, onKeyDown, position, side, sideOffset, ...props }: SelectContentProps): React.JSX.Element;
|
|
113
|
+
declare function SelectItem({ className, children, disabled, onClick, onMouseMove, value, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
114
|
+
value: string;
|
|
115
|
+
}): React.JSX.Element;
|
|
116
|
+
declare function SelectSeparator({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
117
|
+
declare function SelectField(props: SelectFieldProps): React.JSX.Element;
|
|
118
|
+
|
|
119
|
+
export { Checkbox as C, DatePicker as D, Label as L, Select as S, SelectContent as e, SelectField as g, SelectGroup as i, SelectItem as j, SelectSeparator as m, SelectTrigger as o, SelectValue as p };
|
|
120
|
+
export type { FormTheme as F, CheckboxProps as a, DatePickerProps as b, LabelProps as c, SelectAlign as d, SelectContentProps as f, SelectFieldProps as h, SelectPosition as k, SelectProps as l, SelectSide as n };
|
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import './tooltip-XagXjWLB.js';
|
|
6
|
+
import { e as TypographyVariant } from './typography-DOZHFR5A.js';
|
|
7
|
+
|
|
8
|
+
type AlertTheme = 'default' | 'primary' | 'secondary' | 'success' | 'destructive' | 'warning' | 'info' | 'slate';
|
|
9
|
+
type AlertMessage = {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
theme: AlertTheme;
|
|
14
|
+
timeout?: number;
|
|
15
|
+
persistent?: boolean;
|
|
16
|
+
closable?: boolean;
|
|
17
|
+
};
|
|
18
|
+
type PushAlertInput = Omit<AlertMessage, 'id'> & {
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
action?: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
type AlertContextValue = {
|
|
23
|
+
pushAlert: (alert: PushAlertInput) => void;
|
|
24
|
+
removeAlert: (id: string) => void;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type PaginationProps = {
|
|
28
|
+
page: number;
|
|
29
|
+
pageSize: number;
|
|
30
|
+
totalItems: number;
|
|
31
|
+
onPageChange: (page: number) => void;
|
|
32
|
+
onPageSizeChange: (size: number) => void;
|
|
33
|
+
pageSizeOptions?: number[];
|
|
34
|
+
className?: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
type SortDirection = 'asc' | 'desc';
|
|
38
|
+
type SortState = {
|
|
39
|
+
key: string;
|
|
40
|
+
direction: SortDirection;
|
|
41
|
+
};
|
|
42
|
+
type SortContextValue = {
|
|
43
|
+
sortState: SortState | null;
|
|
44
|
+
setSortState: React__default.Dispatch<React__default.SetStateAction<SortState | null>>;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare const alertVariants: (props?: ({
|
|
48
|
+
theme?: "default" | "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | null | undefined;
|
|
49
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
50
|
+
|
|
51
|
+
interface AlertProps extends VariantProps<typeof alertVariants> {
|
|
52
|
+
className?: string;
|
|
53
|
+
icon?: React.ReactNode;
|
|
54
|
+
action?: React.ReactNode;
|
|
55
|
+
onClose?: () => void;
|
|
56
|
+
children?: React.ReactNode;
|
|
57
|
+
}
|
|
58
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
60
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
61
|
+
interface AlertBannerProps extends VariantProps<typeof alertVariants> {
|
|
62
|
+
open: boolean;
|
|
63
|
+
onClose?: () => void;
|
|
64
|
+
icon?: boolean | React.ReactNode;
|
|
65
|
+
action?: React.ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
children?: React.ReactNode;
|
|
68
|
+
}
|
|
69
|
+
declare const AlertBanner: React.ForwardRefExoticComponent<AlertBannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
|
|
71
|
+
declare const persistAlert: (alert: Omit<AlertMessage, "id">) => void;
|
|
72
|
+
|
|
73
|
+
declare function AlertProvider({ children }: {
|
|
74
|
+
children: React.ReactNode;
|
|
75
|
+
}): React.JSX.Element;
|
|
76
|
+
|
|
77
|
+
type AvatarProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
78
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
79
|
+
type AvatarImageProps = React.ImgHTMLAttributes<HTMLImageElement>;
|
|
80
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
81
|
+
type AvatarFallbackProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
82
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
83
|
+
|
|
84
|
+
declare const chipVariants: (props?: ({
|
|
85
|
+
theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
|
|
86
|
+
size?: "sm" | "md" | null | undefined;
|
|
87
|
+
wrap?: boolean | null | undefined;
|
|
88
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
89
|
+
|
|
90
|
+
interface ChipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof chipVariants> {
|
|
91
|
+
}
|
|
92
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
93
|
+
|
|
94
|
+
declare const codeBlockVariants: (props?: ({
|
|
95
|
+
theme?: "default" | "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | null | undefined;
|
|
96
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
97
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
98
|
+
|
|
99
|
+
interface CodeBlockProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof codeBlockVariants> {
|
|
100
|
+
/** The code content to display. */
|
|
101
|
+
children: string;
|
|
102
|
+
/** Language label displayed in the header (e.g. "sql", "json", "typescript"). */
|
|
103
|
+
language?: string;
|
|
104
|
+
/** Show a copy-to-clipboard button. */
|
|
105
|
+
copyable?: boolean;
|
|
106
|
+
/** Enable collapse/expand behavior. When true, content is initially collapsed. */
|
|
107
|
+
collapsible?: boolean;
|
|
108
|
+
/** Max height in rem when collapsed. Defaults to 12. */
|
|
109
|
+
collapsedHeight?: number;
|
|
110
|
+
/** Whether the code block starts expanded when `collapsible` is true. */
|
|
111
|
+
defaultExpanded?: boolean;
|
|
112
|
+
}
|
|
113
|
+
declare const CodeBlock: React.ForwardRefExoticComponent<CodeBlockProps & React.RefAttributes<HTMLDivElement>>;
|
|
114
|
+
|
|
115
|
+
interface DevIndicatorProps {
|
|
116
|
+
className?: string;
|
|
117
|
+
}
|
|
118
|
+
declare function DevIndicator({ className }: DevIndicatorProps): React.JSX.Element | null;
|
|
119
|
+
|
|
120
|
+
interface DialogProps {
|
|
121
|
+
open?: boolean;
|
|
122
|
+
defaultOpen?: boolean;
|
|
123
|
+
onOpenChange?: (open: boolean) => void;
|
|
124
|
+
onAfterClose?: () => void;
|
|
125
|
+
children?: React.ReactNode;
|
|
126
|
+
}
|
|
127
|
+
declare function Dialog({ open: controlledOpen, defaultOpen, onOpenChange, onAfterClose, children, }: DialogProps): React.JSX.Element;
|
|
128
|
+
interface DialogTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
129
|
+
asChild?: boolean;
|
|
130
|
+
}
|
|
131
|
+
declare function DialogTrigger({ asChild, onClick, children, ...props }: DialogTriggerProps): React.JSX.Element;
|
|
132
|
+
interface DialogCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
133
|
+
asChild?: boolean;
|
|
134
|
+
}
|
|
135
|
+
declare function DialogClose({ asChild, onClick, children, ...props }: DialogCloseProps): React.JSX.Element;
|
|
136
|
+
declare function DialogOverlay({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
137
|
+
type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
138
|
+
width?: 'max' | 'min';
|
|
139
|
+
};
|
|
140
|
+
declare function DialogContent({ className, children, width, ...props }: DialogContentProps): React.ReactPortal | null;
|
|
141
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
142
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
143
|
+
/**
|
|
144
|
+
* Renders the dialog's heading. Defaults to `<Typography variant='h6'>`
|
|
145
|
+
* so consumers can write `<DialogTitle>My dialog</DialogTitle>` without
|
|
146
|
+
* manually wrapping in Typography. Override the variant with the
|
|
147
|
+
* `variant` prop, or opt out entirely with `asChild` to supply a custom
|
|
148
|
+
* element (e.g., a Heading component).
|
|
149
|
+
*/
|
|
150
|
+
declare function DialogTitle({ className, asChild, variant, ...props }: React.ComponentProps<'h2'> & {
|
|
151
|
+
asChild?: boolean;
|
|
152
|
+
variant?: TypographyVariant;
|
|
153
|
+
}): React.JSX.Element;
|
|
154
|
+
/**
|
|
155
|
+
* Renders the dialog's supporting description text. Defaults to
|
|
156
|
+
* `<Typography variant='body2'>`. Override with `variant` or supply a
|
|
157
|
+
* custom element via `asChild`.
|
|
158
|
+
*/
|
|
159
|
+
declare function DialogDescription({ className, asChild, variant, ...props }: React.ComponentProps<'p'> & {
|
|
160
|
+
asChild?: boolean;
|
|
161
|
+
variant?: TypographyVariant;
|
|
162
|
+
}): React.JSX.Element;
|
|
163
|
+
declare function DialogPortal({ children }: {
|
|
164
|
+
children?: React.ReactNode;
|
|
165
|
+
}): React.JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare const emptyStateVariants: (props?: ({
|
|
168
|
+
theme?: "default" | "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | null | undefined;
|
|
169
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
170
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
171
|
+
|
|
172
|
+
interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
|
|
173
|
+
/** Icon displayed above the title. */
|
|
174
|
+
icon?: React.ReactNode;
|
|
175
|
+
/** Primary heading text. */
|
|
176
|
+
title: string;
|
|
177
|
+
/** Secondary descriptive text below the title. */
|
|
178
|
+
description?: string;
|
|
179
|
+
/** Action element (typically a Button) rendered below the text. */
|
|
180
|
+
action?: React.ReactNode;
|
|
181
|
+
}
|
|
182
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
183
|
+
|
|
184
|
+
declare const iconVariants: (props?: ({
|
|
185
|
+
variant?: "contained" | "outlined" | "ghost" | "plain" | null | undefined;
|
|
186
|
+
theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
|
|
187
|
+
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
188
|
+
rounded?: boolean | "extra" | null | undefined;
|
|
189
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
190
|
+
|
|
191
|
+
type IconVariantSize = NonNullable<VariantProps<typeof iconVariants>['size']>;
|
|
192
|
+
type IconNodeProps = React.SVGProps<SVGSVGElement> & {
|
|
193
|
+
size?: string | number;
|
|
194
|
+
};
|
|
195
|
+
interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, Omit<VariantProps<typeof iconVariants>, 'size'> {
|
|
196
|
+
iconNode: React.ComponentType<IconNodeProps>;
|
|
197
|
+
size?: IconVariantSize | number;
|
|
198
|
+
/** Apply 1s linear infinite rotation to the inner SVG; also defaults role='status' for a11y. */
|
|
199
|
+
spin?: boolean;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Standalone icon with a sized wrapper box (e.g. status indicators, list-item
|
|
203
|
+
* leaders, themed avatars). Renders `<span><svg/></span>` — the span carries
|
|
204
|
+
* the `iconVariants` background/border for contained/outlined variants and a
|
|
205
|
+
* fixed pixel box per `size`.
|
|
206
|
+
*
|
|
207
|
+
* **DO NOT** place inside `Button`, `Chip`, `DropdownMenuItem`, or other host
|
|
208
|
+
* components that already size their SVG children via `:has(> svg)`. The host's
|
|
209
|
+
* size + padding adjustments only trigger for a direct-child `<svg>`, and
|
|
210
|
+
* Icon's wrapper span breaks that rule — you end up with the host's default
|
|
211
|
+
* (wider) padding plus Icon's full-height box (e.g. 1.85rem for `size='sm'`).
|
|
212
|
+
*
|
|
213
|
+
* Inside a host that sizes its own svg, pass the raw lucide component directly:
|
|
214
|
+
*
|
|
215
|
+
* ```tsx
|
|
216
|
+
* <Button>
|
|
217
|
+
* <CheckIcon />
|
|
218
|
+
* Save
|
|
219
|
+
* </Button>
|
|
220
|
+
*
|
|
221
|
+
* <Button>
|
|
222
|
+
* <Loader2Icon className={'animate-spin'} />
|
|
223
|
+
* Saving…
|
|
224
|
+
* </Button>
|
|
225
|
+
* ```
|
|
226
|
+
*
|
|
227
|
+
* Use `Icon` only when the wrapper box is desired (standalone use).
|
|
228
|
+
*/
|
|
229
|
+
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
230
|
+
|
|
231
|
+
interface ListProps extends React.HTMLAttributes<HTMLUListElement | HTMLOListElement> {
|
|
232
|
+
variant?: 'disc' | 'decimal' | 'none';
|
|
233
|
+
gap?: number;
|
|
234
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
235
|
+
muted?: boolean;
|
|
236
|
+
}
|
|
237
|
+
declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLUListElement | HTMLOListElement>>;
|
|
238
|
+
interface ListItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
239
|
+
icon?: React.ReactNode;
|
|
240
|
+
}
|
|
241
|
+
declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
242
|
+
|
|
243
|
+
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
244
|
+
|
|
245
|
+
declare const progressBarVariants: (props?: ({
|
|
246
|
+
theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
|
|
247
|
+
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
248
|
+
rounded?: boolean | null | undefined;
|
|
249
|
+
animated?: boolean | null | undefined;
|
|
250
|
+
indeterminate?: boolean | null | undefined;
|
|
251
|
+
striped?: boolean | null | undefined;
|
|
252
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
253
|
+
|
|
254
|
+
interface ProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressBarVariants> {
|
|
255
|
+
/** Current progress value (0–100). Ignored when `indeterminate` is true. */
|
|
256
|
+
value?: number;
|
|
257
|
+
/** Accessible label describing what the progress bar represents. */
|
|
258
|
+
label?: string;
|
|
259
|
+
}
|
|
260
|
+
declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
261
|
+
|
|
262
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
263
|
+
orientation?: 'horizontal' | 'vertical';
|
|
264
|
+
decorative?: boolean;
|
|
265
|
+
}
|
|
266
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
267
|
+
|
|
268
|
+
type TrendDirection = 'up' | 'down' | 'neutral';
|
|
269
|
+
type StatCardTheme = 'default' | 'primary' | 'secondary' | 'destructive' | 'warning' | 'success' | 'info' | 'slate';
|
|
270
|
+
type StatCardSize = 'sm' | 'md' | 'lg';
|
|
271
|
+
type StatCardVariant = 'unstyled' | 'outlined' | 'filled';
|
|
272
|
+
type StatCardDirection = 'row' | 'column';
|
|
273
|
+
interface StatCardProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
274
|
+
/** Text label describing the metric. */
|
|
275
|
+
label: string;
|
|
276
|
+
/** The metric value to display. */
|
|
277
|
+
value?: React.ReactNode;
|
|
278
|
+
/** Icon displayed beside the metric. */
|
|
279
|
+
icon?: React.ReactNode;
|
|
280
|
+
/** Optional description below the value. */
|
|
281
|
+
description?: string;
|
|
282
|
+
/** Trend direction indicator. */
|
|
283
|
+
trend?: TrendDirection;
|
|
284
|
+
/** Trend label text (e.g. "+12%", "−3.4%"). */
|
|
285
|
+
trendLabel?: string;
|
|
286
|
+
/** Visual theme for the card. */
|
|
287
|
+
theme?: StatCardTheme;
|
|
288
|
+
/** Card size. */
|
|
289
|
+
size?: StatCardSize;
|
|
290
|
+
/** Card Direction. */
|
|
291
|
+
direction?: StatCardDirection;
|
|
292
|
+
/** Surface variant. */
|
|
293
|
+
variant?: StatCardVariant;
|
|
294
|
+
}
|
|
295
|
+
declare const StatCard: React.ForwardRefExoticComponent<StatCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
296
|
+
|
|
297
|
+
declare const stepProgressVariants: (props?: ({
|
|
298
|
+
theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
|
|
299
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
300
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
301
|
+
stretch?: boolean | null | undefined;
|
|
302
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
303
|
+
|
|
304
|
+
interface Step {
|
|
305
|
+
/** Label displayed next to or below the step indicator. */
|
|
306
|
+
label: string;
|
|
307
|
+
/** Optional secondary description below the label. */
|
|
308
|
+
description?: string;
|
|
309
|
+
/** Optional icon rendered inside the dot. Defaults to a checkmark for completed steps. */
|
|
310
|
+
icon?: React.ReactNode;
|
|
311
|
+
}
|
|
312
|
+
interface StepProgressProps extends Omit<React.HTMLAttributes<HTMLOListElement>, 'children'>, VariantProps<typeof stepProgressVariants> {
|
|
313
|
+
/** Array of step definitions. */
|
|
314
|
+
steps: Step[];
|
|
315
|
+
/** Zero-based index of the currently active step. Steps before this are complete. */
|
|
316
|
+
currentStep: number;
|
|
317
|
+
}
|
|
318
|
+
declare const StepProgress: React.ForwardRefExoticComponent<StepProgressProps & React.RefAttributes<HTMLOListElement>>;
|
|
319
|
+
|
|
320
|
+
declare const switchVariants: (props?: ({
|
|
321
|
+
theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
|
|
322
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
323
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
324
|
+
|
|
325
|
+
interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'onClick'>, VariantProps<typeof switchVariants> {
|
|
326
|
+
pressed?: boolean;
|
|
327
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
328
|
+
}
|
|
329
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
330
|
+
|
|
331
|
+
declare const TableCard: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
332
|
+
declare const Table: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLTableElement> & React.TableHTMLAttributes<HTMLTableElement> & {
|
|
333
|
+
defaultSort?: SortState;
|
|
334
|
+
}, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
335
|
+
declare const TableHead: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
336
|
+
declare const TableFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
337
|
+
interface TableBodyProps extends React.ComponentProps<'tbody'> {
|
|
338
|
+
showEmptyState?: boolean;
|
|
339
|
+
emptyState?: React.ReactNode;
|
|
340
|
+
emptyStateColSpan?: number;
|
|
341
|
+
}
|
|
342
|
+
declare const TableBody: React.ForwardRefExoticComponent<Omit<TableBodyProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
343
|
+
declare const TableRow: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
344
|
+
type TableHeaderProps = React.ComponentProps<'th'> & {
|
|
345
|
+
action?: 'sticky';
|
|
346
|
+
};
|
|
347
|
+
declare const TableHeader: React.ForwardRefExoticComponent<Omit<TableHeaderProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
348
|
+
type TableCellProps = React.ComponentProps<'td'> & {
|
|
349
|
+
action?: 'sticky';
|
|
350
|
+
};
|
|
351
|
+
declare const TableCell: React.ForwardRefExoticComponent<Omit<TableCellProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
352
|
+
interface TableSortableHeaderProps<Key extends string = string> {
|
|
353
|
+
label: string;
|
|
354
|
+
sortKey: Key;
|
|
355
|
+
defaultSort?: true | SortDirection;
|
|
356
|
+
action?: 'sticky';
|
|
357
|
+
}
|
|
358
|
+
declare function TableSortableHeader<Key extends string = string>({ label, sortKey, defaultSort, action, }: TableSortableHeaderProps<Key>): React.JSX.Element;
|
|
359
|
+
|
|
360
|
+
interface TableActionItem {
|
|
361
|
+
/** Visible label for the action. */
|
|
362
|
+
label: string;
|
|
363
|
+
/** Optional icon rendered before the label. */
|
|
364
|
+
icon?: React.ReactNode;
|
|
365
|
+
/** Click handler for this action. */
|
|
366
|
+
onClick?: () => void;
|
|
367
|
+
/** Whether the action is disabled. */
|
|
368
|
+
disabled?: boolean;
|
|
369
|
+
/** Visual variant — `destructive` renders the item in the destructive theme. */
|
|
370
|
+
variant?: 'default' | 'destructive';
|
|
371
|
+
}
|
|
372
|
+
interface TableActionCellProps extends React.ComponentProps<'div'> {
|
|
373
|
+
/** Array of actions to display. Renders a single button for one action, or a dropdown for multiple. */
|
|
374
|
+
actions: TableActionItem[];
|
|
375
|
+
/** Accessible label for the dropdown trigger button. */
|
|
376
|
+
dropdownLabel?: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Renders a right-aligned action cell for table rows.
|
|
380
|
+
*
|
|
381
|
+
* - **Single action**: renders a visible `<Button>` with the action label and optional icon.
|
|
382
|
+
* - **Multiple actions**: renders a `...` icon button that opens a `<DropdownMenu>`.
|
|
383
|
+
*/
|
|
384
|
+
declare const TableActionCell: React.ForwardRefExoticComponent<Omit<TableActionCellProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
385
|
+
|
|
386
|
+
interface TableToolbarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
387
|
+
/**
|
|
388
|
+
* Left-aligned controls — typically a search Input plus zero or more
|
|
389
|
+
* filter SelectFields / DatePickers / Toggles. Children flow horizontally
|
|
390
|
+
* with `gap` and wrap on narrow screens.
|
|
391
|
+
*/
|
|
392
|
+
children?: React.ReactNode;
|
|
393
|
+
/**
|
|
394
|
+
* Right-aligned slot — for reset / clear / bulk-action buttons. Pushed to
|
|
395
|
+
* the end of the row via auto-margin; wraps to a new line on narrow
|
|
396
|
+
* screens if the controls grow too wide.
|
|
397
|
+
*/
|
|
398
|
+
actions?: React.ReactNode;
|
|
399
|
+
/**
|
|
400
|
+
* Render a 1px subtle bottom border to separate the toolbar from the
|
|
401
|
+
* Table or content below. Default `true`.
|
|
402
|
+
*/
|
|
403
|
+
divider?: boolean;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Container for the row of controls (search, filters, actions) that sits
|
|
407
|
+
* above a `Table` inside a `TableCard`. Presentational only — consumers
|
|
408
|
+
* own all filter state and search debouncing. The companion to
|
|
409
|
+
* `TableSearch` for the more common single-search case.
|
|
410
|
+
*/
|
|
411
|
+
declare const TableToolbar: React.ForwardRefExoticComponent<TableToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
412
|
+
|
|
413
|
+
declare const toggleVariants: (props?: ({
|
|
414
|
+
variant?: "contained" | "outlined" | "ghost" | null | undefined;
|
|
415
|
+
theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
|
|
416
|
+
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
417
|
+
iconOnly?: boolean | null | undefined;
|
|
418
|
+
rounded?: boolean | "extra" | null | undefined;
|
|
419
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
420
|
+
|
|
421
|
+
interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'>, VariantProps<typeof toggleVariants> {
|
|
422
|
+
pressed?: boolean;
|
|
423
|
+
defaultPressed?: boolean;
|
|
424
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
425
|
+
value?: string;
|
|
426
|
+
}
|
|
427
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
428
|
+
|
|
429
|
+
type ToggleGroupBaseProps = VariantProps<typeof toggleVariants> & {
|
|
430
|
+
className?: string;
|
|
431
|
+
children?: React.ReactNode;
|
|
432
|
+
stretch?: boolean;
|
|
433
|
+
};
|
|
434
|
+
type ToggleGroupSingleProps = ToggleGroupBaseProps & {
|
|
435
|
+
type: 'single';
|
|
436
|
+
value?: string;
|
|
437
|
+
defaultValue?: string;
|
|
438
|
+
onValueChange?: (value: string) => void;
|
|
439
|
+
};
|
|
440
|
+
type ToggleGroupMultipleProps = ToggleGroupBaseProps & {
|
|
441
|
+
type: 'multiple';
|
|
442
|
+
value?: string[];
|
|
443
|
+
defaultValue?: string[];
|
|
444
|
+
onValueChange?: (value: string[]) => void;
|
|
445
|
+
};
|
|
446
|
+
type ToggleGroupProps = ToggleGroupSingleProps | ToggleGroupMultipleProps;
|
|
447
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<ToggleGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
448
|
+
|
|
449
|
+
export { DialogHeader as B, Chip as C, DevIndicator as D, DialogOverlay as E, DialogPortal as F, DialogTitle as H, DialogTrigger as I, EmptyState as K, Icon as M, List as O, ListItem as P, Pagination as T, ProgressBar as V, Separator as Y, Alert as a, StatCard as a0, StepProgress as a7, Switch as a9, Table as ab, TableActionCell as ac, TableBody as af, TableCard as ah, TableCell as ai, TableFooter as aj, TableHead as ak, TableHeader as al, TableRow as am, TableSortableHeader as an, TableToolbar as ap, Toggle as ar, ToggleGroup as as, persistAlert as aw, AlertBanner as b, AlertDescription as d, AlertProvider as g, AlertTitle as i, Avatar as j, AvatarFallback as k, AvatarImage as m, CodeBlock as q, Dialog as t, DialogClose as u, DialogContent as w, DialogDescription as y, DialogFooter as z };
|
|
450
|
+
export type { SortDirection as $, AlertContextValue as A, DialogProps as G, DialogTriggerProps as J, EmptyStateProps as L, IconProps as N, ListItemProps as Q, ListProps as R, SortState as S, PaginationProps as U, ProgressBarProps as W, PushAlertInput as X, SeparatorProps as Z, SortContextValue as _, StatCardDirection as a1, StatCardProps as a2, StatCardSize as a3, StatCardTheme as a4, StatCardVariant as a5, Step as a6, StepProgressProps as a8, SwitchProps as aa, TableActionCellProps as ad, TableActionItem as ae, TableBodyProps as ag, TableSortableHeaderProps as ao, TableToolbarProps as aq, ToggleGroupProps as at, ToggleProps as au, TrendDirection as av, AlertBannerProps as c, AlertMessage as e, AlertProps as f, AlertTheme as h, AvatarFallbackProps as l, AvatarImageProps as n, AvatarProps as o, ChipProps as p, CodeBlockProps as r, DevIndicatorProps as s, DialogCloseProps as v, DialogContentProps as x };
|