@jobber/components 6.106.4-CLEANUPre-396e26e.1 → 6.106.4-JOB-147120-dc74fc6.2
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/ConfirmationModal/index.cjs +1 -0
- package/dist/ConfirmationModal/index.mjs +1 -0
- package/dist/FormatFile/index.cjs +1 -0
- package/dist/FormatFile/index.mjs +1 -0
- package/dist/Gallery/index.cjs +1 -0
- package/dist/Gallery/index.mjs +1 -0
- package/dist/Modal/index.cjs +13 -0
- package/dist/Modal/index.mjs +14 -1
- package/dist/styles.css +2 -0
- package/package.json +2 -2
- package/rollup.config.mjs +0 -18
|
@@ -22,6 +22,7 @@ require('react/jsx-runtime');
|
|
|
22
22
|
require('../identity-cjs.js');
|
|
23
23
|
require('../isTypedArray-cjs.js');
|
|
24
24
|
require('../isObjectLike-cjs.js');
|
|
25
|
+
require('../maxHeight-cjs.js');
|
|
25
26
|
require('../AtlantisPortalContent-cjs.js');
|
|
26
27
|
require('../AtlantisThemeContext-cjs.js');
|
|
27
28
|
require('../_baseAssignValue-cjs.js');
|
|
@@ -20,6 +20,7 @@ import 'react/jsx-runtime';
|
|
|
20
20
|
import '../identity-es.js';
|
|
21
21
|
import '../isTypedArray-es.js';
|
|
22
22
|
import '../isObjectLike-es.js';
|
|
23
|
+
import '../maxHeight-es.js';
|
|
23
24
|
import '../AtlantisPortalContent-es.js';
|
|
24
25
|
import '../AtlantisThemeContext-es.js';
|
|
25
26
|
import '../_baseAssignValue-es.js';
|
|
@@ -29,6 +29,7 @@ require('react/jsx-runtime');
|
|
|
29
29
|
require('../identity-cjs.js');
|
|
30
30
|
require('../isTypedArray-cjs.js');
|
|
31
31
|
require('../isObjectLike-cjs.js');
|
|
32
|
+
require('../maxHeight-cjs.js');
|
|
32
33
|
require('../AtlantisPortalContent-cjs.js');
|
|
33
34
|
require('../AtlantisThemeContext-cjs.js');
|
|
34
35
|
require('../_baseAssignValue-cjs.js');
|
|
@@ -27,6 +27,7 @@ import 'react/jsx-runtime';
|
|
|
27
27
|
import '../identity-es.js';
|
|
28
28
|
import '../isTypedArray-es.js';
|
|
29
29
|
import '../isObjectLike-es.js';
|
|
30
|
+
import '../maxHeight-es.js';
|
|
30
31
|
import '../AtlantisPortalContent-es.js';
|
|
31
32
|
import '../AtlantisThemeContext-es.js';
|
|
32
33
|
import '../_baseAssignValue-es.js';
|
package/dist/Gallery/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ require('../Modal/index.cjs');
|
|
|
37
37
|
require('../noop-cjs.js');
|
|
38
38
|
require('../floating-ui.react-cjs.js');
|
|
39
39
|
require('react/jsx-runtime');
|
|
40
|
+
require('../maxHeight-cjs.js');
|
|
40
41
|
require('../AtlantisPortalContent-cjs.js');
|
|
41
42
|
require('../Markdown-cjs.js');
|
|
42
43
|
require('../Emphasis-cjs.js');
|
package/dist/Gallery/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ import '../Modal/index.mjs';
|
|
|
35
35
|
import '../noop-es.js';
|
|
36
36
|
import '../floating-ui.react-es.js';
|
|
37
37
|
import 'react/jsx-runtime';
|
|
38
|
+
import '../maxHeight-es.js';
|
|
38
39
|
import '../AtlantisPortalContent-es.js';
|
|
39
40
|
import '../Markdown-es.js';
|
|
40
41
|
import '../Emphasis-es.js';
|
package/dist/Modal/index.cjs
CHANGED
|
@@ -11,6 +11,7 @@ var ButtonDismiss = require('../ButtonDismiss-cjs.js');
|
|
|
11
11
|
var noop = require('../noop-cjs.js');
|
|
12
12
|
var floatingUi_react = require('../floating-ui.react-cjs.js');
|
|
13
13
|
var identity = require('../identity-cjs.js');
|
|
14
|
+
var maxHeight = require('../maxHeight-cjs.js');
|
|
14
15
|
var AtlantisPortalContent = require('../AtlantisPortalContent-cjs.js');
|
|
15
16
|
require('../Typography-cjs.js');
|
|
16
17
|
require('react-router-dom');
|
|
@@ -91,6 +92,18 @@ function useModal({ open, activatorRef: refProp, onRequestClose, startedInsideRe
|
|
|
91
92
|
onRequestClose === null || onRequestClose === void 0 ? void 0 : onRequestClose();
|
|
92
93
|
},
|
|
93
94
|
open: open,
|
|
95
|
+
middleware: [
|
|
96
|
+
floatingUi_react.size({
|
|
97
|
+
apply({ availableHeight, elements }) {
|
|
98
|
+
const maxHeight$1 = maxHeight.calculateMaxHeight(availableHeight, {
|
|
99
|
+
maxHeight: availableHeight,
|
|
100
|
+
});
|
|
101
|
+
Object.assign(elements.floating.style, {
|
|
102
|
+
maxHeight: `${maxHeight$1}px`,
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
}),
|
|
106
|
+
],
|
|
94
107
|
});
|
|
95
108
|
React.useEffect(() => {
|
|
96
109
|
if (!startedInsideRef)
|
package/dist/Modal/index.mjs
CHANGED
|
@@ -7,8 +7,9 @@ import { H as Heading } from '../Heading-es.js';
|
|
|
7
7
|
import { B as Button } from '../Button-es.js';
|
|
8
8
|
import { B as ButtonDismiss } from '../ButtonDismiss-es.js';
|
|
9
9
|
import { n as noop } from '../noop-es.js';
|
|
10
|
-
import { i as useFloatingNodeId, u as useFloating, d as useDismiss, n as useRole, g as useInteractions, h as useFloatingParentNodeId, j as FloatingTree, k as FloatingNode, F as FloatingPortal, p as FloatingFocusManager, q as FloatingOverlay } from '../floating-ui.react-es.js';
|
|
10
|
+
import { i as useFloatingNodeId, u as useFloating, c as size, d as useDismiss, n as useRole, g as useInteractions, h as useFloatingParentNodeId, j as FloatingTree, k as FloatingNode, F as FloatingPortal, p as FloatingFocusManager, q as FloatingOverlay } from '../floating-ui.react-es.js';
|
|
11
11
|
import { b as identity } from '../identity-es.js';
|
|
12
|
+
import { c as calculateMaxHeight } from '../maxHeight-es.js';
|
|
12
13
|
import { A as AtlantisPortalContent } from '../AtlantisPortalContent-es.js';
|
|
13
14
|
import '../Typography-es.js';
|
|
14
15
|
import 'react-router-dom';
|
|
@@ -89,6 +90,18 @@ function useModal({ open, activatorRef: refProp, onRequestClose, startedInsideRe
|
|
|
89
90
|
onRequestClose === null || onRequestClose === void 0 ? void 0 : onRequestClose();
|
|
90
91
|
},
|
|
91
92
|
open: open,
|
|
93
|
+
middleware: [
|
|
94
|
+
size({
|
|
95
|
+
apply({ availableHeight, elements }) {
|
|
96
|
+
const maxHeight = calculateMaxHeight(availableHeight, {
|
|
97
|
+
maxHeight: availableHeight,
|
|
98
|
+
});
|
|
99
|
+
Object.assign(elements.floating.style, {
|
|
100
|
+
maxHeight: `${maxHeight}px`,
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
}),
|
|
104
|
+
],
|
|
92
105
|
});
|
|
93
106
|
useEffect(() => {
|
|
94
107
|
if (!startedInsideRef)
|
package/dist/styles.css
CHANGED
|
@@ -4823,6 +4823,7 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
4823
4823
|
border-radius: 8px;
|
|
4824
4824
|
border-radius: var(--radius-base);
|
|
4825
4825
|
outline: none;
|
|
4826
|
+
overflow-y: auto;
|
|
4826
4827
|
background-color: rgba(255, 255, 255, 1);
|
|
4827
4828
|
background-color: var(--color-surface);
|
|
4828
4829
|
-ms-flex: 0 0 auto;
|
|
@@ -6719,6 +6720,7 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
6719
6720
|
padding: var(--space-small) var(--space-base);
|
|
6720
6721
|
}
|
|
6721
6722
|
|
|
6723
|
+
@charset "UTF-8";
|
|
6722
6724
|
{
|
|
6723
6725
|
/* sr-only utility class for accessibility */
|
|
6724
6726
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.106.4-
|
|
3
|
+
"version": "6.106.4-JOB-147120-dc74fc6.2+dc74fc6e2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -538,5 +538,5 @@
|
|
|
538
538
|
"> 1%",
|
|
539
539
|
"IE 10"
|
|
540
540
|
],
|
|
541
|
-
"gitHead": "
|
|
541
|
+
"gitHead": "dc74fc6e2f9e7c6223d3409b7927b8acb72bdc15"
|
|
542
542
|
}
|
package/rollup.config.mjs
CHANGED
|
@@ -21,23 +21,6 @@ import nodePolyfills from "rollup-plugin-polyfill-node";
|
|
|
21
21
|
*/
|
|
22
22
|
const PREBUILD_CSS = process.env.PREBUILD_CSS === "true";
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* PostCSS plugin to remove @charset declarations.
|
|
26
|
-
*
|
|
27
|
-
* The @charset rule (from react-datepicker) ends up in the middle of
|
|
28
|
-
* the bundled CSS when imported via postcss-import. Since @charset must be
|
|
29
|
-
* the first line of a CSS file to be valid, and it's unnecessary for
|
|
30
|
-
* HTTP-served content (Content-Type header takes precedence), we remove it.
|
|
31
|
-
*/
|
|
32
|
-
const removeCharset = {
|
|
33
|
-
postcssPlugin: "remove-charset",
|
|
34
|
-
AtRule: {
|
|
35
|
-
charset: atRule => {
|
|
36
|
-
atRule.remove();
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
24
|
export default {
|
|
42
25
|
input: PREBUILD_CSS ? "src/index.ts" : `src/**/index.{ts,tsx}`,
|
|
43
26
|
plugins: [
|
|
@@ -59,7 +42,6 @@ export default {
|
|
|
59
42
|
autoModules: false,
|
|
60
43
|
plugins: [
|
|
61
44
|
postcssimport,
|
|
62
|
-
removeCharset,
|
|
63
45
|
autoprefixer,
|
|
64
46
|
tools({
|
|
65
47
|
files: ["../design/dist/foundation.css"],
|