@adiba-banking-cloud/backoffice 0.0.6 → 0.0.7
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/build/index.cjs.js/index.js +299 -14
- package/build/index.esm.js/index.js +293 -12
- package/build/typings/components/general/logos/Logos.d.ts +4 -0
- package/build/typings/components/general/logos/Logos.stories.d.ts +8 -0
- package/build/typings/components/general/logos/Logos.types.d.ts +7 -0
- package/build/typings/components/index.d.ts +4 -1
- package/build/typings/components/menus/application/Application.d.ts +3 -0
- package/build/typings/components/menus/application/Application.stories.d.ts +6 -0
- package/build/typings/components/menus/application/Application.types.d.ts +34 -0
- package/build/typings/components/menus/application/ApplicationDropdown.d.ts +2 -0
- package/build/typings/components/menus/application/ApplicationTarget.d.ts +3 -0
- package/build/typings/components/menus/side/Side.types.d.ts +2 -3
- package/build/typings/components/menus/user/User.d.ts +3 -0
- package/build/typings/components/menus/user/User.stories.d.ts +6 -0
- package/build/typings/components/menus/user/User.types.d.ts +34 -0
- package/build/typings/components/menus/user/UserDropdown.d.ts +2 -0
- package/build/typings/components/menus/user/UserTarget.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
4
4
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
|
-
var React = require('react');
|
|
5
|
+
var React$1 = require('react');
|
|
6
6
|
var HighchartsReact = require('highcharts-react-official');
|
|
7
7
|
var HighchartsRounded = require('highcharts-rounded-corners');
|
|
8
|
-
var core = require('@mantine/core');
|
|
9
8
|
var IconSax = require('iconsax-react');
|
|
9
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
10
|
+
var core = require('@mantine/core');
|
|
11
|
+
var hooks = require('@mantine/hooks');
|
|
10
12
|
|
|
11
13
|
function _interopNamespaceDefault(e) {
|
|
12
14
|
var n = Object.create(null);
|
|
@@ -11207,8 +11209,8 @@ if (typeof window !== "undefined") {
|
|
|
11207
11209
|
HighchartsRounded(Highcharts);
|
|
11208
11210
|
}
|
|
11209
11211
|
const Column = props => {
|
|
11210
|
-
const chartRef = React.useRef(null);
|
|
11211
|
-
const chartOptions = React.useMemo(() => {
|
|
11212
|
+
const chartRef = React$1.useRef(null);
|
|
11213
|
+
const chartOptions = React$1.useMemo(() => {
|
|
11212
11214
|
const chart = {
|
|
11213
11215
|
type: "column"
|
|
11214
11216
|
};
|
|
@@ -11217,12 +11219,12 @@ const Column = props => {
|
|
|
11217
11219
|
});
|
|
11218
11220
|
return _objectSpread(_objectSpread({}, initChart(column)), initSeries(column));
|
|
11219
11221
|
}, [props]);
|
|
11220
|
-
React.useEffect(() => {
|
|
11222
|
+
React$1.useEffect(() => {
|
|
11221
11223
|
if (chartRef.current && chartRef.current.chart) {
|
|
11222
11224
|
chartRef.current.chart.update(chartOptions, true);
|
|
11223
11225
|
}
|
|
11224
11226
|
}, [chartOptions]);
|
|
11225
|
-
return /*#__PURE__*/React.createElement(HighchartsReact, {
|
|
11227
|
+
return /*#__PURE__*/React$1.createElement(HighchartsReact, {
|
|
11226
11228
|
highcharts: Highcharts,
|
|
11227
11229
|
ref: chartRef,
|
|
11228
11230
|
options: chartOptions
|
|
@@ -11240,7 +11242,7 @@ const EqualizerColumn = props => {
|
|
|
11240
11242
|
colors: [props.color || "blue"],
|
|
11241
11243
|
title: props.title
|
|
11242
11244
|
};
|
|
11243
|
-
return /*#__PURE__*/React.createElement(Column, chartOptions);
|
|
11245
|
+
return /*#__PURE__*/React$1.createElement(Column, chartOptions);
|
|
11244
11246
|
};
|
|
11245
11247
|
const SimpleColumn = props => {
|
|
11246
11248
|
const chartOptions = {
|
|
@@ -11254,10 +11256,10 @@ const SimpleColumn = props => {
|
|
|
11254
11256
|
colors: [props.color || "gray"],
|
|
11255
11257
|
title: props.title
|
|
11256
11258
|
};
|
|
11257
|
-
return /*#__PURE__*/React.createElement(Column, chartOptions);
|
|
11259
|
+
return /*#__PURE__*/React$1.createElement(Column, chartOptions);
|
|
11258
11260
|
};
|
|
11259
11261
|
const StackedColumn = props => {
|
|
11260
|
-
return /*#__PURE__*/React.createElement(Column, _extends({}, props, {
|
|
11262
|
+
return /*#__PURE__*/React$1.createElement(Column, _extends({}, props, {
|
|
11261
11263
|
equalizer: false
|
|
11262
11264
|
}));
|
|
11263
11265
|
};
|
|
@@ -11392,7 +11394,7 @@ const Icons = _ref => {
|
|
|
11392
11394
|
color
|
|
11393
11395
|
} = _ref;
|
|
11394
11396
|
const Element = IconSax__namespace[name];
|
|
11395
|
-
return /*#__PURE__*/React.createElement(Element, {
|
|
11397
|
+
return /*#__PURE__*/React$1.createElement(Element, {
|
|
11396
11398
|
size: size,
|
|
11397
11399
|
variant: variant,
|
|
11398
11400
|
color: color,
|
|
@@ -11402,6 +11404,285 @@ const Icons = _ref => {
|
|
|
11402
11404
|
});
|
|
11403
11405
|
};
|
|
11404
11406
|
|
|
11407
|
+
var img$1 = "data:image/svg+xml,%3csvg width='5894' height='1608' viewBox='0 0 5894 1608' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1134.15' cy='89.303' r='89.303' fill='%230F193D'/%3e%3cpath d='M1221.22 134.228C1205.91 168.166 1171.95 191.767 1132.53 191.767C1092.99 191.767 1058.96 168.038 1043.71 133.951V577.044C1074.75 620.8 1118.73 688.402 1141.93 743.436C1151.49 766.108 1162.66 797.844 1175.06 833.077L1175.1 833.199L1175.29 833.753C1184.59 860.161 1194.57 888.509 1205.08 916.46C1211.06 850.139 1215.35 776.424 1220.24 692.355L1221.22 675.507V134.228Z' fill='url(%23paint0_linear_5727_46453)'/%3e%3cpath d='M1023.32 1419.13L992.799 1405.89L1023.32 1419.13C1061.84 1371.65 1092.03 1325.96 1115.86 1279.54C1094.29 1240.79 1069.25 1189.31 1048.45 1130.75C1037.13 1098.91 1026.25 1069.43 1015.67 1042.13C989.217 1175.69 938.884 1272.42 844.875 1341.69C774.868 1396.23 687.034 1428.69 591.675 1428.69C362.935 1428.69 177.503 1241.94 177.503 1011.58C177.503 781.215 362.935 594.468 591.675 594.468C730.899 594.468 854.079 663.652 929.169 769.745L928.81 770.454L930.145 771.14C966.436 824.985 1021.37 964.678 1056.57 1055.67C1134.53 1257.23 1217.06 1382.74 1295.17 1449.19C1400.67 1547.42 1541.75 1607.45 1696.76 1607.45V1428.69C1569.45 1428.69 1455.55 1370.84 1379.58 1279.82L1379.62 1279.72C1300.34 1214.18 1206.85 1031.84 1157.15 878.104C1127.29 785.729 1054.87 653.414 1018.33 599.054L1018.62 598.474L1017.58 597.935L1017.56 597.913L1017.56 597.924L1017.54 597.919L1017.55 597.904C909.941 485.566 758.909 415.707 591.675 415.707C264.902 415.707 0 682.488 0 1011.58C0 1340.67 264.902 1607.45 591.675 1607.45C761.92 1607.45 915.372 1535.04 1023.32 1419.13Z' fill='url(%23paint1_linear_5727_46453)'/%3e%3cpath d='M1696.76 948.7C1696.76 867.516 1713.57 796.479 1747.19 735.591C1780.82 673.736 1826.8 625.895 1885.15 592.068C1944.49 558.241 2010.25 541.328 2082.45 541.328C2153.65 541.328 2215.46 556.308 2267.87 586.269C2320.29 616.23 2359.35 653.923 2385.06 699.348V554.375H2521.54V1348.82H2385.06V1200.95C2358.36 1247.34 2318.31 1286 2264.91 1316.93C2212.49 1346.89 2151.18 1361.87 2080.96 1361.87C2008.77 1361.87 1943.5 1344.48 1885.15 1309.68C1826.8 1274.89 1780.82 1226.08 1747.19 1163.26C1713.57 1100.44 1696.76 1028.92 1696.76 948.7ZM2385.06 950.15C2385.06 890.228 2372.7 838.038 2347.98 793.58C2323.26 749.122 2289.63 715.295 2247.11 692.099C2205.57 667.937 2159.59 655.856 2109.15 655.856C2058.71 655.856 2012.73 667.454 1971.19 690.649C1929.66 713.845 1896.53 747.672 1871.8 792.13C1847.08 836.588 1834.72 888.778 1834.72 948.7C1834.72 1009.59 1847.08 1062.75 1871.8 1108.17C1896.53 1152.63 1929.66 1186.94 1971.19 1211.1C2012.73 1234.3 2058.71 1245.89 2109.15 1245.89C2159.59 1245.89 2205.57 1234.3 2247.11 1211.1C2289.63 1186.94 2323.26 1152.63 2347.98 1108.17C2372.7 1062.75 2385.06 1010.07 2385.06 950.15Z' fill='%230F193D'/%3e%3cpath d='M2699.23 948.7C2699.23 867.516 2716.04 796.479 2749.66 735.591C2783.29 673.736 2829.27 625.895 2887.62 592.068C2946.96 558.241 3013.22 541.328 3086.4 541.328C3149.69 541.328 3208.53 555.825 3262.92 584.82C3317.32 612.848 3358.85 650.057 3387.53 696.448V276.028H3524.01V1348.82H3387.53V1199.5C3360.83 1246.86 3321.27 1286 3268.86 1316.93C3216.44 1346.89 3155.13 1361.87 3084.91 1361.87C3012.72 1361.87 2946.96 1344.48 2887.62 1309.68C2829.27 1274.89 2783.29 1226.08 2749.66 1163.26C2716.04 1100.44 2699.23 1028.92 2699.23 948.7ZM3387.53 950.15C3387.53 890.228 3375.17 838.038 3350.45 793.58C3325.72 749.122 3292.1 715.295 3249.57 692.099C3208.04 667.937 3162.05 655.856 3111.62 655.856C3061.18 655.856 3015.19 667.454 2973.66 690.649C2932.12 713.845 2898.99 747.672 2874.27 792.13C2849.54 836.588 2837.18 888.778 2837.18 948.7C2837.18 1009.59 2849.54 1062.75 2874.27 1108.17C2898.99 1152.63 2932.12 1186.94 2973.66 1211.1C3015.19 1234.3 3061.18 1245.89 3111.62 1245.89C3162.05 1245.89 3208.04 1234.3 3249.57 1211.1C3292.1 1186.94 3325.72 1152.63 3350.45 1108.17C3375.17 1062.75 3387.53 1010.07 3387.53 950.15Z' fill='%230F193D'/%3e%3cpath d='M3821.85 425.35C3796.14 425.35 3774.38 416.651 3756.58 399.255C3738.78 381.858 3729.88 360.595 3729.88 335.467C3729.88 310.338 3738.78 289.076 3756.58 271.679C3774.38 254.282 3796.14 245.584 3821.85 245.584C3846.57 245.584 3867.34 254.282 3884.15 271.679C3901.95 289.076 3910.85 310.338 3910.85 335.467C3910.85 360.595 3901.95 381.858 3884.15 399.255C3867.34 416.651 3846.57 425.35 3821.85 425.35ZM3887.12 554.375V1348.82H3752.13V554.375H3887.12Z' fill='%230F193D'/%3e%3cpath d='M4252.18 702.247C4279.87 654.89 4320.42 616.23 4373.82 586.269C4427.22 556.308 4488.04 541.328 4556.28 541.328C4629.46 541.328 4695.23 558.241 4753.58 592.068C4811.92 625.895 4857.91 673.736 4891.53 735.591C4925.16 796.479 4941.97 867.516 4941.97 948.7C4941.97 1028.92 4925.16 1100.44 4891.53 1163.26C4857.91 1226.08 4811.43 1274.89 4752.09 1309.68C4693.74 1344.48 4628.47 1361.87 4556.28 1361.87C4486.07 1361.87 4424.26 1346.89 4370.85 1316.93C4318.44 1286.97 4278.88 1248.79 4252.18 1202.4V1348.82H4117.19V276.028H4252.18V702.247ZM4804.01 948.7C4804.01 888.778 4791.65 836.588 4766.93 792.13C4742.2 747.672 4708.58 713.845 4666.05 690.649C4624.52 667.454 4578.53 655.856 4528.1 655.856C4478.65 655.856 4432.66 667.937 4390.14 692.099C4348.6 715.295 4314.98 749.605 4289.27 795.03C4264.54 839.488 4252.18 891.195 4252.18 950.15C4252.18 1010.07 4264.54 1062.75 4289.27 1108.17C4314.98 1152.63 4348.6 1186.94 4390.14 1211.1C4432.66 1234.3 4478.65 1245.89 4528.1 1245.89C4578.53 1245.89 4624.52 1234.3 4666.05 1211.1C4708.58 1186.94 4742.2 1152.63 4766.93 1108.17C4791.65 1062.75 4804.01 1009.59 4804.01 948.7Z' fill='%230F193D'/%3e%3cpath d='M5069.22 948.7C5069.22 867.516 5086.03 796.479 5119.66 735.591C5153.28 673.736 5199.27 625.895 5257.61 592.068C5316.95 558.241 5382.71 541.328 5454.91 541.328C5526.11 541.328 5587.92 556.308 5640.34 586.269C5692.75 616.23 5731.81 653.923 5757.53 699.348V554.375H5894V1348.82H5757.53V1200.95C5730.82 1247.34 5690.77 1286 5637.37 1316.93C5584.95 1346.89 5523.64 1361.87 5453.42 1361.87C5381.23 1361.87 5315.96 1344.48 5257.61 1309.68C5199.27 1274.89 5153.28 1226.08 5119.66 1163.26C5086.03 1100.44 5069.22 1028.92 5069.22 948.7ZM5757.53 950.15C5757.53 890.228 5745.16 838.038 5720.44 793.58C5695.72 749.122 5662.09 715.295 5619.57 692.099C5578.03 667.937 5532.05 655.856 5481.61 655.856C5431.17 655.856 5385.19 667.454 5343.65 690.649C5302.12 713.845 5268.99 747.672 5244.26 792.13C5219.54 836.588 5207.18 888.778 5207.18 948.7C5207.18 1009.59 5219.54 1062.75 5244.26 1108.17C5268.99 1152.63 5302.12 1186.94 5343.65 1211.1C5385.19 1234.3 5431.17 1245.89 5481.61 1245.89C5532.05 1245.89 5578.03 1234.3 5619.57 1211.1C5662.09 1186.94 5695.72 1152.63 5720.44 1108.17C5745.16 1062.75 5757.53 1010.07 5757.53 950.15Z' fill='%230F193D'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_5727_46453' x1='6.59737e-06' y1='958.761' x2='1696.76' y2='980.766' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23C8700B'/%3e%3cstop offset='1' stop-color='%230F193D'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_5727_46453' x1='6.59737e-06' y1='958.761' x2='1696.76' y2='980.766' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23C8700B'/%3e%3cstop offset='1' stop-color='%230F193D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
11408
|
+
|
|
11409
|
+
var img = "data:image/svg+xml,%3csvg width='893' height='221' viewBox='0 0 893 221' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M123.741 148.741H85.2506C51.0805 148.741 23.3801 121.041 23.3801 86.8706C23.3801 52.7005 51.0805 25.0001 85.2506 25.0001H220.681L197.302 54.6523H85.2505C67.4569 54.6523 53.0323 69.0769 53.0323 86.8706C53.0323 104.664 67.4569 119.089 85.2506 119.089H147.121L123.741 148.741Z' fill='url(%23paint0_linear_1362_1353)'/%3e%3cpath d='M96.9399 71.7585H135.431C169.601 71.7585 197.301 99.4589 197.301 133.629C197.301 167.799 169.601 195.499 135.431 195.499H0L23.3796 165.847H135.431C153.224 165.847 167.649 151.423 167.649 133.629C167.649 115.835 153.224 101.411 135.431 101.411H73.5602L96.9399 71.7585Z' fill='url(%23paint1_linear_1362_1353)'/%3e%3cpath d='M258.1 85.7725C258.1 89.0535 259.896 91.5532 263.49 93.2718C267.239 94.8341 273.098 96.4746 281.066 98.1932C290.128 100.068 297.705 102.177 303.798 104.521C309.891 106.864 315.125 110.614 319.5 115.769C324.03 120.769 326.296 127.565 326.296 136.158C326.296 143.814 323.952 150.453 319.265 156.078C314.734 161.702 308.641 165.999 300.986 168.967C293.33 171.779 284.972 173.186 275.91 173.186C263.568 173.186 252.944 170.842 244.039 166.155C235.289 161.468 228.806 154.75 224.587 146.001L248.491 133.58C252.71 144.36 261.849 149.75 275.91 149.75C282.003 149.75 287.237 148.579 291.612 146.235C295.986 143.892 298.174 140.533 298.174 136.158C298.174 132.408 296.143 129.674 292.081 127.956C288.175 126.081 281.769 124.05 272.864 121.863C263.646 119.675 256.147 117.488 250.366 115.301C244.585 113.114 239.586 109.754 235.368 105.224C231.149 100.537 229.04 94.3654 229.04 86.71C229.04 79.2107 231.149 72.727 235.368 67.2588C239.586 61.6344 245.288 57.3379 252.475 54.3695C259.662 51.401 267.552 49.9168 276.145 49.9168C286.3 49.9168 295.361 52.026 303.329 56.2443C311.454 60.4626 317.703 66.4776 322.078 74.2893L298.408 86.2412C294.346 77.4921 286.925 73.1176 276.145 73.1176C270.676 73.1176 266.302 74.2893 263.021 76.6328C259.74 78.8201 258.1 81.8667 258.1 85.7725Z' fill='%23303838'/%3e%3cpath d='M471.535 170.139H442.71V100.771C442.71 92.0219 440.21 85.7725 435.211 82.0229C430.367 78.1171 424.587 76.1641 417.869 76.1641C412.557 76.1641 407.713 77.8046 403.339 81.0855C399.12 84.3664 396.386 89.6003 395.136 96.787V170.139H366.077V6.09312H395.136V62.8061C399.042 59.0565 403.495 56.0881 408.495 53.9008C413.65 51.7135 419.118 50.6199 424.899 50.6199C431.773 50.6199 438.726 52.1041 445.756 55.0725C452.787 57.8847 458.802 62.9624 463.801 70.3054C468.957 77.6484 471.535 87.5692 471.535 100.068V170.139Z' fill='%23303838'/%3e%3cpath d='M538.164 33.5122C532.696 33.5122 528.399 32.028 525.275 29.0595C522.15 26.0911 520.588 22.029 520.588 16.8733C520.588 11.5613 522.15 7.42112 525.275 4.45267C528.399 1.48422 532.696 0 538.164 0C543.632 0 547.929 1.48422 551.053 4.45267C554.178 7.42112 555.74 11.5613 555.74 16.8733C555.74 21.8728 554.1 25.9349 550.819 29.0595C547.694 32.028 543.476 33.5122 538.164 33.5122ZM523.4 170.139V52.9634H552.459V170.139H523.4Z' fill='%23303838'/%3e%3cpath d='M694.084 52.9634H723.144V164.28C723.144 175.373 720.332 185.137 714.707 193.574C709.239 202.011 701.584 208.494 691.741 213.025C681.898 217.712 670.884 220.056 658.697 220.056C645.105 220.056 632.762 217.4 621.67 212.088C610.577 206.932 602.766 200.136 598.235 191.699L623.076 177.404C625.419 181.935 629.794 185.684 636.2 188.653C642.605 191.777 650.339 193.34 659.4 193.34C669.399 193.34 677.68 190.606 684.242 185.137C690.803 179.826 694.084 172.873 694.084 164.28V158.89C688.772 163.577 682.836 167.171 676.274 169.67C669.712 172.17 662.916 173.42 655.885 173.42C644.011 173.42 633.622 170.764 624.716 165.452C615.811 160.14 608.937 152.797 604.094 143.423C599.406 134.049 597.063 123.503 597.063 111.786C597.063 100.068 599.406 89.5222 604.094 80.1481C608.937 70.7741 615.811 63.4311 624.716 58.1191C633.622 52.6509 644.011 49.9168 655.885 49.9168C662.916 49.9168 669.634 51.2448 676.039 53.9008C682.601 56.4005 688.616 59.9158 694.084 64.4466V52.9634ZM659.635 145.532C666.04 145.532 671.821 144.126 676.977 141.314C682.289 138.345 686.429 134.283 689.397 129.128C692.522 123.972 694.084 118.113 694.084 111.551C694.084 101.708 690.725 93.6624 684.007 87.413C677.445 81.1636 669.321 78.0389 659.635 78.0389C649.792 78.0389 641.668 81.2418 635.262 87.6473C629.013 93.8967 625.888 101.943 625.888 111.786C625.888 121.628 629.013 129.752 635.262 136.158C641.668 142.407 649.792 145.532 659.635 145.532Z' fill='%23303838'/%3e%3cpath d='M863.755 52.9634H892.814V170.139H863.755V158.656C858.286 163.343 852.271 167.014 845.71 169.67C839.304 172.17 832.508 173.42 825.321 173.42C813.447 173.42 803.058 170.764 794.152 165.452C785.247 160.14 778.373 152.797 773.529 143.423C768.842 134.049 766.499 123.503 766.499 111.786C766.499 100.068 768.842 89.5222 773.529 80.1481C778.373 70.7741 785.247 63.4311 794.152 58.1191C803.058 52.6509 813.447 49.9168 825.321 49.9168C832.508 49.9168 839.304 51.2448 845.71 53.9008C852.271 56.4005 858.286 59.9939 863.755 64.6809V52.9634ZM829.071 145.532C835.476 145.532 841.257 144.126 846.413 141.314C851.725 138.345 855.865 134.283 858.833 129.128C861.958 123.972 863.52 118.113 863.52 111.551C863.52 101.708 860.161 93.6624 853.443 87.413C846.881 81.1636 838.757 78.0389 829.071 78.0389C819.228 78.0389 811.104 81.2418 804.698 87.6473C798.449 93.8967 795.324 101.943 795.324 111.786C795.324 121.628 798.449 129.752 804.698 136.158C811.104 142.407 819.228 145.532 829.071 145.532Z' fill='%23303838'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_1362_1353' x1='122.031' y1='25.0001' x2='122.031' y2='148.741' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23409393'/%3e%3cstop offset='1' stop-color='%2302424C'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_1362_1353' x1='98.6506' y1='71.7585' x2='98.6506' y2='195.499' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2302424C'/%3e%3cstop offset='1' stop-color='%23409393'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
11410
|
+
|
|
11411
|
+
const _excluded$1 = ["href", "fallbackSrc", "src", "fit"],
|
|
11412
|
+
_excluded2 = ["href", "src", "fit"],
|
|
11413
|
+
_excluded3 = ["href", "src", "fit"];
|
|
11414
|
+
const Logo = _ref => {
|
|
11415
|
+
let {
|
|
11416
|
+
href,
|
|
11417
|
+
fallbackSrc,
|
|
11418
|
+
src,
|
|
11419
|
+
fit
|
|
11420
|
+
} = _ref,
|
|
11421
|
+
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
11422
|
+
return /*#__PURE__*/React$1.createElement(core.Center, _extends({}, rest, {
|
|
11423
|
+
component: "a",
|
|
11424
|
+
display: "flex",
|
|
11425
|
+
href: href
|
|
11426
|
+
}), /*#__PURE__*/React$1.createElement(core.Image, {
|
|
11427
|
+
fallbackSrc: fallbackSrc,
|
|
11428
|
+
src: src,
|
|
11429
|
+
fit: fit
|
|
11430
|
+
}), /*#__PURE__*/React$1.createElement(core.Space, {
|
|
11431
|
+
flex: 1,
|
|
11432
|
+
hidden: true
|
|
11433
|
+
}));
|
|
11434
|
+
};
|
|
11435
|
+
const DynamicLogo = _ref2 => {
|
|
11436
|
+
let {
|
|
11437
|
+
href = "/",
|
|
11438
|
+
src,
|
|
11439
|
+
fit = "contain"
|
|
11440
|
+
} = _ref2,
|
|
11441
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
11442
|
+
return /*#__PURE__*/React$1.createElement(Logo, _extends({}, rest, {
|
|
11443
|
+
href,
|
|
11444
|
+
src,
|
|
11445
|
+
fit,
|
|
11446
|
+
fallbackSrc: img$1
|
|
11447
|
+
}));
|
|
11448
|
+
};
|
|
11449
|
+
const DynamicShigaLogo = _ref3 => {
|
|
11450
|
+
let {
|
|
11451
|
+
href = "/",
|
|
11452
|
+
src,
|
|
11453
|
+
fit = "contain"
|
|
11454
|
+
} = _ref3,
|
|
11455
|
+
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
11456
|
+
return /*#__PURE__*/React$1.createElement(Logo, _extends({}, rest, {
|
|
11457
|
+
href,
|
|
11458
|
+
src,
|
|
11459
|
+
fit,
|
|
11460
|
+
fallbackSrc: img
|
|
11461
|
+
}));
|
|
11462
|
+
};
|
|
11463
|
+
|
|
11464
|
+
const _excluded = ["children", "toggle"];
|
|
11465
|
+
const ApplicationMenuTarget = _ref => {
|
|
11466
|
+
let {
|
|
11467
|
+
children,
|
|
11468
|
+
toggle
|
|
11469
|
+
} = _ref;
|
|
11470
|
+
_objectWithoutProperties(_ref, _excluded);
|
|
11471
|
+
return /*#__PURE__*/React$1.createElement(core.Popover.Target, null, /*#__PURE__*/React$1.createElement(core.Button, {
|
|
11472
|
+
variant: "transparent",
|
|
11473
|
+
justify: "space-between",
|
|
11474
|
+
h: 60,
|
|
11475
|
+
fw: 300,
|
|
11476
|
+
w: 200,
|
|
11477
|
+
rightSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
11478
|
+
name: "ArrowDown2",
|
|
11479
|
+
size: 16
|
|
11480
|
+
}),
|
|
11481
|
+
onClick: toggle
|
|
11482
|
+
}, children));
|
|
11483
|
+
};
|
|
11484
|
+
|
|
11485
|
+
const ApplicationMenuDropdown = _ref => {
|
|
11486
|
+
let {
|
|
11487
|
+
items,
|
|
11488
|
+
moreText,
|
|
11489
|
+
moreLink,
|
|
11490
|
+
toggle
|
|
11491
|
+
} = _ref;
|
|
11492
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Popover.Dropdown, {
|
|
11493
|
+
ml: "md",
|
|
11494
|
+
p: 5
|
|
11495
|
+
}, /*#__PURE__*/React.createElement(core.Stack, {
|
|
11496
|
+
gap: 5,
|
|
11497
|
+
p: 0
|
|
11498
|
+
}, /*#__PURE__*/React.createElement(core.Stack, {
|
|
11499
|
+
gap: 5,
|
|
11500
|
+
align: "flex-start"
|
|
11501
|
+
}, items.map((item, index) => /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
11502
|
+
key: "item-".concat(index)
|
|
11503
|
+
}, item)))), /*#__PURE__*/React.createElement(core.Divider, null), /*#__PURE__*/React.createElement(core.Group, {
|
|
11504
|
+
grow: true,
|
|
11505
|
+
justify: "center"
|
|
11506
|
+
}, /*#__PURE__*/React.createElement(core.Button, {
|
|
11507
|
+
variant: "subtle",
|
|
11508
|
+
p: 0,
|
|
11509
|
+
component: "a",
|
|
11510
|
+
href: moreLink,
|
|
11511
|
+
onClick: toggle
|
|
11512
|
+
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
11513
|
+
size: "xs",
|
|
11514
|
+
fw: 300,
|
|
11515
|
+
w: 320
|
|
11516
|
+
}, moreText, " \xBB"))))));
|
|
11517
|
+
};
|
|
11518
|
+
const DropdownItem = _ref2 => {
|
|
11519
|
+
let {
|
|
11520
|
+
active,
|
|
11521
|
+
title,
|
|
11522
|
+
icon,
|
|
11523
|
+
description,
|
|
11524
|
+
activeBg = "gray.1",
|
|
11525
|
+
activeColor = "altiba",
|
|
11526
|
+
inactiveColor = "adiba",
|
|
11527
|
+
onClick
|
|
11528
|
+
} = _ref2;
|
|
11529
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Button, {
|
|
11530
|
+
variant: "subtle",
|
|
11531
|
+
fw: 300,
|
|
11532
|
+
mih: 70,
|
|
11533
|
+
bg: active ? activeBg : {},
|
|
11534
|
+
c: active ? activeColor : inactiveColor,
|
|
11535
|
+
onClick: onClick
|
|
11536
|
+
}, /*#__PURE__*/React.createElement(core.Group, {
|
|
11537
|
+
w: 320
|
|
11538
|
+
}, /*#__PURE__*/React.createElement(Icons, icon), /*#__PURE__*/React.createElement(core.Stack, {
|
|
11539
|
+
align: "flex-start",
|
|
11540
|
+
gap: 5
|
|
11541
|
+
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
11542
|
+
size: "sm",
|
|
11543
|
+
fw: 300
|
|
11544
|
+
}, title), /*#__PURE__*/React.createElement(core.Text, {
|
|
11545
|
+
size: "xs",
|
|
11546
|
+
fz: 11,
|
|
11547
|
+
fw: 300
|
|
11548
|
+
}, description)))));
|
|
11549
|
+
};
|
|
11550
|
+
|
|
11551
|
+
const ApplicationMenu = _ref => {
|
|
11552
|
+
let {
|
|
11553
|
+
transition,
|
|
11554
|
+
label,
|
|
11555
|
+
moreLink,
|
|
11556
|
+
moreText,
|
|
11557
|
+
items
|
|
11558
|
+
} = _ref;
|
|
11559
|
+
const [opened, {
|
|
11560
|
+
toggle
|
|
11561
|
+
}] = hooks.useDisclosure(false);
|
|
11562
|
+
return /*#__PURE__*/React$1.createElement(core.Popover, {
|
|
11563
|
+
transitionProps: {
|
|
11564
|
+
transition
|
|
11565
|
+
},
|
|
11566
|
+
position: "bottom-start",
|
|
11567
|
+
withArrow: true,
|
|
11568
|
+
withinPortal: true,
|
|
11569
|
+
offset: 0,
|
|
11570
|
+
arrowOffset: 20,
|
|
11571
|
+
arrowSize: 10,
|
|
11572
|
+
shadow: "sm",
|
|
11573
|
+
radius: "sm",
|
|
11574
|
+
opened: opened,
|
|
11575
|
+
onChange: toggle
|
|
11576
|
+
}, /*#__PURE__*/React$1.createElement(ApplicationMenuTarget, {
|
|
11577
|
+
toggle
|
|
11578
|
+
}, label), /*#__PURE__*/React$1.createElement(ApplicationMenuDropdown, {
|
|
11579
|
+
items,
|
|
11580
|
+
moreLink,
|
|
11581
|
+
moreText,
|
|
11582
|
+
toggle
|
|
11583
|
+
}));
|
|
11584
|
+
};
|
|
11585
|
+
|
|
11586
|
+
const UserMenuTarget = _ref => {
|
|
11587
|
+
let {
|
|
11588
|
+
name,
|
|
11589
|
+
username,
|
|
11590
|
+
avatar
|
|
11591
|
+
} = _ref;
|
|
11592
|
+
return /*#__PURE__*/React.createElement(core.Menu.Target, null, /*#__PURE__*/React.createElement(core.Button, {
|
|
11593
|
+
variant: "subtle",
|
|
11594
|
+
h: 50,
|
|
11595
|
+
px: 10,
|
|
11596
|
+
radius: "md"
|
|
11597
|
+
}, /*#__PURE__*/React.createElement(core.Group, {
|
|
11598
|
+
gap: "sm"
|
|
11599
|
+
}, /*#__PURE__*/React.createElement(core.Avatar, {
|
|
11600
|
+
radius: "xl",
|
|
11601
|
+
src: avatar
|
|
11602
|
+
}), /*#__PURE__*/React.createElement(core.Stack, {
|
|
11603
|
+
gap: 0,
|
|
11604
|
+
align: "flex-start",
|
|
11605
|
+
visibleFrom: "md"
|
|
11606
|
+
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
11607
|
+
size: "sm"
|
|
11608
|
+
}, name), /*#__PURE__*/React.createElement(core.Text, {
|
|
11609
|
+
c: "dimmed",
|
|
11610
|
+
size: "xs"
|
|
11611
|
+
}, username)), /*#__PURE__*/React.createElement(Icons, {
|
|
11612
|
+
name: "ArrowRight2",
|
|
11613
|
+
size: 12
|
|
11614
|
+
}))));
|
|
11615
|
+
};
|
|
11616
|
+
|
|
11617
|
+
const UserMenuDropdown = _ref => {
|
|
11618
|
+
let {
|
|
11619
|
+
sections,
|
|
11620
|
+
height = 40
|
|
11621
|
+
} = _ref;
|
|
11622
|
+
return /*#__PURE__*/React.createElement(core.Menu.Dropdown, null, sections.map((section, index) => {
|
|
11623
|
+
const items = [];
|
|
11624
|
+
const sectionItems = section.items.map((item, key) => {
|
|
11625
|
+
var _item$badge, _item$badge2;
|
|
11626
|
+
return /*#__PURE__*/React.createElement(core.Menu.Item, {
|
|
11627
|
+
c: section === null || section === void 0 ? void 0 : section.color,
|
|
11628
|
+
key: "menu-item-".concat(key),
|
|
11629
|
+
h: height,
|
|
11630
|
+
leftSection: /*#__PURE__*/React.createElement(Icons, item.icon),
|
|
11631
|
+
rightSection: item !== null && item !== void 0 && item.disclosure ? /*#__PURE__*/React.createElement(Icons, {
|
|
11632
|
+
name: "ArrowRight2",
|
|
11633
|
+
size: 12
|
|
11634
|
+
}) : item.badge ? /*#__PURE__*/React.createElement(core.Badge, {
|
|
11635
|
+
color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color
|
|
11636
|
+
}, item === null || item === void 0 || (_item$badge2 = item.badge) === null || _item$badge2 === void 0 ? void 0 : _item$badge2.text) : undefined,
|
|
11637
|
+
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
11638
|
+
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
11639
|
+
size: "xs",
|
|
11640
|
+
fw: 300
|
|
11641
|
+
}, item.label));
|
|
11642
|
+
});
|
|
11643
|
+
if (index) items.push(/*#__PURE__*/React.createElement(core.Divider, {
|
|
11644
|
+
key: "divider-".concat(index),
|
|
11645
|
+
my: "xs"
|
|
11646
|
+
}));
|
|
11647
|
+
if (section !== null && section !== void 0 && section.title) items.push(/*#__PURE__*/React.createElement(core.Menu.Label, {
|
|
11648
|
+
key: "label-".concat(index),
|
|
11649
|
+
pt: "xs"
|
|
11650
|
+
}, section.title));
|
|
11651
|
+
items.push(...sectionItems);
|
|
11652
|
+
return items;
|
|
11653
|
+
}));
|
|
11654
|
+
};
|
|
11655
|
+
|
|
11656
|
+
const UserMenu = _ref => {
|
|
11657
|
+
let {
|
|
11658
|
+
width,
|
|
11659
|
+
height,
|
|
11660
|
+
name,
|
|
11661
|
+
username,
|
|
11662
|
+
avatar,
|
|
11663
|
+
sections
|
|
11664
|
+
} = _ref;
|
|
11665
|
+
return /*#__PURE__*/React$1.createElement(core.Menu, {
|
|
11666
|
+
width: width || 250,
|
|
11667
|
+
transitionProps: {
|
|
11668
|
+
transition: "pop"
|
|
11669
|
+
},
|
|
11670
|
+
position: "bottom-end",
|
|
11671
|
+
withArrow: true,
|
|
11672
|
+
withinPortal: true,
|
|
11673
|
+
offset: 5,
|
|
11674
|
+
arrowOffset: 20,
|
|
11675
|
+
arrowSize: 10
|
|
11676
|
+
}, /*#__PURE__*/React$1.createElement(UserMenuTarget, {
|
|
11677
|
+
name,
|
|
11678
|
+
username,
|
|
11679
|
+
avatar
|
|
11680
|
+
}), /*#__PURE__*/React$1.createElement(UserMenuDropdown, {
|
|
11681
|
+
sections,
|
|
11682
|
+
height
|
|
11683
|
+
}));
|
|
11684
|
+
};
|
|
11685
|
+
|
|
11405
11686
|
const SideMenu = _ref => {
|
|
11406
11687
|
let {
|
|
11407
11688
|
color,
|
|
@@ -11410,9 +11691,9 @@ const SideMenu = _ref => {
|
|
|
11410
11691
|
sidemenu,
|
|
11411
11692
|
onClick
|
|
11412
11693
|
} = _ref;
|
|
11413
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
|
|
11694
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, sidemenu.map(item => {
|
|
11414
11695
|
var _item$children;
|
|
11415
|
-
return /*#__PURE__*/React.createElement(core.NavLink, {
|
|
11696
|
+
return /*#__PURE__*/React$1.createElement(core.NavLink, {
|
|
11416
11697
|
mt: 'xs',
|
|
11417
11698
|
style: {
|
|
11418
11699
|
borderRadius: radius
|
|
@@ -11422,9 +11703,9 @@ const SideMenu = _ref => {
|
|
|
11422
11703
|
color,
|
|
11423
11704
|
variant,
|
|
11424
11705
|
onClick,
|
|
11425
|
-
leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
|
|
11706
|
+
leftSection: item.icon ? /*#__PURE__*/React$1.createElement(Icons, item.icon) : undefined,
|
|
11426
11707
|
label: item.label
|
|
11427
|
-
}, (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(core.NavLink, {
|
|
11708
|
+
}, (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? item.children.map(subitem => /*#__PURE__*/React$1.createElement(core.NavLink, {
|
|
11428
11709
|
label: subitem.label,
|
|
11429
11710
|
active: subitem.active,
|
|
11430
11711
|
color,
|
|
@@ -11435,8 +11716,12 @@ const SideMenu = _ref => {
|
|
|
11435
11716
|
}));
|
|
11436
11717
|
};
|
|
11437
11718
|
|
|
11719
|
+
exports.ApplicationMenu = ApplicationMenu;
|
|
11720
|
+
exports.DynamicLogo = DynamicLogo;
|
|
11721
|
+
exports.DynamicShigaLogo = DynamicShigaLogo;
|
|
11438
11722
|
exports.EqualizerColumn = EqualizerColumn;
|
|
11439
11723
|
exports.Icons = Icons;
|
|
11440
11724
|
exports.SideMenu = SideMenu;
|
|
11441
11725
|
exports.SimpleColumn = SimpleColumn;
|
|
11442
11726
|
exports.StackedColumn = StackedColumn;
|
|
11727
|
+
exports.UserMenu = UserMenu;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import _extends from '@babel/runtime/helpers/extends';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
|
-
import React, { useRef, useMemo, useEffect } from 'react';
|
|
3
|
+
import React$1, { useRef, useMemo, useEffect } from 'react';
|
|
4
4
|
import HighchartsReact from 'highcharts-react-official';
|
|
5
5
|
import HighchartsRounded from 'highcharts-rounded-corners';
|
|
6
|
-
import { NavLink } from '@mantine/core';
|
|
7
6
|
import * as IconSax from 'iconsax-react';
|
|
7
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
8
|
+
import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink } from '@mantine/core';
|
|
9
|
+
import { useDisclosure } from '@mantine/hooks';
|
|
8
10
|
|
|
9
11
|
function getDefaultExportFromCjs (x) {
|
|
10
12
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -11201,7 +11203,7 @@ const Column = props => {
|
|
|
11201
11203
|
chartRef.current.chart.update(chartOptions, true);
|
|
11202
11204
|
}
|
|
11203
11205
|
}, [chartOptions]);
|
|
11204
|
-
return /*#__PURE__*/React.createElement(HighchartsReact, {
|
|
11206
|
+
return /*#__PURE__*/React$1.createElement(HighchartsReact, {
|
|
11205
11207
|
highcharts: Highcharts,
|
|
11206
11208
|
ref: chartRef,
|
|
11207
11209
|
options: chartOptions
|
|
@@ -11219,7 +11221,7 @@ const EqualizerColumn = props => {
|
|
|
11219
11221
|
colors: [props.color || "blue"],
|
|
11220
11222
|
title: props.title
|
|
11221
11223
|
};
|
|
11222
|
-
return /*#__PURE__*/React.createElement(Column, chartOptions);
|
|
11224
|
+
return /*#__PURE__*/React$1.createElement(Column, chartOptions);
|
|
11223
11225
|
};
|
|
11224
11226
|
const SimpleColumn = props => {
|
|
11225
11227
|
const chartOptions = {
|
|
@@ -11233,10 +11235,10 @@ const SimpleColumn = props => {
|
|
|
11233
11235
|
colors: [props.color || "gray"],
|
|
11234
11236
|
title: props.title
|
|
11235
11237
|
};
|
|
11236
|
-
return /*#__PURE__*/React.createElement(Column, chartOptions);
|
|
11238
|
+
return /*#__PURE__*/React$1.createElement(Column, chartOptions);
|
|
11237
11239
|
};
|
|
11238
11240
|
const StackedColumn = props => {
|
|
11239
|
-
return /*#__PURE__*/React.createElement(Column, _extends({}, props, {
|
|
11241
|
+
return /*#__PURE__*/React$1.createElement(Column, _extends({}, props, {
|
|
11240
11242
|
equalizer: false
|
|
11241
11243
|
}));
|
|
11242
11244
|
};
|
|
@@ -11371,7 +11373,7 @@ const Icons = _ref => {
|
|
|
11371
11373
|
color
|
|
11372
11374
|
} = _ref;
|
|
11373
11375
|
const Element = IconSax[name];
|
|
11374
|
-
return /*#__PURE__*/React.createElement(Element, {
|
|
11376
|
+
return /*#__PURE__*/React$1.createElement(Element, {
|
|
11375
11377
|
size: size,
|
|
11376
11378
|
variant: variant,
|
|
11377
11379
|
color: color,
|
|
@@ -11381,6 +11383,285 @@ const Icons = _ref => {
|
|
|
11381
11383
|
});
|
|
11382
11384
|
};
|
|
11383
11385
|
|
|
11386
|
+
var img$1 = "data:image/svg+xml,%3csvg width='5894' height='1608' viewBox='0 0 5894 1608' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1134.15' cy='89.303' r='89.303' fill='%230F193D'/%3e%3cpath d='M1221.22 134.228C1205.91 168.166 1171.95 191.767 1132.53 191.767C1092.99 191.767 1058.96 168.038 1043.71 133.951V577.044C1074.75 620.8 1118.73 688.402 1141.93 743.436C1151.49 766.108 1162.66 797.844 1175.06 833.077L1175.1 833.199L1175.29 833.753C1184.59 860.161 1194.57 888.509 1205.08 916.46C1211.06 850.139 1215.35 776.424 1220.24 692.355L1221.22 675.507V134.228Z' fill='url(%23paint0_linear_5727_46453)'/%3e%3cpath d='M1023.32 1419.13L992.799 1405.89L1023.32 1419.13C1061.84 1371.65 1092.03 1325.96 1115.86 1279.54C1094.29 1240.79 1069.25 1189.31 1048.45 1130.75C1037.13 1098.91 1026.25 1069.43 1015.67 1042.13C989.217 1175.69 938.884 1272.42 844.875 1341.69C774.868 1396.23 687.034 1428.69 591.675 1428.69C362.935 1428.69 177.503 1241.94 177.503 1011.58C177.503 781.215 362.935 594.468 591.675 594.468C730.899 594.468 854.079 663.652 929.169 769.745L928.81 770.454L930.145 771.14C966.436 824.985 1021.37 964.678 1056.57 1055.67C1134.53 1257.23 1217.06 1382.74 1295.17 1449.19C1400.67 1547.42 1541.75 1607.45 1696.76 1607.45V1428.69C1569.45 1428.69 1455.55 1370.84 1379.58 1279.82L1379.62 1279.72C1300.34 1214.18 1206.85 1031.84 1157.15 878.104C1127.29 785.729 1054.87 653.414 1018.33 599.054L1018.62 598.474L1017.58 597.935L1017.56 597.913L1017.56 597.924L1017.54 597.919L1017.55 597.904C909.941 485.566 758.909 415.707 591.675 415.707C264.902 415.707 0 682.488 0 1011.58C0 1340.67 264.902 1607.45 591.675 1607.45C761.92 1607.45 915.372 1535.04 1023.32 1419.13Z' fill='url(%23paint1_linear_5727_46453)'/%3e%3cpath d='M1696.76 948.7C1696.76 867.516 1713.57 796.479 1747.19 735.591C1780.82 673.736 1826.8 625.895 1885.15 592.068C1944.49 558.241 2010.25 541.328 2082.45 541.328C2153.65 541.328 2215.46 556.308 2267.87 586.269C2320.29 616.23 2359.35 653.923 2385.06 699.348V554.375H2521.54V1348.82H2385.06V1200.95C2358.36 1247.34 2318.31 1286 2264.91 1316.93C2212.49 1346.89 2151.18 1361.87 2080.96 1361.87C2008.77 1361.87 1943.5 1344.48 1885.15 1309.68C1826.8 1274.89 1780.82 1226.08 1747.19 1163.26C1713.57 1100.44 1696.76 1028.92 1696.76 948.7ZM2385.06 950.15C2385.06 890.228 2372.7 838.038 2347.98 793.58C2323.26 749.122 2289.63 715.295 2247.11 692.099C2205.57 667.937 2159.59 655.856 2109.15 655.856C2058.71 655.856 2012.73 667.454 1971.19 690.649C1929.66 713.845 1896.53 747.672 1871.8 792.13C1847.08 836.588 1834.72 888.778 1834.72 948.7C1834.72 1009.59 1847.08 1062.75 1871.8 1108.17C1896.53 1152.63 1929.66 1186.94 1971.19 1211.1C2012.73 1234.3 2058.71 1245.89 2109.15 1245.89C2159.59 1245.89 2205.57 1234.3 2247.11 1211.1C2289.63 1186.94 2323.26 1152.63 2347.98 1108.17C2372.7 1062.75 2385.06 1010.07 2385.06 950.15Z' fill='%230F193D'/%3e%3cpath d='M2699.23 948.7C2699.23 867.516 2716.04 796.479 2749.66 735.591C2783.29 673.736 2829.27 625.895 2887.62 592.068C2946.96 558.241 3013.22 541.328 3086.4 541.328C3149.69 541.328 3208.53 555.825 3262.92 584.82C3317.32 612.848 3358.85 650.057 3387.53 696.448V276.028H3524.01V1348.82H3387.53V1199.5C3360.83 1246.86 3321.27 1286 3268.86 1316.93C3216.44 1346.89 3155.13 1361.87 3084.91 1361.87C3012.72 1361.87 2946.96 1344.48 2887.62 1309.68C2829.27 1274.89 2783.29 1226.08 2749.66 1163.26C2716.04 1100.44 2699.23 1028.92 2699.23 948.7ZM3387.53 950.15C3387.53 890.228 3375.17 838.038 3350.45 793.58C3325.72 749.122 3292.1 715.295 3249.57 692.099C3208.04 667.937 3162.05 655.856 3111.62 655.856C3061.18 655.856 3015.19 667.454 2973.66 690.649C2932.12 713.845 2898.99 747.672 2874.27 792.13C2849.54 836.588 2837.18 888.778 2837.18 948.7C2837.18 1009.59 2849.54 1062.75 2874.27 1108.17C2898.99 1152.63 2932.12 1186.94 2973.66 1211.1C3015.19 1234.3 3061.18 1245.89 3111.62 1245.89C3162.05 1245.89 3208.04 1234.3 3249.57 1211.1C3292.1 1186.94 3325.72 1152.63 3350.45 1108.17C3375.17 1062.75 3387.53 1010.07 3387.53 950.15Z' fill='%230F193D'/%3e%3cpath d='M3821.85 425.35C3796.14 425.35 3774.38 416.651 3756.58 399.255C3738.78 381.858 3729.88 360.595 3729.88 335.467C3729.88 310.338 3738.78 289.076 3756.58 271.679C3774.38 254.282 3796.14 245.584 3821.85 245.584C3846.57 245.584 3867.34 254.282 3884.15 271.679C3901.95 289.076 3910.85 310.338 3910.85 335.467C3910.85 360.595 3901.95 381.858 3884.15 399.255C3867.34 416.651 3846.57 425.35 3821.85 425.35ZM3887.12 554.375V1348.82H3752.13V554.375H3887.12Z' fill='%230F193D'/%3e%3cpath d='M4252.18 702.247C4279.87 654.89 4320.42 616.23 4373.82 586.269C4427.22 556.308 4488.04 541.328 4556.28 541.328C4629.46 541.328 4695.23 558.241 4753.58 592.068C4811.92 625.895 4857.91 673.736 4891.53 735.591C4925.16 796.479 4941.97 867.516 4941.97 948.7C4941.97 1028.92 4925.16 1100.44 4891.53 1163.26C4857.91 1226.08 4811.43 1274.89 4752.09 1309.68C4693.74 1344.48 4628.47 1361.87 4556.28 1361.87C4486.07 1361.87 4424.26 1346.89 4370.85 1316.93C4318.44 1286.97 4278.88 1248.79 4252.18 1202.4V1348.82H4117.19V276.028H4252.18V702.247ZM4804.01 948.7C4804.01 888.778 4791.65 836.588 4766.93 792.13C4742.2 747.672 4708.58 713.845 4666.05 690.649C4624.52 667.454 4578.53 655.856 4528.1 655.856C4478.65 655.856 4432.66 667.937 4390.14 692.099C4348.6 715.295 4314.98 749.605 4289.27 795.03C4264.54 839.488 4252.18 891.195 4252.18 950.15C4252.18 1010.07 4264.54 1062.75 4289.27 1108.17C4314.98 1152.63 4348.6 1186.94 4390.14 1211.1C4432.66 1234.3 4478.65 1245.89 4528.1 1245.89C4578.53 1245.89 4624.52 1234.3 4666.05 1211.1C4708.58 1186.94 4742.2 1152.63 4766.93 1108.17C4791.65 1062.75 4804.01 1009.59 4804.01 948.7Z' fill='%230F193D'/%3e%3cpath d='M5069.22 948.7C5069.22 867.516 5086.03 796.479 5119.66 735.591C5153.28 673.736 5199.27 625.895 5257.61 592.068C5316.95 558.241 5382.71 541.328 5454.91 541.328C5526.11 541.328 5587.92 556.308 5640.34 586.269C5692.75 616.23 5731.81 653.923 5757.53 699.348V554.375H5894V1348.82H5757.53V1200.95C5730.82 1247.34 5690.77 1286 5637.37 1316.93C5584.95 1346.89 5523.64 1361.87 5453.42 1361.87C5381.23 1361.87 5315.96 1344.48 5257.61 1309.68C5199.27 1274.89 5153.28 1226.08 5119.66 1163.26C5086.03 1100.44 5069.22 1028.92 5069.22 948.7ZM5757.53 950.15C5757.53 890.228 5745.16 838.038 5720.44 793.58C5695.72 749.122 5662.09 715.295 5619.57 692.099C5578.03 667.937 5532.05 655.856 5481.61 655.856C5431.17 655.856 5385.19 667.454 5343.65 690.649C5302.12 713.845 5268.99 747.672 5244.26 792.13C5219.54 836.588 5207.18 888.778 5207.18 948.7C5207.18 1009.59 5219.54 1062.75 5244.26 1108.17C5268.99 1152.63 5302.12 1186.94 5343.65 1211.1C5385.19 1234.3 5431.17 1245.89 5481.61 1245.89C5532.05 1245.89 5578.03 1234.3 5619.57 1211.1C5662.09 1186.94 5695.72 1152.63 5720.44 1108.17C5745.16 1062.75 5757.53 1010.07 5757.53 950.15Z' fill='%230F193D'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_5727_46453' x1='6.59737e-06' y1='958.761' x2='1696.76' y2='980.766' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23C8700B'/%3e%3cstop offset='1' stop-color='%230F193D'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_5727_46453' x1='6.59737e-06' y1='958.761' x2='1696.76' y2='980.766' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23C8700B'/%3e%3cstop offset='1' stop-color='%230F193D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
11387
|
+
|
|
11388
|
+
var img = "data:image/svg+xml,%3csvg width='893' height='221' viewBox='0 0 893 221' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M123.741 148.741H85.2506C51.0805 148.741 23.3801 121.041 23.3801 86.8706C23.3801 52.7005 51.0805 25.0001 85.2506 25.0001H220.681L197.302 54.6523H85.2505C67.4569 54.6523 53.0323 69.0769 53.0323 86.8706C53.0323 104.664 67.4569 119.089 85.2506 119.089H147.121L123.741 148.741Z' fill='url(%23paint0_linear_1362_1353)'/%3e%3cpath d='M96.9399 71.7585H135.431C169.601 71.7585 197.301 99.4589 197.301 133.629C197.301 167.799 169.601 195.499 135.431 195.499H0L23.3796 165.847H135.431C153.224 165.847 167.649 151.423 167.649 133.629C167.649 115.835 153.224 101.411 135.431 101.411H73.5602L96.9399 71.7585Z' fill='url(%23paint1_linear_1362_1353)'/%3e%3cpath d='M258.1 85.7725C258.1 89.0535 259.896 91.5532 263.49 93.2718C267.239 94.8341 273.098 96.4746 281.066 98.1932C290.128 100.068 297.705 102.177 303.798 104.521C309.891 106.864 315.125 110.614 319.5 115.769C324.03 120.769 326.296 127.565 326.296 136.158C326.296 143.814 323.952 150.453 319.265 156.078C314.734 161.702 308.641 165.999 300.986 168.967C293.33 171.779 284.972 173.186 275.91 173.186C263.568 173.186 252.944 170.842 244.039 166.155C235.289 161.468 228.806 154.75 224.587 146.001L248.491 133.58C252.71 144.36 261.849 149.75 275.91 149.75C282.003 149.75 287.237 148.579 291.612 146.235C295.986 143.892 298.174 140.533 298.174 136.158C298.174 132.408 296.143 129.674 292.081 127.956C288.175 126.081 281.769 124.05 272.864 121.863C263.646 119.675 256.147 117.488 250.366 115.301C244.585 113.114 239.586 109.754 235.368 105.224C231.149 100.537 229.04 94.3654 229.04 86.71C229.04 79.2107 231.149 72.727 235.368 67.2588C239.586 61.6344 245.288 57.3379 252.475 54.3695C259.662 51.401 267.552 49.9168 276.145 49.9168C286.3 49.9168 295.361 52.026 303.329 56.2443C311.454 60.4626 317.703 66.4776 322.078 74.2893L298.408 86.2412C294.346 77.4921 286.925 73.1176 276.145 73.1176C270.676 73.1176 266.302 74.2893 263.021 76.6328C259.74 78.8201 258.1 81.8667 258.1 85.7725Z' fill='%23303838'/%3e%3cpath d='M471.535 170.139H442.71V100.771C442.71 92.0219 440.21 85.7725 435.211 82.0229C430.367 78.1171 424.587 76.1641 417.869 76.1641C412.557 76.1641 407.713 77.8046 403.339 81.0855C399.12 84.3664 396.386 89.6003 395.136 96.787V170.139H366.077V6.09312H395.136V62.8061C399.042 59.0565 403.495 56.0881 408.495 53.9008C413.65 51.7135 419.118 50.6199 424.899 50.6199C431.773 50.6199 438.726 52.1041 445.756 55.0725C452.787 57.8847 458.802 62.9624 463.801 70.3054C468.957 77.6484 471.535 87.5692 471.535 100.068V170.139Z' fill='%23303838'/%3e%3cpath d='M538.164 33.5122C532.696 33.5122 528.399 32.028 525.275 29.0595C522.15 26.0911 520.588 22.029 520.588 16.8733C520.588 11.5613 522.15 7.42112 525.275 4.45267C528.399 1.48422 532.696 0 538.164 0C543.632 0 547.929 1.48422 551.053 4.45267C554.178 7.42112 555.74 11.5613 555.74 16.8733C555.74 21.8728 554.1 25.9349 550.819 29.0595C547.694 32.028 543.476 33.5122 538.164 33.5122ZM523.4 170.139V52.9634H552.459V170.139H523.4Z' fill='%23303838'/%3e%3cpath d='M694.084 52.9634H723.144V164.28C723.144 175.373 720.332 185.137 714.707 193.574C709.239 202.011 701.584 208.494 691.741 213.025C681.898 217.712 670.884 220.056 658.697 220.056C645.105 220.056 632.762 217.4 621.67 212.088C610.577 206.932 602.766 200.136 598.235 191.699L623.076 177.404C625.419 181.935 629.794 185.684 636.2 188.653C642.605 191.777 650.339 193.34 659.4 193.34C669.399 193.34 677.68 190.606 684.242 185.137C690.803 179.826 694.084 172.873 694.084 164.28V158.89C688.772 163.577 682.836 167.171 676.274 169.67C669.712 172.17 662.916 173.42 655.885 173.42C644.011 173.42 633.622 170.764 624.716 165.452C615.811 160.14 608.937 152.797 604.094 143.423C599.406 134.049 597.063 123.503 597.063 111.786C597.063 100.068 599.406 89.5222 604.094 80.1481C608.937 70.7741 615.811 63.4311 624.716 58.1191C633.622 52.6509 644.011 49.9168 655.885 49.9168C662.916 49.9168 669.634 51.2448 676.039 53.9008C682.601 56.4005 688.616 59.9158 694.084 64.4466V52.9634ZM659.635 145.532C666.04 145.532 671.821 144.126 676.977 141.314C682.289 138.345 686.429 134.283 689.397 129.128C692.522 123.972 694.084 118.113 694.084 111.551C694.084 101.708 690.725 93.6624 684.007 87.413C677.445 81.1636 669.321 78.0389 659.635 78.0389C649.792 78.0389 641.668 81.2418 635.262 87.6473C629.013 93.8967 625.888 101.943 625.888 111.786C625.888 121.628 629.013 129.752 635.262 136.158C641.668 142.407 649.792 145.532 659.635 145.532Z' fill='%23303838'/%3e%3cpath d='M863.755 52.9634H892.814V170.139H863.755V158.656C858.286 163.343 852.271 167.014 845.71 169.67C839.304 172.17 832.508 173.42 825.321 173.42C813.447 173.42 803.058 170.764 794.152 165.452C785.247 160.14 778.373 152.797 773.529 143.423C768.842 134.049 766.499 123.503 766.499 111.786C766.499 100.068 768.842 89.5222 773.529 80.1481C778.373 70.7741 785.247 63.4311 794.152 58.1191C803.058 52.6509 813.447 49.9168 825.321 49.9168C832.508 49.9168 839.304 51.2448 845.71 53.9008C852.271 56.4005 858.286 59.9939 863.755 64.6809V52.9634ZM829.071 145.532C835.476 145.532 841.257 144.126 846.413 141.314C851.725 138.345 855.865 134.283 858.833 129.128C861.958 123.972 863.52 118.113 863.52 111.551C863.52 101.708 860.161 93.6624 853.443 87.413C846.881 81.1636 838.757 78.0389 829.071 78.0389C819.228 78.0389 811.104 81.2418 804.698 87.6473C798.449 93.8967 795.324 101.943 795.324 111.786C795.324 121.628 798.449 129.752 804.698 136.158C811.104 142.407 819.228 145.532 829.071 145.532Z' fill='%23303838'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_1362_1353' x1='122.031' y1='25.0001' x2='122.031' y2='148.741' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23409393'/%3e%3cstop offset='1' stop-color='%2302424C'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_1362_1353' x1='98.6506' y1='71.7585' x2='98.6506' y2='195.499' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2302424C'/%3e%3cstop offset='1' stop-color='%23409393'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
11389
|
+
|
|
11390
|
+
const _excluded$1 = ["href", "fallbackSrc", "src", "fit"],
|
|
11391
|
+
_excluded2 = ["href", "src", "fit"],
|
|
11392
|
+
_excluded3 = ["href", "src", "fit"];
|
|
11393
|
+
const Logo = _ref => {
|
|
11394
|
+
let {
|
|
11395
|
+
href,
|
|
11396
|
+
fallbackSrc,
|
|
11397
|
+
src,
|
|
11398
|
+
fit
|
|
11399
|
+
} = _ref,
|
|
11400
|
+
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
11401
|
+
return /*#__PURE__*/React$1.createElement(Center, _extends({}, rest, {
|
|
11402
|
+
component: "a",
|
|
11403
|
+
display: "flex",
|
|
11404
|
+
href: href
|
|
11405
|
+
}), /*#__PURE__*/React$1.createElement(Image, {
|
|
11406
|
+
fallbackSrc: fallbackSrc,
|
|
11407
|
+
src: src,
|
|
11408
|
+
fit: fit
|
|
11409
|
+
}), /*#__PURE__*/React$1.createElement(Space, {
|
|
11410
|
+
flex: 1,
|
|
11411
|
+
hidden: true
|
|
11412
|
+
}));
|
|
11413
|
+
};
|
|
11414
|
+
const DynamicLogo = _ref2 => {
|
|
11415
|
+
let {
|
|
11416
|
+
href = "/",
|
|
11417
|
+
src,
|
|
11418
|
+
fit = "contain"
|
|
11419
|
+
} = _ref2,
|
|
11420
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
11421
|
+
return /*#__PURE__*/React$1.createElement(Logo, _extends({}, rest, {
|
|
11422
|
+
href,
|
|
11423
|
+
src,
|
|
11424
|
+
fit,
|
|
11425
|
+
fallbackSrc: img$1
|
|
11426
|
+
}));
|
|
11427
|
+
};
|
|
11428
|
+
const DynamicShigaLogo = _ref3 => {
|
|
11429
|
+
let {
|
|
11430
|
+
href = "/",
|
|
11431
|
+
src,
|
|
11432
|
+
fit = "contain"
|
|
11433
|
+
} = _ref3,
|
|
11434
|
+
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
11435
|
+
return /*#__PURE__*/React$1.createElement(Logo, _extends({}, rest, {
|
|
11436
|
+
href,
|
|
11437
|
+
src,
|
|
11438
|
+
fit,
|
|
11439
|
+
fallbackSrc: img
|
|
11440
|
+
}));
|
|
11441
|
+
};
|
|
11442
|
+
|
|
11443
|
+
const _excluded = ["children", "toggle"];
|
|
11444
|
+
const ApplicationMenuTarget = _ref => {
|
|
11445
|
+
let {
|
|
11446
|
+
children,
|
|
11447
|
+
toggle
|
|
11448
|
+
} = _ref;
|
|
11449
|
+
_objectWithoutProperties(_ref, _excluded);
|
|
11450
|
+
return /*#__PURE__*/React$1.createElement(Popover.Target, null, /*#__PURE__*/React$1.createElement(Button, {
|
|
11451
|
+
variant: "transparent",
|
|
11452
|
+
justify: "space-between",
|
|
11453
|
+
h: 60,
|
|
11454
|
+
fw: 300,
|
|
11455
|
+
w: 200,
|
|
11456
|
+
rightSection: /*#__PURE__*/React$1.createElement(Icons, {
|
|
11457
|
+
name: "ArrowDown2",
|
|
11458
|
+
size: 16
|
|
11459
|
+
}),
|
|
11460
|
+
onClick: toggle
|
|
11461
|
+
}, children));
|
|
11462
|
+
};
|
|
11463
|
+
|
|
11464
|
+
const ApplicationMenuDropdown = _ref => {
|
|
11465
|
+
let {
|
|
11466
|
+
items,
|
|
11467
|
+
moreText,
|
|
11468
|
+
moreLink,
|
|
11469
|
+
toggle
|
|
11470
|
+
} = _ref;
|
|
11471
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover.Dropdown, {
|
|
11472
|
+
ml: "md",
|
|
11473
|
+
p: 5
|
|
11474
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
11475
|
+
gap: 5,
|
|
11476
|
+
p: 0
|
|
11477
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
11478
|
+
gap: 5,
|
|
11479
|
+
align: "flex-start"
|
|
11480
|
+
}, items.map((item, index) => /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
11481
|
+
key: "item-".concat(index)
|
|
11482
|
+
}, item)))), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Group, {
|
|
11483
|
+
grow: true,
|
|
11484
|
+
justify: "center"
|
|
11485
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
11486
|
+
variant: "subtle",
|
|
11487
|
+
p: 0,
|
|
11488
|
+
component: "a",
|
|
11489
|
+
href: moreLink,
|
|
11490
|
+
onClick: toggle
|
|
11491
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
11492
|
+
size: "xs",
|
|
11493
|
+
fw: 300,
|
|
11494
|
+
w: 320
|
|
11495
|
+
}, moreText, " \xBB"))))));
|
|
11496
|
+
};
|
|
11497
|
+
const DropdownItem = _ref2 => {
|
|
11498
|
+
let {
|
|
11499
|
+
active,
|
|
11500
|
+
title,
|
|
11501
|
+
icon,
|
|
11502
|
+
description,
|
|
11503
|
+
activeBg = "gray.1",
|
|
11504
|
+
activeColor = "altiba",
|
|
11505
|
+
inactiveColor = "adiba",
|
|
11506
|
+
onClick
|
|
11507
|
+
} = _ref2;
|
|
11508
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
11509
|
+
variant: "subtle",
|
|
11510
|
+
fw: 300,
|
|
11511
|
+
mih: 70,
|
|
11512
|
+
bg: active ? activeBg : {},
|
|
11513
|
+
c: active ? activeColor : inactiveColor,
|
|
11514
|
+
onClick: onClick
|
|
11515
|
+
}, /*#__PURE__*/React.createElement(Group, {
|
|
11516
|
+
w: 320
|
|
11517
|
+
}, /*#__PURE__*/React.createElement(Icons, icon), /*#__PURE__*/React.createElement(Stack, {
|
|
11518
|
+
align: "flex-start",
|
|
11519
|
+
gap: 5
|
|
11520
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
11521
|
+
size: "sm",
|
|
11522
|
+
fw: 300
|
|
11523
|
+
}, title), /*#__PURE__*/React.createElement(Text, {
|
|
11524
|
+
size: "xs",
|
|
11525
|
+
fz: 11,
|
|
11526
|
+
fw: 300
|
|
11527
|
+
}, description)))));
|
|
11528
|
+
};
|
|
11529
|
+
|
|
11530
|
+
const ApplicationMenu = _ref => {
|
|
11531
|
+
let {
|
|
11532
|
+
transition,
|
|
11533
|
+
label,
|
|
11534
|
+
moreLink,
|
|
11535
|
+
moreText,
|
|
11536
|
+
items
|
|
11537
|
+
} = _ref;
|
|
11538
|
+
const [opened, {
|
|
11539
|
+
toggle
|
|
11540
|
+
}] = useDisclosure(false);
|
|
11541
|
+
return /*#__PURE__*/React$1.createElement(Popover, {
|
|
11542
|
+
transitionProps: {
|
|
11543
|
+
transition
|
|
11544
|
+
},
|
|
11545
|
+
position: "bottom-start",
|
|
11546
|
+
withArrow: true,
|
|
11547
|
+
withinPortal: true,
|
|
11548
|
+
offset: 0,
|
|
11549
|
+
arrowOffset: 20,
|
|
11550
|
+
arrowSize: 10,
|
|
11551
|
+
shadow: "sm",
|
|
11552
|
+
radius: "sm",
|
|
11553
|
+
opened: opened,
|
|
11554
|
+
onChange: toggle
|
|
11555
|
+
}, /*#__PURE__*/React$1.createElement(ApplicationMenuTarget, {
|
|
11556
|
+
toggle
|
|
11557
|
+
}, label), /*#__PURE__*/React$1.createElement(ApplicationMenuDropdown, {
|
|
11558
|
+
items,
|
|
11559
|
+
moreLink,
|
|
11560
|
+
moreText,
|
|
11561
|
+
toggle
|
|
11562
|
+
}));
|
|
11563
|
+
};
|
|
11564
|
+
|
|
11565
|
+
const UserMenuTarget = _ref => {
|
|
11566
|
+
let {
|
|
11567
|
+
name,
|
|
11568
|
+
username,
|
|
11569
|
+
avatar
|
|
11570
|
+
} = _ref;
|
|
11571
|
+
return /*#__PURE__*/React.createElement(Menu.Target, null, /*#__PURE__*/React.createElement(Button, {
|
|
11572
|
+
variant: "subtle",
|
|
11573
|
+
h: 50,
|
|
11574
|
+
px: 10,
|
|
11575
|
+
radius: "md"
|
|
11576
|
+
}, /*#__PURE__*/React.createElement(Group, {
|
|
11577
|
+
gap: "sm"
|
|
11578
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
11579
|
+
radius: "xl",
|
|
11580
|
+
src: avatar
|
|
11581
|
+
}), /*#__PURE__*/React.createElement(Stack, {
|
|
11582
|
+
gap: 0,
|
|
11583
|
+
align: "flex-start",
|
|
11584
|
+
visibleFrom: "md"
|
|
11585
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
11586
|
+
size: "sm"
|
|
11587
|
+
}, name), /*#__PURE__*/React.createElement(Text, {
|
|
11588
|
+
c: "dimmed",
|
|
11589
|
+
size: "xs"
|
|
11590
|
+
}, username)), /*#__PURE__*/React.createElement(Icons, {
|
|
11591
|
+
name: "ArrowRight2",
|
|
11592
|
+
size: 12
|
|
11593
|
+
}))));
|
|
11594
|
+
};
|
|
11595
|
+
|
|
11596
|
+
const UserMenuDropdown = _ref => {
|
|
11597
|
+
let {
|
|
11598
|
+
sections,
|
|
11599
|
+
height = 40
|
|
11600
|
+
} = _ref;
|
|
11601
|
+
return /*#__PURE__*/React.createElement(Menu.Dropdown, null, sections.map((section, index) => {
|
|
11602
|
+
const items = [];
|
|
11603
|
+
const sectionItems = section.items.map((item, key) => {
|
|
11604
|
+
var _item$badge, _item$badge2;
|
|
11605
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
11606
|
+
c: section === null || section === void 0 ? void 0 : section.color,
|
|
11607
|
+
key: "menu-item-".concat(key),
|
|
11608
|
+
h: height,
|
|
11609
|
+
leftSection: /*#__PURE__*/React.createElement(Icons, item.icon),
|
|
11610
|
+
rightSection: item !== null && item !== void 0 && item.disclosure ? /*#__PURE__*/React.createElement(Icons, {
|
|
11611
|
+
name: "ArrowRight2",
|
|
11612
|
+
size: 12
|
|
11613
|
+
}) : item.badge ? /*#__PURE__*/React.createElement(Badge, {
|
|
11614
|
+
color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color
|
|
11615
|
+
}, item === null || item === void 0 || (_item$badge2 = item.badge) === null || _item$badge2 === void 0 ? void 0 : _item$badge2.text) : undefined,
|
|
11616
|
+
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
11617
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
11618
|
+
size: "xs",
|
|
11619
|
+
fw: 300
|
|
11620
|
+
}, item.label));
|
|
11621
|
+
});
|
|
11622
|
+
if (index) items.push(/*#__PURE__*/React.createElement(Divider, {
|
|
11623
|
+
key: "divider-".concat(index),
|
|
11624
|
+
my: "xs"
|
|
11625
|
+
}));
|
|
11626
|
+
if (section !== null && section !== void 0 && section.title) items.push(/*#__PURE__*/React.createElement(Menu.Label, {
|
|
11627
|
+
key: "label-".concat(index),
|
|
11628
|
+
pt: "xs"
|
|
11629
|
+
}, section.title));
|
|
11630
|
+
items.push(...sectionItems);
|
|
11631
|
+
return items;
|
|
11632
|
+
}));
|
|
11633
|
+
};
|
|
11634
|
+
|
|
11635
|
+
const UserMenu = _ref => {
|
|
11636
|
+
let {
|
|
11637
|
+
width,
|
|
11638
|
+
height,
|
|
11639
|
+
name,
|
|
11640
|
+
username,
|
|
11641
|
+
avatar,
|
|
11642
|
+
sections
|
|
11643
|
+
} = _ref;
|
|
11644
|
+
return /*#__PURE__*/React$1.createElement(Menu, {
|
|
11645
|
+
width: width || 250,
|
|
11646
|
+
transitionProps: {
|
|
11647
|
+
transition: "pop"
|
|
11648
|
+
},
|
|
11649
|
+
position: "bottom-end",
|
|
11650
|
+
withArrow: true,
|
|
11651
|
+
withinPortal: true,
|
|
11652
|
+
offset: 5,
|
|
11653
|
+
arrowOffset: 20,
|
|
11654
|
+
arrowSize: 10
|
|
11655
|
+
}, /*#__PURE__*/React$1.createElement(UserMenuTarget, {
|
|
11656
|
+
name,
|
|
11657
|
+
username,
|
|
11658
|
+
avatar
|
|
11659
|
+
}), /*#__PURE__*/React$1.createElement(UserMenuDropdown, {
|
|
11660
|
+
sections,
|
|
11661
|
+
height
|
|
11662
|
+
}));
|
|
11663
|
+
};
|
|
11664
|
+
|
|
11384
11665
|
const SideMenu = _ref => {
|
|
11385
11666
|
let {
|
|
11386
11667
|
color,
|
|
@@ -11389,9 +11670,9 @@ const SideMenu = _ref => {
|
|
|
11389
11670
|
sidemenu,
|
|
11390
11671
|
onClick
|
|
11391
11672
|
} = _ref;
|
|
11392
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
|
|
11673
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, sidemenu.map(item => {
|
|
11393
11674
|
var _item$children;
|
|
11394
|
-
return /*#__PURE__*/React.createElement(NavLink, {
|
|
11675
|
+
return /*#__PURE__*/React$1.createElement(NavLink, {
|
|
11395
11676
|
mt: 'xs',
|
|
11396
11677
|
style: {
|
|
11397
11678
|
borderRadius: radius
|
|
@@ -11401,9 +11682,9 @@ const SideMenu = _ref => {
|
|
|
11401
11682
|
color,
|
|
11402
11683
|
variant,
|
|
11403
11684
|
onClick,
|
|
11404
|
-
leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
|
|
11685
|
+
leftSection: item.icon ? /*#__PURE__*/React$1.createElement(Icons, item.icon) : undefined,
|
|
11405
11686
|
label: item.label
|
|
11406
|
-
}, (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(NavLink, {
|
|
11687
|
+
}, (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? item.children.map(subitem => /*#__PURE__*/React$1.createElement(NavLink, {
|
|
11407
11688
|
label: subitem.label,
|
|
11408
11689
|
active: subitem.active,
|
|
11409
11690
|
color,
|
|
@@ -11414,4 +11695,4 @@ const SideMenu = _ref => {
|
|
|
11414
11695
|
}));
|
|
11415
11696
|
};
|
|
11416
11697
|
|
|
11417
|
-
export { EqualizerColumn, Icons, SideMenu, SimpleColumn, StackedColumn };
|
|
11698
|
+
export { ApplicationMenu, DynamicLogo, DynamicShigaLogo, EqualizerColumn, Icons, SideMenu, SimpleColumn, StackedColumn, UserMenu };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { DynamicLogo } from "./Logos";
|
|
3
|
+
import "@mantine/core/styles.css";
|
|
4
|
+
declare const _default: Meta<typeof DynamicLogo>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DynamicADIBALogos: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Logos.types").LogoProps>;
|
|
7
|
+
export declare const DynamicShigaLogos: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Logos.types").LogoProps>;
|
|
8
|
+
export declare const DynamicADIBAIdentityLogos: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Logos.types").LogoProps>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { SimpleColumn, EqualizerColumn, StackedColumn } from "./charts/column/Column";
|
|
2
|
-
export { SideMenu } from "./menus/side/Side";
|
|
3
2
|
export { Icons } from "./general/icons/Icons";
|
|
3
|
+
export { DynamicLogo, DynamicShigaLogo } from "./general/logos/Logos";
|
|
4
|
+
export { ApplicationMenu } from "./menus/application/Application";
|
|
5
|
+
export { UserMenu } from "./menus/user/User";
|
|
6
|
+
export { SideMenu } from "./menus/side/Side";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ApplicationMenu } from "./Application";
|
|
2
|
+
import { Meta } from "@storybook/react";
|
|
3
|
+
import '@mantine/core/styles.css';
|
|
4
|
+
declare const _default: Meta<typeof ApplicationMenu>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ApplicationMenuExample: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Application.types").ApplicationMenuProps>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PopoverDropdownProps, PopoverProps, PopoverTargetProps } from "@mantine/core";
|
|
2
|
+
import { IconsProps } from "../../general/icons/Icons.types";
|
|
3
|
+
export interface ApplicationMenuProps extends PopoverProps {
|
|
4
|
+
label: string;
|
|
5
|
+
transition: "pop" | "fade" | "scale";
|
|
6
|
+
length: number;
|
|
7
|
+
items: ApplicationMenuItemProps[];
|
|
8
|
+
activeBg?: string;
|
|
9
|
+
activeColor?: string;
|
|
10
|
+
inactiveColor?: string;
|
|
11
|
+
moreText: string;
|
|
12
|
+
moreLink: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ApplicationMenuTargetProps extends PopoverTargetProps {
|
|
15
|
+
toggle: () => void;
|
|
16
|
+
}
|
|
17
|
+
export interface ApplicationMenuDropdownProps extends PopoverDropdownProps {
|
|
18
|
+
items: ApplicationMenuItemProps[];
|
|
19
|
+
moreText: string;
|
|
20
|
+
moreLink: string;
|
|
21
|
+
toggle: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface ApplicationMenuItemProps {
|
|
24
|
+
seq: number;
|
|
25
|
+
id: string | number;
|
|
26
|
+
title: string;
|
|
27
|
+
icon: IconsProps;
|
|
28
|
+
description: string;
|
|
29
|
+
active: boolean;
|
|
30
|
+
activeBg?: string;
|
|
31
|
+
activeColor?: string;
|
|
32
|
+
inactiveColor?: string;
|
|
33
|
+
onClick: () => void;
|
|
34
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { NavLinkVariant } from "@mantine/core";
|
|
2
1
|
import { IconsProps } from "../../general/icons/Icons.types";
|
|
3
2
|
export interface SideMenuProps {
|
|
4
3
|
color: string;
|
|
5
4
|
radius?: number;
|
|
6
|
-
variant
|
|
5
|
+
variant?: "filled" | "light" | "subtle";
|
|
7
6
|
sidemenu: SideMenuItemProps[];
|
|
8
7
|
onClick?: () => void;
|
|
9
8
|
}
|
|
@@ -12,6 +11,6 @@ export interface SideMenuItemProps {
|
|
|
12
11
|
id: string;
|
|
13
12
|
icon?: IconsProps;
|
|
14
13
|
label: string;
|
|
15
|
-
variant?:
|
|
14
|
+
variant?: "filled" | "light" | "subtle";
|
|
16
15
|
children?: SideMenuItemProps[];
|
|
17
16
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { UserMenu } from "./User";
|
|
3
|
+
import '@mantine/core/styles.css';
|
|
4
|
+
declare const _default: Meta<typeof UserMenu>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const UserMenuExample: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./User.types").UsermenuProps>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IconsProps } from "../../general/icons/Icons.types";
|
|
2
|
+
export interface UsermenuProps {
|
|
3
|
+
name: string;
|
|
4
|
+
username: string;
|
|
5
|
+
avatar?: string;
|
|
6
|
+
width?: number | undefined;
|
|
7
|
+
height?: number | undefined;
|
|
8
|
+
sections: UserMenuSectionProps[];
|
|
9
|
+
}
|
|
10
|
+
interface UserMenuSectionProps {
|
|
11
|
+
title?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
items: UserMenuItemProps[];
|
|
14
|
+
}
|
|
15
|
+
interface UserMenuItemProps {
|
|
16
|
+
label: string;
|
|
17
|
+
icon: IconsProps;
|
|
18
|
+
callbackFn?: Function;
|
|
19
|
+
disclosure?: boolean;
|
|
20
|
+
badge?: {
|
|
21
|
+
text: string;
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface UserMenuTargetProps {
|
|
26
|
+
name: string;
|
|
27
|
+
username: string;
|
|
28
|
+
avatar?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface UserMenuDropdownProps {
|
|
31
|
+
sections: UserMenuSectionProps[];
|
|
32
|
+
height?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
package/package.json
CHANGED