sit-onyx 1.0.0-beta.2 → 1.0.0-beta.200

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 (328) hide show
  1. package/README.md +1 -5
  2. package/dist/a11yConfig.d.ts +1 -0
  3. package/dist/components/OnyxAccordion/OnyxAccordion.vue.d.ts +22 -0
  4. package/dist/components/{OnyxLoadingIndicator/LoadingDots.vue.d.ts → OnyxAccordion/examples/NestedLargeExample.vue.d.ts} +1 -1
  5. package/dist/components/{OnyxToast/PlaywrightTest.vue.d.ts → OnyxAccordion/examples/NestedSmallExample.vue.d.ts} +1 -1
  6. package/dist/components/OnyxAccordion/types.d.ts +45 -0
  7. package/dist/components/OnyxAccordionItem/OnyxAccordionItem.vue.d.ts +22 -0
  8. package/dist/components/OnyxAccordionItem/types.d.ts +17 -0
  9. package/dist/components/OnyxAlertDialog/OnyxAlertDialog.vue.d.ts +34 -0
  10. package/dist/components/{OnyxToast/PlaywrightTestWrapper.vue.d.ts → OnyxAlertDialog/examples/DefaultExample.vue.d.ts} +1 -1
  11. package/dist/components/OnyxAlertDialog/types.d.ts +8 -0
  12. package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +5 -36
  13. package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +2 -40
  14. package/dist/components/OnyxAvatar/types.d.ts +15 -3
  15. package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +4 -9
  16. package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +6 -34
  17. package/dist/components/OnyxBottomBar/OnyxBottomBar.vue.d.ts +21 -0
  18. package/dist/components/OnyxBottomBar/types.d.ts +7 -0
  19. package/dist/components/OnyxBreadcrumb/OnyxBreadcrumb.vue.d.ts +17 -0
  20. package/dist/components/OnyxBreadcrumb/types.d.ts +28 -0
  21. package/dist/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.vue.d.ts +18 -0
  22. package/dist/components/OnyxBreadcrumbItem/types.d.ts +18 -0
  23. package/dist/components/OnyxButton/ButtonOrLinkLayout.vue.d.ts +18 -0
  24. package/dist/components/OnyxButton/OnyxButton.vue.d.ts +4 -39
  25. package/dist/components/OnyxButton/types.d.ts +10 -2
  26. package/dist/components/OnyxCard/OnyxCard.vue.d.ts +17 -0
  27. package/dist/components/{OnyxLoadingIndicator/CircleSpinner.vue.d.ts → OnyxCard/examples/DetailsCardExample.vue.d.ts} +1 -1
  28. package/dist/components/OnyxCard/examples/HeadlineCardExample.vue.d.ts +2 -0
  29. package/dist/components/OnyxCard/examples/IconCardExample.vue.d.ts +2 -0
  30. package/dist/components/OnyxCard/examples/ImageCardExample.vue.d.ts +2 -0
  31. package/dist/components/OnyxCard/examples/KPICardExample.vue.d.ts +2 -0
  32. package/dist/components/OnyxCard/types.d.ts +8 -0
  33. package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +12 -15
  34. package/dist/components/OnyxCheckbox/types.d.ts +4 -5
  35. package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +12 -13
  36. package/dist/components/OnyxCheckboxGroup/types.d.ts +7 -17
  37. package/dist/components/OnyxDataGrid/OnyxDataGrid.vue.d.ts +22 -0
  38. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue.d.ts +22 -0
  39. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +92 -0
  40. package/dist/components/OnyxDataGrid/examples/CustomColumnTypes.vue.d.ts +2 -0
  41. package/dist/components/OnyxDataGrid/examples/CustomFeatureExample.vue.d.ts +2 -0
  42. package/dist/components/OnyxDataGrid/examples/DefaultExample.vue.d.ts +2 -0
  43. package/dist/components/OnyxDataGrid/examples/FilteringExample.vue.d.ts +2 -0
  44. package/dist/components/OnyxDataGrid/examples/HideColumnsExample.vue.d.ts +2 -0
  45. package/dist/components/OnyxDataGrid/examples/ResizingExample.vue.d.ts +2 -0
  46. package/dist/components/OnyxDataGrid/examples/SelectionExample.vue.d.ts +2 -0
  47. package/dist/components/OnyxDataGrid/examples/SortingExample.vue.d.ts +2 -0
  48. package/dist/components/OnyxDataGrid/examples/StickyColumnsExample.vue.d.ts +2 -0
  49. package/dist/components/OnyxDataGrid/features/HeaderCell.vue.d.ts +17 -0
  50. package/dist/components/OnyxDataGrid/features/all.d.ts +12 -0
  51. package/dist/components/OnyxDataGrid/features/filtering/TestCase.vue.d.ts +10 -0
  52. package/dist/components/OnyxDataGrid/features/filtering/filtering.d.ts +32 -0
  53. package/dist/components/OnyxDataGrid/features/filtering/types.d.ts +65 -0
  54. package/dist/components/OnyxDataGrid/features/hideColumns/TestCase.vue.d.ts +20 -0
  55. package/dist/components/OnyxDataGrid/features/hideColumns/hideColumns.d.ts +39 -0
  56. package/dist/components/OnyxDataGrid/features/hideColumns/types.d.ts +15 -0
  57. package/dist/components/OnyxDataGrid/features/index.d.ts +244 -0
  58. package/dist/components/OnyxDataGrid/features/renderer.d.ts +11 -0
  59. package/dist/components/OnyxDataGrid/features/resizing/ResizeHandle.vue.d.ts +26 -0
  60. package/dist/components/OnyxDataGrid/features/resizing/TestCase.vue.d.ts +10 -0
  61. package/dist/components/OnyxDataGrid/features/resizing/resizing.d.ts +28 -0
  62. package/dist/components/OnyxDataGrid/features/resizing/types.d.ts +7 -0
  63. package/dist/components/OnyxDataGrid/features/selection/TestCase.vue.d.ts +21 -0
  64. package/dist/components/OnyxDataGrid/features/selection/selection.d.ts +38 -0
  65. package/dist/components/OnyxDataGrid/features/selection/types.d.ts +42 -0
  66. package/dist/components/OnyxDataGrid/features/sorting/SortAction.vue.d.ts +13 -0
  67. package/dist/components/OnyxDataGrid/features/sorting/TestCase.vue.d.ts +9 -0
  68. package/dist/components/OnyxDataGrid/features/sorting/sorting.d.ts +30 -0
  69. package/dist/components/OnyxDataGrid/features/sorting/types.d.ts +43 -0
  70. package/dist/components/OnyxDataGrid/features/stickyColumns/TestCase.vue.d.ts +10 -0
  71. package/dist/components/OnyxDataGrid/features/stickyColumns/stickyColumns.d.ts +12 -0
  72. package/dist/components/OnyxDataGrid/features/stickyColumns/types.d.ts +12 -0
  73. package/dist/components/OnyxDataGrid/types.d.ts +38 -0
  74. package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +18 -0
  75. package/dist/components/OnyxDatePicker/types.d.ts +24 -0
  76. package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +10 -41
  77. package/dist/components/OnyxDialog/examples/LeftAlignedExample.vue.d.ts +2 -0
  78. package/dist/components/OnyxDialog/examples/ModalExample.vue.d.ts +2 -0
  79. package/dist/components/OnyxDialog/examples/RightAlignedExample.vue.d.ts +2 -0
  80. package/dist/components/OnyxDialog/types.d.ts +6 -0
  81. package/dist/components/OnyxDrawer/OnyxDrawer.vue.d.ts +34 -0
  82. package/dist/components/OnyxDrawer/examples/DefaultExample.vue.d.ts +2 -0
  83. package/dist/components/OnyxDrawer/examples/RightAlignedExample.vue.d.ts +2 -0
  84. package/dist/components/OnyxDrawer/types.d.ts +8 -0
  85. package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +7 -11
  86. package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +26 -0
  87. package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +3 -24
  88. package/dist/components/OnyxExternalLinkIcon/types.d.ts +2 -5
  89. package/dist/components/OnyxFilterTag/OnyxFilterTag.vue.d.ts +16 -0
  90. package/dist/components/OnyxForm/FormElementTestWrapper.vue.d.ts +13 -0
  91. package/dist/components/OnyxForm/OnyxForm.core.d.ts +99 -0
  92. package/dist/components/OnyxForm/OnyxForm.core.spec-d.d.ts +1 -0
  93. package/dist/components/OnyxForm/OnyxForm.vue.d.ts +18 -0
  94. package/dist/components/OnyxForm/examples/AdvancedExample.vue.d.ts +3 -0
  95. package/dist/components/OnyxForm/examples/DefaultExample.vue.d.ts +2 -0
  96. package/dist/components/OnyxForm/types.d.ts +4 -0
  97. package/dist/components/OnyxFormElement/FormMessage.vue.d.ts +13 -0
  98. package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +11 -0
  99. package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +17 -34
  100. package/dist/components/OnyxFormElement/types.d.ts +44 -19
  101. package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +6 -18
  102. package/dist/components/OnyxHeadline/types.d.ts +18 -2
  103. package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +1 -10
  104. package/dist/components/OnyxIcon/types.d.ts +4 -0
  105. package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +9 -43
  106. package/dist/components/OnyxIconButton/types.d.ts +6 -4
  107. package/dist/components/OnyxImage/OnyxImage.vue.d.ts +6 -0
  108. package/dist/components/OnyxImage/types.d.ts +43 -0
  109. package/dist/components/OnyxInfoCard/OnyxInfoCard.vue.d.ts +27 -0
  110. package/dist/components/OnyxInfoCard/types.d.ts +21 -0
  111. package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +4 -10
  112. package/dist/components/OnyxInfoTooltip/types.d.ts +1 -5
  113. package/dist/components/OnyxInput/OnyxInput.vue.d.ts +35 -52
  114. package/dist/components/OnyxInput/types.d.ts +9 -67
  115. package/dist/components/OnyxLink/OnyxLink.vue.d.ts +6 -38
  116. package/dist/components/OnyxLink/types.d.ts +3 -10
  117. package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +5 -37
  118. package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue.d.ts +2 -0
  119. package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.vue.d.ts +2 -0
  120. package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +2 -23
  121. package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +8 -16
  122. package/dist/components/OnyxMiniSearch/types.d.ts +4 -2
  123. package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +9 -35
  124. package/dist/components/OnyxMobileNavButton/types.d.ts +4 -0
  125. package/dist/components/OnyxModalDialog/OnyxModalDialog.vue.d.ts +32 -0
  126. package/dist/components/OnyxModalDialog/examples/DefaultExample.vue.d.ts +2 -0
  127. package/dist/components/OnyxModalDialog/types.d.ts +2 -0
  128. package/dist/components/OnyxMoreList/OnyxMoreList.vue.d.ts +29 -0
  129. package/dist/components/OnyxMoreList/types.d.ts +23 -0
  130. package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +6 -22
  131. package/dist/components/OnyxNavAppArea/types.d.ts +2 -1
  132. package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +15 -62
  133. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +7 -28
  134. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/types.d.ts +3 -3
  135. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +4 -13
  136. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +17 -29
  137. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +10 -0
  138. package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/OnyxLanguageMenuItem.vue.d.ts +16 -0
  139. package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/types.d.ts +12 -0
  140. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +19 -18
  141. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +13 -7
  142. package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +16 -35
  143. package/dist/components/OnyxNavBar/modules/OnyxNavItem/types.d.ts +19 -2
  144. package/dist/components/OnyxNavBar/modules/OnyxNavItemFacade/OnyxNavItemFacade.vue.d.ts +26 -0
  145. package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +2 -23
  146. package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +4 -13
  147. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +11 -22
  148. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +27 -16
  149. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +11 -3
  150. package/dist/components/OnyxNavBar/modules/index.d.ts +4 -2
  151. package/dist/components/OnyxNavBar/types.d.ts +18 -5
  152. package/dist/components/OnyxNotificationCard/OnyxNotificationCard.vue.d.ts +25 -0
  153. package/dist/components/OnyxNotificationCard/types.d.ts +16 -0
  154. package/dist/components/OnyxNotificationDot/OnyxNotificationDot.vue.d.ts +18 -0
  155. package/dist/components/OnyxNotificationDot/types.d.ts +11 -0
  156. package/dist/components/OnyxNotificationMessage/OnyxNotificationMessage.vue.d.ts +25 -0
  157. package/dist/components/OnyxNotificationMessage/types.d.ts +17 -0
  158. package/dist/components/OnyxNotifications/OnyxNotifications.vue.d.ts +2 -0
  159. package/dist/components/OnyxNotifications/examples/DefaultExample.vue.d.ts +2 -0
  160. package/dist/components/OnyxNotifications/useNotification.d.ts +60 -0
  161. package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +4 -20
  162. package/dist/components/OnyxPageLayout/types.d.ts +2 -1
  163. package/dist/components/OnyxPagination/OnyxPagination.vue.d.ts +10 -0
  164. package/dist/components/OnyxPagination/OnyxSelectPagination.vue.d.ts +9 -0
  165. package/dist/components/OnyxPagination/types.d.ts +20 -0
  166. package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +11 -15
  167. package/dist/components/OnyxRadioButton/types.d.ts +2 -10
  168. package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +13 -15
  169. package/dist/components/OnyxRadioGroup/types.d.ts +4 -24
  170. package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +4 -0
  171. package/dist/components/OnyxRouterLink/OnyxRouterLink.vue.d.ts +13 -0
  172. package/dist/components/OnyxRouterLink/types.d.ts +22 -0
  173. package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +17 -41
  174. package/dist/components/OnyxSelect/examples/CustomOptionsExample.vue.d.ts +2 -0
  175. package/dist/components/OnyxSelect/examples/CustomSearchExample.vue.d.ts +2 -0
  176. package/dist/components/OnyxSelect/examples/LazyLoadingExample.vue.d.ts +2 -0
  177. package/dist/components/OnyxSelect/examples/LoadMoreExample.vue.d.ts +2 -0
  178. package/dist/components/OnyxSelect/types.d.ts +46 -36
  179. package/dist/components/OnyxSelectDialog/OnyxSelectDialog.vue.d.ts +22 -0
  180. package/dist/components/OnyxSelectDialog/examples/DefaultExample.vue.d.ts +2 -0
  181. package/dist/components/OnyxSelectDialog/types.d.ts +30 -0
  182. package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +10 -15
  183. package/dist/components/OnyxSelectInput/types.d.ts +6 -36
  184. package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +6 -36
  185. package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +1 -1
  186. package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +20 -0
  187. package/dist/components/OnyxStepper/types.d.ts +49 -0
  188. package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +16 -40
  189. package/dist/components/OnyxSwitch/types.d.ts +4 -31
  190. package/dist/components/OnyxSystemButton/OnyxSystemButton.vue.d.ts +8 -0
  191. package/dist/components/OnyxSystemButton/examples/FlyoutMenuExample.vue.d.ts +2 -0
  192. package/dist/components/OnyxSystemButton/examples/TooltipExample.vue.d.ts +2 -0
  193. package/dist/components/OnyxSystemButton/types.d.ts +17 -0
  194. package/dist/components/OnyxTab/OnyxTab.vue.d.ts +22 -0
  195. package/dist/components/OnyxTab/types.d.ts +20 -0
  196. package/dist/components/OnyxTable/OnyxTable.vue.d.ts +17 -44
  197. package/dist/components/OnyxTable/types.d.ts +29 -0
  198. package/dist/components/OnyxTabs/OnyxTabs.vue.d.ts +21 -0
  199. package/dist/components/OnyxTabs/types.d.ts +45 -0
  200. package/dist/components/OnyxTag/OnyxTag.vue.d.ts +4 -24
  201. package/dist/components/OnyxTag/types.d.ts +23 -0
  202. package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +16 -51
  203. package/dist/components/OnyxTextarea/types.d.ts +1 -4
  204. package/dist/components/OnyxToast/OnyxToast.vue.d.ts +1 -1
  205. package/dist/components/OnyxToast/examples/ToastExample.vue.d.ts +2 -0
  206. package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +6 -35
  207. package/dist/components/OnyxToastMessage/types.d.ts +2 -2
  208. package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +7 -0
  209. package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +15 -52
  210. package/dist/components/OnyxTooltip/types.d.ts +34 -9
  211. package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +9 -27
  212. package/dist/components/examples/ComponentShowcase/ComponentShowcase.vue.d.ts +9 -0
  213. package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +27 -0
  214. package/dist/components/examples/GridPlayground/GridBadge/GridBadge.vue.d.ts +17 -0
  215. package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +27 -0
  216. package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +14 -0
  217. package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +2 -0
  218. package/dist/components/examples/NotificationCenter/NotificationCenter.vue.d.ts +2 -0
  219. package/dist/composables/AnimationTestCase.vue.d.ts +2 -0
  220. package/dist/composables/animation.d.ts +5 -0
  221. package/dist/composables/density.d.ts +1 -1
  222. package/dist/composables/required.d.ts +6 -12
  223. package/dist/composables/scrollEnd.d.ts +1 -1
  224. package/dist/composables/themeTransition.d.ts +3 -0
  225. package/dist/composables/useAnchorPositionPolyfill.d.ts +18 -0
  226. package/dist/composables/useAutoFocus.d.ts +5 -0
  227. package/dist/composables/useCustomValidity.d.ts +39 -18
  228. package/dist/composables/useErrorClass.d.ts +14 -0
  229. package/dist/composables/useLenientMaxLengthValidation.ct-utils.d.ts +3 -0
  230. package/dist/composables/useLenientMaxLengthValidation.d.ts +93 -0
  231. package/dist/composables/useLink.d.ts +27 -0
  232. package/dist/composables/useLink.spec-d.d.ts +1 -0
  233. package/dist/composables/useMoreList.d.ts +117 -0
  234. package/dist/composables/useOpenDirection.d.ts +14 -0
  235. package/dist/composables/useRelativeTimeFormat.d.ts +23 -0
  236. package/dist/composables/useResizeObserver.d.ts +17 -3
  237. package/dist/composables/useRipple.d.ts +15 -0
  238. package/dist/composables/useSkeletonState.d.ts +61 -0
  239. package/dist/composables/useTimer.d.ts +1 -1
  240. package/dist/composables/useVModel.d.ts +9 -0
  241. package/dist/composables/useWedgePosition.d.ts +13 -0
  242. package/dist/i18n/datetime-formats.d.ts +22 -0
  243. package/dist/i18n/index.d.ts +24 -6
  244. package/dist/i18n/locales/de-DE.json +198 -0
  245. package/dist/i18n/locales/en-US.json +198 -0
  246. package/dist/i18n/locales/ko-KR.json +27 -0
  247. package/dist/i18n/number-formats.d.ts +6 -0
  248. package/dist/index.cjs +54 -54
  249. package/dist/index.d.ts +65 -1
  250. package/dist/index.js +6007 -2626
  251. package/dist/playwright/a11y.d.ts +15 -1
  252. package/dist/playwright/screenshots.d.ts +5 -39
  253. package/dist/style.css +1 -1
  254. package/dist/types/colors.d.ts +1 -1
  255. package/dist/types/components.d.ts +6 -6
  256. package/dist/types/index.d.ts +0 -1
  257. package/dist/types/themes.d.ts +2 -1
  258. package/dist/types/utils.d.ts +25 -0
  259. package/dist/utils/attrs.d.ts +30 -4
  260. package/dist/utils/date.d.ts +7 -0
  261. package/dist/utils/index.d.ts +2 -2
  262. package/dist/utils/numbers.d.ts +18 -0
  263. package/dist/utils/objects.d.ts +8 -0
  264. package/dist/utils/plugin.d.ts +9 -1
  265. package/dist/utils/router.d.ts +5 -0
  266. package/dist/utils/storybook.d.ts +35 -0
  267. package/dist/utils/strings.d.ts +13 -0
  268. package/dist/utils/validity.d.ts +1 -1
  269. package/package.json +26 -17
  270. package/src/i18n/locales/de-DE.json +104 -17
  271. package/src/i18n/locales/en-US.json +105 -18
  272. package/src/styles/breakpoints.scss +15 -9
  273. package/src/styles/global.css +1 -1
  274. package/src/styles/grid.ct.tsx +90 -37
  275. package/src/styles/grid.scss +26 -11
  276. package/src/styles/index.scss +9 -6
  277. package/src/styles/layers.scss +1 -1
  278. package/src/styles/mixins/checkbox.scss +7 -19
  279. package/src/styles/mixins/input.scss +155 -39
  280. package/src/styles/mixins/layers.scss +5 -5
  281. package/src/styles/mixins/list.scss +8 -14
  282. package/src/styles/mixins/sizes.scss +27 -0
  283. package/src/styles/mixins/visibility.scss +11 -0
  284. package/src/styles/required.scss +1 -1
  285. package/src/styles/root.scss +15 -3
  286. package/src/styles/variables/density-compact.css +17 -0
  287. package/src/styles/variables/density-cozy.css +17 -0
  288. package/src/styles/variables/density-default.css +18 -0
  289. package/src/styles/variables/spacing.css +20 -0
  290. package/src/styles/variables/themes/digits-dark.css +129 -0
  291. package/src/styles/variables/themes/digits-light.css +129 -0
  292. package/src/styles/variables/themes/kaufland-dark.css +129 -0
  293. package/src/styles/variables/themes/kaufland-light.css +129 -0
  294. package/src/styles/variables/themes/lidl-dark.css +129 -0
  295. package/src/styles/variables/themes/lidl-light.css +129 -0
  296. package/src/styles/variables/themes/onyx-dark.css +129 -0
  297. package/src/styles/variables/themes/onyx-light.css +129 -0
  298. package/src/styles/variables/themes/schwarz-dark.css +129 -0
  299. package/src/styles/variables/themes/schwarz-light.css +129 -0
  300. package/src/styles/variables/themes/value.css +224 -0
  301. package/dist/components/GridPlayground/GridElement.vue.d.ts +0 -18
  302. package/dist/components/GridPlayground/GridElementsIndicator.vue.d.ts +0 -22
  303. package/dist/components/GridPlayground/GridPlayground.vue.d.ts +0 -27
  304. package/dist/components/OnyxNavBar/modules/OnyxNavButton/MobileComponentTestWrapper.vue.d.ts +0 -41
  305. package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +0 -35
  306. package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +0 -58
  307. package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +0 -13
  308. package/dist/components/OnyxToast/StorybookExample.vue.d.ts +0 -2
  309. package/dist/composables/useManagedState.d.ts +0 -25
  310. package/dist/playwright/ScreenshotMatrix.vue.d.ts +0 -54
  311. package/dist/types/breakpoints.d.ts +0 -13
  312. package/src/styles/dark.css +0 -132
  313. package/src/styles/density.scss +0 -41
  314. package/src/styles/light.css +0 -132
  315. package/src/styles/themes/kaufland.css +0 -126
  316. package/src/styles/themes/lidl.css +0 -126
  317. package/src/styles/themes/onyx.css +0 -126
  318. package/src/styles/themes/onyx.json +0 -120
  319. package/src/styles/themes/twogo.css +0 -126
  320. package/src/types/breakpoints.ts +0 -14
  321. package/src/types/colors.ts +0 -10
  322. package/src/types/components.ts +0 -59
  323. package/src/types/fonts.ts +0 -7
  324. package/src/types/i18n.ts +0 -68
  325. package/src/types/index.ts +0 -10
  326. package/src/types/themes.ts +0 -1
  327. package/src/types/utils.ts +0 -4
  328. /package/dist/components/{OnyxRadioGroup/OnyxRadioGroup.d.ts → OnyxDataGrid/types.spec-d.d.ts} +0 -0
package/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  <div align="center" style="text-align: center">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-light.svg">
4
- <source media="(prefers-color-scheme: light)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg">
5
- <img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg" width="160px">
6
- </picture>
2
+ <img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo.svg" height="96px">
7
3
  </div>
8
4
 
9
5
  <br>
@@ -0,0 +1 @@
1
+ export declare const a11yTags: string[];
@@ -0,0 +1,22 @@
1
+ import { type Nullable } from "../../composables/useVModel";
2
+ import { type OnyxAccordionProps } from "./types";
3
+ declare const _default: <TValue extends PropertyKey>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly "onUpdate:modelValue"?: ((value: Nullable<TValue[]>) => any) | undefined;
6
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & OnyxAccordionProps<TValue> & Partial<{}>> & import("vue").PublicProps;
7
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
8
+ attrs: any;
9
+ slots: {
10
+ /**
11
+ * Displays OnyxAccordionItem components.
12
+ */
13
+ default(): unknown;
14
+ };
15
+ emit: (evt: "update:modelValue", value: Nullable<TValue[]>) => void;
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -0,0 +1,45 @@
1
+ import type { SkeletonInjected } from "src/composables/useSkeletonState";
2
+ import type { InjectionKey, Ref } from "vue";
3
+ import type { DensityProp } from "../../composables/density";
4
+ import type { Nullable } from "../../composables/useVModel";
5
+ export type OnyxAccordionProps<TValue extends PropertyKey> = DensityProp & {
6
+ /**
7
+ * Currently opened items. Will include the `value` property of the nested `OnyxAccordionItems`.
8
+ */
9
+ modelValue?: Nullable<TValue[]>;
10
+ /**
11
+ * if `true`, only one accordion item can be open at the same time.
12
+ */
13
+ exclusive?: boolean;
14
+ /**
15
+ * Disable the accordion.
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * If set, the specified number of skeleton accordions will be shown.
20
+ */
21
+ skeleton?: SkeletonInjected;
22
+ /**
23
+ * Accordion type. Will have different visual representations.
24
+ * Please note that "nested-large" and "nested-small" should only be used inside other components like e.g. the [OnyxDrawer](https://storybook.onyx.schwarz/?path=/docs/feedback-drawer--docs).
25
+ */
26
+ type?: AccordionType;
27
+ };
28
+ export type AccordionInjectionKey<TValue extends PropertyKey> = InjectionKey<{
29
+ /**
30
+ * IDs of currently open AccordionItems.
31
+ */
32
+ openItems: Readonly<Ref<PropertyKey[]>>;
33
+ /**
34
+ * Function to update the open state of an AccordionItem.
35
+ * @param id - The unique ID of the AccordionItem.
36
+ * @param value - Whether the AccordionItem should be open (true) or closed (false).
37
+ */
38
+ updateOpen: (id: TValue, value: boolean) => void;
39
+ disabled: Ref<boolean>;
40
+ skeleton: Ref<SkeletonInjected>;
41
+ type: Ref<AccordionType>;
42
+ }>;
43
+ export declare const ACCORDION_INJECTION_KEY: AccordionInjectionKey<PropertyKey>;
44
+ export declare const ACCORDION_TYPES: readonly ["default", "nested-large", "nested-small"];
45
+ export type AccordionType = (typeof ACCORDION_TYPES)[number];
@@ -0,0 +1,22 @@
1
+ import type { OnyxAccordionItemProps } from "./types";
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Displays the header content.
5
+ */
6
+ header(): unknown;
7
+ /**
8
+ * Displays the panel content.
9
+ */
10
+ default?(): unknown;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<OnyxAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAccordionItemProps> & Readonly<{}>, {
13
+ disabled: boolean;
14
+ skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,17 @@
1
+ import type { DensityProp } from "../../composables/density";
2
+ import type { SkeletonInjected } from "../../composables/useSkeletonState";
3
+ export type OnyxAccordionItemProps = DensityProp & {
4
+ /**
5
+ * Value that is used inside the `OnyxAccordion` when the item is open.
6
+ * Must be unique across one accordion.
7
+ */
8
+ value: PropertyKey;
9
+ /**
10
+ * Whether the accordion is disabled
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * Whether to show a skeleton accordion.
15
+ */
16
+ skeleton?: SkeletonInjected;
17
+ };
@@ -0,0 +1,34 @@
1
+ import type { OnyxAlertDialogProps } from "./types";
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Dialog content.
5
+ */
6
+ default(): unknown;
7
+ /**
8
+ * Optional slot to override the headline with custom content.
9
+ * If unset, the `label` property will be shown.
10
+ */
11
+ headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
12
+ /**
13
+ * Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
14
+ * For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
15
+ *
16
+ * @example
17
+ * ```vue
18
+ * <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
19
+ * ```
20
+ */
21
+ actions?(): unknown;
22
+ };
23
+ declare const __VLS_component: import("vue").DefineComponent<OnyxAlertDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ close: () => any;
25
+ }, string, import("vue").PublicProps, Readonly<OnyxAlertDialogProps> & Readonly<{
26
+ onClose?: (() => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -0,0 +1,8 @@
1
+ import type { OnyxDialogProps } from "../OnyxDialog/types";
2
+ import type { OnyxIconProps } from "../OnyxIcon/types";
3
+ export type OnyxAlertDialogProps = Omit<OnyxDialogProps, "modal" | "alert" | "alignment"> & {
4
+ /**
5
+ * Optional icon to show.
6
+ */
7
+ icon?: Omit<OnyxIconProps, "size">;
8
+ };
@@ -1,14 +1,5 @@
1
1
  import type { OnyxAppLayoutProps } from "./types";
2
- declare function __VLS_template(): Readonly<{
3
- /** Navigation area of the application */
4
- navBar?(): unknown;
5
- /** Page content area of the application */
6
- default(): unknown;
7
- /** Overlays that cover the page and exclude the nav area */
8
- pageOverlay?(): unknown;
9
- /** Overlays that cover the complete page */
10
- appOverlay?(): unknown;
11
- }> & {
2
+ type __VLS_Slots = {
12
3
  /** Navigation area of the application */
13
4
  navBar?(): unknown;
14
5
  /** Page content area of the application */
@@ -18,35 +9,13 @@ declare function __VLS_template(): Readonly<{
18
9
  /** Overlays that cover the complete page */
19
10
  appOverlay?(): unknown;
20
11
  };
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAppLayoutProps>, {
22
- navBarAlignment: string;
23
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAppLayoutProps>, {
24
- navBarAlignment: string;
25
- }>>>, {
12
+ declare const __VLS_component: import("vue").DefineComponent<OnyxAppLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAppLayoutProps> & Readonly<{}>, {
26
13
  navBarAlignment: "top" | "left";
27
- }, {}>;
28
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
16
  export default _default;
30
-
31
- type __VLS_WithDefaults<P, D> = {
32
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
- default: D[K];
34
- }> : P[K];
35
- };
36
- type __VLS_Prettify<T> = {
37
- [K in keyof T]: T[K];
38
- } & {};
39
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
40
18
  new (): {
41
19
  $slots: S;
42
20
  };
43
21
  };
44
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
- type __VLS_TypePropsToOption<T> = {
46
- [K in keyof T]-?: {} extends Pick<T, K> ? {
47
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
- } : {
49
- type: import('vue').PropType<T[K]>;
50
- required: true;
51
- };
52
- };
@@ -1,43 +1,5 @@
1
1
  import type { OnyxAvatarProps } from "./types";
2
- declare function __VLS_template(): Readonly<{
3
- /**
4
- * Optional slot to override the default initials. Will only be used if `type` is `initials`.
5
- */
6
- default?(): unknown;
7
- }> & {
8
- /**
9
- * Optional slot to override the default initials. Will only be used if `type` is `initials`.
10
- */
11
- default?(): unknown;
12
- };
13
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAvatarProps>, {
14
- size: string;
15
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAvatarProps>, {
16
- size: string;
17
- }>>>, {
2
+ declare const _default: import("vue").DefineComponent<OnyxAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAvatarProps> & Readonly<{}>, {
18
3
  size: "16px" | "24px" | "32px" | "48px" | "64px" | "96px";
19
- }, {}>;
20
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
4
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
5
  export default _default;
22
- type __VLS_WithDefaults<P, D> = {
23
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
- default: D[K];
25
- }> : P[K];
26
- };
27
- type __VLS_Prettify<T> = {
28
- [K in keyof T]: T[K];
29
- } & {};
30
- type __VLS_WithTemplateSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
35
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
- type __VLS_TypePropsToOption<T> = {
37
- [K in keyof T]-?: {} extends Pick<T, K> ? {
38
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
- } : {
40
- type: import('vue').PropType<T[K]>;
41
- required: true;
42
- };
43
- };
@@ -1,13 +1,25 @@
1
1
  import type { IconSize, IconSizeProp } from "../OnyxIcon/types";
2
2
  export type OnyxAvatarProps = IconSizeProp<Exclude<IconSize, "12px">> & {
3
3
  /**
4
- * Label (e.g. the user name), required for accessibility.
5
- * Will also determine the displayed initials.
4
+ * Full user name. Will determine the displayed initials.
5
+ *
6
+ * @example "John Doe"
6
7
  */
7
- label: string;
8
+ fullName: DisplayName;
8
9
  /**
9
10
  * Image URL to show. If unset or an error occurs while loading, a fallback will be displayed
10
11
  * with the initials.
11
12
  */
12
13
  src?: string;
14
+ /**
15
+ * Initials to use. If unset, they will be inferred automatically from the `fullName` property.
16
+ */
17
+ initials?: string;
18
+ };
19
+ export type DisplayName = string | {
20
+ name: string;
21
+ /**
22
+ * Locale of the given name. Will be used for formatting.
23
+ */
24
+ locale: string;
13
25
  };
@@ -1,18 +1,13 @@
1
- declare function __VLS_template(): Readonly<{
2
- /**
3
- * Default slot to place the avatars.
4
- */
5
- default(): unknown;
6
- }> & {
1
+ type __VLS_Slots = {
7
2
  /**
8
3
  * Default slot to place the avatars.
9
4
  */
10
5
  default(): unknown;
11
6
  };
12
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
13
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
7
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
9
  export default _default;
15
- type __VLS_WithTemplateSlots<T, S> = T & {
10
+ type __VLS_WithSlots<T, S> = T & {
16
11
  new (): {
17
12
  $slots: S;
18
13
  };
@@ -1,46 +1,18 @@
1
1
  import type { OnyxBadgeProps } from "./types";
2
- declare function __VLS_template(): Readonly<{
3
- /**
4
- * Badge content.
5
- */
6
- default?(): unknown;
7
- }> & {
2
+ type __VLS_Slots = {
8
3
  /**
9
4
  * Badge content.
10
5
  */
11
6
  default?(): unknown;
12
7
  };
13
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxBadgeProps>, {
14
- color: string;
15
- dot: boolean;
16
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxBadgeProps>, {
17
- color: string;
8
+ declare const __VLS_component: import("vue").DefineComponent<OnyxBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBadgeProps> & Readonly<{}>, {
9
+ color: import("../../index.ts").OnyxColor;
18
10
  dot: boolean;
19
- }>>>, {
20
- color: import("../..").OnyxColor;
21
- dot: boolean;
22
- }, {}>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
13
  export default _default;
25
- type __VLS_WithDefaults<P, D> = {
26
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
- default: D[K];
28
- }> : P[K];
29
- };
30
- type __VLS_Prettify<T> = {
31
- [K in keyof T]: T[K];
32
- } & {};
33
- type __VLS_WithTemplateSlots<T, S> = T & {
14
+ type __VLS_WithSlots<T, S> = T & {
34
15
  new (): {
35
16
  $slots: S;
36
17
  };
37
18
  };
38
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
- type __VLS_TypePropsToOption<T> = {
40
- [K in keyof T]-?: {} extends Pick<T, K> ? {
41
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
42
- } : {
43
- type: import('vue').PropType<T[K]>;
44
- required: true;
45
- };
46
- };
@@ -0,0 +1,21 @@
1
+ import type { OnyxBottomBarProps } from "./types";
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Bottom bar content. This slot is left aligned and should be used by buttons and icon buttons.
5
+ */
6
+ left?(): unknown;
7
+ /**
8
+ * Bottom bar content. This slot is right aligned and should be used by buttons and icon buttons.
9
+ */
10
+ default?(): unknown;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<OnyxBottomBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBottomBarProps> & Readonly<{}>, {
13
+ hideBorder: boolean;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,7 @@
1
+ import type { DensityProp } from "../../composables/density";
2
+ export type OnyxBottomBarProps = DensityProp & {
3
+ /**
4
+ * Whether to remove the top border / separator.
5
+ */
6
+ hideBorder?: boolean;
7
+ };
@@ -0,0 +1,17 @@
1
+ import type { OnyxBreadcrumbProps } from "./types";
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Breadcrumb items (see `OnyxBreadcrumbItem` component).
5
+ */
6
+ default(): unknown;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<OnyxBreadcrumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBreadcrumbProps> & Readonly<{}>, {
9
+ container: boolean;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,28 @@
1
+ import type { DensityProp } from "../../composables/density";
2
+ export type OnyxBreadcrumbProps = DensityProp & {
3
+ /**
4
+ * If `true`, the component will be shown inside a styled container.
5
+ * Recommended when used together with a nav bar or sidebar.
6
+ */
7
+ container?: boolean;
8
+ /**
9
+ * Custom home item.
10
+ */
11
+ home?: BreadcrumbHomeItem;
12
+ /**
13
+ * Whether to show all nested breadcrumb items as skeleton.
14
+ */
15
+ skeleton?: boolean;
16
+ };
17
+ export type BreadcrumbHomeItem = {
18
+ /**
19
+ * Text label for the home item. Will show the passed label instead of an icon.
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Link of the home item.
24
+ *
25
+ * @default "/"
26
+ */
27
+ link?: string;
28
+ };
@@ -0,0 +1,18 @@
1
+ import type { OnyxBreadcrumbItemProps } from "./types";
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Item content / page name.
5
+ */
6
+ default(): unknown;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<OnyxBreadcrumbItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBreadcrumbItemProps> & Readonly<{}>, {
9
+ active: boolean | "auto";
10
+ skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,18 @@
1
+ import type { DensityProp } from "../../composables/density";
2
+ import type { SkeletonInjected } from "../../composables/useSkeletonState";
3
+ export type OnyxBreadcrumbItemProps = DensityProp & {
4
+ /**
5
+ * Link to the corresponding page.
6
+ */
7
+ href: string;
8
+ /**
9
+ * Whether the nav item is currently active.
10
+ * If any nested option is active, the parent nav item will also be marked as active.
11
+ * If "auto" and a [router](https://onyx.schwarz/development/router.html) is provided, the active state will be determined automatically based on the current route.
12
+ */
13
+ active?: boolean | "auto";
14
+ /**
15
+ * Whether to show a skeleton item.
16
+ */
17
+ skeleton?: SkeletonInjected;
18
+ };
@@ -0,0 +1,18 @@
1
+ import type { OnyxButtonProps } from "./types";
2
+ type __VLS_Props = Pick<OnyxButtonProps, "disabled" | "link" | "loading" | "type" | "autofocus">;
3
+ type __VLS_Slots = {
4
+ /**
5
+ * Button content.
6
+ */
7
+ default(): unknown;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ type: import("./types").ButtonType;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -1,45 +1,10 @@
1
1
  import type { OnyxButtonProps } from "./types";
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxButtonProps>, {
3
- disabled: boolean;
4
- loading: boolean;
5
- type: string;
6
- color: string;
7
- mode: string;
8
- skeleton: boolean;
9
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- click: () => void;
11
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxButtonProps>, {
12
- disabled: boolean;
13
- loading: boolean;
14
- type: string;
15
- color: string;
16
- mode: string;
17
- skeleton: boolean;
18
- }>>> & {
19
- onClick?: (() => any) | undefined;
20
- }, {
2
+ declare const _default: import("vue").DefineComponent<OnyxButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxButtonProps> & Readonly<{}>, {
21
3
  type: import("./types").ButtonType;
22
4
  color: import("./types").ButtonColor;
23
- disabled: boolean;
24
5
  loading: boolean;
6
+ disabled: import("../OnyxForm/OnyxForm.core").FormInjected<boolean>;
25
7
  mode: import("./types").ButtonMode;
26
- skeleton: boolean;
27
- }, {}>;
8
+ skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
10
  export default _default;
29
- type __VLS_WithDefaults<P, D> = {
30
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
- default: D[K];
32
- }> : P[K];
33
- };
34
- type __VLS_Prettify<T> = {
35
- [K in keyof T]: T[K];
36
- } & {};
37
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
- type __VLS_TypePropsToOption<T> = {
39
- [K in keyof T]-?: {} extends Pick<T, K> ? {
40
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
- } : {
42
- type: import('vue').PropType<T[K]>;
43
- required: true;
44
- };
45
- };
@@ -1,5 +1,8 @@
1
1
  import type { DensityProp } from "../../composables/density";
2
+ import type { SkeletonInjected } from "../../composables/useSkeletonState";
2
3
  import type { AutofocusProp } from "../../types";
4
+ import type { FormInjected } from "../OnyxForm/OnyxForm.core";
5
+ import type { WithLinkProp } from "../OnyxRouterLink/types";
3
6
  export type OnyxButtonProps = DensityProp & AutofocusProp & {
4
7
  /**
5
8
  * The text content of the button.
@@ -8,7 +11,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
8
11
  /**
9
12
  * If the button should be disabled or not.
10
13
  */
11
- disabled?: boolean;
14
+ disabled?: FormInjected<boolean>;
12
15
  /**
13
16
  * Shows a loading indicator.
14
17
  */
@@ -32,7 +35,12 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
32
35
  /**
33
36
  * Whether to show a skeleton button.
34
37
  */
35
- skeleton?: boolean;
38
+ skeleton?: SkeletonInjected;
39
+ /**
40
+ * If set, the button will be rendered as link.
41
+ * Note that not all button properties are supported when used as link, e.g. `disabled`, `type` and `autofocus` are not supported.
42
+ */
43
+ link?: WithLinkProp["link"];
36
44
  };
37
45
  export declare const BUTTON_TYPES: readonly ["button", "submit", "reset"];
38
46
  export type ButtonType = (typeof BUTTON_TYPES)[number];
@@ -0,0 +1,17 @@
1
+ import type { OnyxCardProps } from "./types";
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Card content.
5
+ */
6
+ default(): unknown;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<OnyxCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxCardProps> & Readonly<{}>, {
9
+ clickable: boolean;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;