@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,321 @@
|
|
|
1
|
+
# List Components
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SList, SListItem, SListItemTitle, SListItemSubtitle, SListItemIcon, SListItemAction, SListItemContent, SListItemGroup } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
List layout for navigation, menus, options, and data rows. `SList` passes its props down to its children through provide/inject, so the sub-components only work inside the right parent (see Gotchas).
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsList.d.ts`, `propsListItem.d.ts`, `propsListMediaItem.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SList
|
|
12
|
+
|
|
13
|
+
<!-- generated:api:start SList -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
15
|
+
|
|
16
|
+
**SList props**
|
|
17
|
+
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `color` | `string` | — | no | — |
|
|
21
|
+
| `colorThreshold` | `number` | — | no | — |
|
|
22
|
+
| `dense` | `boolean \| null` | — | no | — |
|
|
23
|
+
| `divided` | `boolean` | — | no | — |
|
|
24
|
+
| `inset` | `boolean \| null` | — | no | — |
|
|
25
|
+
| `lines` | `number \| null` | — | no | — |
|
|
26
|
+
| `link` | `boolean \| null` | — | no | — |
|
|
27
|
+
| `outlined` | `boolean \| null` | — | no | — |
|
|
28
|
+
| `tag` | `"div" \| "ol" \| "ul" \| null` | — | no | `div`, `ol`, `ul` |
|
|
29
|
+
| `text` | `boolean \| null` | — | no | — |
|
|
30
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
31
|
+
|
|
32
|
+
**SList slots**
|
|
33
|
+
|
|
34
|
+
| Slot | Slot props |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| `default` | `{}` |
|
|
37
|
+
|
|
38
|
+
**SList events**
|
|
39
|
+
|
|
40
|
+
None.
|
|
41
|
+
|
|
42
|
+
<!-- generated:api:end SList -->
|
|
43
|
+
|
|
44
|
+
**SList notes**
|
|
45
|
+
|
|
46
|
+
- `divided`: Border between items
|
|
47
|
+
- `lines`: Line clamp for `SListItemSubtitle` (the subtitle clamps to 2 lines when this is unset)
|
|
48
|
+
- `outlined`: Outlined border. `color` then sets the **text** color
|
|
49
|
+
- `dense`: No list padding, 40px rows, dense title/icon/action
|
|
50
|
+
- `link`: Hover style + pointer on every item
|
|
51
|
+
- `text`: `color` sets the text color instead of the background
|
|
52
|
+
- `color`: Background color (or text color with `outlined`/`text`)
|
|
53
|
+
- `colorThreshold`: Contrast threshold for custom colors
|
|
54
|
+
- `tag`: Root element (default: `'div'`)
|
|
55
|
+
- `inset`: Declared, but has no styling (no visible effect)
|
|
56
|
+
- `default` (slot): `SListItem`, `SListItemGroup`, `SDivider`, …
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## SListItem
|
|
61
|
+
|
|
62
|
+
A flex row with a minimum height of 48px (40px when the list is `dense`).
|
|
63
|
+
|
|
64
|
+
<!-- generated:api:start SListItem -->
|
|
65
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
66
|
+
|
|
67
|
+
**SListItem props**
|
|
68
|
+
|
|
69
|
+
| Prop | Type | Default | Required | Values |
|
|
70
|
+
| --- | --- | --- | --- | --- |
|
|
71
|
+
| `disabled` | `boolean \| null` | — | no | — |
|
|
72
|
+
| `href` | `string` | — | no | — |
|
|
73
|
+
| `lines` | `number \| null` | — | no | — |
|
|
74
|
+
| `link` | `boolean \| null` | — | no | — |
|
|
75
|
+
| `readonly` | `boolean \| null` | — | no | — |
|
|
76
|
+
| `rel` | `string` | — | no | — |
|
|
77
|
+
| `selectable` | `boolean \| null` | — | no | — |
|
|
78
|
+
| `tag` | `"div" \| "li" \| null` | — | no | `div`, `li` |
|
|
79
|
+
| `target` | `"_blank" \| "_self" \| "_parent" \| "_top"` | — | no | `_blank`, `_parent`, `_self`, `_top` |
|
|
80
|
+
| `to` | `string \| it \| et \| null` | — | no | — |
|
|
81
|
+
|
|
82
|
+
**SListItem slots**
|
|
83
|
+
|
|
84
|
+
| Slot | Slot props |
|
|
85
|
+
| --- | --- |
|
|
86
|
+
| `default` | `{}` |
|
|
87
|
+
|
|
88
|
+
**SListItem events**
|
|
89
|
+
|
|
90
|
+
| Event | Payload |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| `click` | `[value: Event]` |
|
|
93
|
+
|
|
94
|
+
<!-- generated:api:end SListItem -->
|
|
95
|
+
|
|
96
|
+
**SListItem notes**
|
|
97
|
+
|
|
98
|
+
- `link`: Hover background + pointer (automatic when `href`/`to` is set)
|
|
99
|
+
- `selectable`: Only sets `cursor: pointer`. It does **not** add selected styling
|
|
100
|
+
- `lines`: Subtitle line clamp for this item (overrides the list's `lines`)
|
|
101
|
+
- `disabled`: Disabled state
|
|
102
|
+
- `href`: Render as `<a>`
|
|
103
|
+
- `to`: Render as `router-link`
|
|
104
|
+
- `target` / `rel`: Link attributes
|
|
105
|
+
- `tag`: Root element (when not a link) (default: `'div'`)
|
|
106
|
+
- `default` (slot): Item content
|
|
107
|
+
- `click` (event): Item clicked
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## SListItemContent / SListItemTitle / SListItemSubtitle
|
|
112
|
+
|
|
113
|
+
`default` slot only, with no props.
|
|
114
|
+
|
|
115
|
+
- `SListItemContent` wraps the title and subtitle. It **must be inside an `SListItem`** (it throws otherwise).
|
|
116
|
+
- `SListItemTitle` is the primary line. It **must be inside an `SList`** (it throws otherwise).
|
|
117
|
+
- `SListItemSubtitle` is the secondary line, clamped to 2 lines by default. It **must be inside both `SList` and `SListItem`**.
|
|
118
|
+
|
|
119
|
+
<!-- generated:api:start SListItemContent -->
|
|
120
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
121
|
+
|
|
122
|
+
**SListItemContent props**
|
|
123
|
+
|
|
124
|
+
None.
|
|
125
|
+
|
|
126
|
+
**SListItemContent slots**
|
|
127
|
+
|
|
128
|
+
| Slot | Slot props |
|
|
129
|
+
| --- | --- |
|
|
130
|
+
| `default` | `{}` |
|
|
131
|
+
|
|
132
|
+
**SListItemContent events**
|
|
133
|
+
|
|
134
|
+
None.
|
|
135
|
+
|
|
136
|
+
<!-- generated:api:end SListItemContent -->
|
|
137
|
+
|
|
138
|
+
<!-- generated:api:start SListItemTitle -->
|
|
139
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
140
|
+
|
|
141
|
+
**SListItemTitle props**
|
|
142
|
+
|
|
143
|
+
None.
|
|
144
|
+
|
|
145
|
+
**SListItemTitle slots**
|
|
146
|
+
|
|
147
|
+
| Slot | Slot props |
|
|
148
|
+
| --- | --- |
|
|
149
|
+
| `default` | `{}` |
|
|
150
|
+
|
|
151
|
+
**SListItemTitle events**
|
|
152
|
+
|
|
153
|
+
None.
|
|
154
|
+
|
|
155
|
+
<!-- generated:api:end SListItemTitle -->
|
|
156
|
+
|
|
157
|
+
<!-- generated:api:start SListItemSubtitle -->
|
|
158
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
159
|
+
|
|
160
|
+
**SListItemSubtitle props**
|
|
161
|
+
|
|
162
|
+
None.
|
|
163
|
+
|
|
164
|
+
**SListItemSubtitle slots**
|
|
165
|
+
|
|
166
|
+
| Slot | Slot props |
|
|
167
|
+
| --- | --- |
|
|
168
|
+
| `default` | `{}` |
|
|
169
|
+
|
|
170
|
+
**SListItemSubtitle events**
|
|
171
|
+
|
|
172
|
+
None.
|
|
173
|
+
|
|
174
|
+
<!-- generated:api:end SListItemSubtitle -->
|
|
175
|
+
|
|
176
|
+
## SListItemIcon / SListItemAction
|
|
177
|
+
|
|
178
|
+
Leading icon area and trailing action area. `default` slot.
|
|
179
|
+
|
|
180
|
+
<!-- generated:api:start SListItemIcon -->
|
|
181
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
182
|
+
|
|
183
|
+
**SListItemIcon props**
|
|
184
|
+
|
|
185
|
+
| Prop | Type | Default | Required | Values |
|
|
186
|
+
| --- | --- | --- | --- | --- |
|
|
187
|
+
| `alignCenter` | `boolean \| null` | — | no | — |
|
|
188
|
+
| `dense` | `boolean \| null` | — | no | — |
|
|
189
|
+
|
|
190
|
+
**SListItemIcon slots**
|
|
191
|
+
|
|
192
|
+
| Slot | Slot props |
|
|
193
|
+
| --- | --- |
|
|
194
|
+
| `default` | `{}` |
|
|
195
|
+
|
|
196
|
+
**SListItemIcon events**
|
|
197
|
+
|
|
198
|
+
None.
|
|
199
|
+
|
|
200
|
+
<!-- generated:api:end SListItemIcon -->
|
|
201
|
+
|
|
202
|
+
**SListItemIcon notes**
|
|
203
|
+
|
|
204
|
+
- `alignCenter`: Vertically center the content
|
|
205
|
+
- `dense`: Dense sizing (the parent list's `dense` takes precedence)
|
|
206
|
+
|
|
207
|
+
<!-- generated:api:start SListItemAction -->
|
|
208
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
209
|
+
|
|
210
|
+
**SListItemAction props**
|
|
211
|
+
|
|
212
|
+
| Prop | Type | Default | Required | Values |
|
|
213
|
+
| --- | --- | --- | --- | --- |
|
|
214
|
+
| `alignCenter` | `boolean \| null` | — | no | — |
|
|
215
|
+
| `dense` | `boolean \| null` | — | no | — |
|
|
216
|
+
|
|
217
|
+
**SListItemAction slots**
|
|
218
|
+
|
|
219
|
+
| Slot | Slot props |
|
|
220
|
+
| --- | --- |
|
|
221
|
+
| `default` | `{}` |
|
|
222
|
+
|
|
223
|
+
**SListItemAction events**
|
|
224
|
+
|
|
225
|
+
None.
|
|
226
|
+
|
|
227
|
+
<!-- generated:api:end SListItemAction -->
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## SListItemGroup
|
|
232
|
+
|
|
233
|
+
A collapsible sub-list. By default it renders a clickable header row (title, subtitle, chevron). The children are rendered in a nested `SList` that inherits the parent list's props. **It must be inside an `SList`.**
|
|
234
|
+
|
|
235
|
+
<!-- generated:api:start SListItemGroup -->
|
|
236
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
237
|
+
|
|
238
|
+
**SListItemGroup props**
|
|
239
|
+
|
|
240
|
+
| Prop | Type | Default | Required | Values |
|
|
241
|
+
| --- | --- | --- | --- | --- |
|
|
242
|
+
| `modelValue` | `boolean` | `false` | no | — |
|
|
243
|
+
| `subtitle` | `string \| null` | `null` | no | — |
|
|
244
|
+
| `title` | `string \| null` | `null` | no | — |
|
|
245
|
+
|
|
246
|
+
**SListItemGroup slots**
|
|
247
|
+
|
|
248
|
+
| Slot | Slot props |
|
|
249
|
+
| --- | --- |
|
|
250
|
+
| `activator` | `{}` |
|
|
251
|
+
| `default` | `{}` |
|
|
252
|
+
|
|
253
|
+
**SListItemGroup events**
|
|
254
|
+
|
|
255
|
+
| Event | Payload |
|
|
256
|
+
| --- | --- |
|
|
257
|
+
| `update:modelValue` | `[value: boolean]` |
|
|
258
|
+
|
|
259
|
+
<!-- generated:api:end SListItemGroup -->
|
|
260
|
+
|
|
261
|
+
**SListItemGroup notes**
|
|
262
|
+
|
|
263
|
+
- `v-model`: Expanded state
|
|
264
|
+
- `title`: Header title
|
|
265
|
+
- `subtitle`: Header subtitle
|
|
266
|
+
- `activator` (slot): Replaces the default header row (no slot props; toggle `v-model` yourself)
|
|
267
|
+
- `default` (slot): Items shown when expanded
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## Usage
|
|
272
|
+
|
|
273
|
+
```vue
|
|
274
|
+
<SList>
|
|
275
|
+
<SListItem v-for="user in users" :key="user.id">
|
|
276
|
+
<SListItemContent>
|
|
277
|
+
<SListItemTitle>{{ user.name }}</SListItemTitle>
|
|
278
|
+
<SListItemSubtitle>{{ user.email }}</SListItemSubtitle>
|
|
279
|
+
</SListItemContent>
|
|
280
|
+
</SListItem>
|
|
281
|
+
</SList>
|
|
282
|
+
|
|
283
|
+
<!-- Icons + actions -->
|
|
284
|
+
<SList divided>
|
|
285
|
+
<SListItem v-for="file in files" :key="file.id">
|
|
286
|
+
<SListItemIcon align-center><SIcon icon="mdi-file" /></SListItemIcon>
|
|
287
|
+
<SListItemContent>
|
|
288
|
+
<SListItemTitle>{{ file.name }}</SListItemTitle>
|
|
289
|
+
</SListItemContent>
|
|
290
|
+
<SListItemAction align-center>
|
|
291
|
+
<SButton variant="icon" @click="deleteFile(file)"><SIcon icon="mdi-delete" /></SButton>
|
|
292
|
+
</SListItemAction>
|
|
293
|
+
</SListItem>
|
|
294
|
+
</SList>
|
|
295
|
+
|
|
296
|
+
<!-- Router links (hover styling is automatic) -->
|
|
297
|
+
<SList dense>
|
|
298
|
+
<SListItem :to="{ name: 'dashboard' }">
|
|
299
|
+
<SListItemContent><SListItemTitle>Dashboard</SListItemTitle></SListItemContent>
|
|
300
|
+
</SListItem>
|
|
301
|
+
</SList>
|
|
302
|
+
|
|
303
|
+
<!-- Collapsible group -->
|
|
304
|
+
<SList>
|
|
305
|
+
<SListItemGroup v-model="settingsOpen" title="Settings">
|
|
306
|
+
<SListItem link @click="openProfile">
|
|
307
|
+
<SListItemContent><SListItemTitle>Profile</SListItemTitle></SListItemContent>
|
|
308
|
+
</SListItem>
|
|
309
|
+
</SListItemGroup>
|
|
310
|
+
</SList>
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
## Gotchas
|
|
314
|
+
|
|
315
|
+
| ❌ | ✅ |
|
|
316
|
+
|----|----|
|
|
317
|
+
| `<SListItemTitle>` used outside an `SList` (e.g. in a card) | Throws `List props not found`. Use it only inside `SList` |
|
|
318
|
+
| `<SListItem><SListItemTitle/></SListItem>` with no content wrapper, then adding a subtitle | Wrap title + subtitle in `SListItemContent` |
|
|
319
|
+
| `<SListItem selectable>` expecting a selected highlight | Manage the active state yourself (e.g. a class), since `selectable` only changes the cursor |
|
|
320
|
+
| `<SListItemGroup>` used for single/multi selection | It only expands and collapses. Track selection yourself |
|
|
321
|
+
| `<SList inset>` | No effect |
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# SMenu
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SMenu } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Floating popup anchored to an activator. Clicking the activator toggles it; clicking outside closes it.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsMenu.d.ts`
|
|
8
|
+
|
|
9
|
+
<!-- generated:api:start SMenu -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SMenu props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `activator` | `string \| HTMLElement \| ComponentPublicInstance \| null` | — | no | — |
|
|
17
|
+
| `closeOnClick` | `boolean` | — | no | — |
|
|
18
|
+
| `closeOnContentClick` | `boolean` | — | no | — |
|
|
19
|
+
| `closeOnScroll` | `boolean` | — | no | — |
|
|
20
|
+
| `contentClass` | `string \| string[] \| Record<string, boolean>` | — | no | — |
|
|
21
|
+
| `contentStyle` | `StyleValue` | — | no | — |
|
|
22
|
+
| `disabled` | `boolean \| null` | — | no | — |
|
|
23
|
+
| `height` | `string \| number \| null` | — | no | — |
|
|
24
|
+
| `location` | `LocationRaw` | — | no | — |
|
|
25
|
+
| `maxHeight` | `string \| number \| null` | — | no | — |
|
|
26
|
+
| `maxWidth` | `string \| number \| null` | — | no | — |
|
|
27
|
+
| `minHeight` | `string \| number \| null` | — | no | — |
|
|
28
|
+
| `minWidth` | `string \| number \| null` | — | no | — |
|
|
29
|
+
| `modelValue` | `boolean` | — | no | — |
|
|
30
|
+
| `offsetX` | `number \| null` | — | no | — |
|
|
31
|
+
| `offsetY` | `number \| null` | — | no | — |
|
|
32
|
+
| `position` | `Position` | — | no | `absolute`, `fixed`, `relative`, `static`, `sticky` |
|
|
33
|
+
| `preventCloseOnClick` | `boolean` | — | no | — |
|
|
34
|
+
| `readonly` | `boolean \| null` | — | no | — |
|
|
35
|
+
| `screenPadding` | `number \| null` | — | no | — |
|
|
36
|
+
| `width` | `string \| number \| null` | — | no | — |
|
|
37
|
+
|
|
38
|
+
**SMenu slots**
|
|
39
|
+
|
|
40
|
+
| Slot | Slot props |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `activator` | `{ on: { click: () => void; }; attrs: Partial<PropsRequired<{ disabled: boolean \| null \| undefined; readonly: boolean \| null \| undefined; }>>; }` |
|
|
43
|
+
| `default` | `{}` |
|
|
44
|
+
|
|
45
|
+
**SMenu events**
|
|
46
|
+
|
|
47
|
+
| Event | Payload |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| `close` | `[]` |
|
|
50
|
+
| `update:modelValue` | `[value: boolean \| undefined]` |
|
|
51
|
+
|
|
52
|
+
<!-- generated:api:end SMenu -->
|
|
53
|
+
|
|
54
|
+
**SMenu notes**
|
|
55
|
+
|
|
56
|
+
- `location`: `'bottom'`, `'top'`, `'left'`, `'right'` (combinable, e.g. `'bottom right'`). **Unset = opens over the activator**
|
|
57
|
+
- `closeOnContentClick`: Close when the menu content is clicked
|
|
58
|
+
- `closeOnScroll`: Close on window scroll
|
|
59
|
+
- `position`: `'fixed'` positions relative to the viewport (use inside fixed containers)
|
|
60
|
+
- `offsetX` / `offsetY`: Extra offset in px
|
|
61
|
+
- `screenPadding`: Shift left by this many px when the menu would overflow the right edge
|
|
62
|
+
- `contentClass`: Classes on the content element
|
|
63
|
+
- `contentStyle`: Styles on the content element
|
|
64
|
+
- `preventCloseOnClick`: Activator click only opens, never closes
|
|
65
|
+
- `disabled`: Passed to the activator via `attrs` (disables the trigger)
|
|
66
|
+
- `width` / `height` / `min*` / `max*`: Content dimensions (min-width defaults to activator width)
|
|
67
|
+
- `activator` (slot): Trigger. Bind **both** `v-on="on"` and `v-bind="attrs"`
|
|
68
|
+
- `default` (slot): Menu content
|
|
69
|
+
- `close` (event): Emitted whenever the model changes to `false`
|
|
70
|
+
|
|
71
|
+
## Model
|
|
72
|
+
|
|
73
|
+
`v-model: boolean` — optional; the menu works uncontrolled too.
|
|
74
|
+
|
|
75
|
+
## Usage
|
|
76
|
+
|
|
77
|
+
```vue
|
|
78
|
+
<SMenu location="bottom" close-on-content-click>
|
|
79
|
+
<template #activator="{ on, attrs }">
|
|
80
|
+
<SButton v-on="on" v-bind="attrs">Actions</SButton>
|
|
81
|
+
</template>
|
|
82
|
+
<SList>
|
|
83
|
+
<SListItem @click="edit">Edit</SListItem>
|
|
84
|
+
<SListItem @click="remove">Delete</SListItem>
|
|
85
|
+
</SList>
|
|
86
|
+
</SMenu>
|
|
87
|
+
|
|
88
|
+
<!-- Filters: stays open while interacting (default) -->
|
|
89
|
+
<SMenu v-model="filtersOpen" location="bottom">
|
|
90
|
+
<template #activator="{ on, attrs }">
|
|
91
|
+
<SButton v-on="on" v-bind="attrs">Filter</SButton>
|
|
92
|
+
</template>
|
|
93
|
+
<SCard :width="250"><SCardText>…form controls…</SCardText></SCard>
|
|
94
|
+
</SMenu>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Gotchas
|
|
98
|
+
|
|
99
|
+
| ❌ | ✅ |
|
|
100
|
+
|----|----|
|
|
101
|
+
| `<SMenu>` without `location` | `location="bottom"` — otherwise the menu covers its activator |
|
|
102
|
+
| Expecting a click on an item to close the menu | Add `close-on-content-click` (it defaults to off) |
|
|
103
|
+
| `v-on="on"` only | Bind both `v-on="on"` and `v-bind="attrs"` |
|
|
104
|
+
| `:model-value="true"` on first render | Position is computed only when the model flips to `true`; open it after mount |
|
|
105
|
+
|
|
106
|
+
- The app must be wrapped in `<SApp>` (menus teleport into its overlay container).
|
|
107
|
+
- `closeOnClick` exists in the prop types but has no effect; outside clicks always close the menu.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# SOverlay
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SOverlay } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Low-level layer primitive. Teleports its slot into the overlay container rendered by `SApp`, optionally with a dark scrim. Used internally by `SDialog`, `SMenu`, `STooltip`, `SSnackbar`, `SSelect`, `SAutocomplete` and `SNavigationDrawer`. Prefer those components; use `SOverlay` only for custom full-screen layers.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsOverlay.d.ts`
|
|
8
|
+
|
|
9
|
+
<!-- generated:api:start SOverlay -->
|
|
10
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
11
|
+
|
|
12
|
+
**SOverlay props**
|
|
13
|
+
|
|
14
|
+
| Prop | Type | Default | Required | Values |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| `disabled` | `boolean` | — | no | — |
|
|
17
|
+
| `position` | `Position` | — | no | `absolute`, `fixed`, `relative`, `static`, `sticky` |
|
|
18
|
+
| `scrim` | `boolean` | — | no | — |
|
|
19
|
+
| `transition` | `string` | — | no | — |
|
|
20
|
+
| `value` | `boolean \| null` | — | no | — |
|
|
21
|
+
| `zIndex` | `number` | — | no | — |
|
|
22
|
+
|
|
23
|
+
**SOverlay slots**
|
|
24
|
+
|
|
25
|
+
| Slot | Slot props |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| `default` | `{ attrs: { class: string; }; value: true; }` |
|
|
28
|
+
|
|
29
|
+
**SOverlay events**
|
|
30
|
+
|
|
31
|
+
None.
|
|
32
|
+
|
|
33
|
+
<!-- generated:api:end SOverlay -->
|
|
34
|
+
|
|
35
|
+
**SOverlay notes**
|
|
36
|
+
|
|
37
|
+
- `value`: Show/hide the slot (and scrim)
|
|
38
|
+
- `scrim`: 50% black backdrop; makes the layer `position: fixed; inset: 0`
|
|
39
|
+
- `zIndex`: z-index of the layer (only with `scrim` or `position="fixed"`)
|
|
40
|
+
- `position`: `'fixed'` wraps content in the full-viewport layer without a scrim
|
|
41
|
+
- `transition`: Vue `<Transition>` name for the content
|
|
42
|
+
- `disabled`: Disables the teleport (renders in place)
|
|
43
|
+
- `default` (slot): Content, rendered only while `value` is true. Bind `v-bind="attrs"` (adds the content class: absolute, clickable)
|
|
44
|
+
|
|
45
|
+
## Events
|
|
46
|
+
|
|
47
|
+
None — the scrim does not emit clicks.
|
|
48
|
+
|
|
49
|
+
## Usage
|
|
50
|
+
|
|
51
|
+
```vue
|
|
52
|
+
<SOverlay :value="isLoading" scrim>
|
|
53
|
+
<template #default="{ attrs }">
|
|
54
|
+
<div v-bind="attrs" style="inset: 0; display: grid; place-items: center">
|
|
55
|
+
<SProgressCircular indeterminate color="primary" />
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
</SOverlay>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Gotchas
|
|
62
|
+
|
|
63
|
+
| ❌ | ✅ |
|
|
64
|
+
|----|----|
|
|
65
|
+
| `position="absolute"` + `scrim` inside a `position: relative` box to cover only that box | Not possible: with `scrim` the layer is teleported and `fixed` to the whole viewport |
|
|
66
|
+
| No `<SApp>` root | Wrap the app in `<SApp>` — the teleport target lives there |
|
|
67
|
+
| Expecting scrim click to close | Add your own close button; no event is emitted |
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# SProgressLinear / SProgressCircular
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SProgressLinear, SProgressCircular } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsProgressLinear.d.ts`, `propsProgressCircular.d.ts`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## SProgressLinear
|
|
10
|
+
|
|
11
|
+
Horizontal progress bar.
|
|
12
|
+
|
|
13
|
+
<!-- generated:api:start SProgressLinear -->
|
|
14
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
15
|
+
|
|
16
|
+
**SProgressLinear props**
|
|
17
|
+
|
|
18
|
+
| Prop | Type | Default | Required | Values |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
20
|
+
| `backgroundColor` | `string \| null` | — | no | — |
|
|
21
|
+
| `backgroundOpacity` | `string \| number \| null` | — | no | — |
|
|
22
|
+
| `color` | `string` | `"info"` | no | — |
|
|
23
|
+
| `indeterminate` | `boolean` | — | no | — |
|
|
24
|
+
| `position` | `Position` | — | no | `absolute`, `fixed`, `relative`, `static`, `sticky` |
|
|
25
|
+
| `size` | `string \| number \| null` | — | no | — |
|
|
26
|
+
| `value` | `string \| number` | `0` | no | — |
|
|
27
|
+
|
|
28
|
+
**SProgressLinear slots**
|
|
29
|
+
|
|
30
|
+
| Slot | Slot props |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| `default` | `{}` |
|
|
33
|
+
|
|
34
|
+
**SProgressLinear events**
|
|
35
|
+
|
|
36
|
+
None.
|
|
37
|
+
|
|
38
|
+
<!-- generated:api:end SProgressLinear -->
|
|
39
|
+
|
|
40
|
+
**SProgressLinear notes**
|
|
41
|
+
|
|
42
|
+
- `value`: Progress 0–100
|
|
43
|
+
- `indeterminate`: Animated, unknown duration
|
|
44
|
+
- `color`: Bar color (preset name or CSS color)
|
|
45
|
+
- `backgroundColor`: Track color. Falls back to `color`
|
|
46
|
+
- `backgroundOpacity`: Track opacity
|
|
47
|
+
- `size`: Bar height (number = px)
|
|
48
|
+
- `position`: Only `fixed` and `absolute` add positioning styles
|
|
49
|
+
- `default` (slot): Rendered inside the bar container (e.g. a label)
|
|
50
|
+
|
|
51
|
+
No events.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## SProgressCircular
|
|
56
|
+
|
|
57
|
+
Circular progress / spinner.
|
|
58
|
+
|
|
59
|
+
<!-- generated:api:start SProgressCircular -->
|
|
60
|
+
<!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
|
|
61
|
+
|
|
62
|
+
**SProgressCircular props**
|
|
63
|
+
|
|
64
|
+
| Prop | Type | Default | Required | Values |
|
|
65
|
+
| --- | --- | --- | --- | --- |
|
|
66
|
+
| `color` | `string \| null` | — | no | — |
|
|
67
|
+
| `indeterminate` | `boolean` | — | no | — |
|
|
68
|
+
| `rotate` | `number` | — | no | — |
|
|
69
|
+
| `size` | `string \| number` | `32` | no | — |
|
|
70
|
+
| `theme` | `AppThemeType` | — | no | `dark`, `light` |
|
|
71
|
+
| `value` | `number` | `0` | no | — |
|
|
72
|
+
| `width` | `number` | `4` | no | — |
|
|
73
|
+
|
|
74
|
+
**SProgressCircular slots**
|
|
75
|
+
|
|
76
|
+
| Slot | Slot props |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| `default` | `{}` |
|
|
79
|
+
|
|
80
|
+
**SProgressCircular events**
|
|
81
|
+
|
|
82
|
+
None.
|
|
83
|
+
|
|
84
|
+
<!-- generated:api:end SProgressCircular -->
|
|
85
|
+
|
|
86
|
+
**SProgressCircular notes**
|
|
87
|
+
|
|
88
|
+
- `value`: Progress 0–100 (clamped)
|
|
89
|
+
- `indeterminate`: Spinning state
|
|
90
|
+
- `color`: Arc color (text-color based, inherits `currentColor`)
|
|
91
|
+
- `size`: Diameter in px. Must be numeric (`'2rem'` breaks)
|
|
92
|
+
- `width`: Stroke width in px
|
|
93
|
+
- `rotate`: Starting angle offset in degrees
|
|
94
|
+
- `theme`: Theme override
|
|
95
|
+
- `default` (slot): Content centered in the circle
|
|
96
|
+
|
|
97
|
+
No events.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Usage
|
|
102
|
+
|
|
103
|
+
```vue
|
|
104
|
+
<template>
|
|
105
|
+
<SProgressLinear :value="uploadProgress" color="primary" />
|
|
106
|
+
<SProgressLinear indeterminate color="primary" />
|
|
107
|
+
<SProgressLinear :value="50" :size="8" color="primary" background-color="primary" :background-opacity="0.2" />
|
|
108
|
+
|
|
109
|
+
<!-- Page-level loader -->
|
|
110
|
+
<SProgressLinear v-if="isLoading" indeterminate color="primary" position="fixed" style="top: 0; z-index: 9999" />
|
|
111
|
+
|
|
112
|
+
<SProgressCircular indeterminate color="primary" />
|
|
113
|
+
<SProgressCircular :value="75" :size="100" :width="8" color="primary">75%</SProgressCircular>
|
|
114
|
+
<SProgressCircular indeterminate :size="20" color="primary" />
|
|
115
|
+
|
|
116
|
+
<!-- Loading button: prefer the built-in prop -->
|
|
117
|
+
<SButton :loading="isSaving" color="primary">Save</SButton>
|
|
118
|
+
</template>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Gotchas
|
|
122
|
+
|
|
123
|
+
- ✅ Use `SButton`'s `loading` prop instead of putting a spinner inside a button by hand.
|
|
124
|
+
- ❌ `<SProgressCircular size="2rem">` → ✅ `:size="32"` (px number).
|
|
125
|
+
- `SProgressLinear` defaults to `color="info"`, not primary.
|
|
126
|
+
- `SProgressCircular` always reports `aria-valuenow="60"`. If accessibility matters, set your own `aria-valuenow`.
|