@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,61 @@
|
|
|
1
|
+
import type dayjs from '../vendors/dayjs';
|
|
2
|
+
export interface CalendarDate {
|
|
3
|
+
date: string;
|
|
4
|
+
time: string;
|
|
5
|
+
year: number;
|
|
6
|
+
month: number;
|
|
7
|
+
day: number;
|
|
8
|
+
hour: number;
|
|
9
|
+
minute: number;
|
|
10
|
+
weekday: number;
|
|
11
|
+
past: boolean;
|
|
12
|
+
present: boolean;
|
|
13
|
+
future: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface CalendarEvent {
|
|
16
|
+
name: string;
|
|
17
|
+
start: Date | string;
|
|
18
|
+
end?: Date | string;
|
|
19
|
+
color: string;
|
|
20
|
+
timed: boolean;
|
|
21
|
+
[index: string]: any;
|
|
22
|
+
}
|
|
23
|
+
export interface CalendarEmitEvents<T extends CalendarEvent> {
|
|
24
|
+
(event: 'change', value: {
|
|
25
|
+
start: CalendarDate;
|
|
26
|
+
end: CalendarDate;
|
|
27
|
+
}): void;
|
|
28
|
+
(event: 'click:event', value: {
|
|
29
|
+
date: CalendarDate;
|
|
30
|
+
event: T;
|
|
31
|
+
}): void;
|
|
32
|
+
(event: 'click:date', value: {
|
|
33
|
+
date: CalendarDate;
|
|
34
|
+
events: T[];
|
|
35
|
+
}): void;
|
|
36
|
+
(event: 'click:time', value: {
|
|
37
|
+
date: CalendarDate;
|
|
38
|
+
events: T[];
|
|
39
|
+
}): void;
|
|
40
|
+
}
|
|
41
|
+
export type CalendarEventExtended<T extends CalendarEvent> = T & {
|
|
42
|
+
isStartDate: boolean;
|
|
43
|
+
isEndDate: boolean;
|
|
44
|
+
id: number;
|
|
45
|
+
isWeekStart: boolean;
|
|
46
|
+
isWeekEnd: boolean;
|
|
47
|
+
class: Record<string, boolean>;
|
|
48
|
+
style: Record<string, string>;
|
|
49
|
+
};
|
|
50
|
+
export type ProcessEventOptions<T extends CalendarEvent> = {
|
|
51
|
+
target: dayjs.Dayjs;
|
|
52
|
+
event: T;
|
|
53
|
+
eventId: number;
|
|
54
|
+
eventColor?: (event: T) => string;
|
|
55
|
+
isWeekly?: boolean;
|
|
56
|
+
getBackgroundColorAttributes: (color: string | null) => {
|
|
57
|
+
class: Record<string, boolean>;
|
|
58
|
+
style: Record<string, string>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type CalendarType = 'month' | 'week';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EmitModelValue<ModelValue, ModelName extends string = 'modelValue'> = (event: `update:${ModelName}`, value: ModelValue) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GroupItemValue = string | number | boolean | symbol;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DatePickerItemEmits {
|
|
2
|
+
(event: 'update:date', value: string): void;
|
|
3
|
+
(event: 'update:selected-type', value: string): void;
|
|
4
|
+
(event: 'update:selected', value: string): void;
|
|
5
|
+
}
|
|
6
|
+
export type DatePickerSelectTypeType = 'year' | 'month' | 'date';
|
|
7
|
+
export type DatePickerSwitchType = 'year' | 'month';
|
|
8
|
+
export type DatePickerTypeType = 'month' | 'date' | 'year';
|
|
9
|
+
/** Unit used to shift a date value by one step (dayjs `add` unit). */
|
|
10
|
+
export type DatePickerStepUnit = 'day' | 'month' | 'year';
|
|
11
|
+
/** Unit used to compare a date value against the `min`/`max` bounds (dayjs `isBefore`/`isAfter` unit). */
|
|
12
|
+
export type DatePickerCompareUnit = 'date' | 'month' | 'year';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type DisplayBreakpointName = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
2
|
+
export type DisplayBreakpointThresholds = Record<DisplayBreakpointName, number>;
|
|
3
|
+
export interface DisplayOptions {
|
|
4
|
+
scrollBarWidth?: number;
|
|
5
|
+
thresholds?: Partial<DisplayBreakpointThresholds>;
|
|
6
|
+
}
|
|
7
|
+
export interface DisplayPreset extends Required<DisplayOptions> {
|
|
8
|
+
thresholds: DisplayBreakpointThresholds;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type EmitModelValue, type FormInputModelValue } from './core';
|
|
2
|
+
export type EmitActivator<ModelName extends string = 'modelValue'> = EmitModelValue<boolean | undefined | null, ModelName>;
|
|
3
|
+
export type EmitDialog = EmitActivator;
|
|
4
|
+
export interface EmitFormInput<T extends FormInputModelValue = FormInputModelValue> {
|
|
5
|
+
change: [T];
|
|
6
|
+
'update:error': [boolean];
|
|
7
|
+
'update:errors': [string[]];
|
|
8
|
+
'update:dirty': [boolean];
|
|
9
|
+
}
|
|
10
|
+
export interface EmitFormTextInput<T extends FormInputModelValue = FormInputModelValue> extends EmitFormInput<T> {
|
|
11
|
+
blur: [Event];
|
|
12
|
+
focus: [Event];
|
|
13
|
+
input: [Event];
|
|
14
|
+
keydown: [KeyboardEvent];
|
|
15
|
+
paste: [ClipboardEvent];
|
|
16
|
+
autocomplete: [HTMLInputElement | null];
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import { type FormInputModelValue } from './core';
|
|
3
|
+
export type FormInputModelValueRule<T extends FormInputModelValue = FormInputModelValue> = (value?: T | undefined | null) => true | string;
|
|
4
|
+
export interface FormProviderRegisterInputAttribute {
|
|
5
|
+
validate: () => void;
|
|
6
|
+
reset: () => void;
|
|
7
|
+
errors: ComputedRef<string[]>;
|
|
8
|
+
hasError: ComputedRef<boolean>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type HtmlAttributeClass = string | string[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SIconType = 'SIconChevronDown' | 'SIconLoading' | 'SIconCameraOutline' | 'SIconFileMultipleOutline' | 'SIconFileOutline' | 'SIconVectorDifferenceBa' | 'SIconClose' | 'SIconCloseCircle' | 'SIconImageArea' | 'SIconMovieOutline';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './app';
|
|
2
|
+
export * from './autocomplete';
|
|
3
|
+
export * from './breadcrumbs';
|
|
4
|
+
export * from './button';
|
|
5
|
+
export * from './calendar';
|
|
6
|
+
export * from './core';
|
|
7
|
+
export * from './datePicker';
|
|
8
|
+
export * from './display';
|
|
9
|
+
export * from './emits';
|
|
10
|
+
export * from './form';
|
|
11
|
+
export * from './grids';
|
|
12
|
+
export * from './icon';
|
|
13
|
+
export * from './input';
|
|
14
|
+
export * from './location';
|
|
15
|
+
export * from './materialDesignIcon';
|
|
16
|
+
export * from './menu';
|
|
17
|
+
export * from './resize';
|
|
18
|
+
export * from './scroll';
|
|
19
|
+
export * from './select';
|
|
20
|
+
export * from './size';
|
|
21
|
+
export * from './table';
|
|
22
|
+
export * from './tag';
|
|
23
|
+
export * from './toolbar';
|
|
24
|
+
export * from './touch';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type InputModeTypeText = 'none' | 'email' | 'search' | 'tel' | 'text' | 'url' | 'numeric' | 'decimal';
|
|
2
|
+
export type InputType = InputTypeText | 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'file' | 'hidden' | 'image' | 'month' | 'radio' | 'range' | 'reset' | 'time' | 'week';
|
|
3
|
+
export type InputTypeText = 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'date' | 'datetime-local' | 'time' | 'week';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type MaterialDesignIcon = string;
|
|
2
|
+
export type MaterialDesignIconExtra = 'mdi-18px' | 'mdi-24px' | 'mdi-36px' | 'mdi-48px' | 'mdi-36px' | 'mdi-rotate-45' | 'mdi-rotate-90' | 'mdi-rotate-135' | 'mdi-rotate-180' | 'mdi-rotate-225' | 'mdi-rotate-270' | 'mdi-rotate-315' | 'mdi-flip-h' | 'mdi-flip-v' | 'mdi-spin' | 'mdi-inactive' | 'mdi-light' | 'mdi-dark ';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type DirectiveBinding } from 'vue';
|
|
2
|
+
export interface OnResizeObject {
|
|
3
|
+
handler: ResizeDirectiveBindingValue;
|
|
4
|
+
options: AddEventListenerOptions;
|
|
5
|
+
}
|
|
6
|
+
export interface ResizeDirectiveBinding<V extends ResizeDirectiveBindingValue = ResizeDirectiveBindingValue> extends Omit<DirectiveBinding<V>, 'modifiers'> {
|
|
7
|
+
modifiers?: {
|
|
8
|
+
active?: boolean;
|
|
9
|
+
quiet?: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export type ResizeDirectiveBindingValue = () => void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type DirectiveBinding } from 'vue';
|
|
2
|
+
export interface ScrollDirectiveBinding<V extends ScrollDirectiveBindingValue = ScrollDirectiveBindingValue> extends Omit<DirectiveBinding<V>, 'modifiers'> {
|
|
3
|
+
value: V;
|
|
4
|
+
modifiers?: {
|
|
5
|
+
self?: boolean;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export type ScrollDirectiveBindingValue = EventListener | ScrollDirectiveBindingValueObject | (EventListenerObject & {
|
|
9
|
+
options?: AddEventListenerOptions;
|
|
10
|
+
});
|
|
11
|
+
export interface ScrollDirectiveBindingValueObject {
|
|
12
|
+
handler: EventListener | EventListenerObject;
|
|
13
|
+
options?: AddEventListenerOptions;
|
|
14
|
+
target?: Element | Window | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface ThresholdMetParams {
|
|
17
|
+
currentScroll: number;
|
|
18
|
+
currentThreshold: number;
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
isScrollingUp: boolean;
|
|
21
|
+
previousScroll: number;
|
|
22
|
+
savedScroll: number;
|
|
23
|
+
target: HTMLElement | Document | null;
|
|
24
|
+
canScroll: boolean;
|
|
25
|
+
computedScrollThreshold: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
export declare enum TableSortOrder {
|
|
3
|
+
ascending = "asc",
|
|
4
|
+
descending = "desc"
|
|
5
|
+
}
|
|
6
|
+
export type TableItem<T extends Record<string, any> = Record<string, any>> = T;
|
|
7
|
+
export type TableItemCellType = 'footer' | 'header' | 'cell' | 'expansion';
|
|
8
|
+
export type TableRowClass<T extends TableItem = TableItem> = string | string[] | Record<string, boolean> | ((data: {
|
|
9
|
+
item: T;
|
|
10
|
+
cellType: TableItemCellType;
|
|
11
|
+
}) => string | string[] | Record<string, boolean>);
|
|
12
|
+
export type TableItemClass<T extends TableItem = TableItem, CellKey extends string = string> = string | string[] | Record<string, boolean> | ((data: {
|
|
13
|
+
item: T;
|
|
14
|
+
cellKey: CellKey;
|
|
15
|
+
cellType: TableItemCellType;
|
|
16
|
+
}) => string | string[] | Record<string, boolean>);
|
|
17
|
+
export type TableItemStyle<T extends TableItem = TableItem, CellKey extends string = string> = CSSProperties | ((data: {
|
|
18
|
+
item: T;
|
|
19
|
+
cellKey: CellKey;
|
|
20
|
+
cellType: TableItemCellType;
|
|
21
|
+
}) => CSSProperties);
|
|
22
|
+
export interface TableHeader<V extends string | number | symbol = string> {
|
|
23
|
+
text: string;
|
|
24
|
+
value: V;
|
|
25
|
+
align?: 'start' | 'center' | 'end';
|
|
26
|
+
sortable?: boolean;
|
|
27
|
+
groupable?: boolean;
|
|
28
|
+
class?: string | string[] | Record<string, boolean | null | undefined> | undefined;
|
|
29
|
+
cellClass?: TableItemClass | undefined;
|
|
30
|
+
cellStyle?: TableItemStyle | undefined;
|
|
31
|
+
width?: string | number;
|
|
32
|
+
textWrap?: boolean;
|
|
33
|
+
noGutters?: boolean;
|
|
34
|
+
cellNoGutters?: boolean;
|
|
35
|
+
sort?: (a: TableItem, b: TableItem, sortOrder?: TableSortOrder) => number;
|
|
36
|
+
rowspan?: number;
|
|
37
|
+
colspan?: number;
|
|
38
|
+
scope?: 'colgroup' | 'col';
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type HtmlTagName = 'a' | 'abbr' | 'acronym' | 'address' | 'applet' | 'area' | 'article' | 'aside' | 'audio' | 'b' | 'base' | 'basefont' | 'bdi' | 'bdo' | 'big' | 'blockquote' | 'body' | 'br' | 'button' | 'canvas' | 'caption' | 'center' | 'cite' | 'code' | 'col' | 'colgroup' | 'data' | 'datalist' | 'dd' | 'del' | 'details' | 'dfn' | 'dialog' | 'dir' | 'div' | 'dl' | 'dt' | 'em' | 'embed' | 'fieldset' | 'figcaption' | 'figure' | 'font' | 'footer' | 'form' | 'frame' | 'frameset' | 'h1' | 'h1> to <h6' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'head' | 'header' | 'hr' | 'html' | 'i' | 'iframe' | 'img' | 'input' | 'ins' | 'kbd' | 'label' | 'legend' | 'li' | 'link' | 'main' | 'map' | 'mark' | 'meta' | 'meter' | 'nav' | 'noframes' | 'noscript' | 'object' | 'ol' | 'optgroup' | 'option' | 'output' | 'p' | 'param' | 'picture' | 'pre' | 'progress' | 'q' | 'rp' | 'rt' | 'ruby' | 's' | 'samp' | 'script' | 'section' | 'select' | 'small' | 'source' | 'span' | 'strike' | 'strong' | 'style' | 'sub' | 'summary' | 'sup' | 'svg' | 'table' | 'tbody' | 'td' | 'template' | 'textarea' | 'tfoot' | 'th' | 'thead' | 'time' | 'title' | 'tr' | 'track' | 'tt' | 'u' | 'ul' | 'var' | 'video' | 'wbr';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TouchHandlers {
|
|
2
|
+
start?: ((wrapperEvent: TouchEvent & TouchWrapper) => void) | undefined;
|
|
3
|
+
end?: ((wrapperEvent: TouchEvent & TouchWrapper) => void) | undefined;
|
|
4
|
+
move?: ((wrapperEvent: TouchEvent & TouchWrapper) => void) | undefined;
|
|
5
|
+
left?: ((wrapper: TouchWrapper) => void) | undefined;
|
|
6
|
+
right?: ((wrapper: TouchWrapper) => void) | undefined;
|
|
7
|
+
up?: ((wrapper: TouchWrapper) => void) | undefined;
|
|
8
|
+
down?: ((wrapper: TouchWrapper) => void) | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface TouchStoredHandlers {
|
|
11
|
+
touchstart: (e: TouchEvent) => void;
|
|
12
|
+
touchend: (e: TouchEvent) => void;
|
|
13
|
+
touchmove: (e: TouchEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
export type TouchValue = TouchHandlers & {
|
|
16
|
+
parent?: boolean;
|
|
17
|
+
options?: AddEventListenerOptions;
|
|
18
|
+
};
|
|
19
|
+
export interface TouchWrapper extends TouchHandlers {
|
|
20
|
+
touchstartX: number;
|
|
21
|
+
touchstartY: number;
|
|
22
|
+
touchmoveX: number;
|
|
23
|
+
touchmoveY: number;
|
|
24
|
+
touchendX: number;
|
|
25
|
+
touchendY: number;
|
|
26
|
+
offsetX: number;
|
|
27
|
+
offsetY: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './numeric';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validatorNumericCssAttribute: (value: string | number | null | undefined) => boolean;
|
package/README.md
CHANGED
|
@@ -1,3 +1,211 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @khsura/sui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A Vue 3 + TypeScript component framework — batteries included.
|
|
4
|
+
|
|
5
|
+
> 89 components · 39 composables · layout system · theming · SCSS helpers · Storybook · Vitest
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **89 components** prefixed with `S` (e.g. `SButton`, `SCard`, `SInput`, `SDialog`, `SAutocomplete`, `SDataTable`). Every component ships with TypeScript prop types in `definitions/`.
|
|
10
|
+
- **Named layout system** — `<SLayout name="app">` + children (`SAppBar`, `SNavigationDrawer`, `SMain`, `SFooter`, `SBottomNavigation`) bound by a shared `name`.
|
|
11
|
+
- **Shared core props** across components — `color`, `elevation`, `size` (`mini` | `small` | `default` | `large` | `extra`), `outlined`, `borderRadius`, dimension props (`width`, `maxWidth`, ...), `href` / `to` link behaviour.
|
|
12
|
+
- **Form primitives** with unified `rules: ((value: unknown) => true | string)[]` validation, `hideDetails`, `error`, `dirty`, `disabled`, `id`.
|
|
13
|
+
- **Composables** — `useTheme()`, `useDisplay()` (breakpoints: `isMobile`, `isTablet`, `smAndUp`, …), `useScroll()`, `useClickOutside()`.
|
|
14
|
+
- **Popup activator pattern** — dialogs, menus, tooltips, and snackbars use the `#activator="{ on, attrs }"` slot (bind both `v-on="on"` and `v-bind="attrs"`).
|
|
15
|
+
- **SCSS utilities** — `s_*` utility classes, mixins, `s_getAppColor()` / `s_getPresetColor()` helpers, theme variables.
|
|
16
|
+
- **First-class TypeScript** — generated `.d.ts` files, generics on components where relevant.
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
This package is published to **GitHub Packages** (not npmjs.com), so you need a GitHub token with `read:packages` scope.
|
|
21
|
+
|
|
22
|
+
### 1. Configure the registry
|
|
23
|
+
|
|
24
|
+
**For Yarn 4 (Berry)** — add to `.yarnrc.yml`:
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
npmScopes:
|
|
28
|
+
khsura:
|
|
29
|
+
npmAlwaysAuth: true
|
|
30
|
+
npmAuthToken: "${NPM_GITHUB_TOKEN}"
|
|
31
|
+
npmRegistryServer: "https://npm.pkg.github.com"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then expose the token via an env file (e.g. `.env.yarn` listed under `injectEnvironmentFiles`):
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
NPM_GITHUB_TOKEN=ghp_xxx...
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**For npm** — add to `~/.npmrc` (or project `.npmrc`):
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
@khsura:registry=https://npm.pkg.github.com
|
|
44
|
+
//npm.pkg.github.com/:_authToken=${NPM_GITHUB_TOKEN}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 2. Add the package
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
yarn add @khsura/sui
|
|
51
|
+
# or
|
|
52
|
+
npm i @khsura/sui
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 3. Install the plugin
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
// main.ts
|
|
59
|
+
import { createApp } from 'vue'
|
|
60
|
+
import { createSUI } from '@khsura/sui'
|
|
61
|
+
import App from './App.vue'
|
|
62
|
+
|
|
63
|
+
import '@khsura/sui/style.css' // compiled CSS
|
|
64
|
+
|
|
65
|
+
const app = createApp(App)
|
|
66
|
+
app.use(createSUI())
|
|
67
|
+
app.mount('#app')
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
You can also import SCSS sources if you want to extend tokens:
|
|
71
|
+
|
|
72
|
+
```scss
|
|
73
|
+
// your styles
|
|
74
|
+
@use '@khsura/sui/style.scss' as *;
|
|
75
|
+
@use '@khsura/sui/helpers.scss' as *;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Quick start
|
|
79
|
+
|
|
80
|
+
```vue
|
|
81
|
+
<template>
|
|
82
|
+
<SLayout name="app">
|
|
83
|
+
<SAppBar :for="'app'">
|
|
84
|
+
<SToolbarTitle>My app</SToolbarTitle>
|
|
85
|
+
</SAppBar>
|
|
86
|
+
|
|
87
|
+
<SMain :for="'app'">
|
|
88
|
+
<SContainer>
|
|
89
|
+
<SCard elevation="2" outlined>
|
|
90
|
+
<SCardTitle>Hello SUI</SCardTitle>
|
|
91
|
+
<SCardText>
|
|
92
|
+
<SButton color="primary" @click="handleClick">Click me</SButton>
|
|
93
|
+
</SCardText>
|
|
94
|
+
</SCard>
|
|
95
|
+
</SContainer>
|
|
96
|
+
</SMain>
|
|
97
|
+
</SLayout>
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<script setup lang="ts">
|
|
101
|
+
import { useDisplay } from '@khsura/sui'
|
|
102
|
+
const { isMobile } = useDisplay()
|
|
103
|
+
const handleClick = () => console.log({ isMobile: isMobile.value })
|
|
104
|
+
</script>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Forms
|
|
108
|
+
|
|
109
|
+
```vue
|
|
110
|
+
<template>
|
|
111
|
+
<SForm @submit.prevent="submit">
|
|
112
|
+
<SInput v-model="name" :rules="[required]" label="Name" />
|
|
113
|
+
<SSelect v-model="role" :items="roles" :rules="[required]" label="Role" />
|
|
114
|
+
<SAutocomplete v-model="userId" :items="users" label="Assign to" />
|
|
115
|
+
<SButton type="submit" color="primary">Save</SButton>
|
|
116
|
+
</SForm>
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<script setup lang="ts">
|
|
120
|
+
import { ref } from 'vue'
|
|
121
|
+
const name = ref('')
|
|
122
|
+
const role = ref('')
|
|
123
|
+
const userId = ref('')
|
|
124
|
+
const roles = ['admin', 'editor', 'viewer']
|
|
125
|
+
const users = [{ text: 'Sura', value: '1' }, { text: 'Anar', value: '2' }]
|
|
126
|
+
const required = (v: unknown) => !!v || 'required'
|
|
127
|
+
const submit = () => console.log({ name: name.value, role: role.value, userId: userId.value })
|
|
128
|
+
</script>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Popups (dialog / menu / tooltip / snackbar)
|
|
132
|
+
|
|
133
|
+
```vue
|
|
134
|
+
<SMenu>
|
|
135
|
+
<template #activator="{ on, attrs }">
|
|
136
|
+
<SButton v-on="on" v-bind="attrs">Open menu</SButton>
|
|
137
|
+
</template>
|
|
138
|
+
<SList>
|
|
139
|
+
<SListItem>Item A</SListItem>
|
|
140
|
+
<SListItem>Item B</SListItem>
|
|
141
|
+
</SList>
|
|
142
|
+
</SMenu>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Always bind **both** `v-on="on"` and `v-bind="attrs"` on the activator element.
|
|
146
|
+
|
|
147
|
+
## Breakpoints (`useDisplay`)
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
import { useDisplay } from '@khsura/sui'
|
|
151
|
+
const {
|
|
152
|
+
isMobile, isTablet, isDesktop,
|
|
153
|
+
smAndUp, mdAndUp, lgAndUp,
|
|
154
|
+
smAndDown, mdAndDown,
|
|
155
|
+
} = useDisplay()
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Component reference
|
|
159
|
+
|
|
160
|
+
Per-component docs live in [`docs/components/`](./docs/components/). Start with [`index.md`](./docs/components/index.md).
|
|
161
|
+
|
|
162
|
+
Interactive reference is in Storybook:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
yarn workspace @khsura/sui storybook:dev
|
|
166
|
+
# http://localhost:6006
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Claude Code integration
|
|
170
|
+
|
|
171
|
+
This package ships with the `sui-plugin` Claude Code plugin. Install it so Claude can generate idiomatic SUI code for you:
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
/plugin marketplace add khsura/sui
|
|
175
|
+
/plugin install sui-plugin@sui-framework
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Available skills: `/sui-getting-started`, `/sui-component`, `/sui-form`, `/sui-layout`, `/sui-docs` (utilities & mixins).
|
|
179
|
+
|
|
180
|
+
## Scripts
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
yarn build # type-check + vite build + compile SCSS
|
|
184
|
+
yarn lint # eslint
|
|
185
|
+
yarn stylelint # stylelint on .vue/.css/.scss
|
|
186
|
+
yarn test # vitest unit tests
|
|
187
|
+
yarn test-storybook # vitest storybook tests
|
|
188
|
+
yarn storybook:dev # storybook on :6006
|
|
189
|
+
yarn storybook:build # static storybook
|
|
190
|
+
yarn release # yarn npm publish (see repo root README for beta flow)
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Peer expectations
|
|
194
|
+
|
|
195
|
+
- **Vue**: `^3.5.31`
|
|
196
|
+
- **Node**: `>=18`
|
|
197
|
+
- **Yarn**: `4.x` (Berry) if you develop this package
|
|
198
|
+
|
|
199
|
+
Required runtime deps (bundled or peered): `@vueuse/core`, `@vueuse/components`, `dayjs`, `uuid`, `vue-i18n`, `zod`.
|
|
200
|
+
|
|
201
|
+
## Versioning
|
|
202
|
+
|
|
203
|
+
Semver. Stable releases are cut by **release-please** from `main`. Pre-release builds use a `-beta.N` suffix and the `beta` npm tag:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
yarn add @khsura/sui@beta
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## License
|
|
210
|
+
|
|
211
|
+
See [`package.json`](./package.json).
|