@onereach/ui-components 2.72.2-beta.2265.0 → 2.72.2-beta.2267.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrCardCollection-06ecb8e1.js → OrCardCollection-4ac89ea5.js} +1 -1
- package/dist/bundled/v2/{OrSearch-bb87b34c.js → OrSearch-09fd004c.js} +2 -1
- package/dist/bundled/v2/{OrSidebar-468106b9.js → OrSidebar-c95ef614.js} +34 -155
- package/dist/bundled/v2/components/index.js +3 -4
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v2/index.js +4 -5
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-e2980d04.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-321907ec.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +181 -0
- package/dist/bundled/v3/components/index.js +3 -4
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +2 -16
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v3/index.js +12 -29
- package/dist/esm/v2/{OrCardCollection-251ab033.js → OrCardCollection-5a9eda35.js} +1 -1
- package/dist/esm/v2/{OrSearch-f42d588d.js → OrSearch-7411388b.js} +2 -1
- package/dist/esm/v2/{OrSidebar-f7fc1179.js → OrSidebar-fabc7bc9.js} +34 -155
- package/dist/esm/v2/components/index.js +3 -4
- package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v2/index.js +3 -4
- package/dist/esm/v3/{OrCardCollection-8b8e3745.js → OrCardCollection-e4fde5b4.js} +1 -1
- package/dist/esm/v3/{OrSearch-4c5c44f2.js → OrSearch-5406bf03.js} +2 -1
- package/dist/esm/v3/OrSidebar-a62972f5.js +206 -0
- package/dist/esm/v3/components/index.js +3 -4
- package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -12
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v3/index.js +3 -4
- package/package.json +1 -1
- package/src/components/or-search-v3/OrSearch.vue +2 -1
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -6
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +12 -253
- package/src/components/or-sidebar-v3/OrSidebar.vue +23 -130
- package/src/components/or-sidebar-v3/styles.ts +9 -114
- package/dist/bundled/v2/OrSidebarCollapseButton-1161aef8.js +0 -121
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +0 -18
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -18
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-a68e0381.js +0 -291
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-31f02a78.js +0 -71
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +0 -17
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -17
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/dist/esm/v2/OrSidebarCollapseButton-3b28945e.js +0 -119
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +0 -16
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -16
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/dist/esm/v3/OrSidebar-dbeffb9d.js +0 -313
- package/dist/esm/v3/OrSidebarCollapseButton-5478da75.js +0 -90
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +0 -15
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -15
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/src/components/or-sidebar-v3/partials/index.ts +0 -1
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +0 -48
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +0 -74
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +0 -1
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +0 -50
|
@@ -7,7 +7,7 @@ import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-df35fd76.js';
|
|
|
7
7
|
import './OrMenuItem-807e2a49.js';
|
|
8
8
|
import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-2400ec2a.js';
|
|
9
9
|
import './OrIcon-1a5c9091.js';
|
|
10
|
-
import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-
|
|
10
|
+
import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-c054c8db.js';
|
|
11
11
|
import { s as script$4 } from './OrButton.vue_vue_type_script_lang-3b1e442b.js';
|
|
12
12
|
import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-bdbaad94.js';
|
|
13
13
|
|
|
@@ -47,11 +47,12 @@ var script = defineComponent({
|
|
|
47
47
|
// State
|
|
48
48
|
const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
|
|
49
49
|
// Events
|
|
50
|
-
debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
|
|
50
|
+
debouncedWatch(localModelValue, () => localModelValue.value.length > 0 && context.emit('search', localModelValue.value), {
|
|
51
51
|
debounce: props.debounce
|
|
52
52
|
});
|
|
53
53
|
watch(localModelValue, (val, beforeVal) => {
|
|
54
54
|
if (val.length === 0 && beforeVal.length > 0) {
|
|
55
|
+
context.emit('search');
|
|
55
56
|
context.emit('clear');
|
|
56
57
|
}
|
|
57
58
|
});
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { defineComponent, ref, computed, watch } from 'vue';
|
|
4
|
+
|
|
5
|
+
var OrSidebarPlacement;
|
|
6
|
+
(function (OrSidebarPlacement) {
|
|
7
|
+
OrSidebarPlacement["left"] = "left";
|
|
8
|
+
OrSidebarPlacement["right"] = "right";
|
|
9
|
+
})(OrSidebarPlacement || (OrSidebarPlacement = {}));
|
|
10
|
+
|
|
11
|
+
const SidebarRoot = [
|
|
12
|
+
// Position
|
|
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'];
|
|
75
|
+
|
|
76
|
+
var script = defineComponent({
|
|
77
|
+
name: 'OrSidebar',
|
|
78
|
+
props: {
|
|
79
|
+
width: {
|
|
80
|
+
type: Number,
|
|
81
|
+
required: false,
|
|
82
|
+
default: 0,
|
|
83
|
+
validator: value => _.isNumber(value) && value >= 0
|
|
84
|
+
},
|
|
85
|
+
minimumWidth: {
|
|
86
|
+
type: Number,
|
|
87
|
+
required: false,
|
|
88
|
+
default: 350,
|
|
89
|
+
validator: value => _.isNumber(value) && value >= 0
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* User may put the component on the right or the left side of a container.
|
|
93
|
+
* This property mirrors the resizing behavior (drag direction) and styling (horizontal border) of the sidebar.
|
|
94
|
+
*
|
|
95
|
+
* Note: the property doesn't reposition the component in the parent container.
|
|
96
|
+
* @values left, right
|
|
97
|
+
*/
|
|
98
|
+
side: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: OrSidebarPlacement.right,
|
|
101
|
+
validator: value => _.includes(_.values(OrSidebarPlacement), value)
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
emits: ['change:width'],
|
|
105
|
+
setup(props, {
|
|
106
|
+
emit
|
|
107
|
+
}) {
|
|
108
|
+
// Refs
|
|
109
|
+
const root = ref();
|
|
110
|
+
const resizeBar = ref(null);
|
|
111
|
+
const parentContainer = computed(() => {
|
|
112
|
+
var _a;
|
|
113
|
+
return (_a = root.value) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
114
|
+
});
|
|
115
|
+
// State
|
|
116
|
+
const startPositionX = ref(0);
|
|
117
|
+
const isResizing = ref(false);
|
|
118
|
+
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
119
|
+
// Styles
|
|
120
|
+
const sidebarStyle = computed(() => ({
|
|
121
|
+
width: localWidth.value + 'px'
|
|
122
|
+
}));
|
|
123
|
+
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot, ...SidebarRootSides[props.side]]);
|
|
124
|
+
const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
|
|
125
|
+
const mainStyles = computed(() => [...SidebarMain]);
|
|
126
|
+
const headerStyles = computed(() => [...SidebarHeader]);
|
|
127
|
+
const contentStyles = computed(() => [...SidebarContent]);
|
|
128
|
+
const footerStyles = computed(() => [...SidebarFooter]);
|
|
129
|
+
// Effects
|
|
130
|
+
useDraggable(resizeBar, {
|
|
131
|
+
preventDefault: true,
|
|
132
|
+
onStart: (position, event) => {
|
|
133
|
+
document.body.style.cursor = 'ew-resize';
|
|
134
|
+
document.body.style.userSelect = 'none';
|
|
135
|
+
startPositionX.value = event.x;
|
|
136
|
+
isResizing.value = true;
|
|
137
|
+
},
|
|
138
|
+
onMove: position => {
|
|
139
|
+
const delta = (position.x - startPositionX.value) * (props.side === OrSidebarPlacement.left ? -1 : 1);
|
|
140
|
+
const newWidth = localWidth.value - delta;
|
|
141
|
+
localWidth.value = newWidth > maximumWidth.value ? maximumWidth.value : newWidth < props.minimumWidth ? props.minimumWidth : newWidth;
|
|
142
|
+
startPositionX.value = position.x;
|
|
143
|
+
},
|
|
144
|
+
onEnd: () => {
|
|
145
|
+
document.body.style.cursor = '';
|
|
146
|
+
document.body.style.userSelect = '';
|
|
147
|
+
isResizing.value = false;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
const {
|
|
151
|
+
width: maximumWidth
|
|
152
|
+
} = useElementBounding(parentContainer);
|
|
153
|
+
watch(() => props.width, newValue => {
|
|
154
|
+
if (newValue !== localWidth.value) {
|
|
155
|
+
localWidth.value = newValue > maximumWidth.value ? maximumWidth.value : newValue < props.minimumWidth ? props.minimumWidth : newValue;
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
watch(() => props.minimumWidth, newMinimum => {
|
|
159
|
+
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
160
|
+
});
|
|
161
|
+
watch(maximumWidth, newMaximum => {
|
|
162
|
+
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
163
|
+
});
|
|
164
|
+
watch(localWidth, val => emit('change:width', val));
|
|
165
|
+
return {
|
|
166
|
+
root,
|
|
167
|
+
resizeBar,
|
|
168
|
+
isResizing,
|
|
169
|
+
localWidth,
|
|
170
|
+
sidebarStyle,
|
|
171
|
+
rootStyles,
|
|
172
|
+
resizeStyles,
|
|
173
|
+
mainStyles,
|
|
174
|
+
headerStyles,
|
|
175
|
+
contentStyles,
|
|
176
|
+
footerStyles
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export { OrSidebarPlacement as O, script as s };
|
|
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
|
|
|
8
8
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-3b1e442b.js';
|
|
9
9
|
export { s as OrCard } from '../OrCard.vue_vue_type_script_lang-90ba001b.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection.vue_vue_type_script_lang-cd84f344.js';
|
|
11
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-
|
|
11
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-f76c3264.js';
|
|
12
12
|
export { s as OrCardV3 } from '../OrCard.vue_vue_type_script_lang-b6685a34.js';
|
|
13
13
|
export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem.vue_vue_type_script_lang-ad286afc.js';
|
|
14
14
|
export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-d8a66818.js';
|
|
@@ -66,13 +66,12 @@ export { s as OrRadio } from '../OrRadio.vue_vue_type_script_lang-c956b54b.js';
|
|
|
66
66
|
export { s as OrRadioGroup } from '../OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js';
|
|
67
67
|
export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-8dc0720c.js';
|
|
68
68
|
export { s as OrSearch } from '../OrSearch.vue_vue_type_script_lang-5356fa79.js';
|
|
69
|
-
export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-
|
|
69
|
+
export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-c054c8db.js';
|
|
70
70
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-38a00b68.js';
|
|
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 { s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-
|
|
75
|
-
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton.vue_vue_type_script_lang-31f02a78.js';
|
|
74
|
+
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-ce0b152c.js';
|
|
76
75
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js';
|
|
77
76
|
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText.vue_vue_type_script_lang-efcfbe21.js';
|
|
78
77
|
export { s as OrSlider } from '../OrSlider.vue_vue_type_script_lang-d47ff040.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection.vue_vue_type_script_lang-
|
|
1
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection.vue_vue_type_script_lang-f76c3264.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '../../OrIconButton-e0566ecf.js';
|
|
4
4
|
import '../../OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js';
|
|
@@ -22,7 +22,7 @@ import '../../OrMenu-6d7abe97.js';
|
|
|
22
22
|
import '../../OrMenu.vue_vue_type_script_lang-df35fd76.js';
|
|
23
23
|
import '../../OrMenuItem-807e2a49.js';
|
|
24
24
|
import '../../OrMenuItem.vue_vue_type_script_lang-2400ec2a.js';
|
|
25
|
-
import '../../OrSearch.vue_vue_type_script_lang-
|
|
25
|
+
import '../../OrSearch.vue_vue_type_script_lang-c054c8db.js';
|
|
26
26
|
import '../../OrInput-dcf2606e.js';
|
|
27
27
|
import '../../OrInput.vue_vue_type_script_lang-27220623.js';
|
|
28
28
|
import '../../OrHint-5d5e4d99.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSearchV3 } from '../../OrSearch.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrSearchV3 } from '../../OrSearch.vue_vue_type_script_lang-c054c8db.js';
|
|
2
2
|
export { a as SearchSize } from '../../OrInputBox.vue_vue_type_script_lang-47d98e81.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue';
|
|
@@ -10,17 +10,7 @@ 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
|
|
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, {
|
|
13
|
+
export declare const WithMinimumWidth: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
24
14
|
[x: string]: ((...args: any[]) => any) | null;
|
|
25
15
|
} | string[], {} & {}, {
|
|
26
16
|
[x: number]: string;
|
|
@@ -40,33 +30,8 @@ export declare const WithFooter: StoryFn<import("vue").ComponentOptions<import("
|
|
|
40
30
|
} | string[], {} & {}, {
|
|
41
31
|
[x: number]: string;
|
|
42
32
|
} | {}, 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>)>;
|
|
58
33
|
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, {
|
|
59
34
|
[x: string]: ((...args: any[]) => any) | null;
|
|
60
35
|
} | string[], {} & {}, {
|
|
61
36
|
[x: number]: string;
|
|
62
37
|
} | {}, 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,36 +4,26 @@ 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>;
|
|
8
7
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
9
|
-
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
10
8
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
11
9
|
width: string;
|
|
12
10
|
}>;
|
|
13
11
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
14
|
-
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
15
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
16
12
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
17
|
-
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
18
13
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
14
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
15
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
21
16
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
22
|
-
open: () => void;
|
|
23
|
-
close: () => void;
|
|
24
17
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
25
18
|
width: {
|
|
26
19
|
type: NumberConstructor;
|
|
20
|
+
required: false;
|
|
27
21
|
default: number;
|
|
28
22
|
validator: (value?: any) => boolean;
|
|
29
23
|
};
|
|
30
24
|
minimumWidth: {
|
|
31
25
|
type: NumberConstructor;
|
|
32
|
-
|
|
33
|
-
validator: (value?: any) => boolean;
|
|
34
|
-
};
|
|
35
|
-
maximumWidth: {
|
|
36
|
-
type: NumberConstructor;
|
|
26
|
+
required: false;
|
|
37
27
|
default: number;
|
|
38
28
|
validator: (value?: any) => boolean;
|
|
39
29
|
};
|
|
@@ -49,27 +39,16 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
49
39
|
default: OrSidebarPlacement;
|
|
50
40
|
validator: (value?: any) => boolean;
|
|
51
41
|
};
|
|
52
|
-
draggable: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
collapsible: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
42
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
61
43
|
width: {
|
|
62
44
|
type: NumberConstructor;
|
|
45
|
+
required: false;
|
|
63
46
|
default: number;
|
|
64
47
|
validator: (value?: any) => boolean;
|
|
65
48
|
};
|
|
66
49
|
minimumWidth: {
|
|
67
50
|
type: NumberConstructor;
|
|
68
|
-
|
|
69
|
-
validator: (value?: any) => boolean;
|
|
70
|
-
};
|
|
71
|
-
maximumWidth: {
|
|
72
|
-
type: NumberConstructor;
|
|
51
|
+
required: false;
|
|
73
52
|
default: number;
|
|
74
53
|
validator: (value?: any) => boolean;
|
|
75
54
|
};
|
|
@@ -85,59 +64,35 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
85
64
|
default: OrSidebarPlacement;
|
|
86
65
|
validator: (value?: any) => boolean;
|
|
87
66
|
};
|
|
88
|
-
draggable: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
collapsible: {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
67
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
97
68
|
width: number;
|
|
98
69
|
minimumWidth: number;
|
|
99
|
-
maximumWidth: number;
|
|
100
70
|
side: OrSidebarPlacement;
|
|
101
|
-
draggable: boolean;
|
|
102
|
-
collapsible: boolean;
|
|
103
71
|
} & {} & {
|
|
104
72
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
105
73
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
106
74
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
107
75
|
resizeBar: import("@vue/composition-api").Ref<HTMLElement | null>;
|
|
108
76
|
isResizing: import("@vue/composition-api").Ref<boolean>;
|
|
109
|
-
isCollapsed: import("@vue/composition-api").Ref<boolean>;
|
|
110
77
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
111
|
-
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
112
78
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
113
79
|
width: string;
|
|
114
80
|
}>;
|
|
115
81
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
116
|
-
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
117
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
118
82
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
119
|
-
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
120
83
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
121
84
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
122
85
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
123
86
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
|
-
open: () => void;
|
|
125
|
-
close: () => void;
|
|
126
87
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
127
88
|
width: number;
|
|
128
89
|
minimumWidth: number;
|
|
129
|
-
maximumWidth: number;
|
|
130
90
|
side: OrSidebarPlacement;
|
|
131
|
-
draggable: boolean;
|
|
132
|
-
collapsible: boolean;
|
|
133
91
|
} & {} & {
|
|
134
92
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
135
93
|
}, {
|
|
136
94
|
width: number;
|
|
137
95
|
minimumWidth: number;
|
|
138
|
-
maximumWidth: number;
|
|
139
96
|
side: OrSidebarPlacement;
|
|
140
|
-
draggable: boolean;
|
|
141
|
-
collapsible: boolean;
|
|
142
97
|
}, true>);
|
|
143
98
|
export default _default;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
export { O as OrSidebarPlacement } from '../../
|
|
2
|
-
|
|
1
|
+
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../../OrSidebar.vue_vue_type_script_lang-ce0b152c.js';
|
|
2
|
+
import '@vueuse/core';
|
|
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';
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { OrSidebarPlacement } from './props';
|
|
2
2
|
export declare const SidebarRoot: string[];
|
|
3
|
-
export declare const
|
|
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[]>;
|
|
3
|
+
export declare const SidebarRootSides: Record<OrSidebarPlacement, string[]>;
|
|
8
4
|
export declare const SidebarResize: string[];
|
|
9
5
|
export declare const SidebarResizeSides: Record<OrSidebarPlacement, string[]>;
|
|
10
|
-
export declare const SidebarCollapseButton: string[];
|
|
11
|
-
export declare const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]>;
|
|
12
6
|
export declare const SidebarResizingSides: Record<OrSidebarPlacement, string[]>;
|
|
13
7
|
export declare const SidebarMain: string[];
|
|
14
8
|
export declare const SidebarHeader: string[];
|