@onereach/ui-components 2.72.1 → 2.72.2-beta.2260.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/{OrSidebar-c95ef614.js → OrSidebar-64cc9127.js} +92 -86
- package/dist/bundled/v2/OrSidebarCollapseButton-fcc085c7.js +235 -0
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/bundled/v2/index.js +3 -2
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-ce0b152c.js → OrSidebar.vue_vue_type_script_lang-a150808b.js} +75 -80
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-d3e3cd4f.js +185 -0
- package/dist/bundled/v3/components/index.js +2 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +16 -2
- package/dist/bundled/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/bundled/v3/index.js +26 -9
- package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-a10424d2.js} +92 -86
- package/dist/esm/v2/OrSidebarCollapseButton-3b461dfe.js +233 -0
- package/dist/esm/v2/components/index.js +2 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/esm/v2/index.js +2 -1
- package/dist/esm/v3/{OrSidebar-a62972f5.js → OrSidebar-3be35e8d.js} +81 -89
- package/dist/esm/v3/OrSidebarCollapseButton-30d0033b.js +204 -0
- package/dist/esm/v3/components/index.js +2 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/esm/v3/index.js +2 -1
- package/package.json +2 -3
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +6 -0
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +253 -12
- package/src/components/or-sidebar-v3/OrSidebar.vue +130 -23
- package/src/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue +74 -0
- package/src/components/or-sidebar-v3/partials/index.ts +1 -0
- package/src/components/or-sidebar-v3/styles.ts +164 -9
|
@@ -4,26 +4,36 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
resizeBar: import("@vue/composition-api").Ref<HTMLElement | null>;
|
|
6
6
|
isResizing: import("@vue/composition-api").Ref<boolean>;
|
|
7
|
+
isCollapsed: import("@vue/composition-api").Ref<boolean>;
|
|
7
8
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
9
|
+
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
8
10
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
9
11
|
width: string;
|
|
10
12
|
}>;
|
|
11
13
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
14
|
+
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
15
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
12
16
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
17
|
+
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
13
18
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
14
19
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
15
20
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
16
21
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
22
|
+
open: () => void;
|
|
23
|
+
close: () => void;
|
|
17
24
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
18
25
|
width: {
|
|
19
26
|
type: NumberConstructor;
|
|
20
|
-
required: false;
|
|
21
27
|
default: number;
|
|
22
28
|
validator: (value?: any) => boolean;
|
|
23
29
|
};
|
|
24
30
|
minimumWidth: {
|
|
25
31
|
type: NumberConstructor;
|
|
26
|
-
|
|
32
|
+
default: number;
|
|
33
|
+
validator: (value?: any) => boolean;
|
|
34
|
+
};
|
|
35
|
+
maximumWidth: {
|
|
36
|
+
type: NumberConstructor;
|
|
27
37
|
default: number;
|
|
28
38
|
validator: (value?: any) => boolean;
|
|
29
39
|
};
|
|
@@ -39,16 +49,27 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
39
49
|
default: OrSidebarPlacement;
|
|
40
50
|
validator: (value?: any) => boolean;
|
|
41
51
|
};
|
|
52
|
+
draggable: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
collapsible: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
42
60
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
43
61
|
width: {
|
|
44
62
|
type: NumberConstructor;
|
|
45
|
-
required: false;
|
|
46
63
|
default: number;
|
|
47
64
|
validator: (value?: any) => boolean;
|
|
48
65
|
};
|
|
49
66
|
minimumWidth: {
|
|
50
67
|
type: NumberConstructor;
|
|
51
|
-
|
|
68
|
+
default: number;
|
|
69
|
+
validator: (value?: any) => boolean;
|
|
70
|
+
};
|
|
71
|
+
maximumWidth: {
|
|
72
|
+
type: NumberConstructor;
|
|
52
73
|
default: number;
|
|
53
74
|
validator: (value?: any) => boolean;
|
|
54
75
|
};
|
|
@@ -64,35 +85,59 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
64
85
|
default: OrSidebarPlacement;
|
|
65
86
|
validator: (value?: any) => boolean;
|
|
66
87
|
};
|
|
88
|
+
draggable: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
collapsible: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
67
96
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
68
97
|
width: number;
|
|
69
98
|
minimumWidth: number;
|
|
99
|
+
maximumWidth: number;
|
|
70
100
|
side: OrSidebarPlacement;
|
|
101
|
+
draggable: boolean;
|
|
102
|
+
collapsible: boolean;
|
|
71
103
|
} & {} & {
|
|
72
104
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
73
105
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
74
106
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
75
107
|
resizeBar: import("@vue/composition-api").Ref<HTMLElement | null>;
|
|
76
108
|
isResizing: import("@vue/composition-api").Ref<boolean>;
|
|
109
|
+
isCollapsed: import("@vue/composition-api").Ref<boolean>;
|
|
77
110
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
111
|
+
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
78
112
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
79
113
|
width: string;
|
|
80
114
|
}>;
|
|
81
115
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
116
|
+
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
117
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
82
118
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
119
|
+
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
83
120
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
84
121
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
85
122
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
86
123
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
|
+
open: () => void;
|
|
125
|
+
close: () => void;
|
|
87
126
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
88
127
|
width: number;
|
|
89
128
|
minimumWidth: number;
|
|
129
|
+
maximumWidth: number;
|
|
90
130
|
side: OrSidebarPlacement;
|
|
131
|
+
draggable: boolean;
|
|
132
|
+
collapsible: boolean;
|
|
91
133
|
} & {} & {
|
|
92
134
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
93
135
|
}, {
|
|
94
136
|
width: number;
|
|
95
137
|
minimumWidth: number;
|
|
138
|
+
maximumWidth: number;
|
|
96
139
|
side: OrSidebarPlacement;
|
|
140
|
+
draggable: boolean;
|
|
141
|
+
collapsible: boolean;
|
|
97
142
|
}, true>);
|
|
98
143
|
export default _default;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { _ as OrSidebarV3 } from '../../OrSidebar-64cc9127.js';
|
|
2
|
+
export { O as OrSidebarPlacement } from '../../OrSidebarCollapseButton-fcc085c7.js';
|
|
2
3
|
import '@vueuse/core';
|
|
3
4
|
import 'lodash';
|
|
4
5
|
import '../../index-fa6eb4ca.js';
|
|
5
6
|
import 'vue';
|
|
6
7
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
7
8
|
import '../../normalize-component-6e8e3d80.js';
|
|
9
|
+
import '../../OrIconButton-837d57f8.js';
|
|
10
|
+
import '../../OrIcon-458206aa.js';
|
|
11
|
+
import '../../OrTooltip-b1f38647.js';
|
|
12
|
+
import '../../OrPopover-4e8acb7b.js';
|
|
13
|
+
import '../../floating-ui.dom.esm-83eba816.js';
|
|
14
|
+
import '../../OrBottomSheet-ddba20c1.js';
|
|
15
|
+
import '../../OrOverlay-efa7992e.js';
|
|
16
|
+
import '../../OrTeleport.vue2-e9ba3054.js';
|
|
17
|
+
import 'portal-vue';
|
|
18
|
+
import '../../useElevation-aac032f4.js';
|
|
19
|
+
import '../../useResponsive-e13dfbb0.js';
|
package/dist/bundled/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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>)>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { OrSidebarPlacement } from '../props';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
5
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
buttonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
icon: import("@vue/composition-api").ComputedRef<"keyboard_arrow_left" | "keyboard_arrow_right">;
|
|
8
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
9
|
+
/**
|
|
10
|
+
* Must be `true` if sidebar is collapsed.
|
|
11
|
+
*/
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
side: {
|
|
17
|
+
type: PropType<OrSidebarPlacement>;
|
|
18
|
+
default: OrSidebarPlacement;
|
|
19
|
+
validator: (value?: any) => boolean;
|
|
20
|
+
};
|
|
21
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
22
|
+
/**
|
|
23
|
+
* Must be `true` if sidebar is collapsed.
|
|
24
|
+
*/
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
side: {
|
|
30
|
+
type: PropType<OrSidebarPlacement>;
|
|
31
|
+
default: OrSidebarPlacement;
|
|
32
|
+
validator: (value?: any) => boolean;
|
|
33
|
+
};
|
|
34
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
35
|
+
modelValue: boolean;
|
|
36
|
+
side: OrSidebarPlacement;
|
|
37
|
+
} & {} & {
|
|
38
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
40
|
+
root: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
41
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
42
|
+
buttonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
43
|
+
icon: import("@vue/composition-api").ComputedRef<"keyboard_arrow_left" | "keyboard_arrow_right">;
|
|
44
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
45
|
+
modelValue: boolean;
|
|
46
|
+
side: OrSidebarPlacement;
|
|
47
|
+
} & {} & {
|
|
48
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
modelValue: boolean;
|
|
51
|
+
side: OrSidebarPlacement;
|
|
52
|
+
}, true>);
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrSidebarCollapseButton } from './OrSidebarCollapseButton.vue';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { a as OrSidebarCollapseButton } from '../../../OrSidebarCollapseButton-fcc085c7.js';
|
|
2
|
+
import 'lodash';
|
|
3
|
+
import '../../../index-fa6eb4ca.js';
|
|
4
|
+
import 'vue';
|
|
5
|
+
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
6
|
+
import '../../../OrIconButton-837d57f8.js';
|
|
7
|
+
import '../../../OrIcon-458206aa.js';
|
|
8
|
+
import '../../../normalize-component-6e8e3d80.js';
|
|
9
|
+
import '../../../OrTooltip-b1f38647.js';
|
|
10
|
+
import '@vueuse/core';
|
|
11
|
+
import '../../../OrPopover-4e8acb7b.js';
|
|
12
|
+
import '../../../floating-ui.dom.esm-83eba816.js';
|
|
13
|
+
import '../../../OrBottomSheet-ddba20c1.js';
|
|
14
|
+
import '../../../OrOverlay-efa7992e.js';
|
|
15
|
+
import '../../../OrTeleport.vue2-e9ba3054.js';
|
|
16
|
+
import 'portal-vue';
|
|
17
|
+
import '../../../useElevation-aac032f4.js';
|
|
18
|
+
import '../../../useResponsive-e13dfbb0.js';
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { OrSidebarPlacement } from './props';
|
|
2
2
|
export declare const SidebarRoot: string[];
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const SidebarBar: string[];
|
|
4
|
+
export declare const SidebarToolbar: string[];
|
|
5
|
+
export declare const CollapsibleSidebarToolbar: string[];
|
|
6
|
+
export declare const SidebarSides: Record<OrSidebarPlacement, string[]>;
|
|
7
|
+
export declare const SidebarToolbarSides: Record<OrSidebarPlacement, string[]>;
|
|
4
8
|
export declare const SidebarResize: string[];
|
|
5
9
|
export declare const SidebarResizeSides: Record<OrSidebarPlacement, string[]>;
|
|
10
|
+
export declare const SidebarCollapseButton: string[];
|
|
11
|
+
export declare const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]>;
|
|
6
12
|
export declare const SidebarResizingSides: Record<OrSidebarPlacement, string[]>;
|
|
7
13
|
export declare const SidebarMain: string[];
|
|
8
14
|
export declare const SidebarHeader: string[];
|
|
9
15
|
export declare const SidebarContent: string[];
|
|
10
16
|
export declare const SidebarFooter: string[];
|
|
17
|
+
export declare const CollapseButtonContainer: string[];
|
|
18
|
+
export declare const CollapseButton: string[];
|