@tecof/theme-editor 0.0.25 → 0.0.26

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/styles.css CHANGED
@@ -328,13 +328,39 @@
328
328
  color: #18181b;
329
329
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
330
330
  }
331
- .tecof-editor-field .tiptap p { margin: 0 0 0.5em 0; }
332
- .tecof-editor-field .tiptap h2 { font-size: 1.4em; font-weight: 600; margin: 0.8em 0 0.4em; }
333
- .tecof-editor-field .tiptap h3 { font-size: 1.2em; font-weight: 600; margin: 0.6em 0 0.3em; }
334
- .tecof-editor-field .tiptap h4 { font-size: 1.1em; font-weight: 600; margin: 0.5em 0 0.25em; }
331
+
332
+ .tecof-editor-field .tiptap p {
333
+ margin: 0 0 0.5em 0;
334
+ }
335
+
336
+ .tecof-editor-field .tiptap h2 {
337
+ font-size: 1.4em;
338
+ font-weight: 600;
339
+ margin: 0.8em 0 0.4em;
340
+ }
341
+
342
+ .tecof-editor-field .tiptap h3 {
343
+ font-size: 1.2em;
344
+ font-weight: 600;
345
+ margin: 0.6em 0 0.3em;
346
+ }
347
+
348
+ .tecof-editor-field .tiptap h4 {
349
+ font-size: 1.1em;
350
+ font-weight: 600;
351
+ margin: 0.5em 0 0.25em;
352
+ }
353
+
335
354
  .tecof-editor-field .tiptap ul,
336
- .tecof-editor-field .tiptap ol { padding-left: 1.4em; margin: 0.4em 0; }
337
- .tecof-editor-field .tiptap li { margin: 0.1em 0; }
355
+ .tecof-editor-field .tiptap ol {
356
+ padding-left: 1.4em;
357
+ margin: 0.4em 0;
358
+ }
359
+
360
+ .tecof-editor-field .tiptap li {
361
+ margin: 0.1em 0;
362
+ }
363
+
338
364
  .tecof-editor-field .tiptap blockquote {
339
365
  border-left: 3px solid #e4e4e7;
340
366
  padding-left: 12px;
@@ -342,18 +368,34 @@
342
368
  color: #71717a;
343
369
  font-style: italic;
344
370
  }
345
- .tecof-editor-field .tiptap a { color: var(--tecof-primary-500, #3b82f6); text-decoration: underline; }
371
+
372
+ .tecof-editor-field .tiptap a {
373
+ color: var(--tecof-primary-500, #3b82f6);
374
+ text-decoration: underline;
375
+ }
376
+
346
377
  .tecof-editor-field .tiptap code {
347
- background: #f4f4f5; padding: 2px 4px; border-radius: 3px;
348
- font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.9em;
378
+ background: #f4f4f5;
379
+ padding: 2px 4px;
380
+ border-radius: 3px;
381
+ font-family: 'SF Mono', 'Fira Code', monospace;
382
+ font-size: 0.9em;
349
383
  }
384
+
350
385
  .tecof-editor-field .tiptap pre {
351
- background: #18181b; color: #e4e4e7; padding: 12px 16px;
352
- border-radius: 6px; font-family: 'SF Mono', 'Fira Code', monospace;
353
- font-size: 13px; overflow-x: auto;
386
+ background: #18181b;
387
+ color: #e4e4e7;
388
+ padding: 12px 16px;
389
+ border-radius: 6px;
390
+ font-family: 'SF Mono', 'Fira Code', monospace;
391
+ font-size: 13px;
392
+ overflow-x: auto;
354
393
  }
394
+
355
395
  .tecof-editor-field .tiptap hr {
356
- border: none; border-top: 1px solid #e4e4e7; margin: 1em 0;
396
+ border: none;
397
+ border-top: 1px solid #e4e4e7;
398
+ margin: 1em 0;
357
399
  }
358
400
 
359
401
  /* ─── LanguageField ─── */
@@ -399,7 +441,7 @@
399
441
  font-weight: 600;
400
442
  color: #18181b;
401
443
  background: #ffffff;
402
- box-shadow: 0 1px 3px rgba(0,0,0,0.08);
444
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
403
445
  }
404
446
 
405
447
  .tecof-lang-default-badge {
@@ -521,8 +563,17 @@
521
563
  }
522
564
 
523
565
  @keyframes tecof-pulse {
524
- 0%, 100% { opacity: 1; transform: scale(1); }
525
- 50% { opacity: 0.5; transform: scale(0.8); }
566
+
567
+ 0%,
568
+ 100% {
569
+ opacity: 1;
570
+ transform: scale(1);
571
+ }
572
+
573
+ 50% {
574
+ opacity: 0.5;
575
+ transform: scale(0.8);
576
+ }
526
577
  }
527
578
 
528
579
  /* ─── LinkField ─── */
@@ -677,7 +728,8 @@
677
728
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
678
729
  }
679
730
 
680
- .tecof-link-input:focus, .tecof-link-select-small:focus {
731
+ .tecof-link-input:focus,
732
+ .tecof-link-select-small:focus {
681
733
  border-color: var(--tecof-primary-500, #3b82f6);
682
734
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
683
735
  }
@@ -840,9 +892,17 @@
840
892
  flex-shrink: 0;
841
893
  }
842
894
 
843
- .tecof-link-status-dot.published { background: #22c55e; }
844
- .tecof-link-status-dot.changed { background: #f59e0b; }
845
- .tecof-link-status-dot.draft { background: #a1a1aa; }
895
+ .tecof-link-status-dot.published {
896
+ background: #22c55e;
897
+ }
898
+
899
+ .tecof-link-status-dot.changed {
900
+ background: #f59e0b;
901
+ }
902
+
903
+ .tecof-link-status-dot.draft {
904
+ background: #a1a1aa;
905
+ }
846
906
 
847
907
  /* ─── UploadField ─── */
848
908
  .tecof-upload-container {
@@ -907,13 +967,13 @@
907
967
  border: 1px solid #e4e4e7;
908
968
  border-radius: 10px;
909
969
  transition: all 0.2s ease;
910
- box-shadow: 0 1px 2px rgba(0,0,0,0.04);
970
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
911
971
  max-width: 100%;
912
972
  overflow: hidden;
913
973
  }
914
974
 
915
975
  .tecof-upload-file-item:hover {
916
- box-shadow: 0 4px 12px rgba(0,0,0,0.05);
976
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
917
977
  border-color: #d4d4d8;
918
978
  }
919
979
 
@@ -1045,11 +1105,11 @@
1045
1105
  border-radius: 10px;
1046
1106
  cursor: pointer;
1047
1107
  transition: all 0.2s ease;
1048
- box-shadow: 0 2px 8px rgba(59,130,246,0.25);
1108
+ box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
1049
1109
  }
1050
1110
 
1051
1111
  .tecof-upload-btn-primary:hover {
1052
- box-shadow: 0 4px 12px rgba(59,130,246,0.35);
1112
+ box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
1053
1113
  transform: translateY(-1px);
1054
1114
  }
1055
1115
 
@@ -1068,7 +1128,7 @@
1068
1128
  border-radius: 10px;
1069
1129
  cursor: pointer;
1070
1130
  transition: all 0.2s ease;
1071
- box-shadow: 0 1px 2px rgba(0,0,0,0.05);
1131
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
1072
1132
  }
1073
1133
 
1074
1134
  .tecof-upload-btn-secondary:hover {
@@ -1145,7 +1205,7 @@
1145
1205
  border-top-left-radius: 20px;
1146
1206
  border-top-right-radius: 20px;
1147
1207
  z-index: 10000;
1148
- box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
1208
+ box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
1149
1209
  }
1150
1210
 
1151
1211
  .tecof-upload-drawer-handle {
@@ -1222,7 +1282,7 @@
1222
1282
  .tecof-upload-search-box:focus-within {
1223
1283
  background: #ffffff;
1224
1284
  border-color: var(--tecof-primary-500, #3b82f6);
1225
- box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
1285
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
1226
1286
  }
1227
1287
 
1228
1288
  .tecof-upload-search-input {
@@ -1255,7 +1315,7 @@
1255
1315
  border-radius: 10px;
1256
1316
  cursor: pointer;
1257
1317
  transition: all 0.2s ease;
1258
- box-shadow: 0 1px 3px rgba(0,0,0,0.04);
1318
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
1259
1319
  }
1260
1320
 
1261
1321
  .tecof-upload-gallery-item:hover {
@@ -1265,7 +1325,7 @@
1265
1325
  .tecof-upload-gallery-item.selected {
1266
1326
  background: #eff6ff;
1267
1327
  border-color: var(--tecof-primary-500, #3b82f6);
1268
- box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
1328
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
1269
1329
  }
1270
1330
 
1271
1331
  .tecof-upload-gallery-check {
@@ -1281,7 +1341,7 @@
1281
1341
  justify-content: center;
1282
1342
  color: #ffffff;
1283
1343
  z-index: 1;
1284
- box-shadow: 0 1px 4px rgba(59,130,246,0.3);
1344
+ box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
1285
1345
  }
1286
1346
 
1287
1347
  .tecof-upload-gallery-thumb {
@@ -1410,7 +1470,7 @@
1410
1470
  font-size: 13px;
1411
1471
  font-weight: 500;
1412
1472
  border-radius: 8px;
1413
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
1473
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1414
1474
  z-index: 9999;
1415
1475
  font-family: 'Inter', system-ui, sans-serif;
1416
1476
  }
@@ -1426,7 +1486,9 @@
1426
1486
  }
1427
1487
 
1428
1488
  @keyframes tecof-spin {
1429
- to { transform: rotate(360deg); }
1489
+ to {
1490
+ transform: rotate(360deg);
1491
+ }
1430
1492
  }
1431
1493
 
1432
1494
  /* ─── TecofPicture ─── */
@@ -1509,16 +1571,46 @@
1509
1571
  }
1510
1572
 
1511
1573
  /* ─── Extra Helpers ─── */
1512
- .tecof-flex-1 { flex: 1; }
1513
- .tecof-flex-none { flex: none; }
1514
- .tecof-pad-8-16 { padding: 8px 16px; }
1515
- .tecof-text-center { text-align: center; }
1516
- .tecof-p-40 { padding: 40px; }
1517
- .tecof-text-muted { color: #a1a1aa; }
1518
- .tecof-min-w-0 { min-width: 0; }
1519
- .tecof-underline { text-decoration: underline; }
1520
- .tecof-line-through { text-decoration: line-through; }
1521
- .tecof-spin { animation: tecof-spin 1s linear infinite; }
1574
+ .tecof-flex-1 {
1575
+ flex: 1;
1576
+ }
1577
+
1578
+ .tecof-flex-none {
1579
+ flex: none;
1580
+ }
1581
+
1582
+ .tecof-pad-8-16 {
1583
+ padding: 8px 16px;
1584
+ }
1585
+
1586
+ .tecof-text-center {
1587
+ text-align: center;
1588
+ }
1589
+
1590
+ .tecof-p-40 {
1591
+ padding: 40px;
1592
+ }
1593
+
1594
+ .tecof-text-muted {
1595
+ color: #a1a1aa;
1596
+ }
1597
+
1598
+ .tecof-min-w-0 {
1599
+ min-width: 0;
1600
+ }
1601
+
1602
+ .tecof-underline {
1603
+ text-decoration: underline;
1604
+ }
1605
+
1606
+ .tecof-line-through {
1607
+ text-decoration: line-through;
1608
+ }
1609
+
1610
+ .tecof-spin {
1611
+ animation: tecof-spin 1s linear infinite;
1612
+ }
1613
+
1522
1614
  .tecof-sr-only {
1523
1615
  position: absolute;
1524
1616
  width: 1px;
@@ -1531,9 +1623,18 @@
1531
1623
  border-width: 0;
1532
1624
  }
1533
1625
 
1534
- .tecof-lang-loading-dot:nth-child(1) { animation: tecof-pulse 1.2s ease-in-out infinite; }
1535
- .tecof-lang-loading-dot:nth-child(2) { animation: tecof-pulse 1.2s ease-in-out 0.2s infinite; }
1536
- .tecof-lang-loading-dot:nth-child(3) { animation: tecof-pulse 1.2s ease-in-out 0.4s infinite; }
1626
+ .tecof-lang-loading-dot:nth-child(1) {
1627
+ animation: tecof-pulse 1.2s ease-in-out infinite;
1628
+ }
1629
+
1630
+ .tecof-lang-loading-dot:nth-child(2) {
1631
+ animation: tecof-pulse 1.2s ease-in-out 0.2s infinite;
1632
+ }
1633
+
1634
+ .tecof-lang-loading-dot:nth-child(3) {
1635
+ animation: tecof-pulse 1.2s ease-in-out 0.4s infinite;
1636
+ }
1637
+
1537
1638
  .filepond--root {
1538
1639
  margin-bottom: 0 !important;
1539
1640
  }
@@ -1547,8 +1648,9 @@
1547
1648
  .tecof-drawer-popover {
1548
1649
  display: none;
1549
1650
  position: absolute;
1550
- left: 105%;
1551
- top: 0;
1651
+ left: auto;
1652
+ right: auto;
1653
+ top: 50px;
1552
1654
  z-index: 1000;
1553
1655
  width: 320px;
1554
1656
  flex-direction: column;
@@ -1558,7 +1660,8 @@
1558
1660
  border: 1px solid #e4e4e7;
1559
1661
  overflow: hidden;
1560
1662
  user-select: none;
1561
- pointer-events: none; /* Prevent flickering and accidental interactions */
1663
+ pointer-events: none;
1664
+ /* Prevent flickering and accidental interactions */
1562
1665
  }
1563
1666
 
1564
1667
  /* Show the popover when hovering over its parent .group */
@@ -1604,14 +1707,21 @@
1604
1707
  width: 100%;
1605
1708
  height: auto;
1606
1709
  border-radius: 4px;
1607
- box-shadow: 0 1px 3px rgba(0,0,0,0.05);
1710
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
1608
1711
  border: 1px solid #f4f4f5;
1609
1712
  background: white;
1610
1713
  }
1611
1714
 
1612
1715
  @keyframes tecof-pulse-loader {
1613
- 0%, 100% { opacity: 1; }
1614
- 50% { opacity: 0.5; }
1716
+
1717
+ 0%,
1718
+ 100% {
1719
+ opacity: 1;
1720
+ }
1721
+
1722
+ 50% {
1723
+ opacity: 0.5;
1724
+ }
1615
1725
  }
1616
1726
 
1617
1727
  .tecof-drawer-preview-error {
@@ -1624,12 +1734,12 @@
1624
1734
  }
1625
1735
 
1626
1736
  .tecof-picture-wrapper {
1627
- width: 100%;
1628
- height: 100%;
1629
- display: flex;
1630
- align-items: center;
1631
- justify-content: center;
1632
- position: relative;
1737
+ width: 100%;
1738
+ height: 100%;
1739
+ display: flex;
1740
+ align-items: center;
1741
+ justify-content: center;
1742
+ position: relative;
1633
1743
  }
1634
1744
 
1635
1745
  /* ─── FieldErrorBoundary ─── */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecof/theme-editor",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "React theme editor library for Tecof projects",
5
5
  "keywords": [
6
6
  "react",