@khsura/sui 0.0.0-stage → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +18 -0
- package/@types/components/badge/index.d.ts +1 -0
- package/@types/components/badge/sBadge.vue.d.ts +18 -0
- package/@types/components/badge/sBadgeContent.vue.d.ts +14 -0
- package/@types/components/calendar/index.d.ts +1 -0
- package/@types/components/calendar/sCalendar.vue.d.ts +52 -0
- package/@types/components/calendar/sCalendarMonthly.vue.d.ts +51 -0
- package/@types/components/calendar/sCalendarWeekly.vue.d.ts +75 -0
- package/@types/components/cards/index.d.ts +5 -0
- package/@types/components/cards/sCard.vue.d.ts +14 -0
- package/@types/components/cards/sCardActions.vue.d.ts +15 -0
- package/@types/components/cards/sCardSubtitle.vue.d.ts +15 -0
- package/@types/components/cards/sCardText.vue.d.ts +15 -0
- package/@types/components/cards/sCardTitle.vue.d.ts +15 -0
- package/@types/components/carousel/index.d.ts +2 -0
- package/@types/components/carousel/sCarousel.vue.d.ts +34 -0
- package/@types/components/carousel/sCarouselItem.vue.d.ts +14 -0
- package/@types/components/datePicker/index.d.ts +2 -0
- package/@types/components/datePicker/sDatePicker.vue.d.ts +22 -0
- package/@types/components/datePicker/sDatePickerDate.vue.d.ts +12 -0
- package/@types/components/datePicker/sDatePickerInput.vue.d.ts +31 -0
- package/@types/components/datePicker/sDatePickerMonth.vue.d.ts +12 -0
- package/@types/components/datePicker/sDatePickerSwitch.vue.d.ts +15 -0
- package/@types/components/datePicker/sDatePickerTitle.vue.d.ts +16 -0
- package/@types/components/datePicker/sDatePickerYear.vue.d.ts +12 -0
- package/@types/components/expansionPanel/index.d.ts +4 -0
- package/@types/components/expansionPanel/sExpansionPanel.vue.d.ts +17 -0
- package/@types/components/expansionPanel/sExpansionPanelContent.vue.d.ts +15 -0
- package/@types/components/expansionPanel/sExpansionPanelHeader.vue.d.ts +21 -0
- package/@types/components/expansionPanel/sExpansionPanels.vue.d.ts +24 -0
- package/@types/components/form/common/index.d.ts +1 -0
- package/@types/components/form/common/sFormInputError.vue.d.ts +25 -0
- package/@types/components/form/index.d.ts +7 -0
- package/@types/components/form/radio/index.d.ts +2 -0
- package/@types/components/form/radio/sRadio.vue.d.ts +32 -0
- package/@types/components/form/radio/sRadioGroup.vue.d.ts +35 -0
- package/@types/components/form/sCheckbox.vue.d.ts +22 -0
- package/@types/components/form/sForm.vue.d.ts +31 -0
- package/@types/components/form/sInput.vue.d.ts +73 -0
- package/@types/components/form/sSelect.vue.d.ts +64 -0
- package/@types/components/form/sTextarea.vue.d.ts +38 -0
- package/@types/components/grids/index.d.ts +4 -0
- package/@types/components/grids/sColumn.vue.d.ts +14 -0
- package/@types/components/grids/sContainer.vue.d.ts +14 -0
- package/@types/components/grids/sRow.vue.d.ts +14 -0
- package/@types/components/grids/sSpacer.vue.d.ts +13 -0
- package/@types/components/index.d.ts +36 -0
- package/@types/components/layout/index.d.ts +8 -0
- package/@types/components/layout/sApp.vue.d.ts +15 -0
- package/@types/components/layout/sAppBar.vue.d.ts +22 -0
- package/@types/components/layout/sAppBarTitle.vue.d.ts +16 -0
- package/@types/components/layout/sBottomNavigation.vue.d.ts +24 -0
- package/@types/components/layout/sFooter.vue.d.ts +18 -0
- package/@types/components/layout/sLayout.vue.d.ts +14 -0
- package/@types/components/layout/sMain.vue.d.ts +14 -0
- package/@types/components/layout/sNavigationDrawer.vue.d.ts +45 -0
- package/@types/components/list/index.d.ts +8 -0
- package/@types/components/list/sList.vue.d.ts +14 -0
- package/@types/components/list/sListItem.vue.d.ts +18 -0
- package/@types/components/list/sListItemAction.vue.d.ts +14 -0
- package/@types/components/list/sListItemContent.vue.d.ts +13 -0
- package/@types/components/list/sListItemGroup.vue.d.ts +47 -0
- package/@types/components/list/sListItemIcon.vue.d.ts +14 -0
- package/@types/components/list/sListItemSubtitle.vue.d.ts +13 -0
- package/@types/components/list/sListItemTitle.vue.d.ts +13 -0
- package/@types/components/progress/index.d.ts +2 -0
- package/@types/components/progress/sProgressCircular.vue.d.ts +18 -0
- package/@types/components/progress/sProgressLinear.vue.d.ts +17 -0
- package/@types/components/sAlert.vue.d.ts +14 -0
- package/@types/components/sAutocomplete.vue.d.ts +57 -0
- package/@types/components/sBreadcrumbs.vue.d.ts +16 -0
- package/@types/components/sButton.vue.d.ts +20 -0
- package/@types/components/sChip.vue.d.ts +24 -0
- package/@types/components/sDialog.vue.d.ts +33 -0
- package/@types/components/sDivider.vue.d.ts +4 -0
- package/@types/components/sDroppable.vue.d.ts +28 -0
- package/@types/components/sIcon.vue.d.ts +4 -0
- package/@types/components/sImage.vue.d.ts +14 -0
- package/@types/components/sMenu.vue.d.ts +36 -0
- package/@types/components/sOverlay.vue.d.ts +26 -0
- package/@types/components/sSheet.vue.d.ts +14 -0
- package/@types/components/sSnackbar.vue.d.ts +35 -0
- package/@types/components/sSubheader.vue.d.ts +13 -0
- package/@types/components/sSwitch.vue.d.ts +23 -0
- package/@types/components/sTooltip.vue.d.ts +25 -0
- package/@types/components/slideGroup/index.d.ts +2 -0
- package/@types/components/slideGroup/sSlideGroup.vue.d.ts +42 -0
- package/@types/components/slideGroup/sSlideItem.vue.d.ts +17 -0
- package/@types/components/splitViews/index.d.ts +2 -0
- package/@types/components/splitViews/sSplitView.vue.d.ts +17 -0
- package/@types/components/splitViews/sSplitViewItem.vue.d.ts +13 -0
- package/@types/components/stepper/index.d.ts +2 -0
- package/@types/components/stepper/sStepper.vue.d.ts +26 -0
- package/@types/components/stepper/sStepperStep.vue.d.ts +14 -0
- package/@types/components/table/index.d.ts +3 -0
- package/@types/components/table/sTable.vue.d.ts +153 -0
- package/@types/components/table/sTableBodyCell.vue.d.ts +22 -0
- package/@types/components/table/sTableHeadCell.vue.d.ts +24 -0
- package/@types/components/table/sTablePagination.vue.d.ts +33 -0
- package/@types/components/tabs/index.d.ts +2 -0
- package/@types/components/tabs/sTab.vue.d.ts +14 -0
- package/@types/components/tabs/sTabs.vue.d.ts +20 -0
- package/@types/components/toggleButtonGroup/index.d.ts +2 -0
- package/@types/components/toggleButtonGroup/sToggleButton.vue.d.ts +14 -0
- package/@types/components/toggleButtonGroup/sToggleButtonGroup.vue.d.ts +31 -0
- package/@types/components/toolbar/index.d.ts +3 -0
- package/@types/components/toolbar/sToolbar.vue.d.ts +23 -0
- package/@types/components/toolbar/sToolbarItem.vue.d.ts +5 -0
- package/@types/components/toolbar/sToolbarTitle.vue.d.ts +16 -0
- package/@types/components/window/index.d.ts +2 -0
- package/@types/components/window/sWindow.vue.d.ts +57 -0
- package/@types/components/window/sWindowItem.vue.d.ts +13 -0
- package/@types/componentsTypes.d.ts +8 -0
- package/@types/configs/app.d.ts +72 -0
- package/@types/configs/color.d.ts +2 -0
- package/@types/configs/core/breakpoint.d.ts +9 -0
- package/@types/configs/core/index.d.ts +1 -0
- package/@types/configs/datePicker.d.ts +34 -0
- package/@types/configs/grids.d.ts +3 -0
- package/@types/configs/i18n.d.ts +73 -0
- package/@types/configs/iconSizes.d.ts +7 -0
- package/@types/configs/index.d.ts +11 -0
- package/@types/configs/provider.d.ts +42 -0
- package/@types/configs/size.d.ts +2 -0
- package/@types/configs/toolbar.d.ts +11 -0
- package/@types/configs/transitions.d.ts +2 -0
- package/@types/constants/alert.d.ts +52 -0
- package/@types/constants/app.d.ts +7 -0
- package/@types/constants/button.d.ts +5 -0
- package/@types/constants/color.d.ts +318 -0
- package/@types/constants/cssVariables.d.ts +4 -0
- package/@types/constants/datePicker.d.ts +14 -0
- package/@types/constants/form.d.ts +9 -0
- package/@types/constants/grids.d.ts +14 -0
- package/@types/constants/i18n.d.ts +68 -0
- package/@types/constants/imageLoader.d.ts +13 -0
- package/@types/constants/index.d.ts +20 -0
- package/@types/constants/layout.d.ts +10 -0
- package/@types/constants/lazyLoad.d.ts +5 -0
- package/@types/constants/materialDesignIcon.d.ts +3 -0
- package/@types/constants/menuDimensions.d.ts +2 -0
- package/@types/constants/navigationDrawer.d.ts +8 -0
- package/@types/constants/overlay.d.ts +1 -0
- package/@types/constants/position.d.ts +1 -0
- package/@types/constants/size.d.ts +7 -0
- package/@types/constants/toolbar.d.ts +7 -0
- package/@types/constants/transition.d.ts +6 -0
- package/@types/definitions/app.d.ts +22 -0
- package/@types/definitions/emits/emitsTable.d.ts +18 -0
- package/@types/definitions/emits/index.d.ts +1 -0
- package/@types/definitions/index.d.ts +4 -0
- package/@types/definitions/props/core/index.d.ts +18 -0
- package/@types/definitions/props/core/propsActivator.d.ts +6 -0
- package/@types/definitions/props/core/propsBorder.d.ts +5 -0
- package/@types/definitions/props/core/propsButtonVariant.d.ts +3 -0
- package/@types/definitions/props/core/propsColor.d.ts +6 -0
- package/@types/definitions/props/core/propsComponentTheme.d.ts +4 -0
- package/@types/definitions/props/core/propsContent.d.ts +5 -0
- package/@types/definitions/props/core/propsDisabled.d.ts +4 -0
- package/@types/definitions/props/core/propsElevation.d.ts +3 -0
- package/@types/definitions/props/core/propsGroup.d.ts +6 -0
- package/@types/definitions/props/core/propsGroupItem.d.ts +6 -0
- package/@types/definitions/props/core/propsLayoutBase.d.ts +3 -0
- package/@types/definitions/props/core/propsLink.d.ts +7 -0
- package/@types/definitions/props/core/propsLocation.d.ts +6 -0
- package/@types/definitions/props/core/propsMeasurableStyles.d.ts +8 -0
- package/@types/definitions/props/core/propsPosition.d.ts +4 -0
- package/@types/definitions/props/core/propsTag.d.ts +4 -0
- package/@types/definitions/props/core/propsTextColor.d.ts +3 -0
- package/@types/definitions/props/core/propsToggleButtonGroupVariant.d.ts +3 -0
- package/@types/definitions/props/index.d.ts +70 -0
- package/@types/definitions/props/propsAlert.d.ts +7 -0
- package/@types/definitions/props/propsApp.d.ts +2 -0
- package/@types/definitions/props/propsAppBar.d.ts +9 -0
- package/@types/definitions/props/propsAutocomplete.d.ts +40 -0
- package/@types/definitions/props/propsBadge.d.ts +19 -0
- package/@types/definitions/props/propsBottomNavigation.d.ts +14 -0
- package/@types/definitions/props/propsBreadcrumbs.d.ts +7 -0
- package/@types/definitions/props/propsButton.d.ts +10 -0
- package/@types/definitions/props/propsCalendar.d.ts +27 -0
- package/@types/definitions/props/propsCard.d.ts +2 -0
- package/@types/definitions/props/propsCarousel.d.ts +12 -0
- package/@types/definitions/props/propsCarouselItem.d.ts +3 -0
- package/@types/definitions/props/propsCheckbox.d.ts +9 -0
- package/@types/definitions/props/propsChip.d.ts +7 -0
- package/@types/definitions/props/propsColumn.d.ts +10 -0
- package/@types/definitions/props/propsContainer.d.ts +8 -0
- package/@types/definitions/props/propsDatePicker.d.ts +15 -0
- package/@types/definitions/props/propsDatePickerFormat.d.ts +5 -0
- package/@types/definitions/props/propsDatePickerInput.d.ts +18 -0
- package/@types/definitions/props/propsDatePickerItem.d.ts +18 -0
- package/@types/definitions/props/propsDatePickerItemSwitch.d.ts +9 -0
- package/@types/definitions/props/propsDatePickerItemTitle.d.ts +3 -0
- package/@types/definitions/props/propsDialog.d.ts +10 -0
- package/@types/definitions/props/propsDivider.d.ts +3 -0
- package/@types/definitions/props/propsDroppable.d.ts +2 -0
- package/@types/definitions/props/propsExpansionPanels.d.ts +8 -0
- package/@types/definitions/props/propsFooter.d.ts +6 -0
- package/@types/definitions/props/propsFormInput.d.ts +10 -0
- package/@types/definitions/props/propsIcon.d.ts +10 -0
- package/@types/definitions/props/propsImage.d.ts +9 -0
- package/@types/definitions/props/propsImageLoader.d.ts +11 -0
- package/@types/definitions/props/propsInput.d.ts +32 -0
- package/@types/definitions/props/propsLayout.d.ts +6 -0
- package/@types/definitions/props/propsLayoutProvider.d.ts +4 -0
- package/@types/definitions/props/propsLink.d.ts +7 -0
- package/@types/definitions/props/propsList.d.ts +10 -0
- package/@types/definitions/props/propsListItem.d.ts +7 -0
- package/@types/definitions/props/propsListMediaItem.d.ts +4 -0
- package/@types/definitions/props/propsMain.d.ts +4 -0
- package/@types/definitions/props/propsMenu.d.ts +9 -0
- package/@types/definitions/props/propsNavigationDrawer.d.ts +20 -0
- package/@types/definitions/props/propsOverlay.d.ts +8 -0
- package/@types/definitions/props/propsProgressCircular.d.ts +8 -0
- package/@types/definitions/props/propsProgressLinear.d.ts +9 -0
- package/@types/definitions/props/propsRadioGroup.d.ts +9 -0
- package/@types/definitions/props/propsRow.d.ts +11 -0
- package/@types/definitions/props/propsScrollable.d.ts +5 -0
- package/@types/definitions/props/propsSelect.d.ts +13 -0
- package/@types/definitions/props/propsSheet.d.ts +2 -0
- package/@types/definitions/props/propsSingleGroup.d.ts +6 -0
- package/@types/definitions/props/propsSingleGroupItem.d.ts +5 -0
- package/@types/definitions/props/propsSizePreset.d.ts +4 -0
- package/@types/definitions/props/propsSizeUnion.d.ts +4 -0
- package/@types/definitions/props/propsSlideGroup.d.ts +11 -0
- package/@types/definitions/props/propsSnackbar.d.ts +6 -0
- package/@types/definitions/props/propsSplitView.d.ts +9 -0
- package/@types/definitions/props/propsStepper.d.ts +10 -0
- package/@types/definitions/props/propsStepperStep.d.ts +6 -0
- package/@types/definitions/props/propsSwitch.d.ts +5 -0
- package/@types/definitions/props/propsTab.d.ts +5 -0
- package/@types/definitions/props/propsTable.d.ts +58 -0
- package/@types/definitions/props/propsTabs.d.ts +12 -0
- package/@types/definitions/props/propsTextarea.d.ts +25 -0
- package/@types/definitions/props/propsToggleButton.d.ts +3 -0
- package/@types/definitions/props/propsToggleButtonGroup.d.ts +8 -0
- package/@types/definitions/props/propsToolbar.d.ts +11 -0
- package/@types/definitions/props/propsToolbarTitle.d.ts +4 -0
- package/@types/definitions/props/propsTooltip.d.ts +9 -0
- package/@types/definitions/props/propsWindow.d.ts +13 -0
- package/@types/definitions/props/propsWindowItem.d.ts +2 -0
- package/@types/definitions/provider.d.ts +20 -0
- package/@types/directives/index.d.ts +2 -0
- package/@types/directives/resize.d.ts +2 -0
- package/@types/directives/scroll.d.ts +2 -0
- package/@types/helpers/autocompleteHelpers.d.ts +7 -0
- package/@types/helpers/colorHelpers.d.ts +3 -0
- package/@types/helpers/createAppStore.d.ts +77 -0
- package/@types/helpers/display.d.ts +1 -0
- package/@types/helpers/index.d.ts +6 -0
- package/@types/helpers/selectItemHelpers.d.ts +4 -0
- package/@types/helpers/tableHelpers.d.ts +9 -0
- package/@types/helpers/themeHelpers.d.ts +2 -0
- package/@types/index.d.ts +10 -0
- package/@types/lib/browser.d.ts +26 -0
- package/@types/lib/button.d.ts +3 -0
- package/@types/lib/color.d.ts +19 -0
- package/@types/lib/compositionApi.d.ts +2 -0
- package/@types/lib/formatNumber.d.ts +1 -0
- package/@types/lib/getCleanSetObject.d.ts +5 -0
- package/@types/lib/getNumericCssAttribute.d.ts +1 -0
- package/@types/lib/getNumericValue.d.ts +13 -0
- package/@types/lib/getPluginName.d.ts +1 -0
- package/@types/lib/htmlClass.d.ts +1 -0
- package/@types/lib/htmlToText.d.ts +2 -0
- package/@types/lib/index.d.ts +12 -0
- package/@types/lib/isEmpty.d.ts +1 -0
- package/@types/lib/retry.d.ts +1 -0
- package/@types/lib/scroll.d.ts +13 -0
- package/@types/lib/wait.d.ts +1 -0
- package/@types/modules/index.d.ts +1 -0
- package/@types/modules/sUI.d.ts +2 -0
- package/@types/repositories/calendarRepository.d.ts +3 -0
- package/@types/repositories/colorRepository.d.ts +14 -0
- package/@types/repositories/columnRepository.d.ts +9 -0
- package/@types/repositories/core/appProviderRepository.d.ts +4 -0
- package/@types/repositories/datePicker.d.ts +18 -0
- package/@types/repositories/form.d.ts +66 -0
- package/@types/repositories/htmlClassRepository.d.ts +1 -0
- package/@types/repositories/index.d.ts +9 -0
- package/@types/repositories/positionRepository.d.ts +10 -0
- package/@types/repositories/tableRepository.d.ts +2 -0
- package/@types/repositories/touchRepository.d.ts +4 -0
- package/@types/services/appBarService.d.ts +41 -0
- package/@types/services/appService.d.ts +6 -0
- package/@types/services/autocompleteService.d.ts +42 -0
- package/@types/services/backgroundScrollService.d.ts +4 -0
- package/@types/services/borderService.d.ts +12 -0
- package/@types/services/calendar/calendarEventService.d.ts +5 -0
- package/@types/services/calendar/calendarMonthlyService.d.ts +14 -0
- package/@types/services/calendar/calendarService.d.ts +8 -0
- package/@types/services/calendar/calendarWeeklyService.d.ts +28 -0
- package/@types/services/calendar/index.d.ts +8 -0
- package/@types/services/calendar/useCalendarDateFormatters.d.ts +6 -0
- package/@types/services/calendar/useCalendarEventHandlers.d.ts +19 -0
- package/@types/services/calendar/useCalendarWeeklyAllDayEvents.d.ts +20 -0
- package/@types/services/calendar/useCalendarWeeklyEventPositioning.d.ts +23 -0
- package/@types/services/colorService.d.ts +19 -0
- package/@types/services/columnService.d.ts +8 -0
- package/@types/services/componentDefaultsService.d.ts +1 -0
- package/@types/services/componentThemeService.d.ts +6 -0
- package/@types/services/core/activatorService.d.ts +16 -0
- package/@types/services/core/clickOutsideService.d.ts +9 -0
- package/@types/services/core/contentService.d.ts +13 -0
- package/@types/services/core/expandableItemCoreService.d.ts +4 -0
- package/@types/services/core/groupCoreItemService.d.ts +11 -0
- package/@types/services/core/groupCoreService.d.ts +16 -0
- package/@types/services/core/index.d.ts +9 -0
- package/@types/services/core/layoutCoreService.d.ts +21 -0
- package/@types/services/core/locationService.d.ts +11 -0
- package/@types/services/core/tableCellCommonService.d.ts +8 -0
- package/@types/services/datePicker/datePickerInputService.d.ts +9 -0
- package/@types/services/datePicker/datePickerItemCoreService.d.ts +30 -0
- package/@types/services/datePicker/datePickerItemDateService.d.ts +18 -0
- package/@types/services/datePicker/datePickerItemMonthService.d.ts +17 -0
- package/@types/services/datePicker/datePickerItemSwitchService.d.ts +11 -0
- package/@types/services/datePicker/datePickerItemTitleService.d.ts +8 -0
- package/@types/services/datePicker/datePickerItemYearService.d.ts +17 -0
- package/@types/services/datePicker/datePickerService.d.ts +7 -0
- package/@types/services/datePicker/index.d.ts +7 -0
- package/@types/services/dialogService.d.ts +32 -0
- package/@types/services/disabledService.d.ts +12 -0
- package/@types/services/displayService.d.ts +24 -0
- package/@types/services/elevationService.d.ts +6 -0
- package/@types/services/expandableItemService.d.ts +5 -0
- package/@types/services/expandableService.d.ts +5 -0
- package/@types/services/formInputService.d.ts +8 -0
- package/@types/services/groupItemService.d.ts +10 -0
- package/@types/services/groupService.d.ts +16 -0
- package/@types/services/index.d.ts +43 -0
- package/@types/services/layoutProviderService.d.ts +28 -0
- package/@types/services/layoutService.d.ts +24 -0
- package/@types/services/linkService.d.ts +21 -0
- package/@types/services/listMediaItemService.d.ts +8 -0
- package/@types/services/measurableStylesService.d.ts +11 -0
- package/@types/services/menuService.d.ts +35 -0
- package/@types/services/navigationDrawerResizeService.d.ts +10 -0
- package/@types/services/navigationDrawerService.d.ts +6 -0
- package/@types/services/positionService.d.ts +10 -0
- package/@types/services/resizeService.d.ts +4 -0
- package/@types/services/scrollService.d.ts +8 -0
- package/@types/services/scrollableService.d.ts +15 -0
- package/@types/services/singleGroupItemService.d.ts +10 -0
- package/@types/services/singleGroupService.d.ts +34 -0
- package/@types/services/sizeService.d.ts +12 -0
- package/@types/services/slideGroupService.d.ts +19 -0
- package/@types/services/table/index.d.ts +3 -0
- package/@types/services/table/tableBodyCellService.d.ts +9 -0
- package/@types/services/table/tableHeadCellService.d.ts +8 -0
- package/@types/services/table/tableService.d.ts +179 -0
- package/@types/services/tagService.d.ts +9 -0
- package/@types/services/textColorService.d.ts +15 -0
- package/@types/services/themeService.d.ts +5 -0
- package/@types/services/toolbarService.d.ts +7 -0
- package/@types/services/touchService.d.ts +2 -0
- package/@types/store/index.d.ts +5 -0
- package/@types/types/app.d.ts +36 -0
- package/@types/types/autocomplete.d.ts +7 -0
- package/@types/types/breadcrumbs.d.ts +8 -0
- package/@types/types/button.d.ts +1 -0
- package/@types/types/calendar.d.ts +61 -0
- package/@types/types/core/color.d.ts +2 -0
- package/@types/types/core/emit.d.ts +1 -0
- package/@types/types/core/form.d.ts +2 -0
- package/@types/types/core/group.d.ts +1 -0
- package/@types/types/core/index.d.ts +4 -0
- package/@types/types/datePicker.d.ts +12 -0
- package/@types/types/display.d.ts +9 -0
- package/@types/types/emits.d.ts +17 -0
- package/@types/types/form.d.ts +9 -0
- package/@types/types/grids.d.ts +2 -0
- package/@types/types/html.d.ts +1 -0
- package/@types/types/icon.d.ts +1 -0
- package/@types/types/index.d.ts +24 -0
- package/@types/types/input.d.ts +3 -0
- package/@types/types/location.d.ts +2 -0
- package/@types/types/materialDesignIcon.d.ts +2 -0
- package/@types/types/menu.d.ts +9 -0
- package/@types/types/resize.d.ts +12 -0
- package/@types/types/scroll.d.ts +26 -0
- package/@types/types/select.d.ts +6 -0
- package/@types/types/size.d.ts +2 -0
- package/@types/types/table.d.ts +39 -0
- package/@types/types/tag.d.ts +1 -0
- package/@types/types/toolbar.d.ts +2 -0
- package/@types/types/touch.d.ts +28 -0
- package/@types/validators/index.d.ts +1 -0
- package/@types/validators/numeric.d.ts +1 -0
- package/@types/vendors/dayjs.d.ts +2 -0
- package/@types/vendors/merge.d.ts +2 -0
- package/@types/vite.config.d.ts +2 -0
- package/@types/vitest.config.d.ts +2 -0
- package/README.md +210 -2
- package/dist/base.css +7282 -0
- package/dist/base.css.map +1 -0
- package/dist/s-ui.css +2 -0
- package/dist/s-ui.js +8976 -0
- package/dist/s-ui.umd.cjs +1 -0
- package/dist/styles/_helpers.scss +9 -0
- package/dist/styles/components/appBar/_variables.scss +4 -0
- package/dist/styles/components/appBar/index.scss +1 -0
- package/dist/styles/components/button/_variables.scss +51 -0
- package/dist/styles/components/button/index.scss +2 -0
- package/dist/styles/components/button/mixins.scss +60 -0
- package/dist/styles/components/cards/index.scss +1 -0
- package/dist/styles/components/cards/variables.scss +5 -0
- package/dist/styles/components/icon/_variables.scss +14 -0
- package/dist/styles/components/icon/index.scss +1 -0
- package/dist/styles/components/index.scss +10 -0
- package/dist/styles/components/layout/_mixins.scss +7 -0
- package/dist/styles/components/layout/_variables.scss +6 -0
- package/dist/styles/components/layout/index.scss +2 -0
- package/dist/styles/components/list/_mixins.scss +53 -0
- package/dist/styles/components/list/index.scss +1 -0
- package/dist/styles/components/menu/_mixins.scss +11 -0
- package/dist/styles/components/menu/index.scss +1 -0
- package/dist/styles/components/table/_mixins.scss +51 -0
- package/dist/styles/components/table/index.scss +1 -0
- package/dist/styles/components/toggleButton/_variables.scss +4 -0
- package/dist/styles/components/toggleButton/index.scss +1 -0
- package/dist/styles/components/window/_variables.scss +2 -0
- package/dist/styles/components/window/index.scss +1 -0
- package/dist/styles/generic/_common.scss +95 -0
- package/dist/styles/generic/_reset.scss +357 -0
- package/dist/styles/generic/_transitions.scss +83 -0
- package/dist/styles/generic/index.scss +3 -0
- package/dist/styles/index.scss +6 -0
- package/dist/styles/lib/_functions.scss +86 -0
- package/dist/styles/lib/index.scss +1 -0
- package/dist/styles/mixins/_app.scss +13 -0
- package/dist/styles/mixins/_border.scss +104 -0
- package/dist/styles/mixins/_dark.scss +31 -0
- package/dist/styles/mixins/_display.scss +9 -0
- package/dist/styles/mixins/_elevation.scss +15 -0
- package/dist/styles/mixins/_grids.scss +66 -0
- package/dist/styles/mixins/_media.scss +14 -0
- package/dist/styles/mixins/_text.scss +44 -0
- package/dist/styles/mixins/_utilities.scss +68 -0
- package/dist/styles/mixins/index.scss +10 -0
- package/dist/styles/modules/breakpoints.module.scss +10 -0
- package/dist/styles/tools/_breakpoint.scss +20 -0
- package/dist/styles/tools/_color.scss +35 -0
- package/dist/styles/tools/index.scss +2 -0
- package/dist/styles/variables/_border.scss +19 -0
- package/dist/styles/variables/_colors.scss +34 -0
- package/dist/styles/variables/_elevations.scss +98 -0
- package/dist/styles/variables/_font.scss +8 -0
- package/dist/styles/variables/_grid.scss +36 -0
- package/dist/styles/variables/_headings.scss +100 -0
- package/dist/styles/variables/_spacers.scss +17 -0
- package/dist/styles/variables/_transitions.scss +16 -0
- package/dist/styles/variables/_utilities.scss +360 -0
- package/dist/styles/variables/index.scss +9 -0
- package/package.json +68 -4
- package/sui-plugin/.claude-plugin/plugin.json +10 -0
- package/sui-plugin/README.md +73 -0
- package/sui-plugin/skills/sui-component/SKILL.md +133 -0
- package/sui-plugin/skills/sui-component/references/alert.md +53 -0
- package/sui-plugin/skills/sui-component/references/autocomplete.md +110 -0
- package/sui-plugin/skills/sui-component/references/badge.md +80 -0
- package/sui-plugin/skills/sui-component/references/breadcrumbs.md +67 -0
- package/sui-plugin/skills/sui-component/references/button.md +74 -0
- package/sui-plugin/skills/sui-component/references/calendar.md +120 -0
- package/sui-plugin/skills/sui-component/references/cards.md +97 -0
- package/sui-plugin/skills/sui-component/references/carousel.md +113 -0
- package/sui-plugin/skills/sui-component/references/chip.md +68 -0
- package/sui-plugin/skills/sui-component/references/date-picker.md +140 -0
- package/sui-plugin/skills/sui-component/references/dialog.md +82 -0
- package/sui-plugin/skills/sui-component/references/divider.md +52 -0
- package/sui-plugin/skills/sui-component/references/droppable.md +68 -0
- package/sui-plugin/skills/sui-component/references/expansion-panels.md +108 -0
- package/sui-plugin/skills/sui-component/references/form.md +175 -0
- package/sui-plugin/skills/sui-component/references/icon.md +61 -0
- package/sui-plugin/skills/sui-component/references/image.md +56 -0
- package/sui-plugin/skills/sui-component/references/layout.md +226 -0
- package/sui-plugin/skills/sui-component/references/list.md +153 -0
- package/sui-plugin/skills/sui-component/references/menu.md +74 -0
- package/sui-plugin/skills/sui-component/references/overlay.md +48 -0
- package/sui-plugin/skills/sui-component/references/progress.md +78 -0
- package/sui-plugin/skills/sui-component/references/sheet.md +58 -0
- package/sui-plugin/skills/sui-component/references/slide-group.md +123 -0
- package/sui-plugin/skills/sui-component/references/snackbar.md +59 -0
- package/sui-plugin/skills/sui-component/references/split-view.md +59 -0
- package/sui-plugin/skills/sui-component/references/stepper.md +92 -0
- package/sui-plugin/skills/sui-component/references/table.md +151 -0
- package/sui-plugin/skills/sui-component/references/tabs.md +88 -0
- package/sui-plugin/skills/sui-component/references/toggle-button-group.md +109 -0
- package/sui-plugin/skills/sui-component/references/toolbar.md +101 -0
- package/sui-plugin/skills/sui-component/references/tooltip.md +65 -0
- package/sui-plugin/skills/sui-component/references/window.md +75 -0
- package/sui-plugin/skills/sui-form/SKILL.md +225 -0
- package/sui-plugin/skills/sui-getting-started/SKILL.md +374 -0
- package/sui-plugin/skills/sui-layout/SKILL.md +111 -0
- package/sui-plugin/skills/sui-utilities/SKILL.md +40 -0
- package/sui-plugin/skills/sui-utilities/docs/classes.md +487 -0
- package/sui-plugin/skills/sui-utilities/docs/directives.md +200 -0
- package/sui-plugin/skills/sui-utilities/docs/helpers.md +583 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# SMenu
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SMenu } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Floating popup anchored to an activator. Clicking the activator toggles it; clicking outside closes it.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsMenu.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `location` | `string \| string[]` | `undefined` | `'bottom'`, `'top'`, `'left'`, `'right'` (combinable, e.g. `'bottom right'`). **Unset = opens over the activator** |
|
|
14
|
+
| `closeOnContentClick` | `boolean` | `false` | Close when the menu content is clicked |
|
|
15
|
+
| `closeOnScroll` | `boolean` | `false` | Close on window scroll |
|
|
16
|
+
| `position` | `'fixed' \| 'absolute' \| ...` | `undefined` | `'fixed'` positions relative to the viewport (use inside fixed containers) |
|
|
17
|
+
| `offsetX` / `offsetY` | `number \| null` | `undefined` | Extra offset in px |
|
|
18
|
+
| `screenPadding` | `number \| null` | `undefined` | Shift left by this many px when the menu would overflow the right edge |
|
|
19
|
+
| `contentClass` | `string \| string[] \| Record<string, boolean>` | `undefined` | Classes on the content element |
|
|
20
|
+
| `contentStyle` | `StyleValue` | `undefined` | Styles on the content element |
|
|
21
|
+
| `preventCloseOnClick` | `boolean` | `false` | Activator click only opens, never closes |
|
|
22
|
+
| `disabled` | `boolean` | `false` | Passed to the activator via `attrs` (disables the trigger) |
|
|
23
|
+
| `width` / `height` / `min*` / `max*` | `string \| number` | `undefined` | Content dimensions (min-width defaults to activator width) |
|
|
24
|
+
|
|
25
|
+
## Model
|
|
26
|
+
|
|
27
|
+
`v-model: boolean` — optional; the menu works uncontrolled too.
|
|
28
|
+
|
|
29
|
+
## Slots
|
|
30
|
+
|
|
31
|
+
| Slot | Scoped data | Description |
|
|
32
|
+
|------|-------------|-------------|
|
|
33
|
+
| `activator` | `{ on, attrs }` | Trigger. Bind **both** `v-on="on"` and `v-bind="attrs"` |
|
|
34
|
+
| `default` | — | Menu content |
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
| Event | Payload | Description |
|
|
39
|
+
|-------|---------|-------------|
|
|
40
|
+
| `close` | — | Emitted whenever the model changes to `false` |
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
```vue
|
|
45
|
+
<SMenu location="bottom" close-on-content-click>
|
|
46
|
+
<template #activator="{ on, attrs }">
|
|
47
|
+
<SButton v-on="on" v-bind="attrs">Actions</SButton>
|
|
48
|
+
</template>
|
|
49
|
+
<SList>
|
|
50
|
+
<SListItem @click="edit">Edit</SListItem>
|
|
51
|
+
<SListItem @click="remove">Delete</SListItem>
|
|
52
|
+
</SList>
|
|
53
|
+
</SMenu>
|
|
54
|
+
|
|
55
|
+
<!-- Filters: stays open while interacting (default) -->
|
|
56
|
+
<SMenu v-model="filtersOpen" location="bottom">
|
|
57
|
+
<template #activator="{ on, attrs }">
|
|
58
|
+
<SButton v-on="on" v-bind="attrs">Filter</SButton>
|
|
59
|
+
</template>
|
|
60
|
+
<SCard :width="250"><SCardText>…form controls…</SCardText></SCard>
|
|
61
|
+
</SMenu>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Gotchas
|
|
65
|
+
|
|
66
|
+
| ❌ | ✅ |
|
|
67
|
+
|----|----|
|
|
68
|
+
| `<SMenu>` without `location` | `location="bottom"` — otherwise the menu covers its activator |
|
|
69
|
+
| Expecting a click on an item to close the menu | Add `close-on-content-click` (it defaults to off) |
|
|
70
|
+
| `v-on="on"` only | Bind both `v-on="on"` and `v-bind="attrs"` |
|
|
71
|
+
| `:model-value="true"` on first render | Position is computed only when the model flips to `true`; open it after mount |
|
|
72
|
+
|
|
73
|
+
- The app must be wrapped in `<SApp>` (menus teleport into its overlay container).
|
|
74
|
+
- `closeOnClick` exists in the prop types but has no effect; outside clicks always close the menu.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# SOverlay
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SOverlay } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Low-level layer primitive. Teleports its slot into the overlay container rendered by `SApp`, optionally with a dark scrim. Used internally by `SDialog`, `SMenu`, `STooltip`, `SSnackbar`, `SSelect`, `SAutocomplete` and `SNavigationDrawer`. Prefer those components; use `SOverlay` only for custom full-screen layers.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsOverlay.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `value` | `boolean \| null` | `undefined` | Show/hide the slot (and scrim) |
|
|
14
|
+
| `scrim` | `boolean` | `false` | 50% black backdrop; makes the layer `position: fixed; inset: 0` |
|
|
15
|
+
| `zIndex` | `number` | `undefined` | z-index of the layer (only with `scrim` or `position="fixed"`) |
|
|
16
|
+
| `position` | `'fixed' \| ...` | `undefined` | `'fixed'` wraps content in the full-viewport layer without a scrim |
|
|
17
|
+
| `transition` | `string` | `undefined` | Vue `<Transition>` name for the content |
|
|
18
|
+
| `disabled` | `boolean` | `false` | Disables the teleport (renders in place) |
|
|
19
|
+
|
|
20
|
+
## Slots
|
|
21
|
+
|
|
22
|
+
| Slot | Scoped data | Description |
|
|
23
|
+
|------|-------------|-------------|
|
|
24
|
+
| `default` | `{ attrs, value }` | Content, rendered only while `value` is true. Bind `v-bind="attrs"` (adds the content class: absolute, clickable) |
|
|
25
|
+
|
|
26
|
+
## Events
|
|
27
|
+
|
|
28
|
+
None — the scrim does not emit clicks.
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```vue
|
|
33
|
+
<SOverlay :value="isLoading" scrim>
|
|
34
|
+
<template #default="{ attrs }">
|
|
35
|
+
<div v-bind="attrs" style="inset: 0; display: grid; place-items: center">
|
|
36
|
+
<SProgressCircular indeterminate color="primary" />
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
</SOverlay>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Gotchas
|
|
43
|
+
|
|
44
|
+
| ❌ | ✅ |
|
|
45
|
+
|----|----|
|
|
46
|
+
| `position="absolute"` + `scrim` inside a `position: relative` box to cover only that box | Not possible: with `scrim` the layer is teleported and `fixed` to the whole viewport |
|
|
47
|
+
| No `<SApp>` root | Wrap the app in `<SApp>` — the teleport target lives there |
|
|
48
|
+
| Expecting scrim click to close | Add your own close button; no event is emitted |
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# SProgressLinear / SProgressCircular
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SProgressLinear, SProgressCircular } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsProgressLinear.d.ts`, `propsProgressCircular.d.ts`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## SProgressLinear
|
|
10
|
+
|
|
11
|
+
Horizontal progress bar.
|
|
12
|
+
|
|
13
|
+
| Prop | Type | Default | Description |
|
|
14
|
+
|------|------|---------|-------------|
|
|
15
|
+
| `value` | `number \| string` | `0` | Progress 0–100 |
|
|
16
|
+
| `indeterminate` | `boolean` | `false` | Animated, unknown duration |
|
|
17
|
+
| `color` | `string` | `'info'` | Bar color (preset name or CSS color) |
|
|
18
|
+
| `backgroundColor` | `string \| null` | `undefined` | Track color. Falls back to `color` |
|
|
19
|
+
| `backgroundOpacity` | `string \| number \| null` | `undefined` | Track opacity |
|
|
20
|
+
| `size` | `string \| number \| null` | `undefined` | Bar height (number = px) |
|
|
21
|
+
| `position` | `'static' \| 'fixed' \| 'absolute' \| 'relative' \| 'sticky'` | `undefined` | Only `fixed` and `absolute` add positioning styles |
|
|
22
|
+
|
|
23
|
+
| Slot | Description |
|
|
24
|
+
|------|-------------|
|
|
25
|
+
| `default` | Rendered inside the bar container (e.g. a label) |
|
|
26
|
+
|
|
27
|
+
No events.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## SProgressCircular
|
|
32
|
+
|
|
33
|
+
Circular progress / spinner.
|
|
34
|
+
|
|
35
|
+
| Prop | Type | Default | Description |
|
|
36
|
+
|------|------|---------|-------------|
|
|
37
|
+
| `value` | `number` | `0` | Progress 0–100 (clamped) |
|
|
38
|
+
| `indeterminate` | `boolean` | `false` | Spinning state |
|
|
39
|
+
| `color` | `string \| null` | `undefined` | Arc color (text-color based, inherits `currentColor`) |
|
|
40
|
+
| `size` | `number \| string` | `32` | Diameter in px. Must be numeric (`'2rem'` breaks) |
|
|
41
|
+
| `width` | `number` | `4` | Stroke width in px |
|
|
42
|
+
| `rotate` | `number` | `undefined` | Starting angle offset in degrees |
|
|
43
|
+
| `theme` | `AppThemeType` | `undefined` | Theme override |
|
|
44
|
+
|
|
45
|
+
| Slot | Description |
|
|
46
|
+
|------|-------------|
|
|
47
|
+
| `default` | Content centered in the circle |
|
|
48
|
+
|
|
49
|
+
No events.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Usage
|
|
54
|
+
|
|
55
|
+
```vue
|
|
56
|
+
<template>
|
|
57
|
+
<SProgressLinear :value="uploadProgress" color="primary" />
|
|
58
|
+
<SProgressLinear indeterminate color="primary" />
|
|
59
|
+
<SProgressLinear :value="50" :size="8" color="primary" background-color="primary" :background-opacity="0.2" />
|
|
60
|
+
|
|
61
|
+
<!-- Page-level loader -->
|
|
62
|
+
<SProgressLinear v-if="isLoading" indeterminate color="primary" position="fixed" style="top: 0; z-index: 9999" />
|
|
63
|
+
|
|
64
|
+
<SProgressCircular indeterminate color="primary" />
|
|
65
|
+
<SProgressCircular :value="75" :size="100" :width="8" color="primary">75%</SProgressCircular>
|
|
66
|
+
<SProgressCircular indeterminate :size="20" color="primary" />
|
|
67
|
+
|
|
68
|
+
<!-- Loading button: prefer the built-in prop -->
|
|
69
|
+
<SButton :loading="isSaving" color="primary">Save</SButton>
|
|
70
|
+
</template>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Gotchas
|
|
74
|
+
|
|
75
|
+
- ✅ Use `SButton`'s `loading` prop instead of putting a spinner inside a button by hand.
|
|
76
|
+
- ❌ `<SProgressCircular size="2rem">` → ✅ `:size="32"` (px number).
|
|
77
|
+
- `SProgressLinear` defaults to `color="info"`, not primary.
|
|
78
|
+
- `SProgressCircular` always reports `aria-valuenow="60"`. If accessibility matters, set your own `aria-valuenow`.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# SSheet
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SSheet } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
A plain surface with the app `card` background. It supports color, elevation, border, and size, and has no internal structure or padding. Use it for colored or elevated containers. For title/text/actions structure, use `SCard` ([cards.md](./cards.md)).
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsSheet.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `color` | `string` | `undefined` | Background: preset/app color name or CSS color |
|
|
14
|
+
| `colorThreshold` | `number` | `undefined` | Luminance threshold used to pick light/dark text on a custom color |
|
|
15
|
+
| `theme` | `'light' \| 'dark'` | `undefined` | Force light/dark text styling |
|
|
16
|
+
| `elevation` | `0`–`24` (number or numeric string) | `undefined` (no shadow) | Shadow depth |
|
|
17
|
+
| `outlined` | `boolean` | `false` | Border |
|
|
18
|
+
| `underlined` | `boolean` | `false` | Bottom border only |
|
|
19
|
+
| `borderRadius` | `'tile' \| 'rounded' \| number \| '<n>px' \| '<n>rem' \| '<n>%' \| …` | `undefined` | Border radius |
|
|
20
|
+
| `tag` | `string` (HTML tag) | `'div'` | Root element |
|
|
21
|
+
| `width` / `height` | `string \| number` | `undefined` | Dimensions |
|
|
22
|
+
| `maxWidth` / `maxHeight` | `string \| number` | `undefined` | Max dimensions |
|
|
23
|
+
| `minWidth` / `minHeight` | `string \| number` | `undefined` | Min dimensions |
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
| Slot | Description |
|
|
28
|
+
|------|-------------|
|
|
29
|
+
| `default` | Sheet content |
|
|
30
|
+
|
|
31
|
+
## Events
|
|
32
|
+
|
|
33
|
+
None.
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```vue
|
|
38
|
+
<SSheet color="primary" :elevation="2" class="s_pa__4">
|
|
39
|
+
Content on a colored surface
|
|
40
|
+
</SSheet>
|
|
41
|
+
|
|
42
|
+
<SSheet outlined class="s_pa__4">Outlined sheet</SSheet>
|
|
43
|
+
|
|
44
|
+
<SSheet :width="320" :height="200" :elevation="4" class="s_pa__4">
|
|
45
|
+
Fixed size surface
|
|
46
|
+
</SSheet>
|
|
47
|
+
|
|
48
|
+
<SSheet color="secondary" border-radius="tile">Tile sheet</SSheet>
|
|
49
|
+
|
|
50
|
+
<SSheet tag="section" :elevation="1">
|
|
51
|
+
<h2>Section heading</h2>
|
|
52
|
+
</SSheet>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Gotchas
|
|
56
|
+
|
|
57
|
+
- SSheet has no padding. Add it yourself (e.g. the `s_pa__4` utility class).
|
|
58
|
+
- SSheet has no `href`/`to`. For a clickable surface, use `SCard` with `to`/`href`.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# SSlideGroup / SSlideItem
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SSlideGroup, SSlideItem } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Horizontal strip of items with prev/next arrows (or native scrolling) and optional selection.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsSlideGroup.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SSlideGroup
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `modelValue` (`v-model`) | `GroupItemValue[] \| null` | `[]` | Selected item identifiers — **always an array**, even for single selection |
|
|
18
|
+
| `multiple` | `boolean` | `false` | Allow several selected items |
|
|
19
|
+
| `mandatory` | `boolean` | `false` | Keep at least one selected (auto-selects the first item when empty) |
|
|
20
|
+
| `scrollable` | `boolean \| null` | `false` | `true` = native swipe/scroll, **no arrows**. `false` = arrows (shown only when items overflow), no manual scrolling |
|
|
21
|
+
| `slideStep` | `number \| null` | `undefined` | Items to move per arrow click (default: one viewport width) |
|
|
22
|
+
| `centerActive` | `boolean` | `false` | Scroll the clicked/selected item to the center |
|
|
23
|
+
| `activeClass` | `string \| null` | `undefined` | Class added to selected items |
|
|
24
|
+
| `contentClass` | `string \| string[] \| Record<string, boolean>` | `undefined` | Class for the inner content row |
|
|
25
|
+
| `contentStyle` | `StyleValue` | `undefined` | Style for the inner content row |
|
|
26
|
+
|
|
27
|
+
`GroupItemValue` = `string | number | boolean | symbol`.
|
|
28
|
+
|
|
29
|
+
### Slots
|
|
30
|
+
|
|
31
|
+
| Slot | Scoped data | Description |
|
|
32
|
+
|------|-------------|-------------|
|
|
33
|
+
| `default` | — | `SSlideItem` components |
|
|
34
|
+
| `left` | `{ attrs: { disabled }, on: { click } }` | Custom "previous" button |
|
|
35
|
+
| `right` | `{ attrs: { disabled }, on: { click } }` | Custom "next" button |
|
|
36
|
+
|
|
37
|
+
### Events
|
|
38
|
+
|
|
39
|
+
| Event | Payload | Description |
|
|
40
|
+
|-------|---------|-------------|
|
|
41
|
+
| `update:modelValue` | `GroupItemValue[]` | Selection changed |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## SSlideItem
|
|
46
|
+
|
|
47
|
+
Must be inside `SSlideGroup` (throws otherwise). Clicking the item toggles its selection.
|
|
48
|
+
|
|
49
|
+
### Props
|
|
50
|
+
|
|
51
|
+
| Prop | Type | Default | Description |
|
|
52
|
+
|------|------|---------|-------------|
|
|
53
|
+
| `index` | `GroupItemValue \| null` | vnode `key` | Identifier stored in the group's `v-model`. Falls back to the `:key`, then to an auto id |
|
|
54
|
+
| `disabled` | `boolean` | `false` | Dim the item and block clicks |
|
|
55
|
+
| `activeClass` | `string \| null` | `undefined` | Class added when selected |
|
|
56
|
+
|
|
57
|
+
There is **no `value` prop** — use `index` or `:key`.
|
|
58
|
+
|
|
59
|
+
### Slots
|
|
60
|
+
|
|
61
|
+
| Slot | Scoped data | Description |
|
|
62
|
+
|------|-------------|-------------|
|
|
63
|
+
| `default` | `{ isSelected }` | Item content |
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Usage
|
|
68
|
+
|
|
69
|
+
```vue
|
|
70
|
+
<script setup lang="ts">
|
|
71
|
+
import { ref } from 'vue'
|
|
72
|
+
|
|
73
|
+
const selected = ref<string[]>([]) // single selection still uses an array
|
|
74
|
+
const activeFilters = ref<string[]>([])
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<template>
|
|
78
|
+
<!-- Single selection with arrows -->
|
|
79
|
+
<SSlideGroup v-model="selected" mandatory center-active>
|
|
80
|
+
<SSlideItem v-for="item in categories" :key="item.id" :index="item.id">
|
|
81
|
+
<template #default="{ isSelected }">
|
|
82
|
+
<SButton :color="isSelected ? 'primary' : undefined" :outlined="!isSelected">
|
|
83
|
+
{{ item.name }}
|
|
84
|
+
</SButton>
|
|
85
|
+
</template>
|
|
86
|
+
</SSlideItem>
|
|
87
|
+
</SSlideGroup>
|
|
88
|
+
|
|
89
|
+
<!-- Custom arrows -->
|
|
90
|
+
<SSlideGroup>
|
|
91
|
+
<template #left="{ attrs, on }">
|
|
92
|
+
<SButton variant="icon" v-bind="attrs" v-on="on"><SIcon icon="mdi-chevron-left" /></SButton>
|
|
93
|
+
</template>
|
|
94
|
+
<SSlideItem v-for="n in 10" :key="n">
|
|
95
|
+
<SCard :width="160"><SCardText>Item {{ n }}</SCardText></SCard>
|
|
96
|
+
</SSlideItem>
|
|
97
|
+
<template #right="{ on }">
|
|
98
|
+
<SButton variant="icon" v-on="on"><SIcon icon="mdi-chevron-right" /></SButton>
|
|
99
|
+
</template>
|
|
100
|
+
</SSlideGroup>
|
|
101
|
+
|
|
102
|
+
<!-- Filter chips, swipeable -->
|
|
103
|
+
<SSlideGroup v-model="activeFilters" multiple scrollable>
|
|
104
|
+
<SSlideItem v-for="filter in filters" :key="filter.value" :index="filter.value">
|
|
105
|
+
<template #default="{ isSelected }">
|
|
106
|
+
<SChip :color="isSelected ? 'primary' : undefined">{{ filter.label }}</SChip>
|
|
107
|
+
</template>
|
|
108
|
+
</SSlideItem>
|
|
109
|
+
</SSlideGroup>
|
|
110
|
+
</template>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Gotchas
|
|
114
|
+
|
|
115
|
+
| ❌ | ✅ |
|
|
116
|
+
|----|----|
|
|
117
|
+
| `const selected = ref('a')` | `const selected = ref(['a'])` — a bare string is spread into characters |
|
|
118
|
+
| `<SSlideItem :value="id">` | `<SSlideItem :index="id">` (or rely on `:key`) |
|
|
119
|
+
| `#default="{ isSelected, select }"` + `@click="select"` | Only `isSelected` exists; the item itself toggles on click |
|
|
120
|
+
| `scrollable` to get arrows | Arrows appear when `scrollable` is **off** and items overflow |
|
|
121
|
+
|
|
122
|
+
- The `right` slot's `attrs.disabled` mirrors the *previous* button's state — compute your own disabled state for a custom "next" button if needed.
|
|
123
|
+
- `disabled` on an item blocks clicks via CSS (`pointer-events: none`) and dims it.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# SSnackbar
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SSnackbar } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Brief, non-blocking message fixed to the bottom (default) or top of the screen. Offsets itself above an `SBottomNavigation` / below an `SAppBar` from the layout.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsSnackbar.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `timeout` | `number \| null` | `undefined` | Auto-close after N ms. Unset/`0` = stays until `v-model` is set to `false` |
|
|
14
|
+
| `location` | `'bottom' \| 'top' \| null` | `undefined` (bottom) | Screen edge |
|
|
15
|
+
| `multiLine` | `boolean \| null` | `false` | Wrap long text instead of truncating with ellipsis |
|
|
16
|
+
| `disabled` | `boolean` | `false` | Passed to the activator via `attrs` |
|
|
17
|
+
|
|
18
|
+
## Model
|
|
19
|
+
|
|
20
|
+
`v-model: boolean` — visibility. The timeout restarts each time it becomes `true`.
|
|
21
|
+
|
|
22
|
+
## Slots
|
|
23
|
+
|
|
24
|
+
| Slot | Scoped data | Description |
|
|
25
|
+
|------|-------------|-------------|
|
|
26
|
+
| `activator` | `{ on, attrs }` | Optional trigger; bind both `v-on="on"` and `v-bind="attrs"` |
|
|
27
|
+
| `default` | — | Message |
|
|
28
|
+
| `action` | — | Buttons on the right |
|
|
29
|
+
|
|
30
|
+
## Events
|
|
31
|
+
|
|
32
|
+
None — use `v-model`.
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
```vue
|
|
37
|
+
<SButton @click="saved = true">Save</SButton>
|
|
38
|
+
<SSnackbar v-model="saved" :timeout="4000">Item saved.</SSnackbar>
|
|
39
|
+
|
|
40
|
+
<SSnackbar v-model="offline" location="top">
|
|
41
|
+
Connection lost.
|
|
42
|
+
<template #action>
|
|
43
|
+
<SButton variant="text" color="primary" @click="retry">Retry</SButton>
|
|
44
|
+
<SButton variant="icon" @click="offline = false"><SIcon icon="mdi-close" /></SButton>
|
|
45
|
+
</template>
|
|
46
|
+
</SSnackbar>
|
|
47
|
+
|
|
48
|
+
<SSnackbar v-model="error" multi-line>
|
|
49
|
+
A longer message that needs to wrap onto multiple lines.
|
|
50
|
+
</SSnackbar>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Gotchas
|
|
54
|
+
|
|
55
|
+
- No `color` prop — colors come from the theme's `snackbar` color.
|
|
56
|
+
- `outlined`, `underlined` and `borderRadius` appear in the prop types but are not applied.
|
|
57
|
+
- Without `timeout`, provide a close action in `#action`.
|
|
58
|
+
- Single-line by default: long text is cut with an ellipsis — use `multi-line`.
|
|
59
|
+
- The app must be wrapped in `<SApp>` (the snackbar teleports into its overlay container).
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# SSplitView
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SSplitView, SSplitViewItem } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Resizable panes separated by mouse-draggable dividers.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsSplitView.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SSplitView
|
|
12
|
+
|
|
13
|
+
| Prop | Type | Default | Description |
|
|
14
|
+
|------|------|---------|-------------|
|
|
15
|
+
| `vertical` | `boolean` | `false` | Stack panes top/bottom instead of side by side |
|
|
16
|
+
| `height` | `string \| number` | `'100%'` | Container height (number = px) |
|
|
17
|
+
| `width` | `string \| number` | `'100%'` | Container width (number = px) |
|
|
18
|
+
|
|
19
|
+
No min/max size props.
|
|
20
|
+
|
|
21
|
+
| Slot | Description |
|
|
22
|
+
|------|-------------|
|
|
23
|
+
| `default` | `SSplitViewItem` components |
|
|
24
|
+
|
|
25
|
+
No events.
|
|
26
|
+
|
|
27
|
+
## SSplitViewItem
|
|
28
|
+
|
|
29
|
+
No props. Renders the pane plus a resize handle after it. The last item's handle is hidden.
|
|
30
|
+
|
|
31
|
+
| Slot | Description |
|
|
32
|
+
|------|-------------|
|
|
33
|
+
| `default` | Pane content |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<template>
|
|
41
|
+
<SSplitView :height="500">
|
|
42
|
+
<SSplitViewItem><nav>File browser</nav></SSplitViewItem>
|
|
43
|
+
<SSplitViewItem><main>Editor</main></SSplitViewItem>
|
|
44
|
+
</SSplitView>
|
|
45
|
+
|
|
46
|
+
<SSplitView vertical height="600px">
|
|
47
|
+
<SSplitViewItem>Code</SSplitViewItem>
|
|
48
|
+
<SSplitViewItem>Terminal</SSplitViewItem>
|
|
49
|
+
</SSplitView>
|
|
50
|
+
</template>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Gotchas
|
|
54
|
+
|
|
55
|
+
- ❌ `max-height`, `min-width`, `max-width`, `min-height` props: they don't exist. Constrain with CSS on a wrapper.
|
|
56
|
+
- The default `height: '100%'` collapses when the parent has no height. Give the split view or its parent an explicit height.
|
|
57
|
+
- Resizing works with the mouse only (no touch). Dragging a handle resizes the pane before it.
|
|
58
|
+
- `SSplitViewItem` has two root elements, so `class` / `style` on it are not applied. Style an inner element instead.
|
|
59
|
+
- Panes already scroll vertically (`overflow-y: auto`). Horizontal overflow is yours to handle.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# SStepper
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SStepper, SStepperStep } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Step indicator for wizards. It renders the step headers only. You render each step's content yourself with `v-if` on the step number.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsStepper.d.ts`, `propsStepperStep.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SStepper
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `modelValue` | `number` | `undefined` | Current step number (use `v-model`) |
|
|
18
|
+
| `items` | `Array<{ step: number; text?: string; editable?: boolean }>` | `[]` | Step definitions. Used only when the default slot is empty |
|
|
19
|
+
| `shrink` | `boolean` | `false` | Shrink to content width |
|
|
20
|
+
|
|
21
|
+
`tag` exists in the type but is ignored (root is always a `div`).
|
|
22
|
+
|
|
23
|
+
### Slots
|
|
24
|
+
|
|
25
|
+
| Slot | Scoped data | Description |
|
|
26
|
+
|------|-------------|-------------|
|
|
27
|
+
| `default` | `{ value }` (current step) | `SStepperStep` components. Replaces `items` rendering |
|
|
28
|
+
|
|
29
|
+
### Events
|
|
30
|
+
|
|
31
|
+
| Event | Payload | Description |
|
|
32
|
+
|-------|---------|-------------|
|
|
33
|
+
| `update:modelValue` | `number` | Emitted when an `editable` step is clicked. Clamped to the lowest/highest registered step |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## SStepperStep
|
|
38
|
+
|
|
39
|
+
| Prop | Type | Default | Description |
|
|
40
|
+
|------|------|---------|-------------|
|
|
41
|
+
| `step` | `number` | **required** | Step number |
|
|
42
|
+
| `editable` | `boolean` | `false` | Clicking the step jumps to it (forward or back) |
|
|
43
|
+
| `disabled` | `boolean` | `false` | Disabled styling only. Does not block clicks on an `editable` step |
|
|
44
|
+
|
|
45
|
+
| Slot | Description |
|
|
46
|
+
|------|-------------|
|
|
47
|
+
| `default` | Step label |
|
|
48
|
+
|
|
49
|
+
Steps with `step < modelValue` show a checkmark (visited). `step === modelValue` is current. Must be a child of `SStepper` (throws otherwise).
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Usage
|
|
54
|
+
|
|
55
|
+
```vue
|
|
56
|
+
<script setup lang="ts">
|
|
57
|
+
import { ref } from 'vue'
|
|
58
|
+
import { SStepper, SStepperStep, SButton } from '@khsura/sui'
|
|
59
|
+
|
|
60
|
+
const step = ref(1)
|
|
61
|
+
const steps = [
|
|
62
|
+
{ step: 1, text: 'Account', editable: true },
|
|
63
|
+
{ step: 2, text: 'Details', editable: true },
|
|
64
|
+
{ step: 3, text: 'Review' },
|
|
65
|
+
]
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<template>
|
|
69
|
+
<SStepper v-model="step" :items="steps" />
|
|
70
|
+
|
|
71
|
+
<div v-if="step === 1">…<SButton color="primary" @click="step++">Next</SButton></div>
|
|
72
|
+
<div v-else-if="step === 2">
|
|
73
|
+
<SButton @click="step--">Back</SButton>
|
|
74
|
+
<SButton color="primary" @click="step++">Next</SButton>
|
|
75
|
+
</div>
|
|
76
|
+
<div v-else>Review…</div>
|
|
77
|
+
|
|
78
|
+
<!-- Slot composition -->
|
|
79
|
+
<SStepper v-model="step">
|
|
80
|
+
<SStepperStep :step="1" editable>Account</SStepperStep>
|
|
81
|
+
<SStepperStep :step="2" editable>Details</SStepperStep>
|
|
82
|
+
<SStepperStep :step="3">Review</SStepperStep>
|
|
83
|
+
</SStepper>
|
|
84
|
+
</template>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Gotchas
|
|
88
|
+
|
|
89
|
+
- Step numbers are whatever you pass to `step`. 1-based is a convention, not a rule.
|
|
90
|
+
- The stepper never advances by itself. Only clicks on `editable` steps emit. Next/Back buttons must update the model.
|
|
91
|
+
- Add `editable` to every step a user may click, including future steps (it does not restrict clicks to visited steps).
|
|
92
|
+
- Validate in your Next handler before changing `step`. `disabled` will not stop an editable step from being clicked.
|