@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
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkSpinner
|
|
3
|
-
category: Feedback
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkSpinner
|
|
7
|
-
|
|
8
|
-
An animated loading indicator with three cyberpunk-themed animation variants. Use to communicate ongoing processing or loading.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<template>
|
|
14
|
-
<SkSpinner kind="primary" />
|
|
15
|
-
</template>
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Variants
|
|
19
|
-
|
|
20
|
-
- **circular** (default) -- Dual rotating arc animation.
|
|
21
|
-
- **dots** -- Three bouncing dots.
|
|
22
|
-
- **crosshair** -- A rotating crosshair targeting animation.
|
|
23
|
-
|
|
24
|
-
```vue
|
|
25
|
-
<SkSpinner variant="circular" />
|
|
26
|
-
<SkSpinner variant="dots" />
|
|
27
|
-
<SkSpinner variant="crosshair" />
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Kinds
|
|
31
|
-
|
|
32
|
-
```vue
|
|
33
|
-
<SkSpinner kind="primary" />
|
|
34
|
-
<SkSpinner kind="accent" />
|
|
35
|
-
<SkSpinner kind="success" />
|
|
36
|
-
<SkSpinner kind="danger" />
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Sizes
|
|
40
|
-
|
|
41
|
-
```vue
|
|
42
|
-
<SkSpinner size="xs" />
|
|
43
|
-
<SkSpinner size="sm" />
|
|
44
|
-
<SkSpinner size="md" />
|
|
45
|
-
<SkSpinner size="lg" />
|
|
46
|
-
<SkSpinner size="xl" />
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Custom Color
|
|
50
|
-
|
|
51
|
-
Use the `color` prop (not `baseColor`) for a custom spinner color:
|
|
52
|
-
|
|
53
|
-
```vue
|
|
54
|
-
<SkSpinner color="oklch(0.7 0.25 300)" />
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Accessibility
|
|
58
|
-
|
|
59
|
-
Renders with `role="status"`, `aria-live="polite"`, and `aria-label="Loading"`. Screen readers will announce the loading state.
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkSwitch
|
|
3
|
-
category: Forms
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkSwitch
|
|
7
|
-
|
|
8
|
-
A toggle switch component for binary on/off choices. Supports dynamic labels that change with state and flexible thumb styling. Built on RekaUI's Switch primitive.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<script setup>
|
|
14
|
-
import { ref } from 'vue';
|
|
15
|
-
|
|
16
|
-
const enabled = ref(false);
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<SkSwitch v-model="enabled" label="Enable notifications" kind="primary" />
|
|
21
|
-
</template>
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Dynamic Labels
|
|
25
|
-
|
|
26
|
-
Use `label-on` and `label-off` for labels that change based on the toggle state with a fade animation:
|
|
27
|
-
|
|
28
|
-
```vue
|
|
29
|
-
<SkSwitch
|
|
30
|
-
v-model="enabled"
|
|
31
|
-
label-on="Enabled"
|
|
32
|
-
label-off="Disabled"
|
|
33
|
-
kind="success"
|
|
34
|
-
/>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Disable the fade animation with `disable-label-animation`.
|
|
38
|
-
|
|
39
|
-
## Slots
|
|
40
|
-
|
|
41
|
-
- **default** -- Custom label content (overrides all label props).
|
|
42
|
-
- **label-on** -- Custom content shown when the switch is on.
|
|
43
|
-
- **label-off** -- Custom content shown when the switch is off.
|
|
44
|
-
|
|
45
|
-
```vue
|
|
46
|
-
<SkSwitch v-model="premium">
|
|
47
|
-
<template #label-on>
|
|
48
|
-
<SkTag kind="success" size="sm">Active</SkTag>
|
|
49
|
-
</template>
|
|
50
|
-
<template #label-off>
|
|
51
|
-
<SkTag kind="neutral" size="sm">Inactive</SkTag>
|
|
52
|
-
</template>
|
|
53
|
-
</SkSwitch>
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Kinds
|
|
57
|
-
|
|
58
|
-
```vue
|
|
59
|
-
<SkSwitch v-model="val" kind="primary" label="Primary" />
|
|
60
|
-
<SkSwitch v-model="val" kind="accent" label="Accent" />
|
|
61
|
-
<SkSwitch v-model="val" kind="success" label="Success" />
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
The `thumbKind` prop overrides the thumb color independently from the track:
|
|
65
|
-
|
|
66
|
-
```vue
|
|
67
|
-
<SkSwitch v-model="val" kind="neutral" thumb-kind="primary" label="Custom Thumb" />
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## Sizes
|
|
71
|
-
|
|
72
|
-
```vue
|
|
73
|
-
<SkSwitch v-model="val" size="sm" label="Small" />
|
|
74
|
-
<SkSwitch v-model="val" size="md" label="Medium" />
|
|
75
|
-
<SkSwitch v-model="val" size="lg" label="Large" />
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## States
|
|
79
|
-
|
|
80
|
-
```vue
|
|
81
|
-
<SkSwitch v-model="val" disabled label="Disabled" />
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## Custom Colors
|
|
85
|
-
|
|
86
|
-
```vue
|
|
87
|
-
<SkSwitch
|
|
88
|
-
v-model="val"
|
|
89
|
-
base-color="oklch(0.7 0.25 45)"
|
|
90
|
-
text-color="white"
|
|
91
|
-
label="Custom Orange"
|
|
92
|
-
/>
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Accessibility
|
|
96
|
-
|
|
97
|
-
Built on RekaUI Switch which provides `role="switch"` and `aria-checked`. The label is associated via a wrapping `<label>` element. Space key toggles the state.
|
package/docs/components/table.md
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkTable
|
|
3
|
-
category: Feedback
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkTable
|
|
7
|
-
|
|
8
|
-
A styled HTML table component with striped rows, hover effects, and configurable borders. Wraps standard `<table>` markup with consistent theming.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<template>
|
|
14
|
-
<SkTable kind="neutral" striped hoverable>
|
|
15
|
-
<thead>
|
|
16
|
-
<tr>
|
|
17
|
-
<th>Name</th>
|
|
18
|
-
<th>Status</th>
|
|
19
|
-
<th>Role</th>
|
|
20
|
-
</tr>
|
|
21
|
-
</thead>
|
|
22
|
-
<tbody>
|
|
23
|
-
<tr>
|
|
24
|
-
<td>Alice</td>
|
|
25
|
-
<td>Active</td>
|
|
26
|
-
<td>Admin</td>
|
|
27
|
-
</tr>
|
|
28
|
-
<tr>
|
|
29
|
-
<td>Bob</td>
|
|
30
|
-
<td>Inactive</td>
|
|
31
|
-
<td>User</td>
|
|
32
|
-
</tr>
|
|
33
|
-
</tbody>
|
|
34
|
-
</SkTable>
|
|
35
|
-
</template>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Variants
|
|
39
|
-
|
|
40
|
-
- **default** -- Standard spacing.
|
|
41
|
-
- **compact** -- Reduced cell padding.
|
|
42
|
-
- **comfortable** -- Increased cell padding.
|
|
43
|
-
|
|
44
|
-
```vue
|
|
45
|
-
<SkTable variant="compact">...</SkTable>
|
|
46
|
-
<SkTable variant="comfortable">...</SkTable>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Features
|
|
50
|
-
|
|
51
|
-
```vue
|
|
52
|
-
<!-- Alternating row colors -->
|
|
53
|
-
<SkTable striped>...</SkTable>
|
|
54
|
-
|
|
55
|
-
<!-- Row hover highlight -->
|
|
56
|
-
<SkTable hoverable>...</SkTable>
|
|
57
|
-
|
|
58
|
-
<!-- Outer border -->
|
|
59
|
-
<SkTable bordered>...</SkTable>
|
|
60
|
-
|
|
61
|
-
<!-- Cell borders -->
|
|
62
|
-
<SkTable inner-borders>...</SkTable>
|
|
63
|
-
|
|
64
|
-
<!-- Dark background -->
|
|
65
|
-
<SkTable dark-background>...</SkTable>
|
|
66
|
-
|
|
67
|
-
<!-- Subtle styling (lighter) -->
|
|
68
|
-
<SkTable subtle>...</SkTable>
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Kinds
|
|
72
|
-
|
|
73
|
-
```vue
|
|
74
|
-
<SkTable kind="primary">...</SkTable>
|
|
75
|
-
<SkTable kind="accent">...</SkTable>
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Custom Colors
|
|
79
|
-
|
|
80
|
-
```vue
|
|
81
|
-
<SkTable
|
|
82
|
-
base-color="oklch(0.2 0.05 260)"
|
|
83
|
-
text-color="oklch(0.9 0 0)"
|
|
84
|
-
>
|
|
85
|
-
...
|
|
86
|
-
</SkTable>
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## Accessibility
|
|
90
|
-
|
|
91
|
-
SkTable renders as a standard `<table>` element. Use semantic `<thead>`, `<tbody>`, `<th>`, and `<td>` elements. Add `scope="col"` or `scope="row"` to header cells for screen reader clarity.
|
package/docs/components/tabs.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkTabs
|
|
3
|
-
category: Navigation
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkTabs
|
|
7
|
-
|
|
8
|
-
A tabbed interface for organizing content into switchable panels. Composed of SkTabs, SkTabList, SkTab, SkTabPanels, and SkTabPanel. Built on RekaUI's Tabs primitive.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<script setup>
|
|
14
|
-
import { ref } from 'vue';
|
|
15
|
-
|
|
16
|
-
const activeTab = ref('overview');
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<SkTabs v-model="activeTab" kind="primary">
|
|
21
|
-
<SkTabList>
|
|
22
|
-
<SkTab value="overview">Overview</SkTab>
|
|
23
|
-
<SkTab value="details">Details</SkTab>
|
|
24
|
-
<SkTab value="settings">Settings</SkTab>
|
|
25
|
-
</SkTabList>
|
|
26
|
-
<SkTabPanels>
|
|
27
|
-
<SkTabPanel value="overview">Overview content</SkTabPanel>
|
|
28
|
-
<SkTabPanel value="details">Details content</SkTabPanel>
|
|
29
|
-
<SkTabPanel value="settings">Settings content</SkTabPanel>
|
|
30
|
-
</SkTabPanels>
|
|
31
|
-
</SkTabs>
|
|
32
|
-
</template>
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Composition
|
|
36
|
-
|
|
37
|
-
- **SkTabs** -- Root container managing state and providing context.
|
|
38
|
-
- **SkTabList** -- Container for tab triggers (the clickable tab buttons).
|
|
39
|
-
- **SkTab** -- Individual tab trigger. Requires a `value` matching a SkTabPanel.
|
|
40
|
-
- **SkTabPanels** -- Container for tab content panels.
|
|
41
|
-
- **SkTabPanel** -- Content panel shown when its matching tab is active.
|
|
42
|
-
|
|
43
|
-
## Orientation
|
|
44
|
-
|
|
45
|
-
```vue
|
|
46
|
-
<!-- Horizontal (default) -->
|
|
47
|
-
<SkTabs v-model="tab" orientation="horizontal">...</SkTabs>
|
|
48
|
-
|
|
49
|
-
<!-- Vertical -->
|
|
50
|
-
<SkTabs v-model="tab" orientation="vertical">...</SkTabs>
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Placement
|
|
54
|
-
|
|
55
|
-
Controls where the tab list appears relative to the content:
|
|
56
|
-
|
|
57
|
-
```vue
|
|
58
|
-
<SkTabs v-model="tab" placement="start">...</SkTabs>
|
|
59
|
-
<SkTabs v-model="tab" placement="end">...</SkTabs>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Flush Mode
|
|
63
|
-
|
|
64
|
-
Use `flush` to apply negative margins so the tab list aligns with the parent container edges:
|
|
65
|
-
|
|
66
|
-
```vue
|
|
67
|
-
<SkPanel>
|
|
68
|
-
<SkTabs v-model="tab" flush>
|
|
69
|
-
...
|
|
70
|
-
</SkTabs>
|
|
71
|
-
</SkPanel>
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Kinds
|
|
75
|
-
|
|
76
|
-
Set on SkTabs to apply to all tabs, or override per individual tab:
|
|
77
|
-
|
|
78
|
-
```vue
|
|
79
|
-
<SkTabs v-model="tab" kind="accent">
|
|
80
|
-
<SkTabList>
|
|
81
|
-
<SkTab value="a">Inherits Accent</SkTab>
|
|
82
|
-
<SkTab value="b" kind="danger">Override to Danger</SkTab>
|
|
83
|
-
</SkTabList>
|
|
84
|
-
...
|
|
85
|
-
</SkTabs>
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Disabled Tabs
|
|
89
|
-
|
|
90
|
-
```vue
|
|
91
|
-
<SkTab value="locked" disabled>Locked</SkTab>
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Custom Colors
|
|
95
|
-
|
|
96
|
-
```vue
|
|
97
|
-
<SkTabs
|
|
98
|
-
v-model="tab"
|
|
99
|
-
base-color="oklch(0.65 0.2 280)"
|
|
100
|
-
text-color="white"
|
|
101
|
-
>
|
|
102
|
-
...
|
|
103
|
-
</SkTabs>
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Accessibility
|
|
107
|
-
|
|
108
|
-
Built on RekaUI Tabs which provides `role="tablist"`, `role="tab"`, and `role="tabpanel"` with proper `aria-selected`, `aria-controls`, and `aria-labelledby` associations. Arrow keys navigate between tabs, Home/End jump to first/last tab.
|
package/docs/components/tag.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkTag
|
|
3
|
-
category: Feedback
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkTag
|
|
7
|
-
|
|
8
|
-
A compact label component for metadata, categories, status indicators, or keywords. Supports removable tags with a close button.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<template>
|
|
14
|
-
<SkTag kind="primary">Featured</SkTag>
|
|
15
|
-
</template>
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Variants
|
|
19
|
-
|
|
20
|
-
- **solid** (default) -- Filled background.
|
|
21
|
-
- **outline** -- Transparent with colored border.
|
|
22
|
-
- **subtle** -- Light tinted background.
|
|
23
|
-
- **ghost** -- Minimal, text-only appearance.
|
|
24
|
-
|
|
25
|
-
```vue
|
|
26
|
-
<SkTag variant="solid" kind="primary">Solid</SkTag>
|
|
27
|
-
<SkTag variant="outline" kind="primary">Outline</SkTag>
|
|
28
|
-
<SkTag variant="subtle" kind="primary">Subtle</SkTag>
|
|
29
|
-
<SkTag variant="ghost" kind="primary">Ghost</SkTag>
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Kinds
|
|
33
|
-
|
|
34
|
-
```vue
|
|
35
|
-
<SkTag kind="neutral">Neutral</SkTag>
|
|
36
|
-
<SkTag kind="primary">Primary</SkTag>
|
|
37
|
-
<SkTag kind="accent">Accent</SkTag>
|
|
38
|
-
<SkTag kind="success">Active</SkTag>
|
|
39
|
-
<SkTag kind="warning">Pending</SkTag>
|
|
40
|
-
<SkTag kind="danger">Error</SkTag>
|
|
41
|
-
<SkTag kind="info">Info</SkTag>
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Sizes
|
|
45
|
-
|
|
46
|
-
```vue
|
|
47
|
-
<SkTag size="sm">Small</SkTag>
|
|
48
|
-
<SkTag size="md">Medium</SkTag>
|
|
49
|
-
<SkTag size="lg">Large</SkTag>
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Removable
|
|
53
|
-
|
|
54
|
-
Add a close button that emits a `remove` event:
|
|
55
|
-
|
|
56
|
-
```vue
|
|
57
|
-
<SkTag kind="danger" removable @remove="handleRemove">
|
|
58
|
-
Removable Tag
|
|
59
|
-
</SkTag>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Custom Colors
|
|
63
|
-
|
|
64
|
-
```vue
|
|
65
|
-
<SkTag
|
|
66
|
-
base-color="oklch(0.6 0.25 300)"
|
|
67
|
-
text-color="white"
|
|
68
|
-
>
|
|
69
|
-
Custom Purple
|
|
70
|
-
</SkTag>
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Accessibility
|
|
74
|
-
|
|
75
|
-
The remove button is keyboard-accessible. Developers should provide context (such as an `aria-label`) if the tag content alone does not convey its purpose to screen readers.
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkTagsInput
|
|
3
|
-
category: Forms
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkTagsInput
|
|
7
|
-
|
|
8
|
-
A multi-value tag input component for entering a list of string values. Type text and press Enter to add tags; use Backspace or the delete button to remove them. Built on RekaUI's TagsInput primitive.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<script setup>
|
|
14
|
-
import { ref } from 'vue';
|
|
15
|
-
|
|
16
|
-
const tags = ref(['vue', 'typescript']);
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<SkTagsInput v-model="tags" placeholder="Add tag..." kind="primary" />
|
|
21
|
-
</template>
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Max Tags
|
|
25
|
-
|
|
26
|
-
Limit the number of tags. The input field disables when the limit is reached, but existing tags can still be removed:
|
|
27
|
-
|
|
28
|
-
```vue
|
|
29
|
-
<SkTagsInput v-model="tags" :max="5" />
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Paste Support
|
|
33
|
-
|
|
34
|
-
By default, pasting text adds tags (splitting on common delimiters). Disable with:
|
|
35
|
-
|
|
36
|
-
```vue
|
|
37
|
-
<SkTagsInput v-model="tags" :add-on-paste="false" />
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Tag Styling
|
|
41
|
-
|
|
42
|
-
Control the appearance of the tag badges within the input:
|
|
43
|
-
|
|
44
|
-
```vue
|
|
45
|
-
<SkTagsInput
|
|
46
|
-
v-model="tags"
|
|
47
|
-
kind="primary"
|
|
48
|
-
tag-kind="accent"
|
|
49
|
-
tag-variant="outline"
|
|
50
|
-
/>
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Kinds
|
|
54
|
-
|
|
55
|
-
```vue
|
|
56
|
-
<SkTagsInput v-model="tags" kind="primary" />
|
|
57
|
-
<SkTagsInput v-model="tags" kind="accent" />
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
When nested inside SkField, the kind is automatically injected.
|
|
61
|
-
|
|
62
|
-
## Sizes
|
|
63
|
-
|
|
64
|
-
```vue
|
|
65
|
-
<SkTagsInput v-model="tags" size="sm" />
|
|
66
|
-
<SkTagsInput v-model="tags" size="md" />
|
|
67
|
-
<SkTagsInput v-model="tags" size="lg" />
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## States
|
|
71
|
-
|
|
72
|
-
```vue
|
|
73
|
-
<SkTagsInput v-model="tags" disabled />
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Custom Colors
|
|
77
|
-
|
|
78
|
-
```vue
|
|
79
|
-
<SkTagsInput
|
|
80
|
-
v-model="tags"
|
|
81
|
-
base-color="oklch(0.5 0.2 260)"
|
|
82
|
-
text-color="white"
|
|
83
|
-
/>
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Accessibility
|
|
87
|
-
|
|
88
|
-
Built on RekaUI TagsInput which provides keyboard management: Enter adds a tag, Backspace removes the last tag when the input is empty, and Delete buttons on individual tags are keyboard-accessible.
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkTextarea
|
|
3
|
-
category: Forms
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkTextarea
|
|
7
|
-
|
|
8
|
-
A multiline text input component with validation states and semantic color support. Automatically inherits kind from a parent SkField.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<script setup>
|
|
14
|
-
import { ref } from 'vue';
|
|
15
|
-
|
|
16
|
-
const message = ref('');
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<SkTextarea v-model="message" placeholder="Write your message..." :rows="6" />
|
|
21
|
-
</template>
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Rows
|
|
25
|
-
|
|
26
|
-
Control the visible height with the `rows` prop (default: 4):
|
|
27
|
-
|
|
28
|
-
```vue
|
|
29
|
-
<SkTextarea v-model="val" :rows="8" />
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Kinds
|
|
33
|
-
|
|
34
|
-
```vue
|
|
35
|
-
<SkTextarea v-model="val" kind="success" placeholder="Valid" />
|
|
36
|
-
<SkTextarea v-model="val" kind="danger" placeholder="Invalid" />
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
When nested inside SkField, the kind is automatically injected based on field validation state.
|
|
40
|
-
|
|
41
|
-
## Sizes
|
|
42
|
-
|
|
43
|
-
```vue
|
|
44
|
-
<SkTextarea v-model="val" size="sm" />
|
|
45
|
-
<SkTextarea v-model="val" size="md" />
|
|
46
|
-
<SkTextarea v-model="val" size="lg" />
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## States
|
|
50
|
-
|
|
51
|
-
```vue
|
|
52
|
-
<SkTextarea v-model="val" disabled placeholder="Disabled" />
|
|
53
|
-
<SkTextarea v-model="val" readonly />
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Custom Colors
|
|
57
|
-
|
|
58
|
-
```vue
|
|
59
|
-
<SkTextarea
|
|
60
|
-
v-model="val"
|
|
61
|
-
base-color="oklch(0.5 0.15 260)"
|
|
62
|
-
text-color="white"
|
|
63
|
-
/>
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Composition
|
|
67
|
-
|
|
68
|
-
Pair with SkField for labels, descriptions, and error messages:
|
|
69
|
-
|
|
70
|
-
```vue
|
|
71
|
-
<SkField label="Bio" description="Tell us about yourself." :error="bioError">
|
|
72
|
-
<template #default="{ id, ...attrs }">
|
|
73
|
-
<SkTextarea :id="id" v-bind="attrs" v-model="bio" :rows="4" />
|
|
74
|
-
</template>
|
|
75
|
-
</SkField>
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Accessibility
|
|
79
|
-
|
|
80
|
-
Renders as a native `<textarea>` element. All standard HTML attributes are forwarded via `v-bind="$attrs"`. Use SkField to associate labels and error messages via `aria-describedby` and `aria-invalid`.
|
package/docs/components/theme.md
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
component: SkTheme
|
|
3
|
-
category: Theming
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SkTheme
|
|
7
|
-
|
|
8
|
-
A theme provider component that controls the color scheme for all child components. Sets a `data-scheme` attribute that CSS rules use to apply different semantic token values.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```vue
|
|
13
|
-
<template>
|
|
14
|
-
<SkTheme theme="colorful">
|
|
15
|
-
<SkPanel kind="primary">
|
|
16
|
-
<SkButton kind="accent">Themed Button</SkButton>
|
|
17
|
-
</SkPanel>
|
|
18
|
-
</SkTheme>
|
|
19
|
-
</template>
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Available Themes
|
|
23
|
-
|
|
24
|
-
- **greyscale** (default) -- Monochromatic palette.
|
|
25
|
-
- **colorful** -- Vibrant cyberpunk colors.
|
|
26
|
-
|
|
27
|
-
Custom theme names can be used if matching CSS custom property overrides are defined under the corresponding `[data-scheme="..."]` selector.
|
|
28
|
-
|
|
29
|
-
## Nested Themes
|
|
30
|
-
|
|
31
|
-
Themes can be nested. The inner SkTheme overrides the outer one for its subtree:
|
|
32
|
-
|
|
33
|
-
```vue
|
|
34
|
-
<SkTheme theme="greyscale">
|
|
35
|
-
<SkButton kind="primary">Greyscale</SkButton>
|
|
36
|
-
|
|
37
|
-
<SkTheme theme="colorful">
|
|
38
|
-
<SkButton kind="primary">Colorful</SkButton>
|
|
39
|
-
</SkTheme>
|
|
40
|
-
</SkTheme>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Programmatic Switching
|
|
44
|
-
|
|
45
|
-
The `useTheme` composable enables runtime theme changes:
|
|
46
|
-
|
|
47
|
-
```vue
|
|
48
|
-
<script setup>
|
|
49
|
-
import { useTheme } from '@skewedaspect/sleekspace-ui';
|
|
50
|
-
|
|
51
|
-
const { currentTheme, setTheme } = useTheme();
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<template>
|
|
55
|
-
<SkButton @click="setTheme('colorful')">Go Colorful</SkButton>
|
|
56
|
-
</template>
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Portal Components
|
|
60
|
-
|
|
61
|
-
SkTheme provides the current theme value via Vue's provide/inject system. Portal components (SkModal, SkDropdown, SkListbox, SkTooltip, SkPopover, SkToast) automatically consume this value and apply `data-scheme` on their portaled content so they inherit the correct theme.
|
|
62
|
-
|
|
63
|
-
## Accessibility
|
|
64
|
-
|
|
65
|
-
SkTheme is a transparent wrapper that does not affect the DOM semantics. It renders a single `<div>` with a `data-scheme` attribute.
|