@rovula/ui 0.0.18 → 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.
Files changed (33) hide show
  1. package/dist/cjs/bundle.css +363 -100
  2. package/dist/cjs/bundle.js +3 -3
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/Calendar/Calendar.d.ts +1 -0
  5. package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +573 -121
  6. package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +3 -3
  7. package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +2 -2
  8. package/dist/components/Calendar/Calendar.js +4 -13
  9. package/dist/components/Calendar/Calendar.stories.js +4 -2
  10. package/dist/components/DatePicker/DatePicker.js +1 -2
  11. package/dist/components/Popover/Popover.js +1 -1
  12. package/dist/components/TextInput/TextInput.stories.js +1 -1
  13. package/dist/components/TextInput/TextInput.styles.js +1 -1
  14. package/dist/esm/bundle.css +363 -100
  15. package/dist/esm/bundle.js +3 -3
  16. package/dist/esm/bundle.js.map +1 -1
  17. package/dist/esm/types/components/Calendar/Calendar.d.ts +1 -0
  18. package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +573 -121
  19. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +3 -3
  20. package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/src/theme/global.css +67 -121
  23. package/dist/theme/global.css +8 -4
  24. package/dist/theme/presets/colors.js +2 -2
  25. package/package.json +2 -2
  26. package/src/components/Calendar/Calendar.stories.tsx +4 -0
  27. package/src/components/Calendar/Calendar.tsx +23 -40
  28. package/src/components/DatePicker/DatePicker.tsx +7 -7
  29. package/src/components/Popover/Popover.tsx +1 -1
  30. package/src/components/TextInput/TextInput.stories.tsx +1 -1
  31. package/src/components/TextInput/TextInput.styles.ts +1 -1
  32. package/src/theme/global.css +8 -4
  33. package/src/theme/presets/colors.js +2 -2
@@ -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: 220 100% 99%;
585
- --foreground: 222.2 47.4% 11.2%;
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: 0 0% 100%;
597
- --card-foreground: 222.2 47.4% 11.2%;
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
- background-color: hsl(var(--background));
618
- color: hsl(var(--foreground));
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 {
@@ -752,9 +758,6 @@ video {
752
758
  .pointer-events-none {
753
759
  pointer-events: none;
754
760
  }
755
- .invisible {
756
- visibility: hidden;
757
- }
758
761
  .static {
759
762
  position: static;
760
763
  }
@@ -783,9 +786,6 @@ video {
783
786
  .-top-1\.5 {
784
787
  top: -0.375rem;
785
788
  }
786
- .left-1 {
787
- left: 0.25rem;
788
- }
789
789
  .left-3 {
790
790
  left: 0.75rem;
791
791
  }
@@ -798,9 +798,6 @@ video {
798
798
  .right-0 {
799
799
  right: 0px;
800
800
  }
801
- .right-1 {
802
- right: 0.25rem;
803
- }
804
801
  .right-4 {
805
802
  right: 1rem;
806
803
  }
@@ -913,6 +910,10 @@ video {
913
910
  width: 1.75rem;
914
911
  height: 1.75rem;
915
912
  }
913
+ .size-9 {
914
+ width: 2.25rem;
915
+ height: 2.25rem;
916
+ }
916
917
  .size-\[14px\] {
917
918
  width: 14px;
918
919
  height: 14px;
@@ -938,9 +939,6 @@ video {
938
939
  .h-4 {
939
940
  height: 1rem;
940
941
  }
941
- .h-9 {
942
- height: 2.25rem;
943
- }
944
942
  .h-\[18px\] {
945
943
  height: 18px;
946
944
  }
@@ -996,15 +994,9 @@ video {
996
994
  .w-4 {
997
995
  width: 1rem;
998
996
  }
999
- .w-72 {
1000
- width: 18rem;
1001
- }
1002
997
  .w-8 {
1003
998
  width: 2rem;
1004
999
  }
1005
- .w-9 {
1006
- width: 2.25rem;
1007
- }
1008
1000
  .w-\[100px\] {
1009
1001
  width: 100px;
1010
1002
  }
@@ -1053,6 +1045,9 @@ video {
1053
1045
  .w-full {
1054
1046
  width: 100%;
1055
1047
  }
1048
+ .min-w-72 {
1049
+ min-width: 18rem;
1050
+ }
1056
1051
  .max-w-3xl {
1057
1052
  max-width: 48rem;
1058
1053
  }
@@ -1169,21 +1164,11 @@ video {
1169
1164
  margin-right: calc(-0.5rem * var(--tw-space-x-reverse));
1170
1165
  margin-left: calc(-0.5rem * calc(1 - var(--tw-space-x-reverse)));
1171
1166
  }
1172
- .space-x-1 > :not([hidden]) ~ :not([hidden]) {
1173
- --tw-space-x-reverse: 0;
1174
- margin-right: calc(0.25rem * var(--tw-space-x-reverse));
1175
- margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
1176
- }
1177
1167
  .space-x-2 > :not([hidden]) ~ :not([hidden]) {
1178
1168
  --tw-space-x-reverse: 0;
1179
1169
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
1180
1170
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
1181
1171
  }
1182
- .space-y-1 > :not([hidden]) ~ :not([hidden]) {
1183
- --tw-space-y-reverse: 0;
1184
- margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
1185
- margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
1186
- }
1187
1172
  .space-y-2 > :not([hidden]) ~ :not([hidden]) {
1188
1173
  --tw-space-y-reverse: 0;
1189
1174
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
@@ -1286,6 +1271,12 @@ video {
1286
1271
  .border-solid {
1287
1272
  border-style: solid;
1288
1273
  }
1274
+ .border-none {
1275
+ border-style: none;
1276
+ }
1277
+ .border-\[rgb\(var\(--card\)\)\] {
1278
+ border-color: rgb(var(--card));
1279
+ }
1289
1280
  .border-error {
1290
1281
  --tw-border-opacity: 1;
1291
1282
  border-color: rgb(var(--error-100) / var(--tw-border-opacity));
@@ -1357,11 +1348,18 @@ video {
1357
1348
  --tw-border-opacity: 1;
1358
1349
  border-left-color: rgb(var(--input-default-stroke-color) / var(--tw-border-opacity));
1359
1350
  }
1351
+ .bg-\[rgb\(var\(--card\)\)\] {
1352
+ background-color: rgb(var(--card));
1353
+ }
1360
1354
  .bg-\[rgb\(var\(--navbar-bg-color\)\)\] {
1361
1355
  background-color: rgb(var(--navbar-bg-color));
1362
1356
  }
1357
+ .bg-\[rgb\(var\(--other-bg-2\)\)\] {
1358
+ background-color: rgb(var(--other-bg-2));
1359
+ }
1363
1360
  .bg-background {
1364
- background-color: hsl(var(--background));
1361
+ --tw-bg-opacity: 1;
1362
+ background-color: rgb(var(--background) / var(--tw-bg-opacity));
1365
1363
  }
1366
1364
  .bg-black {
1367
1365
  --tw-bg-opacity: 1;
@@ -1467,6 +1465,9 @@ video {
1467
1465
  .fill-input-text-disabled {
1468
1466
  fill: rgb(var(--input-disabled-text-color) / 1);
1469
1467
  }
1468
+ .fill-primary {
1469
+ fill: rgb(var(--primary-default) / 1);
1470
+ }
1470
1471
  .fill-red-500 {
1471
1472
  fill: #ef4444;
1472
1473
  }
@@ -1586,9 +1587,6 @@ video {
1586
1587
  .pe-\[72px\] {
1587
1588
  padding-inline-end: 72px;
1588
1589
  }
1589
- .pt-1 {
1590
- padding-top: 0.25rem;
1591
- }
1592
1590
  .text-left {
1593
1591
  text-align: left;
1594
1592
  }
@@ -1604,9 +1602,6 @@ video {
1604
1602
  .font-sans {
1605
1603
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1606
1604
  }
1607
- .text-\[0\.8rem\] {
1608
- font-size: 0.8rem;
1609
- }
1610
1605
  .text-base {
1611
1606
  font-size: 1rem;
1612
1607
  line-height: 1.5rem;
@@ -1730,9 +1725,6 @@ video {
1730
1725
  .font-medium {
1731
1726
  font-weight: 500;
1732
1727
  }
1733
- .font-normal {
1734
- font-weight: 400;
1735
- }
1736
1728
  .capitalize {
1737
1729
  text-transform: capitalize;
1738
1730
  }
@@ -1745,6 +1737,9 @@ video {
1745
1737
  .tracking-tight {
1746
1738
  letter-spacing: -0.025em;
1747
1739
  }
1740
+ .text-\[rgb\(var\(--card-foreground\)\)\] {
1741
+ color: rgb(var(--card-foreground));
1742
+ }
1748
1743
  .text-\[rgb\(var\(--navbar-text-color\)\)\] {
1749
1744
  color: rgb(var(--navbar-text-color));
1750
1745
  }
@@ -1767,6 +1762,10 @@ video {
1767
1762
  --tw-text-opacity: 1;
1768
1763
  color: rgb(243 244 246 / var(--tw-text-opacity));
1769
1764
  }
1765
+ .text-gray-400 {
1766
+ --tw-text-opacity: 1;
1767
+ color: rgb(156 163 175 / var(--tw-text-opacity));
1768
+ }
1770
1769
  .text-grey2-500\/\[\.32\] {
1771
1770
  color: rgb(var(--grey2-500) / .32);
1772
1771
  }
@@ -1871,8 +1870,8 @@ video {
1871
1870
  .underline-offset-4 {
1872
1871
  text-underline-offset: 4px;
1873
1872
  }
1874
- .opacity-50 {
1875
- opacity: 0.5;
1873
+ .caret-primary {
1874
+ caret-color: rgb(var(--primary-default) / 1);
1876
1875
  }
1877
1876
  .opacity-70 {
1878
1877
  opacity: 0.7;
@@ -1920,7 +1919,7 @@ video {
1920
1919
  --tw-ring-color: rgb(var(--input-disabled-stroke-color) / var(--tw-ring-opacity));
1921
1920
  }
1922
1921
  .ring-offset-background {
1923
- --tw-ring-offset-color: hsl(var(--background));
1922
+ --tw-ring-offset-color: rgb(var(--background) / 1);
1924
1923
  }
1925
1924
  .blur {
1926
1925
  --tw-blur: blur(8px);
@@ -2085,12 +2084,6 @@ video {
2085
2084
  .placeholder\:text-transparent::placeholder {
2086
2085
  color: transparent;
2087
2086
  }
2088
- .focus-within\:relative:focus-within {
2089
- position: relative;
2090
- }
2091
- .focus-within\:z-20:focus-within {
2092
- z-index: 20;
2093
- }
2094
2087
  .hover\:border-error-120:hover {
2095
2088
  --tw-border-opacity: 1;
2096
2089
  border-color: rgb(var(--error-120) / var(--tw-border-opacity));
@@ -2125,10 +2118,6 @@ video {
2125
2118
  .hover\:bg-main-transparent-secondary-8:hover {
2126
2119
  background-color: rgb(var(--main-transparent-secondary) / 0.8);
2127
2120
  }
2128
- .hover\:bg-primary:hover {
2129
- --tw-bg-opacity: 1;
2130
- background-color: rgb(var(--primary-default) / var(--tw-bg-opacity));
2131
- }
2132
2121
  .hover\:bg-primary-100:hover {
2133
2122
  --tw-bg-opacity: 1;
2134
2123
  background-color: rgb(var(--primary-100) / var(--tw-bg-opacity));
@@ -2176,10 +2165,6 @@ video {
2176
2165
  --tw-text-opacity: 1;
2177
2166
  color: rgb(var(--primary-default) / var(--tw-text-opacity));
2178
2167
  }
2179
- .hover\:text-primary-foreground:hover {
2180
- --tw-text-opacity: 1;
2181
- color: rgb(var(--primary-foreground) / var(--tw-text-opacity));
2182
- }
2183
2168
  .hover\:text-secondary-5:hover {
2184
2169
  --tw-text-opacity: 1;
2185
2170
  color: rgb(var(--secondary-5) / var(--tw-text-opacity));
@@ -2198,10 +2183,6 @@ video {
2198
2183
  --tw-border-opacity: 1;
2199
2184
  border-color: rgb(var(--input-default-stroke-color) / var(--tw-border-opacity));
2200
2185
  }
2201
- .focus\:bg-primary:focus {
2202
- --tw-bg-opacity: 1;
2203
- background-color: rgb(var(--primary-default) / var(--tw-bg-opacity));
2204
- }
2205
2186
  .focus\:pe-10:focus {
2206
2187
  padding-inline-end: 2.5rem;
2207
2188
  }
@@ -2211,10 +2192,6 @@ video {
2211
2192
  .focus\:pe-8:focus {
2212
2193
  padding-inline-end: 2rem;
2213
2194
  }
2214
- .focus\:text-primary-foreground:focus {
2215
- --tw-text-opacity: 1;
2216
- color: rgb(var(--primary-foreground) / var(--tw-text-opacity));
2217
- }
2218
2195
  .focus\:outline-none:focus {
2219
2196
  outline: 2px solid transparent;
2220
2197
  outline-offset: 2px;
@@ -2399,12 +2376,6 @@ video {
2399
2376
  .aria-disabled\:opacity-50[aria-disabled="true"] {
2400
2377
  opacity: 0.5;
2401
2378
  }
2402
- .aria-selected\:opacity-100[aria-selected="true"] {
2403
- opacity: 1;
2404
- }
2405
- .aria-selected\:opacity-30[aria-selected="true"] {
2406
- opacity: 0.3;
2407
- }
2408
2379
  .data-\[state\=checked\]\:border-primary[data-state=checked] {
2409
2380
  --tw-border-opacity: 1;
2410
2381
  border-color: rgb(var(--primary-default) / var(--tw-border-opacity));
@@ -2445,18 +2416,6 @@ video {
2445
2416
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
2446
2417
  }
2447
2418
 
2448
- .sm\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
2449
- --tw-space-x-reverse: 0;
2450
- margin-right: calc(1rem * var(--tw-space-x-reverse));
2451
- margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
2452
- }
2453
-
2454
- .sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
2455
- --tw-space-y-reverse: 0;
2456
- margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
2457
- margin-bottom: calc(0px * var(--tw-space-y-reverse));
2458
- }
2459
-
2460
2419
  .sm\:rounded-\[var\(--popup-rounded\)\] {
2461
2420
  border-radius: var(--popup-rounded);
2462
2421
  }
@@ -2465,18 +2424,6 @@ video {
2465
2424
  text-align: left;
2466
2425
  }
2467
2426
  }
2468
- .first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child {
2469
- border-top-left-radius: calc(var(--radius) - 2px);
2470
- border-bottom-left-radius: calc(var(--radius) - 2px);
2471
- }
2472
- .last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child {
2473
- border-top-right-radius: calc(var(--radius) - 2px);
2474
- border-bottom-right-radius: calc(var(--radius) - 2px);
2475
- }
2476
- .\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end) {
2477
- border-top-right-radius: calc(var(--radius) - 2px);
2478
- border-bottom-right-radius: calc(var(--radius) - 2px);
2479
- }
2480
2427
  .\[\&\:has\(\[role\=checkbox\]\)\]\:w-4:has([role=checkbox]) {
2481
2428
  width: 1rem;
2482
2429
  }
@@ -2486,9 +2433,325 @@ video {
2486
2433
  .\[\&\>tr\]\:last\:border-b-0:last-child>tr {
2487
2434
  border-bottom-width: 0px;
2488
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
+ }
2489
2446
  .\[\&_tr\:last-child\]\:border-0 tr:last-child {
2490
2447
  border-width: 0px;
2491
2448
  }
2492
2449
  .\[\&_tr\]\:border-b tr {
2493
2450
  border-bottom-width: 1px;
2494
- }
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
+ }