@jobber/components 9.5.3 → 9.6.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/Combobox.d.ts +1 -0
- package/Combobox.js +17 -0
- package/dist/Autocomplete/index.cjs +0 -2
- package/dist/Autocomplete/index.mjs +0 -2
- package/dist/Autocomplete-cjs.js +4 -5
- package/dist/Autocomplete-es.js +1 -2
- package/dist/Card/index.cjs +2 -2
- package/dist/Card/index.mjs +2 -2
- package/dist/Chip/index.cjs +0 -2
- package/dist/Chip/index.mjs +0 -2
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +0 -2
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +0 -2
- package/dist/Chips/InternalChipDismissible/index.cjs +0 -2
- package/dist/Chips/InternalChipDismissible/index.mjs +0 -2
- package/dist/Chips/index.cjs +0 -2
- package/dist/Chips/index.mjs +0 -2
- package/dist/Combobox/Combobox.contentSlots.d.ts +5 -0
- package/dist/Combobox/Combobox.context.d.ts +34 -0
- package/dist/Combobox/Combobox.d.ts +69 -0
- package/dist/Combobox/Combobox.footer.d.ts +7 -0
- package/dist/Combobox/Combobox.items.d.ts +25 -0
- package/dist/Combobox/Combobox.responsive.d.ts +54 -0
- package/dist/Combobox/Combobox.selectAll.d.ts +4 -0
- package/dist/Combobox/Combobox.slotFactory.d.ts +7 -0
- package/dist/Combobox/Combobox.testUtils.d.ts +12 -0
- package/dist/Combobox/Combobox.types.d.ts +166 -0
- package/dist/Combobox/index.cjs +35 -0
- package/dist/Combobox/index.d.ts +2 -0
- package/dist/Combobox/index.mjs +29 -0
- package/dist/Combobox-cjs.js +675 -0
- package/dist/Combobox-es.js +673 -0
- package/dist/ComboboxPrimitive-cjs.js +88 -47
- package/dist/ComboboxPrimitive-es.js +39 -23
- package/dist/{ComboboxChipRemove-cjs.js → ComboboxSeparator-cjs.js} +501 -455
- package/dist/{ComboboxChipRemove-es.js → ComboboxSeparator-es.js} +500 -456
- package/dist/ConfirmationModal/index.cjs +0 -2
- package/dist/ConfirmationModal/index.mjs +0 -2
- package/dist/ContentBlock/index.cjs +1 -0
- package/dist/ContentBlock/index.mjs +1 -0
- package/dist/ContentBlock-cjs.js +2 -18
- package/dist/ContentBlock-es.js +1 -17
- package/dist/DataDump/index.cjs +2 -2
- package/dist/DataDump/index.mjs +2 -2
- package/dist/DataList/components/DataListActions/index.cjs +0 -2
- package/dist/DataList/components/DataListActions/index.mjs +0 -2
- package/dist/DataList/components/DataListBulkActions/index.cjs +0 -2
- package/dist/DataList/components/DataListBulkActions/index.mjs +0 -2
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +0 -2
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +0 -2
- package/dist/DataList/components/DataListFilters/index.cjs +0 -2
- package/dist/DataList/components/DataListFilters/index.mjs +0 -2
- package/dist/DataList/components/DataListHeader/index.cjs +0 -2
- package/dist/DataList/components/DataListHeader/index.mjs +0 -2
- package/dist/DataList/components/DataListItem/index.cjs +0 -2
- package/dist/DataList/components/DataListItem/index.mjs +0 -2
- package/dist/DataList/components/DataListItemActions/index.cjs +0 -2
- package/dist/DataList/components/DataListItemActions/index.mjs +0 -2
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +0 -2
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +0 -2
- package/dist/DataList/components/DataListItems/index.cjs +0 -2
- package/dist/DataList/components/DataListItems/index.mjs +0 -2
- package/dist/DataList/components/DataListLayout/index.cjs +0 -2
- package/dist/DataList/components/DataListLayout/index.mjs +0 -2
- package/dist/DataList/components/DataListLayoutActions/index.cjs +0 -2
- package/dist/DataList/components/DataListLayoutActions/index.mjs +0 -2
- package/dist/DataList/index.cjs +0 -2
- package/dist/DataList/index.mjs +0 -2
- package/dist/DatePicker/index.cjs +0 -2
- package/dist/DatePicker/index.mjs +0 -2
- package/dist/DatePicker-cjs.js +4 -5
- package/dist/DatePicker-es.js +1 -2
- package/dist/Dialog/index.cjs +2 -2
- package/dist/Dialog/index.mjs +2 -2
- package/dist/DrawerDescription-cjs.js +268 -99
- package/dist/DrawerDescription-es.js +270 -103
- package/dist/DrawerTitle-cjs.js +2 -6
- package/dist/DrawerTitle-es.js +3 -7
- package/dist/FieldDescription-cjs.js +184 -181
- package/dist/FieldDescription-es.js +187 -184
- package/dist/FilterPicker/components/FilterPickerActivator/index.cjs +0 -2
- package/dist/FilterPicker/components/FilterPickerActivator/index.mjs +0 -2
- package/dist/FilterPicker/components/FilterPickerContent/index.cjs +0 -2
- package/dist/FilterPicker/components/FilterPickerContent/index.mjs +0 -2
- package/dist/FilterPicker/components/FilterPickerTrigger/index.cjs +0 -2
- package/dist/FilterPicker/components/FilterPickerTrigger/index.mjs +0 -2
- package/dist/FilterPicker/index.cjs +0 -2
- package/dist/FilterPicker/index.mjs +0 -2
- package/dist/FilterPickerContent-cjs.js +4 -5
- package/dist/FilterPickerContent-es.js +1 -2
- package/dist/FormatFile/index.cjs +0 -2
- package/dist/FormatFile/index.mjs +0 -2
- package/dist/Gallery/index.cjs +0 -2
- package/dist/Gallery/index.mjs +0 -2
- package/dist/InputDate/index.cjs +0 -2
- package/dist/InputDate/index.mjs +0 -2
- package/dist/InputNumber/index.cjs +2 -2
- package/dist/InputNumber/index.mjs +2 -2
- package/dist/InputNumber/types.d.ts +5 -0
- package/dist/InputNumber-cjs.js +2 -2
- package/dist/InputNumber-es.js +2 -2
- package/dist/LightBox/index.cjs +0 -2
- package/dist/LightBox/index.mjs +0 -2
- package/dist/Menu/index.cjs +2 -2
- package/dist/Menu/index.mjs +2 -2
- package/dist/Menu-cjs.js +4 -5
- package/dist/Menu-es.js +1 -2
- package/dist/MenuSubmenuTrigger-cjs.js +206 -164
- package/dist/MenuSubmenuTrigger-es.js +194 -152
- package/dist/Modal/index.cjs +0 -2
- package/dist/Modal/index.mjs +1 -3
- package/dist/NumberFieldInput-cjs.js +187 -308
- package/dist/NumberFieldInput-es.js +187 -308
- package/dist/Page/index.cjs +2 -2
- package/dist/Page/index.mjs +2 -2
- package/dist/Popover/index.cjs +0 -2
- package/dist/Popover/index.mjs +0 -2
- package/dist/Popover-cjs.js +7 -8
- package/dist/Popover-es.js +1 -2
- package/dist/ScrollAreaViewport-cjs.js +747 -1093
- package/dist/ScrollAreaViewport-es.js +734 -1081
- package/dist/Select/index.cjs +2 -2
- package/dist/Select/index.mjs +2 -2
- package/dist/SelectGroupLabel-cjs.js +207 -306
- package/dist/SelectGroupLabel-es.js +203 -302
- package/dist/SelectPrimitive-cjs.js +11 -17
- package/dist/SelectPrimitive-es.js +1 -7
- package/dist/Tooltip/index.cjs +0 -2
- package/dist/Tooltip/index.mjs +0 -2
- package/dist/Tooltip-cjs.js +6 -7
- package/dist/Tooltip-es.js +1 -2
- package/dist/buttonRenderAdapter-cjs.js +2 -1
- package/dist/buttonRenderAdapter-es.js +2 -1
- package/dist/dialogReturnFocus-cjs.js +1 -1
- package/dist/dialogReturnFocus-es.js +2 -2
- package/dist/docs/InputNumber/InputNumber.md +2 -2
- package/dist/docs/SelectPrimitive/SelectPrimitive.md +1 -1
- package/dist/floating-ui.react-cjs.js +2557 -185
- package/dist/floating-ui.react-es.js +2512 -149
- package/dist/getMappedBreakpointWidth-cjs.js +21 -0
- package/dist/getMappedBreakpointWidth-es.js +18 -0
- package/dist/index.cjs +15 -10
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +14 -10
- package/dist/mergeClassName-cjs.js +12 -0
- package/dist/mergeClassName-es.js +10 -0
- package/dist/primitives/BottomSheet/index.cjs +1 -1
- package/dist/primitives/BottomSheet/index.mjs +1 -1
- package/dist/primitives/ComboboxPrimitive/ComboboxPrimitive.d.ts +2 -2
- package/dist/primitives/ComboboxPrimitive/index.cjs +4 -5
- package/dist/primitives/ComboboxPrimitive/index.mjs +4 -5
- package/dist/primitives/SelectPrimitive/index.cjs +1 -2
- package/dist/primitives/SelectPrimitive/index.mjs +1 -2
- package/dist/primitives/index.cjs +3 -3
- package/dist/primitives/index.mjs +3 -3
- package/dist/scrollEdges-cjs.js +1 -11
- package/dist/scrollEdges-es.js +1 -11
- package/dist/scrollable-cjs.js +58 -0
- package/dist/scrollable-es.js +54 -0
- package/dist/styles.css +759 -42
- package/dist/unstyledPrimitives/index.cjs +720 -478
- package/dist/unstyledPrimitives/index.mjs +663 -421
- package/dist/useCompositeListItem-cjs.js +2108 -361
- package/dist/useCompositeListItem-es.js +2076 -331
- package/dist/useLabel-cjs.js +2 -3
- package/dist/useLabel-es.js +2 -3
- package/dist/useRenderElement-cjs.js +9 -7
- package/dist/useRenderElement-es.js +9 -7
- package/dist/useScrollLock-cjs.js +819 -344
- package/dist/useScrollLock-es.js +732 -296
- package/dist/useScrollToActive-cjs.js +4 -5
- package/dist/useScrollToActive-es.js +1 -2
- package/dist/utils/meta/meta.json +43 -1
- package/package.json +8 -3
- package/dist/floating-ui.react-dom-cjs.js +0 -2103
- package/dist/floating-ui.react-dom-es.js +0 -2072
- package/dist/floating-ui.utils-cjs.js +0 -342
- package/dist/floating-ui.utils-es.js +0 -300
|
@@ -6,10 +6,8 @@ require('react');
|
|
|
6
6
|
require('../FilterPickerContent-cjs.js');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('../floating-ui.react-cjs.js');
|
|
9
|
-
require('../floating-ui.utils-cjs.js');
|
|
10
9
|
require('react/jsx-runtime');
|
|
11
10
|
require('react-dom');
|
|
12
|
-
require('../floating-ui.react-dom-cjs.js');
|
|
13
11
|
require('../FilterPickerContentSearch-cjs.js');
|
|
14
12
|
require('../Icon-cjs.js');
|
|
15
13
|
require('@jobber/design');
|
|
@@ -4,10 +4,8 @@ import 'react';
|
|
|
4
4
|
import '../FilterPickerContent-es.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../floating-ui.react-es.js';
|
|
7
|
-
import '../floating-ui.utils-es.js';
|
|
8
7
|
import 'react/jsx-runtime';
|
|
9
8
|
import 'react-dom';
|
|
10
|
-
import '../floating-ui.react-dom-es.js';
|
|
11
9
|
import '../FilterPickerContentSearch-es.js';
|
|
12
10
|
import '../Icon-es.js';
|
|
13
11
|
import '@jobber/design';
|
|
@@ -8,7 +8,6 @@ var FilterPickerContentList = require('./FilterPickerContentList-cjs.js');
|
|
|
8
8
|
var FilterPickerContentHeader = require('./FilterPickerContentHeader-cjs.js');
|
|
9
9
|
var FilterPickerProvider = require('./FilterPickerProvider-cjs.js');
|
|
10
10
|
var jobberHooks = require('@jobber/hooks');
|
|
11
|
-
var floatingUi_reactDom = require('./floating-ui.react-dom-cjs.js');
|
|
12
11
|
var constants = require('./constants-cjs.js');
|
|
13
12
|
|
|
14
13
|
var styles = {"content":"bog6pntD050-","hidden":"CLGExWp0HOc-","actions":"Tuw6ng4mYhg-","actionPadding":"uC0PW9BRcl4-","spinning":"TWLS2ZoEtnQ-"};
|
|
@@ -65,8 +64,8 @@ function useFilterPickerAccessibility(selectionCallback, filteredOptions, option
|
|
|
65
64
|
handleClose();
|
|
66
65
|
},
|
|
67
66
|
middleware: [
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
floatingUi_react.offset(FILTER_PICKER_OFFSET),
|
|
68
|
+
floatingUi_react.flip({ fallbackPlacements: ["top-start", "bottom-end", "top-end"] }),
|
|
70
69
|
],
|
|
71
70
|
});
|
|
72
71
|
const dismiss = floatingUi_react.useDismiss(context);
|
|
@@ -75,10 +74,10 @@ function useFilterPickerAccessibility(selectionCallback, filteredOptions, option
|
|
|
75
74
|
// set up and tear down autoUpdate manually to avoid unnecessary observers.
|
|
76
75
|
React.useEffect(() => {
|
|
77
76
|
if (open && elements.reference && elements.floating) {
|
|
78
|
-
const cleanup =
|
|
77
|
+
const cleanup = floatingUi_react.autoUpdate(elements.reference, elements.floating, update);
|
|
79
78
|
return cleanup;
|
|
80
79
|
}
|
|
81
|
-
}, [open,
|
|
80
|
+
}, [open, floatingUi_react.autoUpdate, elements, update]);
|
|
82
81
|
React.useEffect(() => {
|
|
83
82
|
focusedIndex.current = null;
|
|
84
83
|
if (open) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React__default, { useContext, useRef, useEffect, useMemo } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { c as useFloatingParentNodeId, d as useFloatingNodeId, u as useFloating, o as offset, f as flip, e as useDismiss, g as useInteractions, b as autoUpdate, i as FloatingTree, j as FloatingNode, F as FloatingPortal } from './floating-ui.react-es.js';
|
|
4
4
|
import { F as FilterPickerContentSearch } from './FilterPickerContentSearch-es.js';
|
|
5
5
|
import { F as FilterPickerContentList } from './FilterPickerContentList-es.js';
|
|
6
6
|
import { F as FilterPickerContentHeader } from './FilterPickerContentHeader-es.js';
|
|
7
7
|
import { a as FilterPickerContext } from './FilterPickerProvider-es.js';
|
|
8
8
|
import { useRefocusOnActivator, useFocusTrap } from '@jobber/hooks';
|
|
9
|
-
import { o as offset, f as flip, b as autoUpdate } from './floating-ui.react-dom-es.js';
|
|
10
9
|
import { F as FILTER_PICKER_MENU_ID } from './constants-es.js';
|
|
11
10
|
|
|
12
11
|
var styles = {"content":"bog6pntD050-","hidden":"CLGExWp0HOc-","actions":"Tuw6ng4mYhg-","actionPadding":"uC0PW9BRcl4-","spinning":"TWLS2ZoEtnQ-"};
|
|
@@ -28,9 +28,7 @@ require('../ButtonDismiss-cjs.js');
|
|
|
28
28
|
require('../noop-cjs.js');
|
|
29
29
|
require('../_commonjsHelpers-cjs.js');
|
|
30
30
|
require('../floating-ui.react-cjs.js');
|
|
31
|
-
require('../floating-ui.utils-cjs.js');
|
|
32
31
|
require('react/jsx-runtime');
|
|
33
|
-
require('../floating-ui.react-dom-cjs.js');
|
|
34
32
|
require('../identity-cjs.js');
|
|
35
33
|
require('../isTypedArray-cjs.js');
|
|
36
34
|
require('../isObjectLike-cjs.js');
|
|
@@ -26,9 +26,7 @@ import '../ButtonDismiss-es.js';
|
|
|
26
26
|
import '../noop-es.js';
|
|
27
27
|
import '../_commonjsHelpers-es.js';
|
|
28
28
|
import '../floating-ui.react-es.js';
|
|
29
|
-
import '../floating-ui.utils-es.js';
|
|
30
29
|
import 'react/jsx-runtime';
|
|
31
|
-
import '../floating-ui.react-dom-es.js';
|
|
32
30
|
import '../identity-es.js';
|
|
33
31
|
import '../isTypedArray-es.js';
|
|
34
32
|
import '../isObjectLike-es.js';
|
package/dist/Gallery/index.cjs
CHANGED
|
@@ -22,9 +22,7 @@ require('../Text-cjs.js');
|
|
|
22
22
|
require('../Heading-cjs.js');
|
|
23
23
|
require('../Tooltip-cjs.js');
|
|
24
24
|
require('../floating-ui.react-cjs.js');
|
|
25
|
-
require('../floating-ui.utils-cjs.js');
|
|
26
25
|
require('react/jsx-runtime');
|
|
27
|
-
require('../floating-ui.react-dom-cjs.js');
|
|
28
26
|
require('../AtlantisThemeContext-cjs.js');
|
|
29
27
|
require('../identity-cjs.js');
|
|
30
28
|
require('../isTypedArray-cjs.js');
|
package/dist/Gallery/index.mjs
CHANGED
|
@@ -20,9 +20,7 @@ import '../Text-es.js';
|
|
|
20
20
|
import '../Heading-es.js';
|
|
21
21
|
import '../Tooltip-es.js';
|
|
22
22
|
import '../floating-ui.react-es.js';
|
|
23
|
-
import '../floating-ui.utils-es.js';
|
|
24
23
|
import 'react/jsx-runtime';
|
|
25
|
-
import '../floating-ui.react-dom-es.js';
|
|
26
24
|
import '../AtlantisThemeContext-es.js';
|
|
27
25
|
import '../identity-es.js';
|
|
28
26
|
import '../isTypedArray-es.js';
|
package/dist/InputDate/index.cjs
CHANGED
|
@@ -7,10 +7,8 @@ require('../AtlantisContext-cjs.js');
|
|
|
7
7
|
require('../DatePicker-cjs.js');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../floating-ui.react-cjs.js');
|
|
10
|
-
require('../floating-ui.utils-cjs.js');
|
|
11
10
|
require('react/jsx-runtime');
|
|
12
11
|
require('react-dom');
|
|
13
|
-
require('../floating-ui.react-dom-cjs.js');
|
|
14
12
|
require('@jobber/hooks');
|
|
15
13
|
require('../Typography-cjs.js');
|
|
16
14
|
require('../Button-cjs.js');
|
package/dist/InputDate/index.mjs
CHANGED
|
@@ -5,10 +5,8 @@ import '../AtlantisContext-es.js';
|
|
|
5
5
|
import '../DatePicker-es.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../floating-ui.react-es.js';
|
|
8
|
-
import '../floating-ui.utils-es.js';
|
|
9
8
|
import 'react/jsx-runtime';
|
|
10
9
|
import 'react-dom';
|
|
11
|
-
import '../floating-ui.react-dom-es.js';
|
|
12
10
|
import '@jobber/hooks';
|
|
13
11
|
import '../Typography-es.js';
|
|
14
12
|
import '../Button-es.js';
|
|
@@ -20,16 +20,16 @@ require('../BottomSheet-cjs.js');
|
|
|
20
20
|
require('../buttonRenderAdapter-cjs.js');
|
|
21
21
|
require('../ScrollAreaViewport-cjs.js');
|
|
22
22
|
require('../useScrollLock-cjs.js');
|
|
23
|
-
require('../floating-ui.utils-cjs.js');
|
|
24
23
|
require('react/jsx-runtime');
|
|
25
24
|
require('react-dom');
|
|
26
25
|
require('../scrollEdges-cjs.js');
|
|
26
|
+
require('../scrollable-cjs.js');
|
|
27
27
|
require('../HelperText-cjs.js');
|
|
28
28
|
require('../Text-cjs.js');
|
|
29
29
|
require('../SelectPrimitive-cjs.js');
|
|
30
|
+
require('../mergeClassName-cjs.js');
|
|
30
31
|
require('../SelectGroupLabel-cjs.js');
|
|
31
32
|
require('../useCompositeListItem-cjs.js');
|
|
32
|
-
require('../floating-ui.react-dom-cjs.js');
|
|
33
33
|
require('../FieldDescription-cjs.js');
|
|
34
34
|
require('../useLabel-cjs.js');
|
|
35
35
|
require('../NumberFieldInput-cjs.js');
|
|
@@ -18,16 +18,16 @@ import '../BottomSheet-es.js';
|
|
|
18
18
|
import '../buttonRenderAdapter-es.js';
|
|
19
19
|
import '../ScrollAreaViewport-es.js';
|
|
20
20
|
import '../useScrollLock-es.js';
|
|
21
|
-
import '../floating-ui.utils-es.js';
|
|
22
21
|
import 'react/jsx-runtime';
|
|
23
22
|
import 'react-dom';
|
|
24
23
|
import '../scrollEdges-es.js';
|
|
24
|
+
import '../scrollable-es.js';
|
|
25
25
|
import '../HelperText-es.js';
|
|
26
26
|
import '../Text-es.js';
|
|
27
27
|
import '../SelectPrimitive-es.js';
|
|
28
|
+
import '../mergeClassName-es.js';
|
|
28
29
|
import '../SelectGroupLabel-es.js';
|
|
29
30
|
import '../useCompositeListItem-es.js';
|
|
30
|
-
import '../floating-ui.react-dom-es.js';
|
|
31
31
|
import '../FieldDescription-es.js';
|
|
32
32
|
import '../useLabel-es.js';
|
|
33
33
|
import '../NumberFieldInput-es.js';
|
|
@@ -55,6 +55,11 @@ export interface InputNumberWrapperProps extends InputNumberStyleProps {
|
|
|
55
55
|
readonly id?: string;
|
|
56
56
|
/** Shrink-wrap the field to its content (auto width). */
|
|
57
57
|
readonly inline?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Virtual keyboard hint for mobile. When omitted, Base UI picks the
|
|
60
|
+
* keyboard: `"numeric"` on most platforms, `"decimal"` or `"text"` on iOS
|
|
61
|
+
* (its numeric keypad has no decimal or minus key).
|
|
62
|
+
*/
|
|
58
63
|
readonly inputMode?: "numeric" | "decimal";
|
|
59
64
|
/** Style the error border without showing an error message. */
|
|
60
65
|
readonly invalid?: boolean;
|
package/dist/InputNumber-cjs.js
CHANGED
|
@@ -37,7 +37,7 @@ function useInputNumberContext(consumer) {
|
|
|
37
37
|
}
|
|
38
38
|
function InputNumberWrapper(_a) {
|
|
39
39
|
var { ref } = _a, props = tslib_es6.__rest(_a, ["ref"]);
|
|
40
|
-
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, align, autoComplete, children, className, disabled, format, id: idProp, inline, inputMode
|
|
40
|
+
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, align, autoComplete, children, className, disabled, format, id: idProp, inline, inputMode, invalid, loading, max, min, name, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValueChange, onValueCommitted, readOnly, showMiniLabel = true, size = "default", step = "any", style, value, } = props;
|
|
41
41
|
const generatedId = React.useId();
|
|
42
42
|
const id = idProp !== null && idProp !== void 0 ? idProp : generatedId;
|
|
43
43
|
const innerInputRef = React.useRef(null);
|
|
@@ -136,7 +136,7 @@ function InputNumberInput({ children, className, style, }) {
|
|
|
136
136
|
className: classnames(styles.inputWrapper, !ctx.showMiniLabel && styles.hideLabel, ctx.size !== "default" && styles[ctx.size], ctx.disabled && styles.disabled),
|
|
137
137
|
}, { className, style });
|
|
138
138
|
return (React.createElement("div", Object.assign({}, rootProps),
|
|
139
|
-
React.createElement(NumberFieldInput.NumberFieldInput, { "aria-busy": ctx.loading || undefined, "aria-label": ctx.ariaLabel, "aria-labelledby": ctx.ariaLabelledby, autoComplete: resolveAutoComplete(ctx.autoComplete), className: styles.input, inputMode: ctx.inputMode, onBlur: ctx.onBlur, onFocus: ctx.onFocus, onKeyDown: ctx.onKeyDown, onKeyUp: ctx.onKeyUp, placeholder: " ", ref: ctx.innerInputRef }),
|
|
139
|
+
React.createElement(NumberFieldInput.NumberFieldInput, Object.assign({ "aria-busy": ctx.loading || undefined, "aria-label": ctx.ariaLabel, "aria-labelledby": ctx.ariaLabelledby, autoComplete: resolveAutoComplete(ctx.autoComplete), className: styles.input }, (ctx.inputMode ? { inputMode: ctx.inputMode } : {}), { onBlur: ctx.onBlur, onFocus: ctx.onFocus, onKeyDown: ctx.onKeyDown, onKeyUp: ctx.onKeyUp, placeholder: " ", ref: ctx.innerInputRef })),
|
|
140
140
|
children));
|
|
141
141
|
}
|
|
142
142
|
function InputNumberLabel({ children, className, style, }) {
|
package/dist/InputNumber-es.js
CHANGED
|
@@ -35,7 +35,7 @@ function useInputNumberContext(consumer) {
|
|
|
35
35
|
}
|
|
36
36
|
function InputNumberWrapper(_a) {
|
|
37
37
|
var { ref } = _a, props = __rest(_a, ["ref"]);
|
|
38
|
-
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, align, autoComplete, children, className, disabled, format, id: idProp, inline, inputMode
|
|
38
|
+
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, align, autoComplete, children, className, disabled, format, id: idProp, inline, inputMode, invalid, loading, max, min, name, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValueChange, onValueCommitted, readOnly, showMiniLabel = true, size = "default", step = "any", style, value, } = props;
|
|
39
39
|
const generatedId = useId();
|
|
40
40
|
const id = idProp !== null && idProp !== void 0 ? idProp : generatedId;
|
|
41
41
|
const innerInputRef = useRef(null);
|
|
@@ -134,7 +134,7 @@ function InputNumberInput({ children, className, style, }) {
|
|
|
134
134
|
className: classnames(styles.inputWrapper, !ctx.showMiniLabel && styles.hideLabel, ctx.size !== "default" && styles[ctx.size], ctx.disabled && styles.disabled),
|
|
135
135
|
}, { className, style });
|
|
136
136
|
return (React__default.createElement("div", Object.assign({}, rootProps),
|
|
137
|
-
React__default.createElement(NumberFieldInput, { "aria-busy": ctx.loading || undefined, "aria-label": ctx.ariaLabel, "aria-labelledby": ctx.ariaLabelledby, autoComplete: resolveAutoComplete(ctx.autoComplete), className: styles.input, inputMode: ctx.inputMode, onBlur: ctx.onBlur, onFocus: ctx.onFocus, onKeyDown: ctx.onKeyDown, onKeyUp: ctx.onKeyUp, placeholder: " ", ref: ctx.innerInputRef }),
|
|
137
|
+
React__default.createElement(NumberFieldInput, Object.assign({ "aria-busy": ctx.loading || undefined, "aria-label": ctx.ariaLabel, "aria-labelledby": ctx.ariaLabelledby, autoComplete: resolveAutoComplete(ctx.autoComplete), className: styles.input }, (ctx.inputMode ? { inputMode: ctx.inputMode } : {}), { onBlur: ctx.onBlur, onFocus: ctx.onFocus, onKeyDown: ctx.onKeyDown, onKeyUp: ctx.onKeyUp, placeholder: " ", ref: ctx.innerInputRef })),
|
|
138
138
|
children));
|
|
139
139
|
}
|
|
140
140
|
function InputNumberLabel({ children, className, style, }) {
|
package/dist/LightBox/index.cjs
CHANGED
|
@@ -21,9 +21,7 @@ require('../Text-cjs.js');
|
|
|
21
21
|
require('../Heading-cjs.js');
|
|
22
22
|
require('../Tooltip-cjs.js');
|
|
23
23
|
require('../floating-ui.react-cjs.js');
|
|
24
|
-
require('../floating-ui.utils-cjs.js');
|
|
25
24
|
require('react/jsx-runtime');
|
|
26
|
-
require('../floating-ui.react-dom-cjs.js');
|
|
27
25
|
require('../AtlantisThemeContext-cjs.js');
|
|
28
26
|
require('../identity-cjs.js');
|
|
29
27
|
require('../isTypedArray-cjs.js');
|
package/dist/LightBox/index.mjs
CHANGED
|
@@ -19,9 +19,7 @@ import '../Text-es.js';
|
|
|
19
19
|
import '../Heading-es.js';
|
|
20
20
|
import '../Tooltip-es.js';
|
|
21
21
|
import '../floating-ui.react-es.js';
|
|
22
|
-
import '../floating-ui.utils-es.js';
|
|
23
22
|
import 'react/jsx-runtime';
|
|
24
|
-
import '../floating-ui.react-dom-es.js';
|
|
25
23
|
import '../AtlantisThemeContext-es.js';
|
|
26
24
|
import '../identity-es.js';
|
|
27
25
|
import '../isTypedArray-es.js';
|
package/dist/Menu/index.cjs
CHANGED
|
@@ -6,10 +6,8 @@ require('@jobber/hooks');
|
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('framer-motion');
|
|
8
8
|
require('../floating-ui.react-cjs.js');
|
|
9
|
-
require('../floating-ui.utils-cjs.js');
|
|
10
9
|
require('react/jsx-runtime');
|
|
11
10
|
require('react-dom');
|
|
12
|
-
require('../floating-ui.react-dom-cjs.js');
|
|
13
11
|
require('../useAtlantisI18n-cjs.js');
|
|
14
12
|
require('../AtlantisContext-cjs.js');
|
|
15
13
|
require('../Button-cjs.js');
|
|
@@ -28,9 +26,11 @@ require('../BottomSheet-cjs.js');
|
|
|
28
26
|
require('../ScrollAreaViewport-cjs.js');
|
|
29
27
|
require('../useScrollLock-cjs.js');
|
|
30
28
|
require('../scrollEdges-cjs.js');
|
|
29
|
+
require('../scrollable-cjs.js');
|
|
31
30
|
require('../HelperText-cjs.js');
|
|
32
31
|
require('../Text-cjs.js');
|
|
33
32
|
require('../SelectPrimitive-cjs.js');
|
|
33
|
+
require('../mergeClassName-cjs.js');
|
|
34
34
|
require('../SelectGroupLabel-cjs.js');
|
|
35
35
|
require('../useCompositeListItem-cjs.js');
|
|
36
36
|
require('../DrawerTitle-cjs.js');
|
package/dist/Menu/index.mjs
CHANGED
|
@@ -4,10 +4,8 @@ import '@jobber/hooks';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import 'framer-motion';
|
|
6
6
|
import '../floating-ui.react-es.js';
|
|
7
|
-
import '../floating-ui.utils-es.js';
|
|
8
7
|
import 'react/jsx-runtime';
|
|
9
8
|
import 'react-dom';
|
|
10
|
-
import '../floating-ui.react-dom-es.js';
|
|
11
9
|
import '../useAtlantisI18n-es.js';
|
|
12
10
|
import '../AtlantisContext-es.js';
|
|
13
11
|
import '../Button-es.js';
|
|
@@ -26,9 +24,11 @@ import '../BottomSheet-es.js';
|
|
|
26
24
|
import '../ScrollAreaViewport-es.js';
|
|
27
25
|
import '../useScrollLock-es.js';
|
|
28
26
|
import '../scrollEdges-es.js';
|
|
27
|
+
import '../scrollable-es.js';
|
|
29
28
|
import '../HelperText-es.js';
|
|
30
29
|
import '../Text-es.js';
|
|
31
30
|
import '../SelectPrimitive-es.js';
|
|
31
|
+
import '../mergeClassName-es.js';
|
|
32
32
|
import '../SelectGroupLabel-es.js';
|
|
33
33
|
import '../useCompositeListItem-es.js';
|
|
34
34
|
import '../DrawerTitle-es.js';
|
package/dist/Menu-cjs.js
CHANGED
|
@@ -11,7 +11,6 @@ var Typography = require('./Typography-cjs.js');
|
|
|
11
11
|
var Icon = require('./Icon-cjs.js');
|
|
12
12
|
var useFormFieldFocus = require('./useFormFieldFocus-cjs.js');
|
|
13
13
|
var maxHeight = require('./maxHeight-cjs.js');
|
|
14
|
-
var floatingUi_reactDom = require('./floating-ui.react-dom-cjs.js');
|
|
15
14
|
var useRenderElement = require('./useRenderElement-cjs.js');
|
|
16
15
|
var buttonRenderAdapter = require('./buttonRenderAdapter-cjs.js');
|
|
17
16
|
var OverlaySeparator = require('./OverlaySeparator-cjs.js');
|
|
@@ -94,9 +93,9 @@ function MenuLegacy({ activator, items, UNSAFE_className, UNSAFE_style, }) {
|
|
|
94
93
|
const middleware = React.useMemo(() => {
|
|
95
94
|
if (isLargeScreen) {
|
|
96
95
|
return [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
floatingUi_react.offset(MENU_OFFSET),
|
|
97
|
+
floatingUi_react.flip({ fallbackPlacements: ["bottom-end", "top-start", "top-end"] }),
|
|
98
|
+
floatingUi_react.size({
|
|
100
99
|
apply({ availableHeight, elements }) {
|
|
101
100
|
const menuElement = elements.floating.querySelector('[role="menu"]');
|
|
102
101
|
if (menuElement) {
|
|
@@ -126,7 +125,7 @@ function MenuLegacy({ activator, items, UNSAFE_className, UNSAFE_style, }) {
|
|
|
126
125
|
elements: {
|
|
127
126
|
reference: referenceElement,
|
|
128
127
|
},
|
|
129
|
-
whileElementsMounted:
|
|
128
|
+
whileElementsMounted: floatingUi_react.autoUpdate,
|
|
130
129
|
});
|
|
131
130
|
const dismiss = floatingUi_react.useDismiss(context);
|
|
132
131
|
const listNavigation = floatingUi_react.useListNavigation(context, {
|
package/dist/Menu-es.js
CHANGED
|
@@ -2,14 +2,13 @@ import React__default, { useState, useRef, useId, useMemo } from 'react';
|
|
|
2
2
|
import { useWindowDimensions, useRefocusOnActivator, useIsSmallScreen } from '@jobber/hooks';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
5
|
-
import { u as useFloating,
|
|
5
|
+
import { o as offset, f as flip, m as size, u as useFloating, b as autoUpdate, e as useDismiss, n as useListNavigation, g as useInteractions, F as FloatingPortal } from './floating-ui.react-es.js';
|
|
6
6
|
import { d as defineMessages, u as useAtlantisI18n } from './useAtlantisI18n-es.js';
|
|
7
7
|
import { B as Button } from './Button-es.js';
|
|
8
8
|
import { T as Typography } from './Typography-es.js';
|
|
9
9
|
import { I as Icon } from './Icon-es.js';
|
|
10
10
|
import { f as formFieldFocusAttribute } from './useFormFieldFocus-es.js';
|
|
11
11
|
import { c as calculateMaxHeight } from './maxHeight-es.js';
|
|
12
|
-
import { o as offset, f as flip, d as size, b as autoUpdate } from './floating-ui.react-dom-es.js';
|
|
13
12
|
import { m as mergeProps } from './useRenderElement-es.js';
|
|
14
13
|
import { n as normalizeBaseUiButtonProps, i as isAtlantisButtonRenderTarget, s as stripNativeTypeFromButtonRenderTarget, r as renderAtlantisButtonTarget } from './buttonRenderAdapter-es.js';
|
|
15
14
|
import { O as OverlaySeparator } from './OverlaySeparator-es.js';
|