@jobber/components 6.118.2 → 6.119.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/Autocomplete/index.cjs +11 -10
- package/dist/Autocomplete/index.mjs +2 -1
- package/dist/Card/index.cjs +3 -1
- package/dist/Card/index.mjs +3 -1
- package/dist/Chip/index.cjs +2 -1
- package/dist/Chip/index.mjs +2 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -1
- package/dist/Chips/InternalChipDismissible/index.cjs +2 -1
- package/dist/Chips/InternalChipDismissible/index.mjs +2 -1
- package/dist/Chips/index.cjs +2 -1
- package/dist/Chips/index.mjs +2 -1
- package/dist/Combobox/components/ComboboxActivator/index.cjs +2 -1
- package/dist/Combobox/components/ComboboxActivator/index.mjs +2 -1
- package/dist/Combobox/components/ComboboxContent/index.cjs +2 -1
- package/dist/Combobox/components/ComboboxContent/index.mjs +2 -1
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +2 -1
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +2 -1
- package/dist/Combobox/index.cjs +2 -1
- package/dist/Combobox/index.mjs +2 -1
- package/dist/ComboboxContent-cjs.js +5 -4
- package/dist/ComboboxContent-es.js +2 -1
- package/dist/ConfirmationModal/index.cjs +1 -0
- package/dist/ConfirmationModal/index.mjs +1 -0
- package/dist/Countdown/index.cjs +1 -1
- package/dist/Countdown/index.mjs +1 -1
- package/dist/Countdown-cjs.js +1 -1
- package/dist/Countdown-es.js +1 -1
- package/dist/DataDump/index.cjs +3 -1
- package/dist/DataDump/index.mjs +3 -1
- package/dist/DataList/components/DataListActions/index.cjs +2 -1
- package/dist/DataList/components/DataListActions/index.mjs +2 -1
- package/dist/DataList/components/DataListBulkActions/index.cjs +2 -1
- package/dist/DataList/components/DataListBulkActions/index.mjs +2 -1
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +2 -1
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +2 -1
- package/dist/DataList/components/DataListFilters/index.cjs +2 -1
- package/dist/DataList/components/DataListFilters/index.mjs +2 -1
- package/dist/DataList/components/DataListHeader/index.cjs +2 -1
- package/dist/DataList/components/DataListHeader/index.mjs +2 -1
- package/dist/DataList/components/DataListItem/index.cjs +2 -1
- package/dist/DataList/components/DataListItem/index.mjs +2 -1
- package/dist/DataList/components/DataListItemActions/index.cjs +2 -1
- package/dist/DataList/components/DataListItemActions/index.mjs +2 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +2 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +2 -1
- package/dist/DataList/components/DataListItems/index.cjs +2 -1
- package/dist/DataList/components/DataListItems/index.mjs +2 -1
- package/dist/DataList/components/DataListLayout/index.cjs +2 -1
- package/dist/DataList/components/DataListLayout/index.mjs +2 -1
- package/dist/DataList/components/DataListLayoutActions/index.cjs +2 -1
- package/dist/DataList/components/DataListLayoutActions/index.mjs +2 -1
- package/dist/DataList/index.cjs +2 -1
- package/dist/DataList/index.mjs +2 -1
- package/dist/DatePicker/index.cjs +2 -1
- package/dist/DatePicker/index.mjs +2 -1
- package/dist/DatePicker-cjs.js +5 -4
- package/dist/DatePicker-es.js +2 -1
- 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/InputAvatar/index.cjs +1 -1
- package/dist/InputAvatar/index.mjs +1 -1
- package/dist/InputDate/index.cjs +2 -1
- package/dist/InputDate/index.mjs +2 -1
- package/dist/InputFile/index.cjs +1 -1
- package/dist/InputFile/index.mjs +1 -1
- package/dist/InputFile-cjs.js +1 -1
- package/dist/InputFile-es.js +1 -1
- package/dist/Menu/index.cjs +3 -1
- package/dist/Menu/index.mjs +3 -1
- package/dist/Menu-cjs.js +7 -194
- package/dist/Menu-es.js +3 -190
- package/dist/Modal/index.cjs +1 -0
- package/dist/Modal/index.mjs +2 -1
- package/dist/Page/index.cjs +2 -0
- package/dist/Page/index.mjs +2 -0
- package/dist/Popover/index.cjs +2 -1
- package/dist/Popover/index.mjs +2 -1
- package/dist/Popover-cjs.js +8 -7
- package/dist/Popover-es.js +2 -1
- package/dist/Tooltip/index.cjs +2 -1
- package/dist/Tooltip/index.mjs +2 -1
- package/dist/Tooltip-cjs.js +7 -6
- package/dist/Tooltip-es.js +2 -1
- package/dist/floating-ui.react-cjs.js +218 -3104
- package/dist/floating-ui.react-dom-cjs.js +3000 -0
- package/dist/floating-ui.react-dom-es.js +2946 -0
- package/dist/floating-ui.react-es.js +177 -3054
- package/dist/index-cjs.js +166 -1161
- package/dist/index-cjs2.js +1189 -0
- package/dist/index-es.js +166 -1160
- package/dist/index-es2.js +1186 -0
- package/dist/index.cjs +4 -2
- package/dist/index.mjs +4 -2
- package/dist/primitives/index.cjs +2 -0
- package/dist/primitives/index.d.ts +7 -0
- package/dist/primitives/index.mjs +1 -0
- package/dist/unstyledPrimitives/index.cjs +10446 -0
- package/dist/unstyledPrimitives/index.d.ts +18 -0
- package/dist/unstyledPrimitives/index.mjs +10425 -0
- package/dist/useScrollToActive-cjs.js +5 -4
- package/dist/useScrollToActive-es.js +2 -1
- package/package.json +13 -2
- package/primitives.d.ts +1 -0
- package/primitives.js +17 -0
- package/unstyledPrimitives.d.ts +1 -0
- package/unstyledPrimitives.js +17 -0
|
@@ -9,8 +9,9 @@ import '@jobber/design';
|
|
|
9
9
|
import '../../../Typography-es.js';
|
|
10
10
|
import '../../../Tooltip-es.js';
|
|
11
11
|
import '../../../floating-ui.react-es.js';
|
|
12
|
-
import 'react
|
|
12
|
+
import '../../../floating-ui.react-dom-es.js';
|
|
13
13
|
import 'react-dom';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
14
15
|
import 'framer-motion';
|
|
15
16
|
import '@jobber/hooks';
|
|
16
17
|
import '../../../DataListActionsMenu-es.js';
|
|
@@ -15,8 +15,9 @@ require('@jobber/design');
|
|
|
15
15
|
require('../../../DataListActions-cjs.js');
|
|
16
16
|
require('../../../Tooltip-cjs.js');
|
|
17
17
|
require('../../../floating-ui.react-cjs.js');
|
|
18
|
-
require('react
|
|
18
|
+
require('../../../floating-ui.react-dom-cjs.js');
|
|
19
19
|
require('react-dom');
|
|
20
|
+
require('react/jsx-runtime');
|
|
20
21
|
require('@jobber/hooks');
|
|
21
22
|
require('../../../Button-cjs.js');
|
|
22
23
|
require('react-router-dom');
|
|
@@ -13,8 +13,9 @@ import '@jobber/design';
|
|
|
13
13
|
import '../../../DataListActions-es.js';
|
|
14
14
|
import '../../../Tooltip-es.js';
|
|
15
15
|
import '../../../floating-ui.react-es.js';
|
|
16
|
-
import 'react
|
|
16
|
+
import '../../../floating-ui.react-dom-es.js';
|
|
17
17
|
import 'react-dom';
|
|
18
|
+
import 'react/jsx-runtime';
|
|
18
19
|
import '@jobber/hooks';
|
|
19
20
|
import '../../../Button-es.js';
|
|
20
21
|
import 'react-router-dom';
|
|
@@ -16,8 +16,9 @@ require('@jobber/design');
|
|
|
16
16
|
require('../../../DataListActions-cjs.js');
|
|
17
17
|
require('../../../Tooltip-cjs.js');
|
|
18
18
|
require('../../../floating-ui.react-cjs.js');
|
|
19
|
-
require('react
|
|
19
|
+
require('../../../floating-ui.react-dom-cjs.js');
|
|
20
20
|
require('react-dom');
|
|
21
|
+
require('react/jsx-runtime');
|
|
21
22
|
require('@jobber/hooks');
|
|
22
23
|
require('../../../Button-cjs.js');
|
|
23
24
|
require('react-router-dom');
|
|
@@ -14,8 +14,9 @@ import '@jobber/design';
|
|
|
14
14
|
import '../../../DataListActions-es.js';
|
|
15
15
|
import '../../../Tooltip-es.js';
|
|
16
16
|
import '../../../floating-ui.react-es.js';
|
|
17
|
-
import 'react
|
|
17
|
+
import '../../../floating-ui.react-dom-es.js';
|
|
18
18
|
import 'react-dom';
|
|
19
|
+
import 'react/jsx-runtime';
|
|
19
20
|
import '@jobber/hooks';
|
|
20
21
|
import '../../../Button-es.js';
|
|
21
22
|
import 'react-router-dom';
|
|
@@ -16,8 +16,9 @@ require('@jobber/design');
|
|
|
16
16
|
require('../../../Typography-cjs.js');
|
|
17
17
|
require('../../../Tooltip-cjs.js');
|
|
18
18
|
require('../../../floating-ui.react-cjs.js');
|
|
19
|
-
require('react
|
|
19
|
+
require('../../../floating-ui.react-dom-cjs.js');
|
|
20
20
|
require('react-dom');
|
|
21
|
+
require('react/jsx-runtime');
|
|
21
22
|
require('framer-motion');
|
|
22
23
|
require('@jobber/hooks');
|
|
23
24
|
require('../../../DataListActionsMenu-cjs.js');
|
|
@@ -14,8 +14,9 @@ import '@jobber/design';
|
|
|
14
14
|
import '../../../Typography-es.js';
|
|
15
15
|
import '../../../Tooltip-es.js';
|
|
16
16
|
import '../../../floating-ui.react-es.js';
|
|
17
|
-
import 'react
|
|
17
|
+
import '../../../floating-ui.react-dom-es.js';
|
|
18
18
|
import 'react-dom';
|
|
19
|
+
import 'react/jsx-runtime';
|
|
19
20
|
import 'framer-motion';
|
|
20
21
|
import '@jobber/hooks';
|
|
21
22
|
import '../../../DataListActionsMenu-es.js';
|
package/dist/DataList/index.cjs
CHANGED
|
@@ -27,8 +27,9 @@ require('../DataListItemActions-cjs.js');
|
|
|
27
27
|
require('../DataListActions-cjs.js');
|
|
28
28
|
require('../Tooltip-cjs.js');
|
|
29
29
|
require('../floating-ui.react-cjs.js');
|
|
30
|
-
require('react
|
|
30
|
+
require('../floating-ui.react-dom-cjs.js');
|
|
31
31
|
require('react-dom');
|
|
32
|
+
require('react/jsx-runtime');
|
|
32
33
|
require('@jobber/hooks');
|
|
33
34
|
require('../Button-cjs.js');
|
|
34
35
|
require('react-router-dom');
|
package/dist/DataList/index.mjs
CHANGED
|
@@ -25,8 +25,9 @@ import '../DataListItemActions-es.js';
|
|
|
25
25
|
import '../DataListActions-es.js';
|
|
26
26
|
import '../Tooltip-es.js';
|
|
27
27
|
import '../floating-ui.react-es.js';
|
|
28
|
-
import 'react
|
|
28
|
+
import '../floating-ui.react-dom-es.js';
|
|
29
29
|
import 'react-dom';
|
|
30
|
+
import 'react/jsx-runtime';
|
|
30
31
|
import '@jobber/hooks';
|
|
31
32
|
import '../Button-es.js';
|
|
32
33
|
import 'react-router-dom';
|
|
@@ -5,8 +5,9 @@ require('react');
|
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('../clsx-cjs.js');
|
|
7
7
|
require('../floating-ui.react-cjs.js');
|
|
8
|
-
require('react
|
|
8
|
+
require('../floating-ui.react-dom-cjs.js');
|
|
9
9
|
require('react-dom');
|
|
10
|
+
require('react/jsx-runtime');
|
|
10
11
|
require('@jobber/hooks');
|
|
11
12
|
require('../Typography-cjs.js');
|
|
12
13
|
require('../Button-cjs.js');
|
|
@@ -3,8 +3,9 @@ import 'react';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../clsx-es.js';
|
|
5
5
|
import '../floating-ui.react-es.js';
|
|
6
|
-
import 'react
|
|
6
|
+
import '../floating-ui.react-dom-es.js';
|
|
7
7
|
import 'react-dom';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
8
9
|
import '@jobber/hooks';
|
|
9
10
|
import '../Typography-es.js';
|
|
10
11
|
import '../Button-es.js';
|
package/dist/DatePicker-cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ var classnames = require('classnames');
|
|
|
5
5
|
var clsx = require('./clsx-cjs.js');
|
|
6
6
|
var floatingUi_react = require('./floating-ui.react-cjs.js');
|
|
7
7
|
var ReactDOM = require('react-dom');
|
|
8
|
+
var floatingUi_reactDom = require('./floating-ui.react-dom-cjs.js');
|
|
8
9
|
var jobberHooks = require('@jobber/hooks');
|
|
9
10
|
var Typography = require('./Typography-cjs.js');
|
|
10
11
|
var Button = require('./Button-cjs.js');
|
|
@@ -11622,10 +11623,10 @@ function withFloating(Component) {
|
|
|
11622
11623
|
var _a;
|
|
11623
11624
|
var hidePopper = typeof props.hidePopper === "boolean" ? props.hidePopper : true;
|
|
11624
11625
|
var arrowRef = React.useRef(null);
|
|
11625
|
-
var floatingProps = floatingUi_react.useFloating(_assign({ open: !hidePopper, whileElementsMounted:
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11626
|
+
var floatingProps = floatingUi_react.useFloating(_assign({ open: !hidePopper, whileElementsMounted: floatingUi_reactDom.autoUpdate, placement: props.popperPlacement, middleware: __spreadArray([
|
|
11627
|
+
floatingUi_reactDom.flip({ padding: 15 }),
|
|
11628
|
+
floatingUi_reactDom.offset(10),
|
|
11629
|
+
floatingUi_reactDom.arrow({ element: arrowRef })
|
|
11629
11630
|
], ((_a = props.popperModifiers) !== null && _a !== void 0 ? _a : []), true) }, props.popperProps));
|
|
11630
11631
|
var componentProps = _assign(_assign({}, props), { hidePopper: hidePopper, popperProps: _assign(_assign({}, floatingProps), { arrowRef: arrowRef }) });
|
|
11631
11632
|
return React.createElement(Component, _assign({}, componentProps));
|
package/dist/DatePicker-es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React__default, { cloneElement, Component, createRef, useRef, useCallback, useEffect, createElement, forwardRef, isValidElement, useState, useId } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { c as clsx } from './clsx-es.js';
|
|
4
|
-
import { u as useFloating,
|
|
4
|
+
import { u as useFloating, m as FloatingArrow, b as useFloatingNodeId, a as useFloatingParentNodeId, e as FloatingTree, f as FloatingNode, F as FloatingPortal } from './floating-ui.react-es.js';
|
|
5
5
|
import ReactDOM__default from 'react-dom';
|
|
6
|
+
import { q as autoUpdate, n as flip, v as offset, o as arrow } from './floating-ui.react-dom-es.js';
|
|
6
7
|
import { useRefocusOnActivator } from '@jobber/hooks';
|
|
7
8
|
import { T as Typography } from './Typography-es.js';
|
|
8
9
|
import { B as Button } from './Button-es.js';
|
|
@@ -25,6 +25,7 @@ require('../ButtonDismiss-cjs.js');
|
|
|
25
25
|
require('../noop-cjs.js');
|
|
26
26
|
require('../_commonjsHelpers-cjs.js');
|
|
27
27
|
require('../floating-ui.react-cjs.js');
|
|
28
|
+
require('../floating-ui.react-dom-cjs.js');
|
|
28
29
|
require('react/jsx-runtime');
|
|
29
30
|
require('../identity-cjs.js');
|
|
30
31
|
require('../isTypedArray-cjs.js');
|
|
@@ -23,6 +23,7 @@ import '../ButtonDismiss-es.js';
|
|
|
23
23
|
import '../noop-es.js';
|
|
24
24
|
import '../_commonjsHelpers-es.js';
|
|
25
25
|
import '../floating-ui.react-es.js';
|
|
26
|
+
import '../floating-ui.react-dom-es.js';
|
|
26
27
|
import 'react/jsx-runtime';
|
|
27
28
|
import '../identity-es.js';
|
|
28
29
|
import '../isTypedArray-es.js';
|
package/dist/Gallery/index.cjs
CHANGED
|
@@ -36,6 +36,7 @@ require('../ProgressBar-cjs.js');
|
|
|
36
36
|
require('../ConfirmationModal-cjs.js');
|
|
37
37
|
require('../Modal/index.cjs');
|
|
38
38
|
require('../floating-ui.react-cjs.js');
|
|
39
|
+
require('../floating-ui.react-dom-cjs.js');
|
|
39
40
|
require('react/jsx-runtime');
|
|
40
41
|
require('../AtlantisPortalContent-cjs.js');
|
|
41
42
|
require('../Markdown-cjs.js');
|
package/dist/Gallery/index.mjs
CHANGED
|
@@ -34,6 +34,7 @@ import '../ProgressBar-es.js';
|
|
|
34
34
|
import '../ConfirmationModal-es.js';
|
|
35
35
|
import '../Modal/index.mjs';
|
|
36
36
|
import '../floating-ui.react-es.js';
|
|
37
|
+
import '../floating-ui.react-dom-es.js';
|
|
37
38
|
import 'react/jsx-runtime';
|
|
38
39
|
import '../AtlantisPortalContent-es.js';
|
|
39
40
|
import '../Markdown-es.js';
|
|
@@ -9,7 +9,7 @@ require('color');
|
|
|
9
9
|
require('../Icon-cjs.js');
|
|
10
10
|
require('@jobber/design');
|
|
11
11
|
require('../InputFile-cjs.js');
|
|
12
|
-
require('../index-
|
|
12
|
+
require('../index-cjs2.js');
|
|
13
13
|
require('../_commonjsHelpers-cjs.js');
|
|
14
14
|
require('axios');
|
|
15
15
|
require('../Text-cjs.js');
|
package/dist/InputDate/index.cjs
CHANGED
|
@@ -32,8 +32,9 @@ require('../Spinner-cjs.js');
|
|
|
32
32
|
require('react-router-dom');
|
|
33
33
|
require('../clsx-cjs.js');
|
|
34
34
|
require('../floating-ui.react-cjs.js');
|
|
35
|
-
require('react
|
|
35
|
+
require('../floating-ui.react-dom-cjs.js');
|
|
36
36
|
require('react-dom');
|
|
37
|
+
require('react/jsx-runtime');
|
|
37
38
|
require('../AtlantisContext-cjs.js');
|
|
38
39
|
require('../filterDataAttributes-cjs.js');
|
|
39
40
|
|
package/dist/InputDate/index.mjs
CHANGED
|
@@ -30,8 +30,9 @@ import '../Spinner-es.js';
|
|
|
30
30
|
import 'react-router-dom';
|
|
31
31
|
import '../clsx-es.js';
|
|
32
32
|
import '../floating-ui.react-es.js';
|
|
33
|
-
import 'react
|
|
33
|
+
import '../floating-ui.react-dom-es.js';
|
|
34
34
|
import 'react-dom';
|
|
35
|
+
import 'react/jsx-runtime';
|
|
35
36
|
import '../AtlantisContext-es.js';
|
|
36
37
|
import '../filterDataAttributes-es.js';
|
|
37
38
|
|
package/dist/InputFile/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var InputFile = require('../InputFile-cjs.js');
|
|
|
4
4
|
require('../tslib.es6-cjs.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('classnames');
|
|
7
|
-
require('../index-
|
|
7
|
+
require('../index-cjs2.js');
|
|
8
8
|
require('../_commonjsHelpers-cjs.js');
|
|
9
9
|
require('axios');
|
|
10
10
|
require('../Text-cjs.js');
|
package/dist/InputFile/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ export { I as InputFile, a as InputFileContentContext, u as updateFiles, b as us
|
|
|
2
2
|
import '../tslib.es6-es.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-es2.js';
|
|
6
6
|
import '../_commonjsHelpers-es.js';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import '../Text-es.js';
|
package/dist/InputFile-cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib_es6 = require('./tslib.es6-cjs.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-cjs2.js');
|
|
7
7
|
var axios = require('axios');
|
|
8
8
|
var Text = require('./Text-cjs.js');
|
|
9
9
|
var Button = require('./Button-cjs.js');
|
package/dist/InputFile-es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __awaiter, b as __generator, c as __spread, _ as __rest } from './tslib.es6-es.js';
|
|
2
2
|
import React__default, { useMemo, useRef, useReducer, useEffect, useCallback, forwardRef, useImperativeHandle, Fragment, createContext, useContext } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import { P as PropTypes } from './index-
|
|
4
|
+
import { P as PropTypes } from './index-es2.js';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { T as Text } from './Text-es.js';
|
|
7
7
|
import { B as Button } from './Button-es.js';
|
package/dist/Menu/index.cjs
CHANGED
|
@@ -6,10 +6,12 @@ require('classnames');
|
|
|
6
6
|
require('framer-motion');
|
|
7
7
|
require('@jobber/hooks');
|
|
8
8
|
require('../floating-ui.react-cjs.js');
|
|
9
|
-
require('react
|
|
9
|
+
require('../floating-ui.react-dom-cjs.js');
|
|
10
10
|
require('react-dom');
|
|
11
|
+
require('react/jsx-runtime');
|
|
11
12
|
require('../Text-cjs2.js');
|
|
12
13
|
require('../clsx-cjs.js');
|
|
14
|
+
require('../index-cjs.js');
|
|
13
15
|
require('../Button-cjs.js');
|
|
14
16
|
require('react-router-dom');
|
|
15
17
|
require('../tslib.es6-cjs.js');
|
package/dist/Menu/index.mjs
CHANGED
|
@@ -4,10 +4,12 @@ import 'classnames';
|
|
|
4
4
|
import 'framer-motion';
|
|
5
5
|
import '@jobber/hooks';
|
|
6
6
|
import '../floating-ui.react-es.js';
|
|
7
|
-
import 'react
|
|
7
|
+
import '../floating-ui.react-dom-es.js';
|
|
8
8
|
import 'react-dom';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
9
10
|
import '../Text-es2.js';
|
|
10
11
|
import '../clsx-es.js';
|
|
12
|
+
import '../index-es.js';
|
|
11
13
|
import '../Button-es.js';
|
|
12
14
|
import 'react-router-dom';
|
|
13
15
|
import '../tslib.es6-es.js';
|
package/dist/Menu-cjs.js
CHANGED
|
@@ -7,11 +7,13 @@ var jobberHooks = require('@jobber/hooks');
|
|
|
7
7
|
var floatingUi_react = require('./floating-ui.react-cjs.js');
|
|
8
8
|
var Text = require('./Text-cjs2.js');
|
|
9
9
|
var ReactDOM = require('react-dom');
|
|
10
|
+
var index = require('./index-cjs.js');
|
|
10
11
|
var Button = require('./Button-cjs.js');
|
|
11
12
|
var Typography = require('./Typography-cjs.js');
|
|
12
13
|
var Icon = require('./Icon-cjs.js');
|
|
13
14
|
var useFormFieldFocus = require('./useFormFieldFocus-cjs.js');
|
|
14
15
|
var maxHeight = require('./maxHeight-cjs.js');
|
|
16
|
+
var floatingUi_reactDom = require('./floating-ui.react-dom-cjs.js');
|
|
15
17
|
|
|
16
18
|
/*
|
|
17
19
|
* Copyright 2025 Adobe. All rights reserved.
|
|
@@ -6671,195 +6673,6 @@ function $e948873055cbafe4$export$727c8fc270210f13(props) {
|
|
|
6671
6673
|
]);
|
|
6672
6674
|
}
|
|
6673
6675
|
|
|
6674
|
-
var shim = {exports: {}};
|
|
6675
|
-
|
|
6676
|
-
var useSyncExternalStoreShim_production = {};
|
|
6677
|
-
|
|
6678
|
-
/**
|
|
6679
|
-
* @license React
|
|
6680
|
-
* use-sync-external-store-shim.production.js
|
|
6681
|
-
*
|
|
6682
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6683
|
-
*
|
|
6684
|
-
* This source code is licensed under the MIT license found in the
|
|
6685
|
-
* LICENSE file in the root directory of this source tree.
|
|
6686
|
-
*/
|
|
6687
|
-
|
|
6688
|
-
var hasRequiredUseSyncExternalStoreShim_production;
|
|
6689
|
-
|
|
6690
|
-
function requireUseSyncExternalStoreShim_production () {
|
|
6691
|
-
if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
|
|
6692
|
-
hasRequiredUseSyncExternalStoreShim_production = 1;
|
|
6693
|
-
var React$1 = React;
|
|
6694
|
-
function is(x, y) {
|
|
6695
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
6696
|
-
}
|
|
6697
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
6698
|
-
useState = React$1.useState,
|
|
6699
|
-
useEffect = React$1.useEffect,
|
|
6700
|
-
useLayoutEffect = React$1.useLayoutEffect,
|
|
6701
|
-
useDebugValue = React$1.useDebugValue;
|
|
6702
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
6703
|
-
var value = getSnapshot(),
|
|
6704
|
-
_useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
|
|
6705
|
-
inst = _useState[0].inst,
|
|
6706
|
-
forceUpdate = _useState[1];
|
|
6707
|
-
useLayoutEffect(
|
|
6708
|
-
function () {
|
|
6709
|
-
inst.value = value;
|
|
6710
|
-
inst.getSnapshot = getSnapshot;
|
|
6711
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
6712
|
-
},
|
|
6713
|
-
[subscribe, value, getSnapshot]
|
|
6714
|
-
);
|
|
6715
|
-
useEffect(
|
|
6716
|
-
function () {
|
|
6717
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
6718
|
-
return subscribe(function () {
|
|
6719
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
6720
|
-
});
|
|
6721
|
-
},
|
|
6722
|
-
[subscribe]
|
|
6723
|
-
);
|
|
6724
|
-
useDebugValue(value);
|
|
6725
|
-
return value;
|
|
6726
|
-
}
|
|
6727
|
-
function checkIfSnapshotChanged(inst) {
|
|
6728
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
6729
|
-
inst = inst.value;
|
|
6730
|
-
try {
|
|
6731
|
-
var nextValue = latestGetSnapshot();
|
|
6732
|
-
return !objectIs(inst, nextValue);
|
|
6733
|
-
} catch (error) {
|
|
6734
|
-
return !0;
|
|
6735
|
-
}
|
|
6736
|
-
}
|
|
6737
|
-
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
6738
|
-
return getSnapshot();
|
|
6739
|
-
}
|
|
6740
|
-
var shim =
|
|
6741
|
-
"undefined" === typeof window ||
|
|
6742
|
-
"undefined" === typeof window.document ||
|
|
6743
|
-
"undefined" === typeof window.document.createElement
|
|
6744
|
-
? useSyncExternalStore$1
|
|
6745
|
-
: useSyncExternalStore$2;
|
|
6746
|
-
useSyncExternalStoreShim_production.useSyncExternalStore =
|
|
6747
|
-
void 0 !== React$1.useSyncExternalStore ? React$1.useSyncExternalStore : shim;
|
|
6748
|
-
return useSyncExternalStoreShim_production;
|
|
6749
|
-
}
|
|
6750
|
-
|
|
6751
|
-
var useSyncExternalStoreShim_development = {};
|
|
6752
|
-
|
|
6753
|
-
/**
|
|
6754
|
-
* @license React
|
|
6755
|
-
* use-sync-external-store-shim.development.js
|
|
6756
|
-
*
|
|
6757
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6758
|
-
*
|
|
6759
|
-
* This source code is licensed under the MIT license found in the
|
|
6760
|
-
* LICENSE file in the root directory of this source tree.
|
|
6761
|
-
*/
|
|
6762
|
-
|
|
6763
|
-
var hasRequiredUseSyncExternalStoreShim_development;
|
|
6764
|
-
|
|
6765
|
-
function requireUseSyncExternalStoreShim_development () {
|
|
6766
|
-
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
6767
|
-
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
6768
|
-
"production" !== process.env.NODE_ENV &&
|
|
6769
|
-
(function () {
|
|
6770
|
-
function is(x, y) {
|
|
6771
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
6772
|
-
}
|
|
6773
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
6774
|
-
didWarnOld18Alpha ||
|
|
6775
|
-
void 0 === React$1.startTransition ||
|
|
6776
|
-
((didWarnOld18Alpha = !0),
|
|
6777
|
-
console.error(
|
|
6778
|
-
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
6779
|
-
));
|
|
6780
|
-
var value = getSnapshot();
|
|
6781
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
6782
|
-
var cachedValue = getSnapshot();
|
|
6783
|
-
objectIs(value, cachedValue) ||
|
|
6784
|
-
(console.error(
|
|
6785
|
-
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
6786
|
-
),
|
|
6787
|
-
(didWarnUncachedGetSnapshot = !0));
|
|
6788
|
-
}
|
|
6789
|
-
cachedValue = useState({
|
|
6790
|
-
inst: { value: value, getSnapshot: getSnapshot }
|
|
6791
|
-
});
|
|
6792
|
-
var inst = cachedValue[0].inst,
|
|
6793
|
-
forceUpdate = cachedValue[1];
|
|
6794
|
-
useLayoutEffect(
|
|
6795
|
-
function () {
|
|
6796
|
-
inst.value = value;
|
|
6797
|
-
inst.getSnapshot = getSnapshot;
|
|
6798
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
6799
|
-
},
|
|
6800
|
-
[subscribe, value, getSnapshot]
|
|
6801
|
-
);
|
|
6802
|
-
useEffect(
|
|
6803
|
-
function () {
|
|
6804
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
6805
|
-
return subscribe(function () {
|
|
6806
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
6807
|
-
});
|
|
6808
|
-
},
|
|
6809
|
-
[subscribe]
|
|
6810
|
-
);
|
|
6811
|
-
useDebugValue(value);
|
|
6812
|
-
return value;
|
|
6813
|
-
}
|
|
6814
|
-
function checkIfSnapshotChanged(inst) {
|
|
6815
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
6816
|
-
inst = inst.value;
|
|
6817
|
-
try {
|
|
6818
|
-
var nextValue = latestGetSnapshot();
|
|
6819
|
-
return !objectIs(inst, nextValue);
|
|
6820
|
-
} catch (error) {
|
|
6821
|
-
return !0;
|
|
6822
|
-
}
|
|
6823
|
-
}
|
|
6824
|
-
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
6825
|
-
return getSnapshot();
|
|
6826
|
-
}
|
|
6827
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
6828
|
-
"function" ===
|
|
6829
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
6830
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
6831
|
-
var React$1 = React,
|
|
6832
|
-
objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
6833
|
-
useState = React$1.useState,
|
|
6834
|
-
useEffect = React$1.useEffect,
|
|
6835
|
-
useLayoutEffect = React$1.useLayoutEffect,
|
|
6836
|
-
useDebugValue = React$1.useDebugValue,
|
|
6837
|
-
didWarnOld18Alpha = !1,
|
|
6838
|
-
didWarnUncachedGetSnapshot = !1,
|
|
6839
|
-
shim =
|
|
6840
|
-
"undefined" === typeof window ||
|
|
6841
|
-
"undefined" === typeof window.document ||
|
|
6842
|
-
"undefined" === typeof window.document.createElement
|
|
6843
|
-
? useSyncExternalStore$1
|
|
6844
|
-
: useSyncExternalStore$2;
|
|
6845
|
-
useSyncExternalStoreShim_development.useSyncExternalStore =
|
|
6846
|
-
void 0 !== React$1.useSyncExternalStore ? React$1.useSyncExternalStore : shim;
|
|
6847
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
6848
|
-
"function" ===
|
|
6849
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
6850
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
6851
|
-
})();
|
|
6852
|
-
return useSyncExternalStoreShim_development;
|
|
6853
|
-
}
|
|
6854
|
-
|
|
6855
|
-
if (process.env.NODE_ENV === 'production') {
|
|
6856
|
-
shim.exports = requireUseSyncExternalStoreShim_production();
|
|
6857
|
-
} else {
|
|
6858
|
-
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
6859
|
-
}
|
|
6860
|
-
|
|
6861
|
-
var shimExports = shim.exports;
|
|
6862
|
-
|
|
6863
6676
|
/*
|
|
6864
6677
|
* Copyright 2024 Adobe. All rights reserved.
|
|
6865
6678
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -6922,7 +6735,7 @@ function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapsh
|
|
|
6922
6735
|
getSnapshot,
|
|
6923
6736
|
getServerSnapshot
|
|
6924
6737
|
]);
|
|
6925
|
-
return (shimExports.useSyncExternalStore)(subscribe, getSnapshotWrapper);
|
|
6738
|
+
return (index.shimExports.useSyncExternalStore)(subscribe, getSnapshotWrapper);
|
|
6926
6739
|
}
|
|
6927
6740
|
const $e1995378a142960e$var$useSyncExternalStore = typeof (React)['useSyncExternalStore'] === 'function' ? (React)['useSyncExternalStore'] : $e1995378a142960e$var$useSyncExternalStoreFallback;
|
|
6928
6741
|
function $e1995378a142960e$var$useCollectionDocument(createCollection) {
|
|
@@ -8542,9 +8355,9 @@ function MenuLegacy({ activator, items, UNSAFE_className, UNSAFE_style, }) {
|
|
|
8542
8355
|
const middleware = React.useMemo(() => {
|
|
8543
8356
|
if (isLargeScreen) {
|
|
8544
8357
|
return [
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8358
|
+
floatingUi_reactDom.offset(MENU_OFFSET),
|
|
8359
|
+
floatingUi_reactDom.flip({ fallbackPlacements: ["bottom-end", "top-start", "top-end"] }),
|
|
8360
|
+
floatingUi_reactDom.size({
|
|
8548
8361
|
apply({ availableHeight, elements }) {
|
|
8549
8362
|
// The inner element is the scrollable menu that requires the max height
|
|
8550
8363
|
const menuElement = elements.floating.querySelector('[role="menu"]');
|
|
@@ -8575,7 +8388,7 @@ function MenuLegacy({ activator, items, UNSAFE_className, UNSAFE_style, }) {
|
|
|
8575
8388
|
elements: {
|
|
8576
8389
|
reference: referenceElement,
|
|
8577
8390
|
},
|
|
8578
|
-
whileElementsMounted:
|
|
8391
|
+
whileElementsMounted: floatingUi_reactDom.autoUpdate,
|
|
8579
8392
|
});
|
|
8580
8393
|
const dismiss = floatingUi_react.useDismiss(context);
|
|
8581
8394
|
const listNavigation = floatingUi_react.useListNavigation(context, {
|