@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,151 @@
|
|
|
1
|
+
# STable
|
|
2
|
+
|
|
3
|
+
**Import:** `import { STable } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Data table with client-side sorting, selection and expansion state, grouping (optionally foldable), sticky header and columns, row header/footer rows, and optional pagination. `STableHeadCell` and `STableBodyCell` are also exported, but they are internal building blocks. `STablePagination` is **not** exported.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsTable.d.ts`. The `TableHeader`, `TableItemClass`, and `TableSortOrder` types are exported from `@khsura/sui`.
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `headers` | `TableHeader[]` | **required** | Column definitions (see below) |
|
|
14
|
+
| `items` | `T[]` | **required** | Row objects |
|
|
15
|
+
| `itemKey` | `string` | first header's `value` | Field used to match **expanded** rows |
|
|
16
|
+
| `dense` | `boolean` | `false` | Compact cells |
|
|
17
|
+
| `loading` | `boolean` | `false` | Indeterminate progress bar. Hides the no-data row |
|
|
18
|
+
| `outlined` / `underlined` | `boolean` | `false` | Border styles |
|
|
19
|
+
| `rounded` / `tile` | `boolean` | `false` | Declared, but **no effect** (the table never reads them) |
|
|
20
|
+
| `hideHeader` | `boolean` | `false` | Hide `<thead>` |
|
|
21
|
+
| `hideVerticalBorders` | `boolean` | `false` | Remove column borders |
|
|
22
|
+
| `hideTopBottomBorders` | `boolean` | `false` | Remove outer top/bottom borders |
|
|
23
|
+
| `hidePagination` | `boolean` | `false` | Hides the pager only when `itemsPerPage` is unset or greater than the total |
|
|
24
|
+
| `stickyHeader` | `boolean` | `false` | Sticky header row (give the table a height limit) |
|
|
25
|
+
| `multiSort` | `boolean` | `false` | Sort by several columns |
|
|
26
|
+
| `groupBy` | `string \| string[]` | `undefined` | Group rows by item field(s). Group name = values joined with a space |
|
|
27
|
+
| `foldable` | `boolean` | `false` | Clicking a group row collapses or expands it |
|
|
28
|
+
| `selected` | `T[]` | `undefined` | Selected rows (`v-model:selected`) |
|
|
29
|
+
| `singleSelect` | `boolean` | `false` | At most one selected row |
|
|
30
|
+
| `expanded` | `T[]` | `undefined` | Expanded rows (`v-model:expanded`) |
|
|
31
|
+
| `singleExpand` | `boolean` | `false` | At most one expanded row |
|
|
32
|
+
| `shadowExpandedContent` | `boolean` | `false` | Inner shadow on expanded content |
|
|
33
|
+
| `totalItems` | `number` | `undefined` | Server-side total. When it is greater than `items.length`, items are **not** sliced per page |
|
|
34
|
+
| `itemsPerPageLabel` | `string` | `'Items per page: '` | Pager label text |
|
|
35
|
+
| `noDataText` | `string` | i18n `table.noData` → `'No data'` | Empty-state text (`#noData` slot overrides it) |
|
|
36
|
+
| `itemClass` / `itemStyle` | `TableItemClass<T>` / `TableItemStyle<T>` | `undefined` | Per-cell class/style (value or `({ item, cellKey, cellType }) => …`) |
|
|
37
|
+
| `itemRowClass` | `TableRowClass<T>` | `undefined` | `<tr>` class (value or `({ item, cellType }) => …`) |
|
|
38
|
+
| `itemHeader` / `itemFooter` | `string` | `''` | Item field. When it is truthy on a row, a full-width row is rendered above/below that row |
|
|
39
|
+
| `itemHeaderClass` / `itemHeaderStyle` / `itemFooterClass` / `itemFooterStyle` | as `itemClass` / `itemStyle` | `undefined` | Styling for those rows |
|
|
40
|
+
| `stickyLeftColumnsStart` | `number` | `0` | Index of the first left-sticky column |
|
|
41
|
+
| `stickyLeftColumnsSize` | `number` | `0` | Number of left-sticky columns (sticking activates on horizontal scroll) |
|
|
42
|
+
| `stickyLeftColumnsOffset` | `number` | `undefined` | Extra columns counted before sticking activates |
|
|
43
|
+
| `stickyRightColumn` | `boolean` | — | Stick the last column to the right |
|
|
44
|
+
|
|
45
|
+
### TableHeader
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
interface TableHeader {
|
|
49
|
+
text: string // heading text
|
|
50
|
+
value: string // item field; also the slot suffix: #item.<value>, #header.<value>
|
|
51
|
+
align?: 'start' | 'center' | 'end'
|
|
52
|
+
sortable?: boolean // sort button shown ONLY when true
|
|
53
|
+
sort?: (a, b, order?: TableSortOrder) => number
|
|
54
|
+
width?: string | number
|
|
55
|
+
textWrap?: boolean
|
|
56
|
+
noGutters?: boolean // header cell
|
|
57
|
+
cellNoGutters?: boolean // body cells
|
|
58
|
+
class?: string | string[] | Record<string, boolean>
|
|
59
|
+
cellClass?: TableItemClass
|
|
60
|
+
cellStyle?: TableItemStyle
|
|
61
|
+
scope?: 'colgroup' | 'col' // two-row grouped headers
|
|
62
|
+
colspan?: number
|
|
63
|
+
rowspan?: number
|
|
64
|
+
groupable?: boolean
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Models
|
|
69
|
+
|
|
70
|
+
- `v-model:selected`: `T[]`
|
|
71
|
+
- `v-model:expanded`: `T[]`
|
|
72
|
+
- `v-model:items-per-page`: `number`. **The pager is rendered only when this is set.** Options are 10/25/50/100 plus your value.
|
|
73
|
+
- `v-model:folded`: `boolean | string[]`, the collapsed group names (`true` = all collapsed). Default `[]`. Works without binding.
|
|
74
|
+
|
|
75
|
+
## Events
|
|
76
|
+
|
|
77
|
+
| Event | Payload | Description |
|
|
78
|
+
|-------|---------|-------------|
|
|
79
|
+
| `click:row` | `{ item, expand: () => void, isExpanded: boolean }` | A body row was clicked. Rows do **not** expand on their own: call `expand()` |
|
|
80
|
+
| `update:options` | `{ pageIndex, itemsPerPage, sortBy: { key, order }[] }` | Emitted when the page or page size changes (not when the sort changes) |
|
|
81
|
+
| `update:selected` / `update:expanded` | `T[]` | Model updates |
|
|
82
|
+
|
|
83
|
+
## Slots
|
|
84
|
+
|
|
85
|
+
| Slot | Props | Description |
|
|
86
|
+
|------|-------|-------------|
|
|
87
|
+
| `item.<value>` | `{ item, value, header, row, col, group, select, expand, isSelected, isExpanded, isLeftSticked }` | Body cell |
|
|
88
|
+
| `header.<value>` | `{ header, isSticked }` | Header cell content |
|
|
89
|
+
| `group` | `{ group, items, isFolded, toggleFold }` | Group row content (default: the group name) |
|
|
90
|
+
| `itemHeader` / `itemFooter` | `{ item, value, row, group, select, expand, isSelected, isExpanded, … }` | Full-width rows from `itemHeader`/`itemFooter` |
|
|
91
|
+
| `expanded` | `{ item }` | Content of an expanded row |
|
|
92
|
+
| `noData` | — | Empty state |
|
|
93
|
+
| `itemsPerPageLabel` | — | Pager label |
|
|
94
|
+
|
|
95
|
+
## Usage
|
|
96
|
+
|
|
97
|
+
```vue
|
|
98
|
+
<script setup lang="ts">
|
|
99
|
+
import type { TableHeader } from '@khsura/sui'
|
|
100
|
+
|
|
101
|
+
const headers: TableHeader[] = [
|
|
102
|
+
{ text: 'Select', value: 'select' },
|
|
103
|
+
{ text: 'Name', value: 'name', sortable: true },
|
|
104
|
+
{ text: 'Role', value: 'role' },
|
|
105
|
+
{ text: '', value: 'actions', align: 'end' },
|
|
106
|
+
]
|
|
107
|
+
const items = ref([
|
|
108
|
+
{ id: 1, name: 'Alice', role: 'Admin' },
|
|
109
|
+
{ id: 2, name: 'Bob', role: 'User' },
|
|
110
|
+
])
|
|
111
|
+
const selected = ref([])
|
|
112
|
+
const expanded = ref([])
|
|
113
|
+
const perPage = ref(10)
|
|
114
|
+
</script>
|
|
115
|
+
|
|
116
|
+
<template>
|
|
117
|
+
<STable
|
|
118
|
+
:headers="headers" :items="items" item-key="id"
|
|
119
|
+
v-model:selected="selected" v-model:expanded="expanded" v-model:items-per-page="perPage"
|
|
120
|
+
@click:row="({ expand }) => expand()"
|
|
121
|
+
>
|
|
122
|
+
<template #item.select="{ isSelected, select }">
|
|
123
|
+
<SCheckbox :model-value="isSelected" @update:model-value="select()" />
|
|
124
|
+
</template>
|
|
125
|
+
<template #item.actions="{ item }">
|
|
126
|
+
<SButton variant="icon" @click.stop="edit(item)"><SIcon icon="mdi-pencil" /></SButton>
|
|
127
|
+
</template>
|
|
128
|
+
<template #expanded="{ item }">
|
|
129
|
+
<div class="s_pa__4">Details for {{ item.name }}</div>
|
|
130
|
+
</template>
|
|
131
|
+
</STable>
|
|
132
|
+
|
|
133
|
+
<!-- Foldable groups, all collapsed initially -->
|
|
134
|
+
<STable :headers="headers" :items="items" group-by="role" foldable v-model:folded="folded">
|
|
135
|
+
<template #group="{ group, items, isFolded }">{{ group }} ({{ items.length }})</template>
|
|
136
|
+
</STable>
|
|
137
|
+
</template>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Gotchas
|
|
141
|
+
|
|
142
|
+
| ❌ | ✅ |
|
|
143
|
+
|----|----|
|
|
144
|
+
| `{ key: 'name', title: 'Name' }` | `{ text: 'Name', value: 'name' }`. Using `key` throws a `TypeError` (`value` is undefined) |
|
|
145
|
+
| `#item.name` slot with a header whose `value` is not `'name'` | The slot suffix is the header's `value` |
|
|
146
|
+
| Expecting a built-in checkbox column with `v-model:selected` | No select column exists. Render one with `select` / `isSelected` from the slot scope |
|
|
147
|
+
| Expecting a column to be sortable by default | Set `sortable: true` per header |
|
|
148
|
+
| Expecting a pager by default | Bind `v-model:items-per-page` |
|
|
149
|
+
| Waiting for `update:options` to fetch on sort change | It fires only for page/page-size changes. Sorting is always client-side |
|
|
150
|
+
| Rebuilding item objects and expecting `selected` to persist | Selection matches by **object identity** (`itemKey` applies only to expansion) |
|
|
151
|
+
| Buttons inside a row also trigger `click:row` | Use `@click.stop` |
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# STabs
|
|
2
|
+
|
|
3
|
+
**Import:** `import { STabs, STab } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Single-select tab strip, built on the toggle-button group. It renders only the tab buttons. You render the panels yourself, usually with `v-if` / `v-show` on the model. Or pair it with [SWindow](./window.md) for sliding panels.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsTabs.d.ts`, `propsTab.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## STabs
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `modelValue` | `string \| number` | **required** | Active tab's `tab` value (use `v-model`) |
|
|
18
|
+
| `dense` | `boolean` | `false` | Compact tab height |
|
|
19
|
+
| `bordered` | `boolean` | `false` | Bordered strip |
|
|
20
|
+
| `selectedTabColor` | `string` | `'primary'` | Color of the active tab button |
|
|
21
|
+
| `shrink` | `boolean` | `false` | Tabs size to their content instead of stretching |
|
|
22
|
+
| `outlined` | `boolean \| null` | `undefined` | Outlined border on the strip |
|
|
23
|
+
| `underlined` | `boolean \| null` | `undefined` | Bottom-border style on the strip (not an active-tab indicator) |
|
|
24
|
+
| `borderRadius` | `'tile' \| 'rounded' \| number \| string \| null` | `undefined` | Strip border radius |
|
|
25
|
+
|
|
26
|
+
Always exactly one tab active (mandatory, single-select).
|
|
27
|
+
|
|
28
|
+
### Slots
|
|
29
|
+
|
|
30
|
+
| Slot | Description |
|
|
31
|
+
|------|-------------|
|
|
32
|
+
| `default` | `STab` components |
|
|
33
|
+
|
|
34
|
+
### Events
|
|
35
|
+
|
|
36
|
+
| Event | Payload | Description |
|
|
37
|
+
|-------|---------|-------------|
|
|
38
|
+
| `update:modelValue` | `string \| number` | Active tab changed |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## STab
|
|
43
|
+
|
|
44
|
+
| Prop | Type | Default | Description |
|
|
45
|
+
|------|------|---------|-------------|
|
|
46
|
+
| `tab` | `string \| number` | **required** | Identifier matched against `STabs` model |
|
|
47
|
+
| `disabled` | `boolean` | `false` | Disable this tab |
|
|
48
|
+
| `cols` / `sm` / `md` / `lg` | `1–12 \| 'auto' \| 'grow'` (or string form) | `undefined` | Grid column width per breakpoint (no `xl`) |
|
|
49
|
+
| `order` | `number` | `undefined` | Flex order |
|
|
50
|
+
| `alignSelf` | CSS `align-self` value | `undefined` | Flex alignment |
|
|
51
|
+
|
|
52
|
+
| Slot | Description |
|
|
53
|
+
|------|-------------|
|
|
54
|
+
| `default` | Tab label |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Usage
|
|
59
|
+
|
|
60
|
+
```vue
|
|
61
|
+
<script setup lang="ts">
|
|
62
|
+
import { ref } from 'vue'
|
|
63
|
+
import { STabs, STab } from '@khsura/sui'
|
|
64
|
+
|
|
65
|
+
const active = ref<'overview' | 'api'>('overview')
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<template>
|
|
69
|
+
<STabs v-model="active" bordered dense selected-tab-color="secondary">
|
|
70
|
+
<STab tab="overview">Overview</STab>
|
|
71
|
+
<STab tab="api">API</STab>
|
|
72
|
+
<STab tab="examples" disabled>Examples</STab>
|
|
73
|
+
</STabs>
|
|
74
|
+
|
|
75
|
+
<!-- v-show keeps panel state; v-if unmounts hidden panels -->
|
|
76
|
+
<section v-show="active === 'overview'">Overview content</section>
|
|
77
|
+
<section v-show="active === 'api'">API content</section>
|
|
78
|
+
</template>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Gotchas
|
|
82
|
+
|
|
83
|
+
| ❌ | ✅ |
|
|
84
|
+
|----|----|
|
|
85
|
+
| `<STab value="a">` / `<STab :index="0">` | `<STab tab="a">`. The identifier prop is `tab` |
|
|
86
|
+
| `<STabs>` without `v-model` | `modelValue` is required |
|
|
87
|
+
| Panels that slide between tabs | Bind the same model to [SWindow](./window.md) with `SWindowItem value` = the `STab tab` |
|
|
88
|
+
| `underlined` to get an active underline | It styles the strip's border. Use `selectedTabColor` for the active state |
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# SToggleButtonGroup / SToggleButton
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SToggleButtonGroup, SToggleButton } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Row of toggle buttons with single or multiple selection.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsToggleButtonGroup.d.ts`, `propsToggleButton.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SToggleButtonGroup
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `modelValue` (`v-model`) | `GroupItemValue[] \| null` | `[]` | Selected button identifiers — **always an array**, even for single selection |
|
|
18
|
+
| `multiple` | `boolean` | `false` | Allow several selected buttons |
|
|
19
|
+
| `mandatory` | `boolean` | `false` | Keep one selected (auto-selects the first button when empty) |
|
|
20
|
+
| `selectedColor` | `string` | `'primary'` | Color of the selected button |
|
|
21
|
+
| `variant` | `'underlined' \| 'inset' \| null` | `undefined` | `underlined` = underline the selected button; `inset` = segmented/pill look |
|
|
22
|
+
| `dense` | `boolean` | `false` | Compact (small-size) buttons |
|
|
23
|
+
| `bordered` | `boolean` | `false` | Border around the group and between buttons (ignored with `inset`) |
|
|
24
|
+
| `shrink` | `boolean` | `false` | Buttons size to content instead of stretching |
|
|
25
|
+
| `outlined` | `boolean \| null` | `undefined` | Outlined group border |
|
|
26
|
+
| `underlined` | `boolean \| null` | `undefined` | Underlined group border |
|
|
27
|
+
| `borderRadius` | `'tile' \| 'rounded' \| number \| '<n>px' \| ...` | `undefined` | Group corner radius |
|
|
28
|
+
|
|
29
|
+
`GroupItemValue` = `string | number | boolean | symbol`. (`nowrap` is typed but has no effect.)
|
|
30
|
+
|
|
31
|
+
### Slots
|
|
32
|
+
|
|
33
|
+
| Slot | Description |
|
|
34
|
+
|------|-------------|
|
|
35
|
+
| `default` | `SToggleButton` components |
|
|
36
|
+
|
|
37
|
+
### Events
|
|
38
|
+
|
|
39
|
+
| Event | Payload | Description |
|
|
40
|
+
|-------|---------|-------------|
|
|
41
|
+
| `update:modelValue` | `GroupItemValue[]` | Selection changed |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## SToggleButton
|
|
46
|
+
|
|
47
|
+
Must be inside `SToggleButtonGroup` (throws otherwise).
|
|
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 `:key`, then an auto id |
|
|
54
|
+
| `disabled` | `boolean` | `false` | Disable this button |
|
|
55
|
+
| `cols` / `sm` / `md` / `lg` | `1–12 \| 'auto' \| 'grow'` | `undefined` | Grid column width of the button |
|
|
56
|
+
| `order` | `number` | `undefined` | Flex order |
|
|
57
|
+
| `alignSelf` | CSS `align-self` value | `undefined` | Alignment |
|
|
58
|
+
|
|
59
|
+
There is **no `value` prop** — use `index` or `:key`.
|
|
60
|
+
|
|
61
|
+
### Slots
|
|
62
|
+
|
|
63
|
+
| Slot | Description |
|
|
64
|
+
|------|-------------|
|
|
65
|
+
| `default` | Button content |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Usage
|
|
70
|
+
|
|
71
|
+
```vue
|
|
72
|
+
<script setup lang="ts">
|
|
73
|
+
import { ref } from 'vue'
|
|
74
|
+
|
|
75
|
+
const view = ref<string[]>(['list']) // single select: still an array
|
|
76
|
+
const fontStyles = ref<string[]>(['bold'])
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<template>
|
|
80
|
+
<!-- Single select -->
|
|
81
|
+
<SToggleButtonGroup v-model="view" mandatory>
|
|
82
|
+
<SToggleButton index="list"><SIcon icon="mdi-view-list" /></SToggleButton>
|
|
83
|
+
<SToggleButton index="grid"><SIcon icon="mdi-view-grid" /></SToggleButton>
|
|
84
|
+
</SToggleButtonGroup>
|
|
85
|
+
<!-- current view: view[0] -->
|
|
86
|
+
|
|
87
|
+
<!-- Multi-select -->
|
|
88
|
+
<SToggleButtonGroup v-model="fontStyles" multiple shrink>
|
|
89
|
+
<SToggleButton index="bold"><b>B</b></SToggleButton>
|
|
90
|
+
<SToggleButton index="italic"><i>I</i></SToggleButton>
|
|
91
|
+
<SToggleButton index="underline"><u>U</u></SToggleButton>
|
|
92
|
+
</SToggleButtonGroup>
|
|
93
|
+
|
|
94
|
+
<!-- From a list: :key doubles as the identifier -->
|
|
95
|
+
<SToggleButtonGroup v-model="align" mandatory dense bordered selected-color="secondary">
|
|
96
|
+
<SToggleButton v-for="a in ['left', 'center', 'right']" :key="a">
|
|
97
|
+
<SIcon :icon="`mdi-format-align-${a}`" />
|
|
98
|
+
</SToggleButton>
|
|
99
|
+
</SToggleButtonGroup>
|
|
100
|
+
</template>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Gotchas
|
|
104
|
+
|
|
105
|
+
| ❌ | ✅ |
|
|
106
|
+
|----|----|
|
|
107
|
+
| `<SToggleButton value="list">` | `<SToggleButton index="list">` (or `:key`) |
|
|
108
|
+
| `const view = ref('list')` | `const view = ref(['list'])`; read `view.value[0]` |
|
|
109
|
+
| `variant="inset"` in a dark theme | Inset uses a fixed light background (`#eeeef0`) — text is unreadable on dark themes; use the default or `underlined` variant there |
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# SToolbar
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SToolbar, SToolbarTitle, SSpacer } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Toolbar / app bar with an optional extension row. `SToolbarItem` is also exported but renders an empty element (see Gotchas).
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsToolbar.d.ts`, `propsToolbarTitle.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SToolbar
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `color` | `string` | `undefined` | Background color (preset or CSS). Child `SButton`s and `SToolbarTitle` adapt to it |
|
|
18
|
+
| `colorThreshold` | `number` | `undefined` | Contrast threshold for the dark/light text decision |
|
|
19
|
+
| `elevation` | `0–24` | `undefined` | Shadow depth |
|
|
20
|
+
| `density` | `'default' \| 'comfortable' \| 'compact'` | `undefined` | Reduces the main row by 0 / 8 / 16 px and the extension by 0 / 4 / 8 px |
|
|
21
|
+
| `height` | `number \| string` | `64` | Main row height |
|
|
22
|
+
| `extended` | `boolean` | `false` | Show the extension row |
|
|
23
|
+
| `extensionHeight` | `number \| string` | `48` | Extension row height |
|
|
24
|
+
| `extensionClass` | `string \| Record<string, boolean>` | `undefined` | Class for the extension row |
|
|
25
|
+
| `extensionStyle` | `Record<string, string>` | `undefined` | Style for the extension row |
|
|
26
|
+
| `contentClass` / `contentStyle` | class / style | `undefined` | Class/style for the main content row |
|
|
27
|
+
| `position` | `'static' \| 'fixed' \| 'absolute' \| 'relative' \| 'sticky'` | `undefined` | CSS position |
|
|
28
|
+
| `outlined` / `underlined` | `boolean` | `undefined` | Border styles |
|
|
29
|
+
| `borderRadius` | `'tile' \| 'rounded' \| number \| string` | `undefined` | Border radius |
|
|
30
|
+
| `tag` | `string` | `'div'` | Root HTML element |
|
|
31
|
+
|
|
32
|
+
`title` is declared but **never rendered**. Use `SToolbarTitle`.
|
|
33
|
+
|
|
34
|
+
### Slots
|
|
35
|
+
|
|
36
|
+
| Slot | Description |
|
|
37
|
+
|------|-------------|
|
|
38
|
+
| `default` | Main row content (horizontal flex) |
|
|
39
|
+
| `prepend` | Separate **row above** the main row |
|
|
40
|
+
| `append` | Separate **row below** the main row (and below the extension) |
|
|
41
|
+
| `extension` | Extension row. Only shown with `extended` |
|
|
42
|
+
|
|
43
|
+
The toolbar root is a column flexbox, so `prepend` / `append` are rows, **not** left/right items.
|
|
44
|
+
|
|
45
|
+
No events.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## SToolbarTitle
|
|
50
|
+
|
|
51
|
+
| Prop | Type | Default | Description |
|
|
52
|
+
|------|------|---------|-------------|
|
|
53
|
+
| `text` | `string \| null` | `undefined` | Title text (if no slot) |
|
|
54
|
+
| `tag` | `string` | `'div'` | Root element |
|
|
55
|
+
|
|
56
|
+
| Slot | Description |
|
|
57
|
+
|------|-------------|
|
|
58
|
+
| `default` | Title content |
|
|
59
|
+
| `text` | Alternative to the default slot |
|
|
60
|
+
|
|
61
|
+
Renders nothing when it has no slot content and no `text`. Its color comes from the parent toolbar.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Usage
|
|
66
|
+
|
|
67
|
+
```vue
|
|
68
|
+
<template>
|
|
69
|
+
<SToolbar color="primary">
|
|
70
|
+
<SButton variant="icon" @click="toggleDrawer"><SIcon icon="mdi-menu" /></SButton>
|
|
71
|
+
<SToolbarTitle>Dashboard</SToolbarTitle>
|
|
72
|
+
<SSpacer />
|
|
73
|
+
<SButton variant="icon"><SIcon icon="mdi-account" /></SButton>
|
|
74
|
+
</SToolbar>
|
|
75
|
+
|
|
76
|
+
<!-- Extension row with tabs -->
|
|
77
|
+
<SToolbar color="primary" extended>
|
|
78
|
+
<SToolbarTitle text="Page title" />
|
|
79
|
+
<template #extension>
|
|
80
|
+
<STabs v-model="tab" style="width: 100%">
|
|
81
|
+
<STab :tab="0">Tab 1</STab>
|
|
82
|
+
<STab :tab="1">Tab 2</STab>
|
|
83
|
+
</STabs>
|
|
84
|
+
</template>
|
|
85
|
+
</SToolbar>
|
|
86
|
+
|
|
87
|
+
<SToolbar color="surface" density="compact" outlined>
|
|
88
|
+
<SToolbarTitle>Compact bar</SToolbarTitle>
|
|
89
|
+
</SToolbar>
|
|
90
|
+
</template>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Gotchas
|
|
94
|
+
|
|
95
|
+
| ❌ | ✅ |
|
|
96
|
+
|----|----|
|
|
97
|
+
| `<SToolbar title="Dashboard">` | `<SToolbarTitle>Dashboard</SToolbarTitle>` |
|
|
98
|
+
| `#prepend` / `#append` for left/right icons | Put items in the default slot and use `<SSpacer />` to push right |
|
|
99
|
+
| `#extension` without `extended` | Add `extended`, or the row is not rendered |
|
|
100
|
+
| `<SToolbarItem><SButton/></SToolbarItem>` | `SToolbarItem` has no slot, so its children are dropped. Place items directly |
|
|
101
|
+
| `tag` default `'header'` assumed | Default is `div`. Pass `tag="header"` for semantics |
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# STooltip
|
|
2
|
+
|
|
3
|
+
**Import:** `import { STooltip } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Small floating label shown while hovering an activator. Built on the `SMenu` positioning system (content centered on the activator, 8px gap).
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsTooltip.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `location` | `string \| string[]` | `undefined` | `'top'`, `'bottom'`, `'left'`, `'right'`. **Unset = overlaps the activator** — always pass one |
|
|
14
|
+
| `color` | `string` | `undefined` | Background. Use a CSS color (`'#333'`, `'rgb(...)'`); preset names are hidden by the default translucent background |
|
|
15
|
+
| `offsetX` / `offsetY` | `number \| null` | `undefined` | Extra offset in px |
|
|
16
|
+
| `position` | `'fixed' \| ...` | `undefined` | `'fixed'` = viewport-relative positioning |
|
|
17
|
+
| `width` / `height` / `min*` / `max*` | `string \| number` | `undefined` | Tooltip dimensions |
|
|
18
|
+
|
|
19
|
+
Other `SMenu` props are accepted by the types but are not meaningful for a tooltip.
|
|
20
|
+
|
|
21
|
+
## Model
|
|
22
|
+
|
|
23
|
+
`v-model: boolean` — optional; set by hover (and toggled by clicking the activator).
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
| Slot | Scoped data | Description |
|
|
28
|
+
|------|-------------|-------------|
|
|
29
|
+
| `activator` | **none** | Hover target. STooltip wraps it in its own `<div>` that carries the hover/click listeners — do not bind anything |
|
|
30
|
+
| `default` | — | Tooltip content |
|
|
31
|
+
|
|
32
|
+
## Events
|
|
33
|
+
|
|
34
|
+
None.
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
```vue
|
|
39
|
+
<STooltip location="top">
|
|
40
|
+
<template #activator>
|
|
41
|
+
<SButton variant="icon"><SIcon icon="mdi-information" /></SButton>
|
|
42
|
+
</template>
|
|
43
|
+
More information
|
|
44
|
+
</STooltip>
|
|
45
|
+
|
|
46
|
+
<STooltip location="right" color="#1e293b">
|
|
47
|
+
<template #activator>
|
|
48
|
+
<span>Hover me</span>
|
|
49
|
+
</template>
|
|
50
|
+
Help text
|
|
51
|
+
</STooltip>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Gotchas
|
|
55
|
+
|
|
56
|
+
| ❌ | ✅ |
|
|
57
|
+
|----|----|
|
|
58
|
+
| `#activator="{ on, attrs }"` + `v-on="on"` | `#activator` with no scope — `on`/`attrs` are undefined here (unlike SMenu/SDialog) |
|
|
59
|
+
| `<STooltip>` without `location` | `location="top"` (or bottom/left/right) |
|
|
60
|
+
| `color="primary"` | A CSS color, e.g. `color="#1e293b"` |
|
|
61
|
+
| `disabled` to suppress the tooltip | Not supported — hover still opens it; use `v-if` on the tooltip |
|
|
62
|
+
|
|
63
|
+
- The activator wrapper is a block `<div>`; wrap inline text if layout matters.
|
|
64
|
+
- The app must be wrapped in `<SApp>` (tooltips teleport into its overlay container).
|
|
65
|
+
- `opacity` appears in the prop types but has no effect.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# SWindow
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SWindow, SWindowItem } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Shows one panel at a time with a slide transition, arrows and swipe. Use it for content and step panels; for image slideshows use [SCarousel](./carousel.md), which is built on it.
|
|
6
|
+
|
|
7
|
+
## SWindow props
|
|
8
|
+
|
|
9
|
+
| Prop | Type | Default | Description |
|
|
10
|
+
|------|------|---------|-------------|
|
|
11
|
+
| `modelValue` (`v-model`) | `string \| number \| boolean` | — | `value` of the visible `SWindowItem`. When it names no item, the first item is selected and the model is updated to its value |
|
|
12
|
+
| `mandatory` | `boolean` | — | Always keep an item selected |
|
|
13
|
+
| `continuous` | `boolean` | — | Loop from last to first and back; without it the arrows stop at the ends |
|
|
14
|
+
| `hideArrows` | `boolean` | — | Hide the prev/next arrows |
|
|
15
|
+
| `touch` | `boolean \| TouchHandlers` | — | `true` enables swipe left/right; or pass your own handlers |
|
|
16
|
+
| `noAnimation` | `boolean` | — | No slide transition |
|
|
17
|
+
| `selectedClass` | `string` | — | Class added to the visible item |
|
|
18
|
+
| `nextIcon` / `prevIcon` | `MaterialDesignIcon` | `'mdi-chevron-right'` / `'mdi-chevron-left'` | Arrow icons (needs `@mdi/font`) |
|
|
19
|
+
| `color` | `string` | — | Arrow color |
|
|
20
|
+
| `disabled` | `boolean` | — | Disable the arrows |
|
|
21
|
+
| `tag` | `string` | `'div'` | Root element |
|
|
22
|
+
|
|
23
|
+
## SWindowItem props
|
|
24
|
+
|
|
25
|
+
| Prop | Type | Description |
|
|
26
|
+
|------|------|-------------|
|
|
27
|
+
| `value` | `string \| number \| boolean` | Identifier matched against the window's `v-model` |
|
|
28
|
+
|
|
29
|
+
## Slots
|
|
30
|
+
|
|
31
|
+
| Slot | Scope | Description |
|
|
32
|
+
|------|-------|-------------|
|
|
33
|
+
| `default` | `{ items, selected, select }` | The `SWindowItem`s. `select({ value })` or `select({ index })` changes the panel |
|
|
34
|
+
| `prev` | `{ icon, click, disabled }` | Replace the previous arrow. Call `click()` to go back |
|
|
35
|
+
| `next` | `{ icon, click }` | Replace the next arrow. Call `click()` to go forward |
|
|
36
|
+
|
|
37
|
+
The component also exposes `goNext()` and `goPrev()` through a template ref.
|
|
38
|
+
|
|
39
|
+
## Example
|
|
40
|
+
|
|
41
|
+
```vue
|
|
42
|
+
<script setup lang="ts">
|
|
43
|
+
import { ref } from 'vue'
|
|
44
|
+
import { SButton, SIcon, STab, STabs, SWindow, SWindowItem } from '@khsura/sui'
|
|
45
|
+
|
|
46
|
+
const step = ref('account')
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<template>
|
|
50
|
+
<STabs v-model="step">
|
|
51
|
+
<STab tab="account">Account</STab>
|
|
52
|
+
<STab tab="billing">Billing</STab>
|
|
53
|
+
</STabs>
|
|
54
|
+
|
|
55
|
+
<SWindow v-model="step" mandatory>
|
|
56
|
+
<SWindowItem value="account">Account settings…</SWindowItem>
|
|
57
|
+
<SWindowItem value="billing">Billing settings…</SWindowItem>
|
|
58
|
+
|
|
59
|
+
<template #next="{ icon, click }">
|
|
60
|
+
<SButton variant="icon" aria-label="Next" @click="click()">
|
|
61
|
+
<SIcon :icon="icon" />
|
|
62
|
+
</SButton>
|
|
63
|
+
</template>
|
|
64
|
+
</SWindow>
|
|
65
|
+
</template>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Gotchas
|
|
69
|
+
|
|
70
|
+
| ❌ | ✅ |
|
|
71
|
+
|---|---|
|
|
72
|
+
| `#prev="{ attrs, on }"` | The arrow slots pass `{ icon, click }` (`prev` also `disabled`); call `click()` |
|
|
73
|
+
| Identify items by index or `key` | `SWindowItem` uses `value` (unlike `SToggleButton` / `SExpansionPanel`) |
|
|
74
|
+
| Image slideshow with `SWindow` | Use `SCarousel` + `SCarouselItem` |
|
|
75
|
+
| Before `@khsura/sui` 1.18, `v-model` set to a non-first item on mount was ignored and overwritten | Fixed: the initial `v-model` is respected |
|