@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,53 @@
|
|
|
1
|
+
# SAlert
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SAlert } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Simple colored message box (flex row, vertically centered, rounded). It has no icon, title, type or dismiss button — compose those yourself in the slot.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsAlert.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `color` | `string` | `undefined` | Preset name or CSS color (default background = theme `card` color) |
|
|
14
|
+
| `colorThreshold` | `number` | `undefined` | Luminance threshold for automatic light/dark text |
|
|
15
|
+
| `size` | `'mini' \| 'small' \| 'default' \| 'large' \| 'extra'` | `'default'` | Padding, font size and min-height |
|
|
16
|
+
| `dense` | `boolean` | `false` | Smaller padding and min-height |
|
|
17
|
+
| `minHeight` | `number` | computed from `size` | Min height in px |
|
|
18
|
+
| `fixedHeight` | `boolean` | `false` | `height: 100%; overflow: hidden`, and render even when empty (reserves space) |
|
|
19
|
+
|
|
20
|
+
## Slots
|
|
21
|
+
|
|
22
|
+
| Slot | Description |
|
|
23
|
+
|------|-------------|
|
|
24
|
+
| `default` | Alert content. **If empty, nothing is rendered** (unless `fixedHeight`) |
|
|
25
|
+
|
|
26
|
+
## Events
|
|
27
|
+
|
|
28
|
+
None.
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```vue
|
|
33
|
+
<SAlert color="error">Payment failed. Please try again.</SAlert>
|
|
34
|
+
|
|
35
|
+
<SAlert color="success" dense size="small">Saved</SAlert>
|
|
36
|
+
|
|
37
|
+
<!-- Icon + dismiss composed manually -->
|
|
38
|
+
<SAlert v-if="showWarning" color="warning">
|
|
39
|
+
<SIcon icon="mdi-alert" />
|
|
40
|
+
<span style="flex: 1">Your session expires soon.</span>
|
|
41
|
+
<SButton variant="icon" @click="showWarning = false"><SIcon icon="mdi-close" /></SButton>
|
|
42
|
+
</SAlert>
|
|
43
|
+
|
|
44
|
+
<!-- Form error slot that keeps its height when there is no message -->
|
|
45
|
+
<SAlert color="error" fixed-height>{{ errorMessage }}</SAlert>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Gotchas
|
|
49
|
+
|
|
50
|
+
| ❌ | ✅ |
|
|
51
|
+
|----|----|
|
|
52
|
+
| `<SAlert type="error" title="..." closable>` | Those props don't exist — use `color` and compose content in the slot |
|
|
53
|
+
| `<SAlert icon="mdi-alert">` | Nest `<SIcon>` in the slot (needs `@mdi/font` loaded) |
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# SAutocomplete
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SAutocomplete } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Searchable dropdown input with filtering, multiple selection, chips, free-text entries and async search.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsAutocomplete.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `modelValue` (`v-model`) | `string \| number \| null` (or an array of them when `multiple`) | `undefined` | Selected item `value`(s) |
|
|
14
|
+
| `items` | `SelectItem[] \| string[]` | `undefined` | Options |
|
|
15
|
+
| `multiple` | `boolean` | `false` | Multi-select; model becomes an array |
|
|
16
|
+
| `chips` | `boolean` | `false` | Show selected items as chips |
|
|
17
|
+
| `closableChips` | `boolean` | `false` | × icon on each selected item (works with or without `chips`) |
|
|
18
|
+
| `allowUnlisted` | `boolean` | `false` | Allow typed values not in `items`; adds an `Add "…"` row and emits `createItem` |
|
|
19
|
+
| `filterMode` | `'start' \| 'contains' \| 'exact' \| 'none'` | `'contains'` | Built-in, case-insensitive filter |
|
|
20
|
+
| `filter` | `(item: SelectItem, queryText: string) => boolean` | `undefined` | Custom filter (overrides `filterMode` unless it is `'none'`) |
|
|
21
|
+
| `debounce` | `number` (ms) | `500` | Delay before `searchItem` is emitted |
|
|
22
|
+
| `delimiter` | `string \| string[] \| RegExp` | `undefined` | Keys that commit the typed text (like Enter) |
|
|
23
|
+
| `loading` | `boolean` | `false` | Show a spinner (hides the clear button) |
|
|
24
|
+
| `clearable` | `boolean` | `false` | Clear button when a value is set |
|
|
25
|
+
| `divided` | `boolean` | `false` | Dividers between list items |
|
|
26
|
+
| `dense` | `boolean` | `false` | Dense list |
|
|
27
|
+
| `label` | `string \| null` | `undefined` | Label above the field |
|
|
28
|
+
| `id` | `string` | auto | Input id (label `for`) |
|
|
29
|
+
| `hideDetails` | `boolean` | `undefined` | Hide the label |
|
|
30
|
+
| `placeholder` | `string` | `undefined` | Input placeholder |
|
|
31
|
+
| `autocomplete` | `'on' \| 'off'` | `undefined` | Native `autocomplete` attribute |
|
|
32
|
+
| `size` | `'mini' \| 'small' \| 'default' \| 'large' \| 'extra'` | `undefined` | Preset size |
|
|
33
|
+
| `location` | `LocationRaw` | `'bottom'` | Dropdown position (flips automatically) |
|
|
34
|
+
| `offsetX` / `offsetY` | `number \| null` | `undefined` | Dropdown offset |
|
|
35
|
+
|
|
36
|
+
`name` and `disabled` are typed but have no effect (see Gotchas). There is **no `rules` prop**.
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
interface SelectItem {
|
|
40
|
+
text: string // displayed text
|
|
41
|
+
value: string | number | null | undefined
|
|
42
|
+
disabled?: boolean
|
|
43
|
+
}
|
|
44
|
+
// string[] items use the string as both text and value
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Events
|
|
48
|
+
|
|
49
|
+
| Event | Payload | Description |
|
|
50
|
+
|-------|---------|-------------|
|
|
51
|
+
| `update:modelValue` | value or value[] | Selection changed |
|
|
52
|
+
| `searchItem` (`@search-item`) | `string` | Current query, `debounce` ms after the last keydown — use for async search |
|
|
53
|
+
| `createItem` (`@create-item`) | `SelectItem` | An unlisted value was added (`allowUnlisted`) |
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
```vue
|
|
58
|
+
<!-- Basic -->
|
|
59
|
+
<SAutocomplete v-model="city" :items="cities" label="City" placeholder="Search…" />
|
|
60
|
+
<!-- cities: [{ text: 'New York', value: 'nyc' }]; city === 'nyc' -->
|
|
61
|
+
|
|
62
|
+
<!-- Multiple with closable chips -->
|
|
63
|
+
<SAutocomplete v-model="tags" :items="allTags" multiple chips closable-chips />
|
|
64
|
+
|
|
65
|
+
<!-- Async server-side search -->
|
|
66
|
+
<SAutocomplete
|
|
67
|
+
v-model="userId"
|
|
68
|
+
:items="userResults"
|
|
69
|
+
:loading="isSearching"
|
|
70
|
+
filter-mode="none"
|
|
71
|
+
:debounce="300"
|
|
72
|
+
@search-item="searchUsers"
|
|
73
|
+
/>
|
|
74
|
+
|
|
75
|
+
<!-- Free-text tags, comma commits -->
|
|
76
|
+
<SAutocomplete
|
|
77
|
+
v-model="labels"
|
|
78
|
+
:items="knownLabels"
|
|
79
|
+
multiple
|
|
80
|
+
chips
|
|
81
|
+
allow-unlisted
|
|
82
|
+
delimiter=","
|
|
83
|
+
@create-item="item => saveLabel(item.text)"
|
|
84
|
+
/>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
const searchUsers = async (query: string) => {
|
|
89
|
+
if (!query) return
|
|
90
|
+
isSearching.value = true
|
|
91
|
+
userResults.value = await api.searchUsers(query) // map to { text, value }
|
|
92
|
+
isSearching.value = false
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Gotchas
|
|
97
|
+
|
|
98
|
+
| ❌ | ✅ |
|
|
99
|
+
|----|----|
|
|
100
|
+
| `@update:search-input="…"` | `@search-item="…"` — `update:search-input` is never emitted |
|
|
101
|
+
| `{ title: 'New York', value: 'nyc' }` | `{ text: 'New York', value: 'nyc' }` |
|
|
102
|
+
| `:rules="[…]"` inside `SForm` | Not supported — SAutocomplete does not register with `SForm`; validate the model yourself |
|
|
103
|
+
| `disabled` to lock the field | Has no effect on the input; render read-only text or a disabled `SSelect` instead |
|
|
104
|
+
| `name="country"` for native forms | Input name is always `autocomplete`; submit the model value yourself |
|
|
105
|
+
| Debouncing `@search-item` again | It is already debounced (`debounce`, default 500 ms) |
|
|
106
|
+
|
|
107
|
+
- Single mode: typing text that doesn't match an item exactly and blurring **clears** the model (unless `allowUnlisted`).
|
|
108
|
+
- Single mode, no chips: the selected item's text is shown in the input itself.
|
|
109
|
+
- Selected items keep their labels when `items` is replaced (async results), so chips don't go blank.
|
|
110
|
+
- Toggling `multiple` at runtime drops a single value when switching back to single mode.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# SBadge
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SBadge } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Overlays a small notification indicator on another element. Supports number/text, dot, and icon modes. (The inner `SBadgeContent` is internal — not exported, not importable from `@khsura/sui`.)
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsBadge.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `value` | `boolean` | `undefined` (falsy) | Show the badge. **No default — the badge is hidden unless you pass `value`** |
|
|
14
|
+
| `content` | `string \| number` | `undefined` | Text/number inside the badge. Falsy values (`0`, `''`) render an empty badge |
|
|
15
|
+
| `icon` | `MaterialDesignIcon` | `undefined` | MDI icon inside the badge (wins over `content`) |
|
|
16
|
+
| `label` | `string` | `undefined` | `aria-label` of the badge (`role="status"`, `aria-live="polite"`) |
|
|
17
|
+
| `color` | `string` | `undefined` (primary) | Preset name or CSS color for the badge background |
|
|
18
|
+
| `colorThreshold` | `number` | `undefined` | Contrast threshold for auto text color |
|
|
19
|
+
| `theme` | `AppThemeType` | `undefined` | Per-component theme override |
|
|
20
|
+
| `dot` | `boolean` | `undefined` | Dot mode — 9px circle, ignores `content`/`icon` |
|
|
21
|
+
| `overlap` | `boolean` | `undefined` | Pull the badge further onto the child's corner |
|
|
22
|
+
| `inline` | `boolean` | `undefined` | Render next to the content instead of absolutely positioned |
|
|
23
|
+
| `bottom` | `boolean` | `undefined` | Position at the bottom |
|
|
24
|
+
| `left` | `boolean` | `undefined` | Position on the left (with `inline`, badge renders before the content) |
|
|
25
|
+
| `tile` | `boolean` | `undefined` | Square corners |
|
|
26
|
+
| `offsetX` | `string \| number` | `undefined` | Horizontal offset (replaces the built-in spacer) |
|
|
27
|
+
| `offsetY` | `string \| number` | `undefined` | Vertical offset |
|
|
28
|
+
| `transitionName` | `STransition` | `undefined` | Named transition for show/hide |
|
|
29
|
+
|
|
30
|
+
## Slots
|
|
31
|
+
|
|
32
|
+
| Slot | Description |
|
|
33
|
+
|------|-------------|
|
|
34
|
+
| `default` | The element the badge wraps |
|
|
35
|
+
| `badge` | Custom badge content — overrides `content`, `icon` and `dot` content |
|
|
36
|
+
|
|
37
|
+
## Events
|
|
38
|
+
|
|
39
|
+
None.
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
```vue
|
|
44
|
+
<!-- Number badge on an icon -->
|
|
45
|
+
<SBadge :value="cartCount > 0" :content="cartCount" color="error" overlap>
|
|
46
|
+
<SIcon icon="mdi-cart" />
|
|
47
|
+
</SBadge>
|
|
48
|
+
|
|
49
|
+
<!-- Dot badge -->
|
|
50
|
+
<SBadge value dot color="success" overlap>
|
|
51
|
+
<SIcon icon="mdi-bell" />
|
|
52
|
+
</SBadge>
|
|
53
|
+
|
|
54
|
+
<!-- Custom badge content via slot -->
|
|
55
|
+
<SBadge value overlap>
|
|
56
|
+
<template #badge>
|
|
57
|
+
<SIcon icon="mdi-check" />
|
|
58
|
+
</template>
|
|
59
|
+
<SImage src="avatar.jpg" />
|
|
60
|
+
</SBadge>
|
|
61
|
+
|
|
62
|
+
<!-- Bottom-right -->
|
|
63
|
+
<SBadge value :content="3" bottom color="primary" overlap>
|
|
64
|
+
<SIcon icon="mdi-account" />
|
|
65
|
+
</SBadge>
|
|
66
|
+
|
|
67
|
+
<!-- Inline (no overlap) -->
|
|
68
|
+
<SBadge value inline :content="5" color="secondary">Messages</SBadge>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Gotchas
|
|
72
|
+
|
|
73
|
+
| ❌ | ✅ |
|
|
74
|
+
|----|----|
|
|
75
|
+
| `<SBadge :content="3">` — nothing shows | `<SBadge value :content="3">` (or `:value="true"`) |
|
|
76
|
+
| `:content="0"` to show a zero count | `:content="String(count)"` — `0` is falsy and renders an empty pill |
|
|
77
|
+
| Expecting a hidden badge to stay in the DOM | Hidden badge is removed (`v-if`) |
|
|
78
|
+
|
|
79
|
+
- Default position is top-right of the wrapped element; `overlap` moves it onto the edge.
|
|
80
|
+
- Changing `content`/`icon` briefly re-mounts the badge (re-plays `transitionName`).
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# SBreadcrumbs
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SBreadcrumbs, type BreadcrumbsItem } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Navigation trail showing the current page's location in a hierarchy. Renders a `<nav aria-label="breadcrumbs">` with an `<ol>`.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsBreadcrumbs.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `items` | `BreadcrumbsItem[]` | `undefined` | Breadcrumb entries |
|
|
14
|
+
| `divider` | `string` | `'/'` | Separator text between items |
|
|
15
|
+
| `large` | `boolean` | `false` | Larger text |
|
|
16
|
+
| `color` | `string \| null` | `undefined` | Text color of the enabled (link) items |
|
|
17
|
+
|
|
18
|
+
### BreadcrumbsItem
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
interface BreadcrumbsItem {
|
|
22
|
+
text: string | number
|
|
23
|
+
to?: RouteLocationRaw // renders router-link
|
|
24
|
+
href?: string // renders <a>
|
|
25
|
+
disabled?: boolean // renders plain <span>
|
|
26
|
+
link?: boolean // declared on the type, not used by the component
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Each item renders as `router-link` if `to` is set, else `<a>` if `href` is set, else `<span>`. A disabled item is always a `<span>`.
|
|
31
|
+
|
|
32
|
+
## Slots
|
|
33
|
+
|
|
34
|
+
| Slot | Scoped data | Description |
|
|
35
|
+
|------|-------------|-------------|
|
|
36
|
+
| `custom-divider` | — | Replaces the divider text |
|
|
37
|
+
|
|
38
|
+
## Events
|
|
39
|
+
|
|
40
|
+
None.
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
```vue
|
|
45
|
+
<SBreadcrumbs
|
|
46
|
+
:items="[
|
|
47
|
+
{ text: 'Home', to: '/' },
|
|
48
|
+
{ text: 'Products', to: '/products' },
|
|
49
|
+
{ text: 'Item' },
|
|
50
|
+
]"
|
|
51
|
+
/>
|
|
52
|
+
|
|
53
|
+
<SBreadcrumbs :items="crumbs" divider="›" large color="primary" />
|
|
54
|
+
|
|
55
|
+
<SBreadcrumbs :items="crumbs">
|
|
56
|
+
<template #custom-divider>
|
|
57
|
+
<SIcon icon="mdi-chevron-right" size="small" />
|
|
58
|
+
</template>
|
|
59
|
+
</SBreadcrumbs>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Gotchas
|
|
63
|
+
|
|
64
|
+
- The **last item is disabled automatically** (current page) unless you set `disabled: false` on it explicitly.
|
|
65
|
+
- Disabled items ignore `color`.
|
|
66
|
+
- Pass `to` or `href` per item, not both — `to` wins.
|
|
67
|
+
- `to` requires vue-router in the app.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# SButton
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SButton } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Button with variants, preset sizes, colors, loading state and link behavior.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsButton.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `color` | `string` | `undefined` | Preset name (`primary`, `secondary`, `error`, ...) or any CSS color |
|
|
14
|
+
| `colorThreshold` | `number` | `undefined` | Luminance threshold for automatic light/dark text |
|
|
15
|
+
| `variant` | `'fab' \| 'text' \| 'icon' \| null` | `undefined` | `fab` = floating action button, `text` = no background, `icon` = circular icon button. No other values exist |
|
|
16
|
+
| `size` | `'mini' \| 'small' \| 'default' \| 'large' \| 'extra'` | `undefined` | Preset size |
|
|
17
|
+
| `type` | `'button' \| 'submit' \| 'reset'` | `'button'` (when unset) | HTML button `type` |
|
|
18
|
+
| `loading` | `boolean` | `false` | Replaces the content with a spinner and disables the button |
|
|
19
|
+
| `block` | `boolean` | `false` | Full width |
|
|
20
|
+
| `rounded` | `boolean` | `false` | Pill shape (ignored for `variant="icon"`) |
|
|
21
|
+
| `disabled` | `boolean` | `false` | Disable interaction |
|
|
22
|
+
| `elevation` | `0–24 \| '' \| null` | `undefined` | Shadow depth |
|
|
23
|
+
| `outlined` | `boolean` | `false` | Border style, text-colored |
|
|
24
|
+
| `underlined` | `boolean` | `false` | Underlined style |
|
|
25
|
+
| `borderRadius` | `'tile' \| 'rounded' \| number \| string` | `undefined` | Custom radius (`8`, `'8px'`, `'1rem'`, ...) |
|
|
26
|
+
| `href` | `string \| null` | `undefined` | Renders an `<a href>` |
|
|
27
|
+
| `to` | `RouteLocationRaw \| null` | `undefined` | Renders a `router-link` (needs vue-router) |
|
|
28
|
+
| `target` | `'_blank' \| '_self' \| '_parent' \| '_top'` | `undefined` | Only applied with `href` |
|
|
29
|
+
| `rel` | `string \| null` | `undefined` | Only applied with `href` |
|
|
30
|
+
| `tag` | `'button' \| 'a'` | `'button'` | Root tag when neither `href` nor `to` is set |
|
|
31
|
+
| `width` / `height` | `string \| number` | `undefined` | Dimensions |
|
|
32
|
+
| `minWidth` / `maxWidth` / `minHeight` / `maxHeight` | `string \| number` | `undefined` | Constraints |
|
|
33
|
+
| `value` | `string \| number \| boolean` | `undefined` | Selection value when used inside `SBottomNavigation` |
|
|
34
|
+
|
|
35
|
+
## Events
|
|
36
|
+
|
|
37
|
+
| Event | Payload | Description |
|
|
38
|
+
|-------|---------|-------------|
|
|
39
|
+
| `click` | `Event` | Native click |
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot | Description |
|
|
44
|
+
|------|-------------|
|
|
45
|
+
| `default` | Label / content (hidden while `loading`) |
|
|
46
|
+
|
|
47
|
+
## Usage
|
|
48
|
+
|
|
49
|
+
```vue
|
|
50
|
+
<SButton color="primary" :loading="isSaving" @click="save">Save</SButton>
|
|
51
|
+
<SButton outlined rounded color="secondary">Cancel</SButton>
|
|
52
|
+
<SButton variant="text" color="primary">Learn more</SButton>
|
|
53
|
+
<SButton block color="primary" type="submit">Submit</SButton>
|
|
54
|
+
|
|
55
|
+
<!-- Icon / FAB: put an SIcon inside -->
|
|
56
|
+
<SButton variant="icon"><SIcon icon="mdi-plus" /></SButton>
|
|
57
|
+
<SButton variant="fab" color="primary"><SIcon icon="mdi-pencil" /></SButton>
|
|
58
|
+
|
|
59
|
+
<!-- Links -->
|
|
60
|
+
<SButton :to="{ name: 'home' }">Home</SButton>
|
|
61
|
+
<SButton href="https://example.com" target="_blank" rel="noopener">External</SButton>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Gotchas
|
|
65
|
+
|
|
66
|
+
| ❌ | ✅ |
|
|
67
|
+
|----|----|
|
|
68
|
+
| `variant="outlined"` / `variant="flat"` | `outlined` is a boolean prop; `variant` is only `fab \| text \| icon` |
|
|
69
|
+
| `:loading="x" :disabled="x"` | `loading` already disables the button |
|
|
70
|
+
| `href="/a" :to="{...}"` together | Pass one: `to` → `router-link`, `href` → `<a>`. `to` wins if both are set |
|
|
71
|
+
| `<SButton icon="mdi-plus" />` | There is no `icon` prop — nest `<SIcon icon="mdi-plus" />` |
|
|
72
|
+
|
|
73
|
+
- `SIcon` renders nothing unless the app loads `@mdi/font` (e.g. `import '@mdi/font/css/materialdesignicons.css'`).
|
|
74
|
+
- Inside `SToolbar` the button picks up dark styling from the toolbar color automatically.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# SCalendar
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SCalendar } from '@khsura/sui'`
|
|
4
|
+
**Types:** `import type { CalendarEvent, CalendarDate, CalendarComponent } from '@khsura/sui'`
|
|
5
|
+
|
|
6
|
+
Calendar with month and week views, events, and prev/next navigation. (`SCalendarMonthly` / `SCalendarWeekly` are internal — not exported.)
|
|
7
|
+
|
|
8
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsCalendar.d.ts`
|
|
9
|
+
|
|
10
|
+
## Props
|
|
11
|
+
|
|
12
|
+
| Prop | Type | Default | Description |
|
|
13
|
+
|------|------|---------|-------------|
|
|
14
|
+
| `type` | `'month' \| 'week'` | `'month'` | View. Set it once — see Gotchas |
|
|
15
|
+
| `focus` (`v-model:focus`) | `string` (`'YYYY-MM-DD'`) | today | Focused date; invalid/empty → today |
|
|
16
|
+
| `events` | `CalendarEvent[]` | `undefined` | Events to display |
|
|
17
|
+
| `eventColor` | `(event) => string` | `undefined` | Per-event color (otherwise `event.color`) |
|
|
18
|
+
| `color` | `string` | `undefined` | Highlight color of the focused date |
|
|
19
|
+
| `theme` / `colorThreshold` | shared color props | `undefined` | Theme override / text-contrast threshold |
|
|
20
|
+
| `hideHeader` | `boolean` | `false` | *Week view:* hide the weekday header |
|
|
21
|
+
| `showWeek` | `boolean` | `false` | *Week view:* week-number column |
|
|
22
|
+
| `longWeekdays` | `boolean` | `false` | *Week view:* full weekday names |
|
|
23
|
+
| `showMonthOnFirst` | `boolean` | `false` | *Week view:* month name on the 1st |
|
|
24
|
+
| `shortMonths` | `boolean` | `false` | *Week view:* abbreviated month names |
|
|
25
|
+
| `minWeeks` | `number` | `1` | *Week view:* minimum weeks rendered |
|
|
26
|
+
| `eventOverlapMode` | `'stacked' \| 'column'` | `'column'` | *Week view:* layout of overlapping timed events |
|
|
27
|
+
| `allDayRows` | `number` | `7` | *Week view:* all-day rows before "more" |
|
|
28
|
+
|
|
29
|
+
The week-view props have no effect in month view. `tag` is typed but ignored (root is always a `div`).
|
|
30
|
+
|
|
31
|
+
## Events
|
|
32
|
+
|
|
33
|
+
| Event | Payload | Description |
|
|
34
|
+
|-------|---------|-------------|
|
|
35
|
+
| `update:focus` | `string` | Focus changed |
|
|
36
|
+
| `change` | `{ start: CalendarDate, end: CalendarDate }` | Focus changed (navigation or date click); range of the new month/week. **Not emitted on mount** |
|
|
37
|
+
| `click:date` | `{ date: CalendarDate, events: CalendarEvent[] }` | Date clicked (also moves focus there) |
|
|
38
|
+
| `click:event` | `{ date: CalendarDate, event: CalendarEvent }` | Event clicked |
|
|
39
|
+
| `click:time` | `{ date: CalendarDate, events: CalendarEvent[] }` | Time slot clicked (week view) |
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot | Scoped data | Description |
|
|
44
|
+
|------|-------------|-------------|
|
|
45
|
+
| `event` | `{ event }` | **Month view only** — custom event bar content. `event` has extra `isStartDate`, `isEndDate`, `isWeekStart`, `isWeekEnd` |
|
|
46
|
+
|
|
47
|
+
## Exposed (template ref)
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
calendar.value?.prev(n?) // back n months/weeks (default 1)
|
|
51
|
+
calendar.value?.next(n?) // forward n months/weeks
|
|
52
|
+
calendar.value?.title // e.g. '2026年3月' (Japanese format, not localized)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Types
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
interface CalendarEvent {
|
|
59
|
+
name: string
|
|
60
|
+
start: Date | string
|
|
61
|
+
end?: Date | string
|
|
62
|
+
color: string // required
|
|
63
|
+
timed: boolean // required — false = all-day
|
|
64
|
+
[key: string]: any
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface CalendarDate {
|
|
68
|
+
date: string; time: string
|
|
69
|
+
year: number; month: number; day: number; hour: number; minute: number; weekday: number
|
|
70
|
+
past: boolean; present: boolean; future: boolean
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Usage
|
|
75
|
+
|
|
76
|
+
```vue
|
|
77
|
+
<script setup lang="ts">
|
|
78
|
+
import { onMounted, ref } from 'vue'
|
|
79
|
+
import type { CalendarDate, CalendarEvent } from '@khsura/sui'
|
|
80
|
+
|
|
81
|
+
const calendar = ref()
|
|
82
|
+
const focus = ref('2026-03-10')
|
|
83
|
+
const events = ref<CalendarEvent[]>([])
|
|
84
|
+
|
|
85
|
+
const loadRange = async ({ start, end }: { start: CalendarDate; end: CalendarDate }) => {
|
|
86
|
+
events.value = await api.fetchEvents(start.date, end.date)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
onMounted(() => loadInitialMonth()) // `change` does not fire on first render
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<template>
|
|
93
|
+
<SToolbar>
|
|
94
|
+
<SButton variant="icon" @click="calendar?.prev()"><SIcon icon="mdi-chevron-left" /></SButton>
|
|
95
|
+
<span>{{ calendar?.title }}</span>
|
|
96
|
+
<SButton variant="icon" @click="calendar?.next()"><SIcon icon="mdi-chevron-right" /></SButton>
|
|
97
|
+
</SToolbar>
|
|
98
|
+
|
|
99
|
+
<SCalendar
|
|
100
|
+
ref="calendar"
|
|
101
|
+
v-model:focus="focus"
|
|
102
|
+
type="month"
|
|
103
|
+
:events="events"
|
|
104
|
+
@change="loadRange"
|
|
105
|
+
@click:event="({ event }) => openEvent(event)"
|
|
106
|
+
/>
|
|
107
|
+
</template>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Gotchas
|
|
111
|
+
|
|
112
|
+
| ❌ | ✅ |
|
|
113
|
+
|----|----|
|
|
114
|
+
| Toggling `:type` on a live calendar | `prev`/`next`/`title` keep the type from mount. Re-mount on switch: `<SCalendar :key="type" :type="type" />` |
|
|
115
|
+
| `@click:event="event => …"` | Payload is `{ date, event }` (and `{ date, events }` for `click:date`/`click:time`) |
|
|
116
|
+
| Events without `color`/`timed` | Both are required in `CalendarEvent` |
|
|
117
|
+
| Untrusted `event.name` in month view | Month view renders `name` as HTML — escape it, or use the `#event` slot |
|
|
118
|
+
|
|
119
|
+
- `CalendarComponent` types only props — `prev`/`next`/`title` are not on it; type the ref loosely or with your own interface.
|
|
120
|
+
- Use `@change` (not `update:focus`) to load events for the visible range; load the initial range yourself.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Card Components
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SCard, SCardTitle, SCardSubtitle, SCardText, SCardActions } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
A surface (`card` background, rounded corners, full width) with optional structured sections for title, subtitle, text, and actions.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsCard.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SCard
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `color` | `string` | `undefined` | Background: preset/app color name or CSS color |
|
|
18
|
+
| `colorThreshold` | `number` | `undefined` | Luminance threshold used to pick light/dark text on a custom color |
|
|
19
|
+
| `theme` | `'light' \| 'dark'` | `undefined` | Force light/dark text styling |
|
|
20
|
+
| `elevation` | `0`–`24` | `undefined` (no shadow) | Shadow depth |
|
|
21
|
+
| `outlined` | `boolean` | `false` | Border |
|
|
22
|
+
| `underlined` | `boolean` | `false` | Bottom border only |
|
|
23
|
+
| `borderRadius` | `'tile' \| 'rounded' \| number \| '<n>px' \| …` | `undefined` | Border radius override |
|
|
24
|
+
| `tag` | `string` | `'div'` | Root element (ignored when `href`/`to` is set) |
|
|
25
|
+
| `href` | `string` | `undefined` | Render as `<a>` |
|
|
26
|
+
| `to` | `RouteLocationRaw` | `undefined` | Render as `router-link` (takes precedence over `href`) |
|
|
27
|
+
| `target` | `'_blank' \| '_self' \| '_parent' \| '_top'` | `undefined` | Link target |
|
|
28
|
+
| `rel` | `string` | `undefined` | Link rel |
|
|
29
|
+
| `width` / `height` | `string \| number` | `undefined` | Dimensions |
|
|
30
|
+
| `maxWidth` / `maxHeight` | `string \| number` | `undefined` | Max dimensions |
|
|
31
|
+
| `minWidth` / `minHeight` | `string \| number` | `undefined` | Min dimensions |
|
|
32
|
+
|
|
33
|
+
### Slots
|
|
34
|
+
|
|
35
|
+
| Slot | Description |
|
|
36
|
+
|------|-------------|
|
|
37
|
+
| `default` | Card content (`SCardTitle`, `SCardSubtitle`, `SCardText`, `SCardActions`, `SImage`, …) |
|
|
38
|
+
|
|
39
|
+
### Events
|
|
40
|
+
|
|
41
|
+
None declared. Native listeners such as `@click` fall through to the root element.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## SCardTitle / SCardSubtitle / SCardText / SCardActions
|
|
46
|
+
|
|
47
|
+
Each takes only `tag` (default `'div'`) and a `default` slot. No events.
|
|
48
|
+
|
|
49
|
+
| Component | Purpose |
|
|
50
|
+
|-----------|---------|
|
|
51
|
+
| `SCardTitle` | Heading (h6 typography), flex row, padded |
|
|
52
|
+
| `SCardSubtitle` | Secondary line under the title, padded |
|
|
53
|
+
| `SCardText` | Body text area, full width, padded |
|
|
54
|
+
| `SCardActions` | Flex row with vertical centering for buttons. Items are **left-aligned** |
|
|
55
|
+
|
|
56
|
+
Spacing between adjacent title → subtitle → text is tightened automatically.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Usage
|
|
61
|
+
|
|
62
|
+
```vue
|
|
63
|
+
<SCard :max-width="400" :elevation="2">
|
|
64
|
+
<SCardTitle>Card Title</SCardTitle>
|
|
65
|
+
<SCardSubtitle>Last active 2 hours ago</SCardSubtitle>
|
|
66
|
+
<SCardText>Body content.</SCardText>
|
|
67
|
+
<SCardActions>
|
|
68
|
+
<SSpacer />
|
|
69
|
+
<SButton variant="text">Cancel</SButton>
|
|
70
|
+
<SButton color="primary">Confirm</SButton>
|
|
71
|
+
</SCardActions>
|
|
72
|
+
</SCard>
|
|
73
|
+
|
|
74
|
+
<!-- Image card -->
|
|
75
|
+
<SCard :max-width="340" :elevation="2">
|
|
76
|
+
<SImage src="/photo.jpg" :aspect-ratio="16/9" object-fit="cover" />
|
|
77
|
+
<SCardTitle>Photo Title</SCardTitle>
|
|
78
|
+
<SCardText>Description below the image.</SCardText>
|
|
79
|
+
</SCard>
|
|
80
|
+
|
|
81
|
+
<SCard outlined>
|
|
82
|
+
<SCardTitle>Outlined</SCardTitle>
|
|
83
|
+
</SCard>
|
|
84
|
+
|
|
85
|
+
<!-- Whole card is a router link -->
|
|
86
|
+
<SCard :to="{ name: 'detail', params: { id } }" :elevation="2">
|
|
87
|
+
<SCardTitle>{{ item.name }}</SCardTitle>
|
|
88
|
+
</SCard>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Gotchas
|
|
92
|
+
|
|
93
|
+
| ❌ | ✅ |
|
|
94
|
+
|----|----|
|
|
95
|
+
| Expecting a shadow by default | SCard has no shadow by default. Set `:elevation="2"` (or use `outlined`) |
|
|
96
|
+
| Expecting `SCardActions` to right-align buttons | Put `<SSpacer />` first to push buttons right |
|
|
97
|
+
| Adding `outlined :elevation="0"` "to remove the shadow" | No shadow is the default. `outlined` alone is enough |
|