@onereach/ui-components 2.75.1-beta.2379.0 → 2.75.1-beta.2384.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/{OrModal-d845da2d.js → OrModal-5f094323.js} +4 -4
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/components/or-modal-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-3f3ce339.js → OrModal.vue_vue_type_script_lang-92339e0f.js} +4 -4
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/components/or-modal-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +3 -3
- package/dist/esm/v2/{OrModal-370cfc3b.js → OrModal-407f3ac7.js} +4 -4
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-modal-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrModal-f9f2279b.js → OrModal-17c3a1cb.js} +4 -4
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-modal-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -2
- package/src/components/or-modal-v3/OrModal.stories3.ts +19 -0
- package/src/components/or-modal-v3/styles.ts +1 -4
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +1 -1
|
@@ -14,7 +14,7 @@ const ModalRoot = [
|
|
|
14
14
|
// Layout
|
|
15
15
|
'layout-column',
|
|
16
16
|
// Box
|
|
17
|
-
'w-full', 'h-full',
|
|
17
|
+
'w-full', 'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
|
|
18
18
|
// Shape
|
|
19
19
|
'md:rounded-md',
|
|
20
20
|
// Spacing
|
|
@@ -28,13 +28,13 @@ const ModalRoot = [
|
|
|
28
28
|
const ModalRootSizes = {
|
|
29
29
|
'l': [
|
|
30
30
|
// Box
|
|
31
|
-
'md:w-[1050px]'
|
|
31
|
+
'md:w-[1050px]'],
|
|
32
32
|
'm': [
|
|
33
33
|
// Box
|
|
34
|
-
'md:w-[700px]'
|
|
34
|
+
'md:w-[700px]'],
|
|
35
35
|
's': [
|
|
36
36
|
// Box
|
|
37
|
-
'md:w-[480px]'
|
|
37
|
+
'md:w-[480px]']
|
|
38
38
|
};
|
|
39
39
|
const ModalHeader = [
|
|
40
40
|
// Layouot
|
|
@@ -51,7 +51,7 @@ export { _ as OrMenuItemV3 } from '../OrMenuItem-4f810513.js';
|
|
|
51
51
|
export { _ as OrMenuV3 } from '../OrMenu-bb6e93bc.js';
|
|
52
52
|
export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-a101a230.js';
|
|
53
53
|
export { _ as OrModal, O as OrModalSizes } from '../OrModal-a02dcd2a.js';
|
|
54
|
-
export { M as ModalSize, _ as OrModalV3 } from '../OrModal-
|
|
54
|
+
export { M as ModalSize, _ as OrModalV3 } from '../OrModal-407f3ac7.js';
|
|
55
55
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-0b22c94c.js';
|
|
56
56
|
export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotification-76498693.js';
|
|
57
57
|
export { _ as OrNumberInput } from '../OrNumberInput-eb0e7087.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -51,7 +51,7 @@ export { _ as OrMenuItemV3 } from './OrMenuItem-4f810513.js';
|
|
|
51
51
|
export { _ as OrMenuV3 } from './OrMenu-bb6e93bc.js';
|
|
52
52
|
export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-a101a230.js';
|
|
53
53
|
export { _ as OrModal, O as OrModalSizes } from './OrModal-a02dcd2a.js';
|
|
54
|
-
export { M as ModalSize, _ as OrModalV3 } from './OrModal-
|
|
54
|
+
export { M as ModalSize, _ as OrModalV3 } from './OrModal-407f3ac7.js';
|
|
55
55
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from './OrNotification-0b22c94c.js';
|
|
56
56
|
export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotification-76498693.js';
|
|
57
57
|
export { _ as OrNumberInput } from './OrNumberInput-eb0e7087.js';
|
|
@@ -14,7 +14,7 @@ const ModalRoot = [
|
|
|
14
14
|
// Layout
|
|
15
15
|
'layout-column',
|
|
16
16
|
// Box
|
|
17
|
-
'w-full', 'h-full',
|
|
17
|
+
'w-full', 'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
|
|
18
18
|
// Shape
|
|
19
19
|
'md:rounded-md',
|
|
20
20
|
// Spacing
|
|
@@ -28,13 +28,13 @@ const ModalRoot = [
|
|
|
28
28
|
const ModalRootSizes = {
|
|
29
29
|
'l': [
|
|
30
30
|
// Box
|
|
31
|
-
'md:w-[1050px]'
|
|
31
|
+
'md:w-[1050px]'],
|
|
32
32
|
'm': [
|
|
33
33
|
// Box
|
|
34
|
-
'md:w-[700px]'
|
|
34
|
+
'md:w-[700px]'],
|
|
35
35
|
's': [
|
|
36
36
|
// Box
|
|
37
|
-
'md:w-[480px]'
|
|
37
|
+
'md:w-[480px]']
|
|
38
38
|
};
|
|
39
39
|
const ModalHeader = [
|
|
40
40
|
// Layouot
|
|
@@ -48,7 +48,7 @@ export { s as OrMenuItemV3 } from '../OrMenuItem-de91aded.js';
|
|
|
48
48
|
export { s as OrMenuV3 } from '../OrMenu-b4e8136c.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-35ee1b1e.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from '../OrModal-153310f7.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from '../OrModal-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from '../OrModal-17c3a1cb.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification-2d77aae4.js';
|
|
53
53
|
export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotification-aab2e22a.js';
|
|
54
54
|
export { s as OrNumberInput } from '../OrNumberInput-dca5e850.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -48,7 +48,7 @@ export { s as OrMenuItemV3 } from './OrMenuItem-de91aded.js';
|
|
|
48
48
|
export { s as OrMenuV3 } from './OrMenu-b4e8136c.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-35ee1b1e.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-153310f7.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-17c3a1cb.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-2d77aae4.js';
|
|
53
53
|
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-aab2e22a.js';
|
|
54
54
|
export { s as OrNumberInput } from './OrNumberInput-dca5e850.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.75.1-beta.
|
|
3
|
+
"version": "2.75.1-beta.2384.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.36.
|
|
41
|
+
"@onereach/styles": "^2.36.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
3
|
import { ref } from 'vue-demi';
|
|
4
|
+
import Faker from 'faker';
|
|
4
5
|
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
5
6
|
import OrModalDocs from './OrModal.docs.mdx';
|
|
6
7
|
import OrModal from './OrModal.vue';
|
|
@@ -257,3 +258,21 @@ zIndex.args = {
|
|
|
257
258
|
</div>
|
|
258
259
|
`,
|
|
259
260
|
};
|
|
261
|
+
|
|
262
|
+
export const WithVerticalScroll = Template.bind({});
|
|
263
|
+
|
|
264
|
+
WithVerticalScroll.args = {
|
|
265
|
+
header: 'Upload Files',
|
|
266
|
+
default: `
|
|
267
|
+
<div class="flex items-center justify-center">
|
|
268
|
+
${Faker.lorem.lines(50)}
|
|
269
|
+
</div>
|
|
270
|
+
`,
|
|
271
|
+
|
|
272
|
+
footer: `
|
|
273
|
+
<div class="flex items-center justify-end gap-[16px]">
|
|
274
|
+
<OrButton variant="outlined">Save</OrButton>
|
|
275
|
+
<OrButton>Upload</OrButton>
|
|
276
|
+
</div>
|
|
277
|
+
`,
|
|
278
|
+
};
|
|
@@ -6,7 +6,7 @@ export const ModalRoot: string[] = [
|
|
|
6
6
|
|
|
7
7
|
// Box
|
|
8
8
|
'w-full',
|
|
9
|
-
'h-full',
|
|
9
|
+
'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
|
|
10
10
|
|
|
11
11
|
// Shape
|
|
12
12
|
'md:rounded-md',
|
|
@@ -36,19 +36,16 @@ export const ModalRootSizes: Record<ModalSize, string[]> = {
|
|
|
36
36
|
'l': [
|
|
37
37
|
// Box
|
|
38
38
|
'md:w-[1050px]',
|
|
39
|
-
'md:h-auto',
|
|
40
39
|
],
|
|
41
40
|
|
|
42
41
|
'm': [
|
|
43
42
|
// Box
|
|
44
43
|
'md:w-[700px]',
|
|
45
|
-
'md:h-auto',
|
|
46
44
|
],
|
|
47
45
|
|
|
48
46
|
's': [
|
|
49
47
|
// Box
|
|
50
48
|
'md:w-[480px]',
|
|
51
|
-
'md:h-auto',
|
|
52
49
|
],
|
|
53
50
|
};
|
|
54
51
|
|
|
@@ -104,7 +104,7 @@ const DefaultTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
|
104
104
|
class="theme-background-surface-1 dark:theme-background-surface-1-dark text-on-background dark:text-on-background-dark"
|
|
105
105
|
style="flex-grow: 1; overflow: auto; padding: 16px"
|
|
106
106
|
>
|
|
107
|
-
${Faker.lorem.paragraphs(
|
|
107
|
+
${Faker.lorem.paragraphs(10)}
|
|
108
108
|
</div>
|
|
109
109
|
<OrSidebar
|
|
110
110
|
v-bind="args"
|