@cyber-harbour/ui 1.0.57 → 1.0.59
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.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +317 -317
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +267 -267
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/IconComponents/BusIcon.tsx +10 -2
- package/src/Core/IconComponents/CarIcon.tsx +2 -2
- package/src/Core/IconComponents/PassportIcon.tsx +796 -0
- package/src/Core/IconComponents/PlaneIcon.tsx +3 -2
- package/src/Core/IconComponents/ShipIcon.tsx +6 -7
- package/src/Core/IconComponents/WayIcon.tsx +4 -4
- package/src/Core/IconComponents/index.ts +1 -0
- package/src/Theme/themes/dark.ts +15 -15
- package/src/Theme/themes/light.ts +2 -2
- package/src/Theme/utils.ts +1 -1
|
@@ -6,11 +6,12 @@ interface PlaneIconProps extends SVGProps<SVGSVGElement> {
|
|
|
6
6
|
|
|
7
7
|
export const PlaneIcon = ({ fill = 'currentColor', ...props }: PlaneIconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<svg viewBox="0 0
|
|
9
|
+
<svg viewBox="0 0 34 17" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
10
10
|
<path
|
|
11
|
-
d="
|
|
11
|
+
d="M22.3999 11.1246C22.3999 11.1246 23.2138 10.2427 23.2973 10.0957C23.7773 9.31883 22.9425 8.49993 22.2329 8.96187L14.8034 16.4999H11.7773L15.5129 9.99074C15.826 9.23484 15.0538 8.49993 14.3651 8.96187C13.9477 9.23484 13.2173 11.0406 12.9877 11.1036H6.87295C6.47643 11.1036 6.20512 10.8726 5.97556 10.5787L0.173828 1.42383H5.28686C6.74773 2.87264 8.18773 4.38445 9.73207 5.72828H28.2433C30.4346 5.85427 31.6033 6.54718 32.7929 8.37395C33.2938 9.15085 34.0868 10.1797 33.0642 10.9146C33.0016 10.9566 32.7094 11.1036 32.6677 11.1036H22.3999V11.1246Z"
|
|
12
12
|
fill={fill}
|
|
13
13
|
/>
|
|
14
|
+
<path d="M20.6468 4.17453H16.5981L14.5737 0.5H17.0989L20.5424 3.96456L20.6468 4.17453Z" fill={fill} />
|
|
14
15
|
</svg>
|
|
15
16
|
);
|
|
16
17
|
};
|
|
@@ -6,26 +6,25 @@ interface ShipIconProps extends SVGProps<SVGSVGElement> {
|
|
|
6
6
|
|
|
7
7
|
export const ShipIcon = ({ fill = 'currentColor', ...props }: ShipIconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<svg viewBox="0 0
|
|
9
|
+
<svg viewBox="0 0 34 17" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
10
10
|
<path
|
|
11
|
-
d="
|
|
11
|
+
d="M28.6402 9.83056V9.95799C27.6601 11.6995 26.9741 13.7243 26.0081 15.4516C25.6721 16.0463 25.0981 16.4428 24.426 16.4994L8.56353 16.4711C8.10152 16.2304 8.39553 15.9189 8.43753 15.5791C8.50753 14.8853 8.11552 14.7862 7.7095 14.4039C6.96748 13.6959 6.64547 12.7898 6.58947 11.7703C6.58947 11.5296 6.54747 10.9208 6.58947 10.7084C6.58947 10.6659 6.61747 10.5951 6.65947 10.5951H20.5059C20.5059 10.5951 20.5059 10.4394 20.5199 10.3686C20.5899 10.1704 20.7299 9.98631 20.9259 9.90136C20.9679 9.8872 21.2339 9.80225 21.2619 9.80225H28.6402V9.83056Z"
|
|
12
12
|
fill={fill}
|
|
13
13
|
/>
|
|
14
14
|
<path
|
|
15
|
-
d="
|
|
15
|
+
d="M9.34833 0.5V2.79374H10.2864C10.3844 2.79374 10.3424 3.19019 10.3564 3.27514H9.34833V4.37954H12.1904C12.2184 4.46449 12.1484 4.46449 12.1204 4.50697C11.8824 4.74767 11.5184 4.94589 11.2804 5.20076V10.2696H7.37427V5.1866H6.24023V4.3937H8.91432V3.2893H7.94829V2.8079H8.91432V0.5H9.34833ZM10.5244 5.76711H9.29233V6.91398H10.5244V5.76711ZM10.5244 7.62193H9.29233V8.7688H10.5244V7.62193Z"
|
|
16
16
|
fill={fill}
|
|
17
17
|
/>
|
|
18
|
-
<path d="M9.57832 0.5V3.02L8.66832 2.69L7.77832 3.02V0.5H9.57832Z" fill={fill} />
|
|
19
18
|
<path
|
|
20
|
-
d="
|
|
19
|
+
d="M20.0022 10.1726C20.0022 10.1726 19.8062 10.2718 19.7362 10.2718C18.8962 10.3709 17.8881 10.201 17.0201 10.2718C16.8661 10.2718 16.7681 10.1585 16.6701 10.0452L16.6421 5.51436C16.6561 5.34446 16.7961 5.20287 16.9641 5.18871C17.8601 5.2595 18.8542 5.10375 19.7222 5.18871C20.0442 5.21703 20.1002 5.40109 20.1422 5.69843C20.0722 7.00105 20.2402 8.38862 20.1422 9.67708C20.1422 9.81867 20.1002 10.0594 20.0022 10.1726Z"
|
|
21
20
|
fill={fill}
|
|
22
21
|
/>
|
|
23
22
|
<path
|
|
24
|
-
d="
|
|
23
|
+
d="M12.3568 6.34606C13.3368 6.41686 14.4988 6.21863 15.4509 6.34606C15.7589 6.38854 15.8849 6.54429 15.9129 6.85578C15.9829 7.57789 15.9829 9.05041 15.9129 9.77252C15.8849 10.0557 15.8009 10.2398 15.4929 10.2822C14.5128 10.2114 13.3928 10.3672 12.4268 10.2822C12.2028 10.2681 12.0348 10.1548 12.0068 9.89995C12.0908 8.89467 11.8948 7.69116 12.0068 6.71419C12.0348 6.48765 12.1468 6.41686 12.3428 6.34606H12.3568Z"
|
|
25
24
|
fill={fill}
|
|
26
25
|
/>
|
|
27
26
|
<path
|
|
28
|
-
d="
|
|
27
|
+
d="M21.1917 6.7443C22.1998 6.80094 23.3478 6.64519 24.3278 6.7443C24.5238 6.75846 24.7198 6.87173 24.7478 7.06996C24.7898 7.39561 24.7898 8.41505 24.7478 8.75487C24.7198 9.03804 24.4958 9.10884 24.2438 9.13716C23.5298 9.20795 22.1158 9.20795 21.4017 9.13716C21.1497 9.10884 20.9257 9.03804 20.8977 8.75487C20.8557 8.41505 20.8557 7.39561 20.8977 7.06996C20.9117 6.91421 21.0517 6.80094 21.1917 6.7443Z"
|
|
29
28
|
fill={fill}
|
|
30
29
|
/>
|
|
31
30
|
</svg>
|
|
@@ -6,17 +6,17 @@ interface WayIconProps extends SVGProps<SVGSVGElement> {
|
|
|
6
6
|
|
|
7
7
|
export const WayIcon = ({ fill = 'currentColor', ...props }: WayIconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<svg viewBox="0 0
|
|
9
|
+
<svg viewBox="0 0 35 17" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
10
10
|
<path
|
|
11
|
-
d="
|
|
11
|
+
d="M25.226 7.83626C27.0276 7.66984 28.707 9.06174 28.707 10.8924C28.707 12.0876 27.3787 14.0847 26.6917 15.0832C26.478 15.3858 26.1116 15.9759 25.8673 16.2179C25.6993 16.3995 25.4551 16.4298 25.2566 16.2482C25.0428 16.0515 24.6306 15.3858 24.4321 15.1135C23.7756 14.1603 22.5084 12.254 22.4168 11.1345C22.2794 9.48536 23.5619 8.00268 25.2108 7.85139L25.226 7.83626ZM25.3634 9.65179C23.7909 9.8636 23.913 12.2994 25.5925 12.254C27.4093 12.2087 27.2108 9.40972 25.3634 9.65179Z"
|
|
12
12
|
fill={fill}
|
|
13
13
|
/>
|
|
14
14
|
<path
|
|
15
|
-
d="
|
|
15
|
+
d="M12.7511 10.0087L13.5756 9.35818L13.6825 9.32792C15.3771 9.35818 16.9802 9.14636 18.2474 9.91796C20.0184 10.9921 18.7818 12.8228 16.1863 12.9438C14.2168 13.0346 12.0488 12.8682 10.0641 12.9438C6.75104 13.0649 6.68997 15.6217 9.9114 15.8336H23.3925L24.278 16.4992H9.56025C8.82741 16.4992 7.66709 16.0756 7.20907 15.773C5.20903 14.4719 6.73578 12.3235 9.81979 12.1874C11.7893 12.1117 13.9725 12.2781 15.942 12.1874C17.7589 12.1117 18.4459 10.8711 17.0718 10.2357C16.8733 10.1449 16.339 9.99361 16.0947 9.99361H12.7664L12.7511 10.0087Z"
|
|
16
16
|
fill={fill}
|
|
17
17
|
/>
|
|
18
18
|
<path
|
|
19
|
-
d="
|
|
19
|
+
d="M9.63714 0.526254C12.3242 0.223666 14.4769 2.58385 13.6372 5.17098C13.0418 7.00163 11.5914 8.74151 10.5226 10.3301C10.37 10.4663 10.1257 10.4814 9.94249 10.4057C9.75928 10.3301 9.14858 9.4072 8.98064 9.18026C8.07986 7.9094 6.36991 5.36766 6.49205 3.80933C6.61419 2.251 8.03406 0.692677 9.63714 0.526254ZM10.141 2.59898C7.97299 2.70489 8.38521 6.24516 10.599 5.63999C12.3242 5.17098 12.0341 2.5082 10.141 2.59898Z"
|
|
20
20
|
fill={fill}
|
|
21
21
|
/>
|
|
22
22
|
</svg>
|
package/src/Theme/themes/dark.ts
CHANGED
|
@@ -333,15 +333,15 @@ export const darkThemePx: Theme = {
|
|
|
333
333
|
boxShadow: 'none',
|
|
334
334
|
},
|
|
335
335
|
hover: {
|
|
336
|
-
background: '#
|
|
336
|
+
background: '#1A212D',
|
|
337
337
|
text: '#80A0F5',
|
|
338
|
-
border: '#
|
|
338
|
+
border: '#80A0F5',
|
|
339
339
|
boxShadow: 'none',
|
|
340
340
|
},
|
|
341
341
|
active: {
|
|
342
|
-
background: '#
|
|
342
|
+
background: '#1A212D',
|
|
343
343
|
text: '#80A0F5',
|
|
344
|
-
border: '#
|
|
344
|
+
border: '#80A0F5',
|
|
345
345
|
boxShadow: 'none',
|
|
346
346
|
},
|
|
347
347
|
disabled: {
|
|
@@ -355,20 +355,20 @@ export const darkThemePx: Theme = {
|
|
|
355
355
|
// колір default
|
|
356
356
|
default: {
|
|
357
357
|
background: 'transparent',
|
|
358
|
-
text: '#
|
|
359
|
-
border: '#
|
|
358
|
+
text: '#E8EAEE',
|
|
359
|
+
border: '#34404C',
|
|
360
360
|
boxShadow: 'none',
|
|
361
361
|
},
|
|
362
362
|
hover: {
|
|
363
|
-
background: '#
|
|
364
|
-
text: '#
|
|
365
|
-
border: '#
|
|
363
|
+
background: '#222A32',
|
|
364
|
+
text: '#E8EAEE',
|
|
365
|
+
border: '#34404C',
|
|
366
366
|
boxShadow: 'none',
|
|
367
367
|
},
|
|
368
368
|
active: {
|
|
369
|
-
background: '#
|
|
370
|
-
text: '#
|
|
371
|
-
border: '#
|
|
369
|
+
background: '#222A32',
|
|
370
|
+
text: '#E8EAEE',
|
|
371
|
+
border: '#34404C',
|
|
372
372
|
boxShadow: 'none',
|
|
373
373
|
},
|
|
374
374
|
disabled: {
|
|
@@ -536,19 +536,19 @@ export const darkThemePx: Theme = {
|
|
|
536
536
|
// колір default
|
|
537
537
|
default: {
|
|
538
538
|
background: 'transparent',
|
|
539
|
-
text: '#
|
|
539
|
+
text: '#E8EAEE',
|
|
540
540
|
border: 'transparent',
|
|
541
541
|
boxShadow: 'none',
|
|
542
542
|
},
|
|
543
543
|
hover: {
|
|
544
544
|
background: 'transparent',
|
|
545
|
-
text: '#
|
|
545
|
+
text: '#34404C',
|
|
546
546
|
border: 'transparent',
|
|
547
547
|
boxShadow: 'none',
|
|
548
548
|
},
|
|
549
549
|
active: {
|
|
550
550
|
background: 'transparent',
|
|
551
|
-
text: '#
|
|
551
|
+
text: '#34404C',
|
|
552
552
|
border: 'transparent',
|
|
553
553
|
boxShadow: 'none',
|
|
554
554
|
},
|
|
@@ -541,13 +541,13 @@ export const lightThemePx: Theme = {
|
|
|
541
541
|
},
|
|
542
542
|
hover: {
|
|
543
543
|
background: 'transparent',
|
|
544
|
-
text: '#
|
|
544
|
+
text: '#99989C',
|
|
545
545
|
border: 'transparent',
|
|
546
546
|
boxShadow: 'none',
|
|
547
547
|
},
|
|
548
548
|
active: {
|
|
549
549
|
background: 'transparent',
|
|
550
|
-
text: '#
|
|
550
|
+
text: '#99989C',
|
|
551
551
|
border: 'transparent',
|
|
552
552
|
boxShadow: 'none',
|
|
553
553
|
},
|
package/src/Theme/utils.ts
CHANGED
|
@@ -124,7 +124,7 @@ export const convertPaletteToRem = (
|
|
|
124
124
|
result[key] = convertPaletteToRem(value, baseSize, key);
|
|
125
125
|
}
|
|
126
126
|
// If value is a string and contains 'px', convert it to rem
|
|
127
|
-
else if (typeof value === 'string' && value.
|
|
127
|
+
else if (typeof value === 'string' && /^\d+(\.\d+)?px$/.test(value.trim())) {
|
|
128
128
|
result[key] = pxToRem(value, baseSize);
|
|
129
129
|
}
|
|
130
130
|
// Handle numeric values that represent pixels for specific properties
|