@sproutsocial/seeds-react-menu 1.10.8 → 1.11.0

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 (50) hide show
  1. package/.turbo/turbo-build.log +21 -15
  2. package/CHANGELOG.md +22 -0
  3. package/dist/esm/index.js +45 -24
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/esm/v2/index.js +1 -1
  6. package/dist/esm/v2/index.js.map +1 -1
  7. package/dist/esm/v3/index.js +800 -0
  8. package/dist/esm/v3/index.js.map +1 -0
  9. package/dist/index.d.mts +22 -22
  10. package/dist/index.d.ts +22 -22
  11. package/dist/index.js +35 -14
  12. package/dist/index.js.map +1 -1
  13. package/dist/v2/index.js +1 -1
  14. package/dist/v2/index.js.map +1 -1
  15. package/dist/v3/index.d.mts +295 -0
  16. package/dist/v3/index.d.ts +295 -0
  17. package/dist/v3/index.js +868 -0
  18. package/dist/v3/index.js.map +1 -0
  19. package/package.json +7 -1
  20. package/src/MenuGroup/MenuGroup.tsx +16 -3
  21. package/src/MenuGroup/__tests__/MenuGroup.test.tsx +19 -0
  22. package/src/MenuItem/MenuItem.tsx +21 -10
  23. package/src/MenuItem/__tests__/MenuItem.test.tsx +19 -0
  24. package/src/v2/Common-V2/ComboboxContent.tsx +1 -1
  25. package/src/v3/Common/ComboboxItem.tsx +82 -0
  26. package/src/v3/Common/ComboboxStyles.tsx +475 -0
  27. package/src/v3/Common/SelectGroup.tsx +28 -0
  28. package/src/v3/Common/SelectIcons.tsx +26 -0
  29. package/src/v3/Common/SelectItem.tsx +108 -0
  30. package/src/v3/Common/SelectStyles.tsx +126 -0
  31. package/src/v3/Common/VirtualizedComboboxList.tsx +200 -0
  32. package/src/v3/Common/groupItems.ts +12 -0
  33. package/src/v3/Common/types.ts +3 -0
  34. package/src/v3/ModalStories.stories.tsx +181 -0
  35. package/src/v3/MultiCombobox.stories.tsx +322 -0
  36. package/src/v3/MultiCombobox.tsx +562 -0
  37. package/src/v3/MultiSearchableSelect.stories.tsx +389 -0
  38. package/src/v3/MultiSearchableSelect.tsx +545 -0
  39. package/src/v3/MultiSelect.stories.tsx +300 -0
  40. package/src/v3/MultiSelect.tsx +498 -0
  41. package/src/v3/SeedsPortal.tsx +35 -0
  42. package/src/v3/SingleCombobox.stories.tsx +169 -0
  43. package/src/v3/SingleCombobox.tsx +304 -0
  44. package/src/v3/SingleSearchableSelect.stories.tsx +239 -0
  45. package/src/v3/SingleSearchableSelect.tsx +319 -0
  46. package/src/v3/SingleSelect.stories.tsx +227 -0
  47. package/src/v3/SingleSelect.tsx +245 -0
  48. package/src/v3/index.ts +7 -0
  49. package/src/v3/storyData.tsx +117 -0
  50. package/tsup.config.ts +1 -0
@@ -0,0 +1,868 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/v3/index.ts
31
+ var v3_exports = {};
32
+ __export(v3_exports, {
33
+ ComboboxActionButtons: () => ComboboxActionButtons,
34
+ ComboboxClear: () => ComboboxClear,
35
+ ComboboxEmpty: () => ComboboxEmpty,
36
+ ComboboxGroup: () => ComboboxGroup,
37
+ ComboboxGroupHeaderCheckbox: () => ComboboxGroupHeaderCheckbox,
38
+ ComboboxGroupHeaderItem: () => ComboboxGroupHeaderItem,
39
+ ComboboxGroupLabel: () => ComboboxGroupLabel,
40
+ ComboboxInput: () => ComboboxInput,
41
+ ComboboxInputGroup: () => ComboboxInputGroup,
42
+ ComboboxItem: () => ComboboxItem,
43
+ ComboboxItemIndicator: () => ComboboxItemIndicator,
44
+ ComboboxLabel: () => ComboboxLabel,
45
+ ComboboxList: () => ComboboxList,
46
+ ComboboxPopup: () => ComboboxPopup,
47
+ ComboboxPositioner: () => ComboboxPositioner,
48
+ ComboboxSelectAllItem: () => ComboboxSelectAllItem,
49
+ ComboboxSeparator: () => ComboboxSeparator,
50
+ ComboboxStatus: () => ComboboxStatus,
51
+ ComboboxToken: () => ComboboxToken,
52
+ ComboboxTokenInput: () => ComboboxTokenInput,
53
+ ComboboxTokenInputGroup: () => ComboboxTokenInputGroup,
54
+ ComboboxTrigger: () => ComboboxTrigger,
55
+ SearchableSelectInput: () => SearchableSelectInput,
56
+ SearchableSelectList: () => SearchableSelectList,
57
+ SearchableSelectPlaceholder: () => SearchableSelectPlaceholder,
58
+ SearchableSelectPopup: () => SearchableSelectPopup,
59
+ SearchableSelectSearchContainer: () => SearchableSelectSearchContainer,
60
+ SearchableSelectTokenTrigger: () => SearchableSelectTokenTrigger,
61
+ SearchableSelectTrigger: () => SearchableSelectTrigger,
62
+ SearchableSelectTriggerIcon: () => SearchableSelectTriggerIcon,
63
+ Token: () => Token,
64
+ TokenRemove: () => TokenRemove
65
+ });
66
+ module.exports = __toCommonJS(v3_exports);
67
+
68
+ // src/v3/SingleSelect.tsx
69
+ var React4 = __toESM(require("react"));
70
+ var import_select3 = require("@base-ui/react/select");
71
+ var import_styled_components4 = __toESM(require("styled-components"));
72
+
73
+ // src/v3/SeedsPortal.tsx
74
+ var React = __toESM(require("react"));
75
+ var import_seeds_react_portal = require("@sproutsocial/seeds-react-portal");
76
+
77
+ // src/v3/Common/SelectItem.tsx
78
+ var React2 = require("react");
79
+ var import_select = require("@base-ui/react/select");
80
+ var import_styled_components = __toESM(require("styled-components"));
81
+ var import_seeds_react_radio = __toESM(require("@sproutsocial/seeds-react-radio"));
82
+ var import_seeds_react_checkbox = __toESM(require("@sproutsocial/seeds-react-checkbox"));
83
+ var import_seeds_react_icon = require("@sproutsocial/seeds-react-icon");
84
+ var import_jsx_runtime = require("react/jsx-runtime");
85
+ var StyledItem = (0, import_styled_components.default)(import_select.Select.Item)`
86
+ display: flex;
87
+ align-items: center;
88
+ gap: 8px;
89
+ padding: 6px 8px;
90
+ border-radius: ${({ theme }) => theme.radii[500]};
91
+ font-size: 14px;
92
+ color: ${({ theme }) => theme.colors.text.body};
93
+ cursor: default;
94
+ outline: none;
95
+
96
+ &[data-highlighted] {
97
+ background: ${({ theme }) => theme.colors.listItem.background.hover};
98
+ }
99
+
100
+ &[data-selected] {
101
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
102
+ }
103
+
104
+ &[data-disabled] {
105
+ opacity: 0.5;
106
+ cursor: not-allowed;
107
+ }
108
+ `;
109
+ var StyledItemIndicator = (0, import_styled_components.default)(import_select.Select.ItemIndicator)`
110
+ display: flex;
111
+ align-items: center;
112
+ width: 16px;
113
+ color: ${({ theme }) => theme.colors.text.body};
114
+ visibility: hidden;
115
+
116
+ &[data-selected] {
117
+ visibility: visible;
118
+ }
119
+ `;
120
+ var StyledItemText = (0, import_styled_components.default)(import_select.Select.ItemText)``;
121
+
122
+ // src/v3/Common/SelectStyles.tsx
123
+ var import_select2 = require("@base-ui/react/select");
124
+ var import_styled_components2 = __toESM(require("styled-components"));
125
+ var import_seeds_react_mixins = require("@sproutsocial/seeds-react-mixins");
126
+ var Field = import_styled_components2.default.div`
127
+ display: flex;
128
+ flex-direction: column;
129
+ gap: ${({ theme }) => theme.space[200]};
130
+ `;
131
+ var SelectLabel = (0, import_styled_components2.default)(import_select2.Select.Label)`
132
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
133
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
134
+ color: ${({ theme }) => theme.colors.text.body};
135
+ `;
136
+ var SelectTrigger = (0, import_styled_components2.default)(import_select2.Select.Trigger)`
137
+ display: flex;
138
+ align-items: center;
139
+ justify-content: space-between;
140
+ gap: ${({ theme }) => theme.space[300]};
141
+ padding: ${({ theme }) => `${theme.space[300]}`};
142
+ min-width: 160px;
143
+ border-radius: ${({ theme }) => theme.radii[500]};
144
+ border: 1px solid ${({ theme }) => theme.colors.form.border.base};
145
+ background: ${({ theme }) => theme.colors.form.background.base};
146
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
147
+ color: ${({ theme }) => theme.colors.text.body};
148
+ cursor: default;
149
+ outline: none;
150
+ transition: border-color ${({ theme }) => theme.duration.fast}
151
+ ${({ theme }) => theme.easing.ease_in},
152
+ box-shadow ${({ theme }) => theme.duration.fast}
153
+ ${({ theme }) => theme.easing.ease_in};
154
+
155
+ &:focus-visible {
156
+ ${import_seeds_react_mixins.focusRing}
157
+ }
158
+
159
+ &[data-popup-open] {
160
+ ${import_seeds_react_mixins.focusRing}
161
+ }
162
+
163
+ &[data-popup-open] [data-chevron] {
164
+ transform: rotate(-180deg);
165
+ }
166
+ `;
167
+ var SelectValue = (0, import_styled_components2.default)(import_select2.Select.Value)`
168
+ min-width: 0;
169
+ overflow: hidden;
170
+ `;
171
+ var SelectIcon = (0, import_styled_components2.default)(import_select2.Select.Icon)`
172
+ display: flex;
173
+ align-items: center;
174
+ color: ${({ theme }) => theme.colors.icon.base};
175
+ flex-shrink: 0;
176
+ `;
177
+ var SelectGroup = (0, import_styled_components2.default)(import_select2.Select.Group)`
178
+ display: block;
179
+ `;
180
+ var SelectGroupLabel = (0, import_styled_components2.default)(import_select2.Select.GroupLabel)`
181
+ padding: ${({ theme }) => `${theme.space[300]} ${theme.space[300]} ${theme.space[200]}`};
182
+ font-size: ${({ theme }) => theme.typography[100].fontSize};
183
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
184
+ text-transform: uppercase;
185
+ letter-spacing: 0.05em;
186
+ color: ${({ theme }) => theme.colors.text.subtext};
187
+ `;
188
+ var SelectSeparator = (0, import_styled_components2.default)(import_select2.Select.Separator)`
189
+ height: 1px;
190
+ margin: ${({ theme }) => `${theme.space[200]} ${theme.space[300]}`};
191
+ background: ${({ theme }) => theme.colors.container.border.base};
192
+ `;
193
+ var SelectPositioner = (0, import_styled_components2.default)(import_select2.Select.Positioner)`
194
+ width: var(--anchor-width);
195
+ z-index: 7;
196
+ `;
197
+ var SelectPopup = (0, import_styled_components2.default)(import_select2.Select.Popup)`
198
+ font-family: ${({ theme }) => theme.fontFamily};
199
+ background: ${({ theme }) => theme.colors.container.background.base};
200
+ border: 1px solid ${({ theme }) => theme.colors.container.border.base};
201
+ border-radius: ${({ theme }) => theme.radii[500]};
202
+ box-shadow: ${({ theme }) => theme.shadows.low};
203
+ outline: none;
204
+ max-height: min(var(--base-ui-available-height, 400px), 400px);
205
+ overflow-y: auto;
206
+ padding: ${({ theme }) => theme.space[200]};
207
+
208
+ &[data-open] {
209
+ animation: select-popup-in 120ms ease-out;
210
+ }
211
+
212
+ &[data-closed] {
213
+ animation: select-popup-out 100ms ease-in;
214
+ }
215
+
216
+ @keyframes select-popup-in {
217
+ from {
218
+ opacity: 0;
219
+ transform: scale(0.95);
220
+ }
221
+ to {
222
+ opacity: 1;
223
+ transform: scale(1);
224
+ }
225
+ }
226
+
227
+ @keyframes select-popup-out {
228
+ from {
229
+ opacity: 1;
230
+ transform: scale(1);
231
+ }
232
+ to {
233
+ opacity: 0;
234
+ transform: scale(0.95);
235
+ }
236
+ }
237
+ `;
238
+
239
+ // src/v3/Common/SelectIcons.tsx
240
+ var React3 = require("react");
241
+ var import_styled_components3 = __toESM(require("styled-components"));
242
+ var import_seeds_react_icon2 = require("@sproutsocial/seeds-react-icon");
243
+ var import_jsx_runtime2 = require("react/jsx-runtime");
244
+ var StyledChevron = import_styled_components3.default.div`
245
+ display: flex;
246
+ align-items: center;
247
+ transition: transform 0.15s;
248
+ ${({ $isOpen }) => $isOpen && "transform: rotate(-180deg);"}
249
+ `;
250
+ function CheckIcon() {
251
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_seeds_react_icon2.Icon, { name: "check-outline", fixedWidth: true, "aria-hidden": true });
252
+ }
253
+
254
+ // src/v3/SingleSelect.tsx
255
+ var import_jsx_runtime3 = require("react/jsx-runtime");
256
+ var StyledValue = (0, import_styled_components4.default)(import_select3.Select.Value)`
257
+ flex: 1;
258
+ text-align: left;
259
+ overflow: hidden;
260
+ text-overflow: ellipsis;
261
+ white-space: nowrap;
262
+
263
+ &[data-placeholder] {
264
+ color: ${({ theme }) => theme.colors.text.subtext};
265
+ }
266
+ `;
267
+
268
+ // src/v3/MultiSelect.tsx
269
+ var React5 = __toESM(require("react"));
270
+ var import_select4 = require("@base-ui/react/select");
271
+ var import_styled_components5 = __toESM(require("styled-components"));
272
+ var import_jsx_runtime4 = require("react/jsx-runtime");
273
+ var SelectionText = import_styled_components5.default.span`
274
+ flex: 1;
275
+ overflow: hidden;
276
+ text-overflow: ellipsis;
277
+ white-space: nowrap;
278
+ `;
279
+ var Placeholder = import_styled_components5.default.div`
280
+ color: ${({ theme }) => theme.colors.text.subtext};
281
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
282
+ line-height: 16px;
283
+ padding-top: 2px;
284
+ padding-bottom: 2px;
285
+ margin: 2px 8px 0px 0px;
286
+ `;
287
+
288
+ // src/v3/SingleCombobox.tsx
289
+ var React8 = __toESM(require("react"));
290
+ var import_combobox3 = require("@base-ui/react/combobox");
291
+ var import_react_virtual2 = require("@tanstack/react-virtual");
292
+
293
+ // src/v3/Common/ComboboxItem.tsx
294
+ var React6 = __toESM(require("react"));
295
+ var import_seeds_react_radio2 = __toESM(require("@sproutsocial/seeds-react-radio"));
296
+ var import_seeds_react_checkbox3 = __toESM(require("@sproutsocial/seeds-react-checkbox"));
297
+
298
+ // src/v3/Common/ComboboxStyles.tsx
299
+ var import_combobox = require("@base-ui/react/combobox");
300
+ var import_styled_components6 = __toESM(require("styled-components"));
301
+ var import_seeds_react_mixins2 = require("@sproutsocial/seeds-react-mixins");
302
+ var import_seeds_react_checkbox2 = __toESM(require("@sproutsocial/seeds-react-checkbox"));
303
+ var import_jsx_runtime5 = require("react/jsx-runtime");
304
+ var ComboboxLabel = import_styled_components6.default.label`
305
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
306
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
307
+ color: ${({ theme }) => theme.colors.text.body};
308
+ `;
309
+ var ComboboxInputGroup = (0, import_styled_components6.default)(import_combobox.Combobox.InputGroup)`
310
+ display: flex;
311
+ align-items: center;
312
+ min-width: 160px;
313
+ border-radius: ${({ theme }) => theme.radii[500]};
314
+ border: 1px solid ${({ theme }) => theme.colors.form.border.base};
315
+ background: ${({ theme }) => theme.colors.form.background.base};
316
+ color: ${({ theme }) => theme.colors.text.body};
317
+ transition: border-color ${({ theme }) => theme.duration.fast}
318
+ ${({ theme }) => theme.easing.ease_in},
319
+ box-shadow ${({ theme }) => theme.duration.fast}
320
+ ${({ theme }) => theme.easing.ease_in};
321
+
322
+ &:focus-within {
323
+ ${import_seeds_react_mixins2.focusRing}
324
+ }
325
+ `;
326
+ var ComboboxInput = (0, import_styled_components6.default)(import_combobox.Combobox.Input)`
327
+ flex: 1;
328
+ min-width: 30px;
329
+ padding: ${({ theme }) => theme.space[300]};
330
+ border: none;
331
+ background: transparent;
332
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
333
+ line-height: ${({ theme }) => theme.typography[200].lineHeight};
334
+ color: ${({ theme }) => theme.colors.text.body};
335
+ outline: none;
336
+
337
+ &::placeholder {
338
+ color: ${({ theme }) => theme.colors.text.subtext};
339
+ }
340
+ `;
341
+ var ComboboxTokenInput = (0, import_styled_components6.default)(import_combobox.Combobox.Input)`
342
+ flex: 1;
343
+ min-width: 60px;
344
+ padding: ${({ theme }) => theme.space[200]} ${({ theme }) => theme.space[300]}
345
+ ${({ theme }) => theme.space[200]} ${({ theme }) => theme.space[350]};
346
+ border: none;
347
+ background: transparent;
348
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
349
+ line-height: ${({ theme }) => theme.typography[200].lineHeight};
350
+ color: ${({ theme }) => theme.colors.text.body};
351
+ outline: none;
352
+
353
+ &::placeholder {
354
+ color: ${({ theme }) => theme.colors.text.subtext};
355
+ }
356
+ `;
357
+ var ComboboxActionButtons = import_styled_components6.default.div`
358
+ display: flex;
359
+ align-items: center;
360
+ flex-shrink: 0;
361
+ margin-left: auto;
362
+ gap: ${({ theme }) => theme.space[100]};
363
+ `;
364
+ var ComboboxClear = (0, import_styled_components6.default)(import_combobox.Combobox.Clear)`
365
+ display: flex;
366
+ align-items: center;
367
+ justify-content: center;
368
+ width: 20px;
369
+ height: 20px;
370
+ border: none;
371
+ background: transparent;
372
+ color: ${({ theme }) => theme.colors.icon.base};
373
+ cursor: pointer;
374
+ border-radius: ${({ theme }) => theme.radii[300]};
375
+ padding: 0;
376
+
377
+ &:hover {
378
+ color: ${({ theme }) => theme.colors.text.body};
379
+ }
380
+
381
+ &[data-empty] {
382
+ display: none;
383
+ }
384
+ `;
385
+ var ComboboxTrigger = (0, import_styled_components6.default)(import_combobox.Combobox.Trigger)`
386
+ display: flex;
387
+ align-items: center;
388
+ justify-content: center;
389
+ width: 20px;
390
+ height: 20px;
391
+ border: none;
392
+ background: transparent;
393
+ color: ${({ theme }) => theme.colors.icon.base};
394
+ cursor: default;
395
+ padding: 0;
396
+
397
+ &:hover {
398
+ color: ${({ theme }) => theme.colors.text.body};
399
+ }
400
+ `;
401
+ var ComboboxPositioner = (0, import_styled_components6.default)(import_combobox.Combobox.Positioner)`
402
+ width: var(--anchor-width);
403
+ z-index: 7;
404
+ `;
405
+ var ComboboxPopup = (0, import_styled_components6.default)(import_combobox.Combobox.Popup)`
406
+ font-family: ${({ theme }) => theme.fontFamily};
407
+ background: ${({ theme }) => theme.colors.container.background.base};
408
+ border: 1px solid ${({ theme }) => theme.colors.container.border.base};
409
+ border-radius: ${({ theme }) => theme.radii[500]};
410
+ box-shadow: ${({ theme }) => theme.shadows.medium};
411
+ outline: none;
412
+ width: 100%;
413
+ max-height: min(var(--base-ui-available-height, 400px), 400px);
414
+ overflow-y: auto;
415
+ padding: 0;
416
+
417
+ &[data-open] {
418
+ animation: combobox-popup-in 120ms ease-out;
419
+ }
420
+
421
+ &[data-closed] {
422
+ animation: combobox-popup-out 100ms ease-in;
423
+ }
424
+
425
+ @keyframes combobox-popup-in {
426
+ from {
427
+ opacity: 0;
428
+ transform: scale(0.95);
429
+ }
430
+ to {
431
+ opacity: 1;
432
+ transform: scale(1);
433
+ }
434
+ }
435
+
436
+ @keyframes combobox-popup-out {
437
+ from {
438
+ opacity: 1;
439
+ transform: scale(1);
440
+ }
441
+ to {
442
+ opacity: 0;
443
+ transform: scale(0.95);
444
+ }
445
+ }
446
+ `;
447
+ var ComboboxList = (0, import_styled_components6.default)(import_combobox.Combobox.List)`
448
+ padding: ${({ theme }) => theme.space[200]};
449
+
450
+ &:empty {
451
+ padding: 0;
452
+ }
453
+ `;
454
+ var ComboboxStatus = (0, import_styled_components6.default)(import_combobox.Combobox.Status)`
455
+ padding: ${({ theme }) => `${theme.space[300]} ${theme.space[350]}`};
456
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
457
+ color: ${({ theme }) => theme.colors.text.subtext};
458
+
459
+ &:empty {
460
+ padding: 0;
461
+ }
462
+ `;
463
+ var ComboboxEmpty = (0, import_styled_components6.default)(import_combobox.Combobox.Empty)`
464
+ padding: ${({ theme }) => `${theme.space[300]} ${theme.space[350]}`};
465
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
466
+ color: ${({ theme }) => theme.colors.text.subtext};
467
+
468
+ &:empty {
469
+ padding: 0;
470
+ }
471
+ `;
472
+ var ComboboxItem = (0, import_styled_components6.default)(import_combobox.Combobox.Item)`
473
+ display: flex;
474
+ align-items: center;
475
+ gap: ${({ theme }) => theme.space[300]};
476
+ padding: ${({ theme }) => `${theme.space[300]} ${theme.space[300]}`};
477
+ border-radius: ${({ theme }) => theme.radii[500]};
478
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
479
+ color: ${({ theme }) => theme.colors.text.body};
480
+ cursor: default;
481
+ outline: none;
482
+
483
+ &[data-highlighted] {
484
+ background: ${({ theme }) => theme.colors.listItem.background.hover};
485
+ }
486
+
487
+ &[data-selected] {
488
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
489
+ }
490
+
491
+ &[data-disabled] {
492
+ opacity: 0.5;
493
+ cursor: not-allowed;
494
+ }
495
+ `;
496
+ var ComboboxItemIndicator = (0, import_styled_components6.default)(import_combobox.Combobox.ItemIndicator)`
497
+ display: flex;
498
+ align-items: center;
499
+ width: ${({ theme }) => theme.space[400]};
500
+ color: ${({ theme }) => theme.colors.text.body};
501
+ visibility: hidden;
502
+
503
+ &[data-selected] {
504
+ visibility: visible;
505
+ }
506
+ `;
507
+ var ComboboxGroup = (0, import_styled_components6.default)(import_combobox.Combobox.Group)`
508
+ display: block;
509
+ `;
510
+ var ComboboxGroupLabel = (0, import_styled_components6.default)(import_combobox.Combobox.GroupLabel)`
511
+ padding: ${({ theme }) => `${theme.space[300]} ${theme.space[300]} ${theme.space[200]}`};
512
+ font-size: ${({ theme }) => theme.typography[100].fontSize};
513
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
514
+ text-transform: uppercase;
515
+ letter-spacing: 0.05em;
516
+ color: ${({ theme }) => theme.colors.text.subtext};
517
+ `;
518
+ var ComboboxSeparator = import_styled_components6.default.div`
519
+ height: 1px;
520
+ margin: ${({ theme }) => `${theme.space[200]} ${theme.space[300]}`};
521
+ background: ${({ theme }) => theme.colors.container.border.base};
522
+ `;
523
+ var ComboboxGroupHeaderItem = (0, import_styled_components6.default)(import_combobox.Combobox.Item)`
524
+ display: flex;
525
+ align-items: center;
526
+ gap: ${({ theme }) => theme.space[300]};
527
+ padding: ${({ theme }) => `${theme.space[300]} ${theme.space[300]}`};
528
+ border-radius: ${({ theme }) => theme.radii[500]};
529
+ font-size: ${({ theme }) => theme.typography[100].fontSize};
530
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
531
+ text-transform: uppercase;
532
+ letter-spacing: 0.05em;
533
+ color: ${({ theme }) => theme.colors.text.subtext};
534
+ cursor: default;
535
+ outline: none;
536
+
537
+ &[data-highlighted] {
538
+ background: ${({ theme }) => theme.colors.listItem.background.hover};
539
+ color: ${({ theme }) => theme.colors.text.body};
540
+ }
541
+ `;
542
+ var ComboboxSelectAllItem = (0, import_styled_components6.default)(import_combobox.Combobox.Item)`
543
+ display: flex;
544
+ align-items: center;
545
+ gap: ${({ theme }) => theme.space[300]};
546
+ padding: ${({ theme }) => `${theme.space[300]} ${theme.space[300]}`};
547
+ border-radius: ${({ theme }) => theme.radii[500]};
548
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
549
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
550
+ color: ${({ theme }) => theme.colors.text.body};
551
+ cursor: default;
552
+ outline: none;
553
+ border-bottom: 1px solid ${({ theme }) => theme.colors.container.border.base};
554
+ margin-bottom: ${({ theme }) => theme.space[200]};
555
+
556
+ &[data-highlighted] {
557
+ background: ${({ theme }) => theme.colors.listItem.background.hover};
558
+ }
559
+ `;
560
+ function ComboboxGroupHeaderCheckbox({
561
+ $state,
562
+ id
563
+ }) {
564
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
565
+ import_seeds_react_checkbox2.default,
566
+ {
567
+ id,
568
+ checked: $state === "all",
569
+ indeterminate: $state === "partial",
570
+ onChange: () => {
571
+ },
572
+ tabIndex: -1
573
+ }
574
+ );
575
+ }
576
+ var ComboboxToken = (0, import_styled_components6.default)(import_combobox.Combobox.Chips)`
577
+ display: flex;
578
+ width: 100%;
579
+ flex-wrap: wrap;
580
+ `;
581
+ var ComboboxTokenInputGroup = (0, import_styled_components6.default)(import_combobox.Combobox.InputGroup)`
582
+ display: flex;
583
+ align-items: center;
584
+ flex-wrap: wrap;
585
+ border-radius: ${({ theme }) => theme.radii[500]};
586
+ border: 1px solid ${({ theme }) => theme.colors.form.border.base};
587
+ background: ${({ theme }) => theme.colors.form.background.base};
588
+ color: ${({ theme }) => theme.colors.text.body};
589
+ padding: ${({ theme }) => `${theme.space[200]} ${theme.space[300]} ${theme.space[200]} ${theme.space[200]}`};
590
+ gap: ${({ theme }) => theme.space[200]};
591
+ transition: border-color ${({ theme }) => theme.duration.fast}
592
+ ${({ theme }) => theme.easing.ease_in},
593
+ box-shadow ${({ theme }) => theme.duration.fast}
594
+ ${({ theme }) => theme.easing.ease_in};
595
+
596
+ &:focus-within {
597
+ ${import_seeds_react_mixins2.focusRing}
598
+ }
599
+ `;
600
+ var Token = import_styled_components6.default.span`
601
+ display: inline-flex;
602
+ align-items: center;
603
+ gap: ${({ theme }) => theme.space[200]};
604
+ padding: ${({ theme }) => `${theme.space[200]} ${theme.space[300]}`};
605
+ border-radius: ${({ theme }) => theme.radii[500]};
606
+ border: 1px solid ${({ theme }) => theme.colors.container.border.base};
607
+ background: ${({ theme }) => theme.colors.container.background.base};
608
+ color: ${({ theme }) => theme.colors.text.body};
609
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
610
+ font-weight: ${({ theme }) => theme.fontWeights.normal};
611
+ line-height: 1;
612
+ white-space: nowrap;
613
+ transition: all ${({ theme }) => theme.duration.fast}
614
+ ${({ theme }) => theme.easing.ease_inout};
615
+
616
+ &:hover {
617
+ box-shadow: ${({ theme }) => theme.shadows.low};
618
+ border-color: ${({ theme }) => theme.colors.container.border.base};
619
+ }
620
+ `;
621
+ var TokenRemove = import_styled_components6.default.button`
622
+ display: flex;
623
+ align-items: center;
624
+ justify-content: center;
625
+ border: none;
626
+ background: transparent;
627
+ color: inherit;
628
+ cursor: pointer;
629
+ padding: 0;
630
+ line-height: 1;
631
+ `;
632
+ var SearchableSelectTrigger = (0, import_styled_components6.default)(import_combobox.Combobox.Trigger)`
633
+ display: flex;
634
+ align-items: center;
635
+ justify-content: space-between;
636
+ gap: ${({ theme }) => theme.space[300]};
637
+ padding: ${({ theme }) => theme.space[200]} ${({ theme }) => theme.space[350]};
638
+ min-width: 160px;
639
+ border-radius: ${({ theme }) => theme.radii[500]};
640
+ border: 1px solid ${({ theme }) => theme.colors.form.border.base};
641
+ background: ${({ theme }) => theme.colors.form.background.base};
642
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
643
+ color: ${({ theme }) => theme.colors.text.body};
644
+ cursor: default;
645
+ outline: none;
646
+ user-select: none;
647
+ transition: border-color ${({ theme }) => theme.duration.fast}
648
+ ${({ theme }) => theme.easing.ease_in},
649
+ box-shadow ${({ theme }) => theme.duration.fast}
650
+ ${({ theme }) => theme.easing.ease_in};
651
+
652
+ &:focus-visible {
653
+ ${import_seeds_react_mixins2.focusRing}
654
+ }
655
+
656
+ &[data-popup-open] [data-chevron] {
657
+ transform: rotate(-180deg);
658
+ }
659
+ `;
660
+ var SearchableSelectTriggerIcon = (0, import_styled_components6.default)(import_combobox.Combobox.Icon)`
661
+ display: flex;
662
+ align-items: center;
663
+ color: ${({ theme }) => theme.colors.icon.base};
664
+ flex-shrink: 0;
665
+ `;
666
+ var SearchableSelectPlaceholder = import_styled_components6.default.span`
667
+ color: ${({ theme }) => theme.colors.text.subtext};
668
+ padding: ${({ theme }) => theme.space[200]} 0;
669
+ `;
670
+ var SearchableSelectPopup = ComboboxPopup;
671
+ var SearchableSelectSearchContainer = import_styled_components6.default.div`
672
+ padding: ${({ theme }) => theme.space[300]};
673
+ border-bottom: 1px solid ${({ theme }) => theme.colors.container.border.base};
674
+ flex-shrink: 0;
675
+ `;
676
+ var SearchableSelectInput = (0, import_styled_components6.default)(import_combobox.Combobox.Input)`
677
+ width: 100%;
678
+ height: ${({ theme }) => theme.space[500]};
679
+ padding: 0 ${({ theme }) => theme.space[300]};
680
+ border-radius: ${({ theme }) => theme.radii[500]};
681
+ border: 1px solid ${({ theme }) => theme.colors.container.border.base};
682
+ background: ${({ theme }) => theme.colors.container.background.base};
683
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
684
+ color: ${({ theme }) => theme.colors.text.body};
685
+ outline: none;
686
+ box-sizing: border-box;
687
+
688
+ &:focus {
689
+ ${import_seeds_react_mixins2.focusRing}
690
+ }
691
+
692
+ &::placeholder {
693
+ color: ${({ theme }) => theme.colors.text.subtext};
694
+ }
695
+ `;
696
+ var SearchableSelectList = (0, import_styled_components6.default)(import_combobox.Combobox.List)`
697
+ overflow-y: auto;
698
+ padding: ${({ theme }) => theme.space[200]};
699
+ flex: 1;
700
+ min-height: 0;
701
+ &:empty {
702
+ padding: 0;
703
+ }
704
+ `;
705
+ var SearchableSelectTokenTrigger = (0, import_styled_components6.default)(import_combobox.Combobox.Trigger)`
706
+ display: flex;
707
+ align-items: center;
708
+ flex-wrap: wrap;
709
+ min-width: 160px;
710
+ border-radius: ${({ theme }) => theme.radii[500]};
711
+ border: 1px solid ${({ theme }) => theme.colors.form.border.base};
712
+ background: ${({ theme }) => theme.colors.form.background.base};
713
+ color: ${({ theme }) => theme.colors.text.body};
714
+ padding: ${({ theme }) => theme.space[200]} ${({ theme }) => theme.space[300]};
715
+ gap: ${({ theme }) => theme.space[200]};
716
+ cursor: default;
717
+ text-align: left;
718
+ outline: none;
719
+ user-select: none;
720
+ transition: border-color ${({ theme }) => theme.duration.fast}
721
+ ${({ theme }) => theme.easing.ease_in},
722
+ box-shadow ${({ theme }) => theme.duration.fast}
723
+ ${({ theme }) => theme.easing.ease_in};
724
+
725
+ &:focus-visible {
726
+ ${import_seeds_react_mixins2.focusRing}
727
+ }
728
+
729
+ &[data-popup-open] {
730
+ border-color: ${({ theme }) => theme.colors.blue[600]};
731
+ }
732
+
733
+ &[data-popup-open] [data-chevron] {
734
+ transform: rotate(-180deg);
735
+ }
736
+ `;
737
+
738
+ // src/v3/Common/ComboboxItem.tsx
739
+ var import_jsx_runtime6 = require("react/jsx-runtime");
740
+ function ComboboxItemInner({
741
+ value,
742
+ itemId,
743
+ label,
744
+ inputType = "icon",
745
+ renderItem,
746
+ index,
747
+ "data-index": dataIndex,
748
+ style
749
+ }, ref) {
750
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
751
+ ComboboxItem,
752
+ {
753
+ value,
754
+ index,
755
+ "data-index": dataIndex,
756
+ style,
757
+ ref,
758
+ children: [
759
+ inputType === "radio" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
760
+ ComboboxItemIndicator,
761
+ {
762
+ keepMounted: true,
763
+ render: (_props, state) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
764
+ import_seeds_react_radio2.default,
765
+ {
766
+ checked: state.selected,
767
+ onChange: () => {
768
+ },
769
+ tabIndex: -1,
770
+ id: `radio-${itemId}`,
771
+ name: "combobox-item"
772
+ }
773
+ )
774
+ }
775
+ ) : inputType === "checkbox" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
776
+ ComboboxItemIndicator,
777
+ {
778
+ keepMounted: true,
779
+ render: (_props, state) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
780
+ import_seeds_react_checkbox3.default,
781
+ {
782
+ checked: state.selected,
783
+ onChange: () => {
784
+ },
785
+ tabIndex: -1,
786
+ id: `checkbox-${itemId}`,
787
+ name: "combobox-item"
788
+ }
789
+ )
790
+ }
791
+ ) : inputType === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ComboboxItemIndicator, { keepMounted: true, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CheckIcon, {}) }) : null,
792
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: renderItem ? renderItem() : label })
793
+ ]
794
+ }
795
+ );
796
+ }
797
+ var ComboboxItem2 = React6.forwardRef(ComboboxItemInner);
798
+
799
+ // src/v3/Common/VirtualizedComboboxList.tsx
800
+ var React7 = __toESM(require("react"));
801
+ var import_combobox2 = require("@base-ui/react/combobox");
802
+ var import_react_virtual = require("@tanstack/react-virtual");
803
+ var import_jsx_runtime7 = require("react/jsx-runtime");
804
+
805
+ // src/v3/SingleCombobox.tsx
806
+ var import_jsx_runtime8 = require("react/jsx-runtime");
807
+
808
+ // src/v3/MultiCombobox.tsx
809
+ var React9 = __toESM(require("react"));
810
+ var import_combobox4 = require("@base-ui/react/combobox");
811
+ var import_react_virtual3 = require("@tanstack/react-virtual");
812
+ var import_seeds_react_icon3 = __toESM(require("@sproutsocial/seeds-react-icon"));
813
+ var import_jsx_runtime9 = require("react/jsx-runtime");
814
+
815
+ // src/v3/SingleSearchableSelect.tsx
816
+ var React10 = __toESM(require("react"));
817
+ var import_combobox5 = require("@base-ui/react/combobox");
818
+ var import_react_virtual4 = require("@tanstack/react-virtual");
819
+ var import_jsx_runtime10 = require("react/jsx-runtime");
820
+
821
+ // src/v3/MultiSearchableSelect.tsx
822
+ var React11 = __toESM(require("react"));
823
+ var import_combobox6 = require("@base-ui/react/combobox");
824
+ var import_react_virtual5 = require("@tanstack/react-virtual");
825
+ var import_styled_components7 = __toESM(require("styled-components"));
826
+ var import_jsx_runtime11 = require("react/jsx-runtime");
827
+ var SelectionText2 = import_styled_components7.default.span`
828
+ flex: 1;
829
+ overflow: hidden;
830
+ text-overflow: ellipsis;
831
+ white-space: nowrap;
832
+ `;
833
+ // Annotate the CommonJS export names for ESM import in node:
834
+ 0 && (module.exports = {
835
+ ComboboxActionButtons,
836
+ ComboboxClear,
837
+ ComboboxEmpty,
838
+ ComboboxGroup,
839
+ ComboboxGroupHeaderCheckbox,
840
+ ComboboxGroupHeaderItem,
841
+ ComboboxGroupLabel,
842
+ ComboboxInput,
843
+ ComboboxInputGroup,
844
+ ComboboxItem,
845
+ ComboboxItemIndicator,
846
+ ComboboxLabel,
847
+ ComboboxList,
848
+ ComboboxPopup,
849
+ ComboboxPositioner,
850
+ ComboboxSelectAllItem,
851
+ ComboboxSeparator,
852
+ ComboboxStatus,
853
+ ComboboxToken,
854
+ ComboboxTokenInput,
855
+ ComboboxTokenInputGroup,
856
+ ComboboxTrigger,
857
+ SearchableSelectInput,
858
+ SearchableSelectList,
859
+ SearchableSelectPlaceholder,
860
+ SearchableSelectPopup,
861
+ SearchableSelectSearchContainer,
862
+ SearchableSelectTokenTrigger,
863
+ SearchableSelectTrigger,
864
+ SearchableSelectTriggerIcon,
865
+ Token,
866
+ TokenRemove
867
+ });
868
+ //# sourceMappingURL=index.js.map