@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,178 @@
|
|
|
1
|
+
# SCarousel
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SCarousel, SCarouselItem } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Image/content slider with delimiter dots, prev/next arrows, swipe and auto-play. **Auto-play is ON by default** (`cycle: true`) and the default height is `500`.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsCarousel.d.ts`, `propsCarouselItem.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SCarousel
|
|
12
|
+
|
|
13
|
+
<!-- generated:api:start SCarousel -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
15
|
+
|
|
16
|
+
**SCarousel props**
|
|
17
|
+
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `color` | `string` | — | no | — |
|
|
21
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
22
|
+
| `continuous` | `boolean` | — | no | — |
|
|
23
|
+
| `controlsBackgroundColor` | `string` | `"#0000004d"` | no | — |
|
|
24
|
+
| `cycle` | `boolean` | `true` | no | — |
|
|
25
|
+
| `delimiterIcon` | `string` | `"mdi-circle"` | no | — |
|
|
26
|
+
| `disabled` | `boolean \| null` | — | no | — |
|
|
27
|
+
| `height` | `string \| number` | `500` | no | — |
|
|
28
|
+
| `hideArrows` | `boolean` | — | no | — |
|
|
29
|
+
| `hideDelimiterBackground` | `boolean` | — | no | — |
|
|
30
|
+
| `hideDelimiters` | `boolean` | — | no | — |
|
|
31
|
+
| `interval` | `number` | `6000` | no | — |
|
|
32
|
+
| `modelValue` | `GroupItemValue` | — | no | — |
|
|
33
|
+
| `nextIcon` | `string` | `"mdi-chevron-right"` | no | — |
|
|
34
|
+
| `noAnimation` | `boolean` | `false` | no | — |
|
|
35
|
+
| `prevIcon` | `string` | `"mdi-chevron-left"` | no | — |
|
|
36
|
+
| `readonly` | `boolean \| null` | — | no | — |
|
|
37
|
+
| `selectedClass` | `string` | — | no | — |
|
|
38
|
+
| `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` |
|
|
39
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
40
|
+
| `touch` | `boolean \| TouchHandlers` | `true` | no | — |
|
|
41
|
+
| `verticalDelimiters` | `boolean \| "left" \| "right"` | — | no | — |
|
|
42
|
+
|
|
43
|
+
**SCarousel slots**
|
|
44
|
+
|
|
45
|
+
| Slot | Slot props |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| `default` | `{}` |
|
|
48
|
+
|
|
49
|
+
**SCarousel events**
|
|
50
|
+
|
|
51
|
+
| Event | Payload |
|
|
52
|
+
| --- | --- |
|
|
53
|
+
| `update:modelValue` | `[value: GroupItemValue \| undefined]` |
|
|
54
|
+
|
|
55
|
+
<!-- generated:api:end SCarousel -->
|
|
56
|
+
|
|
57
|
+
**SCarousel notes**
|
|
58
|
+
|
|
59
|
+
- `modelValue`: Active slide's `value` (use `v-model`)
|
|
60
|
+
- `cycle`: Auto-advance through slides
|
|
61
|
+
- `interval`: Auto-advance interval in ms
|
|
62
|
+
- `height`: Carousel height (number = px)
|
|
63
|
+
- `color`: Color of the active delimiter dot
|
|
64
|
+
- `hideDelimiters`: Hide the navigation dots
|
|
65
|
+
- `hideDelimiterBackground`: Hide the dots' background strip
|
|
66
|
+
- `controlsBackgroundColor`: Background of the dots strip
|
|
67
|
+
- `delimiterIcon`: Dot icon
|
|
68
|
+
- `verticalDelimiters`: Stack dots vertically on the left/right edge
|
|
69
|
+
- `hideArrows`: Hide prev/next arrows
|
|
70
|
+
- `prevIcon`: Previous arrow icon
|
|
71
|
+
- `nextIcon`: Next arrow icon
|
|
72
|
+
- `touch`: Swipe gestures
|
|
73
|
+
- `noAnimation`: Disable the slide transition
|
|
74
|
+
- `selectedClass`: Class for the active item
|
|
75
|
+
- `tag`: Root HTML element (default: `'div'`)
|
|
76
|
+
- `default` (slot): `SCarouselItem` components
|
|
77
|
+
- `update:modelValue` (event): Active slide changed (arrows, dots, swipe, auto-play)
|
|
78
|
+
|
|
79
|
+
Always looping and always one slide selected (`continuous` + `mandatory` are hard-wired). The `continuous` and `disabled` props exist in the type but have no effect on SCarousel.
|
|
80
|
+
|
|
81
|
+
### Slots
|
|
82
|
+
|
|
83
|
+
No `prev`/`next` slots on SCarousel.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## SCarouselItem
|
|
88
|
+
|
|
89
|
+
Each item renders an `SImage`. Your default-slot content is drawn as an overlay on top of the image.
|
|
90
|
+
|
|
91
|
+
<!-- generated:api:start SCarouselItem -->
|
|
92
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
93
|
+
|
|
94
|
+
**SCarouselItem props**
|
|
95
|
+
|
|
96
|
+
| Prop | Type | Default | Required | Values |
|
|
97
|
+
| --- | --- | --- | --- | --- |
|
|
98
|
+
| `activeClass` | `string \| null` | — | no | — |
|
|
99
|
+
| `alt` | `string \| null` | — | no | — |
|
|
100
|
+
| `aspectRatio` | `number \| null` | — | no | — |
|
|
101
|
+
| `height` | `string \| number \| null` | — | no | — |
|
|
102
|
+
| `lazyLoad` | `LazyLoad \| null` | — | no | — |
|
|
103
|
+
| `maxHeight` | `string \| number \| null` | — | no | — |
|
|
104
|
+
| `maxWidth` | `string \| number \| null` | — | no | — |
|
|
105
|
+
| `minHeight` | `string \| number \| null` | — | no | — |
|
|
106
|
+
| `minWidth` | `string \| number \| null` | — | no | — |
|
|
107
|
+
| `objectFit` | `"fill" \| "none" \| "contain" \| "cover" \| "scale-down"` | — | no | `contain`, `cover`, `fill`, `none`, `scale-down` |
|
|
108
|
+
| `selected` | `boolean` | — | no | — |
|
|
109
|
+
| `src` | `string \| null` | — | yes | — |
|
|
110
|
+
| `value` | `string \| number \| boolean` | — | no | — |
|
|
111
|
+
| `width` | `string \| number \| null` | — | no | — |
|
|
112
|
+
|
|
113
|
+
**SCarouselItem slots**
|
|
114
|
+
|
|
115
|
+
| Slot | Slot props |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| `default` | `{}` |
|
|
118
|
+
|
|
119
|
+
**SCarouselItem events**
|
|
120
|
+
|
|
121
|
+
None.
|
|
122
|
+
|
|
123
|
+
<!-- generated:api:end SCarouselItem -->
|
|
124
|
+
|
|
125
|
+
**SCarouselItem notes**
|
|
126
|
+
|
|
127
|
+
- `value`: Slide identifier matched against the carousel `v-model` (default: auto id)
|
|
128
|
+
- `src`: Image URL. Pass `:src="null"` for content-only slides (default: **required**)
|
|
129
|
+
- `alt`: Image alt text
|
|
130
|
+
- `objectFit`: Image fit
|
|
131
|
+
- `aspectRatio`: Image aspect ratio
|
|
132
|
+
- `default` (slot): Overlay content on top of the image
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Usage
|
|
137
|
+
|
|
138
|
+
```vue
|
|
139
|
+
<script setup lang="ts">
|
|
140
|
+
import { ref } from 'vue'
|
|
141
|
+
import { SCarousel, SCarouselItem } from '@khsura/sui'
|
|
142
|
+
|
|
143
|
+
const slide = ref(0)
|
|
144
|
+
const slides = [
|
|
145
|
+
{ src: '/slide1.jpg', title: 'Slide 1' },
|
|
146
|
+
{ src: '/slide2.jpg', title: 'Slide 2' },
|
|
147
|
+
]
|
|
148
|
+
</script>
|
|
149
|
+
|
|
150
|
+
<template>
|
|
151
|
+
<!-- Auto-plays by default -->
|
|
152
|
+
<SCarousel v-model="slide" :height="400">
|
|
153
|
+
<SCarouselItem v-for="(item, i) in slides" :key="i" :value="i" :src="item.src" object-fit="cover">
|
|
154
|
+
<h2>{{ item.title }}</h2>
|
|
155
|
+
</SCarouselItem>
|
|
156
|
+
</SCarousel>
|
|
157
|
+
|
|
158
|
+
<!-- Static carousel, dots on the right -->
|
|
159
|
+
<SCarousel v-model="slide" :cycle="false" vertical-delimiters="right" hide-arrows>
|
|
160
|
+
<SCarouselItem v-for="(item, i) in slides" :key="i" :value="i" :src="item.src" />
|
|
161
|
+
</SCarousel>
|
|
162
|
+
|
|
163
|
+
<!-- Content-only slides -->
|
|
164
|
+
<SCarousel v-model="slide" :cycle="false" :height="200" no-animation>
|
|
165
|
+
<SCarouselItem v-for="n in 3" :key="n" :value="n" :src="null">Content {{ n }}</SCarouselItem>
|
|
166
|
+
</SCarousel>
|
|
167
|
+
</template>
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Gotchas
|
|
171
|
+
|
|
172
|
+
| ❌ | ✅ |
|
|
173
|
+
|----|----|
|
|
174
|
+
| `<SCarousel>` and expecting a static slider | Add `:cycle="false"`. Auto-play is on by default |
|
|
175
|
+
| Nesting `<SImage>` inside `SCarouselItem` | Use the item's own `src` / `object-fit` props |
|
|
176
|
+
| `<SCarouselItem>` without `src` | `src` is required. Use `:src="null"` for text slides |
|
|
177
|
+
| Relying on `:key` as the identifier | Set `:value` explicitly. The key is not forwarded to the inner item |
|
|
178
|
+
| `<template #prev>` on SCarousel | Not supported. Only `prevIcon` / `nextIcon` |
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# SChip
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SChip } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Small pill for tags, filters or selections. Supports closable, clickable (`link`) and outlined styles.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsChip.d.ts`
|
|
8
|
+
|
|
9
|
+
<!-- generated:api:start SChip -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SChip props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
|
|
17
|
+
| `closable` | `boolean` | — | no | — |
|
|
18
|
+
| `color` | `string` | — | no | — |
|
|
19
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
20
|
+
| `disabled` | `boolean \| null` | — | no | — |
|
|
21
|
+
| `label` | `boolean` | — | no | — |
|
|
22
|
+
| `link` | `boolean` | — | no | — |
|
|
23
|
+
| `outlined` | `boolean \| null` | — | no | — |
|
|
24
|
+
| `readonly` | `boolean \| null` | — | no | — |
|
|
25
|
+
| `size` | `SizePropertyType` | — | no | `default`, `extra`, `large`, `mini`, `small` |
|
|
26
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
27
|
+
| `underlined` | `boolean \| null` | — | no | — |
|
|
28
|
+
|
|
29
|
+
**SChip slots**
|
|
30
|
+
|
|
31
|
+
| Slot | Slot props |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `close` | `{ on: { close: () => void; }; }` |
|
|
34
|
+
| `default` | `any` |
|
|
35
|
+
|
|
36
|
+
**SChip events**
|
|
37
|
+
|
|
38
|
+
| Event | Payload |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `click` | `[_: Event]` |
|
|
41
|
+
| `close` | `[]` |
|
|
42
|
+
|
|
43
|
+
<!-- generated:api:end SChip -->
|
|
44
|
+
|
|
45
|
+
**SChip notes**
|
|
46
|
+
|
|
47
|
+
- `color`: Preset name or CSS color
|
|
48
|
+
- `colorThreshold`: Luminance threshold for automatic light/dark text
|
|
49
|
+
- `size`: Preset size
|
|
50
|
+
- `label`: Square "label" shape instead of a pill
|
|
51
|
+
- `closable`: Show a close icon (`mdi-close`)
|
|
52
|
+
- `link`: Clickable styling; required for `click` to be emitted
|
|
53
|
+
- `disabled`: Disabled styling
|
|
54
|
+
- `outlined`: Border style, text-colored
|
|
55
|
+
- `underlined`: Underlined style
|
|
56
|
+
- `borderRadius`: Custom radius
|
|
57
|
+
- `close` (event): Close icon clicked (or `on.close()` called from the `close` slot)
|
|
58
|
+
- `click` (event): Chip clicked — **only emitted when `link` is set**
|
|
59
|
+
- `default` (slot): Chip text
|
|
60
|
+
- `close` (slot): Replaces the whole close icon, including its click handler. Only rendered when `closable`
|
|
61
|
+
|
|
62
|
+
## Usage
|
|
63
|
+
|
|
64
|
+
```vue
|
|
65
|
+
<SChip color="primary">Primary</SChip>
|
|
66
|
+
<SChip outlined color="secondary">Outlined</SChip>
|
|
67
|
+
<SChip label color="primary">Label</SChip>
|
|
68
|
+
<SChip link @click="selectFilter">Filter</SChip>
|
|
69
|
+
|
|
70
|
+
<SChip v-for="tag in tags" :key="tag" closable @close="tags = tags.filter((t) => t !== tag)">
|
|
71
|
+
{{ tag }}
|
|
72
|
+
</SChip>
|
|
73
|
+
|
|
74
|
+
<!-- Custom close icon: you must wire on.close yourself -->
|
|
75
|
+
<SChip closable @close="remove">
|
|
76
|
+
Tag
|
|
77
|
+
<template #close="{ on }">
|
|
78
|
+
<SIcon icon="mdi-close-circle" @click.stop="on.close" />
|
|
79
|
+
</template>
|
|
80
|
+
</SChip>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Gotchas
|
|
84
|
+
|
|
85
|
+
| ❌ | ✅ |
|
|
86
|
+
|----|----|
|
|
87
|
+
| `<SChip @click="fn">` without `link` | Add `link` — otherwise `click` never fires |
|
|
88
|
+
| `<template #close><SIcon .../></template>` | Use `#close="{ on }"` and call `on.close` — the slot replaces the built-in handler |
|
|
89
|
+
| `<SChip icon="..." />` | No icon prop — nest `<SIcon>` in the default slot |
|
|
90
|
+
|
|
91
|
+
- The chip root stops click propagation, so a parent's click handler will not fire when a chip is clicked.
|
|
92
|
+
- The default close icon is an `SIcon`; it renders nothing unless the app loads `@mdi/font`.
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# SDatePicker
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SDatePicker, datePickerModelFormats } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Inline date, month or year picker (rendered in an `SCard`) with min/max bounds.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDatePicker.d.ts`
|
|
8
|
+
|
|
9
|
+
<!-- generated:api:start SDatePicker -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SDatePicker props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `color` | `string` | — | no | — |
|
|
17
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
18
|
+
| `dateFormat` | `string` | `datePickerDisplayFormat.date` | no | — |
|
|
19
|
+
| `dense` | `boolean` | — | no | — |
|
|
20
|
+
| `disabled` | `boolean` | — | no | — |
|
|
21
|
+
| `height` | `string \| number \| null` | — | no | — |
|
|
22
|
+
| `hideTitle` | `boolean` | — | no | — |
|
|
23
|
+
| `max` | `string` | — | no | — |
|
|
24
|
+
| `maxHeight` | `string \| number \| null` | — | no | — |
|
|
25
|
+
| `maxWidth` | `string \| number \| null` | — | no | — |
|
|
26
|
+
| `min` | `string` | — | no | — |
|
|
27
|
+
| `minHeight` | `string \| number \| null` | — | no | — |
|
|
28
|
+
| `minWidth` | `string \| number \| null` | — | no | — |
|
|
29
|
+
| `modelValue` | `string \| null` | — | no | — |
|
|
30
|
+
| `monthFormat` | `string` | `datePickerDisplayFormat.month` | no | — |
|
|
31
|
+
| `readonly` | `boolean` | — | no | — |
|
|
32
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
33
|
+
| `today` | `string` | `dayjs().format("YYYY-MM-DD")` | no | — |
|
|
34
|
+
| `type` | `DatePickerTypeType` | `"date"` | yes | `date`, `month`, `year` |
|
|
35
|
+
| `width` | `string \| number \| null` | — | no | — |
|
|
36
|
+
| `yearFormat` | `string` | `datePickerDisplayFormat.year` | no | — |
|
|
37
|
+
|
|
38
|
+
**SDatePicker slots**
|
|
39
|
+
|
|
40
|
+
None.
|
|
41
|
+
|
|
42
|
+
**SDatePicker events**
|
|
43
|
+
|
|
44
|
+
| Event | Payload |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| `change` | `[]` |
|
|
47
|
+
| `update:modelValue` | `[value: string \| null \| undefined]` |
|
|
48
|
+
|
|
49
|
+
<!-- generated:api:end SDatePicker -->
|
|
50
|
+
|
|
51
|
+
**SDatePicker notes**
|
|
52
|
+
|
|
53
|
+
- `type`: Picker mode and model format (typed as required — always pass it)
|
|
54
|
+
- `min`: Earliest selectable value (`'YYYY-MM-DD'`, any `type`) (default: Jan 1, 5 years before `today`)
|
|
55
|
+
- `max`: Latest selectable value (default: Dec 31, 5 years after `today`)
|
|
56
|
+
- `today`: Date highlighted as "today" (`'YYYY-MM-DD'`)
|
|
57
|
+
- `hideTitle`: Hide the title area
|
|
58
|
+
- `dateFormat`: dayjs format for the date in the title
|
|
59
|
+
- `monthFormat`: dayjs format for month labels
|
|
60
|
+
- `yearFormat`: dayjs format for years (title, switch, year list), e.g. `'YYYY年'`, `'YYYY [он]'`
|
|
61
|
+
- `disabled`: Disables the **title** buttons only (see Gotchas)
|
|
62
|
+
- `readonly`: Makes the **title** buttons read-only only
|
|
63
|
+
- `dense`: Compact layout
|
|
64
|
+
- `color`: Selected-item color
|
|
65
|
+
- `colorThreshold`: Light/dark text threshold for the selected color
|
|
66
|
+
- `theme`: Per-component theme
|
|
67
|
+
- `width` / `height` / `min*` / `max*` sizes: Picker size (`minWidth`, `maxHeight`, …)
|
|
68
|
+
- `update:modelValue` (event): Value selected
|
|
69
|
+
- `change` (event): Emitted on selection, before the model updates — read the `v-model` ref, not the event
|
|
70
|
+
|
|
71
|
+
## Model
|
|
72
|
+
|
|
73
|
+
`v-model` — `string | null`: `'YYYY-MM-DD'` (`type="date"`), `'YYYY-MM'` (`month`), `'YYYY'` (`year`). Changing `type` converts the current value.
|
|
74
|
+
|
|
75
|
+
## Format constants
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
import { datePickerModelFormats } from '@khsura/sui'
|
|
79
|
+
|
|
80
|
+
datePickerModelFormats.date // 'YYYY-MM-DD'
|
|
81
|
+
datePickerModelFormats.month // 'YYYY-MM'
|
|
82
|
+
datePickerModelFormats.year // 'YYYY'
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Usage
|
|
86
|
+
|
|
87
|
+
```vue
|
|
88
|
+
<script setup lang="ts">
|
|
89
|
+
import { ref } from 'vue'
|
|
90
|
+
import dayjs from 'dayjs'
|
|
91
|
+
import { datePickerModelFormats } from '@khsura/sui'
|
|
92
|
+
|
|
93
|
+
const selectedDate = ref(dayjs().format(datePickerModelFormats.date))
|
|
94
|
+
const selectedMonth = ref(dayjs().format(datePickerModelFormats.month))
|
|
95
|
+
const birthDate = ref<string | null>(null)
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<template>
|
|
99
|
+
<SDatePicker v-model="selectedDate" type="date" color="primary" />
|
|
100
|
+
<SDatePicker v-model="selectedMonth" type="month" dense hide-title />
|
|
101
|
+
|
|
102
|
+
<!-- Range wider than ±5 years: pass min/max -->
|
|
103
|
+
<SDatePicker v-model="birthDate" type="date" min="1920-01-01" :max="dayjs().format('YYYY-MM-DD')" />
|
|
104
|
+
</template>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
For a popup picker use `SDatePickerInput` (below) rather than wiring `SMenu` yourself.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# SDatePickerInput
|
|
112
|
+
|
|
113
|
+
**Import:** `import { SDatePickerInput } from '@khsura/sui'`
|
|
114
|
+
|
|
115
|
+
Text field (type a value or pick from a popup `SDatePicker`), with optional prev/next **carousel** buttons that step the value. Registers with a parent `SForm`.
|
|
116
|
+
|
|
117
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDatePickerInput.d.ts`
|
|
118
|
+
|
|
119
|
+
<!-- generated:api:start SDatePickerInput -->
|
|
120
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
121
|
+
|
|
122
|
+
**SDatePickerInput props**
|
|
123
|
+
|
|
124
|
+
| Prop | Type | Default | Required | Values | Description |
|
|
125
|
+
| --- | --- | --- | --- | --- | --- |
|
|
126
|
+
| `block` | `boolean` | — | no | — | Stretches the field to the width of its container. |
|
|
127
|
+
| `carousel` | `boolean` | — | no | — | Renders prev/next buttons that step the model value by one period. |
|
|
128
|
+
| `carouselNextAriaLabel` | `string \| null` | `"Next"` | no | — | — |
|
|
129
|
+
| `carouselNextIcon` | `string` | `"mdi-chevron-right"` | no | — | — |
|
|
130
|
+
| `carouselPrevAriaLabel` | `string \| null` | `"Previous"` | no | — | — |
|
|
131
|
+
| `carouselPrevIcon` | `string` | `"mdi-chevron-left"` | no | — | — |
|
|
132
|
+
| `color` | `string` | — | no | — | — |
|
|
133
|
+
| `colorThreshold` | `number` | — | no | — | — |
|
|
134
|
+
| `dateFormat` | `string` | `datePickerDisplayFormat.date` | no | — | — |
|
|
135
|
+
| `dense` | `boolean` | — | no | — | — |
|
|
136
|
+
| `dirty` | `boolean` | — | no | — | — |
|
|
137
|
+
| `disabled` | `boolean` | — | no | — | — |
|
|
138
|
+
| `error` | `boolean` | — | no | — | — |
|
|
139
|
+
| `height` | `string \| number \| null` | — | no | — | — |
|
|
140
|
+
| `hideDetails` | `boolean` | — | no | — | — |
|
|
141
|
+
| `hideError` | `boolean` | — | no | — | — |
|
|
142
|
+
| `hideTitle` | `boolean` | — | no | — | — |
|
|
143
|
+
| `id` | `string` | — | no | — | — |
|
|
144
|
+
| `label` | `string \| null` | — | no | — | — |
|
|
145
|
+
| `max` | `string` | — | no | — | — |
|
|
146
|
+
| `maxHeight` | `string \| number \| null` | — | no | — | — |
|
|
147
|
+
| `maxWidth` | `string \| number \| null` | — | no | — | — |
|
|
148
|
+
| `min` | `string` | — | no | — | — |
|
|
149
|
+
| `minHeight` | `string \| number \| null` | — | no | — | — |
|
|
150
|
+
| `minWidth` | `string \| number \| null` | — | no | — | — |
|
|
151
|
+
| `modelValue` | `string \| null` | — | no | — | — |
|
|
152
|
+
| `monthFormat` | `string` | `datePickerDisplayFormat.month` | no | — | — |
|
|
153
|
+
| `placeholder` | `string \| null` | — | no | — | — |
|
|
154
|
+
| `readonly` | `boolean` | — | no | — | — |
|
|
155
|
+
| `rules` | `FormInputModelValueRule[]` | — | no | — | — |
|
|
156
|
+
| `simple` | `boolean \| null` | — | no | — | — |
|
|
157
|
+
| `size` | `SizePropertyType` | — | no | `default`, `extra`, `large`, `mini`, `small` | — |
|
|
158
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` | — |
|
|
159
|
+
| `tile` | `boolean` | — | no | — | — |
|
|
160
|
+
| `today` | `string` | `dayjs().format("YYYY-MM-DD")` | no | — | — |
|
|
161
|
+
| `type` | `DatePickerTypeType` | `"date"` | yes | `date`, `month`, `year` | — |
|
|
162
|
+
| `width` | `string \| number \| null` | — | no | — | — |
|
|
163
|
+
| `yearFormat` | `string` | `datePickerDisplayFormat.year` | no | — | — |
|
|
164
|
+
|
|
165
|
+
**SDatePickerInput slots**
|
|
166
|
+
|
|
167
|
+
None.
|
|
168
|
+
|
|
169
|
+
**SDatePickerInput events**
|
|
170
|
+
|
|
171
|
+
| Event | Payload |
|
|
172
|
+
| --- | --- |
|
|
173
|
+
| `change` | `[string \| null]` |
|
|
174
|
+
| `update:dirty` | `[boolean]` |
|
|
175
|
+
| `update:error` | `[boolean]` |
|
|
176
|
+
| `update:errors` | `[string[]]` |
|
|
177
|
+
| `update:modelValue` | `[value: string \| null \| undefined]` |
|
|
178
|
+
|
|
179
|
+
<!-- generated:api:end SDatePickerInput -->
|
|
180
|
+
|
|
181
|
+
**SDatePickerInput notes**
|
|
182
|
+
|
|
183
|
+
- `type`: Picker mode and model format
|
|
184
|
+
- `label`: Field label
|
|
185
|
+
- `placeholder`: Input placeholder (default: model format)
|
|
186
|
+
- `min` / `max`: Bounds for the popup and carousel buttons (default: ±5 years around `today` (picker))
|
|
187
|
+
- `rules`: Validation rules
|
|
188
|
+
- `hideDetails`: Hide label and error area
|
|
189
|
+
- `hideError`: Hide the error message
|
|
190
|
+
- `id`: Input id (default: auto)
|
|
191
|
+
- `disabled` / `readonly`: Native input states; disable carousel buttons
|
|
192
|
+
- `size`: Field size (font never below 16px)
|
|
193
|
+
- `simple`: Borderless field
|
|
194
|
+
- `tile`: Square corners
|
|
195
|
+
- `block`: Stretch to container width (otherwise hugs the value)
|
|
196
|
+
- `width` / `maxWidth` / `minWidth`: Field size; the popup stays 280px wide
|
|
197
|
+
- `carousel`: Prev/next buttons stepping one day / month / year
|
|
198
|
+
- `carouselPrevIcon` / `carouselNextIcon`: Button icons (default: `'mdi-chevron-left'` / `'mdi-chevron-right'`)
|
|
199
|
+
- `carouselPrevAriaLabel` / `carouselNextAriaLabel`: Button labels (default: `'Previous'` / `'Next'`)
|
|
200
|
+
- `today`, `dateFormat`, `monthFormat`, `yearFormat`, `dense`, `color`: Forwarded to the popup picker
|
|
201
|
+
- `update:modelValue` (event): Value changed
|
|
202
|
+
- `change` (event): Value committed (typed + Enter/blur, picked, or stepped)
|
|
203
|
+
- `update:error` (event): Validation state
|
|
204
|
+
- `update:errors` (event): Error messages
|
|
205
|
+
- `update:dirty` (event): Dirty state
|
|
206
|
+
|
|
207
|
+
`hideTitle`, `colorThreshold` and the picker `height` are not forwarded (the popup always hides its title).
|
|
208
|
+
|
|
209
|
+
## Usage
|
|
210
|
+
|
|
211
|
+
```vue
|
|
212
|
+
<SDatePickerInput v-model="date" label="Date" :rules="[v => !!v || 'Required']" />
|
|
213
|
+
<SDatePickerInput v-model="month" type="month" label="Month" carousel />
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Gotchas
|
|
217
|
+
|
|
218
|
+
| ❌ | ✅ |
|
|
219
|
+
|----|----|
|
|
220
|
+
| `<SDatePicker disabled>` to lock the picker | `disabled`/`readonly` only affect the title; hide the picker or use `SDatePickerInput disabled` |
|
|
221
|
+
| Birth-date picker with default bounds | Pass `min`/`max` — the default range is only ±5 years around today |
|
|
222
|
+
| Trusting typed input to respect `min`/`max` | Typed text is only format-checked; add a `rules` entry for the range |
|
|
223
|
+
| `@change="(v) => …"` on `SDatePicker` | `SDatePicker`'s `change` has no payload; use `v-model` / `@update:model-value` |
|
|
224
|
+
|
|
225
|
+
- Older versions: if omitting `min` or `max` leaves only today selectable, upgrade or pass both bounds explicitly.
|
|
226
|
+
- Typed text must match the model format exactly (`YYYY-MM-DD` etc.); invalid text reverts to the last value.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# SDialog
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SDialog } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Modal with a scrim, controlled by `v-model`. Centered by default; `location="bottom"` gives a bottom sheet; `fullscreen` fills the viewport. Background page scroll is locked while open.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDialog.d.ts`
|
|
8
|
+
|
|
9
|
+
<!-- generated:api:start SDialog -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SDialog props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `activator` | `string \| HTMLElement \| ComponentPublicInstance \| null` | — | no | — |
|
|
17
|
+
| `borderless` | `boolean` | — | no | — |
|
|
18
|
+
| `closeOnClick` | `boolean` | — | no | — |
|
|
19
|
+
| `disabled` | `boolean \| null` | — | no | — |
|
|
20
|
+
| `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 | — |
|
|
21
|
+
| `fullscreen` | `boolean` | — | no | — |
|
|
22
|
+
| `height` | `string \| number \| null` | — | no | — |
|
|
23
|
+
| `location` | `LocationRaw` | — | no | — |
|
|
24
|
+
| `maxHeight` | `string \| number \| null` | — | no | — |
|
|
25
|
+
| `maxWidth` | `string \| number \| null` | — | no | — |
|
|
26
|
+
| `minHeight` | `string \| number \| null` | — | no | — |
|
|
27
|
+
| `minWidth` | `string \| number \| null` | — | no | — |
|
|
28
|
+
| `modelValue` | `boolean` | — | no | — |
|
|
29
|
+
| `offsetX` | `number \| null` | — | no | — |
|
|
30
|
+
| `offsetY` | `number \| null` | — | no | — |
|
|
31
|
+
| `persistent` | `boolean` | — | no | — |
|
|
32
|
+
| `preventCloseOnClick` | `boolean` | — | no | — |
|
|
33
|
+
| `readonly` | `boolean \| null` | — | no | — |
|
|
34
|
+
| `scrollable` | `boolean` | — | no | — |
|
|
35
|
+
| `scrollableBackground` | `boolean` | — | no | — |
|
|
36
|
+
| `width` | `string \| number \| null` | — | no | — |
|
|
37
|
+
| `zIndex` | `number` | — | no | — |
|
|
38
|
+
|
|
39
|
+
**SDialog slots**
|
|
40
|
+
|
|
41
|
+
| Slot | Slot props |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| `activator` | `{ on: { click: () => void; }; attrs: Partial<PropsRequired<{ disabled: boolean \| null \| undefined; readonly: boolean \| null \| undefined; }>>; }` |
|
|
44
|
+
| `default` | `{}` |
|
|
45
|
+
|
|
46
|
+
**SDialog events**
|
|
47
|
+
|
|
48
|
+
| Event | Payload |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| `update:modelValue` | `[value: boolean \| undefined]` |
|
|
51
|
+
|
|
52
|
+
<!-- generated:api:end SDialog -->
|
|
53
|
+
|
|
54
|
+
**SDialog notes**
|
|
55
|
+
|
|
56
|
+
- `persistent`: Clicking outside does not close the dialog
|
|
57
|
+
- `scrollable`: With an `SCard` child: title/actions stay fixed, `SCardText` scrolls
|
|
58
|
+
- `fullscreen`: Fill the viewport
|
|
59
|
+
- `location`: Only `'bottom'` has an effect (bottom sheet); anything else = centered
|
|
60
|
+
- `elevation`: Shadow depth (a light shadow is applied by default)
|
|
61
|
+
- `zIndex`: z-index of the overlay layer
|
|
62
|
+
- `disabled`: Passed to the activator via `attrs` (disables the trigger)
|
|
63
|
+
- `width` / `height`: Content dimensions
|
|
64
|
+
- `maxWidth` / `maxHeight` / `minWidth` / `minHeight`: Constraints (max-height defaults to 90% when not fullscreen)
|
|
65
|
+
- `activator` (slot): Trigger. Bind **both** `v-on="on"` and `v-bind="attrs"`
|
|
66
|
+
- `default` (slot): Dialog content
|
|
67
|
+
|
|
68
|
+
## Model
|
|
69
|
+
|
|
70
|
+
`v-model: boolean` — open/closed.
|
|
71
|
+
|
|
72
|
+
## Events
|
|
73
|
+
|
|
74
|
+
None — use `v-model`.
|
|
75
|
+
|
|
76
|
+
## Usage
|
|
77
|
+
|
|
78
|
+
```vue
|
|
79
|
+
<SDialog v-model="isOpen" :max-width="480">
|
|
80
|
+
<template #activator="{ on, attrs }">
|
|
81
|
+
<SButton v-on="on" v-bind="attrs" color="primary">Open</SButton>
|
|
82
|
+
</template>
|
|
83
|
+
<SCard>
|
|
84
|
+
<SCardTitle>Confirm</SCardTitle>
|
|
85
|
+
<SCardText>Are you sure?</SCardText>
|
|
86
|
+
<SCardActions>
|
|
87
|
+
<SButton variant="text" @click="isOpen = false">Cancel</SButton>
|
|
88
|
+
<SButton color="primary" @click="confirm">OK</SButton>
|
|
89
|
+
</SCardActions>
|
|
90
|
+
</SCard>
|
|
91
|
+
</SDialog>
|
|
92
|
+
|
|
93
|
+
<!-- Programmatic -->
|
|
94
|
+
<SButton @click="sheet = true">Open sheet</SButton>
|
|
95
|
+
<SDialog v-model="sheet" location="bottom">
|
|
96
|
+
<SCard><SCardText>Bottom sheet</SCardText></SCard>
|
|
97
|
+
</SDialog>
|
|
98
|
+
|
|
99
|
+
<!-- Long content -->
|
|
100
|
+
<SDialog v-model="terms" scrollable :max-width="500">
|
|
101
|
+
<SCard>
|
|
102
|
+
<SCardTitle>Terms</SCardTitle>
|
|
103
|
+
<SCardText>…long text…</SCardText>
|
|
104
|
+
<SCardActions><SButton @click="terms = false">Close</SButton></SCardActions>
|
|
105
|
+
</SCard>
|
|
106
|
+
</SDialog>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Gotchas
|
|
110
|
+
|
|
111
|
+
| ❌ | ✅ |
|
|
112
|
+
|----|----|
|
|
113
|
+
| `<SDialog title="Confirm">` | No `title` prop — use `SCardTitle` inside an `SCard` |
|
|
114
|
+
| Plain text / `<div>` as the only child | The dialog has **no background** — wrap content in `SCard` or `SSheet` |
|
|
115
|
+
| `v-on="on"` only | Bind both `v-on="on"` and `v-bind="attrs"` |
|
|
116
|
+
| `persistent` with no close button | Always provide an explicit close action |
|
|
117
|
+
|
|
118
|
+
- The app must be wrapped in `<SApp>`: dialogs teleport into the overlay container `SApp` renders.
|
|
119
|
+
- There is no Escape-key handling and no `close` event.
|
|
120
|
+
- `borderless`, `scrollableBackground` and `closeOnClick` appear in the prop types but currently have no effect — do not rely on them.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# SDivider
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SDivider } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
A thin horizontal or vertical rule. Renders an `<hr role="separator">` with the matching `aria-orientation`.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDivider.d.ts`
|
|
8
|
+
|
|
9
|
+
<!-- generated:api:start SDivider -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SDivider props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `vertical` | `boolean` | — | no | — |
|
|
17
|
+
|
|
18
|
+
**SDivider slots**
|
|
19
|
+
|
|
20
|
+
None.
|
|
21
|
+
|
|
22
|
+
**SDivider events**
|
|
23
|
+
|
|
24
|
+
None.
|
|
25
|
+
|
|
26
|
+
<!-- generated:api:end SDivider -->
|
|
27
|
+
|
|
28
|
+
**SDivider notes**
|
|
29
|
+
|
|
30
|
+
- `vertical`: Render as a vertical divider (stretches to the parent's height)
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```vue
|
|
35
|
+
<!-- Horizontal divider (default) -->
|
|
36
|
+
<SDivider />
|
|
37
|
+
|
|
38
|
+
<!-- Vertical divider: parent must be flex and have a height -->
|
|
39
|
+
<div style="display: flex; align-items: center; height: 40px;">
|
|
40
|
+
<span>Left</span>
|
|
41
|
+
<SDivider vertical />
|
|
42
|
+
<span>Right</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<!-- Between list items -->
|
|
46
|
+
<SList>
|
|
47
|
+
<SListItem>Item 1</SListItem>
|
|
48
|
+
<SDivider />
|
|
49
|
+
<SListItem>Item 2</SListItem>
|
|
50
|
+
</SList>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Gotchas
|
|
54
|
+
|
|
55
|
+
- It is a real `<hr>`, so the browser's auto side margins stay. Inside a flex **column** (`flex-direction: column`, e.g. with `align-items: center`) it collapses to **zero width** and disappears. Give it a width or stretch it.
|
|
56
|
+
- A vertical divider takes its height from the parent. If the parent has no height, nothing shows.
|
|
57
|
+
|
|
58
|
+
| ❌ | ✅ |
|
|
59
|
+
|----|----|
|
|
60
|
+
| `<div style="display:flex;flex-direction:column;align-items:center"><SDivider /></div>` | `<SDivider style="align-self: stretch" />` or `<SDivider style="width: 100%" />` |
|
|
61
|
+
| `<SDivider vertical />` in a parent with no height | Give the flex parent a height, or use `align-items: stretch` |
|