@studiocubics/components 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cards/Card/Card.d.ts +49 -0
- package/dist/Cards/Card/Card.js +45 -0
- package/dist/Cards/Card/Card.js.map +1 -0
- package/dist/Cards/Card/Card.module.css.js +4 -0
- package/dist/Cards/Card/Card.module.css.js.map +1 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCard.d.ts +55 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCard.js +48 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCard.js.map +1 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCard.module.css.js +4 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCard.module.css.js.map +1 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCardActions.d.ts +19 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCardActions.js +34 -0
- package/dist/Cards/CollectionItemCard/CollectionItemCardActions.js.map +1 -0
- package/dist/Cards/GlassCard/GlassCard.d.ts +7 -0
- package/dist/Cards/GlassCard/GlassCard.js +52 -0
- package/dist/Cards/GlassCard/GlassCard.js.map +1 -0
- package/dist/Cards/GlassCard/GlassCard.module.css.js +4 -0
- package/dist/Cards/GlassCard/GlassCard.module.css.js.map +1 -0
- package/dist/Display/Accordion/Accordion.d.ts +14 -0
- package/dist/Display/Accordion/Accordion.js +28 -0
- package/dist/Display/Accordion/Accordion.js.map +1 -0
- package/dist/Display/Accordion/Accordion.module.css.js +4 -0
- package/dist/Display/Accordion/Accordion.module.css.js.map +1 -0
- package/dist/Display/Accordion/AccordionItem.d.ts +15 -0
- package/dist/Display/Accordion/AccordionItem.js +56 -0
- package/dist/Display/Accordion/AccordionItem.js.map +1 -0
- package/dist/Display/Chip/Chip.d.ts +46 -0
- package/dist/Display/Chip/Chip.js +43 -0
- package/dist/Display/Chip/Chip.js.map +1 -0
- package/dist/Display/Chip/Chip.module.css.js +4 -0
- package/dist/Display/Chip/Chip.module.css.js.map +1 -0
- package/dist/Display/IdentityDisplay/IdentityDisplay.d.ts +21 -0
- package/dist/Display/IdentityDisplay/IdentityDisplay.js +36 -0
- package/dist/Display/IdentityDisplay/IdentityDisplay.js.map +1 -0
- package/dist/Display/IdentityDisplay/IdentityDisplay.module.css.js +4 -0
- package/dist/Display/IdentityDisplay/IdentityDisplay.module.css.js.map +1 -0
- package/dist/Display/InputErrors/InputErrors.d.ts +11 -0
- package/dist/Display/InputErrors/InputErrors.js +25 -0
- package/dist/Display/InputErrors/InputErrors.js.map +1 -0
- package/dist/Display/InputErrors/InputErrors.module.css.js +4 -0
- package/dist/Display/InputErrors/InputErrors.module.css.js.map +1 -0
- package/dist/Display/Kbd/Kbd.d.ts +8 -0
- package/dist/Display/Kbd/Kbd.js +19 -0
- package/dist/Display/Kbd/Kbd.js.map +1 -0
- package/dist/Display/Kbd/Kbd.module.css.js +4 -0
- package/dist/Display/Kbd/Kbd.module.css.js.map +1 -0
- package/dist/Display/Kbd/buttonList.d.ts +324 -0
- package/dist/Display/Kbd/buttonList.js +198 -0
- package/dist/Display/Kbd/buttonList.js.map +1 -0
- package/dist/Display/LabeledValue/LabeledValue.d.ts +9 -0
- package/dist/Display/LabeledValue/LabeledValue.js +11 -0
- package/dist/Display/LabeledValue/LabeledValue.js.map +1 -0
- package/dist/Display/LabeledValue/LabeledValue.module.css.js +4 -0
- package/dist/Display/LabeledValue/LabeledValue.module.css.js.map +1 -0
- package/dist/Display/List/List.d.ts +50 -0
- package/dist/Display/List/List.js +96 -0
- package/dist/Display/List/List.js.map +1 -0
- package/dist/Display/List/List.module.css.js +4 -0
- package/dist/Display/List/List.module.css.js.map +1 -0
- package/dist/Display/PasswordStrength/PasswordStrength.d.ts +4 -0
- package/dist/Display/PasswordStrength/PasswordStrength.js +17 -0
- package/dist/Display/PasswordStrength/PasswordStrength.js.map +1 -0
- package/dist/Display/PasswordStrength/PasswordStrength.module.css.js +4 -0
- package/dist/Display/PasswordStrength/PasswordStrength.module.css.js.map +1 -0
- package/dist/Display/PasswordStrength/usePasswordStrength.d.ts +42 -0
- package/dist/Display/PasswordStrength/usePasswordStrength.js +49 -0
- package/dist/Display/PasswordStrength/usePasswordStrength.js.map +1 -0
- package/dist/Display/Skeleton/Skeleton.d.ts +8 -0
- package/dist/Display/Skeleton/Skeleton.js +11 -0
- package/dist/Display/Skeleton/Skeleton.js.map +1 -0
- package/dist/Display/Skeleton/Skeleton.module.css.js +4 -0
- package/dist/Display/Skeleton/Skeleton.module.css.js.map +1 -0
- package/dist/Display/Toast/Toaster.d.ts +1 -0
- package/dist/Display/Toast/Toaster.js +45 -0
- package/dist/Display/Toast/Toaster.js.map +1 -0
- package/dist/Display/Toast/toast.d.ts +12 -0
- package/dist/Display/Toast/toast.js +32 -0
- package/dist/Display/Toast/toast.js.map +1 -0
- package/dist/Display/Tooltip/Tooltip.d.ts +8 -0
- package/dist/Display/Tooltip/Tooltip.js +45 -0
- package/dist/Display/Tooltip/Tooltip.js.map +1 -0
- package/dist/Display/Tooltip/Tooltip.module.css.js +4 -0
- package/dist/Display/Tooltip/Tooltip.module.css.js.map +1 -0
- package/dist/Display/Tooltip/getArrowDirection.d.ts +1 -0
- package/dist/Display/Tooltip/getArrowDirection.js +48 -0
- package/dist/Display/Tooltip/getArrowDirection.js.map +1 -0
- package/dist/Display/Tooltip/useTooltip.d.ts +8 -0
- package/dist/Display/Tooltip/useTooltip.js +48 -0
- package/dist/Display/Tooltip/useTooltip.js.map +1 -0
- package/dist/Forms/ConfirmationForm/ConfirmationForm.d.ts +15 -0
- package/dist/Forms/ConfirmationForm/ConfirmationForm.js +12 -0
- package/dist/Forms/ConfirmationForm/ConfirmationForm.js.map +1 -0
- package/dist/Forms/ConfirmationForm/ConfirmationForm.module.css.js +4 -0
- package/dist/Forms/ConfirmationForm/ConfirmationForm.module.css.js.map +1 -0
- package/dist/Inputs/Button/Button.d.ts +83 -0
- package/dist/Inputs/Button/Button.js +56 -0
- package/dist/Inputs/Button/Button.js.map +1 -0
- package/dist/Inputs/Button/Button.module.css.js +4 -0
- package/dist/Inputs/Button/Button.module.css.js.map +1 -0
- package/dist/Inputs/Checkbox/Checkbox.d.ts +23 -0
- package/dist/Inputs/Checkbox/Checkbox.js +55 -0
- package/dist/Inputs/Checkbox/Checkbox.js.map +1 -0
- package/dist/Inputs/Checkbox/Checkbox.module.css.js +4 -0
- package/dist/Inputs/Checkbox/Checkbox.module.css.js.map +1 -0
- package/dist/Inputs/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +15 -0
- package/dist/Inputs/Checkbox/CheckboxGroup/CheckboxGroup.js +35 -0
- package/dist/Inputs/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/Inputs/Checkbox/CheckboxGroup/CheckboxGroup.module.css.js +4 -0
- package/dist/Inputs/Checkbox/CheckboxGroup/CheckboxGroup.module.css.js.map +1 -0
- package/dist/Inputs/Checkbox/CheckboxSelectAll.d.ts +5 -0
- package/dist/Inputs/Checkbox/CheckboxSelectAll.js +19 -0
- package/dist/Inputs/Checkbox/CheckboxSelectAll.js.map +1 -0
- package/dist/Inputs/PasswordInput/PasswordInput.d.ts +31 -0
- package/dist/Inputs/PasswordInput/PasswordInput.js +45 -0
- package/dist/Inputs/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/Inputs/PasswordInput/PasswordInput.module.css.js +4 -0
- package/dist/Inputs/PasswordInput/PasswordInput.module.css.js.map +1 -0
- package/dist/Inputs/Select/Select.d.ts +22 -0
- package/dist/Inputs/Select/Select.js +26 -0
- package/dist/Inputs/Select/Select.js.map +1 -0
- package/dist/Inputs/Select/Select.module.css.js +4 -0
- package/dist/Inputs/Select/Select.module.css.js.map +1 -0
- package/dist/Inputs/Switch/Switch.d.ts +43 -0
- package/dist/Inputs/Switch/Switch.js +81 -0
- package/dist/Inputs/Switch/Switch.js.map +1 -0
- package/dist/Inputs/Switch/Switch.module.css.js +4 -0
- package/dist/Inputs/Switch/Switch.module.css.js.map +1 -0
- package/dist/Inputs/TextAreaInput/TextAreaInput.d.ts +17 -0
- package/dist/Inputs/TextAreaInput/TextAreaInput.js +30 -0
- package/dist/Inputs/TextAreaInput/TextAreaInput.js.map +1 -0
- package/dist/Inputs/TextAreaInput/TextAreaInput.module.css.js +4 -0
- package/dist/Inputs/TextAreaInput/TextAreaInput.module.css.js.map +1 -0
- package/dist/Inputs/TextInput/TextInput.d.ts +27 -0
- package/dist/Inputs/TextInput/TextInput.js +23 -0
- package/dist/Inputs/TextInput/TextInput.js.map +1 -0
- package/dist/Inputs/TextInput/TextInput.module.css.js +4 -0
- package/dist/Inputs/TextInput/TextInput.module.css.js.map +1 -0
- package/dist/Inputs/ThemeToggle/ThemeToggleListItem.d.ts +16 -0
- package/dist/Inputs/ThemeToggle/ThemeToggleListItem.js +31 -0
- package/dist/Inputs/ThemeToggle/ThemeToggleListItem.js.map +1 -0
- package/dist/Inputs/ThemeToggle/_index.d.ts +1 -0
- package/dist/Layout/Dialog/Dialog.d.ts +13 -0
- package/dist/Layout/Dialog/Dialog.js +74 -0
- package/dist/Layout/Dialog/Dialog.js.map +1 -0
- package/dist/Layout/Dialog/Dialog.module.css.js +4 -0
- package/dist/Layout/Dialog/Dialog.module.css.js.map +1 -0
- package/dist/Layout/PageLayout/PageLayout.d.ts +28 -0
- package/dist/Layout/PageLayout/PageLayout.js +25 -0
- package/dist/Layout/PageLayout/PageLayout.js.map +1 -0
- package/dist/Layout/PageLayout/PageLayout.module.css.js +4 -0
- package/dist/Layout/PageLayout/PageLayout.module.css.js.map +1 -0
- package/dist/Layout/PageLayoutPagination/PageLayoutPagination.d.ts +7 -0
- package/dist/Layout/PageLayoutPagination/PageLayoutPagination.js +13 -0
- package/dist/Layout/PageLayoutPagination/PageLayoutPagination.js.map +1 -0
- package/dist/Layout/PageLayoutPagination/PageLayoutPagination.module.css.js +4 -0
- package/dist/Layout/PageLayoutPagination/PageLayoutPagination.module.css.js.map +1 -0
- package/dist/Layout/PageLayoutTabs/PageLayoutTabs.d.ts +14 -0
- package/dist/Layout/PageLayoutTabs/PageLayoutTabs.js +22 -0
- package/dist/Layout/PageLayoutTabs/PageLayoutTabs.js.map +1 -0
- package/dist/Layout/PageLayoutTabs/PageLayoutTabs.module.css.js +4 -0
- package/dist/Layout/PageLayoutTabs/PageLayoutTabs.module.css.js.map +1 -0
- package/dist/Layout/Popover/Popover.d.ts +14 -0
- package/dist/Layout/Popover/Popover.js +103 -0
- package/dist/Layout/Popover/Popover.js.map +1 -0
- package/dist/Layout/Popover/Popover.module.css.js +4 -0
- package/dist/Layout/Popover/Popover.module.css.js.map +1 -0
- package/dist/Layout/SectionWrapper/SectionWrapper.d.ts +14 -0
- package/dist/Layout/SectionWrapper/SectionWrapper.js +11 -0
- package/dist/Layout/SectionWrapper/SectionWrapper.js.map +1 -0
- package/dist/Layout/SectionWrapper/SectionWrapper.module.css.js +4 -0
- package/dist/Layout/SectionWrapper/SectionWrapper.module.css.js.map +1 -0
- package/dist/Layout/Sidebar/Sidebar.d.ts +15 -0
- package/dist/Layout/Sidebar/Sidebar.js +25 -0
- package/dist/Layout/Sidebar/Sidebar.js.map +1 -0
- package/dist/Layout/Sidebar/Sidebar.module.css.js +4 -0
- package/dist/Layout/Sidebar/Sidebar.module.css.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarBody/SidebarBody.d.ts +2 -0
- package/dist/Layout/Sidebar/SidebarBody/SidebarBody.js +14 -0
- package/dist/Layout/Sidebar/SidebarBody/SidebarBody.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarBody/SidebarBody.module.css.js +4 -0
- package/dist/Layout/Sidebar/SidebarBody/SidebarBody.module.css.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarDrawer/SidebarDrawer.d.ts +2 -0
- package/dist/Layout/Sidebar/SidebarDrawer/SidebarDrawer.js +14 -0
- package/dist/Layout/Sidebar/SidebarDrawer/SidebarDrawer.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarDrawer/SidebarDrawer.module.css.js +4 -0
- package/dist/Layout/Sidebar/SidebarDrawer/SidebarDrawer.module.css.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarFooter/SidebarFooter.d.ts +2 -0
- package/dist/Layout/Sidebar/SidebarFooter/SidebarFooter.js +14 -0
- package/dist/Layout/Sidebar/SidebarFooter/SidebarFooter.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarFooter/SidebarFooter.module.css.js +4 -0
- package/dist/Layout/Sidebar/SidebarFooter/SidebarFooter.module.css.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarHeader/SidebarHeader.d.ts +2 -0
- package/dist/Layout/Sidebar/SidebarHeader/SidebarHeader.js +12 -0
- package/dist/Layout/Sidebar/SidebarHeader/SidebarHeader.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarViewport/SidebarViewport.d.ts +2 -0
- package/dist/Layout/Sidebar/SidebarViewport/SidebarViewport.js +11 -0
- package/dist/Layout/Sidebar/SidebarViewport/SidebarViewport.js.map +1 -0
- package/dist/Layout/Sidebar/SidebarViewport/SidebarViewport.module.css.js +4 -0
- package/dist/Layout/Sidebar/SidebarViewport/SidebarViewport.module.css.js.map +1 -0
- package/dist/Layout/Table/Table.d.ts +54 -0
- package/dist/Layout/Table/Table.js +131 -0
- package/dist/Layout/Table/Table.js.map +1 -0
- package/dist/Layout/Table/Table.module.css.js +4 -0
- package/dist/Layout/Table/Table.module.css.js.map +1 -0
- package/dist/Layout/Table/TableFooter.d.ts +1 -0
- package/dist/Layout/Table/TableFooter.js +9 -0
- package/dist/Layout/Table/TableFooter.js.map +1 -0
- package/dist/Layout/Table/TableHeader.d.ts +1 -0
- package/dist/Layout/Table/TableHeader.js +9 -0
- package/dist/Layout/Table/TableHeader.js.map +1 -0
- package/dist/Layout/Table/tableUtils.d.ts +52 -0
- package/dist/Layout/Table/tableUtils.js +124 -0
- package/dist/Layout/Table/tableUtils.js.map +1 -0
- package/dist/Layout/Table/types.d.ts +43 -0
- package/dist/Misc/Cursor/Cursor.d.ts +1 -0
- package/dist/Misc/Cursor/Cursor.js +59 -0
- package/dist/Misc/Cursor/Cursor.js.map +1 -0
- package/dist/Misc/Cursor/Cursor.module.css.js +4 -0
- package/dist/Misc/Cursor/Cursor.module.css.js.map +1 -0
- package/dist/Misc/Logos.d.ts +14 -0
- package/dist/Misc/Logos.js +29 -0
- package/dist/Misc/Logos.js.map +1 -0
- package/dist/Misc/PoweredByBanner/PoweredByBanner.d.ts +3 -0
- package/dist/Misc/PoweredByBanner/PoweredByBanner.js +11 -0
- package/dist/Misc/PoweredByBanner/PoweredByBanner.js.map +1 -0
- package/dist/Misc/PoweredByBanner/PoweredByBanner.module.css.js +4 -0
- package/dist/Misc/PoweredByBanner/PoweredByBanner.module.css.js.map +1 -0
- package/dist/Misc/Ripple/Ripple.d.ts +21 -0
- package/dist/Misc/Ripple/Ripple.js +62 -0
- package/dist/Misc/Ripple/Ripple.js.map +1 -0
- package/dist/Misc/Ripple/Ripple.module.css.js +4 -0
- package/dist/Misc/Ripple/Ripple.module.css.js.map +1 -0
- package/dist/Misc/Spinner/Spinner.d.ts +2 -0
- package/dist/Misc/Spinner/Spinner.js +12 -0
- package/dist/Misc/Spinner/Spinner.js.map +1 -0
- package/dist/Misc/Spinner/Spinner.module.css.js +4 -0
- package/dist/Misc/Spinner/Spinner.module.css.js.map +1 -0
- package/dist/Misc/TransitionAnimation/TransitionAnimation.d.ts +71 -0
- package/dist/Misc/TransitionAnimation/TransitionAnimation.js +87 -0
- package/dist/Misc/TransitionAnimation/TransitionAnimation.js.map +1 -0
- package/dist/Misc/TransitionAnimation/TransitionAnimation.module.css.js +4 -0
- package/dist/Misc/TransitionAnimation/TransitionAnimation.module.css.js.map +1 -0
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.d.ts +39 -0
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.js +36 -0
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.module.css.js +4 -0
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.module.css.js.map +1 -0
- package/dist/Navigation/Breadcrumbs/BreadcrumbsItem.d.ts +10 -0
- package/dist/Navigation/Breadcrumbs/BreadcrumbsItem.js +15 -0
- package/dist/Navigation/Breadcrumbs/BreadcrumbsItem.js.map +1 -0
- package/dist/Navigation/Breadcrumbs/useBreadcrumbs.d.ts +7 -0
- package/dist/Navigation/Breadcrumbs/useBreadcrumbs.js +44 -0
- package/dist/Navigation/Breadcrumbs/useBreadcrumbs.js.map +1 -0
- package/dist/Navigation/Pagination/Pagination.d.ts +52 -0
- package/dist/Navigation/Pagination/Pagination.js +61 -0
- package/dist/Navigation/Pagination/Pagination.js.map +1 -0
- package/dist/Navigation/Pagination/Pagination.module.css.js +4 -0
- package/dist/Navigation/Pagination/Pagination.module.css.js.map +1 -0
- package/dist/Navigation/Pagination/PaginationItem.d.ts +8 -0
- package/dist/Navigation/Pagination/PaginationItem.js +14 -0
- package/dist/Navigation/Pagination/PaginationItem.js.map +1 -0
- package/dist/Navigation/Pagination/usePagination.d.ts +6 -0
- package/dist/Navigation/Pagination/usePagination.js +38 -0
- package/dist/Navigation/Pagination/usePagination.js.map +1 -0
- package/dist/Navigation/Tabs/Tab/Tab.d.ts +46 -0
- package/dist/Navigation/Tabs/Tab/Tab.js +70 -0
- package/dist/Navigation/Tabs/Tab/Tab.js.map +1 -0
- package/dist/Navigation/Tabs/Tab/Tab.module.css.js +4 -0
- package/dist/Navigation/Tabs/Tab/Tab.module.css.js.map +1 -0
- package/dist/Navigation/Tabs/Tabs.d.ts +12 -0
- package/dist/Navigation/Tabs/Tabs.js +22 -0
- package/dist/Navigation/Tabs/Tabs.js.map +1 -0
- package/dist/Navigation/Tabs/TabsBar/TabsBar.d.ts +12 -0
- package/dist/Navigation/Tabs/TabsBar/TabsBar.js +44 -0
- package/dist/Navigation/Tabs/TabsBar/TabsBar.js.map +1 -0
- package/dist/Navigation/Tabs/TabsBar/TabsBar.module.css.js +4 -0
- package/dist/Navigation/Tabs/TabsBar/TabsBar.module.css.js.map +1 -0
- package/dist/Typography/ClampedText/ClampedText.d.ts +38 -0
- package/dist/Typography/ClampedText/ClampedText.js +44 -0
- package/dist/Typography/ClampedText/ClampedText.js.map +1 -0
- package/dist/Typography/ClampedText/ClampedText.module.css.js +4 -0
- package/dist/Typography/ClampedText/ClampedText.module.css.js.map +1 -0
- package/dist/Typography/CopyableText/CopyableText.d.ts +16 -0
- package/dist/Typography/CopyableText/CopyableText.js +39 -0
- package/dist/Typography/CopyableText/CopyableText.js.map +1 -0
- package/dist/Typography/CopyableText/CopyableText.module.css.js +4 -0
- package/dist/Typography/CopyableText/CopyableText.module.css.js.map +1 -0
- package/dist/Typography/PageTitle/PageTitle.d.ts +9 -0
- package/dist/Typography/PageTitle/PageTitle.js +10 -0
- package/dist/Typography/PageTitle/PageTitle.js.map +1 -0
- package/dist/Typography/PageTitle/PageTitle.module.css.js +4 -0
- package/dist/Typography/PageTitle/PageTitle.module.css.js.map +1 -0
- package/dist/index.css +2392 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -0
- package/package.json +4 -4
- package/CHANGELOG.md +0 -11
- package/eslint.config.js +0 -21
- package/src/Cards/Card/Card.module.css +0 -27
- package/src/Cards/Card/Card.tsx +0 -105
- package/src/Cards/CollectionItemCard/CollectionItemCard.module.css +0 -84
- package/src/Cards/CollectionItemCard/CollectionItemCard.tsx +0 -170
- package/src/Cards/CollectionItemCard/CollectionItemCardActions.tsx +0 -85
- package/src/Cards/GlassCard/GlassCard.module.css +0 -71
- package/src/Cards/GlassCard/GlassCard.tsx +0 -80
- package/src/Display/Accordion/Accordion.module.css +0 -69
- package/src/Display/Accordion/Accordion.tsx +0 -61
- package/src/Display/Accordion/AccordionItem.tsx +0 -135
- package/src/Display/Chip/Chip.module.css +0 -64
- package/src/Display/Chip/Chip.tsx +0 -105
- package/src/Display/IdentityDisplay/IdentityDisplay.module.css +0 -95
- package/src/Display/IdentityDisplay/IdentityDisplay.tsx +0 -119
- package/src/Display/InputErrors/InputErrors.module.css +0 -6
- package/src/Display/InputErrors/InputErrors.tsx +0 -52
- package/src/Display/Kbd/Kbd.module.css +0 -29
- package/src/Display/Kbd/Kbd.tsx +0 -39
- package/src/Display/Kbd/buttonList.tsx +0 -246
- package/src/Display/LabeledValue/LabeledValue.module.css +0 -32
- package/src/Display/LabeledValue/LabeledValue.tsx +0 -20
- package/src/Display/List/List.module.css +0 -143
- package/src/Display/List/List.tsx +0 -298
- package/src/Display/PasswordStrength/PasswordStrength.module.css +0 -45
- package/src/Display/PasswordStrength/PasswordStrength.tsx +0 -41
- package/src/Display/PasswordStrength/usePasswordStrength.tsx +0 -77
- package/src/Display/Skeleton/Skeleton.module.css +0 -54
- package/src/Display/Skeleton/Skeleton.tsx +0 -28
- package/src/Display/Toast/Toaster.tsx +0 -58
- package/src/Display/Toast/toast.ts +0 -44
- package/src/Display/Tooltip/Tooltip.module.css +0 -128
- package/src/Display/Tooltip/Tooltip.tsx +0 -93
- package/src/Display/Tooltip/getArrowDirection.ts +0 -55
- package/src/Display/Tooltip/useTooltip.tsx +0 -63
- package/src/Forms/ConfirmationForm/ConfirmationForm.module.css +0 -23
- package/src/Forms/ConfirmationForm/ConfirmationForm.tsx +0 -60
- package/src/Inputs/Button/Button.module.css +0 -131
- package/src/Inputs/Button/Button.tsx +0 -178
- package/src/Inputs/Checkbox/Checkbox.module.css +0 -77
- package/src/Inputs/Checkbox/Checkbox.tsx +0 -191
- package/src/Inputs/Checkbox/CheckboxGroup/CheckboxGroup.module.css +0 -10
- package/src/Inputs/Checkbox/CheckboxGroup/CheckboxGroup.tsx +0 -83
- package/src/Inputs/Checkbox/CheckboxSelectAll.tsx +0 -34
- package/src/Inputs/PasswordInput/PasswordInput.module.css +0 -111
- package/src/Inputs/PasswordInput/PasswordInput.tsx +0 -229
- package/src/Inputs/Select/Select.module.css +0 -138
- package/src/Inputs/Select/Select.tsx +0 -136
- package/src/Inputs/Switch/Switch.module.css +0 -119
- package/src/Inputs/Switch/Switch.tsx +0 -195
- package/src/Inputs/TextAreaInput/TextAreaInput.module.css +0 -65
- package/src/Inputs/TextAreaInput/TextAreaInput.tsx +0 -97
- package/src/Inputs/TextInput/TextInput.module.css +0 -112
- package/src/Inputs/TextInput/TextInput.tsx +0 -142
- package/src/Inputs/ThemeToggle/ThemeToggleListItem.tsx +0 -80
- package/src/Inputs/ThemeToggle/_index.ts +0 -1
- package/src/Layout/Dialog/Dialog.module.css +0 -15
- package/src/Layout/Dialog/Dialog.tsx +0 -115
- package/src/Layout/PageLayout/PageLayout.module.css +0 -20
- package/src/Layout/PageLayout/PageLayout.tsx +0 -79
- package/src/Layout/PageLayoutPagination/PageLayoutPagination.module.css +0 -5
- package/src/Layout/PageLayoutPagination/PageLayoutPagination.tsx +0 -40
- package/src/Layout/PageLayoutTabs/PageLayoutTabs.module.css +0 -3
- package/src/Layout/PageLayoutTabs/PageLayoutTabs.tsx +0 -62
- package/src/Layout/Popover/Popover.module.css +0 -9
- package/src/Layout/Popover/Popover.tsx +0 -145
- package/src/Layout/SectionWrapper/SectionWrapper.module.css +0 -31
- package/src/Layout/SectionWrapper/SectionWrapper.tsx +0 -62
- package/src/Layout/Sidebar/Sidebar.module.css +0 -17
- package/src/Layout/Sidebar/Sidebar.tsx +0 -39
- package/src/Layout/Sidebar/SidebarBody/SidebarBody.module.css +0 -31
- package/src/Layout/Sidebar/SidebarBody/SidebarBody.tsx +0 -18
- package/src/Layout/Sidebar/SidebarDrawer/SidebarDrawer.module.css +0 -20
- package/src/Layout/Sidebar/SidebarDrawer/SidebarDrawer.tsx +0 -19
- package/src/Layout/Sidebar/SidebarFooter/SidebarFooter.module.css +0 -35
- package/src/Layout/Sidebar/SidebarFooter/SidebarFooter.tsx +0 -19
- package/src/Layout/Sidebar/SidebarHeader/SidebarHeader.tsx +0 -14
- package/src/Layout/Sidebar/SidebarViewport/SidebarViewport.module.css +0 -12
- package/src/Layout/Sidebar/SidebarViewport/SidebarViewport.tsx +0 -11
- package/src/Layout/Table/Table.module.css +0 -46
- package/src/Layout/Table/Table.tsx +0 -222
- package/src/Layout/Table/TableFooter.tsx +0 -4
- package/src/Layout/Table/TableHeader.tsx +0 -4
- package/src/Layout/Table/tableUtils.ts +0 -142
- package/src/Layout/Table/types.ts +0 -48
- package/src/Misc/Cursor/Cursor.module.css +0 -31
- package/src/Misc/Cursor/Cursor.tsx +0 -77
- package/src/Misc/Logos.tsx +0 -230
- package/src/Misc/PoweredByBanner/PoweredByBanner.module.css +0 -20
- package/src/Misc/PoweredByBanner/PoweredByBanner.tsx +0 -17
- package/src/Misc/Ripple/Ripple.module.css +0 -25
- package/src/Misc/Ripple/Ripple.tsx +0 -126
- package/src/Misc/Spinner/Spinner.module.css +0 -38
- package/src/Misc/Spinner/Spinner.tsx +0 -36
- package/src/Misc/TransitionAnimation/TransitionAnimation.module.css +0 -131
- package/src/Misc/TransitionAnimation/TransitionAnimation.tsx +0 -166
- package/src/Navigation/Breadcrumbs/Breadcrumbs.module.css +0 -22
- package/src/Navigation/Breadcrumbs/Breadcrumbs.tsx +0 -127
- package/src/Navigation/Breadcrumbs/BreadcrumbsItem.tsx +0 -31
- package/src/Navigation/Breadcrumbs/useBreadcrumbs.tsx +0 -74
- package/src/Navigation/Pagination/Pagination.module.css +0 -41
- package/src/Navigation/Pagination/Pagination.tsx +0 -187
- package/src/Navigation/Pagination/PaginationItem.tsx +0 -28
- package/src/Navigation/Pagination/usePagination.tsx +0 -65
- package/src/Navigation/Tabs/Tab/Tab.module.css +0 -43
- package/src/Navigation/Tabs/Tab/Tab.tsx +0 -155
- package/src/Navigation/Tabs/Tabs.tsx +0 -37
- package/src/Navigation/Tabs/TabsBar/TabsBar.module.css +0 -47
- package/src/Navigation/Tabs/TabsBar/TabsBar.tsx +0 -92
- package/src/Typography/ClampedText/ClampedText.module.css +0 -5
- package/src/Typography/ClampedText/ClampedText.tsx +0 -77
- package/src/Typography/CopyableText/CopyableText.module.css +0 -21
- package/src/Typography/CopyableText/CopyableText.tsx +0 -120
- package/src/Typography/PageTitle/PageTitle.module.css +0 -47
- package/src/Typography/PageTitle/PageTitle.tsx +0 -35
- package/src/declaration.d.ts +0 -4
- package/tsconfig.json +0 -32
- /package/{src/Cards/CollectionItemCard/_index.ts → dist/Cards/CollectionItemCard/_index.d.ts} +0 -0
- /package/{src/Cards/_index.ts → dist/Cards/_index.d.ts} +0 -0
- /package/{src/Display/Accordion/_index.ts → dist/Display/Accordion/_index.d.ts} +0 -0
- /package/{src/Display/Kbd/_index.ts → dist/Display/Kbd/_index.d.ts} +0 -0
- /package/{src/Display/Toast/_index.ts → dist/Display/Toast/_index.d.ts} +0 -0
- /package/{src/Display/_index.ts → dist/Display/_index.d.ts} +0 -0
- /package/{src/Forms/_index.ts → dist/Forms/_index.d.ts} +0 -0
- /package/{src/Inputs/Checkbox/_index.ts → dist/Inputs/Checkbox/_index.d.ts} +0 -0
- /package/{src/Inputs/_index.ts → dist/Inputs/_index.d.ts} +0 -0
- /package/{src/Layout/Sidebar/_index.ts → dist/Layout/Sidebar/_index.d.ts} +0 -0
- /package/{src/Layout/Table/_index.ts → dist/Layout/Table/_index.d.ts} +0 -0
- /package/{src/Layout/_index.ts → dist/Layout/_index.d.ts} +0 -0
- /package/{src/Misc/_index.ts → dist/Misc/_index.d.ts} +0 -0
- /package/{src/Navigation/Breadcrumbs/_index.ts → dist/Navigation/Breadcrumbs/_index.d.ts} +0 -0
- /package/{src/Navigation/Pagination/_index.ts → dist/Navigation/Pagination/_index.d.ts} +0 -0
- /package/{src/Navigation/Tabs/_index.ts → dist/Navigation/Tabs/_index.d.ts} +0 -0
- /package/{src/Navigation/_index.ts → dist/Navigation/_index.d.ts} +0 -0
- /package/{src/Typography/_index.ts → dist/Typography/_index.d.ts} +0 -0
- /package/{src/index.ts → dist/index.d.ts} +0 -0
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import type {
|
|
4
|
-
PolymorphicComponentProps,
|
|
5
|
-
PolymorphicComponentType,
|
|
6
|
-
} from "@studiocubics/types";
|
|
7
|
-
import { type ElementType, type ComponentProps, type ReactNode } from "react";
|
|
8
|
-
import { cn } from "@studiocubics/utils";
|
|
9
|
-
import styles from "./IdentityDisplay.module.css";
|
|
10
|
-
import {
|
|
11
|
-
eventWithRipple,
|
|
12
|
-
useRipple,
|
|
13
|
-
type UseRippleProps,
|
|
14
|
-
} from "../../Misc/_index";
|
|
15
|
-
|
|
16
|
-
interface IdentityDisplayBaseProps {
|
|
17
|
-
profileName: ReactNode;
|
|
18
|
-
role?: ReactNode;
|
|
19
|
-
desc?: ReactNode;
|
|
20
|
-
alt?: string;
|
|
21
|
-
profileImage?: string | null;
|
|
22
|
-
variant?: "compact" | "full" | "square" | "image-only";
|
|
23
|
-
href?: ComponentProps<"a">["href"];
|
|
24
|
-
slotProps?: {
|
|
25
|
-
image?: ComponentProps<"div">;
|
|
26
|
-
ripple?: UseRippleProps;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const defaultElement = "div";
|
|
31
|
-
type DefaultELement = typeof defaultElement;
|
|
32
|
-
|
|
33
|
-
export type IdentityDisplayProps<C extends ElementType = DefaultELement> =
|
|
34
|
-
PolymorphicComponentProps<C, IdentityDisplayBaseProps>;
|
|
35
|
-
|
|
36
|
-
function IdentityDisplayBase<C extends ElementType = DefaultELement>(
|
|
37
|
-
props: IdentityDisplayProps<C>
|
|
38
|
-
) {
|
|
39
|
-
const {
|
|
40
|
-
as,
|
|
41
|
-
className,
|
|
42
|
-
profileName,
|
|
43
|
-
role,
|
|
44
|
-
profileImage,
|
|
45
|
-
desc,
|
|
46
|
-
variant = "full",
|
|
47
|
-
onClick,
|
|
48
|
-
onTouchStart,
|
|
49
|
-
alt = "Alt text missing",
|
|
50
|
-
slotProps: _slotProps,
|
|
51
|
-
ref,
|
|
52
|
-
...restProps
|
|
53
|
-
} = props;
|
|
54
|
-
const slotProps = {
|
|
55
|
-
image: _slotProps?.image ?? {},
|
|
56
|
-
ripple: _slotProps?.ripple ?? {},
|
|
57
|
-
};
|
|
58
|
-
const Component = (as ?? defaultElement) as ElementType;
|
|
59
|
-
const clickable = !!props.onClick || !!props.href;
|
|
60
|
-
const { rippleElements, createRipple } = useRipple(slotProps.ripple);
|
|
61
|
-
|
|
62
|
-
const componentProps = {
|
|
63
|
-
className: cn(
|
|
64
|
-
className,
|
|
65
|
-
styles.root,
|
|
66
|
-
styles[variant],
|
|
67
|
-
clickable ? styles.clickable : ""
|
|
68
|
-
),
|
|
69
|
-
onTouchStart: eventWithRipple(createRipple, onTouchStart),
|
|
70
|
-
onClick: eventWithRipple(createRipple, onClick),
|
|
71
|
-
|
|
72
|
-
ref,
|
|
73
|
-
...(Component === "a" ? { href: props.href } : {}),
|
|
74
|
-
...restProps,
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
return (
|
|
78
|
-
<Component {...componentProps}>
|
|
79
|
-
{clickable && rippleElements}
|
|
80
|
-
<div className={styles.main}>
|
|
81
|
-
{profileImage && (
|
|
82
|
-
<div
|
|
83
|
-
{...slotProps.image}
|
|
84
|
-
className={cn(styles.image, slotProps.image?.className)}
|
|
85
|
-
>
|
|
86
|
-
<img
|
|
87
|
-
src={profileImage}
|
|
88
|
-
alt={typeof profileName == "string" ? profileName : alt}
|
|
89
|
-
width={48}
|
|
90
|
-
height={48}
|
|
91
|
-
/>
|
|
92
|
-
</div>
|
|
93
|
-
)}
|
|
94
|
-
<div className={styles.details}>
|
|
95
|
-
{profileName &&
|
|
96
|
-
(typeof profileName == "string" ? (
|
|
97
|
-
<h4>{profileName}</h4>
|
|
98
|
-
) : (
|
|
99
|
-
profileName
|
|
100
|
-
))}
|
|
101
|
-
{role && (typeof role == "string" ? <p>{role}</p> : role)}
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
{desc &&
|
|
105
|
-
(typeof desc == "string" ? (
|
|
106
|
-
<p className={styles.desc}>{desc}</p>
|
|
107
|
-
) : (
|
|
108
|
-
desc
|
|
109
|
-
))}
|
|
110
|
-
</Component>
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
IdentityDisplayBase.displayName = "IdentityDisplay";
|
|
114
|
-
|
|
115
|
-
// Type assertion to make it polymorphic
|
|
116
|
-
export const IdentityDisplay = IdentityDisplayBase as PolymorphicComponentType<
|
|
117
|
-
IdentityDisplayBaseProps,
|
|
118
|
-
DefaultELement
|
|
119
|
-
>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { type ElementType } from "react";
|
|
2
|
-
import styles from "./InputErrors.module.css";
|
|
3
|
-
import { cn } from "@studiocubics/utils";
|
|
4
|
-
import type {
|
|
5
|
-
PolymorphicComponentProps,
|
|
6
|
-
PolymorphicComponentType,
|
|
7
|
-
} from "@studiocubics/types";
|
|
8
|
-
|
|
9
|
-
export interface InputErrorsBaseProps {
|
|
10
|
-
error?: string | string[];
|
|
11
|
-
children?: null;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const defaultElement = "p";
|
|
15
|
-
type DefaultElement = typeof defaultElement;
|
|
16
|
-
|
|
17
|
-
export type InputErrorsProps<C extends ElementType = DefaultElement> =
|
|
18
|
-
PolymorphicComponentProps<C, InputErrorsBaseProps>;
|
|
19
|
-
|
|
20
|
-
function InputErrorsBase<C extends ElementType = DefaultElement>(
|
|
21
|
-
props: InputErrorsProps<C>,
|
|
22
|
-
) {
|
|
23
|
-
const {
|
|
24
|
-
as,
|
|
25
|
-
error: _error,
|
|
26
|
-
className,
|
|
27
|
-
...rest
|
|
28
|
-
} = props as InputErrorsProps<DefaultElement>;
|
|
29
|
-
const error = _error?.length == 1 ? _error[0] : _error;
|
|
30
|
-
if (!error || !error.length) return null;
|
|
31
|
-
const isStringError = typeof error === "string";
|
|
32
|
-
const Component = (
|
|
33
|
-
as || isStringError ? defaultElement : "ul"
|
|
34
|
-
) as ElementType;
|
|
35
|
-
const componentProps = { className: cn(className, styles.root), ...rest };
|
|
36
|
-
return (
|
|
37
|
-
<Component {...componentProps}>
|
|
38
|
-
{isStringError
|
|
39
|
-
? error
|
|
40
|
-
: error.map((c, i) => {
|
|
41
|
-
return <li key={i}>{c}</li>;
|
|
42
|
-
})}
|
|
43
|
-
</Component>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
InputErrorsBase.displayName = "InputErrors";
|
|
48
|
-
|
|
49
|
-
export const InputErrors = InputErrorsBase as PolymorphicComponentType<
|
|
50
|
-
InputErrorsBaseProps,
|
|
51
|
-
DefaultElement
|
|
52
|
-
>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: var(--spacing-gap);
|
|
5
|
-
}
|
|
6
|
-
.kbd {
|
|
7
|
-
--kbd-size-x: 1;
|
|
8
|
-
--kbd-size-y: 1;
|
|
9
|
-
--kbd-base: 30px;
|
|
10
|
-
width: calc(var(--kbd-size-x) * var(--kbd-base));
|
|
11
|
-
height: calc(var(--kbd-size-y) * var(--kbd-base));
|
|
12
|
-
padding: 0.2em;
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
gap: 0.1em;
|
|
17
|
-
text-align: center;
|
|
18
|
-
font-size: 60%;
|
|
19
|
-
/* font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif; */
|
|
20
|
-
font-family:
|
|
21
|
-
ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
|
|
22
|
-
/* font-weight: bold; */
|
|
23
|
-
|
|
24
|
-
&.surface {
|
|
25
|
-
color: #ebd6dc;
|
|
26
|
-
background: #313133;
|
|
27
|
-
border-radius: 0.4em;
|
|
28
|
-
}
|
|
29
|
-
}
|
package/src/Display/Kbd/Kbd.tsx
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { cn } from "@studiocubics/utils";
|
|
2
|
-
import { type CSSProperties, Fragment, type ComponentProps } from "react";
|
|
3
|
-
import styles from "./Kbd.module.css";
|
|
4
|
-
import { type ButtonList, buttonList, type ButtonSpec } from "./buttonList";
|
|
5
|
-
|
|
6
|
-
export type KeyboardKey = keyof ButtonList;
|
|
7
|
-
export type KeyCombo = KeyboardKey[];
|
|
8
|
-
export interface KbdProps extends Omit<ComponentProps<"div">, "children"> {
|
|
9
|
-
buttons: KeyCombo;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function Kbd(props: KbdProps) {
|
|
13
|
-
const { className, buttons, ...rest } = props;
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<div className={cn(styles.root, className)} {...rest}>
|
|
17
|
-
{buttons.map((b, i) => {
|
|
18
|
-
const button: ButtonSpec = buttonList[b];
|
|
19
|
-
return (
|
|
20
|
-
<Fragment key={i}>
|
|
21
|
-
<kbd
|
|
22
|
-
className={cn(styles.kbd, styles.surface)}
|
|
23
|
-
style={
|
|
24
|
-
{
|
|
25
|
-
"--kbd-size-x": button.sizeX ?? 1,
|
|
26
|
-
"--kbd-size-y": button.sizeY ?? 1,
|
|
27
|
-
} as CSSProperties
|
|
28
|
-
}
|
|
29
|
-
>
|
|
30
|
-
{button.content}
|
|
31
|
-
</kbd>
|
|
32
|
-
|
|
33
|
-
{i >= 0 && i < buttons.length - 1 && "+"}
|
|
34
|
-
</Fragment>
|
|
35
|
-
);
|
|
36
|
-
})}
|
|
37
|
-
</div>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
export type ButtonSpec = {
|
|
4
|
-
content: ReactNode;
|
|
5
|
-
sizeX?: number;
|
|
6
|
-
sizeY?: number;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const buttonList = {
|
|
10
|
-
A: { content: <>A</> },
|
|
11
|
-
B: { content: <>B</> },
|
|
12
|
-
C: { content: <>C</> },
|
|
13
|
-
D: { content: <>D</> },
|
|
14
|
-
E: { content: <>E</> },
|
|
15
|
-
F: { content: <>F</> },
|
|
16
|
-
G: { content: <>G</> },
|
|
17
|
-
H: { content: <>H</> },
|
|
18
|
-
I: { content: <>I</> },
|
|
19
|
-
J: { content: <>J</> },
|
|
20
|
-
K: { content: <>K</> },
|
|
21
|
-
L: { content: <>L</> },
|
|
22
|
-
M: { content: <>M</> },
|
|
23
|
-
N: { content: <>N</> },
|
|
24
|
-
O: { content: <>O</> },
|
|
25
|
-
P: { content: <>P</> },
|
|
26
|
-
Q: { content: <>Q</> },
|
|
27
|
-
R: { content: <>R</> },
|
|
28
|
-
S: { content: <>S</> },
|
|
29
|
-
T: { content: <>T</> },
|
|
30
|
-
U: { content: <>U</> },
|
|
31
|
-
V: { content: <>V</> },
|
|
32
|
-
W: { content: <>W</> },
|
|
33
|
-
X: { content: <>X</> },
|
|
34
|
-
Y: { content: <>Y</> },
|
|
35
|
-
Z: { content: <>Z</> },
|
|
36
|
-
|
|
37
|
-
"0": { content: <>0</> },
|
|
38
|
-
"1": { content: <>1</> },
|
|
39
|
-
"2": { content: <>2</> },
|
|
40
|
-
"3": { content: <>3</> },
|
|
41
|
-
"4": { content: <>4</> },
|
|
42
|
-
"5": { content: <>5</> },
|
|
43
|
-
"6": { content: <>6</> },
|
|
44
|
-
"7": { content: <>7</> },
|
|
45
|
-
"8": { content: <>8</> },
|
|
46
|
-
"9": { content: <>9</> },
|
|
47
|
-
|
|
48
|
-
"`": { content: <>`</> },
|
|
49
|
-
"-": { content: <>-</> },
|
|
50
|
-
"=": { content: <>=</> },
|
|
51
|
-
"[": { content: <>{"["}</> },
|
|
52
|
-
"]": { content: <>{"]"}</> },
|
|
53
|
-
Backslash: {
|
|
54
|
-
content: <>\</>,
|
|
55
|
-
},
|
|
56
|
-
";": { content: <>;</> },
|
|
57
|
-
"'": {
|
|
58
|
-
content: <>'</>,
|
|
59
|
-
},
|
|
60
|
-
",": { content: <>,</> },
|
|
61
|
-
".": { content: <>.</> },
|
|
62
|
-
Forwardslash: {
|
|
63
|
-
content: <>/</>,
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
"~": { content: <>~</> },
|
|
67
|
-
"!": { content: <>!</> },
|
|
68
|
-
"@": { content: <>@</> },
|
|
69
|
-
"#": { content: <>#</> },
|
|
70
|
-
$: { content: <>$</> },
|
|
71
|
-
"%": { content: <>%</> },
|
|
72
|
-
"^": { content: <>^</> },
|
|
73
|
-
"&": { content: <>&</> },
|
|
74
|
-
"*": { content: <>*</> },
|
|
75
|
-
"(": { content: <>{"("}</> },
|
|
76
|
-
")": { content: <>{")"}</> },
|
|
77
|
-
_: { content: <>_</> },
|
|
78
|
-
"+": { content: <>+</> },
|
|
79
|
-
|
|
80
|
-
"{": {
|
|
81
|
-
content: <>{"{"}</>,
|
|
82
|
-
},
|
|
83
|
-
"}": {
|
|
84
|
-
content: <>{"}"}</>,
|
|
85
|
-
},
|
|
86
|
-
"|": { content: <>|</> },
|
|
87
|
-
":": { content: <>:</> },
|
|
88
|
-
'"': {
|
|
89
|
-
content: <>"</>,
|
|
90
|
-
},
|
|
91
|
-
"<": {
|
|
92
|
-
content: <>{"<"}</>,
|
|
93
|
-
},
|
|
94
|
-
">": {
|
|
95
|
-
content: <>{">"}</>,
|
|
96
|
-
},
|
|
97
|
-
"?": { content: <>?</> },
|
|
98
|
-
|
|
99
|
-
Space: {
|
|
100
|
-
content: <>Space</>,
|
|
101
|
-
},
|
|
102
|
-
Enter: {
|
|
103
|
-
content: <>Enter</>,
|
|
104
|
-
},
|
|
105
|
-
Backspace: {
|
|
106
|
-
content: <>Backspace</>,
|
|
107
|
-
},
|
|
108
|
-
Esc: {
|
|
109
|
-
content: <>Esc</>,
|
|
110
|
-
},
|
|
111
|
-
Shift: {
|
|
112
|
-
content: <>Shift</>,
|
|
113
|
-
},
|
|
114
|
-
Ctrl: {
|
|
115
|
-
content: <>Ctrl</>,
|
|
116
|
-
},
|
|
117
|
-
Alt: {
|
|
118
|
-
content: <>Alt</>,
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
Tab: {
|
|
122
|
-
content: (
|
|
123
|
-
<>
|
|
124
|
-
Tab
|
|
125
|
-
<br />↹
|
|
126
|
-
</>
|
|
127
|
-
),
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
CapsLock: {
|
|
131
|
-
content: (
|
|
132
|
-
<>
|
|
133
|
-
Caps
|
|
134
|
-
<br />
|
|
135
|
-
Lock
|
|
136
|
-
</>
|
|
137
|
-
),
|
|
138
|
-
},
|
|
139
|
-
Fn: { content: <>Fn</> },
|
|
140
|
-
UpArrow: {
|
|
141
|
-
content: <>↑</>,
|
|
142
|
-
},
|
|
143
|
-
DownArrow: {
|
|
144
|
-
content: <>↓</>,
|
|
145
|
-
},
|
|
146
|
-
LeftArrow: {
|
|
147
|
-
content: <>←</>,
|
|
148
|
-
},
|
|
149
|
-
RightArrow: {
|
|
150
|
-
content: <>→</>,
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
Insert: {
|
|
154
|
-
content: <>Insert</>,
|
|
155
|
-
},
|
|
156
|
-
Delete: {
|
|
157
|
-
content: <>Delete</>,
|
|
158
|
-
},
|
|
159
|
-
Home: {
|
|
160
|
-
content: <>Home</>,
|
|
161
|
-
},
|
|
162
|
-
End: {
|
|
163
|
-
content: <>End</>,
|
|
164
|
-
},
|
|
165
|
-
PageUp: {
|
|
166
|
-
content: <>Pg Up</>,
|
|
167
|
-
},
|
|
168
|
-
PageDown: {
|
|
169
|
-
content: <>Pg Dn</>,
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
PrintScreen: {
|
|
173
|
-
content: (
|
|
174
|
-
<>
|
|
175
|
-
Print
|
|
176
|
-
<br />
|
|
177
|
-
Scr
|
|
178
|
-
</>
|
|
179
|
-
),
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
ScrollLock: {
|
|
183
|
-
content: (
|
|
184
|
-
<>
|
|
185
|
-
Scrl
|
|
186
|
-
<br />
|
|
187
|
-
Lock
|
|
188
|
-
</>
|
|
189
|
-
),
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
Pause: {
|
|
193
|
-
content: <>Pause</>,
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
NumLock: {
|
|
197
|
-
content: (
|
|
198
|
-
<>
|
|
199
|
-
Num
|
|
200
|
-
<br />
|
|
201
|
-
Lock
|
|
202
|
-
</>
|
|
203
|
-
),
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
"⌘": { content: <>⌘</> },
|
|
207
|
-
|
|
208
|
-
"⏮": {
|
|
209
|
-
content: <>⏮</>,
|
|
210
|
-
},
|
|
211
|
-
"▶": {
|
|
212
|
-
content: <>▶</>,
|
|
213
|
-
},
|
|
214
|
-
"⏸": {
|
|
215
|
-
content: <>⏸</>,
|
|
216
|
-
},
|
|
217
|
-
"⏯": {
|
|
218
|
-
content: <>⏯</>,
|
|
219
|
-
},
|
|
220
|
-
"⏹": {
|
|
221
|
-
content: <>⏹</>,
|
|
222
|
-
},
|
|
223
|
-
"⏭": {
|
|
224
|
-
content: <>⏭</>,
|
|
225
|
-
},
|
|
226
|
-
"⏪": {
|
|
227
|
-
content: <>⏪</>,
|
|
228
|
-
},
|
|
229
|
-
"⏩": {
|
|
230
|
-
content: <>⏩</>,
|
|
231
|
-
},
|
|
232
|
-
"🔈": {
|
|
233
|
-
content: <>🔈</>,
|
|
234
|
-
},
|
|
235
|
-
"🔉": {
|
|
236
|
-
content: <>🔉</>,
|
|
237
|
-
},
|
|
238
|
-
"🔊": {
|
|
239
|
-
content: <>🔊</>,
|
|
240
|
-
},
|
|
241
|
-
"🔇": {
|
|
242
|
-
content: <>🔇</>,
|
|
243
|
-
},
|
|
244
|
-
} satisfies Record<string, ButtonSpec>;
|
|
245
|
-
|
|
246
|
-
export type ButtonList = typeof buttonList;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
padding-block: var(--spacing-gap);
|
|
5
|
-
align-items: center;
|
|
6
|
-
/* padding-inline: var(--spacing-gap-4); */
|
|
7
|
-
/* & > label, */
|
|
8
|
-
& > .content {
|
|
9
|
-
flex: 1;
|
|
10
|
-
}
|
|
11
|
-
& > label {
|
|
12
|
-
padding-right: var(--spacing-gap-2);
|
|
13
|
-
font-size: 0.9em;
|
|
14
|
-
color: var(--color-on-background-faint);
|
|
15
|
-
}
|
|
16
|
-
& > .content {
|
|
17
|
-
padding-left: var(--spacing-gap-2);
|
|
18
|
-
border-left: 1px solid var(--color-outline);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
@container (max-width:400px) {
|
|
22
|
-
.root {
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
& > label {
|
|
25
|
-
padding-right: 0;
|
|
26
|
-
}
|
|
27
|
-
& > .content {
|
|
28
|
-
padding-left: 0;
|
|
29
|
-
border-left: none;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import styles from "./LabeledValue.module.css";
|
|
3
|
-
import { cn } from "@studiocubics/utils";
|
|
4
|
-
export interface LabeledValueProps extends ComponentProps<"div"> {
|
|
5
|
-
label: ReactNode;
|
|
6
|
-
slotProps?: {
|
|
7
|
-
label?: ComponentProps<"label">;
|
|
8
|
-
content?: ComponentProps<"span">;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function LabeledValue(props: LabeledValueProps) {
|
|
13
|
-
const { label, children, className, ...rest } = props;
|
|
14
|
-
return (
|
|
15
|
-
<div className={cn(styles.root, className)} {...rest}>
|
|
16
|
-
<label>{label}</label>
|
|
17
|
-
<span className={styles.content}>{children}</span>
|
|
18
|
-
</div>
|
|
19
|
-
);
|
|
20
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
list-style-type: none;
|
|
3
|
-
padding-inline: var(--spacing-gap-3);
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
position: relative;
|
|
7
|
-
}
|
|
8
|
-
.root:has(.shortened) {
|
|
9
|
-
padding: 0;
|
|
10
|
-
}
|
|
11
|
-
.secondary {
|
|
12
|
-
border-left: 1px solid var(--color-outline);
|
|
13
|
-
margin-left: var(--spacing-gap-3);
|
|
14
|
-
padding-inline: var(--spacing-gap);
|
|
15
|
-
margin-block: var(--spacing-gap-2);
|
|
16
|
-
}
|
|
17
|
-
.listItem {
|
|
18
|
-
--list-color: var(--color-on-background);
|
|
19
|
-
--list-background: transparent;
|
|
20
|
-
--list-hover-color: var(--color-on-background);
|
|
21
|
-
--list-hover-background: var(--color-background-faint);
|
|
22
|
-
--list-selected-color: var(--color-primary);
|
|
23
|
-
--list-selected-background: none;
|
|
24
|
-
--list-selected-hover-color: var(--color-on-background);
|
|
25
|
-
--list-selected-hover-background: none;
|
|
26
|
-
padding: calc(var(--spacing-gap-3) / 1.75)
|
|
27
|
-
calc(1.618 * var(--spacing-gap-3) / 1.75);
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
gap: var(--spacing-gap);
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
position: relative;
|
|
34
|
-
border-radius: var(--shape-br-sm);
|
|
35
|
-
color: var(--list-color);
|
|
36
|
-
transition: all var(--transition-time) var(--transition-tf);
|
|
37
|
-
background: var(--list-background);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.listItem.clickable {
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
}
|
|
43
|
-
.listItem.clickable:not(.selected):not(:disabled):hover {
|
|
44
|
-
background: color-mix(in srgb, var(--list-hover-background) 50%, transparent);
|
|
45
|
-
color: var(--list-hover-color);
|
|
46
|
-
}
|
|
47
|
-
.listItem:focus-visible {
|
|
48
|
-
outline: var(--focus-ring);
|
|
49
|
-
}
|
|
50
|
-
.selected {
|
|
51
|
-
background: var(--list-selected-background);
|
|
52
|
-
color: var(--list-selected-color);
|
|
53
|
-
&:hover {
|
|
54
|
-
background: var(--list-selected-hover-background);
|
|
55
|
-
color: var(--list-selected-hover-color);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.disabled {
|
|
59
|
-
cursor: not-allowed;
|
|
60
|
-
background: var(--color-background-faint);
|
|
61
|
-
color: var(--color-on-background-faint);
|
|
62
|
-
}
|
|
63
|
-
.shortened {
|
|
64
|
-
gap: 0;
|
|
65
|
-
& > *:not(.primaryIcon) {
|
|
66
|
-
max-width: 0;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
.content {
|
|
70
|
-
flex: 1;
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
max-width: 50ch;
|
|
74
|
-
color: inherit;
|
|
75
|
-
font-weight: bold;
|
|
76
|
-
transition: max-width var(--transition-time) var(--transition-tf);
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.iconContainer {
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
color: inherit;
|
|
85
|
-
max-width: 50ch;
|
|
86
|
-
transition: max-width var(--transition-time) var(--transition-tf);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.dropDownIcon {
|
|
90
|
-
position: relative;
|
|
91
|
-
display: block;
|
|
92
|
-
}
|
|
93
|
-
.dropDownIcon.openSublist {
|
|
94
|
-
rotate: 180deg;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.marker {
|
|
98
|
-
display: none;
|
|
99
|
-
position: absolute;
|
|
100
|
-
left: 0;
|
|
101
|
-
width: 0;
|
|
102
|
-
z-index: -1;
|
|
103
|
-
transition:
|
|
104
|
-
width 0s linear,
|
|
105
|
-
top var(--transition-time) var(--transition-tf),
|
|
106
|
-
left var(--transition-time) var(--transition-tf);
|
|
107
|
-
--glass-border-radius: var(--shape-br-sm);
|
|
108
|
-
background-color: color-mix(
|
|
109
|
-
in srgb,
|
|
110
|
-
var(--color-background) 50%,
|
|
111
|
-
transparent
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
.listItem[data-color="primary"] {
|
|
115
|
-
--list-color: var(--color-primary);
|
|
116
|
-
--list-background: transparent;
|
|
117
|
-
--list-hover-color: var(--color-on-primary-container);
|
|
118
|
-
--list-hover-background: var(--color-primary-container);
|
|
119
|
-
--list-selected-color: none;
|
|
120
|
-
--list-selected-background: none;
|
|
121
|
-
--list-selected-hover-color: var(--color-on-background);
|
|
122
|
-
--list-selected-hover-background: none;
|
|
123
|
-
}
|
|
124
|
-
.listItem[data-color="secondary"] {
|
|
125
|
-
--list-color: var(--color-secondary);
|
|
126
|
-
--list-background: transparent;
|
|
127
|
-
--list-hover-color: var(--color-on-secondary-container);
|
|
128
|
-
--list-hover-background: var(--color-secondary-container);
|
|
129
|
-
--list-selected-color: none;
|
|
130
|
-
--list-selected-background: none;
|
|
131
|
-
--list-selected-hover-color: var(--color-on-background);
|
|
132
|
-
--list-selected-hover-background: none;
|
|
133
|
-
}
|
|
134
|
-
.listItem[data-color="error"] {
|
|
135
|
-
--list-color: var(--color-error);
|
|
136
|
-
--list-background: transparent;
|
|
137
|
-
--list-hover-color: var(--color-on-error-container);
|
|
138
|
-
--list-hover-background: var(--color-error-container);
|
|
139
|
-
--list-selected-color: none;
|
|
140
|
-
--list-selected-background: none;
|
|
141
|
-
--list-selected-hover-color: var(--color-on-secondary);
|
|
142
|
-
--list-selected-hover-background: none;
|
|
143
|
-
}
|