@onereach/ui-components 2.75.1-beta.2385.0 → 2.75.1
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-a9cc4cd6.js → OrCardCollection-04e767c2.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-de17ffd2.js → OrConfirm-a76ff6d2.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-20e93482.js → OrInlineInput-9304f205.js} +11 -9
- package/dist/bundled/v2/{OrInlineTextarea-e849ae9b.js → OrInlineTextarea-e0d28fc6.js} +11 -9
- package/dist/bundled/v2/{OrInput-7e5430e1.js → OrInput-b8511a0c.js} +12 -11
- package/dist/bundled/v2/{OrInputBox-9a31d211.js → OrInputBox-e54dcef9.js} +12 -2
- package/dist/bundled/v2/{OrSearch-b3f34499.js → OrSearch-60b64568.js} +2 -2
- package/dist/bundled/v2/{OrSelect-982350b0.js → OrSelect-752bdd3b.js} +10 -11
- package/dist/bundled/v2/{OrTextarea-53d756e4.js → OrTextarea-5fdf63d0.js} +12 -11
- package/dist/bundled/v2/components/index.js +9 -10
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- 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 +7 -5
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/bundled/v2/index.js +10 -11
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-fdf213e1.js → OrCardCollection.vue_vue_type_script_lang-e71a0ea0.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-7a81cfa6.js → OrConfirm.vue_vue_type_script_lang-b550c3d3.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-18853dd7.js → OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js} +5 -3
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-3cb238d6.js → OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js} +5 -3
- package/dist/bundled/v3/{OrInput-c514ceff.js → OrInput-6d49f353.js} +5 -5
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-09a6138d.js → OrInput.vue_vue_type_script_lang-af68d0e7.js} +7 -6
- package/dist/bundled/v3/{OrInputBox-44f37541.js → OrInputBox-358d4856.js} +1 -1
- package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-42283e88.js → OrSearch.vue_vue_type_script_lang-8c37e5a7.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c43b8138.js → OrSelect.vue_vue_type_script_lang-35ac0247.js} +8 -9
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-b2899ba6.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +7 -6
- package/dist/bundled/v3/components/index.js +11 -12
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -7
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- 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 +7 -5
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
- package/dist/bundled/v3/index.js +34 -35
- package/dist/esm/v2/{OrCardCollection-77a9b0b5.js → OrCardCollection-f7856175.js} +2 -2
- package/dist/esm/v2/{OrConfirm-81ae8af5.js → OrConfirm-98d62065.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-b003ddde.js → OrInlineInput-df02ab5d.js} +11 -9
- package/dist/esm/v2/{OrInlineTextarea-6349b529.js → OrInlineTextarea-ad120656.js} +11 -9
- package/dist/esm/v2/{OrInput-d4707fb9.js → OrInput-3bb91436.js} +12 -11
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js → esm/v2/OrInputBox-53d1f66d.js} +53 -3
- package/dist/esm/v2/{OrSearch-5b257f78.js → OrSearch-dad9b02f.js} +2 -2
- package/dist/esm/v2/{OrSelect-246d8584.js → OrSelect-7ef80130.js} +10 -11
- package/dist/esm/v2/{OrTextarea-0bf9bf33.js → OrTextarea-0a64f718.js} +12 -11
- package/dist/esm/v2/components/index.js +9 -10
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -5
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -4
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- 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 +7 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-input-v3/index.js +2 -3
- package/dist/esm/v2/components/or-search-v3/index.js +3 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-select-v3/index.js +3 -4
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/esm/v2/index.js +9 -10
- package/dist/esm/v3/{OrCardCollection-e8ab1e4f.js → OrCardCollection-4cb41408.js} +1 -1
- package/dist/esm/v3/{OrConfirm-19397045.js → OrConfirm-19da64d1.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-65127ed7.js → OrInlineInput-cd3753ee.js} +9 -7
- package/dist/esm/v3/{OrInlineTextarea-176a2701.js → OrInlineTextarea-4c5b0390.js} +9 -7
- package/dist/esm/v3/{OrInput-209bd3fc.js → OrInput-ae9f6871.js} +9 -7
- package/dist/esm/v3/{OrSearch-3bba0a99.js → OrSearch-6f6b4fcd.js} +1 -1
- package/dist/esm/v3/{OrSelect-ba567dd1.js → OrSelect-96bf9b63.js} +9 -9
- package/dist/esm/v3/{OrTextarea-14a6b456.js → OrTextarea-42d21f77.js} +9 -7
- 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-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +7 -5
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +8 -8
- package/package.json +4 -3
- package/src/components/or-inline-input-v3/OrInlineInput.vue +7 -4
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +7 -4
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.vue +7 -4
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
- package/src/components/or-select-v3/OrSelect.vue +6 -4
- package/src/components/or-select-v3/styles.ts +1 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +7 -4
- package/src/components/or-textarea-v3/styles.ts +2 -2
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +0 -146
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v2/props-78496a2d.js +0 -12
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +0 -128
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v3/props-78496a2d.js +0 -12
- package/dist/esm/v2/OrInputBox-5c4b3104.js +0 -43
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-combined-input-v3/index.js +0 -143
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +0 -127
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -201
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -127
- package/src/components/or-combined-input-v3/index.ts +0 -2
- package/src/components/or-combined-input-v3/props.ts +0 -1
- package/src/components/or-combined-input-v3/styles.ts +0 -25
|
@@ -1,127 +0,0 @@
|
|
|
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
|
-
<template v-if="!error">
|
|
32
|
-
<template v-if="hint">
|
|
33
|
-
<OrHint :disabled="disabled">
|
|
34
|
-
{{ hint }}
|
|
35
|
-
</OrHint>
|
|
36
|
-
</template>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<template v-if="typeof error === 'string'">
|
|
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 { OrErrorV3 as OrError } from '../or-error-v3';
|
|
50
|
-
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
51
|
-
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
52
|
-
import { CombinedInputSize } from './props';
|
|
53
|
-
import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
|
|
54
|
-
|
|
55
|
-
export default defineComponent({
|
|
56
|
-
name: 'OrCombinedInput',
|
|
57
|
-
|
|
58
|
-
components: {
|
|
59
|
-
OrError,
|
|
60
|
-
OrHint,
|
|
61
|
-
OrLabel,
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
props: {
|
|
65
|
-
size: {
|
|
66
|
-
type: String as PropType<CombinedInputSize>,
|
|
67
|
-
default: CombinedInputSize.M,
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
label: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: undefined,
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
hint: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: undefined,
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
error: {
|
|
81
|
-
type: [String, Boolean],
|
|
82
|
-
default: undefined,
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
required: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: false,
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
readonly: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: false,
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
disabled: {
|
|
96
|
-
type: Boolean,
|
|
97
|
-
default: false,
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
disableDefaultStyles: {
|
|
101
|
-
type: Boolean,
|
|
102
|
-
default: false,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
setup(props, context) {
|
|
107
|
-
// Refs
|
|
108
|
-
const root = ref<HTMLElement>();
|
|
109
|
-
|
|
110
|
-
// Styles
|
|
111
|
-
const rootStyles = computed(() => [
|
|
112
|
-
'or-combined-input',
|
|
113
|
-
...CombinedInputRoot,
|
|
114
|
-
]);
|
|
115
|
-
|
|
116
|
-
const controlGroup = computed(() => [
|
|
117
|
-
...CombinedInputControlGroup,
|
|
118
|
-
]);
|
|
119
|
-
|
|
120
|
-
return {
|
|
121
|
-
root,
|
|
122
|
-
rootStyles,
|
|
123
|
-
controlGroup,
|
|
124
|
-
};
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
];
|