sit-onyx 1.0.0-beta.3 → 1.0.0-beta.31

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 (92) hide show
  1. package/dist/components/OnyxButton/OnyxButton.vue.d.ts +1 -1
  2. package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +2 -2
  3. package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +2 -2
  4. package/dist/components/OnyxCheckboxGroup/types.d.ts +4 -6
  5. package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +11 -1
  6. package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +49 -0
  7. package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +11 -0
  8. package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +9 -2
  9. package/dist/components/OnyxFormElement/types.d.ts +6 -0
  10. package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +18 -1
  11. package/dist/components/OnyxInfoTooltip/types.d.ts +1 -5
  12. package/dist/components/OnyxInput/OnyxInput.vue.d.ts +3 -3
  13. package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +1 -1
  14. package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +2 -2
  15. package/dist/components/OnyxMobileNavButton/types.d.ts +4 -0
  16. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +7 -3
  17. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +6 -0
  18. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +1 -1
  19. package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +40 -12
  20. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +19 -1
  21. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +10 -4
  22. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +6 -0
  23. package/dist/components/OnyxPagination/ModernPagination.vue.d.ts +16 -0
  24. package/dist/components/OnyxPagination/OnyxPagination.vue.d.ts +30 -0
  25. package/dist/components/OnyxPagination/types.d.ts +15 -0
  26. package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +3 -3
  27. package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +2 -2
  28. package/dist/components/OnyxRadioGroup/types.d.ts +2 -6
  29. package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +4 -0
  30. package/dist/components/OnyxRipple/RippleTestWrapper.vue.d.ts +2 -0
  31. package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +5 -5
  32. package/dist/components/OnyxSelect/types.d.ts +28 -9
  33. package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +2 -2
  34. package/dist/components/OnyxSelectInput/types.d.ts +5 -12
  35. package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +50 -0
  36. package/dist/components/OnyxStepper/types.d.ts +56 -0
  37. package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +1 -1
  38. package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +3 -3
  39. package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +7 -0
  40. package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +15 -12
  41. package/dist/components/OnyxTooltip/TestWrapper.vue.d.ts +12 -0
  42. package/dist/components/OnyxTooltip/types.d.ts +22 -7
  43. package/dist/components/examples/FormExample/FormExample.vue.d.ts +2 -0
  44. package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +36 -0
  45. package/dist/components/{GridPlayground/GridElement.vue.d.ts → examples/GridPlayground/GridBadge/GridBadge.vue.d.ts} +7 -5
  46. package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +43 -0
  47. package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +29 -0
  48. package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +2 -0
  49. package/dist/composables/asymmetricComputed.d.ts +13 -0
  50. package/dist/composables/required.d.ts +1 -0
  51. package/dist/composables/useCustomValidity.d.ts +8 -1
  52. package/dist/composables/useManagedState.d.ts +11 -5
  53. package/dist/composables/useRipple.d.ts +19 -0
  54. package/dist/index.cjs +4 -4
  55. package/dist/index.d.ts +4 -0
  56. package/dist/index.js +2633 -2077
  57. package/dist/playwright/screenshots.d.ts +6 -1
  58. package/dist/style.css +1 -1
  59. package/dist/utils/attrs.d.ts +3 -3
  60. package/dist/utils/math.d.ts +1 -0
  61. package/package.json +5 -10
  62. package/src/i18n/locales/de-DE.json +19 -4
  63. package/src/i18n/locales/en-US.json +19 -4
  64. package/src/styles/global.css +1 -1
  65. package/src/styles/index.scss +7 -6
  66. package/src/styles/mixins/checkbox.scss +1 -13
  67. package/src/styles/mixins/input.scss +49 -5
  68. package/src/styles/mixins/list.scss +6 -12
  69. package/src/styles/required.scss +1 -1
  70. package/src/styles/{dark.css → variables/dark.css} +1 -13
  71. package/src/styles/variables/density-compact.css +17 -0
  72. package/src/styles/variables/density-cozy.css +17 -0
  73. package/src/styles/variables/density-default.css +18 -0
  74. package/src/styles/{light.css → variables/light.css} +1 -13
  75. package/src/styles/variables/spacing.css +20 -0
  76. package/src/styles/{themes → variables/themes}/kaufland.css +2 -2
  77. package/src/styles/{themes → variables/themes}/lidl.css +2 -2
  78. package/src/styles/{themes → variables/themes}/onyx.css +2 -2
  79. package/src/styles/{themes → variables/themes}/onyx.json +1 -1
  80. package/src/styles/{themes → variables/themes}/twogo.css +2 -2
  81. package/dist/components/GridPlayground/GridElementsIndicator.vue.d.ts +0 -22
  82. package/dist/components/GridPlayground/GridPlayground.vue.d.ts +0 -27
  83. package/dist/components/OnyxRadioGroup/OnyxRadioGroup.d.ts +0 -1
  84. package/src/styles/density.scss +0 -41
  85. package/src/types/breakpoints.ts +0 -14
  86. package/src/types/colors.ts +0 -10
  87. package/src/types/components.ts +0 -59
  88. package/src/types/fonts.ts +0 -7
  89. package/src/types/i18n.ts +0 -68
  90. package/src/types/index.ts +0 -10
  91. package/src/types/themes.ts +0 -1
  92. package/src/types/utils.ts +0 -4
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
21
  type: import("./types").ButtonType;
22
22
  color: import("./types").ButtonColor;
23
23
  disabled: boolean;
24
- loading: boolean;
25
24
  mode: import("./types").ButtonMode;
25
+ loading: boolean;
26
26
  skeleton: boolean;
27
27
  }, {}>;
28
28
  export default _default;
@@ -1,13 +1,13 @@
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<{
3
+ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  onValidityChange?: ((validity: ValidityState) => any) | undefined;
6
6
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
7
7
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
8
8
  onValidityChange?: ((validity: ValidityState) => any) | undefined;
9
9
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
- }, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxCheckboxProps<TValue>> & __VLS_BuiltInPublicProps;
10
+ }, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxCheckboxProps<TValue>> & import("vue").PublicProps;
11
11
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
12
12
  attrs: any;
13
13
  slots: ReturnType<() => {}>;
@@ -1,11 +1,11 @@
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<{
3
+ declare const _default: <TValue extends SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
6
6
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
7
7
  "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
8
- }, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue>> & __VLS_BuiltInPublicProps;
8
+ }, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue>> & import("vue").PublicProps;
9
9
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
10
10
  attrs: any;
11
11
  slots: ReturnType<() => {}>;
@@ -1,7 +1,9 @@
1
1
  import type { DensityProp } from "../../composables/density";
2
2
  import type { RequiredMarkerProp } from "../../composables/required";
3
+ import type { CustomValidityProp } from "../../composables/useCustomValidity";
3
4
  import type { AutofocusProp, BaseSelectOption, Direction, SelectOptionValue } from "../../types";
4
- export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & Pick<BaseSelectOption, "truncation"> & {
5
+ import type { OnyxFormElementProps } from "../OnyxFormElement/types";
6
+ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & Pick<BaseSelectOption, "truncation"> & Pick<OnyxFormElementProps, "label" | "hideLabel"> & {
5
7
  /**
6
8
  * Checkbox options.
7
9
  */
@@ -10,10 +12,6 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
10
12
  * Currently checked checkboxes.
11
13
  */
12
14
  modelValue?: TValue[];
13
- /**
14
- * Headline to show above all checkboxes which is also the fieldset legend.
15
- */
16
- headline?: string;
17
15
  /**
18
16
  * Direction of the checkboxes.
19
17
  */
@@ -38,4 +36,4 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
38
36
  */
39
37
  skeleton?: number;
40
38
  };
41
- export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & AutofocusProp;
39
+ export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & AutofocusProp;
@@ -1,3 +1,4 @@
1
+ import { type DensityProp } from "../../composables/density";
1
2
  declare function __VLS_template(): Readonly<{
2
3
  /**
3
4
  * Label / text to display.
@@ -17,7 +18,7 @@ declare function __VLS_template(): Readonly<{
17
18
  */
18
19
  icon?(): unknown;
19
20
  };
20
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
21
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<DensityProp>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<DensityProp>>>, {}, {}>;
21
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
22
23
  export default _default;
23
24
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -25,3 +26,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
25
26
  $slots: S;
26
27
  };
27
28
  };
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToOption<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: import('vue').PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
@@ -0,0 +1,49 @@
1
+ import { type FormErrorMessages } from "../../composables/useCustomValidity";
2
+ declare function __VLS_template(): Readonly<{
3
+ /**
4
+ * Any component. Will be wrapped in an OnyxTooltip showing
5
+ * an error message if an error message is set.
6
+ */
7
+ default(): unknown;
8
+ }> & {
9
+ /**
10
+ * Any component. Will be wrapped in an OnyxTooltip showing
11
+ * an error message if an error message is set.
12
+ */
13
+ default(): unknown;
14
+ };
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
16
+ /**
17
+ * The given component will be shown inside a tooltip when
18
+ * errorMessages are provided. Without errorMessages, the
19
+ * component will not be rendered inside a slot.
20
+ */
21
+ errorMessages?: FormErrorMessages;
22
+ /** We don't show an error if the content is not interactive */
23
+ disabled?: boolean;
24
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
25
+ /**
26
+ * The given component will be shown inside a tooltip when
27
+ * errorMessages are provided. Without errorMessages, the
28
+ * component will not be rendered inside a slot.
29
+ */
30
+ errorMessages?: FormErrorMessages;
31
+ /** We don't show an error if the content is not interactive */
32
+ disabled?: boolean;
33
+ }>>>, {}, {}>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToOption<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: import('vue').PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };
@@ -0,0 +1,11 @@
1
+ import type { MountResultJsx } from "@playwright/experimental-ct-vue";
2
+ import { type Locator, type Page } from "@playwright/test";
3
+ type PageOrLocator = Page | Locator | MountResultJsx;
4
+ type FormElementTooltip = "label" | "error" | "message";
5
+ export declare const createFormElementUtils: (page: PageOrLocator) => {
6
+ getRoot: (prev?: PageOrLocator) => Locator;
7
+ getTooltipTrigger: (type: FormElementTooltip, prev?: PageOrLocator) => Locator;
8
+ getTooltipPopover: (type: FormElementTooltip, prev?: PageOrLocator) => Locator;
9
+ triggerTooltipVisible: (type: FormElementTooltip, prev?: PageOrLocator) => Promise<void>;
10
+ };
11
+ export {};
@@ -1,17 +1,24 @@
1
1
  import type { OnyxFormElementProps } from "./types";
2
2
  declare function __VLS_template(): Readonly<{
3
3
  /** The place for the actual form element */
4
- default(): unknown;
4
+ default(props: {
5
+ id: string;
6
+ }): unknown;
5
7
  }> & {
6
8
  /** The place for the actual form element */
7
- default(): unknown;
9
+ default(props: {
10
+ id: string;
11
+ }): unknown;
8
12
  };
9
13
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxFormElementProps>, {
10
14
  required: boolean;
15
+ id: string;
11
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxFormElementProps>, {
12
17
  required: boolean;
18
+ id: string;
13
19
  }>>>, {
14
20
  required: boolean;
21
+ id: string;
15
22
  }, {}>;
16
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
24
  export default _default;
@@ -1,6 +1,12 @@
1
1
  import type { RequiredMarkerProp } from "../../composables/required";
2
2
  import type { FormErrorMessages } from "../../composables/useCustomValidity";
3
3
  export type OnyxFormElementProps = RequiredMarkerProp & {
4
+ /**
5
+ * The id of a labelable form-related element.
6
+ * If not given an id will be generated.
7
+ * The id is passed as a `default` slot property.
8
+ */
9
+ id?: string;
4
10
  /**
5
11
  * Current value of the form element.
6
12
  */
@@ -1,6 +1,23 @@
1
1
  import type { OnyxInfoTooltipProps } from "./types";
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<OnyxInfoTooltipProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<OnyxInfoTooltipProps>>>, {}, {}>;
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxInfoTooltipProps>, {
3
+ open: string;
4
+ color: string;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxInfoTooltipProps>, {
6
+ open: string;
7
+ color: string;
8
+ }>>>, {
9
+ color: Extract<import("../../index.js").OnyxColor, "neutral" | "danger">;
10
+ open: import("../OnyxTooltip/types.js").TooltipOpen;
11
+ }, {}>;
3
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_Prettify<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
4
21
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
22
  type __VLS_TypePropsToOption<T> = {
6
23
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1,6 +1,2 @@
1
1
  import type { OnyxTooltipProps } from "../OnyxTooltip/types";
2
- export type OnyxInfoTooltipProps = Required<Pick<OnyxTooltipProps, "text">> & Pick<OnyxTooltipProps, "position"> & {
3
- /**
4
- * Sets the aria-label of the info icon for accessibility / screen readers
5
- */ label?: string;
6
- };
2
+ export type OnyxInfoTooltipProps = Required<Pick<OnyxTooltipProps, "text">> & Pick<OnyxTooltipProps, "position" | "open" | "color">;
@@ -9,11 +9,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
9
9
  loading: boolean;
10
10
  skeleton: boolean;
11
11
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- validityChange: (validity: ValidityState) => void;
13
12
  blur: () => void;
13
+ change: (value: string) => void;
14
14
  focus: () => void;
15
+ validityChange: (validity: ValidityState) => void;
15
16
  "update:modelValue": (value: string) => void;
16
- change: (value: string) => void;
17
17
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxInputProps>, {
18
18
  modelValue: string;
19
19
  type: string;
@@ -34,10 +34,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
34
34
  readonly: boolean;
35
35
  required: boolean;
36
36
  disabled: boolean;
37
+ autocapitalize: import("./types").Autocapitalize;
37
38
  loading: boolean;
38
39
  skeleton: boolean;
39
40
  modelValue: string;
40
- autocapitalize: import("./types").Autocapitalize;
41
41
  }, {}>;
42
42
  export default _default;
43
43
  type __VLS_WithDefaults<P, D> = {
@@ -5,8 +5,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<On
5
5
  */
6
6
  focus: () => void | undefined;
7
7
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- "update:modelValue": (input: string) => void;
9
8
  clear: () => void;
9
+ "update:modelValue": (input: string) => void;
10
10
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<OnyxMiniSearchProps>>> & {
11
11
  "onUpdate:modelValue"?: ((input: string) => any) | undefined;
12
12
  onClear?: (() => any) | undefined;
@@ -1,12 +1,12 @@
1
1
  import type { OnyxMobileNavButtonProps } from "./types";
2
2
  declare function __VLS_template(): Readonly<{
3
3
  /**
4
- * Slot for the menu content when its open.
4
+ * Slot for the menu content when it's open.
5
5
  */
6
6
  default(): unknown;
7
7
  }> & {
8
8
  /**
9
- * Slot for the menu content when its open.
9
+ * Slot for the menu content when it's open.
10
10
  */
11
11
  default(): unknown;
12
12
  };
@@ -12,4 +12,8 @@ export type OnyxMobileNavButtonProps = {
12
12
  * If `true`, an "x" icon will be displayed.
13
13
  */
14
14
  open?: boolean;
15
+ /**
16
+ * Headline of the mobile flyout
17
+ */
18
+ headline?: string;
15
19
  };
@@ -1,8 +1,12 @@
1
1
  import { type VNode } from "vue";
2
2
  import type { SelectOptionValue } from "../../../../types";
3
3
  import type { OnyxFlyoutMenuProps } from "./types";
4
- 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<{
5
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, never>, never> & OnyxFlyoutMenuProps> & __VLS_BuiltInPublicProps;
4
+ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
6
+ "onUpdate:open"?: ((isOpen: boolean) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
8
+ "onUpdate:open"?: ((isOpen: boolean) => any) | undefined;
9
+ }, never>, "onUpdate:open"> & OnyxFlyoutMenuProps> & import("vue").PublicProps;
6
10
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
7
11
  attrs: any;
8
12
  slots: ReturnType<() => Readonly<{
@@ -40,7 +44,7 @@ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(_
40
44
  */
41
45
  footer?(): unknown;
42
46
  }>;
43
- emit: {};
47
+ emit: ((evt: "update:open", isOpen: boolean) => void) & {};
44
48
  }>) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
49
  [key: string]: any;
46
50
  }> & {
@@ -1,4 +1,10 @@
1
+ import type { ManagedProp } from "../../../../composables/useManagedState";
1
2
  export type OnyxFlyoutMenuProps = {
3
+ /**
4
+ * If the flyout is expanded or not.
5
+ * If `undefined`, the state will be managed internally.
6
+ */
7
+ open?: ManagedProp<boolean>;
2
8
  /**
3
9
  * Aria label for the flyout.
4
10
  */
@@ -2,7 +2,7 @@ import type { OnyxColor } from "../../../../types";
2
2
  export type OnyxMenuItemProps = {
3
3
  /**
4
4
  * URL that the menu item points to.
5
- * If the property is set an anchor tag will be rendered, if not a button will be shown instead
5
+ * If the property is set the menuitem will act as an anchor, otherwise it will act as an button.
6
6
  */
7
7
  href?: string;
8
8
  /**
@@ -1,10 +1,4 @@
1
- import type { OnyxNavButtonProps } from "./types";
2
- declare let __VLS_typeProps: OnyxNavButtonProps & {
3
- isMobile: boolean;
4
- };
5
- type __VLS_PublicProps = {
6
- "mobileChildrenOpen"?: boolean;
7
- } & typeof __VLS_typeProps;
1
+ import { type ManagedProp } from "../../../../composables/useManagedState";
8
2
  declare function __VLS_template(): Readonly<{
9
3
  button?(): unknown;
10
4
  options?(): unknown;
@@ -12,13 +6,47 @@ declare function __VLS_template(): Readonly<{
12
6
  button?(): unknown;
13
7
  options?(): unknown;
14
8
  };
15
- declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- "update:mobileChildrenOpen": (mobileChildrenOpen: boolean) => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
18
- "onUpdate:mobileChildrenOpen"?: ((mobileChildrenOpen: boolean) => any) | undefined;
19
- }, {}, {}>;
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<import("../../../OnyxExternalLinkIcon/types").OnyxExternalLinkIcon & {
10
+ label: string;
11
+ active?: boolean;
12
+ } & {
13
+ isMobile: boolean;
14
+ /**
15
+ * Controls the open state for the mobile children.
16
+ * Is managed internally if not provided.
17
+ */
18
+ mobileChildrenOpen: ManagedProp<boolean>;
19
+ }>, {
20
+ mobileChildrenOpen: symbol;
21
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ "update:mobileChildrenOpen": (isOpen: boolean) => void;
23
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<import("../../../OnyxExternalLinkIcon/types").OnyxExternalLinkIcon & {
24
+ label: string;
25
+ active?: boolean;
26
+ } & {
27
+ isMobile: boolean;
28
+ /**
29
+ * Controls the open state for the mobile children.
30
+ * Is managed internally if not provided.
31
+ */
32
+ mobileChildrenOpen: ManagedProp<boolean>;
33
+ }>, {
34
+ mobileChildrenOpen: symbol;
35
+ }>>> & {
36
+ "onUpdate:mobileChildrenOpen"?: ((isOpen: boolean) => any) | undefined;
37
+ }, {
38
+ mobileChildrenOpen: ManagedProp<boolean>;
39
+ }, {}>;
20
40
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
41
  export default _default;
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
22
50
  type __VLS_WithTemplateSlots<T, S> = T & {
23
51
  new (): {
24
52
  $slots: S;
@@ -18,9 +18,27 @@ declare function __VLS_template(): Readonly<{
18
18
  */
19
19
  footer?(): unknown;
20
20
  };
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<OnyxUserMenuProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<OnyxUserMenuProps>>>, {}, {}>;
21
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxUserMenuProps>, {
22
+ flyoutOpen: symbol;
23
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ "update:flyoutOpen": (isOpen: boolean) => void;
25
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxUserMenuProps>, {
26
+ flyoutOpen: symbol;
27
+ }>>> & {
28
+ "onUpdate:flyoutOpen"?: ((isOpen: boolean) => any) | undefined;
29
+ }, {
30
+ flyoutOpen: import("../../../../composables/useManagedState").ManagedProp<boolean>;
31
+ }, {}>;
22
32
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
23
33
  export default _default;
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
24
42
  type __VLS_WithTemplateSlots<T, S> = T & {
25
43
  new (): {
26
44
  $slots: S;
@@ -1,8 +1,14 @@
1
+ import { type ManagedProp } from "../../../../composables/useManagedState";
1
2
  import type { SelectOptionValue } from "../../../../types";
2
- 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<{
3
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, never>, never> & {
3
+ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<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:flyoutOpen"?: ((isOpen: boolean) => any) | undefined;
6
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
7
+ "onUpdate:flyoutOpen"?: ((isOpen: boolean) => any) | undefined;
8
+ }, never>, "onUpdate:flyoutOpen"> & {
4
9
  isMobile: boolean;
5
- }> & __VLS_BuiltInPublicProps;
10
+ flyoutOpen: ManagedProp<boolean>;
11
+ }> & import("vue").PublicProps;
6
12
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
7
13
  attrs: any;
8
14
  slots: ReturnType<() => Readonly<{
@@ -16,7 +22,7 @@ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(_
16
22
  options?(): unknown;
17
23
  footer?(): unknown;
18
24
  }>;
19
- emit: {};
25
+ emit: ((evt: "update:flyoutOpen", isOpen: boolean) => void) & {};
20
26
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
27
  [key: string]: any;
22
28
  }> & {
@@ -1,3 +1,4 @@
1
+ import type { ManagedProp } from "../../../../composables/useManagedState";
1
2
  export type OnyxUserMenuProps = {
2
3
  /**
3
4
  * User name.
@@ -11,4 +12,9 @@ export type OnyxUserMenuProps = {
11
12
  * Optional user description that is displayed when the menu is opened.
12
13
  */
13
14
  description?: string;
15
+ /**
16
+ * If the flyout is expanded or not. Only has an effect in desktop (non-mobile) mode.
17
+ * If `undefined`, the state will be managed internally.
18
+ */
19
+ flyoutOpen?: ManagedProp<boolean>;
14
20
  };
@@ -0,0 +1,16 @@
1
+ import type { OnyxPaginationProps } from "./types";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<OnyxPaginationProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ "update:modelValue": (page: number) => void;
4
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<OnyxPaginationProps>>> & {
5
+ "onUpdate:modelValue"?: ((page: number) => any) | undefined;
6
+ }, {}, {}>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToOption<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,30 @@
1
+ import type { OnyxPaginationProps } from "./types";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxPaginationProps>, {
3
+ disabled: boolean;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (page: number) => void;
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxPaginationProps>, {
7
+ disabled: boolean;
8
+ }>>> & {
9
+ "onUpdate:modelValue"?: ((page: number) => any) | undefined;
10
+ }, {
11
+ disabled: boolean;
12
+ }, {}>;
13
+ export default _default;
14
+ type __VLS_WithDefaults<P, D> = {
15
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
16
+ default: D[K];
17
+ }> : P[K];
18
+ };
19
+ type __VLS_Prettify<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToOption<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
@@ -0,0 +1,15 @@
1
+ import type { DensityProp } from "../../composables/density";
2
+ export type OnyxPaginationProps = DensityProp & {
3
+ /**
4
+ * The currently selected page (first page is `1`).
5
+ */
6
+ modelValue: number;
7
+ /**
8
+ * The maximum number of pages.
9
+ */
10
+ pages: number;
11
+ /**
12
+ * Whether the pagination should be disabled (e.g. while loading data).
13
+ */
14
+ disabled?: boolean;
15
+ };
@@ -1,17 +1,17 @@
1
1
  import type { SelectOptionValue } from "../../types";
2
2
  import type { OnyxRadioButtonProps } 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<{
3
+ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  onChange?: ((value: boolean) => any) | undefined;
6
6
  onValidityChange?: ((validity: ValidityState) => any) | undefined;
7
7
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
8
8
  onChange?: ((value: boolean) => any) | undefined;
9
9
  onValidityChange?: ((validity: ValidityState) => any) | undefined;
10
- }, never>, "onChange" | "onValidityChange"> & OnyxRadioButtonProps<TValue>> & __VLS_BuiltInPublicProps;
10
+ }, never>, "onChange" | "onValidityChange"> & OnyxRadioButtonProps<TValue>> & import("vue").PublicProps;
11
11
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
12
12
  attrs: any;
13
13
  slots: ReturnType<() => {}>;
14
- emit: (((evt: "validityChange", validity: ValidityState) => void) & ((evt: "change", value: boolean) => void)) & {};
14
+ emit: (((evt: "change", value: boolean) => void) & ((evt: "validityChange", validity: ValidityState) => void)) & {};
15
15
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
16
  [key: string]: any;
17
17
  }> & {
@@ -1,13 +1,13 @@
1
1
  import type { SelectOptionValue } from "../../types";
2
2
  import type { OnyxRadioGroupProps } 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<{
3
+ declare const _default: <TValue extends SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  onValidityChange?: ((validity: ValidityState) => any) | undefined;
6
6
  "onUpdate:modelValue"?: ((selected: TValue) => any) | undefined;
7
7
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
8
8
  onValidityChange?: ((validity: ValidityState) => any) | undefined;
9
9
  "onUpdate:modelValue"?: ((selected: TValue) => any) | undefined;
10
- }, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxRadioGroupProps<TValue>> & __VLS_BuiltInPublicProps;
10
+ }, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxRadioGroupProps<TValue>> & import("vue").PublicProps;
11
11
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
12
12
  attrs: any;
13
13
  slots: ReturnType<() => {}>;
@@ -2,7 +2,8 @@ import type { DensityProp } from "../../composables/density";
2
2
  import type { RequiredMarkerProp } from "../../composables/required";
3
3
  import type { CustomValidityProp } from "../../composables/useCustomValidity";
4
4
  import type { AutofocusProp, BaseSelectOption, Direction, SelectOptionValue } from "../../types";
5
- export type OnyxRadioGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & RequiredMarkerProp & CustomValidityProp & Pick<BaseSelectOption, "truncation"> & {
5
+ import type { OnyxFormElementProps } from "../OnyxFormElement/types";
6
+ export type OnyxRadioGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & RequiredMarkerProp & CustomValidityProp & Pick<BaseSelectOption, "truncation"> & Pick<OnyxFormElementProps, "label" | "hideLabel"> & {
6
7
  /**
7
8
  * Options for the individual radio buttons of the group.
8
9
  */
@@ -17,11 +18,6 @@ export type OnyxRadioGroupProps<TValue extends SelectOptionValue = SelectOptionV
17
18
  * The selected radio button option.
18
19
  */
19
20
  modelValue?: TValue;
20
- /**
21
- * Headline shown above the radio group, which is also the fieldset legend.
22
- * It will also show the required indicator, if `require` is set to `true`
23
- */
24
- headline?: string;
25
21
  /**
26
22
  * Disable the radio group.
27
23
  */
@@ -0,0 +1,4 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ events: import("vue").Ref<Record<string, (event: MouseEvent) => void>>;
3
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
+ export default _default;