@jobber/components 6.103.2 → 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.
Files changed (87) hide show
  1. package/dist/Autocomplete/components/MenuList.d.ts +1 -1
  2. package/dist/Autocomplete/components/PersistentRegion.d.ts +1 -1
  3. package/dist/Autocomplete/hooks/useAutocompleteListNav.d.ts +1 -1
  4. package/dist/Autocomplete/useAutocomplete.d.ts +1 -1
  5. package/dist/Card-cjs.js +1 -1
  6. package/dist/Card-es.js +1 -1
  7. package/dist/Chip/Chip.d.ts +1 -2
  8. package/dist/Chip/hooks/useChildComponent.d.ts +4 -3
  9. package/dist/Chip/index.cjs +1 -1
  10. package/dist/Chip-cjs.js +5 -4
  11. package/dist/Chip-es.js +5 -4
  12. package/dist/ChipDismissible-cjs.js +4 -4
  13. package/dist/ChipDismissible-es.js +5 -5
  14. package/dist/Chips/InternalChipDismissible/hooks/useInView.d.ts +1 -1
  15. package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +1 -1
  16. package/dist/Chips/InternalChipDismissible/hooks/useScrollToActive.d.ts +1 -1
  17. package/dist/Combobox/Combobox.d.ts +2 -1
  18. package/dist/Combobox/Combobox.types.d.ts +2 -2
  19. package/dist/Combobox/ComboboxProvider.d.ts +3 -3
  20. package/dist/Combobox/components/ComboboxActivator/ComboboxActivator.d.ts +1 -1
  21. package/dist/Combobox/components/ComboboxContent/ComboboxContent.d.ts +2 -1
  22. package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/ComboboxContentHeader.d.ts +2 -1
  23. package/dist/Combobox/components/ComboboxContent/ComboboxContentList/ComboboxContentList.d.ts +2 -1
  24. package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/ComboboxContentSearch.d.ts +2 -1
  25. package/dist/Combobox/hooks/useCombobox.d.ts +1 -1
  26. package/dist/Combobox/hooks/useComboboxAccessibility.d.ts +2 -2
  27. package/dist/Combobox/hooks/useComboboxContent.d.ts +2 -1
  28. package/dist/Combobox/hooks/useMakeComboboxHandlers.d.ts +1 -1
  29. package/dist/ComboboxActivator-cjs.js +2 -2
  30. package/dist/ComboboxActivator-es.js +3 -3
  31. package/dist/ComboboxTrigger-cjs.js +1 -1
  32. package/dist/ComboboxTrigger-es.js +2 -2
  33. package/dist/DataList/DataList.types.d.ts +2 -2
  34. package/dist/DataList/DataList.utils.d.ts +2 -2
  35. package/dist/DataList/components/DataListHeaderTile/components/DataListSortingOptions.d.ts +2 -2
  36. package/dist/DataList/components/DataListItem/DataListItemInternal.d.ts +2 -2
  37. package/dist/DataList/hooks/useGetItemActions.d.ts +2 -3
  38. package/dist/DataListActions-cjs.js +4 -2
  39. package/dist/DataListActions-es.js +4 -2
  40. package/dist/DataListItem-cjs.js +9 -10
  41. package/dist/DataListItem-es.js +10 -11
  42. package/dist/DataListSort-cjs.js +1 -1
  43. package/dist/DataListSort-es.js +2 -2
  44. package/dist/DataTable/SortIcon.d.ts +2 -1
  45. package/dist/DataTable/components/DataTableSortableHeader.d.ts +1 -1
  46. package/dist/DatePicker/useFocusOnSelectedDate.d.ts +1 -2
  47. package/dist/DatePicker-cjs.js +1 -1
  48. package/dist/DatePicker-es.js +1 -1
  49. package/dist/FormField/FormFieldAffix.d.ts +2 -2
  50. package/dist/FormField/FormFieldTypes.d.ts +3 -3
  51. package/dist/FormField/hooks/useFormFieldFocus.d.ts +1 -1
  52. package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +2 -2
  53. package/dist/FormField-cjs.js +2 -2
  54. package/dist/FormField-es.js +2 -2
  55. package/dist/InputGroup-cjs.js +5 -2
  56. package/dist/InputGroup-es.js +5 -2
  57. package/dist/InputText/InputText.d.ts +2 -2
  58. package/dist/InputText/useInputTextActions.d.ts +1 -1
  59. package/dist/InputText/useInputTextFormField.d.ts +15 -1
  60. package/dist/InputText/useTextAreaResize.d.ts +2 -2
  61. package/dist/InternalChipDismissible-cjs.js +3 -3
  62. package/dist/InternalChipDismissible-es.js +4 -4
  63. package/dist/Menu/Menu.types.d.ts +5 -1
  64. package/dist/Modal/Modal.types.d.ts +3 -3
  65. package/dist/Modal/ModalContext.rebuilt.d.ts +2 -2
  66. package/dist/Modal/index.cjs +1 -1
  67. package/dist/Modal/index.mjs +1 -1
  68. package/dist/MultiSelect/DropDownMenu.d.ts +1 -1
  69. package/dist/MultiSelect-cjs.js +13 -7
  70. package/dist/MultiSelect-es.js +13 -7
  71. package/dist/RadioGroup/RadioGroup.d.ts +2 -1
  72. package/dist/RadioGroup/RadioOption.d.ts +1 -1
  73. package/dist/StatusLabel/StatusLabel.d.ts +2 -1
  74. package/dist/Tabs/hooks/useTabsOverflow.d.ts +2 -2
  75. package/dist/Tabs-cjs.js +4 -2
  76. package/dist/Tabs-es.js +4 -2
  77. package/dist/Tooltip/useTooltipPositioning.d.ts +1 -1
  78. package/dist/helpers-cjs.js +1 -1
  79. package/dist/helpers-es.js +1 -1
  80. package/dist/index.cjs +1 -1
  81. package/dist/showToast-cjs.js +2 -2
  82. package/dist/showToast-es.js +2 -2
  83. package/dist/styles.css +18 -20
  84. package/dist/useChildComponent-cjs.js +1 -1
  85. package/dist/useChildComponent-es.js +1 -1
  86. package/dist/utils/mergeRefs.d.ts +2 -2
  87. package/package.json +2 -2
@@ -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: null },
26
+ { current: document.createElement("div") },
27
27
  {
28
28
  width: 1200,
29
29
  height: 800,
@@ -2,7 +2,7 @@ import * as jobberHooks from '@jobber/hooks';
2
2
 
3
3
  const mockContainerWidth = (exactWidth) => {
4
4
  jest.spyOn(jobberHooks, "useResizeObserver").mockReturnValue([
5
- { current: null },
5
+ { current: document.createElement("div") },
6
6
  {
7
7
  width: 1200,
8
8
  height: 800,
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.ChipNamespace;
222
+ exports.Chip = Chip.Chip;
223
223
  exports.ChipDismissible = ChipDismissible.ChipDismissible;
224
224
  exports.ChipSelectable = ChipDismissible.ChipSelectable;
225
225
  exports.Icon = Icon.Icon;
@@ -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) {
@@ -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) {
package/dist/styles.css CHANGED
@@ -6401,10 +6401,9 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
6401
6401
  -webkit-transform: translateY(0) scale(1);
6402
6402
  transform: translateY(0) scale(1);
6403
6403
  }
6404
- .-hmXAsAfH9U- {
6405
6404
 
6406
6405
  /* options */
6407
- option {
6406
+ .-hmXAsAfH9U- option {
6408
6407
  padding: 4px 0;
6409
6408
  padding: var(--space-smaller) 0;
6410
6409
  color: hsl(198, 35%, 21%);
@@ -6414,16 +6413,16 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
6414
6413
  cursor: pointer;
6415
6414
  }
6416
6415
 
6417
- option:hover,
6418
- option:focus,
6419
- option:focus-visible,
6420
- option:checked {
6416
+ .-hmXAsAfH9U- option:hover,
6417
+ .-hmXAsAfH9U- option:focus,
6418
+ .-hmXAsAfH9U- option:focus-visible,
6419
+ .-hmXAsAfH9U- option:checked {
6421
6420
  background-color: hsl(53, 21%, 93%);
6422
6421
  background-color: var(--color-surface--hover);
6423
6422
  }
6424
6423
 
6425
6424
  /* optgroup headers */
6426
- optgroup {
6425
+ .-hmXAsAfH9U- optgroup {
6427
6426
  padding: 8px 0 0 0;
6428
6427
  padding: var(--space-small) 0 0 0;
6429
6428
  color: hsl(197, 90%, 12%);
@@ -6438,36 +6437,35 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
6438
6437
  }
6439
6438
 
6440
6439
  /* Divider directly under the group label */
6441
- optgroup option:first-child {
6440
+ .-hmXAsAfH9U- optgroup option:first-child {
6442
6441
  border-top: 1px solid hsl(200, 13%, 87%);
6443
6442
  border-top: var(--border-base) solid var(--color-border);
6444
6443
  }
6445
6444
 
6446
6445
  /* Disabled groups and their options */
6447
- optgroup[disabled] {
6446
+ .-hmXAsAfH9U- optgroup[disabled] {
6448
6447
  color: hsl(0, 0%, 58%);
6449
6448
  color: var(--color-disabled);
6450
6449
  }
6451
- optgroup[disabled] option,
6452
- option[disabled] {
6450
+ .-hmXAsAfH9U- optgroup[disabled] option,
6451
+ .-hmXAsAfH9U- option[disabled] {
6453
6452
  color: hsl(0, 0%, 58%);
6454
6453
  color: var(--color-disabled);
6455
6454
  cursor: default;
6456
6455
  }
6457
6456
 
6458
- optgroup[disabled] option:focus,
6459
- optgroup[disabled] option:focus-visible,
6460
- optgroup[disabled] option:checked,
6461
- optgroup[disabled] option:hover,
6462
- option[disabled]:focus,
6463
- option[disabled]:focus-visible,
6464
- option[disabled]:checked,
6465
- option[disabled]:hover {
6457
+ .-hmXAsAfH9U- optgroup[disabled] option:focus,
6458
+ .-hmXAsAfH9U- optgroup[disabled] option:focus-visible,
6459
+ .-hmXAsAfH9U- optgroup[disabled] option:checked,
6460
+ .-hmXAsAfH9U- optgroup[disabled] option:hover,
6461
+ .-hmXAsAfH9U- option[disabled]:focus,
6462
+ .-hmXAsAfH9U- option[disabled]:focus-visible,
6463
+ .-hmXAsAfH9U- option[disabled]:checked,
6464
+ .-hmXAsAfH9U- option[disabled]:hover {
6466
6465
  background-color: transparent;
6467
6466
  }
6468
6467
 
6469
6468
  /* Animate the chevron rotation for the provided postfix class */
6470
- }
6471
6469
  .-hmXAsAfH9U- + ._5ST4c1fXDYU- svg {
6472
6470
  transition: -webkit-transform 100ms;
6473
6471
  transition: -webkit-transform var(--timing-quick);
@@ -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 JSX Element and returns a boolean.
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 JSX Element and returns a boolean.
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, MutableRefObject, RefCallback } from "react";
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<MutableRefObject<T> | LegacyRef<T> | undefined | null>): RefCallback<T>;
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.2",
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": "901fec98e7fac64fac23c225d7ac6da63d0739f5"
541
+ "gitHead": "1657252e513a93c0df7aabd9bcf1aea9a355a945"
542
542
  }