@onereach/ui-components 2.69.5-beta.2144.0 → 2.69.5-beta.2145.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-86248425.js → OrCardCollection-c4209a92.js} +13 -9
- package/dist/bundled/v2/{OrConfirm-cb755f79.js → OrConfirm-cab6535b.js} +1 -1
- package/dist/bundled/v2/{OrInput-0a3666aa.js → OrInput-8b90e08f.js} +11 -18
- package/dist/bundled/v2/{OrInputBox-dfdcbdce.js → OrInputBox-79ec54ad.js} +14 -4
- package/dist/bundled/v2/{OrSearch-1420e133.js → OrSearch-76b002cf.js} +3 -3
- package/dist/bundled/v2/{OrSelect-41c6588d.js → OrSelect-b20a9be0.js} +2 -8
- package/dist/bundled/v2/{OrTextarea-ff2ba975.js → OrTextarea-5593fbe9.js} +1 -2
- package/dist/bundled/v2/components/index.js +7 -8
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
- 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-input-box-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/bundled/v2/index.js +8 -9
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-71e0bac6.js → OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js} +10 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-14b2da8b.js → OrConfirm.vue_vue_type_script_lang-f57ffa1a.js} +2 -2
- package/dist/bundled/v3/{OrInput-5efc4b9a.js → OrInput-fa782fc1.js} +14 -17
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-a9f3e530.js → OrInput.vue_vue_type_script_lang-f6d793d3.js} +2 -3
- package/dist/bundled/v3/{OrInputBox-1b143e00.js → OrInputBox-eb54d73d.js} +1 -1
- package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-52a54a49.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js} +4 -5
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-b2ed77f1.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +4 -4
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-cf991ed8.js → OrSelect.vue_vue_type_script_lang-15285ce4.js} +4 -9
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-115a1244.js → OrTextarea.vue_vue_type_script_lang-8e3531cd.js} +2 -3
- package/dist/bundled/v3/components/index.js +9 -10
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
- 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-input-box-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
- package/dist/bundled/v3/index.js +19 -20
- package/dist/esm/v2/{OrCardCollection-d9bda36a.js → OrCardCollection-57d11adf.js} +14 -10
- package/dist/esm/v2/{OrConfirm-85a5c960.js → OrConfirm-ec7aef0e.js} +1 -1
- package/dist/esm/v2/{OrInput-f92456ea.js → OrInput-2f16a7ac.js} +11 -18
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-70dec655.js → esm/v2/OrInputBox-4d5a318d.js} +57 -6
- package/dist/esm/v2/{OrSearch-9fbaace4.js → OrSearch-2f260b09.js} +3 -3
- package/dist/esm/v2/{OrSelect-633a9e09.js → OrSelect-f0ff5a85.js} +2 -8
- package/dist/esm/v2/{OrTextarea-823d0529.js → OrTextarea-6712a150.js} +1 -2
- package/dist/esm/v2/components/index.js +7 -8
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
- 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-input-box-v3/index.js +2 -3
- package/dist/esm/v2/components/or-input-v3/index.js +2 -3
- package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +3 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-select-v3/index.js +3 -4
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/esm/v2/index.js +7 -8
- package/dist/esm/v3/{OrCardCollection-e85ed16b.js → OrCardCollection-2a6514f3.js} +15 -6
- package/dist/esm/v3/{OrConfirm-d1a4977d.js → OrConfirm-5d56cbd3.js} +1 -1
- package/dist/esm/v3/{OrInput-99776ffe.js → OrInput-41691fb3.js} +14 -17
- package/dist/esm/v3/{OrInputBox-36c102a4.js → OrInputBox-5247ab25.js} +2 -2
- package/dist/esm/v3/{OrSearch-d1912f22.js → OrSearch-e5a2e93e.js} +3 -3
- package/dist/esm/v3/{OrSelect-cba3966c.js → OrSelect-7e813982.js} +3 -8
- package/dist/esm/v3/{OrTextarea-b3ecc40d.js → OrTextarea-bb9ef3f2.js} +1 -1
- package/dist/esm/v3/components/index.js +7 -7
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- 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/OrSearch.vue.d.ts +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 +0 -11
- 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 +2 -2
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +16 -0
- package/src/components/or-card-collection-v3/OrCardCollection.vue +13 -1
- package/src/components/or-card-collection-v3/styles.ts +3 -1
- package/src/components/or-input-box-v3/styles.ts +3 -3
- package/src/components/or-input-v3/OrInput.vue +22 -28
- package/src/components/or-search-v3/OrSearch.stories3.ts +1 -1
- package/src/components/or-search-v3/OrSearch.vue +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
- package/src/components/or-select-v3/OrSelect.vue +0 -6
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -149
- 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.stories3.d.ts +0 -27
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -132
- 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-ad7c1875.js +0 -43
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -147
- 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.stories3.d.ts +0 -27
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -132
- 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 -202
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -134
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.69.5-beta.
|
|
3
|
+
"version": "2.69.5-beta.2145.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.
|
|
40
|
+
"@onereach/styles": "^2.33.0",
|
|
41
41
|
"@splidejs/splide": "4.0.6",
|
|
42
42
|
"@types/lodash": "4.14.173",
|
|
43
43
|
"@types/sortablejs": "1.10.7",
|
|
@@ -53,6 +53,14 @@ export default {
|
|
|
53
53
|
control: { type: 'text' },
|
|
54
54
|
},
|
|
55
55
|
|
|
56
|
+
searchPlaceholder: {
|
|
57
|
+
control: { type: 'text' },
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
searchDebounce: {
|
|
61
|
+
control: { type: 'number' },
|
|
62
|
+
},
|
|
63
|
+
|
|
56
64
|
// Events
|
|
57
65
|
viewChange: {
|
|
58
66
|
table: { disable: true },
|
|
@@ -360,3 +368,11 @@ EmptySearchResults.args = {
|
|
|
360
368
|
search: 'My favorite ..',
|
|
361
369
|
items: [],
|
|
362
370
|
};
|
|
371
|
+
|
|
372
|
+
export const CustomizeSearch = Template.bind({});
|
|
373
|
+
|
|
374
|
+
CustomizeSearch.args = {
|
|
375
|
+
...Default.args,
|
|
376
|
+
searchPlaceholder: 'What you want to find today?',
|
|
377
|
+
searchDebounce: 0,
|
|
378
|
+
};
|
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
:class="toolbarPanelStyles"
|
|
38
38
|
>
|
|
39
39
|
<OrSearch
|
|
40
|
-
|
|
40
|
+
:model-value="proxySearch"
|
|
41
41
|
class="md:w-[350px]"
|
|
42
|
+
:placeholder="searchPlaceholder"
|
|
43
|
+
:debounce="searchDebounce"
|
|
42
44
|
size="s"
|
|
43
45
|
@search="handleSearch"
|
|
44
46
|
/>
|
|
@@ -152,6 +154,16 @@ export default defineComponent({
|
|
|
152
154
|
type: String,
|
|
153
155
|
default: '',
|
|
154
156
|
},
|
|
157
|
+
|
|
158
|
+
searchPlaceholder: {
|
|
159
|
+
type: String,
|
|
160
|
+
default: undefined,
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
searchDebounce: {
|
|
164
|
+
type: Number,
|
|
165
|
+
default: undefined,
|
|
166
|
+
},
|
|
155
167
|
},
|
|
156
168
|
|
|
157
169
|
emits: [
|
|
@@ -94,9 +94,9 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
|
94
94
|
|
|
95
95
|
// Spacing
|
|
96
96
|
'first-child:pl-md first-child:md:pl-sm+',
|
|
97
|
-
'intermediate-child:pt-[11px] intermediate-child:md:pt-[7px]',
|
|
98
|
-
'intermediate-child:pb-[11px] intermediate-child:md:pb-[6px]',
|
|
99
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]',
|
|
100
100
|
|
|
101
101
|
'gap-sm+ md:gap-sm',
|
|
102
102
|
|
|
@@ -110,8 +110,8 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
|
110
110
|
|
|
111
111
|
// Spacing
|
|
112
112
|
'first-child:pl-sm',
|
|
113
|
-
'intermediate-child:py-[6px]',
|
|
114
113
|
'last-child:pr-sm',
|
|
114
|
+
'children:py-[6px]',
|
|
115
115
|
|
|
116
116
|
'gap-[6px]',
|
|
117
117
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
-
v-bind="$attrs"
|
|
5
4
|
:class="rootStyles"
|
|
6
5
|
>
|
|
7
6
|
<template v-if="label">
|
|
@@ -30,51 +29,46 @@
|
|
|
30
29
|
:id="controlId"
|
|
31
30
|
ref="input"
|
|
32
31
|
v-model="proxyModelValue"
|
|
32
|
+
v-bind="$attrs"
|
|
33
33
|
:class="controlStyles"
|
|
34
34
|
:type="type === 'password' && disclosed ? 'text' : type"
|
|
35
35
|
:placeholder="placeholder"
|
|
36
36
|
:required="required"
|
|
37
37
|
:disabled="disabled"
|
|
38
|
-
|
|
39
|
-
:read-only="readonly"
|
|
40
|
-
:max-length="maxLength"
|
|
41
|
-
|
|
42
38
|
@keydown="$emit('keydown', $event)"
|
|
43
39
|
@keyup="$emit('keyup', $event)"
|
|
44
40
|
@focus="$emit('focus', $event)"
|
|
45
41
|
@blur="$emit('blur', $event)"
|
|
46
42
|
>
|
|
47
43
|
|
|
48
|
-
<
|
|
49
|
-
<
|
|
50
|
-
<
|
|
44
|
+
<div :class="['layout-row']">
|
|
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"
|
|
51
|
+
/>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<template v-if="type === 'search'">
|
|
55
|
+
<template v-if="modelValue">
|
|
51
56
|
<OrIconButton
|
|
52
|
-
:icon="
|
|
57
|
+
:icon="'close'"
|
|
53
58
|
:color="'inherit'"
|
|
54
59
|
:disabled="disabled"
|
|
55
|
-
@click.stop="
|
|
60
|
+
@click.stop="$emit('update:modelValue', '')"
|
|
56
61
|
/>
|
|
57
62
|
</template>
|
|
58
63
|
|
|
59
|
-
<template v-
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
:disabled="disabled"
|
|
65
|
-
@click.stop="$emit('update:modelValue', '')"
|
|
66
|
-
/>
|
|
67
|
-
</template>
|
|
68
|
-
|
|
69
|
-
<template v-else>
|
|
70
|
-
<OrIcon
|
|
71
|
-
:icon="'search'"
|
|
72
|
-
:variant="'outlined'"
|
|
73
|
-
/>
|
|
74
|
-
</template>
|
|
64
|
+
<template v-else>
|
|
65
|
+
<OrIcon
|
|
66
|
+
:icon="'search'"
|
|
67
|
+
:variant="'outlined'"
|
|
68
|
+
/>
|
|
75
69
|
</template>
|
|
76
|
-
</
|
|
77
|
-
</
|
|
70
|
+
</template>
|
|
71
|
+
</div>
|
|
78
72
|
</OrInputBox>
|
|
79
73
|
|
|
80
74
|
<template v-if="!invalid">
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
v-dropdown-open="toggle"
|
|
25
25
|
v-dropdown-close="close"
|
|
26
26
|
:class="[popoverState === 'open' && 'rounded-b-0']"
|
|
27
|
-
:variant="disableDefaultStyles ? 'unstyled' : 'styled'"
|
|
28
27
|
:size="size"
|
|
29
28
|
:invalid="invalid"
|
|
30
29
|
:readonly="readonly"
|
|
@@ -315,11 +314,6 @@ export default defineComponent({
|
|
|
315
314
|
default: false,
|
|
316
315
|
},
|
|
317
316
|
|
|
318
|
-
disableDefaultStyles: {
|
|
319
|
-
type: Boolean,
|
|
320
|
-
default: false,
|
|
321
|
-
},
|
|
322
|
-
|
|
323
317
|
enableSearch: {
|
|
324
318
|
type: Boolean,
|
|
325
319
|
default: false,
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
-
} | string[], {} & {}, {
|
|
5
|
-
[x: number]: string;
|
|
6
|
-
} | {}, true>)>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
-
} | string[], {} & {}, {
|
|
11
|
-
[x: number]: string;
|
|
12
|
-
} | {}, true>)>;
|
|
13
|
-
export declare const Addon: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
14
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
15
|
-
} | string[], {} & {}, {
|
|
16
|
-
[x: number]: string;
|
|
17
|
-
} | {}, true>)>;
|
|
18
|
-
export declare const Hint: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
19
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
-
} | string[], {} & {}, {
|
|
21
|
-
[x: number]: string;
|
|
22
|
-
} | {}, true>)>;
|
|
23
|
-
export declare const Error: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
24
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
25
|
-
} | string[], {} & {}, {
|
|
26
|
-
[x: number]: string;
|
|
27
|
-
} | {}, true>)>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { CombinedInputSize } from './props';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
-
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
|
-
controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
8
|
-
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
9
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
10
|
-
size: {
|
|
11
|
-
type: PropType<CombinedInputSize>;
|
|
12
|
-
default: CombinedInputSize;
|
|
13
|
-
};
|
|
14
|
-
label: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: undefined;
|
|
17
|
-
};
|
|
18
|
-
hint: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: undefined;
|
|
21
|
-
};
|
|
22
|
-
error: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default: undefined;
|
|
25
|
-
};
|
|
26
|
-
required: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: boolean;
|
|
29
|
-
};
|
|
30
|
-
disabled: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
disableDefaultStyles: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
39
|
-
size: {
|
|
40
|
-
type: PropType<CombinedInputSize>;
|
|
41
|
-
default: CombinedInputSize;
|
|
42
|
-
};
|
|
43
|
-
label: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
default: undefined;
|
|
46
|
-
};
|
|
47
|
-
hint: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: undefined;
|
|
50
|
-
};
|
|
51
|
-
error: {
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
default: undefined;
|
|
54
|
-
};
|
|
55
|
-
required: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
disabled: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
disableDefaultStyles: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
68
|
-
size: CombinedInputSize;
|
|
69
|
-
label: string;
|
|
70
|
-
hint: string;
|
|
71
|
-
error: string;
|
|
72
|
-
required: boolean;
|
|
73
|
-
disabled: boolean;
|
|
74
|
-
disableDefaultStyles: boolean;
|
|
75
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
76
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
77
|
-
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
78
|
-
controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
|
|
79
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
80
|
-
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
81
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
82
|
-
size: CombinedInputSize;
|
|
83
|
-
label: string;
|
|
84
|
-
hint: string;
|
|
85
|
-
error: string;
|
|
86
|
-
required: boolean;
|
|
87
|
-
disabled: boolean;
|
|
88
|
-
disableDefaultStyles: boolean;
|
|
89
|
-
} & {}, {
|
|
90
|
-
size: CombinedInputSize;
|
|
91
|
-
label: string;
|
|
92
|
-
hint: string;
|
|
93
|
-
error: string;
|
|
94
|
-
required: boolean;
|
|
95
|
-
disabled: boolean;
|
|
96
|
-
disableDefaultStyles: boolean;
|
|
97
|
-
}, true>);
|
|
98
|
-
export default _default;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import '../../index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrError } from '../../OrError-aad17598.js';
|
|
3
|
-
import { O as OrHint } from '../../OrHint-f38a1940.js';
|
|
4
|
-
import { O as OrLabel } from '../../OrLabel-172c4b89.js';
|
|
5
|
-
import { u as useClassAttribute } from '../../useClassAttribute-9bf33346.js';
|
|
6
|
-
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
7
|
-
import { a as InputBoxSize } from '../../props-78496a2d.js';
|
|
8
|
-
export { a as CombinedInputSize } from '../../props-78496a2d.js';
|
|
9
|
-
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
10
|
-
import 'vue';
|
|
11
|
-
|
|
12
|
-
const CombinedInputRoot = [
|
|
13
|
-
// Layout
|
|
14
|
-
'layout-column',
|
|
15
|
-
// Spacing
|
|
16
|
-
'gap-xs'];
|
|
17
|
-
const CombinedInputControlGroup = [
|
|
18
|
-
// Layout
|
|
19
|
-
'layout-row',
|
|
20
|
-
// Box
|
|
21
|
-
'w-full',
|
|
22
|
-
// Shape (.or-input-box)
|
|
23
|
-
'[&_.or-input-box]:first-child:rounded-r-none', '[&_.or-input-box]:intermediate-child:rounded-none', '[&_.or-input-box]:last-child:rounded-l-none',
|
|
24
|
-
// Spacing (.or-input-box)
|
|
25
|
-
'[&_.or-input-box]:first-child:mr-[-1px]', '[&_.or-input-box]:intermediate-child:border-x-0', '[&_.or-input-box]:last-child:ml-[-1px]'];
|
|
26
|
-
|
|
27
|
-
var script = defineComponent({
|
|
28
|
-
name: 'OrCombinedInput',
|
|
29
|
-
components: {
|
|
30
|
-
OrError,
|
|
31
|
-
OrHint,
|
|
32
|
-
OrLabel
|
|
33
|
-
},
|
|
34
|
-
inheritAttrs: false,
|
|
35
|
-
props: {
|
|
36
|
-
size: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: InputBoxSize.M
|
|
39
|
-
},
|
|
40
|
-
label: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: undefined
|
|
43
|
-
},
|
|
44
|
-
hint: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: undefined
|
|
47
|
-
},
|
|
48
|
-
error: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: undefined
|
|
51
|
-
},
|
|
52
|
-
required: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: false
|
|
55
|
-
},
|
|
56
|
-
disabled: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: false
|
|
59
|
-
},
|
|
60
|
-
disableDefaultStyles: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: false
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
setup(props, context) {
|
|
66
|
-
// Refs
|
|
67
|
-
const root = ref();
|
|
68
|
-
// Styles
|
|
69
|
-
const classAttribute = useClassAttribute();
|
|
70
|
-
const rootStyles = computed(() => ['or-combined-input', ...CombinedInputRoot, classAttribute.value]);
|
|
71
|
-
const controlGroup = computed(() => [...CombinedInputControlGroup]);
|
|
72
|
-
// State
|
|
73
|
-
const invalid = computed(() => !!props.error);
|
|
74
|
-
const readonly = computed(() => context.attrs.readonly);
|
|
75
|
-
return {
|
|
76
|
-
root,
|
|
77
|
-
rootStyles,
|
|
78
|
-
controlGroup,
|
|
79
|
-
invalid,
|
|
80
|
-
readonly
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
/* script */
|
|
86
|
-
const __vue_script__ = script;
|
|
87
|
-
|
|
88
|
-
/* template */
|
|
89
|
-
var __vue_render__ = function () {
|
|
90
|
-
var _vm = this;
|
|
91
|
-
var _h = _vm.$createElement;
|
|
92
|
-
var _c = _vm._self._c || _h;
|
|
93
|
-
return _c('div', _vm._b({
|
|
94
|
-
ref: "root",
|
|
95
|
-
class: _vm.rootStyles
|
|
96
|
-
}, 'div', _vm.$attrs, false), [_vm.label ? [_c('OrLabel', {
|
|
97
|
-
attrs: {
|
|
98
|
-
"variant": 'input',
|
|
99
|
-
"required": _vm.required,
|
|
100
|
-
"disabled": _vm.disabled
|
|
101
|
-
},
|
|
102
|
-
scopedSlots: _vm._u([{
|
|
103
|
-
key: "addon",
|
|
104
|
-
fn: function () {
|
|
105
|
-
return [_vm._t("addon")];
|
|
106
|
-
},
|
|
107
|
-
proxy: true
|
|
108
|
-
}], null, true)
|
|
109
|
-
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('div', {
|
|
110
|
-
class: _vm.controlGroup
|
|
111
|
-
}, [_vm._t("default", null, {
|
|
112
|
-
"size": _vm.size,
|
|
113
|
-
"required": _vm.required,
|
|
114
|
-
"readonly": _vm.readonly,
|
|
115
|
-
"disabled": _vm.disabled,
|
|
116
|
-
"disableDefaultStyles": _vm.disableDefaultStyles
|
|
117
|
-
})], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint ? [_c('OrHint', {
|
|
118
|
-
attrs: {
|
|
119
|
-
"disabled": _vm.disabled
|
|
120
|
-
}
|
|
121
|
-
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] : [_c('OrError', {
|
|
122
|
-
attrs: {
|
|
123
|
-
"disabled": _vm.disabled
|
|
124
|
-
}
|
|
125
|
-
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n ")])]], 2);
|
|
126
|
-
};
|
|
127
|
-
var __vue_staticRenderFns__ = [];
|
|
128
|
-
|
|
129
|
-
/* style */
|
|
130
|
-
const __vue_inject_styles__ = undefined;
|
|
131
|
-
/* scoped */
|
|
132
|
-
const __vue_scope_id__ = undefined;
|
|
133
|
-
/* module identifier */
|
|
134
|
-
const __vue_module_identifier__ = undefined;
|
|
135
|
-
/* functional template */
|
|
136
|
-
const __vue_is_functional_template__ = false;
|
|
137
|
-
/* style inject */
|
|
138
|
-
|
|
139
|
-
/* style inject SSR */
|
|
140
|
-
|
|
141
|
-
/* style inject shadow dom */
|
|
142
|
-
|
|
143
|
-
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
144
|
-
render: __vue_render__,
|
|
145
|
-
staticRenderFns: __vue_staticRenderFns__
|
|
146
|
-
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
147
|
-
var __vue_component__$1 = __vue_component__;
|
|
148
|
-
|
|
149
|
-
export { __vue_component__$1 as OrCombinedInputV3 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var InputBoxVariant;
|
|
2
|
-
(function (InputBoxVariant) {
|
|
3
|
-
InputBoxVariant["Styled"] = "styled";
|
|
4
|
-
InputBoxVariant["Unstyled"] = "unstyled";
|
|
5
|
-
})(InputBoxVariant || (InputBoxVariant = {}));
|
|
6
|
-
var InputBoxSize;
|
|
7
|
-
(function (InputBoxSize) {
|
|
8
|
-
InputBoxSize["M"] = "m";
|
|
9
|
-
InputBoxSize["S"] = "s";
|
|
10
|
-
})(InputBoxSize || (InputBoxSize = {}));
|
|
11
|
-
|
|
12
|
-
export { InputBoxVariant as I, InputBoxSize as a };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
-
} | string[], {} & {}, {
|
|
5
|
-
[x: number]: string;
|
|
6
|
-
} | {}, true>)>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
-
} | string[], {} & {}, {
|
|
11
|
-
[x: number]: string;
|
|
12
|
-
} | {}, true>)>;
|
|
13
|
-
export declare const Addon: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
14
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
15
|
-
} | string[], {} & {}, {
|
|
16
|
-
[x: number]: string;
|
|
17
|
-
} | {}, true>)>;
|
|
18
|
-
export declare const Hint: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
19
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
-
} | string[], {} & {}, {
|
|
21
|
-
[x: number]: string;
|
|
22
|
-
} | {}, true>)>;
|
|
23
|
-
export declare const Error: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
24
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
25
|
-
} | string[], {} & {}, {
|
|
26
|
-
[x: number]: string;
|
|
27
|
-
} | {}, true>)>;
|