@khsura/sui 0.0.0-stage → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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 +72 -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 +84 -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 +189 -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/dist/sui-api.json +10018 -0
- package/package.json +82 -4
- package/sui-plugin/.claude-plugin/plugin.json +10 -0
- package/sui-plugin/README.md +96 -0
- package/sui-plugin/skills/sui-component/SKILL.md +135 -0
- package/sui-plugin/skills/sui-component/references/alert.md +69 -0
- package/sui-plugin/skills/sui-component/references/autocomplete.md +167 -0
- package/sui-plugin/skills/sui-component/references/badge.md +106 -0
- package/sui-plugin/skills/sui-component/references/breadcrumbs.md +80 -0
- package/sui-plugin/skills/sui-component/references/button.md +113 -0
- package/sui-plugin/skills/sui-component/references/calendar.md +150 -0
- package/sui-plugin/skills/sui-component/references/cards.md +214 -0
- package/sui-plugin/skills/sui-component/references/carousel.md +178 -0
- package/sui-plugin/skills/sui-component/references/chip.md +92 -0
- package/sui-plugin/skills/sui-component/references/date-picker.md +226 -0
- package/sui-plugin/skills/sui-component/references/dialog.md +120 -0
- package/sui-plugin/skills/sui-component/references/divider.md +61 -0
- package/sui-plugin/skills/sui-component/references/droppable.md +88 -0
- package/sui-plugin/skills/sui-component/references/expansion-panels.md +185 -0
- package/sui-plugin/skills/sui-component/references/form.md +575 -0
- package/sui-plugin/skills/sui-component/references/icon.md +80 -0
- package/sui-plugin/skills/sui-component/references/image.md +77 -0
- package/sui-plugin/skills/sui-component/references/layout.md +612 -0
- package/sui-plugin/skills/sui-component/references/list.md +321 -0
- package/sui-plugin/skills/sui-component/references/menu.md +107 -0
- package/sui-plugin/skills/sui-component/references/overlay.md +67 -0
- package/sui-plugin/skills/sui-component/references/progress.md +126 -0
- package/sui-plugin/skills/sui-component/references/sheet.md +81 -0
- package/sui-plugin/skills/sui-component/references/slide-group.md +160 -0
- package/sui-plugin/skills/sui-component/references/snackbar.md +88 -0
- package/sui-plugin/skills/sui-component/references/split-view.md +98 -0
- package/sui-plugin/skills/sui-component/references/stepper.md +127 -0
- package/sui-plugin/skills/sui-component/references/table.md +213 -0
- package/sui-plugin/skills/sui-component/references/tabs.md +133 -0
- package/sui-plugin/skills/sui-component/references/toggle-button-group.md +155 -0
- package/sui-plugin/skills/sui-component/references/toolbar.md +160 -0
- package/sui-plugin/skills/sui-component/references/tooltip.md +102 -0
- package/sui-plugin/skills/sui-component/references/window.md +130 -0
- package/sui-plugin/skills/sui-form/SKILL.md +227 -0
- package/sui-plugin/skills/sui-getting-started/SKILL.md +365 -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,81 @@
|
|
|
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
|
+
<!-- generated:api:start SSheet -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SSheet props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
|
|
17
|
+
| `color` | `string` | — | no | — |
|
|
18
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
19
|
+
| `elevation` | `"" \| 0 \| 1 \| 2 \| 22 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 11 \| 12 \| 13 \| 14 \| 15 \| 16 \| 17 \| 18 \| 19 \| 20 \| 21 \| 23 \| 24 \| "1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| "13" \| "14" \| "15" \| "16" \| "17" \| "18" \| "19" \| "20" \| "21" \| "22" \| "23" \| "24" \| null` | — | no | — |
|
|
20
|
+
| `height` | `string \| number \| null` | — | no | — |
|
|
21
|
+
| `maxHeight` | `string \| number \| null` | — | no | — |
|
|
22
|
+
| `maxWidth` | `string \| number \| null` | — | no | — |
|
|
23
|
+
| `minHeight` | `string \| number \| null` | — | no | — |
|
|
24
|
+
| `minWidth` | `string \| number \| null` | — | no | — |
|
|
25
|
+
| `outlined` | `boolean \| null` | — | no | — |
|
|
26
|
+
| `tag` | `HtmlTagName \| null` | — | no | `a`, `abbr`, `acronym`, `address`, `applet`, `area`, `article`, `aside`, `audio`, `b`, `base`, `basefont`, `bdi`, `bdo`, `big`, `blockquote`, `body`, `br`, `button`, `canvas`, `caption`, `center`, `cite`, `code`, `col`, `colgroup`, `data`, `datalist`, `dd`, `del`, `details`, `dfn`, `dialog`, `dir`, `div`, `dl`, `dt`, `em`, `embed`, `fieldset`, `figcaption`, `figure`, `font`, `footer`, `form`, `frame`, `frameset`, `h1`, `h1> to <h6`, `h2`, `h3`, `h4`, `h5`, `h6`, `head`, `header`, `hr`, `html`, `i`, `iframe`, `img`, `input`, `ins`, `kbd`, `label`, `legend`, `li`, `link`, `main`, `map`, `mark`, `meta`, `meter`, `nav`, `noframes`, `noscript`, `object`, `ol`, `optgroup`, `option`, `output`, `p`, `param`, `picture`, `pre`, `progress`, `q`, `rp`, `rt`, `ruby`, `s`, `samp`, `script`, `section`, `select`, `small`, `source`, `span`, `strike`, `strong`, `style`, `sub`, `summary`, `sup`, `svg`, `table`, `tbody`, `td`, `template`, `textarea`, `tfoot`, `th`, `thead`, `time`, `title`, `tr`, `track`, `tt`, `u`, `ul`, `var`, `video`, `wbr` |
|
|
27
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
28
|
+
| `underlined` | `boolean \| null` | — | no | — |
|
|
29
|
+
| `width` | `string \| number \| null` | — | no | — |
|
|
30
|
+
|
|
31
|
+
**SSheet slots**
|
|
32
|
+
|
|
33
|
+
| Slot | Slot props |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| `default` | `{}` |
|
|
36
|
+
|
|
37
|
+
**SSheet events**
|
|
38
|
+
|
|
39
|
+
None.
|
|
40
|
+
|
|
41
|
+
<!-- generated:api:end SSheet -->
|
|
42
|
+
|
|
43
|
+
**SSheet notes**
|
|
44
|
+
|
|
45
|
+
- `color`: Background: preset/app color name or CSS color
|
|
46
|
+
- `colorThreshold`: Luminance threshold used to pick light/dark text on a custom color
|
|
47
|
+
- `theme`: Force light/dark text styling
|
|
48
|
+
- `elevation`: Shadow depth (default: `undefined` (no shadow))
|
|
49
|
+
- `outlined`: Border
|
|
50
|
+
- `underlined`: Bottom border only
|
|
51
|
+
- `borderRadius`: Border radius
|
|
52
|
+
- `tag`: Root element (default: `'div'`)
|
|
53
|
+
- `width` / `height`: Dimensions
|
|
54
|
+
- `maxWidth` / `maxHeight`: Max dimensions
|
|
55
|
+
- `minWidth` / `minHeight`: Min dimensions
|
|
56
|
+
- `default` (slot): Sheet content
|
|
57
|
+
|
|
58
|
+
## Usage
|
|
59
|
+
|
|
60
|
+
```vue
|
|
61
|
+
<SSheet color="primary" :elevation="2" class="s_pa__4">
|
|
62
|
+
Content on a colored surface
|
|
63
|
+
</SSheet>
|
|
64
|
+
|
|
65
|
+
<SSheet outlined class="s_pa__4">Outlined sheet</SSheet>
|
|
66
|
+
|
|
67
|
+
<SSheet :width="320" :height="200" :elevation="4" class="s_pa__4">
|
|
68
|
+
Fixed size surface
|
|
69
|
+
</SSheet>
|
|
70
|
+
|
|
71
|
+
<SSheet color="secondary" border-radius="tile">Tile sheet</SSheet>
|
|
72
|
+
|
|
73
|
+
<SSheet tag="section" :elevation="1">
|
|
74
|
+
<h2>Section heading</h2>
|
|
75
|
+
</SSheet>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Gotchas
|
|
79
|
+
|
|
80
|
+
- SSheet has no padding. Add it yourself (e.g. the `s_pa__4` utility class).
|
|
81
|
+
- SSheet has no `href`/`to`. For a clickable surface, use `SCard` with `to`/`href`.
|
|
@@ -0,0 +1,160 @@
|
|
|
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
|
+
<!-- generated:api:start SSlideGroup -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
15
|
+
|
|
16
|
+
**SSlideGroup props**
|
|
17
|
+
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `activeClass` | `string \| null` | — | no | — |
|
|
21
|
+
| `centerActive` | `boolean` | — | no | — |
|
|
22
|
+
| `contentClass` | `string \| string[] \| Record<string, boolean>` | — | no | — |
|
|
23
|
+
| `contentStyle` | `StyleValue` | — | no | — |
|
|
24
|
+
| `mandatory` | `boolean` | — | no | — |
|
|
25
|
+
| `modelValue` | `GroupItemValue[]` | `[]` | no | — |
|
|
26
|
+
| `multiple` | `boolean` | — | no | — |
|
|
27
|
+
| `scrollable` | `boolean \| null` | — | no | — |
|
|
28
|
+
| `slideStep` | `number \| null` | — | no | — |
|
|
29
|
+
|
|
30
|
+
**SSlideGroup slots**
|
|
31
|
+
|
|
32
|
+
| Slot | Slot props |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| `default` | `{}` |
|
|
35
|
+
| `left` | `{ attrs: { disabled: boolean; }; on: { click: () => Promise<void>; }; }` |
|
|
36
|
+
| `right` | `{ attrs: { disabled: boolean; }; on: { click: () => Promise<void>; }; }` |
|
|
37
|
+
|
|
38
|
+
**SSlideGroup events**
|
|
39
|
+
|
|
40
|
+
| Event | Payload |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `update:modelValue` | `[value: GroupItemValue[]]` |
|
|
43
|
+
|
|
44
|
+
<!-- generated:api:end SSlideGroup -->
|
|
45
|
+
|
|
46
|
+
**SSlideGroup notes**
|
|
47
|
+
|
|
48
|
+
- `modelValue` (`v-model`): Selected item identifiers — **always an array**, even for single selection
|
|
49
|
+
- `multiple`: Allow several selected items
|
|
50
|
+
- `mandatory`: Keep at least one selected (auto-selects the first item when empty)
|
|
51
|
+
- `scrollable`: `true` = native swipe/scroll, **no arrows**. `false` = arrows (shown only when items overflow), no manual scrolling
|
|
52
|
+
- `slideStep`: Items to move per arrow click (default: one viewport width)
|
|
53
|
+
- `centerActive`: Scroll the clicked/selected item to the center
|
|
54
|
+
- `activeClass`: Class added to selected items
|
|
55
|
+
- `contentClass`: Class for the inner content row
|
|
56
|
+
- `contentStyle`: Style for the inner content row
|
|
57
|
+
- `default` (slot): `SSlideItem` components
|
|
58
|
+
- `left` (slot): Custom "previous" button
|
|
59
|
+
- `right` (slot): Custom "next" button
|
|
60
|
+
- `update:modelValue` (event): Selection changed
|
|
61
|
+
|
|
62
|
+
`GroupItemValue` = `string | number | boolean | symbol`.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## SSlideItem
|
|
67
|
+
|
|
68
|
+
Must be inside `SSlideGroup` (throws otherwise). Clicking the item toggles its selection.
|
|
69
|
+
|
|
70
|
+
<!-- generated:api:start SSlideItem -->
|
|
71
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
72
|
+
|
|
73
|
+
**SSlideItem props**
|
|
74
|
+
|
|
75
|
+
| Prop | Type | Default | Required | Values |
|
|
76
|
+
| --- | --- | --- | --- | --- |
|
|
77
|
+
| `activeClass` | `string \| null` | — | no | — |
|
|
78
|
+
| `disabled` | `boolean` | — | no | — |
|
|
79
|
+
| `index` | `GroupItemValue \| null` | — | no | — |
|
|
80
|
+
|
|
81
|
+
**SSlideItem slots**
|
|
82
|
+
|
|
83
|
+
| Slot | Slot props |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| `default` | `{ isSelected: boolean; }` |
|
|
86
|
+
|
|
87
|
+
**SSlideItem events**
|
|
88
|
+
|
|
89
|
+
None.
|
|
90
|
+
|
|
91
|
+
<!-- generated:api:end SSlideItem -->
|
|
92
|
+
|
|
93
|
+
**SSlideItem notes**
|
|
94
|
+
|
|
95
|
+
- `index`: Identifier stored in the group's `v-model`. Falls back to the `:key`, then to an auto id (default: vnode `key`)
|
|
96
|
+
- `disabled`: Dim the item and block clicks
|
|
97
|
+
- `activeClass`: Class added when selected
|
|
98
|
+
- `default` (slot): Item content
|
|
99
|
+
|
|
100
|
+
There is **no `value` prop** — use `index` or `:key`.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Usage
|
|
105
|
+
|
|
106
|
+
```vue
|
|
107
|
+
<script setup lang="ts">
|
|
108
|
+
import { ref } from 'vue'
|
|
109
|
+
|
|
110
|
+
const selected = ref<string[]>([]) // single selection still uses an array
|
|
111
|
+
const activeFilters = ref<string[]>([])
|
|
112
|
+
</script>
|
|
113
|
+
|
|
114
|
+
<template>
|
|
115
|
+
<!-- Single selection with arrows -->
|
|
116
|
+
<SSlideGroup v-model="selected" mandatory center-active>
|
|
117
|
+
<SSlideItem v-for="item in categories" :key="item.id" :index="item.id">
|
|
118
|
+
<template #default="{ isSelected }">
|
|
119
|
+
<SButton :color="isSelected ? 'primary' : undefined" :outlined="!isSelected">
|
|
120
|
+
{{ item.name }}
|
|
121
|
+
</SButton>
|
|
122
|
+
</template>
|
|
123
|
+
</SSlideItem>
|
|
124
|
+
</SSlideGroup>
|
|
125
|
+
|
|
126
|
+
<!-- Custom arrows -->
|
|
127
|
+
<SSlideGroup>
|
|
128
|
+
<template #left="{ attrs, on }">
|
|
129
|
+
<SButton variant="icon" v-bind="attrs" v-on="on"><SIcon icon="mdi-chevron-left" /></SButton>
|
|
130
|
+
</template>
|
|
131
|
+
<SSlideItem v-for="n in 10" :key="n">
|
|
132
|
+
<SCard :width="160"><SCardText>Item {{ n }}</SCardText></SCard>
|
|
133
|
+
</SSlideItem>
|
|
134
|
+
<template #right="{ on }">
|
|
135
|
+
<SButton variant="icon" v-on="on"><SIcon icon="mdi-chevron-right" /></SButton>
|
|
136
|
+
</template>
|
|
137
|
+
</SSlideGroup>
|
|
138
|
+
|
|
139
|
+
<!-- Filter chips, swipeable -->
|
|
140
|
+
<SSlideGroup v-model="activeFilters" multiple scrollable>
|
|
141
|
+
<SSlideItem v-for="filter in filters" :key="filter.value" :index="filter.value">
|
|
142
|
+
<template #default="{ isSelected }">
|
|
143
|
+
<SChip :color="isSelected ? 'primary' : undefined">{{ filter.label }}</SChip>
|
|
144
|
+
</template>
|
|
145
|
+
</SSlideItem>
|
|
146
|
+
</SSlideGroup>
|
|
147
|
+
</template>
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Gotchas
|
|
151
|
+
|
|
152
|
+
| ❌ | ✅ |
|
|
153
|
+
|----|----|
|
|
154
|
+
| `const selected = ref('a')` | `const selected = ref(['a'])` — a bare string is spread into characters |
|
|
155
|
+
| `<SSlideItem :value="id">` | `<SSlideItem :index="id">` (or rely on `:key`) |
|
|
156
|
+
| `#default="{ isSelected, select }"` + `@click="select"` | Only `isSelected` exists; the item itself toggles on click |
|
|
157
|
+
| `scrollable` to get arrows | Arrows appear when `scrollable` is **off** and items overflow |
|
|
158
|
+
|
|
159
|
+
- The `right` slot's `attrs.disabled` mirrors the *previous* button's state — compute your own disabled state for a custom "next" button if needed.
|
|
160
|
+
- `disabled` on an item blocks clicks via CSS (`pointer-events: none`) and dims it.
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
<!-- generated:api:start SSnackbar -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SSnackbar props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `activator` | `string \| HTMLElement \| ComponentPublicInstance \| null` | — | no | — |
|
|
17
|
+
| `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
|
|
18
|
+
| `disabled` | `boolean \| null` | — | no | — |
|
|
19
|
+
| `location` | `"top" \| "bottom" \| null` | — | no | `bottom`, `top` |
|
|
20
|
+
| `modelValue` | `boolean` | — | no | — |
|
|
21
|
+
| `multiLine` | `boolean \| null` | — | no | — |
|
|
22
|
+
| `outlined` | `boolean \| null` | — | no | — |
|
|
23
|
+
| `preventCloseOnClick` | `boolean` | — | no | — |
|
|
24
|
+
| `readonly` | `boolean \| null` | — | no | — |
|
|
25
|
+
| `timeout` | `number \| null` | — | no | — |
|
|
26
|
+
| `underlined` | `boolean \| null` | — | no | — |
|
|
27
|
+
|
|
28
|
+
**SSnackbar slots**
|
|
29
|
+
|
|
30
|
+
| Slot | Slot props |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| `action` | `{}` |
|
|
33
|
+
| `activator` | `{ on: { click: () => void; }; attrs: Partial<PropsRequired<{ disabled: boolean \| null \| undefined; readonly: boolean \| null \| undefined; }>>; }` |
|
|
34
|
+
| `default` | `{}` |
|
|
35
|
+
|
|
36
|
+
**SSnackbar events**
|
|
37
|
+
|
|
38
|
+
| Event | Payload |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `update:modelValue` | `[value: boolean \| undefined]` |
|
|
41
|
+
|
|
42
|
+
<!-- generated:api:end SSnackbar -->
|
|
43
|
+
|
|
44
|
+
**SSnackbar notes**
|
|
45
|
+
|
|
46
|
+
- `timeout`: Auto-close after N ms. Unset/`0` = stays until `v-model` is set to `false`
|
|
47
|
+
- `location`: Screen edge (default: `undefined` (bottom))
|
|
48
|
+
- `multiLine`: Wrap long text instead of truncating with ellipsis
|
|
49
|
+
- `disabled`: Passed to the activator via `attrs`
|
|
50
|
+
- `activator` (slot): Optional trigger; bind both `v-on="on"` and `v-bind="attrs"`
|
|
51
|
+
- `default` (slot): Message
|
|
52
|
+
- `action` (slot): Buttons on the right
|
|
53
|
+
|
|
54
|
+
## Model
|
|
55
|
+
|
|
56
|
+
`v-model: boolean` — visibility. The timeout restarts each time it becomes `true`.
|
|
57
|
+
|
|
58
|
+
## Events
|
|
59
|
+
|
|
60
|
+
None — use `v-model`.
|
|
61
|
+
|
|
62
|
+
## Usage
|
|
63
|
+
|
|
64
|
+
```vue
|
|
65
|
+
<SButton @click="saved = true">Save</SButton>
|
|
66
|
+
<SSnackbar v-model="saved" :timeout="4000">Item saved.</SSnackbar>
|
|
67
|
+
|
|
68
|
+
<SSnackbar v-model="offline" location="top">
|
|
69
|
+
Connection lost.
|
|
70
|
+
<template #action>
|
|
71
|
+
<SButton variant="text" color="warning" @click="retry">Retry</SButton>
|
|
72
|
+
<SButton variant="icon" @click="offline = false"><SIcon icon="mdi-close" /></SButton>
|
|
73
|
+
</template>
|
|
74
|
+
</SSnackbar>
|
|
75
|
+
|
|
76
|
+
<SSnackbar v-model="error" multi-line>
|
|
77
|
+
A longer message that needs to wrap onto multiple lines.
|
|
78
|
+
</SSnackbar>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Gotchas
|
|
82
|
+
|
|
83
|
+
- No `color` prop — colors come from the theme's `snackbar` color.
|
|
84
|
+
- The snackbar is dark (`#424242`) in both themes. A `variant="text"` action in `primary`, `secondary`, `success`, `info` or `error` is below 4.5:1 on it (`primary` is 2.18:1); use `color="warning"` or a light CSS colour such as `color="#ffffff"`.
|
|
85
|
+
- `outlined`, `underlined` and `borderRadius` appear in the prop types but are not applied.
|
|
86
|
+
- Without `timeout`, provide a close action in `#action`.
|
|
87
|
+
- Single-line by default: long text is cut with an ellipsis — use `multi-line`.
|
|
88
|
+
- The app must be wrapped in `<SApp>` (the snackbar teleports into its overlay container).
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
<!-- generated:api:start SSplitView -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
15
|
+
|
|
16
|
+
**SSplitView props**
|
|
17
|
+
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `height` | `string \| number` | `"100%"` | no | — |
|
|
21
|
+
| `vertical` | `boolean` | — | no | — |
|
|
22
|
+
| `width` | `string \| number` | `"100%"` | no | — |
|
|
23
|
+
|
|
24
|
+
**SSplitView slots**
|
|
25
|
+
|
|
26
|
+
| Slot | Slot props |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| `default` | `{}` |
|
|
29
|
+
|
|
30
|
+
**SSplitView events**
|
|
31
|
+
|
|
32
|
+
None.
|
|
33
|
+
|
|
34
|
+
<!-- generated:api:end SSplitView -->
|
|
35
|
+
|
|
36
|
+
**SSplitView notes**
|
|
37
|
+
|
|
38
|
+
- `vertical`: Stack panes top/bottom instead of side by side
|
|
39
|
+
- `height`: Container height (number = px)
|
|
40
|
+
- `width`: Container width (number = px)
|
|
41
|
+
- `default` (slot): `SSplitViewItem` components
|
|
42
|
+
|
|
43
|
+
No min/max size props.
|
|
44
|
+
|
|
45
|
+
No events.
|
|
46
|
+
|
|
47
|
+
## SSplitViewItem
|
|
48
|
+
|
|
49
|
+
No props. Renders the pane plus a resize handle after it. The last item's handle is hidden.
|
|
50
|
+
|
|
51
|
+
<!-- generated:api:start SSplitViewItem -->
|
|
52
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
53
|
+
|
|
54
|
+
**SSplitViewItem props**
|
|
55
|
+
|
|
56
|
+
None.
|
|
57
|
+
|
|
58
|
+
**SSplitViewItem slots**
|
|
59
|
+
|
|
60
|
+
| Slot | Slot props |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| `default` | `{}` |
|
|
63
|
+
|
|
64
|
+
**SSplitViewItem events**
|
|
65
|
+
|
|
66
|
+
None.
|
|
67
|
+
|
|
68
|
+
<!-- generated:api:end SSplitViewItem -->
|
|
69
|
+
|
|
70
|
+
**SSplitViewItem notes**
|
|
71
|
+
|
|
72
|
+
- `default` (slot): Pane content
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Usage
|
|
77
|
+
|
|
78
|
+
```vue
|
|
79
|
+
<template>
|
|
80
|
+
<SSplitView :height="500">
|
|
81
|
+
<SSplitViewItem><nav>File browser</nav></SSplitViewItem>
|
|
82
|
+
<SSplitViewItem><main>Editor</main></SSplitViewItem>
|
|
83
|
+
</SSplitView>
|
|
84
|
+
|
|
85
|
+
<SSplitView vertical height="600px">
|
|
86
|
+
<SSplitViewItem>Code</SSplitViewItem>
|
|
87
|
+
<SSplitViewItem>Terminal</SSplitViewItem>
|
|
88
|
+
</SSplitView>
|
|
89
|
+
</template>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Gotchas
|
|
93
|
+
|
|
94
|
+
- ❌ `max-height`, `min-width`, `max-width`, `min-height` props: they don't exist. Constrain with CSS on a wrapper.
|
|
95
|
+
- The default `height: '100%'` collapses when the parent has no height. Give the split view or its parent an explicit height.
|
|
96
|
+
- Resizing works with the mouse only (no touch). Dragging a handle resizes the pane before it.
|
|
97
|
+
- `SSplitViewItem` has two root elements, so `class` / `style` on it are not applied. Style an inner element instead.
|
|
98
|
+
- Panes already scroll vertically (`overflow-y: auto`). Horizontal overflow is yours to handle.
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
<!-- generated:api:start SStepper -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
15
|
+
|
|
16
|
+
**SStepper props**
|
|
17
|
+
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `items` | `{ editable?: boolean \| undefined; step: number; text?: string \| undefined; }[]` | `[]` | no | — |
|
|
21
|
+
| `modelValue` | `number` | — | no | — |
|
|
22
|
+
| `shrink` | `boolean` | — | no | — |
|
|
23
|
+
| `tag` | `HtmlTagName \| null` | — | no | `a`, `abbr`, `acronym`, `address`, `applet`, `area`, `article`, `aside`, `audio`, `b`, `base`, `basefont`, `bdi`, `bdo`, `big`, `blockquote`, `body`, `br`, `button`, `canvas`, `caption`, `center`, `cite`, `code`, `col`, `colgroup`, `data`, `datalist`, `dd`, `del`, `details`, `dfn`, `dialog`, `dir`, `div`, `dl`, `dt`, `em`, `embed`, `fieldset`, `figcaption`, `figure`, `font`, `footer`, `form`, `frame`, `frameset`, `h1`, `h1> to <h6`, `h2`, `h3`, `h4`, `h5`, `h6`, `head`, `header`, `hr`, `html`, `i`, `iframe`, `img`, `input`, `ins`, `kbd`, `label`, `legend`, `li`, `link`, `main`, `map`, `mark`, `meta`, `meter`, `nav`, `noframes`, `noscript`, `object`, `ol`, `optgroup`, `option`, `output`, `p`, `param`, `picture`, `pre`, `progress`, `q`, `rp`, `rt`, `ruby`, `s`, `samp`, `script`, `section`, `select`, `small`, `source`, `span`, `strike`, `strong`, `style`, `sub`, `summary`, `sup`, `svg`, `table`, `tbody`, `td`, `template`, `textarea`, `tfoot`, `th`, `thead`, `time`, `title`, `tr`, `track`, `tt`, `u`, `ul`, `var`, `video`, `wbr` |
|
|
24
|
+
|
|
25
|
+
**SStepper slots**
|
|
26
|
+
|
|
27
|
+
| Slot | Slot props |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| `default` | `{ value: number \| undefined; }` |
|
|
30
|
+
|
|
31
|
+
**SStepper events**
|
|
32
|
+
|
|
33
|
+
| Event | Payload |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| `update:modelValue` | `[value: number]` |
|
|
36
|
+
|
|
37
|
+
<!-- generated:api:end SStepper -->
|
|
38
|
+
|
|
39
|
+
**SStepper notes**
|
|
40
|
+
|
|
41
|
+
- `modelValue`: Current step number (use `v-model`)
|
|
42
|
+
- `items`: Step definitions. Used only when the default slot is empty
|
|
43
|
+
- `shrink`: Shrink to content width
|
|
44
|
+
- `default` (slot): `SStepperStep` components. Replaces `items` rendering
|
|
45
|
+
- `update:modelValue` (event): Emitted when an `editable` step is clicked. Clamped to the lowest/highest registered step
|
|
46
|
+
|
|
47
|
+
`tag` exists in the type but is ignored (root is always a `div`).
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## SStepperStep
|
|
52
|
+
|
|
53
|
+
<!-- generated:api:start SStepperStep -->
|
|
54
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
55
|
+
|
|
56
|
+
**SStepperStep props**
|
|
57
|
+
|
|
58
|
+
| Prop | Type | Default | Required | Values |
|
|
59
|
+
| --- | --- | --- | --- | --- |
|
|
60
|
+
| `disabled` | `boolean` | — | no | — |
|
|
61
|
+
| `editable` | `boolean` | — | no | — |
|
|
62
|
+
| `step` | `number` | — | yes | — |
|
|
63
|
+
| `tag` | `HtmlTagName \| null` | — | no | `a`, `abbr`, `acronym`, `address`, `applet`, `area`, `article`, `aside`, `audio`, `b`, `base`, `basefont`, `bdi`, `bdo`, `big`, `blockquote`, `body`, `br`, `button`, `canvas`, `caption`, `center`, `cite`, `code`, `col`, `colgroup`, `data`, `datalist`, `dd`, `del`, `details`, `dfn`, `dialog`, `dir`, `div`, `dl`, `dt`, `em`, `embed`, `fieldset`, `figcaption`, `figure`, `font`, `footer`, `form`, `frame`, `frameset`, `h1`, `h1> to <h6`, `h2`, `h3`, `h4`, `h5`, `h6`, `head`, `header`, `hr`, `html`, `i`, `iframe`, `img`, `input`, `ins`, `kbd`, `label`, `legend`, `li`, `link`, `main`, `map`, `mark`, `meta`, `meter`, `nav`, `noframes`, `noscript`, `object`, `ol`, `optgroup`, `option`, `output`, `p`, `param`, `picture`, `pre`, `progress`, `q`, `rp`, `rt`, `ruby`, `s`, `samp`, `script`, `section`, `select`, `small`, `source`, `span`, `strike`, `strong`, `style`, `sub`, `summary`, `sup`, `svg`, `table`, `tbody`, `td`, `template`, `textarea`, `tfoot`, `th`, `thead`, `time`, `title`, `tr`, `track`, `tt`, `u`, `ul`, `var`, `video`, `wbr` |
|
|
64
|
+
|
|
65
|
+
**SStepperStep slots**
|
|
66
|
+
|
|
67
|
+
| Slot | Slot props |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| `default` | `{}` |
|
|
70
|
+
|
|
71
|
+
**SStepperStep events**
|
|
72
|
+
|
|
73
|
+
None.
|
|
74
|
+
|
|
75
|
+
<!-- generated:api:end SStepperStep -->
|
|
76
|
+
|
|
77
|
+
**SStepperStep notes**
|
|
78
|
+
|
|
79
|
+
- `step`: Step number (default: **required**)
|
|
80
|
+
- `editable`: Clicking the step jumps to it (forward or back)
|
|
81
|
+
- `disabled`: Disabled styling only. Does not block clicks on an `editable` step
|
|
82
|
+
- `default` (slot): Step label
|
|
83
|
+
|
|
84
|
+
Steps with `step < modelValue` show a checkmark (visited). `step === modelValue` is current. Must be a child of `SStepper` (throws otherwise).
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Usage
|
|
89
|
+
|
|
90
|
+
```vue
|
|
91
|
+
<script setup lang="ts">
|
|
92
|
+
import { ref } from 'vue'
|
|
93
|
+
import { SStepper, SStepperStep, SButton } from '@khsura/sui'
|
|
94
|
+
|
|
95
|
+
const step = ref(1)
|
|
96
|
+
const steps = [
|
|
97
|
+
{ step: 1, text: 'Account', editable: true },
|
|
98
|
+
{ step: 2, text: 'Details', editable: true },
|
|
99
|
+
{ step: 3, text: 'Review' },
|
|
100
|
+
]
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<template>
|
|
104
|
+
<SStepper v-model="step" :items="steps" />
|
|
105
|
+
|
|
106
|
+
<div v-if="step === 1">…<SButton color="primary" @click="step++">Next</SButton></div>
|
|
107
|
+
<div v-else-if="step === 2">
|
|
108
|
+
<SButton @click="step--">Back</SButton>
|
|
109
|
+
<SButton color="primary" @click="step++">Next</SButton>
|
|
110
|
+
</div>
|
|
111
|
+
<div v-else>Review…</div>
|
|
112
|
+
|
|
113
|
+
<!-- Slot composition -->
|
|
114
|
+
<SStepper v-model="step">
|
|
115
|
+
<SStepperStep :step="1" editable>Account</SStepperStep>
|
|
116
|
+
<SStepperStep :step="2" editable>Details</SStepperStep>
|
|
117
|
+
<SStepperStep :step="3">Review</SStepperStep>
|
|
118
|
+
</SStepper>
|
|
119
|
+
</template>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Gotchas
|
|
123
|
+
|
|
124
|
+
- Step numbers are whatever you pass to `step`. 1-based is a convention, not a rule.
|
|
125
|
+
- The stepper never advances by itself. Only clicks on `editable` steps emit. Next/Back buttons must update the model.
|
|
126
|
+
- Add `editable` to every step a user may click, including future steps (it does not restrict clicks to visited steps).
|
|
127
|
+
- Validate in your Next handler before changing `step`. `disabled` will not stop an editable step from being clicked.
|