@onereach/ui-components-vue2 26.0.0 → 26.0.1-beta.5837.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.
|
@@ -194,6 +194,25 @@ const ResizeablePanelToolbarPlacements = {
|
|
|
194
194
|
// Theme
|
|
195
195
|
'!border-r-0', '!border-y-0']
|
|
196
196
|
};
|
|
197
|
+
const ResizeablePanelCollapsedContent = [
|
|
198
|
+
// Layout
|
|
199
|
+
'layout-column', 'shrink-0',
|
|
200
|
+
// Overflow
|
|
201
|
+
'overflow-auto',
|
|
202
|
+
// Spacing
|
|
203
|
+
'px-md', 'py-md', 'gap-md'];
|
|
204
|
+
const ResizeablePanelCollapsedContentPaddings = {
|
|
205
|
+
[ResizeablePanelPadding.L]: [
|
|
206
|
+
// Box
|
|
207
|
+
'px-lg', 'py-lg'],
|
|
208
|
+
[ResizeablePanelPadding.M]: [
|
|
209
|
+
// Box
|
|
210
|
+
'px-md', 'py-md'],
|
|
211
|
+
[ResizeablePanelPadding.S]: [
|
|
212
|
+
// Box
|
|
213
|
+
'px-sm', 'py-sm'],
|
|
214
|
+
[ResizeablePanelPadding.None]: []
|
|
215
|
+
};
|
|
197
216
|
|
|
198
217
|
var script = defineComponent({
|
|
199
218
|
name: 'OrResizeablePanel',
|
|
@@ -247,6 +266,7 @@ var script = defineComponent({
|
|
|
247
266
|
const resizeBarStyles = computed(() => [...ResizeablePanelResizeBar, ...ResizeablePanelResizeBarPlacements[props.placement], ...(!props.resizeable || props.collapsible && state.value === 'closed' ? ['interactivity-none'] : [])]);
|
|
248
267
|
const collapseButtonContainerStyles = computed(() => [...ResizeablePanelCollapseButtonContainer, ...ResizeablePanelCollapseButtonContainerPlacements[props.placement]]);
|
|
249
268
|
const toolbarStyles = computed(() => [...ResizeablePanelToolbar, ...ResizeablePanelToolbarPlacements[props.placement]]);
|
|
269
|
+
const collapsedContentStyles = computed(() => [...ResizeablePanelCollapsedContent, ...ResizeablePanelCollapsedContentPaddings[props.padding]]);
|
|
250
270
|
// State
|
|
251
271
|
const {
|
|
252
272
|
state,
|
|
@@ -362,6 +382,7 @@ var script = defineComponent({
|
|
|
362
382
|
resizeBarStyles,
|
|
363
383
|
collapseButtonContainerStyles,
|
|
364
384
|
toolbarStyles,
|
|
385
|
+
collapsedContentStyles,
|
|
365
386
|
state,
|
|
366
387
|
open,
|
|
367
388
|
close,
|
|
@@ -389,7 +410,9 @@ var __vue_render__ = function () {
|
|
|
389
410
|
style: (_obj = {}, _obj[_vm.currentDirection] = !_vm.collapsible || _vm.state === 'open' ? _vm.currentSize + "px" : 'auto', _obj)
|
|
390
411
|
}, [!_vm.collapsible || _vm.state === 'open' ? [_c('div', {
|
|
391
412
|
class: _vm.contentStyles
|
|
392
|
-
}, [_vm._t("default")], 2)] : [_c('div', {
|
|
413
|
+
}, [_vm._t("default")], 2)] : _vm.collapsible && _vm.state === 'closed' && _vm.$slots.collapsedContent ? [_c('div', {
|
|
414
|
+
class: _vm.collapsedContentStyles
|
|
415
|
+
}, [_vm._t("collapsedContent")], 2)] : [_c('div', {
|
|
393
416
|
class: _vm.contentPlaceholderStyles
|
|
394
417
|
})], _vm._v(" "), _c('div', {
|
|
395
418
|
ref: 'resizeBar',
|
|
@@ -11,3 +11,5 @@ export declare const ResizeablePanelCollapseButtonContainer: string[];
|
|
|
11
11
|
export declare const ResizeablePanelCollapseButtonContainerPlacements: Record<ResizeablePanelPlacement, string[]>;
|
|
12
12
|
export declare const ResizeablePanelToolbar: string[];
|
|
13
13
|
export declare const ResizeablePanelToolbarPlacements: Record<ResizeablePanelPlacement, string[]>;
|
|
14
|
+
export declare const ResizeablePanelCollapsedContent: string[];
|
|
15
|
+
export declare const ResizeablePanelCollapsedContentPaddings: Record<ResizeablePanelPadding, string[]>;
|
|
@@ -176,7 +176,13 @@ var __vue_render__ = function () {
|
|
|
176
176
|
return _vm.$emit('resize', $event);
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
|
-
scopedSlots: _vm._u([
|
|
179
|
+
scopedSlots: _vm._u([_vm.$slots.collapsedContent ? {
|
|
180
|
+
key: "collapsedContent",
|
|
181
|
+
fn: function () {
|
|
182
|
+
return [_vm._t("collapsedContent")];
|
|
183
|
+
},
|
|
184
|
+
proxy: true
|
|
185
|
+
} : null, !!_vm.$slots.toolbar ? {
|
|
180
186
|
key: "toolbar",
|
|
181
187
|
fn: function () {
|
|
182
188
|
return [_vm._t("toolbar")];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "26.0.0",
|
|
3
|
+
"version": "26.0.1-beta.5837.0",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@codemirror/view": "^6",
|
|
41
41
|
"@floating-ui/dom": "1.5.3",
|
|
42
42
|
"@lezer/highlight": "*",
|
|
43
|
-
"@onereach/styles": "^26.0.0",
|
|
44
|
-
"@onereach/ui-components-common": "^26.0.0",
|
|
43
|
+
"@onereach/styles": "^26.0.1-beta.5837.0",
|
|
44
|
+
"@onereach/ui-components-common": "^26.0.1-beta.5837.0",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.0.3",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -102,6 +102,5 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"npmUnpacked": "4.15.2"
|
|
106
|
-
"gitHead": "7922d7073e1788e747b30943260b3ba361fc81c0"
|
|
105
|
+
"npmUnpacked": "4.15.2"
|
|
107
106
|
}
|