sit-onyx 1.0.0-beta.6 → 1.0.0-beta.61

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 (154) hide show
  1. package/dist/a11yConfig.d.ts +1 -0
  2. package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +26 -43
  3. package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +18 -34
  4. package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +17 -12
  5. package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +18 -36
  6. package/dist/components/OnyxButton/OnyxButton.vue.d.ts +4 -39
  7. package/dist/components/OnyxButton/types.d.ts +4 -2
  8. package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +8 -11
  9. package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +7 -9
  10. package/dist/components/OnyxCheckboxGroup/types.d.ts +8 -8
  11. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue.d.ts +17 -0
  12. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +87 -0
  13. package/dist/components/OnyxDataGrid/types.d.ts +8 -0
  14. package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +27 -45
  15. package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +26 -20
  16. package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +47 -0
  17. package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +2 -23
  18. package/dist/components/OnyxForm/OnyxForm.core.d.ts +90 -0
  19. package/dist/components/OnyxForm/OnyxForm.vue.d.ts +28 -0
  20. package/dist/components/OnyxForm/types.d.ts +4 -0
  21. package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +11 -0
  22. package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +19 -30
  23. package/dist/components/OnyxFormElement/types.d.ts +6 -0
  24. package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +17 -21
  25. package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +1 -10
  26. package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +16 -42
  27. package/dist/components/OnyxIconButton/types.d.ts +4 -2
  28. package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +4 -10
  29. package/dist/components/OnyxInfoTooltip/types.d.ts +1 -5
  30. package/dist/components/OnyxInput/OnyxInput.vue.d.ts +11 -51
  31. package/dist/components/OnyxInput/types.d.ts +5 -7
  32. package/dist/components/OnyxLink/OnyxLink.vue.d.ts +18 -40
  33. package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +18 -40
  34. package/dist/components/OnyxLoadingIndicator/CircleSpinner.vue.d.ts +1 -1
  35. package/dist/components/OnyxLoadingIndicator/LoadingDots.vue.d.ts +1 -1
  36. package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +2 -23
  37. package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +7 -16
  38. package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +21 -37
  39. package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +17 -25
  40. package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +68 -82
  41. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +7 -28
  42. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +4 -13
  43. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +8 -10
  44. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +2 -1
  45. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +18 -16
  46. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +3 -2
  47. package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +35 -28
  48. package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +33 -48
  49. package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +6 -0
  50. package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +22 -38
  51. package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +2 -23
  52. package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +4 -13
  53. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +31 -29
  54. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +18 -7
  55. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +3 -2
  56. package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +21 -25
  57. package/dist/components/OnyxPageLayout/types.d.ts +2 -1
  58. package/dist/components/OnyxPagination/OnyxPagination.vue.d.ts +9 -0
  59. package/dist/components/OnyxPagination/SelectPagination.vue.d.ts +7 -0
  60. package/dist/components/OnyxPagination/types.d.ts +15 -0
  61. package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +7 -11
  62. package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +8 -11
  63. package/dist/components/OnyxRadioGroup/types.d.ts +6 -8
  64. package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +4 -0
  65. package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +12 -18
  66. package/dist/components/OnyxSelect/types.d.ts +41 -9
  67. package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +8 -11
  68. package/dist/components/OnyxSelectInput/types.d.ts +8 -17
  69. package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +19 -39
  70. package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +1 -1
  71. package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +21 -0
  72. package/dist/components/OnyxStepper/types.d.ts +67 -0
  73. package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +9 -38
  74. package/dist/components/OnyxSwitch/types.d.ts +4 -6
  75. package/dist/components/OnyxTable/OnyxTable.vue.d.ts +44 -64
  76. package/dist/components/OnyxTable/types.d.ts +23 -0
  77. package/dist/components/OnyxTag/OnyxTag.vue.d.ts +2 -23
  78. package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +10 -49
  79. package/dist/components/OnyxToast/OnyxToast.vue.d.ts +1 -1
  80. package/dist/components/OnyxToast/StorybookExample.vue.d.ts +1 -1
  81. package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +5 -34
  82. package/dist/components/OnyxToastMessage/types.d.ts +2 -2
  83. package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +7 -0
  84. package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +45 -60
  85. package/dist/components/OnyxTooltip/types.d.ts +28 -8
  86. package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +17 -25
  87. package/dist/components/examples/ComponentShowcase/ComponentShowcase.vue.d.ts +9 -0
  88. package/dist/components/examples/FormExample/FormExample.vue.d.ts +3 -0
  89. package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +35 -0
  90. package/dist/components/examples/GridPlayground/GridBadge/GridBadge.vue.d.ts +29 -0
  91. package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +49 -0
  92. package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +14 -0
  93. package/dist/components/{OnyxToast/PlaywrightTest.vue.d.ts → examples/GridPlayground/GridPlayground.vue.d.ts} +1 -1
  94. package/dist/composables/asymmetricComputed.d.ts +13 -0
  95. package/dist/composables/density.d.ts +1 -1
  96. package/dist/composables/required.d.ts +3 -3
  97. package/dist/composables/scrollEnd.d.ts +1 -1
  98. package/dist/composables/useCustomValidity.d.ts +8 -1
  99. package/dist/composables/useErrorClass.d.ts +14 -0
  100. package/dist/composables/useManagedState.d.ts +11 -5
  101. package/dist/composables/useOpenDirection.d.ts +14 -0
  102. package/dist/composables/useResizeObserver.d.ts +2 -2
  103. package/dist/composables/useRipple.d.ts +15 -0
  104. package/dist/composables/useSkeletonState.d.ts +57 -0
  105. package/dist/composables/useTimer.d.ts +1 -1
  106. package/dist/composables/useWedgePosition.d.ts +13 -0
  107. package/dist/index.cjs +4 -4
  108. package/dist/index.d.ts +10 -1
  109. package/dist/index.js +2731 -2061
  110. package/dist/playwright/ScreenshotMatrix.vue.d.ts +12 -14
  111. package/dist/playwright/screenshots.d.ts +6 -1
  112. package/dist/style.css +1 -1
  113. package/dist/types/components.d.ts +4 -2
  114. package/dist/types/utils.d.ts +5 -0
  115. package/dist/utils/attrs.d.ts +3 -3
  116. package/dist/utils/numbers.d.ts +26 -0
  117. package/dist/utils/plugin.d.ts +0 -1
  118. package/package.json +15 -13
  119. package/src/i18n/locales/de-DE.json +19 -4
  120. package/src/i18n/locales/en-US.json +19 -4
  121. package/src/styles/breakpoints.scss +4 -2
  122. package/src/styles/global.css +1 -1
  123. package/src/styles/grid.scss +2 -1
  124. package/src/styles/index.scss +7 -6
  125. package/src/styles/mixins/checkbox.scss +1 -13
  126. package/src/styles/mixins/input.scss +80 -36
  127. package/src/styles/mixins/list.scss +6 -12
  128. package/src/styles/required.scss +1 -1
  129. package/src/styles/{dark.css → variables/dark.css} +1 -13
  130. package/src/styles/variables/density-compact.css +17 -0
  131. package/src/styles/variables/density-cozy.css +17 -0
  132. package/src/styles/variables/density-default.css +18 -0
  133. package/src/styles/{light.css → variables/light.css} +1 -13
  134. package/src/styles/variables/spacing.css +20 -0
  135. package/src/styles/{themes → variables/themes}/kaufland.css +2 -2
  136. package/src/styles/{themes → variables/themes}/lidl.css +2 -2
  137. package/src/styles/{themes → variables/themes}/onyx.css +2 -2
  138. package/src/styles/{themes → variables/themes}/onyx.json +1 -1
  139. package/src/styles/{themes → variables/themes}/twogo.css +2 -2
  140. package/dist/components/GridPlayground/GridElement.vue.d.ts +0 -18
  141. package/dist/components/GridPlayground/GridElementsIndicator.vue.d.ts +0 -22
  142. package/dist/components/GridPlayground/GridPlayground.vue.d.ts +0 -27
  143. package/dist/components/OnyxNavBar/modules/OnyxNavButton/MobileComponentTestWrapper.vue.d.ts +0 -41
  144. package/dist/components/OnyxToast/PlaywrightTestWrapper.vue.d.ts +0 -2
  145. package/src/styles/density.scss +0 -41
  146. package/src/types/breakpoints.ts +0 -14
  147. package/src/types/colors.ts +0 -10
  148. package/src/types/components.ts +0 -59
  149. package/src/types/fonts.ts +0 -7
  150. package/src/types/i18n.ts +0 -68
  151. package/src/types/index.ts +0 -10
  152. package/src/types/themes.ts +0 -1
  153. package/src/types/utils.ts +0 -4
  154. /package/dist/components/{OnyxRadioGroup/OnyxRadioGroup.d.ts → OnyxForm/OnyxForm.core.spec-d.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ export declare const a11yTags: string[];
@@ -1,52 +1,35 @@
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
- }> & {
12
- /** Navigation area of the application */
13
- navBar?(): unknown;
14
- /** Page content area of the application */
15
- default(): unknown;
16
- /** Overlays that cover the page and exclude the nav area */
17
- pageOverlay?(): unknown;
18
- /** Overlays that cover the complete page */
19
- appOverlay?(): unknown;
2
+ declare function __VLS_template(): {
3
+ slots: Readonly<{
4
+ /** Navigation area of the application */
5
+ navBar?(): unknown;
6
+ /** Page content area of the application */
7
+ default(): unknown;
8
+ /** Overlays that cover the page and exclude the nav area */
9
+ pageOverlay?(): unknown;
10
+ /** Overlays that cover the complete page */
11
+ appOverlay?(): unknown;
12
+ }> & {
13
+ /** Navigation area of the application */
14
+ navBar?(): unknown;
15
+ /** Page content area of the application */
16
+ default(): unknown;
17
+ /** Overlays that cover the page and exclude the nav area */
18
+ pageOverlay?(): unknown;
19
+ /** Overlays that cover the complete page */
20
+ appOverlay?(): unknown;
21
+ };
22
+ refs: {};
23
+ attrs: Partial<{}>;
20
24
  };
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
- }>>>, {
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import("vue").DefineComponent<OnyxAppLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAppLayoutProps> & Readonly<{}>, {
26
27
  navBarAlignment: "top" | "left";
27
- }, {}>;
28
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
30
  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
31
  type __VLS_WithTemplateSlots<T, S> = T & {
40
32
  new (): {
41
33
  $slots: S;
42
34
  };
43
35
  };
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,27 @@
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;
2
+ declare function __VLS_template(): {
3
+ slots: Readonly<{
4
+ /**
5
+ * Optional slot to override the default initials. Will only be used if `type` is `initials`.
6
+ */
7
+ default?(): unknown;
8
+ }> & {
9
+ /**
10
+ * Optional slot to override the default initials. Will only be used if `type` is `initials`.
11
+ */
12
+ default?(): unknown;
13
+ };
14
+ refs: {};
15
+ attrs: Partial<{}>;
12
16
  };
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
- }>>>, {
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import("vue").DefineComponent<OnyxAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAvatarProps> & Readonly<{}>, {
18
19
  size: "16px" | "24px" | "32px" | "48px" | "64px" | "96px";
19
- }, {}>;
20
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
22
  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
23
  type __VLS_WithTemplateSlots<T, S> = T & {
31
24
  new (): {
32
25
  $slots: S;
33
26
  };
34
27
  };
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,16 +1,21 @@
1
- declare function __VLS_template(): Readonly<{
2
- /**
3
- * Default slot to place the avatars.
4
- */
5
- default(): unknown;
6
- }> & {
7
- /**
8
- * Default slot to place the avatars.
9
- */
10
- default(): unknown;
1
+ declare function __VLS_template(): {
2
+ slots: Readonly<{
3
+ /**
4
+ * Default slot to place the avatars.
5
+ */
6
+ default(): unknown;
7
+ }> & {
8
+ /**
9
+ * Default slot to place the avatars.
10
+ */
11
+ default(): unknown;
12
+ };
13
+ refs: {};
14
+ attrs: Partial<{}>;
11
15
  };
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>>;
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ 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>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
19
  export default _default;
15
20
  type __VLS_WithTemplateSlots<T, S> = T & {
16
21
  new (): {
@@ -1,46 +1,28 @@
1
1
  import type { OnyxBadgeProps } from "./types";
2
- declare function __VLS_template(): Readonly<{
3
- /**
4
- * Badge content.
5
- */
6
- default?(): unknown;
7
- }> & {
8
- /**
9
- * Badge content.
10
- */
11
- default?(): unknown;
2
+ declare function __VLS_template(): {
3
+ slots: Readonly<{
4
+ /**
5
+ * Badge content.
6
+ */
7
+ default?(): unknown;
8
+ }> & {
9
+ /**
10
+ * Badge content.
11
+ */
12
+ default?(): unknown;
13
+ };
14
+ refs: {};
15
+ attrs: Partial<{}>;
12
16
  };
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;
18
- dot: boolean;
19
- }>>>, {
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import("vue").DefineComponent<OnyxBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBadgeProps> & Readonly<{}>, {
20
19
  color: import("../..").OnyxColor;
21
20
  dot: boolean;
22
- }, {}>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
23
  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
24
  type __VLS_WithTemplateSlots<T, S> = T & {
34
25
  new (): {
35
26
  $slots: S;
36
27
  };
37
28
  };
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
- };
@@ -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;
5
+ skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
6
+ disabled: import("../OnyxForm/OnyxForm.core").FormInjected<boolean>;
24
7
  loading: boolean;
25
8
  mode: import("./types").ButtonMode;
26
- skeleton: boolean;
27
- }, {}>;
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,7 @@
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";
3
5
  export type OnyxButtonProps = DensityProp & AutofocusProp & {
4
6
  /**
5
7
  * The text content of the button.
@@ -8,7 +10,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
8
10
  /**
9
11
  * If the button should be disabled or not.
10
12
  */
11
- disabled?: boolean;
13
+ disabled?: FormInjected<boolean>;
12
14
  /**
13
15
  * Shows a loading indicator.
14
16
  */
@@ -32,7 +34,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
32
34
  /**
33
35
  * Whether to show a skeleton button.
34
36
  */
35
- skeleton?: boolean;
37
+ skeleton?: SkeletonInjected;
36
38
  };
37
39
  export declare const BUTTON_TYPES: readonly ["button", "submit", "reset"];
38
40
  export type ButtonType = (typeof BUTTON_TYPES)[number];
@@ -1,23 +1,20 @@
1
1
  import type { SelectOptionValue } from "../../types";
2
2
  import type { OnyxCheckboxProps } from "./types";
3
- declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
- onValidityChange?: ((validity: ValidityState) => any) | undefined;
6
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
8
- onValidityChange?: ((validity: ValidityState) => any) | undefined;
9
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
- }, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxCheckboxProps<TValue>> & __VLS_BuiltInPublicProps;
3
+ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__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 onValidityChange?: ((validity: ValidityState) => any) | undefined;
6
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxCheckboxProps<TValue>> & import("vue").PublicProps;
11
8
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
12
9
  attrs: any;
13
- slots: ReturnType<() => {}>;
14
- emit: (((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void)) & {};
10
+ slots: {};
11
+ emit: ((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void);
15
12
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
13
  [key: string]: any;
17
14
  }> & {
18
15
  __ctx?: Awaited<typeof __VLS_setup>;
19
16
  };
20
17
  export default _default;
21
- type __VLS_Prettify<T> = {
18
+ type __VLS_PrettifyLocal<T> = {
22
19
  [K in keyof T]: T[K];
23
20
  } & {};
@@ -1,21 +1,19 @@
1
1
  import type { SelectOptionValue } from "../../types";
2
2
  import type { OnyxCheckboxGroupProps } from "./types";
3
- declare const _default: <TValue extends SelectOptionValue>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
- "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
6
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
7
- "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
8
- }, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue>> & __VLS_BuiltInPublicProps;
3
+ declare const _default: <TValue extends SelectOptionValue>(__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: TValue[]) => any) | undefined;
6
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue>> & import("vue").PublicProps;
9
7
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
10
8
  attrs: any;
11
- slots: ReturnType<() => {}>;
12
- emit: ((evt: "update:modelValue", value: TValue[]) => void) & {};
9
+ slots: {};
10
+ emit: (evt: "update:modelValue", value: TValue[]) => void;
13
11
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
14
12
  [key: string]: any;
15
13
  }> & {
16
14
  __ctx?: Awaited<typeof __VLS_setup>;
17
15
  };
18
16
  export default _default;
19
- type __VLS_Prettify<T> = {
17
+ type __VLS_PrettifyLocal<T> = {
20
18
  [K in keyof T]: T[K];
21
19
  } & {};
@@ -1,7 +1,11 @@
1
1
  import type { DensityProp } from "../../composables/density";
2
2
  import type { RequiredMarkerProp } from "../../composables/required";
3
+ import type { CustomValidityProp } from "../../composables/useCustomValidity";
4
+ import type { SkeletonInjected } from "../../composables/useSkeletonState";
3
5
  import type { AutofocusProp, BaseSelectOption, Direction, SelectOptionValue } from "../../types";
4
- export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & Pick<BaseSelectOption, "truncation"> & {
6
+ import type { FormInjected } from "../OnyxForm/OnyxForm.core";
7
+ import type { OnyxFormElementProps } from "../OnyxFormElement/types";
8
+ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & Pick<BaseSelectOption, "truncation"> & Pick<OnyxFormElementProps, "label" | "hideLabel"> & {
5
9
  /**
6
10
  * Checkbox options.
7
11
  */
@@ -10,10 +14,6 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
10
14
  * Currently checked checkboxes.
11
15
  */
12
16
  modelValue?: TValue[];
13
- /**
14
- * Headline to show above all checkboxes which is also the fieldset legend.
15
- */
16
- headline?: string;
17
17
  /**
18
18
  * Direction of the checkboxes.
19
19
  */
@@ -32,10 +32,10 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
32
32
  /**
33
33
  * Whether all checkboxes should be disabled.
34
34
  */
35
- disabled?: boolean;
35
+ disabled?: FormInjected<boolean>;
36
36
  /**
37
37
  * If set, the specified number of skeleton radio buttons will be shown.
38
38
  */
39
- skeleton?: number;
39
+ skeleton?: SkeletonInjected;
40
40
  };
41
- export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & AutofocusProp;
41
+ export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & AutofocusProp;
@@ -0,0 +1,17 @@
1
+ import type { DataGridEntry, DataGridMetadata } from "../types";
2
+ import type { OnyxDataGridRendererProps } from "./types";
3
+ declare const _default: <TEntry extends DataGridEntry, TMetadata extends DataGridMetadata>(__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<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & OnyxDataGridRendererProps<TEntry, TMetadata>> & import("vue").PublicProps;
5
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: {};
8
+ emit: {};
9
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
10
+ [key: string]: any;
11
+ }> & {
12
+ __ctx?: Awaited<typeof __VLS_setup>;
13
+ };
14
+ export default _default;
15
+ type __VLS_PrettifyLocal<T> = {
16
+ [K in keyof T]: T[K];
17
+ } & {};
@@ -0,0 +1,87 @@
1
+ import type { FunctionalComponent, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from "vue";
2
+ import type { WithHTMLAttributes } from "../../../types";
3
+ import type { OnyxTableProps } from "../../OnyxTable/types";
4
+ import type { DataGridEntry, DataGridMetadata } from "../types";
5
+ export type OnyxDataGridRendererProps<TEntry extends DataGridEntry = DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = OnyxTableProps & {
6
+ /**
7
+ * Will define which columns and their headers are rendered in which order.
8
+ */
9
+ columns: DataGridRendererColumn<TEntry, object>[];
10
+ rows: DataGridRendererRow<TEntry, TMetadata>[];
11
+ };
12
+ /**
13
+ * Describes how a column header is rendered in the data grid.
14
+ */
15
+ export type DataGridRendererColumn<TEntry extends DataGridEntry, TProps extends object> = {
16
+ /**
17
+ * (Unique) Key of the column - usually a key of the table data.
18
+ * But can also be used for custom columns.
19
+ */
20
+ key: keyof TEntry;
21
+ /**
22
+ * The component that renders the header content and is placed into the `<th>` element.
23
+ */
24
+ component: FunctionalComponent<WithHTMLAttributes<TProps>>;
25
+ /**
26
+ * Attributes and data that is provided to the component using `v-bind`.
27
+ */
28
+ props: WithHTMLAttributes<TProps>;
29
+ /**
30
+ * Attributes that are bound directly to the `<th>` element of the column.
31
+ */
32
+ thAttributes?: ThHTMLAttributes;
33
+ };
34
+ /**
35
+ * Describes how a specific row is rendered in the data grid.
36
+ */
37
+ export type DataGridRendererRow<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = {
38
+ /**
39
+ * Unique id of the row.
40
+ */
41
+ id: PropertyKey;
42
+ /**
43
+ * Describes how a cell in a specific row is rendered in the data grid.
44
+ * Only cells that are defined in the columns will be rendered in the defined order.
45
+ */
46
+ cells: Partial<Record<keyof TEntry, DataGridRendererCell<TEntry, TMetadata>>>;
47
+ /**
48
+ * Attributes that are bound directly to the `<tr>` element of the row.
49
+ */
50
+ trAttributes?: HTMLAttributes;
51
+ };
52
+ /**
53
+ * Describes how a single cell in a specific row is rendered in the data grid.
54
+ */
55
+ export type DataGridRendererCell<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = {
56
+ /**
57
+ * The component that renders the actual cell content and is placed into the `<td>` element.
58
+ */
59
+ component: DataGridRendererCellComponent<TEntry, TMetadata>;
60
+ /**
61
+ * Attributes and data that is provided to the component using `v-bind`.
62
+ */
63
+ props: DataGridRendererCellComponentProps<TEntry, TMetadata>;
64
+ /**
65
+ * Attributes that are bound directly to the `<td>` element of the cell.
66
+ */
67
+ tdAttributes?: TdHTMLAttributes;
68
+ };
69
+ /**
70
+ * Vue component that renders the actual content of a single data grid cell.
71
+ */
72
+ export type DataGridRendererCellComponent<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = FunctionalComponent<WithHTMLAttributes<DataGridRendererCellComponentProps<TEntry, TMetadata>, TdHTMLAttributes>>;
73
+ export type DataGridRendererCellComponentProps<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata> = {
74
+ /**
75
+ * Complete row data.
76
+ */
77
+ row: TEntry;
78
+ /**
79
+ * Cell data that is provided to the component via the `metadata` prop.
80
+ */
81
+ metadata?: TMetadata;
82
+ /**
83
+ * Cell data that is provided to the component via the `modelValue` prop.
84
+ * If the cell renders readonly, this will just be the non-editable value.
85
+ */
86
+ modelValue?: TEntry[keyof TEntry];
87
+ };
@@ -0,0 +1,8 @@
1
+ export type DataGridMetadata = Record<string, unknown>;
2
+ /**
3
+ * "Raw" user data for a data grid entry/row, e.g. fetched from a backend service.
4
+ */
5
+ export type DataGridEntry = {
6
+ id: PropertyKey;
7
+ [key: PropertyKey]: unknown;
8
+ };
@@ -1,57 +1,39 @@
1
1
  import type { OnyxDialogProps } from "./types";
2
- declare function __VLS_template(): Readonly<{
3
- /**
4
- * Dialog content. For accessibility purposes it is strongly recommended
5
- * to focus an element inside the dialog when it opens. The element will depend
6
- * on your use case (e.g. an input, button etc.).
7
- */
8
- default(): unknown;
9
- }> & {
10
- /**
11
- * Dialog content. For accessibility purposes it is strongly recommended
12
- * to focus an element inside the dialog when it opens. The element will depend
13
- * on your use case (e.g. an input, button etc.).
14
- */
15
- default(): unknown;
2
+ declare function __VLS_template(): {
3
+ slots: Readonly<{
4
+ /**
5
+ * Dialog content. For accessibility purposes it is strongly recommended
6
+ * to focus an element inside the dialog when it opens. The element will depend
7
+ * on your use case (e.g. an input, button etc.).
8
+ */
9
+ default(): unknown;
10
+ }> & {
11
+ /**
12
+ * Dialog content. For accessibility purposes it is strongly recommended
13
+ * to focus an element inside the dialog when it opens. The element will depend
14
+ * on your use case (e.g. an input, button etc.).
15
+ */
16
+ default(): unknown;
17
+ };
18
+ refs: {
19
+ dialogRef: HTMLDialogElement;
20
+ };
21
+ attrs: Partial<{}>;
16
22
  };
17
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxDialogProps>, {
18
- open: boolean;
19
- modal: boolean;
20
- alert: boolean;
21
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
- close: () => void;
23
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxDialogProps>, {
24
- open: boolean;
25
- modal: boolean;
26
- alert: boolean;
27
- }>>> & {
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import("vue").DefineComponent<OnyxDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ close: () => any;
26
+ }, string, import("vue").PublicProps, Readonly<OnyxDialogProps> & Readonly<{
28
27
  onClose?: (() => any) | undefined;
29
- }, {
28
+ }>, {
30
29
  open: boolean;
31
30
  modal: boolean;
32
31
  alert: boolean;
33
- }, {}>;
34
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
34
  export default _default;
36
- type __VLS_WithDefaults<P, D> = {
37
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
- default: D[K];
39
- }> : P[K];
40
- };
41
- type __VLS_Prettify<T> = {
42
- [K in keyof T]: T[K];
43
- } & {};
44
35
  type __VLS_WithTemplateSlots<T, S> = T & {
45
36
  new (): {
46
37
  $slots: S;
47
38
  };
48
39
  };
49
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
- type __VLS_TypePropsToOption<T> = {
51
- [K in keyof T]-?: {} extends Pick<T, K> ? {
52
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
53
- } : {
54
- type: import('vue').PropType<T[K]>;
55
- required: true;
56
- };
57
- };