@onereach/ui-components 2.74.8 → 2.74.9-beta.2343.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.
@@ -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]', 'md:h-auto'],
31
+ 'md:w-[1050px]'],
32
32
  'm': [
33
33
  // Box
34
- 'md:w-[700px]', 'md:h-auto'],
34
+ 'md:w-[700px]'],
35
35
  's': [
36
36
  // Box
37
- 'md:w-[480px]', 'md:h-auto']
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-1adef5df.js';
52
52
  export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-b3746279.js';
53
53
  export { _ as OrModal, O as OrModalSizes } from '../OrModal-00808e43.js';
54
- export { M as ModalSize, _ as OrModalV3 } from '../OrModal-a938e31b.js';
54
+ export { M as ModalSize, _ as OrModalV3 } from '../OrModal-f24fc082.js';
55
55
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-453fff8c.js';
56
56
  export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotification-e8c1df46.js';
57
57
  export { _ as OrNumberInput } from '../OrNumberInput-a864b102.js';
@@ -1,4 +1,4 @@
1
- export { M as ModalSize, _ as OrModalV3 } from '../../OrModal-a938e31b.js';
1
+ export { M as ModalSize, _ as OrModalV3 } from '../../OrModal-f24fc082.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIconButton-140f940e.js';
4
4
  import '../../OrIcon-c434985a.js';
@@ -51,7 +51,7 @@ export { _ as OrMenuItemV3 } from './OrMenuItem-4f810513.js';
51
51
  export { _ as OrMenuV3 } from './OrMenu-1adef5df.js';
52
52
  export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-b3746279.js';
53
53
  export { _ as OrModal, O as OrModalSizes } from './OrModal-00808e43.js';
54
- export { M as ModalSize, _ as OrModalV3 } from './OrModal-a938e31b.js';
54
+ export { M as ModalSize, _ as OrModalV3 } from './OrModal-f24fc082.js';
55
55
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from './OrNotification-453fff8c.js';
56
56
  export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotification-e8c1df46.js';
57
57
  export { _ as OrNumberInput } from './OrNumberInput-a864b102.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]', 'md:h-auto'],
31
+ 'md:w-[1050px]'],
32
32
  'm': [
33
33
  // Box
34
- 'md:w-[700px]', 'md:h-auto'],
34
+ 'md:w-[700px]'],
35
35
  's': [
36
36
  // Box
37
- 'md:w-[480px]', 'md:h-auto']
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-345930d5.js';
49
49
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-464a5606.js';
50
50
  export { s as OrModal, O as OrModalSizes } from '../OrModal-efacdf3f.js';
51
- export { M as ModalSize, s as OrModalV3 } from '../OrModal-07c092ab.js';
51
+ export { M as ModalSize, s as OrModalV3 } from '../OrModal-3cb259b1.js';
52
52
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification-f7d413aa.js';
53
53
  export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotification-e600fd9a.js';
54
54
  export { s as OrNumberInput } from '../OrNumberInput-b32b5ce3.js';
@@ -1,4 +1,4 @@
1
- export { M as ModalSize, s as OrModalV3 } from '../../OrModal-07c092ab.js';
1
+ export { M as ModalSize, s as OrModalV3 } from '../../OrModal-3cb259b1.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIconButton-2a9a6627.js';
4
4
  import '../../OrIcon-ea40e58c.js';
@@ -48,7 +48,7 @@ export { s as OrMenuItemV3 } from './OrMenuItem-de91aded.js';
48
48
  export { s as OrMenuV3 } from './OrMenu-345930d5.js';
49
49
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-464a5606.js';
50
50
  export { s as OrModal, O as OrModalSizes } from './OrModal-efacdf3f.js';
51
- export { M as ModalSize, s as OrModalV3 } from './OrModal-07c092ab.js';
51
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-3cb259b1.js';
52
52
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-f7d413aa.js';
53
53
  export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-e600fd9a.js';
54
54
  export { s as OrNumberInput } from './OrNumberInput-b32b5ce3.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.74.8",
3
+ "version": "2.74.9-beta.2343.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -124,6 +124,5 @@
124
124
  "default": "./dist/bundled/v3/components/*/index.js"
125
125
  },
126
126
  "./package.json": "./package.json"
127
- },
128
- "gitHead": "daf6e9f278b97d4e36889093f41f2c03aafb5404"
127
+ }
129
128
  }
@@ -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