@skewedaspect/sleekspace-ui 0.2.0-beta.1 → 0.2.0-beta.3
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/components/Accordion/SkAccordion.vue.d.ts +65 -0
- package/dist/components/Accordion/SkAccordionItem.vue.d.ts +52 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion/types.d.ts +3 -0
- package/dist/components/Alert/SkAlert.vue.d.ts +39 -0
- package/dist/components/Alert/types.d.ts +4 -0
- package/dist/components/Avatar/SkAvatar.vue.d.ts +75 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/types.d.ts +20 -0
- package/dist/components/Breadcrumbs/SkBreadcrumbItem.vue.d.ts +51 -0
- package/dist/components/Breadcrumbs/SkBreadcrumbSeparator.vue.d.ts +13 -0
- package/dist/components/Breadcrumbs/SkBreadcrumbs.vue.d.ts +24 -0
- package/dist/components/Breadcrumbs/index.d.ts +4 -0
- package/dist/components/Breadcrumbs/types.d.ts +18 -0
- package/dist/components/Button/SkButton.vue.d.ts +97 -0
- package/dist/components/Button/types.d.ts +5 -0
- package/dist/components/Card/SkCard.vue.d.ts +88 -0
- package/dist/components/Card/types.d.ts +2 -0
- package/dist/components/Checkbox/SkCheckbox.vue.d.ts +71 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/types.d.ts +3 -0
- package/dist/components/Collapsible/SkCollapsible.vue.d.ts +70 -0
- package/dist/components/Collapsible/index.d.ts +2 -0
- package/dist/components/Collapsible/types.d.ts +2 -0
- package/dist/components/Divider/SkDivider.vue.d.ts +39 -0
- package/dist/components/Divider/types.d.ts +8 -0
- package/dist/components/Dropdown/SkDropdown.vue.d.ts +63 -0
- package/dist/components/Dropdown/SkDropdownMenuItem.vue.d.ts +32 -0
- package/dist/components/Dropdown/SkDropdownMenuSeparator.vue.d.ts +2 -0
- package/dist/components/Dropdown/SkDropdownSubmenu.vue.d.ts +34 -0
- package/dist/components/Dropdown/index.d.ts +5 -0
- package/dist/components/Dropdown/types.d.ts +4 -0
- package/dist/components/Field/SkField.vue.d.ts +99 -0
- package/dist/components/Field/index.d.ts +2 -0
- package/dist/components/Field/types.d.ts +1 -0
- package/dist/components/Group/SkGroup.vue.d.ts +29 -0
- package/dist/components/Group/types.d.ts +4 -0
- package/dist/components/Input/SkInput.vue.d.ts +84 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/types.d.ts +4 -0
- package/dist/components/Listbox/SkListbox.vue.d.ts +62 -0
- package/dist/components/Listbox/SkListboxItem.vue.d.ts +34 -0
- package/dist/components/Listbox/SkListboxSeparator.vue.d.ts +2 -0
- package/dist/components/Listbox/index.d.ts +4 -0
- package/dist/components/Listbox/types.d.ts +3 -0
- package/dist/components/Modal/SkModal.vue.d.ts +108 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/types.d.ts +3 -0
- package/dist/components/NavBar/SkNavBar.vue.d.ts +40 -0
- package/dist/components/NavBar/index.d.ts +2 -0
- package/dist/components/NavBar/types.d.ts +6 -0
- package/dist/components/NumberInput/SkNumberInput.vue.d.ts +93 -0
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/NumberInput/types.d.ts +3 -0
- package/dist/components/Page/SkPage.vue.d.ts +55 -0
- package/dist/components/Page/index.d.ts +2 -0
- package/dist/components/Page/types.d.ts +13 -0
- package/dist/components/Pagination/SkPagination.vue.d.ts +79 -0
- package/dist/components/Pagination/SkPaginationItem.vue.d.ts +44 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/types.d.ts +24 -0
- package/dist/components/Panel/SkPanel.vue.d.ts +55 -0
- package/dist/components/Panel/types.d.ts +3 -0
- package/dist/components/Popover/SkPopover.vue.d.ts +94 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/types.d.ts +4 -0
- package/dist/components/Progress/SkProgress.vue.d.ts +66 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/types.d.ts +22 -0
- package/dist/components/Radio/SkRadio.vue.d.ts +59 -0
- package/dist/components/Radio/SkRadioGroup.vue.d.ts +85 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/types.d.ts +4 -0
- package/dist/components/Sidebar/SkSidebar.vue.d.ts +38 -0
- package/dist/components/Sidebar/SkSidebarItem.vue.d.ts +37 -0
- package/dist/components/Sidebar/SkSidebarSection.vue.d.ts +44 -0
- package/dist/components/Sidebar/types.d.ts +2 -0
- package/dist/components/Skeleton/SkSkeleton.vue.d.ts +55 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/types.d.ts +21 -0
- package/dist/components/Slider/SkSlider.vue.d.ts +100 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/types.d.ts +32 -0
- package/dist/components/Spinner/SkSpinner.vue.d.ts +39 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/types.d.ts +16 -0
- package/dist/components/Switch/SkSwitch.vue.d.ts +120 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/types.d.ts +3 -0
- package/dist/components/Table/SkTable.vue.d.ts +86 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/types.d.ts +3 -0
- package/dist/components/Tabs/SkTab.vue.d.ts +49 -0
- package/dist/components/Tabs/SkTabList.vue.d.ts +28 -0
- package/dist/components/Tabs/SkTabPanel.vue.d.ts +33 -0
- package/dist/components/Tabs/SkTabPanels.vue.d.ts +17 -0
- package/dist/components/Tabs/SkTabs.vue.d.ts +60 -0
- package/dist/components/Tabs/types.d.ts +5 -0
- package/dist/components/Tag/SkTag.vue.d.ts +58 -0
- package/dist/components/Tag/types.d.ts +8 -0
- package/dist/components/TagsInput/SkTagsInput.vue.d.ts +77 -0
- package/dist/components/TagsInput/index.d.ts +2 -0
- package/dist/components/TagsInput/types.d.ts +3 -0
- package/dist/components/Textarea/SkTextarea.vue.d.ts +85 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/types.d.ts +3 -0
- package/dist/components/Theme/SkTheme.vue.d.ts +20 -0
- package/dist/components/Theme/types.d.ts +16 -0
- package/dist/components/Theme/useTheme.d.ts +84 -0
- package/dist/components/Toast/SkToast.vue.d.ts +42 -0
- package/dist/components/Toast/SkToastProvider.vue.d.ts +62 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/Toast/types.d.ts +35 -0
- package/dist/components/Toast/useToast.d.ts +33 -0
- package/dist/components/Tooltip/SkTooltip.vue.d.ts +81 -0
- package/dist/components/Tooltip/SkTooltipProvider.vue.d.ts +70 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts +4 -0
- package/dist/composables/useCustomColors.d.ts +74 -0
- package/dist/composables/useCustomColors.test.d.ts +1 -0
- package/dist/composables/usePortalContext.d.ts +75 -0
- package/dist/composables/usePortalContext.test.d.ts +1 -0
- package/dist/index.d.ts +149 -0
- package/dist/sleekspace-ui.css +2 -16
- package/dist/sleekspace-ui.es.js +43 -42
- package/dist/sleekspace-ui.umd.js +43 -42
- package/dist/tokens.css +968 -0
- package/dist/types.d.ts +29 -0
- package/docs/components/accordion/_meta.yaml +9 -0
- package/docs/components/accordion/custom-colors.md +20 -0
- package/docs/components/accordion/intro.md +8 -0
- package/docs/components/accordion/kinds.md +30 -0
- package/docs/components/accordion/multiple.md +28 -0
- package/docs/components/accordion/real-world.md +31 -0
- package/docs/components/accordion/usage.md +28 -0
- package/docs/components/alert/_meta.yaml +10 -0
- package/docs/components/alert/custom-colors.md +30 -0
- package/docs/components/alert/custom-icons.md +17 -0
- package/docs/components/alert/intro.md +8 -0
- package/docs/components/alert/kinds.md +24 -0
- package/docs/components/alert/prominent.md +16 -0
- package/docs/components/alert/rich-content.md +19 -0
- package/docs/components/alert/usage.md +12 -0
- package/docs/components/avatar/_meta.yaml +10 -0
- package/docs/components/avatar/custom-colors.md +14 -0
- package/docs/components/avatar/images.md +12 -0
- package/docs/components/avatar/intro.md +8 -0
- package/docs/components/avatar/kinds.md +16 -0
- package/docs/components/avatar/real-world.md +25 -0
- package/docs/components/avatar/sizes.md +14 -0
- package/docs/components/avatar/usage.md +15 -0
- package/docs/components/breadcrumbs/_meta.yaml +9 -0
- package/docs/components/breadcrumbs/custom-colors.md +14 -0
- package/docs/components/breadcrumbs/intro.md +8 -0
- package/docs/components/breadcrumbs/kinds.md +16 -0
- package/docs/components/breadcrumbs/real-world.md +33 -0
- package/docs/components/breadcrumbs/separators.md +13 -0
- package/docs/components/breadcrumbs/usage.md +15 -0
- package/docs/components/card/_meta.yaml +10 -0
- package/docs/components/card/intro.md +8 -0
- package/docs/components/card/kinds.md +24 -0
- package/docs/components/card/media.md +25 -0
- package/docs/components/card/neon-kinds.md +24 -0
- package/docs/components/card/no-decoration.md +15 -0
- package/docs/components/card/scrollable.md +23 -0
- package/docs/components/card/usage.md +12 -0
- package/docs/components/checkbox/_meta.yaml +11 -0
- package/docs/components/checkbox/color-kinds.md +17 -0
- package/docs/components/checkbox/custom-colors.md +21 -0
- package/docs/components/checkbox/form-example.md +24 -0
- package/docs/components/checkbox/intro.md +8 -0
- package/docs/components/checkbox/kinds.md +16 -0
- package/docs/components/checkbox/sizes.md +13 -0
- package/docs/components/checkbox/states.md +14 -0
- package/docs/components/checkbox/usage.md +17 -0
- package/docs/components/collapsible/_meta.yaml +9 -0
- package/docs/components/collapsible/accessibility.md +6 -0
- package/docs/components/collapsible/custom-colors.md +16 -0
- package/docs/components/collapsible/custom-trigger.md +35 -0
- package/docs/components/collapsible/intro.md +8 -0
- package/docs/components/collapsible/kinds.md +16 -0
- package/docs/components/collapsible/usage.md +22 -0
- package/docs/components/divider/_meta.yaml +10 -0
- package/docs/components/divider/accessibility.md +6 -0
- package/docs/components/divider/intro.md +8 -0
- package/docs/components/divider/kinds.md +16 -0
- package/docs/components/divider/orientation.md +18 -0
- package/docs/components/divider/sizes.md +24 -0
- package/docs/components/divider/usage.md +14 -0
- package/docs/components/divider/variants.md +14 -0
- package/docs/components/dropdown/_meta.yaml +11 -0
- package/docs/components/dropdown/accessibility.md +6 -0
- package/docs/components/dropdown/custom-colors.md +17 -0
- package/docs/components/dropdown/custom-trigger.md +18 -0
- package/docs/components/dropdown/intro.md +8 -0
- package/docs/components/dropdown/kinds.md +23 -0
- package/docs/components/dropdown/positioning.md +23 -0
- package/docs/components/dropdown/submenus.md +28 -0
- package/docs/components/dropdown/usage.md +24 -0
- package/docs/components/field/_meta.yaml +10 -0
- package/docs/components/field/accessibility.md +6 -0
- package/docs/components/field/description.md +15 -0
- package/docs/components/field/intro.md +8 -0
- package/docs/components/field/label-position.md +16 -0
- package/docs/components/field/required.md +12 -0
- package/docs/components/field/usage.md +19 -0
- package/docs/components/field/validation.md +32 -0
- package/docs/components/group/_meta.yaml +7 -0
- package/docs/components/group/accessibility.md +6 -0
- package/docs/components/group/intro.md +8 -0
- package/docs/components/group/orientation.md +22 -0
- package/docs/components/group/usage.md +14 -0
- package/docs/components/input/_meta.yaml +11 -0
- package/docs/components/input/accessibility.md +6 -0
- package/docs/components/input/custom-colors.md +21 -0
- package/docs/components/input/intro.md +8 -0
- package/docs/components/input/kinds.md +16 -0
- package/docs/components/input/sizes.md +13 -0
- package/docs/components/input/states.md +12 -0
- package/docs/components/input/types.md +15 -0
- package/docs/components/input/usage.md +17 -0
- package/docs/components/listbox/_meta.yaml +12 -0
- package/docs/components/listbox/color-kinds.md +27 -0
- package/docs/components/listbox/custom-colors.md +18 -0
- package/docs/components/listbox/form-example.md +36 -0
- package/docs/components/listbox/intro.md +8 -0
- package/docs/components/listbox/kinds.md +30 -0
- package/docs/components/listbox/separators.md +19 -0
- package/docs/components/listbox/sizes.md +24 -0
- package/docs/components/listbox/states.md +19 -0
- package/docs/components/listbox/usage.md +23 -0
- package/docs/components/modal/_meta.yaml +13 -0
- package/docs/components/modal/close-behaviors.md +49 -0
- package/docs/components/modal/confirmation.md +19 -0
- package/docs/components/modal/controlled-state.md +29 -0
- package/docs/components/modal/custom-colors.md +25 -0
- package/docs/components/modal/custom-trigger.md +28 -0
- package/docs/components/modal/form-modal.md +23 -0
- package/docs/components/modal/intro.md +8 -0
- package/docs/components/modal/kinds.md +30 -0
- package/docs/components/modal/sizes.md +21 -0
- package/docs/components/modal/usage.md +15 -0
- package/docs/components/navbar/_meta.yaml +11 -0
- package/docs/components/navbar/complex-layouts.md +34 -0
- package/docs/components/navbar/custom-colors.md +24 -0
- package/docs/components/navbar/icons.md +33 -0
- package/docs/components/navbar/intro.md +8 -0
- package/docs/components/navbar/kinds.md +24 -0
- package/docs/components/navbar/neon-colors.md +24 -0
- package/docs/components/navbar/sticky.md +22 -0
- package/docs/components/navbar/usage.md +25 -0
- package/docs/components/number-input/_meta.yaml +12 -0
- package/docs/components/number-input/color-kinds.md +17 -0
- package/docs/components/number-input/custom-colors.md +21 -0
- package/docs/components/number-input/form-example.md +55 -0
- package/docs/components/number-input/intro.md +8 -0
- package/docs/components/number-input/kinds.md +16 -0
- package/docs/components/number-input/min-max-step.md +11 -0
- package/docs/components/number-input/sizes.md +13 -0
- package/docs/components/number-input/states.md +12 -0
- package/docs/components/number-input/usage.md +18 -0
- package/docs/components/page/_meta.yaml +9 -0
- package/docs/components/page/custom-width.md +17 -0
- package/docs/components/page/fixed-header.md +17 -0
- package/docs/components/page/intro.md +8 -0
- package/docs/components/page/real-world.md +37 -0
- package/docs/components/page/sidebar-position.md +18 -0
- package/docs/components/page/usage.md +33 -0
- package/docs/components/pagination/_meta.yaml +12 -0
- package/docs/components/pagination/config-options.md +17 -0
- package/docs/components/pagination/custom-colors.md +15 -0
- package/docs/components/pagination/intro.md +8 -0
- package/docs/components/pagination/kinds.md +13 -0
- package/docs/components/pagination/sizes.md +14 -0
- package/docs/components/pagination/states.md +10 -0
- package/docs/components/pagination/table-example.md +28 -0
- package/docs/components/pagination/usage.md +10 -0
- package/docs/components/pagination/variants.md +13 -0
- package/docs/components/panel/_meta.yaml +10 -0
- package/docs/components/panel/custom-colors.md +18 -0
- package/docs/components/panel/decoration.md +20 -0
- package/docs/components/panel/intro.md +8 -0
- package/docs/components/panel/kinds.md +23 -0
- package/docs/components/panel/scrollable.md +18 -0
- package/docs/components/panel/sizes.md +20 -0
- package/docs/components/panel/usage.md +13 -0
- package/docs/components/popover/_meta.yaml +9 -0
- package/docs/components/popover/arrow.md +15 -0
- package/docs/components/popover/custom-colors.md +19 -0
- package/docs/components/popover/intro.md +8 -0
- package/docs/components/popover/kinds.md +24 -0
- package/docs/components/popover/positioning.md +36 -0
- package/docs/components/popover/usage.md +15 -0
- package/docs/components/progress/_meta.yaml +10 -0
- package/docs/components/progress/custom-colors.md +14 -0
- package/docs/components/progress/indeterminate.md +11 -0
- package/docs/components/progress/intro.md +8 -0
- package/docs/components/progress/kinds.md +16 -0
- package/docs/components/progress/sizes.md +14 -0
- package/docs/components/progress/usage.md +13 -0
- package/docs/components/progress/value-label.md +12 -0
- package/docs/components/radio/_meta.yaml +10 -0
- package/docs/components/radio/custom-colors.md +24 -0
- package/docs/components/radio/intro.md +8 -0
- package/docs/components/radio/kinds.md +23 -0
- package/docs/components/radio/orientation.md +22 -0
- package/docs/components/radio/sizes.md +23 -0
- package/docs/components/radio/states.md +21 -0
- package/docs/components/radio/usage.md +21 -0
- package/docs/components/sidebar/_meta.yaml +10 -0
- package/docs/components/sidebar/active-state.md +35 -0
- package/docs/components/sidebar/custom-colors.md +20 -0
- package/docs/components/sidebar/intro.md +8 -0
- package/docs/components/sidebar/kinds.md +22 -0
- package/docs/components/sidebar/router.md +24 -0
- package/docs/components/sidebar/sections.md +24 -0
- package/docs/components/sidebar/usage.md +25 -0
- package/docs/components/skeleton/_meta.yaml +8 -0
- package/docs/components/skeleton/animations.md +17 -0
- package/docs/components/skeleton/composition.md +22 -0
- package/docs/components/skeleton/intro.md +8 -0
- package/docs/components/skeleton/usage.md +12 -0
- package/docs/components/skeleton/variants.md +17 -0
- package/docs/components/slider/_meta.yaml +12 -0
- package/docs/components/slider/accessibility.md +6 -0
- package/docs/components/slider/custom-colors.md +14 -0
- package/docs/components/slider/intro.md +8 -0
- package/docs/components/slider/kinds.md +16 -0
- package/docs/components/slider/range.md +16 -0
- package/docs/components/slider/sizes.md +14 -0
- package/docs/components/slider/step.md +13 -0
- package/docs/components/slider/usage.md +16 -0
- package/docs/components/slider/vertical.md +14 -0
- package/docs/components/spinner/_meta.yaml +10 -0
- package/docs/components/spinner/accessibility.md +6 -0
- package/docs/components/spinner/custom-colors.md +13 -0
- package/docs/components/spinner/intro.md +8 -0
- package/docs/components/spinner/kinds.md +16 -0
- package/docs/components/spinner/sizes.md +14 -0
- package/docs/components/spinner/usage.md +10 -0
- package/docs/components/spinner/variants.md +12 -0
- package/docs/components/switch/_meta.yaml +12 -0
- package/docs/components/switch/accessibility.md +6 -0
- package/docs/components/switch/custom-colors.md +29 -0
- package/docs/components/switch/disabled.md +11 -0
- package/docs/components/switch/dynamic-labels.md +12 -0
- package/docs/components/switch/intro.md +8 -0
- package/docs/components/switch/kinds.md +16 -0
- package/docs/components/switch/sizes.md +14 -0
- package/docs/components/switch/thumb-color.md +16 -0
- package/docs/components/switch/usage.md +18 -0
- package/docs/components/table/_meta.yaml +12 -0
- package/docs/components/table/accessibility.md +6 -0
- package/docs/components/table/borders.md +17 -0
- package/docs/components/table/hoverable.md +26 -0
- package/docs/components/table/intro.md +8 -0
- package/docs/components/table/kinds.md +18 -0
- package/docs/components/table/striped.md +28 -0
- package/docs/components/table/subtle.md +26 -0
- package/docs/components/table/usage.md +30 -0
- package/docs/components/table/variants.md +23 -0
- package/docs/components/tabs/_meta.yaml +10 -0
- package/docs/components/tabs/accessibility.md +6 -0
- package/docs/components/tabs/custom-colors.md +23 -0
- package/docs/components/tabs/icons.md +23 -0
- package/docs/components/tabs/intro.md +8 -0
- package/docs/components/tabs/kinds.md +30 -0
- package/docs/components/tabs/usage.md +38 -0
- package/docs/components/tabs/vertical.md +23 -0
- package/docs/components/tag/_meta.yaml +11 -0
- package/docs/components/tag/accessibility.md +6 -0
- package/docs/components/tag/custom-colors.md +32 -0
- package/docs/components/tag/intro.md +8 -0
- package/docs/components/tag/kinds.md +16 -0
- package/docs/components/tag/removable.md +33 -0
- package/docs/components/tag/sizes.md +13 -0
- package/docs/components/tag/usage.md +13 -0
- package/docs/components/tag/variants.md +13 -0
- package/docs/components/tags-input/_meta.yaml +13 -0
- package/docs/components/tags-input/color-kinds.md +17 -0
- package/docs/components/tags-input/custom-colors.md +21 -0
- package/docs/components/tags-input/form-example.md +30 -0
- package/docs/components/tags-input/intro.md +8 -0
- package/docs/components/tags-input/kinds.md +16 -0
- package/docs/components/tags-input/max-tags.md +10 -0
- package/docs/components/tags-input/sizes.md +13 -0
- package/docs/components/tags-input/states.md +10 -0
- package/docs/components/tags-input/tag-customization.md +17 -0
- package/docs/components/tags-input/usage.md +17 -0
- package/docs/components/textarea/_meta.yaml +12 -0
- package/docs/components/textarea/color-kinds.md +17 -0
- package/docs/components/textarea/custom-colors.md +21 -0
- package/docs/components/textarea/form-example.md +37 -0
- package/docs/components/textarea/intro.md +8 -0
- package/docs/components/textarea/kinds.md +16 -0
- package/docs/components/textarea/rows.md +12 -0
- package/docs/components/textarea/sizes.md +13 -0
- package/docs/components/textarea/states.md +12 -0
- package/docs/components/textarea/usage.md +17 -0
- package/docs/components/theme/_meta.yaml +9 -0
- package/docs/components/theme/available-themes.md +16 -0
- package/docs/components/theme/intro.md +8 -0
- package/docs/components/theme/nested-themes.md +16 -0
- package/docs/components/theme/portal-components.md +19 -0
- package/docs/components/theme/programmatic-switching.md +19 -0
- package/docs/components/theme/usage.md +16 -0
- package/docs/components/toast/_meta.yaml +11 -0
- package/docs/components/toast/dismiss.md +15 -0
- package/docs/components/toast/duration.md +23 -0
- package/docs/components/toast/intro.md +8 -0
- package/docs/components/toast/kinds.md +13 -0
- package/docs/components/toast/real-world.md +23 -0
- package/docs/components/toast/setup.md +16 -0
- package/docs/components/toast/usage.md +18 -0
- package/docs/components/toast/with-title.md +14 -0
- package/docs/components/tooltip/_meta.yaml +14 -0
- package/docs/components/tooltip/alignment.md +24 -0
- package/docs/components/tooltip/app-level-provider.md +21 -0
- package/docs/components/tooltip/arrow.md +21 -0
- package/docs/components/tooltip/custom-colors.md +24 -0
- package/docs/components/tooltip/delay.md +27 -0
- package/docs/components/tooltip/intro.md +8 -0
- package/docs/components/tooltip/kinds.md +27 -0
- package/docs/components/tooltip/positioning.md +24 -0
- package/docs/components/tooltip/provider.md +26 -0
- package/docs/components/tooltip/real-world.md +32 -0
- package/docs/components/tooltip/usage.md +15 -0
- package/docs/guides/ai-llms.md +63 -0
- package/docs/guides/design-tokens/_meta.yaml +14 -0
- package/docs/guides/design-tokens/advanced.md +60 -0
- package/docs/guides/design-tokens/architecture.md +11 -0
- package/docs/guides/design-tokens/best-practices.md +21 -0
- package/docs/guides/design-tokens/component-tokens.md +37 -0
- package/docs/guides/design-tokens/foundation-colors.md +13 -0
- package/docs/guides/design-tokens/foundation-other.md +41 -0
- package/docs/guides/design-tokens/intro.md +19 -0
- package/docs/guides/design-tokens/semantic-kinds.md +33 -0
- package/docs/guides/design-tokens/semantic-states.md +55 -0
- package/docs/guides/design-tokens/themes.md +38 -0
- package/docs/guides/design-tokens/usage.md +55 -0
- package/package.json +3 -5
- package/src/components/Accordion/SkAccordion.vue +51 -37
- package/src/components/Accordion/SkAccordionItem.vue +40 -20
- package/src/components/Alert/SkAlert.vue +37 -27
- package/src/components/Avatar/SkAvatar.vue +69 -10
- package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +63 -1
- package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +32 -3
- package/src/components/Breadcrumbs/SkBreadcrumbs.vue +36 -0
- package/src/components/Button/SkButton.vue +83 -17
- package/src/components/Card/SkCard.vue +84 -17
- package/src/components/Checkbox/SkCheckbox.vue +52 -12
- package/src/components/Collapsible/SkCollapsible.vue +65 -27
- package/src/components/Divider/SkDivider.vue +51 -11
- package/src/components/Dropdown/SkDropdown.vue +54 -11
- package/src/components/Dropdown/SkDropdownMenuItem.vue +25 -6
- package/src/components/Dropdown/SkDropdownMenuSeparator.vue +16 -2
- package/src/components/Dropdown/SkDropdownSubmenu.vue +30 -8
- package/src/components/Field/SkField.vue +83 -15
- package/src/components/Group/SkGroup.vue +24 -9
- package/src/components/Input/SkInput.vue +77 -15
- package/src/components/Listbox/SkListbox.vue +48 -10
- package/src/components/Listbox/SkListboxItem.vue +28 -7
- package/src/components/Listbox/SkListboxSeparator.vue +16 -2
- package/src/components/Modal/SkModal.vue +85 -36
- package/src/components/NavBar/SkNavBar.vue +39 -9
- package/src/components/NumberInput/SkNumberInput.vue +85 -16
- package/src/components/Page/SkPage.vue +55 -6
- package/src/components/Pagination/SkPagination.vue +88 -0
- package/src/components/Pagination/SkPaginationItem.vue +51 -1
- package/src/components/Panel/SkPanel.vue +46 -12
- package/src/components/Popover/SkPopover.vue +91 -36
- package/src/components/Progress/SkProgress.vue +74 -10
- package/src/components/Radio/SkRadio.vue +48 -12
- package/src/components/Radio/SkRadioGroup.vue +69 -13
- package/src/components/Sidebar/SkSidebar.vue +36 -29
- package/src/components/Sidebar/SkSidebarItem.vue +34 -9
- package/src/components/Sidebar/SkSidebarSection.vue +22 -8
- package/src/components/Skeleton/SkSkeleton.vue +75 -8
- package/src/components/Slider/SkSlider.vue +91 -15
- package/src/components/Spinner/SkSpinner.vue +50 -6
- package/src/components/Switch/SkSwitch.vue +98 -35
- package/src/components/Table/SkTable.vue +79 -15
- package/src/components/Tabs/SkTab.vue +41 -11
- package/src/components/Tabs/SkTabList.vue +24 -8
- package/src/components/Tabs/SkTabPanel.vue +31 -9
- package/src/components/Tabs/SkTabPanels.vue +21 -4
- package/src/components/Tabs/SkTabs.vue +49 -37
- package/src/components/Tag/SkTag.vue +57 -32
- package/src/components/TagsInput/SkTagsInput.vue +75 -14
- package/src/components/Textarea/SkTextarea.vue +78 -15
- package/src/components/Theme/SkTheme.vue +27 -3
- package/src/components/Theme/types.ts +14 -5
- package/src/components/Toast/SkToast.vue +56 -9
- package/src/components/Toast/SkToastProvider.vue +43 -17
- package/src/components/Tooltip/SkTooltip.vue +66 -35
- package/src/components/Tooltip/SkTooltipProvider.vue +36 -36
- package/src/composables/usePortalContext.test.ts +2 -0
- package/src/styles/components/_alert.scss +0 -22
- package/web-types.json +302 -282
- package/docs/components/accordion.md +0 -92
- package/docs/components/alert.md +0 -72
- package/docs/components/avatar.md +0 -69
- package/docs/components/breadcrumbs.md +0 -65
- package/docs/components/button.md +0 -110
- package/docs/components/card.md +0 -87
- package/docs/components/checkbox.md +0 -77
- package/docs/components/collapsible.md +0 -71
- package/docs/components/divider.md +0 -62
- package/docs/components/dropdown.md +0 -88
- package/docs/components/field.md +0 -80
- package/docs/components/group.md +0 -41
- package/docs/components/input.md +0 -84
- package/docs/components/listbox.md +0 -82
- package/docs/components/modal.md +0 -101
- package/docs/components/navbar.md +0 -64
- package/docs/components/number-input.md +0 -78
- package/docs/components/page.md +0 -77
- package/docs/components/pagination.md +0 -88
- package/docs/components/panel.md +0 -74
- package/docs/components/popover.md +0 -93
- package/docs/components/progress.md +0 -76
- package/docs/components/radio.md +0 -86
- package/docs/components/sidebar.md +0 -74
- package/docs/components/skeleton.md +0 -76
- package/docs/components/slider.md +0 -94
- package/docs/components/spinner.md +0 -59
- package/docs/components/switch.md +0 -97
- package/docs/components/table.md +0 -91
- package/docs/components/tabs.md +0 -108
- package/docs/components/tag.md +0 -75
- package/docs/components/tags-input.md +0 -88
- package/docs/components/textarea.md +0 -80
- package/docs/components/theme.md +0 -65
- package/docs/components/toast.md +0 -95
- package/docs/components/tooltip.md +0 -90
- package/docs/guides/design-tokens.md +0 -105
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ComponentCustomColors } from '../../types';
|
|
2
|
+
import { SkSwitchKind, SkSwitchSize } from './types';
|
|
3
|
+
export interface SkSwitchComponentProps extends ComponentCustomColors {
|
|
4
|
+
/**
|
|
5
|
+
* The current state of the switch. `true` means on (checked), `false` means off (unchecked).
|
|
6
|
+
* Use with `v-model` for two-way binding. Required prop that must be explicitly provided.
|
|
7
|
+
*/
|
|
8
|
+
modelValue: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Static label text displayed next to the switch. When `labelOn` or `labelOff` are not
|
|
11
|
+
* provided, this label remains constant regardless of switch state. Can be overridden
|
|
12
|
+
* by the default slot for custom label content.
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Label text displayed when the switch is in the "on" (true) state. When provided along
|
|
18
|
+
* with `labelOff`, the label animates between the two values as the switch toggles.
|
|
19
|
+
* Falls back to `label` prop if not provided.
|
|
20
|
+
* @default undefined
|
|
21
|
+
*/
|
|
22
|
+
labelOn?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Label text displayed when the switch is in the "off" (false) state. When provided along
|
|
25
|
+
* with `labelOn`, the label animates between the two values as the switch toggles.
|
|
26
|
+
* Falls back to `label` prop if not provided.
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
labelOff?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Semantic color kind for the switch track (background). Controls the color when the
|
|
32
|
+
* switch is in the "on" state. The "off" state uses a neutral muted color by default.
|
|
33
|
+
* @default 'neutral'
|
|
34
|
+
*/
|
|
35
|
+
kind?: SkSwitchKind;
|
|
36
|
+
/**
|
|
37
|
+
* Semantic color kind for the switch thumb (the sliding circle). When provided, overrides
|
|
38
|
+
* the default thumb color derived from the main `kind`. Use for two-tone switch designs
|
|
39
|
+
* where the thumb should be a different color than the track.
|
|
40
|
+
* @default undefined
|
|
41
|
+
*/
|
|
42
|
+
thumbKind?: SkSwitchKind;
|
|
43
|
+
/**
|
|
44
|
+
* Switch size controlling the track dimensions, thumb size, and label text size.
|
|
45
|
+
* Available sizes: 'sm' (small), 'md' (medium, default), 'lg' (large), 'xl' (extra large).
|
|
46
|
+
* @default 'md'
|
|
47
|
+
*/
|
|
48
|
+
size?: SkSwitchSize;
|
|
49
|
+
/**
|
|
50
|
+
* When true, disables the switch preventing all user interaction. The switch appears
|
|
51
|
+
* with reduced opacity and the cursor changes to not-allowed. Disabled switches are
|
|
52
|
+
* excluded from form submission.
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* When true, disables the fade animation when switching between `labelOn` and `labelOff`
|
|
58
|
+
* labels. The label will change instantly instead of cross-fading. Has no effect if
|
|
59
|
+
* only a static `label` is provided.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
disableLabelAnimation?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The form field name used when submitting the switch value. When the switch is on,
|
|
65
|
+
* the `value` prop is submitted under this name. When off, nothing is submitted
|
|
66
|
+
* (standard checkbox behavior).
|
|
67
|
+
* @default undefined
|
|
68
|
+
*/
|
|
69
|
+
name?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The value submitted with the form when the switch is on. Combined with the `name`
|
|
72
|
+
* prop for form submission. When the switch is off, this value is not submitted.
|
|
73
|
+
* @default 'on'
|
|
74
|
+
*/
|
|
75
|
+
value?: string;
|
|
76
|
+
/**
|
|
77
|
+
* When true, marks the switch as required for form validation. The browser will prevent
|
|
78
|
+
* form submission if the switch is not in the "on" state. Use for mandatory agreements
|
|
79
|
+
* or confirmations.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
required?: boolean;
|
|
83
|
+
}
|
|
84
|
+
declare function __VLS_template(): {
|
|
85
|
+
attrs: Partial<{}>;
|
|
86
|
+
slots: {
|
|
87
|
+
default?(_: {}): any;
|
|
88
|
+
'label-on'?(_: {}): any;
|
|
89
|
+
'label-on'?(_: {}): any;
|
|
90
|
+
'label-off'?(_: {}): any;
|
|
91
|
+
'label-off'?(_: {}): any;
|
|
92
|
+
};
|
|
93
|
+
refs: {};
|
|
94
|
+
rootEl: HTMLDivElement;
|
|
95
|
+
};
|
|
96
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
97
|
+
declare const __VLS_component: import('vue').DefineComponent<SkSwitchComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
+
"update:modelValue": (value: boolean) => any;
|
|
99
|
+
}, string, import('vue').PublicProps, Readonly<SkSwitchComponentProps> & Readonly<{
|
|
100
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
101
|
+
}>, {
|
|
102
|
+
kind: SkSwitchKind;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
value: string;
|
|
105
|
+
size: SkSwitchSize;
|
|
106
|
+
label: string;
|
|
107
|
+
required: boolean;
|
|
108
|
+
name: string;
|
|
109
|
+
labelOn: string;
|
|
110
|
+
labelOff: string;
|
|
111
|
+
thumbKind: SkSwitchKind;
|
|
112
|
+
disableLabelAnimation: boolean;
|
|
113
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
114
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
115
|
+
export default _default;
|
|
116
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
117
|
+
new (): {
|
|
118
|
+
$slots: S;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { SkTableKind, SkTableVariant } from './types';
|
|
2
|
+
import { ComponentCustomColors } from '../../types';
|
|
3
|
+
export interface SkTableComponentProps extends ComponentCustomColors {
|
|
4
|
+
/**
|
|
5
|
+
* Semantic color kind that controls header backgrounds and accent colors. The kind
|
|
6
|
+
* affects the table header row styling and can subtly influence row hover colors.
|
|
7
|
+
* Use semantic kinds to match your application's color language.
|
|
8
|
+
* @default 'neutral'
|
|
9
|
+
*/
|
|
10
|
+
kind?: SkTableKind;
|
|
11
|
+
/**
|
|
12
|
+
* Controls the table's density and spacing. 'default' provides comfortable spacing
|
|
13
|
+
* for most use cases, 'compact' reduces padding for dense data displays, and
|
|
14
|
+
* 'comfortable' increases spacing for enhanced readability.
|
|
15
|
+
* @default 'default'
|
|
16
|
+
*/
|
|
17
|
+
variant?: SkTableVariant;
|
|
18
|
+
/**
|
|
19
|
+
* When true, alternates row background colors (zebra striping) to improve
|
|
20
|
+
* readability of wide tables. The striping color adapts to the table's kind
|
|
21
|
+
* and background context.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
striped?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* When true, rows highlight on mouse hover to help users track which row
|
|
27
|
+
* they're viewing. Particularly useful for tables with many columns where
|
|
28
|
+
* the eye can lose track across the row.
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
hoverable?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* When true, displays a beveled border around the entire table. Disable for
|
|
34
|
+
* a more minimal appearance or when embedding the table in a card that already
|
|
35
|
+
* provides visual containment.
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
bordered?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* When true, shows borders between individual cells and rows. Enable for
|
|
41
|
+
* grid-like data where cell boundaries need clear visual separation. Disable
|
|
42
|
+
* for a cleaner, more modern appearance.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
innerBorders?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* When true, adjusts the table colors for display on dark backgrounds. This
|
|
48
|
+
* ensures proper contrast and visibility when the table is placed on dark
|
|
49
|
+
* surfaces outside of the normal theme context.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
darkBackground?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* When true, uses lighter, more subdued colors for the table styling. Useful
|
|
55
|
+
* when the table should not dominate the visual hierarchy or when displaying
|
|
56
|
+
* secondary data alongside more prominent content.
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
subtle?: boolean;
|
|
60
|
+
}
|
|
61
|
+
declare function __VLS_template(): {
|
|
62
|
+
attrs: Partial<{}>;
|
|
63
|
+
slots: {
|
|
64
|
+
default?(_: {}): any;
|
|
65
|
+
};
|
|
66
|
+
refs: {};
|
|
67
|
+
rootEl: HTMLDivElement;
|
|
68
|
+
};
|
|
69
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
70
|
+
declare const __VLS_component: import('vue').DefineComponent<SkTableComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkTableComponentProps> & Readonly<{}>, {
|
|
71
|
+
subtle: boolean;
|
|
72
|
+
kind: SkTableKind;
|
|
73
|
+
variant: SkTableVariant;
|
|
74
|
+
striped: boolean;
|
|
75
|
+
hoverable: boolean;
|
|
76
|
+
bordered: boolean;
|
|
77
|
+
innerBorders: boolean;
|
|
78
|
+
darkBackground: boolean;
|
|
79
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
80
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
81
|
+
export default _default;
|
|
82
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
83
|
+
new (): {
|
|
84
|
+
$slots: S;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentKind } from '../../types';
|
|
2
|
+
export interface SkTabComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* Unique identifier that links this tab trigger to its corresponding `SkTabPanel`. The `name`
|
|
5
|
+
* must exactly match the `name` prop on the panel you want to display when this tab is active.
|
|
6
|
+
* Can be a string or number for flexibility with dynamic tab generation.
|
|
7
|
+
*/
|
|
8
|
+
name: string | number;
|
|
9
|
+
/**
|
|
10
|
+
* Text label displayed in the tab button. Can be overridden by the default slot for custom
|
|
11
|
+
* content like icons with text or formatted labels.
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* When true, the tab cannot be clicked or focused via keyboard. Disabled tabs are skipped
|
|
16
|
+
* during arrow key navigation and appear with reduced opacity.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Semantic color kind for this specific tab. When provided, overrides the `kind` set on the
|
|
22
|
+
* parent `SkTabs` component. Use this for highlighting important tabs or creating visual
|
|
23
|
+
* hierarchy within a tab bar.
|
|
24
|
+
*/
|
|
25
|
+
kind?: ComponentKind;
|
|
26
|
+
}
|
|
27
|
+
declare function __VLS_template(): {
|
|
28
|
+
attrs: Partial<{}>;
|
|
29
|
+
slots: {
|
|
30
|
+
icon?(_: {}): any;
|
|
31
|
+
default?(_: {}): any;
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
};
|
|
34
|
+
refs: {};
|
|
35
|
+
rootEl: any;
|
|
36
|
+
};
|
|
37
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
38
|
+
declare const __VLS_component: import('vue').DefineComponent<SkTabComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkTabComponentProps> & Readonly<{}>, {
|
|
39
|
+
kind: ComponentKind;
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
label: string;
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SkTabsOrientation } from './types.ts';
|
|
2
|
+
export interface SkTabListComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* Layout orientation for arranging tab triggers. When 'horizontal', tabs appear in a row
|
|
5
|
+
* with left/right arrow key navigation. When 'vertical', tabs stack in a column with
|
|
6
|
+
* up/down arrow key navigation. If not provided, inherits from the parent `SkTabs` component.
|
|
7
|
+
*/
|
|
8
|
+
orientation?: SkTabsOrientation;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<SkTabListComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkTabListComponentProps> & Readonly<{}>, {
|
|
20
|
+
orientation: SkTabsOrientation;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface SkTabPanelComponentProps {
|
|
2
|
+
/**
|
|
3
|
+
* Unique identifier that links this panel to its corresponding `SkTab` trigger. The `name`
|
|
4
|
+
* must exactly match the `name` prop on the tab that should activate this panel.
|
|
5
|
+
*/
|
|
6
|
+
name: string | number;
|
|
7
|
+
/**
|
|
8
|
+
* When true, the panel content remains mounted in the DOM even when the tab is inactive.
|
|
9
|
+
* This is useful for preserving form state, scroll position, or expensive component state
|
|
10
|
+
* that would otherwise be lost when switching tabs. Use sparingly as it increases memory usage.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
keepAlive?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: any;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<SkTabPanelComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkTabPanelComponentProps> & Readonly<{}>, {
|
|
25
|
+
keepAlive: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SkTabsOrientation, SkTabsPlacement } from './types';
|
|
2
|
+
import { ComponentCustomColors, ComponentKind } from '../../types';
|
|
3
|
+
export interface SkTabsComponentProps extends ComponentCustomColors {
|
|
4
|
+
/**
|
|
5
|
+
* The currently active tab identifier, matching the `name` prop of the corresponding `SkTab`
|
|
6
|
+
* and `SkTabPanel`. Use with `v-model` for two-way binding to control which tab is displayed.
|
|
7
|
+
*/
|
|
8
|
+
modelValue: string | number;
|
|
9
|
+
/**
|
|
10
|
+
* Layout orientation for the tab list. In 'horizontal' mode, tabs are arranged in a row and
|
|
11
|
+
* arrow keys navigate left/right. In 'vertical' mode, tabs stack vertically and arrow keys
|
|
12
|
+
* navigate up/down.
|
|
13
|
+
* @default 'horizontal'
|
|
14
|
+
*/
|
|
15
|
+
orientation?: SkTabsOrientation;
|
|
16
|
+
/**
|
|
17
|
+
* Alignment of the tab list within its container. 'start' aligns tabs to the left (horizontal)
|
|
18
|
+
* or top (vertical), 'end' aligns to the opposite side. Useful for positioning tabs in
|
|
19
|
+
* different layout contexts.
|
|
20
|
+
* @default 'start'
|
|
21
|
+
*/
|
|
22
|
+
placement?: SkTabsPlacement;
|
|
23
|
+
/**
|
|
24
|
+
* Semantic color kind applied to all tabs in this group. Individual `SkTab` components can
|
|
25
|
+
* override this with their own `kind` prop for mixed-color tab bars.
|
|
26
|
+
*/
|
|
27
|
+
kind?: ComponentKind;
|
|
28
|
+
/**
|
|
29
|
+
* When true, applies negative margins to align the tab list flush with the parent container's
|
|
30
|
+
* edges. Useful when the parent has padding but you want tabs to extend edge-to-edge.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
flush?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare function __VLS_template(): {
|
|
36
|
+
attrs: Partial<{}>;
|
|
37
|
+
slots: {
|
|
38
|
+
default?(_: {}): any;
|
|
39
|
+
};
|
|
40
|
+
refs: {};
|
|
41
|
+
rootEl: any;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
+
declare const __VLS_component: import('vue').DefineComponent<SkTabsComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
"update:modelValue": (value: string | number) => any;
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<SkTabsComponentProps> & Readonly<{
|
|
47
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
kind: ComponentKind;
|
|
50
|
+
orientation: SkTabsOrientation;
|
|
51
|
+
placement: SkTabsPlacement;
|
|
52
|
+
flush: boolean;
|
|
53
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SkButtonKind, SkButtonSize, SkButtonVariant } from '../Button/types';
|
|
2
|
+
export type SkTabsVariant = 'underline' | 'buttons';
|
|
3
|
+
export type SkTabsOrientation = 'horizontal' | 'vertical';
|
|
4
|
+
export type SkTabsPlacement = 'start' | 'end';
|
|
5
|
+
export type { SkButtonKind, SkButtonVariant, SkButtonSize };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentCustomColors, ComponentKind } from '../../types';
|
|
2
|
+
import { SkTagSize, SkTagVariant } from './types';
|
|
3
|
+
export interface SkTagComponentProps extends ComponentCustomColors {
|
|
4
|
+
/**
|
|
5
|
+
* Semantic color kind that controls the tag's color scheme. The kind determines both
|
|
6
|
+
* background and text colors across all variants. Use semantic kinds (primary, success,
|
|
7
|
+
* danger, etc.) to convey meaning, or use accent for decorative highlighting.
|
|
8
|
+
* @default 'neutral'
|
|
9
|
+
*/
|
|
10
|
+
kind?: ComponentKind;
|
|
11
|
+
/**
|
|
12
|
+
* Visual variant that controls how the tag is rendered. Choose based on visual hierarchy:
|
|
13
|
+
* 'solid' for maximum emphasis with filled background, 'outline' for medium emphasis with
|
|
14
|
+
* a border, 'subtle' for low emphasis with a tinted background, 'ghost' for minimal
|
|
15
|
+
* presence with just text color.
|
|
16
|
+
* @default 'solid'
|
|
17
|
+
*/
|
|
18
|
+
variant?: SkTagVariant;
|
|
19
|
+
/**
|
|
20
|
+
* Controls the tag dimensions including padding, font size, and remove button size.
|
|
21
|
+
* Available sizes: 'sm' (compact), 'md' (default), 'lg' (prominent), 'xl' (maximum).
|
|
22
|
+
* @default 'md'
|
|
23
|
+
*/
|
|
24
|
+
size?: SkTagSize;
|
|
25
|
+
/**
|
|
26
|
+
* When true, displays a small X button on the right side of the tag that emits a
|
|
27
|
+
* 'remove' event when clicked. Useful for filter chips, multi-select displays, or
|
|
28
|
+
* any tags that can be dismissed by the user.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
removable?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare function __VLS_template(): {
|
|
34
|
+
attrs: Partial<{}>;
|
|
35
|
+
slots: {
|
|
36
|
+
default?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
refs: {};
|
|
39
|
+
rootEl: HTMLSpanElement;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
+
declare const __VLS_component: import('vue').DefineComponent<SkTagComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
remove: () => any;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<SkTagComponentProps> & Readonly<{
|
|
45
|
+
onRemove?: (() => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
kind: ComponentKind;
|
|
48
|
+
size: SkTagSize;
|
|
49
|
+
variant: SkTagVariant;
|
|
50
|
+
removable: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
52
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ComponentCustomColors } from '../../types';
|
|
2
|
+
import { SkTagsInputKind, SkTagsInputSize } from './types';
|
|
3
|
+
export interface SkTagsInputComponentProps extends ComponentCustomColors {
|
|
4
|
+
/**
|
|
5
|
+
* Semantic color kind that controls the input border and focus ring appearance.
|
|
6
|
+
* Also sets the default color for tags unless overridden by `tagKind`. When used
|
|
7
|
+
* inside SkField, inherits the field's kind if not explicitly set.
|
|
8
|
+
* @default 'neutral' (or inherited from parent SkField)
|
|
9
|
+
*/
|
|
10
|
+
kind?: SkTagsInputKind;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the input field and tags. Controls the input height, tag size, and
|
|
13
|
+
* text sizing throughout the component. Available sizes: 'sm' (small),
|
|
14
|
+
* 'md' (medium), 'lg' (large).
|
|
15
|
+
* @default 'md'
|
|
16
|
+
*/
|
|
17
|
+
size?: SkTagsInputSize;
|
|
18
|
+
/**
|
|
19
|
+
* Placeholder text displayed in the input field when no text is being typed.
|
|
20
|
+
* Visible even when tags are present. Use to guide users on what type of
|
|
21
|
+
* values to enter.
|
|
22
|
+
* @default 'Add tag...'
|
|
23
|
+
*/
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
/**
|
|
26
|
+
* When true, the input is disabled and no tags can be added or removed.
|
|
27
|
+
* Existing tags remain visible but the delete buttons are non-functional.
|
|
28
|
+
* The entire component appears with reduced opacity.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Maximum number of tags allowed. When the limit is reached, the input field
|
|
34
|
+
* is disabled (preventing new tags) but existing tags can still be removed.
|
|
35
|
+
* Useful for limiting selections in constrained contexts like form fields.
|
|
36
|
+
*/
|
|
37
|
+
max?: number;
|
|
38
|
+
/**
|
|
39
|
+
* When true, pasting text containing separators (commas, semicolons, newlines)
|
|
40
|
+
* automatically creates multiple tags. When false, pasted text is inserted as
|
|
41
|
+
* a single value in the input field.
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
addOnPaste?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Semantic color kind specifically for the tag badges. When not set, inherits
|
|
47
|
+
* from the `kind` prop. Use to differentiate tag appearance from the input
|
|
48
|
+
* styling, such as colorful tags in a neutral-bordered input.
|
|
49
|
+
*/
|
|
50
|
+
tagKind?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Visual variant for the tag badges. 'solid' renders filled tags with colored
|
|
53
|
+
* background, 'outline' shows bordered tags with transparent background, and
|
|
54
|
+
* 'ghost' provides subtle tags with minimal styling.
|
|
55
|
+
* @default 'solid'
|
|
56
|
+
*/
|
|
57
|
+
tagVariant?: 'solid' | 'outline' | 'ghost';
|
|
58
|
+
}
|
|
59
|
+
type __VLS_Props = SkTagsInputComponentProps;
|
|
60
|
+
type __VLS_PublicProps = {
|
|
61
|
+
modelValue?: string[];
|
|
62
|
+
} & __VLS_Props;
|
|
63
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
"update:modelValue": (value: string[]) => any;
|
|
65
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
66
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
kind: SkTagsInputKind;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
size: SkTagsInputSize;
|
|
71
|
+
placeholder: string;
|
|
72
|
+
max: number;
|
|
73
|
+
addOnPaste: boolean;
|
|
74
|
+
tagKind: string;
|
|
75
|
+
tagVariant: "solid" | "outline" | "ghost";
|
|
76
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ComponentCustomColors } from '../../types';
|
|
2
|
+
import { SkTextareaKind, SkTextareaSize } from './types';
|
|
3
|
+
export interface SkTextareaComponentProps extends ComponentCustomColors {
|
|
4
|
+
/**
|
|
5
|
+
* Semantic color kind for the textarea border and focus ring. Use semantic kinds like
|
|
6
|
+
* 'success' or 'danger' to indicate validation states. When used inside an SkField with
|
|
7
|
+
* a `state` prop, the field's kind automatically overrides this value.
|
|
8
|
+
* @default 'neutral'
|
|
9
|
+
*/
|
|
10
|
+
kind?: SkTextareaKind;
|
|
11
|
+
/**
|
|
12
|
+
* Textarea size controlling padding and font size. The height is primarily controlled
|
|
13
|
+
* by the `rows` prop. Available sizes: 'sm' (small), 'md' (medium, default), 'lg' (large),
|
|
14
|
+
* 'xl' (extra large).
|
|
15
|
+
* @default 'md'
|
|
16
|
+
*/
|
|
17
|
+
size?: SkTextareaSize;
|
|
18
|
+
/**
|
|
19
|
+
* Placeholder text displayed when the textarea is empty. Use to provide hints about
|
|
20
|
+
* expected content or formatting. The placeholder disappears when the user begins typing.
|
|
21
|
+
* @default undefined
|
|
22
|
+
*/
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
/**
|
|
25
|
+
* When true, disables the textarea preventing all user interaction. The textarea appears
|
|
26
|
+
* with reduced opacity and the cursor changes to not-allowed. Disabled textareas are
|
|
27
|
+
* excluded from form submission.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* When true, makes the textarea read-only. The user can select and copy text but cannot
|
|
33
|
+
* modify it. Unlike disabled, read-only textareas are still included in form submission
|
|
34
|
+
* and maintain normal visual appearance.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
readonly?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* When true, marks the textarea as required for form validation. The browser will prevent
|
|
40
|
+
* form submission if the textarea is empty. For visual required indicators, wrap the
|
|
41
|
+
* textarea in an SkField component with `required` prop.
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
required?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The form field name used when submitting the textarea value. Required for native form
|
|
47
|
+
* submission and useful for form libraries that track fields by name.
|
|
48
|
+
* @default undefined
|
|
49
|
+
*/
|
|
50
|
+
name?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The number of visible text lines (rows) for the textarea. This sets the initial height
|
|
53
|
+
* of the textarea. Users can still resize it vertically if the CSS allows. Use more rows
|
|
54
|
+
* for content that typically requires more space (e.g., descriptions, messages).
|
|
55
|
+
* @default 4
|
|
56
|
+
*/
|
|
57
|
+
rows?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Autocomplete hint for the browser's autofill feature. For textareas, common values
|
|
60
|
+
* include 'off' to disable autofill, or 'street-address' for address fields. Most
|
|
61
|
+
* other autocomplete values are more relevant for single-line inputs.
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
64
|
+
autocomplete?: string;
|
|
65
|
+
}
|
|
66
|
+
type __VLS_Props = SkTextareaComponentProps;
|
|
67
|
+
type __VLS_PublicProps = {
|
|
68
|
+
modelValue?: string;
|
|
69
|
+
} & __VLS_Props;
|
|
70
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
71
|
+
"update:modelValue": (value: string) => any;
|
|
72
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
73
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
74
|
+
}>, {
|
|
75
|
+
kind: SkTextareaKind;
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
size: SkTextareaSize;
|
|
78
|
+
placeholder: string;
|
|
79
|
+
required: boolean;
|
|
80
|
+
name: string;
|
|
81
|
+
readonly: boolean;
|
|
82
|
+
autocomplete: string;
|
|
83
|
+
rows: number;
|
|
84
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTextAreaElement>;
|
|
85
|
+
export default _default;
|