@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
|
@@ -1,91 +1,46 @@
|
|
|
1
1
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
-
import { defineComponent, ref, computed, watch } from 'vue';
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, defineComponent, ref, computed, useSlots, watch } from 'vue';
|
|
4
|
+
import { s as script$1, O as OrSidebarPlacement, S as SidebarRoot, a as SidebarBar, b as SidebarSides, c as SidebarToolbar, C as CollapsibleSidebarToolbar, d as SidebarToolbarSides, e as SidebarResize, f as SidebarResizeSides, g as SidebarResizingSides, h as SidebarCollapseButton, i as SidebarCollapseButtonSides, j as SidebarMain, k as SidebarHeader, l as SidebarContent, m as SidebarFooter } from './OrSidebarCollapseButton.vue_vue_type_script_lang-d3e3cd4f.js';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7
|
+
const _component_or_icon_button = resolveComponent("or-icon-button");
|
|
8
|
+
return openBlock(), createElementBlock("div", {
|
|
9
|
+
ref: "root",
|
|
10
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
11
|
+
}, [createVNode(_component_or_icon_button, {
|
|
12
|
+
class: normalizeClass(_ctx.buttonStyles),
|
|
13
|
+
icon: {
|
|
14
|
+
icon: _ctx.icon,
|
|
15
|
+
size: 'inherit'
|
|
16
|
+
},
|
|
17
|
+
color: "inherit",
|
|
18
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('update:modelValue', !_ctx.modelValue))
|
|
19
|
+
}, null, 8 /* PROPS */, ["class", "icon"])], 2 /* CLASS */);
|
|
20
|
+
}
|
|
10
21
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
'relative',
|
|
14
|
-
// Layout
|
|
15
|
-
'flex', 'flex-col', 'shrink-0',
|
|
16
|
-
// Box
|
|
17
|
-
'min-h-0', 'p-0'];
|
|
18
|
-
const SidebarRootSides = {
|
|
19
|
-
[OrSidebarPlacement.left]: [
|
|
20
|
-
// Borders
|
|
21
|
-
'border-r-[1px]', 'border-r-solid', 'border-r-secondary dark:border-r-secondary-dark'],
|
|
22
|
-
[OrSidebarPlacement.right]: [
|
|
23
|
-
// Borders
|
|
24
|
-
'border-l-[1px]', 'border-l-solid', 'border-l-secondary dark:border-l-secondary-dark']
|
|
25
|
-
};
|
|
26
|
-
const SidebarResize = [
|
|
27
|
-
// Position
|
|
28
|
-
'absolute', 'inset-y-none', 'z-[1]',
|
|
29
|
-
// Box
|
|
30
|
-
'w-[12px]', 'h-[100%]',
|
|
31
|
-
// Cursor
|
|
32
|
-
'cursor-ew-resize'];
|
|
33
|
-
const SidebarResizeSides = {
|
|
34
|
-
[OrSidebarPlacement.left]: [
|
|
35
|
-
// Position
|
|
36
|
-
'-right-[1px]',
|
|
37
|
-
// Borders
|
|
38
|
-
'hover:border-r-2', 'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
39
|
-
// Transition
|
|
40
|
-
'transition-[border-right]'],
|
|
41
|
-
[OrSidebarPlacement.right]: [
|
|
42
|
-
// Position
|
|
43
|
-
'-left-[1px]',
|
|
44
|
-
// Borders
|
|
45
|
-
'hover:border-l-2', 'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
46
|
-
// Transition
|
|
47
|
-
'transition-[border-left]']
|
|
48
|
-
};
|
|
49
|
-
const SidebarResizingSides = {
|
|
50
|
-
[OrSidebarPlacement.left]: [
|
|
51
|
-
// Borders
|
|
52
|
-
'border-r-2', 'border-r-primary dark:border-r-primary-dark'],
|
|
53
|
-
[OrSidebarPlacement.right]: [
|
|
54
|
-
// Borders
|
|
55
|
-
'border-l-2', 'border-l-primary dark:border-l-primary-dark']
|
|
56
|
-
};
|
|
57
|
-
const SidebarMain = [
|
|
58
|
-
// Layout
|
|
59
|
-
'flex', 'flex-col', 'grow',
|
|
60
|
-
// Box
|
|
61
|
-
'min-h-0'];
|
|
62
|
-
const SidebarHeader = [
|
|
63
|
-
// Sizing
|
|
64
|
-
'p-md'];
|
|
65
|
-
const SidebarContent = [
|
|
66
|
-
// Layout
|
|
67
|
-
'grow', 'overflow-auto',
|
|
68
|
-
// Sizing
|
|
69
|
-
'p-md'];
|
|
70
|
-
const SidebarFooter = [
|
|
71
|
-
// Sizing
|
|
72
|
-
'p-md',
|
|
73
|
-
// Borders
|
|
74
|
-
'border-t-[1px]', 'border-t-solid', 'border-t-secondary dark:border-t-secondary-dark'];
|
|
22
|
+
script$1.render = render;
|
|
23
|
+
script$1.__file = "src/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue";
|
|
75
24
|
|
|
76
25
|
var script = defineComponent({
|
|
77
26
|
name: 'OrSidebar',
|
|
27
|
+
components: {
|
|
28
|
+
OrSidebarCollapseButton: script$1
|
|
29
|
+
},
|
|
78
30
|
props: {
|
|
79
31
|
width: {
|
|
80
32
|
type: Number,
|
|
81
|
-
|
|
82
|
-
default: 0,
|
|
33
|
+
default: 320,
|
|
83
34
|
validator: value => _.isNumber(value) && value >= 0
|
|
84
35
|
},
|
|
85
36
|
minimumWidth: {
|
|
86
37
|
type: Number,
|
|
87
|
-
|
|
88
|
-
|
|
38
|
+
default: 256,
|
|
39
|
+
validator: value => _.isNumber(value) && value >= 0
|
|
40
|
+
},
|
|
41
|
+
maximumWidth: {
|
|
42
|
+
type: Number,
|
|
43
|
+
default: 384,
|
|
89
44
|
validator: value => _.isNumber(value) && value >= 0
|
|
90
45
|
},
|
|
91
46
|
/**
|
|
@@ -99,9 +54,18 @@ var script = defineComponent({
|
|
|
99
54
|
type: String,
|
|
100
55
|
default: OrSidebarPlacement.right,
|
|
101
56
|
validator: value => _.includes(_.values(OrSidebarPlacement), value)
|
|
57
|
+
},
|
|
58
|
+
draggable: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true
|
|
61
|
+
},
|
|
62
|
+
collapsible: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false
|
|
102
65
|
}
|
|
103
66
|
},
|
|
104
|
-
emits: ['change:width'],
|
|
67
|
+
emits: ['change:width', 'open', 'close'],
|
|
68
|
+
expose: ['root', 'open', 'close'],
|
|
105
69
|
setup(props, {
|
|
106
70
|
emit
|
|
107
71
|
}) {
|
|
@@ -112,16 +76,26 @@ var script = defineComponent({
|
|
|
112
76
|
var _a;
|
|
113
77
|
return (_a = root.value) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
114
78
|
});
|
|
79
|
+
// Slots
|
|
80
|
+
const {
|
|
81
|
+
toolbar: toolbarSlot
|
|
82
|
+
} = useSlots();
|
|
115
83
|
// State
|
|
116
84
|
const startPositionX = ref(0);
|
|
117
85
|
const isResizing = ref(false);
|
|
86
|
+
const isCollapsed = ref(false);
|
|
87
|
+
const maximumWidth = ref(props.maximumWidth || 384);
|
|
118
88
|
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
89
|
+
const isShowingToolbar = computed(() => !!toolbarSlot);
|
|
119
90
|
// Styles
|
|
120
91
|
const sidebarStyle = computed(() => ({
|
|
121
|
-
width: localWidth.value + 'px'
|
|
92
|
+
width: (isCollapsed.value ? 16 : localWidth.value) + 'px'
|
|
122
93
|
}));
|
|
123
|
-
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot
|
|
94
|
+
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot]);
|
|
95
|
+
const sidebarStyles = computed(() => [...SidebarBar, ...SidebarSides[props.side]]);
|
|
96
|
+
const toolbarStyles = computed(() => [...SidebarToolbar, ...(props.collapsible ? CollapsibleSidebarToolbar : []), ...SidebarToolbarSides[props.side]]);
|
|
124
97
|
const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
|
|
98
|
+
const collapsibleButtonStyles = computed(() => [...SidebarCollapseButton, ...SidebarCollapseButtonSides[props.side]]);
|
|
125
99
|
const mainStyles = computed(() => [...SidebarMain]);
|
|
126
100
|
const headerStyles = computed(() => [...SidebarHeader]);
|
|
127
101
|
const contentStyles = computed(() => [...SidebarContent]);
|
|
@@ -147,8 +121,15 @@ var script = defineComponent({
|
|
|
147
121
|
isResizing.value = false;
|
|
148
122
|
}
|
|
149
123
|
});
|
|
124
|
+
// Methods
|
|
125
|
+
function open() {
|
|
126
|
+
isCollapsed.value = false;
|
|
127
|
+
}
|
|
128
|
+
function close() {
|
|
129
|
+
isCollapsed.value = true;
|
|
130
|
+
}
|
|
150
131
|
const {
|
|
151
|
-
width:
|
|
132
|
+
width: containerWidth
|
|
152
133
|
} = useElementBounding(parentContainer);
|
|
153
134
|
watch(() => props.width, newValue => {
|
|
154
135
|
if (newValue !== localWidth.value) {
|
|
@@ -158,24 +139,38 @@ var script = defineComponent({
|
|
|
158
139
|
watch(() => props.minimumWidth, newMinimum => {
|
|
159
140
|
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
160
141
|
});
|
|
142
|
+
watch(() => props.maximumWidth, newMaximum => {
|
|
143
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
144
|
+
});
|
|
145
|
+
watch(containerWidth, newMaximum => {
|
|
146
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
147
|
+
});
|
|
161
148
|
watch(maximumWidth, newMaximum => {
|
|
162
149
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
163
150
|
});
|
|
164
151
|
watch(localWidth, val => emit('change:width', val));
|
|
152
|
+
watch(isCollapsed, val => emit(val ? 'close' : 'open'));
|
|
165
153
|
return {
|
|
166
154
|
root,
|
|
167
155
|
resizeBar,
|
|
168
156
|
isResizing,
|
|
157
|
+
isCollapsed,
|
|
169
158
|
localWidth,
|
|
159
|
+
isShowingToolbar,
|
|
170
160
|
sidebarStyle,
|
|
171
161
|
rootStyles,
|
|
162
|
+
sidebarStyles,
|
|
163
|
+
toolbarStyles,
|
|
172
164
|
resizeStyles,
|
|
165
|
+
collapsibleButtonStyles,
|
|
173
166
|
mainStyles,
|
|
174
167
|
headerStyles,
|
|
175
168
|
contentStyles,
|
|
176
|
-
footerStyles
|
|
169
|
+
footerStyles,
|
|
170
|
+
open,
|
|
171
|
+
close
|
|
177
172
|
};
|
|
178
173
|
}
|
|
179
174
|
});
|
|
180
175
|
|
|
181
|
-
export {
|
|
176
|
+
export { script as s };
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import { defineComponent, ref, computed } from 'vue';
|
|
3
|
+
import './OrIconButton-e0566ecf.js';
|
|
4
|
+
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js';
|
|
5
|
+
|
|
6
|
+
var OrSidebarPlacement;
|
|
7
|
+
(function (OrSidebarPlacement) {
|
|
8
|
+
OrSidebarPlacement["left"] = "left";
|
|
9
|
+
OrSidebarPlacement["right"] = "right";
|
|
10
|
+
})(OrSidebarPlacement || (OrSidebarPlacement = {}));
|
|
11
|
+
|
|
12
|
+
const SidebarRoot = [
|
|
13
|
+
// Position
|
|
14
|
+
'relative',
|
|
15
|
+
// Layout
|
|
16
|
+
'flex', 'flex-row', 'shrink-0',
|
|
17
|
+
// Box
|
|
18
|
+
'min-w-0', 'h-auto', 'p-0',
|
|
19
|
+
// Theme
|
|
20
|
+
'bg-background', 'dark:bg-background-dark'];
|
|
21
|
+
const SidebarBar = [
|
|
22
|
+
// Position
|
|
23
|
+
'relative',
|
|
24
|
+
// Layout
|
|
25
|
+
'flex', 'flex-col', 'shrink-0', 'grow',
|
|
26
|
+
// Box
|
|
27
|
+
'min-h-0', 'p-0',
|
|
28
|
+
// Theme
|
|
29
|
+
'text-on-background', 'dark:text-on-background-dark',
|
|
30
|
+
// Transition
|
|
31
|
+
'transition-[width]'];
|
|
32
|
+
const SidebarToolbar = [
|
|
33
|
+
// Position
|
|
34
|
+
'relative',
|
|
35
|
+
// Layout
|
|
36
|
+
'flex', 'flex-col', 'shrink-0', 'grow', 'overflow-auto', 'items-center',
|
|
37
|
+
// Sizing
|
|
38
|
+
'gap-md',
|
|
39
|
+
// Box
|
|
40
|
+
'min-h-0', 'min-w-xl', 'p-[6px]', 'py-md+',
|
|
41
|
+
// Theme
|
|
42
|
+
'text-outline', 'dark:text-outline-dark'];
|
|
43
|
+
const CollapsibleSidebarToolbar = ['pt-[56px]'];
|
|
44
|
+
const SidebarSides = {
|
|
45
|
+
[OrSidebarPlacement.left]: [
|
|
46
|
+
// Borders
|
|
47
|
+
'border-r-[1px]', 'border-r-solid', 'border-r-outline-variant dark:border-r-outline-variant-dark'],
|
|
48
|
+
[OrSidebarPlacement.right]: [
|
|
49
|
+
// Borders
|
|
50
|
+
'border-l-[1px]', 'border-l-solid', 'border-l-outline-variant dark:border-l-outline-variant-dark']
|
|
51
|
+
};
|
|
52
|
+
const SidebarToolbarSides = {
|
|
53
|
+
[OrSidebarPlacement.left]: [
|
|
54
|
+
// Borders
|
|
55
|
+
'border-r-[1px]', 'border-r-solid', 'border-r-outline-variant dark:border-r-outline-variant-dark'],
|
|
56
|
+
[OrSidebarPlacement.right]: [
|
|
57
|
+
// Borders
|
|
58
|
+
'border-l-[1px]', 'border-l-solid', 'border-l-outline-variant dark:border-l-outline-variant-dark']
|
|
59
|
+
};
|
|
60
|
+
const SidebarResize = [
|
|
61
|
+
// Position
|
|
62
|
+
'absolute', 'inset-y-none', 'z-[1]',
|
|
63
|
+
// Box
|
|
64
|
+
'w-sm+', 'h-[100%]',
|
|
65
|
+
// Cursor
|
|
66
|
+
'cursor-ew-resize'];
|
|
67
|
+
const SidebarResizeSides = {
|
|
68
|
+
[OrSidebarPlacement.left]: [
|
|
69
|
+
// Position
|
|
70
|
+
'-right-[1px]',
|
|
71
|
+
// Borders
|
|
72
|
+
'hover:border-r-2', 'hover:border-r-primary-hover hover:dark:border-r-primary-hover-dark',
|
|
73
|
+
// Transition
|
|
74
|
+
'transition-[border-right]'],
|
|
75
|
+
[OrSidebarPlacement.right]: [
|
|
76
|
+
// Position
|
|
77
|
+
'-left-[1px]',
|
|
78
|
+
// Borders
|
|
79
|
+
'hover:border-l-2', 'hover:border-l-primary-hover hover:dark:border-l-primary-hover-dark',
|
|
80
|
+
// Transition
|
|
81
|
+
'transition-[border-left]']
|
|
82
|
+
};
|
|
83
|
+
const SidebarCollapseButton = [
|
|
84
|
+
// Position
|
|
85
|
+
'absolute', 'top-md', 'inset-y-none', 'z-[1]'];
|
|
86
|
+
const SidebarCollapseButtonSides = {
|
|
87
|
+
[OrSidebarPlacement.left]: [
|
|
88
|
+
// Position
|
|
89
|
+
'-right-[12px]'],
|
|
90
|
+
[OrSidebarPlacement.right]: [
|
|
91
|
+
// Position
|
|
92
|
+
'-left-[12px]']
|
|
93
|
+
};
|
|
94
|
+
const SidebarResizingSides = {
|
|
95
|
+
[OrSidebarPlacement.left]: [
|
|
96
|
+
// Borders
|
|
97
|
+
'border-r-2', 'border-r-primary-hover dark:border-r-primary-hover-dark'],
|
|
98
|
+
[OrSidebarPlacement.right]: [
|
|
99
|
+
// Borders
|
|
100
|
+
'border-l-2', 'border-l-primary-hover dark:border-l-primary-hover-dark']
|
|
101
|
+
};
|
|
102
|
+
const SidebarMain = [
|
|
103
|
+
// Layout
|
|
104
|
+
'flex', 'flex-col', 'grow', 'overflow-x-hidden',
|
|
105
|
+
// Box
|
|
106
|
+
'min-h-0'];
|
|
107
|
+
const SidebarHeader = [
|
|
108
|
+
// Layout
|
|
109
|
+
'shrink-0', 'overflow-hidden',
|
|
110
|
+
// Sizing
|
|
111
|
+
'p-md',
|
|
112
|
+
// Typography
|
|
113
|
+
'typography-headline-2', 'whitespace-nowrap', 'text-ellipsis'];
|
|
114
|
+
const SidebarContent = [
|
|
115
|
+
// Layout
|
|
116
|
+
'grow', 'overflow-auto',
|
|
117
|
+
// Sizing
|
|
118
|
+
'p-md'];
|
|
119
|
+
const SidebarFooter = [
|
|
120
|
+
// Layout
|
|
121
|
+
'shrink-0', 'overflow-x-hidden',
|
|
122
|
+
// Sizing
|
|
123
|
+
'p-md',
|
|
124
|
+
// Borders
|
|
125
|
+
'border-t-[1px]', 'border-t-solid', 'border-t-outline-variant dark:border-t-outline-variant-dark'];
|
|
126
|
+
const CollapseButtonContainer = [
|
|
127
|
+
// Box
|
|
128
|
+
'w-[24px]', 'h-[24px]', 'rounded-full',
|
|
129
|
+
// Theme
|
|
130
|
+
'text-primary dark:text-primary-dark', 'bg-background dark:bg-background-dark'];
|
|
131
|
+
const CollapseButton = [
|
|
132
|
+
// Box
|
|
133
|
+
'w-[24px]', 'h-[24px]',
|
|
134
|
+
// Typography
|
|
135
|
+
'!text-[16px]',
|
|
136
|
+
// Borders
|
|
137
|
+
'!border-[1px]', '!border-solid',
|
|
138
|
+
// Theme
|
|
139
|
+
'!text-primary dark:!text-primary-dark', '!bg-background dark:!bg-background-dark', '!border-outline-variant dark:!border-outline-variant-dark', '!outline-none',
|
|
140
|
+
// Theme (hover)
|
|
141
|
+
'hover:!text-primary hover:dark:!text-primary-dark', 'hover:!bg-primary-opacity-0-08 dark:hover:!bg-primary-opacity-0-08-dark', 'hover:!border-outline dark:hover:!border-outline-dark',
|
|
142
|
+
// Theme (active)
|
|
143
|
+
'active:!text-primary active:dark:!text-primary-dark', 'active:!bg-primary-opacity-0-12 dark:active:!bg-primary-opacity-0-12-dark', 'active:!border-primary dark:active:!border-primary-dark',
|
|
144
|
+
// Theme (focus)
|
|
145
|
+
'focus:!text-primary focus:dark:!text-primary-dark', 'focus:!bg-primary-opacity-0-12 dark:focus:!bg-primary-opacity-0-12-dark', 'focus:!border-outline dark:focus:!border-outline-dark',
|
|
146
|
+
// Theme (disabled)
|
|
147
|
+
'disabled:!text-on-disabled disabled:dark:!text-on-disabled-dark', 'disabled:!bg-background disabled:dark:!bg-background-dark', 'disabled:!border-outline-variant disabled:dark:!border-outline-variant-dark'];
|
|
148
|
+
|
|
149
|
+
var script = defineComponent({
|
|
150
|
+
name: 'OrSidebarCollapseButton',
|
|
151
|
+
components: {
|
|
152
|
+
OrIconButton: script$1
|
|
153
|
+
},
|
|
154
|
+
props: {
|
|
155
|
+
/**
|
|
156
|
+
* Must be `true` if sidebar is collapsed.
|
|
157
|
+
*/
|
|
158
|
+
modelValue: {
|
|
159
|
+
type: Boolean,
|
|
160
|
+
default: false
|
|
161
|
+
},
|
|
162
|
+
side: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: OrSidebarPlacement.right,
|
|
165
|
+
validator: value => _.includes(_.values(OrSidebarPlacement), value)
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
emits: ['update:modelValue'],
|
|
169
|
+
expose: ['root'],
|
|
170
|
+
setup(props) {
|
|
171
|
+
// Refs
|
|
172
|
+
const root = ref();
|
|
173
|
+
const rootStyles = computed(() => ['or-sidebar-collapse-button', ...CollapseButtonContainer]);
|
|
174
|
+
const buttonStyles = computed(() => [...CollapseButton]);
|
|
175
|
+
const icon = computed(() => props.side === OrSidebarPlacement.left !== props.modelValue ? 'keyboard_arrow_left' : 'keyboard_arrow_right');
|
|
176
|
+
return {
|
|
177
|
+
root,
|
|
178
|
+
rootStyles,
|
|
179
|
+
buttonStyles,
|
|
180
|
+
icon
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
export { CollapsibleSidebarToolbar as C, OrSidebarPlacement as O, SidebarRoot as S, SidebarBar as a, SidebarSides as b, SidebarToolbar as c, SidebarToolbarSides as d, SidebarResize as e, SidebarResizeSides as f, SidebarResizingSides as g, SidebarCollapseButton as h, SidebarCollapseButtonSides as i, SidebarMain as j, SidebarHeader as k, SidebarContent as l, SidebarFooter as m, script as s };
|
|
@@ -71,7 +71,8 @@ export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegme
|
|
|
71
71
|
export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-26c0a70a.js';
|
|
72
72
|
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-7fd5e2f0.js';
|
|
73
73
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
|
|
74
|
-
export {
|
|
74
|
+
export { s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-a150808b.js';
|
|
75
|
+
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton.vue_vue_type_script_lang-d3e3cd4f.js';
|
|
75
76
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js';
|
|
76
77
|
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText.vue_vue_type_script_lang-efcfbe21.js';
|
|
77
78
|
export { s as OrSlider } from '../OrSlider.vue_vue_type_script_lang-d47ff040.js';
|
|
@@ -10,7 +10,17 @@ export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue
|
|
|
10
10
|
} | string[], {} & {}, {
|
|
11
11
|
[x: number]: string;
|
|
12
12
|
} | {}, true>)>;
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const WithCustomWidthConstraints: 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 NotDraggable: 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 Collapsible: 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
24
|
[x: string]: ((...args: any[]) => any) | null;
|
|
15
25
|
} | string[], {} & {}, {
|
|
16
26
|
[x: number]: string;
|
|
@@ -30,8 +40,33 @@ export declare const WithFooter: StoryFn<import("vue").ComponentOptions<import("
|
|
|
30
40
|
} | string[], {} & {}, {
|
|
31
41
|
[x: number]: string;
|
|
32
42
|
} | {}, true>)>;
|
|
43
|
+
export declare const WithToolbar: 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, {
|
|
44
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
45
|
+
} | string[], {} & {}, {
|
|
46
|
+
[x: number]: string;
|
|
47
|
+
} | {}, true>)>;
|
|
48
|
+
export declare const CollapsibleWithToolbar: 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, {
|
|
49
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
50
|
+
} | string[], {} & {}, {
|
|
51
|
+
[x: number]: string;
|
|
52
|
+
} | {}, true>)>;
|
|
53
|
+
export declare const WithTabs: 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, {
|
|
54
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
55
|
+
} | string[], {} & {}, {
|
|
56
|
+
[x: number]: string;
|
|
57
|
+
} | {}, true>)>;
|
|
33
58
|
export declare const LeftSidebar: 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, {
|
|
34
59
|
[x: string]: ((...args: any[]) => any) | null;
|
|
35
60
|
} | string[], {} & {}, {
|
|
36
61
|
[x: number]: string;
|
|
37
62
|
} | {}, true>)>;
|
|
63
|
+
export declare const WithLeftToolbar: 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, {
|
|
64
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
65
|
+
} | string[], {} & {}, {
|
|
66
|
+
[x: number]: string;
|
|
67
|
+
} | {}, true>)>;
|
|
68
|
+
export declare const CollapsibleWithWithLeftToolbar: 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, {
|
|
69
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
70
|
+
} | string[], {} & {}, {
|
|
71
|
+
[x: number]: string;
|
|
72
|
+
} | {}, true>)>;
|
|
@@ -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,4 +1,18 @@
|
|
|
1
|
-
export { O as OrSidebarPlacement
|
|
2
|
-
|
|
1
|
+
export { O as OrSidebarPlacement } from '../../OrSidebarCollapseButton.vue_vue_type_script_lang-d3e3cd4f.js';
|
|
2
|
+
export { s as OrSidebarV3 } from '../../OrSidebar.vue_vue_type_script_lang-a150808b.js';
|
|
3
3
|
import 'lodash';
|
|
4
4
|
import 'vue';
|
|
5
|
+
import '../../OrIconButton-e0566ecf.js';
|
|
6
|
+
import '../../OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js';
|
|
7
|
+
import '../../OrIcon-1a5c9091.js';
|
|
8
|
+
import '../../OrIcon.vue_vue_type_script_lang-bdbaad94.js';
|
|
9
|
+
import '../../OrTooltip.vue_vue_type_script_lang-bf9935ef.js';
|
|
10
|
+
import '@vueuse/core';
|
|
11
|
+
import '../../OrPopover-1a488f88.js';
|
|
12
|
+
import '../../OrPopover.vue_vue_type_script_lang-b1102c1a.js';
|
|
13
|
+
import '../../floating-ui.dom.esm-83eba816.js';
|
|
14
|
+
import '../../OrBottomSheet.vue_vue_type_script_lang-bdef5ca2.js';
|
|
15
|
+
import '../../OrOverlay.vue_vue_type_script_lang-7edd25f6.js';
|
|
16
|
+
import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
|
|
17
|
+
import '../../useElevation-c8d5d3ba.js';
|
|
18
|
+
import '../../useResponsive-9d397e2a.js';
|
package/dist/bundled/v3/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>)>;
|