@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,487 @@
|
|
|
1
|
+
# SUI Utility Classes
|
|
2
|
+
|
|
3
|
+
All utility classes are prefixed with `s_`. Many support **responsive variants** — append a breakpoint infix to apply them only at that breakpoint and above.
|
|
4
|
+
|
|
5
|
+
Import styles to activate utility classes:
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import '@khsura/sui/base.css'
|
|
9
|
+
// or for SCSS customization:
|
|
10
|
+
import '@khsura/sui/style.scss'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Breakpoints
|
|
16
|
+
|
|
17
|
+
| Infix | Min width | Breakpoint |
|
|
18
|
+
|-------|-----------|------------|
|
|
19
|
+
| *(none)* | 0 | All screens |
|
|
20
|
+
| `--xs` | 640px | Extra small and up |
|
|
21
|
+
| `--sm` | 768px | Small and up |
|
|
22
|
+
| `--md` | 1024px | Medium and up |
|
|
23
|
+
| `--lg` | 1280px | Large and up |
|
|
24
|
+
| `--xl` | 1536px | Extra large and up |
|
|
25
|
+
| `--xxl` | 1980px | Extra extra large and up |
|
|
26
|
+
|
|
27
|
+
**Responsive class pattern:** `s_{name}--{breakpoint}__{value}`
|
|
28
|
+
|
|
29
|
+
Example: `s_display--md__flex` → `display: flex` on `md` (1024px) and above.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Spacing
|
|
34
|
+
|
|
35
|
+
**Base unit:** `4px` (1 step = 4px). Steps 0–10.
|
|
36
|
+
|
|
37
|
+
| Step | Value |
|
|
38
|
+
|------|-------|
|
|
39
|
+
| 0 | 0 |
|
|
40
|
+
| 1 | 4px |
|
|
41
|
+
| 2 | 8px |
|
|
42
|
+
| 3 | 12px |
|
|
43
|
+
| 4 | 16px |
|
|
44
|
+
| 5 | 20px |
|
|
45
|
+
| 6 | 24px |
|
|
46
|
+
| 7 | 28px |
|
|
47
|
+
| 8 | 32px |
|
|
48
|
+
| 9 | 36px |
|
|
49
|
+
| 10 | 40px |
|
|
50
|
+
|
|
51
|
+
### Margin classes — `s_m{direction}__{step}`
|
|
52
|
+
|
|
53
|
+
| Class | CSS property |
|
|
54
|
+
|-------|-------------|
|
|
55
|
+
| `s_ma__{0–10}` | `margin` |
|
|
56
|
+
| `s_mx__{0–10}` | `margin-left` + `margin-right` |
|
|
57
|
+
| `s_my__{0–10}` | `margin-top` + `margin-bottom` |
|
|
58
|
+
| `s_mt__{0–10}` | `margin-top` |
|
|
59
|
+
| `s_mr__{0–10}` | `margin-right` |
|
|
60
|
+
| `s_mb__{0–10}` | `margin-bottom` |
|
|
61
|
+
| `s_ml__{0–10}` | `margin-left` |
|
|
62
|
+
| `s_ma__auto` | `margin: auto` |
|
|
63
|
+
| `s_mx__auto` | `margin-left: auto; margin-right: auto` |
|
|
64
|
+
|
|
65
|
+
### Padding classes — `s_p{direction}__{step}`
|
|
66
|
+
|
|
67
|
+
| Class | CSS property |
|
|
68
|
+
|-------|-------------|
|
|
69
|
+
| `s_pa__{0–10}` | `padding` |
|
|
70
|
+
| `s_px__{0–10}` | `padding-left` + `padding-right` |
|
|
71
|
+
| `s_py__{0–10}` | `padding-top` + `padding-bottom` |
|
|
72
|
+
| `s_pt__{0–10}` | `padding-top` |
|
|
73
|
+
| `s_pr__{0–10}` | `padding-right` |
|
|
74
|
+
| `s_pb__{0–10}` | `padding-bottom` |
|
|
75
|
+
| `s_pl__{0–10}` | `padding-left` |
|
|
76
|
+
|
|
77
|
+
### Examples
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<!-- 16px padding all sides -->
|
|
81
|
+
<div class="s_pa__4">...</div>
|
|
82
|
+
|
|
83
|
+
<!-- 8px horizontal margin -->
|
|
84
|
+
<div class="s_mx__2">...</div>
|
|
85
|
+
|
|
86
|
+
<!-- 12px top, 8px bottom -->
|
|
87
|
+
<div class="s_mt__3 s_mb__2">...</div>
|
|
88
|
+
|
|
89
|
+
<!-- Auto horizontal margin (center block) -->
|
|
90
|
+
<div class="s_mx__auto" style="width: 200px;">...</div>
|
|
91
|
+
|
|
92
|
+
<!-- Responsive: 8px padding on mobile, 16px on md+ -->
|
|
93
|
+
<div class="s_pa__2 s_pa--md__4">...</div>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Display
|
|
99
|
+
|
|
100
|
+
**Pattern:** `s_display__{value}` or `s_display--{breakpoint}__{value}`
|
|
101
|
+
|
|
102
|
+
| Class | CSS |
|
|
103
|
+
|-------|-----|
|
|
104
|
+
| `s_display__none` | `display: none` |
|
|
105
|
+
| `s_display__block` | `display: block` |
|
|
106
|
+
| `s_display__inline` | `display: inline` |
|
|
107
|
+
| `s_display__inlineBlock` | `display: inline-block` |
|
|
108
|
+
| `s_display__flex` | `display: flex` |
|
|
109
|
+
| `s_display__inlineFlex` | `display: inline-flex` |
|
|
110
|
+
|
|
111
|
+
### Examples
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<!-- Hide on mobile, show as flex on md+ -->
|
|
115
|
+
<div class="s_display__none s_display--md__flex">...</div>
|
|
116
|
+
|
|
117
|
+
<!-- Show on mobile only -->
|
|
118
|
+
<div class="s_display__block s_display--md__none">...</div>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Flexbox
|
|
124
|
+
|
|
125
|
+
### Justify Content — `s_justify__{value}`
|
|
126
|
+
|
|
127
|
+
| Class | CSS |
|
|
128
|
+
|-------|-----|
|
|
129
|
+
| `s_justify__start` | `justify-content: flex-start` |
|
|
130
|
+
| `s_justify__end` | `justify-content: flex-end` |
|
|
131
|
+
| `s_justify__center` | `justify-content: center` |
|
|
132
|
+
| `s_justify__spaceBetween` | `justify-content: space-between` |
|
|
133
|
+
| `s_justify__spaceAround` | `justify-content: space-around` |
|
|
134
|
+
|
|
135
|
+
### Align Items — `s_align__{value}`
|
|
136
|
+
|
|
137
|
+
| Class | CSS |
|
|
138
|
+
|-------|-----|
|
|
139
|
+
| `s_align__start` | `align-items: flex-start` |
|
|
140
|
+
| `s_align__end` | `align-items: flex-end` |
|
|
141
|
+
| `s_align__center` | `align-items: center` |
|
|
142
|
+
| `s_align__baseline` | `align-items: baseline` |
|
|
143
|
+
| `s_align__stretch` | `align-items: stretch` |
|
|
144
|
+
|
|
145
|
+
### Align Content — `s_alignContent__{value}`
|
|
146
|
+
|
|
147
|
+
| Class | CSS |
|
|
148
|
+
|-------|-----|
|
|
149
|
+
| `s_alignContent__start` | `align-content: flex-start` |
|
|
150
|
+
| `s_alignContent__end` | `align-content: flex-end` |
|
|
151
|
+
| `s_alignContent__center` | `align-content: center` |
|
|
152
|
+
| `s_alignContent__spaceBetween` | `align-content: space-between` |
|
|
153
|
+
| `s_alignContent__spaceAround` | `align-content: space-around` |
|
|
154
|
+
| `s_alignContent__stretch` | `align-content: stretch` |
|
|
155
|
+
|
|
156
|
+
### Align Self — `s_alignSelf__{value}`
|
|
157
|
+
|
|
158
|
+
| Class | CSS |
|
|
159
|
+
|-------|-----|
|
|
160
|
+
| `s_alignSelf__auto` | `align-self: auto` |
|
|
161
|
+
| `s_alignSelf__start` | `align-self: flex-start` |
|
|
162
|
+
| `s_alignSelf__end` | `align-self: flex-end` |
|
|
163
|
+
| `s_alignSelf__center` | `align-self: center` |
|
|
164
|
+
| `s_alignSelf__baseline` | `align-self: baseline` |
|
|
165
|
+
| `s_alignSelf__stretch` | `align-self: stretch` |
|
|
166
|
+
|
|
167
|
+
### Order — `s_order__{value}`
|
|
168
|
+
|
|
169
|
+
| Class | CSS |
|
|
170
|
+
|-------|-----|
|
|
171
|
+
| `s_order__first` | `order: -1` |
|
|
172
|
+
| `s_order__{0–12}` | `order: 0–12` |
|
|
173
|
+
| `s_order__last` | `order: 13` |
|
|
174
|
+
|
|
175
|
+
All flexbox utilities support responsive variants.
|
|
176
|
+
|
|
177
|
+
### Examples
|
|
178
|
+
|
|
179
|
+
```html
|
|
180
|
+
<!-- Centered flex row -->
|
|
181
|
+
<div class="s_display__flex s_justify__center s_align__center">...</div>
|
|
182
|
+
|
|
183
|
+
<!-- Space-between on md+, stacked on mobile -->
|
|
184
|
+
<div class="s_display__flex s_justify--md__spaceBetween s_align__center">...</div>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Position
|
|
190
|
+
|
|
191
|
+
**Pattern:** `s_position__{value}` (no `!important`)
|
|
192
|
+
|
|
193
|
+
| Class | CSS |
|
|
194
|
+
|-------|-----|
|
|
195
|
+
| `s_position__static` | `position: static` |
|
|
196
|
+
| `s_position__relative` | `position: relative` |
|
|
197
|
+
| `s_position__absolute` | `position: absolute` |
|
|
198
|
+
| `s_position__fixed` | `position: fixed` |
|
|
199
|
+
| `s_position__sticky` | `position: sticky` |
|
|
200
|
+
| `s_position__unset` | `position: unset` |
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Overflow
|
|
205
|
+
|
|
206
|
+
| Class | CSS |
|
|
207
|
+
|-------|-----|
|
|
208
|
+
| `s_overflow__auto` | `overflow: auto` |
|
|
209
|
+
| `s_overflow__hidden` | `overflow: hidden` |
|
|
210
|
+
| `s_overflow__visible` | `overflow: visible` |
|
|
211
|
+
| `s_overflowX__auto` | `overflow-x: auto` |
|
|
212
|
+
| `s_overflowX__hidden` | `overflow-x: hidden` |
|
|
213
|
+
| `s_overflowY__auto` | `overflow-y: auto` |
|
|
214
|
+
| `s_overflowY__hidden` | `overflow-y: hidden` |
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Typography
|
|
219
|
+
|
|
220
|
+
> **Naming convention note:**
|
|
221
|
+
> - `s_text--{variant}` (double dash) — type scale classes (font size + weight presets)
|
|
222
|
+
> - `s_text__{value}` (double underscore) — white-space and text-transform utilities
|
|
223
|
+
> - `s_textAlign__`, `s_textDecoration__`, `s_textShadow__`, `s_fontWeight__` — other text utilities
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
### Type Scale — `s_text--{variant}`
|
|
228
|
+
|
|
229
|
+
| Class | Font Size | Weight | Notes |
|
|
230
|
+
|-------|-----------|--------|-------|
|
|
231
|
+
| `s_text--h1` | 6rem | 300 | Display heading |
|
|
232
|
+
| `s_text--h2` | 3.75rem | 300 | Large heading |
|
|
233
|
+
| `s_text--h3` | 3rem | 400 | Heading |
|
|
234
|
+
| `s_text--h4` | 2.125rem | 400 | Sub-heading |
|
|
235
|
+
| `s_text--h5` | 1.5rem | 400 | Section heading |
|
|
236
|
+
| `s_text--h6` | 1.25rem | 500 | Card heading |
|
|
237
|
+
| `s_text--subtitle__1` | 1rem | 400 | Subtitle |
|
|
238
|
+
| `s_text--subtitle__2` | 0.875rem | 500 | Small subtitle |
|
|
239
|
+
| `s_text--body__1` | 1rem | 400 | Body text |
|
|
240
|
+
| `s_text--body__2` | 0.875rem | 400 | Secondary body text |
|
|
241
|
+
| `s_text--caption` | 0.75rem | 400 | Labels, hints |
|
|
242
|
+
| `s_text--overline` | 0.75rem | 500 | Uppercase label (text-transform: uppercase) |
|
|
243
|
+
| `s_text--button` | 0.875rem | 500 | Button text (text-transform: uppercase) |
|
|
244
|
+
|
|
245
|
+
### Text State / Helpers
|
|
246
|
+
|
|
247
|
+
| Class | Effect |
|
|
248
|
+
|-------|--------|
|
|
249
|
+
| `s_text--disabled` | Disabled text color (uses theme disabled color) |
|
|
250
|
+
| `s_text--truncate` | `overflow: hidden; text-overflow: ellipsis; white-space: nowrap` |
|
|
251
|
+
|
|
252
|
+
### Text Alignment — `s_textAlign__{value}`
|
|
253
|
+
|
|
254
|
+
Supports responsive variants: `s_textAlign--{breakpoint}__{value}` (e.g. `s_textAlign--md__center`)
|
|
255
|
+
|
|
256
|
+
| Class | CSS |
|
|
257
|
+
|-------|-----|
|
|
258
|
+
| `s_textAlign__left` | `text-align: left` |
|
|
259
|
+
| `s_textAlign__right` | `text-align: right` |
|
|
260
|
+
| `s_textAlign__center` | `text-align: center` |
|
|
261
|
+
| `s_textAlign__justify` | `text-align: justify` |
|
|
262
|
+
| `s_textAlign__start` | `text-align: start` |
|
|
263
|
+
| `s_textAlign__end` | `text-align: end` |
|
|
264
|
+
|
|
265
|
+
### Text Decoration — `s_textDecoration__{value}`
|
|
266
|
+
|
|
267
|
+
| Class | CSS |
|
|
268
|
+
|-------|-----|
|
|
269
|
+
| `s_textDecoration__lineThrough` | `text-decoration: line-through` |
|
|
270
|
+
| `s_textDecoration__none` | `text-decoration: none` |
|
|
271
|
+
| `s_textDecoration__overline` | `text-decoration: overline` |
|
|
272
|
+
| `s_textDecoration__underline` | `text-decoration: underline` |
|
|
273
|
+
|
|
274
|
+
### White Space — `s_text__{value}`
|
|
275
|
+
|
|
276
|
+
| Class | CSS |
|
|
277
|
+
|-------|-----|
|
|
278
|
+
| `s_text__wrap` | `white-space: normal` |
|
|
279
|
+
| `s_text__noWrap` | `white-space: nowrap` |
|
|
280
|
+
| `s_text__pre` | `white-space: pre` |
|
|
281
|
+
| `s_text__preLine` | `white-space: pre-line` |
|
|
282
|
+
| `s_text__preWrap` | `white-space: pre-wrap` |
|
|
283
|
+
| `s_text__breakword` | `overflow-wrap: break-word; word-break: break-word` |
|
|
284
|
+
|
|
285
|
+
### Text Transform — `s_text__{value}`
|
|
286
|
+
|
|
287
|
+
| Class | CSS |
|
|
288
|
+
|-------|-----|
|
|
289
|
+
| `s_text__capitalize` | `text-transform: capitalize` |
|
|
290
|
+
| `s_text__lowercase` | `text-transform: lowercase` |
|
|
291
|
+
| `s_text__uppercase` | `text-transform: uppercase` |
|
|
292
|
+
|
|
293
|
+
### Font Weight — `s_fontWeight__{value}`
|
|
294
|
+
|
|
295
|
+
| Class | CSS |
|
|
296
|
+
|-------|-----|
|
|
297
|
+
| `s_fontWeight__bold` | `font-weight: 700` |
|
|
298
|
+
|
|
299
|
+
### Text Shadow — `s_textShadow__{0–3}`
|
|
300
|
+
|
|
301
|
+
| Class | Effect |
|
|
302
|
+
|-------|--------|
|
|
303
|
+
| `s_textShadow__0` | No shadow |
|
|
304
|
+
| `s_textShadow__1` | Subtle 1px shadow |
|
|
305
|
+
| `s_textShadow__2` | Medium 8px shadow |
|
|
306
|
+
| `s_textShadow__3` | Strong 16px shadow |
|
|
307
|
+
|
|
308
|
+
### Examples
|
|
309
|
+
|
|
310
|
+
```html
|
|
311
|
+
<!-- Headings -->
|
|
312
|
+
<h1 class="s_text--h1">Display</h1>
|
|
313
|
+
<h2 class="s_text--h2">Large Heading</h2>
|
|
314
|
+
<h3 class="s_text--h3">Heading</h3>
|
|
315
|
+
<h4 class="s_text--h4">Sub-heading</h4>
|
|
316
|
+
<h5 class="s_text--h5">Section</h5>
|
|
317
|
+
<h6 class="s_text--h6">Card Title</h6>
|
|
318
|
+
|
|
319
|
+
<!-- Body / labels -->
|
|
320
|
+
<p class="s_text--body__1">Primary body text</p>
|
|
321
|
+
<p class="s_text--body__2">Secondary body text</p>
|
|
322
|
+
<span class="s_text--caption">Helper text / label</span>
|
|
323
|
+
<span class="s_text--overline">OVERLINE LABEL</span>
|
|
324
|
+
<span class="s_text--subtitle__1">Subtitle</span>
|
|
325
|
+
<span class="s_text--subtitle__2">Small subtitle</span>
|
|
326
|
+
|
|
327
|
+
<!-- Helpers -->
|
|
328
|
+
<span class="s_text--disabled">Disabled text</span>
|
|
329
|
+
<p class="s_text--truncate" style="max-width: 200px;">Very long text that gets cut off...</p>
|
|
330
|
+
|
|
331
|
+
<!-- Alignment -->
|
|
332
|
+
<p class="s_textAlign__center">Centered</p>
|
|
333
|
+
<p class="s_textAlign--md__right">Right on md+</p>
|
|
334
|
+
|
|
335
|
+
<!-- White space -->
|
|
336
|
+
<p class="s_text__noWrap">Won't wrap</p>
|
|
337
|
+
<pre class="s_text__pre">Preserves whitespace</pre>
|
|
338
|
+
|
|
339
|
+
<!-- Transform -->
|
|
340
|
+
<span class="s_text__uppercase">uppercase text</span>
|
|
341
|
+
<span class="s_text__capitalize">capitalize each word</span>
|
|
342
|
+
|
|
343
|
+
<!-- Decoration -->
|
|
344
|
+
<span class="s_textDecoration__underline">underlined</span>
|
|
345
|
+
<span class="s_textDecoration__lineThrough">struck through</span>
|
|
346
|
+
|
|
347
|
+
<!-- Shadow -->
|
|
348
|
+
<h2 class="s_text--h2 s_textShadow__2">Shadowed heading</h2>
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Elevation
|
|
354
|
+
|
|
355
|
+
**Pattern:** `s_elevation__{0–24}`
|
|
356
|
+
|
|
357
|
+
Adds a Material Design box shadow. Maps to the same values as the `elevation` component prop.
|
|
358
|
+
|
|
359
|
+
```html
|
|
360
|
+
<div class="s_elevation__2">Card-like shadow</div>
|
|
361
|
+
<div class="s_elevation__8">Floating panel</div>
|
|
362
|
+
<div class="s_elevation__0">Flat</div>
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
## Border / Shape
|
|
368
|
+
|
|
369
|
+
| Class | Description |
|
|
370
|
+
|-------|-------------|
|
|
371
|
+
| `s_tile` | Remove border radius (`border-radius: 0`) |
|
|
372
|
+
| `s_rounded` | Apply default border radius |
|
|
373
|
+
| `s_outlined` | Border outline |
|
|
374
|
+
| `s_underlined` | Bottom border only |
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
## State
|
|
379
|
+
|
|
380
|
+
| Class | Description |
|
|
381
|
+
|-------|-------------|
|
|
382
|
+
| `s_disabled` | Disabled appearance (opacity + pointer-events: none) |
|
|
383
|
+
| `s_text--disabled` | Disabled text color only |
|
|
384
|
+
| `s_readonly` | Pointer-events: none, no opacity change |
|
|
385
|
+
| `s_linkElement` | Reset anchor styles (`color: inherit`, `text-decoration: none`, cursor: pointer) |
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
## Sizing Helpers
|
|
390
|
+
|
|
391
|
+
| Class | CSS |
|
|
392
|
+
|-------|-----|
|
|
393
|
+
| `s_height--fill` | `height: 100%` |
|
|
394
|
+
| `s_width--fill` | `width: 100%` |
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
---
|
|
399
|
+
|
|
400
|
+
## List Style
|
|
401
|
+
|
|
402
|
+
| Class | Description |
|
|
403
|
+
|-------|-------------|
|
|
404
|
+
| `s_list--asterisk` | List with `※` as the list marker |
|
|
405
|
+
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
## Transitions (Vue named transitions)
|
|
409
|
+
|
|
410
|
+
Use these as the `name` prop on Vue `<Transition>`:
|
|
411
|
+
|
|
412
|
+
| Name | Effect |
|
|
413
|
+
|------|--------|
|
|
414
|
+
| `s_transition--fade` | Opacity fade in/out |
|
|
415
|
+
| `s_transition--appear` | Fade + scale appear |
|
|
416
|
+
| `s_transition--bounce` | Scale bounce in, scale-out leave |
|
|
417
|
+
|
|
418
|
+
```vue
|
|
419
|
+
<Transition name="s_transition--fade">
|
|
420
|
+
<div v-if="show">Content</div>
|
|
421
|
+
</Transition>
|
|
422
|
+
|
|
423
|
+
<Transition name="s_transition--bounce">
|
|
424
|
+
<SBadge v-if="hasNotifications" ... />
|
|
425
|
+
</Transition>
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
## Complete Class Quick Reference
|
|
431
|
+
|
|
432
|
+
```html
|
|
433
|
+
<!-- Spacing -->
|
|
434
|
+
s_pa__4 s_px__2 s_py__3
|
|
435
|
+
s_mt__4 s_mb__2 s_ml__3 s_mr__1
|
|
436
|
+
s_mx__auto s_ma__0
|
|
437
|
+
|
|
438
|
+
<!-- Display -->
|
|
439
|
+
s_display__flex s_display__none
|
|
440
|
+
s_display__block s_display__inlineBlock
|
|
441
|
+
s_display--md__flex s_display--md__none
|
|
442
|
+
|
|
443
|
+
<!-- Flex -->
|
|
444
|
+
s_justify__center s_justify__spaceBetween
|
|
445
|
+
s_align__center s_align__start
|
|
446
|
+
s_alignSelf__end
|
|
447
|
+
|
|
448
|
+
<!-- Position -->
|
|
449
|
+
s_position__relative s_position__absolute
|
|
450
|
+
|
|
451
|
+
<!-- Overflow -->
|
|
452
|
+
s_overflow__hidden s_overflowY__auto
|
|
453
|
+
|
|
454
|
+
<!-- Typography: type scale (s_text--) -->
|
|
455
|
+
s_text--h1 s_text--h2 s_text--h3 s_text--h4 s_text--h5 s_text--h6
|
|
456
|
+
s_text--subtitle__1 s_text--subtitle__2
|
|
457
|
+
s_text--body__1 s_text--body__2
|
|
458
|
+
s_text--caption s_text--overline s_text--button
|
|
459
|
+
s_text--disabled s_text--truncate
|
|
460
|
+
|
|
461
|
+
<!-- Typography: alignment -->
|
|
462
|
+
s_textAlign__left s_textAlign__right s_textAlign__center
|
|
463
|
+
s_textAlign__justify s_textAlign__start s_textAlign__end
|
|
464
|
+
|
|
465
|
+
<!-- Typography: decoration -->
|
|
466
|
+
s_textDecoration__underline s_textDecoration__lineThrough
|
|
467
|
+
s_textDecoration__overline s_textDecoration__none
|
|
468
|
+
|
|
469
|
+
<!-- Typography: white-space (s_text__) -->
|
|
470
|
+
s_text__wrap s_text__noWrap s_text__pre s_text__preLine s_text__preWrap
|
|
471
|
+
s_text__breakword
|
|
472
|
+
|
|
473
|
+
<!-- Typography: transform (s_text__) -->
|
|
474
|
+
s_text__uppercase s_text__lowercase s_text__capitalize
|
|
475
|
+
|
|
476
|
+
<!-- Typography: weight & shadow -->
|
|
477
|
+
s_fontWeight__bold
|
|
478
|
+
s_textShadow__0 s_textShadow__1 s_textShadow__2 s_textShadow__3
|
|
479
|
+
|
|
480
|
+
<!-- Elevation -->
|
|
481
|
+
s_elevation__2 s_elevation__8
|
|
482
|
+
|
|
483
|
+
<!-- Shape & State -->
|
|
484
|
+
s_rounded s_tile
|
|
485
|
+
s_disabled s_readonly
|
|
486
|
+
s_height--fill s_width--fill
|
|
487
|
+
```
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# SUI Directives
|
|
2
|
+
|
|
3
|
+
Directives are automatically registered when you call `app.use(createSUI())`.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## v-scroll
|
|
8
|
+
|
|
9
|
+
Attaches a scroll event listener to `window` (default) or a custom target element.
|
|
10
|
+
|
|
11
|
+
### Syntax
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
v-scroll="handler"
|
|
15
|
+
v-scroll.self="handler"
|
|
16
|
+
v-scroll:[selector]="handler"
|
|
17
|
+
v-scroll="{ handler, options }"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Modifiers
|
|
21
|
+
|
|
22
|
+
| Modifier | Description |
|
|
23
|
+
|----------|-------------|
|
|
24
|
+
| `.self` | Listen on the element itself instead of `window` |
|
|
25
|
+
|
|
26
|
+
### Argument
|
|
27
|
+
|
|
28
|
+
Pass a CSS selector string as the argument to listen on a specific scrollable container:
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
v-scroll:['.my-container']="onScroll"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Value
|
|
35
|
+
|
|
36
|
+
Either a plain handler function or an options object:
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
// Plain function
|
|
40
|
+
v-scroll="(event: Event) => void"
|
|
41
|
+
|
|
42
|
+
// Options object
|
|
43
|
+
v-scroll="{ handler: (event) => void, options: AddEventListenerOptions }"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Usage
|
|
47
|
+
|
|
48
|
+
```vue
|
|
49
|
+
<script setup lang="ts">
|
|
50
|
+
const onWindowScroll = (event: Event) => {
|
|
51
|
+
console.log('scrollY:', window.scrollY)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const onSelfScroll = (event: Event) => {
|
|
55
|
+
console.log('element scrollTop:', (event.target as HTMLElement).scrollTop)
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<template>
|
|
60
|
+
<!-- Listen on window scroll -->
|
|
61
|
+
<div v-scroll="onWindowScroll">
|
|
62
|
+
Page content
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<!-- Listen on the element's own scroll (requires overflow: auto/scroll) -->
|
|
66
|
+
<div
|
|
67
|
+
v-scroll.self="onSelfScroll"
|
|
68
|
+
style="height: 200px; overflow-y: auto;"
|
|
69
|
+
>
|
|
70
|
+
Scrollable content
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<!-- Listen on a specific container by CSS selector -->
|
|
74
|
+
<div v-scroll="'.sidebar'" @scroll="onScroll">...</div>
|
|
75
|
+
|
|
76
|
+
<!-- With passive option (better performance for scroll-tracking) -->
|
|
77
|
+
<div v-scroll="{ handler: onScroll, options: { passive: true } }">...</div>
|
|
78
|
+
</template>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Notes
|
|
82
|
+
|
|
83
|
+
- The listener is automatically removed on component unmount.
|
|
84
|
+
- Uses `passive: true` by default for performance.
|
|
85
|
+
- When using `.self`, the element must have `overflow: auto` or `overflow: scroll` and a fixed height.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## v-resize
|
|
90
|
+
|
|
91
|
+
Attaches a resize event listener to `window`.
|
|
92
|
+
|
|
93
|
+
### Syntax
|
|
94
|
+
|
|
95
|
+
```html
|
|
96
|
+
v-resize="handler"
|
|
97
|
+
v-resize.quiet="handler"
|
|
98
|
+
v-resize.active="handler"
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Modifiers
|
|
102
|
+
|
|
103
|
+
| Modifier | Description |
|
|
104
|
+
|----------|-------------|
|
|
105
|
+
| `.quiet` | Do **not** call the handler immediately on mount (only on resize events) |
|
|
106
|
+
| `.active` | Use a non-passive listener (allows `preventDefault`) |
|
|
107
|
+
|
|
108
|
+
### Value
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
v-resize="() => void"
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Usage
|
|
115
|
+
|
|
116
|
+
```vue
|
|
117
|
+
<script setup lang="ts">
|
|
118
|
+
import { ref } from 'vue'
|
|
119
|
+
|
|
120
|
+
const windowWidth = ref(window.innerWidth)
|
|
121
|
+
|
|
122
|
+
const onResize = () => {
|
|
123
|
+
windowWidth.value = window.innerWidth
|
|
124
|
+
}
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
<template>
|
|
128
|
+
<!-- Called immediately on mount AND on every resize -->
|
|
129
|
+
<div v-resize="onResize">
|
|
130
|
+
Width: {{ windowWidth }}px
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<!-- Only called on resize events (not on mount) -->
|
|
134
|
+
<div v-resize.quiet="onResize">...</div>
|
|
135
|
+
</template>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Notes
|
|
139
|
+
|
|
140
|
+
- By default, the handler is called once immediately on mount (without `.quiet`) — useful for initializing layout-dependent values.
|
|
141
|
+
- The listener is automatically removed on component unmount.
|
|
142
|
+
- Prefer the `useDisplay()` composable for breakpoint-aware logic instead of manually checking `window.innerWidth`.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## useScroll composable (Smooth Scroll)
|
|
147
|
+
|
|
148
|
+
Not a directive, but commonly used alongside scroll behavior. Provides smooth scroll helpers.
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
import { useScroll } from '@khsura/sui'
|
|
152
|
+
|
|
153
|
+
const { smoothScrollTo, scrollIntoView, smoothElementScroll, hasScrollFeature } = useScroll()
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Methods
|
|
157
|
+
|
|
158
|
+
| Method | Signature | Description |
|
|
159
|
+
|--------|-----------|-------------|
|
|
160
|
+
| `smoothScrollTo` | `(selector: string, options?: ScrollIntoViewOptions) => void` | Smooth-scrolls to a CSS selector target |
|
|
161
|
+
| `scrollIntoView` | `(selector: string, options?: ScrollIntoViewOptions) => void` | Calls `element.scrollIntoView()` with options |
|
|
162
|
+
|
|
163
|
+
### Usage
|
|
164
|
+
|
|
165
|
+
```vue
|
|
166
|
+
<script setup lang="ts">
|
|
167
|
+
import { useScroll } from '@khsura/sui'
|
|
168
|
+
|
|
169
|
+
const { smoothScrollTo, scrollIntoView } = useScroll()
|
|
170
|
+
</script>
|
|
171
|
+
|
|
172
|
+
<template>
|
|
173
|
+
<nav>
|
|
174
|
+
<SButton @click="smoothScrollTo('#section-1', { behavior: 'smooth' })">
|
|
175
|
+
Go to Section 1
|
|
176
|
+
</SButton>
|
|
177
|
+
<SButton @click="scrollIntoView('#section-2', { behavior: 'smooth', block: 'start' })">
|
|
178
|
+
Go to Section 2
|
|
179
|
+
</SButton>
|
|
180
|
+
</nav>
|
|
181
|
+
|
|
182
|
+
<section id="section-1">Section 1</section>
|
|
183
|
+
<section id="section-2">Section 2</section>
|
|
184
|
+
</template>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Registration
|
|
190
|
+
|
|
191
|
+
Directives are registered globally via the SUI plugin — no per-component import needed:
|
|
192
|
+
|
|
193
|
+
```typescript
|
|
194
|
+
// main.ts
|
|
195
|
+
import { createSUI } from '@khsura/sui'
|
|
196
|
+
app.use(createSUI())
|
|
197
|
+
|
|
198
|
+
// Now available everywhere:
|
|
199
|
+
// v-scroll, v-resize
|
|
200
|
+
```
|