@servicetitan/anvil2 3.10.0 → 3.10.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AiMark-2_O4tKv_.js.map +1 -1
  3. package/dist/Button-Dwh_Nd4l.js.map +1 -1
  4. package/dist/Combobox.js +1 -1
  5. package/dist/DataTable-D-SKKt5w.js.map +1 -1
  6. package/dist/{Dialog-Clh3jaX8.js → Dialog-DjJ9wpeo.js} +2 -2
  7. package/dist/{Dialog-Clh3jaX8.js.map → Dialog-DjJ9wpeo.js.map} +1 -1
  8. package/dist/Dialog.js +1 -1
  9. package/dist/DndSort.js.map +1 -1
  10. package/dist/{Drawer-h2Mut1lB.js → Drawer-CZITBE8M.js} +2 -2
  11. package/dist/{Drawer-h2Mut1lB.js.map → Drawer-CZITBE8M.js.map} +1 -1
  12. package/dist/Drawer.js +1 -1
  13. package/dist/DrillDown.css +36 -34
  14. package/dist/DrillDown.js +1 -1
  15. package/dist/DrillDown.module-1VBKDZRA.js +27 -0
  16. package/dist/{DrillDown.module-D1Bf9_yP.js.map → DrillDown.module-1VBKDZRA.js.map} +1 -1
  17. package/dist/{FilterBar-luqnJzAK.js → FilterBar-B_ShYx2G.js} +3 -3
  18. package/dist/{FilterBar-luqnJzAK.js.map → FilterBar-B_ShYx2G.js.map} +1 -1
  19. package/dist/FilterBar.js +1 -1
  20. package/dist/MultiSelectField.js +1 -1
  21. package/dist/{MultiSelectFieldSync-HhFKGtQM.js → MultiSelectFieldSync-B_vuR-ii.js} +172 -153
  22. package/dist/MultiSelectFieldSync-B_vuR-ii.js.map +1 -0
  23. package/dist/MultiSelectFieldSync.css +80 -69
  24. package/dist/{Page-Pk0-Sxf_.js → Page-BHBcuxcE.js} +4 -4
  25. package/dist/{Page-Pk0-Sxf_.js.map → Page-BHBcuxcE.js.map} +1 -1
  26. package/dist/Page.js +1 -1
  27. package/dist/RichTextEditor-CTIGe6xA.js.map +1 -1
  28. package/dist/{SavedFiltersButton-CpnoAIrw.js → SavedFiltersButton-DV0xxLat.js} +4 -4
  29. package/dist/{SavedFiltersButton-CpnoAIrw.js.map → SavedFiltersButton-DV0xxLat.js.map} +1 -1
  30. package/dist/SavedFiltersButton.js +1 -1
  31. package/dist/SelectField.js +1 -1
  32. package/dist/{SelectFieldSync-Dyug8Fgk.js → SelectFieldSync-rwfeNwN2.js} +11 -5
  33. package/dist/SelectFieldSync-rwfeNwN2.js.map +1 -0
  34. package/dist/{SelectTrigger-Do1puyA_.js → SelectTrigger-BAnVo4Ln.js} +2 -2
  35. package/dist/{SelectTrigger-Do1puyA_.js.map → SelectTrigger-BAnVo4Ln.js.map} +1 -1
  36. package/dist/SelectTrigger.js +1 -1
  37. package/dist/{SelectTriggerBase-rxHXMSb4.js → SelectTriggerBase-D7zAT0UR.js} +6 -3
  38. package/dist/SelectTriggerBase-D7zAT0UR.js.map +1 -0
  39. package/dist/SelectTriggerBase.css +49 -47
  40. package/dist/SelectTriggerBase.module-mYOfdBGA.js +40 -0
  41. package/dist/SelectTriggerBase.module-mYOfdBGA.js.map +1 -0
  42. package/dist/Tab-Bqfvg8Ce.js.map +1 -1
  43. package/dist/Textarea-B3C7AkPj.js.map +1 -1
  44. package/dist/TreeSelectField.js +1 -1
  45. package/dist/{TreeSelectFieldSync-Cd87uR6b.js → TreeSelectFieldSync-BRQgLPxB.js} +92 -84
  46. package/dist/TreeSelectFieldSync-BRQgLPxB.js.map +1 -0
  47. package/dist/TreeSelectFieldSync.css +44 -36
  48. package/dist/beta.js +5 -5
  49. package/dist/downshift.esm-xtSnQp44.js.map +1 -1
  50. package/dist/{filter-state-BQOX7_rO.js → filter-state-zlL4luoE.js} +5 -5
  51. package/dist/{filter-state-BQOX7_rO.js.map → filter-state-zlL4luoE.js.map} +1 -1
  52. package/dist/floating-ui.react-dom-CyrxPiI-.js.map +1 -1
  53. package/dist/index-DXeGMe23.js.map +1 -1
  54. package/dist/index-DjirBR0l.js.map +1 -1
  55. package/dist/index.esm-C2ZhC_8d.js.map +1 -1
  56. package/dist/index.js +8 -8
  57. package/dist/proxy-DEehATlA.js.map +1 -1
  58. package/dist/use-reduced-motion-CqjZZ5QB.js.map +1 -1
  59. package/dist/useChipLayout-BBe6Tzyl.js +90 -0
  60. package/dist/useChipLayout-BBe6Tzyl.js.map +1 -0
  61. package/dist/{useDrillDownContext-iUvoTget.js → useDrillDownContext-D5_NjqY4.js} +2 -2
  62. package/dist/{useDrillDownContext-iUvoTget.js.map → useDrillDownContext-D5_NjqY4.js.map} +1 -1
  63. package/dist/{useDrilldown-UAm0-l1l.js → useDrilldown-glecoaI_.js} +37 -18
  64. package/dist/{useDrilldown-UAm0-l1l.js.map → useDrilldown-glecoaI_.js.map} +1 -1
  65. package/dist/{useInfiniteCombobox-V94SoOiU.js → useInfiniteCombobox-CVAYoUvh.js} +2 -2
  66. package/dist/{useInfiniteCombobox-V94SoOiU.js.map → useInfiniteCombobox-CVAYoUvh.js.map} +1 -1
  67. package/dist/useSize.js.map +1 -1
  68. package/package.json +3 -3
  69. package/dist/DrillDown.module-D1Bf9_yP.js +0 -27
  70. package/dist/MultiSelectFieldSync-HhFKGtQM.js.map +0 -1
  71. package/dist/SelectFieldSync-Dyug8Fgk.js.map +0 -1
  72. package/dist/SelectTriggerBase-rxHXMSb4.js.map +0 -1
  73. package/dist/SelectTriggerBase.module-Brmw1nYG.js +0 -39
  74. package/dist/SelectTriggerBase.module-Brmw1nYG.js.map +0 -1
  75. package/dist/TreeSelectFieldSync-Cd87uR6b.js.map +0 -1
  76. package/dist/useChipLayout-BWZfKDgd.js +0 -51
  77. package/dist/useChipLayout-BWZfKDgd.js.map +0 -1
@@ -9,10 +9,10 @@ import { F as Flex } from './Flex-CRF7gj0_.js';
9
9
  import { m as mergeRefs, u as useMergeRefs } from './useMergeRefs-Dfmtq9cI.js';
10
10
  import { S as SvgChevronRight } from './chevron_right-BdpsxX7x.js';
11
11
  import { S as SvgClose } from './close-DZj38AEh.js';
12
- import { u as useChipLayout } from './useChipLayout-BWZfKDgd.js';
12
+ import { u as useChipLayout } from './useChipLayout-BBe6Tzyl.js';
13
13
  import { C as COMMON_PART, A as ANV_PART_ATTR } from './anvParts-BGg5dgfl.js';
14
14
  import { S as SelectFieldLabel } from './SelectFieldLabel-CjY6zFJA.js';
15
- import { s as styles$1 } from './SelectTriggerBase.module-Brmw1nYG.js';
15
+ import { s as styles$1 } from './SelectTriggerBase.module-mYOfdBGA.js';
16
16
  import { u as useDownshiftEnvironment, a as useCombobox, b as useSelect } from './downshift.esm-xtSnQp44.js';
17
17
  import { a as useProcessedOptions, b as buildSelectItems, s as shouldShowAddNewItem, A as AddNewItemButton, u as useSelectOrchestration, d as defaultSyncFilter, t as toSyncFilterFn } from './syncFilterUtils-YB6gRuuR.js';
18
18
  import { O as OptionsDialog, a as OptionsPopover } from './useAdaptiveView-DmhhcX-B.js';
@@ -21,34 +21,35 @@ import { u as useDebouncedCallback } from './useDebouncedCallback-DLkapjcP.js';
21
21
  import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-DjqeAJZ9.js';
22
22
  import { w as warnOnce } from './warnOnce-Y9PRHcU4.js';
23
23
 
24
- import './MultiSelectFieldSync.css';const input = "_input_184hn_26";
25
- const error = "_error_184hn_54";
26
- const disabled = "_disabled_184hn_61";
27
- const highlight = "_highlight_184hn_70";
28
- const chip = "_chip_184hn_143";
29
- const prefix = "_prefix_184hn_233";
30
- const suffix = "_suffix_184hn_234";
31
- const small = "_small_184hn_309";
32
- const large = "_large_184hn_315";
24
+ import './MultiSelectFieldSync.css';const input = "_input_14qyc_26";
25
+ const error = "_error_14qyc_55";
26
+ const disabled = "_disabled_14qyc_62";
27
+ const highlight = "_highlight_14qyc_74";
28
+ const chip = "_chip_14qyc_157";
29
+ const prefix = "_prefix_14qyc_247";
30
+ const suffix = "_suffix_14qyc_248";
31
+ const small = "_small_14qyc_323";
32
+ const large = "_large_14qyc_329";
33
33
  const styles = {
34
- "input-wrapper": "_input-wrapper_184hn_26",
34
+ "input-wrapper": "_input-wrapper_14qyc_26",
35
35
  input: input,
36
36
  error: error,
37
37
  disabled: disabled,
38
+ "is-disabled": "_is-disabled_14qyc_68",
38
39
  highlight: highlight,
39
- "input-flex": "_input-flex_184hn_74",
40
- "rows-wrapper": "_rows-wrapper_184hn_132",
41
- "chip-wrapper": "_chip-wrapper_184hn_143",
40
+ "input-flex": "_input-flex_14qyc_78",
41
+ "rows-wrapper": "_rows-wrapper_14qyc_136",
42
+ "chip-wrapper": "_chip-wrapper_14qyc_157",
42
43
  chip: chip,
43
- "buttons-wrapper": "_buttons-wrapper_184hn_155",
44
- "close-button-wrapper": "_close-button-wrapper_184hn_172",
45
- "close-button": "_close-button_184hn_172",
46
- "toggle-button-wrapper": "_toggle-button-wrapper_184hn_195",
47
- "toggle-button": "_toggle-button_184hn_195",
44
+ "buttons-wrapper": "_buttons-wrapper_14qyc_169",
45
+ "close-button-wrapper": "_close-button-wrapper_14qyc_186",
46
+ "close-button": "_close-button_14qyc_186",
47
+ "toggle-button-wrapper": "_toggle-button-wrapper_14qyc_209",
48
+ "toggle-button": "_toggle-button_14qyc_209",
48
49
  prefix: prefix,
49
50
  suffix: suffix,
50
- "no-clear-button": "_no-clear-button_184hn_301",
51
- "no-toggle-button": "_no-toggle-button_184hn_305",
51
+ "no-clear-button": "_no-clear-button_14qyc_315",
52
+ "no-toggle-button": "_no-toggle-button_14qyc_319",
52
53
  small: small,
53
54
  large: large};
54
55
 
@@ -99,6 +100,7 @@ const MultiSelectFieldInput = ({
99
100
  [styles["no-clear-button"]]: disableClearButton,
100
101
  [styles["no-toggle-button"]]: disableToggleButton,
101
102
  [styles["disabled"]]: disabled || readOnly,
103
+ [styles["is-disabled"]]: disabled,
102
104
  [styles["highlight"]]: isHighlighted
103
105
  });
104
106
  const handleInputKeyDown = (e) => {
@@ -113,6 +115,9 @@ const MultiSelectFieldInput = ({
113
115
  }
114
116
  };
115
117
  const handleWrapperClick = (e) => {
118
+ if (disabled) {
119
+ return;
120
+ }
116
121
  const target = e.target;
117
122
  if (target.closest("button") || target.tagName === "INPUT") {
118
123
  return;
@@ -128,58 +133,67 @@ const MultiSelectFieldInput = ({
128
133
  ref: inputWrapperRef,
129
134
  ...htmlInputWrapperProps,
130
135
  className: cx(inputWrapperClassNames, htmlInputWrapperProps?.className),
136
+ "aria-disabled": disabled || void 0,
131
137
  onClick: handleWrapperClick,
132
138
  children: [
133
139
  prefix ? /* @__PURE__ */ jsx("div", { className: styles["prefix"], children: prefix }) : null,
134
- /* @__PURE__ */ jsxs("div", { className: styles["rows-wrapper"], ref: rowsRef, children: [
135
- selectedOptions.length > 0 && onRemoveOption ? selectedOptions.slice(0, displayCount).map((option, index) => /* @__PURE__ */ jsx(
136
- "div",
137
- {
138
- className: styles["chip-wrapper"],
139
- children: /* @__PURE__ */ jsx(
140
+ /* @__PURE__ */ jsxs(
141
+ "div",
142
+ {
143
+ className: styles["rows-wrapper"],
144
+ ref: rowsRef,
145
+ "data-single-row": singleRow || void 0,
146
+ children: [
147
+ selectedOptions.length > 0 && onRemoveOption ? selectedOptions.slice(0, displayCount).map((option, index) => /* @__PURE__ */ jsx(
148
+ "div",
149
+ {
150
+ className: styles["chip-wrapper"],
151
+ children: /* @__PURE__ */ jsx(
152
+ Chip,
153
+ {
154
+ ...getChipProps?.(option),
155
+ ...{ [ANV_PART_ATTR]: PARTS.chip },
156
+ label: option.label,
157
+ onClose: disabled || readOnly || option.disabled ? void 0 : () => onRemoveOption(option),
158
+ className: styles["chip"],
159
+ title: option.label
160
+ }
161
+ )
162
+ },
163
+ `selected-item-${option.id}-${index}`
164
+ )) : null,
165
+ hiddenCount > 0 ? /* @__PURE__ */ jsx("div", { className: styles["chip-wrapper"], children: /* @__PURE__ */ jsx(
140
166
  Chip,
141
167
  {
142
- ...getChipProps?.(option),
143
- ...{ [ANV_PART_ATTR]: PARTS.chip },
144
- label: option.label,
145
- onClose: disabled || readOnly || option.disabled ? void 0 : () => onRemoveOption(option),
168
+ label: `+${hiddenCount}`,
146
169
  className: styles["chip"],
147
- title: option.label
170
+ title: selectedOptions.slice(displayCount).map((option) => option.label).join(", "),
171
+ ...{ [ANV_PART_ATTR]: PARTS.overflowChip }
148
172
  }
149
- )
150
- },
151
- `selected-item-${option.id}-${index}`
152
- )) : null,
153
- hiddenCount > 0 ? /* @__PURE__ */ jsx("div", { className: styles["chip-wrapper"], children: /* @__PURE__ */ jsx(
154
- Chip,
155
- {
156
- label: `+${hiddenCount}`,
157
- className: styles["chip"],
158
- title: selectedOptions.slice(displayCount).map((option) => option.label).join(", "),
159
- ...{ [ANV_PART_ATTR]: PARTS.overflowChip }
160
- }
161
- ) }) : null,
162
- /* @__PURE__ */ jsxs(Flex, { className: styles["input-flex"], alignItems: "center", children: [
163
- /* @__PURE__ */ jsx(
164
- "input",
165
- {
166
- id,
167
- type: "text",
168
- placeholder,
169
- disabled,
170
- readOnly,
171
- ...inputProps,
172
- ...{ [ANV_PART_ATTR]: PARTS.input },
173
- ref: mergedInputRef,
174
- onKeyDown: handleInputKeyDown,
175
- className: cx(styles["input"], inputProps?.className, {
176
- [styles["error"]]: error
177
- })
178
- }
179
- ),
180
- suffix ? /* @__PURE__ */ jsx("div", { className: styles["suffix"], children: suffix }) : null
181
- ] })
182
- ] }),
173
+ ) }) : null,
174
+ /* @__PURE__ */ jsxs(Flex, { className: styles["input-flex"], alignItems: "center", children: [
175
+ /* @__PURE__ */ jsx(
176
+ "input",
177
+ {
178
+ id,
179
+ type: "text",
180
+ placeholder,
181
+ disabled,
182
+ readOnly,
183
+ ...inputProps,
184
+ ...{ [ANV_PART_ATTR]: PARTS.input },
185
+ ref: mergedInputRef,
186
+ onKeyDown: handleInputKeyDown,
187
+ className: cx(styles["input"], inputProps?.className, {
188
+ [styles["error"]]: error
189
+ })
190
+ }
191
+ ),
192
+ suffix ? /* @__PURE__ */ jsx("div", { className: styles["suffix"], children: suffix }) : null
193
+ ] })
194
+ ]
195
+ }
196
+ ),
183
197
  /* @__PURE__ */ jsxs("div", { className: styles["buttons-wrapper"], children: [
184
198
  disableClearButton ? null : /* @__PURE__ */ jsx("div", { className: styles["close-button-wrapper"], children: /* @__PURE__ */ jsx(
185
199
  Button,
@@ -202,8 +216,8 @@ const MultiSelectFieldInput = ({
202
216
  "aria-label": "toggle menu",
203
217
  appearance: "ghost",
204
218
  size: "small",
205
- disabled,
206
219
  ...toggleButtonProps,
220
+ disabled,
207
221
  ...{ [ANV_PART_ATTR]: PARTS.toggleButton },
208
222
  className: cx(
209
223
  styles["toggle-button"],
@@ -618,7 +632,7 @@ const MultiSelectFieldComboboxMode = ({
618
632
  disableToggleButton: false,
619
633
  placeholder,
620
634
  disableClearButton,
621
- toggleButtonProps: getToggleButtonProps(),
635
+ toggleButtonProps: getToggleButtonProps({ disabled: !!disabled }),
622
636
  onClear: handleClear,
623
637
  id: `${id}-input`,
624
638
  inputProps: getInputProps({
@@ -738,7 +752,7 @@ const MultiSelectFieldComboboxMode = ({
738
752
  "aria-describedby": [hasHelperText && helperUid, moreInfo && moreInfoId].filter(Boolean).join(" ") || void 0,
739
753
  "aria-invalid": error ? true : void 0
740
754
  }),
741
- toggleButtonProps: getToggleButtonProps(),
755
+ toggleButtonProps: getToggleButtonProps({ disabled: !!disabled }),
742
756
  disableToggleButton: false,
743
757
  placeholder,
744
758
  disableClearButton,
@@ -836,66 +850,93 @@ const MultiSelectFieldTrigger = ({
836
850
  [styles["large"]]: size === "large",
837
851
  [styles["no-clear-button"]]: disableClearButton,
838
852
  [styles["disabled"]]: disabled || readOnly,
853
+ [styles["is-disabled"]]: disabled,
839
854
  [styles["highlight"]]: isHighlighted
840
855
  });
841
- return /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
842
- /* @__PURE__ */ jsxs(
843
- "div",
844
- {
845
- ref: mergedRef,
846
- ...restToggleButtonProps,
847
- popoverTarget,
848
- id,
849
- ...{ [ANV_PART_ATTR]: PARTS.trigger },
850
- className: cx(inputWrapperClassNames, restToggleButtonProps?.className),
851
- children: [
852
- prefix ? /* @__PURE__ */ jsx("div", { className: styles["prefix"], children: prefix }) : null,
853
- /* @__PURE__ */ jsxs("div", { className: styles["rows-wrapper"], ref: rowsRef, children: [
854
- selectedOptions.length > 0 && onRemoveOption ? selectedOptions.slice(0, displayCount).map((option, index) => /* @__PURE__ */ jsx(
855
- "div",
856
- {
857
- className: styles["chip-wrapper"],
858
- children: /* @__PURE__ */ jsx(
859
- Chip,
860
- {
861
- ...getChipProps?.(option),
862
- ...{ [ANV_PART_ATTR]: PARTS.chip },
863
- label: option.label,
864
- onClose: disabled || readOnly || option.disabled ? void 0 : (e) => {
865
- e.stopPropagation();
866
- onRemoveOption(option);
867
- triggerRef.current?.focus();
868
- },
869
- className: styles["chip"],
870
- title: option.label
871
- }
872
- )
873
- },
874
- `selected-item-${option.id}-${index}`
875
- )) : null,
876
- hiddenCount > 0 ? /* @__PURE__ */ jsx("div", { className: styles["chip-wrapper"], children: /* @__PURE__ */ jsx(
877
- Chip,
878
- {
879
- label: `+${hiddenCount}`,
880
- className: styles["chip"],
881
- title: selectedOptions.slice(displayCount).map((option) => option.label).join(", "),
882
- ...{ [ANV_PART_ATTR]: PARTS.overflowChip }
883
- }
884
- ) }) : null,
885
- selectedOptions.length === 0 ? /* @__PURE__ */ jsxs(Flex, { className: styles["input-flex"], alignItems: "center", children: [
886
- /* @__PURE__ */ jsx(
856
+ return /* @__PURE__ */ jsxs(
857
+ "div",
858
+ {
859
+ ref: mergedRef,
860
+ ...restToggleButtonProps,
861
+ popoverTarget,
862
+ id,
863
+ "aria-disabled": disabled || void 0,
864
+ onClick: disabled ? void 0 : restToggleButtonProps.onClick,
865
+ onKeyDown: disabled ? void 0 : restToggleButtonProps.onKeyDown,
866
+ ...{ [ANV_PART_ATTR]: PARTS.trigger },
867
+ className: cx(inputWrapperClassNames, restToggleButtonProps?.className),
868
+ children: [
869
+ prefix ? /* @__PURE__ */ jsx("div", { className: styles["prefix"], children: prefix }) : null,
870
+ /* @__PURE__ */ jsxs(
871
+ "div",
872
+ {
873
+ className: styles["rows-wrapper"],
874
+ ref: rowsRef,
875
+ "data-single-row": singleRow || void 0,
876
+ children: [
877
+ selectedOptions.length > 0 && onRemoveOption ? selectedOptions.slice(0, displayCount).map((option, index) => /* @__PURE__ */ jsx(
887
878
  "div",
888
879
  {
889
- className: cx(styles["input"], {
890
- [styles["error"]]: error
891
- }),
892
- children: placeholder
880
+ className: styles["chip-wrapper"],
881
+ children: /* @__PURE__ */ jsx(
882
+ Chip,
883
+ {
884
+ ...getChipProps?.(option),
885
+ ...{ [ANV_PART_ATTR]: PARTS.chip },
886
+ label: option.label,
887
+ onClose: disabled || readOnly || option.disabled ? void 0 : (e) => {
888
+ e.stopPropagation();
889
+ onRemoveOption(option);
890
+ triggerRef.current?.focus();
891
+ },
892
+ className: styles["chip"],
893
+ title: option.label
894
+ }
895
+ )
896
+ },
897
+ `selected-item-${option.id}-${index}`
898
+ )) : null,
899
+ hiddenCount > 0 ? /* @__PURE__ */ jsx("div", { className: styles["chip-wrapper"], children: /* @__PURE__ */ jsx(
900
+ Chip,
901
+ {
902
+ label: `+${hiddenCount}`,
903
+ className: styles["chip"],
904
+ title: selectedOptions.slice(displayCount).map((option) => option.label).join(", "),
905
+ ...{ [ANV_PART_ATTR]: PARTS.overflowChip }
893
906
  }
894
- ),
895
- suffix ? /* @__PURE__ */ jsx("div", { className: styles["suffix"], children: suffix }) : null
896
- ] }) : null
897
- ] }),
898
- /* @__PURE__ */ jsx("div", { className: styles["buttons-wrapper"], children: /* @__PURE__ */ jsx("div", { className: styles["toggle-button-wrapper"], children: /* @__PURE__ */ jsx(
907
+ ) }) : null,
908
+ selectedOptions.length === 0 ? /* @__PURE__ */ jsxs(Flex, { className: styles["input-flex"], alignItems: "center", children: [
909
+ /* @__PURE__ */ jsx(
910
+ "div",
911
+ {
912
+ className: cx(styles["input"], {
913
+ [styles["error"]]: error
914
+ }),
915
+ children: placeholder
916
+ }
917
+ ),
918
+ suffix ? /* @__PURE__ */ jsx("div", { className: styles["suffix"], children: suffix }) : null
919
+ ] }) : null
920
+ ]
921
+ }
922
+ ),
923
+ /* @__PURE__ */ jsxs("div", { className: styles["buttons-wrapper"], children: [
924
+ disableClearButton ? null : /* @__PURE__ */ jsx("div", { className: styles["close-button-wrapper"], children: /* @__PURE__ */ jsx(
925
+ Button,
926
+ {
927
+ icon: SvgClose,
928
+ "aria-label": "clear selection",
929
+ appearance: "ghost",
930
+ size: "small",
931
+ className: styles["close-button"],
932
+ ...{ [ANV_PART_ATTR]: PARTS.clearButton },
933
+ onClick: (e) => {
934
+ e.stopPropagation();
935
+ onClear?.();
936
+ }
937
+ }
938
+ ) }),
939
+ /* @__PURE__ */ jsx("div", { className: styles["toggle-button-wrapper"], children: /* @__PURE__ */ jsx(
899
940
  Button,
900
941
  {
901
942
  icon: SvgChevronRight,
@@ -907,33 +948,11 @@ const MultiSelectFieldTrigger = ({
907
948
  ...{ [ANV_PART_ATTR]: PARTS.toggleButton },
908
949
  className: styles["toggle-button"]
909
950
  }
910
- ) }) })
911
- ]
912
- }
913
- ),
914
- disableClearButton ? null : /* @__PURE__ */ jsx(
915
- "div",
916
- {
917
- className: styles["buttons-wrapper"],
918
- style: { insetInlineEnd: "2rem" },
919
- children: /* @__PURE__ */ jsx("div", { className: styles["close-button-wrapper"], children: /* @__PURE__ */ jsx(
920
- Button,
921
- {
922
- icon: SvgClose,
923
- "aria-label": "clear selection",
924
- appearance: "ghost",
925
- size: "small",
926
- className: styles["close-button"],
927
- ...{ [ANV_PART_ATTR]: PARTS.clearButton },
928
- onClick: (e) => {
929
- e.stopPropagation();
930
- onClear?.();
931
- }
932
- }
933
- ) })
934
- }
935
- )
936
- ] });
951
+ ) })
952
+ ] })
953
+ ]
954
+ }
955
+ );
937
956
  };
938
957
  MultiSelectFieldTrigger.displayName = "MultiSelectFieldTrigger";
939
958
 
@@ -1706,4 +1725,4 @@ const MultiSelectFieldSync = (props) => {
1706
1725
  };
1707
1726
 
1708
1727
  export { MultiSelectField as M, MultiSelectFieldSync as a };
1709
- //# sourceMappingURL=MultiSelectFieldSync-HhFKGtQM.js.map
1728
+ //# sourceMappingURL=MultiSelectFieldSync-B_vuR-ii.js.map