@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.
Files changed (497) 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 +153 -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 +39 -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 +210 -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/package.json +68 -4
  455. package/sui-plugin/.claude-plugin/plugin.json +10 -0
  456. package/sui-plugin/README.md +73 -0
  457. package/sui-plugin/skills/sui-component/SKILL.md +133 -0
  458. package/sui-plugin/skills/sui-component/references/alert.md +53 -0
  459. package/sui-plugin/skills/sui-component/references/autocomplete.md +110 -0
  460. package/sui-plugin/skills/sui-component/references/badge.md +80 -0
  461. package/sui-plugin/skills/sui-component/references/breadcrumbs.md +67 -0
  462. package/sui-plugin/skills/sui-component/references/button.md +74 -0
  463. package/sui-plugin/skills/sui-component/references/calendar.md +120 -0
  464. package/sui-plugin/skills/sui-component/references/cards.md +97 -0
  465. package/sui-plugin/skills/sui-component/references/carousel.md +113 -0
  466. package/sui-plugin/skills/sui-component/references/chip.md +68 -0
  467. package/sui-plugin/skills/sui-component/references/date-picker.md +140 -0
  468. package/sui-plugin/skills/sui-component/references/dialog.md +82 -0
  469. package/sui-plugin/skills/sui-component/references/divider.md +52 -0
  470. package/sui-plugin/skills/sui-component/references/droppable.md +68 -0
  471. package/sui-plugin/skills/sui-component/references/expansion-panels.md +108 -0
  472. package/sui-plugin/skills/sui-component/references/form.md +175 -0
  473. package/sui-plugin/skills/sui-component/references/icon.md +61 -0
  474. package/sui-plugin/skills/sui-component/references/image.md +56 -0
  475. package/sui-plugin/skills/sui-component/references/layout.md +226 -0
  476. package/sui-plugin/skills/sui-component/references/list.md +153 -0
  477. package/sui-plugin/skills/sui-component/references/menu.md +74 -0
  478. package/sui-plugin/skills/sui-component/references/overlay.md +48 -0
  479. package/sui-plugin/skills/sui-component/references/progress.md +78 -0
  480. package/sui-plugin/skills/sui-component/references/sheet.md +58 -0
  481. package/sui-plugin/skills/sui-component/references/slide-group.md +123 -0
  482. package/sui-plugin/skills/sui-component/references/snackbar.md +59 -0
  483. package/sui-plugin/skills/sui-component/references/split-view.md +59 -0
  484. package/sui-plugin/skills/sui-component/references/stepper.md +92 -0
  485. package/sui-plugin/skills/sui-component/references/table.md +151 -0
  486. package/sui-plugin/skills/sui-component/references/tabs.md +88 -0
  487. package/sui-plugin/skills/sui-component/references/toggle-button-group.md +109 -0
  488. package/sui-plugin/skills/sui-component/references/toolbar.md +101 -0
  489. package/sui-plugin/skills/sui-component/references/tooltip.md +65 -0
  490. package/sui-plugin/skills/sui-component/references/window.md +75 -0
  491. package/sui-plugin/skills/sui-form/SKILL.md +225 -0
  492. package/sui-plugin/skills/sui-getting-started/SKILL.md +374 -0
  493. package/sui-plugin/skills/sui-layout/SKILL.md +111 -0
  494. package/sui-plugin/skills/sui-utilities/SKILL.md +40 -0
  495. package/sui-plugin/skills/sui-utilities/docs/classes.md +487 -0
  496. package/sui-plugin/skills/sui-utilities/docs/directives.md +200 -0
  497. package/sui-plugin/skills/sui-utilities/docs/helpers.md +583 -0
@@ -0,0 +1,113 @@
1
+ # SCarousel
2
+
3
+ **Import:** `import { SCarousel, SCarouselItem } from '@khsura/sui'`
4
+
5
+ Image/content slider with delimiter dots, prev/next arrows, swipe and auto-play. **Auto-play is ON by default** (`cycle: true`) and the default height is `500`.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsCarousel.d.ts`, `propsCarouselItem.d.ts`
8
+
9
+ ---
10
+
11
+ ## SCarousel
12
+
13
+ ### Props
14
+
15
+ | Prop | Type | Default | Description |
16
+ |------|------|---------|-------------|
17
+ | `modelValue` | `string \| number \| boolean` | `undefined` | Active slide's `value` (use `v-model`) |
18
+ | `cycle` | `boolean` | `true` | Auto-advance through slides |
19
+ | `interval` | `number` | `6000` | Auto-advance interval in ms |
20
+ | `height` | `number \| string` | `500` | Carousel height (number = px) |
21
+ | `color` | `string` | `undefined` | Color of the active delimiter dot |
22
+ | `hideDelimiters` | `boolean` | `false` | Hide the navigation dots |
23
+ | `hideDelimiterBackground` | `boolean` | `false` | Hide the dots' background strip |
24
+ | `controlsBackgroundColor` | `string` | `'#0000004d'` | Background of the dots strip |
25
+ | `delimiterIcon` | `MaterialDesignIcon` | `'mdi-circle'` | Dot icon |
26
+ | `verticalDelimiters` | `boolean \| 'left' \| 'right'` | `undefined` | Stack dots vertically on the left/right edge |
27
+ | `hideArrows` | `boolean` | `false` | Hide prev/next arrows |
28
+ | `prevIcon` | `MaterialDesignIcon` | `'mdi-chevron-left'` | Previous arrow icon |
29
+ | `nextIcon` | `MaterialDesignIcon` | `'mdi-chevron-right'` | Next arrow icon |
30
+ | `touch` | `boolean \| TouchHandlers` | `true` | Swipe gestures |
31
+ | `noAnimation` | `boolean` | `false` | Disable the slide transition |
32
+ | `selectedClass` | `string` | `undefined` | Class for the active item |
33
+ | `tag` | `string` | `'div'` | Root HTML element |
34
+
35
+ Always looping and always one slide selected (`continuous` + `mandatory` are hard-wired). The `continuous` and `disabled` props exist in the type but have no effect on SCarousel.
36
+
37
+ ### Slots
38
+
39
+ | Slot | Description |
40
+ |------|-------------|
41
+ | `default` | `SCarouselItem` components |
42
+
43
+ No `prev`/`next` slots on SCarousel.
44
+
45
+ ### Events
46
+
47
+ | Event | Payload | Description |
48
+ |-------|---------|-------------|
49
+ | `update:modelValue` | slide `value` | Active slide changed (arrows, dots, swipe, auto-play) |
50
+
51
+ ---
52
+
53
+ ## SCarouselItem
54
+
55
+ Each item renders an `SImage`. Your default-slot content is drawn as an overlay on top of the image.
56
+
57
+ | Prop | Type | Default | Description |
58
+ |------|------|---------|-------------|
59
+ | `value` | `string \| number \| boolean` | auto id | Slide identifier matched against the carousel `v-model` |
60
+ | `src` | `string \| null` | **required** | Image URL. Pass `:src="null"` for content-only slides |
61
+ | `alt` | `string \| null` | `undefined` | Image alt text |
62
+ | `objectFit` | `'fill' \| 'contain' \| 'cover' \| 'none' \| 'scale-down'` | `undefined` | Image fit |
63
+ | `aspectRatio` | `number \| null` | `undefined` | Image aspect ratio |
64
+
65
+ | Slot | Description |
66
+ |------|-------------|
67
+ | `default` | Overlay content on top of the image |
68
+
69
+ ---
70
+
71
+ ## Usage
72
+
73
+ ```vue
74
+ <script setup lang="ts">
75
+ import { ref } from 'vue'
76
+ import { SCarousel, SCarouselItem } from '@khsura/sui'
77
+
78
+ const slide = ref(0)
79
+ const slides = [
80
+ { src: '/slide1.jpg', title: 'Slide 1' },
81
+ { src: '/slide2.jpg', title: 'Slide 2' },
82
+ ]
83
+ </script>
84
+
85
+ <template>
86
+ <!-- Auto-plays by default -->
87
+ <SCarousel v-model="slide" :height="400">
88
+ <SCarouselItem v-for="(item, i) in slides" :key="i" :value="i" :src="item.src" object-fit="cover">
89
+ <h2>{{ item.title }}</h2>
90
+ </SCarouselItem>
91
+ </SCarousel>
92
+
93
+ <!-- Static carousel, dots on the right -->
94
+ <SCarousel v-model="slide" :cycle="false" vertical-delimiters="right" hide-arrows>
95
+ <SCarouselItem v-for="(item, i) in slides" :key="i" :value="i" :src="item.src" />
96
+ </SCarousel>
97
+
98
+ <!-- Content-only slides -->
99
+ <SCarousel v-model="slide" :cycle="false" :height="200" no-animation>
100
+ <SCarouselItem v-for="n in 3" :key="n" :value="n" :src="null">Content {{ n }}</SCarouselItem>
101
+ </SCarousel>
102
+ </template>
103
+ ```
104
+
105
+ ## Gotchas
106
+
107
+ | ❌ | ✅ |
108
+ |----|----|
109
+ | `<SCarousel>` and expecting a static slider | Add `:cycle="false"`. Auto-play is on by default |
110
+ | Nesting `<SImage>` inside `SCarouselItem` | Use the item's own `src` / `object-fit` props |
111
+ | `<SCarouselItem>` without `src` | `src` is required. Use `:src="null"` for text slides |
112
+ | Relying on `:key` as the identifier | Set `:value` explicitly. The key is not forwarded to the inner item |
113
+ | `<template #prev>` on SCarousel | Not supported. Only `prevIcon` / `nextIcon` |
@@ -0,0 +1,68 @@
1
+ # SChip
2
+
3
+ **Import:** `import { SChip } from '@khsura/sui'`
4
+
5
+ Small pill for tags, filters or selections. Supports closable, clickable (`link`) and outlined styles.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsChip.d.ts`
8
+
9
+ ## Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ |------|------|---------|-------------|
13
+ | `color` | `string` | `undefined` | Preset name or CSS color |
14
+ | `colorThreshold` | `number` | `undefined` | Luminance threshold for automatic light/dark text |
15
+ | `size` | `'mini' \| 'small' \| 'default' \| 'large' \| 'extra'` | `undefined` | Preset size |
16
+ | `label` | `boolean` | `false` | Square "label" shape instead of a pill |
17
+ | `closable` | `boolean` | `false` | Show a close icon (`mdi-close`) |
18
+ | `link` | `boolean` | `false` | Clickable styling; required for `click` to be emitted |
19
+ | `disabled` | `boolean` | `false` | Disabled styling |
20
+ | `outlined` | `boolean` | `false` | Border style, text-colored |
21
+ | `underlined` | `boolean` | `false` | Underlined style |
22
+ | `borderRadius` | `'tile' \| 'rounded' \| number \| string` | `undefined` | Custom radius |
23
+
24
+ ## Events
25
+
26
+ | Event | Payload | Description |
27
+ |-------|---------|-------------|
28
+ | `close` | — | Close icon clicked (or `on.close()` called from the `close` slot) |
29
+ | `click` | `Event` | Chip clicked — **only emitted when `link` is set** |
30
+
31
+ ## Slots
32
+
33
+ | Slot | Scoped data | Description |
34
+ |------|-------------|-------------|
35
+ | `default` | — | Chip text |
36
+ | `close` | `{ on: { close } }` | Replaces the whole close icon, including its click handler. Only rendered when `closable` |
37
+
38
+ ## Usage
39
+
40
+ ```vue
41
+ <SChip color="primary">Primary</SChip>
42
+ <SChip outlined color="secondary">Outlined</SChip>
43
+ <SChip label color="primary">Label</SChip>
44
+ <SChip link @click="selectFilter">Filter</SChip>
45
+
46
+ <SChip v-for="tag in tags" :key="tag" closable @close="tags = tags.filter((t) => t !== tag)">
47
+ {{ tag }}
48
+ </SChip>
49
+
50
+ <!-- Custom close icon: you must wire on.close yourself -->
51
+ <SChip closable @close="remove">
52
+ Tag
53
+ <template #close="{ on }">
54
+ <SIcon icon="mdi-close-circle" @click.stop="on.close" />
55
+ </template>
56
+ </SChip>
57
+ ```
58
+
59
+ ## Gotchas
60
+
61
+ | ❌ | ✅ |
62
+ |----|----|
63
+ | `<SChip @click="fn">` without `link` | Add `link` — otherwise `click` never fires |
64
+ | `<template #close><SIcon .../></template>` | Use `#close="{ on }"` and call `on.close` — the slot replaces the built-in handler |
65
+ | `<SChip icon="..." />` | No icon prop — nest `<SIcon>` in the default slot |
66
+
67
+ - The chip root stops click propagation, so a parent's click handler will not fire when a chip is clicked.
68
+ - The default close icon is an `SIcon`; it renders nothing unless the app loads `@mdi/font`.
@@ -0,0 +1,140 @@
1
+ # SDatePicker
2
+
3
+ **Import:** `import { SDatePicker, datePickerModelFormats } from '@khsura/sui'`
4
+
5
+ Inline date, month or year picker (rendered in an `SCard`) with min/max bounds.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsDatePicker.d.ts`
8
+
9
+ ## Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ |------|------|---------|-------------|
13
+ | `type` | `'date' \| 'month' \| 'year'` | `'date'` | Picker mode and model format (typed as required — always pass it) |
14
+ | `min` | `string` | Jan 1, 5 years before `today` | Earliest selectable value (`'YYYY-MM-DD'`, any `type`) |
15
+ | `max` | `string` | Dec 31, 5 years after `today` | Latest selectable value |
16
+ | `today` | `string` | current date | Date highlighted as "today" (`'YYYY-MM-DD'`) |
17
+ | `hideTitle` | `boolean` | `false` | Hide the title area |
18
+ | `dateFormat` | `string` | `'MMM D'` | dayjs format for the date in the title |
19
+ | `monthFormat` | `string` | `'MMMM'` | dayjs format for month labels |
20
+ | `yearFormat` | `string` | `'YYYY'` | dayjs format for years (title, switch, year list), e.g. `'YYYY年'`, `'YYYY [он]'` |
21
+ | `disabled` | `boolean` | `false` | Disables the **title** buttons only (see Gotchas) |
22
+ | `readonly` | `boolean` | `false` | Makes the **title** buttons read-only only |
23
+ | `dense` | `boolean` | `false` | Compact layout |
24
+ | `color` | `string` | `undefined` | Selected-item color |
25
+ | `colorThreshold` | `number` | `undefined` | Light/dark text threshold for the selected color |
26
+ | `theme` | `AppThemeType` | `undefined` | Per-component theme |
27
+ | `width` / `height` / `min*` / `max*` sizes | `string \| number` | `undefined` | Picker size (`minWidth`, `maxHeight`, …) |
28
+
29
+ ## Model
30
+
31
+ `v-model` — `string | null`: `'YYYY-MM-DD'` (`type="date"`), `'YYYY-MM'` (`month`), `'YYYY'` (`year`). Changing `type` converts the current value.
32
+
33
+ ## Events
34
+
35
+ | Event | Payload | Description |
36
+ |-------|---------|-------------|
37
+ | `update:modelValue` | `string` | Value selected |
38
+ | `change` | — (no payload) | Emitted on selection, before the model updates — read the `v-model` ref, not the event |
39
+
40
+ ## Slots
41
+
42
+ None.
43
+
44
+ ## Format constants
45
+
46
+ ```ts
47
+ import { datePickerModelFormats } from '@khsura/sui'
48
+
49
+ datePickerModelFormats.date // 'YYYY-MM-DD'
50
+ datePickerModelFormats.month // 'YYYY-MM'
51
+ datePickerModelFormats.year // 'YYYY'
52
+ ```
53
+
54
+ ## Usage
55
+
56
+ ```vue
57
+ <script setup lang="ts">
58
+ import { ref } from 'vue'
59
+ import dayjs from 'dayjs'
60
+ import { datePickerModelFormats } from '@khsura/sui'
61
+
62
+ const selectedDate = ref(dayjs().format(datePickerModelFormats.date))
63
+ const selectedMonth = ref(dayjs().format(datePickerModelFormats.month))
64
+ const birthDate = ref<string | null>(null)
65
+ </script>
66
+
67
+ <template>
68
+ <SDatePicker v-model="selectedDate" type="date" color="primary" />
69
+ <SDatePicker v-model="selectedMonth" type="month" dense hide-title />
70
+
71
+ <!-- Range wider than ±5 years: pass min/max -->
72
+ <SDatePicker v-model="birthDate" type="date" min="1920-01-01" :max="dayjs().format('YYYY-MM-DD')" />
73
+ </template>
74
+ ```
75
+
76
+ For a popup picker use `SDatePickerInput` (below) rather than wiring `SMenu` yourself.
77
+
78
+ ---
79
+
80
+ # SDatePickerInput
81
+
82
+ **Import:** `import { SDatePickerInput } from '@khsura/sui'`
83
+
84
+ Text field (type a value or pick from a popup `SDatePicker`), with optional prev/next **carousel** buttons that step the value. Registers with a parent `SForm`.
85
+
86
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsDatePickerInput.d.ts`
87
+
88
+ ## Props
89
+
90
+ | Prop | Type | Default | Description |
91
+ |------|------|---------|-------------|
92
+ | `type` | `'date' \| 'month' \| 'year'` | `'date'` | Picker mode and model format |
93
+ | `label` | `string \| null` | `undefined` | Field label |
94
+ | `placeholder` | `string \| null` | model format | Input placeholder |
95
+ | `min` / `max` | `string` | ±5 years around `today` (picker) | Bounds for the popup and carousel buttons |
96
+ | `rules` | `((value) => true \| string)[]` | `undefined` | Validation rules |
97
+ | `hideDetails` | `boolean` | `undefined` | Hide label and error area |
98
+ | `hideError` | `boolean` | `undefined` | Hide the error message |
99
+ | `id` | `string` | auto | Input id |
100
+ | `disabled` / `readonly` | `boolean \| null` | `undefined` | Native input states; disable carousel buttons |
101
+ | `size` | `'mini' \| 'small' \| 'default' \| 'large' \| 'extra'` | `undefined` | Field size (font never below 16px) |
102
+ | `simple` | `boolean \| null` | `undefined` | Borderless field |
103
+ | `tile` | `boolean` | `false` | Square corners |
104
+ | `block` | `boolean` | `false` | Stretch to container width (otherwise hugs the value) |
105
+ | `width` / `maxWidth` / `minWidth` | `string \| number` | `undefined` | Field size; the popup stays 280px wide |
106
+ | `carousel` | `boolean` | `false` | Prev/next buttons stepping one day / month / year |
107
+ | `carouselPrevIcon` / `carouselNextIcon` | `MaterialDesignIcon` | `'mdi-chevron-left'` / `'mdi-chevron-right'` | Button icons |
108
+ | `carouselPrevAriaLabel` / `carouselNextAriaLabel` | `string \| null` | `'Previous'` / `'Next'` | Button labels |
109
+ | `today`, `dateFormat`, `monthFormat`, `yearFormat`, `dense`, `color` | — | as SDatePicker | Forwarded to the popup picker |
110
+
111
+ `hideTitle`, `colorThreshold` and the picker `height` are not forwarded (the popup always hides its title).
112
+
113
+ ## Events
114
+
115
+ | Event | Payload | Description |
116
+ |-------|---------|-------------|
117
+ | `update:modelValue` | `string \| null` | Value changed |
118
+ | `change` | `string \| null` | Value committed (typed + Enter/blur, picked, or stepped) |
119
+ | `update:error` | `boolean` | Validation state |
120
+ | `update:errors` | `string[]` | Error messages |
121
+ | `update:dirty` | `boolean` | Dirty state |
122
+
123
+ ## Usage
124
+
125
+ ```vue
126
+ <SDatePickerInput v-model="date" label="Date" :rules="[v => !!v || 'Required']" />
127
+ <SDatePickerInput v-model="month" type="month" label="Month" carousel />
128
+ ```
129
+
130
+ ## Gotchas
131
+
132
+ | ❌ | ✅ |
133
+ |----|----|
134
+ | `<SDatePicker disabled>` to lock the picker | `disabled`/`readonly` only affect the title; hide the picker or use `SDatePickerInput disabled` |
135
+ | Birth-date picker with default bounds | Pass `min`/`max` — the default range is only ±5 years around today |
136
+ | Trusting typed input to respect `min`/`max` | Typed text is only format-checked; add a `rules` entry for the range |
137
+ | `@change="(v) => …"` on `SDatePicker` | `SDatePicker`'s `change` has no payload; use `v-model` / `@update:model-value` |
138
+
139
+ - Older versions: if omitting `min` or `max` leaves only today selectable, upgrade or pass both bounds explicitly.
140
+ - Typed text must match the model format exactly (`YYYY-MM-DD` etc.); invalid text reverts to the last value.
@@ -0,0 +1,82 @@
1
+ # SDialog
2
+
3
+ **Import:** `import { SDialog } from '@khsura/sui'`
4
+
5
+ Modal with a scrim, controlled by `v-model`. Centered by default; `location="bottom"` gives a bottom sheet; `fullscreen` fills the viewport. Background page scroll is locked while open.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsDialog.d.ts`
8
+
9
+ ## Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ |------|------|---------|-------------|
13
+ | `persistent` | `boolean` | `false` | Clicking outside does not close the dialog |
14
+ | `scrollable` | `boolean` | `false` | With an `SCard` child: title/actions stay fixed, `SCardText` scrolls |
15
+ | `fullscreen` | `boolean` | `false` | Fill the viewport |
16
+ | `location` | `string \| string[]` | `undefined` | Only `'bottom'` has an effect (bottom sheet); anything else = centered |
17
+ | `elevation` | `0–24 \| ''` | `undefined` | Shadow depth (a light shadow is applied by default) |
18
+ | `zIndex` | `number` | `undefined` | z-index of the overlay layer |
19
+ | `disabled` | `boolean` | `false` | Passed to the activator via `attrs` (disables the trigger) |
20
+ | `width` / `height` | `string \| number` | `undefined` | Content dimensions |
21
+ | `maxWidth` / `maxHeight` / `minWidth` / `minHeight` | `string \| number` | `undefined` | Constraints (max-height defaults to 90% when not fullscreen) |
22
+
23
+ ## Model
24
+
25
+ `v-model: boolean` — open/closed.
26
+
27
+ ## Slots
28
+
29
+ | Slot | Scoped data | Description |
30
+ |------|-------------|-------------|
31
+ | `activator` | `{ on, attrs }` | Trigger. Bind **both** `v-on="on"` and `v-bind="attrs"` |
32
+ | `default` | — | Dialog content |
33
+
34
+ ## Events
35
+
36
+ None — use `v-model`.
37
+
38
+ ## Usage
39
+
40
+ ```vue
41
+ <SDialog v-model="isOpen" :max-width="480">
42
+ <template #activator="{ on, attrs }">
43
+ <SButton v-on="on" v-bind="attrs" color="primary">Open</SButton>
44
+ </template>
45
+ <SCard>
46
+ <SCardTitle>Confirm</SCardTitle>
47
+ <SCardText>Are you sure?</SCardText>
48
+ <SCardActions>
49
+ <SButton variant="text" @click="isOpen = false">Cancel</SButton>
50
+ <SButton color="primary" @click="confirm">OK</SButton>
51
+ </SCardActions>
52
+ </SCard>
53
+ </SDialog>
54
+
55
+ <!-- Programmatic -->
56
+ <SButton @click="sheet = true">Open sheet</SButton>
57
+ <SDialog v-model="sheet" location="bottom">
58
+ <SCard><SCardText>Bottom sheet</SCardText></SCard>
59
+ </SDialog>
60
+
61
+ <!-- Long content -->
62
+ <SDialog v-model="terms" scrollable :max-width="500">
63
+ <SCard>
64
+ <SCardTitle>Terms</SCardTitle>
65
+ <SCardText>…long text…</SCardText>
66
+ <SCardActions><SButton @click="terms = false">Close</SButton></SCardActions>
67
+ </SCard>
68
+ </SDialog>
69
+ ```
70
+
71
+ ## Gotchas
72
+
73
+ | ❌ | ✅ |
74
+ |----|----|
75
+ | `<SDialog title="Confirm">` | No `title` prop — use `SCardTitle` inside an `SCard` |
76
+ | Plain text / `<div>` as the only child | The dialog has **no background** — wrap content in `SCard` or `SSheet` |
77
+ | `v-on="on"` only | Bind both `v-on="on"` and `v-bind="attrs"` |
78
+ | `persistent` with no close button | Always provide an explicit close action |
79
+
80
+ - The app must be wrapped in `<SApp>`: dialogs teleport into the overlay container `SApp` renders.
81
+ - There is no Escape-key handling and no `close` event.
82
+ - `borderless`, `scrollableBackground` and `closeOnClick` appear in the prop types but currently have no effect — do not rely on them.
@@ -0,0 +1,52 @@
1
+ # SDivider
2
+
3
+ **Import:** `import { SDivider } from '@khsura/sui'`
4
+
5
+ A thin horizontal or vertical rule. Renders an `<hr role="separator">` with the matching `aria-orientation`.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsDivider.d.ts`
8
+
9
+ ## Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ |------|------|---------|-------------|
13
+ | `vertical` | `boolean` | `false` | Render as a vertical divider (stretches to the parent's height) |
14
+
15
+ ## Slots
16
+
17
+ None.
18
+
19
+ ## Events
20
+
21
+ None.
22
+
23
+ ## Usage
24
+
25
+ ```vue
26
+ <!-- Horizontal divider (default) -->
27
+ <SDivider />
28
+
29
+ <!-- Vertical divider: parent must be flex and have a height -->
30
+ <div style="display: flex; align-items: center; height: 40px;">
31
+ <span>Left</span>
32
+ <SDivider vertical />
33
+ <span>Right</span>
34
+ </div>
35
+
36
+ <!-- Between list items -->
37
+ <SList>
38
+ <SListItem>Item 1</SListItem>
39
+ <SDivider />
40
+ <SListItem>Item 2</SListItem>
41
+ </SList>
42
+ ```
43
+
44
+ ## Gotchas
45
+
46
+ - It is a real `<hr>`, so the browser's auto side margins stay. Inside a flex **column** (`flex-direction: column`, e.g. with `align-items: center`) it collapses to **zero width** and disappears. Give it a width or stretch it.
47
+ - A vertical divider takes its height from the parent. If the parent has no height, nothing shows.
48
+
49
+ | ❌ | ✅ |
50
+ |----|----|
51
+ | `<div style="display:flex;flex-direction:column;align-items:center"><SDivider /></div>` | `<SDivider style="align-self: stretch" />` or `<SDivider style="width: 100%" />` |
52
+ | `<SDivider vertical />` in a parent with no height | Give the flex parent a height, or use `align-items: stretch` |
@@ -0,0 +1,68 @@
1
+ # SDroppable
2
+
3
+ **Import:** `import { SDroppable } from '@khsura/sui'`
4
+
5
+ Drag-and-drop drop zone (files or any dragged content). Renders a plain `<div>` you style yourself.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsDroppable.d.ts`
8
+
9
+ ## Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ |------|------|---------|-------------|
13
+ | `disabled` | `boolean \| null` | `undefined` | Stop emitting `drop` and keep `isDraggingOver` false |
14
+ | `readonly` | `boolean \| null` | `undefined` | Typed (shared prop) but has no effect |
15
+ | `width` / `height` | `string \| number \| null` | `undefined` | Size (numbers → px) |
16
+ | `minWidth` / `maxWidth` | `string \| number \| null` | `undefined` | Width limits |
17
+ | `minHeight` / `maxHeight` | `string \| number \| null` | `undefined` | Height limits |
18
+
19
+ ## Events
20
+
21
+ | Event | Payload | Description |
22
+ |-------|---------|-------------|
23
+ | `drop` | `DragEvent` | Content dropped (not emitted when `disabled` or the browser lacks DnD support) |
24
+
25
+ ## Slots
26
+
27
+ | Slot | Scoped data | Description |
28
+ |------|-------------|-------------|
29
+ | `default` | `{ isDraggingOver, disabled, supportsDragAndDrop, attrs }` | Drop-zone content. `attrs` bundles the other three |
30
+
31
+ | Property | Type | Description |
32
+ |----------|------|-------------|
33
+ | `isDraggingOver` | `boolean` | A drag is over the zone (always `false` when disabled) |
34
+ | `disabled` | `boolean` | Current `disabled` prop |
35
+ | `supportsDragAndDrop` | `boolean` | Browser supports the DnD API |
36
+
37
+ ## Usage
38
+
39
+ ```vue
40
+ <script setup lang="ts">
41
+ const handleDrop = (event: DragEvent) => {
42
+ const files = Array.from(event.dataTransfer?.files ?? [])
43
+ uploadFiles(files)
44
+ }
45
+ </script>
46
+
47
+ <template>
48
+ <SDroppable :height="200" @drop="handleDrop">
49
+ <template #default="{ isDraggingOver, supportsDragAndDrop }">
50
+ <div
51
+ v-if="supportsDragAndDrop"
52
+ style="border: 2px dashed; border-radius: 8px; height: 100%;"
53
+ >
54
+ <SIcon icon="mdi-cloud-upload" :color="isDraggingOver ? 'primary' : undefined" />
55
+ <p>{{ isDraggingOver ? 'Release to upload' : 'Drag & drop files here' }}</p>
56
+ </div>
57
+ <input v-else type="file" multiple @change="handleFileInput" />
58
+ </template>
59
+ </SDroppable>
60
+ </template>
61
+ ```
62
+
63
+ ## Gotchas
64
+
65
+ - The drop zone has no built-in look: draw the border/background yourself. While dragging over it, the root gets class `s_droppable--drag` (opacity 0.6).
66
+ - `drop` gives the raw `DragEvent`; read `event.dataTransfer?.files`. Default browser handling (opening the file) is already prevented.
67
+ - There is no click-to-upload — add your own `<input type="file">` or button.
68
+ - No `accept`/file-type filtering: validate files in your `drop` handler.
@@ -0,0 +1,108 @@
1
+ # SExpansionPanels
2
+
3
+ **Import:** `import { SExpansionPanels, SExpansionPanel, SExpansionPanelHeader, SExpansionPanelContent } from '@khsura/sui'`
4
+
5
+ Accordion-style collapsible sections.
6
+
7
+ Types: `node_modules/@khsura/sui/@types/definitions/props/propsExpansionPanels.d.ts`
8
+
9
+ ---
10
+
11
+ ## SExpansionPanels
12
+
13
+ ### Props
14
+
15
+ | Prop | Type | Default | Description |
16
+ |------|------|---------|-------------|
17
+ | `modelValue` | `number[] \| null` | `[]` | `index` values of open panels (use `v-model`) |
18
+ | `multiple` | `boolean` | `false` | Allow several panels open at once |
19
+ | `mandatory` | `boolean` | `false` | Keep at least one panel open. Opens the first one if the model is empty |
20
+ | `expandIcon` | `MaterialDesignIcon` | `'mdi-chevron-down'` | Header toggle icon |
21
+ | `expandIconSize` | `SizePropertyType` | `undefined` | Toggle icon size |
22
+
23
+ ### Slots / Events
24
+
25
+ | Slot | Description |
26
+ |------|-------------|
27
+ | `default` | `SExpansionPanel` components |
28
+
29
+ | Event | Payload | Description |
30
+ |-------|---------|-------------|
31
+ | `update:modelValue` | `number[]` | Open panels changed |
32
+
33
+ ---
34
+
35
+ ## SExpansionPanel
36
+
37
+ | Prop | Type | Default | Description |
38
+ |------|------|---------|-------------|
39
+ | `index` | `number` | vnode `key`, else an auto id | Panel identity, the value stored in the `v-model` array |
40
+
41
+ | Slot | Scoped data | Description |
42
+ |------|-------------|-------------|
43
+ | `default` | `{ isExpanded }` | `SExpansionPanelHeader` + `SExpansionPanelContent` |
44
+
45
+ ## SExpansionPanelHeader
46
+
47
+ Clickable row that toggles its panel.
48
+
49
+ | Slot | Scoped data | Description |
50
+ |------|-------------|-------------|
51
+ | `default` | `{ open }` | Header label |
52
+ | `actions` | `{ isExpanded }` | Replaces the expand icon |
53
+ | `top` | none | Content above the header row |
54
+
55
+ ## SExpansionPanelContent
56
+
57
+ | Slot | Scoped data | Description |
58
+ |------|-------------|-------------|
59
+ | `default` | `{ isExpanded }` | Collapsible body |
60
+
61
+ ---
62
+
63
+ ## Usage
64
+
65
+ ```vue
66
+ <script setup lang="ts">
67
+ import { ref } from 'vue'
68
+ import { SExpansionPanels, SExpansionPanel, SExpansionPanelHeader, SExpansionPanelContent, SButton } from '@khsura/sui'
69
+
70
+ const items = [
71
+ { title: 'Shipping', body: '…' },
72
+ { title: 'Returns', body: '…' },
73
+ ]
74
+ const open = ref<number[]>([0])
75
+ </script>
76
+
77
+ <template>
78
+ <SExpansionPanels v-model="open" multiple>
79
+ <SExpansionPanel v-for="(item, i) in items" :key="i" :index="i">
80
+ <SExpansionPanelHeader>{{ item.title }}</SExpansionPanelHeader>
81
+ <SExpansionPanelContent>{{ item.body }}</SExpansionPanelContent>
82
+ </SExpansionPanel>
83
+ </SExpansionPanels>
84
+
85
+ <SButton @click="open = items.map((_, i) => i)">Expand all</SButton>
86
+ <SButton @click="open = []">Collapse all</SButton>
87
+
88
+ <!-- Static panels: give each an index -->
89
+ <SExpansionPanels v-model="open" mandatory>
90
+ <SExpansionPanel :index="0">
91
+ <SExpansionPanelHeader>Section 1</SExpansionPanelHeader>
92
+ <SExpansionPanelContent>Content 1</SExpansionPanelContent>
93
+ </SExpansionPanel>
94
+ <SExpansionPanel :index="1">
95
+ <SExpansionPanelHeader>Section 2</SExpansionPanelHeader>
96
+ <SExpansionPanelContent>Content 2</SExpansionPanelContent>
97
+ </SExpansionPanel>
98
+ </SExpansionPanels>
99
+ </template>
100
+ ```
101
+
102
+ ## Gotchas
103
+
104
+ | ❌ | ✅ |
105
+ |----|----|
106
+ | `<SExpansionPanel>` with no `index`/`key` + `v-model="[0]"` | Set `:index="i"`. Without it the identity is an auto-generated id and the model never matches |
107
+ | Assuming the model holds DOM position | It holds each panel's `index` prop value |
108
+ | `disabled` on a panel | Not implemented for panels. Control it with `v-model` instead |