sit-onyx 1.0.0-beta.152 → 1.0.0-beta.154

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 (66) hide show
  1. package/dist/components/OnyxAccordion/OnyxAccordion.vue.d.ts +15 -22
  2. package/dist/components/OnyxAccordion/types.d.ts +10 -6
  3. package/dist/components/OnyxAccordionItem/OnyxAccordionItem.vue.d.ts +12 -32
  4. package/dist/components/OnyxAccordionItem/types.d.ts +3 -2
  5. package/dist/components/OnyxAlertDialog/OnyxAlertDialog.vue.d.ts +22 -48
  6. package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +11 -26
  7. package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +7 -18
  8. package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +7 -18
  9. package/dist/components/OnyxBottomBar/OnyxBottomBar.vue.d.ts +11 -26
  10. package/dist/components/OnyxButton/ButtonOrLinkLayout.vue.d.ts +16 -0
  11. package/dist/components/OnyxButton/types.d.ts +6 -0
  12. package/dist/components/OnyxCard/OnyxCard.vue.d.ts +7 -18
  13. package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +3 -3
  14. package/dist/components/OnyxDataGrid/OnyxDataGrid.vue.d.ts +1 -8
  15. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue.d.ts +1 -8
  16. package/dist/components/OnyxDataGrid/features/HeaderCell.vue.d.ts +4 -12
  17. package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +6 -5
  18. package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +13 -27
  19. package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +11 -26
  20. package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +12 -25
  21. package/dist/components/OnyxForm/FormElementTestWrapper.vue.d.ts +8 -3
  22. package/dist/components/OnyxForm/OnyxForm.vue.d.ts +7 -18
  23. package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +3 -8
  24. package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +7 -18
  25. package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +5 -14
  26. package/dist/components/OnyxIconButton/types.d.ts +2 -2
  27. package/dist/components/OnyxInput/OnyxInput.vue.d.ts +19 -37
  28. package/dist/components/OnyxLink/OnyxLink.vue.d.ts +7 -18
  29. package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +7 -18
  30. package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +6 -5
  31. package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +7 -18
  32. package/dist/components/OnyxModalDialog/OnyxModalDialog.vue.d.ts +16 -36
  33. package/dist/components/OnyxMoreList/OnyxMoreList.vue.d.ts +19 -39
  34. package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +7 -18
  35. package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +31 -63
  36. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +3 -25
  37. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +7 -18
  38. package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +16 -33
  39. package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonTrigger.vue.d.ts +7 -18
  40. package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +53 -124
  41. package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +7 -18
  42. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +14 -29
  43. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +3 -16
  44. package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +9 -22
  45. package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +3 -3
  46. package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +4 -3
  47. package/dist/components/OnyxRouterLink/OnyxRouterLink.vue.d.ts +4 -12
  48. package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +6 -25
  49. package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +7 -18
  50. package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +6 -5
  51. package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +7 -6
  52. package/dist/components/OnyxSystemButton/types.d.ts +1 -1
  53. package/dist/components/OnyxTab/OnyxTab.vue.d.ts +11 -26
  54. package/dist/components/OnyxTable/OnyxTable.vue.d.ts +20 -44
  55. package/dist/components/OnyxTabs/OnyxTabs.vue.d.ts +1 -6
  56. package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +6 -5
  57. package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +22 -45
  58. package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +7 -18
  59. package/dist/components/examples/ComponentShowcase/ComponentShowcase.vue.d.ts +2 -2
  60. package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +13 -27
  61. package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +4 -3
  62. package/dist/index.cjs +4 -4
  63. package/dist/index.js +1569 -1516
  64. package/dist/style.css +1 -1
  65. package/package.json +6 -6
  66. package/dist/components/OnyxButton/OnyxButton.vue.d.ts +0 -25
@@ -1,30 +1,23 @@
1
1
  import { type OnyxAccordionProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Displays OnyxAccordionItem components.
7
- */
8
- default(): unknown;
9
- }> & {
2
+ 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<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
5
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & OnyxAccordionProps<TValue> & Partial<{}>> & import("vue").PublicProps;
6
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
7
+ attrs: any;
8
+ slots: {
10
9
  /**
11
10
  * Displays OnyxAccordionItem components.
12
11
  */
13
12
  default(): unknown;
14
13
  };
15
- refs: {};
16
- rootEl: HTMLDivElement;
14
+ emit: (evt: "update:modelValue", value: TValue[]) => void;
15
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
+ [key: string]: any;
17
+ }> & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
17
19
  };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import("vue").DefineComponent<OnyxAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAccordionProps> & Readonly<{}>, {
20
- exclusive: boolean;
21
- disabled: boolean;
22
- skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
20
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
27
- new (): {
28
- $slots: S;
29
- };
30
- };
21
+ type __VLS_PrettifyLocal<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
@@ -1,7 +1,11 @@
1
1
  import type { SkeletonInjected } from "src/composables/useSkeletonState";
2
2
  import type { InjectionKey, Ref } from "vue";
3
3
  import type { DensityProp } from "../../composables/density";
4
- export type OnyxAccordionProps = DensityProp & {
4
+ export type OnyxAccordionProps<TValue extends PropertyKey> = DensityProp & {
5
+ /**
6
+ * Currently opened items. Will include the `value` property of the nested `OnyxAccordionItems`.
7
+ */
8
+ modelValue?: TValue[];
5
9
  /**
6
10
  * if `true`, only one accordion item can be open at the same time.
7
11
  */
@@ -15,18 +19,18 @@ export type OnyxAccordionProps = DensityProp & {
15
19
  */
16
20
  skeleton?: SkeletonInjected;
17
21
  };
18
- export type AccordionInjectionKey = InjectionKey<{
22
+ export type AccordionInjectionKey<TValue extends PropertyKey> = InjectionKey<{
19
23
  /**
20
- * A reactive set containing the IDs of currently open AccordionItems.
24
+ * IDs of currently open AccordionItems.
21
25
  */
22
- openItems: Ref<Set<string>>;
26
+ openItems: Readonly<Ref<PropertyKey[]>>;
23
27
  /**
24
28
  * Function to update the open state of an AccordionItem.
25
29
  * @param id - The unique ID of the AccordionItem.
26
30
  * @param value - Whether the AccordionItem should be open (true) or closed (false).
27
31
  */
28
- updateOpen: (id: string, value: boolean) => void;
32
+ updateOpen: (id: TValue, value: boolean) => void;
29
33
  disabled: Ref<boolean>;
30
34
  skeleton: Ref<SkeletonInjected>;
31
35
  }>;
32
- export declare const ACCORDION_INJECTION_KEY: AccordionInjectionKey;
36
+ export declare const ACCORDION_INJECTION_KEY: AccordionInjectionKey<PropertyKey>;
@@ -1,41 +1,21 @@
1
1
  import type { OnyxAccordionItemProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Displays the header content.
7
- */
8
- header(): unknown;
9
- /**
10
- * Displays the panel content.
11
- */
12
- default?(): unknown;
13
- }> & {
14
- /**
15
- * Displays the header content.
16
- */
17
- header(): unknown;
18
- /**
19
- * Displays the panel content.
20
- */
21
- default?(): unknown;
22
- };
23
- refs: {};
24
- rootEl: any;
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Displays the header content.
5
+ */
6
+ header(): unknown;
7
+ /**
8
+ * Displays the panel content.
9
+ */
10
+ default?(): unknown;
25
11
  };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
- declare const __VLS_component: import("vue").DefineComponent<OnyxAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- "update:open": (isOpen: boolean) => any;
29
- }, string, import("vue").PublicProps, Readonly<OnyxAccordionItemProps> & Readonly<{
30
- "onUpdate:open"?: ((isOpen: boolean) => any) | undefined;
31
- }>, {
32
- open: boolean;
12
+ declare const __VLS_component: import("vue").DefineComponent<OnyxAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAccordionItemProps> & Readonly<{}>, {
33
13
  disabled: boolean;
34
14
  skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
35
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
17
  export default _default;
38
- type __VLS_WithTemplateSlots<T, S> = T & {
18
+ type __VLS_WithSlots<T, S> = T & {
39
19
  new (): {
40
20
  $slots: S;
41
21
  };
@@ -2,9 +2,10 @@ import type { DensityProp } from "../../composables/density";
2
2
  import type { SkeletonInjected } from "../../composables/useSkeletonState";
3
3
  export type OnyxAccordionItemProps = DensityProp & {
4
4
  /**
5
- * Whether the accordion is open
5
+ * Value that is used inside the `OnyxAccordion` when the item is open.
6
+ * Must be unique across one accordion.
6
7
  */
7
- open?: boolean;
8
+ value: PropertyKey;
8
9
  /**
9
10
  * Whether the accordion is disabled
10
11
  */
@@ -1,59 +1,33 @@
1
1
  import type { OnyxAlertDialogProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Dialog content.
7
- */
8
- default(): unknown;
9
- /**
10
- * Optional slot to override the headline with custom content.
11
- * If unset, the `label` property will be shown.
12
- */
13
- headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
14
- /**
15
- * Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
16
- * For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
17
- *
18
- * @example
19
- * ```vue
20
- * <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
21
- * ```
22
- */
23
- actions?(): unknown;
24
- }> & {
25
- /**
26
- * Dialog content.
27
- */
28
- default(): unknown;
29
- /**
30
- * Optional slot to override the headline with custom content.
31
- * If unset, the `label` property will be shown.
32
- */
33
- headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
34
- /**
35
- * Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
36
- * For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
37
- *
38
- * @example
39
- * ```vue
40
- * <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
41
- * ```
42
- */
43
- actions?(): unknown;
44
- };
45
- refs: {};
46
- rootEl: any;
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;
47
22
  };
48
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
49
23
  declare const __VLS_component: import("vue").DefineComponent<OnyxAlertDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
24
  close: () => any;
51
25
  }, string, import("vue").PublicProps, Readonly<OnyxAlertDialogProps> & Readonly<{
52
26
  onClose?: (() => any) | undefined;
53
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
54
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
55
29
  export default _default;
56
- type __VLS_WithTemplateSlots<T, S> = T & {
30
+ type __VLS_WithSlots<T, S> = T & {
57
31
  new (): {
58
32
  $slots: S;
59
33
  };
@@ -1,35 +1,20 @@
1
1
  import type { OnyxAppLayoutProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /** Navigation area of the application */
6
- navBar?(): unknown;
7
- /** Page content area of the application */
8
- default(): unknown;
9
- /** Overlays that cover the page and exclude the nav area */
10
- pageOverlay?(): unknown;
11
- /** Overlays that cover the complete page */
12
- appOverlay?(): unknown;
13
- }> & {
14
- /** Navigation area of the application */
15
- navBar?(): unknown;
16
- /** Page content area of the application */
17
- default(): unknown;
18
- /** Overlays that cover the page and exclude the nav area */
19
- pageOverlay?(): unknown;
20
- /** Overlays that cover the complete page */
21
- appOverlay?(): unknown;
22
- };
23
- refs: {};
24
- rootEl: HTMLDivElement;
2
+ type __VLS_Slots = {
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;
25
11
  };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
12
  declare const __VLS_component: import("vue").DefineComponent<OnyxAppLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAppLayoutProps> & Readonly<{}>, {
28
13
  navBarAlignment: "top" | "left";
29
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
30
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
31
16
  export default _default;
32
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
33
18
  new (): {
34
19
  $slots: S;
35
20
  };
@@ -1,24 +1,13 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: Readonly<{
4
- /**
5
- * Default slot to place the avatars.
6
- */
7
- default(): unknown;
8
- }> & {
9
- /**
10
- * Default slot to place the avatars.
11
- */
12
- default(): unknown;
13
- };
14
- refs: {};
15
- rootEl: HTMLDivElement;
1
+ type __VLS_Slots = {
2
+ /**
3
+ * Default slot to place the avatars.
4
+ */
5
+ default(): unknown;
16
6
  };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
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, {}, HTMLDivElement>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
9
  export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
10
+ type __VLS_WithSlots<T, S> = T & {
22
11
  new (): {
23
12
  $slots: S;
24
13
  };
@@ -1,28 +1,17 @@
1
1
  import type { OnyxBadgeProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Badge content.
7
- */
8
- default?(): unknown;
9
- }> & {
10
- /**
11
- * Badge content.
12
- */
13
- default?(): unknown;
14
- };
15
- refs: {};
16
- rootEl: HTMLDivElement;
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Badge content.
5
+ */
6
+ default?(): unknown;
17
7
  };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
8
  declare const __VLS_component: import("vue").DefineComponent<OnyxBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBadgeProps> & Readonly<{}>, {
20
9
  color: import("../../index.ts").OnyxColor;
21
10
  dot: boolean;
22
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
13
  export default _default;
25
- type __VLS_WithTemplateSlots<T, S> = T & {
14
+ type __VLS_WithSlots<T, S> = T & {
26
15
  new (): {
27
16
  $slots: S;
28
17
  };
@@ -1,35 +1,20 @@
1
1
  import type { OnyxBottomBarProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Bottom bar content. This slot is left aligned and should be used by buttons and icon buttons.
7
- */
8
- left?(): unknown;
9
- /**
10
- * Bottom bar content. This slot is right aligned and should be used by buttons and icon buttons.
11
- */
12
- default?(): unknown;
13
- }> & {
14
- /**
15
- * Bottom bar content. This slot is left aligned and should be used by buttons and icon buttons.
16
- */
17
- left?(): unknown;
18
- /**
19
- * Bottom bar content. This slot is right aligned and should be used by buttons and icon buttons.
20
- */
21
- default?(): unknown;
22
- };
23
- refs: {};
24
- rootEl: HTMLDivElement;
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;
25
11
  };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
12
  declare const __VLS_component: import("vue").DefineComponent<OnyxBottomBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxBottomBarProps> & Readonly<{}>, {
28
13
  hideBorder: boolean;
29
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
30
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
31
16
  export default _default;
32
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
33
18
  new (): {
34
19
  $slots: S;
35
20
  };
@@ -0,0 +1,16 @@
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<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -2,6 +2,7 @@ import type { DensityProp } from "../../composables/density";
2
2
  import type { SkeletonInjected } from "../../composables/useSkeletonState";
3
3
  import type { AutofocusProp } from "../../types";
4
4
  import type { FormInjected } from "../OnyxForm/OnyxForm.core";
5
+ import type { WithLinkProp } from "../OnyxRouterLink/types";
5
6
  export type OnyxButtonProps = DensityProp & AutofocusProp & {
6
7
  /**
7
8
  * The text content of the button.
@@ -35,6 +36,11 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
35
36
  * Whether to show a skeleton button.
36
37
  */
37
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"];
38
44
  };
39
45
  export declare const BUTTON_TYPES: readonly ["button", "submit", "reset"];
40
46
  export type ButtonType = (typeof BUTTON_TYPES)[number];
@@ -1,27 +1,16 @@
1
1
  import type { OnyxCardProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Card content.
7
- */
8
- default(): unknown;
9
- }> & {
10
- /**
11
- * Card content.
12
- */
13
- default(): unknown;
14
- };
15
- refs: {};
16
- rootEl: any;
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Card content.
5
+ */
6
+ default(): unknown;
17
7
  };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
8
  declare const __VLS_component: import("vue").DefineComponent<OnyxCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxCardProps> & Readonly<{}>, {
20
9
  clickable: boolean;
21
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
12
  export default _default;
24
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
25
14
  new (): {
26
15
  $slots: S;
27
16
  };
@@ -2,15 +2,15 @@ import type { SelectOptionValue } from "../../types";
2
2
  import type { OnyxCheckboxProps } from "./types";
3
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
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
- readonly onValidityChange?: ((validity: ValidityState) => any) | undefined;
6
5
  readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxCheckboxProps<TValue> & Partial<{}>> & import("vue").PublicProps;
6
+ readonly onValidityChange?: ((validity: ValidityState) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onValidityChange"> & OnyxCheckboxProps<TValue> & Partial<{}>> & import("vue").PublicProps;
8
8
  expose(exposed: import("vue").ShallowUnwrapRef<{
9
9
  input: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
10
10
  }>): void;
11
11
  attrs: any;
12
12
  slots: {};
13
- emit: ((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void);
13
+ emit: ((evt: "update:modelValue", value: boolean) => void) & ((evt: "validityChange", validity: ValidityState) => void);
14
14
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
15
  [key: string]: any;
16
16
  }> & {
@@ -4,14 +4,7 @@ declare const _default: <TEntry extends DataGridEntry, TTypeRenderer extends Typ
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & OnyxDataGridProps<TEntry, TTypeRenderer, TFeatureName, TFeatures> & Partial<{}>> & import("vue").PublicProps;
5
5
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
6
6
  attrs: any;
7
- slots: Readonly<{
8
- /**
9
- * Optional slot to customize the empty state when no data exist.
10
- *
11
- * If unset, the default empty content of OnyxTable will be displayed.
12
- */
13
- empty?(): unknown;
14
- }> & {
7
+ slots: {
15
8
  /**
16
9
  * Optional slot to customize the empty state when no data exist.
17
10
  *
@@ -4,14 +4,7 @@ declare const _default: <TEntry extends DataGridEntry, TMetadata extends DataGri
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & OnyxDataGridRendererProps<TEntry, TMetadata> & Partial<{}>> & import("vue").PublicProps;
5
5
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
6
6
  attrs: any;
7
- slots: Readonly<{
8
- /**
9
- * Optional slot to customize the empty state when no data exist.
10
- *
11
- * If unset, the default empty content of OnyxTable will be displayed.
12
- */
13
- empty?(): unknown;
14
- }> & {
7
+ slots: {
15
8
  /**
16
9
  * Optional slot to customize the empty state when no data exist.
17
10
  *
@@ -4,21 +4,13 @@ type __VLS_Props = {
4
4
  */
5
5
  label: string;
6
6
  };
7
- declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
- slots: Readonly<{
10
- actions?(): unknown;
11
- }> & {
12
- actions?(): unknown;
13
- };
14
- refs: {};
15
- rootEl: HTMLDivElement;
7
+ type __VLS_Slots = {
8
+ actions?(): unknown;
16
9
  };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
10
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
12
  export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
22
14
  new (): {
23
15
  $slots: S;
24
16
  };
@@ -1,10 +1,13 @@
1
1
  import type { OnyxDatePickerProps } from "./types";
2
+ type __VLS_TemplateRefs = {
3
+ inputRef: typeof __VLS_nativeElements['input'];
4
+ };
2
5
  declare const _default: import("vue").DefineComponent<OnyxDatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- validityChange: (validity: ValidityState) => any;
4
6
  "update:modelValue": (value?: string | undefined) => any;
7
+ validityChange: (validity: ValidityState) => any;
5
8
  }, string, import("vue").PublicProps, Readonly<OnyxDatePickerProps> & Readonly<{
6
- onValidityChange?: ((validity: ValidityState) => any) | undefined;
7
9
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
10
+ onValidityChange?: ((validity: ValidityState) => any) | undefined;
8
11
  }>, {
9
12
  required: boolean;
10
13
  type: "date" | "datetime-local";
@@ -13,7 +16,5 @@ declare const _default: import("vue").DefineComponent<OnyxDatePickerProps, {}, {
13
16
  readonly: boolean;
14
17
  skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
15
18
  showError: boolean | symbol | "touched";
16
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
17
- inputRef: HTMLInputElement;
18
- }, any>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, any>;
19
20
  export default _default;
@@ -1,27 +1,15 @@
1
1
  import type { OnyxDialogProps } from "./types";
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- /**
6
- * Dialog content. For accessibility purposes it is strongly recommended
7
- * to focus an element inside the dialog when it opens. The element will depend
8
- * on your use case (e.g. an input, button etc.).
9
- */
10
- default(): unknown;
11
- }> & {
12
- /**
13
- * Dialog content. For accessibility purposes it is strongly recommended
14
- * to focus an element inside the dialog when it opens. The element will depend
15
- * on your use case (e.g. an input, button etc.).
16
- */
17
- default(): unknown;
18
- };
19
- refs: {
20
- dialogRef: HTMLDialogElement;
21
- };
22
- rootEl: any;
2
+ type __VLS_Slots = {
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
+ type __VLS_TemplateRefs = {
11
+ dialogRef: typeof __VLS_nativeElements['dialog'];
23
12
  };
24
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
13
  declare const __VLS_component: import("vue").DefineComponent<OnyxDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
14
  close: () => any;
27
15
  }, string, import("vue").PublicProps, Readonly<OnyxDialogProps> & Readonly<{
@@ -30,12 +18,10 @@ declare const __VLS_component: import("vue").DefineComponent<OnyxDialogProps, {}
30
18
  open: boolean;
31
19
  alert: boolean;
32
20
  modal: boolean;
33
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
34
- dialogRef: HTMLDialogElement;
35
- }, any>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, any>;
22
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
23
  export default _default;
38
- type __VLS_WithTemplateSlots<T, S> = T & {
24
+ type __VLS_WithSlots<T, S> = T & {
39
25
  new (): {
40
26
  $slots: S;
41
27
  };