@jobber/components 9.16.2 → 9.16.4
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/ActivityIndicator-cjs.js +1 -1
- package/dist/ActivityIndicator-es.js +1 -1
- package/dist/AtlantisPortalContent-es.js +1 -1
- package/dist/AtlantisThemeContext/index.mjs +1 -1
- package/dist/AtlantisThemeContext-cjs.js +1 -1
- package/dist/AtlantisThemeContext-es.js +10 -10
- package/dist/Autocomplete-cjs.js +2 -2
- package/dist/Autocomplete-es.js +5 -5
- package/dist/Body-cjs.js +1 -1
- package/dist/Body-es.js +2 -2
- package/dist/BottomSheet-cjs.js +1 -1
- package/dist/BottomSheet-es.js +3 -3
- package/dist/Box-cjs.js +2 -2
- package/dist/Box-es.js +2 -2
- package/dist/Button/index.mjs +1 -1
- package/dist/Button-es.js +1 -1
- package/dist/Card-cjs.js +1 -1
- package/dist/Card-es.js +1 -1
- package/dist/Checkbox-cjs.js +1 -1
- package/dist/Checkbox-es.js +1 -1
- package/dist/Chip/index.mjs +1 -1
- package/dist/Chip-cjs.js +2 -2
- package/dist/Chip-es.js +2 -2
- package/dist/ChipDismissible-es.js +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -1
- package/dist/Combobox-cjs.js +3 -3
- package/dist/Combobox-es.js +6 -6
- package/dist/ComboboxPrimitive-cjs.js +1 -1
- package/dist/ComboboxPrimitive-es.js +3 -3
- package/dist/ComboboxSeparator-es.js +4 -4
- package/dist/Container-cjs.js +1 -1
- package/dist/Container-es.js +1 -1
- package/dist/Content-cjs.js +1 -1
- package/dist/Content-es.js +1 -1
- package/dist/ContentBlock-cjs.js +1 -1
- package/dist/ContentBlock-es.js +1 -1
- package/dist/Cover-cjs.js +1 -1
- package/dist/Cover-es.js +1 -1
- package/dist/DataList-es.js +3 -3
- package/dist/DataList.const-cjs.js +0 -1
- package/dist/DataList.const-es.js +1 -2
- package/dist/DataList.module-cjs.js +1 -1
- package/dist/DataList.module-es.js +1 -1
- package/dist/DataList.utils-es.js +6 -6
- package/dist/DataListAction-cjs.js +1 -1
- package/dist/DataListAction-es.js +1 -1
- package/dist/DataListActionsMenu-cjs.js +1 -1
- package/dist/DataListActionsMenu-es.js +2 -2
- package/dist/DataListBulkActions-cjs.js +1 -1
- package/dist/DataListBulkActions-es.js +1 -1
- package/dist/DataListEmptyState-cjs.js +1 -1
- package/dist/DataListEmptyState-es.js +1 -1
- package/dist/DataListHeaderTile-cjs.js +2 -2
- package/dist/DataListHeaderTile-es.js +2 -2
- package/dist/DataListItemActions-cjs.js +1 -1
- package/dist/DataListItemActions-es.js +2 -2
- package/dist/DataListLayoutActions-cjs.js +1 -1
- package/dist/DataListLayoutActions-es.js +2 -2
- package/dist/DataListLoadMore-cjs.js +1 -1
- package/dist/DataListLoadMore-es.js +1 -1
- package/dist/DataListLoadingState-cjs.js +1 -1
- package/dist/DataListLoadingState-es.js +2 -2
- package/dist/DataListOverflowFade-cjs.js +1 -1
- package/dist/DataListOverflowFade-es.js +1 -1
- package/dist/DataListSearch-cjs.js +1 -1
- package/dist/DataListSearch-es.js +1 -1
- package/dist/DataListSortingOptions-cjs.js +1 -1
- package/dist/DataListSortingOptions-es.js +1 -1
- package/dist/DataListStickyHeader-cjs.js +1 -1
- package/dist/DataListStickyHeader-es.js +1 -1
- package/dist/DataListTags-cjs.js +1 -1
- package/dist/DataListTags-es.js +1 -1
- package/dist/DataListTotalCount-cjs.js +1 -1
- package/dist/DataListTotalCount-es.js +2 -2
- package/dist/DataTable/index.mjs +1 -1
- package/dist/DataTable-cjs.js +3 -3
- package/dist/DataTable-es.js +5 -5
- package/dist/DataTableTable-cjs.js +2 -2
- package/dist/DataTableTable-es.js +3 -3
- package/dist/DatePicker-cjs.js +47 -20
- package/dist/DatePicker-es.js +58 -31
- package/dist/Disclosure-cjs.js +1 -1
- package/dist/Disclosure-es.js +1 -1
- package/dist/Divider-cjs.js +1 -1
- package/dist/Divider-es.js +1 -1
- package/dist/DrawerGrid-cjs.js +2 -2
- package/dist/DrawerGrid-es.js +2 -2
- package/dist/FeatureSwitch-cjs.js +1 -1
- package/dist/FeatureSwitch-es.js +1 -1
- package/dist/FieldDescription-es.js +2 -2
- package/dist/FilterPicker-cjs.js +1 -1
- package/dist/FilterPicker-es.js +1 -1
- package/dist/FilterPickerAction-cjs.js +1 -1
- package/dist/FilterPickerAction-es.js +1 -1
- package/dist/FilterPickerContent-cjs.js +1 -1
- package/dist/FilterPickerContent-es.js +2 -2
- package/dist/FilterPickerContentHeader-cjs.js +1 -1
- package/dist/FilterPickerContentHeader-es.js +1 -1
- package/dist/FilterPickerContentList-es.js +2 -2
- package/dist/FilterPickerContentSearch-cjs.js +1 -1
- package/dist/FilterPickerContentSearch-es.js +1 -1
- package/dist/FilterPickerLoadMore-cjs.js +1 -1
- package/dist/FilterPickerLoadMore-es.js +1 -1
- package/dist/FilterPickerOption-cjs.js +1 -1
- package/dist/FilterPickerOption-es.js +1 -1
- package/dist/FormField/index.mjs +1 -1
- package/dist/FormFieldWrapper-cjs.js +1 -1
- package/dist/FormFieldWrapper-es.js +2 -2
- package/dist/FormatFile-cjs.js +1 -6
- package/dist/FormatFile-es.js +1 -6
- package/dist/Frame-cjs.js +1 -1
- package/dist/Frame-es.js +1 -1
- package/dist/Glimmer/index.mjs +1 -1
- package/dist/Glimmer-cjs.js +1 -1
- package/dist/Glimmer-es.js +2 -2
- package/dist/Grid-cjs.js +1 -1
- package/dist/Grid-es.js +1 -1
- package/dist/GridCell-cjs.js +1 -1
- package/dist/GridCell-es.js +1 -1
- package/dist/HelperText-cjs.js +1 -1
- package/dist/HelperText-es.js +1 -1
- package/dist/InputAvatar-cjs.js +1 -1
- package/dist/InputAvatar-es.js +1 -1
- package/dist/InputEmail-es.js +1 -1
- package/dist/InputFile-cjs.js +3 -3
- package/dist/InputFile-es.js +3 -3
- package/dist/InputPhoneNumber-cjs.js +1 -1
- package/dist/InputPhoneNumber-es.js +2 -2
- package/dist/InputText-es.js +1 -1
- package/dist/InputTime-cjs.js +0 -1
- package/dist/InputTime-es.js +1 -2
- package/dist/InputValidation-cjs.js +1 -1
- package/dist/InputValidation-es.js +1 -1
- package/dist/InternalChipDismissible-cjs.js +1 -1
- package/dist/InternalChipDismissible-es.js +2 -2
- package/dist/LegacySelect-cjs.js +1 -1
- package/dist/LegacySelect-es.js +2 -2
- package/dist/LightBox-cjs.js +1 -1
- package/dist/LightBox-es.js +1 -1
- package/dist/Link-cjs.js +1 -1
- package/dist/Link-es.js +1 -1
- package/dist/List-cjs.js +3 -3
- package/dist/List-es.js +7 -7
- package/dist/Markdown-cjs.js +142 -142
- package/dist/Markdown-es.js +148 -148
- package/dist/Menu-cjs.js +3 -3
- package/dist/Menu-es.js +7 -7
- package/dist/MenuSubmenuTrigger-cjs.js +2 -5
- package/dist/MenuSubmenuTrigger-es.js +6 -9
- package/dist/Modal/index.cjs +2 -2
- package/dist/Modal/index.mjs +2 -2
- package/dist/MultiSelect-cjs.js +2 -2
- package/dist/MultiSelect-es.js +2 -2
- package/dist/NumberFieldInput-es.js +1 -1
- package/dist/OverlaySeparator-cjs.js +1 -1
- package/dist/OverlaySeparator-es.js +1 -1
- package/dist/Popover-cjs.js +1 -1
- package/dist/Popover-es.js +2 -2
- package/dist/ProgressBar-cjs.js +1 -1
- package/dist/ProgressBar-es.js +1 -1
- package/dist/RadioGroup-cjs.js +1 -1
- package/dist/RadioGroup-es.js +1 -1
- package/dist/ScrollAreaViewport-es.js +3 -3
- package/dist/SegmentedControl-cjs.js +1 -1
- package/dist/SegmentedControl-es.js +2 -2
- package/dist/Select-es.js +2 -2
- package/dist/SelectGroupLabel-cjs.js +1 -4
- package/dist/SelectGroupLabel-es.js +6 -9
- package/dist/SelectPrimitive-cjs.js +1 -1
- package/dist/SelectPrimitive-es.js +2 -2
- package/dist/SideDrawer-cjs.js +1 -1
- package/dist/SideDrawer-es.js +1 -1
- package/dist/Spinner-cjs.js +1 -1
- package/dist/Spinner-es.js +1 -1
- package/dist/StatusIndicator-cjs.js +1 -1
- package/dist/StatusIndicator-es.js +1 -1
- package/dist/Switch-cjs.js +1 -1
- package/dist/Switch-es.js +1 -1
- package/dist/Table/index.mjs +1 -1
- package/dist/Tabs/index.mjs +1 -1
- package/dist/Tabs-cjs.js +1 -1
- package/dist/Tabs-es.js +6 -6
- package/dist/Thumbnail-cjs.js +1 -1
- package/dist/Thumbnail-es.js +2 -2
- package/dist/Tiles-cjs.js +1 -1
- package/dist/Tiles-es.js +1 -1
- package/dist/Tooltip-cjs.js +1 -1
- package/dist/Tooltip-es.js +2 -2
- package/dist/Typography-cjs.js +3 -3
- package/dist/Typography-es.js +3 -3
- package/dist/_baseEach-cjs.js +1 -1
- package/dist/_baseEach-es.js +7 -7
- package/dist/_baseFlatten-es.js +1 -1
- package/dist/_getAllKeys-cjs.js +2 -8
- package/dist/_getAllKeys-es.js +4 -10
- package/dist/_getTag-es.js +1 -1
- package/dist/_isIterateeCall-es.js +3 -3
- package/dist/_setToString-es.js +2 -2
- package/dist/buttonRenderAdapter-cjs.js +2 -2
- package/dist/buttonRenderAdapter-es.js +2 -2
- package/dist/debounce-es.js +4 -4
- package/dist/dialogReturnFocus-es.js +2 -2
- package/dist/docs/Banner/Banner.md +7 -0
- package/dist/docs/ProgressIndicator/ProgressIndicator.md +3 -6
- package/dist/floating-ui.react-es.js +2 -2
- package/dist/identity-es.js +5 -5
- package/dist/index.mjs +7 -7
- package/dist/isSymbol-es.js +1 -1
- package/dist/isTypedArray-cjs.js +4 -4
- package/dist/isTypedArray-es.js +6 -6
- package/dist/keysIn-cjs.js +2 -2
- package/dist/keysIn-es.js +5 -5
- package/dist/noop-es.js +4 -4
- package/dist/primitives/BottomSheet/index.mjs +1 -1
- package/dist/primitives/index.mjs +1 -1
- package/dist/scrollable-es.js +1 -1
- package/dist/showToast-cjs.js +1 -1
- package/dist/showToast-es.js +1 -1
- package/dist/styles.css +8 -5
- package/dist/unstyledPrimitives/index.cjs +3 -3
- package/dist/unstyledPrimitives/index.mjs +9 -9
- package/dist/useCompositeListItem-es.js +3 -3
- package/dist/useScrollLock-cjs.js +14 -14
- package/dist/useScrollLock-es.js +15 -15
- package/dist/useScrollToActive-cjs.js +1 -1
- package/dist/useScrollToActive-es.js +8 -8
- package/package.json +11 -6
package/dist/keysIn-cjs.js
CHANGED
|
@@ -9,11 +9,11 @@ var _cloneBuffer = {exports: {}};
|
|
|
9
9
|
|
|
10
10
|
_cloneBuffer.exports;
|
|
11
11
|
|
|
12
|
-
(function (module, exports) {
|
|
12
|
+
(function (module, exports$1) {
|
|
13
13
|
var root = isObjectLike$1._root;
|
|
14
14
|
|
|
15
15
|
/** Detect free variable `exports`. */
|
|
16
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
16
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
17
17
|
|
|
18
18
|
/** Detect free variable `module`. */
|
|
19
19
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
package/dist/keysIn-es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as _root, a as isObject_1,
|
|
1
|
+
import { c as _root, a as isObject_1, i as isObjectLike_1, _ as _baseGetTag } from './isObjectLike-es.js';
|
|
2
2
|
import { d as _Uint8Array, e as eq_1, f as _arrayLikeKeys } from './identity-es.js';
|
|
3
|
-
import { e as _overArg, _ as _isPrototype,
|
|
3
|
+
import { e as _overArg, _ as _isPrototype, i as isArrayLike_1 } from './isTypedArray-es.js';
|
|
4
4
|
import { _ as _baseAssignValue } from './_baseAssignValue-es.js';
|
|
5
5
|
|
|
6
6
|
var _cloneBuffer = {exports: {}};
|
|
7
7
|
|
|
8
8
|
_cloneBuffer.exports;
|
|
9
9
|
|
|
10
|
-
(function (module, exports) {
|
|
10
|
+
(function (module, exports$1) {
|
|
11
11
|
var root = _root;
|
|
12
12
|
|
|
13
13
|
/** Detect free variable `exports`. */
|
|
14
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
14
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
15
15
|
|
|
16
16
|
/** Detect free variable `module`. */
|
|
17
17
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -382,4 +382,4 @@ function keysIn(object) {
|
|
|
382
382
|
|
|
383
383
|
var keysIn_1 = keysIn;
|
|
384
384
|
|
|
385
|
-
export { _copyObject as _,
|
|
385
|
+
export { _copyObject as _, _copyArray as a, _cloneBufferExports as b, _cloneTypedArray as c, _initCloneObject as d, _getPrototype as e, _cloneArrayBuffer as f, _assignValue as g, isPlainObject_1 as i, keysIn_1 as k };
|
package/dist/noop-es.js
CHANGED
|
@@ -13,12 +13,12 @@ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
|
|
|
13
13
|
* // => [undefined, undefined]
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
function noop() {
|
|
16
|
+
function noop$1() {
|
|
17
17
|
// No operation performed.
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
var noop_1 = noop;
|
|
20
|
+
var noop_1 = noop$1;
|
|
21
21
|
|
|
22
|
-
var noop
|
|
22
|
+
var noop = /*@__PURE__*/getDefaultExportFromCjs(noop_1);
|
|
23
23
|
|
|
24
|
-
export { noop
|
|
24
|
+
export { noop as n };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OverlaySeparator } from '../OverlaySeparator-es.js';
|
|
2
|
-
export {
|
|
2
|
+
export { B as BottomSheet, a as BottomSheetScrollAreaContext } from '../BottomSheet-es.js';
|
|
3
3
|
export { H as HelperText } from '../HelperText-es.js';
|
|
4
4
|
export { C as ComboboxPrimitive } from '../ComboboxPrimitive-es.js';
|
|
5
5
|
export { S as SelectPrimitive } from '../SelectPrimitive-es.js';
|
package/dist/scrollable-es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as isHTMLElement, a as isLastTraversableNode, g as getParentNode, b as getComputedStyle } from './useScrollLock-es.js';
|
|
2
2
|
|
|
3
3
|
function isScrollableY(element, allowOverflowIntent = false) {
|
|
4
4
|
const {
|
package/dist/showToast-cjs.js
CHANGED
|
@@ -11,7 +11,7 @@ var Button = require('./Button-cjs.js');
|
|
|
11
11
|
require('classnames');
|
|
12
12
|
var Typography = require('./Typography-cjs.js');
|
|
13
13
|
|
|
14
|
-
var styles = {"wrapper":"_0Tvq24WjeX8-","container":"GznHKPkdb1s-","toast":"W8zgWZqmIlk-","slice":"ol3srk7PviM-","button":"ibhpdUt9YLo-"
|
|
14
|
+
var styles = {"wrapper":"_0Tvq24WjeX8-","container":"GznHKPkdb1s-","toast":"W8zgWZqmIlk-","slice":"ol3srk7PviM-","button":"ibhpdUt9YLo-"};
|
|
15
15
|
|
|
16
16
|
const toastMessages = useAtlantisI18n.defineMessages({
|
|
17
17
|
hideNotification: {
|
package/dist/showToast-es.js
CHANGED
|
@@ -9,7 +9,7 @@ import { B as Button } from './Button-es.js';
|
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import { T as Typography } from './Typography-es.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"wrapper":"_0Tvq24WjeX8-","container":"GznHKPkdb1s-","toast":"W8zgWZqmIlk-","slice":"ol3srk7PviM-","button":"ibhpdUt9YLo-"
|
|
12
|
+
var styles = {"wrapper":"_0Tvq24WjeX8-","container":"GznHKPkdb1s-","toast":"W8zgWZqmIlk-","slice":"ol3srk7PviM-","button":"ibhpdUt9YLo-"};
|
|
13
13
|
|
|
14
14
|
const toastMessages = defineMessages({
|
|
15
15
|
hideNotification: {
|
package/dist/styles.css
CHANGED
|
@@ -15046,11 +15046,8 @@ input.oOrjwubmsVA- {
|
|
|
15046
15046
|
* --color-interactive--subtle; track / empty segments use
|
|
15047
15047
|
* --color-surface--active.
|
|
15048
15048
|
*
|
|
15049
|
-
* The width transition is
|
|
15050
|
-
*
|
|
15051
|
-
* conveys functional information about progress (WCAG 2.3.3, "Animation from
|
|
15052
|
-
* Interactions"). Removing it would make progress harder to perceive, not
|
|
15053
|
-
* easier.
|
|
15049
|
+
* The width transition is disabled when the user prefers reduced motion. The
|
|
15050
|
+
* fill still updates to the current value without interpolating between values.
|
|
15054
15051
|
*/
|
|
15055
15052
|
|
|
15056
15053
|
/*
|
|
@@ -15103,6 +15100,12 @@ input.oOrjwubmsVA- {
|
|
|
15103
15100
|
transition: width var(--timing-base) ease-out;
|
|
15104
15101
|
}
|
|
15105
15102
|
|
|
15103
|
+
@media (prefers-reduced-motion: reduce) {
|
|
15104
|
+
.Hsuq8zT-KzY- {
|
|
15105
|
+
transition: none;
|
|
15106
|
+
}
|
|
15107
|
+
}
|
|
15108
|
+
|
|
15106
15109
|
/* Stepped: the indicator IS the flex container; segments are direct children. */
|
|
15107
15110
|
.FB1e9bL90tI- {
|
|
15108
15111
|
display: -ms-flexbox;
|
|
@@ -5,17 +5,17 @@ var ComboboxSeparator = require('../ComboboxSeparator-cjs.js');
|
|
|
5
5
|
var useCompositeListItem = require('../useCompositeListItem-cjs.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var useScrollLock = require('../useScrollLock-cjs.js');
|
|
8
|
+
var useRenderElement = require('../useRenderElement-cjs.js');
|
|
9
|
+
var useFieldValidation = require('../useFieldValidation-cjs.js');
|
|
8
10
|
var DrawerDescription = require('../DrawerDescription-cjs.js');
|
|
9
11
|
var DrawerTitle = require('../DrawerTitle-cjs.js');
|
|
10
12
|
var ScrollAreaViewport = require('../ScrollAreaViewport-cjs.js');
|
|
11
|
-
var useRenderElement = require('../useRenderElement-cjs.js');
|
|
12
13
|
var scrollEdges = require('../scrollEdges-cjs.js');
|
|
13
14
|
var scrollable = require('../scrollable-cjs.js');
|
|
14
15
|
var MenuSubmenuTrigger = require('../MenuSubmenuTrigger-cjs.js');
|
|
15
16
|
var ReactDOM = require('react-dom');
|
|
16
17
|
var SelectGroupLabel = require('../SelectGroupLabel-cjs.js');
|
|
17
18
|
var Separator = require('../Separator-cjs.js');
|
|
18
|
-
var useFieldValidation = require('../useFieldValidation-cjs.js');
|
|
19
19
|
var NumberFieldInput = require('../NumberFieldInput-cjs.js');
|
|
20
20
|
var useLabel = require('../useLabel-cjs.js');
|
|
21
21
|
require('../stringifyLocale-cjs.js');
|
|
@@ -1431,7 +1431,7 @@ function focusKeyboardInputWithoutPageScroll(target) {
|
|
|
1431
1431
|
// iOS Safari can still scroll the page for transformed sheets even with preventScroll.
|
|
1432
1432
|
// Move the input off-screen only for the synchronous focus call; `preventScroll`
|
|
1433
1433
|
// suppresses the in-page ancestor scrolling that would otherwise chase the fake rect.
|
|
1434
|
-
const restoreStyles = overrideGeometryDuringFocus(target, -
|
|
1434
|
+
const restoreStyles = overrideGeometryDuringFocus(target, -2e3);
|
|
1435
1435
|
try {
|
|
1436
1436
|
if (wasFocused) {
|
|
1437
1437
|
target.blur();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { B as useCoreFilter, D as AriaCombobox, E as useComboboxInputValueContext,
|
|
3
|
-
import {
|
|
2
|
+
import { B as useCoreFilter, D as AriaCombobox, E as useComboboxInputValueContext, w as ComboboxTrigger, x as ComboboxInputGroup, o as ComboboxItem, L as ListboxSeparator, z as ComboboxArrow, r as ComboboxBackdrop, a as ComboboxClear, m as ComboboxCollection, f as ComboboxEmpty, k as ComboboxGroup, j as ComboboxGroupLabel, e as ComboboxIcon, v as ComboboxInput, p as ComboboxList, t as ComboboxPopup, q as ComboboxPortal, s as ComboboxPositioner, n as ComboboxRow, b as ComboboxStatus, u as useFilteredItems, d as ComboboxChip, c as ComboboxChipRemove, l as ComboboxChips, y as ComboboxItemIndicator, A as ComboboxLabel, g as ComboboxRoot, i as ComboboxSeparator, C as ComboboxValue, h as useComboboxFilter } from '../ComboboxSeparator-es.js';
|
|
3
|
+
import { o as stringifyAsLabel, A as useCompositeListItem, M as DEFAULT_SIDES, f as fieldValidityMapping, a as useFormContext, b as useFieldRootContext, u as useLabelableContext, d as useRegisterFieldControl, n as areArraysEqual, K as getDefaultLabelId } from '../useCompositeListItem-es.js';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
import { bX as pointer, c as useIsoLayoutEffect, d as useStableCallback, bf as CommonPopupDataAttributes, u as useBaseUiId, bS as useTriggerRegistration, o as ownerDocument, j as createChangeEventDetails, bj as swipe,
|
|
5
|
+
import { bX as pointer, c as useIsoLayoutEffect, d as useStableCallback, bf as CommonPopupDataAttributes, u as useBaseUiId, bS as useTriggerRegistration, o as ownerDocument, ac as isVirtualClick, j as createChangeEventDetails, bj as swipe, a7 as useAnimationFrame, f as useTimeout, b as getComputedStyle, I as getWindow, z as addEventListener, D as activeElement, e as getTarget, a0 as contains, i as isHTMLElement, bw as isInteractiveElement, g as getParentNode, ab as popupStateMapping, v as useControlled, ad as itemPress, m as useTransitionStatus, n as useOpenChangeComplete, ay as round, bz as useAnimationsFinished, af as getSide, a6 as useDirection, a5 as inertValue, h as useButton, L as useValueChanged, by as dispatchClickWithModifiers, B as visuallyHiddenInput, C as visuallyHidden, x as none, t as transitionStatusMapping, bm as mergeCleanups, b$ as scrub, bY as gecko, G as createGenericEventDetails, a8 as webkit, V as useStore, be as triggerOpenStateMapping, q as popupTransitionStateMapping } from '../useScrollLock-es.js';
|
|
6
|
+
import { u as useRenderElement, N as NOOP, f as formatErrorMessage, E as EMPTY_OBJECT, a as useRefWithInit, b as useMergedRefs, m as mergeProps, c as EMPTY_ARRAY } from '../useRenderElement-es.js';
|
|
7
|
+
import { a as useFieldItemContext, i as isEligibleInput } from '../useFieldValidation-es.js';
|
|
6
8
|
import { b as DialogBackdrop, d as DialogDescription, f as DialogHandle, c as DialogPopup, a as DialogRoot, e as createDialogHandle, D as DrawerDescription, B as BasePopupHandle } from '../DrawerDescription-es.js';
|
|
7
9
|
import { c as DialogClose, b as DialogTitle, a as DrawerClose, D as DrawerTitle } from '../DrawerTitle-es.js';
|
|
8
|
-
import { i as DialogPortal, h as DialogTrigger, j as DialogViewport, r as useDrawerProviderContext, s as DrawerBackdropCssVars, t as DrawerPopupCssVars, v as DrawerProviderContext, u as useDialogRootContext, w as useDrawerRootContext, x as
|
|
9
|
-
import { u as useRenderElement, N as NOOP, f as formatErrorMessage, E as EMPTY_OBJECT, a as useRefWithInit, b as useMergedRefs, m as mergeProps, c as EMPTY_ARRAY } from '../useRenderElement-es.js';
|
|
10
|
+
import { i as DialogPortal, h as DialogTrigger, j as DialogViewport, r as useDrawerProviderContext, s as DrawerBackdropCssVars, t as DrawerPopupCssVars, v as DrawerProviderContext, u as useDialogRootContext, w as useDrawerRootContext, x as DrawerPopupDataAttributes, y as useSwipeDismiss, z as getElementTransform, A as getDisplacement, B as DrawerVirtualKeyboardContext, C as getElementAtPoint, c as DrawerBackdrop, D as DrawerContent, e as DrawerPopup, b as DrawerPortal, g as DrawerRoot, f as DrawerTrigger, d as DrawerViewport, E as useScrollAreaRootContext, F as scrollAreaStateAttributesMapping, G as getOffset, H as useScrollAreaViewportContext, S as ScrollAreaRoot, a as ScrollAreaViewport } from '../ScrollAreaViewport-es.js';
|
|
10
11
|
import { c as clamp, g as getMaxScrollOffset, n as normalizeScrollOffset, S as SCROLL_EDGE_TOLERANCE_PX } from '../scrollEdges-es.js';
|
|
11
12
|
import { f as findScrollableTouchTarget } from '../scrollable-es.js';
|
|
12
|
-
import { u as useMenuRootContext, o as useMenuPositionerContext, p as useMenuItem, R as REGULAR_ITEM, q as itemMapping, r as createNullMenuStore,
|
|
13
|
+
import { u as useMenuRootContext, o as useMenuPositionerContext, p as useMenuItem, R as REGULAR_ITEM, q as itemMapping, r as createNullMenuStore, n as MenuBackdrop, h as MenuGroup, g as MenuGroupLabel, b as MenuItem, a as MenuLinkItem, k as MenuPopup, i as MenuPortal, j as MenuPositioner, m as MenuRadioGroup, c as MenuRadioItem, d as MenuRadioItemIndicator, f as MenuRoot, l as MenuSubmenuRoot, e as MenuSubmenuTrigger, M as MenuTrigger } from '../MenuSubmenuTrigger-es.js';
|
|
13
14
|
import * as ReactDOM from 'react-dom';
|
|
14
|
-
import { m as usePreviousValue, n as useSelectRootContext, s as selectors, o as useSelectPositionerContext,
|
|
15
|
+
import { m as usePreviousValue, n as useSelectRootContext, s as selectors, o as useSelectPositionerContext, c as SelectGroup, b as SelectGroupLabel, f as SelectItem, d as SelectItemIndicator, e as SelectItemText, g as SelectList, h as SelectPopup, S as SelectPortal, i as SelectPositioner, a as SelectRoot, k as SelectTrigger, j as SelectValue } from '../SelectGroupLabel-es.js';
|
|
15
16
|
import { S as Separator } from '../Separator-es.js';
|
|
16
|
-
import { a as useFieldItemContext, i as isEligibleInput } from '../useFieldValidation-es.js';
|
|
17
17
|
import { u as useNumberFieldRootContext, s as stateAttributesMapping$4, c as NumberFieldDecrement, a as NumberFieldGroup, b as NumberFieldIncrement, d as NumberFieldInput, N as NumberFieldRoot } from '../NumberFieldInput-es.js';
|
|
18
18
|
import { u as useLabel } from '../useLabel-es.js';
|
|
19
19
|
import '../stringifyLocale-es.js';
|
|
@@ -1409,7 +1409,7 @@ function focusKeyboardInputWithoutPageScroll(target) {
|
|
|
1409
1409
|
// iOS Safari can still scroll the page for transformed sheets even with preventScroll.
|
|
1410
1410
|
// Move the input off-screen only for the synchronous focus call; `preventScroll`
|
|
1411
1411
|
// suppresses the in-page ancestor scrolling that would otherwise chase the fake rect.
|
|
1412
|
-
const restoreStyles = overrideGeometryDuringFocus(target, -
|
|
1412
|
+
const restoreStyles = overrideGeometryDuringFocus(target, -2e3);
|
|
1413
1413
|
try {
|
|
1414
1414
|
if (wasFocused) {
|
|
1415
1415
|
target.blur();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useLayoutEffect } from 'react';
|
|
3
|
-
import { ae as evaluate, af as getSide, ag as getSideAxis, ah as getOppositePlacement, ai as getExpandedPlacements, aj as getOppositeAxisPlacements, ak as getAlignmentSides, al as getAlignment, am as min, an as max, ao as
|
|
4
|
-
import { a as useRefWithInit, c as EMPTY_ARRAY, N as NOOP,
|
|
3
|
+
import { ae as evaluate, af as getSide, ag as getSideAxis, ah as getOppositePlacement, ai as getExpandedPlacements, aj as getOppositeAxisPlacements, ak as getAlignmentSides, al as getAlignment, am as min, an as max, ao as clamp, ap as getOppositeAxis, aq as getAlignmentAxis, ar as getPaddingObject, a9 as rectToClientRect, as as getAxisLength, at as getOverflowAncestors, au as isElement, av as getDocumentElement, I as getWindow, aw as floor, i as isHTMLElement, ax as createCoords, ay as round, b as getComputedStyle$1, az as isTopLayer, g as getParentNode, a as isLastTraversableNode, aA as isTableElement, aB as isContainingBlock, aC as getContainingBlock, aD as getNodeName, aE as isOverflowElement, aF as getNodeScroll, aG as isWebKit, aH as getFrameElement, aI as useId, aJ as useFloatingParentNodeId, aK as FloatingRootStore, aL as PopupTriggerMap, c as useIsoLayoutEffect, aM as useFloatingTree, _ as getFloatingFocusElement, aN as isTypeableCombobox, w as useValueAsRef, d as useStableCallback, a7 as useAnimationFrame, aO as enqueueFocus, aP as isIndexOutOfListBounds, aQ as getMinListIndex, aR as getMaxListIndex, D as activeElement, o as ownerDocument, a0 as contains, aS as stopEvent, j as createChangeEventDetails, aT as listNavigation, aU as findNonDisabledListIndex, e as getTarget, W as focusOut, a8 as webkit, ac as isVirtualClick, aV as isVirtualPointerEvent, aW as ARROW_LEFT, aX as ARROW_RIGHT, aY as ARROW_UP, aZ as ARROW_DOWN, f as useTimeout, a_ as isElementVisible, a$ as isListIndexDisabled, u as useBaseUiId, b0 as jsdom, a6 as useDirection, b1 as DISABLED_TRANSITIONS_STYLE, ab as popupStateMapping, b2 as useScrollLock } from './useScrollLock-es.js';
|
|
4
|
+
import { a as useRefWithInit, c as EMPTY_ARRAY, N as NOOP, f as formatErrorMessage, E as EMPTY_OBJECT, u as useRenderElement } from './useRenderElement-es.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import * as ReactDOM from 'react-dom';
|
|
7
7
|
|
|
@@ -3952,4 +3952,4 @@ function useCompositeListItem(params = {}) {
|
|
|
3952
3952
|
};
|
|
3953
3953
|
}
|
|
3954
3954
|
|
|
3955
|
-
export { useCompositeListItem as A, removeItem as B, CompositeList as C, DEFAULT_VALIDITY_STATE as D, isGroupedItems as E, FieldRootContext as F, findSelectionIndex as G, selectedValueIncludes as H,
|
|
3955
|
+
export { useCompositeListItem as A, removeItem as B, CompositeList as C, DEFAULT_VALIDITY_STATE as D, isGroupedItems as E, FieldRootContext as F, findSelectionIndex as G, selectedValueIncludes as H, DEFAULT_FIELD_STATE_ATTRIBUTES as I, DEFAULT_FIELD_ROOT_CONTEXT as J, getDefaultLabelId as K, LabelableContext as L, DEFAULT_SIDES as M, useFormContext as a, useFieldRootContext as b, useLabelableId as c, useRegisterFieldControl as d, compareItemEquality as e, fieldValidityMapping as f, defaultItemEquality as g, hasNullItemLabel as h, findItemIndex as i, useFloatingRootContext as j, useListNavigation as k, useTypeahead as l, useOnFirstRender as m, areArraysEqual as n, stringifyAsLabel as o, isMouseWithinBounds as p, resolveMultipleLabels as q, resolveAriaLabelledBy as r, stringifyAsValue as s, resolveSelectedLabel as t, useLabelableContext as u, useAnchoredPopupScrollLock as v, useAnchorPositioning as w, usePositioner as x, platform as y, getDisabledMountTransitionStyles as z };
|
|
@@ -261,7 +261,7 @@ function requireUseSyncExternalStoreShim_production () {
|
|
|
261
261
|
var nextValue = latestGetSnapshot();
|
|
262
262
|
return !objectIs(inst, nextValue);
|
|
263
263
|
} catch (error) {
|
|
264
|
-
return
|
|
264
|
+
return true;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
@@ -303,7 +303,7 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
303
303
|
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
304
304
|
didWarnOld18Alpha ||
|
|
305
305
|
void 0 === React$1.startTransition ||
|
|
306
|
-
((didWarnOld18Alpha =
|
|
306
|
+
((didWarnOld18Alpha = true),
|
|
307
307
|
console.error(
|
|
308
308
|
"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."
|
|
309
309
|
));
|
|
@@ -314,7 +314,7 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
314
314
|
(console.error(
|
|
315
315
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
316
316
|
),
|
|
317
|
-
(didWarnUncachedGetSnapshot =
|
|
317
|
+
(didWarnUncachedGetSnapshot = true));
|
|
318
318
|
}
|
|
319
319
|
cachedValue = useState({
|
|
320
320
|
inst: { value: value, getSnapshot: getSnapshot }
|
|
@@ -348,7 +348,7 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
348
348
|
var nextValue = latestGetSnapshot();
|
|
349
349
|
return !objectIs(inst, nextValue);
|
|
350
350
|
} catch (error) {
|
|
351
|
-
return
|
|
351
|
+
return true;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
@@ -364,8 +364,8 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
364
364
|
useEffect = React$1.useEffect,
|
|
365
365
|
useLayoutEffect = React$1.useLayoutEffect,
|
|
366
366
|
useDebugValue = React$1.useDebugValue,
|
|
367
|
-
didWarnOld18Alpha =
|
|
368
|
-
didWarnUncachedGetSnapshot =
|
|
367
|
+
didWarnOld18Alpha = false,
|
|
368
|
+
didWarnUncachedGetSnapshot = false,
|
|
369
369
|
shim =
|
|
370
370
|
"undefined" === typeof window ||
|
|
371
371
|
"undefined" === typeof window.document ||
|
|
@@ -429,14 +429,14 @@ function requireWithSelector_production () {
|
|
|
429
429
|
) {
|
|
430
430
|
var instRef = useRef(null);
|
|
431
431
|
if (null === instRef.current) {
|
|
432
|
-
var inst = { hasValue:
|
|
432
|
+
var inst = { hasValue: false, value: null };
|
|
433
433
|
instRef.current = inst;
|
|
434
434
|
} else inst = instRef.current;
|
|
435
435
|
instRef = useMemo(
|
|
436
436
|
function () {
|
|
437
437
|
function memoizedSelector(nextSnapshot) {
|
|
438
438
|
if (!hasMemo) {
|
|
439
|
-
hasMemo =
|
|
439
|
+
hasMemo = true;
|
|
440
440
|
memoizedSnapshot = nextSnapshot;
|
|
441
441
|
nextSnapshot = selector(nextSnapshot);
|
|
442
442
|
if (void 0 !== isEqual && inst.hasValue) {
|
|
@@ -454,7 +454,7 @@ function requireWithSelector_production () {
|
|
|
454
454
|
memoizedSnapshot = nextSnapshot;
|
|
455
455
|
return (memoizedSelection = nextSelection);
|
|
456
456
|
}
|
|
457
|
-
var hasMemo =
|
|
457
|
+
var hasMemo = false,
|
|
458
458
|
memoizedSnapshot,
|
|
459
459
|
memoizedSelection,
|
|
460
460
|
maybeGetServerSnapshot =
|
|
@@ -475,7 +475,7 @@ function requireWithSelector_production () {
|
|
|
475
475
|
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
476
476
|
useEffect(
|
|
477
477
|
function () {
|
|
478
|
-
inst.hasValue =
|
|
478
|
+
inst.hasValue = true;
|
|
479
479
|
inst.value = value;
|
|
480
480
|
},
|
|
481
481
|
[value]
|
|
@@ -529,14 +529,14 @@ function requireWithSelector_development () {
|
|
|
529
529
|
) {
|
|
530
530
|
var instRef = useRef(null);
|
|
531
531
|
if (null === instRef.current) {
|
|
532
|
-
var inst = { hasValue:
|
|
532
|
+
var inst = { hasValue: false, value: null };
|
|
533
533
|
instRef.current = inst;
|
|
534
534
|
} else inst = instRef.current;
|
|
535
535
|
instRef = useMemo(
|
|
536
536
|
function () {
|
|
537
537
|
function memoizedSelector(nextSnapshot) {
|
|
538
538
|
if (!hasMemo) {
|
|
539
|
-
hasMemo =
|
|
539
|
+
hasMemo = true;
|
|
540
540
|
memoizedSnapshot = nextSnapshot;
|
|
541
541
|
nextSnapshot = selector(nextSnapshot);
|
|
542
542
|
if (void 0 !== isEqual && inst.hasValue) {
|
|
@@ -555,7 +555,7 @@ function requireWithSelector_development () {
|
|
|
555
555
|
memoizedSnapshot = nextSnapshot;
|
|
556
556
|
return (memoizedSelection = nextSelection);
|
|
557
557
|
}
|
|
558
|
-
var hasMemo =
|
|
558
|
+
var hasMemo = false,
|
|
559
559
|
memoizedSnapshot,
|
|
560
560
|
memoizedSelection,
|
|
561
561
|
maybeGetServerSnapshot =
|
|
@@ -576,7 +576,7 @@ function requireWithSelector_development () {
|
|
|
576
576
|
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
577
577
|
useEffect(
|
|
578
578
|
function () {
|
|
579
|
-
inst.hasValue =
|
|
579
|
+
inst.hasValue = true;
|
|
580
580
|
inst.value = value;
|
|
581
581
|
},
|
|
582
582
|
[value]
|
package/dist/useScrollLock-es.js
CHANGED
|
@@ -240,7 +240,7 @@ function requireUseSyncExternalStoreShim_production () {
|
|
|
240
240
|
var nextValue = latestGetSnapshot();
|
|
241
241
|
return !objectIs(inst, nextValue);
|
|
242
242
|
} catch (error) {
|
|
243
|
-
return
|
|
243
|
+
return true;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
@@ -282,7 +282,7 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
282
282
|
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
283
283
|
didWarnOld18Alpha ||
|
|
284
284
|
void 0 === React.startTransition ||
|
|
285
|
-
((didWarnOld18Alpha =
|
|
285
|
+
((didWarnOld18Alpha = true),
|
|
286
286
|
console.error(
|
|
287
287
|
"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."
|
|
288
288
|
));
|
|
@@ -293,7 +293,7 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
293
293
|
(console.error(
|
|
294
294
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
295
295
|
),
|
|
296
|
-
(didWarnUncachedGetSnapshot =
|
|
296
|
+
(didWarnUncachedGetSnapshot = true));
|
|
297
297
|
}
|
|
298
298
|
cachedValue = useState({
|
|
299
299
|
inst: { value: value, getSnapshot: getSnapshot }
|
|
@@ -327,7 +327,7 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
327
327
|
var nextValue = latestGetSnapshot();
|
|
328
328
|
return !objectIs(inst, nextValue);
|
|
329
329
|
} catch (error) {
|
|
330
|
-
return
|
|
330
|
+
return true;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
@@ -343,8 +343,8 @@ function requireUseSyncExternalStoreShim_development () {
|
|
|
343
343
|
useEffect = React.useEffect,
|
|
344
344
|
useLayoutEffect = React.useLayoutEffect,
|
|
345
345
|
useDebugValue = React.useDebugValue,
|
|
346
|
-
didWarnOld18Alpha =
|
|
347
|
-
didWarnUncachedGetSnapshot =
|
|
346
|
+
didWarnOld18Alpha = false,
|
|
347
|
+
didWarnUncachedGetSnapshot = false,
|
|
348
348
|
shim =
|
|
349
349
|
"undefined" === typeof window ||
|
|
350
350
|
"undefined" === typeof window.document ||
|
|
@@ -408,14 +408,14 @@ function requireWithSelector_production () {
|
|
|
408
408
|
) {
|
|
409
409
|
var instRef = useRef(null);
|
|
410
410
|
if (null === instRef.current) {
|
|
411
|
-
var inst = { hasValue:
|
|
411
|
+
var inst = { hasValue: false, value: null };
|
|
412
412
|
instRef.current = inst;
|
|
413
413
|
} else inst = instRef.current;
|
|
414
414
|
instRef = useMemo(
|
|
415
415
|
function () {
|
|
416
416
|
function memoizedSelector(nextSnapshot) {
|
|
417
417
|
if (!hasMemo) {
|
|
418
|
-
hasMemo =
|
|
418
|
+
hasMemo = true;
|
|
419
419
|
memoizedSnapshot = nextSnapshot;
|
|
420
420
|
nextSnapshot = selector(nextSnapshot);
|
|
421
421
|
if (void 0 !== isEqual && inst.hasValue) {
|
|
@@ -433,7 +433,7 @@ function requireWithSelector_production () {
|
|
|
433
433
|
memoizedSnapshot = nextSnapshot;
|
|
434
434
|
return (memoizedSelection = nextSelection);
|
|
435
435
|
}
|
|
436
|
-
var hasMemo =
|
|
436
|
+
var hasMemo = false,
|
|
437
437
|
memoizedSnapshot,
|
|
438
438
|
memoizedSelection,
|
|
439
439
|
maybeGetServerSnapshot =
|
|
@@ -454,7 +454,7 @@ function requireWithSelector_production () {
|
|
|
454
454
|
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
455
455
|
useEffect(
|
|
456
456
|
function () {
|
|
457
|
-
inst.hasValue =
|
|
457
|
+
inst.hasValue = true;
|
|
458
458
|
inst.value = value;
|
|
459
459
|
},
|
|
460
460
|
[value]
|
|
@@ -508,14 +508,14 @@ function requireWithSelector_development () {
|
|
|
508
508
|
) {
|
|
509
509
|
var instRef = useRef(null);
|
|
510
510
|
if (null === instRef.current) {
|
|
511
|
-
var inst = { hasValue:
|
|
511
|
+
var inst = { hasValue: false, value: null };
|
|
512
512
|
instRef.current = inst;
|
|
513
513
|
} else inst = instRef.current;
|
|
514
514
|
instRef = useMemo(
|
|
515
515
|
function () {
|
|
516
516
|
function memoizedSelector(nextSnapshot) {
|
|
517
517
|
if (!hasMemo) {
|
|
518
|
-
hasMemo =
|
|
518
|
+
hasMemo = true;
|
|
519
519
|
memoizedSnapshot = nextSnapshot;
|
|
520
520
|
nextSnapshot = selector(nextSnapshot);
|
|
521
521
|
if (void 0 !== isEqual && inst.hasValue) {
|
|
@@ -534,7 +534,7 @@ function requireWithSelector_development () {
|
|
|
534
534
|
memoizedSnapshot = nextSnapshot;
|
|
535
535
|
return (memoizedSelection = nextSelection);
|
|
536
536
|
}
|
|
537
|
-
var hasMemo =
|
|
537
|
+
var hasMemo = false,
|
|
538
538
|
memoizedSnapshot,
|
|
539
539
|
memoizedSelection,
|
|
540
540
|
maybeGetServerSnapshot =
|
|
@@ -555,7 +555,7 @@ function requireWithSelector_development () {
|
|
|
555
555
|
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
556
556
|
useEffect(
|
|
557
557
|
function () {
|
|
558
|
-
inst.hasValue =
|
|
558
|
+
inst.hasValue = true;
|
|
559
559
|
inst.value = value;
|
|
560
560
|
},
|
|
561
561
|
[value]
|
|
@@ -5743,4 +5743,4 @@ function useScrollLock(enabled = true, referenceElement = null) {
|
|
|
5743
5743
|
}, [enabled, referenceElement]);
|
|
5744
5744
|
}
|
|
5745
5745
|
|
|
5746
|
-
export {
|
|
5746
|
+
export { pressableTriggerOpenStateMapping as $, AnimationFrame as A, visuallyHiddenInput as B, visuallyHidden as C, activeElement as D, wheel as E, FOCUSABLE_POPUP_PROPS as F, createGenericEventDetails as G, useOnMount as H, getWindow as I, incrementPress as J, decrementPress as K, useValueChanged as L, inputPaste as M, keyboard as N, inputClear as O, inputChange as P, inputBlur as Q, useOpenInteractionType as R, SafeReact as S, Timeout as T, ReactStore as U, useStore as V, focusOut as W, outsidePress as X, useClick as Y, useDismiss as Z, getFloatingFocusElement as _, isLastTraversableNode as a, isListIndexDisabled as a$, contains as a0, cancelOpen as a1, FloatingPortal as a2, DROPDOWN_COLLISION_AVOIDANCE as a3, InternalBackdrop as a4, inertValue as a5, useDirection as a6, useAnimationFrame as a7, webkit as a8, rectToClientRect as a9, isTableElement as aA, isContainingBlock as aB, getContainingBlock as aC, getNodeName as aD, isOverflowElement as aE, getNodeScroll as aF, isWebKit as aG, getFrameElement as aH, useId as aI, useFloatingParentNodeId as aJ, FloatingRootStore as aK, PopupTriggerMap as aL, useFloatingTree as aM, isTypeableCombobox as aN, enqueueFocus as aO, isIndexOutOfListBounds as aP, getMinListIndex as aQ, getMaxListIndex as aR, stopEvent as aS, listNavigation as aT, findNonDisabledListIndex as aU, isVirtualPointerEvent as aV, ARROW_LEFT as aW, ARROW_RIGHT as aX, ARROW_UP as aY, ARROW_DOWN as aZ, isElementVisible as a_, windowResize as aa, popupStateMapping as ab, isVirtualClick as ac, itemPress as ad, evaluate as ae, getSide as af, getSideAxis as ag, getOppositePlacement as ah, getExpandedPlacements as ai, getOppositeAxisPlacements as aj, getAlignmentSides as ak, getAlignment as al, min as am, max as an, clamp as ao, getOppositeAxis as ap, getAlignmentAxis as aq, getPaddingObject as ar, getAxisLength as as, getOverflowAncestors as at, isElement as au, getDocumentElement as av, floor as aw, createCoords as ax, round as ay, isTopLayer as az, getComputedStyle as b, scrub as b$, jsdom as b0, DISABLED_TRANSITIONS_STYLE as b1, useScrollLock as b2, shimExports as b3, usePopupInteractionProps as b4, setPopupOpenState as b5, usePopupRootStore as b6, usePopupRootSync as b7, useImplicitActiveTrigger as b8, useOpenStateTransitions as b9, POPUP_COLLISION_AVOIDANCE as bA, FloatingNode as bB, siblingOpen as bC, FloatingTreeStore as bD, fastComponent as bE, useFloatingNodeId as bF, attachPreventUnmountOnClose as bG, useSyncedFloatingRootContext as bH, TYPEAHEAD_RESET_MS as bI, FloatingTree as bJ, useCompositeRootContext as bK, isOutsideEvent as bL, getTabbableAfterElement as bM, getNextTabbable as bN, getTabbableBeforeElement as bO, fastComponentRef as bP, FocusGuard as bQ, PATIENT_CLICK_THRESHOLD as bR, useTriggerRegistration as bS, voiceOver as bT, getGridNavigatedIndex as bU, Store as bV, inputPress as bW, pointer as bX, gecko as bY, clearPress as bZ, chipRemovePress as b_, PopupHandleAttachment as ba, useTriggerDataForwarding as bb, useOpenMethodTriggerProps as bc, CLICK_TRIGGER_IDENTIFIER as bd, triggerOpenStateMapping as be, CommonPopupDataAttributes as bf, android as bg, closeWatcher as bh, TransitionStatusDataAttributes as bi, swipe as bj, BASE_UI_SWIPE_IGNORE_SELECTOR as bk, isMouseLikePointerType as bl, mergeCleanups as bm, mac as bn, createAttribute as bo, isTargetInsideEnabledTrigger as bp, triggerFocus as bq, isTypeableElement as br, matchesFocusVisible as bs, triggerPress as bt, escapeKey as bu, triggerHover as bv, isInteractiveElement as bw, getNodeChildren as bx, dispatchClickWithModifiers as by, useAnimationsFinished as bz, useIsoLayoutEffect as c, useStableCallback as d, getTarget as e, useTimeout as f, getParentNode as g, useButton as h, isHTMLElement as i, createChangeEventDetails as j, closePress as k, error as l, useTransitionStatus as m, useOpenChangeComplete as n, ownerDocument as o, imperativeAction as p, popupTransitionStateMapping as q, createDefaultInitialFocus as r, FloatingFocusManager as s, transitionStatusMapping as t, useBaseUiId as u, useControlled as v, useValueAsRef as w, none as x, ios as y, addEventListener as z };
|
|
@@ -3,14 +3,14 @@ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
|
|
|
3
3
|
import { _ as _baseFlatten } from './_baseFlatten-es.js';
|
|
4
4
|
import { a as _arrayMap, b as _baseGet } from './_getAllKeys-es.js';
|
|
5
5
|
import { _ as _baseEach, a as _baseIteratee } from './_baseEach-es.js';
|
|
6
|
-
import {
|
|
6
|
+
import { i as isArrayLike_1, a as isArray_1, j as _baseUnary } from './isTypedArray-es.js';
|
|
7
7
|
import { i as isSymbol_1 } from './isSymbol-es.js';
|
|
8
8
|
import { i as identity_1 } from './identity-es.js';
|
|
9
9
|
import { _ as _baseRest, a as _isIterateeCall } from './_isIterateeCall-es.js';
|
|
10
10
|
import { useLiveAnnounce } from '@jobber/hooks';
|
|
11
11
|
import { d as debounce } from './debounce-es.js';
|
|
12
12
|
import { I as Icon } from './Icon-es.js';
|
|
13
|
-
import { u as useFloating, o as offset, f as flip, m as size
|
|
13
|
+
import { u as useFloating, a as autoUpdate, o as offset, f as flip, m as size } from './floating-ui.react-es.js';
|
|
14
14
|
import { c as calculateMaxHeight } from './maxHeight-es.js';
|
|
15
15
|
|
|
16
16
|
var baseEach = _baseEach,
|
|
@@ -171,7 +171,7 @@ function baseOrderBy$1(collection, iteratees, orders) {
|
|
|
171
171
|
if (isArray(iteratee)) {
|
|
172
172
|
return function(value) {
|
|
173
173
|
return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
174
|
-
}
|
|
174
|
+
};
|
|
175
175
|
}
|
|
176
176
|
return iteratee;
|
|
177
177
|
});
|
|
@@ -230,7 +230,7 @@ var baseFlatten = _baseFlatten,
|
|
|
230
230
|
* _.sortBy(users, ['user', 'age']);
|
|
231
231
|
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
|
232
232
|
*/
|
|
233
|
-
var sortBy = baseRest(function(collection, iteratees) {
|
|
233
|
+
var sortBy$1 = baseRest(function(collection, iteratees) {
|
|
234
234
|
if (collection == null) {
|
|
235
235
|
return [];
|
|
236
236
|
}
|
|
@@ -243,9 +243,9 @@ var sortBy = baseRest(function(collection, iteratees) {
|
|
|
243
243
|
return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
|
|
244
244
|
});
|
|
245
245
|
|
|
246
|
-
var sortBy_1 = sortBy;
|
|
246
|
+
var sortBy_1 = sortBy$1;
|
|
247
247
|
|
|
248
|
-
var sortBy
|
|
248
|
+
var sortBy = /*@__PURE__*/getDefaultExportFromCjs(sortBy_1);
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* Recursively finds a focusable element (div or button) in the specified direction
|
|
@@ -270,7 +270,7 @@ function useInternalChipDismissible({ children, selected, onChange, onClick, onC
|
|
|
270
270
|
const [wrapperElement, setWrapperElement] = useState(null);
|
|
271
271
|
const chipOptions = children.map(chip => chip.props);
|
|
272
272
|
const visibleChipOptions = chipOptions.filter(chip => selected.includes(chip.value));
|
|
273
|
-
const sortedVisibleChipOptions = sortBy
|
|
273
|
+
const sortedVisibleChipOptions = sortBy(visibleChipOptions, chip => selected.indexOf(chip.value));
|
|
274
274
|
const availableChipOptions = chipOptions.filter(chip => !selected.includes(chip.value));
|
|
275
275
|
const { liveAnnounce } = useLiveAnnounce();
|
|
276
276
|
const actions = {
|
|
@@ -578,4 +578,4 @@ function useScrollToActive(index) {
|
|
|
578
578
|
return ref;
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
export {
|
|
581
|
+
export { useInternalChipDismissible as a, useInternalChipDismissibleInput as b, useRepositionMenu as c, useScrollToActive as d, useInView as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "9.16.
|
|
3
|
+
"version": "9.16.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -335,6 +335,11 @@
|
|
|
335
335
|
"import": "./dist/ProgressBar/index.mjs",
|
|
336
336
|
"require": "./dist/ProgressBar/index.cjs"
|
|
337
337
|
},
|
|
338
|
+
"./ProgressIndicator": {
|
|
339
|
+
"types": "./dist/ProgressIndicator/index.d.ts",
|
|
340
|
+
"import": "./dist/ProgressIndicator/index.mjs",
|
|
341
|
+
"require": "./dist/ProgressIndicator/index.cjs"
|
|
342
|
+
},
|
|
338
343
|
"./RadioGroup": {
|
|
339
344
|
"types": "./dist/RadioGroup/index.d.ts",
|
|
340
345
|
"import": "./dist/RadioGroup/index.mjs",
|
|
@@ -484,7 +489,7 @@
|
|
|
484
489
|
"date-fns": "^4.1.0",
|
|
485
490
|
"filesize": "^6.1.0",
|
|
486
491
|
"framer-motion": "^11.11.12",
|
|
487
|
-
"lodash": "^4.
|
|
492
|
+
"lodash": "^4.18.1",
|
|
488
493
|
"react-countdown": "^2.3.2",
|
|
489
494
|
"react-datepicker": "^8.7.0",
|
|
490
495
|
"react-dropzone": "^11.0.2",
|
|
@@ -508,8 +513,8 @@
|
|
|
508
513
|
"@storybook/addon-vitest": "10.3.5",
|
|
509
514
|
"@storybook/react-vite": "10.3.5",
|
|
510
515
|
"@types/node": "^22.10.1",
|
|
511
|
-
"@vitest/browser-playwright": "^4.1.
|
|
512
|
-
"@vitest/coverage-v8": "^4.1.
|
|
516
|
+
"@vitest/browser-playwright": "^4.1.11",
|
|
517
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
513
518
|
"autoprefixer": "^10.4.0",
|
|
514
519
|
"copyfiles": "^2.4.1",
|
|
515
520
|
"jsdom-testing-mocks": "^1.9.0",
|
|
@@ -526,7 +531,7 @@
|
|
|
526
531
|
"storybook": "10.3.5",
|
|
527
532
|
"typed-css-modules": "^0.9.1",
|
|
528
533
|
"vite": "6.4.3",
|
|
529
|
-
"vitest": "^4.1.
|
|
534
|
+
"vitest": "^4.1.11"
|
|
530
535
|
},
|
|
531
536
|
"peerDependencies": {
|
|
532
537
|
"@apollo/client": "^3",
|
|
@@ -548,5 +553,5 @@
|
|
|
548
553
|
"> 1%",
|
|
549
554
|
"IE 10"
|
|
550
555
|
],
|
|
551
|
-
"gitHead": "
|
|
556
|
+
"gitHead": "df5ca5cd691c56be40fad67fae7ea644724656cc"
|
|
552
557
|
}
|