@mtes-mct/monitor-ui 13.10.0 → 14.1.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 +45 -0
- package/components/Banner/index.d.ts +16 -0
- package/components/Banner/index.d.ts.map +1 -0
- package/components/Banner/utils.d.ts +7 -0
- package/components/Banner/utils.d.ts.map +1 -0
- package/components/Message.d.ts.map +1 -1
- package/elements/Label.d.ts +1 -1
- package/elements/Legend.d.ts +1 -1
- package/elements/LinkButton.d.ts +14 -0
- package/elements/LinkButton.d.ts.map +1 -0
- package/elements/Tag/index.d.ts +7 -8
- package/elements/Tag/index.d.ts.map +1 -1
- package/entities/Mission.d.ts +2 -1
- package/entities/Mission.d.ts.map +1 -1
- package/icons/AttentionFilled.d.ts +3 -0
- package/icons/AttentionFilled.d.ts.map +1 -0
- package/icons/Circle.d.ts +3 -0
- package/icons/Circle.d.ts.map +1 -0
- package/icons/CircleFilled.d.ts +3 -0
- package/icons/CircleFilled.d.ts.map +1 -0
- package/icons/ClockDashed.d.ts +3 -0
- package/icons/ClockDashed.d.ts.map +1 -0
- package/icons/ControlUnit.d.ts.map +1 -1
- package/icons/ControlUnitFilled.d.ts.map +1 -1
- package/icons/index.d.ts +5 -3
- package/icons/index.d.ts.map +1 -1
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +474 -208
- package/package.json +2 -2
- package/symbols/Dot.d.ts +7 -0
- package/symbols/Dot.d.ts.map +1 -0
- package/theme.d.ts +1 -0
- package/theme.d.ts.map +1 -1
- package/icons/Dot.d.ts +0 -3
- package/icons/Dot.d.ts.map +0 -1
- package/icons/DotFilled.d.ts +0 -3
- package/icons/DotFilled.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -249,6 +249,7 @@ const OnlyFontGlobalStyle = createGlobalStyle`
|
|
|
249
249
|
blueYonder25: '#D4DDE7',
|
|
250
250
|
blueGray: '#5697D2',
|
|
251
251
|
blueGray25: '#D4E5F4',
|
|
252
|
+
mayaBlue: '#5FBDFC',
|
|
252
253
|
maximumRed: '#E1000F',
|
|
253
254
|
maximumRed15: '#FBD9DB',
|
|
254
255
|
babyBlueEyes: '#99C9FF',
|
|
@@ -17961,6 +17962,48 @@ function Attention({ color, size, title, ...nativeProps }) {
|
|
|
17961
17962
|
});
|
|
17962
17963
|
}
|
|
17963
17964
|
|
|
17965
|
+
function AttentionFilled({ color, size, title, ...nativeProps }) {
|
|
17966
|
+
return /*#__PURE__*/ jsx(IconBox, {
|
|
17967
|
+
$color: color,
|
|
17968
|
+
$size: size,
|
|
17969
|
+
title: title,
|
|
17970
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
17971
|
+
height: "20",
|
|
17972
|
+
viewBox: "0 0 20 20",
|
|
17973
|
+
width: "20",
|
|
17974
|
+
...nativeProps,
|
|
17975
|
+
children: [
|
|
17976
|
+
/*#__PURE__*/ jsxs("g", {
|
|
17977
|
+
transform: "translate(200 -82)",
|
|
17978
|
+
children: [
|
|
17979
|
+
/*#__PURE__*/ jsx("path", {
|
|
17980
|
+
d: "M-190,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-190,83Z",
|
|
17981
|
+
fill: "currentColor"
|
|
17982
|
+
}),
|
|
17983
|
+
/*#__PURE__*/ jsx("rect", {
|
|
17984
|
+
fill: "#fff",
|
|
17985
|
+
height: "5",
|
|
17986
|
+
transform: "translate(-189 93) rotate(180)",
|
|
17987
|
+
width: "2"
|
|
17988
|
+
}),
|
|
17989
|
+
/*#__PURE__*/ jsx("rect", {
|
|
17990
|
+
fill: "#fff",
|
|
17991
|
+
height: "2",
|
|
17992
|
+
transform: "translate(-189 96) rotate(180)",
|
|
17993
|
+
width: "2"
|
|
17994
|
+
})
|
|
17995
|
+
]
|
|
17996
|
+
}),
|
|
17997
|
+
/*#__PURE__*/ jsx("rect", {
|
|
17998
|
+
fill: "none",
|
|
17999
|
+
height: "20",
|
|
18000
|
+
width: "20"
|
|
18001
|
+
})
|
|
18002
|
+
]
|
|
18003
|
+
})
|
|
18004
|
+
});
|
|
18005
|
+
}
|
|
18006
|
+
|
|
17964
18007
|
function Calendar({ color, size, title, ...nativeProps }) {
|
|
17965
18008
|
return /*#__PURE__*/ jsx(IconBox, {
|
|
17966
18009
|
$color: color,
|
|
@@ -18144,6 +18187,71 @@ function Chevron({ color, size, title, ...nativeProps }) {
|
|
|
18144
18187
|
});
|
|
18145
18188
|
}
|
|
18146
18189
|
|
|
18190
|
+
function Circle({ color, size, title, ...nativeProps }) {
|
|
18191
|
+
return /*#__PURE__*/ jsx(IconBox, {
|
|
18192
|
+
$color: color,
|
|
18193
|
+
$size: size,
|
|
18194
|
+
title: title,
|
|
18195
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
18196
|
+
height: "20",
|
|
18197
|
+
viewBox: "0 0 20 20",
|
|
18198
|
+
width: "20",
|
|
18199
|
+
...nativeProps,
|
|
18200
|
+
children: /*#__PURE__*/ jsxs("g", {
|
|
18201
|
+
transform: "translate(-480 -481)",
|
|
18202
|
+
children: [
|
|
18203
|
+
/*#__PURE__*/ jsx("g", {
|
|
18204
|
+
transform: "translate(720 399)",
|
|
18205
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
18206
|
+
d: "M-230,83a9,9,0,0,0-9,9,9,9,0,0,0,9,9,9,9,0,0,0,9-9A9,9,0,0,0-230,83Zm0,16a7,7,0,0,1-7-7,7,7,0,0,1,7-7,7,7,0,0,1,7,7A7,7,0,0,1-230,99Z",
|
|
18207
|
+
fill: "currentColor"
|
|
18208
|
+
})
|
|
18209
|
+
}),
|
|
18210
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18211
|
+
fill: "none",
|
|
18212
|
+
height: "20",
|
|
18213
|
+
transform: "translate(480 481)",
|
|
18214
|
+
width: "20"
|
|
18215
|
+
})
|
|
18216
|
+
]
|
|
18217
|
+
})
|
|
18218
|
+
})
|
|
18219
|
+
});
|
|
18220
|
+
}
|
|
18221
|
+
|
|
18222
|
+
function CircleFilled({ color, size, title, ...nativeProps }) {
|
|
18223
|
+
return /*#__PURE__*/ jsx(IconBox, {
|
|
18224
|
+
$color: color,
|
|
18225
|
+
$size: size,
|
|
18226
|
+
title: title,
|
|
18227
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
18228
|
+
height: "20",
|
|
18229
|
+
viewBox: "0 0 20 20",
|
|
18230
|
+
width: "20",
|
|
18231
|
+
...nativeProps,
|
|
18232
|
+
children: /*#__PURE__*/ jsxs("g", {
|
|
18233
|
+
transform: "translate(-505 -481)",
|
|
18234
|
+
children: [
|
|
18235
|
+
/*#__PURE__*/ jsx("g", {
|
|
18236
|
+
transform: "translate(506 482)",
|
|
18237
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
18238
|
+
d: "M11,2a9,9,0,1,0,9,9A9,9,0,0,0,11,2Z",
|
|
18239
|
+
fill: "currentColor",
|
|
18240
|
+
transform: "translate(-2 -2)"
|
|
18241
|
+
})
|
|
18242
|
+
}),
|
|
18243
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18244
|
+
fill: "none",
|
|
18245
|
+
height: "20",
|
|
18246
|
+
transform: "translate(505 481)",
|
|
18247
|
+
width: "20"
|
|
18248
|
+
})
|
|
18249
|
+
]
|
|
18250
|
+
})
|
|
18251
|
+
})
|
|
18252
|
+
});
|
|
18253
|
+
}
|
|
18254
|
+
|
|
18147
18255
|
function Clock({ color, size, title, ...nativeProps }) {
|
|
18148
18256
|
return /*#__PURE__*/ jsx(IconBox, {
|
|
18149
18257
|
$color: color,
|
|
@@ -18203,6 +18311,49 @@ function Clock({ color, size, title, ...nativeProps }) {
|
|
|
18203
18311
|
});
|
|
18204
18312
|
}
|
|
18205
18313
|
|
|
18314
|
+
function ClockDashed({ color, size, title, ...nativeProps }) {
|
|
18315
|
+
return /*#__PURE__*/ jsx(IconBox, {
|
|
18316
|
+
$color: color,
|
|
18317
|
+
$size: size,
|
|
18318
|
+
title: title,
|
|
18319
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
18320
|
+
height: "20",
|
|
18321
|
+
viewBox: "0 0 20 20",
|
|
18322
|
+
width: "20",
|
|
18323
|
+
...nativeProps,
|
|
18324
|
+
children: [
|
|
18325
|
+
/*#__PURE__*/ jsx("path", {
|
|
18326
|
+
d: "M0,0H20V20H0Z",
|
|
18327
|
+
fill: "none"
|
|
18328
|
+
}),
|
|
18329
|
+
/*#__PURE__*/ jsx("path", {
|
|
18330
|
+
d: "M0,0H20V20H0Z",
|
|
18331
|
+
fill: "none"
|
|
18332
|
+
}),
|
|
18333
|
+
/*#__PURE__*/ jsx("path", {
|
|
18334
|
+
d: "M10,1H9.307a9.006,9.006,0,0,0-2.1.414L7.87,3.462A6.862,6.862,0,0,1,10,3.126V1ZM4.7,2.726c-.218.159-.427.327-.629.5h0l-.02.018h0l-.02.018h0l0,0h0l-.005,0h0L4,3.288H4l0,0H4l0,0h0l0,.005h0l0,0h0l0,0h0l0,0h0l0,0h0l-.005,0h0l0,0v0l0,0h0l0,0h0l-.009.009h0l0,0,0,0,0,0,0,0,0,0h0l0,0,0,0,0,0v0l0,0,0,0,0,0h0l0,0v0l0,0h0l0,0,0,0,0,0,0,0,0,0h0l0,0v0l0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.01.008v0l0,0,0,0,0,0,0,0,0,0h0l-.005.005v0l0,0v0l0,0,0,0,0,0h0l-.01.009v0l0,0,0,0,0,0v0l0,0h0l-.011.01v0l0,0,0,0,0,0h0l-.01.01h0l0,0h0l0,0h0l0,0h0l-.011.01h0l0,0h0l0,0h0l-.015.014h0l0,0v0l0,0h0L3.671,3.6h0l0,0h0l0,0h0l-.015.015h0l0,0h0l0,0h0l-.015.015h0l0,0h0l-.015.016h0l0,0h0l-.019.019h0l0,0h0l-.015.016h0l-.046.048h0L3.474,3.8h0l-.019.02h0a9.118,9.118,0,0,0-.748.9L4.428,5.973a6.912,6.912,0,0,1,1.524-1.53L4.7,2.726ZM1.43,7.244a8.8,8.8,0,0,0-.318,1.333h0l0,.021h0l0,.022h0l0,.026h0l0,.021h0v0h0l0,.016h0v.005h0l0,.02v.006h0l0,.015h0v.005h0l0,.014v.012h0v.01h0v.012l0,.014V8.83h0v.013l0,.013v.358h0v.112h0v.007h0v.02h0v.028h0v.02h0v.05h0v.049h0v.02h0v.05h0V9.6h0V9.63h0v.021h0v.029h0v.049H1v.021H1v.02H1V9.8H1v.02H1v.05H1V9.9H1v.029H1v.02H1V9.97H1v.007H1V10H3.126a6.856,6.856,0,0,1,.328-2.105L1.43,7.244Zm2.04,4.911-2.019.666c.023.071.048.142.073.212h0l.007.021h0l0,.005h0l0,0h0l.008.02h0l0,0h0l.007.02h0v.01h0l0,.013v0l0,0v0l0,0v.005l0,.005v.015l0,0v.01l0,.005V13.2l0,0v0l0,0v0l0,0v.009l0,0v0l0,.011v.008l0,.005h0l0,.012v0l0,0v0l0,0v0l0,.006h0l0,.006h0l0,.005h0l0,.005h0l.007.019h0l0,.006h0l.01.025h0a8.943,8.943,0,0,0,.6,1.21h0l0,.005h0l0,.005h0l.01.018h0l0,.005h0l.007.011h0l0,.006h0l0,0h0l0,.006h0l.007.011h0l0,0v0l0,0h0l0,.005h0l0,.005v0l0,0h0l0,0v0l0,0h0l0,.005v0l0,0v0l0,0v0l0,0,0,0,0,.005h0l0,0v0l0,0,0,0v0l0,0,0,0,0,0,0,0,0,0v0l0,0,0,0,0,0v0l.008.012h0l0,0h0l0,0h0l.008.013h0l0,0h0l0,0h0q.169.267.357.521l1.712-1.26a6.827,6.827,0,0,1-.989-1.914Zm2.525,3.432L4.754,17.314c.11.079.222.156.335.23h0l.022.014h0l0,0h0l0,0h0l.011.008h0l0,0h0l0,0h0l.006,0,0,0h0l0,0h0l0,0,0,0,0,0h0l.006,0h0l.005,0h0l0,0h0l0,0h0l.011.007h0l.005,0h0l.005,0h0l.017.01h0l0,0h0a8.939,8.939,0,0,0,1.574.78h0l.026.01h0l.025.009h0l.006,0h0l.013.005h0l.006,0h0l0,0h.008l.006,0h0l.006,0h0l0,0h0l0,0h0l.012.005h0l0,0h.008l0,0h0l.006,0h.02l.005,0H7l0,0h0l0,0H7.02l.005,0h.02l.008,0h.018l.013,0H7.1l.02.006h.006l.021.007h0l.005,0h0l.027.009h0l.1.033.643-2.027a6.812,6.812,0,0,1-1.925-.967Zm6.185.935a6.882,6.882,0,0,1-2.127.352L10.069,19a9.24,9.24,0,0,0,1.319-.106h0l.022,0h.006l.022,0h.006l.021,0h0l.022,0H11.5l.015,0h.007l.016,0h.011l.015,0h.012l.01,0H11.6l.015,0h.013l.009,0h.018l.008,0h.014l.013,0H11.7l.008,0h.216l.012,0h.042l.007,0h.007l.006,0h0l.013,0h.007l.007,0h.02l.014,0h.007l.006,0h0l.013,0h0l.005,0h0l.013,0h0l.007,0h.007l.013,0h.007l.02,0h0l.006,0h0l.02,0h0l.026-.007h0l.02-.005h0l.006,0h0l.02-.005h0q.3-.078.591-.175l-.674-2.016ZM15.6,13.984a6.912,6.912,0,0,1-1.513,1.541l1.267,1.708c.067-.05.134-.1.2-.152h0l.005,0h0l.047-.037h0l.021-.016h0l.005,0h0L15.651,17h0l0,0h0l.005,0h0l.016-.012h0l0,0h0l.016-.013h0l.005,0h0l0,0h0l.015-.013h0l0,0h0l.005,0h0l.011-.008h0l.005,0h0l0,0h0l.015-.013h0l0,0h0l.02-.016h0l0,0h0l.015-.013h0l.005,0h0l.005,0h0l.016-.013h0l.005,0h0l.02-.017h0l.02-.017h0l.005,0h0l.02-.018h0l.021-.018h0l.005,0h0l.02-.018h0l0,0h0l.02-.018h0l.025-.023h0l.02-.018h0l.02-.018h0a9.059,9.059,0,0,0,1.192-1.321h0l.016-.021h0l0-.005h0l0-.005h0l.008-.011h0l0-.005h0l0-.005h0l.012-.016h0l0,0v0l0,0h0l0-.005h0l0-.005h0l0,0,0,0,0,0h0l0,0h0l0-.005h0l0,0,0,0v0L15.6,13.984ZM19,9.9l-2.125.024V10a6.871,6.871,0,0,1-.312,2.055l2.029.635a8.91,8.91,0,0,0,.356-1.706h0v-.007h0v-.014h0v-.007h0v-.014h0v-.006h0l0-.014h0v-.006h0l0-.014h0v-.007h0l0-.013h0v-.006h0l0-.014h0V10.85h0l0-.014h0v-.007h0l0-.021h0V10.8h0v-.014h0v-.007h0v-.014h0v-.006h0v-.014h0v-.006h0l0-.014h0v-.006h0V10.7h0v-.006h0v-.013h0v-.006h0v-.014h0V10.65h0v-.02h0v-.014h0v-.006h0v-.013h0v-.013h0v-.007h0v-.006h0v-.006h0v-.02h0v-.007h0v-.006h0v-.006h0v-.02h0v-.007h0v-.006h0v-.006h0v-.028h0v-.013h0V10.42h0V10.4h0v-.013h0v-.007h0V10.37h0v-.006h0v-.057h0V10.3h0v-.006h0v-.007h0v-.014h0v-.021h0V10.24h0v-.013h0v-.007h0V10.2h0v-.013h0v-.028h0v-.013h0v-.007h0v-.021h0v-.021h0v-.02h0v-.021h0v-.035h0V10h0V9.993h0V9.986h0V9.978h0V9.9ZM17.212,4.616l-1.7,1.273a6.836,6.836,0,0,1,1,1.906l2.014-.681a8.934,8.934,0,0,0-1.315-2.5ZM12.657,1.4,12.03,3.43a6.822,6.822,0,0,1,1.932.952L15.19,2.646c-.112-.079-.224-.154-.339-.228h0L14.8,2.385h0l-.005,0h0l-.017-.01h0l-.005,0h0l-.011-.007h0l-.005,0h0l-.005,0h0l-.005,0h0l-.011-.007h0l0,0h0l0,0h0l-.011-.007h0l0,0h0l0,0h0l0,0h0l0,0h0l0,0h0l0,0h0l0,0h0l-.005,0,0,0,0,0h0l0,0h0l0,0,0,0-.005,0h0l0,0h0l0,0h0l0,0,0,0h0l0,0-.005,0h0l0,0h0l0,0,0,0h0l0,0h0l-.006,0,0,0,0,0h0l0,0h0l0,0h0l-.007-.005h0l0,0h0l0,0h0l0,0h0l-.012-.008h0l0,0h0l0,0h0l-.013-.008h0l0,0h0l0,0h0l-.018-.01h0l0,0h0l-.018-.011h0l0,0h0l-.023-.014h0a9.076,9.076,0,0,0-1.384-.634h0l-.025-.009h0l0,0h0l-.021-.007h-.011L12.961,1.5H12.95l-.015-.006h-.012l-.014,0h-.018l-.009,0h-.018l-.009,0h-.021l-.006,0h0l0,0h-.047l-.006,0h-.02l-.007,0h-.014l0,0h0l-.006,0h0l-.005,0h0l0,0h0l-.005,0h0l-.013,0h-.02l-.006,0Z",
|
|
18335
|
+
fill: "currentColor"
|
|
18336
|
+
}),
|
|
18337
|
+
/*#__PURE__*/ jsxs("g", {
|
|
18338
|
+
fill: "none",
|
|
18339
|
+
strokeMiterlimit: "10",
|
|
18340
|
+
children: [
|
|
18341
|
+
/*#__PURE__*/ jsx("path", {
|
|
18342
|
+
d: "M11,9V5H9v6h6V9Z",
|
|
18343
|
+
stroke: "none"
|
|
18344
|
+
}),
|
|
18345
|
+
/*#__PURE__*/ jsx("path", {
|
|
18346
|
+
d: "M 15 11 L 9 11 L 9 5 L 11 5 L 11 9 L 15 9 L 15 11 Z",
|
|
18347
|
+
fill: "currentColor",
|
|
18348
|
+
stroke: "none"
|
|
18349
|
+
})
|
|
18350
|
+
]
|
|
18351
|
+
})
|
|
18352
|
+
]
|
|
18353
|
+
})
|
|
18354
|
+
});
|
|
18355
|
+
}
|
|
18356
|
+
|
|
18206
18357
|
function Close({ color, size, title, ...nativeProps }) {
|
|
18207
18358
|
return /*#__PURE__*/ jsx(IconBox, {
|
|
18208
18359
|
$color: color,
|
|
@@ -18316,58 +18467,51 @@ function ControlUnit$1({ color, size, title, ...nativeProps }) {
|
|
|
18316
18467
|
$color: color,
|
|
18317
18468
|
$size: size,
|
|
18318
18469
|
title: title,
|
|
18319
|
-
children: /*#__PURE__*/
|
|
18470
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
18320
18471
|
height: "20",
|
|
18321
18472
|
viewBox: "0 0 20 20",
|
|
18322
18473
|
width: "20",
|
|
18323
18474
|
...nativeProps,
|
|
18324
|
-
children:
|
|
18325
|
-
|
|
18326
|
-
|
|
18327
|
-
|
|
18328
|
-
|
|
18329
|
-
|
|
18330
|
-
|
|
18331
|
-
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
|
|
18335
|
-
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18363
|
-
|
|
18364
|
-
}),
|
|
18365
|
-
/*#__PURE__*/ jsx("path", {
|
|
18366
|
-
d: "M-80-205h20v20H-80Z",
|
|
18367
|
-
fill: "none"
|
|
18368
|
-
})
|
|
18369
|
-
]
|
|
18370
|
-
})
|
|
18475
|
+
children: [
|
|
18476
|
+
/*#__PURE__*/ jsxs("g", {
|
|
18477
|
+
transform: "translate(80 205)",
|
|
18478
|
+
children: [
|
|
18479
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18480
|
+
fill: "currentColor",
|
|
18481
|
+
height: "12",
|
|
18482
|
+
transform: "translate(-64 -188) rotate(90)",
|
|
18483
|
+
width: "2"
|
|
18484
|
+
}),
|
|
18485
|
+
/*#__PURE__*/ jsx("path", {
|
|
18486
|
+
d: "M-67.694-199l1.333,8h-7.277l1.336-8Zm0-2h-4.6a2,2,0,0,0-1.977,1.675L-76-189h12l-1.721-10.325A2,2,0,0,0-67.7-201Z",
|
|
18487
|
+
fill: "currentColor"
|
|
18488
|
+
}),
|
|
18489
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18490
|
+
fill: "currentColor",
|
|
18491
|
+
height: "2.25",
|
|
18492
|
+
transform: "translate(-70.75 -204.25)",
|
|
18493
|
+
width: "1.5"
|
|
18494
|
+
}),
|
|
18495
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18496
|
+
fill: "currentColor",
|
|
18497
|
+
height: "2.25",
|
|
18498
|
+
transform: "translate(-64.061 -203) rotate(45)",
|
|
18499
|
+
width: "1.5"
|
|
18500
|
+
}),
|
|
18501
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18502
|
+
fill: "currentColor",
|
|
18503
|
+
height: "2.25",
|
|
18504
|
+
transform: "translate(-77 -201.939) rotate(-45)",
|
|
18505
|
+
width: "1.5"
|
|
18506
|
+
})
|
|
18507
|
+
]
|
|
18508
|
+
}),
|
|
18509
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18510
|
+
fill: "none",
|
|
18511
|
+
height: "20",
|
|
18512
|
+
width: "20"
|
|
18513
|
+
})
|
|
18514
|
+
]
|
|
18371
18515
|
})
|
|
18372
18516
|
});
|
|
18373
18517
|
}
|
|
@@ -18377,44 +18521,51 @@ function ControlUnitFilled({ color, size, title, ...nativeProps }) {
|
|
|
18377
18521
|
$color: color,
|
|
18378
18522
|
$size: size,
|
|
18379
18523
|
title: title,
|
|
18380
|
-
children: /*#__PURE__*/
|
|
18381
|
-
height: "
|
|
18382
|
-
viewBox: "0 0
|
|
18383
|
-
width: "
|
|
18524
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
18525
|
+
height: "20",
|
|
18526
|
+
viewBox: "0 0 20 20",
|
|
18527
|
+
width: "20",
|
|
18384
18528
|
...nativeProps,
|
|
18385
|
-
children:
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18529
|
+
children: [
|
|
18530
|
+
/*#__PURE__*/ jsxs("g", {
|
|
18531
|
+
transform: "translate(80 205)",
|
|
18532
|
+
children: [
|
|
18533
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18534
|
+
fill: "currentColor",
|
|
18535
|
+
height: "12",
|
|
18536
|
+
transform: "translate(-64 -188) rotate(90)",
|
|
18537
|
+
width: "2"
|
|
18538
|
+
}),
|
|
18539
|
+
/*#__PURE__*/ jsx("path", {
|
|
18540
|
+
d: "M-67.7-201h-4.6a2,2,0,0,0-1.977,1.675L-76-189h12l-1.721-10.325A2,2,0,0,0-67.7-201Z",
|
|
18541
|
+
fill: "currentColor"
|
|
18542
|
+
}),
|
|
18543
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18544
|
+
fill: "currentColor",
|
|
18545
|
+
height: "2.25",
|
|
18546
|
+
transform: "translate(-70.75 -204.25)",
|
|
18547
|
+
width: "1.5"
|
|
18548
|
+
}),
|
|
18549
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18550
|
+
fill: "currentColor",
|
|
18551
|
+
height: "2.25",
|
|
18552
|
+
transform: "translate(-64.061 -203) rotate(45)",
|
|
18553
|
+
width: "1.5"
|
|
18554
|
+
}),
|
|
18555
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18556
|
+
fill: "currentColor",
|
|
18557
|
+
height: "2.25",
|
|
18558
|
+
transform: "translate(-77 -201.939) rotate(-45)",
|
|
18559
|
+
width: "1.5"
|
|
18560
|
+
})
|
|
18561
|
+
]
|
|
18562
|
+
}),
|
|
18563
|
+
/*#__PURE__*/ jsx("rect", {
|
|
18564
|
+
fill: "none",
|
|
18565
|
+
height: "20",
|
|
18566
|
+
width: "20"
|
|
18567
|
+
})
|
|
18568
|
+
]
|
|
18418
18569
|
})
|
|
18419
18570
|
});
|
|
18420
18571
|
}
|
|
@@ -18504,64 +18655,6 @@ function Display({ color, size, title, ...nativeProps }) {
|
|
|
18504
18655
|
});
|
|
18505
18656
|
}
|
|
18506
18657
|
|
|
18507
|
-
function Dot({ color, size, title, ...nativeProps }) {
|
|
18508
|
-
return /*#__PURE__*/ jsx(IconBox, {
|
|
18509
|
-
$color: color,
|
|
18510
|
-
$size: size,
|
|
18511
|
-
title: title,
|
|
18512
|
-
children: /*#__PURE__*/ jsx("svg", {
|
|
18513
|
-
height: "20",
|
|
18514
|
-
viewBox: "0 0 20 20",
|
|
18515
|
-
width: "20",
|
|
18516
|
-
...nativeProps,
|
|
18517
|
-
children: /*#__PURE__*/ jsxs("g", {
|
|
18518
|
-
fill: "none",
|
|
18519
|
-
transform: "translate(1 1)",
|
|
18520
|
-
children: [
|
|
18521
|
-
/*#__PURE__*/ jsx("path", {
|
|
18522
|
-
d: "M9,2a7,7,0,1,0,7,7A7,7,0,0,0,9,2Z",
|
|
18523
|
-
stroke: "none"
|
|
18524
|
-
}),
|
|
18525
|
-
/*#__PURE__*/ jsx("path", {
|
|
18526
|
-
d: "M 9 4 C 6.242989540100098 4 4 6.242989540100098 4 9 C 4 11.75700950622559 6.242989540100098 14 9 14 C 11.75700950622559 14 14 11.75700950622559 14 9 C 14 6.242989540100098 11.75700950622559 4 9 4 M 9 2 C 12.86574935913086 2 16 5.134249687194824 16 9 C 16 12.86574935913086 12.86574935913086 16 9 16 C 5.134249687194824 16 2 12.86574935913086 2 9 C 2 5.134249687194824 5.134249687194824 2 9 2 Z",
|
|
18527
|
-
fill: "currentColor",
|
|
18528
|
-
stroke: "none"
|
|
18529
|
-
})
|
|
18530
|
-
]
|
|
18531
|
-
})
|
|
18532
|
-
})
|
|
18533
|
-
});
|
|
18534
|
-
}
|
|
18535
|
-
|
|
18536
|
-
function DotFilled({ color, size, title, ...nativeProps }) {
|
|
18537
|
-
return /*#__PURE__*/ jsx(IconBox, {
|
|
18538
|
-
$color: color,
|
|
18539
|
-
$size: size,
|
|
18540
|
-
title: title,
|
|
18541
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
18542
|
-
height: "20",
|
|
18543
|
-
viewBox: "0 0 20 20",
|
|
18544
|
-
width: "20",
|
|
18545
|
-
...nativeProps,
|
|
18546
|
-
children: [
|
|
18547
|
-
/*#__PURE__*/ jsx("g", {
|
|
18548
|
-
transform: "translate(1 1)",
|
|
18549
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
18550
|
-
d: "M9,2a7,7,0,1,0,7,7A7,7,0,0,0,9,2Z",
|
|
18551
|
-
fill: "currentColor",
|
|
18552
|
-
transform: "translate(0 0)"
|
|
18553
|
-
})
|
|
18554
|
-
}),
|
|
18555
|
-
/*#__PURE__*/ jsx("rect", {
|
|
18556
|
-
fill: "none",
|
|
18557
|
-
height: "20",
|
|
18558
|
-
width: "20"
|
|
18559
|
-
})
|
|
18560
|
-
]
|
|
18561
|
-
})
|
|
18562
|
-
});
|
|
18563
|
-
}
|
|
18564
|
-
|
|
18565
18658
|
function DoubleChevron({ color, size, title, ...nativeProps }) {
|
|
18566
18659
|
return /*#__PURE__*/ jsx(IconBox, {
|
|
18567
18660
|
$color: color,
|
|
@@ -21355,11 +21448,15 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
21355
21448
|
Anchor: Anchor,
|
|
21356
21449
|
Archive: Archive,
|
|
21357
21450
|
Attention: Attention,
|
|
21451
|
+
AttentionFilled: AttentionFilled,
|
|
21358
21452
|
Calendar: Calendar,
|
|
21359
21453
|
Car: Car,
|
|
21360
21454
|
Check: Check,
|
|
21361
21455
|
Chevron: Chevron,
|
|
21456
|
+
Circle: Circle,
|
|
21457
|
+
CircleFilled: CircleFilled,
|
|
21362
21458
|
Clock: Clock,
|
|
21459
|
+
ClockDashed: ClockDashed,
|
|
21363
21460
|
Close: Close,
|
|
21364
21461
|
Comment: Comment,
|
|
21365
21462
|
Confirm: Confirm,
|
|
@@ -21367,8 +21464,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
21367
21464
|
ControlUnitFilled: ControlUnitFilled,
|
|
21368
21465
|
Delete: Delete,
|
|
21369
21466
|
Display: Display,
|
|
21370
|
-
Dot: Dot,
|
|
21371
|
-
DotFilled: DotFilled,
|
|
21372
21467
|
DoubleChevron: DoubleChevron,
|
|
21373
21468
|
Download: Download,
|
|
21374
21469
|
Drapeau: Drapeau,
|
|
@@ -52863,7 +52958,7 @@ function Notifier({ isSideWindow = false }) {
|
|
|
52863
52958
|
// We need to retype `ToastContainer` manually because `styled-components` mess up with the `children` prop
|
|
52864
52959
|
const StyledToastContainer = styled(k)``;
|
|
52865
52960
|
|
|
52866
|
-
const ICON_SIZE = {
|
|
52961
|
+
const ICON_SIZE$1 = {
|
|
52867
52962
|
[Size.LARGE]: 20,
|
|
52868
52963
|
[Size.NORMAL]: 20,
|
|
52869
52964
|
[Size.SMALL]: 12
|
|
@@ -52883,7 +52978,7 @@ function Button$1({ accent = Accent.PRIMARY, children, className, Icon, isFullWi
|
|
|
52883
52978
|
const commonChildren = useMemo(()=>/*#__PURE__*/ jsxs(Fragment, {
|
|
52884
52979
|
children: [
|
|
52885
52980
|
Icon && /*#__PURE__*/ jsx(Icon, {
|
|
52886
|
-
size: ICON_SIZE[size]
|
|
52981
|
+
size: ICON_SIZE$1[size]
|
|
52887
52982
|
}),
|
|
52888
52983
|
children && /*#__PURE__*/ jsx(ButtonLabel, {
|
|
52889
52984
|
children: children
|
|
@@ -52935,7 +53030,7 @@ function Button$1({ accent = Accent.PRIMARY, children, className, Icon, isFullWi
|
|
|
52935
53030
|
});
|
|
52936
53031
|
}
|
|
52937
53032
|
}
|
|
52938
|
-
const FONT_SIZE = {
|
|
53033
|
+
const FONT_SIZE$1 = {
|
|
52939
53034
|
[Size.LARGE]: '13px',
|
|
52940
53035
|
[Size.NORMAL]: '13px',
|
|
52941
53036
|
[Size.SMALL]: '11px'
|
|
@@ -52948,7 +53043,7 @@ const PADDING$2 = {
|
|
|
52948
53043
|
const StyledButton$1 = styled.button`
|
|
52949
53044
|
align-items: center;
|
|
52950
53045
|
display: inline-flex;
|
|
52951
|
-
font-size: ${(p)=>FONT_SIZE[p.size]};
|
|
53046
|
+
font-size: ${(p)=>FONT_SIZE$1[p.size]};
|
|
52952
53047
|
justify-content: center;
|
|
52953
53048
|
max-width: 100%;
|
|
52954
53049
|
padding: ${(p)=>PADDING$2[p.size]};
|
|
@@ -53269,12 +53364,12 @@ const MenuButton = styled(IconButton)`
|
|
|
53269
53364
|
`;
|
|
53270
53365
|
|
|
53271
53366
|
function Menu({ children }) {
|
|
53272
|
-
return /*#__PURE__*/ jsx(Wrapper, {
|
|
53367
|
+
return /*#__PURE__*/ jsx(Wrapper$1, {
|
|
53273
53368
|
role: "menu",
|
|
53274
53369
|
children: children
|
|
53275
53370
|
});
|
|
53276
53371
|
}
|
|
53277
|
-
const Wrapper = styled.div`
|
|
53372
|
+
const Wrapper$1 = styled.div`
|
|
53278
53373
|
background-color: ${(p)=>p.theme.color.charcoal};
|
|
53279
53374
|
box-sizing: border-box;
|
|
53280
53375
|
display: flex;
|
|
@@ -53456,25 +53551,6 @@ const MapMenuDialog = {
|
|
|
53456
53551
|
VisibilityButton
|
|
53457
53552
|
};
|
|
53458
53553
|
|
|
53459
|
-
const DEFAULT_SIZE = 20;
|
|
53460
|
-
const ExclamationPoint = styled.span`
|
|
53461
|
-
background: ${(p)=>p.backgroundColor ?? p.theme.color.goldenPoppy};
|
|
53462
|
-
border-radius: ${(p)=>`${p.size ?? DEFAULT_SIZE}px`};
|
|
53463
|
-
color: ${(p)=>p.color ?? p.theme.color.white};
|
|
53464
|
-
display: inline-flex; /* use flexbox for easier centering */
|
|
53465
|
-
justify-content: center; /* center content horizontally */
|
|
53466
|
-
align-items: center; /* center content vertically */
|
|
53467
|
-
font-size: ${(p)=>`${p.size && p.size <= 13 ? p.size : 13}px`};
|
|
53468
|
-
font-weight: 700;
|
|
53469
|
-
height: ${(p)=>`${p.size ?? DEFAULT_SIZE}px`};
|
|
53470
|
-
width: ${(p)=>`${p.size ?? DEFAULT_SIZE}px`};
|
|
53471
|
-
box-sizing: border-box;
|
|
53472
|
-
|
|
53473
|
-
::after {
|
|
53474
|
-
content: '! ';
|
|
53475
|
-
}
|
|
53476
|
-
`;
|
|
53477
|
-
|
|
53478
53554
|
function Message({ children, level = Level.WARNING, ...nativeProps }) {
|
|
53479
53555
|
switch(level){
|
|
53480
53556
|
case Level.WARNING:
|
|
@@ -53483,9 +53559,8 @@ function Message({ children, level = Level.WARNING, ...nativeProps }) {
|
|
|
53483
53559
|
color: THEME.color.slateGray,
|
|
53484
53560
|
...nativeProps,
|
|
53485
53561
|
children: [
|
|
53486
|
-
/*#__PURE__*/ jsx(
|
|
53487
|
-
|
|
53488
|
-
color: THEME.color.white
|
|
53562
|
+
/*#__PURE__*/ jsx(AttentionFilled, {
|
|
53563
|
+
color: THEME.color.goldenPoppy
|
|
53489
53564
|
}),
|
|
53490
53565
|
/*#__PURE__*/ jsx(ChildrenContainer, {
|
|
53491
53566
|
children: children
|
|
@@ -53498,9 +53573,8 @@ function Message({ children, level = Level.WARNING, ...nativeProps }) {
|
|
|
53498
53573
|
color: THEME.color.slateGray,
|
|
53499
53574
|
...nativeProps,
|
|
53500
53575
|
children: [
|
|
53501
|
-
/*#__PURE__*/ jsx(
|
|
53502
|
-
|
|
53503
|
-
color: THEME.color.white
|
|
53576
|
+
/*#__PURE__*/ jsx(AttentionFilled, {
|
|
53577
|
+
color: THEME.color.goldenPoppy
|
|
53504
53578
|
}),
|
|
53505
53579
|
/*#__PURE__*/ jsx(ChildrenContainer, {
|
|
53506
53580
|
children: children
|
|
@@ -53523,9 +53597,188 @@ const Box$c = styled.span`
|
|
|
53523
53597
|
border-radius: 2px;
|
|
53524
53598
|
font-size: 13px;
|
|
53525
53599
|
`;
|
|
53526
|
-
|
|
53527
|
-
|
|
53600
|
+
|
|
53601
|
+
const FONT_SIZE = {
|
|
53602
|
+
[Size.LARGE]: '16px',
|
|
53603
|
+
[Size.NORMAL]: '13px',
|
|
53604
|
+
[Size.SMALL]: '11px'
|
|
53605
|
+
};
|
|
53606
|
+
const ICON_SIZE = {
|
|
53607
|
+
[Size.LARGE]: 16,
|
|
53608
|
+
[Size.NORMAL]: 13,
|
|
53609
|
+
[Size.SMALL]: 11
|
|
53610
|
+
};
|
|
53611
|
+
const StyledLinkButton = styled.button`
|
|
53612
|
+
display: flex;
|
|
53613
|
+
flex-direction: row;
|
|
53614
|
+
gap: 0.4rem;
|
|
53615
|
+
align-items: flex-end;
|
|
53616
|
+
background: transparent;
|
|
53617
|
+
text-decoration: underline;
|
|
53618
|
+
cursor: ${({ disabled })=>disabled ? 'none' : 'pointer'}};
|
|
53619
|
+
font-size: ${({ size })=>FONT_SIZE[size]}};
|
|
53620
|
+
color: ${(p)=>p.theme.color.slateGray};
|
|
53621
|
+
|
|
53622
|
+
&:hover,
|
|
53623
|
+
&._hover {
|
|
53624
|
+
color: ${(p)=>p.theme.color.blueYonder};
|
|
53625
|
+
svg {
|
|
53626
|
+
color: ${(p)=>p.theme.color.blueYonder};
|
|
53627
|
+
}
|
|
53628
|
+
}
|
|
53629
|
+
|
|
53630
|
+
&:active,
|
|
53631
|
+
&._active {
|
|
53632
|
+
color: ${(p)=>p.theme.color.blueGray};
|
|
53633
|
+
svg {
|
|
53634
|
+
color: ${(p)=>p.theme.color.blueGray};
|
|
53635
|
+
}
|
|
53636
|
+
}
|
|
53637
|
+
|
|
53638
|
+
&:disabled,
|
|
53639
|
+
&._disabled {
|
|
53640
|
+
color: ${(p)=>p.theme.color.lightGray};
|
|
53641
|
+
svg {
|
|
53642
|
+
color: ${(p)=>p.theme.color.lightGray};
|
|
53643
|
+
}
|
|
53644
|
+
}
|
|
53528
53645
|
`;
|
|
53646
|
+
function LinkButton({ children, Icon, ...props }) {
|
|
53647
|
+
return /*#__PURE__*/ jsx(StyledLinkButton, {
|
|
53648
|
+
...props,
|
|
53649
|
+
children: /*#__PURE__*/ jsxs(Fragment, {
|
|
53650
|
+
children: [
|
|
53651
|
+
Icon && /*#__PURE__*/ jsx(Icon, {
|
|
53652
|
+
color: THEME.color.slateGray,
|
|
53653
|
+
size: ICON_SIZE[props.size]
|
|
53654
|
+
}),
|
|
53655
|
+
lodashExports.isString(children) ? /*#__PURE__*/ jsx("p", {
|
|
53656
|
+
children: children
|
|
53657
|
+
}) : /*#__PURE__*/ jsx(Fragment, {
|
|
53658
|
+
children: children
|
|
53659
|
+
})
|
|
53660
|
+
]
|
|
53661
|
+
})
|
|
53662
|
+
});
|
|
53663
|
+
}
|
|
53664
|
+
LinkButton.displayName = 'LinkButton';
|
|
53665
|
+
|
|
53666
|
+
const getBannerPalette = (level)=>{
|
|
53667
|
+
if (level === Level.ERROR) {
|
|
53668
|
+
return {
|
|
53669
|
+
backgroundColor: THEME.color.maximumRed15,
|
|
53670
|
+
borderColor: THEME.color.maximumRed,
|
|
53671
|
+
color: THEME.color.maximumRed
|
|
53672
|
+
};
|
|
53673
|
+
}
|
|
53674
|
+
if (level === Level.WARNING) {
|
|
53675
|
+
return {
|
|
53676
|
+
backgroundColor: THEME.color.goldenPoppy25,
|
|
53677
|
+
borderColor: THEME.color.goldenPoppy,
|
|
53678
|
+
color: THEME.color.charcoal
|
|
53679
|
+
};
|
|
53680
|
+
}
|
|
53681
|
+
return {
|
|
53682
|
+
backgroundColor: THEME.color.mediumSeaGreen25,
|
|
53683
|
+
borderColor: THEME.color.mediumSeaGreen,
|
|
53684
|
+
color: THEME.color.mediumSeaGreen
|
|
53685
|
+
};
|
|
53686
|
+
};
|
|
53687
|
+
|
|
53688
|
+
const Wrapper = styled.div`
|
|
53689
|
+
display: ${(p)=>p.$isHidden ? 'none' : 'flex'};
|
|
53690
|
+
flex-direction: row;
|
|
53691
|
+
justify-content: space-between;
|
|
53692
|
+
align-items: center;
|
|
53693
|
+
position: absolute;
|
|
53694
|
+
background-color: ${(p)=>getBannerPalette(p.$level).backgroundColor};
|
|
53695
|
+
width: 100%;
|
|
53696
|
+
min-width: 100%;
|
|
53697
|
+
max-width: 100%;
|
|
53698
|
+
padding: 0 2rem;
|
|
53699
|
+
top: ${(p)=>`${p.$top}`};
|
|
53700
|
+
z-index: 1000;
|
|
53701
|
+
height: ${(p)=>!p.$isHidden && p.$isCollapsed ? '10px' : '50px'};
|
|
53702
|
+
border-bottom: ${({ $isCollapsible, $level })=>$isCollapsible ? `4px solid ${getBannerPalette($level).borderColor}` : 'none'};
|
|
53703
|
+
box-shadow: ${({ $isCollapsible })=>$isCollapsible ? 'none' : '0px 3px 4px #7077854D'};
|
|
53704
|
+
transition: height 0.3s ease;
|
|
53705
|
+
`;
|
|
53706
|
+
const ContentWrapper = styled.div`
|
|
53707
|
+
color: ${(p)=>getBannerPalette(p.$level).color};
|
|
53708
|
+
align-self: center;
|
|
53709
|
+
flex-grow: 2;
|
|
53710
|
+
text-align: center;
|
|
53711
|
+
font-size: 16px;
|
|
53712
|
+
font-weight: 500;
|
|
53713
|
+
`;
|
|
53714
|
+
const ButtonWrapper = styled.div`
|
|
53715
|
+
align-self: center;
|
|
53716
|
+
`;
|
|
53717
|
+
function Banner({ children, isClosable, isCollapsible, isHiddenByDefault, level, top }) {
|
|
53718
|
+
const [isHidden, setIsHidden] = useState(!!isHiddenByDefault);
|
|
53719
|
+
const [isCollapsed, setIsCollapsed] = useState(false);
|
|
53720
|
+
const [isCollapsing, setIsCollapsing] = useState(false);
|
|
53721
|
+
const [hasCollapsed, setHasCollapsed] = useState(false);
|
|
53722
|
+
const enterHover = ()=>{
|
|
53723
|
+
if (!isHidden && isCollapsed && !isCollapsing) {
|
|
53724
|
+
setIsCollapsed(false);
|
|
53725
|
+
}
|
|
53726
|
+
setIsCollapsing(false);
|
|
53727
|
+
};
|
|
53728
|
+
const leaveHover = ()=>{
|
|
53729
|
+
if (!isHidden && hasCollapsed) {
|
|
53730
|
+
setIsCollapsed(true);
|
|
53731
|
+
}
|
|
53732
|
+
};
|
|
53733
|
+
const onClickAction = ()=>{
|
|
53734
|
+
if (isClosable) {
|
|
53735
|
+
setIsHidden(true);
|
|
53736
|
+
} else if (isCollapsible) {
|
|
53737
|
+
setIsCollapsing(true);
|
|
53738
|
+
setIsCollapsed(true);
|
|
53739
|
+
setHasCollapsed(true);
|
|
53740
|
+
}
|
|
53741
|
+
};
|
|
53742
|
+
return /*#__PURE__*/ jsx(Wrapper, {
|
|
53743
|
+
$isCollapsed: isCollapsed,
|
|
53744
|
+
$isCollapsible: isCollapsible,
|
|
53745
|
+
$isHidden: isHidden,
|
|
53746
|
+
$level: level,
|
|
53747
|
+
$top: top,
|
|
53748
|
+
className: "banner",
|
|
53749
|
+
onMouseEnter: enterHover,
|
|
53750
|
+
onMouseLeave: leaveHover,
|
|
53751
|
+
children: !isHidden && !isCollapsed && /*#__PURE__*/ jsxs(Fragment, {
|
|
53752
|
+
children: [
|
|
53753
|
+
/*#__PURE__*/ jsx(ContentWrapper, {
|
|
53754
|
+
$level: level,
|
|
53755
|
+
children: lodashExports.isString(children) ? /*#__PURE__*/ jsx("p", {
|
|
53756
|
+
children: children
|
|
53757
|
+
}) : /*#__PURE__*/ jsx(Fragment, {
|
|
53758
|
+
children: children
|
|
53759
|
+
})
|
|
53760
|
+
}),
|
|
53761
|
+
/*#__PURE__*/ jsxs(ButtonWrapper, {
|
|
53762
|
+
className: "banner-button",
|
|
53763
|
+
onClick: ()=>onClickAction(),
|
|
53764
|
+
title: isClosable ? 'fermer' : 'masquer',
|
|
53765
|
+
children: [
|
|
53766
|
+
isClosable && /*#__PURE__*/ jsx(IconButton, {
|
|
53767
|
+
accent: Accent.TERTIARY,
|
|
53768
|
+
color: getBannerPalette(level).color,
|
|
53769
|
+
Icon: Close
|
|
53770
|
+
}),
|
|
53771
|
+
!isClosable && isCollapsible && /*#__PURE__*/ jsx(LinkButton, {
|
|
53772
|
+
size: Size.LARGE,
|
|
53773
|
+
children: "Masquer"
|
|
53774
|
+
})
|
|
53775
|
+
]
|
|
53776
|
+
})
|
|
53777
|
+
]
|
|
53778
|
+
})
|
|
53779
|
+
});
|
|
53780
|
+
}
|
|
53781
|
+
Banner.displayName = 'Banner';
|
|
53529
53782
|
|
|
53530
53783
|
const Field$2 = styled.div.attrs((props)=>({
|
|
53531
53784
|
className: classnames('Element-Field', props.className)
|
|
@@ -53628,16 +53881,10 @@ const Label = styled.label.attrs((props)=>({
|
|
|
53628
53881
|
}`}
|
|
53629
53882
|
`;
|
|
53630
53883
|
|
|
53631
|
-
function Tag({ accent, backgroundColor, borderColor,
|
|
53632
|
-
// TODO remove all bullet and bulletColor related code
|
|
53633
|
-
const withDot = useMemo(()=>(bullet === TagBullet.DISK || withBullet) && !Icon, [
|
|
53634
|
-
bullet,
|
|
53635
|
-
Icon,
|
|
53636
|
-
withBullet
|
|
53637
|
-
]);
|
|
53884
|
+
function Tag({ accent, backgroundColor, borderColor, children, className, color, Icon, iconColor, isLight = false, withCircleIcon = false, ...nativeProps }) {
|
|
53638
53885
|
const commonChildren = useMemo(()=>{
|
|
53639
53886
|
const defaultColor = color ?? THEME.color.gunMetal;
|
|
53640
|
-
const cutomIconColor =
|
|
53887
|
+
const cutomIconColor = iconColor ?? (accent ? ({
|
|
53641
53888
|
[Accent.PRIMARY]: THEME.color.gunMetal,
|
|
53642
53889
|
[Accent.SECONDARY]: THEME.color.gunMetal,
|
|
53643
53890
|
[Accent.TERTIARY]: THEME.color.white
|
|
@@ -53645,28 +53892,21 @@ function Tag({ accent, backgroundColor, borderColor, bullet, bulletColor, childr
|
|
|
53645
53892
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
53646
53893
|
children: [
|
|
53647
53894
|
Icon && /*#__PURE__*/ jsx(Icon, {
|
|
53648
|
-
color: cutomIconColor
|
|
53649
|
-
size: 16
|
|
53650
|
-
}),
|
|
53651
|
-
withDot && /*#__PURE__*/ jsx(DotFilled, {
|
|
53652
|
-
color: cutomIconColor,
|
|
53653
|
-
size: 20
|
|
53895
|
+
color: cutomIconColor
|
|
53654
53896
|
}),
|
|
53655
53897
|
children
|
|
53656
53898
|
]
|
|
53657
53899
|
});
|
|
53658
53900
|
}, [
|
|
53659
53901
|
accent,
|
|
53660
|
-
bulletColor,
|
|
53661
53902
|
color,
|
|
53662
53903
|
children,
|
|
53663
53904
|
Icon,
|
|
53664
|
-
withDot,
|
|
53665
53905
|
iconColor
|
|
53666
53906
|
]);
|
|
53667
53907
|
const commonProps = useMemo(()=>({
|
|
53668
53908
|
$isLight: isLight,
|
|
53669
|
-
$
|
|
53909
|
+
$withCircleIcon: withCircleIcon,
|
|
53670
53910
|
children: commonChildren,
|
|
53671
53911
|
className: classnames('Element-Tag', className),
|
|
53672
53912
|
...nativeProps
|
|
@@ -53675,7 +53915,7 @@ function Tag({ accent, backgroundColor, borderColor, bullet, bulletColor, childr
|
|
|
53675
53915
|
commonChildren,
|
|
53676
53916
|
isLight,
|
|
53677
53917
|
nativeProps,
|
|
53678
|
-
|
|
53918
|
+
withCircleIcon
|
|
53679
53919
|
]);
|
|
53680
53920
|
switch(accent){
|
|
53681
53921
|
case Accent.PRIMARY:
|
|
@@ -53700,7 +53940,6 @@ function Tag({ accent, backgroundColor, borderColor, bullet, bulletColor, childr
|
|
|
53700
53940
|
}
|
|
53701
53941
|
}
|
|
53702
53942
|
const Box$a = styled.span`
|
|
53703
|
-
align-items: ${(p)=>p.$withBullet ? 'flex-start' : 'end'};
|
|
53704
53943
|
align-self: flex-start;
|
|
53705
53944
|
background-color: ${(p)=>{
|
|
53706
53945
|
if (p.$backgroundColor) {
|
|
@@ -53713,18 +53952,12 @@ const Box$a = styled.span`
|
|
|
53713
53952
|
color: ${(p)=>p.$color ? p.$color : p.theme.color.gunMetal};
|
|
53714
53953
|
display: inline-flex;
|
|
53715
53954
|
font-size: 13px;
|
|
53716
|
-
|
|
53717
|
-
|
|
53718
|
-
|
|
53719
|
-
> span {
|
|
53720
|
-
height: 16px;
|
|
53721
|
-
margin-right: 4px;
|
|
53722
|
-
width: 16px;
|
|
53723
|
-
}
|
|
53724
|
-
|
|
53955
|
+
height: 22px;
|
|
53956
|
+
line-height: normal;
|
|
53957
|
+
padding: ${(p)=>p.$withCircleIcon ? '1px 8px 0px 1px' : '0px 8px'};
|
|
53725
53958
|
/* SVG Icon components are wrapped within a <div /> */
|
|
53726
53959
|
> div {
|
|
53727
|
-
margin-right:
|
|
53960
|
+
margin-right: 4px;
|
|
53728
53961
|
}
|
|
53729
53962
|
`;
|
|
53730
53963
|
const PrimaryTag = styled(Box$a)`
|
|
@@ -68893,6 +69126,38 @@ function FormikToggle({ name, ...originalProps }) {
|
|
|
68893
69126
|
});
|
|
68894
69127
|
}
|
|
68895
69128
|
|
|
69129
|
+
const DEFAULT_SIZE = 20;
|
|
69130
|
+
const ExclamationPoint = styled.span`
|
|
69131
|
+
background: ${(p)=>p.backgroundColor ?? p.theme.color.goldenPoppy};
|
|
69132
|
+
border-radius: ${(p)=>`${p.size ?? DEFAULT_SIZE}px`};
|
|
69133
|
+
color: ${(p)=>p.color ?? p.theme.color.white};
|
|
69134
|
+
display: inline-flex; /* use flexbox for easier centering */
|
|
69135
|
+
justify-content: center; /* center content horizontally */
|
|
69136
|
+
align-items: center; /* center content vertically */
|
|
69137
|
+
font-size: ${(p)=>`${p.size && p.size <= 13 ? p.size : 13}px`};
|
|
69138
|
+
font-weight: 700;
|
|
69139
|
+
height: ${(p)=>`${p.size ?? DEFAULT_SIZE}px`};
|
|
69140
|
+
width: ${(p)=>`${p.size ?? DEFAULT_SIZE}px`};
|
|
69141
|
+
box-sizing: border-box;
|
|
69142
|
+
|
|
69143
|
+
::after {
|
|
69144
|
+
content: '! ';
|
|
69145
|
+
}
|
|
69146
|
+
`;
|
|
69147
|
+
|
|
69148
|
+
const Dot = styled.span`
|
|
69149
|
+
display: flex;
|
|
69150
|
+
align-self: baseline;
|
|
69151
|
+
border-style: solid;
|
|
69152
|
+
border-width: 3px;
|
|
69153
|
+
padding: 2px;
|
|
69154
|
+
border-radius: 50%;
|
|
69155
|
+
height: ${(p)=>p.$size ?? 20}px;
|
|
69156
|
+
width: ${(p)=>p.$size ?? 20}px;
|
|
69157
|
+
color: ${(p)=>p.$borderColor ?? p.theme.color.charcoal};
|
|
69158
|
+
background-color: ${(p)=>p.$backgroundColor ?? 'transparent'};
|
|
69159
|
+
`;
|
|
69160
|
+
|
|
68896
69161
|
var ControlUnit;
|
|
68897
69162
|
(function(ControlUnit) {
|
|
68898
69163
|
(function(ControlUnitContactPredefinedName) {
|
|
@@ -69042,6 +69307,7 @@ var Mission;
|
|
|
69042
69307
|
MissionSourceEnum["MONITORFISH"] = "MONITORFISH";
|
|
69043
69308
|
MissionSourceEnum["POSEIDON_CACEM"] = "POSEIDON_CACEM";
|
|
69044
69309
|
MissionSourceEnum["POSEIDON_CNSP"] = "POSEIDON_CNSP";
|
|
69310
|
+
MissionSourceEnum["RAPPORTNAV"] = "RAPPORTNAV";
|
|
69045
69311
|
})(Mission.MissionSourceEnum || (Mission.MissionSourceEnum = {}));
|
|
69046
69312
|
})(Mission || (Mission = {}));
|
|
69047
69313
|
|
|
@@ -76230,4 +76496,4 @@ const undefineObjectProps = (record)=>Object.fromEntries(Object.entries(record).
|
|
|
76230
76496
|
return value;
|
|
76231
76497
|
}
|
|
76232
76498
|
|
|
76233
|
-
export { Accent, Button$1 as Button, CheckPicker, Checkbox, ControlUnit, CoordinatesFormat, CoordinatesInput, CustomSearch, DataTable, DatePicker, DateRangePicker, Dialog, Dropdown, ExclamationPoint, Field$2 as Field, FieldError, Fieldset, Figure, FormikCheckPicker, FormikCheckbox, FormikCoordinatesInput, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCascader, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikRichBooleanCheckbox, FormikSearch, FormikSelect, FormikTextInput, FormikTextarea, FormikToggle, GlobalStyle, index as Icon, IconButton, Label, Legend, Level, MapMenuDialog, Message, Mission, MultiCascader, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NewWindow, NewWindowContext, NotificationEvent, Notifier, NumberInput, OPENLAYERS_PROJECTION, OnlyFontGlobalStyle, Radio, RichBoolean, RichBooleanCheckbox, Search, Select, SideMenu, SimpleTable, SingleTag, Size, THEME, TableWithSelectableRows, Tag, TagBullet, TagGroup, TextInput, Textarea, ThemeProvider, Toggle, WSG84_PROJECTION, cleanString, coordinatesAreDistinct, customDayjs, getControlUnitResourceCategoryFromType, getCoordinates, getFilteredCollection, getHashFromCollection, getLocalizedDayjs, getMaybeBooleanFromRichBoolean, getOptionsFromIdAndName, getOptionsFromLabelledEnum, getPseudoRandomString, getSelectedOptionFromOptionValue, getSelectedOptionFromOptionValueInTree, getUtcizedDayjs, humanizePastDate, isArray, isDefined, isEmptyish, isNumeric, isObject, logSoftError, normalizeString, nullify, pluralize, sortCollectionByLocalizedProps, stopMouseEventPropagation, undefine, useClickOutsideEffect, useDeepCompareEffect, useFieldControl, useForceUpdate, useKey, useNewWindow, usePressEscapeEffect, usePrevious };
|
|
76499
|
+
export { Accent, Banner, Button$1 as Button, CheckPicker, Checkbox, ControlUnit, CoordinatesFormat, CoordinatesInput, CustomSearch, DataTable, DatePicker, DateRangePicker, Dialog, Dot, Dropdown, ExclamationPoint, Field$2 as Field, FieldError, Fieldset, Figure, FormikCheckPicker, FormikCheckbox, FormikCoordinatesInput, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCascader, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikRichBooleanCheckbox, FormikSearch, FormikSelect, FormikTextInput, FormikTextarea, FormikToggle, GlobalStyle, index as Icon, IconButton, Label, Legend, Level, LinkButton, MapMenuDialog, Message, Mission, MultiCascader, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NewWindow, NewWindowContext, NotificationEvent, Notifier, NumberInput, OPENLAYERS_PROJECTION, OnlyFontGlobalStyle, Radio, RichBoolean, RichBooleanCheckbox, Search, Select, SideMenu, SimpleTable, SingleTag, Size, THEME, TableWithSelectableRows, Tag, TagBullet, TagGroup, TextInput, Textarea, ThemeProvider, Toggle, WSG84_PROJECTION, cleanString, coordinatesAreDistinct, customDayjs, getControlUnitResourceCategoryFromType, getCoordinates, getFilteredCollection, getHashFromCollection, getLocalizedDayjs, getMaybeBooleanFromRichBoolean, getOptionsFromIdAndName, getOptionsFromLabelledEnum, getPseudoRandomString, getSelectedOptionFromOptionValue, getSelectedOptionFromOptionValueInTree, getUtcizedDayjs, humanizePastDate, isArray, isDefined, isEmptyish, isNumeric, isObject, logSoftError, normalizeString, nullify, pluralize, sortCollectionByLocalizedProps, stopMouseEventPropagation, undefine, useClickOutsideEffect, useDeepCompareEffect, useFieldControl, useForceUpdate, useKey, useNewWindow, usePressEscapeEffect, usePrevious };
|