@onereach/ui-components 2.69.1 → 2.69.2-beta.2107.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-a9a779ea.js → OrCardCollection-3d1b3b9a.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-43626f94.js} +1 -1
- package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-0a3666aa.js} +18 -11
- package/dist/bundled/v2/{OrInputBox-79ec54ad.js → OrInputBox-dfdcbdce.js} +4 -14
- package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-847c1bab.js} +2 -2
- package/dist/bundled/v2/{OrSelect-b20a9be0.js → OrSelect-41c6588d.js} +8 -2
- package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-ff2ba975.js} +2 -1
- package/dist/bundled/v2/components/index.js +8 -7
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -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 +149 -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-input-box-v3/index.js +2 -1
- 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 +11 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/bundled/v2/index.js +9 -8
- package/dist/bundled/v2/props-78496a2d.js +12 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3993a015.js → OrCardCollection.vue_vue_type_script_lang-fd4d589f.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-338631e0.js} +2 -2
- package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-5efc4b9a.js} +17 -14
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f6d793d3.js → OrInput.vue_vue_type_script_lang-a9f3e530.js} +3 -2
- package/dist/bundled/v3/{OrInputBox-eb54d73d.js → OrInputBox-1b143e00.js} +1 -1
- package/dist/{esm/v2/OrInputBox-4d5a318d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-70dec655.js} +6 -57
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-df09cad8.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-15285ce4.js → OrSelect.vue_vue_type_script_lang-cf991ed8.js} +9 -4
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-115a1244.js} +3 -2
- package/dist/bundled/v3/components/index.js +10 -9
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -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 +132 -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-input-box-v3/index.js +2 -1
- 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 +11 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
- package/dist/bundled/v3/index.js +18 -16
- package/dist/bundled/v3/props-78496a2d.js +12 -0
- package/dist/esm/v2/{OrCardCollection-4f001551.js → OrCardCollection-09e4cb8a.js} +1 -1
- package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-93376443.js} +1 -1
- package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-f92456ea.js} +18 -11
- package/dist/esm/v2/OrInputBox-ad7c1875.js +43 -0
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-52a54a49.js} +5 -4
- package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-4296eecb.js} +2 -2
- package/dist/esm/v2/{OrSelect-f0ff5a85.js → OrSelect-633a9e09.js} +8 -2
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-823d0529.js} +2 -1
- package/dist/esm/v2/components/index.js +8 -7
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -3
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -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 +147 -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-input-box-v3/index.js +3 -2
- 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 +11 -0
- package/dist/esm/v2/components/or-select-v3/index.js +4 -3
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/esm/v2/index.js +8 -7
- package/dist/esm/v3/{OrCardCollection-5a0febaf.js → OrCardCollection-37226d46.js} +1 -1
- package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-b27e7221.js} +1 -1
- package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-99776ffe.js} +17 -14
- package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-36c102a4.js} +2 -2
- package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-188c643f.js} +2 -2
- package/dist/esm/v3/{OrSelect-7e813982.js → OrSelect-cba3966c.js} +8 -3
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-b3ecc40d.js} +1 -1
- package/dist/esm/v3/components/index.js +7 -7
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -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 +132 -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 +3 -3
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/index.js +7 -7
- package/package.json +3 -4
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +202 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +134 -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-input-box-v3/styles.ts +3 -3
- package/src/components/or-input-v3/OrInput.vue +28 -22
- package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +6 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from '../../useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { s as script$1 } from '../../OrError-ec8c709d.js';
|
|
5
|
+
import { s as script$2 } from '../../OrHint-74bb732d.js';
|
|
6
|
+
import { s as script$3 } from '../../OrLabel-bdaec602.js';
|
|
7
|
+
import { a as InputBoxSize } from '../../OrInputBox-36c102a4.js';
|
|
8
|
+
export { a as CombinedInputSize } from '../../OrInputBox-36c102a4.js';
|
|
9
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, Fragment } from 'vue';
|
|
10
|
+
|
|
11
|
+
const CombinedInputRoot = [
|
|
12
|
+
// Layout
|
|
13
|
+
'layout-column',
|
|
14
|
+
// Spacing
|
|
15
|
+
'gap-xs'];
|
|
16
|
+
const CombinedInputControlGroup = [
|
|
17
|
+
// Layout
|
|
18
|
+
'layout-row',
|
|
19
|
+
// Box
|
|
20
|
+
'w-full',
|
|
21
|
+
// Shape (.or-input-box)
|
|
22
|
+
'[&_.or-input-box]:first-child:rounded-r-none', '[&_.or-input-box]:intermediate-child:rounded-none', '[&_.or-input-box]:last-child:rounded-l-none',
|
|
23
|
+
// Spacing (children)
|
|
24
|
+
'[&_.or-input-box]:first-child:mr-[-1px]', '[&_.or-input-box]:intermediate-child:border-x-0', '[&_.or-input-box]:last-child:ml-[-1px]'];
|
|
25
|
+
|
|
26
|
+
var script = defineComponent({
|
|
27
|
+
name: 'OrCombinedInput',
|
|
28
|
+
components: {
|
|
29
|
+
OrError: script$1,
|
|
30
|
+
OrHint: script$2,
|
|
31
|
+
OrLabel: script$3
|
|
32
|
+
},
|
|
33
|
+
inheritAttrs: false,
|
|
34
|
+
props: {
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: InputBoxSize.M
|
|
38
|
+
},
|
|
39
|
+
label: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: undefined
|
|
42
|
+
},
|
|
43
|
+
hint: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: undefined
|
|
46
|
+
},
|
|
47
|
+
error: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: undefined
|
|
50
|
+
},
|
|
51
|
+
required: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
disabled: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false
|
|
58
|
+
},
|
|
59
|
+
disableDefaultStyles: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
setup(props, context) {
|
|
65
|
+
// Refs
|
|
66
|
+
const root = ref();
|
|
67
|
+
// Styles
|
|
68
|
+
const classAttribute = useClassAttribute();
|
|
69
|
+
const rootStyles = computed(() => ['or-combined-input', ...CombinedInputRoot, classAttribute.value]);
|
|
70
|
+
const controlGroup = computed(() => [...CombinedInputControlGroup]);
|
|
71
|
+
// State
|
|
72
|
+
const invalid = computed(() => !!props.error);
|
|
73
|
+
const readonly = computed(() => context.attrs.readonly);
|
|
74
|
+
return {
|
|
75
|
+
root,
|
|
76
|
+
rootStyles,
|
|
77
|
+
controlGroup,
|
|
78
|
+
invalid,
|
|
79
|
+
readonly
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
+
const _component_OrLabel = resolveComponent("OrLabel");
|
|
86
|
+
const _component_OrHint = resolveComponent("OrHint");
|
|
87
|
+
const _component_OrError = resolveComponent("OrError");
|
|
88
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
89
|
+
ref: "root"
|
|
90
|
+
}, _ctx.$attrs, {
|
|
91
|
+
class: _ctx.rootStyles
|
|
92
|
+
}), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
93
|
+
key: 0,
|
|
94
|
+
variant: 'input',
|
|
95
|
+
required: _ctx.required,
|
|
96
|
+
disabled: _ctx.disabled
|
|
97
|
+
}, {
|
|
98
|
+
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
99
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label) + " ", 1 /* TEXT */)]),
|
|
100
|
+
|
|
101
|
+
_: 3 /* FORWARDED */
|
|
102
|
+
}, 8 /* PROPS */, ["required", "disabled"])) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
103
|
+
class: normalizeClass(_ctx.controlGroup)
|
|
104
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
105
|
+
size: _ctx.size,
|
|
106
|
+
required: _ctx.required,
|
|
107
|
+
readonly: _ctx.readonly,
|
|
108
|
+
disabled: _ctx.disabled,
|
|
109
|
+
disableDefaultStyles: _ctx.disableDefaultStyles
|
|
110
|
+
})], 2 /* CLASS */), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
111
|
+
key: 1
|
|
112
|
+
}, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
|
|
113
|
+
key: 0,
|
|
114
|
+
disabled: _ctx.disabled
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)]),
|
|
117
|
+
|
|
118
|
+
_: 1 /* STABLE */
|
|
119
|
+
}, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createBlock(_component_OrError, {
|
|
120
|
+
key: 2,
|
|
121
|
+
disabled: _ctx.disabled
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
|
|
124
|
+
|
|
125
|
+
_: 1 /* STABLE */
|
|
126
|
+
}, 8 /* PROPS */, ["disabled"]))], 16 /* FULL_PROPS */);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
script.render = render;
|
|
130
|
+
script.__file = "src/components/or-combined-input-v3/OrCombinedInput.vue";
|
|
131
|
+
|
|
132
|
+
export { script as OrCombinedInputV3 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-b27e7221.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../OrButton-f4b9ee51.js';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -8,7 +8,7 @@ import 'vue';
|
|
|
8
8
|
import '../../OrOverlay-738a44d5.js';
|
|
9
9
|
import '../../useElevation-31bfe1f6.js';
|
|
10
10
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
11
|
-
import '../../OrInput-
|
|
11
|
+
import '../../OrInput-99776ffe.js';
|
|
12
12
|
import '../../OrError-ec8c709d.js';
|
|
13
13
|
import '../../OrHint-74bb732d.js';
|
|
14
14
|
import '../../OrIconButton-1eebcafc.js';
|
|
@@ -18,7 +18,7 @@ import '../../OrPopover-1075dd38.js';
|
|
|
18
18
|
import '@floating-ui/dom';
|
|
19
19
|
import '../../useResponsive-a02e95b7.js';
|
|
20
20
|
import '../../OrBottomSheet-62817aec.js';
|
|
21
|
-
import '../../OrInputBox-
|
|
21
|
+
import '../../OrInputBox-36c102a4.js';
|
|
22
22
|
import '../../OrLabel-bdaec602.js';
|
|
23
23
|
import '../../style-inject.es-4c6f2515.js';
|
|
24
24
|
import '@vueuse/math';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-
|
|
1
|
+
export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-36c102a4.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-99776ffe.js';
|
|
2
|
+
export { a as InputSize } from '../../OrInputBox-36c102a4.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
5
|
import '@vueuse/core';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { s as OrSearchV3 } from '../../OrSearch-
|
|
2
|
-
export { a as SearchSize } from '../../OrInputBox-
|
|
1
|
+
export { s as OrSearchV3 } from '../../OrSearch-188c643f.js';
|
|
2
|
+
export { a as SearchSize } from '../../OrInputBox-36c102a4.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
6
|
-
import '../../OrInput-
|
|
6
|
+
import '../../OrInput-99776ffe.js';
|
|
7
7
|
import '../../OrError-ec8c709d.js';
|
|
8
8
|
import 'vue';
|
|
9
9
|
import '../../OrHint-74bb732d.js';
|
|
@@ -88,6 +88,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
88
88
|
type: BooleanConstructor;
|
|
89
89
|
default: boolean;
|
|
90
90
|
};
|
|
91
|
+
disableDefaultStyles: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
91
95
|
enableSearch: {
|
|
92
96
|
type: BooleanConstructor;
|
|
93
97
|
default: boolean;
|
|
@@ -153,6 +157,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
153
157
|
type: BooleanConstructor;
|
|
154
158
|
default: boolean;
|
|
155
159
|
};
|
|
160
|
+
disableDefaultStyles: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
156
164
|
enableSearch: {
|
|
157
165
|
type: BooleanConstructor;
|
|
158
166
|
default: boolean;
|
|
@@ -182,6 +190,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
182
190
|
error: string;
|
|
183
191
|
required: boolean;
|
|
184
192
|
disabled: boolean;
|
|
193
|
+
disableDefaultStyles: boolean;
|
|
185
194
|
enableSearch: boolean;
|
|
186
195
|
searchFunction: SelectSearchFunction;
|
|
187
196
|
groupByFunction: SelectGroupByFunction;
|
|
@@ -239,6 +248,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
239
248
|
error: string;
|
|
240
249
|
required: boolean;
|
|
241
250
|
disabled: boolean;
|
|
251
|
+
disableDefaultStyles: boolean;
|
|
242
252
|
enableSearch: boolean;
|
|
243
253
|
searchFunction: SelectSearchFunction;
|
|
244
254
|
groupByFunction: SelectGroupByFunction;
|
|
@@ -258,6 +268,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
258
268
|
error: string;
|
|
259
269
|
required: boolean;
|
|
260
270
|
disabled: boolean;
|
|
271
|
+
disableDefaultStyles: boolean;
|
|
261
272
|
enableSearch: boolean;
|
|
262
273
|
searchFunction: SelectSearchFunction;
|
|
263
274
|
groupByFunction: SelectGroupByFunction;
|
|
@@ -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-cba3966c.js';
|
|
2
|
+
export { a as SelectSize } from '../../OrInputBox-36c102a4.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -13,7 +13,7 @@ import '../../OrError-ec8c709d.js';
|
|
|
13
13
|
import '../../OrExpansionPanel-311e64cf.js';
|
|
14
14
|
import '../../OrIcon-b195169c.js';
|
|
15
15
|
import '../../OrHint-74bb732d.js';
|
|
16
|
-
import '../../OrInput-
|
|
16
|
+
import '../../OrInput-99776ffe.js';
|
|
17
17
|
import '../../OrIconButton-1eebcafc.js';
|
|
18
18
|
import '../../OrTooltip-50d27b4f.js';
|
|
19
19
|
import '../../OrPopover-1075dd38.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-b3ecc40d.js';
|
|
2
|
+
export { a as TextareaSize } from '../../OrInputBox-36c102a4.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
5
|
import '@vueuse/core';
|
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-f4b9ee51.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-a5e326ef.js';
|
|
9
|
-
export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-
|
|
9
|
+
export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-37226d46.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-fd92f7c8.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-ee19a5e6.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-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-b27e7221.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-98252eef.js';
|
|
@@ -33,8 +33,8 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
|
|
|
33
33
|
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-31026cd0.js';
|
|
34
34
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
35
35
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b28c3d8c.js';
|
|
36
|
-
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-
|
|
37
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
36
|
+
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-36c102a4.js';
|
|
37
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-99776ffe.js';
|
|
38
38
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
|
|
39
39
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
40
40
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-bdaec602.js';
|
|
@@ -58,10 +58,10 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
58
58
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
59
59
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
60
60
|
export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
|
|
61
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
61
|
+
export { s as OrSearchV3 } from './OrSearch-188c643f.js';
|
|
62
62
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
|
|
63
63
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
64
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
64
|
+
export { s as OrSelectV3 } from './OrSelect-cba3966c.js';
|
|
65
65
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
66
66
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
67
67
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -81,7 +81,7 @@ export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-c0bbaa58.j
|
|
|
81
81
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
82
82
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
83
83
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
84
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
84
|
+
export { s as OrTextareaV3 } from './OrTextarea-b3ecc40d.js';
|
|
85
85
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
|
|
86
86
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
|
|
87
87
|
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.69.
|
|
3
|
+
"version": "2.69.2-beta.2107.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@codemirror/lang-json": "6.0.0",
|
|
38
38
|
"@codemirror/lang-markdown": "6.0.1",
|
|
39
39
|
"@floating-ui/dom": "0.3.1",
|
|
40
|
-
"@onereach/styles": "^2.33.0",
|
|
40
|
+
"@onereach/styles": "^2.33.1-beta.2107.0",
|
|
41
41
|
"@splidejs/splide": "4.0.6",
|
|
42
42
|
"@types/lodash": "4.14.173",
|
|
43
43
|
"@types/sortablejs": "1.10.7",
|
|
@@ -123,6 +123,5 @@
|
|
|
123
123
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
124
124
|
},
|
|
125
125
|
"./package.json": "./package.json"
|
|
126
|
-
}
|
|
127
|
-
"gitHead": "91728e79fd4e9fbe584d302a41e170f2670f7f28"
|
|
126
|
+
}
|
|
128
127
|
}
|
|
@@ -0,0 +1,202 @@
|
|
|
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
|
+
// Attrs
|
|
16
|
+
readonly: {
|
|
17
|
+
control: { type: 'boolean' },
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
// Slots
|
|
21
|
+
default: {
|
|
22
|
+
type: {
|
|
23
|
+
name: 'string',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
control: { type: 'text' },
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
addon: {
|
|
31
|
+
type: {
|
|
32
|
+
name: 'string',
|
|
33
|
+
required: false,
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
control: { type: 'text' },
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
// Props
|
|
40
|
+
size: {
|
|
41
|
+
control: { type: 'select' },
|
|
42
|
+
options: Object.values(CombinedInputSize),
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
label: {
|
|
46
|
+
control: { type: 'text' },
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
hint: {
|
|
50
|
+
control: { type: 'text' },
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
error: {
|
|
54
|
+
control: { type: 'text' },
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
required: {
|
|
58
|
+
control: { type: 'boolean' },
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
disabled: {
|
|
62
|
+
control: { type: 'boolean' },
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
disableDefaultStyles: {
|
|
66
|
+
control: { type: 'boolean' },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
parameters: {
|
|
71
|
+
docs: {
|
|
72
|
+
page: OrCombinedInputDocs,
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
design: {
|
|
76
|
+
type: 'figma',
|
|
77
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4423%3A39753&t=grpHUrgJi4X2W67L-4',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
} as Meta<typeof OrCombinedInput>;
|
|
81
|
+
|
|
82
|
+
const Template: StoryFn<typeof OrCombinedInput> = (args) => ({
|
|
83
|
+
components: {
|
|
84
|
+
OrCombinedInput,
|
|
85
|
+
OrIcon,
|
|
86
|
+
OrInput,
|
|
87
|
+
OrSelect,
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
setup() {
|
|
91
|
+
// State
|
|
92
|
+
const options = Array.from<string, SelectOption>([
|
|
93
|
+
'Alfa',
|
|
94
|
+
'Bravo',
|
|
95
|
+
'Charlie',
|
|
96
|
+
'Delta',
|
|
97
|
+
'Echo',
|
|
98
|
+
'Foxtrot',
|
|
99
|
+
'Golf',
|
|
100
|
+
'Hotel',
|
|
101
|
+
'India',
|
|
102
|
+
'Juliett',
|
|
103
|
+
'Kilo',
|
|
104
|
+
'Lima',
|
|
105
|
+
'Mike',
|
|
106
|
+
'November',
|
|
107
|
+
'Oscar',
|
|
108
|
+
'Papa',
|
|
109
|
+
'Quebec',
|
|
110
|
+
'Romeo',
|
|
111
|
+
'Sierra',
|
|
112
|
+
'Tango',
|
|
113
|
+
'Uniform',
|
|
114
|
+
'Victor',
|
|
115
|
+
'Whiskey',
|
|
116
|
+
'X-Ray',
|
|
117
|
+
'Yankee',
|
|
118
|
+
'Zulu',
|
|
119
|
+
], (item) => ({
|
|
120
|
+
value: item.toLowerCase(),
|
|
121
|
+
label: item,
|
|
122
|
+
}));
|
|
123
|
+
|
|
124
|
+
const selectModel = ref<string>();
|
|
125
|
+
const inputModel = ref<string>();
|
|
126
|
+
|
|
127
|
+
// Effects
|
|
128
|
+
watch([selectModel, inputModel], (values) => {
|
|
129
|
+
console.debug(values);
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
args,
|
|
134
|
+
options,
|
|
135
|
+
selectModel,
|
|
136
|
+
inputModel,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
template: `
|
|
141
|
+
<OrCombinedInput v-bind="args">
|
|
142
|
+
${args.default}
|
|
143
|
+
${args.addon}
|
|
144
|
+
</OrCombinedInput>
|
|
145
|
+
`,
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
export const Default = Template.bind({});
|
|
149
|
+
|
|
150
|
+
Default.args = {
|
|
151
|
+
// Slots
|
|
152
|
+
default: `
|
|
153
|
+
<template v-slot="props">
|
|
154
|
+
<OrSelect
|
|
155
|
+
class="basis-1/4"
|
|
156
|
+
v-model="selectModel"
|
|
157
|
+
v-bind="props"
|
|
158
|
+
:options="options"
|
|
159
|
+
/>
|
|
160
|
+
|
|
161
|
+
<OrInput
|
|
162
|
+
class="basis-3/4"
|
|
163
|
+
v-model="inputModel"
|
|
164
|
+
v-bind="props"
|
|
165
|
+
/>
|
|
166
|
+
</template>
|
|
167
|
+
`,
|
|
168
|
+
|
|
169
|
+
// Props
|
|
170
|
+
label: 'Combined Input',
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export const Addon = Template.bind({});
|
|
174
|
+
|
|
175
|
+
Addon.args = {
|
|
176
|
+
...Default.args,
|
|
177
|
+
|
|
178
|
+
// Slots
|
|
179
|
+
addon: `
|
|
180
|
+
<template v-slot:addon>
|
|
181
|
+
<OrIcon icon="info" />
|
|
182
|
+
</template>
|
|
183
|
+
`,
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export const Hint = Template.bind({});
|
|
187
|
+
|
|
188
|
+
Hint.args = {
|
|
189
|
+
...Default.args,
|
|
190
|
+
|
|
191
|
+
// Props
|
|
192
|
+
hint: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export const Error = Template.bind({});
|
|
196
|
+
|
|
197
|
+
Error.args = {
|
|
198
|
+
...Default.args,
|
|
199
|
+
|
|
200
|
+
// Props
|
|
201
|
+
error: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
202
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
v-bind="$attrs"
|
|
5
|
+
:class="rootStyles"
|
|
6
|
+
>
|
|
7
|
+
<template v-if="label">
|
|
8
|
+
<OrLabel
|
|
9
|
+
:variant="'input'"
|
|
10
|
+
:required="required"
|
|
11
|
+
:disabled="disabled"
|
|
12
|
+
>
|
|
13
|
+
{{ label }}
|
|
14
|
+
|
|
15
|
+
<template v-slot:addon>
|
|
16
|
+
<slot name="addon" />
|
|
17
|
+
</template>
|
|
18
|
+
</OrLabel>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<div :class="controlGroup">
|
|
22
|
+
<slot
|
|
23
|
+
:size="size"
|
|
24
|
+
:required="required"
|
|
25
|
+
:readonly="readonly"
|
|
26
|
+
:disabled="disabled"
|
|
27
|
+
:disable-default-styles="disableDefaultStyles"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<template v-if="!invalid">
|
|
32
|
+
<template v-if="hint">
|
|
33
|
+
<OrHint :disabled="disabled">
|
|
34
|
+
{{ hint }}
|
|
35
|
+
</OrHint>
|
|
36
|
+
</template>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<template v-else>
|
|
40
|
+
<OrError :disabled="disabled">
|
|
41
|
+
{{ error }}
|
|
42
|
+
</OrError>
|
|
43
|
+
</template>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script lang="ts">
|
|
48
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
49
|
+
import { useClassAttribute } from '../../hooks';
|
|
50
|
+
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
51
|
+
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
52
|
+
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
53
|
+
import { CombinedInputSize } from './props';
|
|
54
|
+
import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
|
|
55
|
+
|
|
56
|
+
export default defineComponent({
|
|
57
|
+
name: 'OrCombinedInput',
|
|
58
|
+
|
|
59
|
+
components: {
|
|
60
|
+
OrError,
|
|
61
|
+
OrHint,
|
|
62
|
+
OrLabel,
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
inheritAttrs: false,
|
|
66
|
+
|
|
67
|
+
props: {
|
|
68
|
+
size: {
|
|
69
|
+
type: String as PropType<CombinedInputSize>,
|
|
70
|
+
default: CombinedInputSize.M,
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
label: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: undefined,
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
hint: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: undefined,
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
error: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: undefined,
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
required: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false,
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
disabled: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: false,
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
disableDefaultStyles: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
setup(props, context) {
|
|
105
|
+
// Refs
|
|
106
|
+
const root = ref<HTMLElement>();
|
|
107
|
+
|
|
108
|
+
// Styles
|
|
109
|
+
const classAttribute = useClassAttribute();
|
|
110
|
+
|
|
111
|
+
const rootStyles = computed(() => [
|
|
112
|
+
'or-combined-input',
|
|
113
|
+
...CombinedInputRoot,
|
|
114
|
+
classAttribute.value,
|
|
115
|
+
]);
|
|
116
|
+
|
|
117
|
+
const controlGroup = computed(() => [
|
|
118
|
+
...CombinedInputControlGroup,
|
|
119
|
+
]);
|
|
120
|
+
|
|
121
|
+
// State
|
|
122
|
+
const invalid = computed(() => !!props.error);
|
|
123
|
+
const readonly = computed(() => context.attrs.readonly as boolean);
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
root,
|
|
127
|
+
rootStyles,
|
|
128
|
+
controlGroup,
|
|
129
|
+
invalid,
|
|
130
|
+
readonly,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
</script>
|