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