impact-nova 2.2.6 → 2.2.8

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 (40) hide show
  1. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +96 -120
  2. package/dist/components/data/ag-grid-react/headers/components/section-renderers.js +19 -18
  3. package/dist/components/data/ag-grid-react/info-system-story-columns.d.ts +38 -1
  4. package/dist/components/data/data-table/data-table-saved-views.js +70 -79
  5. package/dist/components/data-display/badge/badge.variants.d.ts +2 -2
  6. package/dist/components/feedback/alert/alert.variants.d.ts +1 -1
  7. package/dist/components/feedback/tooltip/badge-overflow-tooltip.d.ts +19 -0
  8. package/dist/components/feedback/tooltip/badge-overflow-tooltip.js +48 -0
  9. package/dist/components/feedback/tooltip/index.d.ts +2 -0
  10. package/dist/components/feedback/tooltip/index.js +11 -9
  11. package/dist/components/feedback/tooltip/overflow-tooltip.js +73 -50
  12. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +5 -0
  13. package/dist/components/feedback/tooltip/tooltip.d.ts +2 -2
  14. package/dist/components/feedback/tooltip/tooltip.js +65 -28
  15. package/dist/components/feedback/tooltip/tooltip.variants.js +1 -1
  16. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +89 -35
  17. package/dist/components/flows/filter-panel/filter-panel.js +33 -29
  18. package/dist/components/flows/filter-strip/filter-summary.js +126 -137
  19. package/dist/components/flows/filter-strip/filter-tag-list.js +97 -89
  20. package/dist/components/forms/prompt/prompt.js +13 -13
  21. package/dist/components/forms/prompt/prompt.variants.d.ts +1 -1
  22. package/dist/components/forms/select/components/SelectMenuPanel.js +26 -22
  23. package/dist/components/forms/select/components/SelectOptionRow.js +67 -64
  24. package/dist/components/forms/select/components/Submenu.js +40 -35
  25. package/dist/components/forms/select/hooks/useSuppressOptionClickForTextSelection.d.ts +5 -0
  26. package/dist/components/forms/select/hooks/useSuppressOptionClickForTextSelection.js +28 -0
  27. package/dist/components/forms/select/select.js +121 -120
  28. package/dist/components/forms/select/utils/shouldSuppressOptionClickForTextSelection.d.ts +5 -0
  29. package/dist/components/forms/select/utils/shouldSuppressOptionClickForTextSelection.js +16 -0
  30. package/dist/components/primitives/tag/tag.variants.d.ts +1 -1
  31. package/dist/impact-nova.css +1 -1
  32. package/dist/index.js +153 -151
  33. package/dist/lib/overlay/prevent-dismiss-on-tooltip-outside.d.ts +3 -0
  34. package/dist/lib/overlay/prevent-dismiss-on-tooltip-outside.js +34 -0
  35. package/dist/lib/tooltip/tooltip-content-interaction.d.ts +4 -0
  36. package/dist/lib/tooltip/tooltip-content-interaction.js +21 -0
  37. package/dist/llms/rules/installation.js +1 -1
  38. package/dist/llms/rules/requirements.js +1 -1
  39. package/dist/providers/app-providers.js +18 -11
  40. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as u, jsxs as te } from "react/jsx-runtime";
2
- import mt, { useState as A, useRef as S } from "react";
2
+ import mt, { useState as x, useRef as S } from "react";
3
3
  import * as le from "@radix-ui/react-popover";
4
4
  import { useVirtualizer as dt } from "@tanstack/react-virtual";
5
5
  import { SelectMenuFooter as ft } from "./components/SelectMenuFooter.js";
@@ -9,28 +9,29 @@ import { SelectMenuPanel as ht } from "./components/SelectMenuPanel.js";
9
9
  import { SelectTrigger as gt } from "./components/SelectTrigger.js";
10
10
  import { cn as oe } from "../../../lib/utils.js";
11
11
  import { useFieldChrome as bt } from "../../../lib/primitives/use-field-chrome.js";
12
- import { isOptionArray as Ot, getSequence as Mt } from "./utils/select.js";
13
- import { useImpactNovaI18n as Ct } from "../../../i18n/use-impact-nova-i18n.js";
14
- import { useFlattenOptions as yt } from "./hooks/useFlattenOptions.js";
15
- import { useSelectKeyboardHandlers as It } from "./hooks/useSelectKeyboardHandlers.js";
16
- import { useSelectValueState as vt } from "./hooks/useSelectValueState.js";
12
+ import { isOptionArray as Ot, getSequence as Ct } from "./utils/select.js";
13
+ import { useImpactNovaI18n as Mt } from "../../../i18n/use-impact-nova-i18n.js";
14
+ import { useFlattenOptions as vt } from "./hooks/useFlattenOptions.js";
15
+ import { useSelectKeyboardHandlers as yt } from "./hooks/useSelectKeyboardHandlers.js";
16
+ import { useSelectValueState as It } from "./hooks/useSelectValueState.js";
17
17
  import { useSelectMenuHeight as Lt } from "./hooks/useSelectMenuHeight.js";
18
18
  import { useSelectMenuScroll as Vt } from "./hooks/useSelectMenuScroll.js";
19
- import { useSelectOpenEffects as xt } from "./hooks/useSelectOpenEffects.js";
20
- import { useSelectOutsideScrollLock as At } from "./hooks/useSelectOutsideScrollLock.js";
19
+ import { useSelectOpenEffects as At } from "./hooks/useSelectOpenEffects.js";
20
+ import { useSelectOutsideScrollLock as xt } from "./hooks/useSelectOutsideScrollLock.js";
21
21
  import { useSelectSearchFocus as Rt } from "./hooks/useSelectSearchFocus.js";
22
- import { useSelectSelectionHandlers as wt } from "./hooks/useSelectSelectionHandlers.js";
23
- import { useSelectionModel as Pt } from "./hooks/useSelectionModel.js";
22
+ import { useSelectSelectionHandlers as Pt } from "./hooks/useSelectSelectionHandlers.js";
23
+ import { useSelectionModel as wt } from "./hooks/useSelectionModel.js";
24
24
  import { useVisibleStats as Dt } from "./hooks/useVisibleStats.js";
25
25
  import { useOverlayNestedLayerDismiss as Nt } from "../../../lib/overlay/overlay-portal-context.js";
26
+ import { isTooltipContentPointerGestureActive as Tt } from "../../../lib/tooltip/tooltip-content-interaction.js";
26
27
  import { SELECT_ALL_INDEX as qt } from "./select.constants.js";
27
28
  import { getSelectableOptionIndices as Et } from "./utils/getSelectableOptionIndices.js";
28
29
  function ne(R) {
29
30
  const {
30
- options: C,
31
- value: se,
32
- defaultValue: re,
33
- onChange: T,
31
+ options: M,
32
+ value: re,
33
+ defaultValue: se,
34
+ onChange: F,
34
35
  isMulti: ie,
35
36
  multiple: ae,
36
37
  isDisabled: ce,
@@ -40,7 +41,7 @@ function ne(R) {
40
41
  isSearchable: h = !0,
41
42
  placeholder: de,
42
43
  // menuPortalTarget is kept for API compatibility but no longer used (Radix handles portalling)
43
- menuPortalTarget: Tt,
44
+ menuPortalTarget: Ht,
44
45
  autoFocus: fe,
45
46
  closeMenuOnSelect: pe,
46
47
  defaultMenuIsOpen: Se = !1,
@@ -51,188 +52,188 @@ function ne(R) {
51
52
  label: m,
52
53
  required: be,
53
54
  isRequired: Oe,
54
- error: Me,
55
- helperText: Ce,
56
- helperTextPosition: ye = "absolute",
55
+ error: Ce,
56
+ helperText: Me,
57
+ helperTextPosition: ve = "absolute",
57
58
  id: d,
58
- className: Ie,
59
- parentClassName: ve,
59
+ className: ye,
60
+ parentClassName: Ie,
60
61
  onMenuScrollToBottom: Le,
61
- estimateRowSize: y,
62
+ estimateRowSize: v,
62
63
  totalCount: Ve,
63
- name: xe,
64
- isSelectAllEnabled: w = !0,
64
+ name: Ae,
65
+ isSelectAllEnabled: P = !0,
65
66
  isReadOnly: n = !1,
66
67
  searchPosition: b = "menu",
67
68
  footerContent: z,
68
- onInputChange: Ae,
69
+ onInputChange: xe,
69
70
  getOptionLabel: B,
70
71
  renderOption: Re,
71
- onMenuOpen: we,
72
+ onMenuOpen: Pe,
72
73
  onMenuClose: K,
73
74
  labelOrientation: $ = "top",
74
- size: Pe = "default",
75
+ size: we = "default",
75
76
  leftContent: De,
76
77
  ignoreCase: Ne,
77
- ignoreAccents: qe,
78
- matchFrom: Ee,
79
- stringify: Fe,
80
- trim: Te,
78
+ ignoreAccents: Te,
79
+ matchFrom: qe,
80
+ stringify: Ee,
81
+ trim: Fe,
81
82
  filterOption: He,
82
- enableSubMenus: I = !1,
83
- enableGroups: P = !1,
83
+ enableSubMenus: y = !1,
84
+ enableGroups: w = !1,
84
85
  enableInvertedSelection: ze,
85
- fetchError: v,
86
+ fetchError: I,
86
87
  onRefetch: Be,
87
88
  menuWidth: Ke,
88
89
  onClearAll: $e,
89
90
  onFocus: _e,
90
- onBlur: je
91
- } = R, t = ae ?? ie ?? !1, s = ue ?? ce ?? !1, ke = be ?? Oe ?? !1, Ge = pe ?? !t, { t: O } = Ct(), D = de ?? O("select.placeholder"), [l, _] = A(Se), [f, L] = A(""), {
91
+ onBlur: Ge
92
+ } = R, t = ae ?? ie ?? !1, r = ue ?? ce ?? !1, je = be ?? Oe ?? !1, ke = pe ?? !t, { t: O } = Mt(), D = de ?? O("select.placeholder"), [l, _] = x(Se), [f, L] = x(""), {
92
93
  usesMenuSession: We,
93
- currentValue: r,
94
+ currentValue: s,
94
95
  setCurrentValue: Xe,
95
96
  beginMenuSession: Je,
96
97
  endMenuSession: Qe
97
- } = vt({
98
- value: se,
99
- defaultValue: re,
98
+ } = It({
99
+ value: re,
100
+ defaultValue: se,
100
101
  isMulti: !!t,
101
- onChange: T
102
- }), [Ue, j] = A(null), [a, k] = A(-1), G = S(!1), Ye = mt.useId(), p = d ?? Ye, W = `${p}-listbox`, Ze = l && a >= 0 ? a === qt ? `${p}-option-select-all` : `${p}-option-${a}` : void 0, X = S(null), N = S(null), et = S(null), q = S(null), E = S(null);
103
- Rt(l, h, b, E);
104
- const { flatOptions: o, isProcessing: c, totalOptionsCount: J, workerSelectAll: tt } = yt(C, f, {
102
+ onChange: F
103
+ }), [Ue, G] = x(null), [a, j] = x(-1), k = S(!1), Ye = mt.useId(), p = d ?? Ye, W = `${p}-listbox`, Ze = l && a >= 0 ? a === qt ? `${p}-option-select-all` : `${p}-option-${a}` : void 0, X = S(null), N = S(null), et = S(null), T = S(null), q = S(null);
104
+ Rt(l, h, b, q);
105
+ const { flatOptions: o, isProcessing: c, totalOptionsCount: J, workerSelectAll: tt } = vt(M, f, {
105
106
  ignoreCase: Ne,
106
- ignoreAccents: qe,
107
- matchFrom: Ee,
108
- stringify: Fe,
109
- trim: Te,
107
+ ignoreAccents: Te,
108
+ matchFrom: qe,
109
+ stringify: Ee,
110
+ trim: Fe,
110
111
  filterOption: He,
111
- enableSubMenus: I,
112
- enableGroups: P
112
+ enableSubMenus: y,
113
+ enableGroups: w
113
114
  }), lt = Lt(
114
115
  l,
115
116
  !!i,
116
117
  c,
117
118
  N
118
- ), M = Pt(r, t ?? !1), { stats: Q, getGroupStats: ot } = Dt(
119
+ ), C = wt(s, t ?? !1), { stats: Q, getGroupStats: ot } = Dt(
119
120
  o,
120
121
  J,
121
122
  f,
122
- M,
123
- r,
123
+ C,
124
+ s,
124
125
  t ?? !1
125
126
  ), V = dt({
126
127
  count: o.length,
127
- getScrollElement: () => q.current,
128
+ getScrollElement: () => T.current,
128
129
  // Estimates only seed unmeasured rows — mounted rows self-measure via
129
130
  // `measureElement` refs. Consumers rendering taller custom `renderOption`
130
131
  // rows should pass `estimateRowSize` to keep scroll offsets sane.
131
- estimateSize: (e) => typeof y == "function" ? y(e) : typeof y == "number" ? y : 34,
132
+ estimateSize: (e) => typeof v == "function" ? v(e) : typeof v == "number" ? v : 34,
132
133
  overscan: 5
133
134
  });
134
- xt({
135
+ At({
135
136
  isOpen: l,
136
137
  isSearchable: h,
137
138
  searchPosition: b,
138
139
  isReadOnly: n,
139
140
  isLoading: i,
140
141
  isProcessing: c,
141
- fetchError: v,
142
+ fetchError: I,
142
143
  isMulti: t,
143
- isSelectAllEnabled: w,
144
+ isSelectAllEnabled: P,
144
145
  flatOptions: o,
145
146
  searchValue: f,
146
147
  highlightedIndex: a,
147
- setHighlightedIndex: k,
148
- openedViaKeyboardRef: G,
148
+ setHighlightedIndex: j,
149
+ openedViaKeyboardRef: k,
149
150
  scrollToSelectedOnOpen: he,
150
- selectionModel: M,
151
- internalValue: r,
151
+ selectionModel: C,
152
+ internalValue: s,
152
153
  rowVirtualizer: V
153
154
  }), Vt({
154
155
  isOpen: l,
155
156
  isLoading: i,
156
157
  isProcessing: c,
157
158
  flatOptions: o,
158
- listRef: q,
159
+ listRef: T,
159
160
  rowVirtualizer: V,
160
161
  onMenuScrollToBottom: Le
161
162
  });
162
- const x = (e) => {
163
- if (!(s && e))
163
+ const A = (e) => {
164
+ if (!(!e && Tt()) && !(r && e))
164
165
  if (_(e), e)
165
- Je(), we?.();
166
+ Je(), Pe?.();
166
167
  else {
167
- const F = We ? Qe() : r, ct = t && Ot(F) ? F.map((ut) => ut.value) : void 0;
168
- K?.(F, ct), L(""), j(null);
168
+ const E = We ? Qe() : s, ct = t && Ot(E) ? E.map((ut) => ut.value) : void 0;
169
+ K?.(E, ct), L(""), G(null);
169
170
  }
170
171
  };
171
- Nt(l && !s, x), At(l, N);
172
- const U = (e) => B ? B(e) : e.label, { handleSelect: Y, handleSelectAll: Z, clearValue: nt } = wt({
172
+ Nt(l && !r, A), xt(l, N);
173
+ const U = (e) => B ? B(e) : e.label, { handleSelect: Y, handleSelectAll: Z, clearValue: nt } = Pt({
173
174
  isMulti: t,
174
- isDisabled: s,
175
+ isDisabled: r,
175
176
  isReadOnly: n,
176
- internalValue: r,
177
+ internalValue: s,
177
178
  setInternalValue: Xe,
178
- onChange: T,
179
+ onChange: F,
179
180
  onMenuClose: K,
180
181
  onClearAll: $e,
181
- enableSubMenus: I,
182
- enableGroups: P,
182
+ enableSubMenus: y,
183
+ enableGroups: w,
183
184
  enableInvertedSelection: ze,
184
185
  maxSelectableOptions: g,
185
- closeMenuOnSelect: Ge,
186
- options: C,
186
+ closeMenuOnSelect: ke,
187
+ options: M,
187
188
  flatOptions: o,
188
189
  searchValue: f,
189
- selectionModel: M,
190
+ selectionModel: C,
190
191
  visibleStats: Q,
191
192
  workerSelectAll: tt,
192
193
  setIsOpen: _,
193
194
  setSearchValue: L
194
- }), st = (e) => Mt(
195
+ }), rt = (e) => Ct(
195
196
  e,
196
197
  H ?? !1,
197
198
  t ?? !1,
198
199
  ge,
199
- r
200
- ), rt = () => Et({
200
+ s
201
+ ), st = () => Et({
201
202
  isLoading: !!i,
202
203
  isProcessing: c,
203
- fetchError: v,
204
+ fetchError: I,
204
205
  isMulti: t,
205
- isSelectAllEnabled: w,
206
+ isSelectAllEnabled: P,
206
207
  isReadOnly: n,
207
208
  flatOptions: o,
208
- enableSubMenus: I
209
- }), { handleTriggerKeyDown: it, handleSearchKeyDown: at } = It({
210
- isDisabled: s,
209
+ enableSubMenus: y
210
+ }), { handleTriggerKeyDown: it, handleSearchKeyDown: at } = yt({
211
+ isDisabled: r,
211
212
  isReadOnly: n,
212
213
  isOpen: l,
213
214
  isSearchable: h,
214
215
  searchPosition: b,
215
- getSelectableIndices: rt,
216
+ getSelectableIndices: st,
216
217
  highlightedIndex: a,
217
- setHighlightedIndex: k,
218
+ setHighlightedIndex: j,
218
219
  flatOptions: o,
219
220
  rowVirtualizer: V,
220
- handleOpenChange: x,
221
+ handleOpenChange: A,
221
222
  handleSelect: Y,
222
223
  handleSelectAll: Z,
223
- openedViaKeyboardRef: G,
224
- searchInputRef: E,
224
+ openedViaKeyboardRef: k,
225
+ searchInputRef: q,
225
226
  triggerRef: X
226
227
  }), ee = bt({
227
228
  label: m,
228
- helperText: Ce,
229
- helperTextPosition: ye,
229
+ helperText: Me,
230
+ helperTextPosition: ve,
230
231
  labelOrientation: $,
231
- error: Me,
232
- required: ke,
233
- disabled: s,
232
+ error: Ce,
233
+ required: je,
234
+ disabled: r,
234
235
  className: oe($ === "left" && "w-fit items-center"),
235
- rootClassName: ve
236
+ rootClassName: Ie
236
237
  });
237
238
  return /* @__PURE__ */ u(
238
239
  "div",
@@ -240,7 +241,7 @@ function ne(R) {
240
241
  "data-testid": `select-${d || "default"}`,
241
242
  "data-component": "select",
242
243
  children: ee.wrapControl(
243
- /* @__PURE__ */ te(le.Root, { open: l && !s, onOpenChange: x, modal: !1, children: [
244
+ /* @__PURE__ */ te(le.Root, { open: l && !r, onOpenChange: A, modal: !1, children: [
244
245
  /* @__PURE__ */ u(le.Anchor, { asChild: !0, children: /* @__PURE__ */ u(
245
246
  gt,
246
247
  {
@@ -249,10 +250,10 @@ function ne(R) {
249
250
  selectFieldId: p,
250
251
  listboxId: W,
251
252
  id: d,
252
- className: Ie,
253
- size: Pe,
253
+ className: ye,
254
+ size: we,
254
255
  error: ee.hasError,
255
- isDisabled: s,
256
+ isDisabled: r,
256
257
  isReadOnly: n,
257
258
  isOpen: l,
258
259
  isLoading: i,
@@ -263,21 +264,21 @@ function ne(R) {
263
264
  searchValue: f,
264
265
  setSearchValue: L,
265
266
  autoFocus: fe,
266
- name: xe,
267
+ name: Ae,
267
268
  label: m,
268
269
  placeholder: D,
269
270
  leftContent: De,
270
271
  activeDescendantId: Ze,
271
- internalValue: r,
272
+ internalValue: s,
272
273
  totalCount: Ve,
273
274
  totalOptionsCount: J,
274
275
  formatSelectedCount: (e) => O("select.selectedCount", { count: e }),
275
276
  resolveOptionLabel: U,
276
277
  isMulti: t,
277
278
  onFocus: _e,
278
- onBlur: je,
279
+ onBlur: Ge,
279
280
  onKeyDown: it,
280
- onToggle: () => x(!l),
281
+ onToggle: () => A(!l),
281
282
  onClear: nt
282
283
  }
283
284
  ) }),
@@ -297,16 +298,16 @@ function ne(R) {
297
298
  id: d,
298
299
  selectFieldId: p,
299
300
  isReadOnly: n,
300
- isDisabled: s,
301
+ isDisabled: r,
301
302
  isMulti: t,
302
303
  isSearchable: h,
303
304
  searchPosition: b,
304
- fetchError: v,
305
+ fetchError: I,
305
306
  isLoading: i,
306
307
  isProcessing: c,
307
- isSelectAllEnabled: w ?? !1,
308
+ isSelectAllEnabled: P ?? !1,
308
309
  flatOptionsLength: o.length,
309
- searchInputRef: E,
310
+ searchInputRef: q,
310
311
  searchValue: f,
311
312
  searchPlaceholder: O("select.searchHere"),
312
313
  highlightedIndex: a,
@@ -315,7 +316,7 @@ function ne(R) {
315
316
  selectAllLabel: O("select.selectAll"),
316
317
  unselectAllLabel: O("select.unselectAll"),
317
318
  onSearchChange: (e) => {
318
- L(e), Ae?.(e);
319
+ L(e), xe?.(e);
319
320
  },
320
321
  onSearchKeyDown: at,
321
322
  onSelectAll: Z
@@ -326,23 +327,23 @@ function ne(R) {
326
327
  {
327
328
  className: oe(
328
329
  "flex min-h-0 flex-1 flex-col overflow-hidden",
329
- !(z || g || C.length > 5e3) && "rounded-b-[12px]"
330
+ !(z || g || M.length > 5e3) && "rounded-b-[12px]"
330
331
  ),
331
332
  children: /* @__PURE__ */ u(
332
333
  St,
333
334
  {
334
- fetchError: v,
335
+ fetchError: I,
335
336
  onRefetch: Be,
336
337
  flatOptions: o,
337
338
  isLoading: i,
338
339
  isProcessing: c,
339
340
  isMulti: t,
340
341
  isReadOnly: n,
341
- enableGroups: P,
342
- enableSubMenus: I,
342
+ enableGroups: w,
343
+ enableSubMenus: y,
343
344
  showSequence: H,
344
345
  maxSelectableOptions: g,
345
- listRef: q,
346
+ listRef: T,
346
347
  listboxId: W,
347
348
  listboxLabel: m ? String(m) : D,
348
349
  rowVirtualizer: V,
@@ -350,12 +351,12 @@ function ne(R) {
350
351
  id: d,
351
352
  highlightedIndex: a,
352
353
  activeSubmenu: Ue,
353
- setActiveSubmenu: j,
354
- internalValue: r,
355
- selectionMode: M.mode,
356
- selectionSet: M.set,
354
+ setActiveSubmenu: G,
355
+ internalValue: s,
356
+ selectionMode: C.mode,
357
+ selectionSet: C.set,
357
358
  resolveOptionLabel: U,
358
- getSequenceForOption: st,
359
+ getSequenceForOption: rt,
359
360
  renderOption: Re,
360
361
  onSelect: Y,
361
362
  getGroupStats: ot
@@ -368,7 +369,7 @@ function ne(R) {
368
369
  {
369
370
  footerContent: z,
370
371
  maxSelectableOptions: g,
371
- optionCount: C.length
372
+ optionCount: M.length
372
373
  }
373
374
  )
374
375
  ]
@@ -0,0 +1,5 @@
1
+ export interface PointerPosition {
2
+ clientX: number;
3
+ clientY: number;
4
+ }
5
+ export declare function shouldSuppressOptionClickForTextSelection(pointerDownPosition: PointerPosition | null, clickEvent: Pick<MouseEvent, 'clientX' | 'clientY' | 'detail' | 'target'>): boolean;
@@ -0,0 +1,16 @@
1
+ import { isTooltipContentPointerGestureActive as o, isTooltipContentElement as s } from "../../../../lib/tooltip/tooltip-content-interaction.js";
2
+ const n = 4;
3
+ function a(e, t) {
4
+ if (o() || s(t.target) || t.detail >= 2)
5
+ return !0;
6
+ if (e) {
7
+ const i = Math.abs(t.clientX - e.clientX), l = Math.abs(t.clientY - e.clientY);
8
+ if (i > n || l > n)
9
+ return !0;
10
+ }
11
+ const r = window.getSelection();
12
+ return !r || r.isCollapsed ? !1 : r.toString().trim().length > 0;
13
+ }
14
+ export {
15
+ a as shouldSuppressOptionClickForTextSelection
16
+ };
@@ -1,5 +1,5 @@
1
1
  export declare const tagVariants: (props?: ({
2
- variant?: "default" | "secondary" | "tertiary" | "outline" | "destructive" | "ghost" | "info" | "warning" | "success" | "choice" | null | undefined;
2
+ variant?: "default" | "secondary" | "tertiary" | "outline" | "success" | "warning" | "destructive" | "ghost" | "info" | "choice" | null | undefined;
3
3
  size?: "sm" | "md" | "lg" | null | undefined;
4
4
  shape?: "rounded" | "pill" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;