@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 +44 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Loader/Loader.d.ts +2 -0
- package/dist/cjs/types/components/Loader/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +44 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Loader/Loader.d.ts +2 -0
- package/dist/esm/types/components/Loader/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Loader';
|
|
@@ -14,6 +14,7 @@ export { default as FileUpload } from './components/FileUpload';
|
|
|
14
14
|
export { default as Heading } from './components/Heading';
|
|
15
15
|
export { default as Input } from './components/Input';
|
|
16
16
|
export { default as Link } from './components/Link';
|
|
17
|
+
export { default as Loader } from './components/Loader';
|
|
17
18
|
export { default as Logo } from './components/Logo';
|
|
18
19
|
export { default as Modal } from './components/Modal';
|
|
19
20
|
export { default as MoreMenu } from './components/MoreMenu';
|
package/dist/esm/index.js
CHANGED
|
@@ -1959,6 +1959,13 @@ var qe = function (e) {
|
|
|
1959
1959
|
["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) {
|
|
1960
1960
|
qe[e] = qe(e);
|
|
1961
1961
|
});
|
|
1962
|
+
function We(e) {
|
|
1963
|
+
"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.");
|
|
1964
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1965
|
+
var o = Ae.apply(void 0, [e].concat(n)).join(""),
|
|
1966
|
+
s = Te(o);
|
|
1967
|
+
return new ye(s, o);
|
|
1968
|
+
}
|
|
1962
1969
|
"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);
|
|
1963
1970
|
var styled = qe;
|
|
1964
1971
|
|
|
@@ -2435,8 +2442,8 @@ const Title = styled.span `
|
|
|
2435
2442
|
`;
|
|
2436
2443
|
const MoreMenu = (_a) => {
|
|
2437
2444
|
var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
|
|
2438
|
-
return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item) => {
|
|
2439
|
-
return (React.createElement(MenuItem, { onClick: item.onClick },
|
|
2445
|
+
return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
|
|
2446
|
+
return (React.createElement(MenuItem, { key: i, onClick: item.onClick },
|
|
2440
2447
|
item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
|
|
2441
2448
|
React.createElement(Title, null, item.label)));
|
|
2442
2449
|
})));
|
|
@@ -3522,6 +3529,40 @@ const Link = (_a) => {
|
|
|
3522
3529
|
return (React.createElement(Wrapper$8, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
3523
3530
|
};
|
|
3524
3531
|
|
|
3532
|
+
const dash = We `
|
|
3533
|
+
0% {
|
|
3534
|
+
stroke-dasharray: 1, 160;
|
|
3535
|
+
stroke-dashoffset: 0;
|
|
3536
|
+
}
|
|
3537
|
+
50% {
|
|
3538
|
+
stroke-dasharray: 80, 160;
|
|
3539
|
+
stroke-dashoffset: -32;
|
|
3540
|
+
}
|
|
3541
|
+
100% {
|
|
3542
|
+
stroke-dasharray: 80, 160;
|
|
3543
|
+
stroke-dashoffset: -124;
|
|
3544
|
+
}
|
|
3545
|
+
`;
|
|
3546
|
+
const Spinner = styled.svg `
|
|
3547
|
+
z-index: 2;
|
|
3548
|
+
position: absolute;
|
|
3549
|
+
top: 50%;
|
|
3550
|
+
left: 50%;
|
|
3551
|
+
margin: 0 auto;
|
|
3552
|
+
width: 40px;
|
|
3553
|
+
height: 40px;
|
|
3554
|
+
`;
|
|
3555
|
+
const Path = styled.path `
|
|
3556
|
+
stroke: #0193d7;
|
|
3557
|
+
stroke-linecap: round;
|
|
3558
|
+
-webkit-animation: ${dash} 1.1s ease-in-out infinite;
|
|
3559
|
+
animation: ${dash} 1.1s ease-in-out infinite;
|
|
3560
|
+
`;
|
|
3561
|
+
const Loader = () => {
|
|
3562
|
+
return (React.createElement(Spinner, { viewBox: '0 0 16 18' },
|
|
3563
|
+
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' })));
|
|
3564
|
+
};
|
|
3565
|
+
|
|
3525
3566
|
const colorMapping = {
|
|
3526
3567
|
black: {
|
|
3527
3568
|
fill_1: '#000000',
|
|
@@ -4128,5 +4169,5 @@ const ZeroState = (_a) => {
|
|
|
4128
4169
|
action && (React.createElement(Button, { children: action === null || action === void 0 ? void 0 : action.children, icon: action === null || action === void 0 ? void 0 : action.icon, onClick: action === null || action === void 0 ? void 0 : action.onClick }))));
|
|
4129
4170
|
};
|
|
4130
4171
|
|
|
4131
|
-
export { Accordion, ActionDialog, Alert, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input$1 as Input, Link, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState };
|
|
4172
|
+
export { Accordion, ActionDialog, Alert, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input$1 as Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState };
|
|
4132
4173
|
//# sourceMappingURL=index.js.map
|