@onereach/ui-components 2.71.1-beta.2217.0 → 2.71.1-beta.2220.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.
@@ -38,9 +38,10 @@ const SidebarToolbar = [
38
38
  // Sizing
39
39
  'gap-md',
40
40
  // Box
41
- 'min-h-0', 'min-w-xl', 'p-[6px]', 'pt-[56px]', 'pb-md+',
41
+ 'min-h-0', 'min-w-xl', 'p-[6px]', 'py-md+',
42
42
  // Theme
43
43
  'text-outline', 'dark:text-outline-dark'];
44
+ const CollapsibleSidebarToolbar = ['pt-[56px]'];
44
45
  const SidebarSides = {
45
46
  [OrSidebarPlacement.left]: [
46
47
  // Borders
@@ -301,7 +302,7 @@ var script = defineComponent({
301
302
  }));
302
303
  const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot]);
303
304
  const sidebarStyles = computed(() => [...SidebarBar, ...SidebarSides[props.side]]);
304
- const toolbarStyles = computed(() => [...SidebarToolbar, ...SidebarToolbarSides[props.side]]);
305
+ const toolbarStyles = computed(() => [...SidebarToolbar, ...(props.collapsible ? CollapsibleSidebarToolbar : []), ...SidebarToolbarSides[props.side]]);
305
306
  const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
306
307
  const collapsibleButtonStyles = computed(() => [...SidebarCollapseButton, ...SidebarCollapseButtonSides[props.side]]);
307
308
  const mainStyles = computed(() => [...SidebarMain]);
@@ -70,7 +70,7 @@ export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegme
70
70
  export { _ as OrSelect } from '../OrSelect-dae2b069.js';
71
71
  export { _ as OrSelectV3 } from '../OrSelect-f8837f5d.js';
72
72
  export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-7d6125bb.js';
73
- export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-a6ee22d1.js';
73
+ export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-097a4b55.js';
74
74
  export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-cc94bdc9.js';
75
75
  export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText-950be6a2.js';
76
76
  export { _ as OrSlider } from '../OrSlider-f7b9c7c2.js';
@@ -1,4 +1,4 @@
1
- export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../../OrSidebar-a6ee22d1.js';
1
+ export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../../OrSidebar-097a4b55.js';
2
2
  import '@vueuse/core';
3
3
  import 'lodash';
4
4
  import 'vue-demi';
@@ -2,6 +2,7 @@ import { OrSidebarPlacement } from './props';
2
2
  export declare const SidebarRoot: string[];
3
3
  export declare const SidebarBar: string[];
4
4
  export declare const SidebarToolbar: string[];
5
+ export declare const CollapsibleSidebarToolbar: string[];
5
6
  export declare const SidebarSides: Record<OrSidebarPlacement, string[]>;
6
7
  export declare const SidebarToolbarSides: Record<OrSidebarPlacement, string[]>;
7
8
  export declare const SidebarResize: string[];
@@ -70,7 +70,7 @@ export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmen
70
70
  export { _ as OrSelect } from './OrSelect-dae2b069.js';
71
71
  export { _ as OrSelectV3 } from './OrSelect-f8837f5d.js';
72
72
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-7d6125bb.js';
73
- export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-a6ee22d1.js';
73
+ export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-097a4b55.js';
74
74
  export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-cc94bdc9.js';
75
75
  export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-950be6a2.js';
76
76
  export { _ as OrSlider } from './OrSlider-f7b9c7c2.js';
@@ -38,9 +38,10 @@ const SidebarToolbar = [
38
38
  // Sizing
39
39
  'gap-md',
40
40
  // Box
41
- 'min-h-0', 'min-w-xl', 'p-[6px]', 'pt-[56px]', 'pb-md+',
41
+ 'min-h-0', 'min-w-xl', 'p-[6px]', 'py-md+',
42
42
  // Theme
43
43
  'text-outline', 'dark:text-outline-dark'];
44
+ const CollapsibleSidebarToolbar = ['pt-[56px]'];
44
45
  const SidebarSides = {
45
46
  [OrSidebarPlacement.left]: [
46
47
  // Borders
@@ -272,7 +273,7 @@ var script = defineComponent({
272
273
  }));
273
274
  const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot]);
274
275
  const sidebarStyles = computed(() => [...SidebarBar, ...SidebarSides[props.side]]);
275
- const toolbarStyles = computed(() => [...SidebarToolbar, ...SidebarToolbarSides[props.side]]);
276
+ const toolbarStyles = computed(() => [...SidebarToolbar, ...(props.collapsible ? CollapsibleSidebarToolbar : []), ...SidebarToolbarSides[props.side]]);
276
277
  const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
277
278
  const collapsibleButtonStyles = computed(() => [...SidebarCollapseButton, ...SidebarCollapseButtonSides[props.side]]);
278
279
  const mainStyles = computed(() => [...SidebarMain]);
@@ -65,7 +65,7 @@ export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegme
65
65
  export { s as OrSelect } from '../OrSelect-0821b907.js';
66
66
  export { s as OrSelectV3 } from '../OrSelect-8fbd88bc.js';
67
67
  export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
68
- export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-f2150587.js';
68
+ export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-f6b2050b.js';
69
69
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
70
70
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText-3965ff71.js';
71
71
  export { s as OrSlider } from '../OrSlider-87e2da8c.js';
@@ -1,4 +1,4 @@
1
- export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../../OrSidebar-f2150587.js';
1
+ export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../../OrSidebar-f6b2050b.js';
2
2
  import '@vueuse/core';
3
3
  import 'lodash';
4
4
  import 'vue-demi';
@@ -2,6 +2,7 @@ import { OrSidebarPlacement } from './props';
2
2
  export declare const SidebarRoot: string[];
3
3
  export declare const SidebarBar: string[];
4
4
  export declare const SidebarToolbar: string[];
5
+ export declare const CollapsibleSidebarToolbar: string[];
5
6
  export declare const SidebarSides: Record<OrSidebarPlacement, string[]>;
6
7
  export declare const SidebarToolbarSides: Record<OrSidebarPlacement, string[]>;
7
8
  export declare const SidebarResize: string[];
@@ -65,7 +65,7 @@ export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmen
65
65
  export { s as OrSelect } from './OrSelect-0821b907.js';
66
66
  export { s as OrSelectV3 } from './OrSelect-8fbd88bc.js';
67
67
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
68
- export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-f2150587.js';
68
+ export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-f6b2050b.js';
69
69
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
70
70
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-3965ff71.js';
71
71
  export { s as OrSlider } from './OrSlider-87e2da8c.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.71.1-beta.2217.0",
3
+ "version": "2.71.1-beta.2220.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -64,6 +64,7 @@ import {
64
64
  SidebarRoot,
65
65
  SidebarBar,
66
66
  SidebarToolbar,
67
+ CollapsibleSidebarToolbar,
67
68
  SidebarSides,
68
69
  SidebarToolbarSides,
69
70
  SidebarResize,
@@ -167,6 +168,7 @@ export default defineComponent({
167
168
 
168
169
  const toolbarStyles = computed(() => [
169
170
  ...SidebarToolbar,
171
+ ...(props.collapsible ? CollapsibleSidebarToolbar : []),
170
172
  ...SidebarToolbarSides[props.side],
171
173
  ]);
172
174
 
@@ -60,14 +60,17 @@ export const SidebarToolbar: string[] = [
60
60
  'min-h-0',
61
61
  'min-w-xl',
62
62
  'p-[6px]',
63
- 'pt-[56px]',
64
- 'pb-md+',
63
+ 'py-md+',
65
64
 
66
65
  // Theme
67
66
  'text-outline',
68
67
  'dark:text-outline-dark',
69
68
  ];
70
69
 
70
+ export const CollapsibleSidebarToolbar: string[] = [
71
+ 'pt-[56px]',
72
+ ];
73
+
71
74
  export const SidebarSides: Record<OrSidebarPlacement, string[]> = {
72
75
  [OrSidebarPlacement.left]: [
73
76
  // Borders