@commonsku/styles 1.16.7 → 1.16.9

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/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import _, { map, pick, keys, isUndefined, get, assign, range as range$1, isEmpty, tail, toNumber, isString, filter, partial, uniqueId, debounce } from 'lodash';
1
+ import _, { map, pick, keys, isUndefined, get, uniqueId, assign, range as range$1, isEmpty, tail, toNumber, isString, filter, partial, debounce } from 'lodash';
2
2
  import styled, { css, createGlobalStyle, ThemeProvider, keyframes } from 'styled-components';
3
- import React__default, { Fragment, useState, useEffect, useRef, useCallback, useImperativeHandle, Component, createContext, memo, forwardRef, useLayoutEffect, useMemo } from 'react';
3
+ import React__default, { useMemo, Fragment, useState, useEffect, useRef, useCallback, useImperativeHandle, Component, createContext, memo, forwardRef, useLayoutEffect } from 'react';
4
4
  import { useDropzone } from 'react-dropzone';
5
5
  import BaseSelect from 'react-select';
6
6
  export { components, createFilter, mergeStyles } from 'react-select';
@@ -2322,6 +2322,82 @@ function HandleIcon(_a) {
2322
2322
  React__default.createElement("path", { d: "M11 18C11 19.1 10.1 20 9 20C7.9 20 7 19.1 7 18C7 16.9 7.9 16 9 16C10.1 16 11 16.9 11 18ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 8C16.1 8 17 7.1 17 6C17 4.9 16.1 4 15 4C13.9 4 13 4.9 13 6C13 7.1 13.9 8 15 8ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16Z", fill: color }));
2323
2323
  }
2324
2324
 
2325
+ var iconSizes$1 = {
2326
+ tiny: {
2327
+ width: 16,
2328
+ height: 18,
2329
+ viewBox: "0 0 22 20",
2330
+ },
2331
+ small: {
2332
+ width: 20,
2333
+ height: 22,
2334
+ viewBox: "0 0 22 20",
2335
+ },
2336
+ medium: {
2337
+ width: 30,
2338
+ height: 28,
2339
+ viewBox: "0 0 22 20",
2340
+ },
2341
+ large: {
2342
+ width: 34,
2343
+ height: 36,
2344
+ viewBox: "0 0 22 20",
2345
+ },
2346
+ huge: {
2347
+ width: 48,
2348
+ height: 50,
2349
+ viewBox: "0 0 22 20",
2350
+ },
2351
+ default: {
2352
+ width: 30,
2353
+ height: 28,
2354
+ viewBox: "0 0 22 20",
2355
+ },
2356
+ };
2357
+ function ShoppingCartIcon(_a) {
2358
+ var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, altText = _d === void 0 ? "Shopping Cart" : _d, props = __rest(_a, ["color", "size", "altText"]);
2359
+ return (React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "ShoppingCartIcon", iconSizes: iconSizes$1, altText: altText }, props),
2360
+ React__default.createElement("path", { d: "M15.5463 11C16.2963 11 16.9563 10.59 17.2963 9.97L20.8763 3.48C21.2463 2.82 20.7663 2 20.0063 2H5.20634L4.26634 0H0.996338V2H2.99634L6.59634 9.59L5.24634 12.03C4.51634 13.37 5.47634 15 6.99634 15H18.9963V13H6.99634L8.09634 11H15.5463ZM6.15634 4H18.3063L15.5463 9H8.52634L6.15634 4ZM6.99634 16C5.89634 16 5.00634 16.9 5.00634 18C5.00634 19.1 5.89634 20 6.99634 20C8.09634 20 8.99634 19.1 8.99634 18C8.99634 16.9 8.09634 16 6.99634 16ZM16.9963 16C15.8963 16 15.0063 16.9 15.0063 18C15.0063 19.1 15.8963 20 16.9963 20C18.0963 20 18.9963 19.1 18.9963 18C18.9963 16.9 18.0963 16 16.9963 16Z", fill: color })));
2361
+ }
2362
+
2363
+ var iconSizes$2 = {
2364
+ tiny: {
2365
+ width: 14,
2366
+ height: 15,
2367
+ viewBox: "0 0 21 22",
2368
+ },
2369
+ small: {
2370
+ width: 16,
2371
+ height: 17,
2372
+ viewBox: "0 0 21 22",
2373
+ },
2374
+ medium: {
2375
+ width: 21,
2376
+ height: 22,
2377
+ viewBox: "0 0 21 22",
2378
+ },
2379
+ large: {
2380
+ width: 32,
2381
+ height: 33,
2382
+ viewBox: "0 0 21 22",
2383
+ },
2384
+ huge: {
2385
+ width: 48,
2386
+ height: 49,
2387
+ viewBox: "0 0 21 22",
2388
+ },
2389
+ default: {
2390
+ width: 21,
2391
+ height: 22,
2392
+ viewBox: "0 0 21 22",
2393
+ },
2394
+ };
2395
+ function AddShoppingCartIcon(_a) {
2396
+ var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, props = __rest(_a, ["color", "size", "altText"]);
2397
+ return (React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "AddShoppingCartIcon", iconSizes: iconSizes$2 }, props),
2398
+ React__default.createElement("path", { d: "M10.4199 8.5H12.4199V5.5H15.4199V3.5H12.4199V0.5H10.4199V3.5H7.41992V5.5H10.4199V8.5ZM6.41992 17.5C5.31992 17.5 4.42992 18.4 4.42992 19.5C4.42992 20.6 5.31992 21.5 6.41992 21.5C7.51992 21.5 8.41992 20.6 8.41992 19.5C8.41992 18.4 7.51992 17.5 6.41992 17.5ZM16.4199 17.5C15.3199 17.5 14.4299 18.4 14.4299 19.5C14.4299 20.6 15.3199 21.5 16.4199 21.5C17.5199 21.5 18.4199 20.6 18.4199 19.5C18.4199 18.4 17.5199 17.5 16.4199 17.5ZM7.51992 12.5H14.9699C15.7199 12.5 16.3799 12.09 16.7199 11.47L20.5799 4.46L18.8399 3.5L14.9699 10.5H7.94992L3.68992 1.5H0.419922V3.5H2.41992L6.01992 11.09L4.66992 13.53C3.93992 14.87 4.89992 16.5 6.41992 16.5H18.4199V14.5H6.41992L7.51992 12.5Z", fill: color })));
2399
+ }
2400
+
2325
2401
  function CommunityIcon(_a) {
2326
2402
  var _b = _a.size, size = _b === void 0 ? "medium" : _b, _c = _a.altText, altText = _c === void 0 ? "Community" : _c, props = __rest(_a, ["size", "altText"]);
2327
2403
  return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "CommunityIcon" }, props),
@@ -2386,6 +2462,132 @@ function EPOIcon(_a) {
2386
2462
  React__default.createElement("path", { d: "M7 16H14V18H7V16ZM7 12H17V14H7V12ZM7 8H17V10H7V8ZM19 4H14.82C14.4 2.84 13.3 2 12 2C10.7 2 9.6 2.84 9.18 4H5C4.86 4 4.73 4.01 4.6 4.04C4.21 4.12 3.86 4.32 3.59 4.59C3.41 4.77 3.26 4.99 3.16 5.23C3.06 5.46 3 5.72 3 6V20C3 20.27 3.06 20.54 3.16 20.78C3.26 21.02 3.41 21.23 3.59 21.42C3.86 21.69 4.21 21.89 4.6 21.97C4.73 21.99 4.86 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM12 3.75C12.41 3.75 12.75 4.09 12.75 4.5C12.75 4.91 12.41 5.25 12 5.25C11.59 5.25 11.25 4.91 11.25 4.5C11.25 4.09 11.59 3.75 12 3.75ZM19 20H5V6H19V20Z", fill: color }));
2387
2463
  }
2388
2464
 
2465
+ function HelpIcon(_a) {
2466
+ var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, altText = _d === void 0 ? "Help" : _d, props = __rest(_a, ["color", "size", "altText"]);
2467
+ return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "HelpIcon" }, props),
2468
+ React__default.createElement("title", { id: "HelpIcon" }, altText),
2469
+ React__default.createElement("path", { d: "M9 16H11V14H9V16ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 4C7.79 4 6 5.79 6 8H8C8 6.9 8.9 6 10 6C11.1 6 12 6.9 12 8C12 10 9 9.75 9 13H11C11 10.75 14 10.5 14 8C14 5.79 12.21 4 10 4Z", fill: color }));
2470
+ }
2471
+
2472
+ var iconSizes$3 = {
2473
+ tiny: {
2474
+ width: 188,
2475
+ height: 44,
2476
+ viewBox: "0 0 208 64",
2477
+ },
2478
+ small: {
2479
+ width: 198,
2480
+ height: 54,
2481
+ viewBox: "0 0 208 64",
2482
+ },
2483
+ medium: {
2484
+ width: 208,
2485
+ height: 64,
2486
+ viewBox: "0 0 208 64",
2487
+ },
2488
+ large: {
2489
+ width: 218,
2490
+ height: 74,
2491
+ viewBox: "0 0 208 64",
2492
+ },
2493
+ huge: {
2494
+ width: 228,
2495
+ height: 84,
2496
+ viewBox: "0 0 208 64",
2497
+ },
2498
+ default: {
2499
+ width: 238,
2500
+ height: 94,
2501
+ viewBox: "0 0 208 64",
2502
+ },
2503
+ };
2504
+ function FileUploadIcon(_a) {
2505
+ var _b = _a.color, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, props = __rest(_a, ["color", "size", "altText"]);
2506
+ var clipId = "clip0_2603_83254_".concat(uniqueId('clip'));
2507
+ return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "FileUploadIcon", iconSizes: iconSizes$3 }, props),
2508
+ React__default.createElement("g", { clipPath: "url(#".concat(clipId, ")") },
2509
+ React__default.createElement("path", { d: "M74.6667 13.3333V50.6667H37.3333V13.3333H74.6667ZM74.6667 8H37.3333C34.4 8 32 10.4 32 13.3333V50.6667C32 53.6 34.4 56 37.3333 56H74.6667C77.6 56 80 53.6 80 50.6667V13.3333C80 10.4 77.6 8 74.6667 8ZM61.7067 31.6267L53.7067 41.9467L48 35.04L40 45.3333H72L61.7067 31.6267Z", fill: "#B8C4CB" })),
2510
+ React__default.createElement("path", { d: "M97.26 19H99.9C102.36 19 104.28 17.08 104.28 14.8C104.28 12.52 102.36 10.6 99.9 10.6H97.26V19ZM98.16 18.16V11.44H99.9C101.88 11.44 103.38 12.94 103.38 14.8C103.38 16.66 101.88 18.16 99.9 18.16H98.16ZM105.96 19H106.8V15.82C106.8 14.68 107.64 13.96 108.6 13.96H108.96V13.12H108.72C107.4 13.12 106.8 14.02 106.8 14.02V13.24H105.96V19ZM113.577 19H114.417V15.34C114.417 14.08 113.457 13.12 112.137 13.12C110.757 13.12 109.977 14.2 109.977 14.2L110.517 14.74C110.517 14.74 111.117 13.9 112.137 13.9C112.977 13.9 113.577 14.5 113.577 15.34L111.357 15.7C110.277 15.88 109.677 16.48 109.677 17.44C109.677 18.28 110.517 19.12 111.717 19.12C112.977 19.12 113.577 18.22 113.577 18.22V19ZM113.577 16.42C113.577 17.56 112.797 18.34 111.717 18.34C110.937 18.34 110.517 17.92 110.517 17.44C110.517 16.9 110.877 16.552 111.597 16.42L113.577 16.06V16.42ZM116.151 20.32C116.151 20.32 116.931 21.52 118.551 21.52C120.111 21.52 121.371 20.26 121.371 18.64V13.24H120.531V14.02C120.531 14.02 119.991 13.12 118.611 13.12C117.111 13.12 115.911 14.38 115.911 16C115.911 17.62 117.111 18.88 118.611 18.88C119.991 18.88 120.531 17.98 120.531 17.98V18.64C120.531 19.84 119.631 20.74 118.551 20.74C117.351 20.74 116.691 19.78 116.691 19.78L116.151 20.32ZM118.611 18.1C117.591 18.1 116.751 17.2 116.751 16C116.751 14.8 117.591 13.9 118.611 13.9C119.691 13.9 120.531 14.8 120.531 16C120.531 17.2 119.691 18.1 118.611 18.1ZM129.292 19H130.132V15.34C130.132 14.08 129.172 13.12 127.852 13.12C126.472 13.12 125.692 14.2 125.692 14.2L126.232 14.74C126.232 14.74 126.832 13.9 127.852 13.9C128.692 13.9 129.292 14.5 129.292 15.34L127.072 15.7C125.992 15.88 125.392 16.48 125.392 17.44C125.392 18.28 126.232 19.12 127.432 19.12C128.692 19.12 129.292 18.22 129.292 18.22V19ZM129.292 16.42C129.292 17.56 128.512 18.34 127.432 18.34C126.652 18.34 126.232 17.92 126.232 17.44C126.232 16.9 126.592 16.552 127.312 16.42L129.292 16.06V16.42ZM132.046 19H132.886V15.82C132.886 14.68 133.666 13.9 134.686 13.9C135.586 13.9 136.246 14.56 136.246 15.58V19H137.086V15.58C137.086 14.08 136.126 13.12 134.746 13.12C133.486 13.12 132.886 14.08 132.886 14.08V13.24H132.046V19ZM143.387 19H144.227V10.6H143.387V14.08C143.387 14.08 142.727 13.12 141.407 13.12C139.847 13.12 138.587 14.38 138.587 16.12C138.587 17.86 139.847 19.12 141.407 19.12C142.727 19.12 143.387 18.16 143.387 18.16V19ZM141.407 18.34C140.327 18.34 139.427 17.44 139.427 16.12C139.427 14.8 140.327 13.9 141.407 13.9C142.427 13.9 143.387 14.86 143.387 16.12C143.387 17.38 142.427 18.34 141.407 18.34ZM153.102 19H153.942V10.6H153.102V14.08C153.102 14.08 152.442 13.12 151.122 13.12C149.562 13.12 148.302 14.38 148.302 16.12C148.302 17.86 149.562 19.12 151.122 19.12C152.442 19.12 153.102 18.16 153.102 18.16V19ZM151.122 18.34C150.042 18.34 149.142 17.44 149.142 16.12C149.142 14.8 150.042 13.9 151.122 13.9C152.142 13.9 153.102 14.86 153.102 16.12C153.102 17.38 152.142 18.34 151.122 18.34ZM155.917 19H156.757V15.82C156.757 14.68 157.597 13.96 158.557 13.96H158.917V13.12H158.677C157.357 13.12 156.757 14.02 156.757 14.02V13.24H155.917V19ZM162.457 19.12C164.077 19.12 165.397 17.8 165.397 16.12C165.397 14.44 164.077 13.12 162.457 13.12C160.837 13.12 159.517 14.44 159.517 16.12C159.517 17.8 160.837 19.12 162.457 19.12ZM162.457 18.34C161.317 18.34 160.357 17.368 160.357 16.12C160.357 14.86 161.317 13.9 162.457 13.9C163.597 13.9 164.557 14.86 164.557 16.12C164.557 17.38 163.597 18.34 162.457 18.34ZM166.898 21.52H167.738V18.16C167.738 18.16 168.398 19.12 169.718 19.12C171.278 19.12 172.538 17.86 172.538 16.12C172.538 14.38 171.278 13.12 169.718 13.12C168.398 13.12 167.738 14.08 167.738 14.08V13.24H166.898V21.52ZM169.718 18.34C168.698 18.34 167.738 17.38 167.738 16.12C167.738 14.86 168.698 13.9 169.718 13.9C170.798 13.9 171.698 14.8 171.698 16.12C171.698 17.44 170.798 18.34 169.718 18.34ZM97.02 33H97.86V29.82C97.86 28.68 98.64 27.9 99.66 27.9C100.56 27.9 101.22 28.56 101.22 29.58V33H102.06V29.58C102.06 28.08 101.1 27.12 99.72 27.12C98.46 27.12 97.86 28.08 97.86 28.08V24.6H97.02V33ZM108.3 31.38C108.3 31.38 107.652 32.34 106.44 32.34C105.36 32.34 104.46 31.44 104.4 30.42L109.08 30.432C109.08 30.432 109.14 30.24 109.14 30C109.14 28.32 107.94 27.12 106.38 27.12C104.88 27.12 103.56 28.44 103.56 30.12C103.56 31.8 104.88 33.12 106.44 33.12C108 33.12 108.84 31.92 108.84 31.92L108.3 31.38ZM104.4 29.7C104.52 28.74 105.36 27.9 106.38 27.9C107.4 27.9 108.18 28.68 108.3 29.7H104.4ZM110.636 33H111.476V29.82C111.476 28.68 112.316 27.96 113.276 27.96H113.636V27.12H113.396C112.076 27.12 111.476 28.02 111.476 28.02V27.24H110.636V33ZM118.975 31.38C118.975 31.38 118.327 32.34 117.115 32.34C116.035 32.34 115.135 31.44 115.075 30.42L119.755 30.432C119.755 30.432 119.815 30.24 119.815 30C119.815 28.32 118.615 27.12 117.055 27.12C115.555 27.12 114.235 28.44 114.235 30.12C114.235 31.8 115.555 33.12 117.115 33.12C118.675 33.12 119.515 31.92 119.515 31.92L118.975 31.38ZM115.075 29.7C115.195 28.74 116.035 27.9 117.055 27.9C118.075 27.9 118.855 28.68 118.975 29.7H115.075ZM126.351 33.12C127.971 33.12 129.291 31.8 129.291 30.12C129.291 28.44 127.971 27.12 126.351 27.12C124.731 27.12 123.411 28.44 123.411 30.12C123.411 31.8 124.731 33.12 126.351 33.12ZM126.351 32.34C125.211 32.34 124.251 31.368 124.251 30.12C124.251 28.86 125.211 27.9 126.351 27.9C127.491 27.9 128.451 28.86 128.451 30.12C128.451 31.38 127.491 32.34 126.351 32.34ZM130.792 33H131.632V29.82C131.632 28.68 132.472 27.96 133.432 27.96H133.792V27.12H133.552C132.232 27.12 131.632 28.02 131.632 28.02V27.24H130.792V33Z", fill: "#899CA9" }),
2511
+ React__default.createElement("path", { d: "M97.2 53H100.74C102.36 53 103.5 51.86 103.5 50.54C103.5 49.04 102.06 48.5 102.06 48.5C102.06 48.5 103.08 48.08 103.08 46.82C103.08 45.62 102.06 44.6 100.56 44.6H97.2V53ZM98.52 51.86V49.1H100.74C101.58 49.1 102.18 49.7 102.18 50.48C102.18 51.26 101.58 51.86 100.74 51.86H98.52ZM98.52 48.02V45.74H100.56C101.28 45.74 101.76 46.22 101.76 46.88C101.76 47.54 101.28 48.02 100.56 48.02H98.52ZM104.996 53H106.196V50.06C106.196 49.04 106.916 48.32 107.756 48.32C107.996 48.32 108.236 48.38 108.236 48.38V47.12H107.936C106.796 47.12 106.196 48.02 106.196 48.02V47.24H104.996V53ZM108.843 50.12C108.843 51.8 110.163 53.12 111.843 53.12C113.523 53.12 114.843 51.8 114.843 50.12C114.843 48.44 113.523 47.12 111.843 47.12C110.163 47.12 108.843 48.44 108.843 50.12ZM111.843 51.98C110.823 51.98 110.043 51.2 110.043 50.12C110.043 49.04 110.823 48.26 111.843 48.26C112.863 48.26 113.643 49.04 113.643 50.12C113.643 51.2 112.863 51.98 111.843 51.98ZM117.484 53H118.624L119.884 49.16L121.144 53H122.284L124.324 47.24H123.004L121.684 51.14L120.424 47.24H119.344L118.084 51.14L116.764 47.24H115.444L117.484 53ZM124.741 52.04C124.741 52.04 125.521 53.12 127.021 53.12C128.401 53.12 129.241 52.28 129.241 51.32C129.241 49.28 126.181 49.76 126.181 48.8C126.181 48.5 126.481 48.2 127.081 48.2C127.861 48.2 128.341 48.68 128.341 48.68L129.121 47.9C129.121 47.9 128.461 47.12 127.081 47.12C125.761 47.12 124.981 47.9 124.981 48.8C124.981 50.84 128.041 50.36 128.041 51.32C128.041 51.68 127.681 52.04 127.021 52.04C126.121 52.04 125.521 51.26 125.521 51.26L124.741 52.04ZM134.876 51.2C134.876 51.2 134.216 51.98 133.196 51.98C132.236 51.98 131.516 51.32 131.396 50.54H135.836C135.836 50.54 135.896 50.3 135.896 49.94C135.896 48.32 134.696 47.12 133.076 47.12C131.456 47.12 130.136 48.44 130.136 50.12C130.136 51.8 131.456 53.12 133.136 53.12C134.816 53.12 135.596 52.04 135.596 52.04L134.876 51.2ZM131.396 49.52C131.636 48.74 132.176 48.2 133.076 48.2C133.916 48.2 134.456 48.74 134.636 49.52H131.396ZM140.091 53H141.411V49.52H145.011V48.26H141.411V45.86H145.971V44.6H140.091V53ZM147.056 53H148.256V47.24H147.056V53ZM146.936 45.44C146.936 45.86 147.296 46.16 147.656 46.16C148.016 46.16 148.376 45.86 148.376 45.44C148.376 45.02 148.016 44.72 147.656 44.72C147.296 44.72 146.936 45.02 146.936 45.44ZM150.056 53H151.256V44.6H150.056V53ZM157.376 51.2C157.376 51.2 156.716 51.98 155.696 51.98C154.736 51.98 154.016 51.32 153.896 50.54H158.336C158.336 50.54 158.396 50.3 158.396 49.94C158.396 48.32 157.196 47.12 155.576 47.12C153.956 47.12 152.636 48.44 152.636 50.12C152.636 51.8 153.956 53.12 155.636 53.12C157.316 53.12 158.096 52.04 158.096 52.04L157.376 51.2ZM153.896 49.52C154.136 48.74 154.676 48.2 155.576 48.2C156.416 48.2 156.956 48.74 157.136 49.52H153.896ZM159.171 52.04C159.171 52.04 159.951 53.12 161.451 53.12C162.831 53.12 163.671 52.28 163.671 51.32C163.671 49.28 160.611 49.76 160.611 48.8C160.611 48.5 160.911 48.2 161.511 48.2C162.291 48.2 162.771 48.68 162.771 48.68L163.551 47.9C163.551 47.9 162.891 47.12 161.511 47.12C160.191 47.12 159.411 47.9 159.411 48.8C159.411 50.84 162.471 50.36 162.471 51.32C162.471 51.68 162.111 52.04 161.451 52.04C160.551 52.04 159.951 51.26 159.951 51.26L159.171 52.04Z", fill: "#DA9B8A" }),
2512
+ React__default.createElement("defs", null,
2513
+ React__default.createElement("clipPath", { id: clipId },
2514
+ React__default.createElement("rect", { width: "64", height: "64", fill: "white", transform: "translate(24)" }))));
2515
+ }
2516
+
2517
+ var iconSizes$4 = {
2518
+ tiny: {
2519
+ width: 12,
2520
+ height: 12,
2521
+ viewBox: "0 0 32 32",
2522
+ },
2523
+ small: {
2524
+ width: 22,
2525
+ height: 22,
2526
+ viewBox: "0 0 32 32",
2527
+ },
2528
+ medium: {
2529
+ width: 32,
2530
+ height: 32,
2531
+ viewBox: "0 0 32 32",
2532
+ },
2533
+ large: {
2534
+ width: 62,
2535
+ height: 62,
2536
+ viewBox: "0 0 32 32",
2537
+ },
2538
+ huge: {
2539
+ width: 82,
2540
+ height: 82,
2541
+ viewBox: "0 0 32 32",
2542
+ },
2543
+ default: {
2544
+ width: 32,
2545
+ height: 32,
2546
+ viewBox: "0 0 32 32",
2547
+ },
2548
+ };
2549
+ function DoubleArrowIcon(_a) {
2550
+ var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.direction, direction = _c === void 0 ? "right" : _c, _d = _a.size, size = _d === void 0 ? "medium" : _d, altText = _a.altText, props = __rest(_a, ["color", "direction", "size", "altText"]);
2551
+ var iconAltText = useMemo(function () {
2552
+ if (altText) {
2553
+ return altText;
2554
+ }
2555
+ switch (direction) {
2556
+ case 'right': return 'Next';
2557
+ case 'left': return 'Previous';
2558
+ default: return '';
2559
+ }
2560
+ }, [altText, direction]);
2561
+ var directionPaths = React__default.useMemo(function () {
2562
+ if (direction === "left") {
2563
+ return [
2564
+ 'M24.3801 23.0592C24.9001 22.5392 24.9001 21.6992 24.3801 21.1792L19.2201 15.9926L24.3935 10.8192C24.9135 10.2992 24.9135 9.45922 24.3935 8.93922C23.8735 8.41922 23.0335 8.41922 22.5135 8.93922L16.3935 15.0592C15.8735 15.5792 15.8735 16.4192 16.3935 16.9392L22.5001 23.0592C23.0201 23.5792 23.8601 23.5792 24.3801 23.0592Z',
2565
+ 'M15.5935 23.0592C16.1135 22.5392 16.1135 21.6992 15.5935 21.1792L10.4335 15.9926L15.6068 10.8192C16.1268 10.2992 16.1268 9.45922 15.6068 8.93922C15.0868 8.41922 14.2468 8.41922 13.7268 8.93922L7.6068 15.0592C7.0868 15.5792 7.0868 16.4192 7.6068 16.9392L13.7135 23.0592C14.2335 23.5792 15.0735 23.5792 15.5935 23.0592Z',
2566
+ ];
2567
+ }
2568
+ else if (direction === 'down') {
2569
+ return [
2570
+ 'M23.0588 7.62013C22.5388 7.10013 21.6988 7.10013 21.1788 7.62013L16.0055 12.7801L10.8188 7.6068C10.2988 7.0868 9.45883 7.0868 8.93883 7.6068C8.41883 8.1268 8.41883 8.9668 8.93883 9.4868L15.0588 15.6068C15.5788 16.1268 16.4188 16.1268 16.9388 15.6068L23.0588 9.4868C23.5788 8.98013 23.5788 8.14013 23.0588 7.62013Z',
2571
+ 'M23.0588 16.4068C22.5388 15.8868 21.6988 15.8868 21.1788 16.4068L16.0055 21.5668L10.8322 16.3935C10.3122 15.8735 9.47216 15.8735 8.95216 16.3935C8.43216 16.9135 8.43216 17.7535 8.95216 18.2735L15.0722 24.3935C15.5922 24.9135 16.4322 24.9135 16.9522 24.3935L23.0722 18.2735C23.5788 17.7668 23.5788 16.9268 23.0588 16.4068Z',
2572
+ ];
2573
+ }
2574
+ else if (direction === 'up') {
2575
+ return [
2576
+ 'M8.94 24.3801C9.46 24.9001 10.3 24.9001 10.82 24.3801L16.0067 19.2201L21.18 24.3935C21.7 24.9135 22.54 24.9135 23.06 24.3935C23.58 23.8735 23.58 23.0335 23.06 22.5135L16.94 16.3935C16.42 15.8735 15.58 15.8735 15.06 16.3935L8.94 22.5001C8.42 23.0201 8.42 23.8601 8.94 24.3801Z',
2577
+ 'M8.94 15.5935C9.46 16.1135 10.3 16.1135 10.82 15.5935L16.0067 10.4335L21.18 15.6068C21.7 16.1268 22.54 16.1268 23.06 15.6068C23.58 15.0868 23.58 14.2468 23.06 13.7268L16.94 7.6068C16.42 7.0868 15.58 7.0868 15.06 7.6068L8.94 13.7135C8.42 14.2335 8.42 15.0735 8.94 15.5935Z',
2578
+ ];
2579
+ }
2580
+ return [
2581
+ 'M7.61987 8.94078C7.09987 9.46078 7.09987 10.3008 7.61987 10.8208L12.7799 16.0074L7.60654 21.1808C7.08654 21.7008 7.08654 22.5408 7.60654 23.0608C8.12653 23.5808 8.96654 23.5808 9.48654 23.0608L15.6065 16.9408C16.1265 16.4208 16.1265 15.5808 15.6065 15.0608L9.49987 8.94078C8.97987 8.42078 8.13987 8.42078 7.61987 8.94078Z',
2582
+ 'M16.4065 8.94078C15.8865 9.46078 15.8865 10.3008 16.4065 10.8208L21.5665 16.0074L16.3932 21.1808C15.8732 21.7008 15.8732 22.5408 16.3932 23.0608C16.9132 23.5808 17.7532 23.5808 18.2732 23.0608L24.3932 16.9408C24.9132 16.4208 24.9132 15.5808 24.3932 15.0608L18.2865 8.94078C17.7665 8.42078 16.9265 8.42078 16.4065 8.94078Z',
2583
+ ];
2584
+ }, [direction]);
2585
+ return (React__default.createElement(SVG, __assign({ fill: "none", xmlns: "http://www.w3.org/2000/svg", iconSizes: iconSizes$4, size: size }, props),
2586
+ React__default.createElement("title", { id: "DoubleArrowIcon" }, iconAltText),
2587
+ React__default.createElement("path", { d: directionPaths[0], fill: color }),
2588
+ React__default.createElement("path", { d: directionPaths[1], fill: color })));
2589
+ }
2590
+
2389
2591
  var avatarSizes = {
2390
2592
  tiny: {
2391
2593
  size: '24px',
@@ -2679,7 +2881,14 @@ var getVariantStyles = function (props, variant) {
2679
2881
  var ctaDark = getThemeColor(props, 'secondary1.80', colors.secondary1['80']);
2680
2882
  // const ctaLight = getThemeColor(props, 'secondary1.20', colors.secondary1['20']);
2681
2883
  var error = getThemeColor(props, 'errors.main', colors.errors.main);
2884
+ var errorLight = getThemeColor(props, 'errors.10', colors.errors['10']);
2682
2885
  var errorDark = getThemeColor(props, 'errors.70', colors.errors['70']);
2886
+ var customColor = props.variantColor || white;
2887
+ var customBorderColor = props.variantBorderColor;
2888
+ var customBg = props.variantBg;
2889
+ var customHoverColor = props.variantHoverColor || white;
2890
+ var customHoverBorderColor = props.variantHoverBorderColor;
2891
+ var customHoverBg = props.variantHoverBg;
2683
2892
  switch (variant) {
2684
2893
  case 'primary':
2685
2894
  return {
@@ -2771,6 +2980,24 @@ var getVariantStyles = function (props, variant) {
2771
2980
  outlineColor: error,
2772
2981
  },
2773
2982
  };
2983
+ case 'error-light':
2984
+ return {
2985
+ borderWidth: 3,
2986
+ borderStyle: 'solid',
2987
+ borderColor: error,
2988
+ background: error,
2989
+ color: white,
2990
+ ':hover': {
2991
+ borderWidth: 3,
2992
+ borderStyle: 'solid',
2993
+ borderColor: errorLight,
2994
+ background: errorLight,
2995
+ color: white,
2996
+ },
2997
+ ':focus-visible': {
2998
+ outlineColor: error,
2999
+ },
3000
+ };
2774
3001
  case 'disabled':
2775
3002
  return {
2776
3003
  borderWidth: 3,
@@ -2819,6 +3046,45 @@ var getVariantStyles = function (props, variant) {
2819
3046
  outlineColor: 'transparent',
2820
3047
  },
2821
3048
  };
3049
+ case 'text-error-light':
3050
+ return {
3051
+ borderWidth: 3,
3052
+ borderStyle: 'solid',
3053
+ borderColor: 'transparent',
3054
+ background: 'transparent',
3055
+ color: error,
3056
+ ':hover': {
3057
+ borderWidth: 3,
3058
+ borderStyle: 'solid',
3059
+ borderColor: errorLight,
3060
+ background: errorLight,
3061
+ color: white,
3062
+ },
3063
+ ':focus-visible': {
3064
+ outlineColor: 'transparent',
3065
+ },
3066
+ };
3067
+ case 'custom':
3068
+ if (!customBorderColor && !customBg) {
3069
+ return {};
3070
+ }
3071
+ return {
3072
+ borderWidth: 3,
3073
+ borderStyle: 'solid',
3074
+ borderColor: customBorderColor,
3075
+ background: customBg,
3076
+ color: customColor,
3077
+ ':hover': {
3078
+ borderWidth: 3,
3079
+ borderStyle: 'solid',
3080
+ borderColor: customHoverBorderColor || customBorderColor,
3081
+ background: customHoverBg || customBg,
3082
+ color: customHoverColor || customColor,
3083
+ },
3084
+ ':focus-visible': {
3085
+ outlineColor: customBorderColor,
3086
+ },
3087
+ };
2822
3088
  default:
2823
3089
  return {};
2824
3090
  }
@@ -2881,7 +3147,7 @@ var IconButton = React__default.forwardRef(function (props, ref) {
2881
3147
  var buttonPadding = !hasChildren
2882
3148
  ? getSizeStyle$1('iconOnlyPadding', '12px')
2883
3149
  : getSizeStyle$1('padding', '12px');
2884
- return (React__default.createElement(Button, __assign({ ref: ref, size: size }, newProps, { style: __assign(__assign(__assign({}, (newProps.style || {})), { padding: buttonPadding(__assign(__assign({}, newProps), { size: size })) }), (iconPosition === "top" || iconPosition === "bottom" ? {
3150
+ return (React__default.createElement(Button, __assign({ ref: ref, size: size }, newProps, { style: __assign(__assign({ padding: buttonPadding(__assign(__assign({}, newProps), { size: size })) }, (newProps.style || {})), (iconPosition === "top" || iconPosition === "bottom" ? {
2885
3151
  display: 'flex',
2886
3152
  flexDirection: 'column',
2887
3153
  alignItems: 'center',
@@ -2899,7 +3165,7 @@ var ButtonIcon = React__default.forwardRef(function (props, ref) {
2899
3165
  if (size !== "tiny" && size !== "small") {
2900
3166
  btnSize = "medium";
2901
3167
  }
2902
- var hoverColor = get(variantStyles, [':hover', 'color']) || '';
3168
+ var hoverColor = (iconProps === null || iconProps === void 0 ? void 0 : iconProps.hoverColor) || get(variantStyles, [':hover', 'color']) || '';
2903
3169
  var iconNewProps = __assign(__assign({}, iconProps), { size: btnSize, color: hoverColor && isHovering ? hoverColor : ((iconProps === null || iconProps === void 0 ? void 0 : iconProps.color) || variantStyles.color || '#fff'), style: __assign({ verticalAlign: 'top', paddingRight: hasChildren && iconPosition === "left" ? '5px' : '0px', paddingLeft: hasChildren && iconPosition === "right" ? '5px' : '0px', boxSizing: 'content-box' }, ((iconProps === null || iconProps === void 0 ? void 0 : iconProps.style) || {})) });
2904
3170
  if (typeof Icon !== 'function') {
2905
3171
  return React__default.cloneElement(Icon, iconNewProps);
@@ -3390,12 +3656,13 @@ function skuSelectStyles(props) {
3390
3656
  },
3391
3657
  };
3392
3658
  }
3393
- var skuSelectTheme = function (theme) { return (__assign(__assign({}, theme), { borderRadius: 5, colors: __assign(__assign({}, theme.colors), { primary25: colors.primary0, primary75: colors.primary0, primary50: colors.primary10, primary: colors.primary, neutral20: colors.select.border, neutral30: colors.select.border, neutral80: colors.textbody, neutral90: colors.textbody }) })); };
3659
+ var skuSelectThemeByProps = function (props) { return function (theme) { return (__assign(__assign({}, theme), { borderRadius: 5, colors: __assign(__assign({}, theme.colors), { primary25: getThemeColor(props, 'primary0', colors.primary0), primary75: getThemeColor(props, 'primary0', colors.primary0), primary50: getThemeColor(props, 'primary10', colors.primary10), primary: getThemeColor(props, 'primary', colors.primary), neutral20: getThemeColor(props, 'select.border', colors.select.border), neutral30: getThemeColor(props, 'select.border', colors.select.border), neutral80: getThemeColor(props, 'textbody', colors.textbody), neutral90: getThemeColor(props, 'textbody', colors.textbody) }) })); }; };
3394
3660
  // duplicate styles to overide .resku global styles
3395
3661
  // : React.ForwardRefExoticComponent<SKUSelectProps & React.RefAttributes<BaseSelect>>
3396
3662
  // React.ForwardRefExoticComponent<AdditionalSKUSelectProps & Omit<Pick<Props<unknown, boolean, GroupBase<unknown>>, "aria-errormessage" | "aria-invalid" | "aria-label" | ... 27 more ... | "form"> & InexactPartial<...> & InexactPartial<...>, StateManagedPropKeys> & Partial<...> & StateManagerAdditionalProps<...> & React.RefAttributes<...>>
3397
3663
  var SKUSelect = React__default.forwardRef(function (_a, ref) {
3398
3664
  var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
3665
+ var skuSelectTheme = skuSelectThemeByProps(props);
3399
3666
  var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
3400
3667
  var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
3401
3668
  return React__default.createElement(BaseSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix }, (inPopup ? popupStyles : {}), { styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props));
@@ -3411,6 +3678,7 @@ var LabeledSelect = React__default.forwardRef(function (_a, ref) {
3411
3678
  });
3412
3679
  var SKUCreatableSelect = React__default.forwardRef(function (_a, ref) {
3413
3680
  var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
3681
+ var skuSelectTheme = skuSelectThemeByProps(props);
3414
3682
  var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
3415
3683
  var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
3416
3684
  return (React__default.createElement(BaseCreatableSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
@@ -3426,6 +3694,7 @@ var LabeledCreatableSelect = React__default.forwardRef(function (_a, ref) {
3426
3694
  });
3427
3695
  var SKUAsyncSelect = React__default.forwardRef(function (_a, ref) {
3428
3696
  var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
3697
+ var skuSelectTheme = skuSelectThemeByProps(props);
3429
3698
  var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
3430
3699
  var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
3431
3700
  return (React__default.createElement(BaseAsyncSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
@@ -5864,7 +6133,27 @@ function LinkWithIcon(_a) {
5864
6133
  }
5865
6134
  var templateObject_1$K;
5866
6135
 
5867
- var NotificationVariantStyles = function (alertType) {
6136
+ var NotificationExtraContent = memo(function (props) {
6137
+ var learnMore = props.learnMore, linkText = props.linkText, href = props.href;
6138
+ if (learnMore) {
6139
+ return (React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, "Learn More"));
6140
+ }
6141
+ if (linkText) {
6142
+ return (React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, linkText));
6143
+ }
6144
+ return null;
6145
+ });
6146
+ var NotificationIcon = memo(function (props) {
6147
+ var alertType = props.alertType;
6148
+ if (alertType === "success") {
6149
+ return React__default.createElement(CompletedCheckmarkIcon, { color: colors.green.dark, mr: 8, style: { flexShrink: 0 } });
6150
+ }
6151
+ else if (alertType === "error") {
6152
+ return React__default.createElement(AlertIcon, { color: colors.errors.dark, mr: 8, style: { flexShrink: 0 } });
6153
+ }
6154
+ return React__default.createElement(InfoIcon, { color: colors.navy.dark, mr: 8, style: { flexShrink: 0 } });
6155
+ });
6156
+ var notificationVariantStyles = function (alertType) {
5868
6157
  switch (alertType) {
5869
6158
  case "neutral":
5870
6159
  return {
@@ -5885,31 +6174,14 @@ var NotificationVariantStyles = function (alertType) {
5885
6174
  return {};
5886
6175
  }
5887
6176
  };
5888
- var StyledNotification = styled.div(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n &&& {\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n width: fit-container;\n border-radius: 5px;\n padding: 24px 16px;\n display:flex;\n flex-direction: row;\n ", ";\n ", "\n ", "\n }\n"], ["\n &&& {\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n width: fit-container;\n border-radius: 5px;\n padding: 24px 16px;\n display:flex;\n flex-direction: row;\n ", ";\n ", "\n ", "\n }\n"])), fontStyles.p.medium.fontSize, fontStyles.p.medium.fontFamily, fontStyles.p.medium.lineHeight, function (props) { return props.alertType ? NotificationVariantStyles(props.alertType) : {}; }, SharedStyles, SizerCss);
5889
- function AlertNotification(_a) {
5890
- var _b = _a.alertType, alertType = _b === void 0 ? "neutral" : _b, _c = _a.learnMore, learnMore = _c === void 0 ? false : _c, href = _a.href, linkText = _a.linkText, children = _a.children, _d = _a.style, props = __rest(_a, ["alertType", "learnMore", "href", "linkText", "children", "style"]);
5891
- function notificationIcon() {
5892
- if (alertType === "success") {
5893
- return React__default.createElement(CompletedCheckmarkIcon, { color: colors.green.dark, mr: 8, style: { flexShrink: 0 } });
5894
- }
5895
- else if (alertType === "error") {
5896
- return React__default.createElement(AlertIcon, { color: colors.errors.dark, mr: 8, style: { flexShrink: 0 } });
5897
- }
5898
- else {
5899
- return React__default.createElement(InfoIcon, { color: colors.navy.dark, mr: 8, style: { flexShrink: 0 } });
5900
- }
5901
- }
5902
- NotificationVariantStyles(alertType);
5903
- return (React__default.createElement(StyledNotification, __assign({ alertType: alertType }, props),
5904
- notificationIcon(),
6177
+ var StyledNotification = styled.div(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n&&& {\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n width: fit-container;\n border-radius: 5px;\n padding: 24px 16px;\n display:flex;\n flex-direction: row;\n ", ";\n ", "\n ", "\n}"], ["\n&&& {\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n width: fit-container;\n border-radius: 5px;\n padding: 24px 16px;\n display:flex;\n flex-direction: row;\n ", ";\n ", "\n ", "\n}"])), fontStyles.p.medium.fontSize, fontStyles.p.medium.fontFamily, fontStyles.p.medium.lineHeight, function (props) { return props.alertType ? notificationVariantStyles(props.alertType) : {}; }, SharedStyles, SizerCss);
6178
+ var AlertNotification = function (_a) {
6179
+ var href = _a.href, linkText = _a.linkText, children = _a.children, _b = _a.alertType, alertType = _b === void 0 ? "neutral" : _b, _c = _a.learnMore, learnMore = _c === void 0 ? false : _c, _d = _a.style, style = _d === void 0 ? {} : _d, props = __rest(_a, ["href", "linkText", "children", "alertType", "learnMore", "style"]);
6180
+ return (React__default.createElement(StyledNotification, __assign({ alertType: alertType, style: style }, props),
6181
+ React__default.createElement(NotificationIcon, { alertType: alertType }),
5905
6182
  children,
5906
- learnMore ?
5907
- React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, "Learn More")
5908
- :
5909
- linkText ?
5910
- React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, linkText)
5911
- : null));
5912
- }
6183
+ React__default.createElement(NotificationExtraContent, { href: href, learnMore: learnMore, linkText: linkText })));
6184
+ };
5913
6185
  var templateObject_1$L;
5914
6186
 
5915
6187
  function useNumberInput(props) {
@@ -7013,13 +7285,13 @@ var SimpleWindowedTableStyles = styled.div(templateObject_1$V || (templateObject
7013
7285
  ? "background: ".concat(getThemeColor(p, 'tableHeaderBg', '#F6FEFF'), ";")
7014
7286
  : css(p.selectedRowStyle), "\n }") : ''; });
7015
7287
  function SimpleWindowedTable(_a) {
7016
- var columns = _a.columns, data = _a.data, _b = _a.itemSize, itemSize = _b === void 0 ? 80 : _b, _c = _a.height, height = _c === void 0 ? 500 : _c, _d = _a.minWidth, minWidth = _d === void 0 ? 140 : _d, _e = _a.maxWidth, maxWidth = _e === void 0 ? 500 : _e, defaultSort = _a.defaultSort, onClickRow = _a.onClickRow, onScroll = _a.onScroll, onUpdateData = _a.onUpdateData, _f = _a.useTableProps, useTableProps = _f === void 0 ? {} : _f, _g = _a.tableHeaderProps, tableHeaderProps = _g === void 0 ? {} : _g, _h = _a.tableFooterProps, tableFooterProps = _h === void 0 ? {} : _h, _j = _a.hideFooter, hideFooter = _j === void 0 ? true : _j, _k = _a.className, className = _k === void 0 ? '' : _k, NoRowsFound = _a.NoRowsFound;
7288
+ var columns = _a.columns, data = _a.data, _b = _a.itemSize, itemSize = _b === void 0 ? 80 : _b, _c = _a.height, height = _c === void 0 ? 500 : _c, _d = _a.minWidth, minWidth = _d === void 0 ? 140 : _d, _e = _a.maxWidth, maxWidth = _e === void 0 ? 500 : _e, defaultSort = _a.defaultSort, onClickRow = _a.onClickRow, onScroll = _a.onScroll, onUpdateData = _a.onUpdateData, _f = _a.useTableProps, useTableProps = _f === void 0 ? {} : _f, _g = _a.tableHeaderProps, tableHeaderProps = _g === void 0 ? {} : _g, _h = _a.tableFooterProps, tableFooterProps = _h === void 0 ? {} : _h, _j = _a.headerGroupStyle, headerGroupStyle = _j === void 0 ? {} : _j, _k = _a.hideFooter, hideFooter = _k === void 0 ? true : _k, _l = _a.clearRowFullWidth, clearRowFullWidth = _l === void 0 ? false : _l, _m = _a.className, className = _m === void 0 ? '' : _m, NoRowsFound = _a.NoRowsFound;
7017
7289
  var defaultColumn = React__default.useMemo(function () { return ({
7018
7290
  minWidth: minWidth,
7019
7291
  maxWidth: maxWidth,
7020
7292
  }); }, [minWidth, maxWidth]);
7021
7293
  var scrollBarSize = React__default.useMemo(function () { return scrollbarWidth(); }, []);
7022
- var _l = useTable(__assign({ columns: columns, data: data, defaultColumn: defaultColumn, initialState: __assign({}, (defaultSort ? { sortBy: [defaultSort] } : {})), onUpdateData: onUpdateData }, useTableProps), useSortBy, useFlexLayout), getTableProps = _l.getTableProps, getTableBodyProps = _l.getTableBodyProps, headerGroups = _l.headerGroups, footerGroups = _l.footerGroups, rows = _l.rows, totalColumnsWidth = _l.totalColumnsWidth, prepareRow = _l.prepareRow;
7294
+ var _o = useTable(__assign({ columns: columns, data: data, defaultColumn: defaultColumn, initialState: __assign({}, (defaultSort ? { sortBy: [defaultSort] } : {})), onUpdateData: onUpdateData }, useTableProps), useSortBy, useFlexLayout), getTableProps = _o.getTableProps, getTableBodyProps = _o.getTableBodyProps, headerGroups = _o.headerGroups, footerGroups = _o.footerGroups, rows = _o.rows, totalColumnsWidth = _o.totalColumnsWidth, prepareRow = _o.prepareRow;
7023
7295
  var headerRef = useRef(null);
7024
7296
  var footerRef = useRef(null);
7025
7297
  var rowsRef = useRef();
@@ -7044,13 +7316,15 @@ function SimpleWindowedTable(_a) {
7044
7316
  var index = _a.index, isScrolling = _a.isScrolling, style = _a.style;
7045
7317
  var row = rows[index];
7046
7318
  prepareRow(row);
7047
- return (React__default.createElement("div", __assign({}, row.getRowProps({
7048
- style: style
7049
- }), { className: "tr" }), row.cells.map(function (cell) {
7319
+ var rowStyle = __assign({}, (style || {}));
7320
+ if (rowStyle.width && rowStyle.width === '100%' && clearRowFullWidth) {
7321
+ delete rowStyle.width;
7322
+ }
7323
+ return (React__default.createElement("div", __assign({}, row.getRowProps({ style: rowStyle }), { className: "tr" }), row.cells.map(function (cell) {
7050
7324
  var cellProps = cell.getCellProps();
7051
7325
  return (React__default.createElement("div", __assign({}, cellProps, { onClick: function () { return onClickRow ? onClickRow(cell.row.original, index) : null; }, className: "td ".concat(cellProps.className || '') }), cell.render("Cell", { isScrolling: isScrolling })));
7052
7326
  })));
7053
- }, [prepareRow, rows, onClickRow]);
7327
+ }, [prepareRow, rows, onClickRow, clearRowFullWidth]);
7054
7328
  var getHeaderProps = function (column, isFooter) {
7055
7329
  if (isFooter === void 0) { isFooter = false; }
7056
7330
  var headerProps = column.getHeaderProps(__assign(__assign({}, column.getSortByToggleProps()), (column.containerProps || {})));
@@ -7076,13 +7350,20 @@ function SimpleWindowedTable(_a) {
7076
7350
  return __assign(__assign({}, headerGroupProps), { style: headerStyles, className: headerClassNames });
7077
7351
  };
7078
7352
  return (React__default.createElement("div", __assign({}, getTableProps(), { className: "table ".concat(className || '') }),
7079
- React__default.createElement("div", __assign({}, tableHeaderProps, { className: "header-wrapper ".concat(tableHeaderProps.className || '') }), headerGroups.map(function (headerGroup) { return (React__default.createElement("div", __assign({}, getHeaderGroupProps(headerGroup, false), { className: "header tr", ref: headerRef }), headerGroup.headers.map(function (column) { return (React__default.createElement("div", __assign({}, getHeaderProps(column, false)),
7080
- column.render("Header"),
7081
- column.canSort ? React__default.createElement("span", { style: { display: 'inline-block', paddingLeft: 5, verticalAlign: 'text-top' } }, column.isSorted ? (column.isSortedDesc ? React__default.createElement(FilledChevronIcon, { direction: "down", width: "15px" }) : React__default.createElement(FilledChevronIcon, { direction: "up", width: "15px" })) : React__default.createElement(FilledChevronIcon, { direction: "updown", width: "15px" })) : null)); }))); })),
7353
+ React__default.createElement("div", __assign({}, tableHeaderProps, { className: "header-wrapper ".concat(tableHeaderProps.className || '') }), headerGroups.map(function (headerGroup) {
7354
+ var headerGroupProps = getHeaderGroupProps(headerGroup, false);
7355
+ return (React__default.createElement("div", __assign({}, headerGroupProps, { className: "header tr", ref: headerRef, style: __assign(__assign({}, (headerGroupProps.style || {})), (headerGroupStyle || {})) }), headerGroup.headers.map(function (column) { return (React__default.createElement("div", __assign({}, getHeaderProps(column, false)),
7356
+ column.render("Header"),
7357
+ column.canSort ?
7358
+ React__default.createElement(FilledChevronIcon, { size: 'medium', direction: column.isSorted
7359
+ ? (column.isSortedDesc ? 'down' : 'up')
7360
+ : 'updown', style: { verticalAlign: 'middle' } })
7361
+ : null)); })));
7362
+ })),
7082
7363
  React__default.createElement("div", __assign({}, getTableBodyProps()), rows.length === 0 && NoRowsFound ? React__default.createElement(NoRowsFound, null) : React__default.createElement(FixedSizeList, { height: height, itemCount: rows.length, itemSize: itemSize, width: totalColumnsWidth + scrollBarSize, className: "table-list-rows", outerRef: rowsRef, onScroll: onScroll, useIsScrolling: true }, RenderRow)),
7083
7364
  !hideFooter ? React__default.createElement("div", __assign({}, tableFooterProps, { className: "table-footer-wrapper ".concat(tableFooterProps.className || '') }), footerGroups.map(function (footerGroup) { return (React__default.createElement("div", __assign({}, getHeaderGroupProps(footerGroup, true), { className: "table-footer tr", ref: footerRef }), footerGroup.headers.map(function (column) { return (React__default.createElement("div", __assign({}, getHeaderProps(column, true)), column.render("Footer"))); }))); })) : null));
7084
7365
  }
7085
7366
  var templateObject_1$V;
7086
7367
 
7087
- export { AddIcon, AddNoteIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, SKUAsyncSelect as AsyncSelect, Avatar, AwaitingProofIcon, Backdrop, Background, Badge, BotIcon, Box, BulletIcon, Button, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, CollaborateIcon, CollapseStyled, CollapseWrapper, Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelTitle, CollapsiblePanels, Collapsible$1 as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentIcon, CommunityIcon, CompletedCheckmarkIcon, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CustomDateInput, Datepicker, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropDownContent, Dropdown, DropdownItem, Dropzoned, DropzonedPreviews, EPOIcon, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridRow, GridTable, GridTableContainer, H1, H2, H3, H4, H5, H6, HandleIcon, HeaderWrapper, HeadlessTable, HistoryIcon, IconButton, IconDoc, Img, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledSelect, LabeledTextarea, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MailIcon, MarketingStatusIcon, MenuIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavResourcesIcon, NavSalesIcon, NoteIcon, Number$1 as Number, NumberInput, OpportunityCircleIcon, OrderStatusIcon, Overlay, Padding, Page, PanelContact, PanelTileContact, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PresentationCircleIcon, Product, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, ReceiptLongIcon, ResponsiveTable, Row, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SharedStyles, ShopIcon, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableStyles, SizerCss, SizerWrapper, Sparkles, Spinner, StarIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDayBody, StyledDayText, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, TBody, TD, TH, THSorted, THead, TR, Tab, TabBar, Table, TableIcon, Tabs, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TasksCalendarHeader, TemplateIcon, Text, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, TrashIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes$1 as sizes, themeOptions, toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useWindowSize };
7368
+ export { AddIcon, AddNoteIcon, AddShoppingCartIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, SKUAsyncSelect as AsyncSelect, Avatar, AwaitingProofIcon, Backdrop, Background, Badge, BotIcon, Box, BulletIcon, Button, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, CollaborateIcon, CollapseStyled, CollapseWrapper, Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelTitle, CollapsiblePanels, Collapsible$1 as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentIcon, CommunityIcon, CompletedCheckmarkIcon, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CustomDateInput, Datepicker, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DoubleArrowIcon, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropDownContent, Dropdown, DropdownItem, Dropzoned, DropzonedPreviews, EPOIcon, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FileUploadIcon, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridRow, GridTable, GridTableContainer, H1, H2, H3, H4, H5, H6, HandleIcon, HeaderWrapper, HeadlessTable, HelpIcon, HistoryIcon, IconButton, IconDoc, Img, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledSelect, LabeledTextarea, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MailIcon, MarketingStatusIcon, MenuIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavResourcesIcon, NavSalesIcon, NoteIcon, Number$1 as Number, NumberInput, OpportunityCircleIcon, OrderStatusIcon, Overlay, Padding, Page, PanelContact, PanelTileContact, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PresentationCircleIcon, Product, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, ReceiptLongIcon, ResponsiveTable, Row, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SharedStyles, ShopIcon, ShoppingCartIcon, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableStyles, SizerCss, SizerWrapper, Sparkles, Spinner, StarIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDayBody, StyledDayText, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, TBody, TD, TH, THSorted, THead, TR, Tab, TabBar, Table, TableIcon, Tabs, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TasksCalendarHeader, TemplateIcon, Text, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, TrashIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes$1 as sizes, themeOptions, toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useWindowSize };
7088
7369
  //# sourceMappingURL=index.es.js.map