@skewedaspect/sleekspace-ui 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{src/components → components}/Accordion/SkAccordion.vue.d.ts +1 -1
- package/dist/{src/components → components}/Accordion/types.d.ts +1 -1
- package/dist/{src/components → components}/Alert/SkAlert.vue.d.ts +1 -1
- package/dist/{src/components → components}/Alert/types.d.ts +1 -1
- package/dist/{src/components → components}/Avatar/SkAvatar.vue.d.ts +1 -1
- package/dist/{src/components → components}/Avatar/types.d.ts +1 -1
- package/dist/{src/components → components}/Breadcrumbs/SkBreadcrumbs.vue.d.ts +2 -2
- package/dist/{src/components → components}/Breadcrumbs/types.d.ts +1 -1
- package/dist/{src/components → components}/Button/SkButton.vue.d.ts +1 -1
- package/dist/{src/components → components}/Button/types.d.ts +1 -1
- package/dist/{src/components → components}/Card/SkCard.vue.d.ts +1 -1
- package/dist/components/Card/types.d.ts +2 -0
- package/dist/{src/components → components}/Checkbox/SkCheckbox.vue.d.ts +1 -1
- package/dist/{src/components → components}/Checkbox/types.d.ts +1 -1
- package/dist/{src/components → components}/Collapsible/SkCollapsible.vue.d.ts +1 -1
- package/dist/components/Collapsible/types.d.ts +2 -0
- package/dist/{src/components → components}/ColorPicker/SkColorPicker.vue.d.ts +1 -1
- package/dist/{src/components → components}/ColorPicker/types.d.ts +1 -1
- package/dist/{src/components → components}/ContextMenu/SkContextMenu.vue.d.ts +1 -1
- package/dist/components/ContextMenu/types.d.ts +2 -0
- package/dist/{src/components → components}/Divider/SkDivider.vue.d.ts +1 -1
- package/dist/{src/components → components}/Dropdown/SkDropdown.vue.d.ts +10 -2
- package/dist/{src/components → components}/Dropdown/types.d.ts +2 -1
- package/dist/{src/components → components}/Input/SkInput.vue.d.ts +1 -1
- package/dist/{src/components → components}/Input/types.d.ts +1 -1
- package/dist/{src/components → components}/Listbox/SkListbox.vue.d.ts +1 -1
- package/dist/{src/components → components}/Listbox/types.d.ts +1 -1
- package/dist/{src/components → components}/Modal/SkModal.vue.d.ts +1 -1
- package/dist/{src/components → components}/Modal/types.d.ts +1 -1
- package/dist/{src/components → components}/NavBar/SkNavBar.vue.d.ts +10 -2
- package/dist/{src/components → components}/NavBar/context.d.ts +2 -0
- package/dist/components/NavBar/types.d.ts +10 -0
- package/dist/{src/components → components}/NumberInput/SkNumberInput.vue.d.ts +1 -1
- package/dist/{src/components → components}/NumberInput/types.d.ts +1 -1
- package/dist/{src/components → components}/Page/SkPage.vue.d.ts +9 -0
- package/dist/{src/components → components}/Pagination/SkPagination.vue.d.ts +3 -3
- package/dist/{src/components → components}/Pagination/types.d.ts +1 -1
- package/dist/{src/components → components}/Panel/SkPanel.vue.d.ts +1 -1
- package/dist/{src/components → components}/Panel/types.d.ts +1 -1
- package/dist/{src/components → components}/Popover/SkPopover.vue.d.ts +1 -1
- package/dist/{src/components → components}/Progress/SkProgress.vue.d.ts +1 -1
- package/dist/{src/components → components}/Progress/types.d.ts +1 -1
- package/dist/{src/components → components}/Radio/SkRadio.vue.d.ts +1 -1
- package/dist/{src/components → components}/Radio/types.d.ts +1 -1
- package/dist/components/ScrollArea/SkScrollArea.vue.d.ts +141 -0
- package/dist/{src/components → components}/ScrollArea/types.d.ts +1 -1
- package/dist/{src/components → components}/Select/SkSelect.vue.d.ts +1 -1
- package/dist/{src/components → components}/Select/types.d.ts +1 -1
- package/dist/{src/components → components}/Sidebar/SkSidebar.vue.d.ts +1 -1
- package/dist/{src/components → components}/Sidebar/types.d.ts +1 -1
- package/dist/{src/components → components}/Slider/SkSlider.vue.d.ts +1 -1
- package/dist/{src/components → components}/Slider/types.d.ts +1 -1
- package/dist/{src/components → components}/Spinner/SkSpinner.vue.d.ts +1 -1
- package/dist/{src/components → components}/Spinner/types.d.ts +1 -1
- package/dist/{src/components → components}/Splitter/types.d.ts +1 -1
- package/dist/{src/components → components}/Switch/SkSwitch.vue.d.ts +1 -1
- package/dist/{src/components → components}/Switch/types.d.ts +1 -1
- package/dist/{src/components → components}/Table/SkTable.vue.d.ts +1 -1
- package/dist/{src/components → components}/Table/types.d.ts +1 -1
- package/dist/{src/components → components}/Tabs/SkTab.vue.d.ts +1 -1
- package/dist/{src/components → components}/Tabs/SkTabs.vue.d.ts +1 -1
- package/dist/{src/components → components}/Tag/SkTag.vue.d.ts +1 -1
- package/dist/{src/components → components}/TagsInput/SkTagsInput.vue.d.ts +1 -1
- package/dist/{src/components → components}/TagsInput/types.d.ts +1 -1
- package/dist/{src/components → components}/Textarea/SkTextarea.vue.d.ts +1 -1
- package/dist/{src/components → components}/Textarea/types.d.ts +1 -1
- package/dist/{src/components → components}/Toolbar/types.d.ts +1 -1
- package/dist/{src/components → components}/Tooltip/SkTooltip.vue.d.ts +1 -1
- package/dist/{src/components → components}/Tooltip/types.d.ts +1 -1
- package/dist/{src/components → components}/TreeView/types.d.ts +1 -1
- package/dist/composables/useCustomColors.d.ts +36 -0
- package/{src → dist}/global.d.ts +6 -2
- package/dist/sleekspace-ui.css +4253 -1251
- package/dist/sleekspace-ui.es.js +204 -109
- package/dist/sleekspace-ui.umd.js +204 -109
- package/dist/static/classes.d.ts +18 -0
- package/dist/static/components/alert.d.ts +12 -0
- package/dist/static/components/avatar.d.ts +9 -0
- package/dist/static/components/breadcrumbs.d.ts +6 -0
- package/dist/static/components/button.d.ts +13 -0
- package/dist/static/components/card.d.ts +5 -0
- package/dist/static/components/checkbox.d.ts +10 -0
- package/dist/static/components/colorPicker.d.ts +8 -0
- package/dist/static/components/divider.d.ts +8 -0
- package/dist/static/components/dropdown.d.ts +8 -0
- package/dist/static/components/field.d.ts +15 -0
- package/dist/static/components/group.d.ts +5 -0
- package/dist/static/components/input.d.ts +14 -0
- package/dist/static/components/navBar.d.ts +16 -0
- package/dist/static/components/numberInput.d.ts +15 -0
- package/dist/static/components/page.d.ts +9 -0
- package/dist/static/components/pagination.d.ts +5 -0
- package/dist/static/components/panel.d.ts +11 -0
- package/dist/static/components/progress.d.ts +9 -0
- package/dist/static/components/radio.d.ts +11 -0
- package/dist/static/components/select.d.ts +10 -0
- package/dist/static/components/sidebar.d.ts +9 -0
- package/dist/static/components/skeleton.d.ts +11 -0
- package/dist/static/components/slider.d.ts +12 -0
- package/dist/static/components/spinner.d.ts +12 -0
- package/dist/static/components/switchInput.d.ts +10 -0
- package/dist/static/components/table.d.ts +12 -0
- package/dist/static/components/tag.d.ts +8 -0
- package/dist/static/components/tagsInput.d.ts +7 -0
- package/dist/static/components/textarea.d.ts +12 -0
- package/dist/static/components/toolbar.d.ts +12 -0
- package/dist/static/components/tooltip.d.ts +7 -0
- package/dist/static/escape.d.ts +2 -0
- package/dist/static/index.cjs.js +1 -0
- package/dist/static/index.d.ts +68 -0
- package/dist/static/index.es.js +732 -0
- package/dist/static/render.d.ts +12 -0
- package/dist/static/specs.d.ts +2 -0
- package/dist/static/types.d.ts +43 -0
- package/dist/tokens.css +322 -0
- package/dist/types/index.d.ts +36 -0
- package/docs/guides/installation.md +8 -2
- package/docs/guides/pure-css/_meta.yaml +8 -0
- package/docs/guides/pure-css/class-api.md +1070 -0
- package/docs/guides/pure-css/custom-elements.md +574 -0
- package/docs/guides/pure-css/index.md +86 -0
- package/docs/guides/pure-css/limitations.md +152 -0
- package/docs/guides/pure-css/static-helpers.md +1203 -0
- package/llms-full.txt +3736 -261
- package/package.json +16 -5
- package/src/components/Card/SkCard.vue +1 -0
- package/src/components/ContextMenu/SkContextMenuRadioGroup.vue +4 -1
- package/src/components/Dropdown/SkDropdown.vue +20 -3
- package/src/components/Dropdown/SkDropdownRadioGroup.vue +4 -1
- package/src/components/Dropdown/types.ts +2 -1
- package/src/components/NavBar/SkNavBar.vue +14 -4
- package/src/components/NavBar/context.ts +4 -2
- package/src/components/NavBar/types.ts +6 -1
- package/src/components/Page/SkPage.vue +11 -0
- package/src/components/Panel/SkPanel.vue +2 -1
- package/src/components/ScrollArea/SkScrollArea.vue +78 -5
- package/src/components/TreeView/SkTreeView.vue +7 -2
- package/src/composables/useCustomColors.ts +86 -77
- package/src/composables/usePortalContext.test.ts +0 -2
- package/src/shims.d.ts +10 -0
- package/src/static/__tests__/parity.test.ts +717 -0
- package/src/static/__tests__/parityHarness.test.ts +98 -0
- package/src/static/__tests__/parityHarness.ts +260 -0
- package/src/static/classes.test.ts +82 -0
- package/src/static/classes.ts +111 -0
- package/src/static/components/__tests__/helpers.test.ts +837 -0
- package/src/static/components/alert.ts +117 -0
- package/src/static/components/avatar.ts +86 -0
- package/src/static/components/breadcrumbs.ts +28 -0
- package/src/static/components/button.ts +75 -0
- package/src/static/components/card.ts +27 -0
- package/src/static/components/checkbox.ts +48 -0
- package/src/static/components/colorPicker.ts +45 -0
- package/src/static/components/divider.ts +39 -0
- package/src/static/components/dropdown.ts +36 -0
- package/src/static/components/field.ts +86 -0
- package/src/static/components/group.ts +27 -0
- package/src/static/components/input.ts +55 -0
- package/src/static/components/navBar.ts +94 -0
- package/src/static/components/numberInput.ts +64 -0
- package/src/static/components/page.ts +31 -0
- package/src/static/components/pagination.ts +27 -0
- package/src/static/components/panel.ts +33 -0
- package/src/static/components/progress.ts +31 -0
- package/src/static/components/radio.ts +53 -0
- package/src/static/components/select.ts +51 -0
- package/src/static/components/sidebar.ts +85 -0
- package/src/static/components/skeleton.ts +66 -0
- package/src/static/components/slider.ts +50 -0
- package/src/static/components/spinner.ts +94 -0
- package/src/static/components/switchInput.ts +49 -0
- package/src/static/components/table.ts +88 -0
- package/src/static/components/tag.ts +76 -0
- package/src/static/components/tagsInput.ts +35 -0
- package/src/static/components/textarea.ts +53 -0
- package/src/static/components/toolbar.ts +74 -0
- package/src/static/components/tooltip.ts +29 -0
- package/src/static/escape.test.ts +53 -0
- package/src/static/escape.ts +28 -0
- package/src/static/generated/defaults.ts +378 -0
- package/src/static/generated/propTypes.ts +425 -0
- package/src/static/index.ts +116 -0
- package/src/static/render.test.ts +83 -0
- package/src/static/render.ts +76 -0
- package/src/static/specs.test.ts +58 -0
- package/src/static/specs.ts +230 -0
- package/src/static/types.ts +176 -0
- package/src/styles/__tests__/testHelpers.ts +97 -0
- package/src/styles/base/_custom-elements.scss +51 -0
- package/src/styles/base/_index.scss +4 -0
- package/src/styles/components/__tests__/componentSelectors.test.ts +2575 -0
- package/src/styles/components/_alert.scss +82 -39
- package/src/styles/components/_avatar.scss +102 -47
- package/src/styles/components/_breadcrumbs.scss +39 -37
- package/src/styles/components/_button.scss +58 -5
- package/src/styles/components/_card.scss +64 -2
- package/src/styles/components/_checkbox.scss +35 -5
- package/src/styles/components/_color-picker.scss +48 -13
- package/src/styles/components/_divider.scss +86 -52
- package/src/styles/components/_dropdown.scss +214 -0
- package/src/styles/components/_field.scss +76 -23
- package/src/styles/components/_group.scss +190 -79
- package/src/styles/components/_index.scss +1 -0
- package/src/styles/components/_input.scss +81 -5
- package/src/styles/components/_menu.scss +1 -1
- package/src/styles/components/_navbar.scss +76 -45
- package/src/styles/components/_number-input.scss +88 -83
- package/src/styles/components/_page.scss +82 -23
- package/src/styles/components/_pagination.scss +240 -212
- package/src/styles/components/_panel.scss +268 -122
- package/src/styles/components/_progress.scss +120 -70
- package/src/styles/components/_radio.scss +35 -5
- package/src/styles/components/_scroll-area.scss +50 -22
- package/src/styles/components/_select.scss +40 -9
- package/src/styles/components/_sidebar.scss +59 -34
- package/src/styles/components/_skeleton.scss +111 -65
- package/src/styles/components/_slider.scss +34 -10
- package/src/styles/components/_spinner.scss +107 -56
- package/src/styles/components/_switch.scss +36 -5
- package/src/styles/components/_table.scss +150 -166
- package/src/styles/components/_tag.scss +244 -154
- package/src/styles/components/_tags-input.scss +46 -12
- package/src/styles/components/_textarea.scss +36 -5
- package/src/styles/components/_toolbar.scss +85 -31
- package/src/styles/components/_tooltip.scss +172 -3
- package/src/styles/mixins/_cut-border.scss +18 -4
- package/src/styles/mixins/_dual-selector.scss +192 -0
- package/src/styles/mixins/_index.scss +1 -0
- package/src/styles/mixins/dualSelector.test.ts +151 -0
- package/src/styles/themes/_colorful.scss +25 -0
- package/src/styles/themes/_greyscale.scss +25 -0
- package/src/styles/themes/_shade-scale.scss +39 -0
- package/src/styles/tokens/_semantic-color-kinds.scss +66 -0
- package/src/{types.ts → types/index.ts} +19 -11
- package/web-types.json +970 -137
- package/dist/src/components/Card/types.d.ts +0 -2
- package/dist/src/components/Collapsible/types.d.ts +0 -2
- package/dist/src/components/ContextMenu/types.d.ts +0 -2
- package/dist/src/components/NavBar/types.d.ts +0 -6
- package/dist/src/components/ScrollArea/SkScrollArea.vue.d.ts +0 -40
- package/dist/src/composables/useCustomColors.d.ts +0 -74
- package/dist/src/composables/useCustomColors.test.d.ts +0 -1
- package/dist/src/composables/useFocusTrap.test.d.ts +0 -1
- package/dist/src/composables/usePortalContext.test.d.ts +0 -1
- package/dist/src/styles/mixins/fluidSize.test.d.ts +0 -1
- package/dist/src/types.d.ts +0 -29
- /package/dist/{src/components → components}/Accordion/SkAccordionItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Accordion/index.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/SkBreadcrumbItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/SkBreadcrumbSeparator.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/{src/components → components}/Checkbox/index.d.ts +0 -0
- /package/dist/{src/components → components}/Collapsible/index.d.ts +0 -0
- /package/dist/{src/components → components}/ColorPicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/SkContextMenuCheckboxItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/SkContextMenuItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/SkContextMenuLabel.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/SkContextMenuRadioGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/SkContextMenuRadioItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/SkContextMenuSeparator.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/SkContextMenuSubmenu.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ContextMenu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/types.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/SkDropdownCheckboxItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/SkDropdownMenuItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/SkDropdownMenuLabel.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/SkDropdownMenuSeparator.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/SkDropdownRadioGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/SkDropdownRadioItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/SkDropdownSubmenu.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Dropdown/index.d.ts +0 -0
- /package/dist/{src/components → components}/Field/SkField.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Field/index.d.ts +0 -0
- /package/dist/{src/components → components}/Field/types.d.ts +0 -0
- /package/dist/{src/components → components}/Group/SkGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Group/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/index.d.ts +0 -0
- /package/dist/{src/components → components}/Listbox/SkListboxItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Listbox/SkListboxSeparator.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Listbox/index.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/NavBar/index.d.ts +0 -0
- /package/dist/{src/components → components}/NumberInput/index.d.ts +0 -0
- /package/dist/{src/components → components}/Page/SkPageSidebarToggle.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Page/index.d.ts +0 -0
- /package/dist/{src/components → components}/Page/types.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/SkPaginationItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Pagination/index.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/types.d.ts +0 -0
- /package/dist/{src/components → components}/Progress/index.d.ts +0 -0
- /package/dist/{src/components → components}/Radio/SkRadioGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Radio/index.d.ts +0 -0
- /package/dist/{src/components → components}/ScrollArea/index.d.ts +0 -0
- /package/dist/{src/components → components}/Select/SkSelectItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Select/SkSelectSeparator.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Select/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sidebar/SkSidebarItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Sidebar/SkSidebarSection.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/SkSkeleton.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Skeleton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Spinner/index.d.ts +0 -0
- /package/dist/{src/components → components}/Splitter/SkSplitter.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Splitter/SkSplitterHandle.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Splitter/SkSplitterPanel.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Splitter/index.d.ts +0 -0
- /package/dist/{src/components → components}/Switch/index.d.ts +0 -0
- /package/dist/{src/components → components}/Table/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/SkTabList.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/SkTabPanel.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/SkTabPanels.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/types.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/types.d.ts +0 -0
- /package/dist/{src/components → components}/TagsInput/index.d.ts +0 -0
- /package/dist/{src/components → components}/Textarea/index.d.ts +0 -0
- /package/dist/{src/components → components}/Theme/SkTheme.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Theme/types.d.ts +0 -0
- /package/dist/{src/components → components}/Theme/useTheme.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/SkToast.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/SkToastProvider.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/index.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/types.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/useToast.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/SkToolbar.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/SkToolbarButton.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/SkToolbarSeparator.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/SkToolbarToggleGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/SkToolbarToggleItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/SkTooltipProvider.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/TreeView/SkTreeItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/TreeView/SkTreeView.vue.d.ts +0 -0
- /package/dist/{src/components → components}/TreeView/index.d.ts +0 -0
- /package/dist/{src/composables → composables}/useFocusTrap.d.ts +0 -0
- /package/dist/{src/composables → composables}/usePageDrawer.d.ts +0 -0
- /package/dist/{src/composables → composables}/usePortalContext.d.ts +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AvatarSize, ComponentKind, StaticCustomColors } from '../types';
|
|
2
|
+
export interface AvatarStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: AvatarSize;
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
initials?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function avatar(props?: AvatarStaticProps): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbsKind, StaticCustomColors } from '../types';
|
|
2
|
+
export interface BreadcrumbsStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: BreadcrumbsKind;
|
|
4
|
+
separator?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function breadcrumbs(props?: BreadcrumbsStaticProps, children?: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonKind, ButtonSize, ButtonType, ButtonVariant, StaticCustomColors } from '../types';
|
|
2
|
+
export interface ButtonStaticProps extends StaticCustomColors {
|
|
3
|
+
type?: ButtonType;
|
|
4
|
+
kind?: ButtonKind;
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
pressed?: boolean;
|
|
10
|
+
dense?: boolean;
|
|
11
|
+
href?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function button(props?: ButtonStaticProps, children?: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface CheckboxStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function checkbox(props?: CheckboxStaticProps, children?: string): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize, DividerOrientation, DividerVariant } from '../types';
|
|
2
|
+
export interface DividerStaticProps {
|
|
3
|
+
orientation?: DividerOrientation;
|
|
4
|
+
kind?: ComponentKind;
|
|
5
|
+
variant?: DividerVariant;
|
|
6
|
+
size?: ComponentSize;
|
|
7
|
+
}
|
|
8
|
+
export declare function divider(props?: DividerStaticProps): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FieldLabelPosition } from '../types';
|
|
2
|
+
export interface FieldStaticProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
labelPosition?: FieldLabelPosition;
|
|
8
|
+
/**
|
|
9
|
+
* Explicit field ID — forwarded to label `for` and description/error `id` attributes.
|
|
10
|
+
* Mirrors Vue's `id` prop. When omitted, Vue auto-generates the ID and the static helper
|
|
11
|
+
* skips those attributes (avoid parity tests without an explicit `id`).
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function field(props?: FieldStaticProps, children?: string): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface InputStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
type?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function input(props?: InputStaticProps): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NavBarKind, StaticCustomColors } from '../types';
|
|
2
|
+
export interface NavBarStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: NavBarKind;
|
|
4
|
+
/**
|
|
5
|
+
* When true (default), applies `sk-sticky` class — matches Vue's `sticky: true` default.
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
sticky?: boolean;
|
|
9
|
+
/** HTML for the leading slot (far-left area, e.g. sidebar toggle). */
|
|
10
|
+
leading?: string;
|
|
11
|
+
/** HTML for the brand slot (logo / site name). */
|
|
12
|
+
brand?: string;
|
|
13
|
+
/** HTML for the actions slot (right-aligned CTAs / user menu). */
|
|
14
|
+
actions?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function navBar(props?: NavBarStaticProps, children?: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface NumberInputStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
value?: string;
|
|
6
|
+
min?: string;
|
|
7
|
+
max?: string;
|
|
8
|
+
step?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
readonly?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function numberInput(props?: NumberInputStaticProps): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PagePanelMode } from '../types';
|
|
2
|
+
export interface PageStaticProps {
|
|
3
|
+
fixedHeader?: boolean;
|
|
4
|
+
fixedFooter?: boolean;
|
|
5
|
+
flush?: boolean;
|
|
6
|
+
sidebarMode?: PagePanelMode;
|
|
7
|
+
asideMode?: PagePanelMode;
|
|
8
|
+
}
|
|
9
|
+
export declare function page(props?: PageStaticProps, children?: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PanelCorner, PanelKind, PanelSize, StaticCustomColors } from '../types';
|
|
2
|
+
export interface PanelStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: PanelKind;
|
|
4
|
+
size?: PanelSize;
|
|
5
|
+
showDecoration?: boolean;
|
|
6
|
+
noBorder?: boolean;
|
|
7
|
+
noDecoration?: boolean;
|
|
8
|
+
corners?: PanelCorner[];
|
|
9
|
+
decorationCorner?: PanelCorner;
|
|
10
|
+
}
|
|
11
|
+
export declare function panel(props?: PanelStaticProps, children?: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentKind, ProgressSize } from '../types';
|
|
2
|
+
export interface ProgressStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ProgressSize;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
value?: number | null;
|
|
7
|
+
max?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function progress(props?: ProgressStaticProps, children?: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface RadioStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
name?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function radio(props?: RadioStaticProps, children?: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface SelectStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
name?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function select(props?: SelectStaticProps, children?: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SidebarKind, SidebarSide, StaticCustomColors } from '../types';
|
|
2
|
+
export interface SidebarStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: SidebarKind;
|
|
4
|
+
side?: SidebarSide;
|
|
5
|
+
dense?: boolean;
|
|
6
|
+
/** CSS width of the sidebar (not used for class output; here for completeness). */
|
|
7
|
+
width?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function sidebar(props?: SidebarStaticProps, children?: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'square';
|
|
2
|
+
export type SkeletonAnimation = 'shimmer' | 'pulse' | 'none';
|
|
3
|
+
export interface SkeletonStaticProps {
|
|
4
|
+
variant?: SkeletonVariant;
|
|
5
|
+
animation?: SkeletonAnimation;
|
|
6
|
+
/** CSS width value, e.g. '200px', '100%'. Emitted as inline style when set. */
|
|
7
|
+
width?: string;
|
|
8
|
+
/** CSS height value. Emitted as inline style when set. */
|
|
9
|
+
height?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function skeleton(props?: SkeletonStaticProps): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface SliderStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
min?: string;
|
|
6
|
+
max?: string;
|
|
7
|
+
step?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function slider(props?: SliderStaticProps): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentKind, SpinnerSize, SpinnerVariant } from '../types';
|
|
2
|
+
export interface SpinnerStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: SpinnerSize;
|
|
5
|
+
variant?: SpinnerVariant;
|
|
6
|
+
/**
|
|
7
|
+
* Custom color override — maps to `--sk-spinner-color` CSS variable.
|
|
8
|
+
* Optional; omit to use the kind-derived color.
|
|
9
|
+
*/
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function spinner(props?: SpinnerStaticProps): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface SwitchStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
name?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function switchInput(props?: SwitchStaticProps, children?: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StaticCustomColors, TableKind, TableVariant } from '../types';
|
|
2
|
+
export interface TableStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: TableKind;
|
|
4
|
+
variant?: TableVariant;
|
|
5
|
+
striped?: boolean;
|
|
6
|
+
hoverable?: boolean;
|
|
7
|
+
bordered?: boolean;
|
|
8
|
+
innerBorders?: boolean;
|
|
9
|
+
darkBackground?: boolean;
|
|
10
|
+
subtle?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function table(props?: TableStaticProps, children?: string): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentKind, StaticCustomColors, TagSize, TagVariant } from '../types';
|
|
2
|
+
export interface TagStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
variant?: TagVariant;
|
|
5
|
+
size?: TagSize;
|
|
6
|
+
removable?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function tag(props?: TagStaticProps, children?: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentKind, ComponentSize } from '../types';
|
|
2
|
+
export interface TextareaStaticProps {
|
|
3
|
+
kind?: ComponentKind;
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function textarea(props?: TextareaStaticProps, children?: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StaticCustomColors, ToolbarCorner, ToolbarKind, ToolbarOrientation } from '../types';
|
|
2
|
+
export interface ToolbarStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: ToolbarKind;
|
|
4
|
+
orientation?: ToolbarOrientation;
|
|
5
|
+
/**
|
|
6
|
+
* Corner cuts. Defaults to all four corners, matching the Vue component's default.
|
|
7
|
+
* Pass an empty array to suppress all cuts.
|
|
8
|
+
* @default ['top-left', 'top-right', 'bottom-right', 'bottom-left']
|
|
9
|
+
*/
|
|
10
|
+
corners?: ToolbarCorner[];
|
|
11
|
+
}
|
|
12
|
+
export declare function toolbar(props?: ToolbarStaticProps, children?: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StaticCustomColors, TooltipKind, TooltipSide, TooltipVariant } from '../types';
|
|
2
|
+
export interface TooltipStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: TooltipKind;
|
|
4
|
+
variant?: TooltipVariant;
|
|
5
|
+
placement?: TooltipSide;
|
|
6
|
+
}
|
|
7
|
+
export declare function tooltip(props?: TooltipStaticProps, children?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function t(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function n(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function r(e,t){let r=[e.base];if(e.kind&&typeof t.kind==`string`&&r.push(`sk-${t.kind}`),e.size&&typeof t.size==`string`&&(r.push(`sk-${t.size}`),r.push(`sk-size-${t.size}`)),e.variant&&typeof t.variant==`string`&&r.push(`sk-${t.variant}`),e.booleanFlags)for(let i of e.booleanFlags)t[n(i)]===!0&&r.push(`sk-${i}`);if(e.listFlags)for(let{prop:n,family:i}of e.listFlags){let e=t[n];if(Array.isArray(e))for(let t of e)typeof t==`string`&&r.push(`sk-${i}-${t}`)}if(e.singleChoiceFlags)for(let{prop:n,family:i}of e.singleChoiceFlags){let e=t[n];typeof e==`string`&&r.push(`sk-${i}-${e}`)}return r.join(` `)}function i(t,n,i){let a=[`class="${e(r(t.classSpec,n))}"`];if(t.tag===`button`&&a.push(`type="button"`),t.extraAttrs)for(let[n,r]of Object.entries(t.extraAttrs))a.push(`${n}="${e(r)}"`);let o=[];if(t.customColorVars){let{base:r,text:i}=t.customColorVars;r&&typeof n.baseColor==`string`&&o.push(`${r}: ${e(n.baseColor)};`),i&&typeof n.textColor==`string`&&o.push(`${i}: ${e(n.textColor)};`)}o.length>0&&a.push(`style="${o.join(` `)}"`);let s=a.join(` `);return t.void?`<${t.tag} ${s} />`:`<${t.tag} ${s}>${i}</${t.tag}>`}var a={panel:{tag:`div`,classSpec:{base:`sk-panel`,kind:!0,size:!0,booleanFlags:[`no-border`,`no-decoration`],listFlags:[{prop:`corners`,family:`cut`}],singleChoiceFlags:[{prop:`decorationCorner`,family:`decoration`}]},customColorVars:{base:`--sk-panel-color-base`,text:`--sk-panel-fg`}},card:{tag:`div`,classSpec:{base:`sk-card`,kind:!0},customColorVars:{base:`--sk-panel-color-base`,text:`--sk-panel-fg`}},alert:{tag:`div`,classSpec:{base:`sk-alert`,kind:!0,booleanFlags:[`subtle`]},extraAttrs:{role:`alert`},customColorVars:{base:`--sk-alert-color-base`,text:`--sk-alert-fg`}},divider:{tag:`div`,classSpec:{base:`sk-divider`,kind:!0,booleanFlags:[`subtle`],singleChoiceFlags:[{prop:`orientation`,family:`orientation`}]},extraAttrs:{role:`separator`}},page:{tag:`div`,classSpec:{base:`sk-page`,booleanFlags:[`flush`,`fixed-header`,`fixed-footer`]}},group:{tag:`div`,classSpec:{base:`sk-group`,singleChoiceFlags:[{prop:`orientation`,family:`orientation`}]}},skeleton:{tag:`div`,classSpec:{base:`sk-skeleton`,singleChoiceFlags:[{prop:`variant`,family:`shape`}],booleanFlags:[`shimmer`,`pulse`]}},progress:{tag:`progress`,classSpec:{base:`sk-progress`,kind:!0,size:!0,booleanFlags:[`indeterminate`]},void:!0},spinner:{tag:`div`,classSpec:{base:`sk-spinner`,kind:!0,size:!0}},navBar:{tag:`nav`,classSpec:{base:`sk-navbar`,kind:!0,booleanFlags:[`sticky`]}},toolbar:{tag:`div`,classSpec:{base:`sk-toolbar`,kind:!0,singleChoiceFlags:[{prop:`orientation`,family:`orientation`}]},extraAttrs:{role:`toolbar`}},sidebar:{tag:`aside`,classSpec:{base:`sk-sidebar`,kind:!0,booleanFlags:[`dense`]}},breadcrumbs:{tag:`nav`,classSpec:{base:`sk-breadcrumbs`,kind:!0},extraAttrs:{"aria-label":`Breadcrumbs`}},pagination:{tag:`nav`,classSpec:{base:`sk-pagination`,kind:!0},extraAttrs:{"aria-label":`Pagination`}},tag:{tag:`span`,classSpec:{base:`sk-tag`,kind:!0,size:!0,variant:!0,booleanFlags:[`removable`]}},avatar:{tag:`div`,classSpec:{base:`sk-avatar`,kind:!0,size:!0,singleChoiceFlags:[{prop:`shape`,family:`shape`}]}},field:{tag:`div`,classSpec:{base:`sk-field`,booleanFlags:[`has-error`],singleChoiceFlags:[{prop:`labelPosition`,family:`label-position`}]}},table:{tag:`table`,classSpec:{base:`sk-table`,kind:!0,variant:!0,booleanFlags:[`striped`,`bordered`,`compact`,`comfortable`]}},tooltip:{tag:`div`,classSpec:{base:`sk-tooltip`,kind:!0,variant:!0,singleChoiceFlags:[{prop:`placement`,family:`placement`}]},extraAttrs:{role:`tooltip`}},input:{tag:`input`,classSpec:{base:`sk-input`,kind:!0,size:!0},void:!0},textarea:{tag:`textarea`,classSpec:{base:`sk-textarea`,kind:!0,size:!0}},select:{tag:`select`,classSpec:{base:`sk-select`,kind:!0,size:!0}},slider:{tag:`input`,classSpec:{base:`sk-slider`,kind:!0,size:!0,singleChoiceFlags:[{prop:`orientation`,family:`orientation`}]},void:!0,extraAttrs:{type:`range`}},colorPicker:{tag:`input`,classSpec:{base:`sk-color-picker`,size:!0},void:!0,extraAttrs:{type:`color`}},dropdown:{tag:`details`,classSpec:{base:`sk-dropdown`,kind:!0,size:!0}}};function o(e={},t=``){return i(a.panel,e,t)}function s(e={},t=``){return i(a.card,e,t)}var c=new Set([`info`,`success`,`warning`,`danger`]),l={info:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><circle cx="12" cy="8" r="0.5" fill="currentColor"></circle></svg>`,success:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>`,warning:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><circle cx="12" cy="17" r="0.5" fill="currentColor"></circle></svg>`,danger:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>`};function u(t={},n=``){let i=t.kind??`info`,a=[`class="${e(r({base:`sk-alert`,kind:!0,booleanFlags:[`subtle`]},{...t,kind:i}))}"`,`role="alert"`],o=[];typeof t.baseColor==`string`&&o.push(`--sk-alert-color-base: ${e(t.baseColor)};`),typeof t.textColor==`string`&&o.push(`--sk-alert-fg: ${e(t.textColor)};`),o.length>0&&a.push(`style="${o.join(` `)}"`);let s=``;if(t.icon!==!1){let e=typeof t.icon==`string`?t.icon:c.has(i)?l[i]??``:null;e!==null&&(s=`<div class="sk-alert-icon">${e}</div>`)}let u=`<div class="sk-alert-content">${n}</div>`;return`<div ${a.join(` `)}>${s}${u}</div>`}function d(t={}){let n=t.orientation??`horizontal`,r=t.kind??`neutral`,i=t.size??`md`,a=[`sk-divider`,`sk-${n}`,`sk-${r}`,`sk-${i}`];return t.variant===`subtle`&&a.push(`sk-subtle`),`<hr class="${e(a.join(` `))}" role="separator">`}function f(e={},t=``){return i(a.page,e,t)}function p(e={},t=``){return i(a.group,e,t)}function m(t={}){let n=t.variant??`text`,r=t.animation??`shimmer`,i=[`sk-skeleton`,`sk-${n}`];r!==`none`&&i.push(`sk-${r}`);let a=[`class="${e(i.join(` `))}"`],o=[],s=t.height??((n===`circular`||n===`square`)&&t.width?t.width:void 0);return typeof t.width==`string`&&o.push(`width: ${e(t.width)};`),typeof s==`string`&&o.push(`height: ${e(s)};`),o.length>0&&a.push(`style="${o.join(` `)}"`),`<div ${a.join(` `)}></div>`}function h(e={},t=``){return i(a.progress,e,t)}function g(e){switch(e){case`circular`:return`<div class="sk-spinner-circular"><div class="sk-arc sk-arc-large"></div><div class="sk-arc sk-arc-small"></div></div>`;case`dots`:return`<div class="sk-spinner-dots"><div class="sk-dot"></div><div class="sk-dot"></div><div class="sk-dot"></div></div>`;case`crosshair`:return`<div class="sk-crosshair-loader"></div>`}}function _(t={}){let n=t.kind??`primary`,r=t.size??`md`,i=t.variant??`circular`,a=[`class="${e([`sk-spinner`,`sk-${n}`,`sk-${r}`,`sk-variant-${i}`].join(` `))}"`,`role="status"`,`aria-live="polite"`,`aria-label="Loading"`];return typeof t.color==`string`&&a.push(`style="--sk-spinner-color: ${e(t.color)};"`),`<div ${a.join(` `)}>${g(i)}</div>`}function v(t={},n=``){let i=t.sticky!==!1,a=r({base:`sk-navbar`,kind:!0},t),o=[`class="${e(i?`${a} sk-sticky`:a)}"`],s=[];typeof t.baseColor==`string`&&s.push(`--sk-navbar-color-base: ${e(t.baseColor)};`),typeof t.textColor==`string`&&s.push(`--sk-navbar-fg: ${e(t.textColor)};`),s.length>0&&o.push(`style="${s.join(` `)}"`);let c=``;t.leading&&(c+=`<div class="sk-navbar-leading">${t.leading}</div>`),t.brand&&(c+=`<div class="sk-navbar-brand">${t.brand}</div>`),n&&(c+=`<div class="sk-navbar-nav">${n}</div>`),t.actions&&(c+=`<div class="sk-navbar-actions">${t.actions}</div>`);let l=`<div class="sk-navbar-content">${c}</div>`;return`<nav ${o.join(` `)}>${l}</nav>`}var y=[`top-left`,`top-right`,`bottom-right`,`bottom-left`];function b(t={},n=``){let r=t.kind,i=t.orientation??`horizontal`,a=t.corners??y,o=[`sk-toolbar`];typeof r==`string`&&o.push(`sk-${r}`),o.push(`sk-${i}`);for(let e of a)o.push(`sk-cut-${e}`);let s=[`class="${e(o.join(` `))}"`,`role="toolbar"`],c=[];return typeof t.baseColor==`string`&&c.push(`--sk-toolbar-color-base: ${e(t.baseColor)};`),typeof t.textColor==`string`&&c.push(`--sk-toolbar-fg: ${e(t.textColor)};`),c.length>0&&s.push(`style="${c.join(` `)}"`),`<div ${s.join(` `)}>${n}</div>`}function x(t={},n=``){let r=t.kind??`neutral`,i=t.side??`left`,a=[`sk-sidebar`,`sk-${r}`];i===`right`&&a.push(`sk-sidebar-right`),t.dense===!0&&a.push(`sk-dense`);let o=i===`right`?`bottom-left`:`bottom-right`,s=[`sk-panel`,`sk-${r}`,`sk-md`,`sk-cut-${o}`,`sk-decoration-${o}`,`sk-sidebar-panel`],c=`class="${e(a.join(` `))}"`,l=`class="${e(s.join(` `))}"`,u=[];return typeof t.baseColor==`string`&&u.push(`--sk-sidebar-color-base: ${e(t.baseColor)};`),`<aside ${c}${u.length>0?` style="${u.join(` `)}"`:``}><div ${l}>${`<div class="sk-panel-scroll-content"><nav class="sk-sidebar-nav">${n}</nav></div>`}</div></aside>`}function S(e={},t=``){return i(a.breadcrumbs,e,t)}function C(e={},t=``){return i(a.pagination,e,t)}var w=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`;function T(t={},n=``){let r=t.kind??`neutral`,i=t.variant??`solid`,a=t.size??`md`,o=[`sk-tag`,`sk-${r}`,`sk-${i}`,`sk-${a}`];t.removable&&o.push(`sk-removable`);let s=[`class="${e(o.join(` `))}"`],c=[];typeof t.baseColor==`string`&&c.push(`--sk-tag-color-base: ${e(t.baseColor)};`),typeof t.textColor==`string`&&c.push(`--sk-tag-fg: ${e(t.textColor)};`),c.length>0&&s.push(`style="${c.join(` `)}"`);let l=`<span class="sk-tag-content">${n}</span>`,u=t.removable?`<button type="button" class="sk-tag-remove" aria-label="Remove">${w}</button>`:``;return`<span ${s.join(` `)}>${l}${u}</span>`}var E=`<svg class="sk-avatar-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path></svg>`;function D(t={}){let n=t.kind??`neutral`,r=t.size??`md`,i=[`class="${e([`sk-avatar`,`sk-${n}`,`sk-${r}`].join(` `))}"`],a=[];typeof t.baseColor==`string`&&a.push(`--sk-avatar-color-base: ${e(t.baseColor)};`),typeof t.textColor==`string`&&a.push(`--sk-avatar-fg: ${e(t.textColor)};`),a.length>0&&i.push(`style="${a.join(` `)}"`);let o;if(t.src){let n=t.alt??``;o=`<img src="${e(t.src)}" alt="${e(n)}" class="sk-avatar-image">`}else o=t.initials?`<span class="sk-avatar-initials">${e(t.initials.slice(0,2).toUpperCase())}</span>`:E;return`<div ${i.join(` `)}>${o}</div>`}function O(t={},n=``){let r=[`sk-field`,`sk-label-${t.labelPosition??`top`}`];t.error&&r.push(`sk-has-error`);let i=`class="${e(r.join(` `))}"`,a=``;if(t.label){let n=t.id?` for="${e(t.id)}"`:``,r=t.required?`<span class="sk-field-required">*</span>`:``;a=`<label${n} class="sk-field-label">${e(t.label)}${r}</label>`}let o=`<div class="sk-field-input-wrapper">${n}</div>`,s=``;t.description&&!t.error&&(s=`<p${t.id?` id="${e(t.id)}-description"`:``} class="sk-field-description">${e(t.description)}</p>`);let c=``;return t.error&&(c=`<p${t.id?` id="${e(t.id)}-error"`:``} class="sk-field-error">${e(t.error)}</p>`),`<div ${i}>${a}${o}${s}${c}</div>`}function k(t={},n=``){let r=t.kind??`neutral`,i=t.variant??`default`,a=t.hoverable!==!1,o=t.bordered!==!1,s=t.innerBorders===!0,c=t.subtle===!0,l=t.darkBackground===!0,u=t.striped===!0,d=[`sk-table-wrapper`,`sk-table-wrapper-${r}`];l&&d.push(`sk-dark-background`),c&&d.push(`sk-subtle`);let f=[`sk-table`,`sk-${r}`,`sk-${i}`];u&&f.push(`sk-striped`),a&&f.push(`sk-hoverable`),o&&f.push(`sk-bordered`),s||f.push(`sk-no-inner-borders`),c&&f.push(`sk-subtle`);let p=[`class="${e(f.join(` `))}"`],m=[];return typeof t.baseColor==`string`&&m.push(`--sk-table-color-base: ${e(t.baseColor)};`),typeof t.textColor==`string`&&m.push(`--sk-table-fg: ${e(t.textColor)};`),m.length>0&&p.push(`style="${m.join(` `)}"`),`<div ${`class="${e(d.join(` `))}"`}><table ${p.join(` `)}>${n}</table></div>`}function A(e={},t=``){return i(a.tooltip,e,t)}function j(t={},n=``){let i=[`class="${e(r({base:`sk-button`,kind:!0,size:!0,variant:!0,booleanFlags:[`loading`,`pressed`,`dense`]},t))}"`],a=typeof t.href==`string`;if(a)i.push(`href="${e(t.href??``)}"`);else{let n=t.type??`button`;i.push(`type="${e(n)}"`)}t.disabled&&i.push(a?`aria-disabled="true"`:`disabled`),t.loading&&i.push(`aria-busy="true"`),t.pressed&&i.push(`aria-pressed="true"`);let o=a?`a`:`button`,s=`<span class="sk-button-chrome">${n}</span>`;return`<${o} ${i.join(` `)}>${s}</${o}>`}function M(t={}){let n=[`class="${e(r({base:`sk-input`,kind:!0,size:!0},t))}"`];for(let r of[`type`,`value`,`placeholder`,`name`,`id`]){let i=t[r];typeof i==`string`&&n.push(`${r}="${e(i)}"`)}for(let e of[`disabled`,`readonly`,`required`])t[e]===!0&&n.push(e);return`<input ${n.join(` `)} />`}function N(t={},n=``){let i=[`class="${e(r({base:`sk-textarea`,kind:!0,size:!0},t))}"`];for(let n of[`placeholder`,`name`,`id`]){let r=t[n];typeof r==`string`&&i.push(`${n}="${e(r)}"`)}for(let e of[`disabled`,`readonly`,`required`])t[e]===!0&&i.push(e);return`<textarea ${i.join(` `)}>${n}</textarea>`}function P(t={},n=``){let i=[`class="${e(r({base:`sk-select`,kind:!0,size:!0},t))}"`];for(let n of[`name`,`id`]){let r=t[n];typeof r==`string`&&i.push(`${n}="${e(r)}"`)}for(let e of[`disabled`,`required`])t[e]===!0&&i.push(e);return`<select ${i.join(` `)}>${n}</select>`}function F(t={}){let n=[`class="${e(r({base:`sk-slider`,kind:!0,size:!0},t))}"`,`type="range"`];for(let r of[`min`,`max`,`step`,`value`,`name`]){let i=t[r];typeof i==`string`&&n.push(`${r}="${e(i)}"`)}return t.disabled===!0&&n.push(`disabled`),`<input ${n.join(` `)} />`}function I(t={}){let n=[`class="${e(r({base:`sk-color-picker`,size:!0},t))}"`,`type="color"`];for(let r of[`value`,`name`]){let i=t[r];typeof i==`string`&&n.push(`${r}="${e(i)}"`)}return t.disabled===!0&&n.push(`disabled`),`<input ${n.join(` `)} />`}function L(t={},n=``){let i=r({base:`sk-checkbox`,kind:!0,size:!0},t),a=[`type="checkbox"`];t.name&&a.push(`name="${e(t.name)}"`),t.checked===!0&&a.push(`checked`),t.disabled===!0&&a.push(`disabled`),t.required===!0&&a.push(`required`);let o=`<input ${a.join(` `)} />`,s=`<span class="sk-checkbox-label">${n}</span>`;return`<label class="${e(i)}">${o}<span class="sk-checkbox-box"></span>${s}</label>`}function R(t={},n=``){let i=r({base:`sk-radio`,kind:!0,size:!0},t),a=[`type="radio"`];t.name&&a.push(`name="${e(t.name)}"`),t.value!==void 0&&a.push(`value="${e(t.value)}"`),t.checked===!0&&a.push(`checked`),t.disabled===!0&&a.push(`disabled`),t.required===!0&&a.push(`required`);let o=`<input ${a.join(` `)} />`,s=`<span class="sk-radio-label">${n}</span>`;return`<label class="${e(i)}">${o}<span class="sk-radio-dot"></span>${s}</label>`}function z(t={},n=``){let i=r({base:`sk-switch`,kind:!0,size:!0},t),a=[`type="checkbox"`];t.name&&a.push(`name="${e(t.name)}"`),t.checked===!0&&a.push(`checked`),t.disabled===!0&&a.push(`disabled`),t.required===!0&&a.push(`required`);let o=`<input ${a.join(` `)} />`,s=`<span class="sk-switch-label">${n}</span>`;return`<label class="${e(i)}">${o}<span class="sk-switch-track"><span class="sk-switch-thumb"></span></span>${s}</label>`}function B(t={}){let n=r({base:`sk-number-input-wrapper`,kind:!0,size:!0},t),i=[`class="sk-number-input-field"`,`type="number"`];for(let n of[`value`,`min`,`max`,`step`,`name`,`placeholder`]){let r=t[n];typeof r==`string`&&i.push(`${n}="${e(r)}"`)}for(let e of[`disabled`,`readonly`,`required`])t[e]===!0&&i.push(e);let a=`<input ${i.join(` `)} />`;return`<div class="${e(n)}">${a}</div>`}function V(t={},n=``){return`<div class="${e(r({base:`sk-tags-input`,kind:!0,size:!0},t))}">${n}</div>`}function H(t,n=``){let i=[`class="${e(r({base:`sk-dropdown`,kind:!0,size:!0},t))}"`];return t.open&&i.push(`open`),`<details ${i.join(` `)}><summary>${e(t.summary)}</summary>${n}</details>`}exports.alert=u,exports.avatar=D,exports.breadcrumbs=S,exports.button=j,exports.card=s,exports.checkbox=L,exports.colorPicker=I,exports.composeClasses=r,exports.divider=d,exports.dropdown=H,exports.escapeAttr=e,exports.field=O,exports.group=p,exports.input=M,exports.navBar=v,exports.numberInput=B,exports.page=f,exports.pagination=C,exports.panel=o,exports.progress=h,exports.radio=R,exports.render=i,exports.select=P,exports.sidebar=x,exports.skeleton=m,exports.slider=F,exports.spinner=_,exports.switchInput=z,exports.table=k,exports.tag=T,exports.tagsInput=V,exports.text=t,exports.textarea=N,exports.toolbar=b,exports.tooltip=A;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export { text, escapeAttr } from './escape';
|
|
2
|
+
export { composeClasses } from './classes';
|
|
3
|
+
export type { ClassSpec, ListFlagSpec, SingleChoiceFlagSpec } from './classes';
|
|
4
|
+
export { render } from './render';
|
|
5
|
+
export type { RenderSpec } from './render';
|
|
6
|
+
export type * from './types';
|
|
7
|
+
export { panel } from './components/panel';
|
|
8
|
+
export type { PanelStaticProps } from './components/panel';
|
|
9
|
+
export { card } from './components/card';
|
|
10
|
+
export type { CardStaticProps } from './components/card';
|
|
11
|
+
export { alert } from './components/alert';
|
|
12
|
+
export type { AlertStaticProps } from './components/alert';
|
|
13
|
+
export { divider } from './components/divider';
|
|
14
|
+
export type { DividerStaticProps } from './components/divider';
|
|
15
|
+
export { page } from './components/page';
|
|
16
|
+
export type { PageStaticProps } from './components/page';
|
|
17
|
+
export { group } from './components/group';
|
|
18
|
+
export type { GroupStaticProps } from './components/group';
|
|
19
|
+
export { skeleton } from './components/skeleton';
|
|
20
|
+
export type { SkeletonStaticProps } from './components/skeleton';
|
|
21
|
+
export { progress } from './components/progress';
|
|
22
|
+
export type { ProgressStaticProps } from './components/progress';
|
|
23
|
+
export { spinner } from './components/spinner';
|
|
24
|
+
export type { SpinnerStaticProps } from './components/spinner';
|
|
25
|
+
export { navBar } from './components/navBar';
|
|
26
|
+
export type { NavBarStaticProps } from './components/navBar';
|
|
27
|
+
export { toolbar } from './components/toolbar';
|
|
28
|
+
export type { ToolbarStaticProps } from './components/toolbar';
|
|
29
|
+
export { sidebar } from './components/sidebar';
|
|
30
|
+
export type { SidebarStaticProps } from './components/sidebar';
|
|
31
|
+
export { breadcrumbs } from './components/breadcrumbs';
|
|
32
|
+
export type { BreadcrumbsStaticProps } from './components/breadcrumbs';
|
|
33
|
+
export { pagination } from './components/pagination';
|
|
34
|
+
export type { PaginationStaticProps } from './components/pagination';
|
|
35
|
+
export { tag } from './components/tag';
|
|
36
|
+
export type { TagStaticProps } from './components/tag';
|
|
37
|
+
export { avatar } from './components/avatar';
|
|
38
|
+
export type { AvatarStaticProps } from './components/avatar';
|
|
39
|
+
export { field } from './components/field';
|
|
40
|
+
export type { FieldStaticProps } from './components/field';
|
|
41
|
+
export { table } from './components/table';
|
|
42
|
+
export type { TableStaticProps } from './components/table';
|
|
43
|
+
export { tooltip } from './components/tooltip';
|
|
44
|
+
export type { TooltipStaticProps } from './components/tooltip';
|
|
45
|
+
export { button } from './components/button';
|
|
46
|
+
export type { ButtonStaticProps } from './components/button';
|
|
47
|
+
export { input } from './components/input';
|
|
48
|
+
export type { InputStaticProps } from './components/input';
|
|
49
|
+
export { textarea } from './components/textarea';
|
|
50
|
+
export type { TextareaStaticProps } from './components/textarea';
|
|
51
|
+
export { select } from './components/select';
|
|
52
|
+
export type { SelectStaticProps } from './components/select';
|
|
53
|
+
export { slider } from './components/slider';
|
|
54
|
+
export type { SliderStaticProps } from './components/slider';
|
|
55
|
+
export { colorPicker } from './components/colorPicker';
|
|
56
|
+
export type { ColorPickerStaticProps } from './components/colorPicker';
|
|
57
|
+
export { checkbox } from './components/checkbox';
|
|
58
|
+
export type { CheckboxStaticProps } from './components/checkbox';
|
|
59
|
+
export { radio } from './components/radio';
|
|
60
|
+
export type { RadioStaticProps } from './components/radio';
|
|
61
|
+
export { switchInput } from './components/switchInput';
|
|
62
|
+
export type { SwitchStaticProps } from './components/switchInput';
|
|
63
|
+
export { numberInput } from './components/numberInput';
|
|
64
|
+
export type { NumberInputStaticProps } from './components/numberInput';
|
|
65
|
+
export { tagsInput } from './components/tagsInput';
|
|
66
|
+
export type { TagsInputStaticProps } from './components/tagsInput';
|
|
67
|
+
export { dropdown } from './components/dropdown';
|
|
68
|
+
export type { DropdownStaticProps } from './components/dropdown';
|