@mtes-mct/monitor-ui 9.3.0 → 10.0.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ # [9.4.0](https://github.com/MTES-MCT/monitor-ui/compare/v9.3.0...v9.4.0) (2023-09-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * **icons:** add EditUnbordered icon ([743b90c](https://github.com/MTES-MCT/monitor-ui/commit/743b90ce4f03a0f08c73cf41f9595e956bc6676a))
7
+ * **icons:** add Link andUnlink icons ([5b001a3](https://github.com/MTES-MCT/monitor-ui/commit/5b001a313539626d88f28100557ddf8fe1abf0d8))
8
+
9
+ # [9.3.0](https://github.com/MTES-MCT/monitor-ui/compare/v9.2.2...v9.3.0) (2023-09-19)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **button:** update settings for large button ([62eca52](https://github.com/MTES-MCT/monitor-ui/commit/62eca522e98320f5974f654ee97f7be28d6097c6))
15
+
16
+
17
+ ### Features
18
+
19
+ * **icons:** add icons ([87e6577](https://github.com/MTES-MCT/monitor-ui/commit/87e657787b200f8605385f8e7b2fd61db45dcc6c))
20
+ * **theme:** add custom zones colors ([957b7a3](https://github.com/MTES-MCT/monitor-ui/commit/957b7a3a315ca003012788c760a9172f5fbea797))
21
+
1
22
  ## [9.2.2](https://github.com/MTES-MCT/monitor-ui/compare/v9.2.1...v9.2.2) (2023-09-08)
2
23
 
3
24
 
@@ -350,6 +350,10 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner:before {
350
350
  line-height: 17px;
351
351
  }
352
352
 
353
+ .rs-radio:hover .rs-radio-inner:before {
354
+ border-color: var(--charcoal);
355
+ }
356
+
353
357
  /* form */
354
358
  .rs-form:not(.rs-form-inline) .rs-form-group:not(:last-child) {
355
359
  margin-bottom: 32px;
@@ -700,3 +704,7 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner:before {
700
704
  height: 100px !important;
701
705
  background: white !important;
702
706
  }
707
+
708
+ .rs-plaintext {
709
+ font-size: 13px !important;
710
+ }
package/index.js CHANGED
@@ -250,19 +250,16 @@ const THEME = {
250
250
  cultured: '#F7F7FA',
251
251
  white: '#FFFFFF',
252
252
  // Accentuation Colors
253
- blueYonder: {
254
- 25: '#D4DDE7',
255
- 100: '#567A9E'
256
- },
257
- blueGray: {
258
- 100: '#5697D2',
259
- 25: '#D4E5F4'
260
- },
253
+ blueYonder: '#567A9E',
254
+ blueYonder25: '#D4DDE7',
255
+ blueGray: '#5697D2',
256
+ blueGray25: '#D4E5F4',
257
+ maximumRed: '#E1000F',
258
+ maximumRed15: '#FBD9DB',
261
259
  babyBlueEyes: '#99C9FF',
262
260
  // Notification Colors
263
261
  mediumSeaGreen: '#29B361',
264
262
  goldenPoppy: '#FAC11A',
265
- maximumRed: '#E1000F',
266
263
  /** CONTEXTUAL COLORS */
267
264
  // Mission status
268
265
  yellowGreen: '#8CC800',
@@ -277,10 +274,6 @@ const THEME = {
277
274
  // Beacon Malfunction
278
275
  powderBlue: '#9ED7D9',
279
276
  wheat: '#EDD6A4',
280
- // goldenPoppy: '#FAC11A',
281
- // maximumRed: '#E1000F',
282
- // charcoal: '#3B4559',
283
- // mediumSeaGreen: '#29B361',
284
277
  opal: '#A5BCC0',
285
278
  // Regulation Areas
286
279
  yaleBlue: '#295375',
@@ -2364,7 +2357,7 @@ const SecondaryDropdownItem = styled(Dropdown$1.Item) `
2364
2357
  :hover {
2365
2358
  background-color: ${p => p.theme.color.cultured};
2366
2359
  border: 1px solid ${p => p.theme.color.lightGray};
2367
- color: ${p => p.theme.color.blueYonder['100']};
2360
+ color: ${p => p.theme.color.blueYonder};
2368
2361
  }
2369
2362
  &:not(:last-child) {
2370
2363
  margin-bottom: 1px;
@@ -2409,14 +2402,14 @@ const PrimaryDropdown = styled(Dropdown$1) `
2409
2402
  padding: ${p => (p.$hasIcon ? '4px' : '5px')} 12px ${p => (p.$hasIcon ? '5px' : '7px')};
2410
2403
 
2411
2404
  :hover {
2412
- background-color: ${p => p.theme.color.blueYonder['100']};
2413
- border: 1px solid ${p => p.theme.color.blueYonder['100']};
2405
+ background-color: ${p => p.theme.color.blueYonder};
2406
+ border: 1px solid ${p => p.theme.color.blueYonder};
2414
2407
  color: ${p => p.theme.color.white};
2415
2408
  }
2416
2409
 
2417
2410
  :active {
2418
- background-color: ${p => p.theme.color.blueGray['100']};
2419
- border: 1px solid ${p => p.theme.color.blueGray['100']};
2411
+ background-color: ${p => p.theme.color.blueGray};
2412
+ border: 1px solid ${p => p.theme.color.blueGray};
2420
2413
  color: ${p => p.theme.color.white};
2421
2414
  }
2422
2415
 
@@ -2456,7 +2449,7 @@ const SecondaryDropdown = styled(Dropdown$1) `
2456
2449
  :active {
2457
2450
  background-color: transparent;
2458
2451
  border: none;
2459
- color: ${p => p.theme.color.blueYonder['100']};
2452
+ color: ${p => p.theme.color.blueYonder};
2460
2453
  }
2461
2454
 
2462
2455
  > svg {
@@ -33790,15 +33783,15 @@ const PrimaryButton = styled.button `
33790
33783
 
33791
33784
  :hover,
33792
33785
  &._hover {
33793
- background-color: ${p => p.theme.color.blueYonder['100']};
33794
- border: 1px solid ${p => p.theme.color.blueYonder['100']};
33786
+ background-color: ${p => p.theme.color.blueYonder};
33787
+ border: 1px solid ${p => p.theme.color.blueYonder};
33795
33788
  color: ${p => p.theme.color.white};
33796
33789
  }
33797
33790
 
33798
33791
  :active,
33799
33792
  &._active {
33800
- background-color: ${p => p.theme.color.blueGray['100']};
33801
- border: 1px solid ${p => p.theme.color.blueGray['100']};
33793
+ background-color: ${p => p.theme.color.blueGray};
33794
+ border: 1px solid ${p => p.theme.color.blueGray};
33802
33795
  color: ${p => p.theme.color.white};
33803
33796
  }
33804
33797
 
@@ -33816,16 +33809,16 @@ const SecondaryButton = styled.button `
33816
33809
 
33817
33810
  :hover,
33818
33811
  &._hover {
33819
- background-color: ${p => p.theme.color.blueYonder['25']};
33820
- border: 1px solid ${p => p.theme.color.blueYonder['100']};
33821
- color: ${p => p.theme.color.blueYonder['100']};
33812
+ background-color: ${p => p.theme.color.blueYonder25};
33813
+ border: 1px solid ${p => p.theme.color.blueYonder};
33814
+ color: ${p => p.theme.color.blueYonder};
33822
33815
  }
33823
33816
 
33824
33817
  :active,
33825
33818
  &._active {
33826
- background-color: ${p => p.theme.color.blueGray['25']};
33827
- border: 1px solid ${p => p.theme.color.blueGray['100']};
33828
- color: ${p => p.theme.color.blueGray['100']};
33819
+ background-color: ${p => p.theme.color.blueGray25};
33820
+ border: 1px solid ${p => p.theme.color.blueGray};
33821
+ color: ${p => p.theme.color.blueGray};
33829
33822
  }
33830
33823
 
33831
33824
  :disabled,
@@ -33842,16 +33835,16 @@ const TertiaryButton$1 = styled.button `
33842
33835
 
33843
33836
  :hover,
33844
33837
  &._hover {
33845
- background-color: ${p => p.theme.color.blueYonder['25']};
33846
- border: 1px solid ${p => p.theme.color.blueYonder['25']};
33847
- color: ${p => p.theme.color.blueYonder['100']};
33838
+ background-color: ${p => p.theme.color.blueYonder25};
33839
+ border: 1px solid ${p => p.theme.color.blueYonder25};
33840
+ color: ${p => p.theme.color.blueYonder};
33848
33841
  }
33849
33842
 
33850
33843
  :active,
33851
33844
  &._active {
33852
- background-color: ${p => p.theme.color.blueGray['25']};
33853
- border: 1px solid ${p => p.theme.color.blueGray['100']};
33854
- color: ${p => p.theme.color.blueGray['100']};
33845
+ background-color: ${p => p.theme.color.blueGray25};
33846
+ border: 1px solid ${p => p.theme.color.blueGray};
33847
+ color: ${p => p.theme.color.blueGray};
33855
33848
  }
33856
33849
 
33857
33850
  :disabled,
@@ -33938,14 +33931,14 @@ const TertiaryButton = styled.button `
33938
33931
  &._hover {
33939
33932
  background-color: transparent;
33940
33933
  border: ${p => (p.isCompact ? 0 : '1px solid transparent')};
33941
- color: ${p => p.theme.color.blueYonder['100']};
33934
+ color: ${p => p.theme.color.blueYonder};
33942
33935
  }
33943
33936
 
33944
33937
  :active,
33945
33938
  &._active {
33946
33939
  background-color: transparent;
33947
33940
  border: ${p => (p.isCompact ? 0 : '1px solid transparent')};
33948
- color: ${p => p.theme.color.blueGray['100']};
33941
+ color: ${p => p.theme.color.blueGray};
33949
33942
  }
33950
33943
 
33951
33944
  :disabled,
@@ -33961,7 +33954,7 @@ function Button({ Icon, isActive, title, ...originalProps }) {
33961
33954
  }
33962
33955
  const MenuButton = styled(IconButton) `
33963
33956
  animation: none;
33964
- background: ${p => (p.$isActive ? p.theme.color.blueGray[100] : 'none')};
33957
+ background: ${p => (p.$isActive ? p.theme.color.blueGray : 'none')};
33965
33958
  border: 0;
33966
33959
  border-bottom: solid 0.5px ${p => p.theme.color.slateGray};
33967
33960
  color: ${p => (p.$isActive ? p.theme.color.white : p.theme.color.gainsboro)};
@@ -33970,7 +33963,7 @@ const MenuButton = styled(IconButton) `
33970
33963
 
33971
33964
  :hover,
33972
33965
  :focus {
33973
- background: ${p => (p.$isActive ? p.theme.color.blueGray[100] : 'rgba(255, 255, 255, 0.125)')};
33966
+ background: ${p => (p.$isActive ? p.theme.color.blueGray : 'rgba(255, 255, 255, 0.125)')};
33974
33967
  border: 0;
33975
33968
  border: none;
33976
33969
  color: ${p => p.theme.color.white};
@@ -34110,6 +34103,10 @@ function EditBis({ color, size, ...nativeProps }) {
34110
34103
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-80)", children: [jsx("path", { d: "M86,11.5V14h2.5l7.372-7.372-2.5-2.5ZM97.805,4.7a.664.664,0,0,0,0-.94l-1.56-1.56a.664.664,0,0,0-.94,0l-1.219,1.22,2.5,2.5Z", fill: "currentColor" }), jsx("path", { d: "M95,9v7H84V5h7V3H82V18H97V9Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", transform: "translate(80)", width: "20" })] }) }) }));
34111
34104
  }
34112
34105
 
34106
+ function EditUnbordered({ color, size, ...nativeProps }) {
34107
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsx("g", { children: jsx("path", { d: "M10.713,5.983,14.02,9.288,6.3,17H3V13.7l7.716-7.718Zm1.1-1.1,1.653-1.653a.779.779,0,0,1,1.1,0l2.2,2.2a.779.779,0,0,1,0,1.1L15.121,8.185Z", fill: "currentColor" }) })] }) }));
34108
+ }
34109
+
34113
34110
  function Expand({ color, size, ...nativeProps }) {
34114
34111
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20.076", viewBox: "0 0 20.068 20.076", width: "20.068", ...nativeProps, children: jsx("path", { d: "M12114.779,15768.074v-1.512h5.719l-6.488-6.49,1.061-1.061,6.5,6.482v-5.713h1.5v8.293Zm-10.271-17.5v5.719H12103v-8.3h8.293v1.512h-5.719l6.488,6.49-1.068,1.066Z", fill: "currentColor", transform: "translate(-12103.002 -15747.998)" }) }) }));
34115
34112
  }
@@ -34170,6 +34167,10 @@ function Landmark({ color, size, ...nativeProps }) {
34170
34167
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("defs", { children: jsx("clipPath", { children: jsx("rect", { fill: "none", height: "20", width: "20" }) }) }), jsxs("g", { clipPath: "url(#clip-path)", children: [jsx("path", { d: "M10,1A6,6,0,0,0,4,7a6.108,6.108,0,0,0,.091,1.01c.007.038.011.078.018.116a5.968,5.968,0,0,0,.252.908c.016.045.032.091.05.135a6.061,6.061,0,0,0,.4.836l.06.1a5.934,5.934,0,0,0,.56.781c0,.007.011.012.016.018a6.01,6.01,0,0,0,2.518,1.737l.009,0a6,6,0,0,0,4.05,0l.009,0A6.01,6.01,0,0,0,14.552,10.9c.005-.006.011-.011.016-.018a5.934,5.934,0,0,0,.56-.781l.06-.1a6.061,6.061,0,0,0,.4-.836c.018-.044.034-.09.05-.135a5.968,5.968,0,0,0,.252-.908c.007-.038.011-.078.018-.116A6.108,6.108,0,0,0,16,7a6,6,0,0,0-6-6", fill: "currentColor" }), jsx("path", { d: "M10,14.084A7.4,7.4,0,0,1,8.941,14v3.942L10,19l1.059-1.058V14A7.4,7.4,0,0,1,10,14.084", fill: "currentColor" })] })] }) }));
34171
34168
  }
34172
34169
 
34170
+ function Link$1({ color, size, ...nativeProps }) {
34171
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsxs("g", { children: [jsxs("g", { children: [jsx("path", { d: "M5,7H9V5H5A5,5,0,0,0,5,15H9V13H5A3,3,0,0,1,5,7Z", fill: "currentColor" }), jsx("path", { d: "M15,13H11v2h4A5,5,0,0,0,15,5H11V7h4a3,3,0,0,1,0,6Z", fill: "currentColor" }), jsx("rect", { fill: "currentColor", height: "2", transform: "translate(6 9)", width: "8" })] }), jsx("rect", { fill: "none", height: "20", width: "20" })] })] }) }));
34172
+ }
34173
+
34173
34174
  function List({ color, size, ...nativeProps }) {
34174
34175
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(160 -41)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-142 45) rotate(90)", children: [jsx("rect", { height: "12", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "10", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-142 50) rotate(90)", children: [jsx("rect", { height: "12", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "10", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-142 55) rotate(90)", children: [jsx("rect", { height: "12", stroke: "none", width: "2" }), jsx("rect", { fill: "none", height: "10", x: "1", y: "1" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-158 44.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-158 49.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(-158 54.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(-160 41)", width: "20" })] }) }) }));
34175
34176
  }
@@ -34322,6 +34323,10 @@ function Target({ color, size, ...nativeProps }) {
34322
34323
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M20,9H17.931A7.994,7.994,0,0,0,11,2.069V0H9V2.069A7.994,7.994,0,0,0,2.069,9H0v2H2.069A7.994,7.994,0,0,0,9,17.931V20h2V17.931A7.994,7.994,0,0,0,17.931,11H20Zm-9,6.91V14H9v1.91A6.008,6.008,0,0,1,4.09,11H6V9H4.09A6.008,6.008,0,0,1,9,4.09V6h2V4.09A6.008,6.008,0,0,1,15.91,9H14v2h1.91A6.008,6.008,0,0,1,11,15.91Z", stroke: "none" }), jsx("path", { d: "M 9 0 L 11 0 L 11 2.069000244140625 C 14.61700057983398 2.520999908447266 17.47900009155273 5.383000373840332 17.93099975585938 9 L 20 9 L 20 11 L 17.93099975585938 11 C 17.47900009155273 14.61700057983398 14.61700057983398 17.47900009155273 11 17.93099975585938 L 11 20 L 9 20 L 9 17.93099975585938 C 5.383000373840332 17.47900009155273 2.520999908447266 14.61700057983398 2.069000244140625 11 L 0 11 L 0 9 L 2.069000244140625 9 C 2.520999908447266 5.383000373840332 5.383000373840332 2.520999908447266 9 2.069000244140625 L 9 0 Z M 11 6 L 9 6 L 9 4.090000152587891 C 6.493000030517578 4.513999938964844 4.513999938964844 6.493000030517578 4.090000152587891 9 L 6 9 L 6 11 L 4.090000152587891 11 C 4.513999938964844 13.50699996948242 6.493000030517578 15.48600006103516 9 15.90999984741211 L 9 14 L 11 14 L 11 15.90999984741211 C 13.50699996948242 15.48600006103516 15.48600006103516 13.50699996948242 15.90999984741211 11 L 14 11 L 14 9 L 15.90999984741211 9 C 15.48600006103516 6.493000030517578 13.50699996948242 4.513999938964844 11 4.090000152587891 L 11 6 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(8.5 8.5)", children: [jsx("circle", { cx: "1.5", cy: "1.5", r: "1.5", stroke: "none" }), jsx("circle", { cx: "1.5", cy: "1.5", fill: "none", r: "0.5" })] }), jsx("path", { d: "M0,0H20V20H0Z", fill: "none" })] }) }));
34323
34324
  }
34324
34325
 
34326
+ function Unlink({ color, size, ...nativeProps }) {
34327
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsxs("g", { children: [jsx("rect", { fill: "currentColor", height: "22", transform: "translate(17.071 1.515) rotate(45)", width: "2" }), jsx("g", { children: jsx("path", { d: "M3.22,14.659l1.67-1.67A3,3,0,0,1,5,7H9V5H5a4.992,4.992,0,0,0-1.78,9.659Z", fill: "currentColor" }) }), jsxs("g", { children: [jsx("path", { d: "M8.879,9H6v2h.879Z", fill: "currentColor" }), jsx("path", { d: "M10.414,11l2-2H9.586l-2,2Z", fill: "currentColor" }), jsx("path", { d: "M11.121,11H14V9h-.879Z", fill: "currentColor" })] }), jsx("g", { children: jsx("path", { d: "M16.78,5.341l-1.67,1.67A3,3,0,0,1,15,13H11v2h4a4.992,4.992,0,0,0,1.78-9.659Z", fill: "currentColor" }) })] })] }) }));
34328
+ }
34329
+
34325
34330
  function Unlock({ color, size, ...nativeProps }) {
34326
34331
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsxs("g", { children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsxs("g", { children: [jsx("circle", { cx: "1.5", cy: "1.5", fill: "currentColor", r: "1.5", transform: "translate(8.5 11.5)" }), jsx("path", { d: "M14.471,7V5.456a4.471,4.471,0,0,0-8.942,0H7.765a2.235,2.235,0,1,1,4.47,0V7H3V19H17V7ZM15,17H5V9H15Z", fill: "currentColor" })] })] })] }) }));
34327
34332
  }
@@ -34362,6 +34367,7 @@ var index = /*#__PURE__*/Object.freeze({
34362
34367
  Duplicate: Duplicate,
34363
34368
  Edit: Edit,
34364
34369
  EditBis: EditBis,
34370
+ EditUnbordered: EditUnbordered,
34365
34371
  Expand: Expand,
34366
34372
  Favorite: Favorite,
34367
34373
  FilledArrow: FilledArrow,
@@ -34377,6 +34383,7 @@ var index = /*#__PURE__*/Object.freeze({
34377
34383
  Info: Info,
34378
34384
  Infringement: Infringement,
34379
34385
  Landmark: Landmark,
34386
+ Link: Link$1,
34380
34387
  List: List,
34381
34388
  MapLayers: MapLayers,
34382
34389
  MeasureAngle: MeasureAngle,
@@ -34415,6 +34422,7 @@ var index = /*#__PURE__*/Object.freeze({
34415
34422
  Summary: Summary,
34416
34423
  Tag: Tag$1,
34417
34424
  Target: Target,
34425
+ Unlink: Unlink,
34418
34426
  Unlock: Unlock,
34419
34427
  Vessel: Vessel,
34420
34428
  ViewOnMap: ViewOnMap,
@@ -34471,29 +34479,29 @@ const PrimaryIconButton = styled(IconButton) `
34471
34479
  }
34472
34480
  `;
34473
34481
  const SecondaryText = styled(PrimaryText) `
34474
- background-color: ${p => p.theme.color.blueYonder[100]};
34482
+ background-color: ${p => p.theme.color.blueYonder};
34475
34483
  color: ${p => p.theme.color.white};
34476
34484
  `;
34477
34485
  const SecondaryIconButton = styled(PrimaryIconButton) `
34478
- background-color: ${p => p.theme.color.blueYonder[100]};
34486
+ background-color: ${p => p.theme.color.blueYonder};
34479
34487
  color: ${p => p.theme.color.white};
34480
34488
 
34481
34489
  :hover,
34482
34490
  &._hover {
34483
- background-color: ${p => p.theme.color.blueYonder[100]};
34484
- color: ${p => p.theme.color.blueYonder[25]};
34491
+ background-color: ${p => p.theme.color.blueYonder};
34492
+ color: ${p => p.theme.color.blueYonder25};
34485
34493
  }
34486
34494
 
34487
34495
  :active,
34488
34496
  &._active {
34489
- background-color: ${p => p.theme.color.blueYonder[100]};
34490
- color: ${p => p.theme.color.blueYonder[25]};
34497
+ background-color: ${p => p.theme.color.blueYonder};
34498
+ color: ${p => p.theme.color.blueYonder25};
34491
34499
  }
34492
34500
 
34493
34501
  :disabled,
34494
34502
  &._disabled {
34495
- background-color: ${p => p.theme.color.blueYonder[100]};
34496
- color: ${p => p.theme.color.blueYonder[25]};
34503
+ background-color: ${p => p.theme.color.blueYonder};
34504
+ color: ${p => p.theme.color.blueYonder25};
34497
34505
  }
34498
34506
  `;
34499
34507
 
@@ -52500,7 +52508,7 @@ const Box$c = styled.div `
52500
52508
  width: 33px;
52501
52509
 
52502
52510
  &.rs-calendar-table-cell-in-range:before {
52503
- background-color: ${p => p.theme.color.blueGray[25]};
52511
+ background-color: ${p => p.theme.color.blueGray25};
52504
52512
  height: 33px;
52505
52513
  margin-top: 0;
52506
52514
  }
@@ -52515,8 +52523,8 @@ const Box$c = styled.div `
52515
52523
  width: 33px;
52516
52524
  }
52517
52525
  &:hover .rs-calendar-table-cell-content {
52518
- background-color: ${p => p.theme.color.blueYonder[25]};
52519
- color: ${p => p.theme.color.blueYonder[100]};
52526
+ background-color: ${p => p.theme.color.blueYonder25};
52527
+ color: ${p => p.theme.color.blueYonder};
52520
52528
  }
52521
52529
  &[role='columnheader'] .rs-calendar-table-cell-content,
52522
52530
  &[role='columnheader']:hover .rs-calendar-table-cell-content {
@@ -52528,7 +52536,7 @@ const Box$c = styled.div `
52528
52536
  color: ${p => p.theme.color.lightGray};
52529
52537
  }
52530
52538
  &.rs-calendar-table-cell-selected > .rs-calendar-table-cell-content {
52531
- background-color: ${p => p.theme.color.blueGray[100]};
52539
+ background-color: ${p => p.theme.color.blueGray};
52532
52540
  }
52533
52541
  }
52534
52542
  }
@@ -52541,7 +52549,7 @@ const Box$c = styled.div `
52541
52549
  color: ${p => p.theme.color.slateGray};
52542
52550
 
52543
52551
  &.rs-calendar-month-dropdown-year-active {
52544
- color: ${p => p.theme.color.blueYonder[100]};
52552
+ color: ${p => p.theme.color.blueYonder};
52545
52553
  }
52546
52554
  }
52547
52555
 
@@ -52557,11 +52565,11 @@ const Box$c = styled.div `
52557
52565
  width: 33px;
52558
52566
  }
52559
52567
  &:hover > .rs-calendar-month-dropdown-cell-content {
52560
- background-color: ${p => p.theme.color.blueYonder[25]};
52561
- color: ${p => p.theme.color.blueYonder[100]};
52568
+ background-color: ${p => p.theme.color.blueYonder25};
52569
+ color: ${p => p.theme.color.blueYonder};
52562
52570
  }
52563
52571
  &.rs-calendar-month-dropdown-cell-active > .rs-calendar-month-dropdown-cell-content {
52564
- background-color: ${p => p.theme.color.blueGray[100]};
52572
+ background-color: ${p => p.theme.color.blueGray};
52565
52573
  color: ${p => p.theme.color.white};
52566
52574
  }
52567
52575
  }
@@ -52785,9 +52793,9 @@ const Box$b = styled.div `
52785
52793
  align-items: center;
52786
52794
  background-color: ${p => (p.$isLight ? p.theme.color.white : p.theme.color.gainsboro)};
52787
52795
  box-shadow: ${p => p.$hasError || p.$isFocused
52788
- ? `inset 0px 0px 0px 1px ${p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray[100]}`
52796
+ ? `inset 0px 0px 0px 1px ${p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray}`
52789
52797
  : 'none'};
52790
- color: ${p => (p.$isFocused ? p.theme.color.blueGray[100] : p.theme.color.slateGray)};
52798
+ color: ${p => (p.$isFocused ? p.theme.color.blueGray : p.theme.color.slateGray)};
52791
52799
  display: inline-flex;
52792
52800
  font-size: inherit;
52793
52801
  justify-content: space-between;
@@ -52797,12 +52805,8 @@ const Box$b = styled.div `
52797
52805
  :hover {
52798
52806
  box-shadow: ${p => `inset 0px 0px 0px 1px ${
52799
52807
  // eslint-disable-next-line no-nested-ternary
52800
- p.$isDisabled
52801
- ? p.theme.color.cultured
52802
- : p.$isFocused
52803
- ? p.theme.color.blueGray[100]
52804
- : p.theme.color.blueYonder[100]}`};
52805
- color: ${p => (p.$isFocused ? p.theme.color.blueGray[100] : p.theme.color.blueYonder[100])};
52808
+ p.$isDisabled ? p.theme.color.cultured : p.$isFocused ? p.theme.color.blueGray : p.theme.color.blueYonder}`};
52809
+ color: ${p => (p.$isFocused ? p.theme.color.blueGray : p.theme.color.blueYonder)};
52806
52810
  }
52807
52811
 
52808
52812
  > div:nth-child(2) {
@@ -52887,14 +52891,14 @@ const Box$a = styled.div `
52887
52891
  }
52888
52892
  `;
52889
52893
  const Option = styled.div `
52890
- background-color: ${p => (p.isSelected ? p.theme.color.blueGray[100] : 'transparent')};
52894
+ background-color: ${p => (p.isSelected ? p.theme.color.blueGray : 'transparent')};
52891
52895
  color: ${p => (p.isSelected ? p.theme.color.white : p.theme.color.gunMetal)};
52892
52896
  cursor: pointer;
52893
52897
  line-height: 1;
52894
52898
  padding: 5px 0 7px 6.5px;
52895
52899
 
52896
52900
  :hover {
52897
- background-color: ${p => (p.isSelected ? p.theme.color.blueGray[100] : p.theme.color.blueYonder[25])};
52901
+ background-color: ${p => (p.isSelected ? p.theme.color.blueGray : p.theme.color.blueYonder25)};
52898
52902
  }
52899
52903
 
52900
52904
  > span {
@@ -53000,9 +53004,9 @@ const TimeInput = forwardRef(TimeInputWithRef);
53000
53004
  const Box$9 = styled.div `
53001
53005
  background-color: ${p => (p.$isLight ? p.theme.color.white : p.theme.color.gainsboro)};
53002
53006
  box-shadow: ${p => p.$hasError || p.$isFocused
53003
- ? `inset 0px 0px 0px 1px ${p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray[100]}`
53007
+ ? `inset 0px 0px 0px 1px ${p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray}`
53004
53008
  : 'none'};
53005
- color: ${p => (p.$isFocused ? p.theme.color.blueGray[100] : p.theme.color.slateGray)};
53009
+ color: ${p => (p.$isFocused ? p.theme.color.blueGray : p.theme.color.slateGray)};
53006
53010
  display: inline-block;
53007
53011
  font-size: inherit;
53008
53012
  padding: ${p => (p.$isCompact ? '4.5px 8px 7px' : '3px 8px 5px')};
@@ -53012,12 +53016,8 @@ const Box$9 = styled.div `
53012
53016
  :hover {
53013
53017
  box-shadow: ${p => `inset 0px 0px 0px 1px ${
53014
53018
  // eslint-disable-next-line no-nested-ternary
53015
- p.$isDisabled
53016
- ? p.theme.color.cultured
53017
- : p.$isFocused
53018
- ? p.theme.color.blueGray[100]
53019
- : p.theme.color.blueYonder[100]}`};
53020
- color: ${p => (p.$isFocused ? p.theme.color.blueGray[100] : p.theme.color.blueYonder[100])};
53019
+ p.$isDisabled ? p.theme.color.cultured : p.$isFocused ? p.theme.color.blueGray : p.theme.color.blueYonder}`};
53020
+ color: ${p => (p.$isFocused ? p.theme.color.blueGray : p.theme.color.blueYonder)};
53021
53021
  }
53022
53022
  `;
53023
53023
  const InputGroup = styled.div `
@@ -53328,7 +53328,7 @@ const Box$7 = styled.div `
53328
53328
  width: 33px;
53329
53329
 
53330
53330
  &.rs-calendar-table-cell-in-range:before {
53331
- background-color: ${p => p.theme.color.blueGray[25]};
53331
+ background-color: ${p => p.theme.color.blueGray25};
53332
53332
  height: 33px;
53333
53333
  margin-top: 0;
53334
53334
  }
@@ -53343,8 +53343,8 @@ const Box$7 = styled.div `
53343
53343
  width: 33px;
53344
53344
  }
53345
53345
  &:hover .rs-calendar-table-cell-content {
53346
- background-color: ${p => p.theme.color.blueYonder[25]};
53347
- color: ${p => p.theme.color.blueYonder[100]};
53346
+ background-color: ${p => p.theme.color.blueYonder25};
53347
+ color: ${p => p.theme.color.blueYonder};
53348
53348
  }
53349
53349
  &[role='columnheader'] .rs-calendar-table-cell-content,
53350
53350
  &[role='columnheader']:hover .rs-calendar-table-cell-content {
@@ -53356,7 +53356,7 @@ const Box$7 = styled.div `
53356
53356
  color: ${p => p.theme.color.lightGray};
53357
53357
  }
53358
53358
  &.rs-calendar-table-cell-selected > .rs-calendar-table-cell-content {
53359
- background-color: ${p => p.theme.color.blueGray[100]};
53359
+ background-color: ${p => p.theme.color.blueGray};
53360
53360
  }
53361
53361
  }
53362
53362
  }
@@ -53369,7 +53369,7 @@ const Box$7 = styled.div `
53369
53369
  color: ${p => p.theme.color.slateGray};
53370
53370
 
53371
53371
  &.rs-calendar-month-dropdown-year-active {
53372
- color: ${p => p.theme.color.blueYonder[100]};
53372
+ color: ${p => p.theme.color.blueYonder};
53373
53373
  }
53374
53374
  }
53375
53375
 
@@ -53385,11 +53385,11 @@ const Box$7 = styled.div `
53385
53385
  width: 33px;
53386
53386
  }
53387
53387
  &:hover > .rs-calendar-month-dropdown-cell-content {
53388
- background-color: ${p => p.theme.color.blueYonder[25]};
53389
- color: ${p => p.theme.color.blueYonder[100]};
53388
+ background-color: ${p => p.theme.color.blueYonder25};
53389
+ color: ${p => p.theme.color.blueYonder};
53390
53390
  }
53391
53391
  &.rs-calendar-month-dropdown-cell-active > .rs-calendar-month-dropdown-cell-content {
53392
- background-color: ${p => p.theme.color.blueGray[100]};
53392
+ background-color: ${p => p.theme.color.blueGray};
53393
53393
  color: ${p => p.theme.color.white};
53394
53394
  }
53395
53395
  }
@@ -57101,7 +57101,7 @@ const Box$5 = styled.div `
57101
57101
  return p.theme.color.maximumRed;
57102
57102
  }
57103
57103
  if (p.$isActive) {
57104
- return p.theme.color.blueGray[100];
57104
+ return p.theme.color.blueGray;
57105
57105
  }
57106
57106
  return p.theme.color.gainsboro;
57107
57107
  }} !important;
@@ -57109,12 +57109,12 @@ const Box$5 = styled.div `
57109
57109
  width: 100%;
57110
57110
 
57111
57111
  :hover {
57112
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder[100])} !important;
57112
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder)} !important;
57113
57113
  }
57114
57114
 
57115
57115
  :active,
57116
57116
  :focus {
57117
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray[100])} !important;
57117
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray)} !important;
57118
57118
  }
57119
57119
 
57120
57120
  > .rs-picker-toggle {
@@ -57210,7 +57210,7 @@ const Box$5 = styled.div `
57210
57210
  }
57211
57211
  `;
57212
57212
 
57213
- function MultiRadio({ className, disabled = false, error, isErrorMessageHidden = false, isInline = false, isLabelHidden = false, isLight = false, isUndefinedWhenDisabled = false, label, name, onChange, options, style, value }) {
57213
+ function MultiRadio({ className, disabled = false, error, isErrorMessageHidden = false, isInline = false, isLabelHidden = false, isLight = false, isReadOnly = false, isUndefinedWhenDisabled = false, label, name, onChange, options, style, value }) {
57214
57214
  const controlledClassName = useMemo(() => classnames('Field-MultiRadio', className), [className]);
57215
57215
  const controlledError = useMemo(() => normalizeString(error), [error]);
57216
57216
  const hasError = useMemo(() => Boolean(controlledError), [controlledError]);
@@ -57222,8 +57222,8 @@ function MultiRadio({ className, disabled = false, error, isErrorMessageHidden =
57222
57222
  const nextCheckedOptionValue = isChecked ? nextOptionValue : undefined;
57223
57223
  onChange(nextCheckedOptionValue);
57224
57224
  }, [onChange]);
57225
- useFieldUndefineEffect(isUndefinedWhenDisabled && disabled, onChange);
57226
- return (jsxs(Fieldset, { className: controlledClassName, disabled: disabled, hasError: hasError, isLegendHidden: isLabelHidden, isLight: isLight, legend: label, style: style, children: [jsx(Box$4, { "$hasError": hasError, "$isInline": isInline, children: options.map(option => (jsx(Radio, { checked: equals$2(option.value, value), disabled: disabled, name: name, onChange: (_, isChecked) => handleChange(option.value, isChecked), children: option.label }, JSON.stringify(option.value)))) }, key), !isErrorMessageHidden && hasError && jsx(FieldError, { children: controlledError })] }));
57225
+ useFieldUndefineEffect(isUndefinedWhenDisabled && disabled && !isReadOnly, onChange);
57226
+ return (jsxs(Fieldset, { className: controlledClassName, disabled: disabled, hasError: hasError, isLegendHidden: isLabelHidden, isLight: isLight, legend: label, style: style, children: [jsx(Box$4, { "$hasError": hasError, "$isInline": isInline, "$isReadOnly": isReadOnly, children: options.map(option => (jsx(Radio, { checked: equals$2(option.value, value), disabled: disabled, name: name, onChange: (_, isChecked) => handleChange(option.value, isChecked), readOnly: isReadOnly, children: option.label }, JSON.stringify(option.value)))) }, key), !isErrorMessageHidden && hasError && jsx(FieldError, { children: controlledError })] }));
57227
57227
  }
57228
57228
  const Box$4 = styled.div `
57229
57229
  color: ${p => p.theme.color.gunMetal};
@@ -57262,6 +57262,33 @@ const Box$4 = styled.div `
57262
57262
  margin-left: 12px;
57263
57263
  }
57264
57264
  `}
57265
+
57266
+ ${p => p.$isReadOnly &&
57267
+ css `
57268
+ .rs-radio {
57269
+ .rs-radio-checker {
57270
+ label {
57271
+ cursor: not-allowed;
57272
+ .rs-radio-wrapper [type='radio'] {
57273
+ cursor: not-allowed;
57274
+ }
57275
+ }
57276
+ }
57277
+ }
57278
+ .rs-radio:not(.rs-radio-checked):hover .rs-radio-inner:before {
57279
+ border-color: ${p.theme.color.lightGray};
57280
+ }
57281
+ .rs-radio:not(.rs-radio-checked) .rs-radio-inner:before {
57282
+ background-color: ${p.theme.color.white};
57283
+ }
57284
+ .rs-radio:not(.rs-radio-checked) {
57285
+ .rs-radio-checker {
57286
+ label {
57287
+ color: ${p.theme.color.slateGray};
57288
+ }
57289
+ }
57290
+ }
57291
+ `}
57265
57292
  `;
57266
57293
 
57267
57294
  function MultiZoneEditor({ addButtonLabel, className, defaultValue = [], disabled = false, error, initialZone, isAddButtonDisabled = false, isLabelHidden = false, isLight = false, label, labelPropName, onAdd, onCenter, onChange, onDelete, onEdit, style }) {
@@ -57381,12 +57408,12 @@ const StyledInput$2 = styled(Input) `
57381
57408
  width: 100%;
57382
57409
 
57383
57410
  :hover {
57384
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder[100])} !important;
57411
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder)} !important;
57385
57412
  }
57386
57413
 
57387
57414
  :active,
57388
57415
  :focus {
57389
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray[100])} !important;
57416
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray)} !important;
57390
57417
  outline: 0;
57391
57418
  }
57392
57419
  `;
@@ -67144,12 +67171,12 @@ const Box = styled.div `
67144
67171
  padding: 4px 40px 6px 8px;
67145
67172
 
67146
67173
  :hover {
67147
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder[100])} !important;
67174
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder)} !important;
67148
67175
  }
67149
67176
 
67150
67177
  :active,
67151
67178
  :focus {
67152
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray[100])} !important;
67179
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray)} !important;
67153
67180
  }
67154
67181
 
67155
67182
  > .rs-stack {
@@ -67234,12 +67261,12 @@ const StyledInput$1 = styled(Input) `
67234
67261
  }
67235
67262
 
67236
67263
  :hover {
67237
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder[100])} !important;
67264
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder)} !important;
67238
67265
  }
67239
67266
 
67240
67267
  :active,
67241
67268
  :focus {
67242
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray[100])} !important;
67269
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray)} !important;
67243
67270
  outline: 0;
67244
67271
  }
67245
67272
  `;
@@ -67285,12 +67312,12 @@ const StyledInput = styled(Input) `
67285
67312
  }
67286
67313
 
67287
67314
  :hover {
67288
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder[100])} !important;
67315
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueYonder)} !important;
67289
67316
  }
67290
67317
 
67291
67318
  :active,
67292
67319
  :focus {
67293
- border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray[100])} !important;
67320
+ border: solid 1px ${p => (p.$hasError ? p.theme.color.maximumRed : p.theme.color.blueGray)} !important;
67294
67321
  outline: 0;
67295
67322
  }
67296
67323
  `;
@@ -70671,7 +70698,7 @@ const Th$2 = styled.th `
70671
70698
  const BodyTr$1 = styled.tr `
70672
70699
  :hover {
70673
70700
  > td {
70674
- background-color: ${p => p.theme.color.blueYonder[25]};
70701
+ background-color: ${p => p.theme.color.blueYonder25};
70675
70702
  }
70676
70703
  }
70677
70704
  td:first-child {