@typlog/ui 0.12.2 → 0.12.3

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/components.css CHANGED
@@ -149,18 +149,20 @@
149
149
  box-shadow: inset 0 0 1px var(--accent-a8);
150
150
  }
151
151
 
152
+ @layer components {
152
153
  .ui-Badge {
153
- display: inline-flex;
154
- align-items: center;
155
- white-space: nowrap;
156
- font-weight: var(--font-weight-medium);
157
- font-style: normal;
158
- flex-shrink: 0;
159
- line-height: 1;
160
- height: -moz-fit-content;
161
- height: fit-content;
162
- width: -moz-fit-content;
163
- width: fit-content;
154
+ display: inline-flex;
155
+ align-items: center;
156
+ white-space: nowrap;
157
+ font-weight: var(--font-weight-medium);
158
+ font-style: normal;
159
+ flex-shrink: 0;
160
+ line-height: 1;
161
+ height: -moz-fit-content;
162
+ height: fit-content;
163
+ width: -moz-fit-content;
164
+ width: fit-content;
165
+ }
164
166
  }
165
167
  .ui-Badge:where(.r-size-1) {
166
168
  font-size: var(--font-size-1);
@@ -541,12 +543,14 @@
541
543
  --scrollarea-scrollbar-vertical-margin-left: var(--space-1);
542
544
  --scrollarea-scrollbar-vertical-margin-right: var(--space-1);
543
545
  }
546
+ @layer components {
544
547
  .ui-ScrollArea {
545
- display: flex;
546
- flex-direction: column;
547
- overflow: hidden;
548
- width: 100%;
549
- height: 100%;
548
+ display: flex;
549
+ flex-direction: column;
550
+ overflow: hidden;
551
+ width: 100%;
552
+ height: 100%;
553
+ }
550
554
  }
551
555
  .ui-ScrollAreaViewport {
552
556
  display: flex;
@@ -554,6 +558,13 @@
554
558
  width: 100%;
555
559
  height: 100%;
556
560
  }
561
+ .ui-ScrollAreaViewport > div {
562
+ display: block;
563
+ min-width: -moz-fit-content;
564
+ min-width: fit-content;
565
+ width: 100%;
566
+ flex-grow: 1;
567
+ }
557
568
  .ui-ScrollAreaViewport:where(:focus-visible) + :where(.ui-ScrollAreaViewportFocusRing) {
558
569
  position: absolute;
559
570
  inset: 0;
@@ -638,6 +649,59 @@
638
649
  background-color: var(--gray-a9);
639
650
  }
640
651
 
652
+ .ui-Tooltip {
653
+ box-sizing: border-box;
654
+ padding: var(--space-1) var(--space-2);
655
+ border-radius: var(--radius-2);
656
+ transform-origin: var(--reka-tooltip-content-transform-origin);
657
+ animation-duration: 140ms;
658
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
659
+ background-color: var(--accent-11);
660
+ }
661
+ @media (prefers-reduced-motion: no-preference) {
662
+ .ui-Tooltip:where([data-state='delayed-open']):where([data-side='top']) {
663
+ animation-name: ui-slide-from-top, ui-fade-in;
664
+ }
665
+ .ui-Tooltip:where([data-state='delayed-open']):where([data-side='bottom']) {
666
+ animation-name: ui-slide-from-bottom, ui-fade-in;
667
+ }
668
+ .ui-Tooltip:where([data-state='delayed-open']):where([data-side='left']) {
669
+ animation-name: ui-slide-from-left, ui-fade-in;
670
+ }
671
+ .ui-Tooltip:where([data-state='delayed-open']):where([data-side='right']) {
672
+ animation-name: ui-slide-from-right, ui-fade-in;
673
+ }
674
+ }
675
+ .ui-TooltipText {
676
+ color: var(--gray-1);
677
+ -webkit-user-select: none;
678
+ -moz-user-select: none;
679
+ user-select: none;
680
+ cursor: default;
681
+ font-size: var(--font-size-1);
682
+ line-height: var(--line-height-1);
683
+ letter-spacing: var(--letter-spacing-1);
684
+ }
685
+ .ui-TooltipArrow {
686
+ fill: var(--accent-11);
687
+ }
688
+
689
+ /* special handle for gray color */
690
+ .ui-Tooltip:where([data-accent-color="gray"]) {
691
+ background-color: var(--gray-12);
692
+ }
693
+ .ui-Tooltip:where([data-accent-color="gray"]) :where(.ui-TooltipArrow) {
694
+ fill: var(--gray-12);
695
+ }
696
+
697
+ @layer components {
698
+ .ui-DialogCloseButton {
699
+ position: absolute;
700
+ top: calc(var(--dialog-popup-padding) / 2);
701
+ right: calc(var(--dialog-popup-padding) / 2);
702
+ }
703
+ }
704
+
641
705
  .ui-DialogTitle {
642
706
  font-size: var(--font-size-4);
643
707
  font-weight: var(--font-weight-semibold);
@@ -695,11 +759,6 @@
695
759
  max-height: var(--dialog-popup-max-height);
696
760
  padding: var(--dialog-popup-padding);
697
761
  }
698
- :where(.ui-DialogPopup) .ui-CloseButton {
699
- position: absolute;
700
- top: calc(var(--dialog-popup-padding) / 2);
701
- right: calc(var(--dialog-popup-padding) / 2);
702
- }
703
762
  }
704
763
  .ui-DialogPopup:where(.r-size-1) {
705
764
  --dialog-popup-padding: var(--space-4);
@@ -968,6 +1027,175 @@ to {
968
1027
  --popover-popup-padding: var(--space-4);
969
1028
  }
970
1029
 
1030
+ .ui-NavigationMenuRoot {
1031
+ position: relative;
1032
+ z-index: 1;
1033
+ }
1034
+ .ui-NavigationMenuViewport {
1035
+ position: absolute;
1036
+ margin-top: 10px;
1037
+ top: 100%;
1038
+ left: var(--reka-navigation-menu-viewport-left);
1039
+ height: var(--reka-navigation-menu-viewport-height);
1040
+ background-color: white;
1041
+ border-radius: var(--radius-4);
1042
+ overflow: hidden;
1043
+ box-shadow: var(--shadow-3);
1044
+ width: 100%;
1045
+ max-width: var(--reka-navigation-menu-viewport-width);
1046
+ transition: width, height, 300ms ease;
1047
+ transform-origin: top center;
1048
+ }
1049
+ .ui-NavigationMenuViewport:where([data-state="open"]) {
1050
+ animation: navigation-menu-viewport-scale-in 200ms ease;
1051
+ }
1052
+ .ui-NavigationMenuViewport:where([data-state="closed"]) {
1053
+ animation: navigation-menu-viewport-scale-out 200ms ease;
1054
+ }
1055
+ @keyframes navigation-menu-viewport-scale-in {
1056
+ from {
1057
+ opacity: 0;
1058
+ transform: rotateX(-30deg) scale(0.9);
1059
+ }
1060
+ to {
1061
+ opacity: 1;
1062
+ transform: rotateX(0deg) scale(1);
1063
+ }
1064
+ }
1065
+ @keyframes navigation-menu-viewport-scale-out {
1066
+ from {
1067
+ opacity: 1;
1068
+ transform: rotateX(0deg) scale(1);
1069
+ }
1070
+ to {
1071
+ opacity: 0;
1072
+ transform: rotateX(-10deg) scale(0.95);
1073
+ }
1074
+ }
1075
+
1076
+ @layer components {
1077
+ .ui-NavigationMenuList {
1078
+ display: flex;
1079
+ gap: var(--navigation-menu-gap);
1080
+ }
1081
+ }
1082
+ .ui-NavigationMenuList:where(.r-size-1) {
1083
+ --navigation-menu-gap: calc(var(--space-1) / 2);
1084
+ --navigation-menu-height: var(--space-5);
1085
+ --navigation-menu-padding-x: var(--space-2);
1086
+ --navigation-menu-font-size: var(--font-size-1);
1087
+ --navigation-menu-line-height: var(--line-height-1);
1088
+ --navigation-menu-letter-spacing: var(--letter-spacing-1);
1089
+ --navigation-menu-radius: max(var(--radius-1), var(--radius-full));
1090
+ }
1091
+ .ui-NavigationMenuList:where(.r-size-2) {
1092
+ --navigation-menu-gap: var(--space-1);
1093
+ --navigation-menu-height: var(--space-6);
1094
+ --navigation-menu-padding-x: var(--space-3);
1095
+ --navigation-menu-font-size: var(--font-size-2);
1096
+ --navigation-menu-line-height: var(--line-height-2);
1097
+ --navigation-menu-letter-spacing: var(--letter-spacing-2);
1098
+ --navigation-menu-radius: max(var(--radius-2), var(--radius-full));
1099
+ }
1100
+ .ui-NavigationMenuList:where(.r-size-3) {
1101
+ --navigation-menu-gap: calc(var(--space-1) * 1.5);
1102
+ --navigation-menu-height: var(--space-7);
1103
+ --navigation-menu-padding-x: var(--space-4);
1104
+ --navigation-menu-font-size: var(--font-size-3);
1105
+ --navigation-menu-line-height: var(--line-height-3);
1106
+ --navigation-menu-letter-spacing: var(--letter-spacing-3);
1107
+ --navigation-menu-radius: max(var(--radius-3), var(--radius-full));
1108
+ }
1109
+ .ui-NavigationMenuIndicator {
1110
+ position: absolute;
1111
+ display: flex;
1112
+ align-items: flex-end;
1113
+ justify-content: center;
1114
+ height: 10px;
1115
+ top: 100%;
1116
+ overflow: hidden;
1117
+ z-index: 1;
1118
+ transition: width, transform 250ms ease;
1119
+ width: var(--reka-navigation-menu-indicator-size);
1120
+ transform: translateX(var(--reka-navigation-menu-indicator-position));
1121
+ }
1122
+ .ui-NavigationMenuIndicator:where([data-state="visible"]) {
1123
+ animation: ui-fade-in 200ms ease;
1124
+ }
1125
+ .ui-NavigationMenuIndicator:where([data-state="hidden"]) {
1126
+ animation: ui-fade-out 200ms ease;
1127
+ }
1128
+ .ui-NavigationMenuIndicator:before {
1129
+ content: '';
1130
+ position: relative;
1131
+ top: 70%;
1132
+ background-color: var(--color-panel-solid);
1133
+ border: 1px solid var(--gray-a4);
1134
+ width: 10px;
1135
+ height: 10px;
1136
+ transform: rotate(45deg);
1137
+ border-top-left-radius: 2px;
1138
+ }
1139
+ @layer components {
1140
+ .ui-NavigationMenuTrigger,
1141
+ .ui-NavigationMenuLink {
1142
+ display: inline-flex;
1143
+ gap: var(--space-1);
1144
+ align-items: center;
1145
+ justify-content: center;
1146
+ flex-shrink: 0;
1147
+ -webkit-user-select: none;
1148
+ -moz-user-select: none;
1149
+ user-select: none;
1150
+ vertical-align: top;
1151
+ font-style: normal;
1152
+ text-align: center;
1153
+ white-space: nowrap;
1154
+ font-weight: var(--font-weight-medium);
1155
+ height: var(--navigation-menu-height);
1156
+ padding-left: var(--navigation-menu-padding-x);
1157
+ padding-right: var(--navigation-menu-padding-x);
1158
+ font-size: var(--navigation-menu-font-size);
1159
+ line-height: var(--navigation-menu-line-height);
1160
+ letter-spacing: var(--navigation-menu-letter-spacing);
1161
+ border-radius: var(--navigation-menu-radius);
1162
+ }
1163
+ .ui-NavigationMenuTrigger:where(:hover),
1164
+ .ui-NavigationMenuLink:where(:hover) {
1165
+ background-color: var(--accent-a2);
1166
+ }
1167
+ }
1168
+
1169
+ .ui-NavigationMenuTriggerArrow {
1170
+ transform: rotate(0deg);
1171
+ transition: transform 250ms ease;
1172
+ }
1173
+ :where(.ui-NavigationMenuTrigger[data-state="open"]) .ui-NavigationMenuTriggerArrow {
1174
+ transform: rotate(-180deg);
1175
+ }
1176
+
1177
+ @layer components {
1178
+ .ui-NavigationMenuContent {
1179
+ position: absolute;
1180
+ top: 0;
1181
+ left: 0;
1182
+ width: 100%;
1183
+ animation: var(--navigation-menu-content-animation);
1184
+ }
1185
+ }
1186
+ .ui-NavigationMenuContent:where([data-motion="from-start"]) {
1187
+ --navigation-menu-content-animation: enterFromLeft 250ms ease;
1188
+ }
1189
+ .ui-NavigationMenuContent:where([data-motion="to-start"]) {
1190
+ --navigation-menu-content-animation: exitToLeft 250ms ease;
1191
+ }
1192
+ .ui-NavigationMenuContent:where([data-motion="from-end"]) {
1193
+ --navigation-menu-content-animation: enterFromRight 250ms ease;
1194
+ }
1195
+ .ui-NavigationMenuContent:where([data-motion="to-end"]) {
1196
+ --navigation-menu-content-animation: exitToRight 250ms ease;
1197
+ }
1198
+
971
1199
  .ui-root {
972
1200
  --switch-disabled-blend-mode: multiply;
973
1201
  --switch-high-contrast-checked-color-overlay: var(--black-a8);
@@ -1144,16 +1372,18 @@ to {
1144
1372
  transition: none;
1145
1373
  }
1146
1374
 
1375
+ @layer components {
1147
1376
  .ui-Checkbox {
1148
- position: relative;
1149
- display: inline-flex;
1150
- align-items: center;
1151
- justify-content: center;
1152
- vertical-align: top;
1153
- flex-shrink: 0;
1154
- cursor: default;
1155
- height: var(--checkbox-size);
1156
- border-radius: var(--checkbox-border-radius);
1377
+ position: relative;
1378
+ display: inline-flex;
1379
+ align-items: center;
1380
+ justify-content: center;
1381
+ vertical-align: top;
1382
+ flex-shrink: 0;
1383
+ cursor: default;
1384
+ height: var(--checkbox-size);
1385
+ border-radius: var(--checkbox-border-radius);
1386
+ }
1157
1387
  }
1158
1388
  .ui-Checkbox::before {
1159
1389
  content: '';
@@ -1234,29 +1464,33 @@ to {
1234
1464
  color: var(--gray-a8);
1235
1465
  }
1236
1466
 
1467
+ @layer components {
1237
1468
  .ui-Toggle {
1238
- position: relative;
1239
- display: inline-flex;
1240
- align-items: center;
1241
- justify-content: center;
1242
- vertical-align: top;
1243
- flex-shrink: 0;
1244
- width: var(--toggle-size);
1245
- height: var(--toggle-size);
1469
+ position: relative;
1470
+ display: inline-flex;
1471
+ align-items: center;
1472
+ justify-content: center;
1473
+ vertical-align: top;
1474
+ flex-shrink: 0;
1475
+ border-radius: var(--toggle-border-radius);
1476
+ font-size: var(--toggle-font-size);
1477
+ width: var(--toggle-size);
1478
+ height: var(--toggle-size);
1479
+ }
1246
1480
  }
1247
1481
  .ui-Toggle:where(.r-size-1) {
1248
- border-radius: max(var(--radius-1), var(--radius-full));
1249
- font-size: var(--font-size-1);
1482
+ --toggle-border-radius: max(var(--radius-1), var(--radius-full));
1483
+ --toggle-font-size: var(--font-size-1);
1250
1484
  --toggle-size: var(--space-5);
1251
1485
  }
1252
1486
  .ui-Toggle:where(.r-size-2) {
1253
- border-radius: max(var(--radius-2), var(--radius-full));
1254
- font-size: var(--font-size-3);
1487
+ --toggle-border-radius: max(var(--radius-2), var(--radius-full));
1488
+ --toggle-font-size: var(--font-size-3);
1255
1489
  --toggle-size: var(--space-6);
1256
1490
  }
1257
1491
  .ui-Toggle:where(.r-size-3) {
1258
- border-radius: max(var(--radius-3), var(--radius-full));
1259
- font-size: var(--font-size-6);
1492
+ --toggle-border-radius: max(var(--radius-3), var(--radius-full));
1493
+ --toggle-font-size: var(--font-size-6);
1260
1494
  --toggle-size: var(--space-7);
1261
1495
  }
1262
1496
 
@@ -1319,14 +1553,16 @@ to {
1319
1553
  color: var(--gray-1);
1320
1554
  }
1321
1555
 
1556
+ @layer components {
1322
1557
  .ui-ToggleGroupRoot {
1323
- position: relative;
1324
- display: inline-flex;
1325
- align-items: center;
1326
- justify-content: center;
1327
- vertical-align: top;
1328
- flex-shrink: 0;
1329
- height: var(--toggle-group-height);
1558
+ position: relative;
1559
+ display: inline-flex;
1560
+ align-items: center;
1561
+ justify-content: center;
1562
+ vertical-align: top;
1563
+ flex-shrink: 0;
1564
+ height: var(--toggle-group-height);
1565
+ }
1330
1566
  }
1331
1567
  .ui-ToggleGroupRoot:where(.r-size-1) {
1332
1568
  font-size: var(--font-size-1);
@@ -1367,15 +1603,17 @@ to {
1367
1603
  --toggle-item-size: var(--toggle-group-height);
1368
1604
  }
1369
1605
 
1606
+ @layer components {
1370
1607
  .ui-ToggleGroupItem {
1371
- position: relative;
1372
- display: inline-flex;
1373
- align-items: center;
1374
- justify-content: center;
1375
- vertical-align: top;
1376
- flex-shrink: 0;
1377
- width: var(--toggle-item-size);
1378
- height: var(--toggle-item-size);
1608
+ position: relative;
1609
+ display: inline-flex;
1610
+ align-items: center;
1611
+ justify-content: center;
1612
+ vertical-align: top;
1613
+ flex-shrink: 0;
1614
+ width: var(--toggle-item-size);
1615
+ height: var(--toggle-item-size);
1616
+ }
1379
1617
  }
1380
1618
  .ui-ToggleGroupRoot:where(.r-variant-solid, .r-variant-surface, .r-variant-outline) :where(.ui-ToggleGroupItem:first-child) {
1381
1619
  border-top-left-radius: var(--toggle-radius);
@@ -2026,11 +2264,14 @@ to {
2026
2264
  --scrollarea-scrollbar-vertical-margin-bottom: var(--select-content-padding);
2027
2265
  --scrollarea-scrollbar-horizontal-margin-left: var(--select-content-padding);
2028
2266
  --scrollarea-scrollbar-horizontal-margin-right: var(--select-content-padding);
2029
-
2030
- overflow: hidden;
2031
- box-shadow: var(--shadow-5);
2032
- background-color: var(--color-panel-solid);
2033
- box-sizing: border-box;
2267
+ }
2268
+ @layer components {
2269
+ .ui-SelectContent {
2270
+ overflow: hidden;
2271
+ box-shadow: var(--shadow-5);
2272
+ background-color: var(--color-panel-solid);
2273
+ box-sizing: border-box;
2274
+ }
2034
2275
  }
2035
2276
  .ui-SelectContent:where([data-side]) {
2036
2277
  min-width: var(--reka-select-trigger-width);
@@ -2061,21 +2302,23 @@ to {
2061
2302
  border-radius: var(--radius-4);
2062
2303
  }
2063
2304
 
2305
+ @layer components {
2064
2306
  .ui-SelectTrigger {
2065
- display: inline-flex;
2066
- align-items: center;
2067
- justify-content: space-between;
2068
- flex-shrink: 0;
2069
- -webkit-user-select: none;
2070
- -moz-user-select: none;
2071
- user-select: none;
2072
- vertical-align: top;
2073
- font-weight: var(--font-weight-regular);
2074
- font-style: normal;
2075
- text-align: start;
2076
- color: var(--gray-12);
2077
- box-sizing: border-box;
2078
- height: var(--select-trigger-height);
2307
+ display: inline-flex;
2308
+ align-items: center;
2309
+ justify-content: space-between;
2310
+ flex-shrink: 0;
2311
+ -webkit-user-select: none;
2312
+ -moz-user-select: none;
2313
+ user-select: none;
2314
+ vertical-align: top;
2315
+ font-weight: var(--font-weight-regular);
2316
+ font-style: normal;
2317
+ text-align: start;
2318
+ color: var(--gray-12);
2319
+ box-sizing: border-box;
2320
+ height: var(--select-trigger-height);
2321
+ }
2079
2322
  }
2080
2323
  .ui-SelectTriggerInner {
2081
2324
  overflow: hidden;
@@ -2215,20 +2458,22 @@ to {
2215
2458
  color: var(--gray-a9);
2216
2459
  }
2217
2460
 
2461
+ @layer components {
2218
2462
  .ui-SelectItem {
2219
- display: flex;
2220
- align-items: center;
2221
- height: var(--select-item-height);
2222
- padding-left: var(--select-item-indicator-width);
2223
- padding-right: var(--select-item-indicator-width);
2224
- position: relative;
2225
- box-sizing: border-box;
2226
- outline: none;
2227
- scroll-margin: var(--select-content-padding) 0;
2228
- -webkit-user-select: none;
2229
- -moz-user-select: none;
2230
- user-select: none;
2231
- cursor: default;
2463
+ display: flex;
2464
+ align-items: center;
2465
+ height: var(--select-item-height);
2466
+ padding-left: var(--select-item-indicator-width);
2467
+ padding-right: var(--select-item-indicator-width);
2468
+ position: relative;
2469
+ box-sizing: border-box;
2470
+ outline: none;
2471
+ scroll-margin: var(--select-content-padding) 0;
2472
+ -webkit-user-select: none;
2473
+ -moz-user-select: none;
2474
+ user-select: none;
2475
+ cursor: default;
2476
+ }
2232
2477
  }
2233
2478
  .ui-SelectItem:where([data-disabled]) {
2234
2479
  cursor: not-allowed;
@@ -2283,17 +2528,19 @@ to {
2283
2528
  background-color: var(--accent-a4);
2284
2529
  }
2285
2530
 
2531
+ @layer components {
2286
2532
  .ui-SelectLabel {
2287
- display: flex;
2288
- align-items: center;
2289
- height: var(--select-item-height);
2290
- padding-left: var(--select-item-indicator-width);
2291
- padding-right: var(--select-item-indicator-width);
2292
- color: var(--gray-a10);
2293
- -webkit-user-select: none;
2294
- -moz-user-select: none;
2295
- user-select: none;
2296
- cursor: default;
2533
+ display: flex;
2534
+ align-items: center;
2535
+ height: var(--select-item-height);
2536
+ padding-left: var(--select-item-indicator-width);
2537
+ padding-right: var(--select-item-indicator-width);
2538
+ color: var(--gray-a10);
2539
+ -webkit-user-select: none;
2540
+ -moz-user-select: none;
2541
+ user-select: none;
2542
+ cursor: default;
2543
+ }
2297
2544
  }
2298
2545
  .ui-SelectItem + .ui-SelectLabel {
2299
2546
  margin-top: var(--space-2);
@@ -2310,21 +2557,25 @@ to {
2310
2557
  line-height: var(--line-height-2);
2311
2558
  }
2312
2559
 
2560
+ @layer components {
2313
2561
  .ui-SelectSeparator {
2314
- height: 1px;
2315
- margin-top: var(--space-2);
2316
- margin-bottom: var(--space-2);
2317
- margin-left: var(--select-item-indicator-width);
2318
- margin-right: var(--select-separator-margin-right);
2319
- background-color: var(--gray-a6);
2562
+ height: 1px;
2563
+ margin-top: var(--space-2);
2564
+ margin-bottom: var(--space-2);
2565
+ margin-left: var(--select-item-indicator-width);
2566
+ margin-right: var(--select-separator-margin-right);
2567
+ background-color: var(--gray-a6);
2568
+ }
2320
2569
  }
2321
2570
 
2571
+ @layer components {
2322
2572
  .ui-ComboboxRoot {
2323
- width: -moz-fit-content;
2324
- width: fit-content;
2573
+ width: -moz-fit-content;
2574
+ width: fit-content;
2325
2575
  }
2326
2576
  .ui-ComboboxRoot:where(.r-multiple) {
2327
- width: auto;
2577
+ width: auto;
2578
+ }
2328
2579
  }
2329
2580
  .ui-ComboboxRoot:where(.r-size-1) {
2330
2581
  --combobox-field-height: var(--space-5);
@@ -2412,21 +2663,23 @@ to {
2412
2663
  .ui-ComboboxValuesItem:where([aria-current="true"]) {
2413
2664
  background-color: var(--red-a9);
2414
2665
  }
2666
+ @layer components {
2415
2667
  .ui-ComboboxInput {
2416
- text-align: inherit;
2417
- border: none;
2418
- padding: 0;
2419
- width: 100%;
2420
- font-size: 1em;
2421
- background-color: transparent;
2422
- border-radius: calc(var(--combobox-field-border-radius) - var(--combobox-field-border-width));
2423
- text-indent: var(--combobox-field-padding);
2424
- height: var(--combobox-input-height);
2425
- cursor: auto;
2668
+ text-align: inherit;
2669
+ border: none;
2670
+ padding: 0;
2671
+ width: 100%;
2672
+ font-size: 1em;
2673
+ background-color: transparent;
2674
+ border-radius: calc(var(--combobox-field-border-radius) - var(--combobox-field-border-width));
2675
+ text-indent: var(--combobox-field-padding);
2676
+ height: var(--combobox-input-height);
2677
+ cursor: auto;
2426
2678
 
2427
- /* Reset size 2 padding bottom */
2428
- padding-bottom: 0px;
2429
- /* Safari credentials autofill icon */
2679
+ /* Reset size 2 padding bottom */
2680
+ padding-bottom: 0px;
2681
+ /* Safari credentials autofill icon */
2682
+ }
2430
2683
  }
2431
2684
  .ui-ComboboxField:where([data-multiple="true"]) :where(.ui-ComboboxInput) {
2432
2685
  text-indent: calc(var(--combobox-field-padding) / 2);
@@ -2581,11 +2834,14 @@ to {
2581
2834
  --scrollarea-scrollbar-vertical-margin-bottom: var(--combobox-content-padding);
2582
2835
  --scrollarea-scrollbar-horizontal-margin-left: var(--combobox-content-padding);
2583
2836
  --scrollarea-scrollbar-horizontal-margin-right: var(--combobox-content-padding);
2584
-
2585
- overflow: hidden;
2586
- box-shadow: var(--shadow-5);
2587
- background-color: var(--color-panel-solid);
2588
- box-sizing: border-box;
2837
+ }
2838
+ @layer components {
2839
+ .ui-ComboboxContent {
2840
+ overflow: hidden;
2841
+ box-shadow: var(--shadow-5);
2842
+ background-color: var(--color-panel-solid);
2843
+ box-sizing: border-box;
2844
+ }
2589
2845
  }
2590
2846
  .ui-ComboboxContent:where([data-side]) {
2591
2847
  min-width: var(--reka-combobox-trigger-width);
@@ -2662,25 +2918,27 @@ to {
2662
2918
  --combobox-highlighted-text-color: var(--accent-12);
2663
2919
  }
2664
2920
 
2921
+ @layer components {
2665
2922
  .ui-ComboboxItem {
2666
- display: flex;
2667
- align-items: center;
2668
- height: var(--combobox-item-height);
2669
- padding-left: var(--combobox-indicator-width);
2670
- padding-right: var(--combobox-indicator-width);
2671
- position: relative;
2672
- box-sizing: border-box;
2673
- outline: none;
2674
- scroll-margin: var(--combobox-content-padding) 0;
2675
- -webkit-user-select: none;
2676
- -moz-user-select: none;
2677
- user-select: none;
2678
- cursor: default;
2923
+ display: flex;
2924
+ align-items: center;
2925
+ height: var(--combobox-item-height);
2926
+ padding-left: var(--combobox-indicator-width);
2927
+ padding-right: var(--combobox-indicator-width);
2928
+ position: relative;
2929
+ box-sizing: border-box;
2930
+ outline: none;
2931
+ scroll-margin: var(--combobox-content-padding) 0;
2932
+ -webkit-user-select: none;
2933
+ -moz-user-select: none;
2934
+ user-select: none;
2935
+ cursor: default;
2679
2936
 
2680
- font-size: var(--combobox-item-font-size);
2681
- line-height: var(--combobox-item-line-height);
2682
- letter-spacing: var(--combobox-item-letter-spacing);
2683
- border-radius: var(--combobox-item-radius);
2937
+ font-size: var(--combobox-item-font-size);
2938
+ line-height: var(--combobox-item-line-height);
2939
+ letter-spacing: var(--combobox-item-letter-spacing);
2940
+ border-radius: var(--combobox-item-radius);
2941
+ }
2684
2942
  }
2685
2943
  .ui-ComboboxItem:where([data-disabled]) {
2686
2944
  cursor: not-allowed;
@@ -2705,40 +2963,44 @@ to {
2705
2963
  height: var(--combobox-indicator-icon-height);
2706
2964
  }
2707
2965
 
2966
+ @layer components {
2708
2967
  .ui-ComboboxLabel {
2709
- display: flex;
2710
- align-items: center;
2711
- height: var(--combobox-item-height);
2712
- padding-left: calc(var(--combobox-indicator-width) / 2);
2713
- padding-right: var(--combobox-indicator-width);
2714
- color: var(--gray-a10);
2715
- -webkit-user-select: none;
2716
- -moz-user-select: none;
2717
- user-select: none;
2718
- cursor: default;
2968
+ display: flex;
2969
+ align-items: center;
2970
+ height: var(--combobox-item-height);
2971
+ padding-left: calc(var(--combobox-indicator-width) / 2);
2972
+ padding-right: var(--combobox-indicator-width);
2973
+ color: var(--gray-a10);
2974
+ -webkit-user-select: none;
2975
+ -moz-user-select: none;
2976
+ user-select: none;
2977
+ cursor: default;
2719
2978
 
2720
- font-size: var(--combobox-label-font-size);
2721
- letter-spacing: var(--combobox-label-letter-spacing);
2722
- line-height: var(--combobox-label-line-height);
2979
+ font-size: var(--combobox-label-font-size);
2980
+ letter-spacing: var(--combobox-label-letter-spacing);
2981
+ line-height: var(--combobox-label-line-height);
2982
+ }
2723
2983
  }
2724
2984
  .ui-SelectItem + .ui-ComboboxLabel {
2725
2985
  margin-top: var(--space-2);
2726
2986
  }
2727
2987
 
2988
+ @layer components {
2728
2989
  .ui-ComboboxEmpty {
2729
- box-sizing: border-box;
2730
- outline: none;
2731
- scroll-margin: var(--combobox-content-padding) 0;
2732
- -webkit-user-select: none;
2733
- -moz-user-select: none;
2734
- user-select: none;
2735
- cursor: default;
2736
- padding-left: calc(var(--combobox-indicator-width) / 2);
2737
- padding-right: var(--combobox-indicator-width);
2738
- font-size: var(--combobox-item-font-size);
2739
- line-height: var(--combobox-item-line-height);
2740
- letter-spacing: var(--combobox-item-letter-spacing);
2741
- color: var(--gray-11);
2990
+ box-sizing: border-box;
2991
+ outline: none;
2992
+ scroll-margin: var(--combobox-content-padding) 0;
2993
+ -webkit-user-select: none;
2994
+ -moz-user-select: none;
2995
+ user-select: none;
2996
+ cursor: default;
2997
+ padding-left: calc(var(--combobox-indicator-width) / 2);
2998
+ padding-right: var(--combobox-indicator-width);
2999
+ font-size: var(--combobox-item-font-size);
3000
+ line-height: var(--combobox-item-line-height);
3001
+ letter-spacing: var(--combobox-item-letter-spacing);
3002
+ color: var(--gray-11);
3003
+ }
2742
3004
  }
2743
3005
  .ui-RadioBase {
2744
3006
  position: relative;
@@ -3005,10 +3267,10 @@ to {
3005
3267
  }
3006
3268
  }
3007
3269
 
3008
- .ui-TabList::-webkit-scrollbar {
3270
+ .ui-TabsList::-webkit-scrollbar {
3009
3271
  display: none;
3010
3272
  }
3011
- .ui-TabList:where(.r-size-1) {
3273
+ .ui-TabsList:where(.r-size-1) {
3012
3274
  --tab-font-size: var(--font-size-1);
3013
3275
  --tab-line-height: var(--line-height-1);
3014
3276
  --tab-letter-spacing: var(--letter-spacing-1);
@@ -3019,7 +3281,7 @@ to {
3019
3281
  --tab-inner-padding-x: var(--space-1);
3020
3282
  --tab-inner-height: var(--space-5);
3021
3283
  }
3022
- .ui-TabList:where(.r-size-2) {
3284
+ .ui-TabsList:where(.r-size-2) {
3023
3285
  --tab-font-size: var(--font-size-2);
3024
3286
  --tab-line-height: var(--line-height-2);
3025
3287
  --tab-letter-spacing: var(--letter-spacing-2);
@@ -3030,12 +3292,12 @@ to {
3030
3292
  --tab-inner-padding-x: var(--space-2);
3031
3293
  --tab-inner-height: calc(var(--space-6) - var(--space-1));
3032
3294
  }
3033
- .ui-TabList:where(.r-variant-surface.r-size-1),
3034
- .ui-TabList:where(.r-variant-soft.r-size-1) {
3295
+ .ui-TabsList:where(.r-variant-surface.r-size-1),
3296
+ .ui-TabsList:where(.r-variant-soft.r-size-1) {
3035
3297
  --tab-inner-padding-x: calc(var(--space-2) / 4 * 3);
3036
3298
  }
3037
3299
  @layer components {
3038
- .ui-TabList {
3300
+ .ui-TabsList {
3039
3301
  justify-content: flex-start;
3040
3302
  position: relative;
3041
3303
  overflow-x: auto;
@@ -3048,34 +3310,33 @@ to {
3048
3310
  }
3049
3311
 
3050
3312
  /** classic & surface */
3051
- .ui-TabList:where(.r-variant-surface, .r-variant-classic) {
3313
+ .ui-TabsList:where(.r-variant-surface, .r-variant-classic) {
3052
3314
  position: relative;
3053
3315
  display: inline-flex;
3054
3316
  width: -moz-fit-content;
3055
3317
  width: fit-content;
3056
3318
  align-items: center;
3057
- justify-content: center;
3058
3319
  vertical-align: top;
3059
3320
  flex-shrink: 0;
3060
3321
  border-radius: var(--tab-radius);
3061
3322
  }
3062
- .ui-TabList:where(.r-variant-classic) {
3323
+ .ui-TabsList:where(.r-variant-classic) {
3063
3324
  background-color: var(--accent-a3);
3064
3325
  padding-left: var(--tab-padding-x);
3065
3326
  padding-right: var(--tab-padding-x);
3066
3327
  }
3067
- .ui-TabList:where(.r-variant-surface) {
3328
+ .ui-TabsList:where(.r-variant-surface) {
3068
3329
  --tab-item-radius: 0;
3069
3330
  --tab-inner-height: var(--tab-height);
3070
3331
  box-shadow: inset 0 0 0 1px var(--gray-a6);
3071
3332
  }
3072
3333
 
3073
3334
  /** soft & outline */
3074
- .ui-TabList:where(.r-variant-outline, .r-variant-soft) {
3335
+ .ui-TabsList:where(.r-variant-outline, .r-variant-soft) {
3075
3336
  display: flex;
3076
3337
  box-shadow: inset 0 -1px 0 0 var(--gray-a5);
3077
3338
  }
3078
- .ui-TabList:where(.r-variant-soft) {
3339
+ .ui-TabsList:where(.r-variant-soft) {
3079
3340
  padding-left: var(--tab-padding-x);
3080
3341
  padding-right: var(--tab-padding-x);
3081
3342
  }
@@ -3087,13 +3348,13 @@ to {
3087
3348
  transform: translateX(var(--reka-tabs-indicator-position));
3088
3349
  width: var(--reka-tabs-indicator-size);
3089
3350
  }
3090
- .ui-TabList:where(.r-variant-surface) :where(.ui-TabsIndicator) {
3351
+ .ui-TabsList:where(.r-variant-surface) :where(.ui-TabsIndicator) {
3091
3352
  top: 0;
3092
- height: var(--tab-inner-height);
3353
+ height: var(--tab-height);
3093
3354
  background-color: var(--accent-a3);
3094
3355
  transition-duration: 100ms;
3095
3356
  }
3096
- .ui-TabList:where(.r-variant-classic) :where(.ui-TabsIndicator) {
3357
+ .ui-TabsList:where(.r-variant-classic) :where(.ui-TabsIndicator) {
3097
3358
  top: calc((var(--tab-height) - var(--tab-inner-height)) / 2);
3098
3359
  height: var(--tab-inner-height);
3099
3360
  background-color: var(--color-panel-solid);
@@ -3105,14 +3366,14 @@ to {
3105
3366
  border-radius: var(--tab-item-radius);
3106
3367
  transition-duration: 100ms;
3107
3368
  }
3108
- .ui-TabList:where(.r-variant-soft) :where(.ui-TabsIndicator) {
3369
+ .ui-TabsList:where(.r-variant-soft) :where(.ui-TabsIndicator) {
3109
3370
  top: calc((var(--tab-height) - var(--tab-inner-height)) / 2);
3110
3371
  height: var(--tab-inner-height);
3111
3372
  background-color: var(--accent-a3);
3112
3373
  border-radius: var(--tab-item-radius);
3113
3374
  transition-duration: 100ms;
3114
3375
  }
3115
- .ui-TabList:where(.r-variant-outline) :where(.ui-TabsIndicator) {
3376
+ .ui-TabsList:where(.r-variant-outline) :where(.ui-TabsIndicator) {
3116
3377
  bottom: 0;
3117
3378
  height: 2px;
3118
3379
  background-color: var(--accent-indicator);
@@ -3120,7 +3381,7 @@ to {
3120
3381
  }
3121
3382
 
3122
3383
  /** high contrast */
3123
- :where(.ui-TabList.r-variant-outline.r-high-contrast) .ui-TabsIndicator {
3384
+ :where(.ui-TabsList.r-variant-outline.r-high-contrast) .ui-TabsIndicator {
3124
3385
  background-color: var(--accent-12);
3125
3386
  }
3126
3387
 
@@ -3172,13 +3433,13 @@ to {
3172
3433
  word-spacing: var(--tab-active-word-spacing);
3173
3434
  }
3174
3435
  @media (hover: hover) {
3175
- .ui-TabList:where(.r-variant-outline, .r-variant-classic) :where(.ui-TabTrigger:hover) {
3436
+ .ui-TabsList:where(.r-variant-outline, .r-variant-classic) :where(.ui-TabTrigger:hover) {
3176
3437
  color: var(--gray-12);
3177
3438
  }
3178
- .ui-TabList:where(.r-variant-surface, .r-variant-soft) :where(.ui-TabTrigger:hover) {
3439
+ .ui-TabsList:where(.r-variant-surface, .r-variant-soft) :where(.ui-TabTrigger:hover) {
3179
3440
  color: var(--accent-a11);
3180
3441
  }
3181
- .ui-TabList:where(.r-variant-outline) :where(.ui-TabTrigger:not(:disabled):hover) :where(.ui-TabTriggerInner) {
3442
+ .ui-TabsList:where(.r-variant-outline) :where(.ui-TabTrigger:not(:disabled):hover) :where(.ui-TabTriggerInner) {
3182
3443
  background-color: var(--gray-a3);
3183
3444
  }
3184
3445
  .ui-TabTrigger:where(:focus-visible:hover) :where(.ui-TabTriggerInner) {
@@ -3189,20 +3450,20 @@ to {
3189
3450
  outline: 2px solid var(--focus-8);
3190
3451
  outline-offset: -2px;
3191
3452
  }
3192
- .ui-TabList:where(.r-variant-outline) :where(.ui-TabTrigger) {
3453
+ .ui-TabsList:where(.r-variant-outline) :where(.ui-TabTrigger) {
3193
3454
  padding-left: var(--tab-padding-x);
3194
3455
  padding-right: var(--tab-padding-x);
3195
3456
  }
3196
- .ui-TabList:where(.r-variant-classic, .r-variant-outline) :where(.ui-TabTrigger[data-state='active']) {
3457
+ .ui-TabsList:where(.r-variant-classic, .r-variant-outline) :where(.ui-TabTrigger[data-state='active']) {
3197
3458
  color: var(--gray-12);
3198
3459
  }
3199
- .ui-TabList:where(.r-variant-soft) :where(.ui-TabTrigger + .ui-TabTrigger) {
3460
+ .ui-TabsList:where(.r-variant-soft) :where(.ui-TabTrigger + .ui-TabTrigger) {
3200
3461
  margin-left: calc(var(--tab-padding-x) / 2)
3201
3462
  }
3202
- .ui-TabList:where(.r-variant-surface) :where(.ui-TabTrigger + .ui-TabTrigger) {
3463
+ .ui-TabsList:where(.r-variant-surface) :where(.ui-TabTrigger + .ui-TabTrigger) {
3203
3464
  box-shadow: inset 1px 0 0 var(--gray-a4);
3204
3465
  }
3205
- .ui-TabList:where(.r-variant-surface, .r-variant-soft) :where(.ui-TabTrigger[data-state='active']) {
3466
+ .ui-TabsList:where(.r-variant-surface, .r-variant-soft) :where(.ui-TabTrigger[data-state='active']) {
3206
3467
  color: var(--accent-a11);
3207
3468
  }
3208
3469
 
@@ -3285,10 +3546,12 @@ to {
3285
3546
  height: 0;
3286
3547
  }
3287
3548
  }
3549
+ @layer components {
3288
3550
  .ui-AccordionContent {
3289
- overflow: hidden;
3290
- font-weight: var(--font-weight-regular);
3291
- font-size: var(--accordion-content-font-size);
3551
+ overflow: hidden;
3552
+ font-weight: var(--font-weight-regular);
3553
+ font-size: var(--accordion-content-font-size);
3554
+ }
3292
3555
  }
3293
3556
  .ui-AccordionContent:where([data-state="open"]) {
3294
3557
  animation: accordion-down 0.2s ease-out;
@@ -3432,28 +3695,37 @@ to {
3432
3695
  --collapsible-trigger-open-text-color: var(--accent-12);
3433
3696
  }
3434
3697
 
3698
+ @layer components {
3435
3699
  .ui-CollapsibleIndicator {
3436
- display: inline-flex;
3437
- align-items: center;
3438
- font-size: var(--collapsible-indicator-icon-size);
3439
- transition: transform 0.2s ease;
3440
- color: var(--gray-10);
3700
+ display: inline-flex;
3701
+ align-items: center;
3702
+ font-size: var(--collapsible-indicator-icon-size);
3703
+ transition: transform 0.2s ease;
3704
+ color: var(--gray-10);
3705
+ }
3441
3706
  }
3442
3707
  .ui-CollapsibleIndicator:where([data-side="left"]) {
3443
3708
  order: -1;
3444
3709
  }
3710
+ :where([aria-expanded="false"]) .ui-CollapsibleIndicator,
3711
+ :where([data-state="closed"]) .ui-CollapsibleIndicator {
3712
+ transform: rotate(0);
3713
+ }
3714
+ :where([aria-expanded="true"]) .ui-CollapsibleIndicator,
3445
3715
  :where([data-state="open"]) .ui-CollapsibleIndicator {
3446
3716
  transform: rotate(90deg);
3447
3717
  }
3448
3718
 
3719
+ @layer components {
3449
3720
  .ui-CollapsibleTrigger {
3450
- display: inline-flex;
3451
- align-items: center;
3452
- justify-content: space-between;
3453
- text-align: initial;
3454
- gap: var(--collapsible-trigger-gap);
3455
- font-size: var(--collapsible-font-size);
3456
- font-weight: var(--font-weight-medium);
3721
+ display: inline-flex;
3722
+ align-items: center;
3723
+ justify-content: space-between;
3724
+ text-align: initial;
3725
+ gap: var(--collapsible-trigger-gap);
3726
+ font-size: var(--collapsible-font-size);
3727
+ font-weight: var(--font-weight-medium);
3728
+ }
3457
3729
  }
3458
3730
  .ui-CollapsibleTriggerText {
3459
3731
  flex-grow: 1;
@@ -3496,11 +3768,13 @@ to {
3496
3768
  height: 0;
3497
3769
  }
3498
3770
  }
3771
+ @layer components {
3499
3772
  .ui-CollapsibleContent {
3500
- overflow: hidden;
3501
- font-size: var(--collapsible-font-size);
3502
- font-weight: var(--font-weight-regular);
3503
- padding-block: var(--collapsible-padding-y);
3773
+ overflow: hidden;
3774
+ font-size: var(--collapsible-font-size);
3775
+ font-weight: var(--font-weight-regular);
3776
+ padding-block: var(--collapsible-padding-y);
3777
+ }
3504
3778
  }
3505
3779
  .ui-CollapsibleContent:where([data-state="open"]) {
3506
3780
  animation: collapsible-down 0.2s ease-out;
@@ -3845,8 +4119,7 @@ to {
3845
4119
  border: 1px solid var(--gray-a5);
3846
4120
  border-radius: var(--table-border-radius);
3847
4121
  background-color: var(--color-panel);
3848
- -webkit-backdrop-filter: var(--backdrop-filter-panel);
3849
- backdrop-filter: var(--backdrop-filter-panel);
4122
+ backdrop-filter: var(--backdrop-filter-panel);
3850
4123
  background-clip: padding-box;
3851
4124
  position: relative;
3852
4125
  }
@@ -3869,18 +4142,20 @@ to {
3869
4142
  --scrollarea-scrollbar-horizontal-margin-right: 0;
3870
4143
  }
3871
4144
 
4145
+ @layer components {
3872
4146
  .ui-Separator {
3873
- display: block;
3874
- box-sizing: border-box;
3875
- background-color: var(--accent-a6);
4147
+ display: block;
4148
+ box-sizing: border-box;
4149
+ background-color: var(--accent-a6);
3876
4150
  }
3877
- .ui-Separator[aria-orientation="horizontal"] {
3878
- width: var(--separator-size, auto);
3879
- height: 1px;
4151
+ .ui-Separator:where([aria-orientation="horizontal"]) {
4152
+ width: var(--separator-size, auto);
4153
+ height: 1px;
4154
+ }
4155
+ .ui-Separator:where([aria-orientation="vertical"]) {
4156
+ width: 1px;
4157
+ height: var(--separator-size, auto);
3880
4158
  }
3881
- .ui-Separator[aria-orientation="vertical"] {
3882
- width: 1px;
3883
- height: var(--separator-size, auto);
3884
4159
  }
3885
4160
  .ui-Separator:where(.r-size-1) {
3886
4161
  --separator-size: var(--space-4);
@@ -3895,51 +4170,6 @@ to {
3895
4170
  --separator-size: 100%;
3896
4171
  }
3897
4172
 
3898
- .ui-Tooltip {
3899
- box-sizing: border-box;
3900
- padding: var(--space-1) var(--space-2);
3901
- border-radius: var(--radius-2);
3902
- transform-origin: var(--reka-tooltip-content-transform-origin);
3903
- animation-duration: 140ms;
3904
- animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
3905
- background-color: var(--accent-11);
3906
- }
3907
- @media (prefers-reduced-motion: no-preference) {
3908
- .ui-Tooltip:where([data-state='delayed-open']):where([data-side='top']) {
3909
- animation-name: ui-slide-from-top, ui-fade-in;
3910
- }
3911
- .ui-Tooltip:where([data-state='delayed-open']):where([data-side='bottom']) {
3912
- animation-name: ui-slide-from-bottom, ui-fade-in;
3913
- }
3914
- .ui-Tooltip:where([data-state='delayed-open']):where([data-side='left']) {
3915
- animation-name: ui-slide-from-left, ui-fade-in;
3916
- }
3917
- .ui-Tooltip:where([data-state='delayed-open']):where([data-side='right']) {
3918
- animation-name: ui-slide-from-right, ui-fade-in;
3919
- }
3920
- }
3921
- .ui-TooltipText {
3922
- color: var(--gray-1);
3923
- -webkit-user-select: none;
3924
- -moz-user-select: none;
3925
- user-select: none;
3926
- cursor: default;
3927
- font-size: var(--font-size-1);
3928
- line-height: var(--line-height-1);
3929
- letter-spacing: var(--letter-spacing-1);
3930
- }
3931
- .ui-TooltipArrow {
3932
- fill: var(--accent-11);
3933
- }
3934
-
3935
- /* special handle for gray color */
3936
- .ui-Tooltip:where([data-accent-color="gray"]) {
3937
- background-color: var(--gray-12);
3938
- }
3939
- .ui-Tooltip:where([data-accent-color="gray"]) :where(.ui-TooltipArrow) {
3940
- fill: var(--gray-12);
3941
- }
3942
-
3943
4173
  .ui-Quota {
3944
4174
  position: relative;
3945
4175
  overflow: hidden;