@rovula/ui 0.0.17 → 0.0.19
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/cjs/bundle.css +424 -9
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/AlertDialog/Alert.stories.d.ts +1 -1
- package/dist/cjs/types/components/Calendar/Calendar.d.ts +9 -0
- package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +724 -0
- package/dist/cjs/types/components/Calendar/index.d.ts +1 -0
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +21 -0
- package/dist/cjs/types/components/Popover/Popover.d.ts +6 -0
- package/dist/cjs/types/components/Popover/Popover.stories.d.ts +21 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +7 -0
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +5 -0
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/components/Calendar/Calendar.js +34 -0
- package/dist/components/Calendar/Calendar.stories.js +38 -0
- package/dist/components/Calendar/index.js +1 -0
- package/dist/components/DatePicker/DatePicker.js +21 -0
- package/dist/components/DatePicker/DatePicker.stories.js +36 -0
- package/dist/components/Popover/Popover.js +35 -0
- package/dist/components/Popover/Popover.stories.js +33 -0
- package/dist/components/TextInput/TextInput.js +9 -3
- package/dist/components/TextInput/TextInput.stories.js +13 -1
- package/dist/components/TextInput/TextInput.styles.js +42 -1
- package/dist/esm/bundle.css +424 -9
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/AlertDialog/Alert.stories.d.ts +1 -1
- package/dist/esm/types/components/Calendar/Calendar.d.ts +9 -0
- package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +724 -0
- package/dist/esm/types/components/Calendar/index.d.ts +1 -0
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +21 -0
- package/dist/esm/types/components/Popover/Popover.d.ts +6 -0
- package/dist/esm/types/components/Popover/Popover.stories.d.ts +21 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +7 -0
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +5 -0
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +146 -8
- package/dist/theme/global.css +8 -4
- package/dist/theme/presets/colors.js +2 -2
- package/package.json +5 -2
- package/src/components/Calendar/Calendar.stories.tsx +49 -0
- package/src/components/Calendar/Calendar.tsx +49 -0
- package/src/components/Calendar/index.ts +1 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +40 -0
- package/src/components/DatePicker/DatePicker.tsx +57 -0
- package/src/components/Popover/Popover.stories.tsx +40 -0
- package/src/components/Popover/Popover.tsx +31 -0
- package/src/components/TextInput/TextInput.stories.tsx +37 -1
- package/src/components/TextInput/TextInput.styles.ts +46 -1
- package/src/components/TextInput/TextInput.tsx +13 -3
- package/src/index.ts +7 -0
- package/src/theme/global.css +8 -4
- package/src/theme/presets/colors.js +2 -2
package/dist/cjs/bundle.css
CHANGED
|
@@ -565,6 +565,10 @@ video {
|
|
|
565
565
|
--text-grey-light: 164 169 178;
|
|
566
566
|
--text-white: 255 255 255;
|
|
567
567
|
|
|
568
|
+
/* Other */
|
|
569
|
+
--other-bg: var(--white);
|
|
570
|
+
--other-bg-2: var(--white);
|
|
571
|
+
|
|
568
572
|
/* Other/Popup */
|
|
569
573
|
--popup-background: 249 251 255;
|
|
570
574
|
/* Other/Popup Curtain */
|
|
@@ -581,8 +585,8 @@ video {
|
|
|
581
585
|
|
|
582
586
|
/* TODO for shadcn, wait for refactor */
|
|
583
587
|
/* --background: 0 0% 100%; */
|
|
584
|
-
--background:
|
|
585
|
-
--foreground:
|
|
588
|
+
--background: var(--brand-background);
|
|
589
|
+
--foreground: var(--text-white:);
|
|
586
590
|
|
|
587
591
|
--muted: 210 40% 96.1%;
|
|
588
592
|
--muted-foreground: 215.4 16.3% 46.9%;
|
|
@@ -593,8 +597,8 @@ video {
|
|
|
593
597
|
--border: 214.3 31.8% 91.4%;
|
|
594
598
|
--input: 214.3 31.8% 91.4%;
|
|
595
599
|
|
|
596
|
-
--card:
|
|
597
|
-
--card-foreground:
|
|
600
|
+
--card: var(--white);
|
|
601
|
+
--card-foreground: var(--primary);
|
|
598
602
|
|
|
599
603
|
--primary: var(--primary-default);
|
|
600
604
|
|
|
@@ -614,8 +618,10 @@ video {
|
|
|
614
618
|
border-color: hsl(var(--border));
|
|
615
619
|
}
|
|
616
620
|
body {
|
|
617
|
-
|
|
618
|
-
color:
|
|
621
|
+
--tw-bg-opacity: 1;
|
|
622
|
+
background-color: rgb(var(--background) / var(--tw-bg-opacity));
|
|
623
|
+
--tw-text-opacity: 1;
|
|
624
|
+
color: rgb(var(--foreground) / var(--tw-text-opacity));
|
|
619
625
|
}
|
|
620
626
|
|
|
621
627
|
*, ::before, ::after {
|
|
@@ -872,6 +878,10 @@ video {
|
|
|
872
878
|
.aspect-square {
|
|
873
879
|
aspect-ratio: 1 / 1;
|
|
874
880
|
}
|
|
881
|
+
.size-14 {
|
|
882
|
+
width: 3.5rem;
|
|
883
|
+
height: 3.5rem;
|
|
884
|
+
}
|
|
875
885
|
.size-2 {
|
|
876
886
|
width: 0.5rem;
|
|
877
887
|
height: 0.5rem;
|
|
@@ -900,10 +910,22 @@ video {
|
|
|
900
910
|
width: 1.75rem;
|
|
901
911
|
height: 1.75rem;
|
|
902
912
|
}
|
|
913
|
+
.size-9 {
|
|
914
|
+
width: 2.25rem;
|
|
915
|
+
height: 2.25rem;
|
|
916
|
+
}
|
|
903
917
|
.size-\[14px\] {
|
|
904
918
|
width: 14px;
|
|
905
919
|
height: 14px;
|
|
906
920
|
}
|
|
921
|
+
.size-\[30px\] {
|
|
922
|
+
width: 30px;
|
|
923
|
+
height: 30px;
|
|
924
|
+
}
|
|
925
|
+
.size-\[38px\] {
|
|
926
|
+
width: 38px;
|
|
927
|
+
height: 38px;
|
|
928
|
+
}
|
|
907
929
|
.size-full {
|
|
908
930
|
width: 100%;
|
|
909
931
|
height: 100%;
|
|
@@ -1023,6 +1045,9 @@ video {
|
|
|
1023
1045
|
.w-full {
|
|
1024
1046
|
width: 100%;
|
|
1025
1047
|
}
|
|
1048
|
+
.min-w-72 {
|
|
1049
|
+
min-width: 18rem;
|
|
1050
|
+
}
|
|
1026
1051
|
.max-w-3xl {
|
|
1027
1052
|
max-width: 48rem;
|
|
1028
1053
|
}
|
|
@@ -1210,6 +1235,18 @@ video {
|
|
|
1210
1235
|
.rounded-xl {
|
|
1211
1236
|
border-radius: 0.75rem;
|
|
1212
1237
|
}
|
|
1238
|
+
.rounded-r-full {
|
|
1239
|
+
border-top-right-radius: 9999px;
|
|
1240
|
+
border-bottom-right-radius: 9999px;
|
|
1241
|
+
}
|
|
1242
|
+
.rounded-r-none {
|
|
1243
|
+
border-top-right-radius: 0px;
|
|
1244
|
+
border-bottom-right-radius: 0px;
|
|
1245
|
+
}
|
|
1246
|
+
.rounded-r-xl {
|
|
1247
|
+
border-top-right-radius: 0.75rem;
|
|
1248
|
+
border-bottom-right-radius: 0.75rem;
|
|
1249
|
+
}
|
|
1213
1250
|
.border {
|
|
1214
1251
|
border-width: 1px;
|
|
1215
1252
|
}
|
|
@@ -1225,12 +1262,21 @@ video {
|
|
|
1225
1262
|
.border-b-\[3px\] {
|
|
1226
1263
|
border-bottom-width: 3px;
|
|
1227
1264
|
}
|
|
1265
|
+
.border-l {
|
|
1266
|
+
border-left-width: 1px;
|
|
1267
|
+
}
|
|
1228
1268
|
.border-t {
|
|
1229
1269
|
border-top-width: 1px;
|
|
1230
1270
|
}
|
|
1231
1271
|
.border-solid {
|
|
1232
1272
|
border-style: solid;
|
|
1233
1273
|
}
|
|
1274
|
+
.border-none {
|
|
1275
|
+
border-style: none;
|
|
1276
|
+
}
|
|
1277
|
+
.border-\[rgb\(var\(--card\)\)\] {
|
|
1278
|
+
border-color: rgb(var(--card));
|
|
1279
|
+
}
|
|
1234
1280
|
.border-error {
|
|
1235
1281
|
--tw-border-opacity: 1;
|
|
1236
1282
|
border-color: rgb(var(--error-100) / var(--tw-border-opacity));
|
|
@@ -1298,11 +1344,22 @@ video {
|
|
|
1298
1344
|
.border-b-\[rgb\(var\(--navbar-border-color\)\)\] {
|
|
1299
1345
|
border-bottom-color: rgb(var(--navbar-border-color));
|
|
1300
1346
|
}
|
|
1347
|
+
.border-l-input-stroke {
|
|
1348
|
+
--tw-border-opacity: 1;
|
|
1349
|
+
border-left-color: rgb(var(--input-default-stroke-color) / var(--tw-border-opacity));
|
|
1350
|
+
}
|
|
1351
|
+
.bg-\[rgb\(var\(--card\)\)\] {
|
|
1352
|
+
background-color: rgb(var(--card));
|
|
1353
|
+
}
|
|
1301
1354
|
.bg-\[rgb\(var\(--navbar-bg-color\)\)\] {
|
|
1302
1355
|
background-color: rgb(var(--navbar-bg-color));
|
|
1303
1356
|
}
|
|
1357
|
+
.bg-\[rgb\(var\(--other-bg-2\)\)\] {
|
|
1358
|
+
background-color: rgb(var(--other-bg-2));
|
|
1359
|
+
}
|
|
1304
1360
|
.bg-background {
|
|
1305
|
-
|
|
1361
|
+
--tw-bg-opacity: 1;
|
|
1362
|
+
background-color: rgb(var(--background) / var(--tw-bg-opacity));
|
|
1306
1363
|
}
|
|
1307
1364
|
.bg-black {
|
|
1308
1365
|
--tw-bg-opacity: 1;
|
|
@@ -1408,6 +1465,9 @@ video {
|
|
|
1408
1465
|
.fill-input-text-disabled {
|
|
1409
1466
|
fill: rgb(var(--input-disabled-text-color) / 1);
|
|
1410
1467
|
}
|
|
1468
|
+
.fill-primary {
|
|
1469
|
+
fill: rgb(var(--primary-default) / 1);
|
|
1470
|
+
}
|
|
1411
1471
|
.fill-red-500 {
|
|
1412
1472
|
fill: #ef4444;
|
|
1413
1473
|
}
|
|
@@ -1423,6 +1483,9 @@ video {
|
|
|
1423
1483
|
.fill-textcolor-medium {
|
|
1424
1484
|
fill: rgb(var(--text-default-medium) / 1);
|
|
1425
1485
|
}
|
|
1486
|
+
.p-0 {
|
|
1487
|
+
padding: 0px;
|
|
1488
|
+
}
|
|
1426
1489
|
.p-1 {
|
|
1427
1490
|
padding: 0.25rem;
|
|
1428
1491
|
}
|
|
@@ -1432,6 +1495,9 @@ video {
|
|
|
1432
1495
|
.p-20 {
|
|
1433
1496
|
padding: 5rem;
|
|
1434
1497
|
}
|
|
1498
|
+
.p-3 {
|
|
1499
|
+
padding: 0.75rem;
|
|
1500
|
+
}
|
|
1435
1501
|
.p-4 {
|
|
1436
1502
|
padding: 1rem;
|
|
1437
1503
|
}
|
|
@@ -1506,12 +1572,21 @@ video {
|
|
|
1506
1572
|
.pe-\[30px\] {
|
|
1507
1573
|
padding-inline-end: 30px;
|
|
1508
1574
|
}
|
|
1575
|
+
.pe-\[38px\] {
|
|
1576
|
+
padding-inline-end: 38px;
|
|
1577
|
+
}
|
|
1509
1578
|
.pe-\[40px\] {
|
|
1510
1579
|
padding-inline-end: 40px;
|
|
1511
1580
|
}
|
|
1581
|
+
.pe-\[46px\] {
|
|
1582
|
+
padding-inline-end: 46px;
|
|
1583
|
+
}
|
|
1512
1584
|
.pe-\[48px\] {
|
|
1513
1585
|
padding-inline-end: 48px;
|
|
1514
1586
|
}
|
|
1587
|
+
.pe-\[72px\] {
|
|
1588
|
+
padding-inline-end: 72px;
|
|
1589
|
+
}
|
|
1515
1590
|
.text-left {
|
|
1516
1591
|
text-align: left;
|
|
1517
1592
|
}
|
|
@@ -1662,6 +1737,9 @@ video {
|
|
|
1662
1737
|
.tracking-tight {
|
|
1663
1738
|
letter-spacing: -0.025em;
|
|
1664
1739
|
}
|
|
1740
|
+
.text-\[rgb\(var\(--card-foreground\)\)\] {
|
|
1741
|
+
color: rgb(var(--card-foreground));
|
|
1742
|
+
}
|
|
1665
1743
|
.text-\[rgb\(var\(--navbar-text-color\)\)\] {
|
|
1666
1744
|
color: rgb(var(--navbar-text-color));
|
|
1667
1745
|
}
|
|
@@ -1684,6 +1762,10 @@ video {
|
|
|
1684
1762
|
--tw-text-opacity: 1;
|
|
1685
1763
|
color: rgb(243 244 246 / var(--tw-text-opacity));
|
|
1686
1764
|
}
|
|
1765
|
+
.text-gray-400 {
|
|
1766
|
+
--tw-text-opacity: 1;
|
|
1767
|
+
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
1768
|
+
}
|
|
1687
1769
|
.text-grey2-500\/\[\.32\] {
|
|
1688
1770
|
color: rgb(var(--grey2-500) / .32);
|
|
1689
1771
|
}
|
|
@@ -1788,6 +1870,9 @@ video {
|
|
|
1788
1870
|
.underline-offset-4 {
|
|
1789
1871
|
text-underline-offset: 4px;
|
|
1790
1872
|
}
|
|
1873
|
+
.caret-primary {
|
|
1874
|
+
caret-color: rgb(var(--primary-default) / 1);
|
|
1875
|
+
}
|
|
1791
1876
|
.opacity-70 {
|
|
1792
1877
|
opacity: 0.7;
|
|
1793
1878
|
}
|
|
@@ -1834,7 +1919,7 @@ video {
|
|
|
1834
1919
|
--tw-ring-color: rgb(var(--input-disabled-stroke-color) / var(--tw-ring-opacity));
|
|
1835
1920
|
}
|
|
1836
1921
|
.ring-offset-background {
|
|
1837
|
-
--tw-ring-offset-color:
|
|
1922
|
+
--tw-ring-offset-color: rgb(var(--background) / 1);
|
|
1838
1923
|
}
|
|
1839
1924
|
.blur {
|
|
1840
1925
|
--tw-blur: blur(8px);
|
|
@@ -2231,6 +2316,9 @@ video {
|
|
|
2231
2316
|
line-height: 14px;
|
|
2232
2317
|
font-weight: 400;
|
|
2233
2318
|
}
|
|
2319
|
+
.peer:hover ~ .peer-hover\:fill-input-text-active {
|
|
2320
|
+
fill: rgb(var(--input-active-text-color) / 1);
|
|
2321
|
+
}
|
|
2234
2322
|
.peer:focus ~ .peer-focus\:-top-1 {
|
|
2235
2323
|
top: -0.25rem;
|
|
2236
2324
|
}
|
|
@@ -2240,6 +2328,10 @@ video {
|
|
|
2240
2328
|
.peer:focus ~ .peer-focus\:flex {
|
|
2241
2329
|
display: flex;
|
|
2242
2330
|
}
|
|
2331
|
+
.peer:focus ~ .peer-focus\:border-l-input-stroke-active {
|
|
2332
|
+
--tw-border-opacity: 1;
|
|
2333
|
+
border-left-color: rgb(var(--input-active-stroke-color) / var(--tw-border-opacity));
|
|
2334
|
+
}
|
|
2243
2335
|
.peer:focus ~ .peer-focus\:bg-input-label-background {
|
|
2244
2336
|
--tw-bg-opacity: 1;
|
|
2245
2337
|
background-color: rgb(var(--input-label-background-color) / var(--tw-bg-opacity));
|
|
@@ -2248,6 +2340,9 @@ video {
|
|
|
2248
2340
|
--tw-bg-opacity: 1;
|
|
2249
2341
|
background-color: rgb(239 68 68 / var(--tw-bg-opacity));
|
|
2250
2342
|
}
|
|
2343
|
+
.peer:focus ~ .peer-focus\:fill-input-text-active {
|
|
2344
|
+
fill: rgb(var(--input-active-text-color) / 1);
|
|
2345
|
+
}
|
|
2251
2346
|
.peer:focus ~ .peer-focus\:text-input-text-active {
|
|
2252
2347
|
--tw-text-opacity: 1;
|
|
2253
2348
|
color: rgb(var(--input-active-text-color) / var(--tw-text-opacity));
|
|
@@ -2265,6 +2360,10 @@ video {
|
|
|
2265
2360
|
.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
|
|
2266
2361
|
cursor: not-allowed;
|
|
2267
2362
|
}
|
|
2363
|
+
.peer:disabled ~ .peer-disabled\:border-l-input-stroke-disabled {
|
|
2364
|
+
--tw-border-opacity: 1;
|
|
2365
|
+
border-left-color: rgb(var(--input-disabled-stroke-color) / var(--tw-border-opacity));
|
|
2366
|
+
}
|
|
2268
2367
|
.peer:disabled ~ .peer-disabled\:opacity-70 {
|
|
2269
2368
|
opacity: 0.7;
|
|
2270
2369
|
}
|
|
@@ -2334,9 +2433,325 @@ video {
|
|
|
2334
2433
|
.\[\&\>tr\]\:last\:border-b-0:last-child>tr {
|
|
2335
2434
|
border-bottom-width: 0px;
|
|
2336
2435
|
}
|
|
2436
|
+
.\[\&_button\]\:\!border button {
|
|
2437
|
+
border-width: 1px !important;
|
|
2438
|
+
}
|
|
2439
|
+
.\[\&_button\]\:\!border-solid button {
|
|
2440
|
+
border-style: solid !important;
|
|
2441
|
+
}
|
|
2442
|
+
.\[\&_button\]\:\!border-primary button {
|
|
2443
|
+
--tw-border-opacity: 1 !important;
|
|
2444
|
+
border-color: rgb(var(--primary-default) / var(--tw-border-opacity)) !important;
|
|
2445
|
+
}
|
|
2337
2446
|
.\[\&_tr\:last-child\]\:border-0 tr:last-child {
|
|
2338
2447
|
border-width: 0px;
|
|
2339
2448
|
}
|
|
2340
2449
|
.\[\&_tr\]\:border-b tr {
|
|
2341
2450
|
border-bottom-width: 1px;
|
|
2342
|
-
}
|
|
2451
|
+
}
|
|
2452
|
+
/* Variables declaration */
|
|
2453
|
+
/* prettier-ignore */
|
|
2454
|
+
.rdp-root {
|
|
2455
|
+
--rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
|
|
2456
|
+
--rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */
|
|
2457
|
+
--rdp-font-family: system-ui; /* The font family used by the calendar. Note that `inherit`does not work here. */
|
|
2458
|
+
|
|
2459
|
+
--rdp-day-font: inherit; /* The font used for the day cells. */
|
|
2460
|
+
--rdp-day-height: 2.75rem; /* The height of the day cells. */
|
|
2461
|
+
--rdp-day-width: 2.75rem; /* The width of the day cells. */
|
|
2462
|
+
|
|
2463
|
+
--rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
|
|
2464
|
+
--rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
|
|
2465
|
+
--rdp-day_button-height: var(--rdp-day-width); /* The height of the day cells. */
|
|
2466
|
+
--rdp-day_button-width: var(--rdp-day-height); /* The width of the day cells. */
|
|
2467
|
+
|
|
2468
|
+
--rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
|
|
2469
|
+
--rdp-selected-font: bold large var(--rdp-font-family); /* The font of the selected days. */
|
|
2470
|
+
--rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
|
|
2471
|
+
--rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
|
|
2472
|
+
--rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */
|
|
2473
|
+
|
|
2474
|
+
--rdp-dropdown-gap: 0.5rem;/* The gap between the dropdowns used in the month captons. */
|
|
2475
|
+
|
|
2476
|
+
--rdp-month_caption-font: bold larger var(--rdp-font-family); /* The font of the month caption. */
|
|
2477
|
+
--rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
|
|
2478
|
+
|
|
2479
|
+
--rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
|
|
2480
|
+
--rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
|
|
2481
|
+
--rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
|
|
2482
|
+
--rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
|
|
2483
|
+
|
|
2484
|
+
--rdp-range_middle-background-color: var(--rdp-accent-background-color); /* The color of the background for days in the middle of a range. */
|
|
2485
|
+
--rdp-range_middle-font: normal medium var(--rdp-font-family); /* The font for days in the middle of a range. */
|
|
2486
|
+
--rdp-range_middle-foreground-color: white; /* The font for days in the middle of a range. */
|
|
2487
|
+
--rdp-range_middle-color: inherit;/* The color of the range text. */
|
|
2488
|
+
|
|
2489
|
+
--rdp-range_start-color: white; /* The color of the range text. */
|
|
2490
|
+
--rdp-range_start-background: linear-gradient(var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50%); /* Used for the background of the start of the selected range. */
|
|
2491
|
+
--rdp-range_start-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the start of the selected range. */
|
|
2492
|
+
|
|
2493
|
+
--rdp-range_end-background: linear-gradient(var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50%); /* Used for the background of the end of the selected range. */
|
|
2494
|
+
--rdp-range_end-color: white;/* The color of the range text. */
|
|
2495
|
+
--rdp-range_end-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the end of the selected range. */
|
|
2496
|
+
|
|
2497
|
+
--rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
|
|
2498
|
+
--rdp-week_number-border: 2px solid transparent; /* The border of the week number. */
|
|
2499
|
+
--rdp-week_number-font: 400 small var(--rdp-font-family); /* The font of the week number cells. */
|
|
2500
|
+
--rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
|
|
2501
|
+
--rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
|
|
2502
|
+
--rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
|
|
2503
|
+
--rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
|
|
2504
|
+
|
|
2505
|
+
--rdp-weekday-font: 500 smaller var(--rdp-font-family); /* The font of the weekday. */
|
|
2506
|
+
--rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
|
|
2507
|
+
--rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
|
|
2508
|
+
--rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
|
|
2509
|
+
|
|
2510
|
+
--rdp-gradient-direction: 90deg;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.rdp-root[dir="rtl"] {
|
|
2514
|
+
--rdp-gradient-direction: -90deg;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
/* Root of the component. */
|
|
2518
|
+
.rdp-root {
|
|
2519
|
+
position: relative; /* Required to position the navigation toolbar. */
|
|
2520
|
+
box-sizing: border-box;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
.rdp-root * {
|
|
2524
|
+
box-sizing: border-box;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
/* Reset buttons */
|
|
2528
|
+
.rdp-root button {
|
|
2529
|
+
border: none;
|
|
2530
|
+
background: none;
|
|
2531
|
+
padding: 0;
|
|
2532
|
+
margin: 0;
|
|
2533
|
+
cursor: pointer;
|
|
2534
|
+
font: inherit;
|
|
2535
|
+
color: inherit;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
.rdp-day {
|
|
2539
|
+
width: var(--rdp-day-width);
|
|
2540
|
+
height: var(--rdp-day-height);
|
|
2541
|
+
font: var(--rdp-day-font);
|
|
2542
|
+
text-align: center;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
.rdp-day_button {
|
|
2546
|
+
justify-content: center;
|
|
2547
|
+
align-items: center;
|
|
2548
|
+
display: flex;
|
|
2549
|
+
|
|
2550
|
+
width: var(--rdp-day_button-width);
|
|
2551
|
+
height: var(--rdp-day_button-height);
|
|
2552
|
+
border: var(--rdp-day_button-border);
|
|
2553
|
+
border-radius: var(--rdp-day_button-border-radius);
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
.rdp-day_button:disabled {
|
|
2557
|
+
cursor: revert;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
.rdp-caption_label {
|
|
2561
|
+
z-index: 1;
|
|
2562
|
+
|
|
2563
|
+
position: relative;
|
|
2564
|
+
display: inline-flex;
|
|
2565
|
+
align-items: center;
|
|
2566
|
+
|
|
2567
|
+
white-space: nowrap;
|
|
2568
|
+
border: 0;
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
.rdp-button_next,
|
|
2572
|
+
.rdp-button_previous {
|
|
2573
|
+
-moz-appearance: none;
|
|
2574
|
+
-webkit-appearance: none;
|
|
2575
|
+
display: inline-flex;
|
|
2576
|
+
align-items: center;
|
|
2577
|
+
justify-content: center;
|
|
2578
|
+
margin: 0;
|
|
2579
|
+
padding: 0;
|
|
2580
|
+
position: relative;
|
|
2581
|
+
font: inherit;
|
|
2582
|
+
appearance: none;
|
|
2583
|
+
background: none;
|
|
2584
|
+
border: 0;
|
|
2585
|
+
color: inherit;
|
|
2586
|
+
cursor: pointer;
|
|
2587
|
+
|
|
2588
|
+
width: var(--rdp-nav_button-width);
|
|
2589
|
+
height: var(--rdp-nav_button-height);
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
.rdp-button_next:disabled,
|
|
2593
|
+
.rdp-button_previous:disabled {
|
|
2594
|
+
cursor: revert;
|
|
2595
|
+
|
|
2596
|
+
opacity: var(--rdp-nav_button-disabled-opacity);
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
.rdp-chevron {
|
|
2600
|
+
display: inline-block;
|
|
2601
|
+
fill: var(--rdp-accent-color);
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
|
|
2605
|
+
transform: rotate(180deg);
|
|
2606
|
+
transform-origin: 50%;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
.rdp-dropdowns {
|
|
2610
|
+
position: relative;
|
|
2611
|
+
display: inline-flex;
|
|
2612
|
+
align-items: center;
|
|
2613
|
+
gap: var(--rdp-dropdown-gap);
|
|
2614
|
+
}
|
|
2615
|
+
.rdp-dropdown {
|
|
2616
|
+
z-index: 2;
|
|
2617
|
+
|
|
2618
|
+
/* Reset */
|
|
2619
|
+
opacity: 0;
|
|
2620
|
+
-webkit-appearance: none;
|
|
2621
|
+
-moz-appearance: none;
|
|
2622
|
+
appearance: none;
|
|
2623
|
+
position: absolute;
|
|
2624
|
+
inset-block-start: 0;
|
|
2625
|
+
inset-block-end: 0;
|
|
2626
|
+
inset-inline-start: 0;
|
|
2627
|
+
width: 100%;
|
|
2628
|
+
margin: 0;
|
|
2629
|
+
padding: 0;
|
|
2630
|
+
cursor: inherit;
|
|
2631
|
+
border: none;
|
|
2632
|
+
line-height: inherit;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
.rdp-dropdown_root {
|
|
2636
|
+
position: relative;
|
|
2637
|
+
display: inline-flex;
|
|
2638
|
+
align-items: center;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
.rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
|
|
2642
|
+
opacity: var(--rdp-disabled-opacity);
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
.rdp-month_caption {
|
|
2646
|
+
display: flex;
|
|
2647
|
+
align-content: center;
|
|
2648
|
+
height: var(--rdp-nav-height);
|
|
2649
|
+
font: var(--rdp-month_caption-font);
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
.rdp-months {
|
|
2653
|
+
position: relative;
|
|
2654
|
+
display: flex;
|
|
2655
|
+
flex-wrap: wrap;
|
|
2656
|
+
gap: var(--rdp-months-gap);
|
|
2657
|
+
max-width: -moz-fit-content;
|
|
2658
|
+
max-width: fit-content;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
.rdp-month_grid {
|
|
2662
|
+
border-collapse: collapse;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
.rdp-nav {
|
|
2666
|
+
position: absolute;
|
|
2667
|
+
inset-block-start: 0;
|
|
2668
|
+
inset-inline-end: 0;
|
|
2669
|
+
|
|
2670
|
+
display: flex;
|
|
2671
|
+
align-items: center;
|
|
2672
|
+
|
|
2673
|
+
height: var(--rdp-nav-height);
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
.rdp-weekday {
|
|
2677
|
+
opacity: var(--rdp-weekday-opacity);
|
|
2678
|
+
padding: var(--rdp-weekday-padding);
|
|
2679
|
+
font: var(--rdp-weekday-font);
|
|
2680
|
+
text-align: var(--rdp-weekday-text-align);
|
|
2681
|
+
text-transform: var(--rdp-weekday-text-transform);
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
.rdp-week_number {
|
|
2685
|
+
opacity: var(--rdp-week_number-opacity);
|
|
2686
|
+
font: var(--rdp-week_number-font);
|
|
2687
|
+
height: var(--rdp-week_number-height);
|
|
2688
|
+
width: var(--rdp-week_number-width);
|
|
2689
|
+
border: var(--rdp-week_number-border);
|
|
2690
|
+
border-radius: var(--rdp-week_number-border-radius);
|
|
2691
|
+
text-align: var(--rdp-weeknumber-text-align);
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
/* DAY MODIFIERS */
|
|
2695
|
+
.rdp-today:not(.rdp-outside) {
|
|
2696
|
+
color: var(--rdp-today-color);
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
.rdp-selected {
|
|
2700
|
+
font: var(--rdp-selected-font);
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
.rdp-selected .rdp-day_button {
|
|
2704
|
+
border: var(--rdp-selected-border);
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
.rdp-outside {
|
|
2708
|
+
opacity: var(--rdp-outside-opacity);
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
.rdp-disabled {
|
|
2712
|
+
opacity: var(--rdp-disabled-opacity);
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
.rdp-hidden {
|
|
2716
|
+
visibility: hidden;
|
|
2717
|
+
color: var(--rdp-range_start-color);
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
.rdp-range_start {
|
|
2721
|
+
background: var(--rdp-range_start-background);
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
.rdp-range_start .rdp-day_button {
|
|
2725
|
+
background-color: var(--rdp-range_start-date-background-color);
|
|
2726
|
+
color: var(--rdp-range_start-color);
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
.rdp-range_middle {
|
|
2730
|
+
background-color: var(--rdp-range_middle-background-color);
|
|
2731
|
+
font: var(--rdp-range_middle-font);
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
.rdp-range_middle .rdp-day_button {
|
|
2735
|
+
border-color: transparent;
|
|
2736
|
+
border: unset;
|
|
2737
|
+
border-radius: unset;
|
|
2738
|
+
color: var(--rdp-range_middle-color);
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
.rdp-range_end {
|
|
2742
|
+
background: var(--rdp-range_end-background);
|
|
2743
|
+
color: var(--rdp-range_end-color);
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
.rdp-range_end .rdp-day_button {
|
|
2747
|
+
color: var(--rdp-range_start-color);
|
|
2748
|
+
background-color: var(--rdp-range_end-date-background-color);
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
.rdp-range_start.rdp-range_end {
|
|
2752
|
+
background: revert;
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
.rdp-focusable {
|
|
2756
|
+
cursor: pointer;
|
|
2757
|
+
}
|