@rebilly/revel 6.30.21 → 6.30.22

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.
package/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- ## [6.30.21](https://github.com/Rebilly/rebilly/compare/revel-v6.30.20...revel-v6.30.21) (2024-07-16)
1
+ ## [6.30.22](https://github.com/Rebilly/rebilly/compare/revel-v6.30.21...revel-v6.30.22) (2024-07-17)
@@ -1,69 +1,56 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ interface Props {
2
2
  /**
3
- * Append text label near checkbox
3
+ * Displays a label for the toggle
4
4
  */
5
- label: {
6
- type: StringConstructor;
7
- default: null;
8
- };
9
- /**
10
- * Native html input name for element
11
- */
12
- name: {
13
- type: StringConstructor;
14
- default: () => string;
15
- };
16
- /**
17
- * Used to decide if checkbox is selected
18
- */
19
- modelValue: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- /**
24
- * Disabled state similar to navite html element
25
- */
26
- disabled: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- }, unknown, unknown, {}, {
31
- change(event: Event): void;
32
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
- /**
34
- * Append text label near checkbox
35
- */
36
- label: {
37
- type: StringConstructor;
38
- default: null;
39
- };
5
+ label?: Nullable<string>;
40
6
  /**
41
- * Native html input name for element
7
+ * Adds a unique id to the toggle
42
8
  */
43
- name: {
44
- type: StringConstructor;
45
- default: () => string;
46
- };
9
+ name?: string;
47
10
  /**
48
- * Used to decide if checkbox is selected
11
+ * Parent model for the component
49
12
  */
50
- modelValue: {
51
- type: BooleanConstructor;
52
- default: boolean;
53
- };
13
+ modelValue?: boolean;
54
14
  /**
55
- * Disabled state similar to navite html element
15
+ * Disables the toggle
56
16
  */
57
- disabled: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- }>> & {
62
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
17
+ disabled?: boolean;
18
+ }
19
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
20
+ label: null;
21
+ name: string;
22
+ modelValue: boolean;
23
+ disabled: boolean;
24
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: boolean) => void;
26
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
+ label: null;
28
+ name: string;
29
+ modelValue: boolean;
30
+ disabled: boolean;
31
+ }>>> & {
32
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
63
33
  }, {
64
- label: string;
34
+ label: Nullable<string>;
65
35
  name: string;
66
36
  disabled: boolean;
67
37
  modelValue: boolean;
68
38
  }>;
69
39
  export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: import('vue').PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};