@jobber/components 6.90.4 → 6.91.1
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/AtlantisThemeContext/index.d.ts +1 -1
- package/dist/AtlantisThemeContext-es.js +1 -1
- package/dist/Autocomplete/index.cjs +12 -15
- package/dist/Autocomplete/index.mjs +13 -16
- package/dist/Banner/index.cjs +1 -6
- package/dist/Banner/index.mjs +1 -6
- package/dist/Banner-cjs.js +2 -2
- package/dist/Banner-es.js +2 -2
- package/dist/Card/index.cjs +1 -4
- package/dist/Card/index.mjs +1 -4
- package/dist/Chip/index.cjs +1 -3
- package/dist/Chip/index.mjs +1 -3
- package/dist/Chip-cjs.js +3 -3
- package/dist/Chip-es.js +3 -3
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +1 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -0
- package/dist/Chips/InternalChipDismissible/index.cjs +1 -3
- package/dist/Chips/InternalChipDismissible/index.mjs +1 -3
- package/dist/Chips/index.cjs +1 -3
- package/dist/Chips/index.mjs +1 -3
- package/dist/Combobox/components/ComboboxActivator/index.cjs +1 -3
- package/dist/Combobox/components/ComboboxActivator/index.mjs +1 -3
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxContent/index.cjs +1 -3
- package/dist/Combobox/components/ComboboxContent/index.mjs +1 -3
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +1 -3
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +1 -3
- package/dist/Combobox/index.cjs +1 -6
- package/dist/Combobox/index.mjs +1 -6
- package/dist/Combobox-cjs.js +2 -2
- package/dist/Combobox-es.js +2 -2
- package/dist/ComboboxContent-cjs.js +3 -4
- package/dist/ComboboxContent-es.js +4 -5
- package/dist/ComboboxLoadMore-cjs.js +2 -2
- package/dist/ComboboxLoadMore-es.js +2 -2
- package/dist/ConfirmationModal/index.cjs +1 -3
- package/dist/ConfirmationModal/index.mjs +1 -3
- package/dist/ConfirmationModal-cjs.js +2 -2
- package/dist/ConfirmationModal-es.js +2 -2
- package/dist/ContentBlock/index.cjs +1 -6
- package/dist/ContentBlock/index.mjs +1 -6
- package/dist/ContentBlock-cjs.js +2 -2
- package/dist/ContentBlock-es.js +2 -2
- package/dist/DataDump/index.cjs +1 -4
- package/dist/DataDump/index.mjs +1 -4
- package/dist/DataList/components/DataListActions/index.cjs +1 -5
- package/dist/DataList/components/DataListActions/index.mjs +1 -5
- package/dist/DataList/components/DataListActionsMenu/index.cjs +1 -5
- package/dist/DataList/components/DataListActionsMenu/index.mjs +1 -5
- package/dist/DataList/components/DataListBulkActions/index.cjs +1 -5
- package/dist/DataList/components/DataListBulkActions/index.mjs +1 -5
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +1 -6
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +1 -6
- package/dist/DataList/components/DataListFilters/index.cjs +1 -7
- package/dist/DataList/components/DataListFilters/index.mjs +1 -7
- package/dist/DataList/components/DataListHeader/index.cjs +1 -5
- package/dist/DataList/components/DataListHeader/index.mjs +1 -5
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +1 -2
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +1 -2
- package/dist/DataList/components/DataListHeaderTile/index.cjs +1 -3
- package/dist/DataList/components/DataListHeaderTile/index.mjs +1 -3
- package/dist/DataList/components/DataListItem/index.cjs +1 -5
- package/dist/DataList/components/DataListItem/index.mjs +1 -5
- package/dist/DataList/components/DataListItemActions/index.cjs +1 -5
- package/dist/DataList/components/DataListItemActions/index.mjs +1 -5
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +1 -5
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +1 -5
- package/dist/DataList/components/DataListItems/index.cjs +1 -5
- package/dist/DataList/components/DataListItems/index.mjs +1 -5
- package/dist/DataList/components/DataListLayout/index.cjs +1 -5
- package/dist/DataList/components/DataListLayout/index.mjs +1 -5
- package/dist/DataList/components/DataListLayoutActions/index.cjs +1 -5
- package/dist/DataList/components/DataListLayoutActions/index.mjs +1 -5
- package/dist/DataList/components/DataListLoadMore/index.cjs +1 -1
- package/dist/DataList/components/DataListLoadMore/index.mjs +1 -1
- package/dist/DataList/components/DataListOverflowFade/index.cjs +1 -1
- package/dist/DataList/components/DataListOverflowFade/index.mjs +1 -1
- package/dist/DataList/components/DataListSearch/index.cjs +1 -2
- package/dist/DataList/components/DataListSearch/index.mjs +1 -2
- package/dist/DataList/components/DataListStatusBar/index.cjs +1 -3
- package/dist/DataList/components/DataListStatusBar/index.mjs +1 -3
- package/dist/DataList/index.cjs +1 -7
- package/dist/DataList/index.mjs +1 -7
- package/dist/DataListActionsMenu-cjs.js +5 -8
- package/dist/DataListActionsMenu-es.js +5 -8
- package/dist/DataListHeaderTile-cjs.js +2 -2
- package/dist/DataListHeaderTile-es.js +2 -2
- package/dist/DataListLoadMore-cjs.js +2 -2
- package/dist/DataListLoadMore-es.js +2 -2
- package/dist/DataListOverflowFade-cjs.js +3 -3
- package/dist/DataListOverflowFade-es.js +3 -3
- package/dist/DataListSearch-cjs.js +2 -2
- package/dist/DataListSearch-es.js +2 -2
- package/dist/DataListSortingOptions-cjs.js +3 -4
- package/dist/DataListSortingOptions-es.js +3 -4
- package/dist/DataTable/index.cjs +4 -6
- package/dist/DataTable/index.mjs +4 -6
- package/dist/DataTable/test-utilities/index.cjs +1 -7
- package/dist/DataTable/test-utilities/index.mjs +1 -7
- package/dist/DataTable-cjs.js +4 -4
- package/dist/DataTable-es.js +4 -4
- package/dist/DatePicker/index.cjs +1 -1
- package/dist/DatePicker/index.mjs +1 -1
- package/dist/DatePicker-cjs.js +2 -2
- package/dist/DatePicker-es.js +3 -3
- package/dist/Disclosure/index.cjs +1 -6
- package/dist/Disclosure/index.mjs +1 -6
- package/dist/Disclosure-cjs.js +3 -3
- package/dist/Disclosure-es.js +3 -3
- package/dist/FormField/FormFieldWrapper.d.ts +1 -1
- package/dist/FormField/index.cjs +1 -0
- package/dist/FormField/index.mjs +1 -0
- package/dist/FormField-cjs.js +2 -21
- package/dist/FormField-es.js +2 -21
- package/dist/FormatFile/index.cjs +1 -3
- package/dist/FormatFile/index.mjs +1 -3
- package/dist/Gallery/index.cjs +1 -6
- package/dist/Gallery/index.mjs +1 -6
- package/dist/InputDate/index.cjs +1 -2
- package/dist/InputDate/index.mjs +1 -2
- package/dist/InputEmail/index.cjs +1 -0
- package/dist/InputEmail/index.mjs +1 -0
- package/dist/InputNumber/index.cjs +1 -0
- package/dist/InputNumber/index.mjs +1 -0
- package/dist/InputPassword/index.cjs +1 -0
- package/dist/InputPassword/index.mjs +1 -0
- package/dist/InputPassword-cjs.js +1 -0
- package/dist/InputPassword-es.js +1 -0
- package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +1 -1
- package/dist/InputPhoneNumber/index.cjs +1 -0
- package/dist/InputPhoneNumber/index.mjs +1 -0
- package/dist/InputText/InputText.d.ts +2 -2
- package/dist/InputText/index.cjs +3 -3
- package/dist/InputText/index.mjs +3 -3
- package/dist/InputTime/index.cjs +1 -0
- package/dist/InputTime/index.mjs +2 -1
- package/dist/InternalChipDismissible-cjs.js +1 -0
- package/dist/InternalChipDismissible-es.js +1 -0
- package/dist/LightBox/index.cjs +1 -6
- package/dist/LightBox/index.mjs +1 -6
- package/dist/LightBox-cjs.js +12 -74
- package/dist/LightBox-es.js +12 -74
- package/dist/Menu/index.cjs +1 -4
- package/dist/Menu/index.mjs +1 -4
- package/dist/Menu-cjs.js +5 -37
- package/dist/Menu-es.js +6 -38
- package/dist/Modal/index.cjs +4 -6
- package/dist/Modal/index.mjs +5 -7
- package/dist/Page/index.cjs +2 -10
- package/dist/Page/index.mjs +2 -10
- package/dist/Page-cjs.js +5 -5
- package/dist/Page-es.js +5 -5
- package/dist/Popover/index.cjs +1 -1
- package/dist/Popover/index.mjs +1 -1
- package/dist/Popover-cjs.js +2 -2
- package/dist/Popover-es.js +3 -3
- package/dist/RecurringSelect/index.cjs +1 -0
- package/dist/RecurringSelect/index.mjs +1 -0
- package/dist/Select/index.cjs +1 -0
- package/dist/Select/index.mjs +1 -0
- package/dist/SideDrawer/index.cjs +1 -5
- package/dist/SideDrawer/index.mjs +1 -5
- package/dist/SideDrawer-cjs.js +7 -10
- package/dist/SideDrawer-es.js +7 -10
- package/dist/Tabs/index.cjs +0 -1
- package/dist/Tabs/index.mjs +0 -1
- package/dist/Tabs-cjs.js +76 -2
- package/dist/Tabs-es.js +76 -2
- package/dist/Tooltip/index.cjs +1 -2
- package/dist/Tooltip/index.mjs +1 -2
- package/dist/Tooltip-cjs.js +3 -4
- package/dist/Tooltip-es.js +4 -5
- package/dist/_baseEach-es.js +1 -1
- package/dist/_commonjsHelpers-cjs.js +0 -26
- package/dist/_commonjsHelpers-es.js +1 -26
- package/dist/_isIterateeCall-es.js +1 -1
- package/dist/debounce-es.js +2 -2
- package/dist/floating-ui.react-es.js +1 -1
- package/dist/helpers-cjs.js +21 -2
- package/dist/helpers-es.js +1 -1
- package/dist/index.cjs +1 -9
- package/dist/index.mjs +1 -9
- package/dist/isObjectLike-es.js +1 -1
- package/dist/isSymbol-es.js +1 -1
- package/dist/isTypedArray-es.js +1 -1
- package/dist/keysIn-es.js +1 -1
- package/dist/omit-es.js +1 -1
- package/dist/useScrollToActive-cjs.js +3 -45
- package/dist/useScrollToActive-es.js +5 -47
- package/package.json +3 -3
- package/rollup.config.mjs +0 -15
- package/dist/throttle-cjs.js +0 -80
- package/dist/throttle-es.js +0 -77
- package/dist/useDebounce-cjs.js +0 -4416
- package/dist/useDebounce-es.js +0 -4413
- package/dist/useFocusTrap-cjs.js +0 -75
- package/dist/useFocusTrap-es.js +0 -73
- package/dist/useInView-cjs.js +0 -26
- package/dist/useInView-es.js +0 -24
- package/dist/useIsMounted-cjs.js +0 -51
- package/dist/useIsMounted-es.js +0 -49
- package/dist/useOnKeyDown-cjs.js +0 -41
- package/dist/useOnKeyDown-es.js +0 -39
- package/dist/useRefocusOnActivator-cjs.js +0 -33
- package/dist/useRefocusOnActivator-es.js +0 -31
- package/dist/useResizeObserver-cjs.js +0 -1131
- package/dist/useResizeObserver-es.js +0 -1128
- package/dist/useSafeLayoutEffect-cjs.js +0 -14
- package/dist/useSafeLayoutEffect-es.js +0 -12
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var design = require('@jobber/design');
|
|
6
|
-
var
|
|
6
|
+
var jobberHooks = require('@jobber/hooks');
|
|
7
7
|
var InputText_index = require('./InputText/index.cjs');
|
|
8
8
|
var DataListContext = require('./DataListContext-cjs.js');
|
|
9
9
|
var DataList_const = require('./DataList.const-cjs.js');
|
|
@@ -25,7 +25,7 @@ function InternalDataListSearch() {
|
|
|
25
25
|
const inputRef = React.useRef(null);
|
|
26
26
|
const [visible, setVisible] = React.useState(false);
|
|
27
27
|
const { searchComponent, filterComponent, sorting, title } = DataListContext.useDataListContext();
|
|
28
|
-
const debouncedSearch = useDebounce
|
|
28
|
+
const debouncedSearch = jobberHooks.useDebounce((value) => { var _a; return (_a = searchComponent === null || searchComponent === void 0 ? void 0 : searchComponent.props) === null || _a === void 0 ? void 0 : _a.onSearch(value); }, DataList_const.SEARCH_DEBOUNCE_DELAY);
|
|
29
29
|
if (!searchComponent)
|
|
30
30
|
return null;
|
|
31
31
|
const { placeholder, initialValue, value: controlledValue, } = searchComponent.props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useState } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { tokens } from '@jobber/design';
|
|
4
|
-
import {
|
|
4
|
+
import { useDebounce } from '@jobber/hooks';
|
|
5
5
|
import { InputText } from './InputText/index.mjs';
|
|
6
6
|
import { u as useDataListContext } from './DataListContext-es.js';
|
|
7
7
|
import { S as SEARCH_DEBOUNCE_DELAY } from './DataList.const-es.js';
|
|
@@ -23,7 +23,7 @@ function InternalDataListSearch() {
|
|
|
23
23
|
const inputRef = useRef(null);
|
|
24
24
|
const [visible, setVisible] = useState(false);
|
|
25
25
|
const { searchComponent, filterComponent, sorting, title } = useDataListContext();
|
|
26
|
-
const debouncedSearch =
|
|
26
|
+
const debouncedSearch = useDebounce((value) => { var _a; return (_a = searchComponent === null || searchComponent === void 0 ? void 0 : searchComponent.props) === null || _a === void 0 ? void 0 : _a.onSearch(value); }, SEARCH_DEBOUNCE_DELAY);
|
|
27
27
|
if (!searchComponent)
|
|
28
28
|
return null;
|
|
29
29
|
const { placeholder, initialValue, value: controlledValue, } = searchComponent.props;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var useRefocusOnActivator = require('./useRefocusOnActivator-cjs.js');
|
|
4
|
+
var jobberHooks = require('@jobber/hooks');
|
|
6
5
|
var Icon = require('./Icon-cjs.js');
|
|
7
6
|
|
|
8
7
|
var styles = {"optionsList":"krkUjDI-P7E-","option":"d4hPt6o50kw-","spinning":"CNq0y1X8-Eo-"};
|
|
9
8
|
|
|
10
9
|
function DataListSortingOptions({ options, selectedOption, onSelectChange, onClose, optionsListRef, dataListHeaderTileRef, }) {
|
|
11
|
-
useRefocusOnActivator
|
|
12
|
-
useOnKeyDown
|
|
10
|
+
jobberHooks.useRefocusOnActivator(!optionsListRef.current);
|
|
11
|
+
jobberHooks.useOnKeyDown(() => onClose(), "Escape");
|
|
13
12
|
React.useEffect(() => {
|
|
14
13
|
document.addEventListener("mousedown", handleClickOutside);
|
|
15
14
|
return () => {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React__default, { useEffect } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-es.js';
|
|
2
|
+
import { useRefocusOnActivator, useOnKeyDown } from '@jobber/hooks';
|
|
4
3
|
import { I as Icon } from './Icon-es.js';
|
|
5
4
|
|
|
6
5
|
var styles = {"optionsList":"krkUjDI-P7E-","option":"d4hPt6o50kw-","spinning":"CNq0y1X8-Eo-"};
|
|
7
6
|
|
|
8
7
|
function DataListSortingOptions({ options, selectedOption, onSelectChange, onClose, optionsListRef, dataListHeaderTileRef, }) {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
useRefocusOnActivator(!optionsListRef.current);
|
|
9
|
+
useOnKeyDown(() => onClose(), "Escape");
|
|
11
10
|
useEffect(() => {
|
|
12
11
|
document.addEventListener("mousedown", handleClickOutside);
|
|
13
12
|
return () => {
|
package/dist/DataTable/index.cjs
CHANGED
|
@@ -6,21 +6,19 @@ var DataTableTable = require('../DataTableTable-cjs.js');
|
|
|
6
6
|
var reactTable = require('@tanstack/react-table');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('react');
|
|
9
|
-
require('
|
|
10
|
-
require('../_commonjsHelpers-cjs.js');
|
|
11
|
-
require('../throttle-cjs.js');
|
|
12
|
-
require('../debounce-cjs.js');
|
|
13
|
-
require('../isObjectLike-cjs.js');
|
|
14
|
-
require('../isSymbol-cjs.js');
|
|
9
|
+
require('@jobber/hooks');
|
|
15
10
|
require('../Glimmer-cjs.js');
|
|
16
11
|
require('../tslib.es6-cjs.js');
|
|
17
12
|
require('../Content-cjs.js');
|
|
18
13
|
require('../Select/index.cjs');
|
|
19
14
|
require('../omit-cjs.js');
|
|
15
|
+
require('../_commonjsHelpers-cjs.js');
|
|
20
16
|
require('../_baseGet-cjs.js');
|
|
21
17
|
require('../isTypedArray-cjs.js');
|
|
18
|
+
require('../isObjectLike-cjs.js');
|
|
22
19
|
require('../identity-cjs.js');
|
|
23
20
|
require('../_getTag-cjs.js');
|
|
21
|
+
require('../isSymbol-cjs.js');
|
|
24
22
|
require('../keysIn-cjs.js');
|
|
25
23
|
require('../_baseAssignValue-cjs.js');
|
|
26
24
|
require('../_baseFlatten-cjs.js');
|
package/dist/DataTable/index.mjs
CHANGED
|
@@ -4,21 +4,19 @@ export { a as SortDirection, S as SortIcon } from '../DataTableTable-es.js';
|
|
|
4
4
|
export { createColumnHelper } from '@tanstack/react-table';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '
|
|
8
|
-
import '../_commonjsHelpers-es.js';
|
|
9
|
-
import '../throttle-es.js';
|
|
10
|
-
import '../debounce-es.js';
|
|
11
|
-
import '../isObjectLike-es.js';
|
|
12
|
-
import '../isSymbol-es.js';
|
|
7
|
+
import '@jobber/hooks';
|
|
13
8
|
import '../Glimmer-es.js';
|
|
14
9
|
import '../tslib.es6-es.js';
|
|
15
10
|
import '../Content-es.js';
|
|
16
11
|
import '../Select/index.mjs';
|
|
17
12
|
import '../omit-es.js';
|
|
13
|
+
import '../_commonjsHelpers-es.js';
|
|
18
14
|
import '../_baseGet-es.js';
|
|
19
15
|
import '../isTypedArray-es.js';
|
|
16
|
+
import '../isObjectLike-es.js';
|
|
20
17
|
import '../identity-es.js';
|
|
21
18
|
import '../_getTag-es.js';
|
|
19
|
+
import '../isSymbol-es.js';
|
|
22
20
|
import '../keysIn-es.js';
|
|
23
21
|
import '../_baseAssignValue-es.js';
|
|
24
22
|
import '../_baseFlatten-es.js';
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var helpers = require('../../helpers-cjs.js');
|
|
4
|
-
require('
|
|
5
|
-
require('../../_commonjsHelpers-cjs.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('../../throttle-cjs.js');
|
|
8
|
-
require('../../debounce-cjs.js');
|
|
9
|
-
require('../../isObjectLike-cjs.js');
|
|
10
|
-
require('../../isSymbol-cjs.js');
|
|
4
|
+
require('@jobber/hooks');
|
|
11
5
|
|
|
12
6
|
const data = [
|
|
13
7
|
{
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
export { m as mockContainerWidth } from '../../helpers-es.js';
|
|
2
|
-
import '
|
|
3
|
-
import '../../_commonjsHelpers-es.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '../../throttle-es.js';
|
|
6
|
-
import '../../debounce-es.js';
|
|
7
|
-
import '../../isObjectLike-es.js';
|
|
8
|
-
import '../../isSymbol-es.js';
|
|
2
|
+
import '@jobber/hooks';
|
|
9
3
|
|
|
10
4
|
const data = [
|
|
11
5
|
{
|
package/dist/DataTable-cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var reactTable = require('@tanstack/react-table');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var jobberHooks = require('@jobber/hooks');
|
|
7
7
|
var Glimmer = require('./Glimmer-cjs.js');
|
|
8
8
|
var tslib_es6 = require('./tslib.es6-cjs.js');
|
|
9
9
|
var Select_index = require('./Select/index.cjs');
|
|
@@ -177,7 +177,7 @@ function Header({ table, stickyHeader, sorting, onRowClick, }) {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
function DataTable({ data, columns, pagination, sorting, height, stickyHeader, pinFirstColumn, onRowClick, emptyState, loading = false, }) {
|
|
180
|
-
const [ref, { exactWidth }] =
|
|
180
|
+
const [ref, { exactWidth }] = jobberHooks.useResizeObserver();
|
|
181
181
|
const tableSettings = createTableSettings(data, columns, {
|
|
182
182
|
pagination,
|
|
183
183
|
sorting,
|
|
@@ -193,10 +193,10 @@ function DataTable({ data, columns, pagination, sorting, height, stickyHeader, p
|
|
|
193
193
|
React.createElement(Body, { table: table, onRowClick: onRowClick, emptyState: emptyState, loading: loading }),
|
|
194
194
|
table.getRowModel().rows.length &&
|
|
195
195
|
exactWidth &&
|
|
196
|
-
exactWidth >
|
|
196
|
+
exactWidth > jobberHooks.Breakpoints.small ? (React.createElement(Footer, { table: table, viewType: "desktop" })) : null)),
|
|
197
197
|
table.getRowModel().rows.length &&
|
|
198
198
|
exactWidth &&
|
|
199
|
-
exactWidth <=
|
|
199
|
+
exactWidth <= jobberHooks.Breakpoints.small ? (React.createElement(Footer, { table: table })) : null,
|
|
200
200
|
pagination && (React.createElement(Pagination, { table: table, itemsPerPage: pagination.itemsPerPage, totalItems: pagination.manualPagination
|
|
201
201
|
? pagination.totalItems
|
|
202
202
|
: table.getCoreRowModel().rows.length, loading: loading, onPageChange: () => { var _a; return (_a = ref.current) === null || _a === void 0 ? void 0 : _a.scrollTo(0, 0); } }))));
|
package/dist/DataTable-es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { flexRender, getCoreRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import React__default, { useCallback, useMemo } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useResizeObserver, Breakpoints } from '@jobber/hooks';
|
|
5
5
|
import { G as Glimmer } from './Glimmer-es.js';
|
|
6
6
|
import { _ as __rest } from './tslib.es6-es.js';
|
|
7
7
|
import { Select, Option as SelectOption } from './Select/index.mjs';
|
|
@@ -175,7 +175,7 @@ function Header({ table, stickyHeader, sorting, onRowClick, }) {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
function DataTable({ data, columns, pagination, sorting, height, stickyHeader, pinFirstColumn, onRowClick, emptyState, loading = false, }) {
|
|
178
|
-
const [ref, { exactWidth }] = useResizeObserver
|
|
178
|
+
const [ref, { exactWidth }] = useResizeObserver();
|
|
179
179
|
const tableSettings = createTableSettings(data, columns, {
|
|
180
180
|
pagination,
|
|
181
181
|
sorting,
|
|
@@ -191,10 +191,10 @@ function DataTable({ data, columns, pagination, sorting, height, stickyHeader, p
|
|
|
191
191
|
React__default.createElement(Body, { table: table, onRowClick: onRowClick, emptyState: emptyState, loading: loading }),
|
|
192
192
|
table.getRowModel().rows.length &&
|
|
193
193
|
exactWidth &&
|
|
194
|
-
exactWidth >
|
|
194
|
+
exactWidth > Breakpoints.small ? (React__default.createElement(Footer, { table: table, viewType: "desktop" })) : null)),
|
|
195
195
|
table.getRowModel().rows.length &&
|
|
196
196
|
exactWidth &&
|
|
197
|
-
exactWidth <=
|
|
197
|
+
exactWidth <= Breakpoints.small ? (React__default.createElement(Footer, { table: table })) : null,
|
|
198
198
|
pagination && (React__default.createElement(Pagination, { table: table, itemsPerPage: pagination.itemsPerPage, totalItems: pagination.manualPagination
|
|
199
199
|
? pagination.totalItems
|
|
200
200
|
: table.getCoreRowModel().rows.length, loading: loading, onPageChange: () => { var _a; return (_a = ref.current) === null || _a === void 0 ? void 0 : _a.scrollTo(0, 0); } }))));
|
|
@@ -6,7 +6,7 @@ require('classnames');
|
|
|
6
6
|
require('../clsx-cjs.js');
|
|
7
7
|
require('../floating-ui.react-cjs.js');
|
|
8
8
|
require('react-dom');
|
|
9
|
-
require('
|
|
9
|
+
require('@jobber/hooks');
|
|
10
10
|
require('../Typography-cjs.js');
|
|
11
11
|
require('../Button-cjs.js');
|
|
12
12
|
require('react-router-dom');
|
package/dist/DatePicker-cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ var classnames = require('classnames');
|
|
|
5
5
|
var clsx = require('./clsx-cjs.js');
|
|
6
6
|
var floatingUi_react = require('./floating-ui.react-cjs.js');
|
|
7
7
|
var ReactDOM = require('react-dom');
|
|
8
|
-
var
|
|
8
|
+
var jobberHooks = require('@jobber/hooks');
|
|
9
9
|
var Typography = require('./Typography-cjs.js');
|
|
10
10
|
var Button = require('./Button-cjs.js');
|
|
11
11
|
var omit = require('./omit-cjs.js');
|
|
@@ -12740,7 +12740,7 @@ function DatePicker({ onChange, onMonthChange, activator, inline, selected, read
|
|
|
12740
12740
|
});
|
|
12741
12741
|
const { pickerRef } = useEscapeKeyToCloseDatePicker(open, ref);
|
|
12742
12742
|
if (smartAutofocus) {
|
|
12743
|
-
useRefocusOnActivator
|
|
12743
|
+
jobberHooks.useRefocusOnActivator(open);
|
|
12744
12744
|
React.useEffect(focusOnSelectedDate, [open]);
|
|
12745
12745
|
}
|
|
12746
12746
|
return (React.createElement("div", { className: wrapperClassName, ref: ref, "data-elevation": "elevated" },
|
package/dist/DatePicker-es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { cloneElement, Component, createRef, useRef, useCallback, useEffect, createElement, forwardRef, isValidElement, useState } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { c as clsx } from './clsx-es.js';
|
|
4
|
-
import { u as useFloating,
|
|
4
|
+
import { u as useFloating, c as autoUpdate, f as flip, o as offset, e as arrow, t as FloatingArrow } from './floating-ui.react-es.js';
|
|
5
5
|
import ReactDOM__default from 'react-dom';
|
|
6
|
-
import {
|
|
6
|
+
import { useRefocusOnActivator } from '@jobber/hooks';
|
|
7
7
|
import { T as Typography } from './Typography-es.js';
|
|
8
8
|
import { B as Button } from './Button-es.js';
|
|
9
9
|
import { o as omit } from './omit-es.js';
|
|
@@ -12738,7 +12738,7 @@ function DatePicker({ onChange, onMonthChange, activator, inline, selected, read
|
|
|
12738
12738
|
});
|
|
12739
12739
|
const { pickerRef } = useEscapeKeyToCloseDatePicker(open, ref);
|
|
12740
12740
|
if (smartAutofocus) {
|
|
12741
|
-
|
|
12741
|
+
useRefocusOnActivator(open);
|
|
12742
12742
|
useEffect(focusOnSelectedDate, [open]);
|
|
12743
12743
|
}
|
|
12744
12744
|
return (React__default.createElement("div", { className: wrapperClassName, ref: ref, "data-elevation": "elevated" },
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
var Disclosure = require('../Disclosure-cjs.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
|
-
require('
|
|
7
|
-
require('../_commonjsHelpers-cjs.js');
|
|
8
|
-
require('../throttle-cjs.js');
|
|
9
|
-
require('../debounce-cjs.js');
|
|
10
|
-
require('../isObjectLike-cjs.js');
|
|
11
|
-
require('../isSymbol-cjs.js');
|
|
6
|
+
require('@jobber/hooks');
|
|
12
7
|
require('../Icon-cjs.js');
|
|
13
8
|
require('@jobber/design');
|
|
14
9
|
require('../Typography-cjs.js');
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
export { D as Disclosure } from '../Disclosure-es.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '
|
|
5
|
-
import '../_commonjsHelpers-es.js';
|
|
6
|
-
import '../throttle-es.js';
|
|
7
|
-
import '../debounce-es.js';
|
|
8
|
-
import '../isObjectLike-es.js';
|
|
9
|
-
import '../isSymbol-es.js';
|
|
4
|
+
import '@jobber/hooks';
|
|
10
5
|
import '../Icon-es.js';
|
|
11
6
|
import '@jobber/design';
|
|
12
7
|
import '../Typography-es.js';
|
package/dist/Disclosure-cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
|
-
var
|
|
5
|
+
var jobberHooks = require('@jobber/hooks');
|
|
6
6
|
var Icon = require('./Icon-cjs.js');
|
|
7
7
|
var Typography = require('./Typography-cjs.js');
|
|
8
8
|
|
|
@@ -12,8 +12,8 @@ function Disclosure({ children, title, defaultOpen = false, onToggle, open, UNSA
|
|
|
12
12
|
var _a, _b, _c, _d;
|
|
13
13
|
const [internalOpen, setInternalOpen] = React.useState(defaultOpen || open || false);
|
|
14
14
|
const isOpen = open !== undefined ? open : internalOpen;
|
|
15
|
-
const [titleRef, { exactWidth }] =
|
|
16
|
-
const isBelowBreakpoint = exactWidth && exactWidth <
|
|
15
|
+
const [titleRef, { exactWidth }] = jobberHooks.useResizeObserver();
|
|
16
|
+
const isBelowBreakpoint = exactWidth && exactWidth < jobberHooks.Breakpoints.small;
|
|
17
17
|
const isTitleString = typeof title === "string";
|
|
18
18
|
const containerClassNames = classnames(styles.details, UNSAFE_className.container);
|
|
19
19
|
const summaryClassNames = classnames(styles.summary, UNSAFE_className.summary);
|
package/dist/Disclosure-es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useState } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { useResizeObserver, Breakpoints } from '@jobber/hooks';
|
|
4
4
|
import { I as Icon } from './Icon-es.js';
|
|
5
5
|
import { T as Typography } from './Typography-es.js';
|
|
6
6
|
|
|
@@ -10,8 +10,8 @@ function Disclosure({ children, title, defaultOpen = false, onToggle, open, UNSA
|
|
|
10
10
|
var _a, _b, _c, _d;
|
|
11
11
|
const [internalOpen, setInternalOpen] = useState(defaultOpen || open || false);
|
|
12
12
|
const isOpen = open !== undefined ? open : internalOpen;
|
|
13
|
-
const [titleRef, { exactWidth }] = useResizeObserver
|
|
14
|
-
const isBelowBreakpoint = exactWidth && exactWidth <
|
|
13
|
+
const [titleRef, { exactWidth }] = useResizeObserver();
|
|
14
|
+
const isBelowBreakpoint = exactWidth && exactWidth < Breakpoints.small;
|
|
15
15
|
const isTitleString = typeof title === "string";
|
|
16
16
|
const containerClassNames = classnames(styles.details, UNSAFE_className.container);
|
|
17
17
|
const summaryClassNames = classnames(styles.summary, UNSAFE_className.summary);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import type { Clearable } from "@jobber/hooks
|
|
3
|
+
import type { Clearable } from "@jobber/hooks";
|
|
4
4
|
import type { FormFieldProps } from "./FormFieldTypes";
|
|
5
5
|
export interface FormFieldWrapperProps extends FormFieldProps {
|
|
6
6
|
readonly error: string;
|
package/dist/FormField/index.cjs
CHANGED
package/dist/FormField/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { A as AffixIcon, i as AffixLabel, k as FormField, F as FormFieldInputHorizontalWrapper, d as FormFieldInputWrapperStyles, e as FormFieldLabel, f as FormFieldWrapper, g as FormFieldWrapperMain, h as FormFieldWrapperToolbar, u as useAtlantisFormField, a as useAtlantisFormFieldActions, b as useAtlantisFormFieldName, c as useAtlantisReactHookForm, j as useFormFieldWrapperStyles } from '../FormField-es.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import '@jobber/hooks';
|
|
3
4
|
import 'framer-motion';
|
|
4
5
|
import '@jobber/design';
|
|
5
6
|
import 'classnames';
|
package/dist/FormField-cjs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var jobberHooks = require('@jobber/hooks');
|
|
4
5
|
var framerMotion = require('framer-motion');
|
|
5
6
|
var design = require('@jobber/design');
|
|
6
7
|
var classnames = require('classnames');
|
|
@@ -13,26 +14,6 @@ var Spinner = require('./Spinner-cjs.js');
|
|
|
13
14
|
var tslib_es6 = require('./tslib.es6-cjs.js');
|
|
14
15
|
var reactHookForm = require('react-hook-form');
|
|
15
16
|
|
|
16
|
-
var useShowClear$1 = {};
|
|
17
|
-
|
|
18
|
-
Object.defineProperty(useShowClear$1, "__esModule", { value: true });
|
|
19
|
-
var useShowClear_2 = useShowClear$1.useShowClear = useShowClear;
|
|
20
|
-
function useShowClear({ clearable, multiline, focused, hasValue, readonly, disabled = false, }) {
|
|
21
|
-
if (multiline && clearable !== "never") {
|
|
22
|
-
throw new Error("Multiline inputs can not be clearable");
|
|
23
|
-
}
|
|
24
|
-
// Do not show if there is no value
|
|
25
|
-
if (!hasValue || clearable === "never" || disabled || readonly) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
switch (clearable) {
|
|
29
|
-
case "while-editing":
|
|
30
|
-
return focused;
|
|
31
|
-
case "always":
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
17
|
var styles$1 = {"container":"YL-mNv-Bl6g-","wrapper":"_8lhbGTQ-hhg-","disabled":"Tz9LK9ABKMk-","horizontalWrapper":"b5mv1x1H7YE-","textarea":"hGr6YW4AeLM-","safari":"QBCWi9GBgMs-","timeInputLabel":"_0pmqVa2zSE4-","miniLabel":"F1t76G6bDKo-","large":"_9tjyT9QUtP8-","text":"QmMiyoAWp-g-","invalid":"XWDSfe6weSY-","small":"Sw5O4I0lMJg-","inline":"SaORbL7SYWY-","center":"ozy2UoT2vsg-","right":"_3TJdT91YD3c-","maxLength":"W6GrMqLy2qk-","inputWrapper":"-LmjnYRU0r0-","childrenWrapper":"yVXYv6hkuOA-","input":"vtSDcuzNr9Q-","emptyPhoneNumber":"MVhuQuzUBUs-","label":"Dgk00tzlODA-","select":"NwQGiWBWIsc-","externalLabel":"Qb8zQ8n-8vc-","postfix":"yTDzs9h1otI-","affixIcon":"m0YpdssD2dY-","suffix":"_-3mMnjSh6ok-","affixLabel":"-Wzcb0pBh5I-","description":"DHX5ijY3xIw-","toolbar":"AL-2brNI7dk-","spinning":"_8Rzv7CcDW80-"};
|
|
37
18
|
|
|
38
19
|
/**
|
|
@@ -188,7 +169,7 @@ function FormFieldWrapper({ align, description, descriptionIdentifier, placehold
|
|
|
188
169
|
showMiniLabel,
|
|
189
170
|
});
|
|
190
171
|
const { focused } = useFormFieldFocus.useFormFieldFocus({ wrapperRef });
|
|
191
|
-
const showClear =
|
|
172
|
+
const showClear = jobberHooks.useShowClear({
|
|
192
173
|
clearable,
|
|
193
174
|
multiline: type === "textarea",
|
|
194
175
|
focused,
|
package/dist/FormField-es.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useRef, useImperativeHandle, useId } from 'react';
|
|
2
|
+
import { useShowClear } from '@jobber/hooks';
|
|
2
3
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
3
4
|
import { tokens } from '@jobber/design';
|
|
4
5
|
import classnames from 'classnames';
|
|
@@ -11,26 +12,6 @@ import { S as Spinner } from './Spinner-es.js';
|
|
|
11
12
|
import { _ as __rest } from './tslib.es6-es.js';
|
|
12
13
|
import { useFormContext, useForm, useController } from 'react-hook-form';
|
|
13
14
|
|
|
14
|
-
var useShowClear$1 = {};
|
|
15
|
-
|
|
16
|
-
Object.defineProperty(useShowClear$1, "__esModule", { value: true });
|
|
17
|
-
var useShowClear_2 = useShowClear$1.useShowClear = useShowClear;
|
|
18
|
-
function useShowClear({ clearable, multiline, focused, hasValue, readonly, disabled = false, }) {
|
|
19
|
-
if (multiline && clearable !== "never") {
|
|
20
|
-
throw new Error("Multiline inputs can not be clearable");
|
|
21
|
-
}
|
|
22
|
-
// Do not show if there is no value
|
|
23
|
-
if (!hasValue || clearable === "never" || disabled || readonly) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
switch (clearable) {
|
|
27
|
-
case "while-editing":
|
|
28
|
-
return focused;
|
|
29
|
-
case "always":
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
15
|
var styles$1 = {"container":"YL-mNv-Bl6g-","wrapper":"_8lhbGTQ-hhg-","disabled":"Tz9LK9ABKMk-","horizontalWrapper":"b5mv1x1H7YE-","textarea":"hGr6YW4AeLM-","safari":"QBCWi9GBgMs-","timeInputLabel":"_0pmqVa2zSE4-","miniLabel":"F1t76G6bDKo-","large":"_9tjyT9QUtP8-","text":"QmMiyoAWp-g-","invalid":"XWDSfe6weSY-","small":"Sw5O4I0lMJg-","inline":"SaORbL7SYWY-","center":"ozy2UoT2vsg-","right":"_3TJdT91YD3c-","maxLength":"W6GrMqLy2qk-","inputWrapper":"-LmjnYRU0r0-","childrenWrapper":"yVXYv6hkuOA-","input":"vtSDcuzNr9Q-","emptyPhoneNumber":"MVhuQuzUBUs-","label":"Dgk00tzlODA-","select":"NwQGiWBWIsc-","externalLabel":"Qb8zQ8n-8vc-","postfix":"yTDzs9h1otI-","affixIcon":"m0YpdssD2dY-","suffix":"_-3mMnjSh6ok-","affixLabel":"-Wzcb0pBh5I-","description":"DHX5ijY3xIw-","toolbar":"AL-2brNI7dk-","spinning":"_8Rzv7CcDW80-"};
|
|
35
16
|
|
|
36
17
|
/**
|
|
@@ -186,7 +167,7 @@ function FormFieldWrapper({ align, description, descriptionIdentifier, placehold
|
|
|
186
167
|
showMiniLabel,
|
|
187
168
|
});
|
|
188
169
|
const { focused } = useFormFieldFocus({ wrapperRef });
|
|
189
|
-
const showClear =
|
|
170
|
+
const showClear = useShowClear({
|
|
190
171
|
clearable,
|
|
191
172
|
multiline: type === "textarea",
|
|
192
173
|
focused,
|
|
@@ -16,12 +16,10 @@ require('../ProgressBar-cjs.js');
|
|
|
16
16
|
require('../Button-cjs.js');
|
|
17
17
|
require('react-router-dom');
|
|
18
18
|
require('../ConfirmationModal-cjs.js');
|
|
19
|
-
require('
|
|
19
|
+
require('@jobber/hooks');
|
|
20
20
|
require('../Modal/index.cjs');
|
|
21
21
|
require('react-dom');
|
|
22
22
|
require('framer-motion');
|
|
23
|
-
require('../useRefocusOnActivator-cjs.js');
|
|
24
|
-
require('../useFocusTrap-cjs.js');
|
|
25
23
|
require('../Heading-cjs.js');
|
|
26
24
|
require('../ButtonDismiss-cjs.js');
|
|
27
25
|
require('../noop-cjs.js');
|
|
@@ -14,12 +14,10 @@ import '../ProgressBar-es.js';
|
|
|
14
14
|
import '../Button-es.js';
|
|
15
15
|
import 'react-router-dom';
|
|
16
16
|
import '../ConfirmationModal-es.js';
|
|
17
|
-
import '
|
|
17
|
+
import '@jobber/hooks';
|
|
18
18
|
import '../Modal/index.mjs';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import 'framer-motion';
|
|
21
|
-
import '../useRefocusOnActivator-es.js';
|
|
22
|
-
import '../useFocusTrap-es.js';
|
|
23
21
|
import '../Heading-es.js';
|
|
24
22
|
import '../ButtonDismiss-es.js';
|
|
25
23
|
import '../noop-es.js';
|
package/dist/Gallery/index.cjs
CHANGED
|
@@ -7,12 +7,7 @@ require('classnames');
|
|
|
7
7
|
require('../LightBox-cjs.js');
|
|
8
8
|
require('framer-motion');
|
|
9
9
|
require('react-dom');
|
|
10
|
-
require('
|
|
11
|
-
require('../useOnKeyDown-cjs.js');
|
|
12
|
-
require('../useFocusTrap-cjs.js');
|
|
13
|
-
require('../useIsMounted-cjs.js');
|
|
14
|
-
require('../useSafeLayoutEffect-cjs.js');
|
|
15
|
-
require('../useDebounce-cjs.js');
|
|
10
|
+
require('@jobber/hooks');
|
|
16
11
|
require('../ButtonDismiss-cjs.js');
|
|
17
12
|
require('../Button-cjs.js');
|
|
18
13
|
require('react-router-dom');
|
package/dist/Gallery/index.mjs
CHANGED
|
@@ -5,12 +5,7 @@ import 'classnames';
|
|
|
5
5
|
import '../LightBox-es.js';
|
|
6
6
|
import 'framer-motion';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import '
|
|
9
|
-
import '../useOnKeyDown-es.js';
|
|
10
|
-
import '../useFocusTrap-es.js';
|
|
11
|
-
import '../useIsMounted-es.js';
|
|
12
|
-
import '../useSafeLayoutEffect-es.js';
|
|
13
|
-
import '../useDebounce-es.js';
|
|
8
|
+
import '@jobber/hooks';
|
|
14
9
|
import '../ButtonDismiss-es.js';
|
|
15
10
|
import '../Button-es.js';
|
|
16
11
|
import 'react-router-dom';
|
package/dist/InputDate/index.cjs
CHANGED
|
@@ -6,6 +6,7 @@ var FormField = require('../FormField-cjs.js');
|
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('../tslib.es6-cjs.js');
|
|
8
8
|
require('react-hook-form');
|
|
9
|
+
require('@jobber/hooks');
|
|
9
10
|
require('framer-motion');
|
|
10
11
|
require('@jobber/design');
|
|
11
12
|
require('../Button-cjs.js');
|
|
@@ -32,9 +33,7 @@ require('react-router-dom');
|
|
|
32
33
|
require('../clsx-cjs.js');
|
|
33
34
|
require('../floating-ui.react-cjs.js');
|
|
34
35
|
require('react-dom');
|
|
35
|
-
require('../useRefocusOnActivator-cjs.js');
|
|
36
36
|
require('../AtlantisContext-cjs.js');
|
|
37
|
-
require('../useSafeLayoutEffect-cjs.js');
|
|
38
37
|
|
|
39
38
|
function InputDate$1(inputProps) {
|
|
40
39
|
const formFieldActionsRef = React.useRef(null);
|
package/dist/InputDate/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { k as FormField } from '../FormField-es.js';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '../tslib.es6-es.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
|
+
import '@jobber/hooks';
|
|
7
8
|
import 'framer-motion';
|
|
8
9
|
import '@jobber/design';
|
|
9
10
|
import '../Button-es.js';
|
|
@@ -30,9 +31,7 @@ import 'react-router-dom';
|
|
|
30
31
|
import '../clsx-es.js';
|
|
31
32
|
import '../floating-ui.react-es.js';
|
|
32
33
|
import 'react-dom';
|
|
33
|
-
import '../useRefocusOnActivator-es.js';
|
|
34
34
|
import '../AtlantisContext-es.js';
|
|
35
|
-
import '../useSafeLayoutEffect-es.js';
|
|
36
35
|
|
|
37
36
|
function InputDate$1(inputProps) {
|
|
38
37
|
const formFieldActionsRef = useRef(null);
|
|
@@ -5,6 +5,7 @@ var FormField = require('../FormField-cjs.js');
|
|
|
5
5
|
require('classnames');
|
|
6
6
|
var tslib_es6 = require('../tslib.es6-cjs.js');
|
|
7
7
|
require('react-hook-form');
|
|
8
|
+
require('@jobber/hooks');
|
|
8
9
|
require('framer-motion');
|
|
9
10
|
require('@jobber/design');
|
|
10
11
|
require('../Button-cjs.js');
|
|
@@ -3,6 +3,7 @@ import { k as FormField, j as useFormFieldWrapperStyles, b as useAtlantisFormFie
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import { _ as __rest } from '../tslib.es6-es.js';
|
|
5
5
|
import 'react-hook-form';
|
|
6
|
+
import '@jobber/hooks';
|
|
6
7
|
import 'framer-motion';
|
|
7
8
|
import '@jobber/design';
|
|
8
9
|
import '../Button-es.js';
|
|
@@ -9,6 +9,7 @@ var Icon = require('../Icon-cjs.js');
|
|
|
9
9
|
var Text = require('../Text-cjs.js');
|
|
10
10
|
var FormField = require('../FormField-cjs.js');
|
|
11
11
|
require('react-hook-form');
|
|
12
|
+
require('@jobber/hooks');
|
|
12
13
|
require('framer-motion');
|
|
13
14
|
require('@jobber/design');
|
|
14
15
|
require('../Button-cjs.js');
|
|
@@ -7,6 +7,7 @@ import { I as Icon } from '../Icon-es.js';
|
|
|
7
7
|
import { T as Text } from '../Text-es.js';
|
|
8
8
|
import { k as FormField } from '../FormField-es.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
|
+
import '@jobber/hooks';
|
|
10
11
|
import 'framer-motion';
|
|
11
12
|
import '@jobber/design';
|
|
12
13
|
import '../Button-es.js';
|