@onereach/ui-components 2.67.6-beta.2018.0 → 2.67.6
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/{OrSegmentedControl-65c87f9b.js → OrSegmentedControl-a3cb285c.js} +5 -10
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/components/or-icon-button-v3/OrIconButton.stories3.d.ts +6 -1
- package/dist/bundled/v2/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +1 -1
- package/dist/bundled/v2/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +0 -2
- package/dist/bundled/v2/components/or-segmented-control-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-6068f70c.js → OrSegmentedControl.vue_vue_type_script_lang-16a52048.js} +3 -7
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/components/or-icon-button-v3/OrIconButton.stories3.d.ts +6 -1
- package/dist/bundled/v3/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +1 -1
- package/dist/bundled/v3/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +0 -2
- package/dist/bundled/v3/components/or-segmented-control-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +2 -2
- package/dist/esm/v2/{OrSegmentedControl-0b4637ba.js → OrSegmentedControl-17df63b8.js} +6 -11
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-icon-button-v3/OrIconButton.stories3.d.ts +6 -1
- package/dist/esm/v2/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +1 -1
- package/dist/esm/v2/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +0 -2
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrSegmentedControl-cdf00d49.js → OrSegmentedControl-2bbc0f22.js} +4 -11
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.stories3.d.ts +6 -1
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +1 -1
- package/dist/esm/v3/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +0 -2
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +3 -2
- package/src/components/or-icon-button-v3/OrIconButton.stories3.ts +13 -2
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +2 -2
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue +3 -11
|
@@ -50,22 +50,15 @@ var script$1 = defineComponent({
|
|
|
50
50
|
default: false
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
setup(props
|
|
53
|
+
setup(props) {
|
|
54
54
|
// Refs
|
|
55
55
|
const root = ref();
|
|
56
56
|
// Styles
|
|
57
57
|
const classAttribute = useClassAttribute();
|
|
58
58
|
const rootStyles = computed(() => ['or-segmented-control-item', ...SegmentedControlItemRoot, ...SegmentedControlItemRootSizes[props.size], classAttribute.value]);
|
|
59
|
-
// Handlers
|
|
60
|
-
function onClick(event) {
|
|
61
|
-
{
|
|
62
|
-
context.emit('click', event);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
59
|
return {
|
|
66
60
|
root,
|
|
67
|
-
rootStyles
|
|
68
|
-
onClick
|
|
61
|
+
rootStyles
|
|
69
62
|
};
|
|
70
63
|
}
|
|
71
64
|
});
|
|
@@ -86,7 +79,9 @@ var __vue_render__$1 = function () {
|
|
|
86
79
|
"disabled": _vm.disabled ? '' : null
|
|
87
80
|
},
|
|
88
81
|
on: {
|
|
89
|
-
"click":
|
|
82
|
+
"click": function ($event) {
|
|
83
|
+
return _vm.$emit('click', $event);
|
|
84
|
+
}
|
|
90
85
|
}
|
|
91
86
|
}, 'div', _vm.$attrs, false), [_c('div', {
|
|
92
87
|
class: ['truncate']
|
|
@@ -64,7 +64,7 @@ export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
|
|
|
64
64
|
export { _ as OrRadioGroup } from '../OrRadioGroup-aa9f0757.js';
|
|
65
65
|
export { _ as OrRadioV3 } from '../OrRadio-8ec1d487.js';
|
|
66
66
|
export { _ as OrSearchV3 } from '../OrSearch-f6d5fc65.js';
|
|
67
|
-
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-
|
|
67
|
+
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-a3cb285c.js';
|
|
68
68
|
export { _ as OrSelect } from '../OrSelect-bbe8dd58.js';
|
|
69
69
|
export { _ as OrSelectV3 } from '../OrSelect-6cef1b69.js';
|
|
70
70
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-e2b2c9ec.js';
|
|
@@ -5,7 +5,12 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
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 WithDetailedIconSettings: 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
14
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
15
|
} | string[], {} & {}, {
|
|
11
16
|
[x: number]: string;
|
|
@@ -5,7 +5,7 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Base: 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
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
10
|
} | string[], {} & {}, {
|
|
11
11
|
[x: number]: string;
|
|
@@ -3,7 +3,6 @@ import { SegmentedControlSize } from '../../props';
|
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
|
-
onClick: (event: Event) => void;
|
|
7
6
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
8
7
|
size: {
|
|
9
8
|
type: PropType<SegmentedControlSize>;
|
|
@@ -37,7 +36,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
36
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
38
37
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
39
38
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
40
|
-
onClick: (event: Event) => void;
|
|
41
39
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
42
40
|
size: SegmentedControlSize;
|
|
43
41
|
selected: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl-
|
|
1
|
+
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl-a3cb285c.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -69,7 +69,7 @@ export { _ as OrRadio } from './OrRadio-187d6fc7.js';
|
|
|
69
69
|
export { _ as OrRadioGroup } from './OrRadioGroup-aa9f0757.js';
|
|
70
70
|
export { _ as OrRadioV3 } from './OrRadio-8ec1d487.js';
|
|
71
71
|
export { _ as OrSearchV3 } from './OrSearch-f6d5fc65.js';
|
|
72
|
-
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-
|
|
72
|
+
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-a3cb285c.js';
|
|
73
73
|
export { _ as OrSelect } from './OrSelect-bbe8dd58.js';
|
|
74
74
|
export { _ as OrSelectV3 } from './OrSelect-6cef1b69.js';
|
|
75
75
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-e2b2c9ec.js';
|
|
@@ -48,19 +48,15 @@ var script$1 = defineComponent({
|
|
|
48
48
|
default: false
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
setup(props
|
|
51
|
+
setup(props) {
|
|
52
52
|
// Refs
|
|
53
53
|
const root = ref();
|
|
54
54
|
// Styles
|
|
55
55
|
const classAttribute = useClassAttribute();
|
|
56
56
|
const rootStyles = computed(() => ['or-segmented-control-item', ...SegmentedControlItemRoot, ...SegmentedControlItemRootSizes[props.size], classAttribute.value]);
|
|
57
|
-
// Handlers
|
|
58
|
-
function onClick(event) {
|
|
59
|
-
}
|
|
60
57
|
return {
|
|
61
58
|
root,
|
|
62
|
-
rootStyles
|
|
63
|
-
onClick
|
|
59
|
+
rootStyles
|
|
64
60
|
};
|
|
65
61
|
}
|
|
66
62
|
});
|
|
@@ -76,7 +72,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76
72
|
class: _ctx.rootStyles,
|
|
77
73
|
selected: _ctx.selected ? '' : null,
|
|
78
74
|
disabled: _ctx.disabled ? '' : null,
|
|
79
|
-
onClick: _cache[0] || (_cache[0] =
|
|
75
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event))
|
|
80
76
|
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")])], 16 /* FULL_PROPS */, _hoisted_1);
|
|
81
77
|
}
|
|
82
78
|
|
|
@@ -64,7 +64,7 @@ export { s as OrRadio } from '../OrRadio.vue_vue_type_script_lang-c956b54b.js';
|
|
|
64
64
|
export { s as OrRadioGroup } from '../OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js';
|
|
65
65
|
export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-e64b14a1.js';
|
|
66
66
|
export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-b254e34c.js';
|
|
67
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-
|
|
67
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-16a52048.js';
|
|
68
68
|
export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-3a6efd93.js';
|
|
69
69
|
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-e6be732c.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
|
|
@@ -5,7 +5,12 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
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 WithDetailedIconSettings: 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
14
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
15
|
} | string[], {} & {}, {
|
|
11
16
|
[x: number]: string;
|
|
@@ -5,7 +5,7 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Base: 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
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
10
|
} | string[], {} & {}, {
|
|
11
11
|
[x: number]: string;
|
|
@@ -3,7 +3,6 @@ import { SegmentedControlSize } from '../../props';
|
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
|
-
onClick: (event: Event) => void;
|
|
7
6
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
8
7
|
size: {
|
|
9
8
|
type: PropType<SegmentedControlSize>;
|
|
@@ -37,7 +36,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
36
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
38
37
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
39
38
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
40
|
-
onClick: (event: Event) => void;
|
|
41
39
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
42
40
|
size: SegmentedControlSize;
|
|
43
41
|
selected: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl.vue_vue_type_script_lang-16a52048.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '../../useClassAttribute-00888f78.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -85,8 +85,8 @@ import { s as script$s } from './OrRadio.vue_vue_type_script_lang-e64b14a1.js';
|
|
|
85
85
|
export { s as OrRadioV3 } from './OrRadio.vue_vue_type_script_lang-e64b14a1.js';
|
|
86
86
|
import { s as script$t } from './OrSearch.vue_vue_type_script_lang-b254e34c.js';
|
|
87
87
|
export { s as OrSearchV3 } from './OrSearch.vue_vue_type_script_lang-b254e34c.js';
|
|
88
|
-
import { s as script$u } from './OrSegmentedControl.vue_vue_type_script_lang-
|
|
89
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl.vue_vue_type_script_lang-
|
|
88
|
+
import { s as script$u } from './OrSegmentedControl.vue_vue_type_script_lang-16a52048.js';
|
|
89
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl.vue_vue_type_script_lang-16a52048.js';
|
|
90
90
|
import { s as script$x } from './OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
|
|
91
91
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
|
|
92
92
|
import { s as script$y } from './OrSidebar.vue_vue_type_script_lang-ce0b152c.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -50,22 +50,15 @@ var script$1 = defineComponent({
|
|
|
50
50
|
default: false
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
setup(props
|
|
53
|
+
setup(props) {
|
|
54
54
|
// Refs
|
|
55
55
|
const root = ref();
|
|
56
56
|
// Styles
|
|
57
57
|
const classAttribute = useClassAttribute();
|
|
58
58
|
const rootStyles = computed(() => ['or-segmented-control-item', ...SegmentedControlItemRoot, ...SegmentedControlItemRootSizes[props.size], classAttribute.value]);
|
|
59
|
-
// Handlers
|
|
60
|
-
function onClick(event) {
|
|
61
|
-
if (isVue2) {
|
|
62
|
-
context.emit('click', event);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
59
|
return {
|
|
66
60
|
root,
|
|
67
|
-
rootStyles
|
|
68
|
-
onClick
|
|
61
|
+
rootStyles
|
|
69
62
|
};
|
|
70
63
|
}
|
|
71
64
|
});
|
|
@@ -86,7 +79,9 @@ var __vue_render__$1 = function () {
|
|
|
86
79
|
"disabled": _vm.disabled ? '' : null
|
|
87
80
|
},
|
|
88
81
|
on: {
|
|
89
|
-
"click":
|
|
82
|
+
"click": function ($event) {
|
|
83
|
+
return _vm.$emit('click', $event);
|
|
84
|
+
}
|
|
90
85
|
}
|
|
91
86
|
}, 'div', _vm.$attrs, false), [_c('div', {
|
|
92
87
|
class: ['truncate']
|
|
@@ -64,7 +64,7 @@ export { _ as OrRadio } from '../OrRadio-e4198532.js';
|
|
|
64
64
|
export { _ as OrRadioGroup } from '../OrRadioGroup-d9d32cba.js';
|
|
65
65
|
export { _ as OrRadioV3 } from '../OrRadio-19d01c00.js';
|
|
66
66
|
export { _ as OrSearchV3 } from '../OrSearch-42454def.js';
|
|
67
|
-
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-
|
|
67
|
+
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-17df63b8.js';
|
|
68
68
|
export { _ as OrSelect } from '../OrSelect-17cdab3d.js';
|
|
69
69
|
export { _ as OrSelectV3 } from '../OrSelect-439f27b9.js';
|
|
70
70
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-7d6125bb.js';
|
|
@@ -5,7 +5,12 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
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 WithDetailedIconSettings: 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
14
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
15
|
} | string[], {} & {}, {
|
|
11
16
|
[x: number]: string;
|
|
@@ -5,7 +5,7 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Base: 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
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
10
|
} | string[], {} & {}, {
|
|
11
11
|
[x: number]: string;
|
|
@@ -3,7 +3,6 @@ import { SegmentedControlSize } from '../../props';
|
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
|
-
onClick: (event: Event) => void;
|
|
7
6
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
8
7
|
size: {
|
|
9
8
|
type: PropType<SegmentedControlSize>;
|
|
@@ -37,7 +36,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
36
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
38
37
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
39
38
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
40
|
-
onClick: (event: Event) => void;
|
|
41
39
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
42
40
|
size: SegmentedControlSize;
|
|
43
41
|
selected: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl-
|
|
1
|
+
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl-17df63b8.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -64,7 +64,7 @@ export { _ as OrRadio } from './OrRadio-e4198532.js';
|
|
|
64
64
|
export { _ as OrRadioGroup } from './OrRadioGroup-d9d32cba.js';
|
|
65
65
|
export { _ as OrRadioV3 } from './OrRadio-19d01c00.js';
|
|
66
66
|
export { _ as OrSearchV3 } from './OrSearch-42454def.js';
|
|
67
|
-
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-
|
|
67
|
+
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-17df63b8.js';
|
|
68
68
|
export { _ as OrSelect } from './OrSelect-17cdab3d.js';
|
|
69
69
|
export { _ as OrSelectV3 } from './OrSelect-439f27b9.js';
|
|
70
70
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-7d6125bb.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { openBlock, createElementBlock, mergeProps, createElementVNode, renderSlot, normalizeClass, resolveComponent, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
@@ -50,22 +50,15 @@ var script$1 = defineComponent({
|
|
|
50
50
|
default: false
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
setup(props
|
|
53
|
+
setup(props) {
|
|
54
54
|
// Refs
|
|
55
55
|
const root = ref();
|
|
56
56
|
// Styles
|
|
57
57
|
const classAttribute = useClassAttribute();
|
|
58
58
|
const rootStyles = computed(() => ['or-segmented-control-item', ...SegmentedControlItemRoot, ...SegmentedControlItemRootSizes[props.size], classAttribute.value]);
|
|
59
|
-
// Handlers
|
|
60
|
-
function onClick(event) {
|
|
61
|
-
if (isVue2) {
|
|
62
|
-
context.emit('click', event);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
59
|
return {
|
|
66
60
|
root,
|
|
67
|
-
rootStyles
|
|
68
|
-
onClick
|
|
61
|
+
rootStyles
|
|
69
62
|
};
|
|
70
63
|
}
|
|
71
64
|
});
|
|
@@ -81,7 +74,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81
74
|
class: _ctx.rootStyles,
|
|
82
75
|
selected: _ctx.selected ? '' : null,
|
|
83
76
|
disabled: _ctx.disabled ? '' : null,
|
|
84
|
-
onClick: _cache[0] || (_cache[0] =
|
|
77
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event))
|
|
85
78
|
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")])], 16 /* FULL_PROPS */, _hoisted_1);
|
|
86
79
|
}
|
|
87
80
|
|
|
@@ -59,7 +59,7 @@ 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-0c1883f2.js';
|
|
61
61
|
export { s as OrSearchV3 } from '../OrSearch-2912b7df.js';
|
|
62
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-
|
|
62
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-2bbc0f22.js';
|
|
63
63
|
export { s as OrSelect } from '../OrSelect-73690828.js';
|
|
64
64
|
export { s as OrSelectV3 } from '../OrSelect-ff8f8461.js';
|
|
65
65
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
@@ -5,7 +5,12 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
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 WithDetailedIconSettings: 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
14
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
15
|
} | string[], {} & {}, {
|
|
11
16
|
[x: number]: string;
|
|
@@ -5,7 +5,7 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
|
|
|
5
5
|
[x: number]: string;
|
|
6
6
|
} | {}, true>)>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Base: 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
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
10
|
} | string[], {} & {}, {
|
|
11
11
|
[x: number]: string;
|
|
@@ -3,7 +3,6 @@ import { SegmentedControlSize } from '../../props';
|
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
|
-
onClick: (event: Event) => void;
|
|
7
6
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
8
7
|
size: {
|
|
9
8
|
type: PropType<SegmentedControlSize>;
|
|
@@ -37,7 +36,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
36
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
38
37
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
39
38
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
40
|
-
onClick: (event: Event) => void;
|
|
41
39
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
42
40
|
size: SegmentedControlSize;
|
|
43
41
|
selected: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl-
|
|
1
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../../OrSegmentedControl-2bbc0f22.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -59,7 +59,7 @@ 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-0c1883f2.js';
|
|
61
61
|
export { s as OrSearchV3 } from './OrSearch-2912b7df.js';
|
|
62
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-
|
|
62
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-2bbc0f22.js';
|
|
63
63
|
export { s as OrSelect } from './OrSelect-73690828.js';
|
|
64
64
|
export { s as OrSelectV3 } from './OrSelect-ff8f8461.js';
|
|
65
65
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.67.6
|
|
3
|
+
"version": "2.67.6",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -123,5 +123,6 @@
|
|
|
123
123
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
124
124
|
},
|
|
125
125
|
"./package.json": "./package.json"
|
|
126
|
-
}
|
|
126
|
+
},
|
|
127
|
+
"gitHead": "617f9cb9de3d7dd709db8cfc0c250182658dc7c0"
|
|
127
128
|
}
|
|
@@ -66,10 +66,21 @@ const Template: StoryFn<typeof OrIconButton> = (args) => ({
|
|
|
66
66
|
`,
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
export const
|
|
69
|
+
export const Default = Template.bind({});
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Default.args = {
|
|
72
72
|
// Props
|
|
73
73
|
icon: 'delete',
|
|
74
74
|
tooltip: 'Delete',
|
|
75
75
|
};
|
|
76
|
+
|
|
77
|
+
export const WithDetailedIconSettings = Template.bind({});
|
|
78
|
+
WithDetailedIconSettings.args = {
|
|
79
|
+
// Props
|
|
80
|
+
icon: {
|
|
81
|
+
icon: 'delete',
|
|
82
|
+
variant: 'filled',
|
|
83
|
+
size: 'xl',
|
|
84
|
+
},
|
|
85
|
+
tooltip: 'Delete',
|
|
86
|
+
};
|
|
@@ -89,9 +89,9 @@ const Template: StoryFn<typeof OrSegmentedControl> = (args) => ({
|
|
|
89
89
|
`,
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
export const
|
|
92
|
+
export const Base = Template.bind({});
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
Base.args = {
|
|
95
95
|
// Props
|
|
96
96
|
options: Array.from<string, SegmentedControlOption>([
|
|
97
97
|
'Alfa',
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:class="rootStyles"
|
|
6
6
|
:selected="selected ? '' : null"
|
|
7
7
|
:disabled="disabled ? '' : null"
|
|
8
|
-
@click="
|
|
8
|
+
@click="$emit('click', $event)"
|
|
9
9
|
>
|
|
10
10
|
<div :class="['truncate']">
|
|
11
11
|
<slot />
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script lang="ts">
|
|
17
|
-
import { computed, defineComponent,
|
|
17
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
18
18
|
import { useClassAttribute } from '../../../../hooks';
|
|
19
19
|
import { SegmentedControlSize } from '../../props';
|
|
20
20
|
import { SegmentedControlItemRoot, SegmentedControlItemRootSizes } from './styles';
|
|
@@ -41,7 +41,7 @@ export default defineComponent({
|
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
|
|
44
|
-
setup(props
|
|
44
|
+
setup(props) {
|
|
45
45
|
// Refs
|
|
46
46
|
const root = ref<HTMLElement>();
|
|
47
47
|
|
|
@@ -55,17 +55,9 @@ export default defineComponent({
|
|
|
55
55
|
classAttribute.value,
|
|
56
56
|
]);
|
|
57
57
|
|
|
58
|
-
// Handlers
|
|
59
|
-
function onClick(event: Event): void {
|
|
60
|
-
if (isVue2) {
|
|
61
|
-
context.emit('click', event);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
58
|
return {
|
|
66
59
|
root,
|
|
67
60
|
rootStyles,
|
|
68
|
-
onClick,
|
|
69
61
|
};
|
|
70
62
|
},
|
|
71
63
|
});
|