@onereach/ui-components 2.75.2-beta.2393.0 → 2.75.2-beta.2399.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/{OrCardCollection-04e767c2.js → OrCardCollection-e3986f07.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-a76ff6d2.js → OrConfirm-498fa802.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-9304f205.js → OrInlineInput-5f0b99f9.js} +25 -11
- package/dist/bundled/v2/{OrInlineTextarea-e0d28fc6.js → OrInlineTextarea-975b8706.js} +25 -11
- package/dist/bundled/v2/{OrInput-b8511a0c.js → OrInput-822eb9f5.js} +27 -12
- package/dist/bundled/v2/{OrInputBox-e54dcef9.js → OrInputBox-9a31d211.js} +2 -12
- package/dist/bundled/v2/{OrSearch-60b64568.js → OrSearch-f9d46a70.js} +2 -2
- package/dist/bundled/v2/{OrSelect-752bdd3b.js → OrSelect-0c0c01d4.js} +27 -10
- package/dist/bundled/v2/{OrTextarea-5fdf63d0.js → OrTextarea-c56f19db.js} +27 -12
- package/dist/bundled/v2/components/index.js +10 -9
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -4
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +162 -0
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-select-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/bundled/v2/index.js +11 -10
- package/dist/bundled/v2/props-78496a2d.js +12 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-e71a0ea0.js → OrCardCollection.vue_vue_type_script_lang-f2fdaa33.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-b550c3d3.js → OrConfirm.vue_vue_type_script_lang-2bb4e530.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js → OrInlineInput.vue_vue_type_script_lang-18853dd7.js} +3 -5
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js → OrInlineTextarea.vue_vue_type_script_lang-3cb238d6.js} +3 -5
- package/dist/bundled/v3/{OrInput-6d49f353.js → OrInput-13a84d53.js} +12 -9
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-af68d0e7.js → OrInput.vue_vue_type_script_lang-09a6138d.js} +6 -7
- package/dist/bundled/v3/{OrInputBox-358d4856.js → OrInputBox-44f37541.js} +1 -1
- package/dist/{esm/v2/OrInputBox-53d1f66d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js} +3 -53
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-8c37e5a7.js → OrSearch.vue_vue_type_script_lang-9028a3c5.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-35ac0247.js → OrSelect.vue_vue_type_script_lang-30c61027.js} +9 -8
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-de99a858.js → OrTextarea.vue_vue_type_script_lang-b2899ba6.js} +6 -7
- package/dist/bundled/v3/components/index.js +12 -11
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +7 -6
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +131 -0
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-input-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-search-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-select-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
- package/dist/bundled/v3/index.js +140 -129
- package/dist/bundled/v3/props-78496a2d.js +12 -0
- package/dist/esm/v2/{OrCardCollection-f7856175.js → OrCardCollection-59455d23.js} +2 -2
- package/dist/esm/v2/{OrConfirm-98d62065.js → OrConfirm-b31e3d3d.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-df02ab5d.js → OrInlineInput-36d79e50.js} +25 -11
- package/dist/esm/v2/{OrInlineTextarea-ad120656.js → OrInlineTextarea-e2d61e44.js} +25 -11
- package/dist/esm/v2/{OrInput-3bb91436.js → OrInput-06003aad.js} +27 -12
- package/dist/esm/v2/OrInputBox-5c4b3104.js +43 -0
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js} +1 -1
- package/dist/esm/v2/{OrSearch-dad9b02f.js → OrSearch-44645202.js} +2 -2
- package/dist/esm/v2/{OrSelect-7ef80130.js → OrSelect-a51044ed.js} +27 -10
- package/dist/esm/v2/{OrTextarea-0a64f718.js → OrTextarea-5fa93c9a.js} +27 -12
- package/dist/esm/v2/components/index.js +10 -9
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -4
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.js +159 -0
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -3
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-input-v3/index.js +3 -2
- package/dist/esm/v2/components/or-search-v3/index.js +4 -3
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-select-v3/index.js +4 -3
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/esm/v2/index.js +10 -9
- package/dist/esm/v3/{OrCardCollection-4cb41408.js → OrCardCollection-5c0d53e0.js} +1 -1
- package/dist/esm/v3/{OrConfirm-19da64d1.js → OrConfirm-c7304c10.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-cd3753ee.js → OrInlineInput-651c9155.js} +14 -14
- package/dist/esm/v3/{OrInlineTextarea-4c5b0390.js → OrInlineTextarea-d16af66a.js} +14 -14
- package/dist/esm/v3/{OrInput-ae9f6871.js → OrInput-b3939d15.js} +14 -13
- package/dist/esm/v3/{OrSearch-6f6b4fcd.js → OrSearch-d16d0331.js} +1 -1
- package/dist/esm/v3/{OrSelect-96bf9b63.js → OrSelect-19c2e7d2.js} +16 -13
- package/dist/esm/v3/{OrTextarea-42d21f77.js → OrTextarea-dfc6a453.js} +14 -13
- package/dist/esm/v3/components/index.js +8 -8
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.js +130 -0
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +8 -8
- package/package.json +2 -2
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +201 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +133 -0
- package/src/components/or-combined-input-v3/index.ts +2 -0
- package/src/components/or-combined-input-v3/props.ts +1 -0
- package/src/components/or-combined-input-v3/styles.ts +25 -0
- package/src/components/or-inline-input-v3/OrInlineInput.vue +12 -9
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +12 -9
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.vue +12 -9
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +12 -8
- package/src/components/or-select-v3/styles.ts +4 -1
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +1 -1
- package/src/components/or-textarea-v3/OrTextarea.vue +12 -9
- package/src/components/or-textarea-v3/styles.ts +2 -2
|
@@ -24,7 +24,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
24
24
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
25
25
|
controlId: import("@vue/composition-api").Ref<string>;
|
|
26
26
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
|
|
27
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
28
27
|
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
29
28
|
selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
|
|
30
29
|
searchText: import("@vue/composition-api").Ref<string>;
|
|
@@ -73,7 +72,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
73
72
|
default: undefined;
|
|
74
73
|
};
|
|
75
74
|
error: {
|
|
76
|
-
type: StringConstructor;
|
|
75
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
77
76
|
default: undefined;
|
|
78
77
|
};
|
|
79
78
|
required: {
|
|
@@ -138,7 +137,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
138
137
|
default: undefined;
|
|
139
138
|
};
|
|
140
139
|
error: {
|
|
141
|
-
type: StringConstructor;
|
|
140
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
142
141
|
default: undefined;
|
|
143
142
|
};
|
|
144
143
|
required: {
|
|
@@ -178,7 +177,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
178
177
|
size: SelectSize;
|
|
179
178
|
placeholder: string;
|
|
180
179
|
hint: string;
|
|
181
|
-
error: string;
|
|
180
|
+
error: string | boolean;
|
|
182
181
|
required: boolean;
|
|
183
182
|
disabled: boolean;
|
|
184
183
|
disableDefaultStyles: boolean;
|
|
@@ -211,7 +210,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
211
210
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
212
211
|
controlId: import("@vue/composition-api").Ref<string>;
|
|
213
212
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
|
|
214
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
215
213
|
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
216
214
|
selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
|
|
217
215
|
searchText: import("@vue/composition-api").Ref<string>;
|
|
@@ -235,7 +233,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
235
233
|
size: SelectSize;
|
|
236
234
|
placeholder: string;
|
|
237
235
|
hint: string;
|
|
238
|
-
error: string;
|
|
236
|
+
error: string | boolean;
|
|
239
237
|
required: boolean;
|
|
240
238
|
disabled: boolean;
|
|
241
239
|
disableDefaultStyles: boolean;
|
|
@@ -254,7 +252,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
254
252
|
size: SelectSize;
|
|
255
253
|
placeholder: string;
|
|
256
254
|
hint: string;
|
|
257
|
-
error: string;
|
|
255
|
+
error: string | boolean;
|
|
258
256
|
required: boolean;
|
|
259
257
|
disabled: boolean;
|
|
260
258
|
disableDefaultStyles: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-19c2e7d2.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-2467d7e4.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
@@ -13,7 +13,7 @@ import '../../OrError-19198748.js';
|
|
|
13
13
|
import '../../OrExpansionPanel-541cc4c1.js';
|
|
14
14
|
import '../../OrIcon-ea40e58c.js';
|
|
15
15
|
import '../../OrHint-6863124f.js';
|
|
16
|
-
import '../../OrInput-
|
|
16
|
+
import '../../OrInput-b3939d15.js';
|
|
17
17
|
import '../../useResponsive-a02e95b7.js';
|
|
18
18
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
19
19
|
import '../../OrIconButton-385e997c.js';
|
|
@@ -21,7 +21,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
21
21
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
22
22
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
23
23
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
24
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
25
24
|
focus: () => void;
|
|
26
25
|
blur: () => void;
|
|
27
26
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -46,7 +45,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
46
45
|
default: undefined;
|
|
47
46
|
};
|
|
48
47
|
error: {
|
|
49
|
-
type: StringConstructor;
|
|
48
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
50
49
|
default: undefined;
|
|
51
50
|
};
|
|
52
51
|
required: {
|
|
@@ -83,7 +82,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
83
82
|
default: undefined;
|
|
84
83
|
};
|
|
85
84
|
error: {
|
|
86
|
-
type: StringConstructor;
|
|
85
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
87
86
|
default: undefined;
|
|
88
87
|
};
|
|
89
88
|
required: {
|
|
@@ -104,7 +103,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
104
103
|
label: string;
|
|
105
104
|
placeholder: string;
|
|
106
105
|
hint: string;
|
|
107
|
-
error: string;
|
|
106
|
+
error: string | boolean;
|
|
108
107
|
required: boolean;
|
|
109
108
|
readonly: boolean;
|
|
110
109
|
disabled: boolean;
|
|
@@ -131,7 +130,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
131
130
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
132
131
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
133
132
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
134
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
135
133
|
focus: () => void;
|
|
136
134
|
blur: () => void;
|
|
137
135
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
@@ -140,7 +138,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
140
138
|
label: string;
|
|
141
139
|
placeholder: string;
|
|
142
140
|
hint: string;
|
|
143
|
-
error: string;
|
|
141
|
+
error: string | boolean;
|
|
144
142
|
required: boolean;
|
|
145
143
|
readonly: boolean;
|
|
146
144
|
disabled: boolean;
|
|
@@ -152,7 +150,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
152
150
|
label: string;
|
|
153
151
|
placeholder: string;
|
|
154
152
|
hint: string;
|
|
155
|
-
error: string;
|
|
153
|
+
error: string | boolean;
|
|
156
154
|
required: boolean;
|
|
157
155
|
readonly: boolean;
|
|
158
156
|
disabled: boolean;
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-9f059df6.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1258cd45.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-5c0d53e0.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-a3a855e8.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-8d8887ea.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-fe49ca8e.js';
|
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-37a52e8f.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-9a149e6b.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-45796889.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-c7304c10.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-efd8aae7.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-0025b17c.js';
|
|
@@ -31,11 +31,11 @@ export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-ed3e10
|
|
|
31
31
|
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-385e997c.js';
|
|
32
32
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-ea40e58c.js';
|
|
33
33
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-09b33e18.js';
|
|
34
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
34
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-651c9155.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-adf71cc1.js';
|
|
36
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
36
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-d16af66a.js';
|
|
37
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-2467d7e4.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-b3939d15.js';
|
|
39
39
|
export { s as OrInput } from './OrInput-0dbd5a01.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
|
|
@@ -63,10 +63,10 @@ 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-97fb105f.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-4a5c943b.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-d16d0331.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-88e5dfaf.js';
|
|
69
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from './OrSelect-19c2e7d2.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
71
|
export { s as OrSidebarV3 } from './OrSidebar-64703ef6.js';
|
|
72
72
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-506fc73c.js';
|
|
@@ -88,7 +88,7 @@ export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
|
88
88
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
89
89
|
export { s as OrTextV3 } from './OrText-a3b00048.js';
|
|
90
90
|
export { s as OrTextarea } from './OrTextarea-de1ecb0f.js';
|
|
91
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
91
|
+
export { s as OrTextareaV3 } from './OrTextarea-dfc6a453.js';
|
|
92
92
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-5c1cf735.js';
|
|
93
93
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-11a58425.js';
|
|
94
94
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.75.2-beta.
|
|
3
|
+
"version": "2.75.2-beta.2399.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.36.2-beta.
|
|
41
|
+
"@onereach/styles": "^2.36.2-beta.2399.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { ref, watch } from 'vue-demi';
|
|
3
|
+
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
4
|
+
import { OrInputV3 as OrInput } from '../or-input-v3';
|
|
5
|
+
import { OrSelectV3 as OrSelect, SelectOption } from '../or-select-v3';
|
|
6
|
+
import OrCombinedInputDocs from './OrCombinedInput.docs.mdx';
|
|
7
|
+
import OrCombinedInput from './OrCombinedInput.vue';
|
|
8
|
+
import { CombinedInputSize } from './props';
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Forms/Combined Input',
|
|
12
|
+
component: OrCombinedInput,
|
|
13
|
+
|
|
14
|
+
argTypes: {
|
|
15
|
+
// Slots
|
|
16
|
+
default: {
|
|
17
|
+
type: {
|
|
18
|
+
name: 'string',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
control: { type: 'text' },
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
addon: {
|
|
26
|
+
type: {
|
|
27
|
+
name: 'string',
|
|
28
|
+
required: false,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
control: { type: 'text' },
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// Props
|
|
35
|
+
size: {
|
|
36
|
+
control: { type: 'select' },
|
|
37
|
+
options: Object.values(CombinedInputSize),
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
label: {
|
|
41
|
+
control: { type: 'text' },
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
hint: {
|
|
45
|
+
control: { type: 'text' },
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
error: {
|
|
49
|
+
control: { type: 'text' },
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
required: {
|
|
53
|
+
control: { type: 'boolean' },
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
readonly: {
|
|
57
|
+
control: { type: 'boolean' },
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
disabled: {
|
|
61
|
+
control: { type: 'boolean' },
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
disableDefaultStyles: {
|
|
65
|
+
control: { type: 'boolean' },
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
parameters: {
|
|
70
|
+
docs: {
|
|
71
|
+
page: OrCombinedInputDocs,
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
design: {
|
|
75
|
+
type: 'figma',
|
|
76
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4423%3A39753&t=grpHUrgJi4X2W67L-4',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
} as Meta<typeof OrCombinedInput>;
|
|
80
|
+
|
|
81
|
+
const Template: StoryFn<typeof OrCombinedInput> = (args) => ({
|
|
82
|
+
components: {
|
|
83
|
+
OrCombinedInput,
|
|
84
|
+
OrIcon,
|
|
85
|
+
OrInput,
|
|
86
|
+
OrSelect,
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
setup() {
|
|
90
|
+
// State
|
|
91
|
+
const options = Array.from<string, SelectOption>([
|
|
92
|
+
'Alfa',
|
|
93
|
+
'Bravo',
|
|
94
|
+
'Charlie',
|
|
95
|
+
'Delta',
|
|
96
|
+
'Echo',
|
|
97
|
+
'Foxtrot',
|
|
98
|
+
'Golf',
|
|
99
|
+
'Hotel',
|
|
100
|
+
'India',
|
|
101
|
+
'Juliett',
|
|
102
|
+
'Kilo',
|
|
103
|
+
'Lima',
|
|
104
|
+
'Mike',
|
|
105
|
+
'November',
|
|
106
|
+
'Oscar',
|
|
107
|
+
'Papa',
|
|
108
|
+
'Quebec',
|
|
109
|
+
'Romeo',
|
|
110
|
+
'Sierra',
|
|
111
|
+
'Tango',
|
|
112
|
+
'Uniform',
|
|
113
|
+
'Victor',
|
|
114
|
+
'Whiskey',
|
|
115
|
+
'X-Ray',
|
|
116
|
+
'Yankee',
|
|
117
|
+
'Zulu',
|
|
118
|
+
], (item) => ({
|
|
119
|
+
value: item.toLowerCase(),
|
|
120
|
+
label: item,
|
|
121
|
+
}));
|
|
122
|
+
|
|
123
|
+
const selectModel = ref<string>();
|
|
124
|
+
const inputModel = ref<string>();
|
|
125
|
+
|
|
126
|
+
// Effects
|
|
127
|
+
watch([selectModel, inputModel], (values) => {
|
|
128
|
+
console.debug(values);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
args,
|
|
133
|
+
options,
|
|
134
|
+
selectModel,
|
|
135
|
+
inputModel,
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
template: `
|
|
140
|
+
<OrCombinedInput v-bind="args">
|
|
141
|
+
${args.default}
|
|
142
|
+
${args.addon}
|
|
143
|
+
</OrCombinedInput>
|
|
144
|
+
`,
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
export const Default = Template.bind({});
|
|
148
|
+
|
|
149
|
+
Default.args = {
|
|
150
|
+
// Slots
|
|
151
|
+
default: `
|
|
152
|
+
<template v-slot="props">
|
|
153
|
+
<OrSelect
|
|
154
|
+
class="basis-1/4"
|
|
155
|
+
v-model="selectModel"
|
|
156
|
+
v-bind="props"
|
|
157
|
+
:options="options"
|
|
158
|
+
/>
|
|
159
|
+
|
|
160
|
+
<OrInput
|
|
161
|
+
class="basis-3/4"
|
|
162
|
+
v-model="inputModel"
|
|
163
|
+
v-bind="props"
|
|
164
|
+
/>
|
|
165
|
+
</template>
|
|
166
|
+
`,
|
|
167
|
+
|
|
168
|
+
// Props
|
|
169
|
+
label: 'Combined Input',
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export const Addon = Template.bind({});
|
|
173
|
+
|
|
174
|
+
Addon.args = {
|
|
175
|
+
...Default.args,
|
|
176
|
+
|
|
177
|
+
// Slots
|
|
178
|
+
addon: `
|
|
179
|
+
<template v-slot:addon>
|
|
180
|
+
<OrIcon icon="info" />
|
|
181
|
+
</template>
|
|
182
|
+
`,
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export const Hint = Template.bind({});
|
|
186
|
+
|
|
187
|
+
Hint.args = {
|
|
188
|
+
...Default.args,
|
|
189
|
+
|
|
190
|
+
// Props
|
|
191
|
+
hint: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export const Error = Template.bind({});
|
|
195
|
+
|
|
196
|
+
Error.args = {
|
|
197
|
+
...Default.args,
|
|
198
|
+
|
|
199
|
+
// Props
|
|
200
|
+
error: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
201
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
>
|
|
6
|
+
<template v-if="label">
|
|
7
|
+
<OrLabel
|
|
8
|
+
:variant="'input'"
|
|
9
|
+
:required="required"
|
|
10
|
+
:disabled="disabled"
|
|
11
|
+
>
|
|
12
|
+
{{ label }}
|
|
13
|
+
|
|
14
|
+
<template v-slot:addon>
|
|
15
|
+
<slot name="addon" />
|
|
16
|
+
</template>
|
|
17
|
+
</OrLabel>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<div :class="controlGroup">
|
|
21
|
+
<slot
|
|
22
|
+
:size="size"
|
|
23
|
+
:error="!!error"
|
|
24
|
+
:required="required"
|
|
25
|
+
:readonly="readonly"
|
|
26
|
+
:disabled="disabled"
|
|
27
|
+
:disable-default-styles="disableDefaultStyles"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div
|
|
32
|
+
v-show="!error"
|
|
33
|
+
:class="['contents']"
|
|
34
|
+
>
|
|
35
|
+
<template v-if="hint">
|
|
36
|
+
<OrHint :disabled="disabled">
|
|
37
|
+
{{ hint }}
|
|
38
|
+
</OrHint>
|
|
39
|
+
</template>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div
|
|
43
|
+
v-show="typeof error === 'string'"
|
|
44
|
+
:class="['contents']"
|
|
45
|
+
>
|
|
46
|
+
<OrError :disabled="disabled">
|
|
47
|
+
{{ error }}
|
|
48
|
+
</OrError>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script lang="ts">
|
|
54
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
55
|
+
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
56
|
+
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
57
|
+
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
58
|
+
import { CombinedInputSize } from './props';
|
|
59
|
+
import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
|
|
60
|
+
|
|
61
|
+
export default defineComponent({
|
|
62
|
+
name: 'OrCombinedInput',
|
|
63
|
+
|
|
64
|
+
components: {
|
|
65
|
+
OrError,
|
|
66
|
+
OrHint,
|
|
67
|
+
OrLabel,
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
props: {
|
|
71
|
+
size: {
|
|
72
|
+
type: String as PropType<CombinedInputSize>,
|
|
73
|
+
default: CombinedInputSize.M,
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
label: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: undefined,
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
hint: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: undefined,
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
error: {
|
|
87
|
+
type: [String, Boolean],
|
|
88
|
+
default: undefined,
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
required: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: false,
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
readonly: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: false,
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
disabled: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: false,
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
disableDefaultStyles: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
setup(props, context) {
|
|
113
|
+
// Refs
|
|
114
|
+
const root = ref<HTMLElement>();
|
|
115
|
+
|
|
116
|
+
// Styles
|
|
117
|
+
const rootStyles = computed(() => [
|
|
118
|
+
'or-combined-input',
|
|
119
|
+
...CombinedInputRoot,
|
|
120
|
+
]);
|
|
121
|
+
|
|
122
|
+
const controlGroup = computed(() => [
|
|
123
|
+
...CombinedInputControlGroup,
|
|
124
|
+
]);
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
root,
|
|
128
|
+
rootStyles,
|
|
129
|
+
controlGroup,
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const CombinedInputRoot: string[] = [
|
|
2
|
+
// Layout
|
|
3
|
+
'layout-column',
|
|
4
|
+
|
|
5
|
+
// Spacing
|
|
6
|
+
'gap-xs',
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export const CombinedInputControlGroup: string[] = [
|
|
10
|
+
// Layout
|
|
11
|
+
'layout-row',
|
|
12
|
+
|
|
13
|
+
// Box
|
|
14
|
+
'w-full',
|
|
15
|
+
|
|
16
|
+
// Shape (.or-input-box)
|
|
17
|
+
'[&_.or-input-box]:first-child:rounded-r-0',
|
|
18
|
+
'[&_.or-input-box]:intermediate-child:rounded-0',
|
|
19
|
+
'[&_.or-input-box]:last-child:rounded-l-0',
|
|
20
|
+
|
|
21
|
+
// Spacing (.or-input-box)
|
|
22
|
+
'[&_.or-input-box]:first-child:mr-[-1px]',
|
|
23
|
+
'[&_.or-input-box]:intermediate-child:border-x-0',
|
|
24
|
+
'[&_.or-input-box]:last-child:ml-[-1px]',
|
|
25
|
+
];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div :class="['layout-row', 'gap-sm+']">
|
|
7
7
|
<OrInlineInputBox
|
|
8
8
|
:size="size"
|
|
9
|
-
:invalid="
|
|
9
|
+
:invalid="!!error"
|
|
10
10
|
>
|
|
11
11
|
<input
|
|
12
12
|
ref="control"
|
|
@@ -40,7 +40,10 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
</div>
|
|
42
42
|
|
|
43
|
-
<
|
|
43
|
+
<div
|
|
44
|
+
v-show="!error"
|
|
45
|
+
:class="['contents']"
|
|
46
|
+
>
|
|
44
47
|
<template v-if="hint || maxLength">
|
|
45
48
|
<OrHint>
|
|
46
49
|
{{ hint }}
|
|
@@ -53,9 +56,12 @@
|
|
|
53
56
|
</template>
|
|
54
57
|
</OrHint>
|
|
55
58
|
</template>
|
|
56
|
-
</
|
|
59
|
+
</div>
|
|
57
60
|
|
|
58
|
-
<
|
|
61
|
+
<div
|
|
62
|
+
v-show="typeof error === 'string'"
|
|
63
|
+
:class="['contents']"
|
|
64
|
+
>
|
|
59
65
|
<OrError>
|
|
60
66
|
{{ error }}
|
|
61
67
|
|
|
@@ -66,7 +72,7 @@
|
|
|
66
72
|
{{ currentLength }} / {{ maxLength }}
|
|
67
73
|
</template>
|
|
68
74
|
</OrError>
|
|
69
|
-
</
|
|
75
|
+
</div>
|
|
70
76
|
</div>
|
|
71
77
|
</template>
|
|
72
78
|
|
|
@@ -127,7 +133,7 @@ export default defineComponent({
|
|
|
127
133
|
},
|
|
128
134
|
|
|
129
135
|
error: {
|
|
130
|
-
type: String,
|
|
136
|
+
type: [String, Boolean],
|
|
131
137
|
default: undefined,
|
|
132
138
|
},
|
|
133
139
|
},
|
|
@@ -188,8 +194,6 @@ export default defineComponent({
|
|
|
188
194
|
const currentLength = computed(() => draftModelValue.value?.toString().length ?? 0);
|
|
189
195
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
190
196
|
|
|
191
|
-
const invalid = computed(() => !!props.error);
|
|
192
|
-
|
|
193
197
|
const activated = ref(false);
|
|
194
198
|
|
|
195
199
|
// Handlers
|
|
@@ -248,7 +252,6 @@ export default defineComponent({
|
|
|
248
252
|
draftModelValue,
|
|
249
253
|
currentLength,
|
|
250
254
|
maxLength,
|
|
251
|
-
invalid,
|
|
252
255
|
activated,
|
|
253
256
|
onFocus,
|
|
254
257
|
onBlur,
|