@bcgov-sso/common-react-components 1.22.0 → 1.28.2

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.
Files changed (28) hide show
  1. package/dist/cjs/index.js +250 -5
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/Border/Border.d.ts +9 -0
  4. package/dist/cjs/types/components/Border/index.d.ts +1 -0
  5. package/dist/cjs/types/components/Header/Header.d.ts +8 -0
  6. package/dist/cjs/types/components/Header/index.d.ts +1 -0
  7. package/dist/cjs/types/components/InfoText/InfoText.d.ts +7 -0
  8. package/dist/cjs/types/components/InfoText/index.d.ts +1 -0
  9. package/dist/cjs/types/components/LastSavedMessage/LastSavedMessage.d.ts +8 -0
  10. package/dist/cjs/types/components/LastSavedMessage/index.d.ts +1 -0
  11. package/dist/cjs/types/components/SearchBar/SearchBar.d.ts +3 -0
  12. package/dist/cjs/types/components/SearchBar/index.d.ts +1 -0
  13. package/dist/cjs/types/components/index.d.ts +6 -1
  14. package/dist/esm/index.js +245 -6
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/components/Border/Border.d.ts +9 -0
  17. package/dist/esm/types/components/Border/index.d.ts +1 -0
  18. package/dist/esm/types/components/Header/Header.d.ts +8 -0
  19. package/dist/esm/types/components/Header/index.d.ts +1 -0
  20. package/dist/esm/types/components/InfoText/InfoText.d.ts +7 -0
  21. package/dist/esm/types/components/InfoText/index.d.ts +1 -0
  22. package/dist/esm/types/components/LastSavedMessage/LastSavedMessage.d.ts +8 -0
  23. package/dist/esm/types/components/LastSavedMessage/index.d.ts +1 -0
  24. package/dist/esm/types/components/SearchBar/SearchBar.d.ts +3 -0
  25. package/dist/esm/types/components/SearchBar/index.d.ts +1 -0
  26. package/dist/esm/types/components/index.d.ts +6 -1
  27. package/dist/index.d.ts +41 -7
  28. package/package.json +2 -1
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ color?: string;
4
+ round?: string;
5
+ borderWidth?: string;
6
+ children?: React.ReactNode;
7
+ }
8
+ declare const Border: ({ color, round, borderWidth, children }: Props) => JSX.Element;
9
+ export default Border;
@@ -0,0 +1 @@
1
+ export { default } from './Border';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ variant?: string;
4
+ size?: string;
5
+ children: React.ReactNode;
6
+ }
7
+ declare const Header: ({ variant, size, children }: Props) => JSX.Element;
8
+ export default Header;
@@ -0,0 +1 @@
1
+ export { default } from './Header';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ italic?: boolean;
4
+ children: React.ReactNode;
5
+ }
6
+ declare const InfoText: ({ italic, children }: Props) => JSX.Element;
7
+ export default InfoText;
@@ -0,0 +1 @@
1
+ export { default } from './InfoText';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ saving: boolean;
4
+ content?: string;
5
+ variant?: string;
6
+ }
7
+ declare function LastSavedMessage({ saving, content, variant }: Props): JSX.Element | null;
8
+ export default LastSavedMessage;
@@ -0,0 +1 @@
1
+ export { default } from './LastSavedMessage';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function SearchBar(props: any): JSX.Element;
3
+ export default SearchBar;
@@ -0,0 +1 @@
1
+ export { default } from './SearchBar';
@@ -3,4 +3,9 @@ export { default as NumberedContents } from './NumberedContents';
3
3
  export { default as Button } from './Button';
4
4
  export { default as Alert } from './Alert';
5
5
  export { default as Table } from './Table';
6
- export { default as Tabs } from './Tabs';
6
+ export { default as Tabs, Tab } from './Tabs';
7
+ export { default as SearchBar } from './SearchBar';
8
+ export { default as Header } from './Header';
9
+ export { default as InfoText } from './InfoText';
10
+ export { default as LastSavedMessage } from './LastSavedMessage';
11
+ export { default as Border } from './Border';
package/dist/esm/index.js CHANGED
@@ -6572,6 +6572,11 @@ var faAngleUp = {
6572
6572
  iconName: 'angle-up',
6573
6573
  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"]
6574
6574
  };
6575
+ var faCheck = {
6576
+ prefix: 'fas',
6577
+ iconName: 'check',
6578
+ 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"]
6579
+ };
6575
6580
  var faCircleCheck = {
6576
6581
  prefix: 'fas',
6577
6582
  iconName: 'circle-check',
@@ -6583,6 +6588,11 @@ var faInfo = {
6583
6588
  iconName: 'info',
6584
6589
  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"]
6585
6590
  };
6591
+ var faMagnifyingGlass = {
6592
+ prefix: 'fas',
6593
+ iconName: 'magnifying-glass',
6594
+ 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"]
6595
+ };
6586
6596
  var faTriangleExclamation = {
6587
6597
  prefix: 'fas',
6588
6598
  iconName: 'triangle-exclamation',
@@ -6606,7 +6616,7 @@ const SmoothTransition = qe.div `
6606
6616
  const Container = qe.div `
6607
6617
  margin: 10px 0;
6608
6618
  `;
6609
- const Header = qe.div `
6619
+ const Header$1 = qe.div `
6610
6620
  display: flex;
6611
6621
  justify-content: space-between;
6612
6622
  cursor: pointer;
@@ -6634,7 +6644,7 @@ function AccordionPanel({ title, hash, allOpen, setAllOpen, children }) {
6634
6644
  setOpen(true);
6635
6645
  }, [hash]);
6636
6646
  return (React__default.createElement(Container, null,
6637
- React__default.createElement(Header, { onClick: handleClick },
6647
+ React__default.createElement(Header$1, { onClick: handleClick },
6638
6648
  React__default.createElement("span", { id: id }, title),
6639
6649
  React__default.createElement(FontAwesomeIcon, { icon: open ? faAngleUp : faAngleDown, size: "2x" })),
6640
6650
  React__default.createElement(SmoothTransition, { open: open }, children)));
@@ -12690,6 +12700,16 @@ const Table = qe.table `
12690
12700
  text-align: left;
12691
12701
  }
12692
12702
 
12703
+ & th.text-right {
12704
+ text-align: right;
12705
+ padding-right: 1em;
12706
+ }
12707
+
12708
+ & td.text-right {
12709
+ text-align: right;
12710
+ padding-right: 2em;
12711
+ }
12712
+
12693
12713
  & th,
12694
12714
  & td {
12695
12715
  border: none;
@@ -15956,7 +15976,7 @@ function warnItemProp(_ref) {
15956
15976
  return restInfo;
15957
15977
  }
15958
15978
 
15959
- function Icon(_ref) {
15979
+ function Icon$2(_ref) {
15960
15980
  var icon = _ref.icon,
15961
15981
  props = _ref.props,
15962
15982
  children = _ref.children;
@@ -16184,7 +16204,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
16184
16204
  onClick: onInternalClick,
16185
16205
  onKeyDown: onInternalKeyDown,
16186
16206
  onFocus: onInternalFocus
16187
- }), children, /*#__PURE__*/React.createElement(Icon, {
16207
+ }), children, /*#__PURE__*/React.createElement(Icon$2, {
16188
16208
  props: _objectSpread2$1(_objectSpread2$1({}, props), {}, {
16189
16209
  isSelected: selected
16190
16210
  }),
@@ -20750,7 +20770,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
20750
20770
  "aria-disabled": mergedDisabled,
20751
20771
  onClick: onInternalTitleClick,
20752
20772
  onFocus: onInternalFocus
20753
- }, activeProps), title, /*#__PURE__*/React.createElement(Icon, {
20773
+ }, activeProps), title, /*#__PURE__*/React.createElement(Icon$2, {
20754
20774
  icon: mode !== 'horizontal' ? mergedExpandIcon : null,
20755
20775
  props: _objectSpread2$1(_objectSpread2$1({}, props), {}, {
20756
20776
  isOpen: open,
@@ -23291,6 +23311,225 @@ const StyledTabs = qe(ForwardTabs) `
23291
23311
  font-weight: 600;
23292
23312
  }
23293
23313
  `;
23314
+ const Tab = TabPane;
23315
+
23316
+ const Wrapper = qe.div `
23317
+ width: 100%;
23318
+ position: relative;
23319
+ `;
23320
+ const Icon$1 = qe.i `
23321
+ position: absolute;
23322
+ right: 0.5em;
23323
+ top: 0.5em;
23324
+ color: grey;
23325
+ `;
23326
+ const Input = qe.input `
23327
+ width: 100%;
23328
+ border: 2px solid #606060;
23329
+ padding: 0.3em 0.5em;
23330
+ border-radius: 0.25em;
23331
+ `;
23332
+ function SearchBar(props) {
23333
+ return (React__default.createElement(Wrapper, null,
23334
+ React__default.createElement(Input, Object.assign({ type: "text", maxLength: 100 }, props)),
23335
+ React__default.createElement(Icon$1, null,
23336
+ React__default.createElement(FontAwesomeIcon, { icon: faMagnifyingGlass }))));
23337
+ }
23338
+
23339
+ const sizeMap = {
23340
+ sm: '1.0rem',
23341
+ md: '1.2rem',
23342
+ lg: '1.4rem',
23343
+ };
23344
+ const colorMap$1 = {
23345
+ primary: '#0139ff',
23346
+ dark: '#000',
23347
+ };
23348
+ const StyledHeader = qe.div `
23349
+ font-weight: bold;
23350
+ ${(props) => `
23351
+ color: ${colorMap$1[props.variant || 'dark']};
23352
+ font-size: ${sizeMap[props.size || 'md']};
23353
+ `}
23354
+ `;
23355
+ const Header = ({ variant, size, children }) => {
23356
+ return (React__default.createElement(StyledHeader, { variant: variant, size: size }, children));
23357
+ };
23358
+
23359
+ const StyledInfoText = qe.div `
23360
+ font-size: 0.9rem;
23361
+ ${(props) => `
23362
+ font-style: ${props.italic ? 'italic' : 'normal'};
23363
+ `}
23364
+ `;
23365
+ const InfoText = ({ italic, children }) => {
23366
+ return React__default.createElement(StyledInfoText, { italic: italic }, children);
23367
+ };
23368
+
23369
+ /******************************************************************************
23370
+ Copyright (c) Microsoft Corporation.
23371
+
23372
+ Permission to use, copy, modify, and/or distribute this software for any
23373
+ purpose with or without fee is hereby granted.
23374
+
23375
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23376
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
23377
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23378
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23379
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23380
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23381
+ PERFORMANCE OF THIS SOFTWARE.
23382
+ ***************************************************************************** */
23383
+
23384
+ function __makeTemplateObject(cooked, raw) {
23385
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
23386
+ return cooked;
23387
+ }
23388
+
23389
+ /**
23390
+ * Returns the value of `props[path]` or `defaultValue`
23391
+ * @example
23392
+ * import styled from "styled-components";
23393
+ * import { prop } from "styled-tools";
23394
+ *
23395
+ * const Button = styled.button`
23396
+ * color: ${prop("color", "red")};
23397
+ * `;
23398
+ */
23399
+ var prop = function prop(path, defaultValue) {
23400
+ return function () {
23401
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
23402
+
23403
+ if (typeof props[path] !== "undefined") {
23404
+ return props[path];
23405
+ }
23406
+
23407
+ if (path && path.indexOf(".") > 0) {
23408
+ var paths = path.split(".");
23409
+ var length = paths.length;
23410
+ var object = props[paths[0]];
23411
+ var index = 1;
23412
+
23413
+ while (object != null && index < length) {
23414
+ object = object[paths[index]];
23415
+ index += 1;
23416
+ }
23417
+
23418
+ if (typeof object !== "undefined") {
23419
+ return object;
23420
+ }
23421
+ }
23422
+
23423
+ return defaultValue;
23424
+ };
23425
+ };
23426
+
23427
+ var len = 242.776657104492;
23428
+ var time = 1.6;
23429
+ 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);
23430
+ 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);
23431
+ var templateObject_1$3, templateObject_2$3;
23432
+
23433
+ 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"])));
23434
+ 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"])));
23435
+ 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);
23436
+ 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);
23437
+ var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4;
23438
+
23439
+ 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"])));
23440
+ var POINTS = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330];
23441
+ 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'));
23442
+ 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) {
23443
+ return props.width;
23444
+ });
23445
+ function RotatingLines(_a) {
23446
+ var _b = _a.strokeColor,
23447
+ strokeColor = _b === void 0 ? 'grey' : _b,
23448
+ _c = _a.strokeWidth,
23449
+ strokeWidth = _c === void 0 ? '5' : _c,
23450
+ _d = _a.animationDuration,
23451
+ animationDuration = _d === void 0 ? '0.75' : _d,
23452
+ _e = _a.width,
23453
+ width = _e === void 0 ? '96' : _e,
23454
+ _f = _a.visible,
23455
+ visible = _f === void 0 ? true : _f;
23456
+ var lines = useCallback(function () {
23457
+ return POINTS.map(function (point) {
23458
+ return /*#__PURE__*/React__default.createElement(Polyline, {
23459
+ key: point,
23460
+ points: "24,12 24,4",
23461
+ width: strokeWidth,
23462
+ transform: "rotate(" + point + ", 24, 24)"
23463
+ });
23464
+ });
23465
+ }, [strokeWidth]);
23466
+ return !visible ? null : /*#__PURE__*/React__default.createElement(Svg, {
23467
+ xmlns: "http://www.w3.org/2000/svg",
23468
+ viewBox: "0 0 48 48",
23469
+ width: width,
23470
+ stroke: strokeColor,
23471
+ speed: animationDuration,
23472
+ role: "status",
23473
+ "data-testid": "rotating-lines-svg"
23474
+ }, lines());
23475
+ }
23476
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1;
23477
+
23478
+ var dash = We(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n to {\n stroke-dashoffset: 136;\n }\n"], ["\n to {\n stroke-dashoffset: 136;\n }\n"])));
23479
+ 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);
23480
+ qe.svg(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n transform-origin: 50% 65%;\n"], ["\n transform-origin: 50% 65%;\n"])));
23481
+ var templateObject_1, templateObject_2, templateObject_3;
23482
+
23483
+ const Icon = qe.span `
23484
+ width: 30px;
23485
+ `;
23486
+ const SaveContainer = qe.div `
23487
+ display: flex;
23488
+ margin-top: 5px;
23489
+ `;
23490
+ const StyledP = qe.p `
23491
+ margin-left: 10px;
23492
+ margin-top: unset;
23493
+ `;
23494
+ function LastSavedMessage({ saving, content = '', variant = 'info' }) {
23495
+ if (!saving && !content)
23496
+ return null;
23497
+ const icon = variant === 'error' ? faExclamationTriangle : faCheck;
23498
+ return (React__default.createElement(React__default.Fragment, null,
23499
+ React__default.createElement(SaveContainer, null,
23500
+ React__default.createElement(Icon, null, saving ? (React__default.createElement(RotatingLines, { width: "20", visible: true })) : (React__default.createElement(FontAwesomeIcon, { style: { color: '#006fc4' }, icon: icon }))),
23501
+ React__default.createElement(StyledP, null, content))));
23502
+ }
23503
+
23504
+ const colorMap = {
23505
+ primary: '#0139ff',
23506
+ dark: '#000',
23507
+ };
23508
+ const radiusMap = {
23509
+ none: '',
23510
+ sm: '5px',
23511
+ md: '10px',
23512
+ lg: '20px',
23513
+ };
23514
+ const widthMap = {
23515
+ sm: '1px',
23516
+ md: '2px',
23517
+ lg: '3px',
23518
+ };
23519
+ const StyledBorder = qe.div `
23520
+ border-style: solid;
23521
+ width: 100%;
23522
+ height: auto;
23523
+ padding: 5px;
23524
+ ${(props) => `
23525
+ border-color: ${colorMap[props.color || 'primary']};
23526
+ border-width: ${widthMap[props.borderWidth || 'lg']};
23527
+ border-radius: ${radiusMap[props.round || 'md']};
23528
+ `}
23529
+ `;
23530
+ const Border = ({ color, round, borderWidth, children }) => {
23531
+ return (React__default.createElement(StyledBorder, { color: color, round: round, borderWidth: borderWidth }, children));
23532
+ };
23294
23533
 
23295
- export { Accordion, Alert, Button, NumberedContents, Table, StyledTabs as Tabs };
23534
+ export { Accordion, Alert, Border, Button, Header, InfoText, LastSavedMessage, NumberedContents, SearchBar, Tab, Table, StyledTabs as Tabs };
23296
23535
  //# sourceMappingURL=index.js.map