@jobber/components 6.68.2-ediundoC-50e9520.2 → 6.68.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.
@@ -140,7 +140,7 @@ function ComboboxContent(props) {
140
140
  const { popperRef, popperStyles, floatingProps, nodeId, parentNodeId } = useComboboxAccessibility(props.handleSelection, props.options, optionsListRef, props.open, props.wrapperRef);
141
141
  // options that are passed back to consumers via onSelectAll callback
142
142
  // should only contain id and label
143
- const consumerOptions = React.useMemo(() => {
143
+ const optionsData = React.useMemo(() => {
144
144
  return props.options.map(option => ({
145
145
  id: option.id,
146
146
  label: option.label,
@@ -155,7 +155,7 @@ function ComboboxContent(props) {
155
155
  onClear === null || onClear === void 0 ? void 0 : onClear();
156
156
  }, onSelectAll: () => {
157
157
  props.selectedStateSetter(props.options);
158
- onSelectAll === null || onSelectAll === void 0 ? void 0 : onSelectAll(consumerOptions);
158
+ onSelectAll === null || onSelectAll === void 0 ? void 0 : onSelectAll(optionsData);
159
159
  } })),
160
160
  React.createElement(ComboboxContentList.ComboboxContentList, { multiselect: props.multiselect, options: props.options, selected: props.selected, optionsListRef: optionsListRef, searchValue: props.searchValue, subjectNoun: props.subjectNoun, loading: props.loading, onLoadMore: props.onLoadMore }),
161
161
  props.actionElements && (React.createElement("div", { className: styles.actions, role: "group" }, props.actionElements.map((child, index, childrenArray) => (React.createElement("div", { key: index, className: classnames({
@@ -138,7 +138,7 @@ function ComboboxContent(props) {
138
138
  const { popperRef, popperStyles, floatingProps, nodeId, parentNodeId } = useComboboxAccessibility(props.handleSelection, props.options, optionsListRef, props.open, props.wrapperRef);
139
139
  // options that are passed back to consumers via onSelectAll callback
140
140
  // should only contain id and label
141
- const consumerOptions = useMemo(() => {
141
+ const optionsData = useMemo(() => {
142
142
  return props.options.map(option => ({
143
143
  id: option.id,
144
144
  label: option.label,
@@ -153,7 +153,7 @@ function ComboboxContent(props) {
153
153
  onClear === null || onClear === void 0 ? void 0 : onClear();
154
154
  }, onSelectAll: () => {
155
155
  props.selectedStateSetter(props.options);
156
- onSelectAll === null || onSelectAll === void 0 ? void 0 : onSelectAll(consumerOptions);
156
+ onSelectAll === null || onSelectAll === void 0 ? void 0 : onSelectAll(optionsData);
157
157
  } })),
158
158
  React__default.createElement(ComboboxContentList, { multiselect: props.multiselect, options: props.options, selected: props.selected, optionsListRef: optionsListRef, searchValue: props.searchValue, subjectNoun: props.subjectNoun, loading: props.loading, onLoadMore: props.onLoadMore }),
159
159
  props.actionElements && (React__default.createElement("div", { className: styles.actions, role: "group" }, props.actionElements.map((child, index, childrenArray) => (React__default.createElement("div", { key: index, className: classnames({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.68.2-ediundoC-50e9520.2+50e95203",
3
+ "version": "6.68.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -542,5 +542,5 @@
542
542
  "> 1%",
543
543
  "IE 10"
544
544
  ],
545
- "gitHead": "50e952039b1f8ddb3661250c6594a59dbcb10e3a"
545
+ "gitHead": "2ac0d333a2eef4ee38b49817ff7930a998094645"
546
546
  }