@sanity/ui 3.0.0-static.6 → 3.0.0-static.7

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 (44) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +50 -50
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-es/_visual-editing.mjs +51 -51
  4. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/css.d.mts +11 -1
  7. package/dist/css.d.ts +11 -1
  8. package/dist/css.js +324 -309
  9. package/dist/css.js.map +1 -1
  10. package/dist/css.mjs +324 -309
  11. package/dist/css.mjs.map +1 -1
  12. package/dist/index.js +3 -13
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +3 -13
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/sanity-theme.css +1 -1
  17. package/dist/system.css +229 -10
  18. package/dist/theme.js +1 -1
  19. package/dist/theme.js.map +1 -1
  20. package/dist/theme.mjs +1 -1
  21. package/dist/theme.mjs.map +1 -1
  22. package/package.json +1 -1
  23. package/src/css/aspects/index.ts +1 -0
  24. package/src/css/aspects/minWidth/index.ts +2 -0
  25. package/src/css/aspects/minWidth/minWidth.style.ts +13 -0
  26. package/src/css/aspects/minWidth/minWidth.ts +6 -0
  27. package/src/css/aspects/minWidth/types.ts +7 -0
  28. package/src/css/compile/compileRule.ts +1 -0
  29. package/src/css/compile/compileStyle.ts +1 -1
  30. package/src/css/primitives/box/box.style.ts +1 -1
  31. package/src/css/primitives/box/box.ts +2 -3
  32. package/src/css/primitives/box/types.ts +2 -0
  33. package/src/css/primitives/card/card.style.ts +69 -3
  34. package/src/css/primitives/card/types.ts +0 -1
  35. package/src/css/primitives/popover/popover.ts +4 -0
  36. package/src/css/primitives/switch/switch.style.ts +8 -83
  37. package/src/css/system.style.ts +2 -0
  38. package/src/theme/v3/defaults.ts +1 -1
  39. package/src/ui/components/autocomplete/autocomplete.tsx +2 -11
  40. package/src/ui/primitives/box/box.tsx +3 -2
  41. package/src/ui/primitives/card/card.tsx +2 -6
  42. package/src/ui/primitives/kbd/kbd.tsx +2 -2
  43. package/src/ui/primitives/popover/popoverCard.tsx +45 -39
  44. package/src/css/primitives/card/rules.ts +0 -473
package/dist/css.mjs CHANGED
@@ -53,6 +53,9 @@ function margin(props) {
53
53
  function maxWidth(props) {
54
54
  return _resp("max-w", props.maxWidth) ?? "";
55
55
  }
56
+ function minWidth(props) {
57
+ return _resp("min-w", props.minWidth) ?? "";
58
+ }
56
59
  function overflow(props) {
57
60
  return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
58
61
  }
@@ -1033,70 +1036,70 @@ function buildColorVariantVars(options) {
1033
1036
  }
1034
1037
  return vars2;
1035
1038
  }
1036
- const util$s = {};
1037
- _responsiveRule(util$s, "border", {
1039
+ const util$t = {};
1040
+ _responsiveRule(util$t, "border", {
1038
1041
  border: `1px solid ${vars.color.border}`
1039
1042
  });
1040
- _responsiveRule(util$s, "border-t", {
1043
+ _responsiveRule(util$t, "border-t", {
1041
1044
  borderTop: `1px solid ${vars.color.border}`
1042
1045
  });
1043
- _responsiveRule(util$s, "border-r", {
1046
+ _responsiveRule(util$t, "border-r", {
1044
1047
  borderRight: `1px solid ${vars.color.border}`
1045
1048
  });
1046
- _responsiveRule(util$s, "border-b", {
1049
+ _responsiveRule(util$t, "border-b", {
1047
1050
  borderBottom: `1px solid ${vars.color.border}`
1048
1051
  });
1049
- _responsiveRule(util$s, "border-l", {
1052
+ _responsiveRule(util$t, "border-l", {
1050
1053
  borderLeft: `1px solid ${vars.color.border}`
1051
1054
  });
1052
1055
  const borderStyle = {
1053
1056
  layers: {
1054
- util: util$s
1057
+ util: util$t
1055
1058
  }
1056
- }, util$r = {};
1057
- _responsiveRule(util$r, "block", {
1059
+ }, util$s = {};
1060
+ _responsiveRule(util$s, "block", {
1058
1061
  "@nest": {
1059
1062
  "&:not([hidden])": {
1060
1063
  display: "block"
1061
1064
  }
1062
1065
  }
1063
1066
  });
1064
- _responsiveRule(util$r, "flex", {
1067
+ _responsiveRule(util$s, "flex", {
1065
1068
  "@nest": {
1066
1069
  "&:not([hidden])": {
1067
1070
  display: "flex"
1068
1071
  }
1069
1072
  }
1070
1073
  });
1071
- _responsiveRule(util$r, "grid", {
1074
+ _responsiveRule(util$s, "grid", {
1072
1075
  "@nest": {
1073
1076
  "&:not([hidden])": {
1074
1077
  display: "grid"
1075
1078
  }
1076
1079
  }
1077
1080
  });
1078
- _responsiveRule(util$r, "inline-block", {
1081
+ _responsiveRule(util$s, "inline-block", {
1079
1082
  "@nest": {
1080
1083
  "&:not([hidden])": {
1081
1084
  display: "inline-block"
1082
1085
  }
1083
1086
  }
1084
1087
  });
1085
- _responsiveRule(util$r, "inline-flex", {
1088
+ _responsiveRule(util$s, "inline-flex", {
1086
1089
  "@nest": {
1087
1090
  "&:not([hidden])": {
1088
1091
  display: "inline-flex"
1089
1092
  }
1090
1093
  }
1091
1094
  });
1092
- _responsiveRule(util$r, "inline-grid", {
1095
+ _responsiveRule(util$s, "inline-grid", {
1093
1096
  "@nest": {
1094
1097
  "&:not([hidden])": {
1095
1098
  display: "inline-grid"
1096
1099
  }
1097
1100
  }
1098
1101
  });
1099
- _responsiveRule(util$r, "none", {
1102
+ _responsiveRule(util$s, "none", {
1100
1103
  "@nest": {
1101
1104
  "&:not([hidden])": {
1102
1105
  display: "none"
@@ -1105,125 +1108,125 @@ _responsiveRule(util$r, "none", {
1105
1108
  });
1106
1109
  const displayStyle = {
1107
1110
  layers: {
1108
- util: util$r
1111
+ util: util$s
1109
1112
  }
1110
- }, util$q = {};
1111
- _responsiveRule(util$q, "flex-align-flex-start", {
1113
+ }, util$r = {};
1114
+ _responsiveRule(util$r, "flex-align-flex-start", {
1112
1115
  alignItems: "flex-start"
1113
1116
  });
1114
- _responsiveRule(util$q, "flex-align-flex-end", {
1117
+ _responsiveRule(util$r, "flex-align-flex-end", {
1115
1118
  alignItems: "flex-end"
1116
1119
  });
1117
- _responsiveRule(util$q, "flex-align-center", {
1120
+ _responsiveRule(util$r, "flex-align-center", {
1118
1121
  alignItems: "center"
1119
1122
  });
1120
- _responsiveRule(util$q, "flex-align-stretch", {
1123
+ _responsiveRule(util$r, "flex-align-stretch", {
1121
1124
  alignItems: "stretch"
1122
1125
  });
1123
- _responsiveRule(util$q, "flex-align-baseline", {
1126
+ _responsiveRule(util$r, "flex-align-baseline", {
1124
1127
  alignItems: "baseline"
1125
1128
  });
1126
1129
  const flexAlignStyle = {
1127
1130
  layers: {
1128
- util: util$q
1131
+ util: util$r
1129
1132
  }
1130
- }, util$p = {};
1131
- _responsiveRule(util$p, "f-row", {
1133
+ }, util$q = {};
1134
+ _responsiveRule(util$q, "f-row", {
1132
1135
  flexDirection: "row"
1133
1136
  });
1134
- _responsiveRule(util$p, "f-column", {
1137
+ _responsiveRule(util$q, "f-column", {
1135
1138
  flexDirection: "column"
1136
1139
  });
1137
1140
  const flexDirectionStyle = {
1138
1141
  layers: {
1139
- util: util$p
1142
+ util: util$q
1140
1143
  }
1141
- }, util$o = {};
1142
- _responsiveRule(util$o, "flex-justify-flex-start", {
1144
+ }, util$p = {};
1145
+ _responsiveRule(util$p, "flex-justify-flex-start", {
1143
1146
  justifyContent: "flex-start"
1144
1147
  });
1145
- _responsiveRule(util$o, "flex-justify-flex-end", {
1148
+ _responsiveRule(util$p, "flex-justify-flex-end", {
1146
1149
  justifyContent: "flex-end"
1147
1150
  });
1148
- _responsiveRule(util$o, "flex-justify-center", {
1151
+ _responsiveRule(util$p, "flex-justify-center", {
1149
1152
  justifyContent: "center"
1150
1153
  });
1151
- _responsiveRule(util$o, "flex-justify-space-between", {
1154
+ _responsiveRule(util$p, "flex-justify-space-between", {
1152
1155
  justifyContent: "space-between"
1153
1156
  });
1154
- _responsiveRule(util$o, "flex-justify-space-around", {
1157
+ _responsiveRule(util$p, "flex-justify-space-around", {
1155
1158
  justifyContent: "space-around"
1156
1159
  });
1157
- _responsiveRule(util$o, "flex-justify-space-evenly", {
1160
+ _responsiveRule(util$p, "flex-justify-space-evenly", {
1158
1161
  justifyContent: "space-evenly"
1159
1162
  });
1160
1163
  const flexJustifyStyle = {
1161
1164
  layers: {
1162
- util: util$o
1165
+ util: util$p
1163
1166
  }
1164
- }, util$n = {};
1165
- _responsiveRule(util$n, "flex-nowrap", {
1167
+ }, util$o = {};
1168
+ _responsiveRule(util$o, "flex-nowrap", {
1166
1169
  flexWrap: "nowrap"
1167
1170
  });
1168
- _responsiveRule(util$n, "flex-wrap", {
1171
+ _responsiveRule(util$o, "flex-wrap", {
1169
1172
  flexWrap: "wrap"
1170
1173
  });
1171
- _responsiveRule(util$n, "flex-wrap-reverse", {
1174
+ _responsiveRule(util$o, "flex-wrap-reverse", {
1172
1175
  flexWrap: "wrap-reverse"
1173
1176
  });
1174
1177
  const flexWrapStyle = {
1175
1178
  layers: {
1176
- util: util$n
1179
+ util: util$o
1177
1180
  }
1178
- }, util$m = {};
1179
- _responsiveRule(util$m, "f-none", {
1181
+ }, util$n = {};
1182
+ _responsiveRule(util$n, "f-none", {
1180
1183
  flex: "none"
1181
1184
  });
1182
- _responsiveRule(util$m, "f-auto", {
1185
+ _responsiveRule(util$n, "f-auto", {
1183
1186
  flex: "auto"
1184
1187
  });
1185
- _responsiveRule(util$m, "f-initial", {
1188
+ _responsiveRule(util$n, "f-initial", {
1186
1189
  flex: "initial"
1187
1190
  });
1188
- _responsiveRule(util$m, "f-1", {
1191
+ _responsiveRule(util$n, "f-1", {
1189
1192
  flex: 1
1190
1193
  });
1191
- _responsiveRule(util$m, "f-2", {
1194
+ _responsiveRule(util$n, "f-2", {
1192
1195
  flex: 2
1193
1196
  });
1194
- _responsiveRule(util$m, "f-3", {
1197
+ _responsiveRule(util$n, "f-3", {
1195
1198
  flex: 3
1196
1199
  });
1197
- _responsiveRule(util$m, "f-4", {
1200
+ _responsiveRule(util$n, "f-4", {
1198
1201
  flex: 4
1199
1202
  });
1200
- _responsiveRule(util$m, "f-5", {
1203
+ _responsiveRule(util$n, "f-5", {
1201
1204
  flex: 5
1202
1205
  });
1203
- _responsiveRule(util$m, "f-6", {
1206
+ _responsiveRule(util$n, "f-6", {
1204
1207
  flex: 6
1205
1208
  });
1206
- _responsiveRule(util$m, "f-7", {
1209
+ _responsiveRule(util$n, "f-7", {
1207
1210
  flex: 7
1208
1211
  });
1209
- _responsiveRule(util$m, "f-8", {
1212
+ _responsiveRule(util$n, "f-8", {
1210
1213
  flex: 8
1211
1214
  });
1212
- _responsiveRule(util$m, "f-9", {
1215
+ _responsiveRule(util$n, "f-9", {
1213
1216
  flex: 9
1214
1217
  });
1215
- _responsiveRule(util$m, "f-10", {
1218
+ _responsiveRule(util$n, "f-10", {
1216
1219
  flex: 10
1217
1220
  });
1218
- _responsiveRule(util$m, "f-11", {
1221
+ _responsiveRule(util$n, "f-11", {
1219
1222
  flex: 11
1220
1223
  });
1221
- _responsiveRule(util$m, "f-12", {
1224
+ _responsiveRule(util$n, "f-12", {
1222
1225
  flex: 12
1223
1226
  });
1224
1227
  const flexStyle = {
1225
1228
  layers: {
1226
- util: util$m
1229
+ util: util$n
1227
1230
  }
1228
1231
  }, rules$3 = {
1229
1232
  ".font": {
@@ -1301,509 +1304,532 @@ const fontStyle = {
1301
1304
  layers: {
1302
1305
  primitive: rules$3
1303
1306
  }
1304
- }, util$l = {};
1307
+ }, util$m = {};
1305
1308
  for (const space of SPACE)
1306
- _responsiveRule(util$l, `g-${space}`, {
1309
+ _responsiveRule(util$m, `g-${space}`, {
1307
1310
  gap: vars.space[space]
1308
1311
  });
1309
1312
  for (const space of SPACE)
1310
- _responsiveRule(util$l, `gx-${space}`, {
1313
+ _responsiveRule(util$m, `gx-${space}`, {
1311
1314
  columnGap: vars.space[space]
1312
1315
  });
1313
1316
  for (const space of SPACE)
1314
- _responsiveRule(util$l, `gy-${space}`, {
1317
+ _responsiveRule(util$m, `gy-${space}`, {
1315
1318
  rowGap: vars.space[space]
1316
1319
  });
1317
1320
  const gapStyle = {
1318
1321
  layers: {
1319
- util: util$l
1322
+ util: util$m
1320
1323
  }
1321
- }, util$k = {};
1322
- _responsiveRule(util$k, "auto-cols-auto", {
1324
+ }, util$l = {};
1325
+ _responsiveRule(util$l, "auto-cols-auto", {
1323
1326
  gridAutoColumns: "auto"
1324
1327
  });
1325
- _responsiveRule(util$k, "auto-cols-min", {
1328
+ _responsiveRule(util$l, "auto-cols-min", {
1326
1329
  gridAutoColumns: "min-content"
1327
1330
  });
1328
- _responsiveRule(util$k, "auto-cols-max", {
1331
+ _responsiveRule(util$l, "auto-cols-max", {
1329
1332
  gridAutoColumns: "max-content"
1330
1333
  });
1331
- _responsiveRule(util$k, "auto-cols-fr", {
1334
+ _responsiveRule(util$l, "auto-cols-fr", {
1332
1335
  gridAutoColumns: "minmax(0, 1fr)"
1333
1336
  });
1334
1337
  const gridAutoColumnsStyle = {
1335
1338
  layers: {
1336
- util: util$k
1339
+ util: util$l
1337
1340
  }
1338
- }, util$j = {};
1339
- _responsiveRule(util$j, "auto-flow-row", {
1341
+ }, util$k = {};
1342
+ _responsiveRule(util$k, "auto-flow-row", {
1340
1343
  gridAutoFlow: "row"
1341
1344
  });
1342
- _responsiveRule(util$j, "auto-flow-column", {
1345
+ _responsiveRule(util$k, "auto-flow-column", {
1343
1346
  gridAutoFlow: "column"
1344
1347
  });
1345
- _responsiveRule(util$j, "auto-flow-row-dense", {
1348
+ _responsiveRule(util$k, "auto-flow-row-dense", {
1346
1349
  gridAutoFlow: "row dense"
1347
1350
  });
1348
- _responsiveRule(util$j, "auto-flow-column-dense", {
1351
+ _responsiveRule(util$k, "auto-flow-column-dense", {
1349
1352
  gridAutoFlow: "column dense"
1350
1353
  });
1351
1354
  const gridAutoFlowStyle = {
1352
1355
  layers: {
1353
- util: util$j
1356
+ util: util$k
1354
1357
  }
1355
- }, util$i = {};
1356
- _responsiveRule(util$i, "auto-rows-auto", {
1358
+ }, util$j = {};
1359
+ _responsiveRule(util$j, "auto-rows-auto", {
1357
1360
  gridAutoRows: "auto"
1358
1361
  });
1359
- _responsiveRule(util$i, "auto-rows-min", {
1362
+ _responsiveRule(util$j, "auto-rows-min", {
1360
1363
  gridAutoRows: "min-content"
1361
1364
  });
1362
- _responsiveRule(util$i, "auto-rows-max", {
1365
+ _responsiveRule(util$j, "auto-rows-max", {
1363
1366
  gridAutoRows: "max-content"
1364
1367
  });
1365
- _responsiveRule(util$i, "auto-rows-fr", {
1368
+ _responsiveRule(util$j, "auto-rows-fr", {
1366
1369
  gridAutoRows: "minmax(0, 1fr)"
1367
1370
  });
1368
1371
  const gridAutoRowsStyle = {
1369
1372
  layers: {
1370
- util: util$i
1373
+ util: util$j
1371
1374
  }
1372
- }, util$h = {};
1373
- _responsiveRule(util$h, "cols-1", {
1375
+ }, util$i = {};
1376
+ _responsiveRule(util$i, "cols-1", {
1374
1377
  gridTemplateColumns: "repeat(1, 1fr)"
1375
1378
  });
1376
- _responsiveRule(util$h, "cols-2", {
1379
+ _responsiveRule(util$i, "cols-2", {
1377
1380
  gridTemplateColumns: "repeat(2, 1fr)"
1378
1381
  });
1379
- _responsiveRule(util$h, "cols-3", {
1382
+ _responsiveRule(util$i, "cols-3", {
1380
1383
  gridTemplateColumns: "repeat(3, 1fr)"
1381
1384
  });
1382
- _responsiveRule(util$h, "cols-4", {
1385
+ _responsiveRule(util$i, "cols-4", {
1383
1386
  gridTemplateColumns: "repeat(4, 1fr)"
1384
1387
  });
1385
- _responsiveRule(util$h, "cols-5", {
1388
+ _responsiveRule(util$i, "cols-5", {
1386
1389
  gridTemplateColumns: "repeat(5, 1fr)"
1387
1390
  });
1388
- _responsiveRule(util$h, "cols-6", {
1391
+ _responsiveRule(util$i, "cols-6", {
1389
1392
  gridTemplateColumns: "repeat(6, 1fr)"
1390
1393
  });
1391
- _responsiveRule(util$h, "cols-7", {
1394
+ _responsiveRule(util$i, "cols-7", {
1392
1395
  gridTemplateColumns: "repeat(7, 1fr)"
1393
1396
  });
1394
- _responsiveRule(util$h, "cols-8", {
1397
+ _responsiveRule(util$i, "cols-8", {
1395
1398
  gridTemplateColumns: "repeat(8, 1fr)"
1396
1399
  });
1397
- _responsiveRule(util$h, "cols-9", {
1400
+ _responsiveRule(util$i, "cols-9", {
1398
1401
  gridTemplateColumns: "repeat(9, 1fr)"
1399
1402
  });
1400
- _responsiveRule(util$h, "cols-10", {
1403
+ _responsiveRule(util$i, "cols-10", {
1401
1404
  gridTemplateColumns: "repeat(10, 1fr)"
1402
1405
  });
1403
- _responsiveRule(util$h, "cols-12", {
1406
+ _responsiveRule(util$i, "cols-12", {
1404
1407
  gridTemplateColumns: "repeat(12, 1fr)"
1405
1408
  });
1406
1409
  const gridColumnsStyle = {
1407
1410
  layers: {
1408
- util: util$h
1411
+ util: util$i
1409
1412
  }
1410
- }, util$g = {};
1411
- _responsiveRule(util$g, "rows-1", {
1413
+ }, util$h = {};
1414
+ _responsiveRule(util$h, "rows-1", {
1412
1415
  gridTemplateRows: "repeat(1, 1fr)"
1413
1416
  });
1414
- _responsiveRule(util$g, "rows-2", {
1417
+ _responsiveRule(util$h, "rows-2", {
1415
1418
  gridTemplateRows: "repeat(2, 1fr)"
1416
1419
  });
1417
- _responsiveRule(util$g, "rows-3", {
1420
+ _responsiveRule(util$h, "rows-3", {
1418
1421
  gridTemplateRows: "repeat(3, 1fr)"
1419
1422
  });
1420
- _responsiveRule(util$g, "rows-4", {
1423
+ _responsiveRule(util$h, "rows-4", {
1421
1424
  gridTemplateRows: "repeat(4, 1fr)"
1422
1425
  });
1423
- _responsiveRule(util$g, "rows-5", {
1426
+ _responsiveRule(util$h, "rows-5", {
1424
1427
  gridTemplateRows: "repeat(5, 1fr)"
1425
1428
  });
1426
- _responsiveRule(util$g, "rows-6", {
1429
+ _responsiveRule(util$h, "rows-6", {
1427
1430
  gridTemplateRows: "repeat(6, 1fr)"
1428
1431
  });
1429
- _responsiveRule(util$g, "rows-7", {
1432
+ _responsiveRule(util$h, "rows-7", {
1430
1433
  gridTemplateRows: "repeat(7, 1fr)"
1431
1434
  });
1432
- _responsiveRule(util$g, "rows-8", {
1435
+ _responsiveRule(util$h, "rows-8", {
1433
1436
  gridTemplateRows: "repeat(8, 1fr)"
1434
1437
  });
1435
- _responsiveRule(util$g, "rows-9", {
1438
+ _responsiveRule(util$h, "rows-9", {
1436
1439
  gridTemplateRows: "repeat(9, 1fr)"
1437
1440
  });
1438
- _responsiveRule(util$g, "rows-10", {
1441
+ _responsiveRule(util$h, "rows-10", {
1439
1442
  gridTemplateRows: "repeat(10, 1fr)"
1440
1443
  });
1441
- _responsiveRule(util$g, "rows-12", {
1444
+ _responsiveRule(util$h, "rows-12", {
1442
1445
  gridTemplateRows: "repeat(12, 1fr)"
1443
1446
  });
1444
1447
  const gridRowsStyle = {
1445
1448
  layers: {
1446
- util: util$g
1449
+ util: util$h
1447
1450
  }
1448
- }, util$f = {};
1449
- _responsiveRule(util$f, "col-auto", {
1451
+ }, util$g = {};
1452
+ _responsiveRule(util$g, "col-auto", {
1450
1453
  gridColumn: "auto"
1451
1454
  });
1452
- _responsiveRule(util$f, "col-full", {
1455
+ _responsiveRule(util$g, "col-full", {
1453
1456
  gridColumn: "1 / -1"
1454
1457
  });
1455
- _responsiveRule(util$f, "col-1", {
1458
+ _responsiveRule(util$g, "col-1", {
1456
1459
  gridColumn: "span 1 / span 1"
1457
1460
  });
1458
- _responsiveRule(util$f, "col-2", {
1461
+ _responsiveRule(util$g, "col-2", {
1459
1462
  gridColumn: "span 2 / span 2"
1460
1463
  });
1461
- _responsiveRule(util$f, "col-3", {
1464
+ _responsiveRule(util$g, "col-3", {
1462
1465
  gridColumn: "span 3 / span 3"
1463
1466
  });
1464
- _responsiveRule(util$f, "col-4", {
1467
+ _responsiveRule(util$g, "col-4", {
1465
1468
  gridColumn: "span 4 / span 4"
1466
1469
  });
1467
- _responsiveRule(util$f, "col-5", {
1470
+ _responsiveRule(util$g, "col-5", {
1468
1471
  gridColumn: "span 5 / span 5"
1469
1472
  });
1470
- _responsiveRule(util$f, "col-6", {
1473
+ _responsiveRule(util$g, "col-6", {
1471
1474
  gridColumn: "span 6 / span 6"
1472
1475
  });
1473
- _responsiveRule(util$f, "col-7", {
1476
+ _responsiveRule(util$g, "col-7", {
1474
1477
  gridColumn: "span 7 / span 7"
1475
1478
  });
1476
- _responsiveRule(util$f, "col-8", {
1479
+ _responsiveRule(util$g, "col-8", {
1477
1480
  gridColumn: "span 8 / span 8"
1478
1481
  });
1479
- _responsiveRule(util$f, "col-9", {
1482
+ _responsiveRule(util$g, "col-9", {
1480
1483
  gridColumn: "span 9 / span 9"
1481
1484
  });
1482
- _responsiveRule(util$f, "col-10", {
1485
+ _responsiveRule(util$g, "col-10", {
1483
1486
  gridColumn: "span 10 / span 10"
1484
1487
  });
1485
- _responsiveRule(util$f, "col-12", {
1488
+ _responsiveRule(util$g, "col-12", {
1486
1489
  gridColumn: "span 12 / span 12"
1487
1490
  });
1488
1491
  const gridColumnStyle = {
1489
1492
  layers: {
1490
- util: util$f
1493
+ util: util$g
1491
1494
  }
1492
- }, util$e = {};
1493
- _responsiveRule(util$e, "col-end-auto", {
1495
+ }, util$f = {};
1496
+ _responsiveRule(util$f, "col-end-auto", {
1494
1497
  gridColumnEnd: "auto"
1495
1498
  });
1496
- _responsiveRule(util$e, "col-end-1", {
1499
+ _responsiveRule(util$f, "col-end-1", {
1497
1500
  gridColumnEnd: "1"
1498
1501
  });
1499
- _responsiveRule(util$e, "col-end-2", {
1502
+ _responsiveRule(util$f, "col-end-2", {
1500
1503
  gridColumnEnd: "2"
1501
1504
  });
1502
- _responsiveRule(util$e, "col-end-3", {
1505
+ _responsiveRule(util$f, "col-end-3", {
1503
1506
  gridColumnEnd: "3"
1504
1507
  });
1505
- _responsiveRule(util$e, "col-end-4", {
1508
+ _responsiveRule(util$f, "col-end-4", {
1506
1509
  gridColumnEnd: "4"
1507
1510
  });
1508
- _responsiveRule(util$e, "col-end-5", {
1511
+ _responsiveRule(util$f, "col-end-5", {
1509
1512
  gridColumnEnd: "5"
1510
1513
  });
1511
- _responsiveRule(util$e, "col-end-6", {
1514
+ _responsiveRule(util$f, "col-end-6", {
1512
1515
  gridColumnEnd: "6"
1513
1516
  });
1514
- _responsiveRule(util$e, "col-end-7", {
1517
+ _responsiveRule(util$f, "col-end-7", {
1515
1518
  gridColumnEnd: "7"
1516
1519
  });
1517
- _responsiveRule(util$e, "col-end-8", {
1520
+ _responsiveRule(util$f, "col-end-8", {
1518
1521
  gridColumnEnd: "8"
1519
1522
  });
1520
- _responsiveRule(util$e, "col-end-9", {
1523
+ _responsiveRule(util$f, "col-end-9", {
1521
1524
  gridColumnEnd: "9"
1522
1525
  });
1523
- _responsiveRule(util$e, "col-end-10", {
1526
+ _responsiveRule(util$f, "col-end-10", {
1524
1527
  gridColumnEnd: "10"
1525
1528
  });
1526
- _responsiveRule(util$e, "col-end-11", {
1529
+ _responsiveRule(util$f, "col-end-11", {
1527
1530
  gridColumnEnd: "11"
1528
1531
  });
1529
- _responsiveRule(util$e, "col-end-12", {
1532
+ _responsiveRule(util$f, "col-end-12", {
1530
1533
  gridColumnEnd: "12"
1531
1534
  });
1532
1535
  const gridColumnEndStyle = {
1533
1536
  layers: {
1534
- util: util$e
1537
+ util: util$f
1535
1538
  }
1536
- }, util$d = {};
1537
- _responsiveRule(util$d, "col-start-auto", {
1539
+ }, util$e = {};
1540
+ _responsiveRule(util$e, "col-start-auto", {
1538
1541
  gridColumnStart: "auto"
1539
1542
  });
1540
- _responsiveRule(util$d, "col-start-1", {
1543
+ _responsiveRule(util$e, "col-start-1", {
1541
1544
  gridColumnStart: "1"
1542
1545
  });
1543
- _responsiveRule(util$d, "col-start-2", {
1546
+ _responsiveRule(util$e, "col-start-2", {
1544
1547
  gridColumnStart: "2"
1545
1548
  });
1546
- _responsiveRule(util$d, "col-start-3", {
1549
+ _responsiveRule(util$e, "col-start-3", {
1547
1550
  gridColumnStart: "3"
1548
1551
  });
1549
- _responsiveRule(util$d, "col-start-4", {
1552
+ _responsiveRule(util$e, "col-start-4", {
1550
1553
  gridColumnStart: "4"
1551
1554
  });
1552
- _responsiveRule(util$d, "col-start-5", {
1555
+ _responsiveRule(util$e, "col-start-5", {
1553
1556
  gridColumnStart: "5"
1554
1557
  });
1555
- _responsiveRule(util$d, "col-start-6", {
1558
+ _responsiveRule(util$e, "col-start-6", {
1556
1559
  gridColumnStart: "6"
1557
1560
  });
1558
- _responsiveRule(util$d, "col-start-7", {
1561
+ _responsiveRule(util$e, "col-start-7", {
1559
1562
  gridColumnStart: "7"
1560
1563
  });
1561
- _responsiveRule(util$d, "col-start-8", {
1564
+ _responsiveRule(util$e, "col-start-8", {
1562
1565
  gridColumnStart: "8"
1563
1566
  });
1564
- _responsiveRule(util$d, "col-start-9", {
1567
+ _responsiveRule(util$e, "col-start-9", {
1565
1568
  gridColumnStart: "9"
1566
1569
  });
1567
- _responsiveRule(util$d, "col-start-10", {
1570
+ _responsiveRule(util$e, "col-start-10", {
1568
1571
  gridColumnStart: "10"
1569
1572
  });
1570
- _responsiveRule(util$d, "col-start-11", {
1573
+ _responsiveRule(util$e, "col-start-11", {
1571
1574
  gridColumnStart: "11"
1572
1575
  });
1573
- _responsiveRule(util$d, "col-start-12", {
1576
+ _responsiveRule(util$e, "col-start-12", {
1574
1577
  gridColumnStart: "12"
1575
1578
  });
1576
1579
  const gridColumnStartStyle = {
1577
1580
  layers: {
1578
- util: util$d
1581
+ util: util$e
1579
1582
  }
1580
- }, util$c = {};
1581
- _responsiveRule(util$c, "row-auto", {
1583
+ }, util$d = {};
1584
+ _responsiveRule(util$d, "row-auto", {
1582
1585
  gridRow: "auto"
1583
1586
  });
1584
- _responsiveRule(util$c, "row-full", {
1587
+ _responsiveRule(util$d, "row-full", {
1585
1588
  gridRow: "1 / -1"
1586
1589
  });
1587
- _responsiveRule(util$c, "row-1", {
1590
+ _responsiveRule(util$d, "row-1", {
1588
1591
  gridRow: "span 1 / span 1"
1589
1592
  });
1590
- _responsiveRule(util$c, "row-2", {
1593
+ _responsiveRule(util$d, "row-2", {
1591
1594
  gridRow: "span 2 / span 2"
1592
1595
  });
1593
- _responsiveRule(util$c, "row-3", {
1596
+ _responsiveRule(util$d, "row-3", {
1594
1597
  gridRow: "span 3 / span 3"
1595
1598
  });
1596
- _responsiveRule(util$c, "row-4", {
1599
+ _responsiveRule(util$d, "row-4", {
1597
1600
  gridRow: "span 4 / span 4"
1598
1601
  });
1599
- _responsiveRule(util$c, "row-5", {
1602
+ _responsiveRule(util$d, "row-5", {
1600
1603
  gridRow: "span 5 / span 5"
1601
1604
  });
1602
- _responsiveRule(util$c, "row-6", {
1605
+ _responsiveRule(util$d, "row-6", {
1603
1606
  gridRow: "span 6 / span 6"
1604
1607
  });
1605
- _responsiveRule(util$c, "row-7", {
1608
+ _responsiveRule(util$d, "row-7", {
1606
1609
  gridRow: "span 7 / span 7"
1607
1610
  });
1608
- _responsiveRule(util$c, "row-8", {
1611
+ _responsiveRule(util$d, "row-8", {
1609
1612
  gridRow: "span 8 / span 8"
1610
1613
  });
1611
- _responsiveRule(util$c, "row-9", {
1614
+ _responsiveRule(util$d, "row-9", {
1612
1615
  gridRow: "span 9 / span 9"
1613
1616
  });
1614
- _responsiveRule(util$c, "row-10", {
1617
+ _responsiveRule(util$d, "row-10", {
1615
1618
  gridRow: "span 10 / span 10"
1616
1619
  });
1617
- _responsiveRule(util$c, "row-12", {
1620
+ _responsiveRule(util$d, "row-12", {
1618
1621
  gridRow: "span 12 / span 12"
1619
1622
  });
1620
1623
  const gridRowStyle = {
1621
1624
  layers: {
1622
- util: util$c
1625
+ util: util$d
1623
1626
  }
1624
- }, util$b = {};
1625
- _responsiveRule(util$b, "row-end-auto", {
1627
+ }, util$c = {};
1628
+ _responsiveRule(util$c, "row-end-auto", {
1626
1629
  gridRowEnd: "auto"
1627
1630
  });
1628
- _responsiveRule(util$b, "row-end-1", {
1631
+ _responsiveRule(util$c, "row-end-1", {
1629
1632
  gridRowEnd: "1"
1630
1633
  });
1631
- _responsiveRule(util$b, "row-end-2", {
1634
+ _responsiveRule(util$c, "row-end-2", {
1632
1635
  gridRowEnd: "2"
1633
1636
  });
1634
- _responsiveRule(util$b, "row-end-3", {
1637
+ _responsiveRule(util$c, "row-end-3", {
1635
1638
  gridRowEnd: "3"
1636
1639
  });
1637
- _responsiveRule(util$b, "row-end-4", {
1640
+ _responsiveRule(util$c, "row-end-4", {
1638
1641
  gridRowEnd: "4"
1639
1642
  });
1640
- _responsiveRule(util$b, "row-end-5", {
1643
+ _responsiveRule(util$c, "row-end-5", {
1641
1644
  gridRowEnd: "5"
1642
1645
  });
1643
- _responsiveRule(util$b, "row-end-6", {
1646
+ _responsiveRule(util$c, "row-end-6", {
1644
1647
  gridRowEnd: "6"
1645
1648
  });
1646
- _responsiveRule(util$b, "row-end-7", {
1649
+ _responsiveRule(util$c, "row-end-7", {
1647
1650
  gridRowEnd: "7"
1648
1651
  });
1649
- _responsiveRule(util$b, "row-end-8", {
1652
+ _responsiveRule(util$c, "row-end-8", {
1650
1653
  gridRowEnd: "8"
1651
1654
  });
1652
- _responsiveRule(util$b, "row-end-9", {
1655
+ _responsiveRule(util$c, "row-end-9", {
1653
1656
  gridRowEnd: "9"
1654
1657
  });
1655
- _responsiveRule(util$b, "row-end-10", {
1658
+ _responsiveRule(util$c, "row-end-10", {
1656
1659
  gridRowEnd: "10"
1657
1660
  });
1658
- _responsiveRule(util$b, "row-end-11", {
1661
+ _responsiveRule(util$c, "row-end-11", {
1659
1662
  gridRowEnd: "11"
1660
1663
  });
1661
- _responsiveRule(util$b, "row-end-12", {
1664
+ _responsiveRule(util$c, "row-end-12", {
1662
1665
  gridRowEnd: "12"
1663
1666
  });
1664
1667
  const gridRowEndStyle = {
1665
1668
  layers: {
1666
- util: util$b
1669
+ util: util$c
1667
1670
  }
1668
- }, util$a = {};
1669
- _responsiveRule(util$a, "row-start-auto", {
1671
+ }, util$b = {};
1672
+ _responsiveRule(util$b, "row-start-auto", {
1670
1673
  gridRowStart: "auto"
1671
1674
  });
1672
- _responsiveRule(util$a, "row-start-1", {
1675
+ _responsiveRule(util$b, "row-start-1", {
1673
1676
  gridRowStart: "1"
1674
1677
  });
1675
- _responsiveRule(util$a, "row-start-2", {
1678
+ _responsiveRule(util$b, "row-start-2", {
1676
1679
  gridRowStart: "2"
1677
1680
  });
1678
- _responsiveRule(util$a, "row-start-3", {
1681
+ _responsiveRule(util$b, "row-start-3", {
1679
1682
  gridRowStart: "3"
1680
1683
  });
1681
- _responsiveRule(util$a, "row-start-4", {
1684
+ _responsiveRule(util$b, "row-start-4", {
1682
1685
  gridRowStart: "4"
1683
1686
  });
1684
- _responsiveRule(util$a, "row-start-5", {
1687
+ _responsiveRule(util$b, "row-start-5", {
1685
1688
  gridRowStart: "5"
1686
1689
  });
1687
- _responsiveRule(util$a, "row-start-6", {
1690
+ _responsiveRule(util$b, "row-start-6", {
1688
1691
  gridRowStart: "6"
1689
1692
  });
1690
- _responsiveRule(util$a, "row-start-7", {
1693
+ _responsiveRule(util$b, "row-start-7", {
1691
1694
  gridRowStart: "7"
1692
1695
  });
1693
- _responsiveRule(util$a, "row-start-8", {
1696
+ _responsiveRule(util$b, "row-start-8", {
1694
1697
  gridRowStart: "8"
1695
1698
  });
1696
- _responsiveRule(util$a, "row-start-9", {
1699
+ _responsiveRule(util$b, "row-start-9", {
1697
1700
  gridRowStart: "9"
1698
1701
  });
1699
- _responsiveRule(util$a, "row-start-10", {
1702
+ _responsiveRule(util$b, "row-start-10", {
1700
1703
  gridRowStart: "10"
1701
1704
  });
1702
- _responsiveRule(util$a, "row-start-11", {
1705
+ _responsiveRule(util$b, "row-start-11", {
1703
1706
  gridRowStart: "11"
1704
1707
  });
1705
- _responsiveRule(util$a, "row-start-12", {
1708
+ _responsiveRule(util$b, "row-start-12", {
1706
1709
  gridRowStart: "12"
1707
1710
  });
1708
1711
  const gridRowStartStyle = {
1709
1712
  layers: {
1710
- util: util$a
1713
+ util: util$b
1711
1714
  }
1712
- }, util$9 = {};
1713
- _responsiveRule(util$9, "h-fill", {
1715
+ }, util$a = {};
1716
+ _responsiveRule(util$a, "h-fill", {
1714
1717
  height: "100%"
1715
1718
  });
1716
- _responsiveRule(util$9, "h-stretch", {
1719
+ _responsiveRule(util$a, "h-stretch", {
1717
1720
  height: "stretch"
1718
1721
  });
1719
1722
  const heightStyle = {
1720
1723
  layers: {
1721
- util: util$9
1724
+ util: util$a
1722
1725
  }
1723
- }, util$8 = {};
1724
- _responsiveRule(util$8, "inset-0", {
1726
+ }, util$9 = {};
1727
+ _responsiveRule(util$9, "inset-0", {
1725
1728
  top: 0,
1726
1729
  left: 0,
1727
1730
  right: 0,
1728
1731
  bottom: 0
1729
1732
  });
1730
- _responsiveRule(util$8, "top-0", {
1733
+ _responsiveRule(util$9, "top-0", {
1731
1734
  top: 0
1732
1735
  });
1733
- _responsiveRule(util$8, "right-0", {
1736
+ _responsiveRule(util$9, "right-0", {
1734
1737
  right: 0
1735
1738
  });
1736
- _responsiveRule(util$8, "bottom-0", {
1739
+ _responsiveRule(util$9, "bottom-0", {
1737
1740
  bottom: 0
1738
1741
  });
1739
- _responsiveRule(util$8, "left-0", {
1742
+ _responsiveRule(util$9, "left-0", {
1740
1743
  left: 0
1741
1744
  });
1742
1745
  const insetStyle = {
1743
1746
  layers: {
1744
- util: util$8
1747
+ util: util$9
1745
1748
  }
1746
- }, util$7 = {};
1749
+ }, util$8 = {};
1747
1750
  for (const space of SPACE)
1748
- _responsiveRule(util$7, `m-${space}`, {
1751
+ _responsiveRule(util$8, `m-${space}`, {
1749
1752
  margin: vars.space[space]
1750
1753
  });
1751
1754
  for (const space of SPACE)
1752
- _responsiveRule(util$7, `mx-${space}`, {
1755
+ _responsiveRule(util$8, `mx-${space}`, {
1753
1756
  marginLeft: vars.space[space],
1754
1757
  marginRight: vars.space[space]
1755
1758
  });
1756
1759
  for (const space of SPACE)
1757
- _responsiveRule(util$7, `my-${space}`, {
1760
+ _responsiveRule(util$8, `my-${space}`, {
1758
1761
  marginTop: vars.space[space],
1759
1762
  marginBottom: vars.space[space]
1760
1763
  });
1761
1764
  for (const space of SPACE)
1762
- _responsiveRule(util$7, `mt-${space}`, {
1765
+ _responsiveRule(util$8, `mt-${space}`, {
1763
1766
  marginTop: vars.space[space]
1764
1767
  });
1765
1768
  for (const space of SPACE)
1766
- _responsiveRule(util$7, `mr-${space}`, {
1769
+ _responsiveRule(util$8, `mr-${space}`, {
1767
1770
  marginRight: vars.space[space]
1768
1771
  });
1769
1772
  for (const space of SPACE)
1770
- _responsiveRule(util$7, `mb-${space}`, {
1773
+ _responsiveRule(util$8, `mb-${space}`, {
1771
1774
  marginBottom: vars.space[space]
1772
1775
  });
1773
1776
  for (const space of SPACE)
1774
- _responsiveRule(util$7, `ml-${space}`, {
1777
+ _responsiveRule(util$8, `ml-${space}`, {
1775
1778
  marginLeft: vars.space[space]
1776
1779
  });
1777
1780
  const marginStyle = {
1778
1781
  layers: {
1779
- util: util$7
1782
+ util: util$8
1780
1783
  }
1781
- }, util$6 = {};
1782
- _responsiveRule(util$6, "max-w-0", {
1784
+ }, util$7 = {};
1785
+ _responsiveRule(util$7, "max-w-0", {
1783
1786
  maxWidth: vars.container[0]
1784
1787
  });
1785
- _responsiveRule(util$6, "max-w-1", {
1788
+ _responsiveRule(util$7, "max-w-1", {
1786
1789
  maxWidth: vars.container[1]
1787
1790
  });
1788
- _responsiveRule(util$6, "max-w-2", {
1791
+ _responsiveRule(util$7, "max-w-2", {
1789
1792
  maxWidth: vars.container[2]
1790
1793
  });
1791
- _responsiveRule(util$6, "max-w-3", {
1794
+ _responsiveRule(util$7, "max-w-3", {
1792
1795
  maxWidth: vars.container[3]
1793
1796
  });
1794
- _responsiveRule(util$6, "max-w-4", {
1797
+ _responsiveRule(util$7, "max-w-4", {
1795
1798
  maxWidth: vars.container[4]
1796
1799
  });
1797
- _responsiveRule(util$6, "max-w-5", {
1800
+ _responsiveRule(util$7, "max-w-5", {
1798
1801
  maxWidth: vars.container[5]
1799
1802
  });
1800
- _responsiveRule(util$6, "max-w-auto", {
1803
+ _responsiveRule(util$7, "max-w-auto", {
1801
1804
  maxWidth: "none"
1802
1805
  });
1803
- _responsiveRule(util$6, "max-w-fill", {
1806
+ _responsiveRule(util$7, "max-w-fill", {
1804
1807
  maxWidth: "100%"
1805
1808
  });
1806
1809
  const maxWidthStyle = {
1810
+ layers: {
1811
+ util: util$7
1812
+ }
1813
+ }, util$6 = {};
1814
+ _responsiveRule(util$6, "min-w-0", {
1815
+ minWidth: "0"
1816
+ });
1817
+ _responsiveRule(util$6, "min-w-auto", {
1818
+ minWidth: "auto"
1819
+ });
1820
+ _responsiveRule(util$6, "min-w-full", {
1821
+ minWidth: "100%"
1822
+ });
1823
+ _responsiveRule(util$6, "min-w-min", {
1824
+ minWidth: "min-content"
1825
+ });
1826
+ _responsiveRule(util$6, "min-w-max", {
1827
+ minWidth: "max-content"
1828
+ });
1829
+ _responsiveRule(util$6, "min-w-fit", {
1830
+ minWidth: "fit-content"
1831
+ });
1832
+ const minWidthStyle = {
1807
1833
  layers: {
1808
1834
  util: util$6
1809
1835
  }
@@ -2651,7 +2677,7 @@ const badgeStyle = {
2651
2677
  }
2652
2678
  }, primitive$k = {
2653
2679
  ".box": {
2654
- minWidth: 0,
2680
+ // todo: move to aspects
2655
2681
  minHeight: 0,
2656
2682
  "@nest": {
2657
2683
  "&:is(ul), &:is(ol)": {
@@ -2855,7 +2881,7 @@ const buttonStyle = {
2855
2881
  [varNames.color.muted.bg]: vars.color.tinted.default.bg[1],
2856
2882
  [varNames.color.muted.fg]: vars.color.tinted.default.fg[4],
2857
2883
  "@nest": {
2858
- "&:is(button)": {
2884
+ "button&": {
2859
2885
  WebkitFontSmoothing: "inherit",
2860
2886
  appearance: "none",
2861
2887
  outline: "none",
@@ -2865,14 +2891,71 @@ const buttonStyle = {
2865
2891
  // @ts-expect-error - TODO: fix
2866
2892
  width: ["-moz-available", "-webkit-fill-available", "fill-available"]
2867
2893
  },
2868
- "&:is(a)": {
2894
+ "a&": {
2869
2895
  outline: "none",
2870
2896
  textDecoration: "none"
2871
2897
  },
2872
- "&:is(pre)": {
2898
+ "pre&": {
2873
2899
  font: "inherit",
2874
2900
  whiteSpace: "inherit"
2901
+ },
2902
+ "a&:not([data-disabled]):hover, button&:not([data-disabled]):hover": {
2903
+ [varNames.color.bg]: vars.color.tinted.default.bg[1],
2904
+ [varNames.color.border]: vars.color.tinted.default.border[3],
2905
+ [varNames.color.fg]: vars.color.tinted.default.fg[1],
2906
+ [varNames.color.muted.bg]: vars.color.tinted.default.bg[2],
2907
+ [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
2908
+ },
2909
+ "a&:not([data-disabled]):active, button&:not([data-disabled]):active": {
2910
+ [varNames.color.bg]: vars.color.tinted.default.bg[2],
2911
+ [varNames.color.border]: vars.color.tinted.default.border[4],
2912
+ [varNames.color.fg]: vars.color.tinted.default.fg[0],
2913
+ [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
2914
+ [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
2915
+ },
2916
+ // toggle button
2917
+ 'a&:not([data-disabled])[aria-pressed="true"], button&:not([data-disabled])[aria-pressed="true"]': {
2918
+ [varNames.color.bg]: vars.color.tinted.default.bg[2],
2919
+ [varNames.color.border]: vars.color.tinted.default.border[4],
2920
+ [varNames.color.fg]: vars.color.tinted.default.fg[0],
2921
+ [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
2922
+ [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
2923
+ },
2924
+ "a&:not([data-disabled])[data-pressed], button&:not([data-disabled])[data-pressed]": {
2925
+ [varNames.color.bg]: vars.color.tinted.default.bg[2],
2926
+ [varNames.color.border]: vars.color.tinted.default.border[4],
2927
+ [varNames.color.fg]: vars.color.tinted.default.fg[0],
2928
+ [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
2929
+ [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
2930
+ },
2931
+ "a&:not([data-disabled])[data-selected], button&:not([data-disabled])[data-selected]": {
2932
+ [varNames.color.bg]: vars.color.solid.primary.bg[0],
2933
+ [varNames.color.border]: vars.color.solid.primary.border[1],
2934
+ [varNames.color.fg]: vars.color.solid.primary.fg[0],
2935
+ [varNames.color.muted.bg]: vars.color.solid.primary.bg[1],
2936
+ [varNames.color.muted.fg]: vars.color.solid.primary.fg[3]
2937
+ },
2938
+ // '&:not([data-disabled]):focus': {
2939
+ // '--color-bg': vars.color.solid.bg[0],
2940
+ // '--color-border': vars.color.solid.border[1],
2941
+ // '--color-fg': vars.color.solid.fg[1],
2942
+ // '--color-muted-bg': vars.color.solid.bg[1],
2943
+ // '--color-muted-fg': vars.color.solid.fg[3],
2944
+ // },
2945
+ "a&[data-disabled]), button&[data-disabled]": {
2946
+ [varNames.color.bg]: vars.color.tinted.default.bg[2],
2947
+ [varNames.color.border]: vars.color.tinted.default.border[4],
2948
+ [varNames.color.fg]: vars.color.tinted.default.fg[0],
2949
+ [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
2950
+ [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
2875
2951
  }
2952
+ // '&[data-disabled]': {
2953
+ // '--color-bg': vars.color.tinted.bg[0],
2954
+ // '--color-border': vars.color.tinted.border[1],
2955
+ // '--color-fg': vars.color.tinted.border[4],
2956
+ // '--color-muted-bg': vars.color.tinted.bg[1],
2957
+ // '--color-muted-fg': vars.color.tinted.border[4],
2958
+ // },
2876
2959
  }
2877
2960
  }
2878
2961
  };
@@ -3451,21 +3534,15 @@ const labelStyle = {
3451
3534
  outline: "none",
3452
3535
  padding: 0,
3453
3536
  margin: 0,
3454
- /* Place the input element above the representation element */
3537
+ // place the input element on top of the representation element
3455
3538
  zIndex: 1
3456
3539
  },
3457
3540
  ".switch-presentation": {
3458
3541
  "--switch-bg-color": "var(--color-tinted-default-border-2)",
3459
- // '--switch-border-color': 'var(--color-tinted-default-border-1)',
3460
3542
  "--switch-fg-color": "var(--color-tinted-default-bg-0)",
3461
- // --switch-bg-color: ${color.input.default.enabled.border};
3462
- // --switch-fg-color: ${color.input.default.enabled.bg};
3463
3543
  "--switch-thumb-offset": "0",
3464
3544
  "--switch-thumb-size": "calc(var(--input-switch-height) - var(--input-switch-padding) * 2)",
3465
3545
  display: "block",
3466
- // &:not([hidden]) {
3467
- // display: block;
3468
- // }
3469
3546
  position: "relative",
3470
3547
  width: "var(--input-switch-width)",
3471
3548
  height: "var(--input-switch-height)",
@@ -3474,20 +3551,7 @@ const labelStyle = {
3474
3551
  // Make sure it’s not possible to interact with the presentation element
3475
3552
  pointerEvents: "none",
3476
3553
  "@nest": {
3477
- // '&::after': {
3478
- // content: '""',
3479
- // display: 'block',
3480
- // position: 'absolute',
3481
- // top: 0,
3482
- // left: 0,
3483
- // right: 0,
3484
- // bottom: 0,
3485
- // zIndex: 1,
3486
- // // boxShadow: 'var(--switch-box-shadow)',
3487
- // borderRadius: 'inherit',
3488
- // },
3489
3554
  ".switch-element:focus + &": {
3490
- // --switch-box-shadow: ${focusRingStyle({focusRing: input.switch.focusRing})};
3491
3555
  outline: "var(--input-switch-focus-ring-width) solid var(--color-focus-ring)"
3492
3556
  },
3493
3557
  "input:focus:not(:focus-visible) + &": {
@@ -3495,35 +3559,15 @@ const labelStyle = {
3495
3559
  },
3496
3560
  "input:checked + &": {
3497
3561
  "--switch-bg-color": "var(--color-solid-default-bg-0)",
3498
- // '--switch-border-color': 'var(--color-solid-default-bg-0)',
3499
3562
  "--switch-fg-color": "var(--color-solid-default-fg-0)"
3500
3563
  },
3501
- // input:not([data-read-only]):disabled + && {
3502
- // --switch-bg-color: ${color.input.default.disabled.border};
3503
- // --switch-fg-color: ${color.input.default.disabled.bg};
3504
- // }
3505
- // input[data-read-only]:disabled + && {
3506
- // --switch-bg-color: ${color.input.default.readOnly.border};
3507
- // --switch-fg-color: ${color.input.default.readOnly.bg};
3508
- // }
3509
- // input:checked[data-read-only]:disabled + && {
3510
- // --switch-bg-color: ${color.input.default.readOnly.fg};
3511
- // --switch-fg-color: ${color.input.default.readOnly.bg};
3512
- // }
3513
3564
  ".switch-element:checked + &": {
3514
3565
  "--switch-thumb-offset": "calc(var(--input-switch-width) - (var(--input-switch-padding) * 2) - var(--switch-thumb-size))"
3566
+ },
3567
+ "[data-indeterminate] > .switch-element + &": {
3568
+ "--switch-thumb-offset": "calc(var(--input-switch-width) / 2 - var(--switch-thumb-size) / 2 - var(--input-switch-padding))"
3515
3569
  }
3516
3570
  }
3517
- // @media (hover: hover) {
3518
- // input:not(:disabled):hover + && {
3519
- // --switch-bg-color: ${color.input.default.hovered.border};
3520
- // --switch-fg-color: ${color.input.default.hovered.bg};
3521
- // }
3522
- // input:not(:disabled):checked:hover + && {
3523
- // --switch-bg-color: ${color.input.default.enabled.fg};
3524
- // --switch-fg-color: ${color.input.default.enabled.bg};
3525
- // }
3526
- // }
3527
3571
  },
3528
3572
  ".switch-track": {
3529
3573
  display: "block",
@@ -3534,11 +3578,9 @@ const labelStyle = {
3534
3578
  right: 0,
3535
3579
  bottom: 0,
3536
3580
  borderRadius: "inherit",
3537
- // boxShadow: 'inset 0 0 0 1px var(--switch-border-color)',
3538
3581
  transition: "box-shadow, background-color var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
3539
3582
  },
3540
3583
  ".switch-thumb": {
3541
- // '--switch-thumb-offset': '0',
3542
3584
  display: "block",
3543
3585
  position: "absolute",
3544
3586
  left: "var(--input-switch-padding)",
@@ -3550,40 +3592,6 @@ const labelStyle = {
3550
3592
  boxShadow: "0 0 0 0.5px var(--color-shadow-umbra), 0 0.5px 2px 0.5px var(--color-shadow-umbra)",
3551
3593
  transform: "translate3d(var(--switch-thumb-offset), 0, 0)",
3552
3594
  transition: "transform var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
3553
- // transition-property: transform;
3554
- // transition-duration: ${input.switch.transitionDurationMs}ms;
3555
- // transition-timing-function: ${input.switch.transitionTimingFunction};
3556
- // const {$indeterminate} = props
3557
- // const {input} = getTheme_v2(props.theme)
3558
- // const trackWidth = input.switch.width
3559
- // const trackHeight = input.switch.height
3560
- // const trackPadding = input.switch.padding
3561
- // const size = trackHeight - input.switch.padding * 2
3562
- // const checkedOffset = trackWidth - trackPadding * 2 - size
3563
- // const indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding
3564
- // const checked = $indeterminate !== true && props.$checked === true
3565
- // return css`
3566
- // position: absolute;
3567
- // left: ${rem(trackPadding)};
3568
- // top: ${rem(trackPadding)};
3569
- // height: ${rem(size)};
3570
- // width: ${rem(size)};
3571
- // border-radius: ${rem(size / 2)};
3572
- // transition-property: transform;
3573
- // transition-duration: ${input.switch.transitionDurationMs}ms;
3574
- // transition-timing-function: ${input.switch.transitionTimingFunction};
3575
- // background: var(--switch-fg-color);
3576
- // transform: translate3d(0, 0, 0);
3577
- // box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
3578
- // ${checked &&
3579
- // css`
3580
- // transform: translate3d(${checkedOffset}px, 0, 0);
3581
- // `}
3582
- // ${$indeterminate &&
3583
- // css`
3584
- // transform: translate3d(${indeterminateOffset}px, 0, 0);
3585
- // `}
3586
- // `
3587
3595
  }
3588
3596
  }, switchStyle = {
3589
3597
  layers: {
@@ -3988,6 +3996,7 @@ const textStyle = {
3988
3996
  insetStyle,
3989
3997
  marginStyle,
3990
3998
  maxWidthStyle,
3999
+ minWidthStyle,
3991
4000
  outlineStyle,
3992
4001
  overflowStyle,
3993
4002
  paddingStyle,
@@ -4113,7 +4122,7 @@ function compileStyleRule(_selector, properties) {
4113
4122
  `), nestedProps)
4114
4123
  for (const [_nestedSelector, nestedProperties] of Object.entries(nestedProps)) {
4115
4124
  const nestedSelector = _prefix && (nestedProperties._prefix ?? !0) ? _nestedSelector.replace(/\./g, `.${PREFIX}`) : _nestedSelector;
4116
- css += `${nestedSelector.replace("&", selector)} {
4125
+ css += `${nestedSelector.replace(/&/g, selector)} {
4117
4126
  `, css += compileProperties(nestedProperties), css += `}
4118
4127
 
4119
4128
  `;
@@ -4560,6 +4569,7 @@ function box(props) {
4560
4569
  inset(props),
4561
4570
  margin(props),
4562
4571
  maxWidth(props),
4572
+ minWidth(props),
4563
4573
  props.outline && `outline-${props.outline}`,
4564
4574
  overflow(props),
4565
4575
  padding(props),
@@ -4608,6 +4618,9 @@ function label(props) {
4608
4618
  function popover() {
4609
4619
  return _comp("popover");
4610
4620
  }
4621
+ function popoverCard() {
4622
+ return _comp("popover-card");
4623
+ }
4611
4624
  function radio() {
4612
4625
  return _comp("radio");
4613
4626
  }
@@ -4723,10 +4736,12 @@ export {
4723
4736
  maxWidth,
4724
4737
  menu,
4725
4738
  menuDivider,
4739
+ minWidth,
4726
4740
  overflow,
4727
4741
  padding,
4728
4742
  pointerEvents,
4729
4743
  popover,
4744
+ popoverCard,
4730
4745
  position,
4731
4746
  px,
4732
4747
  radio,