@osrd-project/ui-core 0.0.57 → 0.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/components/inputs/FieldWrapper.d.ts +2 -1
- package/dist/components/inputs/Slider.d.ts +2 -1
- package/dist/components/inputs/StatusMessage.d.ts +4 -1
- package/dist/components/inputs/TimePicker.d.ts +5 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/stories/Input.stories.d.ts +3 -0
- package/dist/stories/TimePicker.stories.d.ts +1 -0
- package/dist/theme.css +137 -62
- package/dist/theme.css.map +1 -1
- package/package.json +2 -2
package/dist/theme.css
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
--tw-contain-paint: ;
|
|
106
106
|
--tw-contain-style: ;
|
|
107
107
|
}/*
|
|
108
|
-
! tailwindcss v3.4.
|
|
108
|
+
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
|
|
109
109
|
*//*
|
|
110
110
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
111
111
|
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
@@ -1029,8 +1029,8 @@ video {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
.combo-box .suggestion-item:hover {
|
|
1031
1031
|
--tw-bg-opacity: 1;
|
|
1032
|
-
background-color: rgba(
|
|
1033
|
-
background-color: rgba(
|
|
1032
|
+
background-color: rgba(227, 237, 252, 1);
|
|
1033
|
+
background-color: rgba(227, 237, 252, var(--tw-bg-opacity, 1));
|
|
1034
1034
|
}
|
|
1035
1035
|
.date-picker .date-picker-input .trailing-content-wrapper .trailing-content {
|
|
1036
1036
|
--tw-text-opacity: 1;
|
|
@@ -1041,20 +1041,10 @@ video {
|
|
|
1041
1041
|
caret-color: transparent;
|
|
1042
1042
|
}
|
|
1043
1043
|
.date-picker .calendar-picker {
|
|
1044
|
-
position: absolute;
|
|
1045
|
-
width: -moz-fit-content;
|
|
1046
|
-
width: fit-content;
|
|
1047
|
-
border-radius: 0.5rem;
|
|
1048
|
-
box-shadow:
|
|
1049
|
-
0 0.813rem 0.938rem -0.438rem rgba(31, 27, 23, 0.1),
|
|
1050
|
-
0 0.188rem 0.375rem rgba(31, 27, 23, 0.2);
|
|
1051
1044
|
display: flex;
|
|
1052
1045
|
flex-direction: row;
|
|
1053
1046
|
align-items: center;
|
|
1054
1047
|
justify-content: center;
|
|
1055
|
-
--tw-bg-opacity: 1;
|
|
1056
|
-
background-color: rgba(255, 255, 255, 1);
|
|
1057
|
-
background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));
|
|
1058
1048
|
}
|
|
1059
1049
|
.date-picker .calendar-picker .calendar-navigation-btn {
|
|
1060
1050
|
width: 2rem;
|
|
@@ -1294,21 +1284,30 @@ video {
|
|
|
1294
1284
|
background-color: rgba(92, 89, 85, var(--tw-bg-opacity, 1));
|
|
1295
1285
|
}
|
|
1296
1286
|
.feed-back {
|
|
1287
|
+
--input-wrapper-padding: 3px;
|
|
1288
|
+
--field-wrapper-padding-bottom: 16px;
|
|
1289
|
+
--status-message-wrapper-tooltip--offset: 4px;
|
|
1290
|
+
|
|
1297
1291
|
border-radius: 0.5rem;
|
|
1298
1292
|
position: relative;
|
|
1299
1293
|
padding: 0.625rem 0.813rem 1rem 1rem;
|
|
1300
1294
|
}
|
|
1301
|
-
.feed-back.
|
|
1295
|
+
.feed-back.success:not(:has(.status-message-wrapper-tooltip)) {
|
|
1296
|
+
--tw-bg-opacity: 1;
|
|
1297
|
+
background-color: rgba(230, 247, 238, 1);
|
|
1298
|
+
background-color: rgba(230, 247, 238, var(--tw-bg-opacity, 1));
|
|
1299
|
+
}
|
|
1300
|
+
.feed-back.info:not(:has(.status-message-wrapper-tooltip)) {
|
|
1302
1301
|
--tw-bg-opacity: 1;
|
|
1303
1302
|
background-color: rgba(230, 247, 255, 1);
|
|
1304
1303
|
background-color: rgba(230, 247, 255, var(--tw-bg-opacity, 1));
|
|
1305
1304
|
}
|
|
1306
|
-
.feed-back.warning {
|
|
1305
|
+
.feed-back.warning:not(:has(.status-message-wrapper-tooltip)) {
|
|
1307
1306
|
--tw-bg-opacity: 1;
|
|
1308
1307
|
background-color: rgba(253, 245, 225, 1);
|
|
1309
1308
|
background-color: rgba(253, 245, 225, var(--tw-bg-opacity, 1));
|
|
1310
1309
|
}
|
|
1311
|
-
.feed-back.error {
|
|
1310
|
+
.feed-back.error:not(:has(.status-message-wrapper-tooltip)) {
|
|
1312
1311
|
--tw-bg-opacity: 1;
|
|
1313
1312
|
background-color: rgba(255, 238, 237, 1);
|
|
1314
1313
|
background-color: rgba(255, 238, 237, var(--tw-bg-opacity, 1));
|
|
@@ -1378,8 +1377,8 @@ video {
|
|
|
1378
1377
|
}
|
|
1379
1378
|
.input-wrapper .input-icons .clear-icon {
|
|
1380
1379
|
--tw-text-opacity: 1;
|
|
1381
|
-
color: rgba(
|
|
1382
|
-
color: rgba(
|
|
1380
|
+
color: rgba(121, 118, 113, 1);
|
|
1381
|
+
color: rgba(121, 118, 113, var(--tw-text-opacity, 1));
|
|
1383
1382
|
cursor: pointer;
|
|
1384
1383
|
}
|
|
1385
1384
|
.input-wrapper .input-icons .chevron-icon.disabled {
|
|
@@ -2223,6 +2222,76 @@ video {
|
|
|
2223
2222
|
color: rgba(217, 28, 28, 1);
|
|
2224
2223
|
color: rgba(217, 28, 28, var(--tw-text-opacity, 1));
|
|
2225
2224
|
}
|
|
2225
|
+
.status-message-wrapper-tooltip {
|
|
2226
|
+
position: absolute;
|
|
2227
|
+
display: flex;
|
|
2228
|
+
align-items: center;
|
|
2229
|
+
width: 320px;
|
|
2230
|
+
top: calc(
|
|
2231
|
+
100% - var(--input-wrapper-padding) - var(--field-wrapper-padding-bottom) -
|
|
2232
|
+
var(--status-message-wrapper-tooltip--offset)
|
|
2233
|
+
);
|
|
2234
|
+
gap: 12px;
|
|
2235
|
+
border-radius: 8px;
|
|
2236
|
+
box-shadow:
|
|
2237
|
+
0 10px 20px 0 rgba(0, 0, 0, 0.2),
|
|
2238
|
+
0 1px 0 rgba(255, 255, 255, 0.6) inset;
|
|
2239
|
+
padding-left: 12px;
|
|
2240
|
+
padding-right: 12px;
|
|
2241
|
+
z-index: 10;
|
|
2242
|
+
}
|
|
2243
|
+
.status-message-wrapper-tooltip .status-close {
|
|
2244
|
+
display: flex;
|
|
2245
|
+
align-items: center;
|
|
2246
|
+
justify-content: center;
|
|
2247
|
+
position: absolute;
|
|
2248
|
+
top: 8px;
|
|
2249
|
+
right: 8px;
|
|
2250
|
+
color: #70C1E5;
|
|
2251
|
+
}
|
|
2252
|
+
.status-message-wrapper-tooltip .status-close:hover {
|
|
2253
|
+
color: #053348;
|
|
2254
|
+
}
|
|
2255
|
+
.status-message-wrapper-tooltip.loading {
|
|
2256
|
+
background-color: #FFFFFF;
|
|
2257
|
+
}
|
|
2258
|
+
.status-message-wrapper-tooltip.success {
|
|
2259
|
+
background-color: #E6F7EE;
|
|
2260
|
+
}
|
|
2261
|
+
.status-message-wrapper-tooltip.error {
|
|
2262
|
+
background-color: #FFEEED;
|
|
2263
|
+
}
|
|
2264
|
+
.status-message-wrapper-tooltip.info {
|
|
2265
|
+
background-color: #E6F7FF;
|
|
2266
|
+
padding-left: 12px;
|
|
2267
|
+
padding-right: 32px;
|
|
2268
|
+
}
|
|
2269
|
+
.status-message-wrapper-tooltip.warning {
|
|
2270
|
+
background-color: #FDF5E1;
|
|
2271
|
+
}
|
|
2272
|
+
.status-message-wrapper-tooltip.tooltip-left {
|
|
2273
|
+
left: 8px;
|
|
2274
|
+
}
|
|
2275
|
+
.status-message-wrapper-tooltip.tooltip-right {
|
|
2276
|
+
right: 8px;
|
|
2277
|
+
}
|
|
2278
|
+
.status-message-wrapper-tooltip .status-message {
|
|
2279
|
+
font-weight: 600;
|
|
2280
|
+
padding-top: 6px;
|
|
2281
|
+
padding-bottom: 10px;
|
|
2282
|
+
}
|
|
2283
|
+
.status-message-wrapper-tooltip .status-message.success {
|
|
2284
|
+
color: #0B723C;
|
|
2285
|
+
}
|
|
2286
|
+
.status-message-wrapper-tooltip .status-message.error {
|
|
2287
|
+
color: #D91C1C;
|
|
2288
|
+
}
|
|
2289
|
+
.status-message-wrapper-tooltip .status-message.info {
|
|
2290
|
+
color: #216482;
|
|
2291
|
+
}
|
|
2292
|
+
.status-message-wrapper-tooltip .status-message.warning {
|
|
2293
|
+
color: #7D521E;
|
|
2294
|
+
}
|
|
2226
2295
|
.text-area-field-wrapper .field-and-status-icon {
|
|
2227
2296
|
align-items: flex-start !important;
|
|
2228
2297
|
}
|
|
@@ -2344,30 +2413,17 @@ video {
|
|
|
2344
2413
|
color: rgba(217, 28, 28, 1);
|
|
2345
2414
|
color: rgba(217, 28, 28, var(--tw-text-opacity, 1));
|
|
2346
2415
|
}
|
|
2347
|
-
|
|
2348
|
-
|
|
2416
|
+
@-moz-document url-prefix() {
|
|
2417
|
+
.time-picker .time-input {
|
|
2418
|
+
letter-spacing: -0.9px;
|
|
2349
2419
|
}
|
|
2350
|
-
|
|
2420
|
+
}
|
|
2421
|
+
.time-picker .time-input::-webkit-calendar-picker-indicator {
|
|
2351
2422
|
background: none;
|
|
2352
2423
|
display: none;
|
|
2353
2424
|
}
|
|
2354
|
-
.time-picker .modal-
|
|
2355
|
-
position: fixed;
|
|
2356
|
-
top: 0;
|
|
2357
|
-
left: 0;
|
|
2358
|
-
right: 0;
|
|
2359
|
-
bottom: 0;
|
|
2360
|
-
z-index: 1000;
|
|
2361
|
-
}
|
|
2362
|
-
.time-picker .modal-content {
|
|
2363
|
-
background-color: #fff;
|
|
2425
|
+
.time-picker .modal-ui-content {
|
|
2364
2426
|
padding: 4.563rem;
|
|
2365
|
-
border-radius: 0.313rem;
|
|
2366
|
-
box-shadow:
|
|
2367
|
-
0px 1px 0px rgba(255, 255, 255, 1) inset,
|
|
2368
|
-
0px 4px 7px -3px rgba(24, 68, 239, 0.19),
|
|
2369
|
-
0px 1px 3px rgba(49, 46, 43, 0.2);
|
|
2370
|
-
position: absolute;
|
|
2371
2427
|
}
|
|
2372
2428
|
.time-picker .time-picker-container {
|
|
2373
2429
|
display: flex;
|
|
@@ -2384,12 +2440,14 @@ video {
|
|
|
2384
2440
|
align-self: center;
|
|
2385
2441
|
font-size: 1.5rem;
|
|
2386
2442
|
}
|
|
2387
|
-
.time-picker .
|
|
2443
|
+
.time-picker .second-container,
|
|
2444
|
+
.time-picker .minute-container {
|
|
2388
2445
|
position: relative;
|
|
2389
2446
|
height: 14.188rem;
|
|
2390
2447
|
align-content: center;
|
|
2391
2448
|
}
|
|
2392
|
-
.time-picker .
|
|
2449
|
+
.time-picker .second-buttons,
|
|
2450
|
+
.time-picker .minute-buttons {
|
|
2393
2451
|
display: flex;
|
|
2394
2452
|
position: absolute;
|
|
2395
2453
|
bottom: 0;
|
|
@@ -2397,7 +2455,8 @@ video {
|
|
|
2397
2455
|
padding: 0.625rem;
|
|
2398
2456
|
gap: 0.75rem;
|
|
2399
2457
|
}
|
|
2400
|
-
.time-picker .
|
|
2458
|
+
.time-picker .second-button,
|
|
2459
|
+
.time-picker .minute-button {
|
|
2401
2460
|
cursor: pointer;
|
|
2402
2461
|
display: block;
|
|
2403
2462
|
border-radius: 0.313rem;
|
|
@@ -2419,11 +2478,13 @@ video {
|
|
|
2419
2478
|
font-size: 0.875rem;
|
|
2420
2479
|
}
|
|
2421
2480
|
.time-picker .hour,
|
|
2422
|
-
.time-picker .minute
|
|
2481
|
+
.time-picker .minute,
|
|
2482
|
+
.time-picker .second {
|
|
2423
2483
|
font-size: 1.125rem;
|
|
2424
2484
|
font-weight: 600;
|
|
2425
2485
|
text-align: center;
|
|
2426
|
-
|
|
2486
|
+
vertical-align: center;
|
|
2487
|
+
line-height: 1.9rem;
|
|
2427
2488
|
cursor: pointer;
|
|
2428
2489
|
width: 2.875rem;
|
|
2429
2490
|
height: 1.875rem;
|
|
@@ -2535,20 +2596,12 @@ video {
|
|
|
2535
2596
|
.tolerance-picker .time-input {
|
|
2536
2597
|
cursor: pointer;
|
|
2537
2598
|
}
|
|
2538
|
-
.tolerance-picker .modal-overlay {
|
|
2539
|
-
position: fixed;
|
|
2540
|
-
top: 0;
|
|
2541
|
-
left: 0;
|
|
2542
|
-
right: 0;
|
|
2543
|
-
bottom: 0;
|
|
2544
|
-
z-index: 1000;
|
|
2545
|
-
}
|
|
2546
|
-
.tolerance-picker .modal-overlay .tolerance-picker-section {
|
|
2599
|
+
.tolerance-picker .modal-ui-overlay .tolerance-picker-section {
|
|
2547
2600
|
display: flex;
|
|
2548
2601
|
gap: 1rem;
|
|
2549
2602
|
align-items: center;
|
|
2550
2603
|
}
|
|
2551
|
-
.tolerance-picker .modal-overlay .tolerance-picker-section .tolerance-grid {
|
|
2604
|
+
.tolerance-picker .modal-ui-overlay .tolerance-picker-section .tolerance-grid {
|
|
2552
2605
|
display: grid;
|
|
2553
2606
|
grid-template-columns: repeat(6, 1fr);
|
|
2554
2607
|
grid-template-areas:
|
|
@@ -2560,21 +2613,14 @@ video {
|
|
|
2560
2613
|
grid-auto-rows: 40px;
|
|
2561
2614
|
grid-gap: 10px;
|
|
2562
2615
|
}
|
|
2563
|
-
.tolerance-picker .modal-overlay .tolerance-picker-section .tolerance-grid.minus-tolerance {
|
|
2616
|
+
.tolerance-picker .modal-ui-overlay .tolerance-picker-section .tolerance-grid.minus-tolerance {
|
|
2564
2617
|
direction: rtl;
|
|
2565
2618
|
}
|
|
2566
|
-
.tolerance-picker .modal-overlay .tolerance-picker-section .tolerance-grid.plus-tolerance {
|
|
2619
|
+
.tolerance-picker .modal-ui-overlay .tolerance-picker-section .tolerance-grid.plus-tolerance {
|
|
2567
2620
|
direction: ltr;
|
|
2568
2621
|
}
|
|
2569
|
-
.tolerance-picker .modal-content {
|
|
2570
|
-
background-color: #fff;
|
|
2622
|
+
.tolerance-picker .modal-ui-content {
|
|
2571
2623
|
padding: 1.25rem;
|
|
2572
|
-
border-radius: 0.313rem;
|
|
2573
|
-
box-shadow:
|
|
2574
|
-
0px 1px 0px rgba(255, 255, 255, 1) inset,
|
|
2575
|
-
0px 4px 7px -3px rgba(24, 68, 239, 0.19),
|
|
2576
|
-
0px 1px 3px rgba(49, 46, 43, 0.2);
|
|
2577
|
-
position: absolute;
|
|
2578
2624
|
}
|
|
2579
2625
|
.tolerance-picker .time-picker-container {
|
|
2580
2626
|
display: flex;
|
|
@@ -2652,6 +2698,35 @@ video {
|
|
|
2652
2698
|
cursor: pointer;
|
|
2653
2699
|
caret-color: transparent;
|
|
2654
2700
|
}
|
|
2701
|
+
.modal-ui-overlay {
|
|
2702
|
+
position: fixed;
|
|
2703
|
+
top: 0;
|
|
2704
|
+
left: 0;
|
|
2705
|
+
right: 0;
|
|
2706
|
+
bottom: 0;
|
|
2707
|
+
z-index: 1000;
|
|
2708
|
+
}
|
|
2709
|
+
.modal-ui-overlay .modal-ui-content {
|
|
2710
|
+
background-color: #FFFFFF;
|
|
2711
|
+
border-radius: 0.5rem;
|
|
2712
|
+
box-shadow:
|
|
2713
|
+
0px 1px 0px rgba(255, 255, 255, 1) inset,
|
|
2714
|
+
0px 4px 7px -3px rgba(24, 68, 239, 0.19),
|
|
2715
|
+
0px 1px 3px rgba(49, 46, 43, 0.2);
|
|
2716
|
+
position: absolute;
|
|
2717
|
+
}
|
|
2718
|
+
.modal-ui-overlay .modal-ui-content .close-button {
|
|
2719
|
+
position: absolute;
|
|
2720
|
+
top: 16px;
|
|
2721
|
+
right: 16px;
|
|
2722
|
+
color: #797671;
|
|
2723
|
+
}
|
|
2724
|
+
.modal-ui-overlay .modal-ui-content .close-button:hover {
|
|
2725
|
+
color: #1F1B17;
|
|
2726
|
+
}
|
|
2727
|
+
.modal-ui-overlay .modal-ui-content .close-button:active {
|
|
2728
|
+
color: #D3D1CF;
|
|
2729
|
+
}
|
|
2655
2730
|
.osrd-ui-custom-select {
|
|
2656
2731
|
border-radius: 4px;
|
|
2657
2732
|
border: 1px solid rgba(148, 145, 142, 1);
|