bonkers-ui 1.0.63 → 1.0.65
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/CONSTANTS.d.ts +1 -0
- package/CONSTANTS.d.ts.map +1 -0
- package/_types/sizing.js.map +1 -1
- package/bonkers-ui.umd.js +3 -3
- package/bonkers-ui.umd.js.map +1 -1
- package/components/ui-alert/_types.d.ts +1 -0
- package/components/ui-alert/_types.d.ts.map +1 -0
- package/components/ui-alert/index.d.ts +24 -56
- package/components/ui-alert/index.d.ts.map +1 -0
- package/components/ui-alert/ui-alert.vue.d.ts +3 -2
- package/components/ui-alert/ui-alert.vue.d.ts.map +1 -0
- package/components/ui-badge/_typings.d.ts +1 -0
- package/components/ui-badge/_typings.d.ts.map +1 -0
- package/components/ui-badge/index.d.ts +27 -73
- package/components/ui-badge/index.d.ts.map +1 -0
- package/components/ui-badge/ui-badge.vue.d.ts +3 -4
- package/components/ui-badge/ui-badge.vue.d.ts.map +1 -0
- package/components/ui-badge/ui-badge.vue.js +33 -37
- package/components/ui-badge/ui-badge.vue.js.map +1 -1
- package/components/ui-ber-rank/_types.d.ts +1 -0
- package/components/ui-ber-rank/_types.d.ts.map +1 -0
- package/components/ui-ber-rank/index.d.ts +3 -2
- package/components/ui-ber-rank/index.d.ts.map +1 -0
- package/components/ui-ber-rank/ui-ber-rank.vue.d.ts +3 -2
- package/components/ui-ber-rank/ui-ber-rank.vue.d.ts.map +1 -0
- package/components/ui-ber-rank/ui-ber-rank.vue.js +6 -6
- package/components/ui-ber-rank/ui-ber-rank.vue.js.map +1 -1
- package/components/ui-button/_typings.d.ts +1 -0
- package/components/ui-button/_typings.d.ts.map +1 -0
- package/components/ui-button/index.d.ts +52 -86
- package/components/ui-button/index.d.ts.map +1 -0
- package/components/ui-button/ui-button.vue.d.ts +3 -2
- package/components/ui-button/ui-button.vue.d.ts.map +1 -0
- package/components/ui-card-cta/index.d.ts +40 -75
- package/components/ui-card-cta/index.d.ts.map +1 -0
- package/components/ui-card-cta/ui-card-cta.vue.d.ts +3 -2
- package/components/ui-card-cta/ui-card-cta.vue.d.ts.map +1 -0
- package/components/ui-card-result/index.d.ts +40 -75
- package/components/ui-card-result/index.d.ts.map +1 -0
- package/components/ui-card-result/ui-card-result.vue.d.ts +3 -2
- package/components/ui-card-result/ui-card-result.vue.d.ts.map +1 -0
- package/components/ui-card-result/ui-card-result.vue.js +5 -5
- package/components/ui-card-result/ui-card-result.vue2.js +18 -18
- package/components/ui-card-simple/index.d.ts +10 -39
- package/components/ui-card-simple/index.d.ts.map +1 -0
- package/components/ui-card-simple/ui-card-simple.vue.d.ts +3 -2
- package/components/ui-card-simple/ui-card-simple.vue.d.ts.map +1 -0
- package/components/ui-checkbox/index.d.ts +51 -87
- package/components/ui-checkbox/index.d.ts.map +1 -0
- package/components/ui-checkbox/ui-checkbox.vue.d.ts +5 -4
- package/components/ui-checkbox/ui-checkbox.vue.d.ts.map +1 -0
- package/components/ui-checkbox/ui-checkbox.vue.js +2 -2
- package/components/ui-checkbox/ui-checkbox.vue2.js +8 -8
- package/components/ui-checkbox/ui-checkbox.vue2.js.map +1 -1
- package/components/ui-dropdown/_typings.d.ts +1 -0
- package/components/ui-dropdown/_typings.d.ts.map +1 -0
- package/components/ui-dropdown/index.d.ts +48 -90
- package/components/ui-dropdown/index.d.ts.map +1 -0
- package/components/ui-dropdown/ui-dropdown.vue.d.ts +3 -5
- package/components/ui-dropdown/ui-dropdown.vue.d.ts.map +1 -0
- package/components/ui-dropdown/ui-dropdown.vue.js +19 -20
- package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -1
- package/components/ui-icon/_typings.d.ts +1 -0
- package/components/ui-icon/_typings.d.ts.map +1 -0
- package/components/ui-icon/index.d.ts +3 -2
- package/components/ui-icon/index.d.ts.map +1 -0
- package/components/ui-icon/ui-icon.vue.d.ts +3 -2
- package/components/ui-icon/ui-icon.vue.d.ts.map +1 -0
- package/components/ui-icon/ui-icon.vue.js +15 -15
- package/components/ui-icon-wrapper/_typings.d.ts +1 -0
- package/components/ui-icon-wrapper/_typings.d.ts.map +1 -0
- package/components/ui-icon-wrapper/index.d.ts +32 -64
- package/components/ui-icon-wrapper/index.d.ts.map +1 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts +3 -2
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts.map +1 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js +3 -3
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js +3 -3
- package/components/ui-input/_typings.d.ts +3 -2
- package/components/ui-input/_typings.d.ts.map +1 -0
- package/components/ui-input/index.d.ts +156 -193
- package/components/ui-input/index.d.ts.map +1 -0
- package/components/ui-input/ui-input.vue.d.ts +6 -2
- package/components/ui-input/ui-input.vue.d.ts.map +1 -0
- package/components/ui-input/ui-input.vue.js +29 -25
- package/components/ui-input/ui-input.vue.js.map +1 -1
- package/components/ui-input-range/index.d.ts +5 -4
- package/components/ui-input-range/index.d.ts.map +1 -0
- package/components/ui-input-range/ui-input-range.vue.d.ts +5 -4
- package/components/ui-input-range/ui-input-range.vue.d.ts.map +1 -0
- package/components/ui-input-range/ui-input-range.vue.js +2 -2
- package/components/ui-input-range/ui-input-range.vue2.js +19 -19
- package/components/ui-input-range/ui-input-range.vue2.js.map +1 -1
- package/components/ui-list-item/_types.d.ts +1 -0
- package/components/ui-list-item/_types.d.ts.map +1 -0
- package/components/ui-list-item/index.d.ts +75 -111
- package/components/ui-list-item/index.d.ts.map +1 -0
- package/components/ui-list-item/ui-list-item.vue.d.ts +3 -2
- package/components/ui-list-item/ui-list-item.vue.d.ts.map +1 -0
- package/components/ui-list-item/ui-list-item.vue.js +14 -14
- package/components/ui-modal/_typings.d.ts +1 -0
- package/components/ui-modal/_typings.d.ts.map +1 -0
- package/components/ui-modal/index.d.ts +32 -64
- package/components/ui-modal/index.d.ts.map +1 -0
- package/components/ui-modal/ui-backdrop/index.d.ts +10 -39
- package/components/ui-modal/ui-backdrop/index.d.ts.map +1 -0
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts +3 -2
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts.map +1 -0
- package/components/ui-modal/ui-modal.vue.d.ts +3 -2
- package/components/ui-modal/ui-modal.vue.d.ts.map +1 -0
- package/components/ui-notification-badge/_types.d.ts +1 -0
- package/components/ui-notification-badge/_types.d.ts.map +1 -0
- package/components/ui-notification-badge/index.d.ts +23 -54
- package/components/ui-notification-badge/index.d.ts.map +1 -0
- package/components/ui-notification-badge/ui-notification-badge.vue.d.ts +3 -2
- package/components/ui-notification-badge/ui-notification-badge.vue.d.ts.map +1 -0
- package/components/ui-order-card/_types.d.ts +1 -0
- package/components/ui-order-card/_types.d.ts.map +1 -0
- package/components/ui-order-card/index.d.ts +30 -62
- package/components/ui-order-card/index.d.ts.map +1 -0
- package/components/ui-order-card/ui-order-card.vue.d.ts +3 -2
- package/components/ui-order-card/ui-order-card.vue.d.ts.map +1 -0
- package/components/ui-plain-radio/index.d.ts +61 -98
- package/components/ui-plain-radio/index.d.ts.map +1 -0
- package/components/ui-plain-radio/ui-plain-radio.vue.d.ts +3 -2
- package/components/ui-plain-radio/ui-plain-radio.vue.d.ts.map +1 -0
- package/components/ui-plain-radio/ui-plain-radio.vue.js +5 -5
- package/components/ui-plain-radio/ui-plain-radio.vue.js.map +1 -1
- package/components/ui-progress/_types.d.ts +1 -0
- package/components/ui-progress/_types.d.ts.map +1 -0
- package/components/ui-progress/index.d.ts +3 -2
- package/components/ui-progress/index.d.ts.map +1 -0
- package/components/ui-progress/ui-progress.vue.d.ts +3 -2
- package/components/ui-progress/ui-progress.vue.d.ts.map +1 -0
- package/components/ui-radio/index.d.ts +61 -98
- package/components/ui-radio/index.d.ts.map +1 -0
- package/components/ui-radio/ui-radio.vue.d.ts +3 -2
- package/components/ui-radio/ui-radio.vue.d.ts.map +1 -0
- package/components/ui-radio/ui-radio.vue.js +2 -2
- package/components/ui-radio/ui-radio.vue2.js +12 -12
- package/components/ui-radio/ui-radio.vue2.js.map +1 -1
- package/components/ui-radio-compact/index.d.ts +50 -82
- package/components/ui-radio-compact/index.d.ts.map +1 -0
- package/components/ui-radio-compact/index.js.map +1 -1
- package/components/ui-radio-compact/ui-radio-compact.vue.d.ts +3 -2
- package/components/ui-radio-compact/ui-radio-compact.vue.d.ts.map +1 -0
- package/components/ui-radio-fancy/_typings.d.ts +1 -0
- package/components/ui-radio-fancy/_typings.d.ts.map +1 -0
- package/components/ui-radio-fancy/index.d.ts +71 -108
- package/components/ui-radio-fancy/index.d.ts.map +1 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts +3 -2
- package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts.map +1 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js +15 -15
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js.map +1 -1
- package/components/ui-result-card-range/_types.d.ts +1 -0
- package/components/ui-result-card-range/_types.d.ts.map +1 -0
- package/components/ui-result-card-range/index.d.ts +20 -78
- package/components/ui-result-card-range/index.d.ts.map +1 -0
- package/components/ui-result-card-range/ui-result-card-range.vue.d.ts +3 -6
- package/components/ui-result-card-range/ui-result-card-range.vue.d.ts.map +1 -0
- package/components/ui-result-card-range/ui-result-card-range.vue.js +9 -11
- package/components/ui-result-card-range/ui-result-card-range.vue.js.map +1 -1
- package/components/ui-ripple/index.d.ts +10 -39
- package/components/ui-ripple/index.d.ts.map +1 -0
- package/components/ui-ripple/ui-ripple.vue.d.ts +3 -2
- package/components/ui-ripple/ui-ripple.vue.d.ts.map +1 -0
- package/components/ui-select/index.d.ts +42 -77
- package/components/ui-select/index.d.ts.map +1 -0
- package/components/ui-select/ui-select.vue.d.ts +3 -2
- package/components/ui-select/ui-select.vue.d.ts.map +1 -0
- package/components/ui-skeleton/_typings.d.ts +1 -0
- package/components/ui-skeleton/_typings.d.ts.map +1 -0
- package/components/ui-skeleton/index.d.ts +3 -2
- package/components/ui-skeleton/index.d.ts.map +1 -0
- package/components/ui-skeleton/ui-skeleton.vue.d.ts +3 -2
- package/components/ui-skeleton/ui-skeleton.vue.d.ts.map +1 -0
- package/components/ui-snackbar/_types.d.ts +1 -0
- package/components/ui-snackbar/_types.d.ts.map +1 -0
- package/components/ui-snackbar/index.d.ts +30 -62
- package/components/ui-snackbar/index.d.ts.map +1 -0
- package/components/ui-snackbar/ui-snackbar.vue.d.ts +3 -2
- package/components/ui-snackbar/ui-snackbar.vue.d.ts.map +1 -0
- package/components/ui-table/_types.d.ts +1 -0
- package/components/ui-table/_types.d.ts.map +1 -0
- package/components/ui-table/index.d.ts +23 -54
- package/components/ui-table/index.d.ts.map +1 -0
- package/components/ui-table/ui-table-cell/index.d.ts +22 -54
- package/components/ui-table/ui-table-cell/index.d.ts.map +1 -0
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts +3 -2
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts.map +1 -0
- package/components/ui-table/ui-table-row/_typings.d.ts +1 -0
- package/components/ui-table/ui-table-row/_typings.d.ts.map +1 -0
- package/components/ui-table/ui-table-row/index.d.ts +17 -48
- package/components/ui-table/ui-table-row/index.d.ts.map +1 -0
- package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts +3 -2
- package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts.map +1 -0
- package/components/ui-table/ui-table.vue.d.ts +3 -2
- package/components/ui-table/ui-table.vue.d.ts.map +1 -0
- package/components/ui-tabs/index.d.ts +3 -2
- package/components/ui-tabs/index.d.ts.map +1 -0
- package/components/ui-tabs/ui-tabs.vue.d.ts +3 -2
- package/components/ui-tabs/ui-tabs.vue.d.ts.map +1 -0
- package/components/ui-toggle/index.d.ts +66 -104
- package/components/ui-toggle/index.d.ts.map +1 -0
- package/components/ui-toggle/ui-toggle.vue.d.ts +5 -4
- package/components/ui-toggle/ui-toggle.vue.d.ts.map +1 -0
- package/components/ui-toggle/ui-toggle.vue.js +3 -3
- package/components/ui-toggle/ui-toggle.vue2.js +10 -10
- package/components/ui-toggle/ui-toggle.vue2.js.map +1 -1
- package/components/ui-typography/_typings.d.ts +1 -0
- package/components/ui-typography/_typings.d.ts.map +1 -0
- package/components/ui-typography/index.d.ts +62 -100
- package/components/ui-typography/index.d.ts.map +1 -0
- package/components/ui-typography/ui-typography.vue.d.ts +3 -2
- package/components/ui-typography/ui-typography.vue.d.ts.map +1 -0
- package/components/ui-typography/ui-typography.vue.js +2 -2
- package/components/ui-verification-input/index.d.ts +30 -63
- package/components/ui-verification-input/index.d.ts.map +1 -0
- package/components/ui-verification-input/ui-verification-input.vue.d.ts +3 -2
- package/components/ui-verification-input/ui-verification-input.vue.d.ts.map +1 -0
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -0
- package/index.js +117 -116
- package/index.js.map +1 -1
- package/package.json +42 -41
- package/tsconfig.json +4 -0
- package/types.d.ts +1 -0
- package/types.d.ts.map +1 -0
- package/types.js +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EInputType, EInputKinds, EAutocomplete } from './_typings';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
3
|
import UiInput from "./ui-input.vue";
|
|
4
4
|
export { EInputType, EInputKinds, EAutocomplete } from "./_typings";
|
|
5
5
|
export { UiInput };
|
|
@@ -7,197 +7,7 @@ export { UiInput };
|
|
|
7
7
|
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
8
8
|
*/
|
|
9
9
|
declare const deprecatedDefault: {
|
|
10
|
-
new (...args: any[]): {
|
|
11
|
-
$: ComponentInternalInstance;
|
|
12
|
-
$data: {};
|
|
13
|
-
$props: Partial<{
|
|
14
|
-
type: EInputType;
|
|
15
|
-
pattern: string;
|
|
16
|
-
kind: EInputKinds;
|
|
17
|
-
modelValue: string | number;
|
|
18
|
-
name: string;
|
|
19
|
-
placeholder: string;
|
|
20
|
-
heading: string;
|
|
21
|
-
subLabel: string;
|
|
22
|
-
maxlength: string;
|
|
23
|
-
minlength: string;
|
|
24
|
-
focusHandler: (e: FocusEvent) => void;
|
|
25
|
-
autocomplete: EAutocomplete;
|
|
26
|
-
}> & Omit<{
|
|
27
|
-
readonly type: EInputType;
|
|
28
|
-
readonly kind: EInputKinds;
|
|
29
|
-
readonly modelValue: string | number;
|
|
30
|
-
readonly placeholder: string;
|
|
31
|
-
readonly pattern?: string | undefined;
|
|
32
|
-
readonly disabled?: boolean | undefined;
|
|
33
|
-
readonly name?: string | undefined;
|
|
34
|
-
readonly heading?: string | undefined;
|
|
35
|
-
readonly subLabel?: string | undefined;
|
|
36
|
-
readonly maxlength?: string | undefined;
|
|
37
|
-
readonly minlength?: string | undefined;
|
|
38
|
-
readonly focusHandler?: ((e: FocusEvent) => void) | undefined;
|
|
39
|
-
readonly autocomplete?: EAutocomplete | undefined;
|
|
40
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
42
|
-
type: {
|
|
43
|
-
type: PropType<EInputType>;
|
|
44
|
-
default: EInputType;
|
|
45
|
-
};
|
|
46
|
-
pattern: {
|
|
47
|
-
type: PropType<string>;
|
|
48
|
-
default: undefined;
|
|
49
|
-
};
|
|
50
|
-
kind: {
|
|
51
|
-
type: PropType<EInputKinds>;
|
|
52
|
-
default: EInputKinds;
|
|
53
|
-
};
|
|
54
|
-
disabled: {
|
|
55
|
-
type: PropType<boolean>;
|
|
56
|
-
};
|
|
57
|
-
modelValue: {
|
|
58
|
-
type: PropType<string | number>;
|
|
59
|
-
required: true;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
name: {
|
|
63
|
-
type: PropType<string>;
|
|
64
|
-
default: undefined;
|
|
65
|
-
};
|
|
66
|
-
placeholder: {
|
|
67
|
-
type: PropType<string>;
|
|
68
|
-
default: string;
|
|
69
|
-
};
|
|
70
|
-
heading: {
|
|
71
|
-
type: PropType<string>;
|
|
72
|
-
default: undefined;
|
|
73
|
-
};
|
|
74
|
-
subLabel: {
|
|
75
|
-
type: PropType<string>;
|
|
76
|
-
default: undefined;
|
|
77
|
-
};
|
|
78
|
-
maxlength: {
|
|
79
|
-
type: PropType<string>;
|
|
80
|
-
default: undefined;
|
|
81
|
-
};
|
|
82
|
-
minlength: {
|
|
83
|
-
type: PropType<string>;
|
|
84
|
-
default: undefined;
|
|
85
|
-
};
|
|
86
|
-
focusHandler: {
|
|
87
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
88
|
-
default: () => undefined;
|
|
89
|
-
};
|
|
90
|
-
autocomplete: {
|
|
91
|
-
type: PropType<EAutocomplete>;
|
|
92
|
-
default: undefined;
|
|
93
|
-
};
|
|
94
|
-
}>> & {
|
|
95
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
96
|
-
}, "type" | "pattern" | "kind" | "modelValue" | "name" | "placeholder" | "heading" | "subLabel" | "maxlength" | "minlength" | "focusHandler" | "autocomplete">;
|
|
97
|
-
$attrs: {
|
|
98
|
-
[x: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
$refs: {
|
|
101
|
-
[x: string]: unknown;
|
|
102
|
-
};
|
|
103
|
-
$slots: Readonly<{
|
|
104
|
-
[name: string]: Slot<any> | undefined;
|
|
105
|
-
}>;
|
|
106
|
-
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
107
|
-
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
108
|
-
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
109
|
-
$el: any;
|
|
110
|
-
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
111
|
-
type: {
|
|
112
|
-
type: PropType<EInputType>;
|
|
113
|
-
default: EInputType;
|
|
114
|
-
};
|
|
115
|
-
pattern: {
|
|
116
|
-
type: PropType<string>;
|
|
117
|
-
default: undefined;
|
|
118
|
-
};
|
|
119
|
-
kind: {
|
|
120
|
-
type: PropType<EInputKinds>;
|
|
121
|
-
default: EInputKinds;
|
|
122
|
-
};
|
|
123
|
-
disabled: {
|
|
124
|
-
type: PropType<boolean>;
|
|
125
|
-
};
|
|
126
|
-
modelValue: {
|
|
127
|
-
type: PropType<string | number>;
|
|
128
|
-
required: true;
|
|
129
|
-
default: string;
|
|
130
|
-
};
|
|
131
|
-
name: {
|
|
132
|
-
type: PropType<string>;
|
|
133
|
-
default: undefined;
|
|
134
|
-
};
|
|
135
|
-
placeholder: {
|
|
136
|
-
type: PropType<string>;
|
|
137
|
-
default: string;
|
|
138
|
-
};
|
|
139
|
-
heading: {
|
|
140
|
-
type: PropType<string>;
|
|
141
|
-
default: undefined;
|
|
142
|
-
};
|
|
143
|
-
subLabel: {
|
|
144
|
-
type: PropType<string>;
|
|
145
|
-
default: undefined;
|
|
146
|
-
};
|
|
147
|
-
maxlength: {
|
|
148
|
-
type: PropType<string>;
|
|
149
|
-
default: undefined;
|
|
150
|
-
};
|
|
151
|
-
minlength: {
|
|
152
|
-
type: PropType<string>;
|
|
153
|
-
default: undefined;
|
|
154
|
-
};
|
|
155
|
-
focusHandler: {
|
|
156
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
157
|
-
default: () => undefined;
|
|
158
|
-
};
|
|
159
|
-
autocomplete: {
|
|
160
|
-
type: PropType<EAutocomplete>;
|
|
161
|
-
default: undefined;
|
|
162
|
-
};
|
|
163
|
-
}>> & {
|
|
164
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
165
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
166
|
-
"update:modelValue": (...args: any[]) => void;
|
|
167
|
-
}, string, {
|
|
168
|
-
type: EInputType;
|
|
169
|
-
pattern: string;
|
|
170
|
-
kind: EInputKinds;
|
|
171
|
-
modelValue: string | number;
|
|
172
|
-
name: string;
|
|
173
|
-
placeholder: string;
|
|
174
|
-
heading: string;
|
|
175
|
-
subLabel: string;
|
|
176
|
-
maxlength: string;
|
|
177
|
-
minlength: string;
|
|
178
|
-
focusHandler: (e: FocusEvent) => void;
|
|
179
|
-
autocomplete: EAutocomplete;
|
|
180
|
-
}, {}, string, {}> & {
|
|
181
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
182
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
183
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
184
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
185
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
186
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
187
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
188
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
189
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
190
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
191
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
192
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
193
|
-
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
194
|
-
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
195
|
-
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
196
|
-
};
|
|
197
|
-
$forceUpdate: () => void;
|
|
198
|
-
$nextTick: typeof nextTick;
|
|
199
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
200
|
-
} & Readonly<ExtractPropTypes<{
|
|
10
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
|
|
201
11
|
type: {
|
|
202
12
|
type: PropType<EInputType>;
|
|
203
13
|
default: EInputType;
|
|
@@ -212,6 +22,7 @@ declare const deprecatedDefault: {
|
|
|
212
22
|
};
|
|
213
23
|
disabled: {
|
|
214
24
|
type: PropType<boolean>;
|
|
25
|
+
default: boolean;
|
|
215
26
|
};
|
|
216
27
|
modelValue: {
|
|
217
28
|
type: PropType<string | number>;
|
|
@@ -252,7 +63,156 @@ declare const deprecatedDefault: {
|
|
|
252
63
|
};
|
|
253
64
|
}>> & {
|
|
254
65
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
255
|
-
}
|
|
66
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
67
|
+
"update:modelValue": (...args: any[]) => void;
|
|
68
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
69
|
+
type: {
|
|
70
|
+
type: PropType<EInputType>;
|
|
71
|
+
default: EInputType;
|
|
72
|
+
};
|
|
73
|
+
pattern: {
|
|
74
|
+
type: PropType<string>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
kind: {
|
|
78
|
+
type: PropType<EInputKinds>;
|
|
79
|
+
default: EInputKinds;
|
|
80
|
+
};
|
|
81
|
+
disabled: {
|
|
82
|
+
type: PropType<boolean>;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
modelValue: {
|
|
86
|
+
type: PropType<string | number>;
|
|
87
|
+
required: true;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
name: {
|
|
91
|
+
type: PropType<string>;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
placeholder: {
|
|
95
|
+
type: PropType<string>;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
heading: {
|
|
99
|
+
type: PropType<string>;
|
|
100
|
+
default: undefined;
|
|
101
|
+
};
|
|
102
|
+
subLabel: {
|
|
103
|
+
type: PropType<string>;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
106
|
+
maxlength: {
|
|
107
|
+
type: PropType<string>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
minlength: {
|
|
111
|
+
type: PropType<string>;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
focusHandler: {
|
|
115
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
116
|
+
default: () => undefined;
|
|
117
|
+
};
|
|
118
|
+
autocomplete: {
|
|
119
|
+
type: PropType<EAutocomplete>;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
122
|
+
}>> & {
|
|
123
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
type: EInputType;
|
|
126
|
+
pattern: string;
|
|
127
|
+
kind: EInputKinds;
|
|
128
|
+
disabled: boolean;
|
|
129
|
+
modelValue: string | number;
|
|
130
|
+
name: string;
|
|
131
|
+
placeholder: string;
|
|
132
|
+
heading: string;
|
|
133
|
+
subLabel: string;
|
|
134
|
+
maxlength: string;
|
|
135
|
+
minlength: string;
|
|
136
|
+
focusHandler: (e: FocusEvent) => void;
|
|
137
|
+
autocomplete: EAutocomplete;
|
|
138
|
+
}, true, {}, {}, {
|
|
139
|
+
P: {};
|
|
140
|
+
B: {};
|
|
141
|
+
D: {};
|
|
142
|
+
C: {};
|
|
143
|
+
M: {};
|
|
144
|
+
Defaults: {};
|
|
145
|
+
}, Readonly<ExtractPropTypes<{
|
|
146
|
+
type: {
|
|
147
|
+
type: PropType<EInputType>;
|
|
148
|
+
default: EInputType;
|
|
149
|
+
};
|
|
150
|
+
pattern: {
|
|
151
|
+
type: PropType<string>;
|
|
152
|
+
default: undefined;
|
|
153
|
+
};
|
|
154
|
+
kind: {
|
|
155
|
+
type: PropType<EInputKinds>;
|
|
156
|
+
default: EInputKinds;
|
|
157
|
+
};
|
|
158
|
+
disabled: {
|
|
159
|
+
type: PropType<boolean>;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
modelValue: {
|
|
163
|
+
type: PropType<string | number>;
|
|
164
|
+
required: true;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
name: {
|
|
168
|
+
type: PropType<string>;
|
|
169
|
+
default: undefined;
|
|
170
|
+
};
|
|
171
|
+
placeholder: {
|
|
172
|
+
type: PropType<string>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
heading: {
|
|
176
|
+
type: PropType<string>;
|
|
177
|
+
default: undefined;
|
|
178
|
+
};
|
|
179
|
+
subLabel: {
|
|
180
|
+
type: PropType<string>;
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
183
|
+
maxlength: {
|
|
184
|
+
type: PropType<string>;
|
|
185
|
+
default: undefined;
|
|
186
|
+
};
|
|
187
|
+
minlength: {
|
|
188
|
+
type: PropType<string>;
|
|
189
|
+
default: undefined;
|
|
190
|
+
};
|
|
191
|
+
focusHandler: {
|
|
192
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
193
|
+
default: () => undefined;
|
|
194
|
+
};
|
|
195
|
+
autocomplete: {
|
|
196
|
+
type: PropType<EAutocomplete>;
|
|
197
|
+
default: undefined;
|
|
198
|
+
};
|
|
199
|
+
}>> & {
|
|
200
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
201
|
+
}, {}, {}, {}, {}, {
|
|
202
|
+
type: EInputType;
|
|
203
|
+
pattern: string;
|
|
204
|
+
kind: EInputKinds;
|
|
205
|
+
disabled: boolean;
|
|
206
|
+
modelValue: string | number;
|
|
207
|
+
name: string;
|
|
208
|
+
placeholder: string;
|
|
209
|
+
heading: string;
|
|
210
|
+
subLabel: string;
|
|
211
|
+
maxlength: string;
|
|
212
|
+
minlength: string;
|
|
213
|
+
focusHandler: (e: FocusEvent) => void;
|
|
214
|
+
autocomplete: EAutocomplete;
|
|
215
|
+
}>;
|
|
256
216
|
__isFragment?: undefined;
|
|
257
217
|
__isTeleport?: undefined;
|
|
258
218
|
__isSuspense?: undefined;
|
|
@@ -271,6 +231,7 @@ declare const deprecatedDefault: {
|
|
|
271
231
|
};
|
|
272
232
|
disabled: {
|
|
273
233
|
type: PropType<boolean>;
|
|
234
|
+
default: boolean;
|
|
274
235
|
};
|
|
275
236
|
modelValue: {
|
|
276
237
|
type: PropType<string | number>;
|
|
@@ -317,6 +278,7 @@ declare const deprecatedDefault: {
|
|
|
317
278
|
type: EInputType;
|
|
318
279
|
pattern: string;
|
|
319
280
|
kind: EInputKinds;
|
|
281
|
+
disabled: boolean;
|
|
320
282
|
modelValue: string | number;
|
|
321
283
|
name: string;
|
|
322
284
|
placeholder: string;
|
|
@@ -335,3 +297,4 @@ declare const deprecatedDefault: {
|
|
|
335
297
|
};
|
|
336
298
|
});
|
|
337
299
|
export default deprecatedDefault;
|
|
300
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAU,CAAC;AAClC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { EAutocomplete, EInputKinds, EInputType } from "./_typings";
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
placeholder?: string | undefined;
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
17
17
|
}>, {
|
|
18
18
|
modelValue: string;
|
|
19
19
|
placeholder: string;
|
|
20
|
+
disabled: boolean;
|
|
20
21
|
autocomplete: undefined;
|
|
21
22
|
name: undefined;
|
|
22
23
|
heading: undefined;
|
|
@@ -29,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
29
30
|
kind: EInputKinds;
|
|
30
31
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
31
32
|
"update:modelValue": (...args: any[]) => void;
|
|
32
|
-
}, string,
|
|
33
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
33
34
|
placeholder?: string | undefined;
|
|
34
35
|
modelValue: string | number;
|
|
35
36
|
disabled?: boolean | undefined;
|
|
@@ -46,6 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
46
47
|
}>, {
|
|
47
48
|
modelValue: string;
|
|
48
49
|
placeholder: string;
|
|
50
|
+
disabled: boolean;
|
|
49
51
|
autocomplete: undefined;
|
|
50
52
|
name: undefined;
|
|
51
53
|
heading: undefined;
|
|
@@ -62,6 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
62
64
|
type: EInputType;
|
|
63
65
|
pattern: string;
|
|
64
66
|
kind: EInputKinds;
|
|
67
|
+
disabled: boolean;
|
|
65
68
|
modelValue: string | number;
|
|
66
69
|
name: string;
|
|
67
70
|
placeholder: string;
|
|
@@ -100,3 +103,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
100
103
|
$slots: S;
|
|
101
104
|
};
|
|
102
105
|
};
|
|
106
|
+
//# sourceMappingURL=ui-input.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-input.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-input/ui-input.vue"],"names":[],"mappings":"AA2DA;AAGC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoQrE,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { EInputKinds as a, EInputType as r, EAutocomplete as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as k, computed as A, openBlock as n, createElementBlock as S, normalizeClass as s, renderSlot as o, createBlock as p, unref as t, withCtx as m, createTextVNode as f, toDisplayString as h, createCommentVNode as b, createElementVNode as g } from "vue";
|
|
2
|
+
import { EInputKinds as a, EInputType as r, EAutocomplete as c } from "./_typings.js";
|
|
3
|
+
import v from "../ui-typography/index.js";
|
|
4
4
|
import { ETypographySizes as y } from "../ui-typography/_typings.js";
|
|
5
5
|
import { EColors as C } from "../../_types/colors.js";
|
|
6
|
-
const D =
|
|
6
|
+
const D = ["autocomplete", "name", "value", "pattern", "type", "placeholder", "maxlength", "minlength"], z = /* @__PURE__ */ k({
|
|
7
7
|
__name: "ui-input",
|
|
8
8
|
props: {
|
|
9
9
|
placeholder: { default: "" },
|
|
10
10
|
modelValue: { default: "" },
|
|
11
|
-
disabled: { type: Boolean },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
12
|
kind: { default: a.SECONDARY },
|
|
13
13
|
heading: { default: void 0 },
|
|
14
14
|
subLabel: { default: void 0 },
|
|
@@ -22,33 +22,37 @@ const D = { class: "ui-input" }, L = ["autocomplete", "name", "value", "pattern"
|
|
|
22
22
|
name: { default: void 0 }
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
switch (
|
|
25
|
+
setup(E) {
|
|
26
|
+
const R = E, d = A(() => {
|
|
27
|
+
switch (R.type) {
|
|
28
28
|
case r.PASSWORD:
|
|
29
|
-
return
|
|
29
|
+
return c.CURRENT_PASSWORD;
|
|
30
30
|
case r.EMAIL:
|
|
31
|
-
return
|
|
31
|
+
return c.EMAIL;
|
|
32
32
|
default:
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
return (e, l) => (n(),
|
|
36
|
+
return (e, l) => (n(), S("div", {
|
|
37
|
+
class: s(["ui-input", [
|
|
38
|
+
e.disabled && "pointer-events-none"
|
|
39
|
+
]])
|
|
40
|
+
}, [
|
|
37
41
|
o(e.$slots, "header", {}, () => [
|
|
38
|
-
e.heading ? (n(),
|
|
42
|
+
e.heading ? (n(), p(t(v), {
|
|
39
43
|
key: 0,
|
|
40
44
|
class: "mb-xs",
|
|
41
45
|
size: t(y).MD,
|
|
42
46
|
"line-height": ""
|
|
43
47
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
|
|
48
|
+
default: m(() => [
|
|
49
|
+
f(h(e.heading), 1)
|
|
46
50
|
]),
|
|
47
51
|
_: 1
|
|
48
|
-
}, 8, ["size"])) :
|
|
52
|
+
}, 8, ["size"])) : b("", !0)
|
|
49
53
|
]),
|
|
50
|
-
|
|
51
|
-
class:
|
|
54
|
+
g("label", {
|
|
55
|
+
class: s(["ui-input__wrapper flex w-full items-center gap-xs rounded-lg border bg-white p-sm", [
|
|
52
56
|
e.kind === t(a).SECONDARY && "border-secondary-alt-500 hover:border-secondary-alt-700",
|
|
53
57
|
e.kind === t(a).PRIMARY && "border-primary",
|
|
54
58
|
e.kind === t(a).ERROR && "border-error",
|
|
@@ -56,7 +60,7 @@ const D = { class: "ui-input" }, L = ["autocomplete", "name", "value", "pattern"
|
|
|
56
60
|
]])
|
|
57
61
|
}, [
|
|
58
62
|
o(e.$slots, "prefix-icon"),
|
|
59
|
-
|
|
63
|
+
g("input", {
|
|
60
64
|
autocomplete: e.autocomplete || d.value,
|
|
61
65
|
name: e.name || e.autocomplete || d.value,
|
|
62
66
|
value: e.modelValue,
|
|
@@ -71,27 +75,27 @@ const D = { class: "ui-input" }, L = ["autocomplete", "name", "value", "pattern"
|
|
|
71
75
|
return e.$emit("update:modelValue", (u = i.target) == null ? void 0 : u.value);
|
|
72
76
|
}),
|
|
73
77
|
onFocus: l[1] || (l[1] = (i) => e.focusHandler || void 0)
|
|
74
|
-
}, null, 40,
|
|
78
|
+
}, null, 40, D),
|
|
75
79
|
o(e.$slots, "postfix-icon")
|
|
76
80
|
], 2),
|
|
77
81
|
o(e.$slots, "subLabel", {}, () => [
|
|
78
|
-
e.subLabel ? (n(),
|
|
82
|
+
e.subLabel ? (n(), p(t(v), {
|
|
79
83
|
key: 0,
|
|
80
84
|
"line-height": "",
|
|
81
85
|
size: t(y).SM,
|
|
82
86
|
kind: t(C).SECONDARY_ALT,
|
|
83
87
|
class: "mt-xs"
|
|
84
88
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
|
|
89
|
+
default: m(() => [
|
|
90
|
+
f(h(e.subLabel), 1)
|
|
87
91
|
]),
|
|
88
92
|
_: 1
|
|
89
|
-
}, 8, ["size", "kind"])) :
|
|
93
|
+
}, 8, ["size", "kind"])) : b("", !0)
|
|
90
94
|
])
|
|
91
|
-
]));
|
|
95
|
+
], 2));
|
|
92
96
|
}
|
|
93
97
|
});
|
|
94
98
|
export {
|
|
95
|
-
|
|
99
|
+
z as default
|
|
96
100
|
};
|
|
97
101
|
//# sourceMappingURL=ui-input.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-input.vue.js","sources":["../../../src/components/ui-input/ui-input.vue"],"sourcesContent":["<template>\n\t<div
|
|
1
|
+
{"version":3,"file":"ui-input.vue.js","sources":["../../../src/components/ui-input/ui-input.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"ui-input\"\n\t\t:class=\"[\n\t\t\tdisabled && 'pointer-events-none'\n\t\t]\"\n\t>\n\t\t<slot name=\"header\">\n\t\t\t<ui-typography\n\t\t\t\tv-if=\"heading\"\n\t\t\t\tclass=\"mb-xs\"\n\t\t\t\t:size=\"ETypographySizes.MD\"\n\t\t\t\tline-height\n\t\t\t>\n\t\t\t\t{{ heading }}\n\t\t\t</ui-typography>\n\t\t</slot>\n\t\t<label\n\t\t\tclass=\"ui-input__wrapper flex w-full items-center gap-xs rounded-lg border bg-white p-sm\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EInputKinds.SECONDARY && 'border-secondary-alt-500 hover:border-secondary-alt-700',\n\t\t\t\tkind === EInputKinds.PRIMARY && 'border-primary',\n\t\t\t\tkind === EInputKinds.ERROR && 'border-error',\n\n\t\t\t\tdisabled && 'border-secondary-alt-300 bg-secondary-alt-200',\n\t\t\t]\"\n\t\t>\n\t\t\t<slot name=\"prefix-icon\" />\n\n\t\t\t<input\n\t\t\t\t:autocomplete=\"autocomplete || getAutoComplete\"\n\t\t\t\t:name=\"name || autocomplete || getAutoComplete\"\n\t\t\t\t:value=\"modelValue\"\n\t\t\t\t:pattern=\"pattern\"\n\t\t\t\tclass=\"w-full border-0 bg-transparent outline-none placeholder:italic placeholder:text-secondary-alt\"\n\t\t\t\t:type=\"type\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:maxlength=\"maxlength\"\n\t\t\t\t:minlength=\"minlength\"\n\t\t\t\t@input=\"$emit('update:modelValue', ($event.target as HTMLTextAreaElement)?.value)\"\n\t\t\t\t@focus=\"focusHandler || undefined\"\n\t\t\t>\n\n\t\t\t<slot name=\"postfix-icon\" />\n\t\t</label>\n\n\t\t<slot name=\"subLabel\">\n\t\t\t<ui-typography\n\t\t\t\tv-if=\"subLabel\"\n\t\t\t\tline-height\n\t\t\t\t:size=\"ETypographySizes.SM\"\n\t\t\t\t:kind=\"EColors.SECONDARY_ALT\"\n\t\t\t\tclass=\"mt-xs\"\n\t\t\t>\n\t\t\t\t{{ subLabel }}\n\t\t\t</ui-typography>\n\t\t</slot>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed } from \"vue\";\n\timport { EAutocomplete, EInputKinds, EInputType } from \"./_typings\";\n\timport UiTypography, { ETypographySizes, EColors } from \"../ui-typography\";\n\n\tconst props = withDefaults(defineProps<{\n\t\tplaceholder?: string;\n\t\tmodelValue: string | number;\n\t\tdisabled?: boolean;\n\t\tkind?: EInputKinds;\n\t\theading?: string;\n\t\tsubLabel?: string;\n\t\ttype?: EInputType;\n\t\tpattern?: string;\n\t\tmaxlength?: string;\n\t\tminlength?: string;\n\t\tfocusHandler?: (e:FocusEvent) => void;\n\t\tautocomplete?: EAutocomplete;\n\t\tname?: string;\n\t}>(), {\n\t\tmodelValue: \"\",\n\t\tplaceholder: \"\",\n\t\tdisabled: false,\n\t\tautocomplete: undefined,\n\t\tname: undefined,\n\t\theading: undefined,\n\t\tsubLabel: undefined,\n\t\tpattern: undefined,\n\t\tmaxlength: undefined,\n\t\tminlength: undefined,\n\t\ttype: EInputType.TEXT,\n\t\tfocusHandler: ()=>undefined,\n\t\tkind: EInputKinds.SECONDARY\n\t});\n\n\tdefineEmits([\"update:modelValue\"]);\n\n\tconst getAutoComplete = computed(()=> {\n\t\tswitch (props.type) {\n\t\t\tcase EInputType.PASSWORD: return EAutocomplete.CURRENT_PASSWORD;\n\t\t\tcase EInputType.EMAIL: return EAutocomplete.EMAIL;\n\t\t\tdefault: return undefined;\n\t\t}\n\t});\n</script>\n"],"names":["props","__props","getAutoComplete","computed","EInputType","EAutocomplete"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiEC,UAAMA,IAAQC,GAgCRC,IAAkBC,EAAS,MAAK;AACrC,cAAQH,EAAM,MAAM;AAAA,QACnB,KAAKI,EAAW;AAAU,iBAAOC,EAAc;AAAA,QAC/C,KAAKD,EAAW;AAAO,iBAAOC,EAAc;AAAA,QAC5C;AAAgB;AAAA,MACjB;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
import UiInputRange from "./ui-input-range.vue";
|
|
3
3
|
export { UiInputRange };
|
|
4
4
|
/**
|
|
@@ -22,8 +22,8 @@ declare const deprecatedDefault: DefineComponent<{
|
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
24
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (
|
|
26
|
-
}, string,
|
|
25
|
+
"update:modelValue": (...args: any[]) => void;
|
|
26
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
27
27
|
modelValue: {
|
|
28
28
|
type: PropType<number>;
|
|
29
29
|
required: true;
|
|
@@ -41,6 +41,7 @@ declare const deprecatedDefault: DefineComponent<{
|
|
|
41
41
|
required: true;
|
|
42
42
|
};
|
|
43
43
|
}>> & {
|
|
44
|
-
"onUpdate:modelValue"?: ((
|
|
44
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
}, {}, {}>;
|
|
46
46
|
export default deprecatedDefault;
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-input-range/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAe,CAAC;AACvC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
modelValue: number;
|
|
4
4
|
min: string | number;
|
|
5
5
|
max: string | number;
|
|
6
6
|
step: string | number;
|
|
7
7
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
-
"update:modelValue": (
|
|
9
|
-
}, string,
|
|
8
|
+
"update:modelValue": (...args: any[]) => void;
|
|
9
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
10
|
modelValue: number;
|
|
11
11
|
min: string | number;
|
|
12
12
|
max: string | number;
|
|
13
13
|
step: string | number;
|
|
14
14
|
}>>> & {
|
|
15
|
-
"onUpdate:modelValue"?: ((
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
}, {}, {}>;
|
|
17
17
|
export default _default;
|
|
18
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -24,3 +24,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
24
24
|
required: true;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
//# sourceMappingURL=ui-input-range.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-input-range.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-input-range/ui-input-range.vue"],"names":[],"mappings":"AA2CA;;gBAkNc,MAAM;SACb,MAAM,GAAG,MAAM;SACf,MAAM,GAAG,MAAM;UACd,MAAM,GAAG,MAAM;;;;gBAHT,MAAM;SACb,MAAM,GAAG,MAAM;SACf,MAAM,GAAG,MAAM;UACd,MAAM,GAAG,MAAM;;;;AATvB,wBAYG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("input[type=range][data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("input[type=range][data-v-196548ca]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:10px;width:10px;transform:scale(4);background-color:transparent;border:0;box-shadow:none}input[type=range][data-v-196548ca]::-moz-range-thumb{-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:transparent;border:0;box-shadow:none}.ui-input-range__thumb[data-v-196548ca]{top:50%;border-width:12px;box-shadow:0 0 0 4px var(--color-primary)}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
2
|
import o from "./ui-input-range.vue2.js";
|
|
3
3
|
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-196548ca"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
8
8
|
};
|