@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,80 @@
|
|
|
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
|
+
<!-- generated:api:start SBreadcrumbs -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SBreadcrumbs props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `color` | `string \| null` | — | no | — |
|
|
17
|
+
| `divider` | `string` | `"/"` | no | — |
|
|
18
|
+
| `items` | `BreadcrumbsItem[]` | — | no | — |
|
|
19
|
+
| `large` | `boolean` | — | no | — |
|
|
20
|
+
|
|
21
|
+
**SBreadcrumbs slots**
|
|
22
|
+
|
|
23
|
+
| Slot | Slot props |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| `custom-divider` | `{}` |
|
|
26
|
+
|
|
27
|
+
**SBreadcrumbs events**
|
|
28
|
+
|
|
29
|
+
None.
|
|
30
|
+
|
|
31
|
+
<!-- generated:api:end SBreadcrumbs -->
|
|
32
|
+
|
|
33
|
+
**SBreadcrumbs notes**
|
|
34
|
+
|
|
35
|
+
- `items`: Breadcrumb entries
|
|
36
|
+
- `divider`: Separator text between items
|
|
37
|
+
- `large`: Larger text
|
|
38
|
+
- `color`: Text color of the enabled (link) items
|
|
39
|
+
- `custom-divider` (slot): Replaces the divider text
|
|
40
|
+
|
|
41
|
+
### BreadcrumbsItem
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
interface BreadcrumbsItem {
|
|
45
|
+
text: string | number
|
|
46
|
+
to?: RouteLocationRaw // renders router-link
|
|
47
|
+
href?: string // renders <a>
|
|
48
|
+
disabled?: boolean // renders plain <span>
|
|
49
|
+
link?: boolean // declared on the type, not used by the component
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
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>`.
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
```vue
|
|
58
|
+
<SBreadcrumbs
|
|
59
|
+
:items="[
|
|
60
|
+
{ text: 'Home', to: '/' },
|
|
61
|
+
{ text: 'Products', to: '/products' },
|
|
62
|
+
{ text: 'Item' },
|
|
63
|
+
]"
|
|
64
|
+
/>
|
|
65
|
+
|
|
66
|
+
<SBreadcrumbs :items="crumbs" divider="›" large color="primary" />
|
|
67
|
+
|
|
68
|
+
<SBreadcrumbs :items="crumbs">
|
|
69
|
+
<template #custom-divider>
|
|
70
|
+
<SIcon icon="mdi-chevron-right" size="small" />
|
|
71
|
+
</template>
|
|
72
|
+
</SBreadcrumbs>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Gotchas
|
|
76
|
+
|
|
77
|
+
- The **last item is disabled automatically** (current page) unless you set `disabled: false` on it explicitly.
|
|
78
|
+
- Disabled items ignore `color`.
|
|
79
|
+
- Pass `to` or `href` per item, not both — `to` wins.
|
|
80
|
+
- `to` requires vue-router in the app.
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
<!-- generated:api:start SButton -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SButton props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `activeClass` | `string \| null` | — | no | — |
|
|
17
|
+
| `block` | `boolean` | — | no | — |
|
|
18
|
+
| `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
|
|
19
|
+
| `color` | `string` | — | no | — |
|
|
20
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
21
|
+
| `disabled` | `boolean \| null` | — | no | — |
|
|
22
|
+
| `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 | — |
|
|
23
|
+
| `height` | `string \| number \| null` | — | no | — |
|
|
24
|
+
| `href` | `string \| null` | — | no | — |
|
|
25
|
+
| `loading` | `boolean` | — | no | — |
|
|
26
|
+
| `maxHeight` | `string \| number \| null` | — | no | — |
|
|
27
|
+
| `maxWidth` | `string \| number \| null` | — | no | — |
|
|
28
|
+
| `minHeight` | `string \| number \| null` | — | no | — |
|
|
29
|
+
| `minWidth` | `string \| number \| null` | — | no | — |
|
|
30
|
+
| `outlined` | `boolean \| null` | — | no | — |
|
|
31
|
+
| `readonly` | `boolean \| null` | — | no | — |
|
|
32
|
+
| `rel` | `string \| null` | — | no | — |
|
|
33
|
+
| `rounded` | `boolean` | — | no | — |
|
|
34
|
+
| `selected` | `boolean` | — | no | — |
|
|
35
|
+
| `size` | `SizePropertyType` | — | no | `default`, `extra`, `large`, `mini`, `small` |
|
|
36
|
+
| `tag` | `"a" \| "button" \| null` | `"button"` | no | `a`, `button` |
|
|
37
|
+
| `target` | `"_blank" \| "_self" \| "_parent" \| "_top"` | — | no | `_blank`, `_parent`, `_self`, `_top` |
|
|
38
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
39
|
+
| `to` | `string \| it \| et \| null` | — | no | — |
|
|
40
|
+
| `type` | `ButtonTypeType` | — | no | `button`, `reset`, `submit` |
|
|
41
|
+
| `underlined` | `boolean \| null` | — | no | — |
|
|
42
|
+
| `value` | `string \| number \| boolean` | — | no | — |
|
|
43
|
+
| `variant` | `"text" \| "icon" \| "fab" \| null` | — | no | `fab`, `icon`, `text` |
|
|
44
|
+
| `width` | `string \| number \| null` | — | no | — |
|
|
45
|
+
|
|
46
|
+
**SButton slots**
|
|
47
|
+
|
|
48
|
+
| Slot | Slot props |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| `default` | `{}` |
|
|
51
|
+
|
|
52
|
+
**SButton events**
|
|
53
|
+
|
|
54
|
+
| Event | Payload |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| `click` | `[value: Event]` |
|
|
57
|
+
|
|
58
|
+
<!-- generated:api:end SButton -->
|
|
59
|
+
|
|
60
|
+
**SButton notes**
|
|
61
|
+
|
|
62
|
+
- `color`: Preset name (`primary`, `secondary`, `error`, ...) or any CSS color
|
|
63
|
+
- `colorThreshold`: Luminance threshold for automatic light/dark text
|
|
64
|
+
- `variant`: `fab` = floating action button, `text` = no background, `icon` = circular icon button. No other values exist
|
|
65
|
+
- `size`: Preset size
|
|
66
|
+
- `type`: HTML button `type` (default: `'button'` (when unset))
|
|
67
|
+
- `loading`: Replaces the content with a spinner and disables the button
|
|
68
|
+
- `block`: Full width. A block button does not shrink, so two block buttons side by side in one flex row overflow — put each in its own `SColumn`
|
|
69
|
+
- `rounded`: Pill shape (ignored for `variant="icon"`)
|
|
70
|
+
- `disabled`: Disable interaction
|
|
71
|
+
- `elevation`: Shadow depth
|
|
72
|
+
- `outlined`: Border style, text-colored
|
|
73
|
+
- `underlined`: Underlined style
|
|
74
|
+
- `borderRadius`: Custom radius (`8`, `'8px'`, `'1rem'`, ...)
|
|
75
|
+
- `href`: Renders an `<a href>`
|
|
76
|
+
- `to`: Renders a `router-link` (needs vue-router)
|
|
77
|
+
- `target`: Only applied with `href`
|
|
78
|
+
- `rel`: Only applied with `href`
|
|
79
|
+
- `tag`: Root tag when neither `href` nor `to` is set
|
|
80
|
+
- `width` / `height`: Dimensions
|
|
81
|
+
- `minWidth` / `maxWidth` / `minHeight` / `maxHeight`: Constraints
|
|
82
|
+
- `value`: Selection value when used inside `SBottomNavigation`
|
|
83
|
+
- `click` (event): Native click
|
|
84
|
+
- `default` (slot): Label / content (hidden while `loading`)
|
|
85
|
+
|
|
86
|
+
## Usage
|
|
87
|
+
|
|
88
|
+
```vue
|
|
89
|
+
<SButton color="primary" :loading="isSaving" @click="save">Save</SButton>
|
|
90
|
+
<SButton outlined rounded color="secondary">Cancel</SButton>
|
|
91
|
+
<SButton variant="text" color="primary">Learn more</SButton>
|
|
92
|
+
<SButton block color="primary" type="submit">Submit</SButton>
|
|
93
|
+
|
|
94
|
+
<!-- Icon / FAB: put an SIcon inside -->
|
|
95
|
+
<SButton variant="icon"><SIcon icon="mdi-plus" /></SButton>
|
|
96
|
+
<SButton variant="fab" color="primary"><SIcon icon="mdi-pencil" /></SButton>
|
|
97
|
+
|
|
98
|
+
<!-- Links -->
|
|
99
|
+
<SButton :to="{ name: 'home' }">Home</SButton>
|
|
100
|
+
<SButton href="https://example.com" target="_blank" rel="noopener">External</SButton>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Gotchas
|
|
104
|
+
|
|
105
|
+
| ❌ | ✅ |
|
|
106
|
+
|----|----|
|
|
107
|
+
| `variant="outlined"` / `variant="flat"` | `outlined` is a boolean prop; `variant` is only `fab \| text \| icon` |
|
|
108
|
+
| `:loading="x" :disabled="x"` | `loading` already disables the button |
|
|
109
|
+
| `href="/a" :to="{...}"` together | Pass one: `to` → `router-link`, `href` → `<a>`. `to` wins if both are set |
|
|
110
|
+
| `<SButton icon="mdi-plus" />` | There is no `icon` prop — nest `<SIcon icon="mdi-plus" />` |
|
|
111
|
+
|
|
112
|
+
- `SIcon` renders nothing unless the app loads `@mdi/font` (e.g. `import '@mdi/font/css/materialdesignicons.css'`).
|
|
113
|
+
- Inside `SToolbar` the button picks up dark styling from the toolbar color automatically.
|
|
@@ -0,0 +1,150 @@
|
|
|
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
|
+
<!-- generated:api:start SCalendar -->
|
|
11
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
12
|
+
|
|
13
|
+
**SCalendar props**
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Required | Values |
|
|
16
|
+
| --- | --- | --- | --- | --- |
|
|
17
|
+
| `allDayRows` | `number` | — | no | — |
|
|
18
|
+
| `color` | `string` | — | no | — |
|
|
19
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
20
|
+
| `eventColor` | `((event: T) => string)` | — | no | — |
|
|
21
|
+
| `eventOverlapMode` | `"stacked" \| "column"` | — | no | `column`, `stacked` |
|
|
22
|
+
| `events` | `T[]` | — | no | — |
|
|
23
|
+
| `focus` | `string` | — | no | — |
|
|
24
|
+
| `hideHeader` | `boolean` | — | no | — |
|
|
25
|
+
| `longWeekdays` | `boolean` | — | no | — |
|
|
26
|
+
| `minWeeks` | `number` | — | no | — |
|
|
27
|
+
| `shortMonths` | `boolean` | — | no | — |
|
|
28
|
+
| `showMonthOnFirst` | `boolean` | — | no | — |
|
|
29
|
+
| `showWeek` | `boolean` | — | no | — |
|
|
30
|
+
| `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` |
|
|
31
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
32
|
+
| `type` | `"month" \| "week"` | `"month"` | no | `month`, `week` |
|
|
33
|
+
|
|
34
|
+
**SCalendar slots**
|
|
35
|
+
|
|
36
|
+
| Slot | Slot props |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `event` | `{ event: CalendarEventExtended<T>; }` |
|
|
39
|
+
|
|
40
|
+
**SCalendar events**
|
|
41
|
+
|
|
42
|
+
| Event | Payload |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| `change` | `[{ start: CalendarDate; end: CalendarDate; }]` |
|
|
45
|
+
| `click:date` | `[{ date: CalendarDate; events: T[]; }]` |
|
|
46
|
+
| `click:event` | `[{ date: CalendarDate; event: T; }]` |
|
|
47
|
+
| `click:time` | `[{ date: CalendarDate; events: T[]; }]` |
|
|
48
|
+
| `update:focus` | `[value: string \| undefined]` |
|
|
49
|
+
|
|
50
|
+
<!-- generated:api:end SCalendar -->
|
|
51
|
+
|
|
52
|
+
**SCalendar notes**
|
|
53
|
+
|
|
54
|
+
- `type`: View. Set it once — see Gotchas
|
|
55
|
+
- `focus` (`v-model:focus`): Focused date; invalid/empty → today (default: today)
|
|
56
|
+
- `events`: Events to display
|
|
57
|
+
- `eventColor`: Per-event color (otherwise `event.color`)
|
|
58
|
+
- `color`: Highlight color of the focused date
|
|
59
|
+
- `theme` / `colorThreshold`: Theme override / text-contrast threshold
|
|
60
|
+
- `hideHeader`: *Week view:* hide the weekday header
|
|
61
|
+
- `showWeek`: *Week view:* week-number column
|
|
62
|
+
- `longWeekdays`: *Week view:* full weekday names
|
|
63
|
+
- `showMonthOnFirst`: *Week view:* month name on the 1st
|
|
64
|
+
- `shortMonths`: *Week view:* abbreviated month names
|
|
65
|
+
- `minWeeks`: *Week view:* minimum weeks rendered (default: `1`)
|
|
66
|
+
- `eventOverlapMode`: *Week view:* layout of overlapping timed events (default: `'column'`)
|
|
67
|
+
- `allDayRows`: *Week view:* all-day rows before "more" (default: `7`)
|
|
68
|
+
- `update:focus` (event): Focus changed
|
|
69
|
+
- `change` (event): Focus changed (navigation or date click); range of the new month/week. **Not emitted on mount**
|
|
70
|
+
- `click:date` (event): Date clicked (also moves focus there)
|
|
71
|
+
- `click:event` (event): Event clicked
|
|
72
|
+
- `click:time` (event): Time slot clicked (week view)
|
|
73
|
+
- `event` (slot): **Month view only** — custom event bar content. `event` has extra `isStartDate`, `isEndDate`, `isWeekStart`, `isWeekEnd`
|
|
74
|
+
|
|
75
|
+
The week-view props have no effect in month view. `tag` is typed but ignored (root is always a `div`).
|
|
76
|
+
|
|
77
|
+
## Exposed (template ref)
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
calendar.value?.prev(n?) // back n months/weeks (default 1)
|
|
81
|
+
calendar.value?.next(n?) // forward n months/weeks
|
|
82
|
+
calendar.value?.title // e.g. '2026年3月' (Japanese format, not localized)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Types
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
interface CalendarEvent {
|
|
89
|
+
name: string
|
|
90
|
+
start: Date | string
|
|
91
|
+
end?: Date | string
|
|
92
|
+
color: string // required
|
|
93
|
+
timed: boolean // required — false = all-day
|
|
94
|
+
[key: string]: any
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface CalendarDate {
|
|
98
|
+
date: string; time: string
|
|
99
|
+
year: number; month: number; day: number; hour: number; minute: number; weekday: number
|
|
100
|
+
past: boolean; present: boolean; future: boolean
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Usage
|
|
105
|
+
|
|
106
|
+
```vue
|
|
107
|
+
<script setup lang="ts">
|
|
108
|
+
import { onMounted, ref } from 'vue'
|
|
109
|
+
import type { CalendarDate, CalendarEvent } from '@khsura/sui'
|
|
110
|
+
|
|
111
|
+
const calendar = ref()
|
|
112
|
+
const focus = ref('2026-03-10')
|
|
113
|
+
const events = ref<CalendarEvent[]>([])
|
|
114
|
+
|
|
115
|
+
const loadRange = async ({ start, end }: { start: CalendarDate; end: CalendarDate }) => {
|
|
116
|
+
events.value = await api.fetchEvents(start.date, end.date)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
onMounted(() => loadInitialMonth()) // `change` does not fire on first render
|
|
120
|
+
</script>
|
|
121
|
+
|
|
122
|
+
<template>
|
|
123
|
+
<SToolbar>
|
|
124
|
+
<SButton variant="icon" @click="calendar?.prev()"><SIcon icon="mdi-chevron-left" /></SButton>
|
|
125
|
+
<span>{{ calendar?.title }}</span>
|
|
126
|
+
<SButton variant="icon" @click="calendar?.next()"><SIcon icon="mdi-chevron-right" /></SButton>
|
|
127
|
+
</SToolbar>
|
|
128
|
+
|
|
129
|
+
<SCalendar
|
|
130
|
+
ref="calendar"
|
|
131
|
+
v-model:focus="focus"
|
|
132
|
+
type="month"
|
|
133
|
+
:events="events"
|
|
134
|
+
@change="loadRange"
|
|
135
|
+
@click:event="({ event }) => openEvent(event)"
|
|
136
|
+
/>
|
|
137
|
+
</template>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Gotchas
|
|
141
|
+
|
|
142
|
+
| ❌ | ✅ |
|
|
143
|
+
|----|----|
|
|
144
|
+
| Toggling `:type` on a live calendar | `prev`/`next`/`title` keep the type from mount. Re-mount on switch: `<SCalendar :key="type" :type="type" />` |
|
|
145
|
+
| `@click:event="event => …"` | Payload is `{ date, event }` (and `{ date, events }` for `click:date`/`click:time`) |
|
|
146
|
+
| Events without `color`/`timed` | Both are required in `CalendarEvent` |
|
|
147
|
+
| Untrusted `event.name` in month view | Month view renders `name` as HTML — escape it, or use the `#event` slot |
|
|
148
|
+
|
|
149
|
+
- `CalendarComponent` types only props — `prev`/`next`/`title` are not on it; type the ref loosely or with your own interface.
|
|
150
|
+
- Use `@change` (not `update:focus`) to load events for the visible range; load the initial range yourself.
|
|
@@ -0,0 +1,214 @@
|
|
|
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
|
+
<!-- generated:api:start SCard -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
15
|
+
|
|
16
|
+
**SCard props**
|
|
17
|
+
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
|
|
21
|
+
| `color` | `string` | — | no | — |
|
|
22
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
23
|
+
| `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 | — |
|
|
24
|
+
| `height` | `string \| number \| null` | — | no | — |
|
|
25
|
+
| `href` | `string \| null` | — | no | — |
|
|
26
|
+
| `maxHeight` | `string \| number \| null` | — | no | — |
|
|
27
|
+
| `maxWidth` | `string \| number \| null` | — | no | — |
|
|
28
|
+
| `minHeight` | `string \| number \| null` | — | no | — |
|
|
29
|
+
| `minWidth` | `string \| number \| null` | — | no | — |
|
|
30
|
+
| `outlined` | `boolean \| null` | — | no | — |
|
|
31
|
+
| `rel` | `string \| null` | — | no | — |
|
|
32
|
+
| `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` |
|
|
33
|
+
| `target` | `"_blank" \| "_self" \| "_parent" \| "_top"` | — | no | `_blank`, `_parent`, `_self`, `_top` |
|
|
34
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
35
|
+
| `to` | `string \| it \| et \| null` | — | no | — |
|
|
36
|
+
| `underlined` | `boolean \| null` | — | no | — |
|
|
37
|
+
| `width` | `string \| number \| null` | — | no | — |
|
|
38
|
+
|
|
39
|
+
**SCard slots**
|
|
40
|
+
|
|
41
|
+
| Slot | Slot props |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| `default` | `{}` |
|
|
44
|
+
|
|
45
|
+
**SCard events**
|
|
46
|
+
|
|
47
|
+
None.
|
|
48
|
+
|
|
49
|
+
<!-- generated:api:end SCard -->
|
|
50
|
+
|
|
51
|
+
**SCard notes**
|
|
52
|
+
|
|
53
|
+
- `color`: Background: preset/app color name or CSS color
|
|
54
|
+
- `colorThreshold`: Luminance threshold used to pick light/dark text on a custom color
|
|
55
|
+
- `theme`: Force light/dark text styling
|
|
56
|
+
- `elevation`: Shadow depth (default: `undefined` (no shadow))
|
|
57
|
+
- `outlined`: Border
|
|
58
|
+
- `underlined`: Bottom border only
|
|
59
|
+
- `borderRadius`: Border radius override
|
|
60
|
+
- `tag`: Root element (ignored when `href`/`to` is set) (default: `'div'`)
|
|
61
|
+
- `href`: Render as `<a>`
|
|
62
|
+
- `to`: Render as `router-link` (takes precedence over `href`)
|
|
63
|
+
- `target`: Link target
|
|
64
|
+
- `rel`: Link rel
|
|
65
|
+
- `width` / `height`: Dimensions
|
|
66
|
+
- `maxWidth` / `maxHeight`: Max dimensions
|
|
67
|
+
- `minWidth` / `minHeight`: Min dimensions
|
|
68
|
+
- `default` (slot): Card content (`SCardTitle`, `SCardSubtitle`, `SCardText`, `SCardActions`, `SImage`, …)
|
|
69
|
+
|
|
70
|
+
### Events
|
|
71
|
+
|
|
72
|
+
None declared. Native listeners such as `@click` fall through to the root element.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## SCardTitle / SCardSubtitle / SCardText / SCardActions
|
|
77
|
+
|
|
78
|
+
Each takes only `tag` (default `'div'`) and a `default` slot. No events.
|
|
79
|
+
|
|
80
|
+
| Component | Purpose |
|
|
81
|
+
|-----------|---------|
|
|
82
|
+
| `SCardTitle` | Heading (h6 typography), flex row, padded |
|
|
83
|
+
| `SCardSubtitle` | Secondary line under the title, padded |
|
|
84
|
+
| `SCardText` | Body text area, full width, padded |
|
|
85
|
+
| `SCardActions` | Flex row with vertical centering for buttons. Items are **left-aligned** |
|
|
86
|
+
|
|
87
|
+
Spacing between adjacent title → subtitle → text is tightened automatically.
|
|
88
|
+
|
|
89
|
+
`SCardTitle` is a flex row, so `s_textAlign__center` on it has no effect. Centre its content with `s_justify__center` (`s_justify__end` for right).
|
|
90
|
+
|
|
91
|
+
<!-- generated:api:start SCardTitle -->
|
|
92
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
93
|
+
|
|
94
|
+
**SCardTitle props**
|
|
95
|
+
|
|
96
|
+
| Prop | Type | Default | Required | Values |
|
|
97
|
+
| --- | --- | --- | --- | --- |
|
|
98
|
+
| `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` |
|
|
99
|
+
|
|
100
|
+
**SCardTitle slots**
|
|
101
|
+
|
|
102
|
+
| Slot | Slot props |
|
|
103
|
+
| --- | --- |
|
|
104
|
+
| `default` | `{}` |
|
|
105
|
+
|
|
106
|
+
**SCardTitle events**
|
|
107
|
+
|
|
108
|
+
None.
|
|
109
|
+
|
|
110
|
+
<!-- generated:api:end SCardTitle -->
|
|
111
|
+
|
|
112
|
+
<!-- generated:api:start SCardSubtitle -->
|
|
113
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
114
|
+
|
|
115
|
+
**SCardSubtitle props**
|
|
116
|
+
|
|
117
|
+
| Prop | Type | Default | Required | Values |
|
|
118
|
+
| --- | --- | --- | --- | --- |
|
|
119
|
+
| `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` |
|
|
120
|
+
|
|
121
|
+
**SCardSubtitle slots**
|
|
122
|
+
|
|
123
|
+
| Slot | Slot props |
|
|
124
|
+
| --- | --- |
|
|
125
|
+
| `default` | `{}` |
|
|
126
|
+
|
|
127
|
+
**SCardSubtitle events**
|
|
128
|
+
|
|
129
|
+
None.
|
|
130
|
+
|
|
131
|
+
<!-- generated:api:end SCardSubtitle -->
|
|
132
|
+
|
|
133
|
+
<!-- generated:api:start SCardText -->
|
|
134
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
135
|
+
|
|
136
|
+
**SCardText props**
|
|
137
|
+
|
|
138
|
+
| Prop | Type | Default | Required | Values |
|
|
139
|
+
| --- | --- | --- | --- | --- |
|
|
140
|
+
| `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` |
|
|
141
|
+
|
|
142
|
+
**SCardText slots**
|
|
143
|
+
|
|
144
|
+
| Slot | Slot props |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| `default` | `{}` |
|
|
147
|
+
|
|
148
|
+
**SCardText events**
|
|
149
|
+
|
|
150
|
+
None.
|
|
151
|
+
|
|
152
|
+
<!-- generated:api:end SCardText -->
|
|
153
|
+
|
|
154
|
+
<!-- generated:api:start SCardActions -->
|
|
155
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
156
|
+
|
|
157
|
+
**SCardActions props**
|
|
158
|
+
|
|
159
|
+
| Prop | Type | Default | Required | Values |
|
|
160
|
+
| --- | --- | --- | --- | --- |
|
|
161
|
+
| `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` |
|
|
162
|
+
|
|
163
|
+
**SCardActions slots**
|
|
164
|
+
|
|
165
|
+
| Slot | Slot props |
|
|
166
|
+
| --- | --- |
|
|
167
|
+
| `default` | `{}` |
|
|
168
|
+
|
|
169
|
+
**SCardActions events**
|
|
170
|
+
|
|
171
|
+
None.
|
|
172
|
+
|
|
173
|
+
<!-- generated:api:end SCardActions -->
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Usage
|
|
178
|
+
|
|
179
|
+
```vue
|
|
180
|
+
<SCard :max-width="400" :elevation="2">
|
|
181
|
+
<SCardTitle>Card Title</SCardTitle>
|
|
182
|
+
<SCardSubtitle>Last active 2 hours ago</SCardSubtitle>
|
|
183
|
+
<SCardText>Body content.</SCardText>
|
|
184
|
+
<SCardActions>
|
|
185
|
+
<SSpacer />
|
|
186
|
+
<SButton variant="text">Cancel</SButton>
|
|
187
|
+
<SButton color="primary">Confirm</SButton>
|
|
188
|
+
</SCardActions>
|
|
189
|
+
</SCard>
|
|
190
|
+
|
|
191
|
+
<!-- Image card -->
|
|
192
|
+
<SCard :max-width="340" :elevation="2">
|
|
193
|
+
<SImage src="/photo.jpg" :aspect-ratio="16/9" object-fit="cover" />
|
|
194
|
+
<SCardTitle>Photo Title</SCardTitle>
|
|
195
|
+
<SCardText>Description below the image.</SCardText>
|
|
196
|
+
</SCard>
|
|
197
|
+
|
|
198
|
+
<SCard outlined>
|
|
199
|
+
<SCardTitle>Outlined</SCardTitle>
|
|
200
|
+
</SCard>
|
|
201
|
+
|
|
202
|
+
<!-- Whole card is a router link -->
|
|
203
|
+
<SCard :to="{ name: 'detail', params: { id } }" :elevation="2">
|
|
204
|
+
<SCardTitle>{{ item.name }}</SCardTitle>
|
|
205
|
+
</SCard>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Gotchas
|
|
209
|
+
|
|
210
|
+
| ❌ | ✅ |
|
|
211
|
+
|----|----|
|
|
212
|
+
| Expecting a shadow by default | SCard has no shadow by default. Set `:elevation="2"` (or use `outlined`) |
|
|
213
|
+
| Expecting `SCardActions` to right-align buttons | Put `<SSpacer />` first to push buttons right |
|
|
214
|
+
| Adding `outlined :elevation="0"` "to remove the shadow" | No shadow is the default. `outlined` alone is enough |
|