sit-onyx 1.0.0-beta.6 → 1.0.0-beta.8
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,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(
|
|
4
|
+
default(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
}): unknown;
|
|
5
7
|
}> & {
|
|
6
8
|
/** The place for the actual form element */
|
|
7
|
-
default(
|
|
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
|
*/
|