@onereach/ui-components 2.72.1-beta.2252.0 → 2.72.1

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.
Files changed (47) hide show
  1. package/dist/bundled/v2/OrSidebar-c95ef614.js +230 -0
  2. package/dist/bundled/v2/components/index.js +1 -1
  3. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
  4. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
  5. package/dist/bundled/v2/components/or-sidebar-v3/index.js +1 -12
  6. package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +1 -9
  7. package/dist/bundled/v2/index.js +2 -2
  8. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +181 -0
  9. package/dist/bundled/v3/components/index.js +1 -1
  10. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
  11. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
  12. package/dist/bundled/v3/components/or-sidebar-v3/index.js +1 -14
  13. package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +1 -9
  14. package/dist/bundled/v3/index.js +9 -25
  15. package/dist/esm/v2/OrSidebar-fabc7bc9.js +228 -0
  16. package/dist/esm/v2/components/index.js +1 -1
  17. package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
  18. package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
  19. package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -12
  20. package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +1 -9
  21. package/dist/esm/v2/index.js +1 -1
  22. package/dist/esm/v3/OrSidebar-a62972f5.js +206 -0
  23. package/dist/esm/v3/components/index.js +1 -1
  24. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
  25. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
  26. package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -11
  27. package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +1 -9
  28. package/dist/esm/v3/index.js +1 -1
  29. package/package.json +4 -3
  30. package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -6
  31. package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +12 -253
  32. package/src/components/or-sidebar-v3/OrSidebar.vue +23 -130
  33. package/src/components/or-sidebar-v3/styles.ts +9 -164
  34. package/dist/bundled/v2/OrSidebar-efd4b98a.js +0 -464
  35. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
  36. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
  37. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-66f8f0fd.js +0 -356
  38. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
  39. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
  40. package/dist/esm/v2/OrSidebar-b7202f16.js +0 -461
  41. package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
  42. package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
  43. package/dist/esm/v3/OrSidebar-3567338f.js +0 -396
  44. package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
  45. package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
  46. package/src/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.ts +0 -48
  47. package/src/components/or-sidebar-v3/OrSidebarCollapseButton.vue +0 -74
@@ -4,100 +4,28 @@ export const SidebarRoot: string[] = [
4
4
  // Position
5
5
  'relative',
6
6
 
7
- // Layout
8
- 'flex',
9
- 'flex-row',
10
- 'shrink-0',
11
-
12
- // Box
13
- 'min-w-0',
14
- 'h-auto',
15
- 'p-0',
16
-
17
- // Theme
18
- 'bg-background',
19
- 'dark:bg-background-dark',
20
- ];
21
-
22
- export const SidebarBar: string[] = [
23
- // Position
24
- 'relative',
25
-
26
7
  // Layout
27
8
  'flex',
28
9
  'flex-col',
29
10
  'shrink-0',
30
- 'grow',
31
11
 
32
12
  // Box
33
13
  'min-h-0',
34
14
  'p-0',
35
-
36
- // Theme
37
- 'text-on-background',
38
- 'dark:text-on-background-dark',
39
-
40
- // Transition
41
- 'transition-[width]',
42
15
  ];
43
16
 
44
- export const SidebarToolbar: string[] = [
45
- // Position
46
- 'relative',
47
-
48
- // Layout
49
- 'flex',
50
- 'flex-col',
51
- 'shrink-0',
52
- 'grow',
53
- 'overflow-auto',
54
- 'items-center',
55
-
56
- // Sizing
57
- 'gap-md',
58
-
59
- // Box
60
- 'min-h-0',
61
- 'min-w-xl',
62
- 'p-[6px]',
63
- 'py-md+',
64
-
65
- // Theme
66
- 'text-outline',
67
- 'dark:text-outline-dark',
68
- ];
69
-
70
- export const CollapsibleSidebarToolbar: string[] = [
71
- 'pt-[56px]',
72
- ];
73
-
74
- export const SidebarSides: Record<OrSidebarPlacement, string[]> = {
75
- [OrSidebarPlacement.left]: [
76
- // Borders
77
- 'border-r-[1px]',
78
- 'border-r-solid',
79
- 'border-r-outline-variant dark:border-r-outline-variant-dark',
80
- ],
81
- [OrSidebarPlacement.right]: [
82
- // Borders
83
- 'border-l-[1px]',
84
- 'border-l-solid',
85
- 'border-l-outline-variant dark:border-l-outline-variant-dark',
86
- ],
87
- };
88
-
89
- export const SidebarToolbarSides: Record<OrSidebarPlacement, string[]> = {
17
+ export const SidebarRootSides: Record<OrSidebarPlacement, string[]> = {
90
18
  [OrSidebarPlacement.left]: [
91
19
  // Borders
92
20
  'border-r-[1px]',
93
21
  'border-r-solid',
94
- 'border-r-outline-variant dark:border-r-outline-variant-dark',
22
+ 'border-r-secondary dark:border-r-secondary-dark',
95
23
  ],
96
24
  [OrSidebarPlacement.right]: [
97
25
  // Borders
98
26
  'border-l-[1px]',
99
27
  'border-l-solid',
100
- 'border-l-outline-variant dark:border-l-outline-variant-dark',
28
+ 'border-l-secondary dark:border-l-secondary-dark',
101
29
  ],
102
30
  };
103
31
 
@@ -108,7 +36,7 @@ export const SidebarResize: string[] = [
108
36
  'z-[1]',
109
37
 
110
38
  // Box
111
- 'w-sm+',
39
+ 'w-[12px]',
112
40
  'h-[100%]',
113
41
 
114
42
  // Cursor
@@ -122,7 +50,7 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
122
50
 
123
51
  // Borders
124
52
  'hover:border-r-2',
125
- 'hover:border-r-primary-hover hover:dark:border-r-primary-hover-dark',
53
+ 'hover:border-r-primary hover:dark:border-r-primary-dark',
126
54
 
127
55
  // Transition
128
56
  'transition-[border-right]',
@@ -133,42 +61,23 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
133
61
 
134
62
  // Borders
135
63
  'hover:border-l-2',
136
- 'hover:border-l-primary-hover hover:dark:border-l-primary-hover-dark',
64
+ 'hover:border-l-primary hover:dark:border-l-primary-dark',
137
65
 
138
66
  // Transition
139
67
  'transition-[border-left]',
140
68
  ],
141
69
  };
142
70
 
143
- export const SidebarCollapseButton: string[] = [
144
- // Position
145
- 'absolute',
146
- 'top-md',
147
- 'inset-y-none',
148
- 'z-[1]',
149
- ];
150
-
151
- export const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]> = {
152
- [OrSidebarPlacement.left]: [
153
- // Position
154
- '-right-[12px]',
155
- ],
156
- [OrSidebarPlacement.right]: [
157
- // Position
158
- '-left-[12px]',
159
- ],
160
- };
161
-
162
71
  export const SidebarResizingSides: Record<OrSidebarPlacement, string[]> = {
163
72
  [OrSidebarPlacement.left]: [
164
73
  // Borders
165
74
  'border-r-2',
166
- 'border-r-primary-hover dark:border-r-primary-hover-dark',
75
+ 'border-r-primary dark:border-r-primary-dark',
167
76
  ],
168
77
  [OrSidebarPlacement.right]: [
169
78
  // Borders
170
79
  'border-l-2',
171
- 'border-l-primary-hover dark:border-l-primary-hover-dark',
80
+ 'border-l-primary dark:border-l-primary-dark',
172
81
  ],
173
82
  };
174
83
 
@@ -177,24 +86,14 @@ export const SidebarMain: string[] = [
177
86
  'flex',
178
87
  'flex-col',
179
88
  'grow',
180
- 'overflow-x-hidden',
181
89
 
182
90
  // Box
183
91
  'min-h-0',
184
92
  ];
185
93
 
186
94
  export const SidebarHeader: string[] = [
187
- // Layout
188
- 'shrink-0',
189
- 'overflow-hidden',
190
-
191
95
  // Sizing
192
96
  'p-md',
193
-
194
- // Typography
195
- 'typography-headline-2',
196
- 'whitespace-nowrap',
197
- 'text-ellipsis',
198
97
  ];
199
98
 
200
99
  export const SidebarContent: string[] = [
@@ -207,65 +106,11 @@ export const SidebarContent: string[] = [
207
106
  ];
208
107
 
209
108
  export const SidebarFooter: string[] = [
210
- // Layout
211
- 'shrink-0',
212
- 'overflow-x-hidden',
213
-
214
109
  // Sizing
215
110
  'p-md',
216
111
 
217
112
  // Borders
218
113
  'border-t-[1px]',
219
114
  'border-t-solid',
220
- 'border-t-outline-variant dark:border-t-outline-variant-dark',
221
- ];
222
-
223
- export const CollapseButtonContainer: string[] = [
224
- // Box
225
- 'w-[24px]',
226
- 'h-[24px]',
227
- 'rounded-full',
228
-
229
- // Theme
230
- 'text-primary dark:text-primary-dark',
231
- 'bg-background dark:bg-background-dark',
232
- ];
233
-
234
- export const CollapseButton: string[] = [
235
- // Box
236
- 'w-[24px]',
237
- 'h-[24px]',
238
-
239
- // Typography
240
- '!text-[16px]',
241
-
242
- // Borders
243
- '!border-[1px]',
244
- '!border-solid',
245
-
246
- // Theme
247
- '!text-primary dark:!text-primary-dark',
248
- '!bg-background dark:!bg-background-dark',
249
- '!border-outline-variant dark:!border-outline-variant-dark',
250
- '!outline-none',
251
-
252
- // Theme (hover)
253
- 'hover:!text-primary hover:dark:!text-primary-dark',
254
- 'hover:!bg-primary-opacity-0-08 dark:hover:!bg-primary-opacity-0-08-dark',
255
- 'hover:!border-outline dark:hover:!border-outline-dark',
256
-
257
- // Theme (active)
258
- 'active:!text-primary active:dark:!text-primary-dark',
259
- 'active:!bg-primary-opacity-0-12 dark:active:!bg-primary-opacity-0-12-dark',
260
- 'active:!border-primary dark:active:!border-primary-dark',
261
-
262
- // Theme (focus)
263
- 'focus:!text-primary focus:dark:!text-primary-dark',
264
- 'focus:!bg-primary-opacity-0-12 dark:focus:!bg-primary-opacity-0-12-dark',
265
- 'focus:!border-outline dark:focus:!border-outline-dark',
266
-
267
- // Theme (disabled)
268
- 'disabled:!text-on-disabled disabled:dark:!text-on-disabled-dark',
269
- 'disabled:!bg-background disabled:dark:!bg-background-dark',
270
- 'disabled:!border-outline-variant disabled:dark:!border-outline-variant-dark',
115
+ 'border-t-secondary dark:border-t-secondary-dark',
271
116
  ];