@khsura/sui 0.0.0-stage → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +18 -0
- package/@types/components/badge/index.d.ts +1 -0
- package/@types/components/badge/sBadge.vue.d.ts +18 -0
- package/@types/components/badge/sBadgeContent.vue.d.ts +14 -0
- package/@types/components/calendar/index.d.ts +1 -0
- package/@types/components/calendar/sCalendar.vue.d.ts +52 -0
- package/@types/components/calendar/sCalendarMonthly.vue.d.ts +51 -0
- package/@types/components/calendar/sCalendarWeekly.vue.d.ts +75 -0
- package/@types/components/cards/index.d.ts +5 -0
- package/@types/components/cards/sCard.vue.d.ts +14 -0
- package/@types/components/cards/sCardActions.vue.d.ts +15 -0
- package/@types/components/cards/sCardSubtitle.vue.d.ts +15 -0
- package/@types/components/cards/sCardText.vue.d.ts +15 -0
- package/@types/components/cards/sCardTitle.vue.d.ts +15 -0
- package/@types/components/carousel/index.d.ts +2 -0
- package/@types/components/carousel/sCarousel.vue.d.ts +34 -0
- package/@types/components/carousel/sCarouselItem.vue.d.ts +14 -0
- package/@types/components/datePicker/index.d.ts +2 -0
- package/@types/components/datePicker/sDatePicker.vue.d.ts +22 -0
- package/@types/components/datePicker/sDatePickerDate.vue.d.ts +12 -0
- package/@types/components/datePicker/sDatePickerInput.vue.d.ts +31 -0
- package/@types/components/datePicker/sDatePickerMonth.vue.d.ts +12 -0
- package/@types/components/datePicker/sDatePickerSwitch.vue.d.ts +15 -0
- package/@types/components/datePicker/sDatePickerTitle.vue.d.ts +16 -0
- package/@types/components/datePicker/sDatePickerYear.vue.d.ts +12 -0
- package/@types/components/expansionPanel/index.d.ts +4 -0
- package/@types/components/expansionPanel/sExpansionPanel.vue.d.ts +17 -0
- package/@types/components/expansionPanel/sExpansionPanelContent.vue.d.ts +15 -0
- package/@types/components/expansionPanel/sExpansionPanelHeader.vue.d.ts +21 -0
- package/@types/components/expansionPanel/sExpansionPanels.vue.d.ts +24 -0
- package/@types/components/form/common/index.d.ts +1 -0
- package/@types/components/form/common/sFormInputError.vue.d.ts +25 -0
- package/@types/components/form/index.d.ts +7 -0
- package/@types/components/form/radio/index.d.ts +2 -0
- package/@types/components/form/radio/sRadio.vue.d.ts +32 -0
- package/@types/components/form/radio/sRadioGroup.vue.d.ts +35 -0
- package/@types/components/form/sCheckbox.vue.d.ts +22 -0
- package/@types/components/form/sForm.vue.d.ts +31 -0
- package/@types/components/form/sInput.vue.d.ts +73 -0
- package/@types/components/form/sSelect.vue.d.ts +64 -0
- package/@types/components/form/sTextarea.vue.d.ts +38 -0
- package/@types/components/grids/index.d.ts +4 -0
- package/@types/components/grids/sColumn.vue.d.ts +14 -0
- package/@types/components/grids/sContainer.vue.d.ts +14 -0
- package/@types/components/grids/sRow.vue.d.ts +14 -0
- package/@types/components/grids/sSpacer.vue.d.ts +13 -0
- package/@types/components/index.d.ts +36 -0
- package/@types/components/layout/index.d.ts +8 -0
- package/@types/components/layout/sApp.vue.d.ts +15 -0
- package/@types/components/layout/sAppBar.vue.d.ts +22 -0
- package/@types/components/layout/sAppBarTitle.vue.d.ts +16 -0
- package/@types/components/layout/sBottomNavigation.vue.d.ts +24 -0
- package/@types/components/layout/sFooter.vue.d.ts +18 -0
- package/@types/components/layout/sLayout.vue.d.ts +14 -0
- package/@types/components/layout/sMain.vue.d.ts +14 -0
- package/@types/components/layout/sNavigationDrawer.vue.d.ts +45 -0
- package/@types/components/list/index.d.ts +8 -0
- package/@types/components/list/sList.vue.d.ts +14 -0
- package/@types/components/list/sListItem.vue.d.ts +18 -0
- package/@types/components/list/sListItemAction.vue.d.ts +14 -0
- package/@types/components/list/sListItemContent.vue.d.ts +13 -0
- package/@types/components/list/sListItemGroup.vue.d.ts +47 -0
- package/@types/components/list/sListItemIcon.vue.d.ts +14 -0
- package/@types/components/list/sListItemSubtitle.vue.d.ts +13 -0
- package/@types/components/list/sListItemTitle.vue.d.ts +13 -0
- package/@types/components/progress/index.d.ts +2 -0
- package/@types/components/progress/sProgressCircular.vue.d.ts +18 -0
- package/@types/components/progress/sProgressLinear.vue.d.ts +17 -0
- package/@types/components/sAlert.vue.d.ts +14 -0
- package/@types/components/sAutocomplete.vue.d.ts +57 -0
- package/@types/components/sBreadcrumbs.vue.d.ts +16 -0
- package/@types/components/sButton.vue.d.ts +20 -0
- package/@types/components/sChip.vue.d.ts +24 -0
- package/@types/components/sDialog.vue.d.ts +33 -0
- package/@types/components/sDivider.vue.d.ts +4 -0
- package/@types/components/sDroppable.vue.d.ts +28 -0
- package/@types/components/sIcon.vue.d.ts +4 -0
- package/@types/components/sImage.vue.d.ts +14 -0
- package/@types/components/sMenu.vue.d.ts +36 -0
- package/@types/components/sOverlay.vue.d.ts +26 -0
- package/@types/components/sSheet.vue.d.ts +14 -0
- package/@types/components/sSnackbar.vue.d.ts +35 -0
- package/@types/components/sSubheader.vue.d.ts +13 -0
- package/@types/components/sSwitch.vue.d.ts +23 -0
- package/@types/components/sTooltip.vue.d.ts +25 -0
- package/@types/components/slideGroup/index.d.ts +2 -0
- package/@types/components/slideGroup/sSlideGroup.vue.d.ts +42 -0
- package/@types/components/slideGroup/sSlideItem.vue.d.ts +17 -0
- package/@types/components/splitViews/index.d.ts +2 -0
- package/@types/components/splitViews/sSplitView.vue.d.ts +17 -0
- package/@types/components/splitViews/sSplitViewItem.vue.d.ts +13 -0
- package/@types/components/stepper/index.d.ts +2 -0
- package/@types/components/stepper/sStepper.vue.d.ts +26 -0
- package/@types/components/stepper/sStepperStep.vue.d.ts +14 -0
- package/@types/components/table/index.d.ts +3 -0
- package/@types/components/table/sTable.vue.d.ts +153 -0
- package/@types/components/table/sTableBodyCell.vue.d.ts +22 -0
- package/@types/components/table/sTableHeadCell.vue.d.ts +24 -0
- package/@types/components/table/sTablePagination.vue.d.ts +33 -0
- package/@types/components/tabs/index.d.ts +2 -0
- package/@types/components/tabs/sTab.vue.d.ts +14 -0
- package/@types/components/tabs/sTabs.vue.d.ts +20 -0
- package/@types/components/toggleButtonGroup/index.d.ts +2 -0
- package/@types/components/toggleButtonGroup/sToggleButton.vue.d.ts +14 -0
- package/@types/components/toggleButtonGroup/sToggleButtonGroup.vue.d.ts +31 -0
- package/@types/components/toolbar/index.d.ts +3 -0
- package/@types/components/toolbar/sToolbar.vue.d.ts +23 -0
- package/@types/components/toolbar/sToolbarItem.vue.d.ts +5 -0
- package/@types/components/toolbar/sToolbarTitle.vue.d.ts +16 -0
- package/@types/components/window/index.d.ts +2 -0
- package/@types/components/window/sWindow.vue.d.ts +57 -0
- package/@types/components/window/sWindowItem.vue.d.ts +13 -0
- package/@types/componentsTypes.d.ts +8 -0
- package/@types/configs/app.d.ts +72 -0
- package/@types/configs/color.d.ts +2 -0
- package/@types/configs/core/breakpoint.d.ts +9 -0
- package/@types/configs/core/index.d.ts +1 -0
- package/@types/configs/datePicker.d.ts +34 -0
- package/@types/configs/grids.d.ts +3 -0
- package/@types/configs/i18n.d.ts +73 -0
- package/@types/configs/iconSizes.d.ts +7 -0
- package/@types/configs/index.d.ts +11 -0
- package/@types/configs/provider.d.ts +42 -0
- package/@types/configs/size.d.ts +2 -0
- package/@types/configs/toolbar.d.ts +11 -0
- package/@types/configs/transitions.d.ts +2 -0
- package/@types/constants/alert.d.ts +52 -0
- package/@types/constants/app.d.ts +7 -0
- package/@types/constants/button.d.ts +5 -0
- package/@types/constants/color.d.ts +318 -0
- package/@types/constants/cssVariables.d.ts +4 -0
- package/@types/constants/datePicker.d.ts +14 -0
- package/@types/constants/form.d.ts +9 -0
- package/@types/constants/grids.d.ts +14 -0
- package/@types/constants/i18n.d.ts +68 -0
- package/@types/constants/imageLoader.d.ts +13 -0
- package/@types/constants/index.d.ts +20 -0
- package/@types/constants/layout.d.ts +10 -0
- package/@types/constants/lazyLoad.d.ts +5 -0
- package/@types/constants/materialDesignIcon.d.ts +3 -0
- package/@types/constants/menuDimensions.d.ts +2 -0
- package/@types/constants/navigationDrawer.d.ts +8 -0
- package/@types/constants/overlay.d.ts +1 -0
- package/@types/constants/position.d.ts +1 -0
- package/@types/constants/size.d.ts +7 -0
- package/@types/constants/toolbar.d.ts +7 -0
- package/@types/constants/transition.d.ts +6 -0
- package/@types/definitions/app.d.ts +22 -0
- package/@types/definitions/emits/emitsTable.d.ts +18 -0
- package/@types/definitions/emits/index.d.ts +1 -0
- package/@types/definitions/index.d.ts +4 -0
- package/@types/definitions/props/core/index.d.ts +18 -0
- package/@types/definitions/props/core/propsActivator.d.ts +6 -0
- package/@types/definitions/props/core/propsBorder.d.ts +5 -0
- package/@types/definitions/props/core/propsButtonVariant.d.ts +3 -0
- package/@types/definitions/props/core/propsColor.d.ts +6 -0
- package/@types/definitions/props/core/propsComponentTheme.d.ts +4 -0
- package/@types/definitions/props/core/propsContent.d.ts +5 -0
- package/@types/definitions/props/core/propsDisabled.d.ts +4 -0
- package/@types/definitions/props/core/propsElevation.d.ts +3 -0
- package/@types/definitions/props/core/propsGroup.d.ts +6 -0
- package/@types/definitions/props/core/propsGroupItem.d.ts +6 -0
- package/@types/definitions/props/core/propsLayoutBase.d.ts +3 -0
- package/@types/definitions/props/core/propsLink.d.ts +7 -0
- package/@types/definitions/props/core/propsLocation.d.ts +6 -0
- package/@types/definitions/props/core/propsMeasurableStyles.d.ts +8 -0
- package/@types/definitions/props/core/propsPosition.d.ts +4 -0
- package/@types/definitions/props/core/propsTag.d.ts +4 -0
- package/@types/definitions/props/core/propsTextColor.d.ts +3 -0
- package/@types/definitions/props/core/propsToggleButtonGroupVariant.d.ts +3 -0
- package/@types/definitions/props/index.d.ts +70 -0
- package/@types/definitions/props/propsAlert.d.ts +7 -0
- package/@types/definitions/props/propsApp.d.ts +2 -0
- package/@types/definitions/props/propsAppBar.d.ts +9 -0
- package/@types/definitions/props/propsAutocomplete.d.ts +40 -0
- package/@types/definitions/props/propsBadge.d.ts +19 -0
- package/@types/definitions/props/propsBottomNavigation.d.ts +14 -0
- package/@types/definitions/props/propsBreadcrumbs.d.ts +7 -0
- package/@types/definitions/props/propsButton.d.ts +10 -0
- package/@types/definitions/props/propsCalendar.d.ts +27 -0
- package/@types/definitions/props/propsCard.d.ts +2 -0
- package/@types/definitions/props/propsCarousel.d.ts +12 -0
- package/@types/definitions/props/propsCarouselItem.d.ts +3 -0
- package/@types/definitions/props/propsCheckbox.d.ts +9 -0
- package/@types/definitions/props/propsChip.d.ts +7 -0
- package/@types/definitions/props/propsColumn.d.ts +10 -0
- package/@types/definitions/props/propsContainer.d.ts +8 -0
- package/@types/definitions/props/propsDatePicker.d.ts +15 -0
- package/@types/definitions/props/propsDatePickerFormat.d.ts +5 -0
- package/@types/definitions/props/propsDatePickerInput.d.ts +18 -0
- package/@types/definitions/props/propsDatePickerItem.d.ts +18 -0
- package/@types/definitions/props/propsDatePickerItemSwitch.d.ts +9 -0
- package/@types/definitions/props/propsDatePickerItemTitle.d.ts +3 -0
- package/@types/definitions/props/propsDialog.d.ts +10 -0
- package/@types/definitions/props/propsDivider.d.ts +3 -0
- package/@types/definitions/props/propsDroppable.d.ts +2 -0
- package/@types/definitions/props/propsExpansionPanels.d.ts +8 -0
- package/@types/definitions/props/propsFooter.d.ts +6 -0
- package/@types/definitions/props/propsFormInput.d.ts +10 -0
- package/@types/definitions/props/propsIcon.d.ts +10 -0
- package/@types/definitions/props/propsImage.d.ts +9 -0
- package/@types/definitions/props/propsImageLoader.d.ts +11 -0
- package/@types/definitions/props/propsInput.d.ts +32 -0
- package/@types/definitions/props/propsLayout.d.ts +6 -0
- package/@types/definitions/props/propsLayoutProvider.d.ts +4 -0
- package/@types/definitions/props/propsLink.d.ts +7 -0
- package/@types/definitions/props/propsList.d.ts +10 -0
- package/@types/definitions/props/propsListItem.d.ts +7 -0
- package/@types/definitions/props/propsListMediaItem.d.ts +4 -0
- package/@types/definitions/props/propsMain.d.ts +4 -0
- package/@types/definitions/props/propsMenu.d.ts +9 -0
- package/@types/definitions/props/propsNavigationDrawer.d.ts +20 -0
- package/@types/definitions/props/propsOverlay.d.ts +8 -0
- package/@types/definitions/props/propsProgressCircular.d.ts +8 -0
- package/@types/definitions/props/propsProgressLinear.d.ts +9 -0
- package/@types/definitions/props/propsRadioGroup.d.ts +9 -0
- package/@types/definitions/props/propsRow.d.ts +11 -0
- package/@types/definitions/props/propsScrollable.d.ts +5 -0
- package/@types/definitions/props/propsSelect.d.ts +13 -0
- package/@types/definitions/props/propsSheet.d.ts +2 -0
- package/@types/definitions/props/propsSingleGroup.d.ts +6 -0
- package/@types/definitions/props/propsSingleGroupItem.d.ts +5 -0
- package/@types/definitions/props/propsSizePreset.d.ts +4 -0
- package/@types/definitions/props/propsSizeUnion.d.ts +4 -0
- package/@types/definitions/props/propsSlideGroup.d.ts +11 -0
- package/@types/definitions/props/propsSnackbar.d.ts +6 -0
- package/@types/definitions/props/propsSplitView.d.ts +9 -0
- package/@types/definitions/props/propsStepper.d.ts +10 -0
- package/@types/definitions/props/propsStepperStep.d.ts +6 -0
- package/@types/definitions/props/propsSwitch.d.ts +5 -0
- package/@types/definitions/props/propsTab.d.ts +5 -0
- package/@types/definitions/props/propsTable.d.ts +58 -0
- package/@types/definitions/props/propsTabs.d.ts +12 -0
- package/@types/definitions/props/propsTextarea.d.ts +25 -0
- package/@types/definitions/props/propsToggleButton.d.ts +3 -0
- package/@types/definitions/props/propsToggleButtonGroup.d.ts +8 -0
- package/@types/definitions/props/propsToolbar.d.ts +11 -0
- package/@types/definitions/props/propsToolbarTitle.d.ts +4 -0
- package/@types/definitions/props/propsTooltip.d.ts +9 -0
- package/@types/definitions/props/propsWindow.d.ts +13 -0
- package/@types/definitions/props/propsWindowItem.d.ts +2 -0
- package/@types/definitions/provider.d.ts +20 -0
- package/@types/directives/index.d.ts +2 -0
- package/@types/directives/resize.d.ts +2 -0
- package/@types/directives/scroll.d.ts +2 -0
- package/@types/helpers/autocompleteHelpers.d.ts +7 -0
- package/@types/helpers/colorHelpers.d.ts +3 -0
- package/@types/helpers/createAppStore.d.ts +77 -0
- package/@types/helpers/display.d.ts +1 -0
- package/@types/helpers/index.d.ts +6 -0
- package/@types/helpers/selectItemHelpers.d.ts +4 -0
- package/@types/helpers/tableHelpers.d.ts +9 -0
- package/@types/helpers/themeHelpers.d.ts +2 -0
- package/@types/index.d.ts +10 -0
- package/@types/lib/browser.d.ts +26 -0
- package/@types/lib/button.d.ts +3 -0
- package/@types/lib/color.d.ts +19 -0
- package/@types/lib/compositionApi.d.ts +2 -0
- package/@types/lib/formatNumber.d.ts +1 -0
- package/@types/lib/getCleanSetObject.d.ts +5 -0
- package/@types/lib/getNumericCssAttribute.d.ts +1 -0
- package/@types/lib/getNumericValue.d.ts +13 -0
- package/@types/lib/getPluginName.d.ts +1 -0
- package/@types/lib/htmlClass.d.ts +1 -0
- package/@types/lib/htmlToText.d.ts +2 -0
- package/@types/lib/index.d.ts +12 -0
- package/@types/lib/isEmpty.d.ts +1 -0
- package/@types/lib/retry.d.ts +1 -0
- package/@types/lib/scroll.d.ts +13 -0
- package/@types/lib/wait.d.ts +1 -0
- package/@types/modules/index.d.ts +1 -0
- package/@types/modules/sUI.d.ts +2 -0
- package/@types/repositories/calendarRepository.d.ts +3 -0
- package/@types/repositories/colorRepository.d.ts +14 -0
- package/@types/repositories/columnRepository.d.ts +9 -0
- package/@types/repositories/core/appProviderRepository.d.ts +4 -0
- package/@types/repositories/datePicker.d.ts +18 -0
- package/@types/repositories/form.d.ts +66 -0
- package/@types/repositories/htmlClassRepository.d.ts +1 -0
- package/@types/repositories/index.d.ts +9 -0
- package/@types/repositories/positionRepository.d.ts +10 -0
- package/@types/repositories/tableRepository.d.ts +2 -0
- package/@types/repositories/touchRepository.d.ts +4 -0
- package/@types/services/appBarService.d.ts +41 -0
- package/@types/services/appService.d.ts +6 -0
- package/@types/services/autocompleteService.d.ts +42 -0
- package/@types/services/backgroundScrollService.d.ts +4 -0
- package/@types/services/borderService.d.ts +12 -0
- package/@types/services/calendar/calendarEventService.d.ts +5 -0
- package/@types/services/calendar/calendarMonthlyService.d.ts +14 -0
- package/@types/services/calendar/calendarService.d.ts +8 -0
- package/@types/services/calendar/calendarWeeklyService.d.ts +28 -0
- package/@types/services/calendar/index.d.ts +8 -0
- package/@types/services/calendar/useCalendarDateFormatters.d.ts +6 -0
- package/@types/services/calendar/useCalendarEventHandlers.d.ts +19 -0
- package/@types/services/calendar/useCalendarWeeklyAllDayEvents.d.ts +20 -0
- package/@types/services/calendar/useCalendarWeeklyEventPositioning.d.ts +23 -0
- package/@types/services/colorService.d.ts +19 -0
- package/@types/services/columnService.d.ts +8 -0
- package/@types/services/componentDefaultsService.d.ts +1 -0
- package/@types/services/componentThemeService.d.ts +6 -0
- package/@types/services/core/activatorService.d.ts +16 -0
- package/@types/services/core/clickOutsideService.d.ts +9 -0
- package/@types/services/core/contentService.d.ts +13 -0
- package/@types/services/core/expandableItemCoreService.d.ts +4 -0
- package/@types/services/core/groupCoreItemService.d.ts +11 -0
- package/@types/services/core/groupCoreService.d.ts +16 -0
- package/@types/services/core/index.d.ts +9 -0
- package/@types/services/core/layoutCoreService.d.ts +21 -0
- package/@types/services/core/locationService.d.ts +11 -0
- package/@types/services/core/tableCellCommonService.d.ts +8 -0
- package/@types/services/datePicker/datePickerInputService.d.ts +9 -0
- package/@types/services/datePicker/datePickerItemCoreService.d.ts +30 -0
- package/@types/services/datePicker/datePickerItemDateService.d.ts +18 -0
- package/@types/services/datePicker/datePickerItemMonthService.d.ts +17 -0
- package/@types/services/datePicker/datePickerItemSwitchService.d.ts +11 -0
- package/@types/services/datePicker/datePickerItemTitleService.d.ts +8 -0
- package/@types/services/datePicker/datePickerItemYearService.d.ts +17 -0
- package/@types/services/datePicker/datePickerService.d.ts +7 -0
- package/@types/services/datePicker/index.d.ts +7 -0
- package/@types/services/dialogService.d.ts +32 -0
- package/@types/services/disabledService.d.ts +12 -0
- package/@types/services/displayService.d.ts +24 -0
- package/@types/services/elevationService.d.ts +6 -0
- package/@types/services/expandableItemService.d.ts +5 -0
- package/@types/services/expandableService.d.ts +5 -0
- package/@types/services/formInputService.d.ts +8 -0
- package/@types/services/groupItemService.d.ts +10 -0
- package/@types/services/groupService.d.ts +16 -0
- package/@types/services/index.d.ts +43 -0
- package/@types/services/layoutProviderService.d.ts +28 -0
- package/@types/services/layoutService.d.ts +24 -0
- package/@types/services/linkService.d.ts +21 -0
- package/@types/services/listMediaItemService.d.ts +8 -0
- package/@types/services/measurableStylesService.d.ts +11 -0
- package/@types/services/menuService.d.ts +35 -0
- package/@types/services/navigationDrawerResizeService.d.ts +10 -0
- package/@types/services/navigationDrawerService.d.ts +6 -0
- package/@types/services/positionService.d.ts +10 -0
- package/@types/services/resizeService.d.ts +4 -0
- package/@types/services/scrollService.d.ts +8 -0
- package/@types/services/scrollableService.d.ts +15 -0
- package/@types/services/singleGroupItemService.d.ts +10 -0
- package/@types/services/singleGroupService.d.ts +34 -0
- package/@types/services/sizeService.d.ts +12 -0
- package/@types/services/slideGroupService.d.ts +19 -0
- package/@types/services/table/index.d.ts +3 -0
- package/@types/services/table/tableBodyCellService.d.ts +9 -0
- package/@types/services/table/tableHeadCellService.d.ts +8 -0
- package/@types/services/table/tableService.d.ts +179 -0
- package/@types/services/tagService.d.ts +9 -0
- package/@types/services/textColorService.d.ts +15 -0
- package/@types/services/themeService.d.ts +5 -0
- package/@types/services/toolbarService.d.ts +7 -0
- package/@types/services/touchService.d.ts +2 -0
- package/@types/store/index.d.ts +5 -0
- package/@types/types/app.d.ts +36 -0
- package/@types/types/autocomplete.d.ts +7 -0
- package/@types/types/breadcrumbs.d.ts +8 -0
- package/@types/types/button.d.ts +1 -0
- package/@types/types/calendar.d.ts +61 -0
- package/@types/types/core/color.d.ts +2 -0
- package/@types/types/core/emit.d.ts +1 -0
- package/@types/types/core/form.d.ts +2 -0
- package/@types/types/core/group.d.ts +1 -0
- package/@types/types/core/index.d.ts +4 -0
- package/@types/types/datePicker.d.ts +12 -0
- package/@types/types/display.d.ts +9 -0
- package/@types/types/emits.d.ts +17 -0
- package/@types/types/form.d.ts +9 -0
- package/@types/types/grids.d.ts +2 -0
- package/@types/types/html.d.ts +1 -0
- package/@types/types/icon.d.ts +1 -0
- package/@types/types/index.d.ts +24 -0
- package/@types/types/input.d.ts +3 -0
- package/@types/types/location.d.ts +2 -0
- package/@types/types/materialDesignIcon.d.ts +2 -0
- package/@types/types/menu.d.ts +9 -0
- package/@types/types/resize.d.ts +12 -0
- package/@types/types/scroll.d.ts +26 -0
- package/@types/types/select.d.ts +6 -0
- package/@types/types/size.d.ts +2 -0
- package/@types/types/table.d.ts +39 -0
- package/@types/types/tag.d.ts +1 -0
- package/@types/types/toolbar.d.ts +2 -0
- package/@types/types/touch.d.ts +28 -0
- package/@types/validators/index.d.ts +1 -0
- package/@types/validators/numeric.d.ts +1 -0
- package/@types/vendors/dayjs.d.ts +2 -0
- package/@types/vendors/merge.d.ts +2 -0
- package/@types/vite.config.d.ts +2 -0
- package/@types/vitest.config.d.ts +2 -0
- package/README.md +210 -2
- package/dist/base.css +7282 -0
- package/dist/base.css.map +1 -0
- package/dist/s-ui.css +2 -0
- package/dist/s-ui.js +8976 -0
- package/dist/s-ui.umd.cjs +1 -0
- package/dist/styles/_helpers.scss +9 -0
- package/dist/styles/components/appBar/_variables.scss +4 -0
- package/dist/styles/components/appBar/index.scss +1 -0
- package/dist/styles/components/button/_variables.scss +51 -0
- package/dist/styles/components/button/index.scss +2 -0
- package/dist/styles/components/button/mixins.scss +60 -0
- package/dist/styles/components/cards/index.scss +1 -0
- package/dist/styles/components/cards/variables.scss +5 -0
- package/dist/styles/components/icon/_variables.scss +14 -0
- package/dist/styles/components/icon/index.scss +1 -0
- package/dist/styles/components/index.scss +10 -0
- package/dist/styles/components/layout/_mixins.scss +7 -0
- package/dist/styles/components/layout/_variables.scss +6 -0
- package/dist/styles/components/layout/index.scss +2 -0
- package/dist/styles/components/list/_mixins.scss +53 -0
- package/dist/styles/components/list/index.scss +1 -0
- package/dist/styles/components/menu/_mixins.scss +11 -0
- package/dist/styles/components/menu/index.scss +1 -0
- package/dist/styles/components/table/_mixins.scss +51 -0
- package/dist/styles/components/table/index.scss +1 -0
- package/dist/styles/components/toggleButton/_variables.scss +4 -0
- package/dist/styles/components/toggleButton/index.scss +1 -0
- package/dist/styles/components/window/_variables.scss +2 -0
- package/dist/styles/components/window/index.scss +1 -0
- package/dist/styles/generic/_common.scss +95 -0
- package/dist/styles/generic/_reset.scss +357 -0
- package/dist/styles/generic/_transitions.scss +83 -0
- package/dist/styles/generic/index.scss +3 -0
- package/dist/styles/index.scss +6 -0
- package/dist/styles/lib/_functions.scss +86 -0
- package/dist/styles/lib/index.scss +1 -0
- package/dist/styles/mixins/_app.scss +13 -0
- package/dist/styles/mixins/_border.scss +104 -0
- package/dist/styles/mixins/_dark.scss +31 -0
- package/dist/styles/mixins/_display.scss +9 -0
- package/dist/styles/mixins/_elevation.scss +15 -0
- package/dist/styles/mixins/_grids.scss +66 -0
- package/dist/styles/mixins/_media.scss +14 -0
- package/dist/styles/mixins/_text.scss +44 -0
- package/dist/styles/mixins/_utilities.scss +68 -0
- package/dist/styles/mixins/index.scss +10 -0
- package/dist/styles/modules/breakpoints.module.scss +10 -0
- package/dist/styles/tools/_breakpoint.scss +20 -0
- package/dist/styles/tools/_color.scss +35 -0
- package/dist/styles/tools/index.scss +2 -0
- package/dist/styles/variables/_border.scss +19 -0
- package/dist/styles/variables/_colors.scss +34 -0
- package/dist/styles/variables/_elevations.scss +98 -0
- package/dist/styles/variables/_font.scss +8 -0
- package/dist/styles/variables/_grid.scss +36 -0
- package/dist/styles/variables/_headings.scss +100 -0
- package/dist/styles/variables/_spacers.scss +17 -0
- package/dist/styles/variables/_transitions.scss +16 -0
- package/dist/styles/variables/_utilities.scss +360 -0
- package/dist/styles/variables/index.scss +9 -0
- package/package.json +68 -4
- package/sui-plugin/.claude-plugin/plugin.json +10 -0
- package/sui-plugin/README.md +73 -0
- package/sui-plugin/skills/sui-component/SKILL.md +133 -0
- package/sui-plugin/skills/sui-component/references/alert.md +53 -0
- package/sui-plugin/skills/sui-component/references/autocomplete.md +110 -0
- package/sui-plugin/skills/sui-component/references/badge.md +80 -0
- package/sui-plugin/skills/sui-component/references/breadcrumbs.md +67 -0
- package/sui-plugin/skills/sui-component/references/button.md +74 -0
- package/sui-plugin/skills/sui-component/references/calendar.md +120 -0
- package/sui-plugin/skills/sui-component/references/cards.md +97 -0
- package/sui-plugin/skills/sui-component/references/carousel.md +113 -0
- package/sui-plugin/skills/sui-component/references/chip.md +68 -0
- package/sui-plugin/skills/sui-component/references/date-picker.md +140 -0
- package/sui-plugin/skills/sui-component/references/dialog.md +82 -0
- package/sui-plugin/skills/sui-component/references/divider.md +52 -0
- package/sui-plugin/skills/sui-component/references/droppable.md +68 -0
- package/sui-plugin/skills/sui-component/references/expansion-panels.md +108 -0
- package/sui-plugin/skills/sui-component/references/form.md +175 -0
- package/sui-plugin/skills/sui-component/references/icon.md +61 -0
- package/sui-plugin/skills/sui-component/references/image.md +56 -0
- package/sui-plugin/skills/sui-component/references/layout.md +226 -0
- package/sui-plugin/skills/sui-component/references/list.md +153 -0
- package/sui-plugin/skills/sui-component/references/menu.md +74 -0
- package/sui-plugin/skills/sui-component/references/overlay.md +48 -0
- package/sui-plugin/skills/sui-component/references/progress.md +78 -0
- package/sui-plugin/skills/sui-component/references/sheet.md +58 -0
- package/sui-plugin/skills/sui-component/references/slide-group.md +123 -0
- package/sui-plugin/skills/sui-component/references/snackbar.md +59 -0
- package/sui-plugin/skills/sui-component/references/split-view.md +59 -0
- package/sui-plugin/skills/sui-component/references/stepper.md +92 -0
- package/sui-plugin/skills/sui-component/references/table.md +151 -0
- package/sui-plugin/skills/sui-component/references/tabs.md +88 -0
- package/sui-plugin/skills/sui-component/references/toggle-button-group.md +109 -0
- package/sui-plugin/skills/sui-component/references/toolbar.md +101 -0
- package/sui-plugin/skills/sui-component/references/tooltip.md +65 -0
- package/sui-plugin/skills/sui-component/references/window.md +75 -0
- package/sui-plugin/skills/sui-form/SKILL.md +225 -0
- package/sui-plugin/skills/sui-getting-started/SKILL.md +374 -0
- package/sui-plugin/skills/sui-layout/SKILL.md +111 -0
- package/sui-plugin/skills/sui-utilities/SKILL.md +40 -0
- package/sui-plugin/skills/sui-utilities/docs/classes.md +487 -0
- package/sui-plugin/skills/sui-utilities/docs/directives.md +200 -0
- package/sui-plugin/skills/sui-utilities/docs/helpers.md +583 -0
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
# SUI SCSS Helpers
|
|
2
|
+
|
|
3
|
+
When you import `_helpers.scss` in your SCSS file, you get access to all SUI functions, mixins, and variables.
|
|
4
|
+
|
|
5
|
+
```scss
|
|
6
|
+
@use '@khsura/sui/helpers.scss' as *;
|
|
7
|
+
// or with a namespace:
|
|
8
|
+
@use '@khsura/sui/helpers.scss' as sui;
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Functions
|
|
14
|
+
|
|
15
|
+
### `s_getPresetColor($color, $isText: false)`
|
|
16
|
+
|
|
17
|
+
Returns a CSS custom property for a **preset theme color** (defined in SUI's theme configuration).
|
|
18
|
+
|
|
19
|
+
```scss
|
|
20
|
+
// Signature
|
|
21
|
+
s_getPresetColor($color, $isText: false) // → CSS var()
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
| Parameter | Type | Default | Description |
|
|
25
|
+
|-----------|------|---------|-------------|
|
|
26
|
+
| `$color` | `string` | — | Preset color name |
|
|
27
|
+
| `$isText` | `boolean` | `false` | If `true`, returns the text-contrast variant (`--text`) |
|
|
28
|
+
|
|
29
|
+
**Valid `$color` values:** `primary`, `secondary`, `success`, `info`, `warning`, `important`, `error`
|
|
30
|
+
|
|
31
|
+
```scss
|
|
32
|
+
.my-element {
|
|
33
|
+
background-color: s_getPresetColor('primary'); // var(--s-color-primary)
|
|
34
|
+
color: s_getPresetColor('primary', true); // var(--s-color-primary--text)
|
|
35
|
+
border-color: s_getPresetColor('error'); // var(--s-color-error)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.badge {
|
|
39
|
+
background-color: s_getPresetColor('success');
|
|
40
|
+
color: s_getPresetColor('success', $isText: true);
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### `s_getAppColor($color, $isText: false)`
|
|
47
|
+
|
|
48
|
+
Returns a CSS custom property for a **theme/app-level color** (background, surface, text, border, etc.).
|
|
49
|
+
|
|
50
|
+
```scss
|
|
51
|
+
// Signature
|
|
52
|
+
s_getAppColor($color, $isText: false) // → CSS var()
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
| Parameter | Type | Default | Description |
|
|
56
|
+
|-----------|------|---------|-------------|
|
|
57
|
+
| `$color` | `string` | — | App color token name |
|
|
58
|
+
| `$isText` | `boolean` | `false` | If `true`, returns the text-contrast variant (`--text`) |
|
|
59
|
+
|
|
60
|
+
**Common `$color` values:**
|
|
61
|
+
|
|
62
|
+
| Token | Description |
|
|
63
|
+
|-------|-------------|
|
|
64
|
+
| `'text'` | Primary text color |
|
|
65
|
+
| `'background'` | Page background color |
|
|
66
|
+
| `'card'` | Card / surface background |
|
|
67
|
+
| `'border'` | Default border color |
|
|
68
|
+
| `'disabled'` | Disabled element background |
|
|
69
|
+
|
|
70
|
+
```scss
|
|
71
|
+
.my-card {
|
|
72
|
+
background-color: s_getAppColor('card');
|
|
73
|
+
color: s_getAppColor('text');
|
|
74
|
+
border: 1px solid s_getAppColor('border');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.page {
|
|
78
|
+
background-color: s_getAppColor('background');
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### `s_getThemeColor($color, $themeName)`
|
|
85
|
+
|
|
86
|
+
Returns a CSS custom property scoped to a specific theme (`dark` or `light`). Used internally by `s_dark()` but useful when you need theme-specific values directly.
|
|
87
|
+
|
|
88
|
+
```scss
|
|
89
|
+
// Signature
|
|
90
|
+
s_getThemeColor($color, $themeName) // → CSS var()
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
| Parameter | Type | Description |
|
|
94
|
+
|-----------|------|-------------|
|
|
95
|
+
| `$color` | `string` | App color token name (`'text'`, `'card'`, etc.) |
|
|
96
|
+
| `$themeName` | `'dark' \| 'light'` | Which theme variant to target |
|
|
97
|
+
|
|
98
|
+
```scss
|
|
99
|
+
.hero {
|
|
100
|
+
color: s_getThemeColor('text', 'dark'); // var(--s-app-color-text--dark)
|
|
101
|
+
background-color: s_getThemeColor('card', 'dark');
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### `s_isDark($color, $threshold: 55)`
|
|
108
|
+
|
|
109
|
+
Returns `true` if a given **Sass color value** is considered dark (lightness ≤ threshold).
|
|
110
|
+
|
|
111
|
+
```scss
|
|
112
|
+
// Signature
|
|
113
|
+
s_isDark($color, $threshold: 55) // → boolean
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
| Parameter | Type | Default | Description |
|
|
117
|
+
|-----------|------|---------|-------------|
|
|
118
|
+
| `$color` | `color` | — | A Sass/CSS color value (e.g. `#fff`, `red`) |
|
|
119
|
+
| `$threshold` | `number` | `55` | Lightness percentage threshold (0–100) |
|
|
120
|
+
|
|
121
|
+
```scss
|
|
122
|
+
$bg: #1a1a2e;
|
|
123
|
+
|
|
124
|
+
.text {
|
|
125
|
+
@if s_isDark($bg) {
|
|
126
|
+
color: white;
|
|
127
|
+
} @else {
|
|
128
|
+
color: black;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### `s_getTextColor($color, $threshold: 55)`
|
|
136
|
+
|
|
137
|
+
Returns an appropriate text color (light or dark) for readable contrast against a given background color.
|
|
138
|
+
|
|
139
|
+
```scss
|
|
140
|
+
// Signature
|
|
141
|
+
s_getTextColor($color, $threshold: 55) // → CSS var()
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
| Parameter | Type | Default | Description |
|
|
145
|
+
|-----------|------|---------|-------------|
|
|
146
|
+
| `$color` | `color` | — | Background Sass color value |
|
|
147
|
+
| `$threshold` | `number` | `55` | Lightness threshold (same as `s_isDark`) |
|
|
148
|
+
|
|
149
|
+
Returns `s_getThemeColor('text', 'dark')` for dark backgrounds, or `s_getThemeColor('text', 'light')` for light backgrounds.
|
|
150
|
+
|
|
151
|
+
```scss
|
|
152
|
+
$brandColor: #1a1a2e;
|
|
153
|
+
|
|
154
|
+
.banner {
|
|
155
|
+
background-color: $brandColor;
|
|
156
|
+
color: s_getTextColor($brandColor); // auto-contrast text
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Mixins
|
|
163
|
+
|
|
164
|
+
### `s_breakpointUp($name, $breakpoints?)`
|
|
165
|
+
|
|
166
|
+
Wraps content in a `min-width` media query for the given breakpoint. Content is output as-is for the `none` (smallest) breakpoint.
|
|
167
|
+
|
|
168
|
+
```scss
|
|
169
|
+
// Signature
|
|
170
|
+
@mixin s_breakpointUp($name, $breakpoints: $s_gridBreakpoints)
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
| Parameter | Type | Default | Description |
|
|
174
|
+
|-----------|------|---------|-------------|
|
|
175
|
+
| `$name` | `string` | — | Breakpoint name |
|
|
176
|
+
| `$breakpoints` | `map` | `$s_gridBreakpoints` | Breakpoints map |
|
|
177
|
+
|
|
178
|
+
**Breakpoint names:** `none` (0px), `xs` (640px), `sm` (768px), `md` (1024px), `lg` (1280px), `xl` (1536px), `xxl` (1980px)
|
|
179
|
+
|
|
180
|
+
```scss
|
|
181
|
+
.sidebar {
|
|
182
|
+
display: none;
|
|
183
|
+
|
|
184
|
+
@include s_breakpointUp('md') {
|
|
185
|
+
display: block;
|
|
186
|
+
width: 260px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.container {
|
|
191
|
+
padding: 8px;
|
|
192
|
+
|
|
193
|
+
@include s_breakpointUp('lg') {
|
|
194
|
+
padding: 24px;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### `s_typography($style)`
|
|
202
|
+
|
|
203
|
+
Applies a complete SUI type scale preset — sets `font-size`, `font-weight`, `line-height`, `letter-spacing`, and `text-transform`.
|
|
204
|
+
|
|
205
|
+
```scss
|
|
206
|
+
// Signature
|
|
207
|
+
@mixin s_typography($style)
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
| Parameter | Type | Description |
|
|
211
|
+
|-----------|------|-------------|
|
|
212
|
+
| `$style` | `string` | Typography scale key |
|
|
213
|
+
|
|
214
|
+
**Valid `$style` values:**
|
|
215
|
+
|
|
216
|
+
| Key | Size | Weight | Notes |
|
|
217
|
+
|-----|------|--------|-------|
|
|
218
|
+
| `'h1'` | 6rem | 300 | line-height: 6.4rem |
|
|
219
|
+
| `'h2'` | 3.75rem | 300 | line-height: 3.75rem |
|
|
220
|
+
| `'h3'` | 3rem | 400 | line-height: 3.125rem |
|
|
221
|
+
| `'h4'` | 2.125rem | 400 | line-height: 2.5rem |
|
|
222
|
+
| `'h5'` | 1.5rem | 400 | line-height: 2rem |
|
|
223
|
+
| `'h6'` | 1.25rem | 500 | line-height: 2rem |
|
|
224
|
+
| `'subtitle__1'` | 1rem | normal | line-height: 1.75rem |
|
|
225
|
+
| `'subtitle__2'` | 0.875rem | 500 | line-height: 1.375rem |
|
|
226
|
+
| `'body__1'` | 1rem | 400 | line-height: 1.5rem |
|
|
227
|
+
| `'body__2'` | 0.875rem | 400 | line-height: 1.25rem |
|
|
228
|
+
| `'button'` | 0.875rem | 500 | uppercase, line-height: 2.25rem |
|
|
229
|
+
| `'caption'` | 0.75rem | 400 | line-height: 1.25rem |
|
|
230
|
+
| `'overline'` | 0.75rem | 500 | uppercase, line-height: 2rem |
|
|
231
|
+
|
|
232
|
+
```scss
|
|
233
|
+
.page-title {
|
|
234
|
+
@include s_typography('h3');
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.helper-text {
|
|
238
|
+
@include s_typography('caption');
|
|
239
|
+
color: s_getAppColor('text');
|
|
240
|
+
opacity: 0.6;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.label {
|
|
244
|
+
@include s_typography('overline');
|
|
245
|
+
}
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
### `s_textTruncate()`
|
|
251
|
+
|
|
252
|
+
Truncates overflowing text with an ellipsis on a single line.
|
|
253
|
+
|
|
254
|
+
```scss
|
|
255
|
+
@mixin s_textTruncate()
|
|
256
|
+
// Applies: overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
```scss
|
|
260
|
+
.card-title {
|
|
261
|
+
@include s_textTruncate();
|
|
262
|
+
max-width: 200px;
|
|
263
|
+
}
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
### `s_lineClamp($i)`
|
|
269
|
+
|
|
270
|
+
Clamps text to a maximum number of lines with trailing ellipsis.
|
|
271
|
+
|
|
272
|
+
```scss
|
|
273
|
+
// Signature
|
|
274
|
+
@mixin s_lineClamp($i)
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
| Parameter | Type | Description |
|
|
278
|
+
|-----------|------|-------------|
|
|
279
|
+
| `$i` | `number` | Max number of lines to show |
|
|
280
|
+
|
|
281
|
+
```scss
|
|
282
|
+
.description {
|
|
283
|
+
@include s_lineClamp(3); // clamp to 3 lines
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.preview {
|
|
287
|
+
@include s_lineClamp(2);
|
|
288
|
+
}
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
### `s_lineClamps($child: null)`
|
|
294
|
+
|
|
295
|
+
Generates modifier classes `--lineClamp__1` through `--lineClamp__6` on the current selector. Useful for building multi-variant components.
|
|
296
|
+
|
|
297
|
+
```scss
|
|
298
|
+
// Signature
|
|
299
|
+
@mixin s_lineClamps($child: null)
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
| Parameter | Type | Default | Description |
|
|
303
|
+
|-----------|------|---------|-------------|
|
|
304
|
+
| `$child` | `string \| null` | `null` | If set, applies clamp to a descendant class inside the modifier |
|
|
305
|
+
|
|
306
|
+
```scss
|
|
307
|
+
// Generates: .my-text--lineClamp__1 through .my-text--lineClamp__6
|
|
308
|
+
.my-text {
|
|
309
|
+
@include s_lineClamps();
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Applies clamp to .my-text--lineClamp__2 > .inner
|
|
313
|
+
.my-text {
|
|
314
|
+
@include s_lineClamps('inner');
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
### `s_elevation($z, $important: false)`
|
|
321
|
+
|
|
322
|
+
Applies a Material Design box shadow for the given elevation level.
|
|
323
|
+
|
|
324
|
+
```scss
|
|
325
|
+
// Signature
|
|
326
|
+
@mixin s_elevation($z, $important: false)
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
| Parameter | Type | Default | Description |
|
|
330
|
+
|-----------|------|---------|-------------|
|
|
331
|
+
| `$z` | `0–24` | — | Elevation level (matches the `elevation` component prop) |
|
|
332
|
+
| `$important` | `boolean` | `false` | Add `!important` to the rule |
|
|
333
|
+
|
|
334
|
+
```scss
|
|
335
|
+
.floating-panel {
|
|
336
|
+
@include s_elevation(8);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.card {
|
|
340
|
+
@include s_elevation(2);
|
|
341
|
+
transition: box-shadow 200ms;
|
|
342
|
+
|
|
343
|
+
&:hover {
|
|
344
|
+
@include s_elevation(6);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
### `s_elevationTransition($duration?, $easing?)`
|
|
352
|
+
|
|
353
|
+
Applies a smooth transition for box-shadow changes (pair with `s_elevation` for hover effects).
|
|
354
|
+
|
|
355
|
+
```scss
|
|
356
|
+
// Signature
|
|
357
|
+
@mixin s_elevationTransition($duration: 280ms, $easing: cubic-bezier(0.4, 0, 0.2, 1))
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
```scss
|
|
361
|
+
.card {
|
|
362
|
+
@include s_elevation(2);
|
|
363
|
+
@include s_elevationTransition();
|
|
364
|
+
|
|
365
|
+
&:hover {
|
|
366
|
+
@include s_elevation(8);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
---
|
|
372
|
+
|
|
373
|
+
### `s_borderRadius($r: null, $important: false)`
|
|
374
|
+
|
|
375
|
+
Applies a border radius using SUI's radius scale or a raw value.
|
|
376
|
+
|
|
377
|
+
```scss
|
|
378
|
+
// Signature
|
|
379
|
+
@mixin s_borderRadius($r: null, $important: false)
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
**Named radius values (`$s_rounded` map):**
|
|
383
|
+
|
|
384
|
+
| Key | Value |
|
|
385
|
+
|-----|-------|
|
|
386
|
+
| `0` | `0` |
|
|
387
|
+
| `'sm'` | `2px` (half of base) |
|
|
388
|
+
| `null` | `4px` (default base) |
|
|
389
|
+
| `'lg'` | `8px` |
|
|
390
|
+
| `'xl'` | `24px` |
|
|
391
|
+
| `'pill'` | `9999px` |
|
|
392
|
+
| `'circle'` | `50%` |
|
|
393
|
+
|
|
394
|
+
```scss
|
|
395
|
+
.chip {
|
|
396
|
+
@include s_borderRadius('pill');
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.card {
|
|
400
|
+
@include s_borderRadius('lg');
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.avatar {
|
|
404
|
+
@include s_borderRadius('circle');
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.custom {
|
|
408
|
+
@include s_borderRadius(12px); // raw value
|
|
409
|
+
}
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
---
|
|
413
|
+
|
|
414
|
+
### `s_tile($important: false)`
|
|
415
|
+
|
|
416
|
+
Removes border radius (sets to `0`).
|
|
417
|
+
|
|
418
|
+
```scss
|
|
419
|
+
// Signature
|
|
420
|
+
@mixin s_tile($important: false)
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
```scss
|
|
424
|
+
.banner {
|
|
425
|
+
@include s_tile();
|
|
426
|
+
}
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
### `s_outlined($color: null, $width?)`
|
|
432
|
+
|
|
433
|
+
Applies an outlined border style. Resolves color from preset colors, app colors, or raw CSS values.
|
|
434
|
+
|
|
435
|
+
```scss
|
|
436
|
+
// Signature
|
|
437
|
+
@mixin s_outlined($color: null, $width: $s_outlined__borderWidth)
|
|
438
|
+
// Default $width: 1px
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
```scss
|
|
442
|
+
.input {
|
|
443
|
+
@include s_outlined(); // default border color
|
|
444
|
+
@include s_outlined('primary'); // preset color
|
|
445
|
+
@include s_outlined(#ff5722); // raw color
|
|
446
|
+
}
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
---
|
|
450
|
+
|
|
451
|
+
### `s_underlined($color: null, $width?, $important: false)`
|
|
452
|
+
|
|
453
|
+
Applies a bottom border only. Resolves color from the app border token or a custom value.
|
|
454
|
+
|
|
455
|
+
```scss
|
|
456
|
+
// Signature
|
|
457
|
+
@mixin s_underlined($color: null, $width: $s_underlined__borderWidth, $important: false)
|
|
458
|
+
// Default $width: 3px
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
```scss
|
|
462
|
+
.tab {
|
|
463
|
+
@include s_underlined(); // default border color
|
|
464
|
+
@include s_underlined(s_getPresetColor('primary')); // colored underline
|
|
465
|
+
}
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
### `s_dark($fillBackground: true, $isChild: false)`
|
|
471
|
+
|
|
472
|
+
Generates `.s_dark` and `.s_light` modifier rules that apply the appropriate theme colors. Used to make a component respond to theme class toggling.
|
|
473
|
+
|
|
474
|
+
```scss
|
|
475
|
+
// Signature
|
|
476
|
+
@mixin s_dark($fillBackground: true, $isChild: false)
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
| Parameter | Type | Default | Description |
|
|
480
|
+
|-----------|------|---------|-------------|
|
|
481
|
+
| `$fillBackground` | `boolean` | `true` | Also set `background-color` from the theme card color |
|
|
482
|
+
| `$isChild` | `boolean` | `false` | Target `.s_dark`/`.s_light` as a child selector instead of `&.s_dark` |
|
|
483
|
+
|
|
484
|
+
```scss
|
|
485
|
+
// Applies theme colors when element itself has .s_dark or .s_light
|
|
486
|
+
.my-card {
|
|
487
|
+
@include s_dark();
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// Applies when a parent has .s_dark or .s_light
|
|
491
|
+
.my-card {
|
|
492
|
+
@include s_dark($isChild: true);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// Text color only — no background fill
|
|
496
|
+
.my-text {
|
|
497
|
+
@include s_dark($fillBackground: false);
|
|
498
|
+
}
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
---
|
|
502
|
+
|
|
503
|
+
### `s_disabled($isText: false)`
|
|
504
|
+
|
|
505
|
+
Applies disabled appearance: dimmed text, pointer-events none, 50% opacity, and disabled background.
|
|
506
|
+
|
|
507
|
+
```scss
|
|
508
|
+
// Signature
|
|
509
|
+
@mixin s_disabled($isText: false)
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
| Parameter | Type | Default | Description |
|
|
513
|
+
|-----------|------|---------|-------------|
|
|
514
|
+
| `$isText` | `boolean` | `false` | If `true`, skips background-color (text-only disabled style) |
|
|
515
|
+
|
|
516
|
+
```scss
|
|
517
|
+
.my-button {
|
|
518
|
+
&:disabled,
|
|
519
|
+
&[disabled] {
|
|
520
|
+
@include s_disabled();
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.disabled-label {
|
|
525
|
+
@include s_disabled($isText: true);
|
|
526
|
+
}
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
### `s_visuallyHidden()`
|
|
532
|
+
|
|
533
|
+
Hides an element visually while keeping it accessible to screen readers.
|
|
534
|
+
|
|
535
|
+
```scss
|
|
536
|
+
@mixin s_visuallyHidden()
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
```scss
|
|
540
|
+
.sr-only {
|
|
541
|
+
@include s_visuallyHidden();
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
label.hidden {
|
|
545
|
+
@include s_visuallyHidden();
|
|
546
|
+
}
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
---
|
|
550
|
+
|
|
551
|
+
## Complete Example
|
|
552
|
+
|
|
553
|
+
```scss
|
|
554
|
+
@use '@khsura/sui/helpers.scss' as *;
|
|
555
|
+
|
|
556
|
+
.custom-badge {
|
|
557
|
+
// Typography
|
|
558
|
+
@include s_typography('caption');
|
|
559
|
+
|
|
560
|
+
// Color
|
|
561
|
+
background-color: s_getPresetColor('error');
|
|
562
|
+
color: s_getPresetColor('error', true);
|
|
563
|
+
|
|
564
|
+
// Shape
|
|
565
|
+
@include s_borderRadius('pill');
|
|
566
|
+
|
|
567
|
+
// Elevation
|
|
568
|
+
@include s_elevation(2);
|
|
569
|
+
@include s_elevationTransition();
|
|
570
|
+
|
|
571
|
+
// Responsive
|
|
572
|
+
@include s_breakpointUp('md') {
|
|
573
|
+
@include s_typography('subtitle__2');
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// Dark/light theme support
|
|
577
|
+
@include s_dark($fillBackground: false);
|
|
578
|
+
|
|
579
|
+
&:disabled {
|
|
580
|
+
@include s_disabled($isText: true);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
```
|