@onereach/ui-components 2.72.2-beta.2275.0 → 2.72.2-beta.2276.0
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/dist/bundled/v2/{OrButton-d45772c1.js → OrButton-f1f28b9b.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-80ac6444.js → OrCardCollection-35abc63a.js} +2 -2
- package/dist/bundled/v2/{OrConfirm-ea6ea2f7.js → OrConfirm-c5717fec.js} +2 -2
- package/dist/bundled/v2/{OrInput-57a47093.js → OrInput-00070eee.js} +11 -28
- package/dist/bundled/v2/{OrInputBox-e54dcef9.js → OrInputBox-2f559e98.js} +3 -3
- package/dist/bundled/v2/{OrLoader-864ef92a.js → OrLoader-07f84c71.js} +11 -4
- package/dist/bundled/v2/{OrPagination-daf25de2.js → OrPagination-1b65273d.js} +1 -1
- package/dist/bundled/v2/{OrSearch-2ff8cadd.js → OrSearch-09fd004c.js} +4 -3
- package/dist/bundled/v2/{OrSelect-359e891b.js → OrSelect-2ececfc1.js} +2 -2
- package/dist/bundled/v2/{OrSwitch-782d7b43.js → OrSwitch-3804a2d8.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-1201353b.js → OrTextarea-5c57c02b.js} +1 -1
- package/dist/bundled/v2/components/index.js +13 -13
- package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -6
- package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +16 -2
- package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
- package/dist/bundled/v2/index.js +13 -13
- package/dist/bundled/v2/{types-309b7b94.js → types-13daf4de.js} +1 -1
- package/dist/bundled/v3/{OrButton-a1448bfa.js → OrButton-d8b1c4ac.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3b1e442b.js → OrButton.vue_vue_type_script_lang-d31b504f.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-09e66060.js → OrCardCollection.vue_vue_type_script_lang-23f82328.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9aff9db3.js → OrConfirm.vue_vue_type_script_lang-ab682ec1.js} +4 -4
- package/dist/bundled/v3/{OrInput-44a32124.js → OrInput-dcf2606e.js} +6 -15
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-4d9e2f4a.js → OrInput.vue_vue_type_script_lang-27220623.js} +3 -15
- package/dist/bundled/v3/{OrInputBox-358d4856.js → OrInputBox-4c7900c2.js} +1 -1
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-b387d4ba.js → OrInputBox.vue_vue_type_script_lang-47d98e81.js} +3 -3
- package/dist/bundled/v3/{OrLoader-123ef8c4.js → OrLoader-40942969.js} +1 -1
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-4c3c1ac9.js → OrLoader.vue_vue_type_script_lang-9efedfe7.js} +11 -4
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f64827ef.js → OrPagination.vue_vue_type_script_lang-c0eceb82.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-faec384c.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +5 -4
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c7a9bec2.js → OrSelect.vue_vue_type_script_lang-7fd5e2f0.js} +4 -4
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-31994be7.js → OrSwitch.vue_vue_type_script_lang-25f16621.js} +2 -2
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-de99a858.js → OrTextarea.vue_vue_type_script_lang-296da567.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-6fe12712.js → OrToastContainer-2e9489f9.js} +1 -1
- package/dist/bundled/v3/components/index.js +17 -17
- package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +10 -10
- package/dist/bundled/v3/components/or-confirm-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -5
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +16 -2
- package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -7
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -7
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +24 -24
- package/dist/bundled/v3/{types-22fbf9d6.js → types-8f6f3598.js} +2 -2
- package/dist/esm/v2/{OrButton-66964360.js → OrButton-d067bcac.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-079828a4.js → OrCardCollection-cab5acb9.js} +3 -3
- package/dist/esm/v2/{OrConfirm-7dc26526.js → OrConfirm-efe95ff6.js} +2 -2
- package/dist/esm/v2/{OrInput-3d8c8925.js → OrInput-59a15d80.js} +11 -28
- package/dist/esm/v2/{OrInputBox-53d1f66d.js → OrInputBox-9ceb9fc4.js} +3 -3
- package/dist/esm/v2/{OrLoader-76307488.js → OrLoader-a6ae193f.js} +11 -4
- package/dist/esm/v2/{OrPagination-1adbcadb.js → OrPagination-1acb7176.js} +1 -1
- package/dist/esm/v2/{OrSearch-f9b7e168.js → OrSearch-7411388b.js} +4 -3
- package/dist/esm/v2/{OrSelect-bdb9a78a.js → OrSelect-e31d1c8b.js} +2 -2
- package/dist/esm/v2/{OrSwitch-8549219a.js → OrSwitch-c2429fc0.js} +1 -1
- package/dist/esm/v2/{OrTextarea-373d0554.js → OrTextarea-a5a3572b.js} +1 -1
- package/dist/esm/v2/components/index.js +13 -13
- package/dist/esm/v2/components/or-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +6 -6
- package/dist/esm/v2/components/or-confirm-v3/index.js +6 -6
- package/dist/esm/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/esm/v2/components/or-input-v3/index.js +3 -4
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +16 -2
- package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/index.js +4 -5
- package/dist/esm/v2/components/or-select-v3/index.js +4 -5
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/index.js +12 -12
- package/dist/esm/v2/{types-1f95d710.js → types-4a75cef1.js} +1 -1
- package/dist/esm/v3/{OrButton-c56998e7.js → OrButton-d9f6c316.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-c3a7cc7a.js → OrCardCollection-04b36455.js} +3 -3
- package/dist/esm/v3/{OrConfirm-403896ca.js → OrConfirm-d7d6255c.js} +2 -2
- package/dist/esm/v3/{OrInput-71075f51.js → OrInput-bd054213.js} +7 -27
- package/dist/esm/v3/{OrInputBox-2467d7e4.js → OrInputBox-e16ade90.js} +3 -3
- package/dist/esm/v3/{OrLoader-a53d2edf.js → OrLoader-1709eb68.js} +11 -4
- package/dist/esm/v3/{OrPagination-da9e5017.js → OrPagination-7cbdbb05.js} +1 -1
- package/dist/esm/v3/{OrSearch-21ac89f3.js → OrSearch-5406bf03.js} +4 -3
- package/dist/esm/v3/{OrSelect-c64eda46.js → OrSelect-466e50ca.js} +2 -2
- package/dist/esm/v3/{OrSwitch-1c2196da.js → OrSwitch-54988e7a.js} +1 -1
- package/dist/esm/v3/{OrTextarea-42d21f77.js → OrTextarea-37566985.js} +1 -1
- package/dist/esm/v3/components/index.js +13 -13
- package/dist/esm/v3/components/or-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/esm/v3/components/or-confirm-v3/index.js +6 -6
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/esm/v3/components/or-input-v3/index.js +3 -4
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +16 -2
- package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +4 -5
- package/dist/esm/v3/components/or-select-v3/index.js +4 -5
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/index.js +12 -12
- package/dist/esm/v3/{types-b79e4387.js → types-c3417028.js} +1 -1
- package/package.json +1 -1
- package/src/components/or-input-box-v3/styles.ts +6 -3
- package/src/components/or-input-v3/OrInput.stories3.ts +0 -4
- package/src/components/or-input-v3/OrInput.vue +19 -39
- package/src/components/or-loader-v3/OrLoader.stories3.ts +16 -4
- package/src/components/or-loader-v3/OrLoader.vue +10 -2
- package/src/components/or-loader-v3/styles.ts +1 -2
- package/src/components/or-search-v3/OrSearch.vue +2 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-d7d6255c.js';
|
|
2
2
|
import '@vueuse/core';
|
|
3
3
|
import '@vueuse/math';
|
|
4
4
|
import 'vue-demi';
|
|
5
|
-
import '../../OrButton-
|
|
6
|
-
import '../../OrLoader-
|
|
5
|
+
import '../../OrButton-d9f6c316.js';
|
|
6
|
+
import '../../OrLoader-1709eb68.js';
|
|
7
7
|
import 'vue';
|
|
8
|
-
import '../../OrInput-
|
|
8
|
+
import '../../OrInput-bd054213.js';
|
|
9
9
|
import '../../useIdAttribute-859439f0.js';
|
|
10
|
-
import '../../useResponsive-a02e95b7.js';
|
|
11
10
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
12
11
|
import '../../OrError-19198748.js';
|
|
13
12
|
import '../../OrHint-6863124f.js';
|
|
@@ -17,9 +16,10 @@ import '../../OrTooltip-b07616f4.js';
|
|
|
17
16
|
import '../../OrPopover-40217b49.js';
|
|
18
17
|
import '@floating-ui/dom';
|
|
19
18
|
import '../../useElevation-31bfe1f6.js';
|
|
19
|
+
import '../../useResponsive-a02e95b7.js';
|
|
20
20
|
import '../../OrBottomSheet-13a416ef.js';
|
|
21
21
|
import '../../OrOverlay-afad3aa4.js';
|
|
22
22
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
23
|
-
import '../../OrInputBox-
|
|
23
|
+
import '../../OrInputBox-e16ade90.js';
|
|
24
24
|
import '../../OrLabel-f700f9fb.js';
|
|
25
25
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -23,7 +23,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
23
23
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
24
24
|
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
25
25
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
26
|
-
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
27
26
|
focus: () => void;
|
|
28
27
|
blur: () => void;
|
|
29
28
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -55,10 +54,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
55
54
|
type: StringConstructor;
|
|
56
55
|
default: undefined;
|
|
57
56
|
};
|
|
58
|
-
loading: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
57
|
required: {
|
|
63
58
|
type: BooleanConstructor;
|
|
64
59
|
default: boolean;
|
|
@@ -104,10 +99,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
104
99
|
type: StringConstructor;
|
|
105
100
|
default: undefined;
|
|
106
101
|
};
|
|
107
|
-
loading: {
|
|
108
|
-
type: BooleanConstructor;
|
|
109
|
-
default: boolean;
|
|
110
|
-
};
|
|
111
102
|
required: {
|
|
112
103
|
type: BooleanConstructor;
|
|
113
104
|
default: boolean;
|
|
@@ -132,7 +123,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
132
123
|
placeholder: string;
|
|
133
124
|
hint: string;
|
|
134
125
|
error: string;
|
|
135
|
-
loading: boolean;
|
|
136
126
|
required: boolean;
|
|
137
127
|
readonly: boolean;
|
|
138
128
|
disabled: boolean;
|
|
@@ -162,7 +152,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
162
152
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
163
153
|
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
164
154
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
165
|
-
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
166
155
|
focus: () => void;
|
|
167
156
|
blur: () => void;
|
|
168
157
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
@@ -173,7 +162,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
173
162
|
placeholder: string;
|
|
174
163
|
hint: string;
|
|
175
164
|
error: string;
|
|
176
|
-
loading: boolean;
|
|
177
165
|
required: boolean;
|
|
178
166
|
readonly: boolean;
|
|
179
167
|
disabled: boolean;
|
|
@@ -188,7 +176,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
188
176
|
placeholder: string;
|
|
189
177
|
hint: string;
|
|
190
178
|
error: string;
|
|
191
|
-
loading: boolean;
|
|
192
179
|
required: boolean;
|
|
193
180
|
readonly: boolean;
|
|
194
181
|
disabled: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { I as InputType, s as OrInputV3 } from '../../OrInput-
|
|
2
|
-
export { a as InputSize } from '../../OrInputBox-
|
|
1
|
+
export { I as InputType, s as OrInputV3 } from '../../OrInput-bd054213.js';
|
|
2
|
+
export { a as InputSize } from '../../OrInputBox-e16ade90.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useIdAttribute-859439f0.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
|
-
import '../../useResponsive-a02e95b7.js';
|
|
7
6
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
8
7
|
import '../../OrError-19198748.js';
|
|
9
8
|
import 'vue';
|
|
@@ -14,9 +13,9 @@ import '../../OrTooltip-b07616f4.js';
|
|
|
14
13
|
import '../../OrPopover-40217b49.js';
|
|
15
14
|
import '@floating-ui/dom';
|
|
16
15
|
import '../../useElevation-31bfe1f6.js';
|
|
16
|
+
import '../../useResponsive-a02e95b7.js';
|
|
17
17
|
import '../../OrBottomSheet-13a416ef.js';
|
|
18
18
|
import '../../OrOverlay-afad3aa4.js';
|
|
19
19
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
20
20
|
import '../../OrLabel-f700f9fb.js';
|
|
21
|
-
import '../../OrLoader-a53d2edf.js';
|
|
22
21
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -6,16 +6,23 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
6
6
|
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
7
|
titleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
8
|
descriptionStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
|
-
computedSize: import("@vue/composition-api").ComputedRef<20 | 16
|
|
9
|
+
computedSize: import("@vue/composition-api").ComputedRef<20 | 16>;
|
|
10
10
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
11
11
|
variant: {
|
|
12
12
|
type: PropType<LoaderVariant>;
|
|
13
13
|
default: LoaderVariant;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Defines a semantic color of the loading indicator.
|
|
17
|
+
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
18
|
+
*/
|
|
15
19
|
color: {
|
|
16
20
|
type: PropType<LoaderColor>;
|
|
17
21
|
default: LoaderColor;
|
|
18
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
25
|
+
*/
|
|
19
26
|
size: {
|
|
20
27
|
type: PropType<LoaderSize>;
|
|
21
28
|
default: LoaderSize;
|
|
@@ -33,10 +40,17 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
33
40
|
type: PropType<LoaderVariant>;
|
|
34
41
|
default: LoaderVariant;
|
|
35
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Defines a semantic color of the loading indicator.
|
|
45
|
+
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
46
|
+
*/
|
|
36
47
|
color: {
|
|
37
48
|
type: PropType<LoaderColor>;
|
|
38
49
|
default: LoaderColor;
|
|
39
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
53
|
+
*/
|
|
40
54
|
size: {
|
|
41
55
|
type: PropType<LoaderSize>;
|
|
42
56
|
default: LoaderSize;
|
|
@@ -61,7 +75,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
61
75
|
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
62
76
|
titleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
63
77
|
descriptionStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
64
|
-
computedSize: import("@vue/composition-api").ComputedRef<20 | 16
|
|
78
|
+
computedSize: import("@vue/composition-api").ComputedRef<20 | 16>;
|
|
65
79
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
66
80
|
variant: LoaderVariant;
|
|
67
81
|
color: LoaderColor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { s as OrPaginationV3 } from '../../OrPagination-
|
|
1
|
+
export { s as OrPaginationV3 } from '../../OrPagination-7cbdbb05.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../OrButton-
|
|
4
|
-
import '../../OrLoader-
|
|
3
|
+
import '../../OrButton-d9f6c316.js';
|
|
4
|
+
import '../../OrLoader-1709eb68.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import '../../OrIcon-34f59f73.js';
|
|
7
7
|
import '../../OrMenuItem-58707d47.js';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { s as OrSearchV3 } from '../../OrSearch-
|
|
2
|
-
export { a as SearchSize } from '../../OrInputBox-
|
|
1
|
+
export { s as OrSearchV3 } from '../../OrSearch-5406bf03.js';
|
|
2
|
+
export { a as SearchSize } from '../../OrInputBox-e16ade90.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
5
|
-
import '../../OrInput-
|
|
5
|
+
import '../../OrInput-bd054213.js';
|
|
6
6
|
import '../../useIdAttribute-859439f0.js';
|
|
7
|
-
import '../../useResponsive-a02e95b7.js';
|
|
8
7
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
9
8
|
import '../../OrError-19198748.js';
|
|
10
9
|
import 'vue';
|
|
@@ -15,9 +14,9 @@ import '../../OrTooltip-b07616f4.js';
|
|
|
15
14
|
import '../../OrPopover-40217b49.js';
|
|
16
15
|
import '@floating-ui/dom';
|
|
17
16
|
import '../../useElevation-31bfe1f6.js';
|
|
17
|
+
import '../../useResponsive-a02e95b7.js';
|
|
18
18
|
import '../../OrBottomSheet-13a416ef.js';
|
|
19
19
|
import '../../OrOverlay-afad3aa4.js';
|
|
20
20
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
21
21
|
import '../../OrLabel-f700f9fb.js';
|
|
22
|
-
import '../../OrLoader-a53d2edf.js';
|
|
23
22
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
2
|
-
export { a as SelectSize } from '../../OrInputBox-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-466e50ca.js';
|
|
2
|
+
export { a as SelectSize } from '../../OrInputBox-e16ade90.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
5
5
|
import '../../useOverflow-af6161c8.js';
|
|
@@ -13,17 +13,16 @@ import '../../OrError-19198748.js';
|
|
|
13
13
|
import '../../OrExpansionPanel-3a4282da.js';
|
|
14
14
|
import '../../OrIcon-34f59f73.js';
|
|
15
15
|
import '../../OrHint-6863124f.js';
|
|
16
|
-
import '../../OrInput-
|
|
17
|
-
import '../../useResponsive-a02e95b7.js';
|
|
16
|
+
import '../../OrInput-bd054213.js';
|
|
18
17
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
19
18
|
import '../../OrIconButton-2dcfb83e.js';
|
|
20
19
|
import '../../OrTooltip-b07616f4.js';
|
|
21
20
|
import '../../OrPopover-40217b49.js';
|
|
22
21
|
import '@floating-ui/dom';
|
|
23
22
|
import '../../useElevation-31bfe1f6.js';
|
|
23
|
+
import '../../useResponsive-a02e95b7.js';
|
|
24
24
|
import '../../OrBottomSheet-13a416ef.js';
|
|
25
25
|
import '../../OrOverlay-afad3aa4.js';
|
|
26
26
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
27
|
-
import '../../OrLoader-a53d2edf.js';
|
|
28
27
|
import '../../OrMenuItem-58707d47.js';
|
|
29
28
|
import '../../OrTag-148ff9ae.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { s as OrSwitchV3 } from '../../OrSwitch-
|
|
1
|
+
export { s as OrSwitchV3 } from '../../OrSwitch-54988e7a.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useIdAttribute-859439f0.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '../../OrLabel-f700f9fb.js';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import '../../OrLoader-
|
|
7
|
+
import '../../OrLoader-1709eb68.js';
|
|
8
8
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as OrTextareaV3 } from '../../OrTextarea-
|
|
2
|
-
export { a as TextareaSize } from '../../OrInputBox-
|
|
1
|
+
export { s as OrTextareaV3 } from '../../OrTextarea-37566985.js';
|
|
2
|
+
export { a as TextareaSize } from '../../OrInputBox-e16ade90.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useIdAttribute-859439f0.js';
|
|
5
5
|
import '@vueuse/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-c3417028.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../useToast-0665462d.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -13,5 +13,5 @@ import '../../useElevation-31bfe1f6.js';
|
|
|
13
13
|
import '../../useResponsive-a02e95b7.js';
|
|
14
14
|
import '../../OrBottomSheet-13a416ef.js';
|
|
15
15
|
import '../../OrOverlay-afad3aa4.js';
|
|
16
|
-
import '../../OrLoader-
|
|
16
|
+
import '../../OrLoader-1709eb68.js';
|
|
17
17
|
import '../../style-inject.es-4c6f2515.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -3,10 +3,10 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-6
|
|
|
3
3
|
export { s as OrBottomSheetV3 } from './OrBottomSheet-13a416ef.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
|
|
6
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-
|
|
6
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-d9f6c316.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-04b36455.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-c11ee2ec.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-d7d6255c.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-308119de.js';
|
|
@@ -34,8 +34,8 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
|
|
|
34
34
|
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-fbc35f85.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
36
36
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-79da8697.js';
|
|
37
|
-
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
37
|
+
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-e16ade90.js';
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-bd054213.js';
|
|
39
39
|
export { s as OrInput } from './OrInput-81125804.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
|
|
@@ -43,7 +43,7 @@ export { L as LinkColor, s as OrLinkV3 } from './OrLink-07f6f27d.js';
|
|
|
43
43
|
export { s as OrList } from './OrList-b740d13e.js';
|
|
44
44
|
export { s as OrListOfInputs } from './OrListOfInputs-508e056f.js';
|
|
45
45
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
|
|
46
|
-
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-
|
|
46
|
+
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-1709eb68.js';
|
|
47
47
|
export { s as OrMenuItemV3 } from './OrMenuItem-58707d47.js';
|
|
48
48
|
export { s as OrMenuV3 } from './OrMenu-7f3ea117.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-40217b49.js';
|
|
@@ -56,17 +56,17 @@ export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
|
56
56
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
57
57
|
export { s as OrOverlayV3 } from './OrOverlay-afad3aa4.js';
|
|
58
58
|
export { s as OrPassword } from './OrPassword-b0cbb578.js';
|
|
59
|
-
export { s as OrPaginationV3 } from './OrPagination-
|
|
59
|
+
export { s as OrPaginationV3 } from './OrPagination-7cbdbb05.js';
|
|
60
60
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
|
|
61
61
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-639ed5e8.js';
|
|
62
62
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
63
63
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
64
64
|
export { s as OrRadioV3 } from './OrRadio-bb9b37c1.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-11fdf667.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-5406bf03.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
69
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from './OrSelect-466e50ca.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
71
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
72
72
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -75,7 +75,7 @@ export { s as OrSlider } from './OrSlider-87e2da8c.js';
|
|
|
75
75
|
export { s as OrSortHeaderV3 } from './OrSortHeader-a39f77f9.js';
|
|
76
76
|
export { s as OrStepper } from './OrStepper-f19b4eac.js';
|
|
77
77
|
export { s as OrSwitch } from './OrSwitch-c333ee32.js';
|
|
78
|
-
export { s as OrSwitchV3 } from './OrSwitch-
|
|
78
|
+
export { s as OrSwitchV3 } from './OrSwitch-54988e7a.js';
|
|
79
79
|
export { s as OrTab } from './OrTab-bc98be02.js';
|
|
80
80
|
export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
|
|
81
81
|
export { s as OrTabV3 } from './OrTab-d3785ea4.js';
|
|
@@ -87,11 +87,11 @@ export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
|
87
87
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
88
88
|
export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
|
|
89
89
|
export { s as OrTextarea } from './OrTextarea-1f5c3be1.js';
|
|
90
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
90
|
+
export { s as OrTextareaV3 } from './OrTextarea-37566985.js';
|
|
91
91
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
|
|
92
92
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
|
|
93
93
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
94
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
94
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-c3417028.js';
|
|
95
95
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
96
96
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
97
97
|
export { s as OrTooltipV3 } from './OrTooltip-b07616f4.js';
|
|
@@ -3,7 +3,7 @@ import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTic
|
|
|
3
3
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
4
4
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
|
|
5
5
|
import { s as script$2 } from './OrIconButton-2dcfb83e.js';
|
|
6
|
-
import { s as script$3 } from './OrLoader-
|
|
6
|
+
import { s as script$3 } from './OrLoader-1709eb68.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -90,11 +90,13 @@ export const InputBoxRootVariants: Record<InputBoxVariant, string[]> = {
|
|
|
90
90
|
export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
91
91
|
'm': [
|
|
92
92
|
// Box
|
|
93
|
-
'children:min-h-[
|
|
93
|
+
'children:min-h-[34px]',
|
|
94
94
|
|
|
95
95
|
// Spacing
|
|
96
96
|
'first-child:pl-md first-child:md:pl-sm+',
|
|
97
97
|
'last-child:pr-md last-child:md:pr-sm+',
|
|
98
|
+
'children:pt-[11px] children:md:pt-[7px]',
|
|
99
|
+
'children:pb-[11px] children:md:pb-[6px]',
|
|
98
100
|
|
|
99
101
|
'gap-sm+ md:gap-sm',
|
|
100
102
|
|
|
@@ -107,8 +109,9 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
|
107
109
|
'children:min-h-[30px]',
|
|
108
110
|
|
|
109
111
|
// Spacing
|
|
110
|
-
'first-child:pl-
|
|
111
|
-
'last-child:pr-
|
|
112
|
+
'first-child:pl-sm',
|
|
113
|
+
'last-child:pr-sm',
|
|
114
|
+
'children:py-[6px]',
|
|
112
115
|
|
|
113
116
|
'gap-[6px]',
|
|
114
117
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:variant="disableDefaultStyles ? 'unstyled' : 'styled'"
|
|
23
23
|
:size="size"
|
|
24
24
|
:invalid="invalid"
|
|
25
|
-
:readonly="readonly
|
|
25
|
+
:readonly="readonly"
|
|
26
26
|
:disabled="disabled"
|
|
27
27
|
>
|
|
28
28
|
<input
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
:type="type === 'password' && disclosed ? 'text' : type"
|
|
34
34
|
:placeholder="placeholder"
|
|
35
35
|
:required="required"
|
|
36
|
-
:readonly="readonly
|
|
36
|
+
:readonly="readonly"
|
|
37
37
|
:disabled="disabled"
|
|
38
38
|
@keydown="$emit('keydown', $event)"
|
|
39
39
|
@keyup="$emit('keyup', $event)"
|
|
@@ -42,40 +42,30 @@
|
|
|
42
42
|
>
|
|
43
43
|
|
|
44
44
|
<div :class="['layout-row']">
|
|
45
|
-
<template v-if="
|
|
46
|
-
<
|
|
47
|
-
:
|
|
48
|
-
:color="'
|
|
49
|
-
:
|
|
45
|
+
<template v-if="type === 'password'">
|
|
46
|
+
<OrIconButton
|
|
47
|
+
:icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
|
|
48
|
+
:color="'inherit'"
|
|
49
|
+
:disabled="disabled"
|
|
50
|
+
@click.stop="disclosed = !disclosed"
|
|
50
51
|
/>
|
|
51
52
|
</template>
|
|
52
53
|
|
|
53
|
-
<template v-
|
|
54
|
-
<template v-if="
|
|
54
|
+
<template v-if="type === 'search'">
|
|
55
|
+
<template v-if="modelValue">
|
|
55
56
|
<OrIconButton
|
|
56
|
-
:icon="
|
|
57
|
+
:icon="'close'"
|
|
57
58
|
:color="'inherit'"
|
|
58
|
-
:disabled="disabled"
|
|
59
|
-
@click.stop="
|
|
59
|
+
:disabled="readonly || disabled"
|
|
60
|
+
@click.stop="$emit('update:modelValue', '')"
|
|
60
61
|
/>
|
|
61
62
|
</template>
|
|
62
63
|
|
|
63
|
-
<template v-
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
:disabled="readonly || disabled"
|
|
69
|
-
@click.stop="$emit('update:modelValue', '')"
|
|
70
|
-
/>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<template v-else>
|
|
74
|
-
<OrIcon
|
|
75
|
-
:icon="'search'"
|
|
76
|
-
:variant="'outlined'"
|
|
77
|
-
/>
|
|
78
|
-
</template>
|
|
64
|
+
<template v-else>
|
|
65
|
+
<OrIcon
|
|
66
|
+
:icon="'search'"
|
|
67
|
+
:variant="'outlined'"
|
|
68
|
+
/>
|
|
79
69
|
</template>
|
|
80
70
|
</template>
|
|
81
71
|
</div>
|
|
@@ -113,14 +103,13 @@
|
|
|
113
103
|
|
|
114
104
|
<script lang="ts">
|
|
115
105
|
import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
|
|
116
|
-
import { useControlAttributes, useIdAttribute,
|
|
106
|
+
import { useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
|
|
117
107
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
118
108
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
119
109
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
120
110
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
121
111
|
import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
|
|
122
112
|
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
123
|
-
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
124
113
|
import { InputSize, InputType } from './props';
|
|
125
114
|
import { InputControl, InputRoot } from './styles';
|
|
126
115
|
|
|
@@ -134,7 +123,6 @@ export default defineComponent({
|
|
|
134
123
|
OrIconButton,
|
|
135
124
|
OrInputBox,
|
|
136
125
|
OrLabel,
|
|
137
|
-
OrLoader,
|
|
138
126
|
},
|
|
139
127
|
|
|
140
128
|
model: {
|
|
@@ -178,11 +166,6 @@ export default defineComponent({
|
|
|
178
166
|
default: undefined,
|
|
179
167
|
},
|
|
180
168
|
|
|
181
|
-
loading: {
|
|
182
|
-
type: Boolean,
|
|
183
|
-
default: false,
|
|
184
|
-
},
|
|
185
|
-
|
|
186
169
|
required: {
|
|
187
170
|
type: Boolean,
|
|
188
171
|
default: false,
|
|
@@ -257,8 +240,6 @@ export default defineComponent({
|
|
|
257
240
|
|
|
258
241
|
const disclosed = ref(false);
|
|
259
242
|
|
|
260
|
-
const { isMobile } = useResponsive();
|
|
261
|
-
|
|
262
243
|
// Methods
|
|
263
244
|
function focus(): void {
|
|
264
245
|
control.value?.focus();
|
|
@@ -279,7 +260,6 @@ export default defineComponent({
|
|
|
279
260
|
maxLength,
|
|
280
261
|
invalid,
|
|
281
262
|
disclosed,
|
|
282
|
-
isMobile,
|
|
283
263
|
focus,
|
|
284
264
|
blur,
|
|
285
265
|
};
|
|
@@ -25,16 +25,16 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
|
|
27
27
|
title: {
|
|
28
|
-
control: { type: '
|
|
28
|
+
control: { type: 'text' },
|
|
29
29
|
},
|
|
30
30
|
|
|
31
31
|
description: {
|
|
32
|
-
control: { type: '
|
|
32
|
+
control: { type: 'text' },
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
parameters: {
|
|
37
|
-
layout: '
|
|
37
|
+
layout: 'fullscreen',
|
|
38
38
|
|
|
39
39
|
docs: {
|
|
40
40
|
page: OrLoaderDocs,
|
|
@@ -56,7 +56,11 @@ const Template: StoryFn<typeof OrLoader> = (args) => ({
|
|
|
56
56
|
return { args };
|
|
57
57
|
},
|
|
58
58
|
|
|
59
|
-
template:
|
|
59
|
+
template: `
|
|
60
|
+
<div class="w-full min-h-[100px] p-md flex justify-center items-center">
|
|
61
|
+
<OrLoader class="w-2/5 max-w-[400px]" v-bind="args" />
|
|
62
|
+
</div>
|
|
63
|
+
`,
|
|
60
64
|
});
|
|
61
65
|
|
|
62
66
|
export const Default = Template.bind({});
|
|
@@ -72,3 +76,11 @@ LinearWithText.args = {
|
|
|
72
76
|
variant: 'linear',
|
|
73
77
|
description: 'Promptly retrieving your data from the cloud',
|
|
74
78
|
};
|
|
79
|
+
LinearWithText.parameters = {
|
|
80
|
+
docs: {
|
|
81
|
+
description: {
|
|
82
|
+
story: 'By setting width on the component you may control the width of the linear loading indicator. \
|
|
83
|
+
Circular indicator size is controlled by the `size` prop.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
};
|
|
@@ -92,11 +92,18 @@ export default defineComponent({
|
|
|
92
92
|
default: LoaderVariant.Circular,
|
|
93
93
|
},
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Defines a semantic color of the loading indicator.
|
|
97
|
+
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
98
|
+
*/
|
|
95
99
|
color: {
|
|
96
100
|
type: String as PropType<LoaderColor>,
|
|
97
101
|
default: LoaderColor.Primary,
|
|
98
102
|
},
|
|
99
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
106
|
+
*/
|
|
100
107
|
size: {
|
|
101
108
|
type: String as PropType<LoaderSize>,
|
|
102
109
|
default: LoaderSize.M,
|
|
@@ -138,15 +145,16 @@ export default defineComponent({
|
|
|
138
145
|
|
|
139
146
|
const containerStyles = computed(() => [
|
|
140
147
|
...LoaderContainer,
|
|
148
|
+
`min-w-[${computedSize}px]`,
|
|
141
149
|
]);
|
|
142
150
|
|
|
143
151
|
// State
|
|
144
152
|
const computedSize = computed(() => {
|
|
145
153
|
switch (props.size) {
|
|
146
|
-
case
|
|
154
|
+
case LoaderSize.M:
|
|
147
155
|
return 20;
|
|
148
156
|
|
|
149
|
-
case
|
|
157
|
+
case LoaderSize.S:
|
|
150
158
|
return 16;
|
|
151
159
|
}
|
|
152
160
|
});
|