@onereach/ui-components 4.4.0 → 4.4.1-beta.2702.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/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +4 -4
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-2c4c9f9d.js → OrSelect.vue_vue_type_script_lang-87ff7d15.js} +2 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +4 -4
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/index.js +1 -1
- package/dist/esm/v2/{OrSelect-a4c34099.js → OrSelect-3731427d.js} +2 -2
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-select-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrSelect-046e8e36.js → OrSelect-c811ecba.js} +2 -2
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +4 -4
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -3
- package/src/components/or-select-v3/OrSelect.vue +2 -2
- package/src/components/or-avatar-v3/OrAvatar.docs.mdx +0 -7
- package/src/components/or-avatar-v3/OrAvatar.stories3.ts +0 -141
|
@@ -41,11 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
41
41
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
42
42
|
options: {
|
|
43
43
|
type: PropType<SelectOption[]>;
|
|
44
|
-
default:
|
|
44
|
+
default: () => never[];
|
|
45
45
|
};
|
|
46
46
|
searchOptions: {
|
|
47
47
|
type: PropType<SelectOption[]>;
|
|
48
|
-
default:
|
|
48
|
+
default: () => never[];
|
|
49
49
|
};
|
|
50
50
|
modelValue: {
|
|
51
51
|
type: PropType<string | number | (string | number)[]>;
|
|
@@ -106,11 +106,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
106
106
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
107
107
|
options: {
|
|
108
108
|
type: PropType<SelectOption[]>;
|
|
109
|
-
default:
|
|
109
|
+
default: () => never[];
|
|
110
110
|
};
|
|
111
111
|
searchOptions: {
|
|
112
112
|
type: PropType<SelectOption[]>;
|
|
113
|
-
default:
|
|
113
|
+
default: () => never[];
|
|
114
114
|
};
|
|
115
115
|
modelValue: {
|
|
116
116
|
type: PropType<string | number | (string | number)[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as script } from '../../OrSelect.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrSelect.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
|
|
2
|
+
export { s as default } from '../../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
|
|
3
3
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createElementVNode, Fragment, renderList, createVNode, withModifiers, vShow } from 'vue';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import './styles.js';
|
|
@@ -4,11 +4,11 @@ import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './typ
|
|
|
4
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
5
5
|
options: {
|
|
6
6
|
type: PropType<SelectOption[]>;
|
|
7
|
-
default:
|
|
7
|
+
default: () => never[];
|
|
8
8
|
};
|
|
9
9
|
searchOptions: {
|
|
10
10
|
type: PropType<SelectOption[]>;
|
|
11
|
-
default:
|
|
11
|
+
default: () => never[];
|
|
12
12
|
};
|
|
13
13
|
modelValue: {
|
|
14
14
|
type: PropType<string | number | (string | number)[]>;
|
|
@@ -98,11 +98,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
98
98
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("search" | "update:modelValue" | "focus" | "blur")[], "search" | "update:modelValue" | "focus" | "blur", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
99
99
|
options: {
|
|
100
100
|
type: PropType<SelectOption[]>;
|
|
101
|
-
default:
|
|
101
|
+
default: () => never[];
|
|
102
102
|
};
|
|
103
103
|
searchOptions: {
|
|
104
104
|
type: PropType<SelectOption[]>;
|
|
105
|
-
default:
|
|
105
|
+
default: () => never[];
|
|
106
106
|
};
|
|
107
107
|
modelValue: {
|
|
108
108
|
type: PropType<string | number | (string | number)[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
|
|
2
2
|
export { InputBoxSize as SelectSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './styles.js';
|
|
@@ -110,7 +110,7 @@ export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-1a4ebba2.j
|
|
|
110
110
|
export { s as OrSegmentedControlV3 } from '../OrSegmentedControl.vue_vue_type_script_lang-ed0d9fe7.js';
|
|
111
111
|
export { SegmentedControlSize } from './OrSegmentedControlV3/props.js';
|
|
112
112
|
export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-29a48259.js';
|
|
113
|
-
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-
|
|
113
|
+
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
|
|
114
114
|
export { s as OrSidebar } from '../OrSidebar.vue_vue_type_script_lang-00e9cda7.js';
|
|
115
115
|
export { OrSidebarSide } from './OrSidebar/constants.js';
|
|
116
116
|
export { s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-5723e223.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -78,7 +78,7 @@ export { s as OrSegmentedControlV3 } from './OrSegmentedControl.vue_vue_type_scr
|
|
|
78
78
|
import './components/OrSelect/OrSelect.js';
|
|
79
79
|
export { s as OrSelect } from './OrSelect.vue_vue_type_script_lang-29a48259.js';
|
|
80
80
|
import './components/OrSelectV3/OrSelect.js';
|
|
81
|
-
export { s as OrSelectV3 } from './OrSelect.vue_vue_type_script_lang-
|
|
81
|
+
export { s as OrSelectV3 } from './OrSelect.vue_vue_type_script_lang-87ff7d15.js';
|
|
82
82
|
import './components/OrSidebar/OrSidebar.js';
|
|
83
83
|
export { s as OrSidebar } from './OrSidebar.vue_vue_type_script_lang-00e9cda7.js';
|
|
84
84
|
import './components/OrSidebarV3/OrSidebar.js';
|
|
@@ -76,7 +76,7 @@ export { _ as OrSearch } from '../OrSearch-330e9af0.js';
|
|
|
76
76
|
export { _ as OrSearchV3 } from '../OrSearch-7ccc1f33.js';
|
|
77
77
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-a1ea5b72.js';
|
|
78
78
|
export { _ as OrSelect } from '../OrSelect-22eea9cc.js';
|
|
79
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
79
|
+
export { _ as OrSelectV3 } from '../OrSelect-3731427d.js';
|
|
80
80
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-feacf13a.js';
|
|
81
81
|
export { _ as OrSidebarV3 } from '../OrSidebar-de938772.js';
|
|
82
82
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-4bf3bad8.js';
|
|
@@ -41,11 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
41
41
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
42
42
|
options: {
|
|
43
43
|
type: PropType<SelectOption[]>;
|
|
44
|
-
default:
|
|
44
|
+
default: () => never[];
|
|
45
45
|
};
|
|
46
46
|
searchOptions: {
|
|
47
47
|
type: PropType<SelectOption[]>;
|
|
48
|
-
default:
|
|
48
|
+
default: () => never[];
|
|
49
49
|
};
|
|
50
50
|
modelValue: {
|
|
51
51
|
type: PropType<string | number | (string | number)[]>;
|
|
@@ -106,11 +106,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
106
106
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
107
107
|
options: {
|
|
108
108
|
type: PropType<SelectOption[]>;
|
|
109
|
-
default:
|
|
109
|
+
default: () => never[];
|
|
110
110
|
};
|
|
111
111
|
searchOptions: {
|
|
112
112
|
type: PropType<SelectOption[]>;
|
|
113
|
-
default:
|
|
113
|
+
default: () => never[];
|
|
114
114
|
};
|
|
115
115
|
modelValue: {
|
|
116
116
|
type: PropType<string | number | (string | number)[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-3731427d.js';
|
|
2
2
|
export { I as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -76,7 +76,7 @@ export { _ as OrSearch } from './OrSearch-330e9af0.js';
|
|
|
76
76
|
export { _ as OrSearchV3 } from './OrSearch-7ccc1f33.js';
|
|
77
77
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-a1ea5b72.js';
|
|
78
78
|
export { _ as OrSelect } from './OrSelect-22eea9cc.js';
|
|
79
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
79
|
+
export { _ as OrSelectV3 } from './OrSelect-3731427d.js';
|
|
80
80
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
|
|
81
81
|
export { _ as OrSidebarV3 } from './OrSidebar-de938772.js';
|
|
82
82
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-4bf3bad8.js';
|
|
@@ -74,7 +74,7 @@ export { s as OrSearch } from '../OrSearch-f4ad73db.js';
|
|
|
74
74
|
export { s as OrSearchV3 } from '../OrSearch-e15c7fd2.js';
|
|
75
75
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-359fbf3a.js';
|
|
76
76
|
export { s as OrSelect } from '../OrSelect-6ff34196.js';
|
|
77
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
77
|
+
export { s as OrSelectV3 } from '../OrSelect-c811ecba.js';
|
|
78
78
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
79
79
|
export { s as OrSidebarV3 } from '../OrSidebar-3f2502fb.js';
|
|
80
80
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-63914891.js';
|
|
@@ -4,11 +4,11 @@ import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './typ
|
|
|
4
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
5
5
|
options: {
|
|
6
6
|
type: PropType<SelectOption[]>;
|
|
7
|
-
default:
|
|
7
|
+
default: () => never[];
|
|
8
8
|
};
|
|
9
9
|
searchOptions: {
|
|
10
10
|
type: PropType<SelectOption[]>;
|
|
11
|
-
default:
|
|
11
|
+
default: () => never[];
|
|
12
12
|
};
|
|
13
13
|
modelValue: {
|
|
14
14
|
type: PropType<string | number | (string | number)[]>;
|
|
@@ -98,11 +98,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
98
98
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("search" | "update:modelValue" | "focus" | "blur")[], "search" | "update:modelValue" | "focus" | "blur", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
99
99
|
options: {
|
|
100
100
|
type: PropType<SelectOption[]>;
|
|
101
|
-
default:
|
|
101
|
+
default: () => never[];
|
|
102
102
|
};
|
|
103
103
|
searchOptions: {
|
|
104
104
|
type: PropType<SelectOption[]>;
|
|
105
|
-
default:
|
|
105
|
+
default: () => never[];
|
|
106
106
|
};
|
|
107
107
|
modelValue: {
|
|
108
108
|
type: PropType<string | number | (string | number)[]>;
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -74,7 +74,7 @@ export { s as OrSearch } from './OrSearch-f4ad73db.js';
|
|
|
74
74
|
export { s as OrSearchV3 } from './OrSearch-e15c7fd2.js';
|
|
75
75
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-359fbf3a.js';
|
|
76
76
|
export { s as OrSelect } from './OrSelect-6ff34196.js';
|
|
77
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
77
|
+
export { s as OrSelectV3 } from './OrSelect-c811ecba.js';
|
|
78
78
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
79
79
|
export { s as OrSidebarV3 } from './OrSidebar-3f2502fb.js';
|
|
80
80
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-63914891.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "4.4.0",
|
|
3
|
+
"version": "4.4.1-beta.2702.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -153,6 +153,5 @@
|
|
|
153
153
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
154
154
|
},
|
|
155
155
|
"./package.json": "./package.json"
|
|
156
|
-
}
|
|
157
|
-
"gitHead": "c6f802ac31216b1058a29daebdeca2c2b111eadb"
|
|
156
|
+
}
|
|
158
157
|
}
|
|
@@ -274,12 +274,12 @@ export default defineComponent({
|
|
|
274
274
|
props: {
|
|
275
275
|
options: {
|
|
276
276
|
type: Array as PropType<SelectOption[]>,
|
|
277
|
-
default:
|
|
277
|
+
default: () => [],
|
|
278
278
|
},
|
|
279
279
|
|
|
280
280
|
searchOptions: {
|
|
281
281
|
type: Array as PropType<SelectOption[]>,
|
|
282
|
-
default:
|
|
282
|
+
default: () => [],
|
|
283
283
|
},
|
|
284
284
|
|
|
285
285
|
modelValue: {
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import OrAvatarDocs from './OrAvatar.docs.mdx';
|
|
3
|
-
import OrAvatar from './OrAvatar.vue';
|
|
4
|
-
import { AvatarColor, AvatarSize } from './props';
|
|
5
|
-
import { getAbbreviation } from '../../utils/functions/text';
|
|
6
|
-
import { computed } from 'vue-demi';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Components/Avatar',
|
|
10
|
-
component: OrAvatar,
|
|
11
|
-
|
|
12
|
-
argTypes: {
|
|
13
|
-
// Slots
|
|
14
|
-
default: {
|
|
15
|
-
type: {
|
|
16
|
-
name: 'string',
|
|
17
|
-
required: false,
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
control: { type: 'text' },
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
// Props
|
|
24
|
-
src: {
|
|
25
|
-
control: { type: 'text' },
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
size: {
|
|
29
|
-
control: { type: 'select' },
|
|
30
|
-
options: Object.values(AvatarSize),
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
color: {
|
|
34
|
-
control: { type: 'select' },
|
|
35
|
-
options: Object.values(AvatarColor),
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
colorSalt: {
|
|
39
|
-
control: { type: 'text' },
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
icon: {
|
|
43
|
-
control: { type: 'text' },
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
parameters: {
|
|
48
|
-
layout: 'centered',
|
|
49
|
-
|
|
50
|
-
docs: {
|
|
51
|
-
page: OrAvatarDocs,
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
design: {
|
|
55
|
-
type: 'figma',
|
|
56
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=2391%3A14170',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
} as Meta<typeof OrAvatar>;
|
|
60
|
-
|
|
61
|
-
const DefaultTemplate: StoryFn<typeof OrAvatar> = (args) => ({
|
|
62
|
-
components: {
|
|
63
|
-
OrAvatar,
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
setup() {
|
|
67
|
-
return { args };
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
template: `
|
|
71
|
-
<OrAvatar v-bind="args">
|
|
72
|
-
<template #default v-if="args.default">
|
|
73
|
-
${args.default}
|
|
74
|
-
</template>
|
|
75
|
-
</OrAvatar>
|
|
76
|
-
`,
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
const AbbreviationTemplate: StoryFn<typeof OrAvatar> = (args) => ({
|
|
80
|
-
components: {
|
|
81
|
-
OrAvatar,
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
setup() {
|
|
85
|
-
const abbreviation = computed(() => getAbbreviation(args.username, 2));
|
|
86
|
-
|
|
87
|
-
return {
|
|
88
|
-
args,
|
|
89
|
-
abbreviation,
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
template: `
|
|
94
|
-
<OrAvatar
|
|
95
|
-
v-bind="args"
|
|
96
|
-
:color-salt="args.username"
|
|
97
|
-
>
|
|
98
|
-
{{ this.abbreviation }}
|
|
99
|
-
</OrAvatar>
|
|
100
|
-
`,
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
export const Default = DefaultTemplate.bind({});
|
|
104
|
-
Default.args = {
|
|
105
|
-
default: 'OR',
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const WithSrc = DefaultTemplate.bind({});
|
|
109
|
-
WithSrc.args = {
|
|
110
|
-
src: 'https://onereach.gitlab.io/platform/ui-next/or-favicon.ico',
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export const WithTextInSlot = DefaultTemplate.bind({});
|
|
114
|
-
WithTextInSlot.args = {
|
|
115
|
-
default: 'A',
|
|
116
|
-
colorSalt: 'A username',
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export const WithIcon = DefaultTemplate.bind({});
|
|
120
|
-
WithIcon.args = {
|
|
121
|
-
icon: 'store',
|
|
122
|
-
colorSalt: 'Any string here',
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export const WithColor = DefaultTemplate.bind({});
|
|
126
|
-
WithColor.args = {
|
|
127
|
-
color: AvatarColor.blue,
|
|
128
|
-
icon: 'person',
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export const XL = DefaultTemplate.bind({});
|
|
132
|
-
XL.args = {
|
|
133
|
-
size: AvatarSize.XL,
|
|
134
|
-
icon: 'person',
|
|
135
|
-
colorSalt: 'Big Avatar',
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export const WithAbbreviationGeneration = AbbreviationTemplate.bind({});
|
|
139
|
-
WithAbbreviationGeneration.args = {
|
|
140
|
-
username: 'John Doe',
|
|
141
|
-
};
|