@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.d.ts +57 -10
- package/dist/index.es.js +321 -40
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +323 -37
- package/dist/index.js.map +1 -1
- package/dist/styles/AlertNotification.d.ts +10 -6
- package/dist/styles/AlertNotification.d.ts.map +1 -1
- package/dist/styles/Button.d.ts +25 -3
- package/dist/styles/Button.d.ts.map +1 -1
- package/dist/styles/Select.d.ts.map +1 -1
- package/dist/styles/icons/AddShoppingCartIcon.d.ts +6 -0
- package/dist/styles/icons/AddShoppingCartIcon.d.ts.map +1 -0
- package/dist/styles/icons/DoubleArrowIcon.d.ts +41 -0
- package/dist/styles/icons/DoubleArrowIcon.d.ts.map +1 -0
- package/dist/styles/icons/FileUploadIcon.d.ts +38 -0
- package/dist/styles/icons/FileUploadIcon.d.ts.map +1 -0
- package/dist/styles/icons/HelpIcon.d.ts +6 -0
- package/dist/styles/icons/HelpIcon.d.ts.map +1 -0
- package/dist/styles/icons/ShoppingCartIcon.d.ts +6 -0
- package/dist/styles/icons/ShoppingCartIcon.d.ts.map +1 -0
- package/dist/styles/icons/index.d.ts +5 -0
- package/dist/styles/icons/index.d.ts.map +1 -1
- package/dist/styles/tables/SimpleWindowedTable.d.ts +3 -1
- package/dist/styles/tables/SimpleWindowedTable.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2331,6 +2331,82 @@ function HandleIcon(_a) {
|
|
|
2331
2331
|
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 }));
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
|
+
var iconSizes$1 = {
|
|
2335
|
+
tiny: {
|
|
2336
|
+
width: 16,
|
|
2337
|
+
height: 18,
|
|
2338
|
+
viewBox: "0 0 22 20",
|
|
2339
|
+
},
|
|
2340
|
+
small: {
|
|
2341
|
+
width: 20,
|
|
2342
|
+
height: 22,
|
|
2343
|
+
viewBox: "0 0 22 20",
|
|
2344
|
+
},
|
|
2345
|
+
medium: {
|
|
2346
|
+
width: 30,
|
|
2347
|
+
height: 28,
|
|
2348
|
+
viewBox: "0 0 22 20",
|
|
2349
|
+
},
|
|
2350
|
+
large: {
|
|
2351
|
+
width: 34,
|
|
2352
|
+
height: 36,
|
|
2353
|
+
viewBox: "0 0 22 20",
|
|
2354
|
+
},
|
|
2355
|
+
huge: {
|
|
2356
|
+
width: 48,
|
|
2357
|
+
height: 50,
|
|
2358
|
+
viewBox: "0 0 22 20",
|
|
2359
|
+
},
|
|
2360
|
+
default: {
|
|
2361
|
+
width: 30,
|
|
2362
|
+
height: 28,
|
|
2363
|
+
viewBox: "0 0 22 20",
|
|
2364
|
+
},
|
|
2365
|
+
};
|
|
2366
|
+
function ShoppingCartIcon(_a) {
|
|
2367
|
+
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"]);
|
|
2368
|
+
return (React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "ShoppingCartIcon", iconSizes: iconSizes$1, altText: altText }, props),
|
|
2369
|
+
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 })));
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
var iconSizes$2 = {
|
|
2373
|
+
tiny: {
|
|
2374
|
+
width: 14,
|
|
2375
|
+
height: 15,
|
|
2376
|
+
viewBox: "0 0 21 22",
|
|
2377
|
+
},
|
|
2378
|
+
small: {
|
|
2379
|
+
width: 16,
|
|
2380
|
+
height: 17,
|
|
2381
|
+
viewBox: "0 0 21 22",
|
|
2382
|
+
},
|
|
2383
|
+
medium: {
|
|
2384
|
+
width: 21,
|
|
2385
|
+
height: 22,
|
|
2386
|
+
viewBox: "0 0 21 22",
|
|
2387
|
+
},
|
|
2388
|
+
large: {
|
|
2389
|
+
width: 32,
|
|
2390
|
+
height: 33,
|
|
2391
|
+
viewBox: "0 0 21 22",
|
|
2392
|
+
},
|
|
2393
|
+
huge: {
|
|
2394
|
+
width: 48,
|
|
2395
|
+
height: 49,
|
|
2396
|
+
viewBox: "0 0 21 22",
|
|
2397
|
+
},
|
|
2398
|
+
default: {
|
|
2399
|
+
width: 21,
|
|
2400
|
+
height: 22,
|
|
2401
|
+
viewBox: "0 0 21 22",
|
|
2402
|
+
},
|
|
2403
|
+
};
|
|
2404
|
+
function AddShoppingCartIcon(_a) {
|
|
2405
|
+
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"]);
|
|
2406
|
+
return (React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "AddShoppingCartIcon", iconSizes: iconSizes$2 }, props),
|
|
2407
|
+
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 })));
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2334
2410
|
function CommunityIcon(_a) {
|
|
2335
2411
|
var _b = _a.size, size = _b === void 0 ? "medium" : _b, _c = _a.altText, altText = _c === void 0 ? "Community" : _c, props = __rest(_a, ["size", "altText"]);
|
|
2336
2412
|
return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "CommunityIcon" }, props),
|
|
@@ -2395,6 +2471,132 @@ function EPOIcon(_a) {
|
|
|
2395
2471
|
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 }));
|
|
2396
2472
|
}
|
|
2397
2473
|
|
|
2474
|
+
function HelpIcon(_a) {
|
|
2475
|
+
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"]);
|
|
2476
|
+
return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "HelpIcon" }, props),
|
|
2477
|
+
React__default.createElement("title", { id: "HelpIcon" }, altText),
|
|
2478
|
+
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 }));
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
var iconSizes$3 = {
|
|
2482
|
+
tiny: {
|
|
2483
|
+
width: 188,
|
|
2484
|
+
height: 44,
|
|
2485
|
+
viewBox: "0 0 208 64",
|
|
2486
|
+
},
|
|
2487
|
+
small: {
|
|
2488
|
+
width: 198,
|
|
2489
|
+
height: 54,
|
|
2490
|
+
viewBox: "0 0 208 64",
|
|
2491
|
+
},
|
|
2492
|
+
medium: {
|
|
2493
|
+
width: 208,
|
|
2494
|
+
height: 64,
|
|
2495
|
+
viewBox: "0 0 208 64",
|
|
2496
|
+
},
|
|
2497
|
+
large: {
|
|
2498
|
+
width: 218,
|
|
2499
|
+
height: 74,
|
|
2500
|
+
viewBox: "0 0 208 64",
|
|
2501
|
+
},
|
|
2502
|
+
huge: {
|
|
2503
|
+
width: 228,
|
|
2504
|
+
height: 84,
|
|
2505
|
+
viewBox: "0 0 208 64",
|
|
2506
|
+
},
|
|
2507
|
+
default: {
|
|
2508
|
+
width: 238,
|
|
2509
|
+
height: 94,
|
|
2510
|
+
viewBox: "0 0 208 64",
|
|
2511
|
+
},
|
|
2512
|
+
};
|
|
2513
|
+
function FileUploadIcon(_a) {
|
|
2514
|
+
var _b = _a.color, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, props = __rest(_a, ["color", "size", "altText"]);
|
|
2515
|
+
var clipId = "clip0_2603_83254_".concat(_.uniqueId('clip'));
|
|
2516
|
+
return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "FileUploadIcon", iconSizes: iconSizes$3 }, props),
|
|
2517
|
+
React__default.createElement("g", { clipPath: "url(#".concat(clipId, ")") },
|
|
2518
|
+
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" })),
|
|
2519
|
+
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" }),
|
|
2520
|
+
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" }),
|
|
2521
|
+
React__default.createElement("defs", null,
|
|
2522
|
+
React__default.createElement("clipPath", { id: clipId },
|
|
2523
|
+
React__default.createElement("rect", { width: "64", height: "64", fill: "white", transform: "translate(24)" }))));
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
var iconSizes$4 = {
|
|
2527
|
+
tiny: {
|
|
2528
|
+
width: 12,
|
|
2529
|
+
height: 12,
|
|
2530
|
+
viewBox: "0 0 32 32",
|
|
2531
|
+
},
|
|
2532
|
+
small: {
|
|
2533
|
+
width: 22,
|
|
2534
|
+
height: 22,
|
|
2535
|
+
viewBox: "0 0 32 32",
|
|
2536
|
+
},
|
|
2537
|
+
medium: {
|
|
2538
|
+
width: 32,
|
|
2539
|
+
height: 32,
|
|
2540
|
+
viewBox: "0 0 32 32",
|
|
2541
|
+
},
|
|
2542
|
+
large: {
|
|
2543
|
+
width: 62,
|
|
2544
|
+
height: 62,
|
|
2545
|
+
viewBox: "0 0 32 32",
|
|
2546
|
+
},
|
|
2547
|
+
huge: {
|
|
2548
|
+
width: 82,
|
|
2549
|
+
height: 82,
|
|
2550
|
+
viewBox: "0 0 32 32",
|
|
2551
|
+
},
|
|
2552
|
+
default: {
|
|
2553
|
+
width: 32,
|
|
2554
|
+
height: 32,
|
|
2555
|
+
viewBox: "0 0 32 32",
|
|
2556
|
+
},
|
|
2557
|
+
};
|
|
2558
|
+
function DoubleArrowIcon(_a) {
|
|
2559
|
+
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"]);
|
|
2560
|
+
var iconAltText = React.useMemo(function () {
|
|
2561
|
+
if (altText) {
|
|
2562
|
+
return altText;
|
|
2563
|
+
}
|
|
2564
|
+
switch (direction) {
|
|
2565
|
+
case 'right': return 'Next';
|
|
2566
|
+
case 'left': return 'Previous';
|
|
2567
|
+
default: return '';
|
|
2568
|
+
}
|
|
2569
|
+
}, [altText, direction]);
|
|
2570
|
+
var directionPaths = React__default.useMemo(function () {
|
|
2571
|
+
if (direction === "left") {
|
|
2572
|
+
return [
|
|
2573
|
+
'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',
|
|
2574
|
+
'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',
|
|
2575
|
+
];
|
|
2576
|
+
}
|
|
2577
|
+
else if (direction === 'down') {
|
|
2578
|
+
return [
|
|
2579
|
+
'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',
|
|
2580
|
+
'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',
|
|
2581
|
+
];
|
|
2582
|
+
}
|
|
2583
|
+
else if (direction === 'up') {
|
|
2584
|
+
return [
|
|
2585
|
+
'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',
|
|
2586
|
+
'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',
|
|
2587
|
+
];
|
|
2588
|
+
}
|
|
2589
|
+
return [
|
|
2590
|
+
'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',
|
|
2591
|
+
'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',
|
|
2592
|
+
];
|
|
2593
|
+
}, [direction]);
|
|
2594
|
+
return (React__default.createElement(SVG, __assign({ fill: "none", xmlns: "http://www.w3.org/2000/svg", iconSizes: iconSizes$4, size: size }, props),
|
|
2595
|
+
React__default.createElement("title", { id: "DoubleArrowIcon" }, iconAltText),
|
|
2596
|
+
React__default.createElement("path", { d: directionPaths[0], fill: color }),
|
|
2597
|
+
React__default.createElement("path", { d: directionPaths[1], fill: color })));
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2398
2600
|
var avatarSizes = {
|
|
2399
2601
|
tiny: {
|
|
2400
2602
|
size: '24px',
|
|
@@ -2688,7 +2890,14 @@ var getVariantStyles = function (props, variant) {
|
|
|
2688
2890
|
var ctaDark = getThemeColor(props, 'secondary1.80', colors.secondary1['80']);
|
|
2689
2891
|
// const ctaLight = getThemeColor(props, 'secondary1.20', colors.secondary1['20']);
|
|
2690
2892
|
var error = getThemeColor(props, 'errors.main', colors.errors.main);
|
|
2893
|
+
var errorLight = getThemeColor(props, 'errors.10', colors.errors['10']);
|
|
2691
2894
|
var errorDark = getThemeColor(props, 'errors.70', colors.errors['70']);
|
|
2895
|
+
var customColor = props.variantColor || white;
|
|
2896
|
+
var customBorderColor = props.variantBorderColor;
|
|
2897
|
+
var customBg = props.variantBg;
|
|
2898
|
+
var customHoverColor = props.variantHoverColor || white;
|
|
2899
|
+
var customHoverBorderColor = props.variantHoverBorderColor;
|
|
2900
|
+
var customHoverBg = props.variantHoverBg;
|
|
2692
2901
|
switch (variant) {
|
|
2693
2902
|
case 'primary':
|
|
2694
2903
|
return {
|
|
@@ -2780,6 +2989,24 @@ var getVariantStyles = function (props, variant) {
|
|
|
2780
2989
|
outlineColor: error,
|
|
2781
2990
|
},
|
|
2782
2991
|
};
|
|
2992
|
+
case 'error-light':
|
|
2993
|
+
return {
|
|
2994
|
+
borderWidth: 3,
|
|
2995
|
+
borderStyle: 'solid',
|
|
2996
|
+
borderColor: error,
|
|
2997
|
+
background: error,
|
|
2998
|
+
color: white,
|
|
2999
|
+
':hover': {
|
|
3000
|
+
borderWidth: 3,
|
|
3001
|
+
borderStyle: 'solid',
|
|
3002
|
+
borderColor: errorLight,
|
|
3003
|
+
background: errorLight,
|
|
3004
|
+
color: white,
|
|
3005
|
+
},
|
|
3006
|
+
':focus-visible': {
|
|
3007
|
+
outlineColor: error,
|
|
3008
|
+
},
|
|
3009
|
+
};
|
|
2783
3010
|
case 'disabled':
|
|
2784
3011
|
return {
|
|
2785
3012
|
borderWidth: 3,
|
|
@@ -2828,6 +3055,45 @@ var getVariantStyles = function (props, variant) {
|
|
|
2828
3055
|
outlineColor: 'transparent',
|
|
2829
3056
|
},
|
|
2830
3057
|
};
|
|
3058
|
+
case 'text-error-light':
|
|
3059
|
+
return {
|
|
3060
|
+
borderWidth: 3,
|
|
3061
|
+
borderStyle: 'solid',
|
|
3062
|
+
borderColor: 'transparent',
|
|
3063
|
+
background: 'transparent',
|
|
3064
|
+
color: error,
|
|
3065
|
+
':hover': {
|
|
3066
|
+
borderWidth: 3,
|
|
3067
|
+
borderStyle: 'solid',
|
|
3068
|
+
borderColor: errorLight,
|
|
3069
|
+
background: errorLight,
|
|
3070
|
+
color: white,
|
|
3071
|
+
},
|
|
3072
|
+
':focus-visible': {
|
|
3073
|
+
outlineColor: 'transparent',
|
|
3074
|
+
},
|
|
3075
|
+
};
|
|
3076
|
+
case 'custom':
|
|
3077
|
+
if (!customBorderColor && !customBg) {
|
|
3078
|
+
return {};
|
|
3079
|
+
}
|
|
3080
|
+
return {
|
|
3081
|
+
borderWidth: 3,
|
|
3082
|
+
borderStyle: 'solid',
|
|
3083
|
+
borderColor: customBorderColor,
|
|
3084
|
+
background: customBg,
|
|
3085
|
+
color: customColor,
|
|
3086
|
+
':hover': {
|
|
3087
|
+
borderWidth: 3,
|
|
3088
|
+
borderStyle: 'solid',
|
|
3089
|
+
borderColor: customHoverBorderColor || customBorderColor,
|
|
3090
|
+
background: customHoverBg || customBg,
|
|
3091
|
+
color: customHoverColor || customColor,
|
|
3092
|
+
},
|
|
3093
|
+
':focus-visible': {
|
|
3094
|
+
outlineColor: customBorderColor,
|
|
3095
|
+
},
|
|
3096
|
+
};
|
|
2831
3097
|
default:
|
|
2832
3098
|
return {};
|
|
2833
3099
|
}
|
|
@@ -2890,7 +3156,7 @@ var IconButton = React__default.forwardRef(function (props, ref) {
|
|
|
2890
3156
|
var buttonPadding = !hasChildren
|
|
2891
3157
|
? getSizeStyle$1('iconOnlyPadding', '12px')
|
|
2892
3158
|
: getSizeStyle$1('padding', '12px');
|
|
2893
|
-
return (React__default.createElement(Button, __assign({ ref: ref, size: size }, newProps, { style: __assign(__assign(
|
|
3159
|
+
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" ? {
|
|
2894
3160
|
display: 'flex',
|
|
2895
3161
|
flexDirection: 'column',
|
|
2896
3162
|
alignItems: 'center',
|
|
@@ -2908,7 +3174,7 @@ var ButtonIcon = React__default.forwardRef(function (props, ref) {
|
|
|
2908
3174
|
if (size !== "tiny" && size !== "small") {
|
|
2909
3175
|
btnSize = "medium";
|
|
2910
3176
|
}
|
|
2911
|
-
var hoverColor = _.get(variantStyles, [':hover', 'color']) || '';
|
|
3177
|
+
var hoverColor = (iconProps === null || iconProps === void 0 ? void 0 : iconProps.hoverColor) || _.get(variantStyles, [':hover', 'color']) || '';
|
|
2912
3178
|
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) || {})) });
|
|
2913
3179
|
if (typeof Icon !== 'function') {
|
|
2914
3180
|
return React__default.cloneElement(Icon, iconNewProps);
|
|
@@ -3399,12 +3665,13 @@ function skuSelectStyles(props) {
|
|
|
3399
3665
|
},
|
|
3400
3666
|
};
|
|
3401
3667
|
}
|
|
3402
|
-
var
|
|
3668
|
+
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) }) })); }; };
|
|
3403
3669
|
// duplicate styles to overide .resku global styles
|
|
3404
3670
|
// : React.ForwardRefExoticComponent<SKUSelectProps & React.RefAttributes<BaseSelect>>
|
|
3405
3671
|
// 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<...>>
|
|
3406
3672
|
var SKUSelect = React__default.forwardRef(function (_a, ref) {
|
|
3407
3673
|
var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
|
|
3674
|
+
var skuSelectTheme = skuSelectThemeByProps(props);
|
|
3408
3675
|
var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
|
|
3409
3676
|
var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
|
|
3410
3677
|
return React__default.createElement(BaseSelect__default, __assign({ ref: ref, classNamePrefix: classNamePrefix }, (inPopup ? popupStyles : {}), { styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props));
|
|
@@ -3420,6 +3687,7 @@ var LabeledSelect = React__default.forwardRef(function (_a, ref) {
|
|
|
3420
3687
|
});
|
|
3421
3688
|
var SKUCreatableSelect = React__default.forwardRef(function (_a, ref) {
|
|
3422
3689
|
var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
|
|
3690
|
+
var skuSelectTheme = skuSelectThemeByProps(props);
|
|
3423
3691
|
var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
|
|
3424
3692
|
var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
|
|
3425
3693
|
return (React__default.createElement(BaseCreatableSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
|
|
@@ -3435,6 +3703,7 @@ var LabeledCreatableSelect = React__default.forwardRef(function (_a, ref) {
|
|
|
3435
3703
|
});
|
|
3436
3704
|
var SKUAsyncSelect = React__default.forwardRef(function (_a, ref) {
|
|
3437
3705
|
var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
|
|
3706
|
+
var skuSelectTheme = skuSelectThemeByProps(props);
|
|
3438
3707
|
var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
|
|
3439
3708
|
var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
|
|
3440
3709
|
return (React__default.createElement(BaseAsyncSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
|
|
@@ -5873,7 +6142,27 @@ function LinkWithIcon(_a) {
|
|
|
5873
6142
|
}
|
|
5874
6143
|
var templateObject_1$K;
|
|
5875
6144
|
|
|
5876
|
-
var
|
|
6145
|
+
var NotificationExtraContent = React.memo(function (props) {
|
|
6146
|
+
var learnMore = props.learnMore, linkText = props.linkText, href = props.href;
|
|
6147
|
+
if (learnMore) {
|
|
6148
|
+
return (React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, "Learn More"));
|
|
6149
|
+
}
|
|
6150
|
+
if (linkText) {
|
|
6151
|
+
return (React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, linkText));
|
|
6152
|
+
}
|
|
6153
|
+
return null;
|
|
6154
|
+
});
|
|
6155
|
+
var NotificationIcon = React.memo(function (props) {
|
|
6156
|
+
var alertType = props.alertType;
|
|
6157
|
+
if (alertType === "success") {
|
|
6158
|
+
return React__default.createElement(CompletedCheckmarkIcon, { color: colors.green.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6159
|
+
}
|
|
6160
|
+
else if (alertType === "error") {
|
|
6161
|
+
return React__default.createElement(AlertIcon, { color: colors.errors.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6162
|
+
}
|
|
6163
|
+
return React__default.createElement(InfoIcon, { color: colors.navy.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6164
|
+
});
|
|
6165
|
+
var notificationVariantStyles = function (alertType) {
|
|
5877
6166
|
switch (alertType) {
|
|
5878
6167
|
case "neutral":
|
|
5879
6168
|
return {
|
|
@@ -5894,31 +6183,14 @@ var NotificationVariantStyles = function (alertType) {
|
|
|
5894
6183
|
return {};
|
|
5895
6184
|
}
|
|
5896
6185
|
};
|
|
5897
|
-
var StyledNotification = styled__default.div(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n
|
|
5898
|
-
function
|
|
5899
|
-
var _b = _a.alertType, alertType = _b === void 0 ? "neutral" : _b, _c = _a.learnMore, learnMore = _c === void 0 ? false : _c,
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
return React__default.createElement(CompletedCheckmarkIcon, { color: colors.green.dark, mr: 8, style: { flexShrink: 0 } });
|
|
5903
|
-
}
|
|
5904
|
-
else if (alertType === "error") {
|
|
5905
|
-
return React__default.createElement(AlertIcon, { color: colors.errors.dark, mr: 8, style: { flexShrink: 0 } });
|
|
5906
|
-
}
|
|
5907
|
-
else {
|
|
5908
|
-
return React__default.createElement(InfoIcon, { color: colors.navy.dark, mr: 8, style: { flexShrink: 0 } });
|
|
5909
|
-
}
|
|
5910
|
-
}
|
|
5911
|
-
NotificationVariantStyles(alertType);
|
|
5912
|
-
return (React__default.createElement(StyledNotification, __assign({ alertType: alertType }, props),
|
|
5913
|
-
notificationIcon(),
|
|
6186
|
+
var StyledNotification = styled__default.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);
|
|
6187
|
+
var AlertNotification = function (_a) {
|
|
6188
|
+
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"]);
|
|
6189
|
+
return (React__default.createElement(StyledNotification, __assign({ alertType: alertType, style: style }, props),
|
|
6190
|
+
React__default.createElement(NotificationIcon, { alertType: alertType }),
|
|
5914
6191
|
children,
|
|
5915
|
-
learnMore
|
|
5916
|
-
|
|
5917
|
-
:
|
|
5918
|
-
linkText ?
|
|
5919
|
-
React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, linkText)
|
|
5920
|
-
: null));
|
|
5921
|
-
}
|
|
6192
|
+
React__default.createElement(NotificationExtraContent, { href: href, learnMore: learnMore, linkText: linkText })));
|
|
6193
|
+
};
|
|
5922
6194
|
var templateObject_1$L;
|
|
5923
6195
|
|
|
5924
6196
|
function useNumberInput(props) {
|
|
@@ -7022,13 +7294,13 @@ var SimpleWindowedTableStyles = styled__default.div(templateObject_1$V || (templ
|
|
|
7022
7294
|
? "background: ".concat(getThemeColor(p, 'tableHeaderBg', '#F6FEFF'), ";")
|
|
7023
7295
|
: styled.css(p.selectedRowStyle), "\n }") : ''; });
|
|
7024
7296
|
function SimpleWindowedTable(_a) {
|
|
7025
|
-
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.
|
|
7297
|
+
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;
|
|
7026
7298
|
var defaultColumn = React__default.useMemo(function () { return ({
|
|
7027
7299
|
minWidth: minWidth,
|
|
7028
7300
|
maxWidth: maxWidth,
|
|
7029
7301
|
}); }, [minWidth, maxWidth]);
|
|
7030
7302
|
var scrollBarSize = React__default.useMemo(function () { return scrollbarWidth(); }, []);
|
|
7031
|
-
var
|
|
7303
|
+
var _o = reactTable.useTable(__assign({ columns: columns, data: data, defaultColumn: defaultColumn, initialState: __assign({}, (defaultSort ? { sortBy: [defaultSort] } : {})), onUpdateData: onUpdateData }, useTableProps), reactTable.useSortBy, reactTable.useFlexLayout), getTableProps = _o.getTableProps, getTableBodyProps = _o.getTableBodyProps, headerGroups = _o.headerGroups, footerGroups = _o.footerGroups, rows = _o.rows, totalColumnsWidth = _o.totalColumnsWidth, prepareRow = _o.prepareRow;
|
|
7032
7304
|
var headerRef = React.useRef(null);
|
|
7033
7305
|
var footerRef = React.useRef(null);
|
|
7034
7306
|
var rowsRef = React.useRef();
|
|
@@ -7053,13 +7325,15 @@ function SimpleWindowedTable(_a) {
|
|
|
7053
7325
|
var index = _a.index, isScrolling = _a.isScrolling, style = _a.style;
|
|
7054
7326
|
var row = rows[index];
|
|
7055
7327
|
prepareRow(row);
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7328
|
+
var rowStyle = __assign({}, (style || {}));
|
|
7329
|
+
if (rowStyle.width && rowStyle.width === '100%' && clearRowFullWidth) {
|
|
7330
|
+
delete rowStyle.width;
|
|
7331
|
+
}
|
|
7332
|
+
return (React__default.createElement("div", __assign({}, row.getRowProps({ style: rowStyle }), { className: "tr" }), row.cells.map(function (cell) {
|
|
7059
7333
|
var cellProps = cell.getCellProps();
|
|
7060
7334
|
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 })));
|
|
7061
7335
|
})));
|
|
7062
|
-
}, [prepareRow, rows, onClickRow]);
|
|
7336
|
+
}, [prepareRow, rows, onClickRow, clearRowFullWidth]);
|
|
7063
7337
|
var getHeaderProps = function (column, isFooter) {
|
|
7064
7338
|
if (isFooter === void 0) { isFooter = false; }
|
|
7065
7339
|
var headerProps = column.getHeaderProps(__assign(__assign({}, column.getSortByToggleProps()), (column.containerProps || {})));
|
|
@@ -7085,9 +7359,16 @@ function SimpleWindowedTable(_a) {
|
|
|
7085
7359
|
return __assign(__assign({}, headerGroupProps), { style: headerStyles, className: headerClassNames });
|
|
7086
7360
|
};
|
|
7087
7361
|
return (React__default.createElement("div", __assign({}, getTableProps(), { className: "table ".concat(className || '') }),
|
|
7088
|
-
React__default.createElement("div", __assign({}, tableHeaderProps, { className: "header-wrapper ".concat(tableHeaderProps.className || '') }), headerGroups.map(function (headerGroup) {
|
|
7089
|
-
|
|
7090
|
-
|
|
7362
|
+
React__default.createElement("div", __assign({}, tableHeaderProps, { className: "header-wrapper ".concat(tableHeaderProps.className || '') }), headerGroups.map(function (headerGroup) {
|
|
7363
|
+
var headerGroupProps = getHeaderGroupProps(headerGroup, false);
|
|
7364
|
+
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)),
|
|
7365
|
+
column.render("Header"),
|
|
7366
|
+
column.canSort ?
|
|
7367
|
+
React__default.createElement(FilledChevronIcon, { size: 'medium', direction: column.isSorted
|
|
7368
|
+
? (column.isSortedDesc ? 'down' : 'up')
|
|
7369
|
+
: 'updown', style: { verticalAlign: 'middle' } })
|
|
7370
|
+
: null)); })));
|
|
7371
|
+
})),
|
|
7091
7372
|
React__default.createElement("div", __assign({}, getTableBodyProps()), rows.length === 0 && NoRowsFound ? React__default.createElement(NoRowsFound, null) : React__default.createElement(reactWindow.FixedSizeList, { height: height, itemCount: rows.length, itemSize: itemSize, width: totalColumnsWidth + scrollBarSize, className: "table-list-rows", outerRef: rowsRef, onScroll: onScroll, useIsScrolling: true }, RenderRow)),
|
|
7092
7373
|
!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));
|
|
7093
7374
|
}
|
|
@@ -7113,6 +7394,7 @@ Object.defineProperty(exports, 'mergeStyles', {
|
|
|
7113
7394
|
});
|
|
7114
7395
|
exports.AddIcon = AddIcon;
|
|
7115
7396
|
exports.AddNoteIcon = AddNoteIcon;
|
|
7397
|
+
exports.AddShoppingCartIcon = AddShoppingCartIcon;
|
|
7116
7398
|
exports.AddTaskIcon = AddTaskIcon;
|
|
7117
7399
|
exports.AlertIcon = AlertIcon;
|
|
7118
7400
|
exports.AlertNotification = AlertNotification;
|
|
@@ -7182,6 +7464,7 @@ exports.DefaultStar = DefaultStar;
|
|
|
7182
7464
|
exports.DollarIcon = DollarIcon;
|
|
7183
7465
|
exports.DoneButton = DoneButton;
|
|
7184
7466
|
exports.Dot = Dot;
|
|
7467
|
+
exports.DoubleArrowIcon = DoubleArrowIcon;
|
|
7185
7468
|
exports.DownloadIcon = DownloadIcon;
|
|
7186
7469
|
exports.DragIcon = DragIcon;
|
|
7187
7470
|
exports.DraggableTasksCalendar = DraggableTasksCalendar;
|
|
@@ -7199,6 +7482,7 @@ exports.ErrorBoundary = ErrorBoundary;
|
|
|
7199
7482
|
exports.EstimateCircleIcon = EstimateCircleIcon;
|
|
7200
7483
|
exports.EyeIcon = EyeIcon;
|
|
7201
7484
|
exports.FeedPost = FeedPost;
|
|
7485
|
+
exports.FileUploadIcon = FileUploadIcon;
|
|
7202
7486
|
exports.FilledChevronIcon = FilledChevronIcon;
|
|
7203
7487
|
exports.FolderIcon = FolderIcon;
|
|
7204
7488
|
exports.GalleryIcon = GalleryIcon;
|
|
@@ -7220,6 +7504,7 @@ exports.H6 = H6;
|
|
|
7220
7504
|
exports.HandleIcon = HandleIcon;
|
|
7221
7505
|
exports.HeaderWrapper = HeaderWrapper;
|
|
7222
7506
|
exports.HeadlessTable = HeadlessTable;
|
|
7507
|
+
exports.HelpIcon = HelpIcon;
|
|
7223
7508
|
exports.HistoryIcon = HistoryIcon;
|
|
7224
7509
|
exports.IconButton = IconButton;
|
|
7225
7510
|
exports.IconDoc = IconDoc;
|
|
@@ -7297,6 +7582,7 @@ exports.SearchIcon = SearchIcon;
|
|
|
7297
7582
|
exports.Select = SKUSelect;
|
|
7298
7583
|
exports.SharedStyles = SharedStyles;
|
|
7299
7584
|
exports.ShopIcon = ShopIcon;
|
|
7585
|
+
exports.ShoppingCartIcon = ShoppingCartIcon;
|
|
7300
7586
|
exports.ShowPopup = ShowPopup;
|
|
7301
7587
|
exports.SidePanel = SidePanel;
|
|
7302
7588
|
exports.SimpleWindowedTable = SimpleWindowedTable;
|