@sproutsocial/seeds-react-message 1.0.11 → 1.0.15

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.
@@ -8,14 +8,14 @@ $ tsup --dts
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 34.49 KB
12
- CJS dist/index.js.map 155.28 KB
13
- CJS ⚡️ Build success in 490ms
14
- ESM dist/esm/index.js 31.58 KB
15
- ESM dist/esm/index.js.map 155.20 KB
16
- ESM ⚡️ Build success in 474ms
11
+ CJS dist/index.js 11.65 KB
12
+ CJS dist/index.js.map 18.13 KB
13
+ CJS ⚡️ Build success in 300ms
14
+ ESM dist/esm/index.js 8.74 KB
15
+ ESM dist/esm/index.js.map 18.02 KB
16
+ ESM ⚡️ Build success in 286ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 14989ms
18
+ DTS ⚡️ Build success in 28005ms
19
19
  DTS dist/index.d.ts 2.34 KB
20
20
  DTS dist/index.d.mts 2.34 KB
21
- Done in 21.44s.
21
+ Done in 36.15s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @sproutsocial/seeds-react-message
2
2
 
3
+ ## 1.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - bc1aa4d: Remove tabindex from message container
8
+
9
+ ## 1.0.14
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [119f4b5]
14
+ - @sproutsocial/seeds-react-avatar@1.0.8
15
+
16
+ ## 1.0.13
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [750d1ea]
21
+ - @sproutsocial/seeds-react-theme@3.3.0
22
+ - @sproutsocial/seeds-react-button@1.3.9
23
+ - @sproutsocial/seeds-react-checkbox@1.3.12
24
+ - @sproutsocial/seeds-react-avatar@1.0.7
25
+
26
+ ## 1.0.12
27
+
28
+ ### Patch Changes
29
+
30
+ - @sproutsocial/seeds-react-button@1.3.8
31
+ - @sproutsocial/seeds-react-checkbox@1.3.11
32
+
3
33
  ## 1.0.11
4
34
 
5
35
  ### Patch Changes
package/dist/esm/index.js CHANGED
@@ -8,553 +8,6 @@ import Checkbox from "@sproutsocial/seeds-react-checkbox";
8
8
  import { memo } from "react";
9
9
  import styled2 from "styled-components";
10
10
 
11
- // ../../node_modules/@babel/runtime/helpers/esm/extends.js
12
- function _extends() {
13
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
14
- for (var e = 1; e < arguments.length; e++) {
15
- var t = arguments[e];
16
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
17
- }
18
- return n;
19
- }, _extends.apply(null, arguments);
20
- }
21
-
22
- // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
23
- function _assertThisInitialized(e) {
24
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
25
- return e;
26
- }
27
-
28
- // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
29
- function _setPrototypeOf(t, e) {
30
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
31
- return t2.__proto__ = e2, t2;
32
- }, _setPrototypeOf(t, e);
33
- }
34
-
35
- // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
36
- function _inheritsLoose(t, o) {
37
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
38
- }
39
-
40
- // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
41
- function _getPrototypeOf(t) {
42
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
43
- return t2.__proto__ || Object.getPrototypeOf(t2);
44
- }, _getPrototypeOf(t);
45
- }
46
-
47
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
48
- function _isNativeFunction(t) {
49
- try {
50
- return -1 !== Function.toString.call(t).indexOf("[native code]");
51
- } catch (n) {
52
- return "function" == typeof t;
53
- }
54
- }
55
-
56
- // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
57
- function _isNativeReflectConstruct() {
58
- try {
59
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
60
- }));
61
- } catch (t2) {
62
- }
63
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
64
- return !!t;
65
- })();
66
- }
67
-
68
- // ../../node_modules/@babel/runtime/helpers/esm/construct.js
69
- function _construct(t, e, r) {
70
- if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
71
- var o = [null];
72
- o.push.apply(o, e);
73
- var p = new (t.bind.apply(t, o))();
74
- return r && _setPrototypeOf(p, r.prototype), p;
75
- }
76
-
77
- // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
78
- function _wrapNativeSuper(t) {
79
- var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
80
- return _wrapNativeSuper = function _wrapNativeSuper2(t2) {
81
- if (null === t2 || !_isNativeFunction(t2)) return t2;
82
- if ("function" != typeof t2) throw new TypeError("Super expression must either be null or a function");
83
- if (void 0 !== r) {
84
- if (r.has(t2)) return r.get(t2);
85
- r.set(t2, Wrapper);
86
- }
87
- function Wrapper() {
88
- return _construct(t2, arguments, _getPrototypeOf(this).constructor);
89
- }
90
- return Wrapper.prototype = Object.create(t2.prototype, {
91
- constructor: {
92
- value: Wrapper,
93
- enumerable: false,
94
- writable: true,
95
- configurable: true
96
- }
97
- }), _setPrototypeOf(Wrapper, t2);
98
- }, _wrapNativeSuper(t);
99
- }
100
-
101
- // ../../node_modules/polished/dist/polished.esm.js
102
- var ERRORS = {
103
- "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",
104
- "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",
105
- "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
106
- "4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
107
- "5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
108
- "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",
109
- "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",
110
- "8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
111
- "9": "Please provide a number of steps to the modularScale helper.\n\n",
112
- "10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
113
- "11": 'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',
114
- "12": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',
115
- "13": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',
116
- "14": 'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
117
- "15": 'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
118
- "16": "You must provide a template to this method.\n\n",
119
- "17": "You passed an unsupported selector state to this method.\n\n",
120
- "18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
121
- "19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
122
- "20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
123
- "21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
124
- "22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
125
- "23": "fontFace expects a name of a font-family.\n\n",
126
- "24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
127
- "25": "fontFace expects localFonts to be an array.\n\n",
128
- "26": "fontFace expects fileFormats to be an array.\n\n",
129
- "27": "radialGradient requries at least 2 color-stops to properly render.\n\n",
130
- "28": "Please supply a filename to retinaImage() as the first argument.\n\n",
131
- "29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
132
- "30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
133
- "31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
134
- "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",
135
- "33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
136
- "34": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
137
- "35": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
138
- "36": "Property must be a string value.\n\n",
139
- "37": "Syntax Error at %s.\n\n",
140
- "38": "Formula contains a function that needs parentheses at %s.\n\n",
141
- "39": "Formula is missing closing parenthesis at %s.\n\n",
142
- "40": "Formula has too many closing parentheses at %s.\n\n",
143
- "41": "All values in a formula must have the same unit or be unitless.\n\n",
144
- "42": "Please provide a number of steps to the modularScale helper.\n\n",
145
- "43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
146
- "44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
147
- "45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
148
- "46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
149
- "47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
150
- "48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
151
- "49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
152
- "50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
153
- "51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
154
- "52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
155
- "53": "fontFace expects localFonts to be an array.\n\n",
156
- "54": "fontFace expects fileFormats to be an array.\n\n",
157
- "55": "fontFace expects a name of a font-family.\n\n",
158
- "56": "linearGradient requries at least 2 color-stops to properly render.\n\n",
159
- "57": "radialGradient requries at least 2 color-stops to properly render.\n\n",
160
- "58": "Please supply a filename to retinaImage() as the first argument.\n\n",
161
- "59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
162
- "60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
163
- "61": "Property must be a string value.\n\n",
164
- "62": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
165
- "63": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
166
- "64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
167
- "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",
168
- "66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
169
- "67": "You must provide a template to this method.\n\n",
170
- "68": "You passed an unsupported selector state to this method.\n\n",
171
- "69": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',
172
- "70": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',
173
- "71": 'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',
174
- "72": 'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',
175
- "73": "Please provide a valid CSS variable.\n\n",
176
- "74": "CSS variable not found.\n\n",
177
- "75": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
178
- };
179
- function format() {
180
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
181
- args[_key] = arguments[_key];
182
- }
183
- var a = args[0];
184
- var b = [];
185
- var c;
186
- for (c = 1; c < args.length; c += 1) {
187
- b.push(args[c]);
188
- }
189
- b.forEach(function(d) {
190
- a = a.replace(/%[a-z]/, d);
191
- });
192
- return a;
193
- }
194
- var PolishedError = /* @__PURE__ */ function(_Error) {
195
- _inheritsLoose(PolishedError2, _Error);
196
- function PolishedError2(code) {
197
- var _this;
198
- if (process.env.NODE_ENV === "production") {
199
- _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;
200
- } else {
201
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
202
- args[_key2 - 1] = arguments[_key2];
203
- }
204
- _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
205
- }
206
- return _assertThisInitialized(_this);
207
- }
208
- return PolishedError2;
209
- }(/* @__PURE__ */ _wrapNativeSuper(Error));
210
- function colorToInt(color) {
211
- return Math.round(color * 255);
212
- }
213
- function convertToInt(red, green, blue) {
214
- return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
215
- }
216
- function hslToRgb(hue, saturation, lightness, convert) {
217
- if (convert === void 0) {
218
- convert = convertToInt;
219
- }
220
- if (saturation === 0) {
221
- return convert(lightness, lightness, lightness);
222
- }
223
- var huePrime = (hue % 360 + 360) % 360 / 60;
224
- var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
225
- var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
226
- var red = 0;
227
- var green = 0;
228
- var blue = 0;
229
- if (huePrime >= 0 && huePrime < 1) {
230
- red = chroma;
231
- green = secondComponent;
232
- } else if (huePrime >= 1 && huePrime < 2) {
233
- red = secondComponent;
234
- green = chroma;
235
- } else if (huePrime >= 2 && huePrime < 3) {
236
- green = chroma;
237
- blue = secondComponent;
238
- } else if (huePrime >= 3 && huePrime < 4) {
239
- green = secondComponent;
240
- blue = chroma;
241
- } else if (huePrime >= 4 && huePrime < 5) {
242
- red = secondComponent;
243
- blue = chroma;
244
- } else if (huePrime >= 5 && huePrime < 6) {
245
- red = chroma;
246
- blue = secondComponent;
247
- }
248
- var lightnessModification = lightness - chroma / 2;
249
- var finalRed = red + lightnessModification;
250
- var finalGreen = green + lightnessModification;
251
- var finalBlue = blue + lightnessModification;
252
- return convert(finalRed, finalGreen, finalBlue);
253
- }
254
- var namedColorMap = {
255
- aliceblue: "f0f8ff",
256
- antiquewhite: "faebd7",
257
- aqua: "00ffff",
258
- aquamarine: "7fffd4",
259
- azure: "f0ffff",
260
- beige: "f5f5dc",
261
- bisque: "ffe4c4",
262
- black: "000",
263
- blanchedalmond: "ffebcd",
264
- blue: "0000ff",
265
- blueviolet: "8a2be2",
266
- brown: "a52a2a",
267
- burlywood: "deb887",
268
- cadetblue: "5f9ea0",
269
- chartreuse: "7fff00",
270
- chocolate: "d2691e",
271
- coral: "ff7f50",
272
- cornflowerblue: "6495ed",
273
- cornsilk: "fff8dc",
274
- crimson: "dc143c",
275
- cyan: "00ffff",
276
- darkblue: "00008b",
277
- darkcyan: "008b8b",
278
- darkgoldenrod: "b8860b",
279
- darkgray: "a9a9a9",
280
- darkgreen: "006400",
281
- darkgrey: "a9a9a9",
282
- darkkhaki: "bdb76b",
283
- darkmagenta: "8b008b",
284
- darkolivegreen: "556b2f",
285
- darkorange: "ff8c00",
286
- darkorchid: "9932cc",
287
- darkred: "8b0000",
288
- darksalmon: "e9967a",
289
- darkseagreen: "8fbc8f",
290
- darkslateblue: "483d8b",
291
- darkslategray: "2f4f4f",
292
- darkslategrey: "2f4f4f",
293
- darkturquoise: "00ced1",
294
- darkviolet: "9400d3",
295
- deeppink: "ff1493",
296
- deepskyblue: "00bfff",
297
- dimgray: "696969",
298
- dimgrey: "696969",
299
- dodgerblue: "1e90ff",
300
- firebrick: "b22222",
301
- floralwhite: "fffaf0",
302
- forestgreen: "228b22",
303
- fuchsia: "ff00ff",
304
- gainsboro: "dcdcdc",
305
- ghostwhite: "f8f8ff",
306
- gold: "ffd700",
307
- goldenrod: "daa520",
308
- gray: "808080",
309
- green: "008000",
310
- greenyellow: "adff2f",
311
- grey: "808080",
312
- honeydew: "f0fff0",
313
- hotpink: "ff69b4",
314
- indianred: "cd5c5c",
315
- indigo: "4b0082",
316
- ivory: "fffff0",
317
- khaki: "f0e68c",
318
- lavender: "e6e6fa",
319
- lavenderblush: "fff0f5",
320
- lawngreen: "7cfc00",
321
- lemonchiffon: "fffacd",
322
- lightblue: "add8e6",
323
- lightcoral: "f08080",
324
- lightcyan: "e0ffff",
325
- lightgoldenrodyellow: "fafad2",
326
- lightgray: "d3d3d3",
327
- lightgreen: "90ee90",
328
- lightgrey: "d3d3d3",
329
- lightpink: "ffb6c1",
330
- lightsalmon: "ffa07a",
331
- lightseagreen: "20b2aa",
332
- lightskyblue: "87cefa",
333
- lightslategray: "789",
334
- lightslategrey: "789",
335
- lightsteelblue: "b0c4de",
336
- lightyellow: "ffffe0",
337
- lime: "0f0",
338
- limegreen: "32cd32",
339
- linen: "faf0e6",
340
- magenta: "f0f",
341
- maroon: "800000",
342
- mediumaquamarine: "66cdaa",
343
- mediumblue: "0000cd",
344
- mediumorchid: "ba55d3",
345
- mediumpurple: "9370db",
346
- mediumseagreen: "3cb371",
347
- mediumslateblue: "7b68ee",
348
- mediumspringgreen: "00fa9a",
349
- mediumturquoise: "48d1cc",
350
- mediumvioletred: "c71585",
351
- midnightblue: "191970",
352
- mintcream: "f5fffa",
353
- mistyrose: "ffe4e1",
354
- moccasin: "ffe4b5",
355
- navajowhite: "ffdead",
356
- navy: "000080",
357
- oldlace: "fdf5e6",
358
- olive: "808000",
359
- olivedrab: "6b8e23",
360
- orange: "ffa500",
361
- orangered: "ff4500",
362
- orchid: "da70d6",
363
- palegoldenrod: "eee8aa",
364
- palegreen: "98fb98",
365
- paleturquoise: "afeeee",
366
- palevioletred: "db7093",
367
- papayawhip: "ffefd5",
368
- peachpuff: "ffdab9",
369
- peru: "cd853f",
370
- pink: "ffc0cb",
371
- plum: "dda0dd",
372
- powderblue: "b0e0e6",
373
- purple: "800080",
374
- rebeccapurple: "639",
375
- red: "f00",
376
- rosybrown: "bc8f8f",
377
- royalblue: "4169e1",
378
- saddlebrown: "8b4513",
379
- salmon: "fa8072",
380
- sandybrown: "f4a460",
381
- seagreen: "2e8b57",
382
- seashell: "fff5ee",
383
- sienna: "a0522d",
384
- silver: "c0c0c0",
385
- skyblue: "87ceeb",
386
- slateblue: "6a5acd",
387
- slategray: "708090",
388
- slategrey: "708090",
389
- snow: "fffafa",
390
- springgreen: "00ff7f",
391
- steelblue: "4682b4",
392
- tan: "d2b48c",
393
- teal: "008080",
394
- thistle: "d8bfd8",
395
- tomato: "ff6347",
396
- turquoise: "40e0d0",
397
- violet: "ee82ee",
398
- wheat: "f5deb3",
399
- white: "fff",
400
- whitesmoke: "f5f5f5",
401
- yellow: "ff0",
402
- yellowgreen: "9acd32"
403
- };
404
- function nameToHex(color) {
405
- if (typeof color !== "string") return color;
406
- var normalizedColorName = color.toLowerCase();
407
- return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
408
- }
409
- var hexRegex = /^#[a-fA-F0-9]{6}$/;
410
- var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
411
- var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
412
- var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
413
- var rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
414
- 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;
415
- 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;
416
- 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;
417
- function parseToRgb(color) {
418
- if (typeof color !== "string") {
419
- throw new PolishedError(3);
420
- }
421
- var normalizedColor = nameToHex(color);
422
- if (normalizedColor.match(hexRegex)) {
423
- return {
424
- red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
425
- green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
426
- blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
427
- };
428
- }
429
- if (normalizedColor.match(hexRgbaRegex)) {
430
- var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
431
- return {
432
- red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
433
- green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
434
- blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
435
- alpha
436
- };
437
- }
438
- if (normalizedColor.match(reducedHexRegex)) {
439
- return {
440
- red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
441
- green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
442
- blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
443
- };
444
- }
445
- if (normalizedColor.match(reducedRgbaHexRegex)) {
446
- var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
447
- return {
448
- red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
449
- green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
450
- blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
451
- alpha: _alpha
452
- };
453
- }
454
- var rgbMatched = rgbRegex.exec(normalizedColor);
455
- if (rgbMatched) {
456
- return {
457
- red: parseInt("" + rgbMatched[1], 10),
458
- green: parseInt("" + rgbMatched[2], 10),
459
- blue: parseInt("" + rgbMatched[3], 10)
460
- };
461
- }
462
- var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
463
- if (rgbaMatched) {
464
- return {
465
- red: parseInt("" + rgbaMatched[1], 10),
466
- green: parseInt("" + rgbaMatched[2], 10),
467
- blue: parseInt("" + rgbaMatched[3], 10),
468
- alpha: parseFloat("" + rgbaMatched[4])
469
- };
470
- }
471
- var hslMatched = hslRegex.exec(normalizedColor);
472
- if (hslMatched) {
473
- var hue = parseInt("" + hslMatched[1], 10);
474
- var saturation = parseInt("" + hslMatched[2], 10) / 100;
475
- var lightness = parseInt("" + hslMatched[3], 10) / 100;
476
- var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
477
- var hslRgbMatched = rgbRegex.exec(rgbColorString);
478
- if (!hslRgbMatched) {
479
- throw new PolishedError(4, normalizedColor, rgbColorString);
480
- }
481
- return {
482
- red: parseInt("" + hslRgbMatched[1], 10),
483
- green: parseInt("" + hslRgbMatched[2], 10),
484
- blue: parseInt("" + hslRgbMatched[3], 10)
485
- };
486
- }
487
- var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
488
- if (hslaMatched) {
489
- var _hue = parseInt("" + hslaMatched[1], 10);
490
- var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
491
- var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
492
- var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
493
- var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
494
- if (!_hslRgbMatched) {
495
- throw new PolishedError(4, normalizedColor, _rgbColorString);
496
- }
497
- return {
498
- red: parseInt("" + _hslRgbMatched[1], 10),
499
- green: parseInt("" + _hslRgbMatched[2], 10),
500
- blue: parseInt("" + _hslRgbMatched[3], 10),
501
- alpha: parseFloat("" + hslaMatched[4])
502
- };
503
- }
504
- throw new PolishedError(5);
505
- }
506
- var reduceHexValue = function reduceHexValue2(value) {
507
- if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
508
- return "#" + value[1] + value[3] + value[5];
509
- }
510
- return value;
511
- };
512
- function numberToHex(value) {
513
- var hex = value.toString(16);
514
- return hex.length === 1 ? "0" + hex : hex;
515
- }
516
- function rgb(value, green, blue) {
517
- if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
518
- return reduceHexValue("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
519
- } else if (typeof value === "object" && green === void 0 && blue === void 0) {
520
- return reduceHexValue("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
521
- }
522
- throw new PolishedError(6);
523
- }
524
- function rgba(firstValue, secondValue, thirdValue, fourthValue) {
525
- if (typeof firstValue === "string" && typeof secondValue === "number") {
526
- var rgbValue = parseToRgb(firstValue);
527
- return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
528
- } else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
529
- return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
530
- } else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
531
- return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
532
- }
533
- throw new PolishedError(7);
534
- }
535
- function curried(f, length, acc) {
536
- return function fn() {
537
- var combined = acc.concat(Array.prototype.slice.call(arguments));
538
- return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
539
- };
540
- }
541
- function curry(f) {
542
- return curried(f, f.length, []);
543
- }
544
- function guard(lowerBoundary, upperBoundary, value) {
545
- return Math.max(lowerBoundary, Math.min(upperBoundary, value));
546
- }
547
- function transparentize(amount, color) {
548
- if (color === "transparent") return color;
549
- var parsedColor = parseToRgb(color);
550
- var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
551
- var colorWithAlpha = _extends({}, parsedColor, {
552
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
553
- });
554
- return rgba(colorWithAlpha);
555
- }
556
- var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
557
-
558
11
  // ../seeds-react-mixins/dist/esm/index.js
559
12
  import { css } from "styled-components";
560
13
  import { theme } from "@sproutsocial/seeds-react-theme";
@@ -571,7 +24,11 @@ var visuallyHidden = css`
571
24
  var focusRing = css`
572
25
  box-shadow: 0 0 0 1px ${theme.colors.button.primary.background.base},
573
26
  0 0px 0px 4px
574
- ${curriedTransparentize(0.7, theme.colors.button.primary.background.base)};
27
+ color-mix(
28
+ in srgb,
29
+ ${theme.colors.button.primary.background.base},
30
+ transparent 70%
31
+ );
575
32
  outline: none;
576
33
 
577
34
  &::-moz-focus-inner {
@@ -781,7 +238,6 @@ var Message = ({
781
238
  borderColor,
782
239
  bg,
783
240
  ref: innerRef,
784
- tabIndex: 0,
785
241
  ...qa,
786
242
  ...rest,
787
243
  children