@sproutsocial/seeds-react-menu 1.7.1 → 1.7.5

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 (47) hide show
  1. package/.turbo/turbo-build.log +19 -11
  2. package/BUNDLE_OPTIMIZATION.md +307 -0
  3. package/CHANGELOG.md +51 -0
  4. package/dist/esm/chunk-ROQATIB7.js +357 -0
  5. package/dist/esm/chunk-ROQATIB7.js.map +1 -0
  6. package/dist/esm/index.js +261 -2271
  7. package/dist/esm/index.js.map +1 -1
  8. package/dist/esm/v2/index.js +2000 -0
  9. package/dist/esm/v2/index.js.map +1 -0
  10. package/dist/index.d.mts +1 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +297 -1989
  13. package/dist/index.js.map +1 -1
  14. package/dist/v2/index.d.mts +96 -0
  15. package/dist/v2/index.d.ts +96 -0
  16. package/dist/v2/index.js +2191 -0
  17. package/dist/v2/index.js.map +1 -0
  18. package/package.json +30 -14
  19. package/src/MenuItem/styles.tsx +7 -0
  20. package/src/v2/Autocomplete/Autocomplete.stories.tsx +609 -0
  21. package/src/v2/Autocomplete/MultiAutocomplete.tsx +453 -0
  22. package/src/v2/Autocomplete/SingleAutocomplete.tsx +362 -0
  23. package/src/v2/Autocomplete/index.ts +2 -0
  24. package/src/v2/Common-V2/ComboboxContent.tsx +448 -0
  25. package/src/v2/Common-V2/MenuGroup.tsx +60 -0
  26. package/src/v2/Common-V2/MenuGroupTypes.ts +30 -0
  27. package/src/v2/Common-V2/MenuHeading.tsx +83 -0
  28. package/src/v2/Common-V2/MenuItem.tsx +138 -0
  29. package/src/v2/Common-V2/Popout.tsx +102 -0
  30. package/src/v2/Common-V2/PopoutTypes.tsx +92 -0
  31. package/src/v2/Common-V2/SelectToggleButton.tsx +99 -0
  32. package/src/v2/Common-V2/index.ts +11 -0
  33. package/src/v2/Common-V2/props.ts +74 -0
  34. package/src/v2/Common-V2/styles.tsx +41 -0
  35. package/src/v2/Common-V2/types.ts +16 -0
  36. package/src/v2/Common-V2/useHighlightedIndex.ts +62 -0
  37. package/src/v2/Common-V2/utils.ts +238 -0
  38. package/src/v2/SearchableSelect/AutocompleteContent.tsx +325 -0
  39. package/src/v2/SearchableSelect/SearchableMultiSelect.tsx +521 -0
  40. package/src/v2/SearchableSelect/SearchableSelect.tsx +389 -0
  41. package/src/v2/SearchableSelect/index.ts +12 -0
  42. package/src/v2/Select/MultiSelect.tsx +404 -0
  43. package/src/v2/Select/Select.stories.tsx +593 -0
  44. package/src/v2/Select/SingleSelect.tsx +272 -0
  45. package/src/v2/Select/index.ts +2 -0
  46. package/src/v2/index.ts +2 -0
  47. package/tsup.config.ts +14 -5
package/dist/index.js CHANGED
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
8
  var __export = (target, all) => {
12
9
  for (var name in all)
13
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -30,79 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
27
  ));
31
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
29
 
33
- // ../../node_modules/object-assign/index.js
34
- var require_object_assign = __commonJS({
35
- "../../node_modules/object-assign/index.js"(exports2, module2) {
36
- "use strict";
37
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
38
- var hasOwnProperty = Object.prototype.hasOwnProperty;
39
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
40
- function toObject(val) {
41
- if (val === null || val === void 0) {
42
- throw new TypeError("Object.assign cannot be called with null or undefined");
43
- }
44
- return Object(val);
45
- }
46
- function shouldUseNative() {
47
- try {
48
- if (!Object.assign) {
49
- return false;
50
- }
51
- var test1 = new String("abc");
52
- test1[5] = "de";
53
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
54
- return false;
55
- }
56
- var test2 = {};
57
- for (var i = 0; i < 10; i++) {
58
- test2["_" + String.fromCharCode(i)] = i;
59
- }
60
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
61
- return test2[n];
62
- });
63
- if (order2.join("") !== "0123456789") {
64
- return false;
65
- }
66
- var test3 = {};
67
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
68
- test3[letter] = letter;
69
- });
70
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
71
- return false;
72
- }
73
- return true;
74
- } catch (err) {
75
- return false;
76
- }
77
- }
78
- module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
79
- var from;
80
- var to = toObject(target);
81
- var symbols;
82
- for (var s = 1; s < arguments.length; s++) {
83
- from = Object(arguments[s]);
84
- for (var key in from) {
85
- if (hasOwnProperty.call(from, key)) {
86
- to[key] = from[key];
87
- }
88
- }
89
- if (getOwnPropertySymbols) {
90
- symbols = getOwnPropertySymbols(from);
91
- for (var i = 0; i < symbols.length; i++) {
92
- if (propIsEnumerable.call(from, symbols[i])) {
93
- to[symbols[i]] = from[symbols[i]];
94
- }
95
- }
96
- }
97
- }
98
- return to;
99
- };
100
- }
101
- });
102
-
103
30
  // src/index.ts
104
- var index_exports = {};
105
- __export(index_exports, {
31
+ var src_exports = {};
32
+ __export(src_exports, {
106
33
  ActionMenu: () => ActionMenu,
107
34
  Autocomplete: () => Autocomplete,
108
35
  AutocompleteInput: () => AutocompleteInput,
@@ -163,7 +90,7 @@ __export(index_exports, {
163
90
  useSelectStateReducer: () => useSelectStateReducer,
164
91
  useSelectStateReducerForMulti: () => useSelectStateReducerForMulti
165
92
  });
166
- module.exports = __toCommonJS(index_exports);
93
+ module.exports = __toCommonJS(src_exports);
167
94
 
168
95
  // src/MenuContext.tsx
169
96
  var import_react = __toESM(require("react"));
@@ -306,1562 +233,56 @@ var useMenuContentContext = () => {
306
233
  };
307
234
 
308
235
  // src/MenuItem/styles.tsx
309
- var import_styled_components2 = __toESM(require("styled-components"));
310
-
311
- // ../../node_modules/@babel/runtime/helpers/esm/extends.js
312
- function _extends() {
313
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
314
- for (var e = 1; e < arguments.length; e++) {
315
- var t = arguments[e];
316
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
317
- }
318
- return n;
319
- }, _extends.apply(null, arguments);
320
- }
321
-
322
- // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
323
- function _assertThisInitialized(e) {
324
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
325
- return e;
326
- }
327
-
328
- // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
329
- function _setPrototypeOf(t, e) {
330
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
331
- return t2.__proto__ = e2, t2;
332
- }, _setPrototypeOf(t, e);
333
- }
334
-
335
- // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
336
- function _inheritsLoose(t, o) {
337
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
338
- }
339
-
340
- // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
341
- function _getPrototypeOf(t) {
342
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
343
- return t2.__proto__ || Object.getPrototypeOf(t2);
344
- }, _getPrototypeOf(t);
345
- }
346
-
347
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
348
- function _isNativeFunction(t) {
349
- try {
350
- return -1 !== Function.toString.call(t).indexOf("[native code]");
351
- } catch (n) {
352
- return "function" == typeof t;
353
- }
354
- }
355
-
356
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
357
- function _isNativeReflectConstruct() {
358
- try {
359
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
360
- }));
361
- } catch (t2) {
362
- }
363
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
364
- return !!t;
365
- })();
366
- }
367
-
368
- // ../../node_modules/@babel/runtime/helpers/esm/construct.js
369
- function _construct(t, e, r) {
370
- if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
371
- var o = [null];
372
- o.push.apply(o, e);
373
- var p = new (t.bind.apply(t, o))();
374
- return r && _setPrototypeOf(p, r.prototype), p;
375
- }
376
-
377
- // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
378
- function _wrapNativeSuper(t) {
379
- var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
380
- return _wrapNativeSuper = function _wrapNativeSuper2(t2) {
381
- if (null === t2 || !_isNativeFunction(t2)) return t2;
382
- if ("function" != typeof t2) throw new TypeError("Super expression must either be null or a function");
383
- if (void 0 !== r) {
384
- if (r.has(t2)) return r.get(t2);
385
- r.set(t2, Wrapper);
386
- }
387
- function Wrapper() {
388
- return _construct(t2, arguments, _getPrototypeOf(this).constructor);
389
- }
390
- return Wrapper.prototype = Object.create(t2.prototype, {
391
- constructor: {
392
- value: Wrapper,
393
- enumerable: false,
394
- writable: true,
395
- configurable: true
396
- }
397
- }), _setPrototypeOf(Wrapper, t2);
398
- }, _wrapNativeSuper(t);
399
- }
400
-
401
- // ../../node_modules/polished/dist/polished.esm.js
402
- var ERRORS = {
403
- "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
404
- "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
405
- "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
406
- "4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
407
- "5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
408
- "6": "Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",
409
- "7": "Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",
410
- "8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
411
- "9": "Please provide a number of steps to the modularScale helper.\n\n",
412
- "10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
413
- "11": 'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',
414
- "12": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',
415
- "13": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',
416
- "14": 'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
417
- "15": 'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
418
- "16": "You must provide a template to this method.\n\n",
419
- "17": "You passed an unsupported selector state to this method.\n\n",
420
- "18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
421
- "19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
422
- "20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
423
- "21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
424
- "22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
425
- "23": "fontFace expects a name of a font-family.\n\n",
426
- "24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
427
- "25": "fontFace expects localFonts to be an array.\n\n",
428
- "26": "fontFace expects fileFormats to be an array.\n\n",
429
- "27": "radialGradient requries at least 2 color-stops to properly render.\n\n",
430
- "28": "Please supply a filename to retinaImage() as the first argument.\n\n",
431
- "29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
432
- "30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
433
- "31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
434
- "32": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",
435
- "33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
436
- "34": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
437
- "35": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
438
- "36": "Property must be a string value.\n\n",
439
- "37": "Syntax Error at %s.\n\n",
440
- "38": "Formula contains a function that needs parentheses at %s.\n\n",
441
- "39": "Formula is missing closing parenthesis at %s.\n\n",
442
- "40": "Formula has too many closing parentheses at %s.\n\n",
443
- "41": "All values in a formula must have the same unit or be unitless.\n\n",
444
- "42": "Please provide a number of steps to the modularScale helper.\n\n",
445
- "43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
446
- "44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
447
- "45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
448
- "46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
449
- "47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
450
- "48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
451
- "49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
452
- "50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
453
- "51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
454
- "52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
455
- "53": "fontFace expects localFonts to be an array.\n\n",
456
- "54": "fontFace expects fileFormats to be an array.\n\n",
457
- "55": "fontFace expects a name of a font-family.\n\n",
458
- "56": "linearGradient requries at least 2 color-stops to properly render.\n\n",
459
- "57": "radialGradient requries at least 2 color-stops to properly render.\n\n",
460
- "58": "Please supply a filename to retinaImage() as the first argument.\n\n",
461
- "59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
462
- "60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
463
- "61": "Property must be a string value.\n\n",
464
- "62": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
465
- "63": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
466
- "64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
467
- "65": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",
468
- "66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
469
- "67": "You must provide a template to this method.\n\n",
470
- "68": "You passed an unsupported selector state to this method.\n\n",
471
- "69": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',
472
- "70": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',
473
- "71": 'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',
474
- "72": 'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',
475
- "73": "Please provide a valid CSS variable.\n\n",
476
- "74": "CSS variable not found.\n\n",
477
- "75": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
478
- };
479
- function format() {
480
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
481
- args[_key] = arguments[_key];
482
- }
483
- var a = args[0];
484
- var b = [];
485
- var c;
486
- for (c = 1; c < args.length; c += 1) {
487
- b.push(args[c]);
488
- }
489
- b.forEach(function(d) {
490
- a = a.replace(/%[a-z]/, d);
491
- });
492
- return a;
493
- }
494
- var PolishedError = /* @__PURE__ */ function(_Error) {
495
- _inheritsLoose(PolishedError2, _Error);
496
- function PolishedError2(code) {
497
- var _this;
498
- if (process.env.NODE_ENV === "production") {
499
- _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
500
- } else {
501
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
502
- args[_key2 - 1] = arguments[_key2];
503
- }
504
- _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
505
- }
506
- return _assertThisInitialized(_this);
507
- }
508
- return PolishedError2;
509
- }(/* @__PURE__ */ _wrapNativeSuper(Error));
510
- function colorToInt(color2) {
511
- return Math.round(color2 * 255);
512
- }
513
- function convertToInt(red, green, blue) {
514
- return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
515
- }
516
- function hslToRgb(hue, saturation, lightness, convert) {
517
- if (convert === void 0) {
518
- convert = convertToInt;
519
- }
520
- if (saturation === 0) {
521
- return convert(lightness, lightness, lightness);
522
- }
523
- var huePrime = (hue % 360 + 360) % 360 / 60;
524
- var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
525
- var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
526
- var red = 0;
527
- var green = 0;
528
- var blue = 0;
529
- if (huePrime >= 0 && huePrime < 1) {
530
- red = chroma;
531
- green = secondComponent;
532
- } else if (huePrime >= 1 && huePrime < 2) {
533
- red = secondComponent;
534
- green = chroma;
535
- } else if (huePrime >= 2 && huePrime < 3) {
536
- green = chroma;
537
- blue = secondComponent;
538
- } else if (huePrime >= 3 && huePrime < 4) {
539
- green = secondComponent;
540
- blue = chroma;
541
- } else if (huePrime >= 4 && huePrime < 5) {
542
- red = secondComponent;
543
- blue = chroma;
544
- } else if (huePrime >= 5 && huePrime < 6) {
545
- red = chroma;
546
- blue = secondComponent;
547
- }
548
- var lightnessModification = lightness - chroma / 2;
549
- var finalRed = red + lightnessModification;
550
- var finalGreen = green + lightnessModification;
551
- var finalBlue = blue + lightnessModification;
552
- return convert(finalRed, finalGreen, finalBlue);
553
- }
554
- var namedColorMap = {
555
- aliceblue: "f0f8ff",
556
- antiquewhite: "faebd7",
557
- aqua: "00ffff",
558
- aquamarine: "7fffd4",
559
- azure: "f0ffff",
560
- beige: "f5f5dc",
561
- bisque: "ffe4c4",
562
- black: "000",
563
- blanchedalmond: "ffebcd",
564
- blue: "0000ff",
565
- blueviolet: "8a2be2",
566
- brown: "a52a2a",
567
- burlywood: "deb887",
568
- cadetblue: "5f9ea0",
569
- chartreuse: "7fff00",
570
- chocolate: "d2691e",
571
- coral: "ff7f50",
572
- cornflowerblue: "6495ed",
573
- cornsilk: "fff8dc",
574
- crimson: "dc143c",
575
- cyan: "00ffff",
576
- darkblue: "00008b",
577
- darkcyan: "008b8b",
578
- darkgoldenrod: "b8860b",
579
- darkgray: "a9a9a9",
580
- darkgreen: "006400",
581
- darkgrey: "a9a9a9",
582
- darkkhaki: "bdb76b",
583
- darkmagenta: "8b008b",
584
- darkolivegreen: "556b2f",
585
- darkorange: "ff8c00",
586
- darkorchid: "9932cc",
587
- darkred: "8b0000",
588
- darksalmon: "e9967a",
589
- darkseagreen: "8fbc8f",
590
- darkslateblue: "483d8b",
591
- darkslategray: "2f4f4f",
592
- darkslategrey: "2f4f4f",
593
- darkturquoise: "00ced1",
594
- darkviolet: "9400d3",
595
- deeppink: "ff1493",
596
- deepskyblue: "00bfff",
597
- dimgray: "696969",
598
- dimgrey: "696969",
599
- dodgerblue: "1e90ff",
600
- firebrick: "b22222",
601
- floralwhite: "fffaf0",
602
- forestgreen: "228b22",
603
- fuchsia: "ff00ff",
604
- gainsboro: "dcdcdc",
605
- ghostwhite: "f8f8ff",
606
- gold: "ffd700",
607
- goldenrod: "daa520",
608
- gray: "808080",
609
- green: "008000",
610
- greenyellow: "adff2f",
611
- grey: "808080",
612
- honeydew: "f0fff0",
613
- hotpink: "ff69b4",
614
- indianred: "cd5c5c",
615
- indigo: "4b0082",
616
- ivory: "fffff0",
617
- khaki: "f0e68c",
618
- lavender: "e6e6fa",
619
- lavenderblush: "fff0f5",
620
- lawngreen: "7cfc00",
621
- lemonchiffon: "fffacd",
622
- lightblue: "add8e6",
623
- lightcoral: "f08080",
624
- lightcyan: "e0ffff",
625
- lightgoldenrodyellow: "fafad2",
626
- lightgray: "d3d3d3",
627
- lightgreen: "90ee90",
628
- lightgrey: "d3d3d3",
629
- lightpink: "ffb6c1",
630
- lightsalmon: "ffa07a",
631
- lightseagreen: "20b2aa",
632
- lightskyblue: "87cefa",
633
- lightslategray: "789",
634
- lightslategrey: "789",
635
- lightsteelblue: "b0c4de",
636
- lightyellow: "ffffe0",
637
- lime: "0f0",
638
- limegreen: "32cd32",
639
- linen: "faf0e6",
640
- magenta: "f0f",
641
- maroon: "800000",
642
- mediumaquamarine: "66cdaa",
643
- mediumblue: "0000cd",
644
- mediumorchid: "ba55d3",
645
- mediumpurple: "9370db",
646
- mediumseagreen: "3cb371",
647
- mediumslateblue: "7b68ee",
648
- mediumspringgreen: "00fa9a",
649
- mediumturquoise: "48d1cc",
650
- mediumvioletred: "c71585",
651
- midnightblue: "191970",
652
- mintcream: "f5fffa",
653
- mistyrose: "ffe4e1",
654
- moccasin: "ffe4b5",
655
- navajowhite: "ffdead",
656
- navy: "000080",
657
- oldlace: "fdf5e6",
658
- olive: "808000",
659
- olivedrab: "6b8e23",
660
- orange: "ffa500",
661
- orangered: "ff4500",
662
- orchid: "da70d6",
663
- palegoldenrod: "eee8aa",
664
- palegreen: "98fb98",
665
- paleturquoise: "afeeee",
666
- palevioletred: "db7093",
667
- papayawhip: "ffefd5",
668
- peachpuff: "ffdab9",
669
- peru: "cd853f",
670
- pink: "ffc0cb",
671
- plum: "dda0dd",
672
- powderblue: "b0e0e6",
673
- purple: "800080",
674
- rebeccapurple: "639",
675
- red: "f00",
676
- rosybrown: "bc8f8f",
677
- royalblue: "4169e1",
678
- saddlebrown: "8b4513",
679
- salmon: "fa8072",
680
- sandybrown: "f4a460",
681
- seagreen: "2e8b57",
682
- seashell: "fff5ee",
683
- sienna: "a0522d",
684
- silver: "c0c0c0",
685
- skyblue: "87ceeb",
686
- slateblue: "6a5acd",
687
- slategray: "708090",
688
- slategrey: "708090",
689
- snow: "fffafa",
690
- springgreen: "00ff7f",
691
- steelblue: "4682b4",
692
- tan: "d2b48c",
693
- teal: "008080",
694
- thistle: "d8bfd8",
695
- tomato: "ff6347",
696
- turquoise: "40e0d0",
697
- violet: "ee82ee",
698
- wheat: "f5deb3",
699
- white: "fff",
700
- whitesmoke: "f5f5f5",
701
- yellow: "ff0",
702
- yellowgreen: "9acd32"
703
- };
704
- function nameToHex(color2) {
705
- if (typeof color2 !== "string") return color2;
706
- var normalizedColorName = color2.toLowerCase();
707
- return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
708
- }
709
- var hexRegex = /^#[a-fA-F0-9]{6}$/;
710
- var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
711
- var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
712
- var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
713
- var rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
714
- var rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
715
- var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
716
- var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
717
- function parseToRgb(color2) {
718
- if (typeof color2 !== "string") {
719
- throw new PolishedError(3);
720
- }
721
- var normalizedColor = nameToHex(color2);
722
- if (normalizedColor.match(hexRegex)) {
723
- return {
724
- red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
725
- green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
726
- blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
727
- };
728
- }
729
- if (normalizedColor.match(hexRgbaRegex)) {
730
- var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
731
- return {
732
- red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
733
- green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
734
- blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
735
- alpha
736
- };
737
- }
738
- if (normalizedColor.match(reducedHexRegex)) {
739
- return {
740
- red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
741
- green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
742
- blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
743
- };
744
- }
745
- if (normalizedColor.match(reducedRgbaHexRegex)) {
746
- var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
747
- return {
748
- red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
749
- green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
750
- blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
751
- alpha: _alpha
752
- };
753
- }
754
- var rgbMatched = rgbRegex.exec(normalizedColor);
755
- if (rgbMatched) {
756
- return {
757
- red: parseInt("" + rgbMatched[1], 10),
758
- green: parseInt("" + rgbMatched[2], 10),
759
- blue: parseInt("" + rgbMatched[3], 10)
760
- };
761
- }
762
- var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
763
- if (rgbaMatched) {
764
- return {
765
- red: parseInt("" + rgbaMatched[1], 10),
766
- green: parseInt("" + rgbaMatched[2], 10),
767
- blue: parseInt("" + rgbaMatched[3], 10),
768
- alpha: parseFloat("" + rgbaMatched[4])
769
- };
770
- }
771
- var hslMatched = hslRegex.exec(normalizedColor);
772
- if (hslMatched) {
773
- var hue = parseInt("" + hslMatched[1], 10);
774
- var saturation = parseInt("" + hslMatched[2], 10) / 100;
775
- var lightness = parseInt("" + hslMatched[3], 10) / 100;
776
- var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
777
- var hslRgbMatched = rgbRegex.exec(rgbColorString);
778
- if (!hslRgbMatched) {
779
- throw new PolishedError(4, normalizedColor, rgbColorString);
780
- }
781
- return {
782
- red: parseInt("" + hslRgbMatched[1], 10),
783
- green: parseInt("" + hslRgbMatched[2], 10),
784
- blue: parseInt("" + hslRgbMatched[3], 10)
785
- };
786
- }
787
- var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
788
- if (hslaMatched) {
789
- var _hue = parseInt("" + hslaMatched[1], 10);
790
- var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
791
- var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
792
- var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
793
- var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
794
- if (!_hslRgbMatched) {
795
- throw new PolishedError(4, normalizedColor, _rgbColorString);
796
- }
797
- return {
798
- red: parseInt("" + _hslRgbMatched[1], 10),
799
- green: parseInt("" + _hslRgbMatched[2], 10),
800
- blue: parseInt("" + _hslRgbMatched[3], 10),
801
- alpha: parseFloat("" + hslaMatched[4])
802
- };
803
- }
804
- throw new PolishedError(5);
805
- }
806
- var reduceHexValue = function reduceHexValue2(value) {
807
- if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
808
- return "#" + value[1] + value[3] + value[5];
809
- }
810
- return value;
811
- };
812
- function numberToHex(value) {
813
- var hex = value.toString(16);
814
- return hex.length === 1 ? "0" + hex : hex;
815
- }
816
- function rgb(value, green, blue) {
817
- if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
818
- return reduceHexValue("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
819
- } else if (typeof value === "object" && green === void 0 && blue === void 0) {
820
- return reduceHexValue("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
821
- }
822
- throw new PolishedError(6);
823
- }
824
- function rgba(firstValue, secondValue, thirdValue, fourthValue) {
825
- if (typeof firstValue === "string" && typeof secondValue === "number") {
826
- var rgbValue = parseToRgb(firstValue);
827
- return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
828
- } else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
829
- return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
830
- } else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
831
- return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
832
- }
833
- throw new PolishedError(7);
834
- }
835
- function curried(f, length, acc) {
836
- return function fn() {
837
- var combined = acc.concat(Array.prototype.slice.call(arguments));
838
- return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
839
- };
840
- }
841
- function curry(f) {
842
- return curried(f, f.length, []);
843
- }
844
- function guard(lowerBoundary, upperBoundary, value) {
845
- return Math.max(lowerBoundary, Math.min(upperBoundary, value));
846
- }
847
- function transparentize(amount, color2) {
848
- if (color2 === "transparent") return color2;
849
- var parsedColor = parseToRgb(color2);
850
- var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
851
- var colorWithAlpha = _extends({}, parsedColor, {
852
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
853
- });
854
- return rgba(colorWithAlpha);
855
- }
856
- var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
857
-
858
- // ../seeds-react-mixins/dist/esm/index.js
859
- var import_styled_components = require("styled-components");
860
- var import_seeds_react_theme = require("@sproutsocial/seeds-react-theme");
861
- var visuallyHidden = import_styled_components.css`
862
- position: absolute;
863
- width: 1px;
864
- height: 1px;
865
- padding: 0;
866
- margin: -1px;
867
- overflow: hidden;
868
- clip: rect(0 0 0 0);
869
- border: 0;
870
- `;
871
- var focusRing = import_styled_components.css`
872
- box-shadow: 0 0 0 1px ${import_seeds_react_theme.theme.colors.button.primary.background.base},
873
- 0 0px 0px 4px
874
- ${curriedTransparentize(0.7, import_seeds_react_theme.theme.colors.button.primary.background.base)};
875
- outline: none;
876
-
877
- &::-moz-focus-inner {
878
- border: 0;
879
- }
880
- `;
881
- var pill = import_styled_components.css`
882
- min-width: ${import_seeds_react_theme.theme.space[600]};
883
- min-height: ${import_seeds_react_theme.theme.space[600]};
884
- padding: ${import_seeds_react_theme.theme.space[300]};
885
- border-radius: ${import_seeds_react_theme.theme.radii.pill};
886
- `;
887
- var disabled = import_styled_components.css`
888
- opacity: 0.4;
889
- pointer-events: none;
890
- `;
891
-
892
- // ../../node_modules/@styled-system/core/dist/index.esm.js
893
- var import_object_assign = __toESM(require_object_assign());
894
- var merge = function merge2(a, b) {
895
- var result = (0, import_object_assign.default)({}, a, b);
896
- for (var key in a) {
897
- var _assign;
898
- if (!a[key] || typeof b[key] !== "object") continue;
899
- (0, import_object_assign.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign.default)(a[key], b[key]), _assign));
900
- }
901
- return result;
902
- };
903
- var sort = function sort2(obj) {
904
- var next = {};
905
- Object.keys(obj).sort(function(a, b) {
906
- return a.localeCompare(b, void 0, {
907
- numeric: true,
908
- sensitivity: "base"
909
- });
910
- }).forEach(function(key) {
911
- next[key] = obj[key];
912
- });
913
- return next;
914
- };
915
- var defaults = {
916
- breakpoints: [40, 52, 64].map(function(n) {
917
- return n + "em";
918
- })
919
- };
920
- var createMediaQuery = function createMediaQuery2(n) {
921
- return "@media screen and (min-width: " + n + ")";
922
- };
923
- var getValue = function getValue2(n, scale) {
924
- return get(scale, n, n);
925
- };
926
- var get = function get2(obj, key, def, p, undef) {
927
- key = key && key.split ? key.split(".") : [key];
928
- for (p = 0; p < key.length; p++) {
929
- obj = obj ? obj[key[p]] : undef;
930
- }
931
- return obj === undef ? def : obj;
932
- };
933
- var createParser = function createParser2(config9) {
934
- var cache = {};
935
- var parse = function parse2(props) {
936
- var styles = {};
937
- var shouldSort = false;
938
- var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;
939
- for (var key in props) {
940
- if (!config9[key]) continue;
941
- var sx = config9[key];
942
- var raw = props[key];
943
- var scale = get(props.theme, sx.scale, sx.defaults);
944
- if (typeof raw === "object") {
945
- cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, "breakpoints", defaults.breakpoints);
946
- if (Array.isArray(raw)) {
947
- cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));
948
- styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));
949
- continue;
950
- }
951
- if (raw !== null) {
952
- styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props));
953
- shouldSort = true;
954
- }
955
- continue;
956
- }
957
- (0, import_object_assign.default)(styles, sx(raw, scale, props));
958
- }
959
- if (shouldSort) {
960
- styles = sort(styles);
961
- }
962
- return styles;
963
- };
964
- parse.config = config9;
965
- parse.propNames = Object.keys(config9);
966
- parse.cache = cache;
967
- var keys = Object.keys(config9).filter(function(k) {
968
- return k !== "config";
969
- });
970
- if (keys.length > 1) {
971
- keys.forEach(function(key) {
972
- var _createParser;
973
- parse[key] = createParser2((_createParser = {}, _createParser[key] = config9[key], _createParser));
974
- });
975
- }
976
- return parse;
977
- };
978
- var parseResponsiveStyle = function parseResponsiveStyle2(mediaQueries, sx, scale, raw, _props) {
979
- var styles = {};
980
- raw.slice(0, mediaQueries.length).forEach(function(value, i) {
981
- var media = mediaQueries[i];
982
- var style = sx(value, scale, _props);
983
- if (!media) {
984
- (0, import_object_assign.default)(styles, style);
985
- } else {
986
- var _assign2;
987
- (0, import_object_assign.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign.default)({}, styles[media], style), _assign2));
988
- }
989
- });
990
- return styles;
991
- };
992
- var parseResponsiveObject = function parseResponsiveObject2(breakpoints, sx, scale, raw, _props) {
993
- var styles = {};
994
- for (var key in raw) {
995
- var breakpoint = breakpoints[key];
996
- var value = raw[key];
997
- var style = sx(value, scale, _props);
998
- if (!breakpoint) {
999
- (0, import_object_assign.default)(styles, style);
1000
- } else {
1001
- var _assign3;
1002
- var media = createMediaQuery(breakpoint);
1003
- (0, import_object_assign.default)(styles, (_assign3 = {}, _assign3[media] = (0, import_object_assign.default)({}, styles[media], style), _assign3));
1004
- }
1005
- }
1006
- return styles;
1007
- };
1008
- var createStyleFunction = function createStyleFunction2(_ref) {
1009
- var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform = _ref$transform === void 0 ? getValue : _ref$transform, defaultScale = _ref.defaultScale;
1010
- properties = properties || [property];
1011
- var sx = function sx2(value, scale2, _props) {
1012
- var result = {};
1013
- var n = transform(value, scale2, _props);
1014
- if (n === null) return;
1015
- properties.forEach(function(prop) {
1016
- result[prop] = n;
1017
- });
1018
- return result;
1019
- };
1020
- sx.scale = scale;
1021
- sx.defaults = defaultScale;
1022
- return sx;
1023
- };
1024
- var system = function system2(args) {
1025
- if (args === void 0) {
1026
- args = {};
1027
- }
1028
- var config9 = {};
1029
- Object.keys(args).forEach(function(key) {
1030
- var conf = args[key];
1031
- if (conf === true) {
1032
- config9[key] = createStyleFunction({
1033
- property: key,
1034
- scale: key
1035
- });
1036
- return;
1037
- }
1038
- if (typeof conf === "function") {
1039
- config9[key] = conf;
1040
- return;
1041
- }
1042
- config9[key] = createStyleFunction(conf);
1043
- });
1044
- var parser = createParser(config9);
1045
- return parser;
1046
- };
1047
- var compose = function compose2() {
1048
- var config9 = {};
1049
- for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {
1050
- parsers[_key] = arguments[_key];
1051
- }
1052
- parsers.forEach(function(parser2) {
1053
- if (!parser2 || !parser2.config) return;
1054
- (0, import_object_assign.default)(config9, parser2.config);
1055
- });
1056
- var parser = createParser(config9);
1057
- return parser;
1058
- };
1059
-
1060
- // ../../node_modules/@styled-system/layout/dist/index.esm.js
1061
- var isNumber = function isNumber2(n) {
1062
- return typeof n === "number" && !isNaN(n);
1063
- };
1064
- var getWidth = function getWidth2(n, scale) {
1065
- return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%");
1066
- };
1067
- var config = {
1068
- width: {
1069
- property: "width",
1070
- scale: "sizes",
1071
- transform: getWidth
1072
- },
1073
- height: {
1074
- property: "height",
1075
- scale: "sizes"
1076
- },
1077
- minWidth: {
1078
- property: "minWidth",
1079
- scale: "sizes"
1080
- },
1081
- minHeight: {
1082
- property: "minHeight",
1083
- scale: "sizes"
1084
- },
1085
- maxWidth: {
1086
- property: "maxWidth",
1087
- scale: "sizes"
1088
- },
1089
- maxHeight: {
1090
- property: "maxHeight",
1091
- scale: "sizes"
1092
- },
1093
- size: {
1094
- properties: ["width", "height"],
1095
- scale: "sizes"
1096
- },
1097
- overflow: true,
1098
- overflowX: true,
1099
- overflowY: true,
1100
- display: true,
1101
- verticalAlign: true
1102
- };
1103
- var layout = system(config);
1104
- var index_esm_default = layout;
1105
-
1106
- // ../../node_modules/@styled-system/color/dist/index.esm.js
1107
- var config2 = {
1108
- color: {
1109
- property: "color",
1110
- scale: "colors"
1111
- },
1112
- backgroundColor: {
1113
- property: "backgroundColor",
1114
- scale: "colors"
1115
- },
1116
- opacity: true
1117
- };
1118
- config2.bg = config2.backgroundColor;
1119
- var color = system(config2);
1120
- var index_esm_default2 = color;
1121
-
1122
- // ../../node_modules/@styled-system/typography/dist/index.esm.js
1123
- var defaults2 = {
1124
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
1125
- };
1126
- var config3 = {
1127
- fontFamily: {
1128
- property: "fontFamily",
1129
- scale: "fonts"
1130
- },
1131
- fontSize: {
1132
- property: "fontSize",
1133
- scale: "fontSizes",
1134
- defaultScale: defaults2.fontSizes
1135
- },
1136
- fontWeight: {
1137
- property: "fontWeight",
1138
- scale: "fontWeights"
1139
- },
1140
- lineHeight: {
1141
- property: "lineHeight",
1142
- scale: "lineHeights"
1143
- },
1144
- letterSpacing: {
1145
- property: "letterSpacing",
1146
- scale: "letterSpacings"
1147
- },
1148
- textAlign: true,
1149
- fontStyle: true
1150
- };
1151
- var typography = system(config3);
1152
- var index_esm_default3 = typography;
1153
-
1154
- // ../../node_modules/@styled-system/flexbox/dist/index.esm.js
1155
- var config4 = {
1156
- alignItems: true,
1157
- alignContent: true,
1158
- justifyItems: true,
1159
- justifyContent: true,
1160
- flexWrap: true,
1161
- flexDirection: true,
1162
- // item
1163
- flex: true,
1164
- flexGrow: true,
1165
- flexShrink: true,
1166
- flexBasis: true,
1167
- justifySelf: true,
1168
- alignSelf: true,
1169
- order: true
1170
- };
1171
- var flexbox = system(config4);
1172
- var index_esm_default4 = flexbox;
1173
-
1174
- // ../../node_modules/@styled-system/grid/dist/index.esm.js
1175
- var defaults3 = {
1176
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
1177
- };
1178
- var config5 = {
1179
- gridGap: {
1180
- property: "gridGap",
1181
- scale: "space",
1182
- defaultScale: defaults3.space
1183
- },
1184
- gridColumnGap: {
1185
- property: "gridColumnGap",
1186
- scale: "space",
1187
- defaultScale: defaults3.space
1188
- },
1189
- gridRowGap: {
1190
- property: "gridRowGap",
1191
- scale: "space",
1192
- defaultScale: defaults3.space
1193
- },
1194
- gridColumn: true,
1195
- gridRow: true,
1196
- gridAutoFlow: true,
1197
- gridAutoColumns: true,
1198
- gridAutoRows: true,
1199
- gridTemplateColumns: true,
1200
- gridTemplateRows: true,
1201
- gridTemplateAreas: true,
1202
- gridArea: true
1203
- };
1204
- var grid = system(config5);
1205
- var index_esm_default5 = grid;
1206
-
1207
- // ../../node_modules/@styled-system/border/dist/index.esm.js
1208
- var config6 = {
1209
- border: {
1210
- property: "border",
1211
- scale: "borders"
1212
- },
1213
- borderWidth: {
1214
- property: "borderWidth",
1215
- scale: "borderWidths"
1216
- },
1217
- borderStyle: {
1218
- property: "borderStyle",
1219
- scale: "borderStyles"
1220
- },
1221
- borderColor: {
1222
- property: "borderColor",
1223
- scale: "colors"
1224
- },
1225
- borderRadius: {
1226
- property: "borderRadius",
1227
- scale: "radii"
1228
- },
1229
- borderTop: {
1230
- property: "borderTop",
1231
- scale: "borders"
1232
- },
1233
- borderTopLeftRadius: {
1234
- property: "borderTopLeftRadius",
1235
- scale: "radii"
1236
- },
1237
- borderTopRightRadius: {
1238
- property: "borderTopRightRadius",
1239
- scale: "radii"
1240
- },
1241
- borderRight: {
1242
- property: "borderRight",
1243
- scale: "borders"
1244
- },
1245
- borderBottom: {
1246
- property: "borderBottom",
1247
- scale: "borders"
1248
- },
1249
- borderBottomLeftRadius: {
1250
- property: "borderBottomLeftRadius",
1251
- scale: "radii"
1252
- },
1253
- borderBottomRightRadius: {
1254
- property: "borderBottomRightRadius",
1255
- scale: "radii"
1256
- },
1257
- borderLeft: {
1258
- property: "borderLeft",
1259
- scale: "borders"
1260
- },
1261
- borderX: {
1262
- properties: ["borderLeft", "borderRight"],
1263
- scale: "borders"
1264
- },
1265
- borderY: {
1266
- properties: ["borderTop", "borderBottom"],
1267
- scale: "borders"
1268
- }
1269
- };
1270
- config6.borderTopWidth = {
1271
- property: "borderTopWidth",
1272
- scale: "borderWidths"
1273
- };
1274
- config6.borderTopColor = {
1275
- property: "borderTopColor",
1276
- scale: "colors"
1277
- };
1278
- config6.borderTopStyle = {
1279
- property: "borderTopStyle",
1280
- scale: "borderStyles"
1281
- };
1282
- config6.borderTopLeftRadius = {
1283
- property: "borderTopLeftRadius",
1284
- scale: "radii"
1285
- };
1286
- config6.borderTopRightRadius = {
1287
- property: "borderTopRightRadius",
1288
- scale: "radii"
1289
- };
1290
- config6.borderBottomWidth = {
1291
- property: "borderBottomWidth",
1292
- scale: "borderWidths"
1293
- };
1294
- config6.borderBottomColor = {
1295
- property: "borderBottomColor",
1296
- scale: "colors"
1297
- };
1298
- config6.borderBottomStyle = {
1299
- property: "borderBottomStyle",
1300
- scale: "borderStyles"
1301
- };
1302
- config6.borderBottomLeftRadius = {
1303
- property: "borderBottomLeftRadius",
1304
- scale: "radii"
1305
- };
1306
- config6.borderBottomRightRadius = {
1307
- property: "borderBottomRightRadius",
1308
- scale: "radii"
1309
- };
1310
- config6.borderLeftWidth = {
1311
- property: "borderLeftWidth",
1312
- scale: "borderWidths"
1313
- };
1314
- config6.borderLeftColor = {
1315
- property: "borderLeftColor",
1316
- scale: "colors"
1317
- };
1318
- config6.borderLeftStyle = {
1319
- property: "borderLeftStyle",
1320
- scale: "borderStyles"
1321
- };
1322
- config6.borderRightWidth = {
1323
- property: "borderRightWidth",
1324
- scale: "borderWidths"
1325
- };
1326
- config6.borderRightColor = {
1327
- property: "borderRightColor",
1328
- scale: "colors"
1329
- };
1330
- config6.borderRightStyle = {
1331
- property: "borderRightStyle",
1332
- scale: "borderStyles"
1333
- };
1334
- var border = system(config6);
1335
- var index_esm_default6 = border;
1336
-
1337
- // ../../node_modules/@styled-system/background/dist/index.esm.js
1338
- var config7 = {
1339
- background: true,
1340
- backgroundImage: true,
1341
- backgroundSize: true,
1342
- backgroundPosition: true,
1343
- backgroundRepeat: true
1344
- };
1345
- config7.bgImage = config7.backgroundImage;
1346
- config7.bgSize = config7.backgroundSize;
1347
- config7.bgPosition = config7.backgroundPosition;
1348
- config7.bgRepeat = config7.backgroundRepeat;
1349
- var background = system(config7);
1350
- var index_esm_default7 = background;
1351
-
1352
- // ../../node_modules/@styled-system/position/dist/index.esm.js
1353
- var defaults4 = {
1354
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
1355
- };
1356
- var config8 = {
1357
- position: true,
1358
- zIndex: {
1359
- property: "zIndex",
1360
- scale: "zIndices"
1361
- },
1362
- top: {
1363
- property: "top",
1364
- scale: "space",
1365
- defaultScale: defaults4.space
1366
- },
1367
- right: {
1368
- property: "right",
1369
- scale: "space",
1370
- defaultScale: defaults4.space
1371
- },
1372
- bottom: {
1373
- property: "bottom",
1374
- scale: "space",
1375
- defaultScale: defaults4.space
1376
- },
1377
- left: {
1378
- property: "left",
1379
- scale: "space",
1380
- defaultScale: defaults4.space
1381
- }
1382
- };
1383
- var position = system(config8);
1384
- var index_esm_default8 = position;
1385
-
1386
- // ../../node_modules/@styled-system/space/dist/index.esm.js
1387
- var defaults5 = {
1388
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
1389
- };
1390
- var isNumber3 = function isNumber4(n) {
1391
- return typeof n === "number" && !isNaN(n);
1392
- };
1393
- var getMargin = function getMargin2(n, scale) {
1394
- if (!isNumber3(n)) {
1395
- return get(scale, n, n);
1396
- }
1397
- var isNegative = n < 0;
1398
- var absolute = Math.abs(n);
1399
- var value = get(scale, absolute, absolute);
1400
- if (!isNumber3(value)) {
1401
- return isNegative ? "-" + value : value;
1402
- }
1403
- return value * (isNegative ? -1 : 1);
1404
- };
1405
- var configs = {};
1406
- configs.margin = {
1407
- margin: {
1408
- property: "margin",
1409
- scale: "space",
1410
- transform: getMargin,
1411
- defaultScale: defaults5.space
1412
- },
1413
- marginTop: {
1414
- property: "marginTop",
1415
- scale: "space",
1416
- transform: getMargin,
1417
- defaultScale: defaults5.space
1418
- },
1419
- marginRight: {
1420
- property: "marginRight",
1421
- scale: "space",
1422
- transform: getMargin,
1423
- defaultScale: defaults5.space
1424
- },
1425
- marginBottom: {
1426
- property: "marginBottom",
1427
- scale: "space",
1428
- transform: getMargin,
1429
- defaultScale: defaults5.space
1430
- },
1431
- marginLeft: {
1432
- property: "marginLeft",
1433
- scale: "space",
1434
- transform: getMargin,
1435
- defaultScale: defaults5.space
1436
- },
1437
- marginX: {
1438
- properties: ["marginLeft", "marginRight"],
1439
- scale: "space",
1440
- transform: getMargin,
1441
- defaultScale: defaults5.space
1442
- },
1443
- marginY: {
1444
- properties: ["marginTop", "marginBottom"],
1445
- scale: "space",
1446
- transform: getMargin,
1447
- defaultScale: defaults5.space
1448
- }
1449
- };
1450
- configs.margin.m = configs.margin.margin;
1451
- configs.margin.mt = configs.margin.marginTop;
1452
- configs.margin.mr = configs.margin.marginRight;
1453
- configs.margin.mb = configs.margin.marginBottom;
1454
- configs.margin.ml = configs.margin.marginLeft;
1455
- configs.margin.mx = configs.margin.marginX;
1456
- configs.margin.my = configs.margin.marginY;
1457
- configs.padding = {
1458
- padding: {
1459
- property: "padding",
1460
- scale: "space",
1461
- defaultScale: defaults5.space
1462
- },
1463
- paddingTop: {
1464
- property: "paddingTop",
1465
- scale: "space",
1466
- defaultScale: defaults5.space
1467
- },
1468
- paddingRight: {
1469
- property: "paddingRight",
1470
- scale: "space",
1471
- defaultScale: defaults5.space
1472
- },
1473
- paddingBottom: {
1474
- property: "paddingBottom",
1475
- scale: "space",
1476
- defaultScale: defaults5.space
1477
- },
1478
- paddingLeft: {
1479
- property: "paddingLeft",
1480
- scale: "space",
1481
- defaultScale: defaults5.space
1482
- },
1483
- paddingX: {
1484
- properties: ["paddingLeft", "paddingRight"],
1485
- scale: "space",
1486
- defaultScale: defaults5.space
1487
- },
1488
- paddingY: {
1489
- properties: ["paddingTop", "paddingBottom"],
1490
- scale: "space",
1491
- defaultScale: defaults5.space
1492
- }
1493
- };
1494
- configs.padding.p = configs.padding.padding;
1495
- configs.padding.pt = configs.padding.paddingTop;
1496
- configs.padding.pr = configs.padding.paddingRight;
1497
- configs.padding.pb = configs.padding.paddingBottom;
1498
- configs.padding.pl = configs.padding.paddingLeft;
1499
- configs.padding.px = configs.padding.paddingX;
1500
- configs.padding.py = configs.padding.paddingY;
1501
- var margin = system(configs.margin);
1502
- var padding = system(configs.padding);
1503
- var space = compose(margin, padding);
1504
-
1505
- // ../../node_modules/@styled-system/shadow/dist/index.esm.js
1506
- var shadow = system({
1507
- boxShadow: {
1508
- property: "boxShadow",
1509
- scale: "shadows"
1510
- },
1511
- textShadow: {
1512
- property: "textShadow",
1513
- scale: "shadows"
1514
- }
1515
- });
1516
-
1517
- // ../../node_modules/@styled-system/css/dist/index.esm.js
1518
- function _extends2() {
1519
- _extends2 = Object.assign || function(target) {
1520
- for (var i = 1; i < arguments.length; i++) {
1521
- var source = arguments[i];
1522
- for (var key in source) {
1523
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1524
- target[key] = source[key];
1525
- }
1526
- }
1527
- }
1528
- return target;
1529
- };
1530
- return _extends2.apply(this, arguments);
1531
- }
1532
- var get3 = function get4(obj, key, def, p, undef) {
1533
- key = key && key.split ? key.split(".") : [key];
1534
- for (p = 0; p < key.length; p++) {
1535
- obj = obj ? obj[key[p]] : undef;
1536
- }
1537
- return obj === undef ? def : obj;
1538
- };
1539
- var defaultBreakpoints = [40, 52, 64].map(function(n) {
1540
- return n + "em";
1541
- });
1542
- var defaultTheme = {
1543
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
1544
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
1545
- };
1546
- var aliases = {
1547
- bg: "backgroundColor",
1548
- m: "margin",
1549
- mt: "marginTop",
1550
- mr: "marginRight",
1551
- mb: "marginBottom",
1552
- ml: "marginLeft",
1553
- mx: "marginX",
1554
- my: "marginY",
1555
- p: "padding",
1556
- pt: "paddingTop",
1557
- pr: "paddingRight",
1558
- pb: "paddingBottom",
1559
- pl: "paddingLeft",
1560
- px: "paddingX",
1561
- py: "paddingY"
1562
- };
1563
- var multiples = {
1564
- marginX: ["marginLeft", "marginRight"],
1565
- marginY: ["marginTop", "marginBottom"],
1566
- paddingX: ["paddingLeft", "paddingRight"],
1567
- paddingY: ["paddingTop", "paddingBottom"],
1568
- size: ["width", "height"]
1569
- };
1570
- var scales = {
1571
- color: "colors",
1572
- backgroundColor: "colors",
1573
- borderColor: "colors",
1574
- margin: "space",
1575
- marginTop: "space",
1576
- marginRight: "space",
1577
- marginBottom: "space",
1578
- marginLeft: "space",
1579
- marginX: "space",
1580
- marginY: "space",
1581
- padding: "space",
1582
- paddingTop: "space",
1583
- paddingRight: "space",
1584
- paddingBottom: "space",
1585
- paddingLeft: "space",
1586
- paddingX: "space",
1587
- paddingY: "space",
1588
- top: "space",
1589
- right: "space",
1590
- bottom: "space",
1591
- left: "space",
1592
- gridGap: "space",
1593
- gridColumnGap: "space",
1594
- gridRowGap: "space",
1595
- gap: "space",
1596
- columnGap: "space",
1597
- rowGap: "space",
1598
- fontFamily: "fonts",
1599
- fontSize: "fontSizes",
1600
- fontWeight: "fontWeights",
1601
- lineHeight: "lineHeights",
1602
- letterSpacing: "letterSpacings",
1603
- border: "borders",
1604
- borderTop: "borders",
1605
- borderRight: "borders",
1606
- borderBottom: "borders",
1607
- borderLeft: "borders",
1608
- borderWidth: "borderWidths",
1609
- borderStyle: "borderStyles",
1610
- borderRadius: "radii",
1611
- borderTopRightRadius: "radii",
1612
- borderTopLeftRadius: "radii",
1613
- borderBottomRightRadius: "radii",
1614
- borderBottomLeftRadius: "radii",
1615
- borderTopWidth: "borderWidths",
1616
- borderTopColor: "colors",
1617
- borderTopStyle: "borderStyles",
1618
- borderBottomWidth: "borderWidths",
1619
- borderBottomColor: "colors",
1620
- borderBottomStyle: "borderStyles",
1621
- borderLeftWidth: "borderWidths",
1622
- borderLeftColor: "colors",
1623
- borderLeftStyle: "borderStyles",
1624
- borderRightWidth: "borderWidths",
1625
- borderRightColor: "colors",
1626
- borderRightStyle: "borderStyles",
1627
- outlineColor: "colors",
1628
- boxShadow: "shadows",
1629
- textShadow: "shadows",
1630
- zIndex: "zIndices",
1631
- width: "sizes",
1632
- minWidth: "sizes",
1633
- maxWidth: "sizes",
1634
- height: "sizes",
1635
- minHeight: "sizes",
1636
- maxHeight: "sizes",
1637
- flexBasis: "sizes",
1638
- size: "sizes",
1639
- // svg
1640
- fill: "colors",
1641
- stroke: "colors"
1642
- };
1643
- var positiveOrNegative = function positiveOrNegative2(scale, value) {
1644
- if (typeof value !== "number" || value >= 0) {
1645
- return get3(scale, value, value);
1646
- }
1647
- var absolute = Math.abs(value);
1648
- var n = get3(scale, absolute, absolute);
1649
- if (typeof n === "string") return "-" + n;
1650
- return n * -1;
1651
- };
1652
- var transforms = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
1653
- var _extends22;
1654
- return _extends2({}, acc, (_extends22 = {}, _extends22[curr] = positiveOrNegative, _extends22));
1655
- }, {});
1656
- var responsive = function responsive2(styles) {
1657
- return function(theme2) {
1658
- var next = {};
1659
- var breakpoints = get3(theme2, "breakpoints", defaultBreakpoints);
1660
- var mediaQueries = [null].concat(breakpoints.map(function(n) {
1661
- return "@media screen and (min-width: " + n + ")";
1662
- }));
1663
- for (var key in styles) {
1664
- var value = typeof styles[key] === "function" ? styles[key](theme2) : styles[key];
1665
- if (value == null) continue;
1666
- if (!Array.isArray(value)) {
1667
- next[key] = value;
1668
- continue;
1669
- }
1670
- for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
1671
- var media = mediaQueries[i];
1672
- if (!media) {
1673
- next[key] = value[i];
1674
- continue;
1675
- }
1676
- next[media] = next[media] || {};
1677
- if (value[i] == null) continue;
1678
- next[media][key] = value[i];
1679
- }
1680
- }
1681
- return next;
1682
- };
1683
- };
1684
- var css2 = function css3(args) {
1685
- return function(props) {
1686
- if (props === void 0) {
1687
- props = {};
1688
- }
1689
- var theme2 = _extends2({}, defaultTheme, {}, props.theme || props);
1690
- var result = {};
1691
- var obj = typeof args === "function" ? args(theme2) : args;
1692
- var styles = responsive(obj)(theme2);
1693
- for (var key in styles) {
1694
- var x = styles[key];
1695
- var val = typeof x === "function" ? x(theme2) : x;
1696
- if (key === "variant") {
1697
- var variant3 = css3(get3(theme2, val))(theme2);
1698
- result = _extends2({}, result, {}, variant3);
1699
- continue;
1700
- }
1701
- if (val && typeof val === "object") {
1702
- result[key] = css3(val)(theme2);
1703
- continue;
1704
- }
1705
- var prop = get3(aliases, key, key);
1706
- var scaleName = get3(scales, prop);
1707
- var scale = get3(theme2, scaleName, get3(theme2, prop, {}));
1708
- var transform = get3(transforms, prop, get3);
1709
- var value = transform(scale, val, val);
1710
- if (multiples[prop]) {
1711
- var dirs = multiples[prop];
1712
- for (var i = 0; i < dirs.length; i++) {
1713
- result[dirs[i]] = value;
1714
- }
1715
- } else {
1716
- result[prop] = value;
1717
- }
1718
- }
1719
- return result;
1720
- };
1721
- };
1722
- var index_esm_default9 = css2;
1723
-
1724
- // ../../node_modules/@styled-system/variant/dist/index.esm.js
1725
- var variant = function variant2(_ref) {
1726
- var _config;
1727
- var scale = _ref.scale, _ref$prop = _ref.prop, prop = _ref$prop === void 0 ? "variant" : _ref$prop, _ref$variants = _ref.variants, variants = _ref$variants === void 0 ? {} : _ref$variants, key = _ref.key;
1728
- var sx;
1729
- if (Object.keys(variants).length) {
1730
- sx = function sx2(value, scale2, props) {
1731
- return index_esm_default9(get(scale2, value, null))(props.theme);
1732
- };
1733
- } else {
1734
- sx = function sx2(value, scale2) {
1735
- return get(scale2, value, null);
1736
- };
1737
- }
1738
- sx.scale = scale || key;
1739
- sx.defaults = variants;
1740
- var config9 = (_config = {}, _config[prop] = sx, _config);
1741
- var parser = createParser(config9);
1742
- return parser;
1743
- };
1744
- var buttonStyle = variant({
1745
- key: "buttons"
1746
- });
1747
- var textStyle = variant({
1748
- key: "textStyles",
1749
- prop: "textStyle"
1750
- });
1751
- var colorStyle = variant({
1752
- key: "colorStyles",
1753
- prop: "colors"
1754
- });
1755
-
1756
- // ../../node_modules/styled-system/dist/index.esm.js
1757
- var width = index_esm_default.width;
1758
- var height = index_esm_default.height;
1759
- var minWidth = index_esm_default.minWidth;
1760
- var minHeight = index_esm_default.minHeight;
1761
- var maxWidth = index_esm_default.maxWidth;
1762
- var maxHeight = index_esm_default.maxHeight;
1763
- var size = index_esm_default.size;
1764
- var verticalAlign = index_esm_default.verticalAlign;
1765
- var display = index_esm_default.display;
1766
- var overflow = index_esm_default.overflow;
1767
- var overflowX = index_esm_default.overflowX;
1768
- var overflowY = index_esm_default.overflowY;
1769
- var opacity = index_esm_default2.opacity;
1770
- var fontSize = index_esm_default3.fontSize;
1771
- var fontFamily = index_esm_default3.fontFamily;
1772
- var fontWeight = index_esm_default3.fontWeight;
1773
- var lineHeight = index_esm_default3.lineHeight;
1774
- var textAlign = index_esm_default3.textAlign;
1775
- var fontStyle = index_esm_default3.fontStyle;
1776
- var letterSpacing = index_esm_default3.letterSpacing;
1777
- var alignItems = index_esm_default4.alignItems;
1778
- var alignContent = index_esm_default4.alignContent;
1779
- var justifyItems = index_esm_default4.justifyItems;
1780
- var justifyContent = index_esm_default4.justifyContent;
1781
- var flexWrap = index_esm_default4.flexWrap;
1782
- var flexDirection = index_esm_default4.flexDirection;
1783
- var flex = index_esm_default4.flex;
1784
- var flexGrow = index_esm_default4.flexGrow;
1785
- var flexShrink = index_esm_default4.flexShrink;
1786
- var flexBasis = index_esm_default4.flexBasis;
1787
- var justifySelf = index_esm_default4.justifySelf;
1788
- var alignSelf = index_esm_default4.alignSelf;
1789
- var order = index_esm_default4.order;
1790
- var gridGap = index_esm_default5.gridGap;
1791
- var gridColumnGap = index_esm_default5.gridColumnGap;
1792
- var gridRowGap = index_esm_default5.gridRowGap;
1793
- var gridColumn = index_esm_default5.gridColumn;
1794
- var gridRow = index_esm_default5.gridRow;
1795
- var gridAutoFlow = index_esm_default5.gridAutoFlow;
1796
- var gridAutoColumns = index_esm_default5.gridAutoColumns;
1797
- var gridAutoRows = index_esm_default5.gridAutoRows;
1798
- var gridTemplateColumns = index_esm_default5.gridTemplateColumns;
1799
- var gridTemplateRows = index_esm_default5.gridTemplateRows;
1800
- var gridTemplateAreas = index_esm_default5.gridTemplateAreas;
1801
- var gridArea = index_esm_default5.gridArea;
1802
- var borderWidth = index_esm_default6.borderWidth;
1803
- var borderStyle = index_esm_default6.borderStyle;
1804
- var borderColor = index_esm_default6.borderColor;
1805
- var borderTop = index_esm_default6.borderTop;
1806
- var borderRight = index_esm_default6.borderRight;
1807
- var borderBottom = index_esm_default6.borderBottom;
1808
- var borderLeft = index_esm_default6.borderLeft;
1809
- var borderRadius = index_esm_default6.borderRadius;
1810
- var backgroundImage = index_esm_default7.backgroundImage;
1811
- var backgroundSize = index_esm_default7.backgroundSize;
1812
- var backgroundPosition = index_esm_default7.backgroundPosition;
1813
- var backgroundRepeat = index_esm_default7.backgroundRepeat;
1814
- var zIndex = index_esm_default8.zIndex;
1815
- var top = index_esm_default8.top;
1816
- var right = index_esm_default8.right;
1817
- var bottom = index_esm_default8.bottom;
1818
- var left = index_esm_default8.left;
1819
-
1820
- // src/MenuItem/styles.tsx
236
+ var import_styled_components = __toESM(require("styled-components"));
237
+ var import_seeds_react_mixins = require("@sproutsocial/seeds-react-mixins");
238
+ var import_styled_system = require("styled-system");
1821
239
  var import_seeds_react_checkbox = require("@sproutsocial/seeds-react-checkbox");
1822
- var highlightedStyles = import_styled_components2.css`
240
+ var highlightedStyles = import_styled_components.css`
1823
241
  cursor: pointer;
1824
- border: 1px solid ${({ theme: theme2 }) => theme2.colors.listItem.border.base};
1825
- background-color: ${({ theme: theme2 }) => theme2.colors.listItem.background.hover};
1826
- color: ${({ theme: theme2 }) => theme2.colors.text.body};
242
+ border: 1px solid ${({ theme }) => theme.colors.listItem.border.base};
243
+ background-color: ${({ theme }) => theme.colors.listItem.background.hover};
244
+ color: ${({ theme }) => theme.colors.text.body};
1827
245
  text-decoration: none;
1828
246
  `;
1829
- var activeStyles = import_styled_components2.css`
1830
- border: 1px solid ${({ theme: theme2 }) => theme2.colors.listItem.border.base};
1831
- background-color: ${({ theme: theme2 }) => theme2.colors.menuItem.background.active};
1832
- color: ${({ theme: theme2 }) => theme2.colors.text.body};
247
+ var activeStyles = import_styled_components.css`
248
+ border: 1px solid ${({ theme }) => theme.colors.listItem.border.base};
249
+ background-color: ${({ theme }) => theme.colors.menuItem.background.active};
250
+ color: ${({ theme }) => theme.colors.text.body};
1833
251
  text-decoration: none;
1834
252
  `;
1835
- var MenuItemContainer = import_styled_components2.default.li`
253
+ var selectedStyles = import_styled_components.css`
254
+ font-weight: ${({ theme }) => theme.fontWeights.semibold};
255
+ `;
256
+ var MenuItemContainer = import_styled_components.default.li`
1836
257
  box-sizing: border-box;
1837
258
  list-style-type: none;
1838
- margin-left: ${({ theme: theme2 }) => theme2.space[300]};
1839
- margin-right: ${({ theme: theme2 }) => theme2.space[300]};
259
+ margin-left: ${({ theme }) => theme.space[300]};
260
+ margin-right: ${({ theme }) => theme.space[300]};
1840
261
 
1841
262
  &:first-child {
1842
- margin-top: ${({ theme: theme2 }) => theme2.space[300]};
263
+ margin-top: ${({ theme }) => theme.space[300]};
1843
264
  }
1844
265
 
1845
266
  &:last-child {
1846
- margin-bottom: ${({ theme: theme2 }) => theme2.space[300]};
267
+ margin-bottom: ${({ theme }) => theme.space[300]};
1847
268
  }
1848
269
  `;
1849
- var StyledMenuItem = import_styled_components2.default.button`
270
+ var StyledMenuItem = import_styled_components.default.button`
1850
271
  display: block;
1851
272
  box-sizing: border-box;
1852
273
  width: 100%;
1853
- border-radius: ${({ theme: theme2 }) => theme2.radii[500]};
1854
- background-color: ${({ theme: theme2 }) => theme2.colors.listItem.background.base};
1855
- border: 1px solid ${({ theme: theme2 }) => theme2.colors.listItem.background.base};
1856
- color: ${({ theme: theme2 }) => theme2.colors.text.body};
1857
- font-family: ${({ theme: theme2 }) => theme2.fontFamily};
1858
- font-weight: ${({ theme: theme2 }) => theme2.fontWeights.normal};
274
+ border-radius: ${({ theme }) => theme.radii[500]};
275
+ background-color: ${({ theme }) => theme.colors.listItem.background.base};
276
+ border: 1px solid ${({ theme }) => theme.colors.listItem.background.base};
277
+ color: ${({ theme }) => theme.colors.text.body};
278
+ font-family: ${({ theme }) => theme.fontFamily};
279
+ font-weight: ${({ theme }) => theme.fontWeights.normal};
1859
280
  text-align: left;
1860
281
  text-decoration: none;
1861
- padding: ${({ theme: theme2 }) => theme2.space[300]};
282
+ padding: ${({ theme }) => theme.space[300]};
1862
283
  outline: 0;
1863
- ${({ theme: theme2 }) => theme2.typography[200]};
1864
- transition: all ${({ theme: theme2 }) => theme2.duration["fast"]};
284
+ ${({ theme }) => theme.typography[200]};
285
+ transition: all ${({ theme }) => theme.duration["fast"]};
1865
286
 
1866
287
  /* Highlighted */
1867
288
  ${({ $highlighted }) => $highlighted && highlightedStyles}
@@ -1882,7 +303,7 @@ var StyledMenuItem = import_styled_components2.default.button`
1882
303
 
1883
304
  /* focused */
1884
305
  &:focus {
1885
- ${focusRing}
306
+ ${import_seeds_react_mixins.focusRing}
1886
307
  }
1887
308
 
1888
309
  /* Active */
@@ -1895,34 +316,36 @@ var StyledMenuItem = import_styled_components2.default.button`
1895
316
 
1896
317
  &[aria-disabled="true"] {
1897
318
  cursor: not-allowed;
1898
- ${disabled}
319
+ ${import_seeds_react_mixins.disabled}
1899
320
  }
1900
321
 
1901
- ${border}
1902
- ${color}
1903
- ${flexbox}
1904
- ${grid}
1905
- ${layout}
1906
- ${space}
322
+ ${({ $selected }) => $selected && selectedStyles}
323
+
324
+ ${import_styled_system.border}
325
+ ${import_styled_system.color}
326
+ ${import_styled_system.flexbox}
327
+ ${import_styled_system.grid}
328
+ ${import_styled_system.layout}
329
+ ${import_styled_system.space}
1907
330
  `;
1908
- var MenuItemRow = import_styled_components2.default.div`
331
+ var MenuItemRow = import_styled_components.default.div`
1909
332
  display: flex;
1910
333
  align-items: center;
1911
334
  pointer-events: none;
1912
335
  `;
1913
- var MenuItemAction = import_styled_components2.default.div`
336
+ var MenuItemAction = import_styled_components.default.div`
1914
337
  display: flex;
1915
338
  align-items: center;
1916
339
  justify-content: center;
1917
340
  flex-shrink: 0;
1918
341
  `;
1919
- var MenuItemActionLeft = (0, import_styled_components2.default)(MenuItemAction)`
1920
- margin-right: ${({ theme: theme2 }) => theme2.space[300]};
342
+ var MenuItemActionLeft = (0, import_styled_components.default)(MenuItemAction)`
343
+ margin-right: ${({ theme }) => theme.space[300]};
1921
344
  `;
1922
- var MenuItemActionRight = (0, import_styled_components2.default)(MenuItemAction)`
1923
- margin-left: ${({ theme: theme2 }) => theme2.space[300]};
345
+ var MenuItemActionRight = (0, import_styled_components.default)(MenuItemAction)`
346
+ margin-left: ${({ theme }) => theme.space[300]};
1924
347
  `;
1925
- var MenuItemText = import_styled_components2.default.div`
348
+ var MenuItemText = import_styled_components.default.div`
1926
349
  word-break: break-word;
1927
350
  flex-grow: 1;
1928
351
  min-width: 0;
@@ -1934,7 +357,7 @@ var import_seeds_react_icon = require("@sproutsocial/seeds-react-icon");
1934
357
  var import_seeds_react_checkbox2 = require("@sproutsocial/seeds-react-checkbox");
1935
358
  var import_seeds_react_switch = require("@sproutsocial/seeds-react-switch");
1936
359
  var import_seeds_react_radio = require("@sproutsocial/seeds-react-radio");
1937
- var import_styled_components3 = require("styled-components");
360
+ var import_styled_components2 = require("styled-components");
1938
361
  var import_seeds_react_box = require("@sproutsocial/seeds-react-box");
1939
362
  var import_jsx_runtime2 = require("react/jsx-runtime");
1940
363
  var SelectionIndicator = ({
@@ -1943,7 +366,7 @@ var SelectionIndicator = ({
1943
366
  "aria-labelledby": labeledBy,
1944
367
  selected
1945
368
  }) => {
1946
- const { space: space2 } = (0, import_styled_components3.useTheme)();
369
+ const { space: space5 } = (0, import_styled_components2.useTheme)();
1947
370
  const inputStub = (e) => {
1948
371
  e.stopPropagation();
1949
372
  };
@@ -1986,7 +409,7 @@ var SelectionIndicator = ({
1986
409
  if (selected) {
1987
410
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_seeds_react_icon.Icon, { name: "check-solid", "aria-hidden": true, size: "small" });
1988
411
  } else {
1989
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_seeds_react_box.Box, { width: space2["400"] });
412
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_seeds_react_box.Box, { width: space5["400"] });
1990
413
  }
1991
414
  default:
1992
415
  return null;
@@ -2035,7 +458,7 @@ var MenuItem = ({
2035
458
  active,
2036
459
  innerRef,
2037
460
  href,
2038
- color: color2,
461
+ color: color5,
2039
462
  ...props
2040
463
  }) => {
2041
464
  const {
@@ -2091,47 +514,48 @@ var INPUT_TYPES = {
2091
514
  var import_react3 = require("react");
2092
515
 
2093
516
  // src/MenuHeader/styles.tsx
2094
- var import_styled_components4 = __toESM(require("styled-components"));
2095
- var MenuHeaderContainer = import_styled_components4.default.div`
2096
- border-color: ${({ theme: theme2 }) => theme2.colors.container.border.base};
517
+ var import_styled_components3 = __toESM(require("styled-components"));
518
+ var import_styled_system2 = require("styled-system");
519
+ var MenuHeaderContainer = import_styled_components3.default.div`
520
+ border-color: ${({ theme }) => theme.colors.container.border.base};
2097
521
  border-bottom-width: 1px;
2098
522
  border-bottom-style: solid;
2099
523
  box-sizing: border-box;
2100
524
  width: 100%;
2101
- font-size: ${({ theme: theme2 }) => theme2.typography[200].fontSize};
525
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
2102
526
  display: flex;
2103
527
  flex-direction: column;
2104
- padding: ${({ theme: theme2 }) => theme2.space[350]} ${({ theme: theme2 }) => theme2.space[400]};
2105
-
2106
- ${border}
2107
- ${color}
2108
- ${flexbox}
2109
- ${grid}
2110
- ${layout}
2111
- ${space}
2112
- ${position}
528
+ padding: ${({ theme }) => theme.space[350]} ${({ theme }) => theme.space[400]};
529
+
530
+ ${import_styled_system2.border}
531
+ ${import_styled_system2.color}
532
+ ${import_styled_system2.flexbox}
533
+ ${import_styled_system2.grid}
534
+ ${import_styled_system2.layout}
535
+ ${import_styled_system2.space}
536
+ ${import_styled_system2.position}
2113
537
  `;
2114
- var MenuTitleText = import_styled_components4.default.h3`
2115
- color: ${({ theme: theme2 }) => theme2.colors.text.headline};
2116
- font-weight: ${({ theme: theme2 }) => theme2.fontWeights.bold};
538
+ var MenuTitleText = import_styled_components3.default.h3`
539
+ color: ${({ theme }) => theme.colors.text.headline};
540
+ font-weight: ${({ theme }) => theme.fontWeights.bold};
2117
541
  margin: 0px;
2118
542
  flex-grow: 1;
2119
543
 
2120
- ${({ theme: theme2 }) => theme2.typography[200]}
544
+ ${({ theme }) => theme.typography[200]}
2121
545
 
2122
- ${({ $leftAction, theme: theme2 }) => $leftAction && `
2123
- padding-left: ${theme2.space[350]};
546
+ ${({ $leftAction, theme }) => $leftAction && `
547
+ padding-left: ${theme.space[350]};
2124
548
  `}
2125
549
  `;
2126
- var MenuChildrenContainer = import_styled_components4.default.div`
550
+ var MenuChildrenContainer = import_styled_components3.default.div`
2127
551
  grid-column: 1 / -1;
2128
- margin-top: ${({ theme: theme2 }) => theme2.space[300]};
552
+ margin-top: ${({ theme }) => theme.space[300]};
2129
553
 
2130
554
  &:first-child {
2131
555
  margin-top: 0;
2132
556
  }
2133
557
  `;
2134
- var MenuHeaderFeatures = import_styled_components4.default.div`
558
+ var MenuHeaderFeatures = import_styled_components3.default.div`
2135
559
  display: flex;
2136
560
  align-items: center;
2137
561
  justify-content: space-between;
@@ -2175,8 +599,9 @@ var MenuHeader = ({
2175
599
  };
2176
600
 
2177
601
  // src/MenuContent/styles.tsx
2178
- var import_styled_components5 = __toESM(require("styled-components"));
2179
- var StyledMenuContent = import_styled_components5.default.ul`
602
+ var import_styled_components4 = __toESM(require("styled-components"));
603
+ var import_styled_system3 = require("styled-system");
604
+ var StyledMenuContent = import_styled_components4.default.ul`
2180
605
  margin: 0;
2181
606
  padding: 0;
2182
607
  overflow: auto;
@@ -2186,13 +611,13 @@ var StyledMenuContent = import_styled_components5.default.ul`
2186
611
  box-shadow: none;
2187
612
  }
2188
613
 
2189
- ${border}
2190
- ${color}
2191
- ${flexbox}
2192
- ${grid}
2193
- ${layout}
2194
- ${space}
2195
- ${position}
614
+ ${import_styled_system3.border}
615
+ ${import_styled_system3.color}
616
+ ${import_styled_system3.flexbox}
617
+ ${import_styled_system3.grid}
618
+ ${import_styled_system3.layout}
619
+ ${import_styled_system3.space}
620
+ ${import_styled_system3.position}
2196
621
  `;
2197
622
 
2198
623
  // src/hooks/useMenuChildren.tsx
@@ -2370,13 +795,13 @@ var useMenuChildren = ({
2370
795
  var import_react5 = require("react");
2371
796
 
2372
797
  // src/MenuContent/DefaultMenuEmptyState.tsx
2373
- var import_styled_components6 = __toESM(require("styled-components"));
798
+ var import_styled_components5 = __toESM(require("styled-components"));
2374
799
  var import_seeds_react_box2 = require("@sproutsocial/seeds-react-box");
2375
800
  var import_jsx_runtime6 = require("react/jsx-runtime");
2376
- var StyledEmptyState = (0, import_styled_components6.default)(import_seeds_react_box2.Box)`
2377
- padding: ${({ theme: theme2 }) => theme2.space[350]};
801
+ var StyledEmptyState = (0, import_styled_components5.default)(import_seeds_react_box2.Box)`
802
+ padding: ${({ theme }) => theme.space[350]};
2378
803
  text-align: center;
2379
- font-size: ${({ theme: theme2 }) => theme2.typography[200].fontSize};
804
+ font-size: ${({ theme }) => theme.typography[200].fontSize};
2380
805
  `;
2381
806
  var DefaultMenuEmptyState = ({
2382
807
  children = "No items found",
@@ -2446,10 +871,10 @@ MenuContent.__MENU_PRIMITIVE_TYPE = "MenuContent";
2446
871
  var import_react6 = require("react");
2447
872
 
2448
873
  // src/MenuFooter/styles.tsx
2449
- var import_styled_components7 = __toESM(require("styled-components"));
874
+ var import_styled_components6 = __toESM(require("styled-components"));
2450
875
  var import_seeds_react_box3 = require("@sproutsocial/seeds-react-box");
2451
- var StyledMenuFooterBox = (0, import_styled_components7.default)(import_seeds_react_box3.Box)`
2452
- padding: ${({ theme: theme2 }) => theme2.space[350]} ${({ theme: theme2 }) => theme2.space[400]};
876
+ var StyledMenuFooterBox = (0, import_styled_components6.default)(import_seeds_react_box3.Box)`
877
+ padding: ${({ theme }) => theme.space[350]} ${({ theme }) => theme.space[400]};
2453
878
  border-top: 1px solid ${(p) => p.theme.colors.container.border.base};
2454
879
  `;
2455
880
 
@@ -2460,153 +885,45 @@ var MenuFooter = ({ children, ...rest }) => {
2460
885
  };
2461
886
 
2462
887
  // src/MenuGroup/MenuGroup.tsx
2463
- var import_react9 = require("react");
2464
-
2465
- // src/MenuGroup/styles.tsx
2466
- var import_styled_components10 = __toESM(require("styled-components"));
2467
-
2468
- // ../seeds-react-text/dist/esm/index.js
2469
888
  var import_react7 = require("react");
2470
- var import_styled_components8 = __toESM(require("styled-components"));
2471
- var import_styled_components9 = __toESM(require("styled-components"));
2472
- var import_seeds_react_system_props = require("@sproutsocial/seeds-react-system-props");
2473
- var import_jsx_runtime9 = require("react/jsx-runtime");
2474
- var import_react8 = require("react");
2475
- var Container = import_styled_components9.default.span`
2476
- margin: 0;
2477
- padding-left: 0;
2478
- padding-right: 0;
2479
- font-family: ${(props) => props.theme.fontFamily};
2480
- font-style: ${(props) => props.isItalicized && "italic"};
2481
-
2482
- ${(props) => props.truncated && import_styled_components9.css`
2483
- display: block;
2484
- overflow: hidden;
2485
- white-space: nowrap;
2486
- text-overflow: ellipsis;
2487
- `}
2488
-
2489
- ${(props) => props.breakWord && import_styled_components9.css`
2490
- word-break: break-word;
2491
- hyphens: auto;
2492
- `}
2493
-
2494
- ${import_seeds_react_system_props.COMMON}
2495
- ${import_seeds_react_system_props.LAYOUT}
2496
- ${import_seeds_react_system_props.FLEXBOX}
2497
- ${import_seeds_react_system_props.GRID}
2498
- ${import_seeds_react_system_props.TYPOGRAPHY}
2499
- `;
2500
- var styles_default = Container;
2501
- var Headline = (0, import_styled_components8.default)(styles_default)`
2502
- color: ${(props) => props.theme.colors.text.headline};
2503
- font-weight: ${(props) => props.theme.fontWeights.bold};
2504
- ${(props) => props.theme.typography[400]}
2505
- `;
2506
- var SubHeadline = (0, import_styled_components8.default)(styles_default)`
2507
- color: ${(props) => props.theme.colors.text.headline};
2508
- font-weight: ${(props) => props.theme.fontWeights.bold};
2509
- ${(props) => props.theme.typography[300]}
2510
- `;
2511
- var SmallSubHeadline = (0, import_styled_components8.default)(styles_default)`
2512
- color: ${(props) => props.theme.colors.text.headline};
2513
- font-weight: ${(props) => props.theme.fontWeights.bold};
2514
- ${(props) => props.theme.typography[200]}
2515
- `;
2516
- var Byline = (0, import_styled_components8.default)(styles_default)`
2517
- color: ${(props) => props.theme.colors.text.subtext};
2518
- ${(props) => props.theme.typography[200]}
2519
- `;
2520
- var SmallByline = (0, import_styled_components8.default)(styles_default)`
2521
- color: ${(props) => props.theme.colors.text.subtext};
2522
- ${(props) => props.theme.typography[100]}
2523
- `;
2524
- var BodyCopy = (0, import_styled_components8.default)(styles_default)`
2525
- color: ${(props) => props.theme.colors.text.body};
2526
- ${(props) => props.theme.typography[300]}
2527
- `;
2528
- var SmallBodyCopy = (0, import_styled_components8.default)(styles_default)`
2529
- color: ${(props) => props.theme.colors.text.body};
2530
- ${(props) => props.theme.typography[200]}
2531
- `;
2532
- var Text = ({ fontSize: fontSize2, children, qa, color: color2, ...rest }) => {
2533
- const qaText = typeof children === "string" ? children : void 0;
2534
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2535
- styles_default,
2536
- {
2537
- typeScale: fontSize2,
2538
- "data-qa-text": qaText,
2539
- color: color2,
2540
- ...qa,
2541
- ...rest,
2542
- children
2543
- }
2544
- );
2545
- };
2546
- var withTextLogic = (Component) => {
2547
- return ({ children, ...props }) => {
2548
- const qaText = typeof children === "string" ? children : void 0;
2549
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, { "data-qa-text": qaText, ...props, children });
2550
- };
2551
- };
2552
- var HeadlineWithLogic = withTextLogic(Headline);
2553
- HeadlineWithLogic.displayName = "Text.Headline";
2554
- Text.Headline = HeadlineWithLogic;
2555
- var SubHeadlineWithLogic = withTextLogic(SubHeadline);
2556
- SubHeadlineWithLogic.displayName = "Text.SubHeadline";
2557
- Text.SubHeadline = SubHeadlineWithLogic;
2558
- var SmallSubHeadlineWithLogic = withTextLogic(SmallSubHeadline);
2559
- SmallSubHeadlineWithLogic.displayName = "Text.SmallSubHeadline";
2560
- Text.SmallSubHeadline = SmallSubHeadlineWithLogic;
2561
- var BylineWithLogic = withTextLogic(Byline);
2562
- BylineWithLogic.displayName = "Text.Byline";
2563
- Text.Byline = BylineWithLogic;
2564
- var SmallBylineWithLogic = withTextLogic(SmallByline);
2565
- SmallBylineWithLogic.displayName = "Text.SmallByline";
2566
- Text.SmallByline = SmallBylineWithLogic;
2567
- var BodyCopyWithLogic = withTextLogic(BodyCopy);
2568
- BodyCopyWithLogic.displayName = "Text.BodyCopy";
2569
- Text.BodyCopy = BodyCopyWithLogic;
2570
- var SmallBodyCopyWithLogic = withTextLogic(SmallBodyCopy);
2571
- SmallBodyCopyWithLogic.displayName = "Text.SmallBodyCopy";
2572
- Text.SmallBodyCopy = SmallBodyCopyWithLogic;
2573
- var Text_default = Text;
2574
- var index_default = Text_default;
2575
889
 
2576
890
  // src/MenuGroup/styles.tsx
2577
- var StyledMenuGroup = import_styled_components10.default.li`
891
+ var import_styled_components7 = __toESM(require("styled-components"));
892
+ var import_seeds_react_text = __toESM(require("@sproutsocial/seeds-react-text"));
893
+ var import_styled_system4 = require("styled-system");
894
+ var StyledMenuGroup = import_styled_components7.default.li`
2578
895
  &:not(:last-child) {
2579
896
  border-bottom: 1px solid
2580
- ${({ theme: theme2 }) => theme2.colors.container.border.base};
897
+ ${({ theme }) => theme.colors.container.border.base};
2581
898
  }
2582
899
  list-style: none;
2583
900
  margin: 0;
2584
901
 
2585
- ${border}
2586
- ${position}
2587
- ${color}
2588
- ${flexbox}
2589
- ${grid}
2590
- ${layout}
2591
- ${space}
902
+ ${import_styled_system4.border}
903
+ ${import_styled_system4.position}
904
+ ${import_styled_system4.color}
905
+ ${import_styled_system4.flexbox}
906
+ ${import_styled_system4.grid}
907
+ ${import_styled_system4.layout}
908
+ ${import_styled_system4.space}
2592
909
  `;
2593
- var StyledTitle = (0, import_styled_components10.default)(index_default.SmallSubHeadline)`
2594
- font-size: ${({ theme: theme2 }) => theme2.typography[100].fontSize};
2595
- margin: ${({ theme: theme2 }) => theme2.space[400]} ${({ theme: theme2 }) => theme2.space[400]}
2596
- 0px ${({ theme: theme2 }) => theme2.space[400]};
910
+ var StyledTitle = (0, import_styled_components7.default)(import_seeds_react_text.default.SmallSubHeadline)`
911
+ font-size: ${({ theme }) => theme.typography[100].fontSize};
912
+ margin: ${({ theme }) => theme.space[400]} ${({ theme }) => theme.space[400]}
913
+ 0px ${({ theme }) => theme.space[400]};
2597
914
  `;
2598
- var StyledMenuGroupUl = import_styled_components10.default.ul`
915
+ var StyledMenuGroupUl = import_styled_components7.default.ul`
2599
916
  margin: 0;
2600
917
  padding: 0;
2601
918
  `;
2602
919
 
2603
920
  // src/MenuGroup/MenuGroup.tsx
2604
- var import_jsx_runtime10 = require("react/jsx-runtime");
921
+ var import_jsx_runtime9 = require("react/jsx-runtime");
2605
922
  var MenuGroup = ({
2606
923
  titleAs = "h3",
2607
924
  children: childrenProp,
2608
925
  title,
2609
- color: color2,
926
+ color: color5,
2610
927
  isSingleSelect,
2611
928
  id,
2612
929
  menuItems,
@@ -2618,18 +935,18 @@ var MenuGroup = ({
2618
935
  if (!children) {
2619
936
  return null;
2620
937
  }
2621
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
938
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2622
939
  StyledMenuGroup,
2623
940
  {
2624
941
  role: "group",
2625
942
  id,
2626
943
  isSingleSelect,
2627
944
  "aria-labelledby": title ? titleId : void 0,
2628
- color: color2,
945
+ color: color5,
2629
946
  ...rest,
2630
947
  children: [
2631
- title && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(StyledTitle, { role: "heading", as: titleAs, id: titleId, children: title }),
2632
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(StyledMenuGroupUl, { children })
948
+ title && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StyledTitle, { role: "heading", as: titleAs, id: titleId, children: title }),
949
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StyledMenuGroupUl, { children })
2633
950
  ]
2634
951
  }
2635
952
  );
@@ -2637,17 +954,13 @@ var MenuGroup = ({
2637
954
  MenuGroup.__MENU_PRIMITIVE_TYPE = "MenuGroup";
2638
955
 
2639
956
  // src/MenuRoot/MenuRoot.tsx
2640
- var import_react10 = __toESM(require("react"));
2641
- var import_styled_components11 = __toESM(require("styled-components"));
957
+ var import_react8 = __toESM(require("react"));
958
+ var import_styled_components8 = __toESM(require("styled-components"));
2642
959
  var import_seeds_react_popout = require("@sproutsocial/seeds-react-popout");
2643
960
  var import_seeds_react_utilities = require("@sproutsocial/seeds-react-utilities");
2644
-
2645
- // ../../seeds-design-tokens/seeds-motion/dist/seeds-motion-unitless.esm.js
2646
- var MOTION_DURATION_FAST = 0.15;
2647
-
2648
- // src/MenuRoot/MenuRoot.tsx
2649
- var import_jsx_runtime11 = require("react/jsx-runtime");
2650
- var CustomPopoutContent = (0, import_styled_components11.default)(import_seeds_react_popout.Popout.Content)`
961
+ var import_unitless = require("@sproutsocial/seeds-motion/unitless");
962
+ var import_jsx_runtime10 = require("react/jsx-runtime");
963
+ var CustomPopoutContent = (0, import_styled_components8.default)(import_seeds_react_popout.Popout.Content)`
2651
964
  padding: 0;
2652
965
  margin-left: 0;
2653
966
  margin-right: 0;
@@ -2681,7 +994,7 @@ var menuAnimationConfig = {
2681
994
  scale: 1,
2682
995
  transition: {
2683
996
  type: "tween",
2684
- duration: MOTION_DURATION_FAST,
997
+ duration: import_unitless.MOTION_DURATION_FAST,
2685
998
  ease: "circOut"
2686
999
  }
2687
1000
  }),
@@ -2690,7 +1003,7 @@ var menuAnimationConfig = {
2690
1003
  scale: 1,
2691
1004
  transition: {
2692
1005
  type: "tween",
2693
- duration: MOTION_DURATION_FAST,
1006
+ duration: import_unitless.MOTION_DURATION_FAST,
2694
1007
  ease: "circIn"
2695
1008
  }
2696
1009
  }
@@ -2701,25 +1014,25 @@ var menuAnimationConfig = {
2701
1014
  };
2702
1015
  var MenuPopout = ({
2703
1016
  content,
2704
- width: width2 = "300px",
1017
+ width = "300px",
2705
1018
  isOpen,
2706
1019
  openMenu,
2707
1020
  closeMenu,
2708
1021
  focusLockProps,
2709
1022
  ...popoutProps
2710
1023
  }) => {
2711
- const setIsOpen = (0, import_react10.useCallback)(
1024
+ const setIsOpen = (0, import_react8.useCallback)(
2712
1025
  (newIsOpen) => {
2713
1026
  newIsOpen ? openMenu?.() : closeMenu?.();
2714
1027
  },
2715
1028
  [openMenu, closeMenu]
2716
1029
  );
2717
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1030
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2718
1031
  import_seeds_react_popout.Popout,
2719
1032
  {
2720
1033
  isOpen: !!isOpen,
2721
1034
  setIsOpen,
2722
- content: (props) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CustomPopoutContent, { width: popoutProps.fullWidth ? "initial" : width2, children: typeof content === "function" ? content(props) : content }),
1035
+ content: (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CustomPopoutContent, { width: popoutProps.fullWidth ? "initial" : width, children: typeof content === "function" ? content(props) : content }),
2723
1036
  focusLockProps: {
2724
1037
  // correct jerking motion when scrolling while the Popout is open
2725
1038
  // returnFocus: false,
@@ -2736,7 +1049,7 @@ var MenuRoot = ({
2736
1049
  children,
2737
1050
  menuToggleElement,
2738
1051
  popoutProps: { placement = "bottom", focusLockProps, ...popoutProps } = {},
2739
- width: width2,
1052
+ width,
2740
1053
  ...contextProps
2741
1054
  }) => {
2742
1055
  const {
@@ -2747,38 +1060,38 @@ var MenuRoot = ({
2747
1060
  getMenuProps,
2748
1061
  autoCloseOnEmpty = false
2749
1062
  } = contextProps;
2750
- const toggleElementRef = import_react10.default.useRef(null);
2751
- const [finalWidth, setFinalWidth] = import_react10.default.useState();
1063
+ const toggleElementRef = import_react8.default.useRef(null);
1064
+ const [finalWidth, setFinalWidth] = import_react8.default.useState();
2752
1065
  const min_width = 200;
2753
- (0, import_react10.useLayoutEffect)(() => {
2754
- if (width2) {
2755
- setFinalWidth(width2);
1066
+ (0, import_react8.useLayoutEffect)(() => {
1067
+ if (width) {
1068
+ setFinalWidth(width);
2756
1069
  } else if (toggleElementRef.current?.offsetWidth) {
2757
1070
  const toggleWidth = toggleElementRef.current.offsetWidth;
2758
1071
  setFinalWidth(Math.max(toggleWidth, min_width));
2759
1072
  } else {
2760
1073
  setFinalWidth(min_width);
2761
1074
  }
2762
- }, [width2, toggleElementRef.current?.offsetWidth]);
1075
+ }, [width, toggleElementRef.current?.offsetWidth]);
2763
1076
  const menuContext = useMenu(contextProps);
2764
1077
  getMenuProps?.({}, { suppressRefError: true });
2765
- (0, import_react10.useEffect)(() => {
1078
+ (0, import_react8.useEffect)(() => {
2766
1079
  if (!inputValue || !autoCloseOnEmpty) return;
2767
1080
  if (!menuContext.hasVisibleItems && isOpen) {
2768
1081
  closeMenu?.();
2769
1082
  }
2770
1083
  }, [menuContext.hasVisibleItems, isOpen, inputValue, autoCloseOnEmpty]);
2771
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1084
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2772
1085
  MenuPopout,
2773
1086
  {
2774
1087
  placement,
2775
1088
  isOpen: !!isOpen,
2776
1089
  openMenu,
2777
1090
  closeMenu,
2778
- content: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MenuContentProvider, { menuContext, children }),
1091
+ content: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(MenuContentProvider, { menuContext, children }),
2779
1092
  width: finalWidth,
2780
1093
  ...popoutProps,
2781
- children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1094
+ children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2782
1095
  MenuToggleProvider,
2783
1096
  {
2784
1097
  menuContext: {
@@ -2797,9 +1110,9 @@ var MenuRoot = ({
2797
1110
  };
2798
1111
 
2799
1112
  // src/MenuLabel.tsx
2800
- var import_react11 = require("react");
1113
+ var import_react9 = require("react");
2801
1114
  var import_seeds_react_label = require("@sproutsocial/seeds-react-label");
2802
- var import_jsx_runtime12 = (
1115
+ var import_jsx_runtime11 = (
2803
1116
  // This fallback id should never be used, but it is here to satisfy TypeScript since getLabelProps could be undefined.
2804
1117
  require("react/jsx-runtime")
2805
1118
  );
@@ -2809,7 +1122,7 @@ var MenuLabel = ({
2809
1122
  ...rest
2810
1123
  }) => {
2811
1124
  const { getLabelProps } = useMenuToggleContext();
2812
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1125
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2813
1126
  import_seeds_react_label.Label,
2814
1127
  {
2815
1128
  htmlFor: "fallback_menu_label",
@@ -2823,7 +1136,7 @@ var MenuLabel = ({
2823
1136
 
2824
1137
  // src/MenuToggleButton/MenuToggleButton.tsx
2825
1138
  var import_seeds_react_button = require("@sproutsocial/seeds-react-button");
2826
- var import_jsx_runtime13 = require("react/jsx-runtime");
1139
+ var import_jsx_runtime12 = require("react/jsx-runtime");
2827
1140
  var MenuToggleButton = (props) => {
2828
1141
  const { getToggleButtonProps, isListbox, getDropdownProps, ref, ariaProps } = useMenuToggleContext();
2829
1142
  const {
@@ -2857,15 +1170,15 @@ var MenuToggleButton = (props) => {
2857
1170
  if (toggleButtonProps) {
2858
1171
  toggleButtonProps["aria-labelledby"] = void 0;
2859
1172
  }
2860
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_seeds_react_button.Button, { appearance: "secondary", ...toggleButtonProps, ...restProps });
1173
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_seeds_react_button.Button, { appearance: "secondary", ...toggleButtonProps, ...restProps });
2861
1174
  };
2862
1175
 
2863
1176
  // src/MenuSearchInput/MenuSearchInput.tsx
2864
- var import_react13 = __toESM(require("react"));
1177
+ var import_react11 = __toESM(require("react"));
2865
1178
  var import_seeds_react_input = require("@sproutsocial/seeds-react-input");
2866
1179
 
2867
1180
  // src/hooks/useItemFiltering.tsx
2868
- var import_react12 = __toESM(require("react"));
1181
+ var import_react10 = __toESM(require("react"));
2869
1182
 
2870
1183
  // src/utils/downshiftDefaults.ts
2871
1184
  var itemToString = (item) => {
@@ -2885,8 +1198,8 @@ var useItemFiltering = ({
2885
1198
  getShouldFilter = defaultGetShouldFilter,
2886
1199
  setHiddenItemsMap: setHiddenItemsMapProp
2887
1200
  }) => {
2888
- const [hiddenItemsMap, setHiddenItemsMap] = import_react12.default.useState({});
2889
- const updateFilteredItems = import_react12.default.useCallback(
1201
+ const [hiddenItemsMap, setHiddenItemsMap] = import_react10.default.useState({});
1202
+ const updateFilteredItems = import_react10.default.useCallback(
2890
1203
  ({ inputValue }) => {
2891
1204
  const newHiddenItems = getShouldFilter({ inputValue }) ? allMenuItems.reduce((map, item) => {
2892
1205
  const isItemVisible = getIsItemVisible(item, inputValue);
@@ -2904,7 +1217,7 @@ var useItemFiltering = ({
2904
1217
  };
2905
1218
 
2906
1219
  // src/MenuSearchInput/MenuSearchInput.tsx
2907
- var import_jsx_runtime14 = require("react/jsx-runtime");
1220
+ var import_jsx_runtime13 = require("react/jsx-runtime");
2908
1221
  var MenuSearchInput = ({
2909
1222
  getIsItemVisible,
2910
1223
  inputProps,
@@ -2923,18 +1236,18 @@ var MenuSearchInput = ({
2923
1236
  getIsItemVisible,
2924
1237
  setHiddenItemsMap
2925
1238
  });
2926
- import_react13.default.useEffect(() => {
1239
+ import_react11.default.useEffect(() => {
2927
1240
  updateFilteredItems({ inputValue: restInputProps.value || "" });
2928
1241
  }, [isOpen, restInputProps.value]);
2929
1242
  const toggleButtonProps = getToggleButtonProps?.() || {};
2930
- const handleKeyDown = import_react13.default.useCallback(
1243
+ const handleKeyDown = import_react11.default.useCallback(
2931
1244
  (e) => {
2932
1245
  if (e.key === " ") return;
2933
1246
  toggleButtonProps.onKeyDown?.(e);
2934
1247
  },
2935
1248
  [toggleButtonProps.onKeyDown]
2936
1249
  );
2937
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1250
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2938
1251
  import_seeds_react_input.Input,
2939
1252
  {
2940
1253
  onChange: (e, value) => {
@@ -2954,11 +1267,11 @@ var MenuSearchInput = ({
2954
1267
  };
2955
1268
 
2956
1269
  // src/MenuTokenInput.tsx
2957
- var import_react14 = __toESM(require("react"));
2958
- var import_styled_components12 = __toESM(require("styled-components"));
1270
+ var import_react12 = __toESM(require("react"));
1271
+ var import_styled_components9 = __toESM(require("styled-components"));
2959
1272
  var import_seeds_react_token_input = require("@sproutsocial/seeds-react-token-input");
2960
- var import_jsx_runtime15 = require("react/jsx-runtime");
2961
- var StyledTokenInputWrapper = import_styled_components12.default.div`
1273
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1274
+ var StyledTokenInputWrapper = import_styled_components9.default.div`
2962
1275
  > div {
2963
1276
  padding: 4px;
2964
1277
  }
@@ -2987,12 +1300,12 @@ var MenuTokenInput = ({
2987
1300
  removeSelectedItem,
2988
1301
  setActiveIndex,
2989
1302
  selectedItems = []
2990
- } = import_react14.default.useContext(MenuContext);
1303
+ } = import_react12.default.useContext(MenuContext);
2991
1304
  const removeToken = (tokenId) => {
2992
1305
  const tokenToRemove = selectedItems?.find((item) => item.id === tokenId);
2993
1306
  tokenToRemove && removeSelectedItem?.(tokenToRemove);
2994
1307
  };
2995
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledTokenInputWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1308
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledTokenInputWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2996
1309
  import_seeds_react_token_input.TokenInput,
2997
1310
  {
2998
1311
  onKeyDown: (e, value) => {
@@ -3041,8 +1354,8 @@ var MenuTokenInput = ({
3041
1354
  };
3042
1355
 
3043
1356
  // src/MenuSearchTokenInput/MenuSearchTokenInput.tsx
3044
- var import_react15 = __toESM(require("react"));
3045
- var import_jsx_runtime16 = require("react/jsx-runtime");
1357
+ var import_react13 = __toESM(require("react"));
1358
+ var import_jsx_runtime15 = require("react/jsx-runtime");
3046
1359
  var MenuSearchTokenInput = ({
3047
1360
  getIsItemVisible,
3048
1361
  getTokenProps,
@@ -3065,10 +1378,10 @@ var MenuSearchTokenInput = ({
3065
1378
  setHiddenItemsMap
3066
1379
  });
3067
1380
  const controlledValue = value || inputPropsValue !== void 0 ? `${inputPropsValue}` : void 0;
3068
- const [internalValue, setInternalValue] = import_react15.default.useState(
1381
+ const [internalValue, setInternalValue] = import_react13.default.useState(
3069
1382
  controlledValue || ""
3070
1383
  );
3071
- const updateFilteredState = import_react15.default.useCallback(
1384
+ const updateFilteredState = import_react13.default.useCallback(
3072
1385
  // defaults to an empty string if no value is passed
3073
1386
  (value2 = "") => {
3074
1387
  setInternalValue(value2);
@@ -3076,21 +1389,21 @@ var MenuSearchTokenInput = ({
3076
1389
  },
3077
1390
  [updateFilteredItems]
3078
1391
  );
3079
- import_react15.default.useEffect(() => {
1392
+ import_react13.default.useEffect(() => {
3080
1393
  updateFilteredState(controlledValue);
3081
1394
  }, [controlledValue]);
3082
- import_react15.default.useEffect(() => {
1395
+ import_react13.default.useEffect(() => {
3083
1396
  updateFilteredState(controlledValue);
3084
1397
  }, [isOpen]);
3085
1398
  const toggleButtonProps = getToggleButtonProps?.() || {};
3086
- const handleKeyDown = import_react15.default.useCallback(
1399
+ const handleKeyDown = import_react13.default.useCallback(
3087
1400
  (e) => {
3088
1401
  if (e.key === " ") return;
3089
1402
  toggleButtonProps.onKeyDown?.(e);
3090
1403
  },
3091
1404
  [toggleButtonProps.onKeyDown]
3092
1405
  );
3093
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1406
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3094
1407
  MenuTokenInput,
3095
1408
  {
3096
1409
  onChange: (e, value2) => {
@@ -3111,11 +1424,11 @@ var MenuSearchTokenInput = ({
3111
1424
  };
3112
1425
 
3113
1426
  // src/SubmenuItem/SubmenuItem.tsx
3114
- var import_react16 = __toESM(require("react"));
1427
+ var import_react14 = __toESM(require("react"));
3115
1428
  var import_seeds_react_icon2 = require("@sproutsocial/seeds-react-icon");
3116
1429
  var import_seeds_react_box4 = require("@sproutsocial/seeds-react-box");
3117
1430
  var import_seeds_react_utilities2 = require("@sproutsocial/seeds-react-utilities");
3118
- var import_jsx_runtime17 = require("react/jsx-runtime");
1431
+ var import_jsx_runtime16 = require("react/jsx-runtime");
3119
1432
  var SubmenuItemTrigger = ({
3120
1433
  id,
3121
1434
  children,
@@ -3124,7 +1437,7 @@ var SubmenuItemTrigger = ({
3124
1437
  }) => {
3125
1438
  const { getToggleButtonProps, getDropdownProps, ref, ariaProps } = useMenuToggleContext();
3126
1439
  const toggleRef = ref && innerRef ? (0, import_seeds_react_utilities2.mergeRefs)([ref, innerRef].filter(Boolean)) : ref || innerRef;
3127
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1440
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3128
1441
  MenuItem,
3129
1442
  {
3130
1443
  ...rest,
@@ -3141,9 +1454,9 @@ var SubmenuItemTrigger = ({
3141
1454
  { suppressRefError: true }
3142
1455
  ),
3143
1456
  id,
3144
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_seeds_react_box4.Box, { display: "flex", justifyContent: "space-between", children: [
1457
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_seeds_react_box4.Box, { display: "flex", justifyContent: "space-between", children: [
3145
1458
  children,
3146
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(MenuItemActionRight, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_seeds_react_icon2.Icon, { name: "chevron-right-outline" }) })
1459
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(MenuItemActionRight, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_seeds_react_icon2.Icon, { name: "chevron-right-outline" }) })
3147
1460
  ] })
3148
1461
  }
3149
1462
  );
@@ -3173,17 +1486,17 @@ var SubmenuItem = ({
3173
1486
  itemsMap,
3174
1487
  isOpen: parentIsOpen
3175
1488
  } = useMenuContentContext();
3176
- const [submenuIsFocused, setSubmenuIsFocused] = import_react16.default.useState(false);
3177
- const [submenuIsOpen, setSubmenuIsOpen] = import_react16.default.useState(false);
3178
- const [submenuIsActive, setSubmenuIsActive] = import_react16.default.useState(false);
3179
- const submenuItemRef = import_react16.default.useRef(null);
3180
- const submenuRef = import_react16.default.useRef(null);
1489
+ const [submenuIsFocused, setSubmenuIsFocused] = import_react14.default.useState(false);
1490
+ const [submenuIsOpen, setSubmenuIsOpen] = import_react14.default.useState(false);
1491
+ const [submenuIsActive, setSubmenuIsActive] = import_react14.default.useState(false);
1492
+ const submenuItemRef = import_react14.default.useRef(null);
1493
+ const submenuRef = import_react14.default.useRef(null);
3181
1494
  const menuContent = menuItems ? getChildrenFromMenuItems({ menuItems, MenuItemComponent }) : menuChildren;
3182
1495
  const item = itemsMap[id] || {
3183
1496
  index: 0,
3184
1497
  id
3185
1498
  };
3186
- import_react16.default.useEffect(() => {
1499
+ import_react14.default.useEffect(() => {
3187
1500
  if (highlightedIndex === item.index) {
3188
1501
  !submenuIsOpen && setSubmenuIsOpen(true);
3189
1502
  } else if (submenuIsOpen && highlightedIndex !== -1) {
@@ -3191,7 +1504,7 @@ var SubmenuItem = ({
3191
1504
  setSubmenuIsActive(false);
3192
1505
  }
3193
1506
  }, [highlightedIndex, item.index, submenuIsOpen, setSubmenuIsOpen]);
3194
- const onSubmenuStateChange = import_react16.default.useCallback(
1507
+ const onSubmenuStateChange = import_react14.default.useCallback(
3195
1508
  (state) => {
3196
1509
  if (state.isOpen !== void 0) {
3197
1510
  setSubmenuIsOpen(state.isOpen);
@@ -3235,7 +1548,7 @@ var SubmenuItem = ({
3235
1548
  onMenuItemClick();
3236
1549
  }
3237
1550
  };
3238
- import_react16.default.useEffect(() => {
1551
+ import_react14.default.useEffect(() => {
3239
1552
  if (document && document.body) {
3240
1553
  document.body.addEventListener("click", onBodyClick, {
3241
1554
  capture: true
@@ -3253,7 +1566,7 @@ var SubmenuItem = ({
3253
1566
  };
3254
1567
  }
3255
1568
  }, [document, onSubmenuKeydown]);
3256
- const subMenuContent = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1569
+ const subMenuContent = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3257
1570
  "div",
3258
1571
  {
3259
1572
  ref: submenuRef,
@@ -3264,13 +1577,13 @@ var SubmenuItem = ({
3264
1577
  children: menuContent
3265
1578
  }
3266
1579
  );
3267
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1580
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3268
1581
  MenuComponent,
3269
1582
  {
3270
1583
  ...{
3271
1584
  ...menuProps,
3272
1585
  children: subMenuContent,
3273
- menuToggleElement: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1586
+ menuToggleElement: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3274
1587
  SubmenuItemTrigger,
3275
1588
  {
3276
1589
  innerRef: submenuItemRef,
@@ -3302,28 +1615,28 @@ var SubmenuItem = ({
3302
1615
  SubmenuItem.__MENU_PRIMITIVE_TYPE = "MenuItem";
3303
1616
 
3304
1617
  // src/ListboxToggleButton.tsx
3305
- var import_styled_components13 = __toESM(require("styled-components"));
1618
+ var import_styled_components10 = __toESM(require("styled-components"));
3306
1619
  var import_seeds_react_icon3 = require("@sproutsocial/seeds-react-icon");
3307
- var import_jsx_runtime18 = require("react/jsx-runtime");
3308
- var StyledListboxToggleButton = (0, import_styled_components13.default)(
1620
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1621
+ var StyledListboxToggleButton = (0, import_styled_components10.default)(
3309
1622
  MenuToggleButton
3310
1623
  )`
3311
- ${(props) => props.invalid && import_styled_components13.css`
1624
+ ${(props) => props.invalid && import_styled_components10.css`
3312
1625
  border-color: ${(props2) => props2.theme.colors.form.border.error};
3313
1626
  `}
3314
1627
  `;
3315
- var StyledChevron = import_styled_components13.default.div`
3316
- margin-left: ${({ theme: theme2 }) => theme2.space[300]};
1628
+ var StyledChevron = import_styled_components10.default.div`
1629
+ margin-left: ${({ theme }) => theme.space[300]};
3317
1630
  ${({ $isOpen }) => $isOpen && `
3318
1631
  transform: rotate(-180deg);
3319
1632
  `}
3320
1633
  transition: transform 0.15s;
3321
1634
 
3322
- ${({ invalid }) => invalid && import_styled_components13.css`
1635
+ ${({ invalid }) => invalid && import_styled_components10.css`
3323
1636
  color: ${(props) => props.theme.colors.icon.error};
3324
1637
  `}
3325
1638
  `;
3326
- var StyledInnerButton = import_styled_components13.default.div`
1639
+ var StyledInnerButton = import_styled_components10.default.div`
3327
1640
  display: flex;
3328
1641
  justify-content: space-between;
3329
1642
  `;
@@ -3332,18 +1645,18 @@ var ListboxToggleButton = ({
3332
1645
  ...buttonProps
3333
1646
  }) => {
3334
1647
  const { isOpen } = useMenuToggleContext();
3335
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StyledListboxToggleButton, { appearance: "secondary", ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(StyledInnerButton, { children: [
1648
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledListboxToggleButton, { appearance: "secondary", ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(StyledInnerButton, { children: [
3336
1649
  children,
3337
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StyledChevron, { $isOpen: isOpen, invalid: buttonProps.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_seeds_react_icon3.Icon, { name: "chevron-down-outline", fixedWidth: true, "aria-hidden": true }) })
1650
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledChevron, { $isOpen: isOpen, invalid: buttonProps.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_seeds_react_icon3.Icon, { name: "chevron-down-outline", fixedWidth: true, "aria-hidden": true }) })
3338
1651
  ] }) });
3339
1652
  };
3340
1653
 
3341
1654
  // src/ActionMenu/ActionMenu.tsx
3342
- var import_react18 = __toESM(require("react"));
1655
+ var import_react16 = __toESM(require("react"));
3343
1656
  var import_downshift3 = require("downshift");
3344
1657
 
3345
1658
  // src/hooks/useDownshiftDefaults.tsx
3346
- var import_react17 = __toESM(require("react"));
1659
+ var import_react15 = __toESM(require("react"));
3347
1660
 
3348
1661
  // src/reducers/useComboboxStateReducer.tsx
3349
1662
  var import_downshift = require("downshift");
@@ -3467,12 +1780,12 @@ var useDownshiftDefaults = ({
3467
1780
  isMulti = false,
3468
1781
  multiSelectProps = {}
3469
1782
  } = {}) => {
3470
- const [hiddenItemsMap, setHiddenItemsMap] = import_react17.default.useState({});
3471
- const hiddenItemsCount = import_react17.default.useMemo(
1783
+ const [hiddenItemsMap, setHiddenItemsMap] = import_react15.default.useState({});
1784
+ const hiddenItemsCount = import_react15.default.useMemo(
3472
1785
  () => Object.keys(hiddenItemsMap).filter(Boolean).length,
3473
1786
  [hiddenItemsMap]
3474
1787
  );
3475
- const isItemDisabled = import_react17.default.useCallback(
1788
+ const isItemDisabled = import_react15.default.useCallback(
3476
1789
  (item) => Boolean(item.disabled || hiddenItemsMap[item.id]),
3477
1790
  [hiddenItemsMap]
3478
1791
  );
@@ -3503,7 +1816,7 @@ var useDownshiftDefaults = ({
3503
1816
  };
3504
1817
 
3505
1818
  // src/ActionMenu/ActionMenu.tsx
3506
- var import_jsx_runtime19 = require("react/jsx-runtime");
1819
+ var import_jsx_runtime18 = require("react/jsx-runtime");
3507
1820
  var handleStateChange = (changes, currentSelectedItem) => {
3508
1821
  if (!(changes.type === import_downshift3.useSelect.stateChangeTypes.ToggleButtonKeyDownEnter || changes.type === import_downshift3.useSelect.stateChangeTypes.ToggleButtonKeyDownSpaceButton)) {
3509
1822
  return;
@@ -3551,7 +1864,7 @@ var ActionMenu = ({
3551
1864
  const { defaultDownshiftProps, ...restDefaults } = useDownshiftDefaults({
3552
1865
  isCombobox: false
3553
1866
  });
3554
- const [currentSelectedItem, setCurrentSelectedItem] = import_react18.default.useState(null);
1867
+ const [currentSelectedItem, setCurrentSelectedItem] = import_react16.default.useState(null);
3555
1868
  const { isOpen, ...useSelectReturnProps } = (0, import_downshift3.useSelect)({
3556
1869
  ...defaultDownshiftProps.select,
3557
1870
  items: allMenuItems,
@@ -3563,10 +1876,10 @@ var ActionMenu = ({
3563
1876
  ),
3564
1877
  ...useSelectProps
3565
1878
  });
3566
- (0, import_react18.useEffect)(() => {
1879
+ (0, import_react16.useEffect)(() => {
3567
1880
  setCurrentSelectedItem(useSelectReturnProps.selectedItem);
3568
1881
  }, [useSelectReturnProps.selectedItem]);
3569
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1882
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3570
1883
  MenuRootComponent,
3571
1884
  {
3572
1885
  ...{
@@ -3585,9 +1898,9 @@ var ActionMenu = ({
3585
1898
  };
3586
1899
 
3587
1900
  // src/SingleSelectMenu/SingleSelectMenu.tsx
3588
- var import_react19 = require("react");
1901
+ var import_react17 = require("react");
3589
1902
  var import_downshift4 = require("downshift");
3590
- var import_jsx_runtime20 = require("react/jsx-runtime");
1903
+ var import_jsx_runtime19 = require("react/jsx-runtime");
3591
1904
  var SingleSelectMenu = ({
3592
1905
  children: childrenProp,
3593
1906
  stateReducer: externalStateReducer,
@@ -3614,7 +1927,7 @@ var SingleSelectMenu = ({
3614
1927
  ),
3615
1928
  ...useSelectProps
3616
1929
  });
3617
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1930
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3618
1931
  MenuRootComponent,
3619
1932
  {
3620
1933
  ...{
@@ -3633,9 +1946,9 @@ var SingleSelectMenu = ({
3633
1946
  };
3634
1947
 
3635
1948
  // src/MultiSelectMenu/MultiSelectMenu.tsx
3636
- var import_react20 = require("react");
1949
+ var import_react18 = require("react");
3637
1950
  var import_downshift5 = require("downshift");
3638
- var import_jsx_runtime21 = require("react/jsx-runtime");
1951
+ var import_jsx_runtime20 = require("react/jsx-runtime");
3639
1952
  var MultiSelectMenu = ({
3640
1953
  children: childrenProp,
3641
1954
  menuItems,
@@ -3708,7 +2021,7 @@ var MultiSelectMenu = ({
3708
2021
  },
3709
2022
  ...useSelectProps
3710
2023
  });
3711
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2024
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3712
2025
  MenuRootComponent,
3713
2026
  {
3714
2027
  ...{
@@ -3736,12 +2049,12 @@ var MultiSelectMenu = ({
3736
2049
  };
3737
2050
 
3738
2051
  // src/Autocomplete/Autocomplete.tsx
3739
- var import_react23 = require("react");
2052
+ var import_react21 = require("react");
3740
2053
 
3741
2054
  // src/Autocomplete/SingleAutocomplete.tsx
3742
- var import_react21 = require("react");
2055
+ var import_react19 = require("react");
3743
2056
  var import_downshift6 = require("downshift");
3744
- var import_jsx_runtime22 = require("react/jsx-runtime");
2057
+ var import_jsx_runtime21 = require("react/jsx-runtime");
3745
2058
  var SingleAutocomplete = ({
3746
2059
  children: childrenProp,
3747
2060
  stateReducer: externalStateReducer,
@@ -3779,7 +2092,7 @@ var SingleAutocomplete = ({
3779
2092
  });
3780
2093
  const { isOpen, closeMenu, inputValue } = useComboboxReturnProps;
3781
2094
  const { popoutProps: userPopoutProps } = useComboboxProps;
3782
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2095
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3783
2096
  MenuRootComponent,
3784
2097
  {
3785
2098
  ...{
@@ -3801,9 +2114,9 @@ var SingleAutocomplete = ({
3801
2114
  };
3802
2115
 
3803
2116
  // src/Autocomplete/MultiAutocomplete.tsx
3804
- var import_react22 = __toESM(require("react"));
2117
+ var import_react20 = __toESM(require("react"));
3805
2118
  var import_downshift7 = require("downshift");
3806
- var import_jsx_runtime23 = require("react/jsx-runtime");
2119
+ var import_jsx_runtime22 = require("react/jsx-runtime");
3807
2120
  var MultiAutocomplete = ({
3808
2121
  children: childrenProp,
3809
2122
  stateReducer: externalStateReducer,
@@ -3829,22 +2142,22 @@ var MultiAutocomplete = ({
3829
2142
  menuItems,
3830
2143
  MenuItemComponent
3831
2144
  });
3832
- const [selectedItemsState, setSelectedItemsState] = import_react22.default.useState(initialSelectedItems);
3833
- const selectedItems = import_react22.default.useMemo(
2145
+ const [selectedItemsState, setSelectedItemsState] = import_react20.default.useState(initialSelectedItems);
2146
+ const selectedItems = import_react20.default.useMemo(
3834
2147
  () => selectedItemsProp || selectedItemsState,
3835
2148
  [selectedItemsProp, selectedItemsState]
3836
2149
  );
3837
- const selectedItemIds = import_react22.default.useMemo(
2150
+ const selectedItemIds = import_react20.default.useMemo(
3838
2151
  () => getSelectedItemIds(selectedItems),
3839
2152
  [selectedItems]
3840
2153
  );
3841
- const getIsItemVisibleMulti = import_react22.default.useCallback(
2154
+ const getIsItemVisibleMulti = import_react20.default.useCallback(
3842
2155
  (item, inputValue) => {
3843
2156
  return (showSelectedItemsInDropdown || !selectedItemIds[item.id]) && getIsItemVisible(item, inputValue);
3844
2157
  },
3845
2158
  [selectedItemIds, showSelectedItemsInDropdown, getIsItemVisible]
3846
2159
  );
3847
- const getShouldFilterMulti = import_react22.default.useCallback(
2160
+ const getShouldFilterMulti = import_react20.default.useCallback(
3848
2161
  (args) => {
3849
2162
  return !showSelectedItemsInDropdown && Object.keys(selectedItemIds).length > 0 || defaultGetShouldFilter(args);
3850
2163
  },
@@ -3869,7 +2182,7 @@ var MultiAutocomplete = ({
3869
2182
  getShouldFilter: getShouldFilterMulti,
3870
2183
  setHiddenItemsMap
3871
2184
  });
3872
- import_react22.default.useEffect(() => {
2185
+ import_react20.default.useEffect(() => {
3873
2186
  updateFilteredItems({ inputValue: "" });
3874
2187
  }, [selectedItemIds]);
3875
2188
  const useMultipleSelectionReturnProps = (0, import_downshift7.useMultipleSelection)({
@@ -3914,7 +2227,7 @@ var MultiAutocomplete = ({
3914
2227
  ...useComboboxProps
3915
2228
  });
3916
2229
  const { popoutProps: userPopoutProps } = useComboboxProps;
3917
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2230
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3918
2231
  MenuRootComponent,
3919
2232
  {
3920
2233
  ...{
@@ -3943,21 +2256,21 @@ var MultiAutocomplete = ({
3943
2256
  };
3944
2257
 
3945
2258
  // src/Autocomplete/Autocomplete.tsx
3946
- var import_jsx_runtime24 = require("react/jsx-runtime");
2259
+ var import_jsx_runtime23 = require("react/jsx-runtime");
3947
2260
  var Autocomplete = ({
3948
2261
  multiSelect = false,
3949
2262
  ...rest
3950
2263
  }) => {
3951
2264
  if (multiSelect) {
3952
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MultiAutocomplete, { ...rest });
2265
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MultiAutocomplete, { ...rest });
3953
2266
  }
3954
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SingleAutocomplete, { ...rest });
2267
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SingleAutocomplete, { ...rest });
3955
2268
  };
3956
2269
 
3957
2270
  // src/Autocomplete/AutocompleteInput.tsx
3958
- var import_react24 = require("react");
2271
+ var import_react22 = require("react");
3959
2272
  var import_seeds_react_input2 = require("@sproutsocial/seeds-react-input");
3960
- var import_jsx_runtime25 = require("react/jsx-runtime");
2273
+ var import_jsx_runtime24 = require("react/jsx-runtime");
3961
2274
  var AutocompleteInput = ({
3962
2275
  onKeyDown,
3963
2276
  onChange,
@@ -3968,7 +2281,7 @@ var AutocompleteInput = ({
3968
2281
  ...rest
3969
2282
  }) => {
3970
2283
  const { getInputComponentProps, inputValue, ref, ariaProps } = useMenuToggleContext();
3971
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2284
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3972
2285
  import_seeds_react_input2.Input,
3973
2286
  {
3974
2287
  id: "autocomplete_input",
@@ -3993,8 +2306,8 @@ var AutocompleteInput = ({
3993
2306
  };
3994
2307
 
3995
2308
  // src/Autocomplete/AutocompleteTokenInput.tsx
3996
- var import_react25 = require("react");
3997
- var import_jsx_runtime26 = require("react/jsx-runtime");
2309
+ var import_react23 = require("react");
2310
+ var import_jsx_runtime25 = require("react/jsx-runtime");
3998
2311
  var AutocompleteTokenInput = ({
3999
2312
  onKeyDown,
4000
2313
  onChange,
@@ -4013,7 +2326,7 @@ var AutocompleteTokenInput = ({
4013
2326
  ref,
4014
2327
  ariaProps
4015
2328
  } = useMenuToggleContext();
4016
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2329
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4017
2330
  MenuTokenInput,
4018
2331
  {
4019
2332
  id: "autocomplete_input",
@@ -4037,28 +2350,28 @@ var AutocompleteTokenInput = ({
4037
2350
 
4038
2351
  // src/Autocomplete/AutocompleteSelect.tsx
4039
2352
  var import_seeds_react_icon4 = __toESM(require("@sproutsocial/seeds-react-icon"));
4040
- var import_react26 = require("react");
4041
- var import_styled_components14 = __toESM(require("styled-components"));
2353
+ var import_react24 = require("react");
2354
+ var import_styled_components11 = __toESM(require("styled-components"));
4042
2355
  var import_seeds_react_input3 = require("@sproutsocial/seeds-react-input");
4043
- var import_jsx_runtime27 = require("react/jsx-runtime");
4044
- var StyledAutocompleteInput = (0, import_styled_components14.default)(AutocompleteInput)`
2356
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2357
+ var StyledAutocompleteInput = (0, import_styled_components11.default)(AutocompleteInput)`
4045
2358
  ${import_seeds_react_input3.Accessory} {
4046
2359
  pointer-events: none;
4047
2360
  }
4048
2361
  `;
4049
2362
  var AutocompleteSelect = (props) => {
4050
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2363
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4051
2364
  StyledAutocompleteInput,
4052
2365
  {
4053
- elemAfter: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_seeds_react_icon4.default, { name: "chevron-down" }),
2366
+ elemAfter: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_seeds_react_icon4.default, { name: "chevron-down" }),
4054
2367
  ...props
4055
2368
  }
4056
2369
  );
4057
2370
  };
4058
2371
 
4059
2372
  // src/NestedMenu/NestedMenu.tsx
4060
- var import_react32 = require("react");
4061
- var import_react33 = require("motion/react");
2373
+ var import_react30 = require("react");
2374
+ var import_react31 = require("motion/react");
4062
2375
  var import_downshift9 = require("downshift");
4063
2376
  var import_lodash = __toESM(require("lodash.uniqueid"));
4064
2377
 
@@ -4087,8 +2400,9 @@ var nestedMenuStateReducer = (_state, actionAndChanges) => {
4087
2400
  };
4088
2401
 
4089
2402
  // src/NestedMenu/NestedMenuContext.tsx
4090
- var import_react27 = require("react");
4091
- var import_jsx_runtime28 = require("react/jsx-runtime");
2403
+ var import_react25 = require("react");
2404
+ var import_unitless2 = require("@sproutsocial/seeds-motion/unitless");
2405
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4092
2406
  var defaultNestedMenuContext = {
4093
2407
  selectedMenuPath: [],
4094
2408
  setSelectedMenuId: () => {
@@ -4103,19 +2417,19 @@ var defaultNestedMenuContext = {
4103
2417
  activeMenuContext: defaultMenuContext,
4104
2418
  setActiveMenuContext: () => {
4105
2419
  },
4106
- animationSpeed: MOTION_DURATION_FAST
2420
+ animationSpeed: import_unitless2.MOTION_DURATION_FAST
4107
2421
  };
4108
- var NestedMenuContext = (0, import_react27.createContext)(
2422
+ var NestedMenuContext = (0, import_react25.createContext)(
4109
2423
  defaultNestedMenuContext
4110
2424
  );
4111
2425
  var NestedMenuProvider = ({
4112
2426
  children,
4113
2427
  ...nestedMenuProps
4114
2428
  }) => {
4115
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(NestedMenuContext.Provider, { value: nestedMenuProps, children });
2429
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(NestedMenuContext.Provider, { value: nestedMenuProps, children });
4116
2430
  };
4117
2431
  var useNestedMenuContext = () => {
4118
- const nestedMenuContextValue = (0, import_react27.useContext)(NestedMenuContext);
2432
+ const nestedMenuContextValue = (0, import_react25.useContext)(NestedMenuContext);
4119
2433
  if (nestedMenuContextValue === null) {
4120
2434
  throw new Error(
4121
2435
  "useNestedMenuContext must be used within a <NestedMenuContext.Provider />"
@@ -4125,13 +2439,13 @@ var useNestedMenuContext = () => {
4125
2439
  };
4126
2440
 
4127
2441
  // src/NestedMenu/NestedMenuContent.tsx
4128
- var import_react28 = require("react");
2442
+ var import_react26 = require("react");
4129
2443
  var import_seeds_react_utilities3 = require("@sproutsocial/seeds-react-utilities");
4130
2444
 
4131
2445
  // src/NestedMenu/NestedMenuItem.tsx
4132
2446
  var import_seeds_react_icon5 = require("@sproutsocial/seeds-react-icon");
4133
2447
  var import_seeds_react_box5 = require("@sproutsocial/seeds-react-box");
4134
- var import_jsx_runtime29 = require("react/jsx-runtime");
2448
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4135
2449
  var NestedMenuItem = ({
4136
2450
  children,
4137
2451
  childMenuId,
@@ -4147,15 +2461,15 @@ var NestedMenuItem = ({
4147
2461
  }
4148
2462
  }
4149
2463
  } : {};
4150
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(MenuItem, { ...onClickProps, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_seeds_react_box5.Box, { display: "flex", justifyContent: "space-between", children: [
2464
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(MenuItem, { ...onClickProps, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_seeds_react_box5.Box, { display: "flex", justifyContent: "space-between", children: [
4151
2465
  children,
4152
- childMenuId && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(MenuItemActionRight, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_seeds_react_icon5.Icon, { name: "arrow-right-outline" }) })
2466
+ childMenuId && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(MenuItemActionRight, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_seeds_react_icon5.Icon, { name: "arrow-right-outline" }) })
4153
2467
  ] }) });
4154
2468
  };
4155
2469
  NestedMenuItem.__MENU_PRIMITIVE_TYPE = "MenuItem";
4156
2470
 
4157
2471
  // src/NestedMenu/NestedMenuContent.tsx
4158
- var import_jsx_runtime30 = require("react/jsx-runtime");
2472
+ var import_jsx_runtime29 = require("react/jsx-runtime");
4159
2473
  var NestedMenuContent = ({
4160
2474
  innerRef: innerRefProp = null,
4161
2475
  onKeyDown: onKeyDownProp,
@@ -4166,10 +2480,10 @@ var NestedMenuContent = ({
4166
2480
  }) => {
4167
2481
  const { highlightedIndex, items } = useMenuContentContext();
4168
2482
  const { setSelectedMenuId, selectedMenuPath, goBack } = useNestedMenuContext();
4169
- const internalRef = (0, import_react28.useRef)(null);
2483
+ const internalRef = (0, import_react26.useRef)(null);
4170
2484
  const innerRef = (0, import_seeds_react_utilities3.mergeRefs)(internalRef, innerRefProp);
4171
2485
  const contentProps = children ? { children } : { menuItems, MenuItemComponent };
4172
- (0, import_react28.useEffect)(() => {
2486
+ (0, import_react26.useEffect)(() => {
4173
2487
  internalRef?.current?.focus();
4174
2488
  }, []);
4175
2489
  const onKeyDown = (e) => {
@@ -4192,7 +2506,7 @@ var NestedMenuContent = ({
4192
2506
  break;
4193
2507
  }
4194
2508
  };
4195
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2509
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4196
2510
  MenuContent,
4197
2511
  {
4198
2512
  onKeyDown,
@@ -4207,19 +2521,19 @@ NestedMenuContent.__MENU_PRIMITIVE_TYPE = "MenuContent";
4207
2521
  // src/NestedMenu/NestedMenuHeader.tsx
4208
2522
  var import_seeds_react_button2 = require("@sproutsocial/seeds-react-button");
4209
2523
  var import_seeds_react_icon6 = require("@sproutsocial/seeds-react-icon");
4210
- var import_react29 = require("motion/react");
4211
- var import_jsx_runtime31 = require("react/jsx-runtime");
2524
+ var import_react27 = require("motion/react");
2525
+ var import_jsx_runtime30 = require("react/jsx-runtime");
4212
2526
  var NestedMenuHeader = ({
4213
2527
  backArrowLabel,
4214
2528
  ...props
4215
2529
  }) => {
4216
2530
  const { goBack, selectedMenuPath, animationSpeed } = useNestedMenuContext();
4217
2531
  const showBackArrow = selectedMenuPath.length > 1;
4218
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2532
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4219
2533
  MenuHeader,
4220
2534
  {
4221
- leftAction: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react29.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4222
- import_react29.motion.div,
2535
+ leftAction: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react27.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2536
+ import_react27.motion.div,
4223
2537
  {
4224
2538
  initial: { opacity: 0 },
4225
2539
  animate: { opacity: 1 },
@@ -4227,7 +2541,7 @@ var NestedMenuHeader = ({
4227
2541
  opacity: 0,
4228
2542
  transition: { duration: animationSpeed }
4229
2543
  },
4230
- children: showBackArrow ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_seeds_react_button2.Button, { onClick: goBack, ariaLabel: backArrowLabel, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_seeds_react_icon6.Icon, { name: "arrow-left" }) }) : void 0
2544
+ children: showBackArrow ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_seeds_react_button2.Button, { onClick: goBack, ariaLabel: backArrowLabel, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_seeds_react_icon6.Icon, { name: "arrow-left" }) }) : void 0
4231
2545
  },
4232
2546
  `${selectedMenuPath}-header--button`
4233
2547
  ) }),
@@ -4236,9 +2550,12 @@ var NestedMenuHeader = ({
4236
2550
  );
4237
2551
  };
4238
2552
 
2553
+ // src/NestedMenu/NestedMenu.tsx
2554
+ var import_unitless3 = require("@sproutsocial/seeds-motion/unitless");
2555
+
4239
2556
  // src/NestedMenu/NestedMenuRoot.tsx
4240
- var import_react30 = __toESM(require("react"));
4241
- var import_jsx_runtime32 = require("react/jsx-runtime");
2557
+ var import_react28 = __toESM(require("react"));
2558
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4242
2559
  var NestedMenuRoot = ({
4243
2560
  children,
4244
2561
  menuToggleElement,
@@ -4246,32 +2563,32 @@ var NestedMenuRoot = ({
4246
2563
  }) => {
4247
2564
  const menuContext = useMenu(contextProps);
4248
2565
  const { setActiveMenuContext, selectedMenuPath } = useNestedMenuContext();
4249
- import_react30.default.useEffect(() => {
2566
+ import_react28.default.useEffect(() => {
4250
2567
  setActiveMenuContext(menuContext);
4251
2568
  }, [
4252
2569
  selectedMenuPath[selectedMenuPath.length - 1],
4253
2570
  menuContext.selectedItem,
4254
2571
  menuContext.selectedItems?.length
4255
2572
  ]);
4256
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MenuContentProvider, { menuContext, children });
2573
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MenuContentProvider, { menuContext, children });
4257
2574
  };
4258
2575
 
4259
2576
  // src/NestedMenu/NestedMenuPopout.tsx
4260
- var import_react31 = require("motion/react");
4261
- var import_styled_components15 = __toESM(require("styled-components"));
4262
- var import_jsx_runtime33 = require("react/jsx-runtime");
4263
- var StyledDiv = (0, import_styled_components15.default)(import_react31.motion.div)`
2577
+ var import_react29 = require("motion/react");
2578
+ var import_styled_components12 = __toESM(require("styled-components"));
2579
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2580
+ var StyledDiv = (0, import_styled_components12.default)(import_react29.motion.div)`
4264
2581
  overflow: hidden;
4265
2582
  `;
4266
2583
  var NestedMenuPopout = ({
4267
2584
  content,
4268
2585
  menuToggleElement,
4269
- width: width2,
2586
+ width,
4270
2587
  onClose,
4271
2588
  ...popoutProps
4272
2589
  }) => {
4273
2590
  const { activeMenuContext, rootMenuContextProps, resetSelectedMenuPath } = useNestedMenuContext();
4274
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2591
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4275
2592
  MenuPopout,
4276
2593
  {
4277
2594
  lockPlacement: true,
@@ -4282,10 +2599,10 @@ var NestedMenuPopout = ({
4282
2599
  isOpen: !!rootMenuContextProps.isOpen,
4283
2600
  openMenu: rootMenuContextProps.openMenu,
4284
2601
  closeMenu: rootMenuContextProps.closeMenu,
4285
- width: width2,
4286
- content: (props) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(StyledDiv, { layout: "position", children: typeof content === "function" ? content(props) : content }),
2602
+ width,
2603
+ content: (props) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledDiv, { layout: "position", children: typeof content === "function" ? content(props) : content }),
4287
2604
  ...popoutProps,
4288
- children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2605
+ children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4289
2606
  MenuToggleProvider,
4290
2607
  {
4291
2608
  menuContext: {
@@ -4301,10 +2618,10 @@ var NestedMenuPopout = ({
4301
2618
  };
4302
2619
 
4303
2620
  // src/NestedMenu/NestedMenu.tsx
4304
- var import_jsx_runtime34 = require("react/jsx-runtime");
2621
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4305
2622
  var useId = () => {
4306
- const [id, setId] = (0, import_react32.useState)();
4307
- (0, import_react32.useEffect)(() => {
2623
+ const [id, setId] = (0, import_react30.useState)();
2624
+ (0, import_react30.useEffect)(() => {
4308
2625
  const uId = (0, import_lodash.default)();
4309
2626
  setId(uId);
4310
2627
  }, []);
@@ -4320,7 +2637,7 @@ var NestedMenu = ({
4320
2637
  scheduleUpdateRef: externalPopoutUpdateRef,
4321
2638
  ...restPopoutProps
4322
2639
  } = {},
4323
- width: width2 = "300px",
2640
+ width = "300px",
4324
2641
  stateReducer: rootExternalStateReducer,
4325
2642
  id: externalNestedMenuId,
4326
2643
  ...useSelectProps
@@ -4330,7 +2647,7 @@ var NestedMenu = ({
4330
2647
  });
4331
2648
  const uniqueId2 = useId();
4332
2649
  const nestedMenuId = externalNestedMenuId ?? `nested-menu-${uniqueId2}`;
4333
- const [hasLoadedOnce, setHasLoadedOnce] = (0, import_react32.useState)(false);
2650
+ const [hasLoadedOnce, setHasLoadedOnce] = (0, import_react30.useState)(false);
4334
2651
  const useSelectReturnProps = (0, import_downshift9.useSelect)({
4335
2652
  ...defaultDownshiftProps.select,
4336
2653
  id: nestedMenuId,
@@ -4346,7 +2663,7 @@ var NestedMenu = ({
4346
2663
  ...useSelectReturnProps,
4347
2664
  ...restDefaults
4348
2665
  };
4349
- (0, import_react32.useEffect)(() => {
2666
+ (0, import_react30.useEffect)(() => {
4350
2667
  if (!useSelectReturnProps.isOpen) {
4351
2668
  setHasLoadedOnce(false);
4352
2669
  } else {
@@ -4364,16 +2681,16 @@ var NestedMenu = ({
4364
2681
  onIsOpenChange: onNestedIsOpenChange
4365
2682
  };
4366
2683
  rootMenuContextProps.getMenuProps?.({}, { suppressRefError: true });
4367
- const [selectedMenuPath, setSelectedMenuPath] = (0, import_react32.useState)([initialMenuId]);
4368
- const [activeMenuContext, setActiveMenuContext] = (0, import_react32.useState)(defaultMenuContext);
4369
- const [currentMenuId, setCurrentMenuId] = (0, import_react32.useState)(initialMenuId);
4370
- const [isAdding, setIsAdding] = (0, import_react32.useState)(false);
4371
- const popoutUpdateRef = (0, import_react32.useRef)();
2684
+ const [selectedMenuPath, setSelectedMenuPath] = (0, import_react30.useState)([initialMenuId]);
2685
+ const [activeMenuContext, setActiveMenuContext] = (0, import_react30.useState)(defaultMenuContext);
2686
+ const [currentMenuId, setCurrentMenuId] = (0, import_react30.useState)(initialMenuId);
2687
+ const [isAdding, setIsAdding] = (0, import_react30.useState)(false);
2688
+ const popoutUpdateRef = (0, import_react30.useRef)();
4372
2689
  const setSelectedMenuId = (id) => {
4373
2690
  setIsAdding(true);
4374
2691
  setSelectedMenuPath((currentPath) => [...currentPath, id]);
4375
2692
  };
4376
- (0, import_react32.useEffect)(() => {
2693
+ (0, import_react30.useEffect)(() => {
4377
2694
  if (selectedMenuPath.length > 0) {
4378
2695
  const newMenuId = selectedMenuPath[selectedMenuPath.length - 1];
4379
2696
  setCurrentMenuId(newMenuId);
@@ -4405,7 +2722,7 @@ var NestedMenu = ({
4405
2722
  nestedMenuStateReducer,
4406
2723
  externalStateReducer
4407
2724
  );
4408
- const animationSpeed = MOTION_DURATION_FAST;
2725
+ const animationSpeed = import_unitless3.MOTION_DURATION_FAST;
4409
2726
  const contentVariants = {
4410
2727
  arrive: (custom = { hasLoadedOnce: false, isAdding: false }) => ({
4411
2728
  opacity: 0,
@@ -4467,8 +2784,8 @@ var NestedMenu = ({
4467
2784
  initialIsOpen: true,
4468
2785
  children: (
4469
2786
  // Handles the smooth animating of the content
4470
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react33.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
4471
- import_react33.motion.div,
2787
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react31.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2788
+ import_react31.motion.div,
4472
2789
  {
4473
2790
  variants: contentVariants,
4474
2791
  initial: "arrive",
@@ -4476,7 +2793,7 @@ var NestedMenu = ({
4476
2793
  exit: "leave",
4477
2794
  custom: { isAdding, hasLoadedOnce },
4478
2795
  children: [
4479
- MenuHeaderComponent && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2796
+ MenuHeaderComponent && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4480
2797
  MenuHeaderComponent,
4481
2798
  {
4482
2799
  backArrowLabel,
@@ -4484,7 +2801,7 @@ var NestedMenu = ({
4484
2801
  }
4485
2802
  ),
4486
2803
  children && children,
4487
- menuItems && !children && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2804
+ menuItems && !children && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4488
2805
  NestedMenuContent,
4489
2806
  {
4490
2807
  menuItems,
@@ -4498,10 +2815,10 @@ var NestedMenu = ({
4498
2815
  ),
4499
2816
  ...restMenuProps
4500
2817
  };
4501
- (0, import_react32.useEffect)(() => {
2818
+ (0, import_react30.useEffect)(() => {
4502
2819
  popoutUpdateRef.current?.();
4503
2820
  }, [nestedMenuProps.children]);
4504
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2821
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4505
2822
  NestedMenuProvider,
4506
2823
  {
4507
2824
  ...{
@@ -4515,24 +2832,24 @@ var NestedMenu = ({
4515
2832
  setActiveMenuContext,
4516
2833
  animationSpeed
4517
2834
  },
4518
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2835
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4519
2836
  NestedMenuPopout,
4520
2837
  {
4521
2838
  content: MenuComponent && // Handles the rerender of the component
4522
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react33.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4523
- import_react33.motion.div,
2839
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react31.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2840
+ import_react31.motion.div,
4524
2841
  {
4525
2842
  variants: menuVariants,
4526
2843
  initial: "arrive",
4527
2844
  animate: "enter",
4528
2845
  exit: "leave",
4529
2846
  custom: { isAdding, hasLoadedOnce },
4530
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(MenuComponent, { ...nestedMenuProps })
2847
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MenuComponent, { ...nestedMenuProps })
4531
2848
  },
4532
2849
  `${currentMenuId}-content`
4533
2850
  ) }),
4534
2851
  menuToggleElement,
4535
- width: width2,
2852
+ width,
4536
2853
  scheduleUpdateRef: (callback) => {
4537
2854
  popoutUpdateRef.current = callback;
4538
2855
  externalPopoutUpdateRef?.(callback);
@@ -4605,13 +2922,4 @@ var NestedMenu = ({
4605
2922
  useSelectStateReducer,
4606
2923
  useSelectStateReducerForMulti
4607
2924
  });
4608
- /*! Bundled license information:
4609
-
4610
- object-assign/index.js:
4611
- (*
4612
- object-assign
4613
- (c) Sindre Sorhus
4614
- @license MIT
4615
- *)
4616
- */
4617
2925
  //# sourceMappingURL=index.js.map