@jobber/components 6.103.3 → 6.103.4-JOB-138679-1657252.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/components/MenuList.d.ts +1 -1
- package/dist/Autocomplete/components/PersistentRegion.d.ts +1 -1
- package/dist/Autocomplete/hooks/useAutocompleteListNav.d.ts +1 -1
- package/dist/Autocomplete/useAutocomplete.d.ts +1 -1
- package/dist/Card-cjs.js +1 -1
- package/dist/Card-es.js +1 -1
- package/dist/Chip/Chip.d.ts +1 -2
- package/dist/Chip/hooks/useChildComponent.d.ts +4 -3
- package/dist/Chip/index.cjs +1 -1
- package/dist/Chip-cjs.js +5 -4
- package/dist/Chip-es.js +5 -4
- package/dist/ChipDismissible-cjs.js +4 -4
- package/dist/ChipDismissible-es.js +5 -5
- package/dist/Chips/InternalChipDismissible/hooks/useInView.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/useScrollToActive.d.ts +1 -1
- package/dist/Combobox/Combobox.d.ts +2 -1
- package/dist/Combobox/Combobox.types.d.ts +2 -2
- package/dist/Combobox/ComboboxProvider.d.ts +3 -3
- package/dist/Combobox/components/ComboboxActivator/ComboboxActivator.d.ts +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContent.d.ts +2 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/ComboboxContentHeader.d.ts +2 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/ComboboxContentList.d.ts +2 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/ComboboxContentSearch.d.ts +2 -1
- package/dist/Combobox/hooks/useCombobox.d.ts +1 -1
- package/dist/Combobox/hooks/useComboboxAccessibility.d.ts +2 -2
- package/dist/Combobox/hooks/useComboboxContent.d.ts +2 -1
- package/dist/Combobox/hooks/useMakeComboboxHandlers.d.ts +1 -1
- package/dist/ComboboxActivator-cjs.js +2 -2
- package/dist/ComboboxActivator-es.js +3 -3
- package/dist/ComboboxTrigger-cjs.js +1 -1
- package/dist/ComboboxTrigger-es.js +2 -2
- package/dist/DataList/DataList.types.d.ts +2 -2
- package/dist/DataList/DataList.utils.d.ts +2 -2
- package/dist/DataList/components/DataListHeaderTile/components/DataListSortingOptions.d.ts +2 -2
- package/dist/DataList/components/DataListItem/DataListItemInternal.d.ts +2 -2
- package/dist/DataList/hooks/useGetItemActions.d.ts +2 -3
- package/dist/DataListActions-cjs.js +4 -2
- package/dist/DataListActions-es.js +4 -2
- package/dist/DataListItem-cjs.js +9 -10
- package/dist/DataListItem-es.js +10 -11
- package/dist/DataListSort-cjs.js +1 -1
- package/dist/DataListSort-es.js +2 -2
- package/dist/DataTable/SortIcon.d.ts +2 -1
- package/dist/DataTable/components/DataTableSortableHeader.d.ts +1 -1
- package/dist/DatePicker/useFocusOnSelectedDate.d.ts +1 -2
- package/dist/DatePicker-cjs.js +1 -1
- package/dist/DatePicker-es.js +1 -1
- package/dist/FormField/FormFieldAffix.d.ts +2 -2
- package/dist/FormField/FormFieldTypes.d.ts +3 -3
- package/dist/FormField/hooks/useFormFieldFocus.d.ts +1 -1
- package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +2 -2
- package/dist/FormField-cjs.js +2 -2
- package/dist/FormField-es.js +2 -2
- package/dist/InputGroup-cjs.js +5 -2
- package/dist/InputGroup-es.js +5 -2
- package/dist/InputText/InputText.d.ts +2 -2
- package/dist/InputText/useInputTextActions.d.ts +1 -1
- package/dist/InputText/useInputTextFormField.d.ts +15 -1
- package/dist/InputText/useTextAreaResize.d.ts +2 -2
- package/dist/InternalChipDismissible-cjs.js +3 -3
- package/dist/InternalChipDismissible-es.js +4 -4
- package/dist/Menu/Menu.types.d.ts +5 -1
- package/dist/Modal/Modal.types.d.ts +3 -3
- package/dist/Modal/ModalContext.rebuilt.d.ts +2 -2
- package/dist/Modal/index.cjs +1 -1
- package/dist/Modal/index.mjs +1 -1
- package/dist/MultiSelect/DropDownMenu.d.ts +1 -1
- package/dist/MultiSelect-cjs.js +13 -7
- package/dist/MultiSelect-es.js +13 -7
- package/dist/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/RadioGroup/RadioOption.d.ts +1 -1
- package/dist/StatusLabel/StatusLabel.d.ts +2 -1
- package/dist/Tabs/hooks/useTabsOverflow.d.ts +2 -2
- package/dist/Tabs-cjs.js +4 -2
- package/dist/Tabs-es.js +4 -2
- package/dist/Tooltip/useTooltipPositioning.d.ts +1 -1
- package/dist/helpers-cjs.js +1 -1
- package/dist/helpers-es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/showToast-cjs.js +2 -2
- package/dist/showToast-es.js +2 -2
- package/dist/useChildComponent-cjs.js +1 -1
- package/dist/useChildComponent-es.js +1 -1
- package/dist/utils/mergeRefs.d.ts +2 -2
- package/package.json +2 -2
package/dist/helpers-cjs.js
CHANGED
|
@@ -23,7 +23,7 @@ var jobberHooks__namespace = /*#__PURE__*/_interopNamespaceDefault(jobberHooks);
|
|
|
23
23
|
|
|
24
24
|
const mockContainerWidth = (exactWidth) => {
|
|
25
25
|
jest.spyOn(jobberHooks__namespace, "useResizeObserver").mockReturnValue([
|
|
26
|
-
{ current:
|
|
26
|
+
{ current: document.createElement("div") },
|
|
27
27
|
{
|
|
28
28
|
width: 1200,
|
|
29
29
|
height: 800,
|
package/dist/helpers-es.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -219,7 +219,7 @@ exports.Cluster = Cluster.Cluster;
|
|
|
219
219
|
exports.Container = Container.Container;
|
|
220
220
|
exports.Cover = Cover.Cover;
|
|
221
221
|
exports.Checkbox = Checkbox_index.Checkbox;
|
|
222
|
-
exports.Chip = Chip.
|
|
222
|
+
exports.Chip = Chip.Chip;
|
|
223
223
|
exports.ChipDismissible = ChipDismissible.ChipDismissible;
|
|
224
224
|
exports.ChipSelectable = ChipDismissible.ChipSelectable;
|
|
225
225
|
exports.Icon = Icon.Icon;
|
package/dist/showToast-cjs.js
CHANGED
|
@@ -84,8 +84,8 @@ function showToast(props) {
|
|
|
84
84
|
}
|
|
85
85
|
const ToastContainer = React.forwardRef(ToastInternal);
|
|
86
86
|
function ToasterOven(props) {
|
|
87
|
-
const toastRef = React.useRef();
|
|
88
|
-
React.useEffect(() => toastRef.current.add(props));
|
|
87
|
+
const toastRef = React.useRef(null);
|
|
88
|
+
React.useEffect(() => { var _a; return (_a = toastRef.current) === null || _a === void 0 ? void 0 : _a.add(props); });
|
|
89
89
|
return React.createElement(ToastContainer, { ref: toastRef });
|
|
90
90
|
}
|
|
91
91
|
function ToastInternal(_, ref) {
|
package/dist/showToast-es.js
CHANGED
|
@@ -82,8 +82,8 @@ function showToast(props) {
|
|
|
82
82
|
}
|
|
83
83
|
const ToastContainer = forwardRef(ToastInternal);
|
|
84
84
|
function ToasterOven(props) {
|
|
85
|
-
const toastRef = useRef();
|
|
86
|
-
useEffect(() => toastRef.current.add(props));
|
|
85
|
+
const toastRef = useRef(null);
|
|
86
|
+
useEffect(() => { var _a; return (_a = toastRef.current) === null || _a === void 0 ? void 0 : _a.add(props); });
|
|
87
87
|
return React__default.createElement(ToastContainer, { ref: toastRef });
|
|
88
88
|
}
|
|
89
89
|
function ToastInternal(_, ref) {
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns the first React Child that receives `true` from isCorrectComponent
|
|
7
7
|
* @param children React Children
|
|
8
|
-
* @param isCorrectComponent a function that accepts a
|
|
8
|
+
* @param isCorrectComponent a function that accepts a ReactElement and returns a boolean.
|
|
9
9
|
* @returns The first child component that returns true on isCorrectComponent
|
|
10
10
|
*/
|
|
11
11
|
function useChildComponent(children, isCorrectComponent) {
|
|
@@ -3,7 +3,7 @@ import React__default, { useMemo, isValidElement } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* Returns the first React Child that receives `true` from isCorrectComponent
|
|
5
5
|
* @param children React Children
|
|
6
|
-
* @param isCorrectComponent a function that accepts a
|
|
6
|
+
* @param isCorrectComponent a function that accepts a ReactElement and returns a boolean.
|
|
7
7
|
* @returns The first child component that returns true on isCorrectComponent
|
|
8
8
|
*/
|
|
9
9
|
function useChildComponent(children, isCorrectComponent) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { LegacyRef,
|
|
1
|
+
import type { LegacyRef, RefCallback, RefObject } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Given an array of refs, merge them into a single ref callback.
|
|
4
4
|
* This is useful for cases where you need to pass a multiple refs to a component.
|
|
5
5
|
*/
|
|
6
|
-
export declare function mergeRefs<T = unknown>(refs: Array<
|
|
6
|
+
export declare function mergeRefs<T = unknown>(refs: Array<RefObject<T> | LegacyRef<T> | undefined | null>): RefCallback<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.103.
|
|
3
|
+
"version": "6.103.4-JOB-138679-1657252.19+1657252e5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -538,5 +538,5 @@
|
|
|
538
538
|
"> 1%",
|
|
539
539
|
"IE 10"
|
|
540
540
|
],
|
|
541
|
-
"gitHead": "
|
|
541
|
+
"gitHead": "1657252e513a93c0df7aabd9bcf1aea9a355a945"
|
|
542
542
|
}
|