sit-onyx 1.0.0-beta.13 → 1.0.0-beta.14

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.
@@ -1,5 +1,6 @@
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
5
  export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & Pick<BaseSelectOption, "truncation"> & {
5
6
  /**
@@ -38,4 +39,4 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
38
39
  */
39
40
  skeleton?: number;
40
41
  };
41
- export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & AutofocusProp;
42
+ export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & AutofocusProp;
@@ -19,8 +19,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
19
19
  multiple: boolean;
20
20
  truncation: string;
21
21
  }>>>, {
22
- multiple: boolean;
23
22
  truncation: import("../../index.js").TruncationType;
23
+ multiple: boolean;
24
24
  active: boolean;
25
25
  }, {}>;
26
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
22
22
  loading: boolean;
23
23
  skeleton: boolean;
24
24
  modelValue: boolean;
25
- truncation: import("../../index").TruncationType;
25
+ truncation: import("../..").TruncationType;
26
26
  }, {}>;
27
27
  export default _default;
28
28
  type __VLS_WithDefaults<P, D> = {
@@ -1,5 +1,6 @@
1
1
  import type { InputType } from "../components/OnyxInput/types";
2
2
  import enUS from "../i18n/locales/en-US.json";
3
+ import type { BaseSelectOption } from "../types";
3
4
  export type CustomErrorType = string | FormErrorMessages;
4
5
  export type CustomValidityProp = {
5
6
  /**
@@ -19,7 +20,7 @@ export type UseCustomValidityOptions = {
19
20
  min?: number;
20
21
  max?: number;
21
22
  step?: number;
22
- };
23
+ } & Pick<BaseSelectOption, "hideLabel" | "label">;
23
24
  /**
24
25
  * Component emit as defined with `const emit = defineEmits()`
25
26
  */
@@ -80,5 +81,13 @@ export declare const useCustomValidity: (options: UseCustomValidityOptions) => {
80
81
  vCustomValidity: {
81
82
  mounted: (el: InputValidationElement) => void;
82
83
  };
84
+ /**
85
+ * A custom error or the default translation of the first invalid state if one exists.
86
+ */
83
87
  errorMessages: import("vue").ComputedRef<FormErrorMessages | undefined>;
88
+ /**
89
+ * A combination of a label (if it is hidden) and the error message (if an error exists).
90
+ * Usage e.g. on OnyxRadioButton, OnyxCheckbox, OnyxSwitch where no error message footer exists.
91
+ */
92
+ title: import("vue").ComputedRef<string | undefined>;
84
93
  };