@jobber/components 6.115.0 → 6.115.2

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.
@@ -4,5 +4,8 @@ import type { InternalChipProps } from "./ChipTypes";
4
4
  interface ChipDismissibleProps extends Pick<InternalChipProps, "label" | "disabled" | "invalid" | "prefix" | "onClick"> {
5
5
  onRequestRemove(event: MouseEvent<HTMLDivElement>): void;
6
6
  }
7
+ /**
8
+ * @deprecated Use Autocomplete with the "multiple" prop instead of ChipDismissible.
9
+ */
7
10
  export declare function ChipDismissible({ label, disabled, invalid, prefix, onClick, onRequestRemove, }: ChipDismissibleProps): React.JSX.Element;
8
11
  export {};
@@ -1,3 +1,8 @@
1
1
  import React from "react";
2
- import type { ChipsProps } from "./ChipsTypes";
3
- export declare function Chips(props: ChipsProps): React.JSX.Element;
2
+ import type { ChipDismissibleProps, ChipMultiSelectProps, ChipSingleSelectProps } from "./ChipsTypes";
3
+ /**
4
+ * @deprecated Use Autocomplete with the "multiple" prop instead of dismissible Chips.
5
+ */
6
+ export declare function Chips(props: ChipDismissibleProps): React.JSX.Element;
7
+ export declare function Chips(props: ChipSingleSelectProps): React.JSX.Element;
8
+ export declare function Chips(props: ChipMultiSelectProps): React.JSX.Element;
@@ -51,6 +51,9 @@ export interface ChipMultiSelectProps extends ChipFoundationProps {
51
51
  readonly showSelectedSuffix?: boolean;
52
52
  onChange(value: string[]): void;
53
53
  }
54
+ /**
55
+ * @deprecated Use Autocomplete with the "multiple" prop instead of dismissible Chips.
56
+ */
54
57
  export interface ChipDismissibleProps extends ChipFoundationProps {
55
58
  readonly type: "dismissible";
56
59
  readonly selected: string[];
@@ -38,6 +38,9 @@ require('../useChildComponent-cjs.js');
38
38
  require('../Tooltip-cjs.js');
39
39
  require('framer-motion');
40
40
 
41
+ /**
42
+ * @deprecated Use Autocomplete with the "multiple" prop instead of ChipDismissible.
43
+ */
41
44
  function ChipDismissible({ label, disabled, invalid, prefix, onClick, onRequestRemove, }) {
42
45
  return (React.createElement(InternalChipDismissible.InternalChip, { label: label, disabled: disabled, invalid: invalid, prefix: prefix, onClick: onClick, suffix: React.createElement(Chip$1.InternalChipButton, { icon: "remove", label: label, invalid: invalid, disabled: disabled, onClick: onRequestRemove }) }));
43
46
  }
@@ -36,6 +36,9 @@ import '../useChildComponent-es.js';
36
36
  import '../Tooltip-es.js';
37
37
  import 'framer-motion';
38
38
 
39
+ /**
40
+ * @deprecated Use Autocomplete with the "multiple" prop instead of ChipDismissible.
41
+ */
39
42
  function ChipDismissible({ label, disabled, invalid, prefix, onClick, onRequestRemove, }) {
40
43
  return (React__default.createElement(InternalChip, { label: label, disabled: disabled, invalid: invalid, prefix: prefix, onClick: onClick, suffix: React__default.createElement(InternalChipButton, { icon: "remove", label: label, invalid: invalid, disabled: disabled, onClick: onRequestRemove }) }));
41
44
  }
package/dist/Chips-cjs.js CHANGED
@@ -101,6 +101,7 @@ function InternalChipMultiSelect({ children, selected, showSelectedSuffix = true
101
101
  }
102
102
  }
103
103
 
104
+ /* eslint-disable import/no-deprecated */
104
105
  function Chips(props) {
105
106
  switch (props.type) {
106
107
  case "dismissible":
package/dist/Chips-es.js CHANGED
@@ -99,6 +99,7 @@ function InternalChipMultiSelect({ children, selected, showSelectedSuffix = true
99
99
  }
100
100
  }
101
101
 
102
+ /* eslint-disable import/no-deprecated */
102
103
  function Chips(props) {
103
104
  switch (props.type) {
104
105
  case "dismissible":
@@ -23,5 +23,8 @@ interface MultiSelectProps {
23
23
  */
24
24
  readonly size?: "small" | "large";
25
25
  }
26
+ /**
27
+ * @deprecated Use the "multiple" Autocomplete component instead.
28
+ */
26
29
  export declare function MultiSelect({ defaultLabel, allSelectedLabel, options, onOptionsChange, size, }: MultiSelectProps): React.JSX.Element;
27
30
  export {};
@@ -101,6 +101,9 @@ function DropDownMenu({ options, setOptions }) {
101
101
  }
102
102
  }
103
103
 
104
+ /**
105
+ * @deprecated Use the "multiple" Autocomplete component instead.
106
+ */
104
107
  function MultiSelect({ defaultLabel, allSelectedLabel, options, onOptionsChange, size, }) {
105
108
  const [label, setLabel] = React.useState(defaultLabel);
106
109
  const [menuVisible, setMenuVisible] = React.useState(false);
@@ -99,6 +99,9 @@ function DropDownMenu({ options, setOptions }) {
99
99
  }
100
100
  }
101
101
 
102
+ /**
103
+ * @deprecated Use the "multiple" Autocomplete component instead.
104
+ */
102
105
  function MultiSelect({ defaultLabel, allSelectedLabel, options, onOptionsChange, size, }) {
103
106
  const [label, setLabel] = useState(defaultLabel);
104
107
  const [menuVisible, setMenuVisible] = useState(false);
package/dist/styles.css CHANGED
@@ -1897,8 +1897,8 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
1897
1897
  justify-content: center;
1898
1898
  -ms-flex-align: center;
1899
1899
  align-items: center;
1900
- -webkit-transform: translateY(50%);
1901
- transform: translateY(50%);
1900
+ -ms-flex-item-align: center;
1901
+ align-self: center;
1902
1902
  }
1903
1903
 
1904
1904
  .YmRTd-KeXv4-:focus {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.115.0",
3
+ "version": "6.115.2",
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": "fa8ec6d10172262c9e27a5fe5817e476485e0481"
541
+ "gitHead": "b2cfd425316e386075108f4381f800a5bebc6d65"
542
542
  }