opus-react 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -1215,6 +1215,300 @@
1215
1215
  line-height: 1.4;
1216
1216
  }
1217
1217
 
1218
+ /* components/fields/RichTextField/RichTextField.module.css */
1219
+ .opus_6HFqZH_field {
1220
+ gap: 6px;
1221
+ width: 100%;
1222
+ display: grid;
1223
+ }
1224
+
1225
+ .opus_6HFqZH_editorShell {
1226
+ border: 1px solid var(--opus-border-strong);
1227
+ border-radius: var(--opus-input-radius);
1228
+ background: var(--opus-input-bg);
1229
+ box-shadow: inset 0 1px #ffffff0d, 0 14px 30px #0000000f;
1230
+ }
1231
+
1232
+ .opus_6HFqZH_editorShell:focus-within {
1233
+ border-color: var(--opus-accent);
1234
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--opus-accent) 22%, transparent),
1235
+ 0 14px 30px #0000000f;
1236
+ }
1237
+
1238
+ .opus_6HFqZH_error {
1239
+ border-color: color-mix(in srgb, var(--opus-error) 75%, transparent);
1240
+ }
1241
+
1242
+ .opus_6HFqZH_toolbar {
1243
+ border-bottom: 1px solid var(--opus-border-strong);
1244
+ border-top-left-radius: var(--opus-input-radius);
1245
+ border-top-right-radius: var(--opus-input-radius);
1246
+ background: color-mix(in srgb, var(--opus-surface-raised) 88%, transparent);
1247
+ flex-wrap: wrap;
1248
+ align-items: center;
1249
+ gap: 3px;
1250
+ padding: 6px;
1251
+ display: flex;
1252
+ }
1253
+
1254
+ .opus_6HFqZH_divider {
1255
+ background: color-mix(in srgb, var(--opus-border-strong) 80%, transparent);
1256
+ align-self: stretch;
1257
+ width: 1px;
1258
+ margin: 2px 4px;
1259
+ }
1260
+
1261
+ .opus_6HFqZH_blockSelect {
1262
+ border: 1px solid var(--opus-border-strong);
1263
+ background: var(--opus-input-bg);
1264
+ min-height: 26px;
1265
+ color: var(--opus-text);
1266
+ cursor: pointer;
1267
+ border-radius: 5px;
1268
+ padding: 0 6px;
1269
+ font-size: .72rem;
1270
+ font-weight: 600;
1271
+ }
1272
+
1273
+ .opus_6HFqZH_blockSelect:focus-visible {
1274
+ border-color: var(--opus-accent);
1275
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--opus-accent) 22%, transparent);
1276
+ outline: none;
1277
+ }
1278
+
1279
+ .opus_6HFqZH_blockSelect:disabled {
1280
+ opacity: .55;
1281
+ cursor: not-allowed;
1282
+ }
1283
+
1284
+ .opus_6HFqZH_buttonWrap {
1285
+ display: inline-flex;
1286
+ position: relative;
1287
+ }
1288
+
1289
+ .opus_6HFqZH_toolbarButton {
1290
+ width: 24px;
1291
+ height: 24px;
1292
+ color: var(--opus-text);
1293
+ cursor: pointer;
1294
+ background: none;
1295
+ border: 1px solid #0000;
1296
+ border-radius: 5px;
1297
+ justify-content: center;
1298
+ align-items: center;
1299
+ line-height: 1;
1300
+ transition: background .14s, border-color .14s, color .14s;
1301
+ display: inline-flex;
1302
+ }
1303
+
1304
+ .opus_6HFqZH_toolbarIcon {
1305
+ width: 12px;
1306
+ height: 12px;
1307
+ font-size: .7rem;
1308
+ }
1309
+
1310
+ .opus_6HFqZH_toolbarButton:hover:not(:disabled) {
1311
+ border-color: var(--opus-border-strong);
1312
+ background: color-mix(in srgb, var(--opus-accent-soft) 55%, transparent);
1313
+ }
1314
+
1315
+ .opus_6HFqZH_toolbarButton:focus-visible {
1316
+ border-color: var(--opus-accent);
1317
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--opus-accent) 22%, transparent);
1318
+ outline: none;
1319
+ }
1320
+
1321
+ .opus_6HFqZH_toolbarButtonActive {
1322
+ border-color: color-mix(in srgb, var(--opus-accent) 45%, transparent);
1323
+ background: var(--opus-accent);
1324
+ color: var(--opus-accent-contrast, #fff);
1325
+ }
1326
+
1327
+ .opus_6HFqZH_toolbarButtonActive:hover:not(:disabled) {
1328
+ background: var(--opus-accent);
1329
+ color: var(--opus-accent-contrast, #fff);
1330
+ }
1331
+
1332
+ .opus_6HFqZH_toolbarButton:disabled {
1333
+ opacity: .5;
1334
+ cursor: not-allowed;
1335
+ }
1336
+
1337
+ .opus_6HFqZH_colorSwatch {
1338
+ border-radius: 2px;
1339
+ height: 3px;
1340
+ position: absolute;
1341
+ bottom: 2px;
1342
+ left: 3px;
1343
+ right: 3px;
1344
+ }
1345
+
1346
+ .opus_6HFqZH_colorInput {
1347
+ opacity: 0;
1348
+ cursor: pointer;
1349
+ border: 0;
1350
+ width: 100%;
1351
+ height: 100%;
1352
+ padding: 0;
1353
+ position: absolute;
1354
+ inset: 0;
1355
+ }
1356
+
1357
+ .opus_6HFqZH_colorInput:disabled {
1358
+ cursor: not-allowed;
1359
+ }
1360
+
1361
+ .opus_6HFqZH_tooltip {
1362
+ z-index: 30;
1363
+ background: var(--opus-tooltip-bg, #1f2430);
1364
+ color: var(--opus-tooltip-text, #fff);
1365
+ white-space: nowrap;
1366
+ pointer-events: none;
1367
+ opacity: 0;
1368
+ visibility: hidden;
1369
+ border-radius: 6px;
1370
+ padding: 4px 8px;
1371
+ font-size: .7rem;
1372
+ font-weight: 600;
1373
+ line-height: 1.2;
1374
+ transition: opacity .12s, transform .12s;
1375
+ position: absolute;
1376
+ top: calc(100% + 6px);
1377
+ left: 50%;
1378
+ transform: translateX(-50%) translateY(2px);
1379
+ box-shadow: 0 6px 18px #00000038;
1380
+ }
1381
+
1382
+ .opus_6HFqZH_tooltip:before {
1383
+ content: "";
1384
+ border: 4px solid #0000;
1385
+ border-bottom-color: var(--opus-tooltip-bg, #1f2430);
1386
+ position: absolute;
1387
+ bottom: 100%;
1388
+ left: 50%;
1389
+ transform: translateX(-50%);
1390
+ }
1391
+
1392
+ .opus_6HFqZH_buttonWrap:hover .opus_6HFqZH_tooltip, .opus_6HFqZH_toolbarButton:focus-visible + .opus_6HFqZH_tooltip {
1393
+ opacity: 1;
1394
+ visibility: visible;
1395
+ transform: translateX(-50%) translateY(0);
1396
+ }
1397
+
1398
+ .opus_6HFqZH_editor {
1399
+ min-height: 180px;
1400
+ color: var(--opus-text);
1401
+ font-size: var(--opus-control-font-size);
1402
+ border-bottom-left-radius: var(--opus-input-radius);
1403
+ border-bottom-right-radius: var(--opus-input-radius);
1404
+ outline: none;
1405
+ padding: 12px 14px;
1406
+ line-height: 1.6;
1407
+ }
1408
+
1409
+ .opus_6HFqZH_editor:empty:before {
1410
+ content: attr(data-placeholder);
1411
+ color: color-mix(in srgb, var(--opus-muted) 80%, transparent);
1412
+ pointer-events: none;
1413
+ }
1414
+
1415
+ .opus_6HFqZH_editor p {
1416
+ margin: 0 0 .75em;
1417
+ }
1418
+
1419
+ .opus_6HFqZH_editor p:last-child {
1420
+ margin-bottom: 0;
1421
+ }
1422
+
1423
+ .opus_6HFqZH_editor h1, .opus_6HFqZH_editor h2, .opus_6HFqZH_editor h3 {
1424
+ margin: 0 0 .5em;
1425
+ font-weight: 700;
1426
+ line-height: 1.25;
1427
+ }
1428
+
1429
+ .opus_6HFqZH_editor h1 {
1430
+ font-size: 1.6rem;
1431
+ }
1432
+
1433
+ .opus_6HFqZH_editor h2 {
1434
+ font-size: 1.35rem;
1435
+ }
1436
+
1437
+ .opus_6HFqZH_editor h3 {
1438
+ font-size: 1.15rem;
1439
+ }
1440
+
1441
+ .opus_6HFqZH_editor ul, .opus_6HFqZH_editor ol {
1442
+ margin: 0 0 .75em;
1443
+ padding-left: 1.4em;
1444
+ }
1445
+
1446
+ .opus_6HFqZH_editor li {
1447
+ margin: .15em 0;
1448
+ }
1449
+
1450
+ .opus_6HFqZH_editor a {
1451
+ color: var(--opus-accent);
1452
+ text-decoration: underline;
1453
+ }
1454
+
1455
+ .opus_6HFqZH_editor blockquote {
1456
+ border-left: 3px solid color-mix(in srgb, var(--opus-accent) 55%, transparent);
1457
+ color: var(--opus-muted);
1458
+ margin: 0 0 .75em;
1459
+ padding: 4px 0 4px 14px;
1460
+ font-style: italic;
1461
+ }
1462
+
1463
+ .opus_6HFqZH_editor pre {
1464
+ background: color-mix(in srgb, var(--opus-surface-sunken, #0b0b0f) 92%, transparent);
1465
+ color: var(--opus-text);
1466
+ font-family: var(--opus-font-mono, ui-monospace, monospace);
1467
+ white-space: pre-wrap;
1468
+ border-radius: 8px;
1469
+ margin: 0 0 .75em;
1470
+ padding: 12px 14px;
1471
+ font-size: .85rem;
1472
+ overflow-x: auto;
1473
+ }
1474
+
1475
+ .opus_6HFqZH_editor img {
1476
+ border-radius: 6px;
1477
+ max-width: 100%;
1478
+ height: auto;
1479
+ }
1480
+
1481
+ .opus_6HFqZH_editor hr {
1482
+ border: 0;
1483
+ border-top: 1px solid var(--opus-border-strong);
1484
+ margin: 1em 0;
1485
+ }
1486
+
1487
+ .opus_6HFqZH_editor table {
1488
+ border-collapse: collapse;
1489
+ width: 100%;
1490
+ margin: 0 0 .75em;
1491
+ font-size: .9em;
1492
+ }
1493
+
1494
+ .opus_6HFqZH_editor th, .opus_6HFqZH_editor td {
1495
+ border: 1px solid var(--opus-border-strong);
1496
+ text-align: left;
1497
+ vertical-align: top;
1498
+ min-width: 40px;
1499
+ padding: 6px 8px;
1500
+ }
1501
+
1502
+ .opus_6HFqZH_editor th {
1503
+ background: color-mix(in srgb, var(--opus-surface-raised) 80%, transparent);
1504
+ font-weight: 700;
1505
+ }
1506
+
1507
+ .opus_6HFqZH_readOnly {
1508
+ background: color-mix(in srgb, var(--opus-surface-raised) 70%, transparent);
1509
+ cursor: default;
1510
+ }
1511
+
1218
1512
  /* components/fields/TextField/TextField.module.css */
1219
1513
  .opus_SOck2f_input {
1220
1514
  width: 100%;