@khsura/sui 0.0.0-stage → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/.claude-plugin/marketplace.json +18 -0
  2. package/@types/components/badge/index.d.ts +1 -0
  3. package/@types/components/badge/sBadge.vue.d.ts +18 -0
  4. package/@types/components/badge/sBadgeContent.vue.d.ts +14 -0
  5. package/@types/components/calendar/index.d.ts +1 -0
  6. package/@types/components/calendar/sCalendar.vue.d.ts +52 -0
  7. package/@types/components/calendar/sCalendarMonthly.vue.d.ts +51 -0
  8. package/@types/components/calendar/sCalendarWeekly.vue.d.ts +75 -0
  9. package/@types/components/cards/index.d.ts +5 -0
  10. package/@types/components/cards/sCard.vue.d.ts +14 -0
  11. package/@types/components/cards/sCardActions.vue.d.ts +15 -0
  12. package/@types/components/cards/sCardSubtitle.vue.d.ts +15 -0
  13. package/@types/components/cards/sCardText.vue.d.ts +15 -0
  14. package/@types/components/cards/sCardTitle.vue.d.ts +15 -0
  15. package/@types/components/carousel/index.d.ts +2 -0
  16. package/@types/components/carousel/sCarousel.vue.d.ts +34 -0
  17. package/@types/components/carousel/sCarouselItem.vue.d.ts +14 -0
  18. package/@types/components/datePicker/index.d.ts +2 -0
  19. package/@types/components/datePicker/sDatePicker.vue.d.ts +22 -0
  20. package/@types/components/datePicker/sDatePickerDate.vue.d.ts +12 -0
  21. package/@types/components/datePicker/sDatePickerInput.vue.d.ts +31 -0
  22. package/@types/components/datePicker/sDatePickerMonth.vue.d.ts +12 -0
  23. package/@types/components/datePicker/sDatePickerSwitch.vue.d.ts +15 -0
  24. package/@types/components/datePicker/sDatePickerTitle.vue.d.ts +16 -0
  25. package/@types/components/datePicker/sDatePickerYear.vue.d.ts +12 -0
  26. package/@types/components/expansionPanel/index.d.ts +4 -0
  27. package/@types/components/expansionPanel/sExpansionPanel.vue.d.ts +17 -0
  28. package/@types/components/expansionPanel/sExpansionPanelContent.vue.d.ts +15 -0
  29. package/@types/components/expansionPanel/sExpansionPanelHeader.vue.d.ts +21 -0
  30. package/@types/components/expansionPanel/sExpansionPanels.vue.d.ts +24 -0
  31. package/@types/components/form/common/index.d.ts +1 -0
  32. package/@types/components/form/common/sFormInputError.vue.d.ts +25 -0
  33. package/@types/components/form/index.d.ts +7 -0
  34. package/@types/components/form/radio/index.d.ts +2 -0
  35. package/@types/components/form/radio/sRadio.vue.d.ts +32 -0
  36. package/@types/components/form/radio/sRadioGroup.vue.d.ts +35 -0
  37. package/@types/components/form/sCheckbox.vue.d.ts +22 -0
  38. package/@types/components/form/sForm.vue.d.ts +31 -0
  39. package/@types/components/form/sInput.vue.d.ts +73 -0
  40. package/@types/components/form/sSelect.vue.d.ts +64 -0
  41. package/@types/components/form/sTextarea.vue.d.ts +38 -0
  42. package/@types/components/grids/index.d.ts +4 -0
  43. package/@types/components/grids/sColumn.vue.d.ts +14 -0
  44. package/@types/components/grids/sContainer.vue.d.ts +14 -0
  45. package/@types/components/grids/sRow.vue.d.ts +14 -0
  46. package/@types/components/grids/sSpacer.vue.d.ts +13 -0
  47. package/@types/components/index.d.ts +36 -0
  48. package/@types/components/layout/index.d.ts +8 -0
  49. package/@types/components/layout/sApp.vue.d.ts +15 -0
  50. package/@types/components/layout/sAppBar.vue.d.ts +22 -0
  51. package/@types/components/layout/sAppBarTitle.vue.d.ts +16 -0
  52. package/@types/components/layout/sBottomNavigation.vue.d.ts +24 -0
  53. package/@types/components/layout/sFooter.vue.d.ts +18 -0
  54. package/@types/components/layout/sLayout.vue.d.ts +14 -0
  55. package/@types/components/layout/sMain.vue.d.ts +14 -0
  56. package/@types/components/layout/sNavigationDrawer.vue.d.ts +45 -0
  57. package/@types/components/list/index.d.ts +8 -0
  58. package/@types/components/list/sList.vue.d.ts +14 -0
  59. package/@types/components/list/sListItem.vue.d.ts +18 -0
  60. package/@types/components/list/sListItemAction.vue.d.ts +14 -0
  61. package/@types/components/list/sListItemContent.vue.d.ts +13 -0
  62. package/@types/components/list/sListItemGroup.vue.d.ts +47 -0
  63. package/@types/components/list/sListItemIcon.vue.d.ts +14 -0
  64. package/@types/components/list/sListItemSubtitle.vue.d.ts +13 -0
  65. package/@types/components/list/sListItemTitle.vue.d.ts +13 -0
  66. package/@types/components/progress/index.d.ts +2 -0
  67. package/@types/components/progress/sProgressCircular.vue.d.ts +18 -0
  68. package/@types/components/progress/sProgressLinear.vue.d.ts +17 -0
  69. package/@types/components/sAlert.vue.d.ts +14 -0
  70. package/@types/components/sAutocomplete.vue.d.ts +57 -0
  71. package/@types/components/sBreadcrumbs.vue.d.ts +16 -0
  72. package/@types/components/sButton.vue.d.ts +20 -0
  73. package/@types/components/sChip.vue.d.ts +24 -0
  74. package/@types/components/sDialog.vue.d.ts +33 -0
  75. package/@types/components/sDivider.vue.d.ts +4 -0
  76. package/@types/components/sDroppable.vue.d.ts +28 -0
  77. package/@types/components/sIcon.vue.d.ts +4 -0
  78. package/@types/components/sImage.vue.d.ts +14 -0
  79. package/@types/components/sMenu.vue.d.ts +36 -0
  80. package/@types/components/sOverlay.vue.d.ts +26 -0
  81. package/@types/components/sSheet.vue.d.ts +14 -0
  82. package/@types/components/sSnackbar.vue.d.ts +35 -0
  83. package/@types/components/sSubheader.vue.d.ts +13 -0
  84. package/@types/components/sSwitch.vue.d.ts +23 -0
  85. package/@types/components/sTooltip.vue.d.ts +25 -0
  86. package/@types/components/slideGroup/index.d.ts +2 -0
  87. package/@types/components/slideGroup/sSlideGroup.vue.d.ts +42 -0
  88. package/@types/components/slideGroup/sSlideItem.vue.d.ts +17 -0
  89. package/@types/components/splitViews/index.d.ts +2 -0
  90. package/@types/components/splitViews/sSplitView.vue.d.ts +17 -0
  91. package/@types/components/splitViews/sSplitViewItem.vue.d.ts +13 -0
  92. package/@types/components/stepper/index.d.ts +2 -0
  93. package/@types/components/stepper/sStepper.vue.d.ts +26 -0
  94. package/@types/components/stepper/sStepperStep.vue.d.ts +14 -0
  95. package/@types/components/table/index.d.ts +3 -0
  96. package/@types/components/table/sTable.vue.d.ts +72 -0
  97. package/@types/components/table/sTableBodyCell.vue.d.ts +22 -0
  98. package/@types/components/table/sTableHeadCell.vue.d.ts +24 -0
  99. package/@types/components/table/sTablePagination.vue.d.ts +33 -0
  100. package/@types/components/tabs/index.d.ts +2 -0
  101. package/@types/components/tabs/sTab.vue.d.ts +14 -0
  102. package/@types/components/tabs/sTabs.vue.d.ts +20 -0
  103. package/@types/components/toggleButtonGroup/index.d.ts +2 -0
  104. package/@types/components/toggleButtonGroup/sToggleButton.vue.d.ts +14 -0
  105. package/@types/components/toggleButtonGroup/sToggleButtonGroup.vue.d.ts +31 -0
  106. package/@types/components/toolbar/index.d.ts +3 -0
  107. package/@types/components/toolbar/sToolbar.vue.d.ts +23 -0
  108. package/@types/components/toolbar/sToolbarItem.vue.d.ts +5 -0
  109. package/@types/components/toolbar/sToolbarTitle.vue.d.ts +16 -0
  110. package/@types/components/window/index.d.ts +2 -0
  111. package/@types/components/window/sWindow.vue.d.ts +57 -0
  112. package/@types/components/window/sWindowItem.vue.d.ts +13 -0
  113. package/@types/componentsTypes.d.ts +8 -0
  114. package/@types/configs/app.d.ts +72 -0
  115. package/@types/configs/color.d.ts +2 -0
  116. package/@types/configs/core/breakpoint.d.ts +9 -0
  117. package/@types/configs/core/index.d.ts +1 -0
  118. package/@types/configs/datePicker.d.ts +34 -0
  119. package/@types/configs/grids.d.ts +3 -0
  120. package/@types/configs/i18n.d.ts +73 -0
  121. package/@types/configs/iconSizes.d.ts +7 -0
  122. package/@types/configs/index.d.ts +11 -0
  123. package/@types/configs/provider.d.ts +42 -0
  124. package/@types/configs/size.d.ts +2 -0
  125. package/@types/configs/toolbar.d.ts +11 -0
  126. package/@types/configs/transitions.d.ts +2 -0
  127. package/@types/constants/alert.d.ts +52 -0
  128. package/@types/constants/app.d.ts +7 -0
  129. package/@types/constants/button.d.ts +5 -0
  130. package/@types/constants/color.d.ts +318 -0
  131. package/@types/constants/cssVariables.d.ts +4 -0
  132. package/@types/constants/datePicker.d.ts +14 -0
  133. package/@types/constants/form.d.ts +9 -0
  134. package/@types/constants/grids.d.ts +14 -0
  135. package/@types/constants/i18n.d.ts +68 -0
  136. package/@types/constants/imageLoader.d.ts +13 -0
  137. package/@types/constants/index.d.ts +20 -0
  138. package/@types/constants/layout.d.ts +10 -0
  139. package/@types/constants/lazyLoad.d.ts +5 -0
  140. package/@types/constants/materialDesignIcon.d.ts +3 -0
  141. package/@types/constants/menuDimensions.d.ts +2 -0
  142. package/@types/constants/navigationDrawer.d.ts +8 -0
  143. package/@types/constants/overlay.d.ts +1 -0
  144. package/@types/constants/position.d.ts +1 -0
  145. package/@types/constants/size.d.ts +7 -0
  146. package/@types/constants/toolbar.d.ts +7 -0
  147. package/@types/constants/transition.d.ts +6 -0
  148. package/@types/definitions/app.d.ts +22 -0
  149. package/@types/definitions/emits/emitsTable.d.ts +18 -0
  150. package/@types/definitions/emits/index.d.ts +1 -0
  151. package/@types/definitions/index.d.ts +4 -0
  152. package/@types/definitions/props/core/index.d.ts +18 -0
  153. package/@types/definitions/props/core/propsActivator.d.ts +6 -0
  154. package/@types/definitions/props/core/propsBorder.d.ts +5 -0
  155. package/@types/definitions/props/core/propsButtonVariant.d.ts +3 -0
  156. package/@types/definitions/props/core/propsColor.d.ts +6 -0
  157. package/@types/definitions/props/core/propsComponentTheme.d.ts +4 -0
  158. package/@types/definitions/props/core/propsContent.d.ts +5 -0
  159. package/@types/definitions/props/core/propsDisabled.d.ts +4 -0
  160. package/@types/definitions/props/core/propsElevation.d.ts +3 -0
  161. package/@types/definitions/props/core/propsGroup.d.ts +6 -0
  162. package/@types/definitions/props/core/propsGroupItem.d.ts +6 -0
  163. package/@types/definitions/props/core/propsLayoutBase.d.ts +3 -0
  164. package/@types/definitions/props/core/propsLink.d.ts +7 -0
  165. package/@types/definitions/props/core/propsLocation.d.ts +6 -0
  166. package/@types/definitions/props/core/propsMeasurableStyles.d.ts +8 -0
  167. package/@types/definitions/props/core/propsPosition.d.ts +4 -0
  168. package/@types/definitions/props/core/propsTag.d.ts +4 -0
  169. package/@types/definitions/props/core/propsTextColor.d.ts +3 -0
  170. package/@types/definitions/props/core/propsToggleButtonGroupVariant.d.ts +3 -0
  171. package/@types/definitions/props/index.d.ts +70 -0
  172. package/@types/definitions/props/propsAlert.d.ts +7 -0
  173. package/@types/definitions/props/propsApp.d.ts +2 -0
  174. package/@types/definitions/props/propsAppBar.d.ts +9 -0
  175. package/@types/definitions/props/propsAutocomplete.d.ts +40 -0
  176. package/@types/definitions/props/propsBadge.d.ts +19 -0
  177. package/@types/definitions/props/propsBottomNavigation.d.ts +14 -0
  178. package/@types/definitions/props/propsBreadcrumbs.d.ts +7 -0
  179. package/@types/definitions/props/propsButton.d.ts +10 -0
  180. package/@types/definitions/props/propsCalendar.d.ts +27 -0
  181. package/@types/definitions/props/propsCard.d.ts +2 -0
  182. package/@types/definitions/props/propsCarousel.d.ts +12 -0
  183. package/@types/definitions/props/propsCarouselItem.d.ts +3 -0
  184. package/@types/definitions/props/propsCheckbox.d.ts +9 -0
  185. package/@types/definitions/props/propsChip.d.ts +7 -0
  186. package/@types/definitions/props/propsColumn.d.ts +10 -0
  187. package/@types/definitions/props/propsContainer.d.ts +8 -0
  188. package/@types/definitions/props/propsDatePicker.d.ts +15 -0
  189. package/@types/definitions/props/propsDatePickerFormat.d.ts +5 -0
  190. package/@types/definitions/props/propsDatePickerInput.d.ts +18 -0
  191. package/@types/definitions/props/propsDatePickerItem.d.ts +18 -0
  192. package/@types/definitions/props/propsDatePickerItemSwitch.d.ts +9 -0
  193. package/@types/definitions/props/propsDatePickerItemTitle.d.ts +3 -0
  194. package/@types/definitions/props/propsDialog.d.ts +10 -0
  195. package/@types/definitions/props/propsDivider.d.ts +3 -0
  196. package/@types/definitions/props/propsDroppable.d.ts +2 -0
  197. package/@types/definitions/props/propsExpansionPanels.d.ts +8 -0
  198. package/@types/definitions/props/propsFooter.d.ts +6 -0
  199. package/@types/definitions/props/propsFormInput.d.ts +10 -0
  200. package/@types/definitions/props/propsIcon.d.ts +10 -0
  201. package/@types/definitions/props/propsImage.d.ts +9 -0
  202. package/@types/definitions/props/propsImageLoader.d.ts +11 -0
  203. package/@types/definitions/props/propsInput.d.ts +32 -0
  204. package/@types/definitions/props/propsLayout.d.ts +6 -0
  205. package/@types/definitions/props/propsLayoutProvider.d.ts +4 -0
  206. package/@types/definitions/props/propsLink.d.ts +7 -0
  207. package/@types/definitions/props/propsList.d.ts +10 -0
  208. package/@types/definitions/props/propsListItem.d.ts +7 -0
  209. package/@types/definitions/props/propsListMediaItem.d.ts +4 -0
  210. package/@types/definitions/props/propsMain.d.ts +4 -0
  211. package/@types/definitions/props/propsMenu.d.ts +9 -0
  212. package/@types/definitions/props/propsNavigationDrawer.d.ts +20 -0
  213. package/@types/definitions/props/propsOverlay.d.ts +8 -0
  214. package/@types/definitions/props/propsProgressCircular.d.ts +8 -0
  215. package/@types/definitions/props/propsProgressLinear.d.ts +9 -0
  216. package/@types/definitions/props/propsRadioGroup.d.ts +9 -0
  217. package/@types/definitions/props/propsRow.d.ts +11 -0
  218. package/@types/definitions/props/propsScrollable.d.ts +5 -0
  219. package/@types/definitions/props/propsSelect.d.ts +13 -0
  220. package/@types/definitions/props/propsSheet.d.ts +2 -0
  221. package/@types/definitions/props/propsSingleGroup.d.ts +6 -0
  222. package/@types/definitions/props/propsSingleGroupItem.d.ts +5 -0
  223. package/@types/definitions/props/propsSizePreset.d.ts +4 -0
  224. package/@types/definitions/props/propsSizeUnion.d.ts +4 -0
  225. package/@types/definitions/props/propsSlideGroup.d.ts +11 -0
  226. package/@types/definitions/props/propsSnackbar.d.ts +6 -0
  227. package/@types/definitions/props/propsSplitView.d.ts +9 -0
  228. package/@types/definitions/props/propsStepper.d.ts +10 -0
  229. package/@types/definitions/props/propsStepperStep.d.ts +6 -0
  230. package/@types/definitions/props/propsSwitch.d.ts +5 -0
  231. package/@types/definitions/props/propsTab.d.ts +5 -0
  232. package/@types/definitions/props/propsTable.d.ts +58 -0
  233. package/@types/definitions/props/propsTabs.d.ts +12 -0
  234. package/@types/definitions/props/propsTextarea.d.ts +25 -0
  235. package/@types/definitions/props/propsToggleButton.d.ts +3 -0
  236. package/@types/definitions/props/propsToggleButtonGroup.d.ts +8 -0
  237. package/@types/definitions/props/propsToolbar.d.ts +11 -0
  238. package/@types/definitions/props/propsToolbarTitle.d.ts +4 -0
  239. package/@types/definitions/props/propsTooltip.d.ts +9 -0
  240. package/@types/definitions/props/propsWindow.d.ts +13 -0
  241. package/@types/definitions/props/propsWindowItem.d.ts +2 -0
  242. package/@types/definitions/provider.d.ts +20 -0
  243. package/@types/directives/index.d.ts +2 -0
  244. package/@types/directives/resize.d.ts +2 -0
  245. package/@types/directives/scroll.d.ts +2 -0
  246. package/@types/helpers/autocompleteHelpers.d.ts +7 -0
  247. package/@types/helpers/colorHelpers.d.ts +3 -0
  248. package/@types/helpers/createAppStore.d.ts +77 -0
  249. package/@types/helpers/display.d.ts +1 -0
  250. package/@types/helpers/index.d.ts +6 -0
  251. package/@types/helpers/selectItemHelpers.d.ts +4 -0
  252. package/@types/helpers/tableHelpers.d.ts +9 -0
  253. package/@types/helpers/themeHelpers.d.ts +2 -0
  254. package/@types/index.d.ts +10 -0
  255. package/@types/lib/browser.d.ts +26 -0
  256. package/@types/lib/button.d.ts +3 -0
  257. package/@types/lib/color.d.ts +19 -0
  258. package/@types/lib/compositionApi.d.ts +2 -0
  259. package/@types/lib/formatNumber.d.ts +1 -0
  260. package/@types/lib/getCleanSetObject.d.ts +5 -0
  261. package/@types/lib/getNumericCssAttribute.d.ts +1 -0
  262. package/@types/lib/getNumericValue.d.ts +13 -0
  263. package/@types/lib/getPluginName.d.ts +1 -0
  264. package/@types/lib/htmlClass.d.ts +1 -0
  265. package/@types/lib/htmlToText.d.ts +2 -0
  266. package/@types/lib/index.d.ts +12 -0
  267. package/@types/lib/isEmpty.d.ts +1 -0
  268. package/@types/lib/retry.d.ts +1 -0
  269. package/@types/lib/scroll.d.ts +13 -0
  270. package/@types/lib/wait.d.ts +1 -0
  271. package/@types/modules/index.d.ts +1 -0
  272. package/@types/modules/sUI.d.ts +2 -0
  273. package/@types/repositories/calendarRepository.d.ts +3 -0
  274. package/@types/repositories/colorRepository.d.ts +14 -0
  275. package/@types/repositories/columnRepository.d.ts +9 -0
  276. package/@types/repositories/core/appProviderRepository.d.ts +4 -0
  277. package/@types/repositories/datePicker.d.ts +18 -0
  278. package/@types/repositories/form.d.ts +66 -0
  279. package/@types/repositories/htmlClassRepository.d.ts +1 -0
  280. package/@types/repositories/index.d.ts +9 -0
  281. package/@types/repositories/positionRepository.d.ts +10 -0
  282. package/@types/repositories/tableRepository.d.ts +2 -0
  283. package/@types/repositories/touchRepository.d.ts +4 -0
  284. package/@types/services/appBarService.d.ts +41 -0
  285. package/@types/services/appService.d.ts +6 -0
  286. package/@types/services/autocompleteService.d.ts +42 -0
  287. package/@types/services/backgroundScrollService.d.ts +4 -0
  288. package/@types/services/borderService.d.ts +12 -0
  289. package/@types/services/calendar/calendarEventService.d.ts +5 -0
  290. package/@types/services/calendar/calendarMonthlyService.d.ts +14 -0
  291. package/@types/services/calendar/calendarService.d.ts +8 -0
  292. package/@types/services/calendar/calendarWeeklyService.d.ts +28 -0
  293. package/@types/services/calendar/index.d.ts +8 -0
  294. package/@types/services/calendar/useCalendarDateFormatters.d.ts +6 -0
  295. package/@types/services/calendar/useCalendarEventHandlers.d.ts +19 -0
  296. package/@types/services/calendar/useCalendarWeeklyAllDayEvents.d.ts +20 -0
  297. package/@types/services/calendar/useCalendarWeeklyEventPositioning.d.ts +23 -0
  298. package/@types/services/colorService.d.ts +19 -0
  299. package/@types/services/columnService.d.ts +8 -0
  300. package/@types/services/componentDefaultsService.d.ts +1 -0
  301. package/@types/services/componentThemeService.d.ts +6 -0
  302. package/@types/services/core/activatorService.d.ts +16 -0
  303. package/@types/services/core/clickOutsideService.d.ts +9 -0
  304. package/@types/services/core/contentService.d.ts +13 -0
  305. package/@types/services/core/expandableItemCoreService.d.ts +4 -0
  306. package/@types/services/core/groupCoreItemService.d.ts +11 -0
  307. package/@types/services/core/groupCoreService.d.ts +16 -0
  308. package/@types/services/core/index.d.ts +9 -0
  309. package/@types/services/core/layoutCoreService.d.ts +21 -0
  310. package/@types/services/core/locationService.d.ts +11 -0
  311. package/@types/services/core/tableCellCommonService.d.ts +8 -0
  312. package/@types/services/datePicker/datePickerInputService.d.ts +9 -0
  313. package/@types/services/datePicker/datePickerItemCoreService.d.ts +30 -0
  314. package/@types/services/datePicker/datePickerItemDateService.d.ts +18 -0
  315. package/@types/services/datePicker/datePickerItemMonthService.d.ts +17 -0
  316. package/@types/services/datePicker/datePickerItemSwitchService.d.ts +11 -0
  317. package/@types/services/datePicker/datePickerItemTitleService.d.ts +8 -0
  318. package/@types/services/datePicker/datePickerItemYearService.d.ts +17 -0
  319. package/@types/services/datePicker/datePickerService.d.ts +7 -0
  320. package/@types/services/datePicker/index.d.ts +7 -0
  321. package/@types/services/dialogService.d.ts +32 -0
  322. package/@types/services/disabledService.d.ts +12 -0
  323. package/@types/services/displayService.d.ts +24 -0
  324. package/@types/services/elevationService.d.ts +6 -0
  325. package/@types/services/expandableItemService.d.ts +5 -0
  326. package/@types/services/expandableService.d.ts +5 -0
  327. package/@types/services/formInputService.d.ts +8 -0
  328. package/@types/services/groupItemService.d.ts +10 -0
  329. package/@types/services/groupService.d.ts +16 -0
  330. package/@types/services/index.d.ts +43 -0
  331. package/@types/services/layoutProviderService.d.ts +28 -0
  332. package/@types/services/layoutService.d.ts +24 -0
  333. package/@types/services/linkService.d.ts +21 -0
  334. package/@types/services/listMediaItemService.d.ts +8 -0
  335. package/@types/services/measurableStylesService.d.ts +11 -0
  336. package/@types/services/menuService.d.ts +35 -0
  337. package/@types/services/navigationDrawerResizeService.d.ts +10 -0
  338. package/@types/services/navigationDrawerService.d.ts +6 -0
  339. package/@types/services/positionService.d.ts +10 -0
  340. package/@types/services/resizeService.d.ts +4 -0
  341. package/@types/services/scrollService.d.ts +8 -0
  342. package/@types/services/scrollableService.d.ts +15 -0
  343. package/@types/services/singleGroupItemService.d.ts +10 -0
  344. package/@types/services/singleGroupService.d.ts +34 -0
  345. package/@types/services/sizeService.d.ts +12 -0
  346. package/@types/services/slideGroupService.d.ts +19 -0
  347. package/@types/services/table/index.d.ts +3 -0
  348. package/@types/services/table/tableBodyCellService.d.ts +9 -0
  349. package/@types/services/table/tableHeadCellService.d.ts +8 -0
  350. package/@types/services/table/tableService.d.ts +179 -0
  351. package/@types/services/tagService.d.ts +9 -0
  352. package/@types/services/textColorService.d.ts +15 -0
  353. package/@types/services/themeService.d.ts +5 -0
  354. package/@types/services/toolbarService.d.ts +7 -0
  355. package/@types/services/touchService.d.ts +2 -0
  356. package/@types/store/index.d.ts +5 -0
  357. package/@types/types/app.d.ts +36 -0
  358. package/@types/types/autocomplete.d.ts +7 -0
  359. package/@types/types/breadcrumbs.d.ts +8 -0
  360. package/@types/types/button.d.ts +1 -0
  361. package/@types/types/calendar.d.ts +61 -0
  362. package/@types/types/core/color.d.ts +2 -0
  363. package/@types/types/core/emit.d.ts +1 -0
  364. package/@types/types/core/form.d.ts +2 -0
  365. package/@types/types/core/group.d.ts +1 -0
  366. package/@types/types/core/index.d.ts +4 -0
  367. package/@types/types/datePicker.d.ts +12 -0
  368. package/@types/types/display.d.ts +9 -0
  369. package/@types/types/emits.d.ts +17 -0
  370. package/@types/types/form.d.ts +9 -0
  371. package/@types/types/grids.d.ts +2 -0
  372. package/@types/types/html.d.ts +1 -0
  373. package/@types/types/icon.d.ts +1 -0
  374. package/@types/types/index.d.ts +24 -0
  375. package/@types/types/input.d.ts +3 -0
  376. package/@types/types/location.d.ts +2 -0
  377. package/@types/types/materialDesignIcon.d.ts +2 -0
  378. package/@types/types/menu.d.ts +9 -0
  379. package/@types/types/resize.d.ts +12 -0
  380. package/@types/types/scroll.d.ts +26 -0
  381. package/@types/types/select.d.ts +6 -0
  382. package/@types/types/size.d.ts +2 -0
  383. package/@types/types/table.d.ts +84 -0
  384. package/@types/types/tag.d.ts +1 -0
  385. package/@types/types/toolbar.d.ts +2 -0
  386. package/@types/types/touch.d.ts +28 -0
  387. package/@types/validators/index.d.ts +1 -0
  388. package/@types/validators/numeric.d.ts +1 -0
  389. package/@types/vendors/dayjs.d.ts +2 -0
  390. package/@types/vendors/merge.d.ts +2 -0
  391. package/@types/vite.config.d.ts +2 -0
  392. package/@types/vitest.config.d.ts +2 -0
  393. package/README.md +189 -2
  394. package/dist/base.css +7282 -0
  395. package/dist/base.css.map +1 -0
  396. package/dist/s-ui.css +2 -0
  397. package/dist/s-ui.js +8976 -0
  398. package/dist/s-ui.umd.cjs +1 -0
  399. package/dist/styles/_helpers.scss +9 -0
  400. package/dist/styles/components/appBar/_variables.scss +4 -0
  401. package/dist/styles/components/appBar/index.scss +1 -0
  402. package/dist/styles/components/button/_variables.scss +51 -0
  403. package/dist/styles/components/button/index.scss +2 -0
  404. package/dist/styles/components/button/mixins.scss +60 -0
  405. package/dist/styles/components/cards/index.scss +1 -0
  406. package/dist/styles/components/cards/variables.scss +5 -0
  407. package/dist/styles/components/icon/_variables.scss +14 -0
  408. package/dist/styles/components/icon/index.scss +1 -0
  409. package/dist/styles/components/index.scss +10 -0
  410. package/dist/styles/components/layout/_mixins.scss +7 -0
  411. package/dist/styles/components/layout/_variables.scss +6 -0
  412. package/dist/styles/components/layout/index.scss +2 -0
  413. package/dist/styles/components/list/_mixins.scss +53 -0
  414. package/dist/styles/components/list/index.scss +1 -0
  415. package/dist/styles/components/menu/_mixins.scss +11 -0
  416. package/dist/styles/components/menu/index.scss +1 -0
  417. package/dist/styles/components/table/_mixins.scss +51 -0
  418. package/dist/styles/components/table/index.scss +1 -0
  419. package/dist/styles/components/toggleButton/_variables.scss +4 -0
  420. package/dist/styles/components/toggleButton/index.scss +1 -0
  421. package/dist/styles/components/window/_variables.scss +2 -0
  422. package/dist/styles/components/window/index.scss +1 -0
  423. package/dist/styles/generic/_common.scss +95 -0
  424. package/dist/styles/generic/_reset.scss +357 -0
  425. package/dist/styles/generic/_transitions.scss +83 -0
  426. package/dist/styles/generic/index.scss +3 -0
  427. package/dist/styles/index.scss +6 -0
  428. package/dist/styles/lib/_functions.scss +86 -0
  429. package/dist/styles/lib/index.scss +1 -0
  430. package/dist/styles/mixins/_app.scss +13 -0
  431. package/dist/styles/mixins/_border.scss +104 -0
  432. package/dist/styles/mixins/_dark.scss +31 -0
  433. package/dist/styles/mixins/_display.scss +9 -0
  434. package/dist/styles/mixins/_elevation.scss +15 -0
  435. package/dist/styles/mixins/_grids.scss +66 -0
  436. package/dist/styles/mixins/_media.scss +14 -0
  437. package/dist/styles/mixins/_text.scss +44 -0
  438. package/dist/styles/mixins/_utilities.scss +68 -0
  439. package/dist/styles/mixins/index.scss +10 -0
  440. package/dist/styles/modules/breakpoints.module.scss +10 -0
  441. package/dist/styles/tools/_breakpoint.scss +20 -0
  442. package/dist/styles/tools/_color.scss +35 -0
  443. package/dist/styles/tools/index.scss +2 -0
  444. package/dist/styles/variables/_border.scss +19 -0
  445. package/dist/styles/variables/_colors.scss +34 -0
  446. package/dist/styles/variables/_elevations.scss +98 -0
  447. package/dist/styles/variables/_font.scss +8 -0
  448. package/dist/styles/variables/_grid.scss +36 -0
  449. package/dist/styles/variables/_headings.scss +100 -0
  450. package/dist/styles/variables/_spacers.scss +17 -0
  451. package/dist/styles/variables/_transitions.scss +16 -0
  452. package/dist/styles/variables/_utilities.scss +360 -0
  453. package/dist/styles/variables/index.scss +9 -0
  454. package/dist/sui-api.json +10018 -0
  455. package/package.json +82 -4
  456. package/sui-plugin/.claude-plugin/plugin.json +10 -0
  457. package/sui-plugin/README.md +96 -0
  458. package/sui-plugin/skills/sui-component/SKILL.md +135 -0
  459. package/sui-plugin/skills/sui-component/references/alert.md +69 -0
  460. package/sui-plugin/skills/sui-component/references/autocomplete.md +167 -0
  461. package/sui-plugin/skills/sui-component/references/badge.md +106 -0
  462. package/sui-plugin/skills/sui-component/references/breadcrumbs.md +80 -0
  463. package/sui-plugin/skills/sui-component/references/button.md +113 -0
  464. package/sui-plugin/skills/sui-component/references/calendar.md +150 -0
  465. package/sui-plugin/skills/sui-component/references/cards.md +214 -0
  466. package/sui-plugin/skills/sui-component/references/carousel.md +178 -0
  467. package/sui-plugin/skills/sui-component/references/chip.md +92 -0
  468. package/sui-plugin/skills/sui-component/references/date-picker.md +226 -0
  469. package/sui-plugin/skills/sui-component/references/dialog.md +120 -0
  470. package/sui-plugin/skills/sui-component/references/divider.md +61 -0
  471. package/sui-plugin/skills/sui-component/references/droppable.md +88 -0
  472. package/sui-plugin/skills/sui-component/references/expansion-panels.md +185 -0
  473. package/sui-plugin/skills/sui-component/references/form.md +575 -0
  474. package/sui-plugin/skills/sui-component/references/icon.md +80 -0
  475. package/sui-plugin/skills/sui-component/references/image.md +77 -0
  476. package/sui-plugin/skills/sui-component/references/layout.md +612 -0
  477. package/sui-plugin/skills/sui-component/references/list.md +321 -0
  478. package/sui-plugin/skills/sui-component/references/menu.md +107 -0
  479. package/sui-plugin/skills/sui-component/references/overlay.md +67 -0
  480. package/sui-plugin/skills/sui-component/references/progress.md +126 -0
  481. package/sui-plugin/skills/sui-component/references/sheet.md +81 -0
  482. package/sui-plugin/skills/sui-component/references/slide-group.md +160 -0
  483. package/sui-plugin/skills/sui-component/references/snackbar.md +88 -0
  484. package/sui-plugin/skills/sui-component/references/split-view.md +98 -0
  485. package/sui-plugin/skills/sui-component/references/stepper.md +127 -0
  486. package/sui-plugin/skills/sui-component/references/table.md +213 -0
  487. package/sui-plugin/skills/sui-component/references/tabs.md +133 -0
  488. package/sui-plugin/skills/sui-component/references/toggle-button-group.md +155 -0
  489. package/sui-plugin/skills/sui-component/references/toolbar.md +160 -0
  490. package/sui-plugin/skills/sui-component/references/tooltip.md +102 -0
  491. package/sui-plugin/skills/sui-component/references/window.md +130 -0
  492. package/sui-plugin/skills/sui-form/SKILL.md +227 -0
  493. package/sui-plugin/skills/sui-getting-started/SKILL.md +365 -0
  494. package/sui-plugin/skills/sui-layout/SKILL.md +111 -0
  495. package/sui-plugin/skills/sui-utilities/SKILL.md +40 -0
  496. package/sui-plugin/skills/sui-utilities/docs/classes.md +487 -0
  497. package/sui-plugin/skills/sui-utilities/docs/directives.md +200 -0
  498. package/sui-plugin/skills/sui-utilities/docs/helpers.md +583 -0
@@ -0,0 +1,213 @@
1
+ # STable
2
+
3
+ **Import:** `import { STable } from '@khsura/sui'`
4
+
5
+ Data table with client-side sorting, selection and expansion state, grouping (optionally foldable), sticky header and columns, row header/footer rows, and optional pagination. `STableHeadCell` and `STableBodyCell` are also exported, but they are internal building blocks. `STablePagination` is **not** exported.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsTable.d.ts`. The `TableHeader`, `TableItemClass`, and `TableSortOrder` types are exported from `@khsura/sui`.
8
+
9
+ <!-- generated:api:start STable -->
10
+ <!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
11
+
12
+ **STable props**
13
+
14
+ | Prop | Type | Default | Required | Values |
15
+ | --- | --- | --- | --- | --- |
16
+ | `dense` | `boolean` | `false` | no | — |
17
+ | `expanded` | `T[]` | — | no | — |
18
+ | `foldable` | `boolean` | `false` | no | — |
19
+ | `folded` | `boolean \| string[]` | `[]` | no | — |
20
+ | `groupBy` | `string \| string[]` | — | no | — |
21
+ | `headers` | `TableHeader<string>[]` | `[]` | yes | — |
22
+ | `hideHeader` | `boolean` | `false` | no | — |
23
+ | `hidePagination` | `boolean` | `false` | no | — |
24
+ | `hideTopBottomBorders` | `boolean` | `false` | no | — |
25
+ | `hideVerticalBorders` | `boolean` | `false` | no | — |
26
+ | `itemClass` | `TableItemClass<T, string>` | — | no | — |
27
+ | `itemFooter` | `string` | `""` | no | — |
28
+ | `itemFooterClass` | `TableItemClass<T, string>` | — | no | — |
29
+ | `itemFooterStyle` | `TableItemStyle<T, string>` | — | no | — |
30
+ | `itemHeader` | `string` | `""` | no | — |
31
+ | `itemHeaderClass` | `TableItemClass<T, string>` | — | no | — |
32
+ | `itemHeaderStyle` | `TableItemStyle<T, string>` | — | no | — |
33
+ | `itemKey` | `string` | — | no | — |
34
+ | `itemRowClass` | `TableRowClass<T>` | — | no | — |
35
+ | `itemStyle` | `TableItemStyle<T, string>` | — | no | — |
36
+ | `items` | `T[]` | `[]` | yes | — |
37
+ | `itemsPerPage` | `number` | — | no | — |
38
+ | `itemsPerPageLabel` | `string` | — | no | — |
39
+ | `loading` | `boolean` | — | no | — |
40
+ | `multiSort` | `boolean` | `false` | no | — |
41
+ | `noDataText` | `string` | — | no | — |
42
+ | `outlined` | `boolean` | `false` | no | — |
43
+ | `rounded` | `boolean` | — | no | — |
44
+ | `selected` | `T[]` | — | no | — |
45
+ | `shadowExpandedContent` | `boolean` | `false` | no | — |
46
+ | `singleExpand` | `boolean` | — | no | — |
47
+ | `singleSelect` | `boolean` | — | no | — |
48
+ | `stickyHeader` | `boolean` | `false` | no | — |
49
+ | `stickyLeftColumnsOffset` | `number` | — | no | — |
50
+ | `stickyLeftColumnsSize` | `number` | `0` | no | — |
51
+ | `stickyLeftColumnsStart` | `number` | `0` | no | — |
52
+ | `stickyRightColumn` | `boolean` | — | no | — |
53
+ | `tile` | `boolean` | — | no | — |
54
+ | `totalItems` | `number` | — | no | — |
55
+ | `underlined` | `boolean` | — | no | — |
56
+
57
+ **STable slots**
58
+
59
+ | Slot | Slot props | Description |
60
+ | --- | --- | --- |
61
+ | `expanded` | `{ item: T; }` | Content of an expanded row. |
62
+ | `group` | `TableGroupSlotProps<T>` | Group row content, rendered when `groupBy` is set. |
63
+ | `header.<column>` (pattern `^header\..+$`) | `TableHeaderSlotProps` | Header cell of one column; the key is `header.` followed by the column's `value`. |
64
+ | `item.<column>` (pattern `^item\..+$`) | `TableItemSlotProps<T>` | Body cell of one column; the key is `item.` followed by the column's `value`. |
65
+ | `itemFooter` | `TableItemFooterSlotProps<T>` | Full-width row below an item, rendered when `itemFooter` is set and the item has that key. |
66
+ | `itemHeader` | `TableItemHeaderSlotProps<T>` | Full-width row above an item, rendered when `itemHeader` is set and the item has that key. |
67
+ | `itemsPerPageLabel` | `any` | Label of the items-per-page selector in the pagination. |
68
+ | `noData` | `any` | Shown instead of the rows when `items` is empty and not loading. |
69
+
70
+ **STable events**
71
+
72
+ | Event | Payload |
73
+ | --- | --- |
74
+ | `click:row` | `[value: { item: T; expand: () => void; isExpanded: boolean; }]` |
75
+ | `update:expanded` | `[value: T[]]` |
76
+ | `update:folded` | `[value: boolean \| string[]]` |
77
+ | `update:itemsPerPage` | `[value: number \| undefined]` |
78
+ | `update:options` | `[{ pageIndex: number; itemsPerPage: number; sortBy: { key: string; order: TableSortOrder; }[]; }]` |
79
+ | `update:selected` | `[value: T[]]` |
80
+
81
+ <!-- generated:api:end STable -->
82
+
83
+ **STable notes**
84
+
85
+ - `headers`: Column definitions (see below)
86
+ - `items`: Row objects
87
+ - `itemKey`: Field used to match **expanded** rows (default: first header's `value`)
88
+ - `dense`: Compact cells
89
+ - `loading`: Indeterminate progress bar. Hides the no-data row
90
+ - `outlined` / `underlined`: Border styles
91
+ - `rounded` / `tile`: Declared, but **no effect** (the table never reads them)
92
+ - `hideHeader`: Hide `<thead>`
93
+ - `hideVerticalBorders`: Remove column borders
94
+ - `hideTopBottomBorders`: Remove outer top/bottom borders
95
+ - `hidePagination`: Hides the pager only when `itemsPerPage` is unset or greater than the total
96
+ - `stickyHeader`: Sticky header row (give the table a height limit)
97
+ - `multiSort`: Sort by several columns
98
+ - `groupBy`: Group rows by item field(s). Group name = values joined with a space
99
+ - `foldable`: Clicking a group row collapses or expands it
100
+ - `selected`: Selected rows (`v-model:selected`)
101
+ - `singleSelect`: At most one selected row
102
+ - `expanded`: Expanded rows (`v-model:expanded`)
103
+ - `singleExpand`: At most one expanded row
104
+ - `shadowExpandedContent`: Inner shadow on expanded content
105
+ - `totalItems`: Server-side total. When it is greater than `items.length`, items are **not** sliced per page
106
+ - `itemsPerPageLabel`: Pager label text (default: `'Items per page: '`)
107
+ - `noDataText`: Empty-state text (`#noData` slot overrides it) (default: i18n `table.noData` → `'No data'`)
108
+ - `itemClass` / `itemStyle`: Per-cell class/style (value or `({ item, cellKey, cellType }) => …`)
109
+ - `itemRowClass`: `<tr>` class (value or `({ item, cellType }) => …`)
110
+ - `itemHeader` / `itemFooter`: Item field. When it is truthy on a row, a full-width row is rendered above/below that row (default: `''`)
111
+ - `itemHeaderClass` / `itemHeaderStyle` / `itemFooterClass` / `itemFooterStyle`: Styling for those rows
112
+ - `stickyLeftColumnsStart`: Index of the first left-sticky column
113
+ - `stickyLeftColumnsSize`: Number of left-sticky columns (sticking activates on horizontal scroll)
114
+ - `stickyLeftColumnsOffset`: Extra columns counted before sticking activates
115
+ - `stickyRightColumn`: Stick the last column to the right
116
+ - `click:row` (event): A body row was clicked. Rows do **not** expand on their own: call `expand()`
117
+ - `update:options` (event): Emitted when the page or page size changes (not when the sort changes)
118
+ - `update:selected` / `update:expanded` (event): Model updates
119
+ - `item.<value>` (slot): Body cell
120
+ - `header.<value>` (slot): Header cell content
121
+ - `group` (slot): Group row content (default: the group name)
122
+ - `itemHeader` / `itemFooter` (slot): Full-width rows from `itemHeader`/`itemFooter`
123
+ - `expanded` (slot): Content of an expanded row
124
+ - `noData` (slot): Empty state
125
+ - `itemsPerPageLabel` (slot): Pager label
126
+
127
+ ### TableHeader
128
+
129
+ ```ts
130
+ interface TableHeader {
131
+ text: string // heading text
132
+ value: string // item field; also the slot suffix: #item.<value>, #header.<value>
133
+ align?: 'start' | 'center' | 'end'
134
+ sortable?: boolean // sort button shown ONLY when true
135
+ sort?: (a, b, order?: TableSortOrder) => number
136
+ width?: string | number
137
+ textWrap?: boolean
138
+ noGutters?: boolean // header cell
139
+ cellNoGutters?: boolean // body cells
140
+ class?: string | string[] | Record<string, boolean>
141
+ cellClass?: TableItemClass
142
+ cellStyle?: TableItemStyle
143
+ scope?: 'colgroup' | 'col' // two-row grouped headers
144
+ colspan?: number
145
+ rowspan?: number
146
+ groupable?: boolean
147
+ }
148
+ ```
149
+
150
+ ## Models
151
+
152
+ - `v-model:selected`: `T[]`
153
+ - `v-model:expanded`: `T[]`
154
+ - `v-model:items-per-page`: `number`. **The pager is rendered only when this is set.** Options are 10/25/50/100 plus your value.
155
+ - `v-model:folded`: `boolean | string[]`, the collapsed group names (`true` = all collapsed). Default `[]`. Works without binding.
156
+
157
+ ## Usage
158
+
159
+ ```vue
160
+ <script setup lang="ts">
161
+ import type { TableHeader } from '@khsura/sui'
162
+
163
+ const headers: TableHeader[] = [
164
+ { text: 'Select', value: 'select' },
165
+ { text: 'Name', value: 'name', sortable: true },
166
+ { text: 'Role', value: 'role' },
167
+ { text: '', value: 'actions', align: 'end' },
168
+ ]
169
+ const items = ref([
170
+ { id: 1, name: 'Alice', role: 'Admin' },
171
+ { id: 2, name: 'Bob', role: 'User' },
172
+ ])
173
+ const selected = ref([])
174
+ const expanded = ref([])
175
+ const perPage = ref(10)
176
+ </script>
177
+
178
+ <template>
179
+ <STable
180
+ :headers="headers" :items="items" item-key="id"
181
+ v-model:selected="selected" v-model:expanded="expanded" v-model:items-per-page="perPage"
182
+ @click:row="({ expand }) => expand()"
183
+ >
184
+ <template #item.select="{ isSelected, select }">
185
+ <SCheckbox :model-value="isSelected" @update:model-value="select()" />
186
+ </template>
187
+ <template #item.actions="{ item }">
188
+ <SButton variant="icon" @click.stop="edit(item)"><SIcon icon="mdi-pencil" /></SButton>
189
+ </template>
190
+ <template #expanded="{ item }">
191
+ <div class="s_pa__4">Details for {{ item.name }}</div>
192
+ </template>
193
+ </STable>
194
+
195
+ <!-- Foldable groups, all collapsed initially -->
196
+ <STable :headers="headers" :items="items" group-by="role" foldable v-model:folded="folded">
197
+ <template #group="{ group, items, isFolded }">{{ group }} ({{ items.length }})</template>
198
+ </STable>
199
+ </template>
200
+ ```
201
+
202
+ ## Gotchas
203
+
204
+ | ❌ | ✅ |
205
+ |----|----|
206
+ | `{ key: 'name', title: 'Name' }` | `{ text: 'Name', value: 'name' }`. Using `key` throws a `TypeError` (`value` is undefined) |
207
+ | `#item.name` slot with a header whose `value` is not `'name'` | The slot suffix is the header's `value` |
208
+ | Expecting a built-in checkbox column with `v-model:selected` | No select column exists. Render one with `select` / `isSelected` from the slot scope |
209
+ | Expecting a column to be sortable by default | Set `sortable: true` per header |
210
+ | Expecting a pager by default | Bind `v-model:items-per-page` |
211
+ | Waiting for `update:options` to fetch on sort change | It fires only for page/page-size changes. Sorting is always client-side |
212
+ | Rebuilding item objects and expecting `selected` to persist | Selection matches by **object identity** (`itemKey` applies only to expansion) |
213
+ | Buttons inside a row also trigger `click:row` | Use `@click.stop` |
@@ -0,0 +1,133 @@
1
+ # STabs
2
+
3
+ **Import:** `import { STabs, STab } from '@khsura/sui'`
4
+
5
+ Single-select tab strip, built on the toggle-button group. It renders only the tab buttons. You render the panels yourself, usually with `v-if` / `v-show` on the model. Or pair it with [SWindow](./window.md) for sliding panels.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsTabs.d.ts`, `propsTab.d.ts`
8
+
9
+ ---
10
+
11
+ ## STabs
12
+
13
+ <!-- generated:api:start STabs -->
14
+ <!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
15
+
16
+ **STabs props**
17
+
18
+ | Prop | Type | Default | Required | Values |
19
+ | --- | --- | --- | --- | --- |
20
+ | `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
21
+ | `bordered` | `boolean` | — | no | — |
22
+ | `dense` | `boolean` | — | no | — |
23
+ | `modelValue` | `string \| number` | — | yes | — |
24
+ | `outlined` | `boolean \| null` | — | no | — |
25
+ | `selectedTabColor` | `string` | `"primary"` | no | — |
26
+ | `shrink` | `boolean` | — | no | — |
27
+ | `underlined` | `boolean \| null` | — | no | — |
28
+
29
+ **STabs slots**
30
+
31
+ | Slot | Slot props |
32
+ | --- | --- |
33
+ | `default` | `{}` |
34
+
35
+ **STabs events**
36
+
37
+ | Event | Payload |
38
+ | --- | --- |
39
+ | `update:modelValue` | `[value: string \| number]` |
40
+
41
+ <!-- generated:api:end STabs -->
42
+
43
+ **STabs notes**
44
+
45
+ - `modelValue`: Active tab's `tab` value (use `v-model`) (default: **required**)
46
+ - `dense`: Compact tab height
47
+ - `bordered`: Bordered strip
48
+ - `selectedTabColor`: Color of the active tab button
49
+ - `shrink`: Tabs size to their content instead of stretching
50
+ - `outlined`: Outlined border on the strip
51
+ - `underlined`: Bottom-border style on the strip (not an active-tab indicator)
52
+ - `borderRadius`: Strip border radius
53
+ - `default` (slot): `STab` components
54
+ - `update:modelValue` (event): Active tab changed
55
+
56
+ Always exactly one tab active (mandatory, single-select).
57
+
58
+ ---
59
+
60
+ ## STab
61
+
62
+ <!-- generated:api:start STab -->
63
+ <!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
64
+
65
+ **STab props**
66
+
67
+ | Prop | Type | Default | Required | Values |
68
+ | --- | --- | --- | --- | --- |
69
+ | `alignSelf` | `"center" \| "auto" \| "start" \| "normal" \| "end" \| "self-start" \| "self-end" \| "flex-start" \| "flex-end" \| "baseline" \| "first baseline" \| "last baseline" \| "stretch" \| "safe center" \| "unsafe center" \| "inherit" \| "initial" \| null` | — | no | `auto`, `baseline`, `center`, `end`, `first baseline`, `flex-end`, `flex-start`, `inherit`, `initial`, `last baseline`, `normal`, `safe center`, `self-end`, `self-start`, `start`, `stretch`, `unsafe center` |
70
+ | `cols` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
71
+ | `contentClass` | `string \| string[] \| Record<string, boolean>` | — | no | — |
72
+ | `contentStyle` | `StyleValue` | — | no | — |
73
+ | `disabled` | `boolean` | — | no | — |
74
+ | `lg` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
75
+ | `md` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
76
+ | `order` | `number \| null` | — | no | — |
77
+ | `sm` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
78
+ | `tab` | `string \| number` | — | yes | — |
79
+
80
+ **STab slots**
81
+
82
+ | Slot | Slot props |
83
+ | --- | --- |
84
+ | `default` | `{}` |
85
+
86
+ **STab events**
87
+
88
+ None.
89
+
90
+ <!-- generated:api:end STab -->
91
+
92
+ **STab notes**
93
+
94
+ - `tab`: Identifier matched against `STabs` model (default: **required**)
95
+ - `disabled`: Disable this tab
96
+ - `cols` / `sm` / `md` / `lg`: Grid column width per breakpoint (no `xl`)
97
+ - `order`: Flex order
98
+ - `alignSelf`: Flex alignment
99
+ - `default` (slot): Tab label
100
+
101
+ ---
102
+
103
+ ## Usage
104
+
105
+ ```vue
106
+ <script setup lang="ts">
107
+ import { ref } from 'vue'
108
+ import { STabs, STab } from '@khsura/sui'
109
+
110
+ const active = ref<'overview' | 'api'>('overview')
111
+ </script>
112
+
113
+ <template>
114
+ <STabs v-model="active" bordered dense selected-tab-color="secondary">
115
+ <STab tab="overview">Overview</STab>
116
+ <STab tab="api">API</STab>
117
+ <STab tab="examples" disabled>Examples</STab>
118
+ </STabs>
119
+
120
+ <!-- v-show keeps panel state; v-if unmounts hidden panels -->
121
+ <section v-show="active === 'overview'">Overview content</section>
122
+ <section v-show="active === 'api'">API content</section>
123
+ </template>
124
+ ```
125
+
126
+ ## Gotchas
127
+
128
+ | ❌ | ✅ |
129
+ |----|----|
130
+ | `<STab value="a">` / `<STab :index="0">` | `<STab tab="a">`. The identifier prop is `tab` |
131
+ | `<STabs>` without `v-model` | `modelValue` is required |
132
+ | Panels that slide between tabs | Bind the same model to [SWindow](./window.md) with `SWindowItem value` = the `STab tab` |
133
+ | `underlined` to get an active underline | It styles the strip's border. Use `selectedTabColor` for the active state |
@@ -0,0 +1,155 @@
1
+ # SToggleButtonGroup / SToggleButton
2
+
3
+ **Import:** `import { SToggleButtonGroup, SToggleButton } from '@khsura/sui'`
4
+
5
+ Row of toggle buttons with single or multiple selection.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsToggleButtonGroup.d.ts`, `propsToggleButton.d.ts`
8
+
9
+ ---
10
+
11
+ ## SToggleButtonGroup
12
+
13
+ <!-- generated:api:start SToggleButtonGroup -->
14
+ <!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
15
+
16
+ **SToggleButtonGroup props**
17
+
18
+ | Prop | Type | Default | Required | Values |
19
+ | --- | --- | --- | --- | --- |
20
+ | `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
21
+ | `bordered` | `boolean` | — | no | — |
22
+ | `dense` | `boolean` | — | no | — |
23
+ | `mandatory` | `boolean` | — | no | — |
24
+ | `modelValue` | `(GroupItemValue[] & T[]) \| null` | `[]` | no | — |
25
+ | `multiple` | `boolean` | — | no | — |
26
+ | `nowrap` | `boolean` | — | no | — |
27
+ | `outlined` | `boolean \| null` | — | no | — |
28
+ | `selectedColor` | `string` | `"primary"` | no | — |
29
+ | `shrink` | `boolean` | — | no | — |
30
+ | `underlined` | `boolean \| null` | — | no | — |
31
+ | `variant` | `"underlined" \| "inset" \| null` | — | no | `inset`, `underlined` |
32
+
33
+ **SToggleButtonGroup slots**
34
+
35
+ | Slot | Slot props |
36
+ | --- | --- |
37
+ | `default` | `{}` |
38
+
39
+ **SToggleButtonGroup events**
40
+
41
+ | Event | Payload |
42
+ | --- | --- |
43
+ | `update:modelValue` | `[value: T[] \| null]` |
44
+
45
+ <!-- generated:api:end SToggleButtonGroup -->
46
+
47
+ **SToggleButtonGroup notes**
48
+
49
+ - `modelValue` (`v-model`): Selected button identifiers — **always an array**, even for single selection
50
+ - `multiple`: Allow several selected buttons
51
+ - `mandatory`: Keep one selected (auto-selects the first button when empty)
52
+ - `selectedColor`: Color of the selected button
53
+ - `variant`: `underlined` = underline the selected button; `inset` = segmented/pill look
54
+ - `dense`: Compact (small-size) buttons
55
+ - `bordered`: Border around the group and between buttons (ignored with `inset`)
56
+ - `shrink`: Buttons size to content instead of stretching
57
+ - `outlined`: Outlined group border
58
+ - `underlined`: Underlined group border
59
+ - `borderRadius`: Group corner radius
60
+ - `default` (slot): `SToggleButton` components
61
+ - `update:modelValue` (event): Selection changed
62
+
63
+ `GroupItemValue` = `string | number | boolean | symbol`. (`nowrap` is typed but has no effect.)
64
+
65
+ ---
66
+
67
+ ## SToggleButton
68
+
69
+ Must be inside `SToggleButtonGroup` (throws otherwise).
70
+
71
+ <!-- generated:api:start SToggleButton -->
72
+ <!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
73
+
74
+ **SToggleButton props**
75
+
76
+ | Prop | Type | Default | Required | Values |
77
+ | --- | --- | --- | --- | --- |
78
+ | `activeClass` | `string \| null` | — | no | — |
79
+ | `alignSelf` | `"center" \| "auto" \| "start" \| "normal" \| "end" \| "self-start" \| "self-end" \| "flex-start" \| "flex-end" \| "baseline" \| "first baseline" \| "last baseline" \| "stretch" \| "safe center" \| "unsafe center" \| "inherit" \| "initial" \| null` | — | no | `auto`, `baseline`, `center`, `end`, `first baseline`, `flex-end`, `flex-start`, `inherit`, `initial`, `last baseline`, `normal`, `safe center`, `self-end`, `self-start`, `start`, `stretch`, `unsafe center` |
80
+ | `cols` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
81
+ | `contentClass` | `string \| string[] \| Record<string, boolean>` | — | no | — |
82
+ | `contentStyle` | `StyleValue` | — | no | — |
83
+ | `disabled` | `boolean` | — | no | — |
84
+ | `index` | `GroupItemValue \| null` | — | no | — |
85
+ | `lg` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
86
+ | `md` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
87
+ | `order` | `number \| null` | — | no | — |
88
+ | `sm` | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| ColumnNumber \| null` | — | no | — |
89
+
90
+ **SToggleButton slots**
91
+
92
+ | Slot | Slot props |
93
+ | --- | --- |
94
+ | `default` | `{}` |
95
+
96
+ **SToggleButton events**
97
+
98
+ None.
99
+
100
+ <!-- generated:api:end SToggleButton -->
101
+
102
+ **SToggleButton notes**
103
+
104
+ - `index`: Identifier stored in the group's `v-model`. Falls back to `:key`, then an auto id (default: vnode `key`)
105
+ - `disabled`: Disable this button
106
+ - `cols` / `sm` / `md` / `lg`: Grid column width of the button
107
+ - `order`: Flex order
108
+ - `alignSelf`: Alignment
109
+ - `default` (slot): Button content
110
+
111
+ There is **no `value` prop** — use `index` or `:key`.
112
+
113
+ ---
114
+
115
+ ## Usage
116
+
117
+ ```vue
118
+ <script setup lang="ts">
119
+ import { ref } from 'vue'
120
+
121
+ const view = ref<string[]>(['list']) // single select: still an array
122
+ const fontStyles = ref<string[]>(['bold'])
123
+ </script>
124
+
125
+ <template>
126
+ <!-- Single select -->
127
+ <SToggleButtonGroup v-model="view" mandatory>
128
+ <SToggleButton index="list"><SIcon icon="mdi-view-list" /></SToggleButton>
129
+ <SToggleButton index="grid"><SIcon icon="mdi-view-grid" /></SToggleButton>
130
+ </SToggleButtonGroup>
131
+ <!-- current view: view[0] -->
132
+
133
+ <!-- Multi-select -->
134
+ <SToggleButtonGroup v-model="fontStyles" multiple shrink>
135
+ <SToggleButton index="bold"><b>B</b></SToggleButton>
136
+ <SToggleButton index="italic"><i>I</i></SToggleButton>
137
+ <SToggleButton index="underline"><u>U</u></SToggleButton>
138
+ </SToggleButtonGroup>
139
+
140
+ <!-- From a list: :key doubles as the identifier -->
141
+ <SToggleButtonGroup v-model="align" mandatory dense bordered selected-color="secondary">
142
+ <SToggleButton v-for="a in ['left', 'center', 'right']" :key="a">
143
+ <SIcon :icon="`mdi-format-align-${a}`" />
144
+ </SToggleButton>
145
+ </SToggleButtonGroup>
146
+ </template>
147
+ ```
148
+
149
+ ## Gotchas
150
+
151
+ | ❌ | ✅ |
152
+ |----|----|
153
+ | `<SToggleButton value="list">` | `<SToggleButton index="list">` (or `:key`) |
154
+ | `const view = ref('list')` | `const view = ref(['list'])`; read `view.value[0]` |
155
+ | `variant="inset"` in a dark theme | Inset uses a fixed light background (`#eeeef0`) — text is unreadable on dark themes; use the default or `underlined` variant there |
@@ -0,0 +1,160 @@
1
+ # SToolbar
2
+
3
+ **Import:** `import { SToolbar, SToolbarTitle, SSpacer } from '@khsura/sui'`
4
+
5
+ Toolbar / app bar with an optional extension row. `SToolbarItem` is also exported but renders an empty element (see Gotchas).
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsToolbar.d.ts`, `propsToolbarTitle.d.ts`
8
+
9
+ ---
10
+
11
+ ## SToolbar
12
+
13
+ <!-- generated:api:start SToolbar -->
14
+ <!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
15
+
16
+ **SToolbar props**
17
+
18
+ | Prop | Type | Default | Required | Values |
19
+ | --- | --- | --- | --- | --- |
20
+ | `borderRadius` | `` number \| "tile" \| "rounded" \| `${number}em` \| `${number}px` \| `${number}rem` \| `${number}%` \| `${number}vh` \| `${number}vw` \| null `` | — | no | — |
21
+ | `color` | `string` | — | no | — |
22
+ | `colorThreshold` | `number` | — | no | — |
23
+ | `contentClass` | `string \| string[] \| Record<string, boolean>` | — | no | — |
24
+ | `contentStyle` | `StyleValue` | — | no | — |
25
+ | `density` | `ToolbarDensityType \| null` | — | no | `comfortable`, `compact`, `default` |
26
+ | `elevation` | `"" \| 0 \| 1 \| 2 \| 22 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 11 \| 12 \| 13 \| 14 \| 15 \| 16 \| 17 \| 18 \| 19 \| 20 \| 21 \| 23 \| 24 \| "1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| "13" \| "14" \| "15" \| "16" \| "17" \| "18" \| "19" \| "20" \| "21" \| "22" \| "23" \| "24" \| null` | — | no | — |
27
+ | `extended` | `boolean \| null` | — | no | — |
28
+ | `extensionClass` | `string \| Record<string, boolean \| undefined>` | — | no | — |
29
+ | `extensionHeight` | `string \| number` | `defaultToolbarExtensionHeight` | no | — |
30
+ | `extensionStyle` | `Record<string, string>` | — | no | — |
31
+ | `height` | `string \| number \| null` | `defaultToolbarContentHeight` | no | — |
32
+ | `outlined` | `boolean \| null` | — | no | — |
33
+ | `position` | `Position` | — | no | `absolute`, `fixed`, `relative`, `static`, `sticky` |
34
+ | `tag` | `HtmlTagName \| null` | — | no | `a`, `abbr`, `acronym`, `address`, `applet`, `area`, `article`, `aside`, `audio`, `b`, `base`, `basefont`, `bdi`, `bdo`, `big`, `blockquote`, `body`, `br`, `button`, `canvas`, `caption`, `center`, `cite`, `code`, `col`, `colgroup`, `data`, `datalist`, `dd`, `del`, `details`, `dfn`, `dialog`, `dir`, `div`, `dl`, `dt`, `em`, `embed`, `fieldset`, `figcaption`, `figure`, `font`, `footer`, `form`, `frame`, `frameset`, `h1`, `h1> to <h6`, `h2`, `h3`, `h4`, `h5`, `h6`, `head`, `header`, `hr`, `html`, `i`, `iframe`, `img`, `input`, `ins`, `kbd`, `label`, `legend`, `li`, `link`, `main`, `map`, `mark`, `meta`, `meter`, `nav`, `noframes`, `noscript`, `object`, `ol`, `optgroup`, `option`, `output`, `p`, `param`, `picture`, `pre`, `progress`, `q`, `rp`, `rt`, `ruby`, `s`, `samp`, `script`, `section`, `select`, `small`, `source`, `span`, `strike`, `strong`, `style`, `sub`, `summary`, `sup`, `svg`, `table`, `tbody`, `td`, `template`, `textarea`, `tfoot`, `th`, `thead`, `time`, `title`, `tr`, `track`, `tt`, `u`, `ul`, `var`, `video`, `wbr` |
35
+ | `theme` | `AppThemeType` | — | no | `dark`, `light` |
36
+ | `title` | `string \| null` | — | no | — |
37
+ | `underlined` | `boolean \| null` | — | no | — |
38
+
39
+ **SToolbar slots**
40
+
41
+ | Slot | Slot props |
42
+ | --- | --- |
43
+ | `append` | `{}` |
44
+ | `default` | `{}` |
45
+ | `extension` | `{}` |
46
+ | `prepend` | `{}` |
47
+
48
+ **SToolbar events**
49
+
50
+ None.
51
+
52
+ <!-- generated:api:end SToolbar -->
53
+
54
+ **SToolbar notes**
55
+
56
+ - `color`: Background color (preset or CSS). Child `SButton`s and `SToolbarTitle` adapt to it
57
+ - `colorThreshold`: Contrast threshold for the dark/light text decision
58
+ - `elevation`: Shadow depth
59
+ - `density`: Reduces the main row by 0 / 8 / 16 px and the extension by 0 / 4 / 8 px
60
+ - `height`: Main row height
61
+ - `extended`: Show the extension row
62
+ - `extensionHeight`: Extension row height
63
+ - `extensionClass`: Class for the extension row
64
+ - `extensionStyle`: Style for the extension row
65
+ - `contentClass` / `contentStyle`: Class/style for the main content row
66
+ - `position`: CSS position
67
+ - `outlined` / `underlined`: Border styles
68
+ - `borderRadius`: Border radius
69
+ - `tag`: Root HTML element (default: `'div'`)
70
+ - `default` (slot): Main row content (horizontal flex)
71
+ - `prepend` (slot): Separate **row above** the main row
72
+ - `append` (slot): Separate **row below** the main row (and below the extension)
73
+ - `extension` (slot): Extension row. Only shown with `extended`
74
+
75
+ `title` is declared but **never rendered**. Use `SToolbarTitle`.
76
+
77
+ ### Slots
78
+
79
+ The toolbar root is a column flexbox, so `prepend` / `append` are rows, **not** left/right items.
80
+
81
+ No events.
82
+
83
+ ---
84
+
85
+ ## SToolbarTitle
86
+
87
+ <!-- generated:api:start SToolbarTitle -->
88
+ <!-- Generated from sui-api.json by `yarn sync:skills` (packages/app). Do not edit by hand. -->
89
+
90
+ **SToolbarTitle props**
91
+
92
+ | Prop | Type | Default | Required | Values |
93
+ | --- | --- | --- | --- | --- |
94
+ | `color` | `string` | — | no | — |
95
+ | `colorThreshold` | `number` | — | no | — |
96
+ | `tag` | `HtmlTagName \| null` | — | no | `a`, `abbr`, `acronym`, `address`, `applet`, `area`, `article`, `aside`, `audio`, `b`, `base`, `basefont`, `bdi`, `bdo`, `big`, `blockquote`, `body`, `br`, `button`, `canvas`, `caption`, `center`, `cite`, `code`, `col`, `colgroup`, `data`, `datalist`, `dd`, `del`, `details`, `dfn`, `dialog`, `dir`, `div`, `dl`, `dt`, `em`, `embed`, `fieldset`, `figcaption`, `figure`, `font`, `footer`, `form`, `frame`, `frameset`, `h1`, `h1> to <h6`, `h2`, `h3`, `h4`, `h5`, `h6`, `head`, `header`, `hr`, `html`, `i`, `iframe`, `img`, `input`, `ins`, `kbd`, `label`, `legend`, `li`, `link`, `main`, `map`, `mark`, `meta`, `meter`, `nav`, `noframes`, `noscript`, `object`, `ol`, `optgroup`, `option`, `output`, `p`, `param`, `picture`, `pre`, `progress`, `q`, `rp`, `rt`, `ruby`, `s`, `samp`, `script`, `section`, `select`, `small`, `source`, `span`, `strike`, `strong`, `style`, `sub`, `summary`, `sup`, `svg`, `table`, `tbody`, `td`, `template`, `textarea`, `tfoot`, `th`, `thead`, `time`, `title`, `tr`, `track`, `tt`, `u`, `ul`, `var`, `video`, `wbr` |
97
+ | `text` | `string \| null` | — | no | — |
98
+ | `theme` | `AppThemeType` | — | no | `dark`, `light` |
99
+
100
+ **SToolbarTitle slots**
101
+
102
+ | Slot | Slot props |
103
+ | --- | --- |
104
+ | `default` | `{}` |
105
+ | `text` | `{}` |
106
+
107
+ **SToolbarTitle events**
108
+
109
+ None.
110
+
111
+ <!-- generated:api:end SToolbarTitle -->
112
+
113
+ **SToolbarTitle notes**
114
+
115
+ - `text`: Title text (if no slot)
116
+ - `tag`: Root element (default: `'div'`)
117
+ - `default` (slot): Title content
118
+ - `text` (slot): Alternative to the default slot
119
+
120
+ Renders nothing when it has no slot content and no `text`. Its color comes from the parent toolbar.
121
+
122
+ ---
123
+
124
+ ## Usage
125
+
126
+ ```vue
127
+ <template>
128
+ <SToolbar color="primary">
129
+ <SButton variant="icon" @click="toggleDrawer"><SIcon icon="mdi-menu" /></SButton>
130
+ <SToolbarTitle>Dashboard</SToolbarTitle>
131
+ <SSpacer />
132
+ <SButton variant="icon"><SIcon icon="mdi-account" /></SButton>
133
+ </SToolbar>
134
+
135
+ <!-- Extension row with tabs -->
136
+ <SToolbar color="primary" extended>
137
+ <SToolbarTitle text="Page title" />
138
+ <template #extension>
139
+ <STabs v-model="tab" style="width: 100%">
140
+ <STab :tab="0">Tab 1</STab>
141
+ <STab :tab="1">Tab 2</STab>
142
+ </STabs>
143
+ </template>
144
+ </SToolbar>
145
+
146
+ <SToolbar color="surface" density="compact" outlined>
147
+ <SToolbarTitle>Compact bar</SToolbarTitle>
148
+ </SToolbar>
149
+ </template>
150
+ ```
151
+
152
+ ## Gotchas
153
+
154
+ | ❌ | ✅ |
155
+ |----|----|
156
+ | `<SToolbar title="Dashboard">` | `<SToolbarTitle>Dashboard</SToolbarTitle>` |
157
+ | `#prepend` / `#append` for left/right icons | Put items in the default slot and use `<SSpacer />` to push right |
158
+ | `#extension` without `extended` | Add `extended`, or the row is not rendered |
159
+ | `<SToolbarItem><SButton/></SToolbarItem>` | `SToolbarItem` has no slot, so its children are dropped. Place items directly |
160
+ | `tag` default `'header'` assumed | Default is `div`. Pass `tag="header"` for semantics |