@luscii-healthtech/web-ui 0.1.18 → 0.1.21

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.
@@ -546,28 +546,6 @@
546
546
  .cweb-list-item.cweb-list-item-clickable:hover {
547
547
  background-color: #f2fafd; }
548
548
 
549
- .cweb-menu > .cweb-menu-content {
550
- min-width: 300px;
551
- border-radius: 4px;
552
- background-color: #ffffff; }
553
-
554
- .cweb-menu > .cweb-menu-button {
555
- display: flex;
556
- justify-content: flex-start;
557
- flex-direction: row;
558
- align-items: flex-start;
559
- width: 44px;
560
- height: 44px;
561
- background: url("../../assets/big-menu-icon.svg") no-repeat center;
562
- transition: 0.2s ease;
563
- background-size: contain; }
564
-
565
- .cweb-menu > .cweb-menu-button:hover {
566
- width: 44px;
567
- height: 44px;
568
- background: url("../../assets/big-menu-icon-hover.svg") no-repeat center;
569
- transition: 0.2s ease; }
570
-
571
549
  .cweb-loading {
572
550
  display: flex;
573
551
  justify-content: center;
@@ -606,6 +584,28 @@
606
584
  border-top-left-radius: 4px;
607
585
  border-top-right-radius: 4px; }
608
586
 
587
+ .cweb-menu > .cweb-menu-content {
588
+ min-width: 300px;
589
+ border-radius: 4px;
590
+ background-color: #ffffff; }
591
+
592
+ .cweb-menu > .cweb-menu-button {
593
+ display: flex;
594
+ justify-content: flex-start;
595
+ flex-direction: row;
596
+ align-items: flex-start;
597
+ width: 44px;
598
+ height: 44px;
599
+ background: url("../../assets/big-menu-icon.svg") no-repeat center;
600
+ transition: 0.2s ease;
601
+ background-size: contain; }
602
+
603
+ .cweb-menu > .cweb-menu-button:hover {
604
+ width: 44px;
605
+ height: 44px;
606
+ background: url("../../assets/big-menu-icon-hover.svg") no-repeat center;
607
+ transition: 0.2s ease; }
608
+
609
609
  .cweb-multiselect {
610
610
  display: flex; }
611
611
  .cweb-multiselect .cweb-multiselect-checkbox {
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useEffect, createElement, Component, PureComponent, Fragment, useCallback, useRef, useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
- import { navigate, Link } from '@reach/router';
5
4
  import Glider from 'react-glider';
5
+ import { navigate, Link } from '@reach/router';
6
6
  import ReactModal from 'react-modal';
7
7
  import ReactDatePicker from 'react-datepicker';
8
8
  import moment from 'moment';
@@ -230,6 +230,163 @@ var Badge = function Badge(props) {
230
230
  }, props.badgeCount));
231
231
  };
232
232
 
233
+ var BUTTON_ROLES = {
234
+ PRIMARY: "primary",
235
+ SECONDARY: "secondary",
236
+ SECONDARY_DARK: "secondaryDark",
237
+ TERTIARY: "tertiary",
238
+ QUATERNARY: "quaternary",
239
+ NEGATIVE: "negative",
240
+ TEXT: "text",
241
+ LINK: "link",
242
+ ICON: "icon"
243
+ };
244
+
245
+ var CloseIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M7.05037 5.63664C6.65984 5.24612 6.02668 5.24612 5.63615 5.63664C5.24563 6.02717 5.24563 6.66033 5.63616 7.05086L10.5862 12.0009L5.63618 16.9509C5.24566 17.3415 5.24566 17.9746 5.63618 18.3652C6.02671 18.7557 6.65987 18.7557 7.0504 18.3652L12.0004 13.4151L16.9499 18.3646C17.3404 18.7551 17.9736 18.7551 18.3641 18.3646C18.7546 17.974 18.7546 17.3409 18.3641 16.9504L13.4146 12.0009L18.3641 7.05145C18.7546 6.66093 18.7546 6.02776 18.3641 5.63724C17.9736 5.24671 17.3404 5.24671 16.9499 5.63724L12.0004 10.5867L7.05037 5.63664Z\" fill=\"#EDF2F7\"/>\n</svg>";
246
+
247
+ var HamburgerIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M3 6C3 5.44772 3.44772 5 4 5H20C20.5523 5 21 5.44772 21 6C21 6.55228 20.5523 7 20 7H4C3.44772 7 3 6.55228 3 6Z\" fill=\"#EDF2F7\"/>\n<path d=\"M3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4C3.44772 13 3 12.5523 3 12Z\" fill=\"#EDF2F7\"/>\n<path d=\"M4 17C3.44772 17 3 17.4477 3 18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H4Z\" fill=\"#EDF2F7\"/>\n</svg>";
248
+
249
+ var ChevronRightBlueIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z\" fill=\"#0074DD\"/>\n</svg>";
250
+
251
+ var ChevronRightGreyIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z\" fill=\"#EDF2F7\"/>\n</svg>";
252
+
253
+ var ChevronLeftBlueIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z\" fill=\"#0074DD\"/>\n</svg>";
254
+
255
+ var ChevronLeftGreyIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z\" fill=\"#EDF2F7\"/>\n</svg>";
256
+
257
+ var SearchIcon = "<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12.5006 11.0006H11.7106L11.4306 10.7306C12.6306 9.33063 13.2506 7.42063 12.9106 5.39063C12.4406 2.61063 10.1206 0.390626 7.32063 0.0506256C3.09063 -0.469374 -0.469374 3.09063 0.0506256 7.32063C0.390626 10.1206 2.61063 12.4406 5.39063 12.9106C7.42063 13.2506 9.33063 12.6306 10.7306 11.4306L11.0006 11.7106V12.5006L15.2506 16.7506C15.6606 17.1606 16.3306 17.1606 16.7406 16.7506C17.1506 16.3406 17.1506 15.6706 16.7406 15.2606L12.5006 11.0006ZM6.50063 11.0006C4.01063 11.0006 2.00063 8.99063 2.00063 6.50063C2.00063 4.01063 4.01063 2.00063 6.50063 2.00063C8.99063 2.00063 11.0006 4.01063 11.0006 6.50063C11.0006 8.99063 8.99063 11.0006 6.50063 11.0006Z\" fill=\"#0074DD\"/>\n</svg>";
258
+
259
+ var SearchCancelIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M2.05086 0.636643C1.66033 0.246119 1.02717 0.246119 0.636643 0.636643C0.246119 1.02717 0.246119 1.66033 0.636643 2.05086L5.5867 7.00092L0.636672 11.9509C0.246148 12.3415 0.246148 12.9746 0.636672 13.3652C1.0272 13.7557 1.66036 13.7557 2.05089 13.3652L7.00091 8.41513L11.9503 13.3646C12.3409 13.7551 12.974 13.7551 13.3646 13.3646C13.7551 12.974 13.7551 12.3409 13.3646 11.9504L8.41513 7.00092L13.3646 2.05145C13.7551 1.66093 13.7551 1.02776 13.3646 0.637237C12.9741 0.246712 12.3409 0.246713 11.9504 0.637237L7.00092 5.5867L2.05086 0.636643Z\" fill=\"#0074DD\"/>\n</svg>";
260
+
261
+ var StarIcon = "<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8.58663 1.04906C8.93899 0.258571 10.061 0.258571 10.4134 1.04906L12.1659 4.9807C12.3112 5.30673 12.6193 5.53057 12.9743 5.56804L17.2551 6.01985C18.1158 6.11069 18.4625 7.17779 17.8196 7.75718L14.6219 10.6389C14.3568 10.8778 14.2391 11.24 14.3131 11.5892L15.2063 15.8001C15.3858 16.6467 14.4781 17.3062 13.7284 16.8738L9.99962 14.7232C9.69041 14.5448 9.30959 14.5448 9.00038 14.7232L5.27159 16.8738C4.52189 17.3062 3.61416 16.6467 3.79373 15.8001L4.68686 11.5892C4.76093 11.24 4.64325 10.8778 4.37808 10.6389L1.18043 7.75718C0.537518 7.17779 0.88424 6.11069 1.74492 6.01985L6.0257 5.56804C6.38068 5.53057 6.68877 5.30673 6.8341 4.9807L8.58663 1.04906Z\" fill=\"#009FE3\"/>\n</svg>";
262
+
263
+ var checkmark = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <g transform=\"translate(1.5, 0.5)\">\n <path fill=\"none\" fill-rule=\"evenodd\" stroke=\"#0074DD\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286\"/>\n </g>\n</svg>";
264
+
265
+ var iconSrc = {
266
+ // These need to be converted to svg files instead of components and added in
267
+ // "add": AddIcon,
268
+ // "delete": DeleteIcon,
269
+ // "edit": EditIcon,
270
+ close: CloseIcon,
271
+ hamburger: HamburgerIcon,
272
+ "chevron-right-blue": ChevronRightBlueIcon,
273
+ "chevron-left-blue": ChevronLeftBlueIcon,
274
+ "chevron-right-grey": ChevronRightGreyIcon,
275
+ "chevron-left-grey": ChevronLeftGreyIcon,
276
+ search: SearchIcon,
277
+ star: StarIcon,
278
+ check: checkmark,
279
+ "search-cancel": SearchCancelIcon
280
+ };
281
+ var ButtonIcon = function ButtonIcon(props) {
282
+ return /*#__PURE__*/createElement("img", {
283
+ src: iconSrc[props.name],
284
+ className: props.className
285
+ });
286
+ };
287
+
288
+ var Spinner = function Spinner(props) {
289
+ return /*#__PURE__*/React__default.createElement("svg", {
290
+ className: "w-5 h-5 animate-spin " + props.className,
291
+ xmlns: "http://www.w3.org/2000/svg",
292
+ fill: "none",
293
+ viewBox: "0 0 24 24"
294
+ }, /*#__PURE__*/React__default.createElement("circle", {
295
+ className: "opacity-25",
296
+ cx: "12",
297
+ cy: "12",
298
+ r: "10",
299
+ stroke: "currentColor",
300
+ strokeWidth: "4"
301
+ }), /*#__PURE__*/React__default.createElement("path", {
302
+ className: "opacity-75",
303
+ fill: "currentColor",
304
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
305
+ }));
306
+ };
307
+
308
+ var ButtonV2 = function ButtonV2(props) {
309
+ if (!props.text && !props.icon) {
310
+ console.error("A text or an icon is required to use this component, please make sure to pass at least one of them as a prop.");
311
+ return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
312
+ }
313
+
314
+ var handleClick = function handleClick(event) {
315
+ if (props.type === "submit") {
316
+ event.preventDefault();
317
+ }
318
+
319
+ props.onClick(event);
320
+ };
321
+
322
+ var buttonClassName = classNames(["h-11", "relative flex flex-row justify-center items-center", "border", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-primary"], {
323
+ "w-11": !props.text && props.icon,
324
+ "px-4": props.text,
325
+ "py-2": props.text && props.icon,
326
+ "py-3": props.text && !props.icon
327
+ }, {
328
+ "opacity-50": props.isDisabled,
329
+ "pointer-events-none": props.isDisabled || props.isPending
330
+ }, props.className);
331
+ return /*#__PURE__*/React__default.createElement("button", {
332
+ className: buttonClassName,
333
+ type: props.type,
334
+ onClick: handleClick,
335
+ disabled: props.isDisabled,
336
+ "aria-disabled": props.isDisabled
337
+ }, props.icon && /*#__PURE__*/React__default.createElement(props.icon, {
338
+ className: "w-5 h-5"
339
+ }), props.isPending && /*#__PURE__*/React__default.createElement("span", {
340
+ className: "opacity-100",
341
+ // IE11 center translate fix
342
+ style: {
343
+ position: "absolute",
344
+ left: "50%",
345
+ top: "50%",
346
+ transform: "translate(-50%, -50%)"
347
+ }
348
+ }, /*#__PURE__*/React__default.createElement(Spinner, {
349
+ className: "text-white"
350
+ })), props.text && /*#__PURE__*/React__default.createElement("span", {
351
+ className: classNames("text-sm font-medium", {
352
+ invisible: props.isPending,
353
+ "ml-1": props.icon
354
+ })
355
+ }, props.text));
356
+ };
357
+
358
+ var PrimaryButton = function PrimaryButton(props) {
359
+ return /*#__PURE__*/React__default.createElement(ButtonV2, {
360
+ className: classNames(["text-white", "bg-blue-800", "border-transparent", "hover:bg-blue-900"]),
361
+ onClick: props.onClick,
362
+ type: props.type,
363
+ text: props.text,
364
+ icon: props.icon,
365
+ isDisabled: props.isDisabled,
366
+ isPending: props.isPending
367
+ });
368
+ };
369
+
370
+ var SecondaryButton = function SecondaryButton(props) {
371
+ return /*#__PURE__*/React__default.createElement(ButtonV2, {
372
+ className: classNames(["text-blue-800", "bg-white", "border-slate-300", "hover:text-blue-900", "hover:border-slate-400"]),
373
+ onClick: props.onClick,
374
+ text: props.text,
375
+ icon: props.icon,
376
+ isDisabled: props.isDisabled
377
+ });
378
+ };
379
+
380
+ var TertiaryButton = function TertiaryButton(props) {
381
+ return /*#__PURE__*/React__default.createElement(ButtonV2, {
382
+ className: classNames(["text-blue-800", "bg-transparent", "border-transparent", "hover:text-blue-900", "shadow-none"]),
383
+ onClick: props.onClick,
384
+ text: props.text,
385
+ icon: props.icon,
386
+ isDisabled: props.isDisabled
387
+ });
388
+ };
389
+
233
390
  function _extends() {
234
391
  _extends = Object.assign ? Object.assign.bind() : function (target) {
235
392
  for (var i = 1; i < arguments.length; i++) {
@@ -277,26 +434,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
277
434
  return target;
278
435
  }
279
436
 
280
- var Spinner = function Spinner(props) {
281
- return /*#__PURE__*/React__default.createElement("svg", {
282
- className: "w-5 h-5 animate-spin " + props.className,
283
- xmlns: "http://www.w3.org/2000/svg",
284
- fill: "none",
285
- viewBox: "0 0 24 24"
286
- }, /*#__PURE__*/React__default.createElement("circle", {
287
- className: "opacity-25",
288
- cx: "12",
289
- cy: "12",
290
- r: "10",
291
- stroke: "currentColor",
292
- strokeWidth: "4"
293
- }), /*#__PURE__*/React__default.createElement("path", {
294
- className: "opacity-75",
295
- fill: "currentColor",
296
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
297
- }));
298
- };
299
-
300
437
  var AddIcon = function AddIcon(props) {
301
438
  return /*#__PURE__*/React__default.createElement("svg", {
302
439
  className: props.className,
@@ -424,61 +561,6 @@ var PrintIcon = function PrintIcon(props) {
424
561
  }));
425
562
  };
426
563
 
427
- var CloseIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M7.05037 5.63664C6.65984 5.24612 6.02668 5.24612 5.63615 5.63664C5.24563 6.02717 5.24563 6.66033 5.63616 7.05086L10.5862 12.0009L5.63618 16.9509C5.24566 17.3415 5.24566 17.9746 5.63618 18.3652C6.02671 18.7557 6.65987 18.7557 7.0504 18.3652L12.0004 13.4151L16.9499 18.3646C17.3404 18.7551 17.9736 18.7551 18.3641 18.3646C18.7546 17.974 18.7546 17.3409 18.3641 16.9504L13.4146 12.0009L18.3641 7.05145C18.7546 6.66093 18.7546 6.02776 18.3641 5.63724C17.9736 5.24671 17.3404 5.24671 16.9499 5.63724L12.0004 10.5867L7.05037 5.63664Z\" fill=\"#EDF2F7\"/>\n</svg>";
428
-
429
- var HamburgerIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M3 6C3 5.44772 3.44772 5 4 5H20C20.5523 5 21 5.44772 21 6C21 6.55228 20.5523 7 20 7H4C3.44772 7 3 6.55228 3 6Z\" fill=\"#EDF2F7\"/>\n<path d=\"M3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4C3.44772 13 3 12.5523 3 12Z\" fill=\"#EDF2F7\"/>\n<path d=\"M4 17C3.44772 17 3 17.4477 3 18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H4Z\" fill=\"#EDF2F7\"/>\n</svg>";
430
-
431
- var ChevronRightBlueIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z\" fill=\"#0074DD\"/>\n</svg>";
432
-
433
- var ChevronRightGreyIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z\" fill=\"#EDF2F7\"/>\n</svg>";
434
-
435
- var ChevronLeftBlueIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z\" fill=\"#0074DD\"/>\n</svg>";
436
-
437
- var ChevronLeftGreyIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z\" fill=\"#EDF2F7\"/>\n</svg>";
438
-
439
- var SearchIcon = "<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12.5006 11.0006H11.7106L11.4306 10.7306C12.6306 9.33063 13.2506 7.42063 12.9106 5.39063C12.4406 2.61063 10.1206 0.390626 7.32063 0.0506256C3.09063 -0.469374 -0.469374 3.09063 0.0506256 7.32063C0.390626 10.1206 2.61063 12.4406 5.39063 12.9106C7.42063 13.2506 9.33063 12.6306 10.7306 11.4306L11.0006 11.7106V12.5006L15.2506 16.7506C15.6606 17.1606 16.3306 17.1606 16.7406 16.7506C17.1506 16.3406 17.1506 15.6706 16.7406 15.2606L12.5006 11.0006ZM6.50063 11.0006C4.01063 11.0006 2.00063 8.99063 2.00063 6.50063C2.00063 4.01063 4.01063 2.00063 6.50063 2.00063C8.99063 2.00063 11.0006 4.01063 11.0006 6.50063C11.0006 8.99063 8.99063 11.0006 6.50063 11.0006Z\" fill=\"#0074DD\"/>\n</svg>";
440
-
441
- var SearchCancelIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M2.05086 0.636643C1.66033 0.246119 1.02717 0.246119 0.636643 0.636643C0.246119 1.02717 0.246119 1.66033 0.636643 2.05086L5.5867 7.00092L0.636672 11.9509C0.246148 12.3415 0.246148 12.9746 0.636672 13.3652C1.0272 13.7557 1.66036 13.7557 2.05089 13.3652L7.00091 8.41513L11.9503 13.3646C12.3409 13.7551 12.974 13.7551 13.3646 13.3646C13.7551 12.974 13.7551 12.3409 13.3646 11.9504L8.41513 7.00092L13.3646 2.05145C13.7551 1.66093 13.7551 1.02776 13.3646 0.637237C12.9741 0.246712 12.3409 0.246713 11.9504 0.637237L7.00092 5.5867L2.05086 0.636643Z\" fill=\"#0074DD\"/>\n</svg>";
442
-
443
- var StarIcon = "<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8.58663 1.04906C8.93899 0.258571 10.061 0.258571 10.4134 1.04906L12.1659 4.9807C12.3112 5.30673 12.6193 5.53057 12.9743 5.56804L17.2551 6.01985C18.1158 6.11069 18.4625 7.17779 17.8196 7.75718L14.6219 10.6389C14.3568 10.8778 14.2391 11.24 14.3131 11.5892L15.2063 15.8001C15.3858 16.6467 14.4781 17.3062 13.7284 16.8738L9.99962 14.7232C9.69041 14.5448 9.30959 14.5448 9.00038 14.7232L5.27159 16.8738C4.52189 17.3062 3.61416 16.6467 3.79373 15.8001L4.68686 11.5892C4.76093 11.24 4.64325 10.8778 4.37808 10.6389L1.18043 7.75718C0.537518 7.17779 0.88424 6.11069 1.74492 6.01985L6.0257 5.56804C6.38068 5.53057 6.68877 5.30673 6.8341 4.9807L8.58663 1.04906Z\" fill=\"#009FE3\"/>\n</svg>";
444
-
445
- var checkmark = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <g transform=\"translate(1.5, 0.5)\">\n <path fill=\"none\" fill-rule=\"evenodd\" stroke=\"#0074DD\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286\"/>\n </g>\n</svg>";
446
-
447
- var iconSrc = {
448
- // These need to be converted to svg files instead of components and added in
449
- // "add": AddIcon,
450
- // "delete": DeleteIcon,
451
- // "edit": EditIcon,
452
- close: CloseIcon,
453
- hamburger: HamburgerIcon,
454
- "chevron-right-blue": ChevronRightBlueIcon,
455
- "chevron-left-blue": ChevronLeftBlueIcon,
456
- "chevron-right-grey": ChevronRightGreyIcon,
457
- "chevron-left-grey": ChevronLeftGreyIcon,
458
- search: SearchIcon,
459
- star: StarIcon,
460
- check: checkmark,
461
- "search-cancel": SearchCancelIcon
462
- };
463
- var ButtonIcon = function ButtonIcon(props) {
464
- return /*#__PURE__*/createElement("img", {
465
- src: iconSrc[props.name],
466
- className: props.className
467
- });
468
- };
469
-
470
- var BUTTON_ROLES = {
471
- PRIMARY: "primary",
472
- SECONDARY: "secondary",
473
- SECONDARY_DARK: "secondaryDark",
474
- TERTIARY: "tertiary",
475
- QUATERNARY: "quaternary",
476
- NEGATIVE: "negative",
477
- TEXT: "text",
478
- LINK: "link",
479
- ICON: "icon"
480
- };
481
-
482
564
  var _excluded = ["text", "role", "type", "title", "link", "isPending", "isDisabled", "onClick", "className", "iconName", "hasIcon", "dynamicIcon"];
483
565
 
484
566
  function Button(props) {
@@ -626,86 +708,6 @@ function Button(props) {
626
708
  }, text));
627
709
  }
628
710
 
629
- var ButtonV2 = function ButtonV2(props) {
630
- if (!props.text && !props.icon) {
631
- console.error("A text or an icon is required to use this component, please make sure to pass at least one of them as a prop.");
632
- return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
633
- }
634
-
635
- var handleClick = function handleClick(event) {
636
- if (props.type === "submit") {
637
- event.preventDefault();
638
- }
639
-
640
- props.onClick(event);
641
- };
642
-
643
- var buttonClassName = classNames(["h-11", "relative flex flex-row justify-center items-center", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-none"], {
644
- "w-11": !props.text && props.icon,
645
- "px-4": props.text,
646
- "py-2": props.text && props.icon,
647
- "py-3": props.text && !props.icon
648
- }, props.className);
649
- return /*#__PURE__*/React__default.createElement("button", {
650
- className: buttonClassName,
651
- type: props.type,
652
- onClick: handleClick,
653
- disabled: props.isDisabled,
654
- "aria-disabled": props.isDisabled
655
- }, props.icon && /*#__PURE__*/React__default.createElement(props.icon, {
656
- className: "w-5 h-5"
657
- }), props.isPending && /*#__PURE__*/React__default.createElement("span", {
658
- className: "opacity-100",
659
- // IE11 center translate fix
660
- style: {
661
- position: "absolute",
662
- left: "50%",
663
- top: "50%",
664
- transform: "translate(-50%, -50%)"
665
- }
666
- }, /*#__PURE__*/React__default.createElement(Spinner, {
667
- className: "text-white"
668
- })), props.text && /*#__PURE__*/React__default.createElement("span", {
669
- className: classNames("text-sm font-medium", {
670
- invisible: props.isPending,
671
- "ml-1": props.icon
672
- })
673
- }, props.text));
674
- };
675
-
676
- var PrimaryButton = function PrimaryButton(props) {
677
- return /*#__PURE__*/React__default.createElement(ButtonV2, {
678
- className: classNames(["text-white", "bg-primary", "border", "border-solid", "border-primary-transparent", "hover:bg-primary-dark", "focus:outline-primary"], {
679
- "opacity-50": props.isDisabled,
680
- "pointer-events-none": props.isDisabled || props.isPending
681
- }),
682
- onClick: props.onClick,
683
- type: props.type,
684
- text: props.text,
685
- icon: props.icon,
686
- isDisabled: props.isDisabled,
687
- isPending: props.isPending
688
- });
689
- };
690
-
691
- var SecondaryButton = function SecondaryButton(props) {
692
- return /*#__PURE__*/React__default.createElement(ButtonV2, {
693
- className: classNames(["text-primary", "bg-white", "border", "border-slate-300", "hover:text-primary-dark", "hover:border-slate-400", "focus:outline-primary"]),
694
- onClick: props.onClick,
695
- text: props.text,
696
- icon: props.icon
697
- });
698
- };
699
-
700
- var TertiaryButton = function TertiaryButton(props) {
701
- return /*#__PURE__*/React__default.createElement(ButtonV2, {
702
- className: classNames(["text-primary", "bg-transparent", "border", "border-transparent", "shadow-none", "hover:text-primary-dark", "focus:outline-primary"]),
703
- onClick: props.onClick,
704
- text: props.text,
705
- icon: props.icon
706
- });
707
- };
708
-
709
711
  var GliderContainer = function GliderContainer(props) {
710
712
  return /*#__PURE__*/React__default.createElement("div", {
711
713
  className: "relative h-full pb-6 glider-contain px-17 pb-6"
@@ -4055,5 +4057,5 @@ function ViewItem(_ref) {
4055
4057
  })));
4056
4058
  }
4057
4059
 
4058
- export { ACKNOWLEDGEMENT_TYPE_OPTIONS, Acknowledgement, Avatar, BUTTON_ROLES, Badge, Button, ButtonIcon, CRUDPage, Carousel, CenteredHero, Checkbox, ConfirmationDialog, Datepicker as DatePicker, Dropdown, EmptyListMessage, ErrorBlock, INPUT_TYPES, InfoBlock, InfoField, Input, Line, ListItem, ListTable, LoadingIndicator, Menu, MultiSelect, NavLayout, NavMenu, NotificationBanner, Page, PaginationMenu, PreviewPhone, PrimaryButton, Radio, RadioGroup, SecondaryButton, Section, SettingsMenuButton, Spinner, Steps, Switcher, TabLinks, Tabbar, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, TextListItem, Title, ViewItem };
4060
+ export { ACKNOWLEDGEMENT_TYPE_OPTIONS, Acknowledgement, Avatar, BUTTON_ROLES, Badge, ButtonIcon, CRUDPage, Carousel, CenteredHero, Checkbox, ConfirmationDialog, Datepicker as DatePicker, Dropdown, EmptyListMessage, ErrorBlock, INPUT_TYPES, InfoBlock, InfoField, Input, Line, ListItem, ListTable, LoadingIndicator, Menu, MultiSelect, NavLayout, NavMenu, NotificationBanner, Page, PaginationMenu, PreviewPhone, PrimaryButton, Radio, RadioGroup, SecondaryButton, Section, SettingsMenuButton, Spinner, Steps, Switcher, TabLinks, Tabbar, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, TextListItem, Title, ViewItem };
4059
4061
  //# sourceMappingURL=web-ui.esm.js.map