@sproutsocial/seeds-react-modal 2.2.1 → 2.2.3
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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +17 -0
- package/dist/esm/{chunk-52SXX6AG.js → chunk-UP2XQN57.js} +6 -549
- package/dist/esm/chunk-UP2XQN57.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/index.js +5 -548
- package/dist/index.js.map +1 -1
- package/dist/v2/index.js +5 -548
- package/dist/v2/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/esm/chunk-52SXX6AG.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -853,553 +853,6 @@ var Dialog5 = __toESM(require("@radix-ui/react-dialog"));
|
|
|
853
853
|
var import_styled_components8 = __toESM(require("styled-components"));
|
|
854
854
|
var import_seeds_react_icon2 = __toESM(require("@sproutsocial/seeds-react-icon"));
|
|
855
855
|
|
|
856
|
-
// ../../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
857
|
-
function _extends() {
|
|
858
|
-
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
859
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
860
|
-
var t = arguments[e];
|
|
861
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
862
|
-
}
|
|
863
|
-
return n;
|
|
864
|
-
}, _extends.apply(null, arguments);
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
// ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
868
|
-
function _assertThisInitialized(e) {
|
|
869
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
870
|
-
return e;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
// ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
874
|
-
function _setPrototypeOf(t, e) {
|
|
875
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
876
|
-
return t2.__proto__ = e2, t2;
|
|
877
|
-
}, _setPrototypeOf(t, e);
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
// ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
881
|
-
function _inheritsLoose(t, o) {
|
|
882
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
// ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
886
|
-
function _getPrototypeOf(t) {
|
|
887
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
888
|
-
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
889
|
-
}, _getPrototypeOf(t);
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
// ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
|
|
893
|
-
function _isNativeFunction(t) {
|
|
894
|
-
try {
|
|
895
|
-
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
896
|
-
} catch (n) {
|
|
897
|
-
return "function" == typeof t;
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
// ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
902
|
-
function _isNativeReflectConstruct() {
|
|
903
|
-
try {
|
|
904
|
-
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
905
|
-
}));
|
|
906
|
-
} catch (t2) {
|
|
907
|
-
}
|
|
908
|
-
return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
|
|
909
|
-
return !!t;
|
|
910
|
-
})();
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
// ../../node_modules/@babel/runtime/helpers/esm/construct.js
|
|
914
|
-
function _construct(t, e, r) {
|
|
915
|
-
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
916
|
-
var o = [null];
|
|
917
|
-
o.push.apply(o, e);
|
|
918
|
-
var p = new (t.bind.apply(t, o))();
|
|
919
|
-
return r && _setPrototypeOf(p, r.prototype), p;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
// ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
|
|
923
|
-
function _wrapNativeSuper(t) {
|
|
924
|
-
var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
|
|
925
|
-
return _wrapNativeSuper = function _wrapNativeSuper2(t2) {
|
|
926
|
-
if (null === t2 || !_isNativeFunction(t2)) return t2;
|
|
927
|
-
if ("function" != typeof t2) throw new TypeError("Super expression must either be null or a function");
|
|
928
|
-
if (void 0 !== r) {
|
|
929
|
-
if (r.has(t2)) return r.get(t2);
|
|
930
|
-
r.set(t2, Wrapper);
|
|
931
|
-
}
|
|
932
|
-
function Wrapper() {
|
|
933
|
-
return _construct(t2, arguments, _getPrototypeOf(this).constructor);
|
|
934
|
-
}
|
|
935
|
-
return Wrapper.prototype = Object.create(t2.prototype, {
|
|
936
|
-
constructor: {
|
|
937
|
-
value: Wrapper,
|
|
938
|
-
enumerable: false,
|
|
939
|
-
writable: true,
|
|
940
|
-
configurable: true
|
|
941
|
-
}
|
|
942
|
-
}), _setPrototypeOf(Wrapper, t2);
|
|
943
|
-
}, _wrapNativeSuper(t);
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
// ../../node_modules/polished/dist/polished.esm.js
|
|
947
|
-
var ERRORS = {
|
|
948
|
-
"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",
|
|
949
|
-
"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",
|
|
950
|
-
"3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
|
|
951
|
-
"4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
|
|
952
|
-
"5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
|
|
953
|
-
"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",
|
|
954
|
-
"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",
|
|
955
|
-
"8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
|
|
956
|
-
"9": "Please provide a number of steps to the modularScale helper.\n\n",
|
|
957
|
-
"10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
|
|
958
|
-
"11": 'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',
|
|
959
|
-
"12": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',
|
|
960
|
-
"13": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',
|
|
961
|
-
"14": 'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
|
|
962
|
-
"15": 'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
|
|
963
|
-
"16": "You must provide a template to this method.\n\n",
|
|
964
|
-
"17": "You passed an unsupported selector state to this method.\n\n",
|
|
965
|
-
"18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
|
|
966
|
-
"19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
|
|
967
|
-
"20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
|
|
968
|
-
"21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
|
|
969
|
-
"22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
|
|
970
|
-
"23": "fontFace expects a name of a font-family.\n\n",
|
|
971
|
-
"24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
|
|
972
|
-
"25": "fontFace expects localFonts to be an array.\n\n",
|
|
973
|
-
"26": "fontFace expects fileFormats to be an array.\n\n",
|
|
974
|
-
"27": "radialGradient requries at least 2 color-stops to properly render.\n\n",
|
|
975
|
-
"28": "Please supply a filename to retinaImage() as the first argument.\n\n",
|
|
976
|
-
"29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
|
|
977
|
-
"30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
|
|
978
|
-
"31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
|
|
979
|
-
"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",
|
|
980
|
-
"33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
|
|
981
|
-
"34": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
|
|
982
|
-
"35": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
|
|
983
|
-
"36": "Property must be a string value.\n\n",
|
|
984
|
-
"37": "Syntax Error at %s.\n\n",
|
|
985
|
-
"38": "Formula contains a function that needs parentheses at %s.\n\n",
|
|
986
|
-
"39": "Formula is missing closing parenthesis at %s.\n\n",
|
|
987
|
-
"40": "Formula has too many closing parentheses at %s.\n\n",
|
|
988
|
-
"41": "All values in a formula must have the same unit or be unitless.\n\n",
|
|
989
|
-
"42": "Please provide a number of steps to the modularScale helper.\n\n",
|
|
990
|
-
"43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
|
|
991
|
-
"44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
|
|
992
|
-
"45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
|
|
993
|
-
"46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
|
|
994
|
-
"47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
|
|
995
|
-
"48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
|
|
996
|
-
"49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
|
|
997
|
-
"50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
|
|
998
|
-
"51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
|
|
999
|
-
"52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
|
|
1000
|
-
"53": "fontFace expects localFonts to be an array.\n\n",
|
|
1001
|
-
"54": "fontFace expects fileFormats to be an array.\n\n",
|
|
1002
|
-
"55": "fontFace expects a name of a font-family.\n\n",
|
|
1003
|
-
"56": "linearGradient requries at least 2 color-stops to properly render.\n\n",
|
|
1004
|
-
"57": "radialGradient requries at least 2 color-stops to properly render.\n\n",
|
|
1005
|
-
"58": "Please supply a filename to retinaImage() as the first argument.\n\n",
|
|
1006
|
-
"59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
|
|
1007
|
-
"60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
|
|
1008
|
-
"61": "Property must be a string value.\n\n",
|
|
1009
|
-
"62": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
|
|
1010
|
-
"63": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
|
|
1011
|
-
"64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
|
|
1012
|
-
"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",
|
|
1013
|
-
"66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
|
|
1014
|
-
"67": "You must provide a template to this method.\n\n",
|
|
1015
|
-
"68": "You passed an unsupported selector state to this method.\n\n",
|
|
1016
|
-
"69": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',
|
|
1017
|
-
"70": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',
|
|
1018
|
-
"71": 'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',
|
|
1019
|
-
"72": 'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',
|
|
1020
|
-
"73": "Please provide a valid CSS variable.\n\n",
|
|
1021
|
-
"74": "CSS variable not found.\n\n",
|
|
1022
|
-
"75": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
|
|
1023
|
-
};
|
|
1024
|
-
function format() {
|
|
1025
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1026
|
-
args[_key] = arguments[_key];
|
|
1027
|
-
}
|
|
1028
|
-
var a = args[0];
|
|
1029
|
-
var b = [];
|
|
1030
|
-
var c;
|
|
1031
|
-
for (c = 1; c < args.length; c += 1) {
|
|
1032
|
-
b.push(args[c]);
|
|
1033
|
-
}
|
|
1034
|
-
b.forEach(function(d) {
|
|
1035
|
-
a = a.replace(/%[a-z]/, d);
|
|
1036
|
-
});
|
|
1037
|
-
return a;
|
|
1038
|
-
}
|
|
1039
|
-
var PolishedError = /* @__PURE__ */ function(_Error) {
|
|
1040
|
-
_inheritsLoose(PolishedError2, _Error);
|
|
1041
|
-
function PolishedError2(code) {
|
|
1042
|
-
var _this;
|
|
1043
|
-
if (process.env.NODE_ENV === "production") {
|
|
1044
|
-
_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;
|
|
1045
|
-
} else {
|
|
1046
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1047
|
-
args[_key2 - 1] = arguments[_key2];
|
|
1048
|
-
}
|
|
1049
|
-
_this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
|
|
1050
|
-
}
|
|
1051
|
-
return _assertThisInitialized(_this);
|
|
1052
|
-
}
|
|
1053
|
-
return PolishedError2;
|
|
1054
|
-
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
1055
|
-
function colorToInt(color) {
|
|
1056
|
-
return Math.round(color * 255);
|
|
1057
|
-
}
|
|
1058
|
-
function convertToInt(red, green, blue) {
|
|
1059
|
-
return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
|
|
1060
|
-
}
|
|
1061
|
-
function hslToRgb(hue, saturation, lightness, convert) {
|
|
1062
|
-
if (convert === void 0) {
|
|
1063
|
-
convert = convertToInt;
|
|
1064
|
-
}
|
|
1065
|
-
if (saturation === 0) {
|
|
1066
|
-
return convert(lightness, lightness, lightness);
|
|
1067
|
-
}
|
|
1068
|
-
var huePrime = (hue % 360 + 360) % 360 / 60;
|
|
1069
|
-
var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
|
|
1070
|
-
var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
1071
|
-
var red = 0;
|
|
1072
|
-
var green = 0;
|
|
1073
|
-
var blue = 0;
|
|
1074
|
-
if (huePrime >= 0 && huePrime < 1) {
|
|
1075
|
-
red = chroma;
|
|
1076
|
-
green = secondComponent;
|
|
1077
|
-
} else if (huePrime >= 1 && huePrime < 2) {
|
|
1078
|
-
red = secondComponent;
|
|
1079
|
-
green = chroma;
|
|
1080
|
-
} else if (huePrime >= 2 && huePrime < 3) {
|
|
1081
|
-
green = chroma;
|
|
1082
|
-
blue = secondComponent;
|
|
1083
|
-
} else if (huePrime >= 3 && huePrime < 4) {
|
|
1084
|
-
green = secondComponent;
|
|
1085
|
-
blue = chroma;
|
|
1086
|
-
} else if (huePrime >= 4 && huePrime < 5) {
|
|
1087
|
-
red = secondComponent;
|
|
1088
|
-
blue = chroma;
|
|
1089
|
-
} else if (huePrime >= 5 && huePrime < 6) {
|
|
1090
|
-
red = chroma;
|
|
1091
|
-
blue = secondComponent;
|
|
1092
|
-
}
|
|
1093
|
-
var lightnessModification = lightness - chroma / 2;
|
|
1094
|
-
var finalRed = red + lightnessModification;
|
|
1095
|
-
var finalGreen = green + lightnessModification;
|
|
1096
|
-
var finalBlue = blue + lightnessModification;
|
|
1097
|
-
return convert(finalRed, finalGreen, finalBlue);
|
|
1098
|
-
}
|
|
1099
|
-
var namedColorMap = {
|
|
1100
|
-
aliceblue: "f0f8ff",
|
|
1101
|
-
antiquewhite: "faebd7",
|
|
1102
|
-
aqua: "00ffff",
|
|
1103
|
-
aquamarine: "7fffd4",
|
|
1104
|
-
azure: "f0ffff",
|
|
1105
|
-
beige: "f5f5dc",
|
|
1106
|
-
bisque: "ffe4c4",
|
|
1107
|
-
black: "000",
|
|
1108
|
-
blanchedalmond: "ffebcd",
|
|
1109
|
-
blue: "0000ff",
|
|
1110
|
-
blueviolet: "8a2be2",
|
|
1111
|
-
brown: "a52a2a",
|
|
1112
|
-
burlywood: "deb887",
|
|
1113
|
-
cadetblue: "5f9ea0",
|
|
1114
|
-
chartreuse: "7fff00",
|
|
1115
|
-
chocolate: "d2691e",
|
|
1116
|
-
coral: "ff7f50",
|
|
1117
|
-
cornflowerblue: "6495ed",
|
|
1118
|
-
cornsilk: "fff8dc",
|
|
1119
|
-
crimson: "dc143c",
|
|
1120
|
-
cyan: "00ffff",
|
|
1121
|
-
darkblue: "00008b",
|
|
1122
|
-
darkcyan: "008b8b",
|
|
1123
|
-
darkgoldenrod: "b8860b",
|
|
1124
|
-
darkgray: "a9a9a9",
|
|
1125
|
-
darkgreen: "006400",
|
|
1126
|
-
darkgrey: "a9a9a9",
|
|
1127
|
-
darkkhaki: "bdb76b",
|
|
1128
|
-
darkmagenta: "8b008b",
|
|
1129
|
-
darkolivegreen: "556b2f",
|
|
1130
|
-
darkorange: "ff8c00",
|
|
1131
|
-
darkorchid: "9932cc",
|
|
1132
|
-
darkred: "8b0000",
|
|
1133
|
-
darksalmon: "e9967a",
|
|
1134
|
-
darkseagreen: "8fbc8f",
|
|
1135
|
-
darkslateblue: "483d8b",
|
|
1136
|
-
darkslategray: "2f4f4f",
|
|
1137
|
-
darkslategrey: "2f4f4f",
|
|
1138
|
-
darkturquoise: "00ced1",
|
|
1139
|
-
darkviolet: "9400d3",
|
|
1140
|
-
deeppink: "ff1493",
|
|
1141
|
-
deepskyblue: "00bfff",
|
|
1142
|
-
dimgray: "696969",
|
|
1143
|
-
dimgrey: "696969",
|
|
1144
|
-
dodgerblue: "1e90ff",
|
|
1145
|
-
firebrick: "b22222",
|
|
1146
|
-
floralwhite: "fffaf0",
|
|
1147
|
-
forestgreen: "228b22",
|
|
1148
|
-
fuchsia: "ff00ff",
|
|
1149
|
-
gainsboro: "dcdcdc",
|
|
1150
|
-
ghostwhite: "f8f8ff",
|
|
1151
|
-
gold: "ffd700",
|
|
1152
|
-
goldenrod: "daa520",
|
|
1153
|
-
gray: "808080",
|
|
1154
|
-
green: "008000",
|
|
1155
|
-
greenyellow: "adff2f",
|
|
1156
|
-
grey: "808080",
|
|
1157
|
-
honeydew: "f0fff0",
|
|
1158
|
-
hotpink: "ff69b4",
|
|
1159
|
-
indianred: "cd5c5c",
|
|
1160
|
-
indigo: "4b0082",
|
|
1161
|
-
ivory: "fffff0",
|
|
1162
|
-
khaki: "f0e68c",
|
|
1163
|
-
lavender: "e6e6fa",
|
|
1164
|
-
lavenderblush: "fff0f5",
|
|
1165
|
-
lawngreen: "7cfc00",
|
|
1166
|
-
lemonchiffon: "fffacd",
|
|
1167
|
-
lightblue: "add8e6",
|
|
1168
|
-
lightcoral: "f08080",
|
|
1169
|
-
lightcyan: "e0ffff",
|
|
1170
|
-
lightgoldenrodyellow: "fafad2",
|
|
1171
|
-
lightgray: "d3d3d3",
|
|
1172
|
-
lightgreen: "90ee90",
|
|
1173
|
-
lightgrey: "d3d3d3",
|
|
1174
|
-
lightpink: "ffb6c1",
|
|
1175
|
-
lightsalmon: "ffa07a",
|
|
1176
|
-
lightseagreen: "20b2aa",
|
|
1177
|
-
lightskyblue: "87cefa",
|
|
1178
|
-
lightslategray: "789",
|
|
1179
|
-
lightslategrey: "789",
|
|
1180
|
-
lightsteelblue: "b0c4de",
|
|
1181
|
-
lightyellow: "ffffe0",
|
|
1182
|
-
lime: "0f0",
|
|
1183
|
-
limegreen: "32cd32",
|
|
1184
|
-
linen: "faf0e6",
|
|
1185
|
-
magenta: "f0f",
|
|
1186
|
-
maroon: "800000",
|
|
1187
|
-
mediumaquamarine: "66cdaa",
|
|
1188
|
-
mediumblue: "0000cd",
|
|
1189
|
-
mediumorchid: "ba55d3",
|
|
1190
|
-
mediumpurple: "9370db",
|
|
1191
|
-
mediumseagreen: "3cb371",
|
|
1192
|
-
mediumslateblue: "7b68ee",
|
|
1193
|
-
mediumspringgreen: "00fa9a",
|
|
1194
|
-
mediumturquoise: "48d1cc",
|
|
1195
|
-
mediumvioletred: "c71585",
|
|
1196
|
-
midnightblue: "191970",
|
|
1197
|
-
mintcream: "f5fffa",
|
|
1198
|
-
mistyrose: "ffe4e1",
|
|
1199
|
-
moccasin: "ffe4b5",
|
|
1200
|
-
navajowhite: "ffdead",
|
|
1201
|
-
navy: "000080",
|
|
1202
|
-
oldlace: "fdf5e6",
|
|
1203
|
-
olive: "808000",
|
|
1204
|
-
olivedrab: "6b8e23",
|
|
1205
|
-
orange: "ffa500",
|
|
1206
|
-
orangered: "ff4500",
|
|
1207
|
-
orchid: "da70d6",
|
|
1208
|
-
palegoldenrod: "eee8aa",
|
|
1209
|
-
palegreen: "98fb98",
|
|
1210
|
-
paleturquoise: "afeeee",
|
|
1211
|
-
palevioletred: "db7093",
|
|
1212
|
-
papayawhip: "ffefd5",
|
|
1213
|
-
peachpuff: "ffdab9",
|
|
1214
|
-
peru: "cd853f",
|
|
1215
|
-
pink: "ffc0cb",
|
|
1216
|
-
plum: "dda0dd",
|
|
1217
|
-
powderblue: "b0e0e6",
|
|
1218
|
-
purple: "800080",
|
|
1219
|
-
rebeccapurple: "639",
|
|
1220
|
-
red: "f00",
|
|
1221
|
-
rosybrown: "bc8f8f",
|
|
1222
|
-
royalblue: "4169e1",
|
|
1223
|
-
saddlebrown: "8b4513",
|
|
1224
|
-
salmon: "fa8072",
|
|
1225
|
-
sandybrown: "f4a460",
|
|
1226
|
-
seagreen: "2e8b57",
|
|
1227
|
-
seashell: "fff5ee",
|
|
1228
|
-
sienna: "a0522d",
|
|
1229
|
-
silver: "c0c0c0",
|
|
1230
|
-
skyblue: "87ceeb",
|
|
1231
|
-
slateblue: "6a5acd",
|
|
1232
|
-
slategray: "708090",
|
|
1233
|
-
slategrey: "708090",
|
|
1234
|
-
snow: "fffafa",
|
|
1235
|
-
springgreen: "00ff7f",
|
|
1236
|
-
steelblue: "4682b4",
|
|
1237
|
-
tan: "d2b48c",
|
|
1238
|
-
teal: "008080",
|
|
1239
|
-
thistle: "d8bfd8",
|
|
1240
|
-
tomato: "ff6347",
|
|
1241
|
-
turquoise: "40e0d0",
|
|
1242
|
-
violet: "ee82ee",
|
|
1243
|
-
wheat: "f5deb3",
|
|
1244
|
-
white: "fff",
|
|
1245
|
-
whitesmoke: "f5f5f5",
|
|
1246
|
-
yellow: "ff0",
|
|
1247
|
-
yellowgreen: "9acd32"
|
|
1248
|
-
};
|
|
1249
|
-
function nameToHex(color) {
|
|
1250
|
-
if (typeof color !== "string") return color;
|
|
1251
|
-
var normalizedColorName = color.toLowerCase();
|
|
1252
|
-
return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
|
|
1253
|
-
}
|
|
1254
|
-
var hexRegex = /^#[a-fA-F0-9]{6}$/;
|
|
1255
|
-
var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
|
|
1256
|
-
var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
|
|
1257
|
-
var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
|
|
1258
|
-
var rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
|
|
1259
|
-
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;
|
|
1260
|
-
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;
|
|
1261
|
-
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;
|
|
1262
|
-
function parseToRgb(color) {
|
|
1263
|
-
if (typeof color !== "string") {
|
|
1264
|
-
throw new PolishedError(3);
|
|
1265
|
-
}
|
|
1266
|
-
var normalizedColor = nameToHex(color);
|
|
1267
|
-
if (normalizedColor.match(hexRegex)) {
|
|
1268
|
-
return {
|
|
1269
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
1270
|
-
green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
|
|
1271
|
-
blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
|
|
1272
|
-
};
|
|
1273
|
-
}
|
|
1274
|
-
if (normalizedColor.match(hexRgbaRegex)) {
|
|
1275
|
-
var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
|
|
1276
|
-
return {
|
|
1277
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
1278
|
-
green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
|
|
1279
|
-
blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
|
|
1280
|
-
alpha
|
|
1281
|
-
};
|
|
1282
|
-
}
|
|
1283
|
-
if (normalizedColor.match(reducedHexRegex)) {
|
|
1284
|
-
return {
|
|
1285
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
1286
|
-
green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
|
|
1287
|
-
blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
|
|
1288
|
-
};
|
|
1289
|
-
}
|
|
1290
|
-
if (normalizedColor.match(reducedRgbaHexRegex)) {
|
|
1291
|
-
var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
|
|
1292
|
-
return {
|
|
1293
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
1294
|
-
green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
|
|
1295
|
-
blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
|
|
1296
|
-
alpha: _alpha
|
|
1297
|
-
};
|
|
1298
|
-
}
|
|
1299
|
-
var rgbMatched = rgbRegex.exec(normalizedColor);
|
|
1300
|
-
if (rgbMatched) {
|
|
1301
|
-
return {
|
|
1302
|
-
red: parseInt("" + rgbMatched[1], 10),
|
|
1303
|
-
green: parseInt("" + rgbMatched[2], 10),
|
|
1304
|
-
blue: parseInt("" + rgbMatched[3], 10)
|
|
1305
|
-
};
|
|
1306
|
-
}
|
|
1307
|
-
var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
|
|
1308
|
-
if (rgbaMatched) {
|
|
1309
|
-
return {
|
|
1310
|
-
red: parseInt("" + rgbaMatched[1], 10),
|
|
1311
|
-
green: parseInt("" + rgbaMatched[2], 10),
|
|
1312
|
-
blue: parseInt("" + rgbaMatched[3], 10),
|
|
1313
|
-
alpha: parseFloat("" + rgbaMatched[4])
|
|
1314
|
-
};
|
|
1315
|
-
}
|
|
1316
|
-
var hslMatched = hslRegex.exec(normalizedColor);
|
|
1317
|
-
if (hslMatched) {
|
|
1318
|
-
var hue = parseInt("" + hslMatched[1], 10);
|
|
1319
|
-
var saturation = parseInt("" + hslMatched[2], 10) / 100;
|
|
1320
|
-
var lightness = parseInt("" + hslMatched[3], 10) / 100;
|
|
1321
|
-
var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
|
|
1322
|
-
var hslRgbMatched = rgbRegex.exec(rgbColorString);
|
|
1323
|
-
if (!hslRgbMatched) {
|
|
1324
|
-
throw new PolishedError(4, normalizedColor, rgbColorString);
|
|
1325
|
-
}
|
|
1326
|
-
return {
|
|
1327
|
-
red: parseInt("" + hslRgbMatched[1], 10),
|
|
1328
|
-
green: parseInt("" + hslRgbMatched[2], 10),
|
|
1329
|
-
blue: parseInt("" + hslRgbMatched[3], 10)
|
|
1330
|
-
};
|
|
1331
|
-
}
|
|
1332
|
-
var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
|
|
1333
|
-
if (hslaMatched) {
|
|
1334
|
-
var _hue = parseInt("" + hslaMatched[1], 10);
|
|
1335
|
-
var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
|
|
1336
|
-
var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
|
|
1337
|
-
var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
|
|
1338
|
-
var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
|
|
1339
|
-
if (!_hslRgbMatched) {
|
|
1340
|
-
throw new PolishedError(4, normalizedColor, _rgbColorString);
|
|
1341
|
-
}
|
|
1342
|
-
return {
|
|
1343
|
-
red: parseInt("" + _hslRgbMatched[1], 10),
|
|
1344
|
-
green: parseInt("" + _hslRgbMatched[2], 10),
|
|
1345
|
-
blue: parseInt("" + _hslRgbMatched[3], 10),
|
|
1346
|
-
alpha: parseFloat("" + hslaMatched[4])
|
|
1347
|
-
};
|
|
1348
|
-
}
|
|
1349
|
-
throw new PolishedError(5);
|
|
1350
|
-
}
|
|
1351
|
-
var reduceHexValue = function reduceHexValue2(value) {
|
|
1352
|
-
if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
|
|
1353
|
-
return "#" + value[1] + value[3] + value[5];
|
|
1354
|
-
}
|
|
1355
|
-
return value;
|
|
1356
|
-
};
|
|
1357
|
-
function numberToHex(value) {
|
|
1358
|
-
var hex = value.toString(16);
|
|
1359
|
-
return hex.length === 1 ? "0" + hex : hex;
|
|
1360
|
-
}
|
|
1361
|
-
function rgb(value, green, blue) {
|
|
1362
|
-
if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
|
|
1363
|
-
return reduceHexValue("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
|
|
1364
|
-
} else if (typeof value === "object" && green === void 0 && blue === void 0) {
|
|
1365
|
-
return reduceHexValue("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
|
|
1366
|
-
}
|
|
1367
|
-
throw new PolishedError(6);
|
|
1368
|
-
}
|
|
1369
|
-
function rgba(firstValue, secondValue, thirdValue, fourthValue) {
|
|
1370
|
-
if (typeof firstValue === "string" && typeof secondValue === "number") {
|
|
1371
|
-
var rgbValue = parseToRgb(firstValue);
|
|
1372
|
-
return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
|
|
1373
|
-
} else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
|
|
1374
|
-
return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
|
|
1375
|
-
} else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
|
|
1376
|
-
return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
|
|
1377
|
-
}
|
|
1378
|
-
throw new PolishedError(7);
|
|
1379
|
-
}
|
|
1380
|
-
function curried(f, length, acc) {
|
|
1381
|
-
return function fn() {
|
|
1382
|
-
var combined = acc.concat(Array.prototype.slice.call(arguments));
|
|
1383
|
-
return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
|
|
1384
|
-
};
|
|
1385
|
-
}
|
|
1386
|
-
function curry(f) {
|
|
1387
|
-
return curried(f, f.length, []);
|
|
1388
|
-
}
|
|
1389
|
-
function guard(lowerBoundary, upperBoundary, value) {
|
|
1390
|
-
return Math.max(lowerBoundary, Math.min(upperBoundary, value));
|
|
1391
|
-
}
|
|
1392
|
-
function transparentize(amount, color) {
|
|
1393
|
-
if (color === "transparent") return color;
|
|
1394
|
-
var parsedColor = parseToRgb(color);
|
|
1395
|
-
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
1396
|
-
var colorWithAlpha = _extends({}, parsedColor, {
|
|
1397
|
-
alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
|
|
1398
|
-
});
|
|
1399
|
-
return rgba(colorWithAlpha);
|
|
1400
|
-
}
|
|
1401
|
-
var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
|
|
1402
|
-
|
|
1403
856
|
// ../seeds-react-mixins/dist/esm/index.js
|
|
1404
857
|
var import_styled_components7 = require("styled-components");
|
|
1405
858
|
var import_seeds_react_theme = require("@sproutsocial/seeds-react-theme");
|
|
@@ -1416,7 +869,11 @@ var visuallyHidden = import_styled_components7.css`
|
|
|
1416
869
|
var focusRing = import_styled_components7.css`
|
|
1417
870
|
box-shadow: 0 0 0 1px ${import_seeds_react_theme.theme.colors.button.primary.background.base},
|
|
1418
871
|
0 0px 0px 4px
|
|
1419
|
-
|
|
872
|
+
color-mix(
|
|
873
|
+
in srgb,
|
|
874
|
+
${import_seeds_react_theme.theme.colors.button.primary.background.base},
|
|
875
|
+
transparent 70%
|
|
876
|
+
);
|
|
1420
877
|
outline: none;
|
|
1421
878
|
|
|
1422
879
|
&::-moz-focus-inner {
|