@hexure/ui 1.8.7 → 1.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1961,6 +1961,13 @@ var qe = function (e) {
1961
1961
  ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
1962
1962
  qe[e] = qe(e);
1963
1963
  });
1964
+ function We(e) {
1965
+ "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1966
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
1967
+ var o = Ae.apply(void 0, [e].concat(n)).join(""),
1968
+ s = Te(o);
1969
+ return new ye(s, o);
1970
+ }
1964
1971
  "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1);
1965
1972
  var styled = qe;
1966
1973
 
@@ -2437,8 +2444,8 @@ const Title = styled.span `
2437
2444
  `;
2438
2445
  const MoreMenu = (_a) => {
2439
2446
  var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
2440
- return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item) => {
2441
- return (React.createElement(MenuItem, { onClick: item.onClick },
2447
+ return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
2448
+ return (React.createElement(MenuItem, { key: i, onClick: item.onClick },
2442
2449
  item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
2443
2450
  React.createElement(Title, null, item.label)));
2444
2451
  })));
@@ -3524,6 +3531,40 @@ const Link = (_a) => {
3524
3531
  return (React.createElement(Wrapper$8, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
3525
3532
  };
3526
3533
 
3534
+ const dash = We `
3535
+ 0% {
3536
+ stroke-dasharray: 1, 160;
3537
+ stroke-dashoffset: 0;
3538
+ }
3539
+ 50% {
3540
+ stroke-dasharray: 80, 160;
3541
+ stroke-dashoffset: -32;
3542
+ }
3543
+ 100% {
3544
+ stroke-dasharray: 80, 160;
3545
+ stroke-dashoffset: -124;
3546
+ }
3547
+ `;
3548
+ const Spinner = styled.svg `
3549
+ z-index: 2;
3550
+ position: absolute;
3551
+ top: 50%;
3552
+ left: 50%;
3553
+ margin: 0 auto;
3554
+ width: 40px;
3555
+ height: 40px;
3556
+ `;
3557
+ const Path = styled.path `
3558
+ stroke: #0193d7;
3559
+ stroke-linecap: round;
3560
+ -webkit-animation: ${dash} 1.1s ease-in-out infinite;
3561
+ animation: ${dash} 1.1s ease-in-out infinite;
3562
+ `;
3563
+ const Loader = () => {
3564
+ return (React.createElement(Spinner, { viewBox: '0 0 16 18' },
3565
+ React.createElement(Path, { d: 'M7.21487 1.2868C7.88431 0.9044 8.73031 0.9044 9.39974 1.2868L9.40283 1.28856L14.4613 4.20761C15.1684 4.598 15.5746 5.33558 15.5746 6.11465V8.99996V11.8853C15.5746 12.6507 15.1632 13.3848 14.4617 13.7721L9.37973 16.7132C8.71029 17.0956 7.86428 17.0956 7.19485 16.7132L7.19088 16.7109L2.11279 13.772C1.40602 13.3816 1 12.6441 1 11.8653V8.98995V6.11465C1 5.31458 1.44381 4.59039 2.10827 4.21051L7.21487 1.2868Z', fill: 'none', strokeWidth: '2' })));
3566
+ };
3567
+
3527
3568
  const colorMapping = {
3528
3569
  black: {
3529
3570
  fill_1: '#000000',
@@ -4146,6 +4187,7 @@ exports.FileUpload = FileUpload;
4146
4187
  exports.Heading = Heading;
4147
4188
  exports.Input = Input$1;
4148
4189
  exports.Link = Link;
4190
+ exports.Loader = Loader;
4149
4191
  exports.Logo = Logo;
4150
4192
  exports.Modal = Modal;
4151
4193
  exports.MoreMenu = MoreMenu;