@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
|
@@ -2,41 +2,94 @@
|
|
|
2
2
|
// Field Component Styles
|
|
3
3
|
//----------------------------------------------------------------------------------------------------------------------
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
@use '../theme/variables' as *;
|
|
6
|
+
@use '../mixins' as *;
|
|
7
|
+
|
|
8
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
9
|
+
// Field Design Tokens
|
|
10
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
.sk-field,
|
|
13
|
+
sk-field
|
|
14
|
+
{
|
|
15
|
+
--sk-field-gap: var(--sk-space-xs);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
19
|
+
// Field Root
|
|
20
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
.sk-field,
|
|
23
|
+
sk-field
|
|
6
24
|
{
|
|
7
25
|
display: flex;
|
|
8
26
|
flex-direction: column;
|
|
9
|
-
gap: var(--sk-
|
|
27
|
+
gap: var(--sk-field-gap);
|
|
28
|
+
}
|
|
10
29
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
30
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
31
|
+
// Label Positioning Modifiers (single-choice)
|
|
32
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
@include single-choice-modifier('field', 'label', 'top', 'label-position')
|
|
35
|
+
{
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include single-choice-modifier('field', 'label', 'left', 'label-position')
|
|
40
|
+
{
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
align-items: flex-start;
|
|
43
|
+
gap: var(--sk-space-md);
|
|
44
|
+
|
|
45
|
+
.sk-field-label
|
|
46
|
+
{
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
min-width: 120px;
|
|
49
|
+
padding-top: var(--sk-space-xs);
|
|
50
|
+
}
|
|
14
51
|
|
|
15
|
-
|
|
52
|
+
.sk-field-input-wrapper
|
|
16
53
|
{
|
|
17
|
-
flex
|
|
54
|
+
flex: 1;
|
|
18
55
|
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
59
|
+
// Boolean Modifiers
|
|
60
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
19
61
|
|
|
20
|
-
|
|
62
|
+
@include bool-modifier('field', 'has-error')
|
|
63
|
+
{
|
|
64
|
+
// Anchor property ensures the selector pair is emitted by Sass.
|
|
65
|
+
--sk-field-error-state: 1;
|
|
66
|
+
|
|
67
|
+
.sk-field-label
|
|
21
68
|
{
|
|
22
|
-
|
|
23
|
-
align-items: flex-start;
|
|
24
|
-
gap: var(--sk-space-md);
|
|
25
|
-
|
|
26
|
-
.sk-field-label
|
|
27
|
-
{
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
min-width: 120px;
|
|
30
|
-
padding-top: var(--sk-space-xs);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.sk-field-input-wrapper
|
|
34
|
-
{
|
|
35
|
-
flex: 1;
|
|
36
|
-
}
|
|
69
|
+
color: var(--sk-danger-base);
|
|
37
70
|
}
|
|
38
71
|
}
|
|
39
72
|
|
|
73
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
74
|
+
// Defaults When Absent
|
|
75
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
// Default label-position: top (column layout)
|
|
78
|
+
@include defaults-when-absent('field', 'sk-label-')
|
|
79
|
+
{
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
84
|
+
// Custom-Element API Defaults (attribute-absence path)
|
|
85
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
86
|
+
|
|
87
|
+
// Default label-position: top
|
|
88
|
+
@include defaults-when-no-attr('field', 'label-position')
|
|
89
|
+
{
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
}
|
|
92
|
+
|
|
40
93
|
//----------------------------------------------------------------------------------------------------------------------
|
|
41
94
|
|
|
42
95
|
.sk-field-label
|
|
@@ -9,129 +9,240 @@
|
|
|
9
9
|
// Base Group Styles
|
|
10
10
|
//----------------------------------------------------------------------------------------------------------------------
|
|
11
11
|
|
|
12
|
-
.sk-group
|
|
12
|
+
.sk-group,
|
|
13
|
+
sk-group
|
|
13
14
|
{
|
|
14
15
|
// Base styles
|
|
15
16
|
display: inline-flex;
|
|
16
17
|
align-items: stretch;
|
|
17
18
|
|
|
18
|
-
//
|
|
19
|
-
|
|
19
|
+
// Ensure grouped items have higher z-index on hover
|
|
20
|
+
> *:hover,
|
|
21
|
+
> *:focus-within
|
|
20
22
|
{
|
|
21
|
-
|
|
23
|
+
position: relative;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
29
|
+
// Orientation Modifiers
|
|
30
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
@include single-choice-modifier('group', 'orientation', 'horizontal')
|
|
33
|
+
{
|
|
34
|
+
flex-direction: row;
|
|
22
35
|
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
// Remove gaps between children
|
|
37
|
+
> *
|
|
38
|
+
{
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Remove left border and corner shape from all but first child
|
|
43
|
+
> * + *
|
|
44
|
+
{
|
|
45
|
+
margin-left: calc(-1 * var(--sk-border-width, 1px));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// First child keeps only left corners
|
|
49
|
+
> *:first-child:not(:only-child)
|
|
50
|
+
{
|
|
51
|
+
@supports (corner-shape: bevel)
|
|
25
52
|
{
|
|
26
|
-
|
|
53
|
+
corner-shape: bevel;
|
|
54
|
+
border-start-end-radius: 0;
|
|
55
|
+
border-end-end-radius: 0;
|
|
27
56
|
}
|
|
57
|
+
}
|
|
28
58
|
|
|
29
|
-
|
|
30
|
-
|
|
59
|
+
// Middle children have no beveled corners
|
|
60
|
+
> *:not(:first-child):not(:last-child)
|
|
61
|
+
{
|
|
62
|
+
@supports (corner-shape: bevel)
|
|
31
63
|
{
|
|
32
|
-
|
|
64
|
+
corner-shape: initial;
|
|
65
|
+
border-radius: 0;
|
|
33
66
|
}
|
|
34
67
|
|
|
35
|
-
|
|
36
|
-
> *:first-child:not(:only-child)
|
|
68
|
+
@supports not (corner-shape: bevel)
|
|
37
69
|
{
|
|
38
|
-
|
|
39
|
-
{
|
|
40
|
-
corner-shape: bevel;
|
|
41
|
-
border-start-end-radius: 0;
|
|
42
|
-
border-end-end-radius: 0;
|
|
43
|
-
}
|
|
70
|
+
border-radius: 0;
|
|
44
71
|
}
|
|
72
|
+
}
|
|
45
73
|
|
|
46
|
-
|
|
47
|
-
|
|
74
|
+
// Last child keeps only right corners
|
|
75
|
+
> *:last-child:not(:only-child)
|
|
76
|
+
{
|
|
77
|
+
@supports (corner-shape: bevel)
|
|
48
78
|
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
79
|
+
corner-shape: bevel;
|
|
80
|
+
border-start-start-radius: 0;
|
|
81
|
+
border-end-start-radius: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@include single-choice-modifier('group', 'orientation', 'vertical')
|
|
87
|
+
{
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
|
|
90
|
+
// Remove gaps between children
|
|
91
|
+
> *
|
|
92
|
+
{
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
width: 100%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Remove top border from all but first child
|
|
98
|
+
> * + *
|
|
99
|
+
{
|
|
100
|
+
margin-top: calc(-1 * var(--sk-border-width, 1px));
|
|
101
|
+
}
|
|
54
102
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
103
|
+
// First child keeps only top corners
|
|
104
|
+
> *:first-child:not(:only-child)
|
|
105
|
+
{
|
|
106
|
+
@supports (corner-shape: bevel)
|
|
107
|
+
{
|
|
108
|
+
corner-shape: bevel;
|
|
109
|
+
border-end-start-radius: 0;
|
|
110
|
+
border-end-end-radius: 0;
|
|
59
111
|
}
|
|
112
|
+
}
|
|
60
113
|
|
|
61
|
-
|
|
62
|
-
|
|
114
|
+
// Middle children have no beveled corners
|
|
115
|
+
> *:not(:first-child):not(:last-child)
|
|
116
|
+
{
|
|
117
|
+
@supports (corner-shape: bevel)
|
|
63
118
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
119
|
+
corner-shape: initial;
|
|
120
|
+
border-radius: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@supports not (corner-shape: bevel)
|
|
124
|
+
{
|
|
125
|
+
border-radius: 0;
|
|
70
126
|
}
|
|
71
127
|
}
|
|
72
128
|
|
|
73
|
-
//
|
|
74
|
-
|
|
129
|
+
// Last child keeps only bottom corners
|
|
130
|
+
> *:last-child:not(:only-child)
|
|
75
131
|
{
|
|
76
|
-
|
|
132
|
+
@supports (corner-shape: bevel)
|
|
133
|
+
{
|
|
134
|
+
corner-shape: bevel;
|
|
135
|
+
border-start-start-radius: 0;
|
|
136
|
+
border-start-end-radius: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
77
140
|
|
|
78
|
-
|
|
79
|
-
|
|
141
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
142
|
+
// Defaults When Absent
|
|
143
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
144
|
+
|
|
145
|
+
// Default orientation: horizontal — fires when no sk-orientation-* class is present.
|
|
146
|
+
@include defaults-when-absent('group', 'sk-orientation-')
|
|
147
|
+
{
|
|
148
|
+
flex-direction: row;
|
|
149
|
+
|
|
150
|
+
> *
|
|
151
|
+
{
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
> * + *
|
|
156
|
+
{
|
|
157
|
+
margin-left: calc(-1 * var(--sk-border-width, 1px));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
> *:first-child:not(:only-child)
|
|
161
|
+
{
|
|
162
|
+
@supports (corner-shape: bevel)
|
|
80
163
|
{
|
|
81
|
-
|
|
82
|
-
|
|
164
|
+
corner-shape: bevel;
|
|
165
|
+
border-start-end-radius: 0;
|
|
166
|
+
border-end-end-radius: 0;
|
|
83
167
|
}
|
|
168
|
+
}
|
|
84
169
|
|
|
85
|
-
|
|
86
|
-
|
|
170
|
+
> *:not(:first-child):not(:last-child)
|
|
171
|
+
{
|
|
172
|
+
@supports (corner-shape: bevel)
|
|
87
173
|
{
|
|
88
|
-
|
|
174
|
+
corner-shape: initial;
|
|
175
|
+
border-radius: 0;
|
|
89
176
|
}
|
|
90
177
|
|
|
91
|
-
|
|
92
|
-
> *:first-child:not(:only-child)
|
|
178
|
+
@supports not (corner-shape: bevel)
|
|
93
179
|
{
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
corner-shape: bevel;
|
|
97
|
-
border-end-start-radius: 0;
|
|
98
|
-
border-end-end-radius: 0;
|
|
99
|
-
}
|
|
180
|
+
border-radius: 0;
|
|
100
181
|
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
> *:last-child:not(:only-child)
|
|
185
|
+
{
|
|
186
|
+
@supports (corner-shape: bevel)
|
|
187
|
+
{
|
|
188
|
+
corner-shape: bevel;
|
|
189
|
+
border-start-start-radius: 0;
|
|
190
|
+
border-end-start-radius: 0;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
196
|
+
// Custom-Element API Defaults (attribute-absence path)
|
|
197
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
198
|
+
|
|
199
|
+
// Default orientation: horizontal — fires when <sk-group> has no orientation attribute.
|
|
200
|
+
@include defaults-when-no-attr('group', 'orientation')
|
|
201
|
+
{
|
|
202
|
+
flex-direction: row;
|
|
101
203
|
|
|
102
|
-
|
|
103
|
-
|
|
204
|
+
> *
|
|
205
|
+
{
|
|
206
|
+
flex-shrink: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
> * + *
|
|
210
|
+
{
|
|
211
|
+
margin-left: calc(-1 * var(--sk-border-width, 1px));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
> *:first-child:not(:only-child)
|
|
215
|
+
{
|
|
216
|
+
@supports (corner-shape: bevel)
|
|
104
217
|
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
218
|
+
corner-shape: bevel;
|
|
219
|
+
border-start-end-radius: 0;
|
|
220
|
+
border-end-end-radius: 0;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
110
223
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
224
|
+
> *:not(:first-child):not(:last-child)
|
|
225
|
+
{
|
|
226
|
+
@supports (corner-shape: bevel)
|
|
227
|
+
{
|
|
228
|
+
corner-shape: initial;
|
|
229
|
+
border-radius: 0;
|
|
115
230
|
}
|
|
116
231
|
|
|
117
|
-
|
|
118
|
-
> *:last-child:not(:only-child)
|
|
232
|
+
@supports not (corner-shape: bevel)
|
|
119
233
|
{
|
|
120
|
-
|
|
121
|
-
{
|
|
122
|
-
corner-shape: bevel;
|
|
123
|
-
border-start-start-radius: 0;
|
|
124
|
-
border-start-end-radius: 0;
|
|
125
|
-
}
|
|
234
|
+
border-radius: 0;
|
|
126
235
|
}
|
|
127
236
|
}
|
|
128
237
|
|
|
129
|
-
|
|
130
|
-
> *:hover,
|
|
131
|
-
> *:focus-within
|
|
238
|
+
> *:last-child:not(:only-child)
|
|
132
239
|
{
|
|
133
|
-
|
|
134
|
-
|
|
240
|
+
@supports (corner-shape: bevel)
|
|
241
|
+
{
|
|
242
|
+
corner-shape: bevel;
|
|
243
|
+
border-start-start-radius: 0;
|
|
244
|
+
border-end-start-radius: 0;
|
|
245
|
+
}
|
|
135
246
|
}
|
|
136
247
|
}
|
|
137
248
|
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@include meta.load-css('collapsible');
|
|
17
17
|
@include meta.load-css('color-picker');
|
|
18
18
|
@include meta.load-css('divider');
|
|
19
|
+
@include meta.load-css('dropdown');
|
|
19
20
|
@include meta.load-css('field');
|
|
20
21
|
@include meta.load-css('group');
|
|
21
22
|
@include meta.load-css('input');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../mixins/cut-border' as *;
|
|
2
|
+
@use '../theme/variables' as *;
|
|
2
3
|
|
|
3
4
|
//----------------------------------------------------------------------------------------------------------------------
|
|
4
5
|
// Input Component Styles
|
|
@@ -38,7 +39,18 @@
|
|
|
38
39
|
transition-duration: var(--sk-transition-duration-base);
|
|
39
40
|
|
|
40
41
|
// Size variants (match button heights)
|
|
41
|
-
|
|
42
|
+
|
|
43
|
+
// Default: md when no sk-size-* class is present (zero-specificity, explicit class wins)
|
|
44
|
+
&:where(:not([class*="sk-size-"]))
|
|
45
|
+
{
|
|
46
|
+
height: 2.5rem;
|
|
47
|
+
padding: 0 var(--sk-space-md);
|
|
48
|
+
font-size: 1rem;
|
|
49
|
+
--sk-input-cut: 0.5rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.sk-sm,
|
|
53
|
+
&.sk-size-sm
|
|
42
54
|
{
|
|
43
55
|
height: 2rem;
|
|
44
56
|
padding: 0 var(--sk-space-sm);
|
|
@@ -46,7 +58,8 @@
|
|
|
46
58
|
--sk-input-cut: 0.4rem;
|
|
47
59
|
}
|
|
48
60
|
|
|
49
|
-
&.sk-md
|
|
61
|
+
&.sk-md,
|
|
62
|
+
&.sk-size-md
|
|
50
63
|
{
|
|
51
64
|
height: 2.5rem;
|
|
52
65
|
padding: 0 var(--sk-space-md);
|
|
@@ -54,7 +67,8 @@
|
|
|
54
67
|
--sk-input-cut: 0.5rem;
|
|
55
68
|
}
|
|
56
69
|
|
|
57
|
-
&.sk-lg
|
|
70
|
+
&.sk-lg,
|
|
71
|
+
&.sk-size-lg
|
|
58
72
|
{
|
|
59
73
|
height: 3rem;
|
|
60
74
|
padding: 0 var(--sk-space-md);
|
|
@@ -62,7 +76,8 @@
|
|
|
62
76
|
--sk-input-cut: 0.6rem;
|
|
63
77
|
}
|
|
64
78
|
|
|
65
|
-
&.sk-xl
|
|
79
|
+
&.sk-xl,
|
|
80
|
+
&.sk-size-xl
|
|
66
81
|
{
|
|
67
82
|
height: 3.5rem;
|
|
68
83
|
padding: 0 var(--sk-space-md);
|
|
@@ -204,3 +219,64 @@
|
|
|
204
219
|
}
|
|
205
220
|
|
|
206
221
|
//----------------------------------------------------------------------------------------------------------------------
|
|
222
|
+
// type="search" cancel button
|
|
223
|
+
//
|
|
224
|
+
// Native browsers render an ugly default "x" for `input[type="search"]`. Hide it and paint our
|
|
225
|
+
// own via a mask of an X glyph, colored by the kind's base color so it feels native to the rest
|
|
226
|
+
// of the input's visual identity.
|
|
227
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
228
|
+
|
|
229
|
+
.sk-input[type="search"]
|
|
230
|
+
{
|
|
231
|
+
// Hide IE/Edge legacy reveal/clear buttons
|
|
232
|
+
&::-ms-reveal,
|
|
233
|
+
&::-ms-clear
|
|
234
|
+
{
|
|
235
|
+
display: none;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Replace the WebKit/Blink clear button with our own X
|
|
239
|
+
&::-webkit-search-cancel-button
|
|
240
|
+
{
|
|
241
|
+
-webkit-appearance: none;
|
|
242
|
+
appearance: none;
|
|
243
|
+
width: 1em;
|
|
244
|
+
height: 1em;
|
|
245
|
+
margin-inline-start: var(--sk-space-xs);
|
|
246
|
+
background-color: var(--sk-input-color-base);
|
|
247
|
+
mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M1.5 1.5 L8.5 8.5 M8.5 1.5 L1.5 8.5' stroke='black' stroke-width='1.8' stroke-linecap='round'/></svg>");
|
|
248
|
+
mask-repeat: no-repeat;
|
|
249
|
+
mask-position: center;
|
|
250
|
+
mask-size: contain;
|
|
251
|
+
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M1.5 1.5 L8.5 8.5 M8.5 1.5 L1.5 8.5' stroke='black' stroke-width='1.8' stroke-linecap='round'/></svg>");
|
|
252
|
+
-webkit-mask-repeat: no-repeat;
|
|
253
|
+
-webkit-mask-position: center;
|
|
254
|
+
-webkit-mask-size: contain;
|
|
255
|
+
opacity: 0.7;
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
transition: opacity var(--sk-transition-duration-fast) var(--sk-transition-timing-default);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&::-webkit-search-cancel-button:hover
|
|
261
|
+
{
|
|
262
|
+
opacity: 1;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
267
|
+
// Defaults-when-absent: kind — neutral when no explicit kind class is present.
|
|
268
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
269
|
+
|
|
270
|
+
$_input-kind-not: '';
|
|
271
|
+
@each $kind in $kinds
|
|
272
|
+
{
|
|
273
|
+
$_input-kind-not: $_input-kind-not + ':not(.sk-' + $kind + ')';
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.sk-input:where(#{ $_input-kind-not })
|
|
277
|
+
{
|
|
278
|
+
--sk-input-color-base: var(--sk-neutral-base);
|
|
279
|
+
--sk-input-fg: var(--sk-neutral-text);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
//----------------------------------------------------------------------------------------------------------------------
|