@jobber/components 6.103.2-JOB-140609-8386817.45 → 6.103.2-JOB-141426-ee803fd.19
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/Autocomplete.types.d.ts +1 -12
- package/dist/Autocomplete/components/MenuList.d.ts +2 -1
- package/dist/Autocomplete/components/PersistentRegion.d.ts +2 -1
- package/dist/Autocomplete/hooks/useAutocompleteListNav.d.ts +2 -1
- package/dist/Autocomplete/index.cjs +85 -35
- package/dist/Autocomplete/index.mjs +86 -36
- package/dist/Autocomplete/tests/Autocomplete.setup.d.ts +13 -0
- package/dist/Autocomplete/useAutocomplete.d.ts +1 -0
- package/dist/Checkbox/Checkbox.types.d.ts +9 -2
- package/dist/Checkbox/index.cjs +2 -4
- package/dist/Checkbox/index.mjs +2 -4
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
- package/dist/Chips/index.cjs +2 -2
- package/dist/Chips/index.mjs +2 -2
- package/dist/DataList/components/DataListSearch/index.cjs +12 -1
- package/dist/DataList/components/DataListSearch/index.mjs +12 -1
- package/dist/DataList/index.cjs +8 -0
- package/dist/DataList/index.mjs +8 -0
- package/dist/DataTable/index.cjs +2 -2
- package/dist/DataTable/index.mjs +2 -2
- package/dist/DatePicker/index.cjs +2 -2
- package/dist/DatePicker/index.mjs +2 -2
- package/dist/DatePicker-es.js +1 -1
- package/dist/FormField/FormFieldTypes.d.ts +2 -0
- package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +2 -7
- package/dist/FormField-cjs.js +6 -1
- package/dist/FormField-es.js +6 -2
- package/dist/InputDate/index.cjs +9 -5
- package/dist/InputDate/index.mjs +9 -5
- package/dist/InputDate/useInputDateActivatorActions.d.ts +8 -4
- package/dist/InputEmail/InputEmail.types.d.ts +20 -12
- package/dist/InputEmail/hooks/useInputEmailActions.d.ts +1 -1
- package/dist/InputEmail/hooks/useInputEmailFormField.d.ts +32 -0
- package/dist/InputEmail/index.cjs +44 -8
- package/dist/InputEmail/index.mjs +44 -8
- package/dist/InputNumber/InputNumber.rebuilt.types.d.ts +3 -20
- package/dist/InputNumber/index.cjs +3 -3
- package/dist/InputNumber/index.mjs +3 -3
- package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +27 -13
- package/dist/InputPhoneNumber/hooks/useInputPhoneActions.d.ts +1 -1
- package/dist/InputPhoneNumber/hooks/useInputPhoneFormField.d.ts +71 -0
- package/dist/InputPhoneNumber/index.cjs +34 -17
- package/dist/InputPhoneNumber/index.mjs +34 -17
- package/dist/InputText/InputText.types.d.ts +24 -24
- package/dist/InputText/index.cjs +54 -54
- package/dist/InputText/index.mjs +55 -55
- package/dist/InputText/useInputTextActions.d.ts +1 -1
- package/dist/InputText/useInputTextFormField.d.ts +352 -0
- package/dist/InputTime/InputTime.rebuilt.d.ts +1 -1
- package/dist/InputTime/InputTime.types.d.ts +1 -21
- package/dist/InputTime/index.cjs +33 -63
- package/dist/InputTime/index.d.ts +1 -1
- package/dist/InputTime/index.mjs +36 -66
- package/dist/List/index.cjs +2 -2
- package/dist/List/index.mjs +2 -2
- package/dist/RecurringSelect/index.cjs +2 -2
- package/dist/RecurringSelect/index.mjs +2 -2
- package/dist/Select/Select.rebuilt.d.ts +1 -1
- package/dist/Select/Select.types.d.ts +1 -14
- package/dist/Select/hooks/useSelectActions.d.ts +5 -5
- package/dist/Select/hooks/useSelectFormField.d.ts +34 -0
- package/dist/Select/index.cjs +41 -28
- package/dist/Select/index.d.ts +5 -7
- package/dist/Select/index.mjs +43 -30
- package/dist/Tabs-es.js +1 -1
- package/dist/_baseEach-cjs.js +12 -12
- package/dist/_baseEach-es.js +1 -1
- package/dist/_baseFlatten-cjs.js +2 -2
- package/dist/_baseFlatten-es.js +1 -1
- package/dist/{_getAllKeys-cjs.js → _baseGet-cjs.js} +181 -181
- package/dist/{_getAllKeys-es.js → _baseGet-es.js} +182 -182
- package/dist/debounce-es.js +1 -1
- package/dist/floating-ui.react-cjs.js +115 -0
- package/dist/floating-ui.react-es.js +115 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/omit-cjs.js +14 -14
- package/dist/omit-es.js +1 -1
- package/dist/sharedHelpers/types.d.ts +0 -235
- package/dist/styles.css +3 -0
- package/dist/useScrollToActive-cjs.js +3 -3
- package/dist/useScrollToActive-es.js +2 -2
- package/package.json +2 -2
- package/dist/InputTime/hooks/useInputTimeActions.d.ts +0 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect, useCallback, useMemo, forwardRef } from 'react';
|
|
2
|
-
import { u as useFloating, b as autoUpdate, o as offset, f as flip, c as size, e as useListNavigation, d as useDismiss, g as useInteractions,
|
|
2
|
+
import { u as useFloating, b as autoUpdate, o as offset, f as flip, c as size, r as useClick, e as useListNavigation, d as useDismiss, g as useInteractions, t as useTransitionStyles, F as FloatingPortal, p as FloatingFocusManager } from '../floating-ui.react-es.js';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { tokens } from '@jobber/design';
|
|
5
5
|
import { useCallbackRef, useDebounce, useSafeLayoutEffect, useIsMounted, useOnKeyDown } from '@jobber/hooks';
|
|
@@ -18,6 +18,18 @@ import 'react-hook-form';
|
|
|
18
18
|
import 'framer-motion';
|
|
19
19
|
import '../Button-es.js';
|
|
20
20
|
import 'react-router-dom';
|
|
21
|
+
import '../omit-es.js';
|
|
22
|
+
import '../_commonjsHelpers-es.js';
|
|
23
|
+
import '../_baseGet-es.js';
|
|
24
|
+
import '../isTypedArray-es.js';
|
|
25
|
+
import '../isObjectLike-es.js';
|
|
26
|
+
import '../identity-es.js';
|
|
27
|
+
import '../_getTag-es.js';
|
|
28
|
+
import '../isSymbol-es.js';
|
|
29
|
+
import '../keysIn-es.js';
|
|
30
|
+
import '../_baseAssignValue-es.js';
|
|
31
|
+
import '../_baseFlatten-es.js';
|
|
32
|
+
import '../_setToString-es.js';
|
|
21
33
|
import '../useFormFieldFocus-es.js';
|
|
22
34
|
import '../InputValidation-es.js';
|
|
23
35
|
import '../Spinner-es.js';
|
|
@@ -126,7 +138,7 @@ function invokeActiveItemOnEnter(event, activeIndex, renderable, onSelect, onAct
|
|
|
126
138
|
|
|
127
139
|
const MENU_OFFSET = tokens["space-small"];
|
|
128
140
|
const AUTOCOMPLETE_MAX_HEIGHT$1 = 300;
|
|
129
|
-
function useAutocompleteListNav({ navigableCount, shouldResetActiveIndexOnClose, onMenuClose, selectedIndex, }) {
|
|
141
|
+
function useAutocompleteListNav({ navigableCount, shouldResetActiveIndexOnClose, onMenuClose, selectedIndex, readOnly = false, }) {
|
|
130
142
|
const [open, setOpen] = useState(false);
|
|
131
143
|
const [activeIndex, setActiveIndex] = useState(null);
|
|
132
144
|
const listRef = useRef([]);
|
|
@@ -158,6 +170,10 @@ function useAutocompleteListNav({ navigableCount, shouldResetActiveIndexOnClose,
|
|
|
158
170
|
}),
|
|
159
171
|
],
|
|
160
172
|
});
|
|
173
|
+
const click = useClick(context, {
|
|
174
|
+
enabled: !readOnly,
|
|
175
|
+
toggle: false, // Only open, never close on click
|
|
176
|
+
});
|
|
161
177
|
const listNav = useListNavigation(context, {
|
|
162
178
|
listRef,
|
|
163
179
|
activeIndex,
|
|
@@ -179,7 +195,7 @@ function useAutocompleteListNav({ navigableCount, shouldResetActiveIndexOnClose,
|
|
|
179
195
|
escapeKey: true,
|
|
180
196
|
outsidePressEvent: "click",
|
|
181
197
|
});
|
|
182
|
-
const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([listNav, dismiss]);
|
|
198
|
+
const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([click, listNav, dismiss]);
|
|
183
199
|
useEffect(() => {
|
|
184
200
|
listRef.current.length = navigableCount;
|
|
185
201
|
setActiveIndex(prev => {
|
|
@@ -211,6 +227,7 @@ function useAutocompleteListNav({ navigableCount, shouldResetActiveIndexOnClose,
|
|
|
211
227
|
// eslint-disable-next-line max-statements
|
|
212
228
|
function useAutocomplete(props) {
|
|
213
229
|
const { menu, emptyActions, getOptionLabel: getOptionLabelProp, isOptionEqualToValue, inputValue, onInputChange, value, onChange, multiple, openOnFocus = true, readOnly = false, debounce: debounceMs = 300, } = props;
|
|
230
|
+
const isHandlingMenuInteractionRef = useRef(false);
|
|
214
231
|
// TODO: Clean up the types in these refs by enhancing the type system in useCallbackRef
|
|
215
232
|
const getOptionLabelPropRef = useCallbackRef((opt) => getOptionLabelProp === null || getOptionLabelProp === void 0 ? void 0 : getOptionLabelProp(opt));
|
|
216
233
|
const getOptionLabel = useCallback((opt) => {
|
|
@@ -253,7 +270,8 @@ function useAutocomplete(props) {
|
|
|
253
270
|
const [debouncedInputValue, setDebouncedInputValue] = useState(inputValue);
|
|
254
271
|
const debouncedSetter = useDebounce(setDebouncedInputValue, debounceMs);
|
|
255
272
|
useEffect(() => {
|
|
256
|
-
|
|
273
|
+
// Skip debounce when clearing input for immediate feedback, preventing flickering of last selected item
|
|
274
|
+
if (debounceMs === 0 || inputValue === "") {
|
|
257
275
|
setDebouncedInputValue(inputValue);
|
|
258
276
|
return;
|
|
259
277
|
}
|
|
@@ -343,6 +361,7 @@ function useAutocomplete(props) {
|
|
|
343
361
|
navigableCount: totalNavigableCount,
|
|
344
362
|
shouldResetActiveIndexOnClose: () => !hasSelection,
|
|
345
363
|
selectedIndex,
|
|
364
|
+
readOnly,
|
|
346
365
|
onMenuClose: () => {
|
|
347
366
|
if (props.allowFreeForm !== true) {
|
|
348
367
|
const hasText = inputValue.trim().length > 0;
|
|
@@ -354,7 +373,6 @@ function useAutocomplete(props) {
|
|
|
354
373
|
}
|
|
355
374
|
},
|
|
356
375
|
});
|
|
357
|
-
const [inputFocused, setInputFocused] = useState(false);
|
|
358
376
|
// Handles activeIndex reset and, in single-select mode only, clearing selection when input is empty
|
|
359
377
|
useEffect(() => {
|
|
360
378
|
const hasText = inputValue.trim().length > 0;
|
|
@@ -447,16 +465,29 @@ function useAutocomplete(props) {
|
|
|
447
465
|
setActiveIndex(null);
|
|
448
466
|
}, [open, multiple, value, renderable, equals, setActiveIndex]);
|
|
449
467
|
const onSelection = useCallback((option) => {
|
|
468
|
+
var _a;
|
|
450
469
|
selectOption(option);
|
|
451
470
|
// Might not always want to close on selection. Multi for example.
|
|
452
471
|
setOpen(false);
|
|
453
|
-
|
|
472
|
+
(_a = refs.domReference.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
473
|
+
}, [selectOption, setOpen, refs.domReference]);
|
|
454
474
|
const onAction = useCallback((action) => {
|
|
475
|
+
var _a;
|
|
455
476
|
action.run();
|
|
456
477
|
setActiveIndex(null);
|
|
457
478
|
if (action.closeOnRun !== false)
|
|
458
479
|
setOpen(false);
|
|
459
|
-
|
|
480
|
+
(_a = refs.domReference.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
481
|
+
}, [setOpen, setActiveIndex, refs.domReference]);
|
|
482
|
+
/**
|
|
483
|
+
* Handler for mousedown on interactive menu items (options/actions)
|
|
484
|
+
* Prevents default to avoid blur and sets flag for focus management
|
|
485
|
+
*/
|
|
486
|
+
const onInteractionMouseDown = useCallback((e) => {
|
|
487
|
+
e.preventDefault();
|
|
488
|
+
// Set flag to prevent blur/focus handlers from interfering
|
|
489
|
+
isHandlingMenuInteractionRef.current = true;
|
|
490
|
+
}, []);
|
|
460
491
|
function commitFromInputText(inputText) {
|
|
461
492
|
var _a;
|
|
462
493
|
if (inputText.length === 0)
|
|
@@ -498,14 +529,20 @@ function useAutocomplete(props) {
|
|
|
498
529
|
]);
|
|
499
530
|
const onInputFocus = useCallback(() => {
|
|
500
531
|
var _a;
|
|
501
|
-
|
|
502
|
-
if (!readOnly && openOnFocus)
|
|
532
|
+
if (!readOnly && openOnFocus && !isHandlingMenuInteractionRef.current) {
|
|
503
533
|
setOpen(true);
|
|
504
|
-
|
|
534
|
+
}
|
|
535
|
+
// Only call user's onFocus for genuine focus events, not programmatic restorations
|
|
536
|
+
if (!isHandlingMenuInteractionRef.current) {
|
|
537
|
+
(_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
538
|
+
}
|
|
539
|
+
isHandlingMenuInteractionRef.current = false;
|
|
505
540
|
}, [props.onFocus, readOnly, openOnFocus, setOpen]);
|
|
506
541
|
const onInputBlur = useCallback(() => {
|
|
507
542
|
var _a, _b;
|
|
508
|
-
|
|
543
|
+
if (isHandlingMenuInteractionRef.current) {
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
509
546
|
if (readOnly) {
|
|
510
547
|
(_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
511
548
|
return;
|
|
@@ -611,11 +648,11 @@ function useAutocomplete(props) {
|
|
|
611
648
|
setActiveIndex(null);
|
|
612
649
|
}
|
|
613
650
|
// Important: update open state before propagating the change so that downstream effects
|
|
614
|
-
// don
|
|
651
|
+
// don't see an intermediate state where inputValue changed but open was stale
|
|
615
652
|
if (!readOnly) {
|
|
616
653
|
const hasText = val.trim().length > 0;
|
|
617
654
|
const mustSelectFromOptions = hasText && !props.allowFreeForm;
|
|
618
|
-
const keepOpenOnEmpty = openOnFocus
|
|
655
|
+
const keepOpenOnEmpty = openOnFocus;
|
|
619
656
|
setOpen(mustSelectFromOptions || keepOpenOnEmpty);
|
|
620
657
|
}
|
|
621
658
|
onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(val);
|
|
@@ -626,7 +663,6 @@ function useAutocomplete(props) {
|
|
|
626
663
|
readOnly,
|
|
627
664
|
props.allowFreeForm,
|
|
628
665
|
openOnFocus,
|
|
629
|
-
inputFocused,
|
|
630
666
|
setOpen,
|
|
631
667
|
]);
|
|
632
668
|
return {
|
|
@@ -655,6 +691,7 @@ function useAutocomplete(props) {
|
|
|
655
691
|
// actions
|
|
656
692
|
onSelection,
|
|
657
693
|
onAction,
|
|
694
|
+
onInteractionMouseDown,
|
|
658
695
|
// input handlers
|
|
659
696
|
onInputChangeFromUser,
|
|
660
697
|
onInputBlur,
|
|
@@ -665,7 +702,7 @@ function useAutocomplete(props) {
|
|
|
665
702
|
};
|
|
666
703
|
}
|
|
667
704
|
|
|
668
|
-
function MenuList({ items, activeIndex, indexOffset = 0, getItemProps, listRef, listboxId, customRenderOption, customRenderSection, customRenderAction, getOptionLabel, onSelect, onAction, isOptionSelected, slotOverrides, }) {
|
|
705
|
+
function MenuList({ items, activeIndex, indexOffset = 0, getItemProps, listRef, listboxId, customRenderOption, customRenderSection, customRenderAction, getOptionLabel, onSelect, onAction, onInteractionMouseDown, isOptionSelected, slotOverrides, }) {
|
|
669
706
|
let navigableIndex = -1;
|
|
670
707
|
function renderItemNode(item) {
|
|
671
708
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -689,6 +726,7 @@ function MenuList({ items, activeIndex, indexOffset = 0, getItemProps, listRef,
|
|
|
689
726
|
customRenderOption,
|
|
690
727
|
getOptionLabel,
|
|
691
728
|
onSelect,
|
|
729
|
+
onInteractionMouseDown,
|
|
692
730
|
indexOffset,
|
|
693
731
|
optionClassName: (_c = slotOverrides === null || slotOverrides === void 0 ? void 0 : slotOverrides.option) === null || _c === void 0 ? void 0 : _c.className,
|
|
694
732
|
optionStyle: (_d = slotOverrides === null || slotOverrides === void 0 ? void 0 : slotOverrides.option) === null || _d === void 0 ? void 0 : _d.style,
|
|
@@ -705,6 +743,7 @@ function MenuList({ items, activeIndex, indexOffset = 0, getItemProps, listRef,
|
|
|
705
743
|
listboxId,
|
|
706
744
|
customRenderAction,
|
|
707
745
|
onAction,
|
|
746
|
+
onInteractionMouseDown,
|
|
708
747
|
indexOffset,
|
|
709
748
|
actionClassName: (_e = slotOverrides === null || slotOverrides === void 0 ? void 0 : slotOverrides.action) === null || _e === void 0 ? void 0 : _e.className,
|
|
710
749
|
actionStyle: (_f = slotOverrides === null || slotOverrides === void 0 ? void 0 : slotOverrides.action) === null || _f === void 0 ? void 0 : _f.style,
|
|
@@ -718,12 +757,14 @@ function MenuList({ items, activeIndex, indexOffset = 0, getItemProps, listRef,
|
|
|
718
757
|
function handleSectionRendering({ customRenderSection, section, sectionClassName, sectionStyle, }) {
|
|
719
758
|
var _a;
|
|
720
759
|
const headerContent = customRenderSection ? (customRenderSection(section)) : (React__default.createElement(DefaultSectionContent, { section: section }));
|
|
721
|
-
return (React__default.createElement("div", { key: `section-${String((_a = section.key) !== null && _a !== void 0 ? _a : section.label)}`, role: "presentation", tabIndex: -1, "data-testid": "ATL-AutocompleteRebuilt-Section", className: classnames(styles$1.section, styles$1.stickyTop, sectionClassName), style: sectionStyle
|
|
760
|
+
return (React__default.createElement("div", { key: `section-${String((_a = section.key) !== null && _a !== void 0 ? _a : section.label)}`, role: "presentation", tabIndex: -1, "data-testid": "ATL-AutocompleteRebuilt-Section", className: classnames(styles$1.section, styles$1.stickyTop, sectionClassName), style: sectionStyle, onMouseDown: e => {
|
|
761
|
+
e.preventDefault();
|
|
762
|
+
} }, headerContent));
|
|
722
763
|
}
|
|
723
764
|
function DefaultSectionContent({ section, }) {
|
|
724
765
|
return React__default.createElement(Heading, { level: 5 }, section.label);
|
|
725
766
|
}
|
|
726
|
-
function handleOptionRendering({ option, activeIndex, navigableIndex, getItemProps, listRef, listboxId, isOptionSelected, customRenderOption, getOptionLabel, onSelect, indexOffset = 0, optionClassName, optionStyle, }) {
|
|
767
|
+
function handleOptionRendering({ option, activeIndex, navigableIndex, getItemProps, listRef, listboxId, isOptionSelected, customRenderOption, getOptionLabel, onSelect, onInteractionMouseDown, indexOffset = 0, optionClassName, optionStyle, }) {
|
|
727
768
|
var _a;
|
|
728
769
|
const nextNavigableIndex = navigableIndex + 1;
|
|
729
770
|
const isActive = activeIndex === nextNavigableIndex;
|
|
@@ -737,6 +778,7 @@ function handleOptionRendering({ option, activeIndex, navigableIndex, getItemPro
|
|
|
737
778
|
listRef.current[idx] = node;
|
|
738
779
|
},
|
|
739
780
|
onClick: () => onSelect(option),
|
|
781
|
+
onMouseDown: onInteractionMouseDown,
|
|
740
782
|
className: classnames(styles$1.option, isActive && styles$1.optionActive, optionClassName),
|
|
741
783
|
style: optionStyle,
|
|
742
784
|
}), { role: "option", tabIndex: -1, "aria-selected": isSelected ? true : false, id: `${listboxId}-item-${nextNavigableIndex + indexOffset}`, "data-index": nextNavigableIndex + indexOffset, "data-active": isActive ? true : undefined }), optionContent)),
|
|
@@ -748,7 +790,7 @@ function DefaultOptionContent({ isSelected, text, }) {
|
|
|
748
790
|
React__default.createElement("div", { className: styles$1.icon }, isSelected && React__default.createElement(Icon, { name: "checkmark", size: "small" })),
|
|
749
791
|
React__default.createElement(Text, null, text)));
|
|
750
792
|
}
|
|
751
|
-
function handleActionRendering({ action, activeIndex, navigableIndex, getItemProps, listRef, listboxId, customRenderAction, onAction, indexOffset = 0, actionClassName, actionStyle, origin, }) {
|
|
793
|
+
function handleActionRendering({ action, activeIndex, navigableIndex, getItemProps, listRef, listboxId, customRenderAction, onAction, onInteractionMouseDown, indexOffset = 0, actionClassName, actionStyle, origin, }) {
|
|
752
794
|
var _a;
|
|
753
795
|
const nextNavigableIndex = navigableIndex + 1;
|
|
754
796
|
const isActive = activeIndex === nextNavigableIndex;
|
|
@@ -766,6 +808,7 @@ function handleActionRendering({ action, activeIndex, navigableIndex, getItemPro
|
|
|
766
808
|
closeOnRun: action.shouldClose,
|
|
767
809
|
});
|
|
768
810
|
},
|
|
811
|
+
onMouseDown: onInteractionMouseDown,
|
|
769
812
|
className: classnames(styles$1.action, isActive && styles$1.actionActive, actionClassName),
|
|
770
813
|
style: actionStyle,
|
|
771
814
|
});
|
|
@@ -783,7 +826,7 @@ function DefaultActionContent({ textContent, }) {
|
|
|
783
826
|
} }, textContent));
|
|
784
827
|
}
|
|
785
828
|
|
|
786
|
-
function PersistentRegion({ items, position, activeIndex, indexOffset, getItemProps, listRef, customRenderHeader, customRenderFooter, className, style, onAction, }) {
|
|
829
|
+
function PersistentRegion({ items, position, activeIndex, indexOffset, getItemProps, listRef, customRenderHeader, customRenderFooter, className, style, onAction, onInteractionMouseDown, }) {
|
|
787
830
|
if (!items || items.length === 0)
|
|
788
831
|
return null;
|
|
789
832
|
let navigableIndex = -1;
|
|
@@ -798,13 +841,14 @@ function PersistentRegion({ items, position, activeIndex, indexOffset, getItemPr
|
|
|
798
841
|
customRenderFooter,
|
|
799
842
|
listRef,
|
|
800
843
|
onAction,
|
|
844
|
+
onInteractionMouseDown,
|
|
801
845
|
navigableIndex,
|
|
802
846
|
});
|
|
803
847
|
navigableIndex = result.nextNavigableIndex;
|
|
804
848
|
return result.node;
|
|
805
849
|
})));
|
|
806
850
|
}
|
|
807
|
-
function handlePersistentRendering({ persistent, position, activeIndex, indexOffset, getItemProps, customRenderHeader, customRenderFooter, listRef, onAction, navigableIndex, }) {
|
|
851
|
+
function handlePersistentRendering({ persistent, position, activeIndex, indexOffset, getItemProps, customRenderHeader, customRenderFooter, listRef, onAction, onInteractionMouseDown, navigableIndex, }) {
|
|
808
852
|
const interactive = Boolean(persistent.onClick);
|
|
809
853
|
if (!interactive) {
|
|
810
854
|
const node = handleTextPersistentRendering({
|
|
@@ -825,6 +869,7 @@ function handlePersistentRendering({ persistent, position, activeIndex, indexOff
|
|
|
825
869
|
customRenderFooter,
|
|
826
870
|
listRef,
|
|
827
871
|
onAction,
|
|
872
|
+
onInteractionMouseDown,
|
|
828
873
|
navigableIndex,
|
|
829
874
|
});
|
|
830
875
|
}
|
|
@@ -840,9 +885,11 @@ function handleTextPersistentRendering({ persistent, position, customRenderHeade
|
|
|
840
885
|
else {
|
|
841
886
|
content = React__default.createElement(DefaultTextPersistentContent, { persistent: persistent });
|
|
842
887
|
}
|
|
843
|
-
return (React__default.createElement("div", { key: `persistent-${position}-${String((_a = persistent.key) !== null && _a !== void 0 ? _a : persistent.label)}`, role: "presentation", tabIndex: -1, className: styles$1.textPersistent
|
|
888
|
+
return (React__default.createElement("div", { key: `persistent-${position}-${String((_a = persistent.key) !== null && _a !== void 0 ? _a : persistent.label)}`, role: "presentation", tabIndex: -1, className: styles$1.textPersistent, onMouseDown: e => {
|
|
889
|
+
e.preventDefault();
|
|
890
|
+
} }, content));
|
|
844
891
|
}
|
|
845
|
-
function handleActionPersistentRendering({ persistent, position, activeIndex, indexOffset, getItemProps, customRenderHeader, customRenderFooter, listRef, onAction, navigableIndex, }) {
|
|
892
|
+
function handleActionPersistentRendering({ persistent, position, activeIndex, indexOffset, getItemProps, customRenderHeader, customRenderFooter, listRef, onAction, onInteractionMouseDown, navigableIndex, }) {
|
|
846
893
|
var _a;
|
|
847
894
|
const nextNavigableIndex = navigableIndex + 1;
|
|
848
895
|
const isActive = activeIndex === indexOffset + nextNavigableIndex;
|
|
@@ -869,13 +916,16 @@ function handleActionPersistentRendering({ persistent, position, activeIndex, in
|
|
|
869
916
|
if (persistNode)
|
|
870
917
|
listRef.current[idx] = persistNode;
|
|
871
918
|
},
|
|
872
|
-
onClick: () =>
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
919
|
+
onClick: () => {
|
|
920
|
+
onAction({
|
|
921
|
+
run: () => {
|
|
922
|
+
var _a;
|
|
923
|
+
(_a = persistent.onClick) === null || _a === void 0 ? void 0 : _a.call(persistent);
|
|
924
|
+
},
|
|
925
|
+
closeOnRun: persistent.shouldClose,
|
|
926
|
+
});
|
|
927
|
+
},
|
|
928
|
+
onMouseDown: onInteractionMouseDown,
|
|
879
929
|
className: classnames(styles$1.action, isActive && styles$1.actionActive),
|
|
880
930
|
}), { role: "button", tabIndex: -1 }), content)),
|
|
881
931
|
nextNavigableIndex,
|
|
@@ -890,7 +940,7 @@ const AutocompleteRebuilt = forwardRef(AutocompleteRebuiltInternal);
|
|
|
890
940
|
function AutocompleteRebuiltInternal(props, forwardedRef) {
|
|
891
941
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
892
942
|
const { inputValue, placeholder, disabled, error, invalid, description, size: sizeProp, loading = false, } = props;
|
|
893
|
-
const { renderable, optionCount, persistentsHeaders, persistentsFooters, headerInteractiveCount, middleNavigableCount, getOptionLabel, isOptionSelected, refs, floatingStyles, context, getReferenceProps, getFloatingProps, getItemProps, activeIndex, open, listRef, onSelection, onAction, onInputChangeFromUser, onInputBlur, onInputFocus, onInputKeyDown, setReferenceElement, } = useAutocomplete(props);
|
|
943
|
+
const { renderable, optionCount, persistentsHeaders, persistentsFooters, headerInteractiveCount, middleNavigableCount, getOptionLabel, isOptionSelected, refs, floatingStyles, context, getReferenceProps, getFloatingProps, getItemProps, activeIndex, open, listRef, onSelection, onAction, onInteractionMouseDown, onInputChangeFromUser, onInputBlur, onInputFocus, onInputKeyDown, setReferenceElement, } = useAutocomplete(props);
|
|
894
944
|
const listboxId = React__default.useId();
|
|
895
945
|
// Provides mount/unmount-aware transition styles for the floating element
|
|
896
946
|
const { isMounted, styles: transitionStyles } = useTransitionStyles(context, {
|
|
@@ -907,7 +957,7 @@ function AutocompleteRebuiltInternal(props, forwardedRef) {
|
|
|
907
957
|
onBlur: onInputBlur,
|
|
908
958
|
});
|
|
909
959
|
const inputProps = Object.assign(Object.assign(Object.assign(Object.assign({ version: 2, value: inputValue, onChange: props.readOnly ? undefined : onInputChangeFromUser }, (props.readOnly ? { onFocus: onInputFocus, onBlur: onInputBlur } : {})), { placeholder,
|
|
910
|
-
disabled, readOnly: props.readOnly, error: error !== null && error !== void 0 ? error : undefined, name: props.name, invalid, autoComplete: "off", description, size: sizeProp ? sizeProp : undefined, prefix: props.prefix, suffix: props.suffix }), (props.readOnly ? {} : composedReferenceProps)), { role: "combobox",
|
|
960
|
+
disabled, readOnly: props.readOnly, error: error !== null && error !== void 0 ? error : undefined, name: props.name, invalid, autoComplete: "off", description, size: sizeProp ? sizeProp : undefined, prefix: props.prefix, suffix: props.suffix }), (props.readOnly ? {} : composedReferenceProps)), { role: "combobox", "aria-autocomplete": "list", "aria-expanded": open ? true : false, "aria-controls": listboxId, "aria-activedescendant": open && activeIndex != null
|
|
911
961
|
? `${listboxId}-item-${activeIndex}`
|
|
912
962
|
: undefined });
|
|
913
963
|
const referenceInputRef = (node) => {
|
|
@@ -949,10 +999,10 @@ function AutocompleteRebuiltInternal(props, forwardedRef) {
|
|
|
949
999
|
? { width: menuWidth, maxWidth: menuWidth }
|
|
950
1000
|
: {})),
|
|
951
1001
|
})),
|
|
952
|
-
React__default.createElement(PersistentRegion, { items: persistentsHeaders, position: "header", activeIndex: activeIndex, indexOffset: 0, listboxId: listboxId, getItemProps: getItemProps, listRef: listRef, customRenderHeader: props.customRenderHeader, customRenderFooter: props.customRenderFooter, onAction: onAction, className: classnames(styles$1.persistentHeader, (_c = props.UNSAFE_className) === null || _c === void 0 ? void 0 : _c.header), style: (_d = props.UNSAFE_styles) === null || _d === void 0 ? void 0 : _d.header }),
|
|
1002
|
+
React__default.createElement(PersistentRegion, { items: persistentsHeaders, position: "header", activeIndex: activeIndex, indexOffset: 0, listboxId: listboxId, getItemProps: getItemProps, listRef: listRef, customRenderHeader: props.customRenderHeader, customRenderFooter: props.customRenderFooter, onAction: onAction, onInteractionMouseDown: onInteractionMouseDown, className: classnames(styles$1.persistentHeader, (_c = props.UNSAFE_className) === null || _c === void 0 ? void 0 : _c.header), style: (_d = props.UNSAFE_styles) === null || _d === void 0 ? void 0 : _d.header }),
|
|
953
1003
|
React__default.createElement("div", { className: styles$1.scrollRegion }, loading ? ((_e = props.customRenderLoading) !== null && _e !== void 0 ? _e : React__default.createElement(LoadingContent, null)) : (React__default.createElement(React__default.Fragment, null,
|
|
954
1004
|
showEmptyStateMessage && (React__default.createElement(EmptyStateMessage, { emptyState: props.emptyStateMessage })),
|
|
955
|
-
renderable.length > 0 && (React__default.createElement(MenuList, { items: renderable, activeIndex: activeIndexForMiddle, indexOffset: headerInteractiveCount, listboxId: listboxId, getItemProps: getItemProps, listRef: listRef, customRenderOption: props.customRenderOption, customRenderSection: props.customRenderSection, customRenderAction: props.customRenderAction, getOptionLabel: getOptionLabel, onSelect: onSelection, onAction: onAction, isOptionSelected: isOptionSelected, slotOverrides: {
|
|
1005
|
+
renderable.length > 0 && (React__default.createElement(MenuList, { items: renderable, activeIndex: activeIndexForMiddle, indexOffset: headerInteractiveCount, listboxId: listboxId, getItemProps: getItemProps, listRef: listRef, customRenderOption: props.customRenderOption, customRenderSection: props.customRenderSection, customRenderAction: props.customRenderAction, getOptionLabel: getOptionLabel, onSelect: onSelection, onAction: onAction, onInteractionMouseDown: onInteractionMouseDown, isOptionSelected: isOptionSelected, slotOverrides: {
|
|
956
1006
|
option: {
|
|
957
1007
|
className: (_f = props.UNSAFE_className) === null || _f === void 0 ? void 0 : _f.option,
|
|
958
1008
|
style: (_g = props.UNSAFE_styles) === null || _g === void 0 ? void 0 : _g.option,
|
|
@@ -966,10 +1016,10 @@ function AutocompleteRebuiltInternal(props, forwardedRef) {
|
|
|
966
1016
|
style: (_l = props.UNSAFE_styles) === null || _l === void 0 ? void 0 : _l.section,
|
|
967
1017
|
},
|
|
968
1018
|
} }))))),
|
|
969
|
-
React__default.createElement(PersistentRegion, { items: persistentsFooters, position: "footer", activeIndex: activeIndex, indexOffset: headerInteractiveCount + middleNavigableCount, listboxId: listboxId, getItemProps: getItemProps, listRef: listRef, customRenderHeader: props.customRenderHeader, customRenderFooter: props.customRenderFooter, onAction: onAction, className: classnames(styles$1.persistentFooter, (_m = props.UNSAFE_className) === null || _m === void 0 ? void 0 : _m.footer), style: (_o = props.UNSAFE_styles) === null || _o === void 0 ? void 0 : _o.footer })))))));
|
|
1019
|
+
React__default.createElement(PersistentRegion, { items: persistentsFooters, position: "footer", activeIndex: activeIndex, indexOffset: headerInteractiveCount + middleNavigableCount, listboxId: listboxId, getItemProps: getItemProps, listRef: listRef, customRenderHeader: props.customRenderHeader, customRenderFooter: props.customRenderFooter, onAction: onAction, onInteractionMouseDown: onInteractionMouseDown, className: classnames(styles$1.persistentFooter, (_m = props.UNSAFE_className) === null || _m === void 0 ? void 0 : _m.footer), style: (_o = props.UNSAFE_styles) === null || _o === void 0 ? void 0 : _o.footer })))))));
|
|
970
1020
|
}
|
|
971
1021
|
function LoadingContent() {
|
|
972
|
-
return (React__default.createElement("div", { className: styles$1.loadingList },
|
|
1022
|
+
return (React__default.createElement("div", { className: styles$1.loadingList, onMouseDown: e => e.preventDefault() },
|
|
973
1023
|
React__default.createElement(Glimmer, { shape: "rectangle", size: "base" }),
|
|
974
1024
|
React__default.createElement(Glimmer, { shape: "rectangle", size: "base" }),
|
|
975
1025
|
React__default.createElement(Glimmer, { shape: "rectangle", size: "base" })));
|
|
@@ -977,7 +1027,7 @@ function LoadingContent() {
|
|
|
977
1027
|
function EmptyStateMessage({ emptyState, }) {
|
|
978
1028
|
const emptyStateDefault = "No options";
|
|
979
1029
|
const emptyStateContent = emptyState !== null && emptyState !== void 0 ? emptyState : emptyStateDefault;
|
|
980
|
-
return React__default.createElement("div", { className: styles$1.emptyStateMessage }, emptyStateContent);
|
|
1030
|
+
return (React__default.createElement("div", { className: styles$1.emptyStateMessage, onMouseDown: e => e.preventDefault() }, emptyStateContent));
|
|
981
1031
|
}
|
|
982
1032
|
|
|
983
1033
|
var styles = {"autocomplete":"_7mObJiwfPh4-","options":"dL5JShAJlKM-","heading":"PWZL-94hH7k-","visible":"_2RzcnTdaPyc-","option":"y9zhi8Wr8QA-","active":"_3Xg49dtL1Q8-","separator":"LIeh390F3W8-","icon":"K2phy6IC3TY-","text":"a6-LbUm5WnY-","label":"tQNbuxcE9nU-","details":"qacStG9-XbE-","spinning":"P9cQDL4MZ-s-"};
|
|
@@ -36,3 +36,16 @@ export declare function FreeFormWrapper({ initialValue, initialInputValue, onCha
|
|
|
36
36
|
readonly inputEqualsOption?: (input: string, option: OptionLike) => boolean;
|
|
37
37
|
readonly debounce?: number;
|
|
38
38
|
}): React.JSX.Element;
|
|
39
|
+
/**
|
|
40
|
+
* Wrapper for testing focus and blur behavior with tabbable siblings
|
|
41
|
+
* Includes tabbable elements before and after the autocomplete
|
|
42
|
+
* so tests can use tab navigation to focus without clicking
|
|
43
|
+
*/
|
|
44
|
+
export declare function FocusableSiblingsWrapper<T extends OptionLike>({ onFocus, onChange, onInputChange, menu, readOnly, openOnFocus, }: {
|
|
45
|
+
readonly onChange?: (v: T | undefined) => void;
|
|
46
|
+
readonly onInputChange?: (v: string) => void;
|
|
47
|
+
readonly menu?: MenuItem<T>[];
|
|
48
|
+
readonly readOnly?: boolean;
|
|
49
|
+
readonly onFocus?: () => void;
|
|
50
|
+
readonly openOnFocus?: boolean;
|
|
51
|
+
}): React.JSX.Element;
|
|
@@ -58,6 +58,7 @@ export declare function useAutocomplete<Value extends OptionLike, Multiple exten
|
|
|
58
58
|
listRef: React.MutableRefObject<(HTMLElement | null)[]>;
|
|
59
59
|
onSelection: (option: Value) => void;
|
|
60
60
|
onAction: (action: ActionConfig) => void;
|
|
61
|
+
onInteractionMouseDown: (e: React.MouseEvent) => void;
|
|
61
62
|
onInputChangeFromUser: (val: string) => void;
|
|
62
63
|
onInputBlur: () => void;
|
|
63
64
|
onInputFocus: () => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from "react";
|
|
2
2
|
import type { XOR } from "ts-xor";
|
|
3
|
-
|
|
4
|
-
export interface BaseCheckboxProps extends AriaInputProps, FocusEvents<HTMLInputElement> {
|
|
3
|
+
export interface BaseCheckboxProps {
|
|
5
4
|
/**
|
|
6
5
|
* Determines if the checkbox is checked or not.
|
|
7
6
|
*/
|
|
@@ -42,6 +41,14 @@ export interface BaseCheckboxProps extends AriaInputProps, FocusEvents<HTMLInput
|
|
|
42
41
|
* Called when the checkbox value changes
|
|
43
42
|
*/
|
|
44
43
|
onChange?(newValue: boolean): void;
|
|
44
|
+
/**
|
|
45
|
+
* Called when the checkbox is focused
|
|
46
|
+
*/
|
|
47
|
+
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
|
|
48
|
+
/**
|
|
49
|
+
* Called when the checkbox loses focus
|
|
50
|
+
*/
|
|
51
|
+
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
|
|
45
52
|
/**
|
|
46
53
|
* Whether the checkbox is invalid
|
|
47
54
|
*/
|
package/dist/Checkbox/index.cjs
CHANGED
|
@@ -54,10 +54,9 @@ function CheckboxLegacy({ checked, defaultChecked, disabled, label, name, value,
|
|
|
54
54
|
} }));
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const CheckboxRebuilt = React.forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid,
|
|
57
|
+
const CheckboxRebuilt = React.forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid, }, ref) {
|
|
58
58
|
const descriptionIdentifier = React.useId();
|
|
59
59
|
const wrapperClassName = classnames(styles.wrapper, disabled && styles.disabled, invalid && styles.invalid);
|
|
60
|
-
const isInvalid = Boolean(invalid);
|
|
61
60
|
const inputClassName = classnames(styles.input, {
|
|
62
61
|
[styles.indeterminate]: indeterminate,
|
|
63
62
|
});
|
|
@@ -71,8 +70,7 @@ const CheckboxRebuilt = React.forwardRef(function CheckboxRebuiltInternal({ chec
|
|
|
71
70
|
return (React.createElement("div", { className: styles.checkBoxParent },
|
|
72
71
|
React.createElement("label", { className: wrapperClassName },
|
|
73
72
|
React.createElement("span", { className: styles.checkHolder },
|
|
74
|
-
React.createElement("input", { ref: ref, type: "checkbox", id: id, className: inputClassName, name: name, "aria-
|
|
75
|
-
(description ? descriptionIdentifier : undefined), "aria-invalid": isInvalid ? true : undefined, "aria-required": ariaRequired, checked: checked, value: value, defaultChecked: defaultChecked, disabled: disabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }),
|
|
73
|
+
React.createElement("input", { ref: ref, type: "checkbox", id: id, className: inputClassName, name: name, "aria-describedby": description ? descriptionIdentifier : undefined, checked: checked, value: value, defaultChecked: defaultChecked, disabled: disabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }),
|
|
76
74
|
React.createElement("span", { className: styles.checkBox },
|
|
77
75
|
React.createElement(Icon.Icon, { name: iconName, color: "surface" }))),
|
|
78
76
|
labelContent && React.createElement("span", { className: styles.label }, labelContent)),
|
package/dist/Checkbox/index.mjs
CHANGED
|
@@ -52,10 +52,9 @@ function CheckboxLegacy({ checked, defaultChecked, disabled, label, name, value,
|
|
|
52
52
|
} }));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
const CheckboxRebuilt = forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid,
|
|
55
|
+
const CheckboxRebuilt = forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid, }, ref) {
|
|
56
56
|
const descriptionIdentifier = useId();
|
|
57
57
|
const wrapperClassName = classnames(styles.wrapper, disabled && styles.disabled, invalid && styles.invalid);
|
|
58
|
-
const isInvalid = Boolean(invalid);
|
|
59
58
|
const inputClassName = classnames(styles.input, {
|
|
60
59
|
[styles.indeterminate]: indeterminate,
|
|
61
60
|
});
|
|
@@ -69,8 +68,7 @@ const CheckboxRebuilt = forwardRef(function CheckboxRebuiltInternal({ checked, d
|
|
|
69
68
|
return (React__default.createElement("div", { className: styles.checkBoxParent },
|
|
70
69
|
React__default.createElement("label", { className: wrapperClassName },
|
|
71
70
|
React__default.createElement("span", { className: styles.checkHolder },
|
|
72
|
-
React__default.createElement("input", { ref: ref, type: "checkbox", id: id, className: inputClassName, name: name, "aria-
|
|
73
|
-
(description ? descriptionIdentifier : undefined), "aria-invalid": isInvalid ? true : undefined, "aria-required": ariaRequired, checked: checked, value: value, defaultChecked: defaultChecked, disabled: disabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }),
|
|
71
|
+
React__default.createElement("input", { ref: ref, type: "checkbox", id: id, className: inputClassName, name: name, "aria-describedby": description ? descriptionIdentifier : undefined, checked: checked, value: value, defaultChecked: defaultChecked, disabled: disabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }),
|
|
74
72
|
React__default.createElement("span", { className: styles.checkBox },
|
|
75
73
|
React__default.createElement(Icon, { name: iconName, color: "surface" }))),
|
|
76
74
|
labelContent && React__default.createElement("span", { className: styles.label }, labelContent)),
|
|
@@ -4,12 +4,12 @@ var useScrollToActive = require('../../../useScrollToActive-cjs.js');
|
|
|
4
4
|
require('react');
|
|
5
5
|
require('../../../_commonjsHelpers-cjs.js');
|
|
6
6
|
require('../../../_baseFlatten-cjs.js');
|
|
7
|
-
require('../../../
|
|
7
|
+
require('../../../_baseGet-cjs.js');
|
|
8
8
|
require('../../../isTypedArray-cjs.js');
|
|
9
9
|
require('../../../isObjectLike-cjs.js');
|
|
10
|
-
require('../../../isSymbol-cjs.js');
|
|
11
10
|
require('../../../identity-cjs.js');
|
|
12
11
|
require('../../../_getTag-cjs.js');
|
|
12
|
+
require('../../../isSymbol-cjs.js');
|
|
13
13
|
require('../../../_baseEach-cjs.js');
|
|
14
14
|
require('../../../_baseFor-cjs.js');
|
|
15
15
|
require('../../../_isIterateeCall-cjs.js');
|
|
@@ -2,12 +2,12 @@ export { b as useInView, u as useInternalChipDismissible, a as useInternalChipDi
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../_commonjsHelpers-es.js';
|
|
4
4
|
import '../../../_baseFlatten-es.js';
|
|
5
|
-
import '../../../
|
|
5
|
+
import '../../../_baseGet-es.js';
|
|
6
6
|
import '../../../isTypedArray-es.js';
|
|
7
7
|
import '../../../isObjectLike-es.js';
|
|
8
|
-
import '../../../isSymbol-es.js';
|
|
9
8
|
import '../../../identity-es.js';
|
|
10
9
|
import '../../../_getTag-es.js';
|
|
10
|
+
import '../../../isSymbol-es.js';
|
|
11
11
|
import '../../../_baseEach-es.js';
|
|
12
12
|
import '../../../_baseFor-es.js';
|
|
13
13
|
import '../../../_isIterateeCall-es.js';
|
|
@@ -5,12 +5,12 @@ require('react');
|
|
|
5
5
|
require('../../useScrollToActive-cjs.js');
|
|
6
6
|
require('../../_commonjsHelpers-cjs.js');
|
|
7
7
|
require('../../_baseFlatten-cjs.js');
|
|
8
|
-
require('../../
|
|
8
|
+
require('../../_baseGet-cjs.js');
|
|
9
9
|
require('../../isTypedArray-cjs.js');
|
|
10
10
|
require('../../isObjectLike-cjs.js');
|
|
11
|
-
require('../../isSymbol-cjs.js');
|
|
12
11
|
require('../../identity-cjs.js');
|
|
13
12
|
require('../../_getTag-cjs.js');
|
|
13
|
+
require('../../isSymbol-cjs.js');
|
|
14
14
|
require('../../_baseEach-cjs.js');
|
|
15
15
|
require('../../_baseFor-cjs.js');
|
|
16
16
|
require('../../_isIterateeCall-cjs.js');
|
|
@@ -3,12 +3,12 @@ import 'react';
|
|
|
3
3
|
import '../../useScrollToActive-es.js';
|
|
4
4
|
import '../../_commonjsHelpers-es.js';
|
|
5
5
|
import '../../_baseFlatten-es.js';
|
|
6
|
-
import '../../
|
|
6
|
+
import '../../_baseGet-es.js';
|
|
7
7
|
import '../../isTypedArray-es.js';
|
|
8
8
|
import '../../isObjectLike-es.js';
|
|
9
|
-
import '../../isSymbol-es.js';
|
|
10
9
|
import '../../identity-es.js';
|
|
11
10
|
import '../../_getTag-es.js';
|
|
11
|
+
import '../../isSymbol-es.js';
|
|
12
12
|
import '../../_baseEach-es.js';
|
|
13
13
|
import '../../_baseFor-es.js';
|
|
14
14
|
import '../../_isIterateeCall-es.js';
|
package/dist/Chips/index.cjs
CHANGED
|
@@ -7,12 +7,12 @@ var Chips = require('../Chips-cjs.js');
|
|
|
7
7
|
require('../useScrollToActive-cjs.js');
|
|
8
8
|
require('../_commonjsHelpers-cjs.js');
|
|
9
9
|
require('../_baseFlatten-cjs.js');
|
|
10
|
-
require('../
|
|
10
|
+
require('../_baseGet-cjs.js');
|
|
11
11
|
require('../isTypedArray-cjs.js');
|
|
12
12
|
require('../isObjectLike-cjs.js');
|
|
13
|
-
require('../isSymbol-cjs.js');
|
|
14
13
|
require('../identity-cjs.js');
|
|
15
14
|
require('../_getTag-cjs.js');
|
|
15
|
+
require('../isSymbol-cjs.js');
|
|
16
16
|
require('../_baseEach-cjs.js');
|
|
17
17
|
require('../_baseFor-cjs.js');
|
|
18
18
|
require('../_isIterateeCall-cjs.js');
|
package/dist/Chips/index.mjs
CHANGED
|
@@ -5,12 +5,12 @@ export { C as Chips } from '../Chips-es.js';
|
|
|
5
5
|
import '../useScrollToActive-es.js';
|
|
6
6
|
import '../_commonjsHelpers-es.js';
|
|
7
7
|
import '../_baseFlatten-es.js';
|
|
8
|
-
import '../
|
|
8
|
+
import '../_baseGet-es.js';
|
|
9
9
|
import '../isTypedArray-es.js';
|
|
10
10
|
import '../isObjectLike-es.js';
|
|
11
|
-
import '../isSymbol-es.js';
|
|
12
11
|
import '../identity-es.js';
|
|
13
12
|
import '../_getTag-es.js';
|
|
13
|
+
import '../isSymbol-es.js';
|
|
14
14
|
import '../_baseEach-es.js';
|
|
15
15
|
import '../_baseFor-es.js';
|
|
16
16
|
import '../_isIterateeCall-es.js';
|
|
@@ -18,9 +18,20 @@ require('../../../useFormFieldFocus-cjs.js');
|
|
|
18
18
|
require('../../../InputValidation-cjs.js');
|
|
19
19
|
require('../../../Spinner-cjs.js');
|
|
20
20
|
require('react-hook-form');
|
|
21
|
+
require('../../../omit-cjs.js');
|
|
22
|
+
require('../../../_commonjsHelpers-cjs.js');
|
|
23
|
+
require('../../../_baseGet-cjs.js');
|
|
24
|
+
require('../../../isTypedArray-cjs.js');
|
|
25
|
+
require('../../../isObjectLike-cjs.js');
|
|
26
|
+
require('../../../identity-cjs.js');
|
|
27
|
+
require('../../../_getTag-cjs.js');
|
|
28
|
+
require('../../../isSymbol-cjs.js');
|
|
29
|
+
require('../../../keysIn-cjs.js');
|
|
30
|
+
require('../../../_baseAssignValue-cjs.js');
|
|
31
|
+
require('../../../_baseFlatten-cjs.js');
|
|
32
|
+
require('../../../_setToString-cjs.js');
|
|
21
33
|
require('../../../DataListContext-cjs.js');
|
|
22
34
|
require('../../../noop-cjs.js');
|
|
23
|
-
require('../../../_commonjsHelpers-cjs.js');
|
|
24
35
|
require('../../../DataList.const-cjs.js');
|
|
25
36
|
require('../../../AnimatedSwitcher-cjs.js');
|
|
26
37
|
|
|
@@ -16,8 +16,19 @@ import '../../../useFormFieldFocus-es.js';
|
|
|
16
16
|
import '../../../InputValidation-es.js';
|
|
17
17
|
import '../../../Spinner-es.js';
|
|
18
18
|
import 'react-hook-form';
|
|
19
|
+
import '../../../omit-es.js';
|
|
20
|
+
import '../../../_commonjsHelpers-es.js';
|
|
21
|
+
import '../../../_baseGet-es.js';
|
|
22
|
+
import '../../../isTypedArray-es.js';
|
|
23
|
+
import '../../../isObjectLike-es.js';
|
|
24
|
+
import '../../../identity-es.js';
|
|
25
|
+
import '../../../_getTag-es.js';
|
|
26
|
+
import '../../../isSymbol-es.js';
|
|
27
|
+
import '../../../keysIn-es.js';
|
|
28
|
+
import '../../../_baseAssignValue-es.js';
|
|
29
|
+
import '../../../_baseFlatten-es.js';
|
|
30
|
+
import '../../../_setToString-es.js';
|
|
19
31
|
import '../../../DataListContext-es.js';
|
|
20
32
|
import '../../../noop-es.js';
|
|
21
|
-
import '../../../_commonjsHelpers-es.js';
|
|
22
33
|
import '../../../DataList.const-es.js';
|
|
23
34
|
import '../../../AnimatedSwitcher-es.js';
|
package/dist/DataList/index.cjs
CHANGED
|
@@ -81,6 +81,14 @@ require('../InputText/index.cjs');
|
|
|
81
81
|
require('../FormField-cjs.js');
|
|
82
82
|
require('../useFormFieldFocus-cjs.js');
|
|
83
83
|
require('../InputValidation-cjs.js');
|
|
84
|
+
require('../omit-cjs.js');
|
|
85
|
+
require('../_baseGet-cjs.js');
|
|
86
|
+
require('../identity-cjs.js');
|
|
87
|
+
require('../isSymbol-cjs.js');
|
|
88
|
+
require('../keysIn-cjs.js');
|
|
89
|
+
require('../_baseAssignValue-cjs.js');
|
|
90
|
+
require('../_baseFlatten-cjs.js');
|
|
91
|
+
require('../_setToString-cjs.js');
|
|
84
92
|
require('../DataListEmptyState-cjs.js');
|
|
85
93
|
require('../DataListLoadMore-cjs.js');
|
|
86
94
|
require('../DataListAction-cjs.js');
|
package/dist/DataList/index.mjs
CHANGED
|
@@ -79,6 +79,14 @@ import '../InputText/index.mjs';
|
|
|
79
79
|
import '../FormField-es.js';
|
|
80
80
|
import '../useFormFieldFocus-es.js';
|
|
81
81
|
import '../InputValidation-es.js';
|
|
82
|
+
import '../omit-es.js';
|
|
83
|
+
import '../_baseGet-es.js';
|
|
84
|
+
import '../identity-es.js';
|
|
85
|
+
import '../isSymbol-es.js';
|
|
86
|
+
import '../keysIn-es.js';
|
|
87
|
+
import '../_baseAssignValue-es.js';
|
|
88
|
+
import '../_baseFlatten-es.js';
|
|
89
|
+
import '../_setToString-es.js';
|
|
82
90
|
import '../DataListEmptyState-es.js';
|
|
83
91
|
import '../DataListLoadMore-es.js';
|
|
84
92
|
import '../DataListAction-es.js';
|