@jobber/components 9.6.1 → 9.6.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/Autocomplete/index.cjs +2 -0
- package/dist/Autocomplete/index.mjs +2 -0
- package/dist/Autocomplete-cjs.js +5 -4
- package/dist/Autocomplete-es.js +2 -1
- package/dist/Card/index.cjs +2 -1
- package/dist/Card/index.mjs +2 -1
- package/dist/Chip/index.cjs +2 -0
- package/dist/Chip/index.mjs +2 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -0
- package/dist/Chips/InternalChipDismissible/index.cjs +2 -0
- package/dist/Chips/InternalChipDismissible/index.mjs +2 -0
- package/dist/Chips/index.cjs +2 -0
- package/dist/Chips/index.mjs +2 -0
- package/dist/Combobox/index.cjs +4 -2
- package/dist/Combobox/index.mjs +4 -2
- package/dist/{ComboboxSeparator-cjs.js → ComboboxChipRemove-cjs.js} +455 -501
- package/dist/{ComboboxSeparator-es.js → ComboboxChipRemove-es.js} +456 -500
- package/dist/ComboboxPrimitive-cjs.js +30 -29
- package/dist/ComboboxPrimitive-es.js +3 -2
- package/dist/ConfirmationModal/index.cjs +2 -0
- package/dist/ConfirmationModal/index.mjs +2 -0
- package/dist/DataDump/index.cjs +2 -1
- package/dist/DataDump/index.mjs +2 -1
- package/dist/DataList/components/DataListActions/index.cjs +2 -0
- package/dist/DataList/components/DataListActions/index.mjs +2 -0
- package/dist/DataList/components/DataListBulkActions/index.cjs +2 -0
- package/dist/DataList/components/DataListBulkActions/index.mjs +2 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +2 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +2 -0
- package/dist/DataList/components/DataListFilters/index.cjs +2 -0
- package/dist/DataList/components/DataListFilters/index.mjs +2 -0
- package/dist/DataList/components/DataListHeader/index.cjs +2 -0
- package/dist/DataList/components/DataListHeader/index.mjs +2 -0
- package/dist/DataList/components/DataListItem/index.cjs +2 -0
- package/dist/DataList/components/DataListItem/index.mjs +2 -0
- package/dist/DataList/components/DataListItemActions/index.cjs +2 -0
- package/dist/DataList/components/DataListItemActions/index.mjs +2 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +2 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +2 -0
- package/dist/DataList/components/DataListItems/index.cjs +2 -0
- package/dist/DataList/components/DataListItems/index.mjs +2 -0
- package/dist/DataList/components/DataListLayout/index.cjs +2 -0
- package/dist/DataList/components/DataListLayout/index.mjs +2 -0
- package/dist/DataList/components/DataListLayoutActions/index.cjs +2 -0
- package/dist/DataList/components/DataListLayoutActions/index.mjs +2 -0
- package/dist/DataList/index.cjs +2 -0
- package/dist/DataList/index.mjs +2 -0
- package/dist/DatePicker/index.cjs +2 -0
- package/dist/DatePicker/index.mjs +2 -0
- package/dist/DatePicker-cjs.js +5 -4
- package/dist/DatePicker-es.js +2 -1
- package/dist/Dialog/index.cjs +2 -1
- package/dist/Dialog/index.mjs +2 -1
- package/dist/DrawerDescription-cjs.js +99 -268
- package/dist/DrawerDescription-es.js +103 -270
- package/dist/DrawerTitle-cjs.js +6 -2
- package/dist/DrawerTitle-es.js +7 -3
- package/dist/FieldDescription-cjs.js +181 -184
- package/dist/FieldDescription-es.js +184 -187
- package/dist/FilterPicker/components/FilterPickerActivator/index.cjs +2 -0
- package/dist/FilterPicker/components/FilterPickerActivator/index.mjs +2 -0
- package/dist/FilterPicker/components/FilterPickerContent/index.cjs +2 -0
- package/dist/FilterPicker/components/FilterPickerContent/index.mjs +2 -0
- package/dist/FilterPicker/components/FilterPickerTrigger/index.cjs +2 -0
- package/dist/FilterPicker/components/FilterPickerTrigger/index.mjs +2 -0
- package/dist/FilterPicker/index.cjs +2 -0
- package/dist/FilterPicker/index.mjs +2 -0
- package/dist/FilterPickerContent-cjs.js +5 -4
- package/dist/FilterPickerContent-es.js +2 -1
- package/dist/FormatFile/index.cjs +2 -0
- package/dist/FormatFile/index.mjs +2 -0
- package/dist/Gallery/index.cjs +2 -0
- package/dist/Gallery/index.mjs +2 -0
- package/dist/InputDate/index.cjs +2 -0
- package/dist/InputDate/index.mjs +2 -0
- package/dist/InputNumber/index.cjs +2 -1
- package/dist/InputNumber/index.mjs +2 -1
- package/dist/LightBox/index.cjs +2 -0
- package/dist/LightBox/index.mjs +2 -0
- package/dist/Menu/index.cjs +2 -1
- package/dist/Menu/index.mjs +2 -1
- package/dist/Menu-cjs.js +5 -4
- package/dist/Menu-es.js +2 -1
- package/dist/MenuSubmenuTrigger-cjs.js +164 -206
- package/dist/MenuSubmenuTrigger-es.js +152 -194
- package/dist/Modal/index.cjs +2 -0
- package/dist/Modal/index.mjs +3 -1
- package/dist/NumberFieldInput-cjs.js +308 -187
- package/dist/NumberFieldInput-es.js +308 -187
- package/dist/Page/index.cjs +2 -1
- package/dist/Page/index.mjs +2 -1
- package/dist/Popover/index.cjs +2 -0
- package/dist/Popover/index.mjs +2 -0
- package/dist/Popover-cjs.js +8 -7
- package/dist/Popover-es.js +2 -1
- package/dist/ScrollAreaViewport-cjs.js +1093 -747
- package/dist/ScrollAreaViewport-es.js +1081 -734
- package/dist/Select/index.cjs +2 -1
- package/dist/Select/index.mjs +2 -1
- package/dist/SelectGroupLabel-cjs.js +306 -207
- package/dist/SelectGroupLabel-es.js +302 -203
- package/dist/Tooltip/index.cjs +2 -0
- package/dist/Tooltip/index.mjs +2 -0
- package/dist/Tooltip-cjs.js +7 -6
- package/dist/Tooltip-es.js +2 -1
- package/dist/dialogReturnFocus-cjs.js +1 -1
- package/dist/dialogReturnFocus-es.js +2 -2
- package/dist/floating-ui.react-cjs.js +192 -2564
- package/dist/floating-ui.react-dom-cjs.js +2103 -0
- package/dist/floating-ui.react-dom-es.js +2072 -0
- package/dist/floating-ui.react-es.js +156 -2519
- package/dist/floating-ui.utils-cjs.js +342 -0
- package/dist/floating-ui.utils-es.js +300 -0
- package/dist/index.cjs +4 -3
- package/dist/index.mjs +4 -3
- package/dist/primitives/BottomSheet/index.cjs +1 -1
- package/dist/primitives/BottomSheet/index.mjs +1 -1
- package/dist/primitives/ComboboxPrimitive/index.cjs +4 -2
- package/dist/primitives/ComboboxPrimitive/index.mjs +4 -2
- package/dist/primitives/SelectPrimitive/index.cjs +2 -0
- package/dist/primitives/SelectPrimitive/index.mjs +2 -0
- package/dist/primitives/index.cjs +3 -2
- package/dist/primitives/index.mjs +3 -2
- package/dist/scrollEdges-cjs.js +11 -1
- package/dist/scrollEdges-es.js +11 -1
- package/dist/unstyledPrimitives/index.cjs +478 -720
- package/dist/unstyledPrimitives/index.mjs +421 -663
- package/dist/useCompositeListItem-cjs.js +361 -2108
- package/dist/useCompositeListItem-es.js +331 -2076
- package/dist/useLabel-cjs.js +3 -2
- package/dist/useLabel-es.js +3 -2
- package/dist/useRenderElement-cjs.js +7 -9
- package/dist/useRenderElement-es.js +7 -9
- package/dist/useScrollLock-cjs.js +344 -819
- package/dist/useScrollLock-es.js +296 -732
- package/dist/useScrollToActive-cjs.js +5 -4
- package/dist/useScrollToActive-es.js +2 -1
- package/package.json +3 -3
- package/dist/scrollable-cjs.js +0 -58
- package/dist/scrollable-es.js +0 -54
package/dist/index.mjs
CHANGED
|
@@ -102,8 +102,10 @@ import './keysIn-es.js';
|
|
|
102
102
|
import './_isIterateeCall-es.js';
|
|
103
103
|
import './_setToString-es.js';
|
|
104
104
|
import './floating-ui.react-es.js';
|
|
105
|
+
import './floating-ui.utils-es.js';
|
|
105
106
|
import 'react/jsx-runtime';
|
|
106
107
|
import 'react-dom';
|
|
108
|
+
import './floating-ui.react-dom-es.js';
|
|
107
109
|
import './maxHeight-es.js';
|
|
108
110
|
import './mergeRefs-es.js';
|
|
109
111
|
import './filterDataAttributes-es.js';
|
|
@@ -116,12 +118,12 @@ import './buttonRenderAdapter-es.js';
|
|
|
116
118
|
import './useRenderElement-es.js';
|
|
117
119
|
import './ComboboxPrimitive-es.js';
|
|
118
120
|
import './mergeClassName-es.js';
|
|
119
|
-
import './
|
|
121
|
+
import './ComboboxChipRemove-es.js';
|
|
120
122
|
import './useScrollLock-es.js';
|
|
121
123
|
import './useCompositeListItem-es.js';
|
|
122
124
|
import './stringifyLocale-es.js';
|
|
123
|
-
import './scrollable-es.js';
|
|
124
125
|
import './useLabel-es.js';
|
|
126
|
+
import './Separator-es.js';
|
|
125
127
|
import './HelperText-es.js';
|
|
126
128
|
import './FieldDescription-es.js';
|
|
127
129
|
import './useChildComponent-es.js';
|
|
@@ -183,7 +185,6 @@ import './DataListStatusBar-es.js';
|
|
|
183
185
|
import './ScrollAreaViewport-es.js';
|
|
184
186
|
import './scrollEdges-es.js';
|
|
185
187
|
import './OverlaySeparator-es.js';
|
|
186
|
-
import './Separator-es.js';
|
|
187
188
|
import './BottomSheet-es.js';
|
|
188
189
|
import './SelectPrimitive-es.js';
|
|
189
190
|
import './SelectGroupLabel-es.js';
|
|
@@ -13,10 +13,10 @@ require('../../Typography-cjs.js');
|
|
|
13
13
|
require('../../useRenderElement-cjs.js');
|
|
14
14
|
require('../../ScrollAreaViewport-cjs.js');
|
|
15
15
|
require('../../useScrollLock-cjs.js');
|
|
16
|
+
require('../../floating-ui.utils-cjs.js');
|
|
16
17
|
require('react/jsx-runtime');
|
|
17
18
|
require('react-dom');
|
|
18
19
|
require('../../scrollEdges-cjs.js');
|
|
19
|
-
require('../../scrollable-cjs.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -11,7 +11,7 @@ import '../../Typography-es.js';
|
|
|
11
11
|
import '../../useRenderElement-es.js';
|
|
12
12
|
import '../../ScrollAreaViewport-es.js';
|
|
13
13
|
import '../../useScrollLock-es.js';
|
|
14
|
+
import '../../floating-ui.utils-es.js';
|
|
14
15
|
import 'react/jsx-runtime';
|
|
15
16
|
import 'react-dom';
|
|
16
17
|
import '../../scrollEdges-es.js';
|
|
17
|
-
import '../../scrollable-es.js';
|
|
@@ -12,14 +12,16 @@ require('@jobber/design');
|
|
|
12
12
|
require('../../Typography-cjs.js');
|
|
13
13
|
require('../../useRenderElement-cjs.js');
|
|
14
14
|
require('../../mergeClassName-cjs.js');
|
|
15
|
-
require('../../
|
|
15
|
+
require('../../ComboboxChipRemove-cjs.js');
|
|
16
16
|
require('../../useScrollLock-cjs.js');
|
|
17
|
+
require('../../floating-ui.utils-cjs.js');
|
|
17
18
|
require('react/jsx-runtime');
|
|
18
19
|
require('react-dom');
|
|
19
20
|
require('../../useCompositeListItem-cjs.js');
|
|
21
|
+
require('../../floating-ui.react-dom-cjs.js');
|
|
20
22
|
require('../../stringifyLocale-cjs.js');
|
|
21
|
-
require('../../scrollable-cjs.js');
|
|
22
23
|
require('../../useLabel-cjs.js');
|
|
24
|
+
require('../../Separator-cjs.js');
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
|
|
@@ -10,11 +10,13 @@ import '@jobber/design';
|
|
|
10
10
|
import '../../Typography-es.js';
|
|
11
11
|
import '../../useRenderElement-es.js';
|
|
12
12
|
import '../../mergeClassName-es.js';
|
|
13
|
-
import '../../
|
|
13
|
+
import '../../ComboboxChipRemove-es.js';
|
|
14
14
|
import '../../useScrollLock-es.js';
|
|
15
|
+
import '../../floating-ui.utils-es.js';
|
|
15
16
|
import 'react/jsx-runtime';
|
|
16
17
|
import 'react-dom';
|
|
17
18
|
import '../../useCompositeListItem-es.js';
|
|
19
|
+
import '../../floating-ui.react-dom-es.js';
|
|
18
20
|
import '../../stringifyLocale-es.js';
|
|
19
|
-
import '../../scrollable-es.js';
|
|
20
21
|
import '../../useLabel-es.js';
|
|
22
|
+
import '../../Separator-es.js';
|
|
@@ -12,9 +12,11 @@ require('../../Separator-cjs.js');
|
|
|
12
12
|
require('../../useRenderElement-cjs.js');
|
|
13
13
|
require('../../SelectGroupLabel-cjs.js');
|
|
14
14
|
require('../../useScrollLock-cjs.js');
|
|
15
|
+
require('../../floating-ui.utils-cjs.js');
|
|
15
16
|
require('react/jsx-runtime');
|
|
16
17
|
require('react-dom');
|
|
17
18
|
require('../../useCompositeListItem-cjs.js');
|
|
19
|
+
require('../../floating-ui.react-dom-cjs.js');
|
|
18
20
|
require('../../scrollEdges-cjs.js');
|
|
19
21
|
|
|
20
22
|
|
|
@@ -10,7 +10,9 @@ import '../../Separator-es.js';
|
|
|
10
10
|
import '../../useRenderElement-es.js';
|
|
11
11
|
import '../../SelectGroupLabel-es.js';
|
|
12
12
|
import '../../useScrollLock-es.js';
|
|
13
|
+
import '../../floating-ui.utils-es.js';
|
|
13
14
|
import 'react/jsx-runtime';
|
|
14
15
|
import 'react-dom';
|
|
15
16
|
import '../../useCompositeListItem-es.js';
|
|
17
|
+
import '../../floating-ui.react-dom-es.js';
|
|
16
18
|
import '../../scrollEdges-es.js';
|
|
@@ -18,14 +18,15 @@ require('@jobber/design');
|
|
|
18
18
|
require('../Typography-cjs.js');
|
|
19
19
|
require('../ScrollAreaViewport-cjs.js');
|
|
20
20
|
require('../useScrollLock-cjs.js');
|
|
21
|
+
require('../floating-ui.utils-cjs.js');
|
|
21
22
|
require('react/jsx-runtime');
|
|
22
23
|
require('react-dom');
|
|
23
24
|
require('../scrollEdges-cjs.js');
|
|
24
|
-
require('../scrollable-cjs.js');
|
|
25
25
|
require('../Text-cjs.js');
|
|
26
26
|
require('../mergeClassName-cjs.js');
|
|
27
|
-
require('../
|
|
27
|
+
require('../ComboboxChipRemove-cjs.js');
|
|
28
28
|
require('../useCompositeListItem-cjs.js');
|
|
29
|
+
require('../floating-ui.react-dom-cjs.js');
|
|
29
30
|
require('../stringifyLocale-cjs.js');
|
|
30
31
|
require('../useLabel-cjs.js');
|
|
31
32
|
require('../SelectGroupLabel-cjs.js');
|
|
@@ -16,14 +16,15 @@ import '@jobber/design';
|
|
|
16
16
|
import '../Typography-es.js';
|
|
17
17
|
import '../ScrollAreaViewport-es.js';
|
|
18
18
|
import '../useScrollLock-es.js';
|
|
19
|
+
import '../floating-ui.utils-es.js';
|
|
19
20
|
import 'react/jsx-runtime';
|
|
20
21
|
import 'react-dom';
|
|
21
22
|
import '../scrollEdges-es.js';
|
|
22
|
-
import '../scrollable-es.js';
|
|
23
23
|
import '../Text-es.js';
|
|
24
24
|
import '../mergeClassName-es.js';
|
|
25
|
-
import '../
|
|
25
|
+
import '../ComboboxChipRemove-es.js';
|
|
26
26
|
import '../useCompositeListItem-es.js';
|
|
27
|
+
import '../floating-ui.react-dom-es.js';
|
|
27
28
|
import '../stringifyLocale-es.js';
|
|
28
29
|
import '../useLabel-es.js';
|
|
29
30
|
import '../SelectGroupLabel-es.js';
|
package/dist/scrollEdges-cjs.js
CHANGED
|
@@ -28,7 +28,10 @@ const ARROW_LEFT = 'ArrowLeft';
|
|
|
28
28
|
const ARROW_RIGHT = 'ArrowRight';
|
|
29
29
|
const HOME = 'Home';
|
|
30
30
|
const END = 'End';
|
|
31
|
-
const
|
|
31
|
+
const HORIZONTAL_KEYS = new Set([ARROW_LEFT, ARROW_RIGHT]);
|
|
32
|
+
const VERTICAL_KEYS = new Set([ARROW_UP, ARROW_DOWN]);
|
|
33
|
+
const ARROW_KEYS = new Set([...HORIZONTAL_KEYS, ...VERTICAL_KEYS]);
|
|
34
|
+
const COMPOSITE_KEYS = new Set([...ARROW_KEYS, HOME, END]);
|
|
32
35
|
|
|
33
36
|
function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
|
|
34
37
|
return Math.max(min, Math.min(val, max));
|
|
@@ -48,11 +51,18 @@ const styleDisableScrollbar = {
|
|
|
48
51
|
};
|
|
49
52
|
if (process.env.NODE_ENV !== "production") styleDisableScrollbar.getElement.displayName = "styleDisableScrollbar.getElement";
|
|
50
53
|
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
51
57
|
const CSPContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
52
58
|
if (process.env.NODE_ENV !== "production") CSPContext.displayName = "CSPContext";
|
|
53
59
|
const DEFAULT_CSP_CONTEXT_VALUE = {
|
|
54
60
|
disableStyleElements: false
|
|
55
61
|
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
56
66
|
function useCSPContext() {
|
|
57
67
|
return React__namespace.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
|
|
58
68
|
}
|
package/dist/scrollEdges-es.js
CHANGED
|
@@ -7,7 +7,10 @@ const ARROW_LEFT = 'ArrowLeft';
|
|
|
7
7
|
const ARROW_RIGHT = 'ArrowRight';
|
|
8
8
|
const HOME = 'Home';
|
|
9
9
|
const END = 'End';
|
|
10
|
-
const
|
|
10
|
+
const HORIZONTAL_KEYS = new Set([ARROW_LEFT, ARROW_RIGHT]);
|
|
11
|
+
const VERTICAL_KEYS = new Set([ARROW_UP, ARROW_DOWN]);
|
|
12
|
+
const ARROW_KEYS = new Set([...HORIZONTAL_KEYS, ...VERTICAL_KEYS]);
|
|
13
|
+
const COMPOSITE_KEYS = new Set([...ARROW_KEYS, HOME, END]);
|
|
11
14
|
|
|
12
15
|
function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
|
|
13
16
|
return Math.max(min, Math.min(val, max));
|
|
@@ -27,11 +30,18 @@ const styleDisableScrollbar = {
|
|
|
27
30
|
};
|
|
28
31
|
if (process.env.NODE_ENV !== "production") styleDisableScrollbar.getElement.displayName = "styleDisableScrollbar.getElement";
|
|
29
32
|
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
30
36
|
const CSPContext = /*#__PURE__*/React.createContext(undefined);
|
|
31
37
|
if (process.env.NODE_ENV !== "production") CSPContext.displayName = "CSPContext";
|
|
32
38
|
const DEFAULT_CSP_CONTEXT_VALUE = {
|
|
33
39
|
disableStyleElements: false
|
|
34
40
|
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
35
45
|
function useCSPContext() {
|
|
36
46
|
return React.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
|
|
37
47
|
}
|