@onereach/ui-components 2.70.3-beta.2213.0 → 2.71.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/{OrConfirm-23c3ce56.js → OrConfirm-057e997e.js} +12 -5
- package/dist/bundled/v2/OrSidebar-c95ef614.js +230 -0
- package/dist/bundled/v2/components/index.js +2 -2
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
- 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 -8
- package/dist/bundled/v2/index.js +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-05b21989.js → OrConfirm.vue_vue_type_script_lang-9d9a3917.js} +12 -5
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +181 -0
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/components/or-confirm-v3/index.js +2 -2
- 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 +1 -15
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +1 -8
- package/dist/bundled/v3/index.js +11 -27
- package/dist/esm/v2/{OrConfirm-e2ab9b4c.js → OrConfirm-047d4086.js} +13 -6
- package/dist/esm/v2/OrSidebar-fabc7bc9.js +228 -0
- package/dist/esm/v2/components/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +7 -7
- 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 -8
- package/dist/esm/v2/index.js +2 -2
- package/dist/esm/v3/{OrConfirm-1bcd39b1.js → OrConfirm-fee3c859.js} +13 -6
- package/dist/esm/v3/OrSidebar-a62972f5.js +206 -0
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +6 -6
- 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 -8
- package/dist/esm/v3/index.js +2 -2
- package/package.json +3 -2
- package/src/components/or-confirm-v3/OrConfirm.vue +11 -10
- package/src/components/or-confirm-v3/styles.ts +13 -3
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -6
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +10 -230
- package/src/components/or-sidebar-v3/OrSidebar.vue +22 -121
- package/src/components/or-sidebar-v3/styles.ts +9 -161
- package/dist/bundled/v2/OrSidebar-774b382d.js +0 -462
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-8305a28b.js +0 -354
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v2/OrSidebar-a6ee22d1.js +0 -459
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v3/OrSidebar-f2150587.js +0 -394
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.ts +0 -48
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.vue +0 -74
|
@@ -4,97 +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
|
-
];
|
|
43
|
-
|
|
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
|
-
'pt-[56px]',
|
|
64
|
-
'pb-md+',
|
|
65
|
-
|
|
66
|
-
// Theme
|
|
67
|
-
'text-outline',
|
|
68
|
-
'dark:text-outline-dark',
|
|
69
15
|
];
|
|
70
16
|
|
|
71
|
-
export const
|
|
72
|
-
[OrSidebarPlacement.left]: [
|
|
73
|
-
// Borders
|
|
74
|
-
'border-r-[1px]',
|
|
75
|
-
'border-r-solid',
|
|
76
|
-
'border-r-outline-variant dark:border-r-outline-variant-dark',
|
|
77
|
-
],
|
|
78
|
-
[OrSidebarPlacement.right]: [
|
|
79
|
-
// Borders
|
|
80
|
-
'border-l-[1px]',
|
|
81
|
-
'border-l-solid',
|
|
82
|
-
'border-l-outline-variant dark:border-l-outline-variant-dark',
|
|
83
|
-
],
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export const SidebarToolbarSides: Record<OrSidebarPlacement, string[]> = {
|
|
17
|
+
export const SidebarRootSides: Record<OrSidebarPlacement, string[]> = {
|
|
87
18
|
[OrSidebarPlacement.left]: [
|
|
88
19
|
// Borders
|
|
89
20
|
'border-r-[1px]',
|
|
90
21
|
'border-r-solid',
|
|
91
|
-
'border-r-
|
|
22
|
+
'border-r-secondary dark:border-r-secondary-dark',
|
|
92
23
|
],
|
|
93
24
|
[OrSidebarPlacement.right]: [
|
|
94
25
|
// Borders
|
|
95
26
|
'border-l-[1px]',
|
|
96
27
|
'border-l-solid',
|
|
97
|
-
'border-l-
|
|
28
|
+
'border-l-secondary dark:border-l-secondary-dark',
|
|
98
29
|
],
|
|
99
30
|
};
|
|
100
31
|
|
|
@@ -105,7 +36,7 @@ export const SidebarResize: string[] = [
|
|
|
105
36
|
'z-[1]',
|
|
106
37
|
|
|
107
38
|
// Box
|
|
108
|
-
'w-
|
|
39
|
+
'w-[12px]',
|
|
109
40
|
'h-[100%]',
|
|
110
41
|
|
|
111
42
|
// Cursor
|
|
@@ -119,7 +50,7 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
119
50
|
|
|
120
51
|
// Borders
|
|
121
52
|
'hover:border-r-2',
|
|
122
|
-
'hover:border-r-primary
|
|
53
|
+
'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
123
54
|
|
|
124
55
|
// Transition
|
|
125
56
|
'transition-[border-right]',
|
|
@@ -130,42 +61,23 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
130
61
|
|
|
131
62
|
// Borders
|
|
132
63
|
'hover:border-l-2',
|
|
133
|
-
'hover:border-l-primary
|
|
64
|
+
'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
134
65
|
|
|
135
66
|
// Transition
|
|
136
67
|
'transition-[border-left]',
|
|
137
68
|
],
|
|
138
69
|
};
|
|
139
70
|
|
|
140
|
-
export const SidebarCollapseButton: string[] = [
|
|
141
|
-
// Position
|
|
142
|
-
'absolute',
|
|
143
|
-
'top-md',
|
|
144
|
-
'inset-y-none',
|
|
145
|
-
'z-[1]',
|
|
146
|
-
];
|
|
147
|
-
|
|
148
|
-
export const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]> = {
|
|
149
|
-
[OrSidebarPlacement.left]: [
|
|
150
|
-
// Position
|
|
151
|
-
'-right-[12px]',
|
|
152
|
-
],
|
|
153
|
-
[OrSidebarPlacement.right]: [
|
|
154
|
-
// Position
|
|
155
|
-
'-left-[12px]',
|
|
156
|
-
],
|
|
157
|
-
};
|
|
158
|
-
|
|
159
71
|
export const SidebarResizingSides: Record<OrSidebarPlacement, string[]> = {
|
|
160
72
|
[OrSidebarPlacement.left]: [
|
|
161
73
|
// Borders
|
|
162
74
|
'border-r-2',
|
|
163
|
-
'border-r-primary
|
|
75
|
+
'border-r-primary dark:border-r-primary-dark',
|
|
164
76
|
],
|
|
165
77
|
[OrSidebarPlacement.right]: [
|
|
166
78
|
// Borders
|
|
167
79
|
'border-l-2',
|
|
168
|
-
'border-l-primary
|
|
80
|
+
'border-l-primary dark:border-l-primary-dark',
|
|
169
81
|
],
|
|
170
82
|
};
|
|
171
83
|
|
|
@@ -174,24 +86,14 @@ export const SidebarMain: string[] = [
|
|
|
174
86
|
'flex',
|
|
175
87
|
'flex-col',
|
|
176
88
|
'grow',
|
|
177
|
-
'overflow-x-hidden',
|
|
178
89
|
|
|
179
90
|
// Box
|
|
180
91
|
'min-h-0',
|
|
181
92
|
];
|
|
182
93
|
|
|
183
94
|
export const SidebarHeader: string[] = [
|
|
184
|
-
// Layout
|
|
185
|
-
'shrink-0',
|
|
186
|
-
'overflow-hidden',
|
|
187
|
-
|
|
188
95
|
// Sizing
|
|
189
96
|
'p-md',
|
|
190
|
-
|
|
191
|
-
// Typography
|
|
192
|
-
'typography-headline-2',
|
|
193
|
-
'whitespace-nowrap',
|
|
194
|
-
'text-ellipsis',
|
|
195
97
|
];
|
|
196
98
|
|
|
197
99
|
export const SidebarContent: string[] = [
|
|
@@ -204,65 +106,11 @@ export const SidebarContent: string[] = [
|
|
|
204
106
|
];
|
|
205
107
|
|
|
206
108
|
export const SidebarFooter: string[] = [
|
|
207
|
-
// Layout
|
|
208
|
-
'shrink-0',
|
|
209
|
-
'overflow-x-hidden',
|
|
210
|
-
|
|
211
109
|
// Sizing
|
|
212
110
|
'p-md',
|
|
213
111
|
|
|
214
112
|
// Borders
|
|
215
113
|
'border-t-[1px]',
|
|
216
114
|
'border-t-solid',
|
|
217
|
-
'border-t-
|
|
218
|
-
];
|
|
219
|
-
|
|
220
|
-
export const CollapseButtonContainer: string[] = [
|
|
221
|
-
// Box
|
|
222
|
-
'w-[24px]',
|
|
223
|
-
'h-[24px]',
|
|
224
|
-
'rounded-full',
|
|
225
|
-
|
|
226
|
-
// Theme
|
|
227
|
-
'text-primary dark:text-primary-dark',
|
|
228
|
-
'bg-background dark:bg-background-dark',
|
|
229
|
-
];
|
|
230
|
-
|
|
231
|
-
export const CollapseButton: string[] = [
|
|
232
|
-
// Box
|
|
233
|
-
'w-[24px]',
|
|
234
|
-
'h-[24px]',
|
|
235
|
-
|
|
236
|
-
// Typography
|
|
237
|
-
'!text-[16px]',
|
|
238
|
-
|
|
239
|
-
// Borders
|
|
240
|
-
'!border-[1px]',
|
|
241
|
-
'!border-solid',
|
|
242
|
-
|
|
243
|
-
// Theme
|
|
244
|
-
'!text-primary dark:!text-primary-dark',
|
|
245
|
-
'!bg-background dark:!bg-background-dark',
|
|
246
|
-
'!border-outline-variant dark:!border-outline-variant-dark',
|
|
247
|
-
'!outline-none',
|
|
248
|
-
|
|
249
|
-
// Theme (hover)
|
|
250
|
-
'hover:!text-primary hover:dark:!text-primary-dark',
|
|
251
|
-
'hover:!bg-primary-opacity-0-08 dark:hover:!bg-primary-opacity-0-08-dark',
|
|
252
|
-
'hover:!border-outline dark:hover:!border-outline-dark',
|
|
253
|
-
|
|
254
|
-
// Theme (active)
|
|
255
|
-
'active:!text-primary active:dark:!text-primary-dark',
|
|
256
|
-
'active:!bg-primary-opacity-0-12 dark:active:!bg-primary-opacity-0-12-dark',
|
|
257
|
-
'active:!border-primary dark:active:!border-primary-dark',
|
|
258
|
-
|
|
259
|
-
// Theme (focus)
|
|
260
|
-
'focus:!text-primary focus:dark:!text-primary-dark',
|
|
261
|
-
'focus:!bg-primary-opacity-0-12 dark:focus:!bg-primary-opacity-0-12-dark',
|
|
262
|
-
'focus:!border-outline dark:focus:!border-outline-dark',
|
|
263
|
-
|
|
264
|
-
// Theme (disabled)
|
|
265
|
-
'disabled:!text-on-disabled disabled:dark:!text-on-disabled-dark',
|
|
266
|
-
'disabled:!bg-background disabled:dark:!bg-background-dark',
|
|
267
|
-
'disabled:!border-outline-variant disabled:dark:!border-outline-variant-dark',
|
|
115
|
+
'border-t-secondary dark:border-t-secondary-dark',
|
|
268
116
|
];
|