@bcgov-sso/common-react-components 1.22.0 → 1.28.0
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 +248 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Border/Border.d.ts +9 -0
- package/dist/cjs/types/components/Border/index.d.ts +1 -0
- package/dist/cjs/types/components/Header/Header.d.ts +8 -0
- package/dist/cjs/types/components/Header/index.d.ts +1 -0
- package/dist/cjs/types/components/InfoText/InfoText.d.ts +7 -0
- package/dist/cjs/types/components/InfoText/index.d.ts +1 -0
- package/dist/cjs/types/components/LastSavedMessage/LastSavedMessage.d.ts +8 -0
- package/dist/cjs/types/components/LastSavedMessage/index.d.ts +1 -0
- package/dist/cjs/types/components/SearchBar/SearchBar.d.ts +3 -0
- package/dist/cjs/types/components/SearchBar/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +5 -0
- package/dist/esm/index.js +244 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Border/Border.d.ts +9 -0
- package/dist/esm/types/components/Border/index.d.ts +1 -0
- package/dist/esm/types/components/Header/Header.d.ts +8 -0
- package/dist/esm/types/components/Header/index.d.ts +1 -0
- package/dist/esm/types/components/InfoText/InfoText.d.ts +7 -0
- package/dist/esm/types/components/InfoText/index.d.ts +1 -0
- package/dist/esm/types/components/LastSavedMessage/LastSavedMessage.d.ts +8 -0
- package/dist/esm/types/components/LastSavedMessage/index.d.ts +1 -0
- package/dist/esm/types/components/SearchBar/SearchBar.d.ts +3 -0
- package/dist/esm/types/components/SearchBar/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +5 -0
- package/dist/index.d.ts +38 -7
- package/package.json +2 -1
package/dist/cjs/index.js
CHANGED
|
@@ -6599,6 +6599,11 @@ var faAngleUp = {
|
|
|
6599
6599
|
iconName: 'angle-up',
|
|
6600
6600
|
icon: [384, 512, [8963], "f106", "M352 352c-8.188 0-16.38-3.125-22.62-9.375L192 205.3l-137.4 137.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25C368.4 348.9 360.2 352 352 352z"]
|
|
6601
6601
|
};
|
|
6602
|
+
var faCheck = {
|
|
6603
|
+
prefix: 'fas',
|
|
6604
|
+
iconName: 'check',
|
|
6605
|
+
icon: [448, 512, [10004, 10003], "f00c", "M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]
|
|
6606
|
+
};
|
|
6602
6607
|
var faCircleCheck = {
|
|
6603
6608
|
prefix: 'fas',
|
|
6604
6609
|
iconName: 'circle-check',
|
|
@@ -6610,6 +6615,11 @@ var faInfo = {
|
|
|
6610
6615
|
iconName: 'info',
|
|
6611
6616
|
icon: [192, 512, [], "f129", "M160 448h-32V224c0-17.69-14.33-32-32-32L32 192c-17.67 0-32 14.31-32 32s14.33 31.1 32 31.1h32v192H32c-17.67 0-32 14.31-32 32s14.33 32 32 32h128c17.67 0 32-14.31 32-32S177.7 448 160 448zM96 128c26.51 0 48-21.49 48-48S122.5 32.01 96 32.01s-48 21.49-48 48S69.49 128 96 128z"]
|
|
6612
6617
|
};
|
|
6618
|
+
var faMagnifyingGlass = {
|
|
6619
|
+
prefix: 'fas',
|
|
6620
|
+
iconName: 'magnifying-glass',
|
|
6621
|
+
icon: [512, 512, [128269, "search"], "f002", "M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]
|
|
6622
|
+
};
|
|
6613
6623
|
var faTriangleExclamation = {
|
|
6614
6624
|
prefix: 'fas',
|
|
6615
6625
|
iconName: 'triangle-exclamation',
|
|
@@ -6633,7 +6643,7 @@ const SmoothTransition = qe.div `
|
|
|
6633
6643
|
const Container = qe.div `
|
|
6634
6644
|
margin: 10px 0;
|
|
6635
6645
|
`;
|
|
6636
|
-
const Header = qe.div `
|
|
6646
|
+
const Header$1 = qe.div `
|
|
6637
6647
|
display: flex;
|
|
6638
6648
|
justify-content: space-between;
|
|
6639
6649
|
cursor: pointer;
|
|
@@ -6661,7 +6671,7 @@ function AccordionPanel({ title, hash, allOpen, setAllOpen, children }) {
|
|
|
6661
6671
|
setOpen(true);
|
|
6662
6672
|
}, [hash]);
|
|
6663
6673
|
return (React__default["default"].createElement(Container, null,
|
|
6664
|
-
React__default["default"].createElement(Header, { onClick: handleClick },
|
|
6674
|
+
React__default["default"].createElement(Header$1, { onClick: handleClick },
|
|
6665
6675
|
React__default["default"].createElement("span", { id: id }, title),
|
|
6666
6676
|
React__default["default"].createElement(FontAwesomeIcon, { icon: open ? faAngleUp : faAngleDown, size: "2x" })),
|
|
6667
6677
|
React__default["default"].createElement(SmoothTransition, { open: open }, children)));
|
|
@@ -12717,6 +12727,16 @@ const Table = qe.table `
|
|
|
12717
12727
|
text-align: left;
|
|
12718
12728
|
}
|
|
12719
12729
|
|
|
12730
|
+
& th.text-right {
|
|
12731
|
+
text-align: right;
|
|
12732
|
+
padding-right: 1em;
|
|
12733
|
+
}
|
|
12734
|
+
|
|
12735
|
+
& td.text-right {
|
|
12736
|
+
text-align: right;
|
|
12737
|
+
padding-right: 2em;
|
|
12738
|
+
}
|
|
12739
|
+
|
|
12720
12740
|
& th,
|
|
12721
12741
|
& td {
|
|
12722
12742
|
border: none;
|
|
@@ -15983,7 +16003,7 @@ function warnItemProp(_ref) {
|
|
|
15983
16003
|
return restInfo;
|
|
15984
16004
|
}
|
|
15985
16005
|
|
|
15986
|
-
function Icon(_ref) {
|
|
16006
|
+
function Icon$2(_ref) {
|
|
15987
16007
|
var icon = _ref.icon,
|
|
15988
16008
|
props = _ref.props,
|
|
15989
16009
|
children = _ref.children;
|
|
@@ -16211,7 +16231,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
16211
16231
|
onClick: onInternalClick,
|
|
16212
16232
|
onKeyDown: onInternalKeyDown,
|
|
16213
16233
|
onFocus: onInternalFocus
|
|
16214
|
-
}), children, /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
16234
|
+
}), children, /*#__PURE__*/React__namespace.createElement(Icon$2, {
|
|
16215
16235
|
props: _objectSpread2$1(_objectSpread2$1({}, props), {}, {
|
|
16216
16236
|
isSelected: selected
|
|
16217
16237
|
}),
|
|
@@ -20777,7 +20797,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
20777
20797
|
"aria-disabled": mergedDisabled,
|
|
20778
20798
|
onClick: onInternalTitleClick,
|
|
20779
20799
|
onFocus: onInternalFocus
|
|
20780
|
-
}, activeProps), title, /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
20800
|
+
}, activeProps), title, /*#__PURE__*/React__namespace.createElement(Icon$2, {
|
|
20781
20801
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
20782
20802
|
props: _objectSpread2$1(_objectSpread2$1({}, props), {}, {
|
|
20783
20803
|
isOpen: open,
|
|
@@ -23319,10 +23339,233 @@ const StyledTabs = qe(ForwardTabs) `
|
|
|
23319
23339
|
}
|
|
23320
23340
|
`;
|
|
23321
23341
|
|
|
23342
|
+
const Wrapper = qe.div `
|
|
23343
|
+
width: 100%;
|
|
23344
|
+
display: block;
|
|
23345
|
+
`;
|
|
23346
|
+
const Icon$1 = qe.i `
|
|
23347
|
+
position: relative;
|
|
23348
|
+
right: 30px;
|
|
23349
|
+
color: grey;
|
|
23350
|
+
top: 2px;
|
|
23351
|
+
`;
|
|
23352
|
+
const Input = qe.input `
|
|
23353
|
+
width: 50%;
|
|
23354
|
+
border: 2px solid gray;
|
|
23355
|
+
padding: 0.5em 0.6em;
|
|
23356
|
+
border-radius: 0.25em;
|
|
23357
|
+
`;
|
|
23358
|
+
function SearchBar(props) {
|
|
23359
|
+
return (React__default["default"].createElement(Wrapper, null,
|
|
23360
|
+
React__default["default"].createElement(Input, Object.assign({ type: "text", maxLength: 100 }, props)),
|
|
23361
|
+
React__default["default"].createElement(Icon$1, null,
|
|
23362
|
+
React__default["default"].createElement(FontAwesomeIcon, { icon: faMagnifyingGlass }))));
|
|
23363
|
+
}
|
|
23364
|
+
|
|
23365
|
+
const sizeMap = {
|
|
23366
|
+
sm: '1.0rem',
|
|
23367
|
+
md: '1.2rem',
|
|
23368
|
+
lg: '1.4rem',
|
|
23369
|
+
};
|
|
23370
|
+
const colorMap$1 = {
|
|
23371
|
+
primary: '#0139ff',
|
|
23372
|
+
dark: '#000',
|
|
23373
|
+
};
|
|
23374
|
+
const StyledHeader = qe.div `
|
|
23375
|
+
font-weight: bold;
|
|
23376
|
+
${(props) => `
|
|
23377
|
+
color: ${colorMap$1[props.variant || 'dark']};
|
|
23378
|
+
font-size: ${sizeMap[props.size || 'md']};
|
|
23379
|
+
`}
|
|
23380
|
+
`;
|
|
23381
|
+
const Header = ({ variant, size, children }) => {
|
|
23382
|
+
return (React__default["default"].createElement(StyledHeader, { variant: variant, size: size }, children));
|
|
23383
|
+
};
|
|
23384
|
+
|
|
23385
|
+
const StyledInfoText = qe.div `
|
|
23386
|
+
font-size: 0.9rem;
|
|
23387
|
+
${(props) => `
|
|
23388
|
+
font-style: ${props.italic ? 'italic' : 'normal'};
|
|
23389
|
+
`}
|
|
23390
|
+
`;
|
|
23391
|
+
const InfoText = ({ italic, children }) => {
|
|
23392
|
+
return React__default["default"].createElement(StyledInfoText, { italic: italic }, children);
|
|
23393
|
+
};
|
|
23394
|
+
|
|
23395
|
+
/******************************************************************************
|
|
23396
|
+
Copyright (c) Microsoft Corporation.
|
|
23397
|
+
|
|
23398
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
23399
|
+
purpose with or without fee is hereby granted.
|
|
23400
|
+
|
|
23401
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
23402
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
23403
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23404
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23405
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
23406
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23407
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
23408
|
+
***************************************************************************** */
|
|
23409
|
+
|
|
23410
|
+
function __makeTemplateObject(cooked, raw) {
|
|
23411
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
23412
|
+
return cooked;
|
|
23413
|
+
}
|
|
23414
|
+
|
|
23415
|
+
/**
|
|
23416
|
+
* Returns the value of `props[path]` or `defaultValue`
|
|
23417
|
+
* @example
|
|
23418
|
+
* import styled from "styled-components";
|
|
23419
|
+
* import { prop } from "styled-tools";
|
|
23420
|
+
*
|
|
23421
|
+
* const Button = styled.button`
|
|
23422
|
+
* color: ${prop("color", "red")};
|
|
23423
|
+
* `;
|
|
23424
|
+
*/
|
|
23425
|
+
var prop = function prop(path, defaultValue) {
|
|
23426
|
+
return function () {
|
|
23427
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
23428
|
+
|
|
23429
|
+
if (typeof props[path] !== "undefined") {
|
|
23430
|
+
return props[path];
|
|
23431
|
+
}
|
|
23432
|
+
|
|
23433
|
+
if (path && path.indexOf(".") > 0) {
|
|
23434
|
+
var paths = path.split(".");
|
|
23435
|
+
var length = paths.length;
|
|
23436
|
+
var object = props[paths[0]];
|
|
23437
|
+
var index = 1;
|
|
23438
|
+
|
|
23439
|
+
while (object != null && index < length) {
|
|
23440
|
+
object = object[paths[index]];
|
|
23441
|
+
index += 1;
|
|
23442
|
+
}
|
|
23443
|
+
|
|
23444
|
+
if (typeof object !== "undefined") {
|
|
23445
|
+
return object;
|
|
23446
|
+
}
|
|
23447
|
+
}
|
|
23448
|
+
|
|
23449
|
+
return defaultValue;
|
|
23450
|
+
};
|
|
23451
|
+
};
|
|
23452
|
+
|
|
23453
|
+
var len = 242.776657104492;
|
|
23454
|
+
var time = 1.6;
|
|
23455
|
+
var anim = We(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n 12.5% {\n stroke-dasharray: ", "px, ", "px;\n stroke-dashoffset: -", "px;\n }\n 43.75% {\n stroke-dasharray: ", "px, ", "px;\n stroke-dashoffset: -", "px;\n }\n 100% {\n stroke-dasharray: ", "px, ", "px;\n stroke-dashoffset: -", "px;\n }\n"], ["\n 12.5% {\n stroke-dasharray: ", "px, ", "px;\n stroke-dashoffset: -", "px;\n }\n 43.75% {\n stroke-dasharray: ", "px, ", "px;\n stroke-dashoffset: -", "px;\n }\n 100% {\n stroke-dasharray: ", "px, ", "px;\n stroke-dashoffset: -", "px;\n }\n"])), len * 0.14, len, len * 0.11, len * 0.35, len, len * 0.35, len * 0.01, len, len * 0.99);
|
|
23456
|
+
qe.path(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n stroke-dasharray: ", "px, ", ";\n stroke-dashoffset: 0;\n animation: ", " ", "s linear infinite;\n"], ["\n stroke-dasharray: ", "px, ", ";\n stroke-dashoffset: 0;\n animation: ", " ", "s linear infinite;\n"])), len * 0.01, len, anim, time);
|
|
23457
|
+
var templateObject_1$3, templateObject_2$3;
|
|
23458
|
+
|
|
23459
|
+
var loaderSpin = We(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n to {\n transform: rotate(360deg);\n }\n"], ["\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
23460
|
+
var loaderPath = We(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n 0% {\n stroke-dasharray: 0, 580, 0, 0, 0, 0, 0, 0, 0;\n }\n 50% {\n stroke-dasharray: 0, 450, 10, 30, 10, 30, 10, 30, 10;\n }\n 100% {\n stroke-dasharray: 0, 580, 0, 0, 0, 0, 0, 0, 0;\n }\n"], ["\n 0% {\n stroke-dasharray: 0, 580, 0, 0, 0, 0, 0, 0, 0;\n }\n 50% {\n stroke-dasharray: 0, 450, 10, 30, 10, 30, 10, 30, 10;\n }\n 100% {\n stroke-dasharray: 0, 580, 0, 0, 0, 0, 0, 0, 0;\n }\n"])));
|
|
23461
|
+
qe.svg(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n width: 230px;\n height: 230px;\n transform-origin: 115px 115px;\n animation: 1.4s linear infinite ", ";\n -webkit-animation: 1.4s linear infinite ", ";\n"], ["\n width: 230px;\n height: 230px;\n transform-origin: 115px 115px;\n animation: 1.4s linear infinite ", ";\n -webkit-animation: 1.4s linear infinite ", ";\n"])), loaderSpin, loaderSpin);
|
|
23462
|
+
qe.path(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n animation: 1.4s ease-in-out infinite ", ";\n -webkit-animation: 1.4s ease-in-out infinite ", ";\n"], ["\n animation: 1.4s ease-in-out infinite ", ";\n -webkit-animation: 1.4s ease-in-out infinite ", ";\n"])), loaderPath, loaderPath);
|
|
23463
|
+
var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4;
|
|
23464
|
+
|
|
23465
|
+
var spin = We(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n to {\n transform: rotate(360deg);\n }\n"], ["\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
23466
|
+
var POINTS = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330];
|
|
23467
|
+
var Svg = qe.svg(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n animation: ", " 0.75s steps(12, end) infinite;\n animation-duration: ", "s;\n"], ["\n animation: ", " 0.75s steps(12, end) infinite;\n animation-duration: ", "s;\n"])), spin, prop('speed', '0.75'));
|
|
23468
|
+
var Polyline = qe.polyline(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n stroke-width: ", "px;\n stroke-linecap: round;\n\n &:nth-child(12n + 0) {\n stroke-opacity: 0.08;\n }\n\n &:nth-child(12n + 1) {\n stroke-opacity: 0.17;\n }\n\n &:nth-child(12n + 2) {\n stroke-opacity: 0.25;\n }\n\n &:nth-child(12n + 3) {\n stroke-opacity: 0.33;\n }\n\n &:nth-child(12n + 4) {\n stroke-opacity: 0.42;\n }\n\n &:nth-child(12n + 5) {\n stroke-opacity: 0.5;\n }\n\n &:nth-child(12n + 6) {\n stroke-opacity: 0.58;\n }\n\n &:nth-child(12n + 7) {\n stroke-opacity: 0.66;\n }\n\n &:nth-child(12n + 8) {\n stroke-opacity: 0.75;\n }\n\n &:nth-child(12n + 9) {\n stroke-opacity: 0.83;\n }\n\n &:nth-child(12n + 11) {\n stroke-opacity: 0.92;\n }\n"], ["\n stroke-width: ", "px;\n stroke-linecap: round;\n\n &:nth-child(12n + 0) {\n stroke-opacity: 0.08;\n }\n\n &:nth-child(12n + 1) {\n stroke-opacity: 0.17;\n }\n\n &:nth-child(12n + 2) {\n stroke-opacity: 0.25;\n }\n\n &:nth-child(12n + 3) {\n stroke-opacity: 0.33;\n }\n\n &:nth-child(12n + 4) {\n stroke-opacity: 0.42;\n }\n\n &:nth-child(12n + 5) {\n stroke-opacity: 0.5;\n }\n\n &:nth-child(12n + 6) {\n stroke-opacity: 0.58;\n }\n\n &:nth-child(12n + 7) {\n stroke-opacity: 0.66;\n }\n\n &:nth-child(12n + 8) {\n stroke-opacity: 0.75;\n }\n\n &:nth-child(12n + 9) {\n stroke-opacity: 0.83;\n }\n\n &:nth-child(12n + 11) {\n stroke-opacity: 0.92;\n }\n"])), function (props) {
|
|
23469
|
+
return props.width;
|
|
23470
|
+
});
|
|
23471
|
+
function RotatingLines(_a) {
|
|
23472
|
+
var _b = _a.strokeColor,
|
|
23473
|
+
strokeColor = _b === void 0 ? 'grey' : _b,
|
|
23474
|
+
_c = _a.strokeWidth,
|
|
23475
|
+
strokeWidth = _c === void 0 ? '5' : _c,
|
|
23476
|
+
_d = _a.animationDuration,
|
|
23477
|
+
animationDuration = _d === void 0 ? '0.75' : _d,
|
|
23478
|
+
_e = _a.width,
|
|
23479
|
+
width = _e === void 0 ? '96' : _e,
|
|
23480
|
+
_f = _a.visible,
|
|
23481
|
+
visible = _f === void 0 ? true : _f;
|
|
23482
|
+
var lines = React.useCallback(function () {
|
|
23483
|
+
return POINTS.map(function (point) {
|
|
23484
|
+
return /*#__PURE__*/React__default["default"].createElement(Polyline, {
|
|
23485
|
+
key: point,
|
|
23486
|
+
points: "24,12 24,4",
|
|
23487
|
+
width: strokeWidth,
|
|
23488
|
+
transform: "rotate(" + point + ", 24, 24)"
|
|
23489
|
+
});
|
|
23490
|
+
});
|
|
23491
|
+
}, [strokeWidth]);
|
|
23492
|
+
return !visible ? null : /*#__PURE__*/React__default["default"].createElement(Svg, {
|
|
23493
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23494
|
+
viewBox: "0 0 48 48",
|
|
23495
|
+
width: width,
|
|
23496
|
+
stroke: strokeColor,
|
|
23497
|
+
speed: animationDuration,
|
|
23498
|
+
role: "status",
|
|
23499
|
+
"data-testid": "rotating-lines-svg"
|
|
23500
|
+
}, lines());
|
|
23501
|
+
}
|
|
23502
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1;
|
|
23503
|
+
|
|
23504
|
+
var dash = We(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n to {\n stroke-dashoffset: 136;\n }\n"], ["\n to {\n stroke-dashoffset: 136;\n }\n"])));
|
|
23505
|
+
qe.polygon(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n stroke-dasharray: 17;\n animation: ", " 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"], ["\n stroke-dasharray: 17;\n animation: ", " 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"])), dash);
|
|
23506
|
+
qe.svg(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n transform-origin: 50% 65%;\n"], ["\n transform-origin: 50% 65%;\n"])));
|
|
23507
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
23508
|
+
|
|
23509
|
+
const Icon = qe.span `
|
|
23510
|
+
width: 30px;
|
|
23511
|
+
`;
|
|
23512
|
+
const SaveContainer = qe.div `
|
|
23513
|
+
display: flex;
|
|
23514
|
+
margin-top: 5px;
|
|
23515
|
+
`;
|
|
23516
|
+
const StyledP = qe.p `
|
|
23517
|
+
margin-left: 10px;
|
|
23518
|
+
margin-top: unset;
|
|
23519
|
+
`;
|
|
23520
|
+
function LastSavedMessage({ saving, content = '', variant = 'info' }) {
|
|
23521
|
+
if (!saving && !content)
|
|
23522
|
+
return null;
|
|
23523
|
+
const icon = variant === 'error' ? faExclamationTriangle : faCheck;
|
|
23524
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
23525
|
+
React__default["default"].createElement(SaveContainer, null,
|
|
23526
|
+
React__default["default"].createElement(Icon, null, saving ? (React__default["default"].createElement(RotatingLines, { width: "20", visible: true })) : (React__default["default"].createElement(FontAwesomeIcon, { style: { color: '#006fc4' }, icon: icon }))),
|
|
23527
|
+
React__default["default"].createElement(StyledP, null, content))));
|
|
23528
|
+
}
|
|
23529
|
+
|
|
23530
|
+
const colorMap = {
|
|
23531
|
+
primary: '#0139ff',
|
|
23532
|
+
dark: '#000',
|
|
23533
|
+
};
|
|
23534
|
+
const radiusMap = {
|
|
23535
|
+
none: '',
|
|
23536
|
+
sm: '5px',
|
|
23537
|
+
md: '10px',
|
|
23538
|
+
lg: '20px',
|
|
23539
|
+
};
|
|
23540
|
+
const widthMap = {
|
|
23541
|
+
sm: '1px',
|
|
23542
|
+
md: '2px',
|
|
23543
|
+
lg: '3px',
|
|
23544
|
+
};
|
|
23545
|
+
const StyledBorder = qe.div `
|
|
23546
|
+
border-style: solid;
|
|
23547
|
+
width: 100%;
|
|
23548
|
+
height: auto;
|
|
23549
|
+
padding: 5px;
|
|
23550
|
+
${(props) => `
|
|
23551
|
+
border-color: ${colorMap[props.color || 'primary']};
|
|
23552
|
+
border-width: ${widthMap[props.borderWidth || 'lg']};
|
|
23553
|
+
border-radius: ${radiusMap[props.round || 'md']};
|
|
23554
|
+
`}
|
|
23555
|
+
`;
|
|
23556
|
+
const Border = ({ color, round, borderWidth, children }) => {
|
|
23557
|
+
return (React__default["default"].createElement(StyledBorder, { color: color, round: round, borderWidth: borderWidth }, children));
|
|
23558
|
+
};
|
|
23559
|
+
|
|
23322
23560
|
exports.Accordion = Accordion;
|
|
23323
23561
|
exports.Alert = Alert;
|
|
23562
|
+
exports.Border = Border;
|
|
23324
23563
|
exports.Button = Button;
|
|
23564
|
+
exports.Header = Header;
|
|
23565
|
+
exports.InfoText = InfoText;
|
|
23566
|
+
exports.LastSavedMessage = LastSavedMessage;
|
|
23325
23567
|
exports.NumberedContents = NumberedContents;
|
|
23568
|
+
exports.SearchBar = SearchBar;
|
|
23326
23569
|
exports.Table = Table;
|
|
23327
23570
|
exports.Tabs = StyledTabs;
|
|
23328
23571
|
//# sourceMappingURL=index.js.map
|