@emdash-cms/admin 0.39.0 → 0.39.1
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.js +99 -85
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2807,7 +2807,7 @@ function useDebouncedValue$1(value, delay) {
|
|
|
2807
2807
|
|
|
2808
2808
|
//#endregion
|
|
2809
2809
|
//#region src/components/FieldHelpLabel.tsx
|
|
2810
|
-
function FieldHelpLabel({ children, help, helpLabel, htmlFor, labelClassName = "text-
|
|
2810
|
+
function FieldHelpLabel({ children, help, helpLabel, htmlFor, labelClassName = "text-base font-medium text-kumo-default" }) {
|
|
2811
2811
|
return /* @__PURE__ */ jsxs("div", {
|
|
2812
2812
|
className: "flex items-center gap-1.5",
|
|
2813
2813
|
children: [/* @__PURE__ */ jsx(Label, {
|
|
@@ -9501,7 +9501,7 @@ function BlockKitMediaPickerField({ actionId, label, placeholder, mimeTypeFilter
|
|
|
9501
9501
|
};
|
|
9502
9502
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
9503
9503
|
/* @__PURE__ */ jsx("label", {
|
|
9504
|
-
className: "text-
|
|
9504
|
+
className: "mb-1.5 block text-base font-medium text-kumo-default",
|
|
9505
9505
|
children: label
|
|
9506
9506
|
}),
|
|
9507
9507
|
canPreview ? imageBroken ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -9509,7 +9509,7 @@ function BlockKitMediaPickerField({ actionId, label, placeholder, mimeTypeFilter
|
|
|
9509
9509
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
9510
9510
|
className: "flex min-h-20 w-full items-center justify-center gap-2 rounded-md border border-kumo-line bg-kumo-tint text-kumo-subtle",
|
|
9511
9511
|
children: [/* @__PURE__ */ jsx(ImageBroken, { className: "h-5 w-5" }), /* @__PURE__ */ jsx("span", {
|
|
9512
|
-
className: "text-
|
|
9512
|
+
className: "text-xs leading-4",
|
|
9513
9513
|
children: _t({
|
|
9514
9514
|
id: "1pdLQw",
|
|
9515
9515
|
message: "Image not found"
|
|
@@ -9580,7 +9580,7 @@ function BlockKitMediaPickerField({ actionId, label, placeholder, mimeTypeFilter
|
|
|
9580
9580
|
children: /* @__PURE__ */ jsxs("div", {
|
|
9581
9581
|
className: "flex flex-col items-center gap-1.5 text-kumo-subtle",
|
|
9582
9582
|
children: [/* @__PURE__ */ jsx(Image$1, { className: "h-6 w-6" }), /* @__PURE__ */ jsx("span", {
|
|
9583
|
-
className: "text-
|
|
9583
|
+
className: "text-base",
|
|
9584
9584
|
children: placeholder ?? _t({
|
|
9585
9585
|
id: "1Tq98c",
|
|
9586
9586
|
message: "Select media"
|
|
@@ -9635,7 +9635,7 @@ function BlockKitFieldWidget({ label, elements, value, onChange }) {
|
|
|
9635
9635
|
}, [onChange]);
|
|
9636
9636
|
const validElements = elements.filter((el) => el.action_id);
|
|
9637
9637
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
9638
|
-
className: "text-
|
|
9638
|
+
className: "text-base font-medium leading-5 text-kumo-default",
|
|
9639
9639
|
children: label
|
|
9640
9640
|
}), /* @__PURE__ */ jsx("div", {
|
|
9641
9641
|
className: "mt-2 space-y-3",
|
|
@@ -9693,7 +9693,7 @@ function BlockKitFieldElement({ element, value, onChange }) {
|
|
|
9693
9693
|
onChange
|
|
9694
9694
|
});
|
|
9695
9695
|
default: return /* @__PURE__ */ jsx("div", {
|
|
9696
|
-
className: "text-
|
|
9696
|
+
className: "text-xs leading-4 text-kumo-subtle",
|
|
9697
9697
|
children: _t({
|
|
9698
9698
|
id: "g8g6+Q",
|
|
9699
9699
|
message: "Unsupported widget element type: {0}",
|
|
@@ -9803,7 +9803,7 @@ var ContentEditorPanelBoundary = class extends React$1.Component {
|
|
|
9803
9803
|
if (!this.state.hasError) return this.props.children;
|
|
9804
9804
|
return /* @__PURE__ */ jsxs("div", {
|
|
9805
9805
|
role: "alert",
|
|
9806
|
-
className: "text-
|
|
9806
|
+
className: "text-xs leading-4 text-kumo-subtle",
|
|
9807
9807
|
children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx(Trans, {
|
|
9808
9808
|
id: "luDTEb",
|
|
9809
9809
|
message: "Plugin panel unavailable."
|
|
@@ -10348,6 +10348,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10348
10348
|
className: "flex h-full items-center justify-center gap-2",
|
|
10349
10349
|
children: [/* @__PURE__ */ jsx(Loader, { size: "sm" }), /* @__PURE__ */ jsx(Text, {
|
|
10350
10350
|
variant: "secondary",
|
|
10351
|
+
size: "xs",
|
|
10351
10352
|
children: _t({
|
|
10352
10353
|
id: "SBTElJ",
|
|
10353
10354
|
message: "Searching…"
|
|
@@ -10357,6 +10358,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10357
10358
|
className: "flex h-full flex-col items-center justify-center gap-2 text-center",
|
|
10358
10359
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
10359
10360
|
variant: "error",
|
|
10361
|
+
size: "xs",
|
|
10360
10362
|
children: _t({
|
|
10361
10363
|
id: "uCoU/G",
|
|
10362
10364
|
message: "Couldn’t search bylines."
|
|
@@ -10384,6 +10386,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10384
10386
|
}), /* @__PURE__ */ jsx(Text, {
|
|
10385
10387
|
as: "span",
|
|
10386
10388
|
variant: "secondary",
|
|
10389
|
+
size: "xs",
|
|
10387
10390
|
DANGEROUS_className: "block wrap-break-word",
|
|
10388
10391
|
children: option.byline.slug
|
|
10389
10392
|
})]
|
|
@@ -10421,6 +10424,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10421
10424
|
}), /* @__PURE__ */ jsx(Text, {
|
|
10422
10425
|
as: "span",
|
|
10423
10426
|
variant: "secondary",
|
|
10427
|
+
size: "xs",
|
|
10424
10428
|
children: _t({
|
|
10425
10429
|
id: "sdFXHq",
|
|
10426
10430
|
message: "New reusable profile"
|
|
@@ -10448,6 +10452,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10448
10452
|
className: "px-2 py-1",
|
|
10449
10453
|
children: /* @__PURE__ */ jsx(Text, {
|
|
10450
10454
|
variant: "secondary",
|
|
10455
|
+
size: "xs",
|
|
10451
10456
|
children: _t({
|
|
10452
10457
|
id: "6vk8Rm",
|
|
10453
10458
|
message: "Keep typing to narrow the list."
|
|
@@ -10458,6 +10463,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10458
10463
|
className: "flex h-full items-center justify-center text-center",
|
|
10459
10464
|
children: /* @__PURE__ */ jsx(Text, {
|
|
10460
10465
|
variant: "secondary",
|
|
10466
|
+
size: "xs",
|
|
10461
10467
|
children: searchEnabled ? _t({
|
|
10462
10468
|
id: "ncgkI9",
|
|
10463
10469
|
message: "No matching bylines."
|
|
@@ -10559,6 +10565,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10559
10565
|
children: [
|
|
10560
10566
|
/* @__PURE__ */ jsx(Text, {
|
|
10561
10567
|
variant: "secondary",
|
|
10568
|
+
size: "xs",
|
|
10562
10569
|
children: _t({
|
|
10563
10570
|
id: "B2HjEn",
|
|
10564
10571
|
message: "People shown publicly on this post."
|
|
@@ -10581,6 +10588,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10581
10588
|
/* @__PURE__ */ jsx(Text, {
|
|
10582
10589
|
as: "p",
|
|
10583
10590
|
variant: "secondary",
|
|
10591
|
+
size: "xs",
|
|
10584
10592
|
children: _t({
|
|
10585
10593
|
id: "ZqhuvA",
|
|
10586
10594
|
message: "From the post owner"
|
|
@@ -10589,6 +10597,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10589
10597
|
/* @__PURE__ */ jsx(Text, {
|
|
10590
10598
|
as: "p",
|
|
10591
10599
|
variant: "secondary",
|
|
10600
|
+
size: "xs",
|
|
10592
10601
|
children: _t({
|
|
10593
10602
|
id: "UlcztO",
|
|
10594
10603
|
message: "Choosing a byline replaces this automatic credit."
|
|
@@ -10620,6 +10629,7 @@ function BylineCreditsEditor({ credits, inferredByline, bylines, selectedBylineD
|
|
|
10620
10629
|
className: "mt-4 space-y-2 rounded-lg border border-dashed p-3",
|
|
10621
10630
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
10622
10631
|
variant: "secondary",
|
|
10632
|
+
size: "xs",
|
|
10623
10633
|
children: _t({
|
|
10624
10634
|
id: "Tmb8Fw",
|
|
10625
10635
|
message: "No bylines available in {entryLocale}. Create a variant from the Bylines page before crediting one on this entry.",
|
|
@@ -10756,6 +10766,7 @@ function SortableBylineRow({ credit, byline, isSorting, roleOpen, roleDraft, onR
|
|
|
10756
10766
|
}), credit.roleLabel ? /* @__PURE__ */ jsx(Text, {
|
|
10757
10767
|
as: "span",
|
|
10758
10768
|
variant: "secondary",
|
|
10769
|
+
size: "xs",
|
|
10759
10770
|
DANGEROUS_className: "block wrap-break-word",
|
|
10760
10771
|
children: credit.roleLabel
|
|
10761
10772
|
}) : null]
|
|
@@ -11164,8 +11175,8 @@ function DocumentOutline({ editor, className, reserveHeaderEnd = false }) {
|
|
|
11164
11175
|
}
|
|
11165
11176
|
}),
|
|
11166
11177
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
11167
|
-
bold: true,
|
|
11168
11178
|
as: "span",
|
|
11179
|
+
DANGEROUS_className: "font-semibold",
|
|
11169
11180
|
children: _t({
|
|
11170
11181
|
id: "dD7NPy",
|
|
11171
11182
|
message: "Outline"
|
|
@@ -11180,7 +11191,7 @@ function DocumentOutline({ editor, className, reserveHeaderEnd = false }) {
|
|
|
11180
11191
|
children: /* @__PURE__ */ jsx("div", {
|
|
11181
11192
|
className: "space-y-0.5 pt-2",
|
|
11182
11193
|
children: headings.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
11183
|
-
className: "text-
|
|
11194
|
+
className: "px-2 py-1 text-xs leading-4 text-kumo-subtle",
|
|
11184
11195
|
children: _t({
|
|
11185
11196
|
id: "MMd//L",
|
|
11186
11197
|
message: "No headings in document"
|
|
@@ -11190,7 +11201,7 @@ function DocumentOutline({ editor, className, reserveHeaderEnd = false }) {
|
|
|
11190
11201
|
return /* @__PURE__ */ jsx("button", {
|
|
11191
11202
|
type: "button",
|
|
11192
11203
|
onClick: () => handleHeadingClick(heading),
|
|
11193
|
-
className: cn("w-full
|
|
11204
|
+
className: cn("w-full rounded-md px-2 py-1 text-start text-base transition-colors", "hover:bg-kumo-tint/50 cursor-pointer", "truncate", getIndentClass(heading.level), getTextClass(heading.level), isCurrent && "bg-kumo-tint text-kumo-default"),
|
|
11194
11205
|
title: heading.text,
|
|
11195
11206
|
children: heading.text
|
|
11196
11207
|
}, heading.key);
|
|
@@ -11676,7 +11687,7 @@ function GalleryDetailPanel({ attributes, onUpdate, onDelete, onClose, inline =
|
|
|
11676
11687
|
/* @__PURE__ */ jsxs("div", {
|
|
11677
11688
|
className: "flex items-center justify-between",
|
|
11678
11689
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
11679
|
-
className: "text-
|
|
11690
|
+
className: "text-base font-semibold",
|
|
11680
11691
|
children: _t({
|
|
11681
11692
|
id: "U+kFad",
|
|
11682
11693
|
message: "Gallery"
|
|
@@ -11729,7 +11740,7 @@ function GalleryDetailPanel({ attributes, onUpdate, onDelete, onClose, inline =
|
|
|
11729
11740
|
})]
|
|
11730
11741
|
}),
|
|
11731
11742
|
images.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
11732
|
-
className: "text-
|
|
11743
|
+
className: "py-4 text-center text-xs leading-4 text-kumo-subtle",
|
|
11733
11744
|
children: _t({
|
|
11734
11745
|
id: "aETJnp",
|
|
11735
11746
|
message: "No images in this gallery yet."
|
|
@@ -11842,7 +11853,7 @@ function SortableGalleryThumb({ image, index, selected, onSelect, onRemove }) {
|
|
|
11842
11853
|
})
|
|
11843
11854
|
}),
|
|
11844
11855
|
/* @__PURE__ */ jsx("span", {
|
|
11845
|
-
className: "absolute bottom-1 start-1
|
|
11856
|
+
className: "absolute bottom-1 start-1 rounded bg-black/60 px-1 text-xs leading-4 text-white",
|
|
11846
11857
|
"aria-hidden": true,
|
|
11847
11858
|
children: index + 1
|
|
11848
11859
|
})
|
|
@@ -11911,7 +11922,7 @@ function GalleryImageSettings({ image, onChange, onReplace, onAssetChange, onAss
|
|
|
11911
11922
|
]
|
|
11912
11923
|
}),
|
|
11913
11924
|
hasOriginalSize && /* @__PURE__ */ jsxs("div", {
|
|
11914
|
-
className: "flex items-center gap-2 text-
|
|
11925
|
+
className: "flex items-center gap-2 text-xs leading-4",
|
|
11915
11926
|
children: [/* @__PURE__ */ jsx("span", {
|
|
11916
11927
|
className: "text-kumo-subtle",
|
|
11917
11928
|
children: _t3({
|
|
@@ -11968,7 +11979,7 @@ function GalleryImageSettings({ image, onChange, onReplace, onAssetChange, onAss
|
|
|
11968
11979
|
assetEditor.dialog,
|
|
11969
11980
|
assetEditor.error && /* @__PURE__ */ jsx("p", {
|
|
11970
11981
|
role: "alert",
|
|
11971
|
-
className: "text-
|
|
11982
|
+
className: "text-xs leading-4 text-kumo-danger",
|
|
11972
11983
|
children: assetEditor.error
|
|
11973
11984
|
})
|
|
11974
11985
|
]
|
|
@@ -12250,8 +12261,8 @@ function ImageDetailPanel({ attributes, onUpdate, onReplace, onDelete, onClose,
|
|
|
12250
12261
|
children: [/* @__PURE__ */ jsx("div", {
|
|
12251
12262
|
className: "flex items-center gap-2",
|
|
12252
12263
|
children: /* @__PURE__ */ jsx(Text, {
|
|
12253
|
-
bold: true,
|
|
12254
12264
|
as: "h3",
|
|
12265
|
+
DANGEROUS_className: "font-semibold",
|
|
12255
12266
|
children: _t({
|
|
12256
12267
|
id: "pO5YI4",
|
|
12257
12268
|
message: "Image settings"
|
|
@@ -12282,11 +12293,11 @@ function ImageDetailPanel({ attributes, onUpdate, onReplace, onDelete, onClose,
|
|
|
12282
12293
|
imageActions,
|
|
12283
12294
|
assetEditor.error && /* @__PURE__ */ jsx("p", {
|
|
12284
12295
|
role: "alert",
|
|
12285
|
-
className: "mt-2 text-
|
|
12296
|
+
className: "mt-2 text-xs leading-4 text-kumo-danger",
|
|
12286
12297
|
children: assetEditor.error
|
|
12287
12298
|
}),
|
|
12288
12299
|
(asset.width || asset.height) && /* @__PURE__ */ jsxs(Text, {
|
|
12289
|
-
size: "
|
|
12300
|
+
size: "xs",
|
|
12290
12301
|
variant: "secondary",
|
|
12291
12302
|
DANGEROUS_className: "mt-3 flex items-center gap-2",
|
|
12292
12303
|
children: [
|
|
@@ -12495,7 +12506,7 @@ function ImageDetailPanel({ attributes, onUpdate, onReplace, onDelete, onClose,
|
|
|
12495
12506
|
}),
|
|
12496
12507
|
value: asset.src,
|
|
12497
12508
|
readOnly: true,
|
|
12498
|
-
className: "min-w-0 flex-1 font-mono text-
|
|
12509
|
+
className: "min-w-0 flex-1 font-mono text-base"
|
|
12499
12510
|
}), /* @__PURE__ */ jsx(LinkButton, {
|
|
12500
12511
|
variant: "outline",
|
|
12501
12512
|
shape: "square",
|
|
@@ -12560,7 +12571,7 @@ function ImageDetailPanel({ attributes, onUpdate, onReplace, onDelete, onClose,
|
|
|
12560
12571
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
12561
12572
|
className: "flex items-center gap-2",
|
|
12562
12573
|
children: [/* @__PURE__ */ jsx(SlidersHorizontal, { className: "h-4 w-4 text-kumo-subtle" }), /* @__PURE__ */ jsx("h2", {
|
|
12563
|
-
className: "font-semibold",
|
|
12574
|
+
className: "text-base font-semibold",
|
|
12564
12575
|
children: _t({
|
|
12565
12576
|
id: "eX5RcA",
|
|
12566
12577
|
message: "Image Settings"
|
|
@@ -12600,7 +12611,7 @@ function ImageDetailPanel({ attributes, onUpdate, onReplace, onDelete, onClose,
|
|
|
12600
12611
|
imageActions,
|
|
12601
12612
|
assetEditor.error && /* @__PURE__ */ jsx("p", {
|
|
12602
12613
|
role: "alert",
|
|
12603
|
-
className: "mt-2 text-
|
|
12614
|
+
className: "mt-2 text-xs leading-4 text-kumo-danger",
|
|
12604
12615
|
children: assetEditor.error
|
|
12605
12616
|
})
|
|
12606
12617
|
]
|
|
@@ -12608,7 +12619,7 @@ function ImageDetailPanel({ attributes, onUpdate, onReplace, onDelete, onClose,
|
|
|
12608
12619
|
(asset.width || asset.height) && /* @__PURE__ */ jsx("div", {
|
|
12609
12620
|
className: "p-4 border-b",
|
|
12610
12621
|
children: /* @__PURE__ */ jsxs("div", {
|
|
12611
|
-
className: "flex items-center gap-2 text-
|
|
12622
|
+
className: "flex items-center gap-2 text-xs leading-4",
|
|
12612
12623
|
children: [
|
|
12613
12624
|
/* @__PURE__ */ jsx(Ruler, { className: "h-4 w-4 text-kumo-subtle" }),
|
|
12614
12625
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -12781,7 +12792,7 @@ function ImageDetailPanel({ attributes, onUpdate, onReplace, onDelete, onClose,
|
|
|
12781
12792
|
children: [/* @__PURE__ */ jsx(Input, {
|
|
12782
12793
|
value: asset.src,
|
|
12783
12794
|
readOnly: true,
|
|
12784
|
-
className: "min-w-0 flex-1 font-mono text-
|
|
12795
|
+
className: "min-w-0 flex-1 font-mono text-base"
|
|
12785
12796
|
}), /* @__PURE__ */ jsx(LinkButton, {
|
|
12786
12797
|
variant: "outline",
|
|
12787
12798
|
shape: "square",
|
|
@@ -13401,6 +13412,7 @@ function PublicationDateDialog({ entryKey, publishedAt, label, formattedValue, i
|
|
|
13401
13412
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
13402
13413
|
as: "span",
|
|
13403
13414
|
variant: "secondary",
|
|
13415
|
+
size: "xs",
|
|
13404
13416
|
truncate: true,
|
|
13405
13417
|
DANGEROUS_className: "flex-1 text-start",
|
|
13406
13418
|
children: label
|
|
@@ -13411,7 +13423,7 @@ function PublicationDateDialog({ entryKey, publishedAt, label, formattedValue, i
|
|
|
13411
13423
|
children: /* @__PURE__ */ jsx(Text, {
|
|
13412
13424
|
as: "span",
|
|
13413
13425
|
variant: "secondary",
|
|
13414
|
-
size: "
|
|
13426
|
+
size: "xs",
|
|
13415
13427
|
children: formattedValue
|
|
13416
13428
|
})
|
|
13417
13429
|
}), /* @__PURE__ */ jsx(PencilSimple, {
|
|
@@ -13593,14 +13605,14 @@ function RevisionHistory({ collection, entryId, onRestored, reserveHeaderEnd = f
|
|
|
13593
13605
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
13594
13606
|
className: "flex items-center gap-1.5",
|
|
13595
13607
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
13596
|
-
bold: true,
|
|
13597
13608
|
as: "span",
|
|
13609
|
+
DANGEROUS_className: "font-semibold",
|
|
13598
13610
|
children: _t({
|
|
13599
13611
|
id: "ZdWn/b",
|
|
13600
13612
|
message: "Revisions"
|
|
13601
13613
|
})
|
|
13602
13614
|
}), total > 0 && /* @__PURE__ */ jsxs("span", {
|
|
13603
|
-
className: "font-normal text-kumo-subtle",
|
|
13615
|
+
className: "text-xs font-normal leading-4 text-kumo-subtle",
|
|
13604
13616
|
children: [
|
|
13605
13617
|
"(",
|
|
13606
13618
|
total,
|
|
@@ -13618,13 +13630,13 @@ function RevisionHistory({ collection, entryId, onRestored, reserveHeaderEnd = f
|
|
|
13618
13630
|
className: "flex items-center justify-center py-6",
|
|
13619
13631
|
children: /* @__PURE__ */ jsx(Loader, {})
|
|
13620
13632
|
}) : error ? /* @__PURE__ */ jsx("div", {
|
|
13621
|
-
className: "py-4 text-center text-
|
|
13633
|
+
className: "py-4 text-center text-xs leading-4 text-kumo-danger",
|
|
13622
13634
|
children: _t({
|
|
13623
13635
|
id: "8AKRwh",
|
|
13624
13636
|
message: "Failed to load revisions"
|
|
13625
13637
|
})
|
|
13626
13638
|
}) : revisions.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
13627
|
-
className: "py-4 text-center text-
|
|
13639
|
+
className: "py-4 text-center text-xs leading-4 text-kumo-subtle",
|
|
13628
13640
|
children: _t({
|
|
13629
13641
|
id: "NtGzeq",
|
|
13630
13642
|
message: "No revisions yet"
|
|
@@ -13686,7 +13698,7 @@ function RevisionItem({ revision, compareRevision, isLatest, isRestoring, isSele
|
|
|
13686
13698
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
13687
13699
|
className: "flex items-center gap-2",
|
|
13688
13700
|
children: [/* @__PURE__ */ jsx("span", {
|
|
13689
|
-
className: "text-
|
|
13701
|
+
className: "text-base font-medium",
|
|
13690
13702
|
children: formatRelativeTime$1(revision.createdAt)
|
|
13691
13703
|
}), isLatest && /* @__PURE__ */ jsx(Badge, {
|
|
13692
13704
|
variant: "outline",
|
|
@@ -14031,7 +14043,10 @@ function SandboxedContentEditorPanel({ pluginId, panelId, title, collection, ent
|
|
|
14031
14043
|
return /* @__PURE__ */ jsxs(Collapsible.Root, {
|
|
14032
14044
|
open,
|
|
14033
14045
|
onOpenChange: handleOpenChange,
|
|
14034
|
-
children: [/* @__PURE__ */ jsx(Collapsible.DefaultTrigger, { children:
|
|
14046
|
+
children: [/* @__PURE__ */ jsx(Collapsible.DefaultTrigger, { children: /* @__PURE__ */ jsx("span", {
|
|
14047
|
+
className: "text-base font-semibold text-kumo-default",
|
|
14048
|
+
children: title
|
|
14049
|
+
}) }), /* @__PURE__ */ jsx(Collapsible.DefaultPanel, { children: /* @__PURE__ */ jsx("div", {
|
|
14035
14050
|
className: "min-w-0 px-4 pb-4",
|
|
14036
14051
|
children: loading && !loaded ? /* @__PURE__ */ jsxs("div", {
|
|
14037
14052
|
className: "space-y-2 py-2",
|
|
@@ -14050,7 +14065,7 @@ function SandboxedContentEditorPanel({ pluginId, panelId, title, collection, ent
|
|
|
14050
14065
|
})]
|
|
14051
14066
|
}) : error ? /* @__PURE__ */ jsxs("div", {
|
|
14052
14067
|
role: "alert",
|
|
14053
|
-
className: "py-2 text-
|
|
14068
|
+
className: "py-2 text-xs leading-4 text-kumo-subtle",
|
|
14054
14069
|
children: [/* @__PURE__ */ jsx("p", { children: _t({
|
|
14055
14070
|
id: "luDTEb",
|
|
14056
14071
|
message: "Plugin panel unavailable."
|
|
@@ -14281,7 +14296,7 @@ function ImageDropTarget({ label, onSelect, onUploaded, allowedMimeTypes, fieldI
|
|
|
14281
14296
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
14282
14297
|
type: "button",
|
|
14283
14298
|
variant: "ghost",
|
|
14284
|
-
className: "h-auto min-h-32 w-full flex-col items-center justify-center gap-3 rounded-[10px] px-4 py-5 text-center text-
|
|
14299
|
+
className: "h-auto min-h-32 w-full flex-col items-center justify-center gap-3 rounded-[10px] px-4 py-5 text-center text-base text-kumo-subtle",
|
|
14285
14300
|
"aria-label": _t({
|
|
14286
14301
|
id: "jPRo6i",
|
|
14287
14302
|
message: "Drop an image here or browse for {label}",
|
|
@@ -14321,7 +14336,7 @@ function ImageDropTarget({ label, onSelect, onUploaded, allowedMimeTypes, fieldI
|
|
|
14321
14336
|
}),
|
|
14322
14337
|
error && /* @__PURE__ */ jsx("p", {
|
|
14323
14338
|
role: "alert",
|
|
14324
|
-
className: "text-
|
|
14339
|
+
className: "text-xs leading-4 text-kumo-danger",
|
|
14325
14340
|
children: error
|
|
14326
14341
|
})
|
|
14327
14342
|
]
|
|
@@ -14610,7 +14625,7 @@ function SeoPanel({ contentKey, seo, onChange, defaultTitle, defaultDescription
|
|
|
14610
14625
|
}),
|
|
14611
14626
|
/* @__PURE__ */ jsx("p", {
|
|
14612
14627
|
id: `${descriptionId}-count`,
|
|
14613
|
-
className: "text-
|
|
14628
|
+
className: "text-xs leading-4 text-kumo-subtle",
|
|
14614
14629
|
children: _t({
|
|
14615
14630
|
id: "rbd/hB",
|
|
14616
14631
|
message: "{0}/160 characters",
|
|
@@ -14851,7 +14866,7 @@ function SortableContentSettingsSection({ id, label, disclosure = false, childre
|
|
|
14851
14866
|
className: "flex items-center px-4 pe-12",
|
|
14852
14867
|
style: { minHeight: 48 },
|
|
14853
14868
|
children: /* @__PURE__ */ jsx("span", {
|
|
14854
|
-
className: "text-
|
|
14869
|
+
className: "text-base font-semibold",
|
|
14855
14870
|
children: label
|
|
14856
14871
|
})
|
|
14857
14872
|
}),
|
|
@@ -15281,7 +15296,7 @@ function TaxonomyTermPicker({ terms, selectedIds, onChange, onCreate, isCreating
|
|
|
15281
15296
|
},
|
|
15282
15297
|
children: selectedOptions.map((option) => /* @__PURE__ */ jsxs("span", {
|
|
15283
15298
|
role: "listitem",
|
|
15284
|
-
className: "flex h-6 max-w-full min-w-0 items-center gap-1 rounded-sm bg-kumo-tint ps-2 text-
|
|
15299
|
+
className: "flex h-6 max-w-full min-w-0 items-center gap-1 rounded-sm bg-kumo-tint ps-2 text-base ring-1 ring-inset ring-kumo-hairline",
|
|
15285
15300
|
children: [
|
|
15286
15301
|
/* @__PURE__ */ jsx("span", {
|
|
15287
15302
|
className: "min-w-0 truncate",
|
|
@@ -15379,13 +15394,14 @@ function TaxonomyTermPicker({ terms, selectedIds, onChange, onCreate, isCreating
|
|
|
15379
15394
|
id: "0JMPeZ",
|
|
15380
15395
|
message: "Search {label}…",
|
|
15381
15396
|
values: { label }
|
|
15382
|
-
})
|
|
15397
|
+
}),
|
|
15398
|
+
className: "text-base font-normal"
|
|
15383
15399
|
})]
|
|
15384
15400
|
})
|
|
15385
15401
|
}),
|
|
15386
15402
|
createError ? /* @__PURE__ */ jsx("p", {
|
|
15387
15403
|
role: "alert",
|
|
15388
|
-
className: "px-3 pt-1.5 text-
|
|
15404
|
+
className: "px-3 pt-1.5 text-xs leading-4 text-kumo-danger",
|
|
15389
15405
|
children: createError.message
|
|
15390
15406
|
}) : null,
|
|
15391
15407
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -15421,7 +15437,7 @@ function TaxonomyTermPicker({ terms, selectedIds, onChange, onCreate, isCreating
|
|
|
15421
15437
|
})
|
|
15422
15438
|
})
|
|
15423
15439
|
}, option.term.id)) : /* @__PURE__ */ jsx("p", {
|
|
15424
|
-
className: "px-2 py-2 text-
|
|
15440
|
+
className: "px-2 py-2 text-xs leading-4 text-kumo-subtle",
|
|
15425
15441
|
children: _t({
|
|
15426
15442
|
id: "ENKBRK",
|
|
15427
15443
|
message: "No {label} found.",
|
|
@@ -15459,7 +15475,7 @@ function TaxonomyTermPicker({ terms, selectedIds, onChange, onCreate, isCreating
|
|
|
15459
15475
|
/* @__PURE__ */ jsxs("span", {
|
|
15460
15476
|
className: "flex items-center gap-1.5 whitespace-nowrap",
|
|
15461
15477
|
children: [/* @__PURE__ */ jsx("kbd", {
|
|
15462
|
-
className: "inline-flex min-w-5 items-center justify-center rounded border border-kumo-hairline bg-kumo-base px-1.5 py-0.5 text-
|
|
15478
|
+
className: "inline-flex min-w-5 items-center justify-center rounded border border-kumo-hairline bg-kumo-base px-1.5 py-0.5 text-xs leading-4 text-kumo-default",
|
|
15463
15479
|
children: "↑ ↓"
|
|
15464
15480
|
}), _t({
|
|
15465
15481
|
id: "dbDjdV",
|
|
@@ -15469,7 +15485,7 @@ function TaxonomyTermPicker({ terms, selectedIds, onChange, onCreate, isCreating
|
|
|
15469
15485
|
/* @__PURE__ */ jsxs("span", {
|
|
15470
15486
|
className: "flex items-center gap-1.5 whitespace-nowrap",
|
|
15471
15487
|
children: [/* @__PURE__ */ jsx("kbd", {
|
|
15472
|
-
className: "inline-flex min-w-5 items-center justify-center rounded border border-kumo-hairline bg-kumo-base px-1.5 py-0.5 text-
|
|
15488
|
+
className: "inline-flex min-w-5 items-center justify-center rounded border border-kumo-hairline bg-kumo-base px-1.5 py-0.5 text-xs leading-4 text-kumo-default",
|
|
15473
15489
|
children: "↵"
|
|
15474
15490
|
}), _t({
|
|
15475
15491
|
id: "JFciKP",
|
|
@@ -15479,7 +15495,7 @@ function TaxonomyTermPicker({ terms, selectedIds, onChange, onCreate, isCreating
|
|
|
15479
15495
|
/* @__PURE__ */ jsxs("span", {
|
|
15480
15496
|
className: "ms-auto flex items-center gap-1.5 whitespace-nowrap",
|
|
15481
15497
|
children: [/* @__PURE__ */ jsx("kbd", {
|
|
15482
|
-
className: "inline-flex min-w-5 items-center justify-center rounded border border-kumo-hairline bg-kumo-base px-1.5 py-0.5 text-
|
|
15498
|
+
className: "inline-flex min-w-5 items-center justify-center rounded border border-kumo-hairline bg-kumo-base px-1.5 py-0.5 text-xs leading-4 text-kumo-default",
|
|
15483
15499
|
children: _t({
|
|
15484
15500
|
id: "zO1gmR",
|
|
15485
15501
|
message: "Esc"
|
|
@@ -15743,7 +15759,7 @@ function TaxonomySection({ taxonomy, collection, entryId, entryLocale, canManage
|
|
|
15743
15759
|
className: "space-y-2 rounded-lg border border-kumo-warning/50 bg-kumo-warning-tint p-3",
|
|
15744
15760
|
children: [
|
|
15745
15761
|
/* @__PURE__ */ jsx("p", {
|
|
15746
|
-
className: "text-
|
|
15762
|
+
className: "text-base font-medium text-kumo-warning",
|
|
15747
15763
|
children: _t3({
|
|
15748
15764
|
id: "qsWIqh",
|
|
15749
15765
|
message: "Unresolved assignment"
|
|
@@ -15796,8 +15812,8 @@ function TaxonomySidebar({ collection, entryId, entryLocale, defaultLocale, canM
|
|
|
15796
15812
|
return /* @__PURE__ */ jsxs("div", {
|
|
15797
15813
|
className: cn("grid gap-3", className),
|
|
15798
15814
|
children: [/* @__PURE__ */ jsx(Text$1, {
|
|
15799
|
-
bold: true,
|
|
15800
15815
|
as: "h3",
|
|
15816
|
+
DANGEROUS_className: "font-semibold",
|
|
15801
15817
|
children: _t4({
|
|
15802
15818
|
id: "sMNeA/",
|
|
15803
15819
|
message: "Taxonomies"
|
|
@@ -15827,9 +15843,8 @@ function TranslationsPanel({ title, headingClassName, locales, defaultLocale, cu
|
|
|
15827
15843
|
const { _: _t } = useLingui();
|
|
15828
15844
|
const byLocale = React$1.useMemo(() => new Map(translations.map((tr) => [tr.locale, tr])), [translations]);
|
|
15829
15845
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Text, {
|
|
15830
|
-
bold: true,
|
|
15831
15846
|
as: "h3",
|
|
15832
|
-
DANGEROUS_className: cn("mb-4", headingClassName),
|
|
15847
|
+
DANGEROUS_className: cn("mb-4 font-semibold", headingClassName),
|
|
15833
15848
|
children: title ?? _t({
|
|
15834
15849
|
id: "kAy5R9",
|
|
15835
15850
|
message: "Translations"
|
|
@@ -15840,7 +15855,7 @@ function TranslationsPanel({ title, headingClassName, locales, defaultLocale, cu
|
|
|
15840
15855
|
const translation = byLocale.get(locale);
|
|
15841
15856
|
const isCurrent = locale === currentLocale;
|
|
15842
15857
|
return /* @__PURE__ */ jsxs("div", {
|
|
15843
|
-
className: cn("-mx-3 flex items-center justify-between rounded-md px-3 py-2 text-
|
|
15858
|
+
className: cn("-mx-3 flex items-center justify-between rounded-md px-3 py-2 text-base", isCurrent ? "bg-kumo-brand/10 font-medium" : translation ? "hover:bg-kumo-tint/50" : "text-kumo-subtle"),
|
|
15844
15859
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
15845
15860
|
className: "flex items-center gap-2",
|
|
15846
15861
|
children: [
|
|
@@ -15849,14 +15864,14 @@ function TranslationsPanel({ title, headingClassName, locales, defaultLocale, cu
|
|
|
15849
15864
|
children: locale
|
|
15850
15865
|
}),
|
|
15851
15866
|
locale === defaultLocale && /* @__PURE__ */ jsx("span", {
|
|
15852
|
-
className: "text-
|
|
15867
|
+
className: "text-xs leading-4 text-kumo-subtle",
|
|
15853
15868
|
children: _t({
|
|
15854
15869
|
id: "FozKV6",
|
|
15855
15870
|
message: " (default)"
|
|
15856
15871
|
})
|
|
15857
15872
|
}),
|
|
15858
15873
|
isCurrent && /* @__PURE__ */ jsx("span", {
|
|
15859
|
-
className: "text-
|
|
15874
|
+
className: "text-xs leading-4 text-kumo-link",
|
|
15860
15875
|
children: _t({
|
|
15861
15876
|
id: "7vEC4B",
|
|
15862
15877
|
message: "current"
|
|
@@ -15922,6 +15937,7 @@ function PublishingVersionRow({ iconState, title, description, action, connectTo
|
|
|
15922
15937
|
/* @__PURE__ */ jsx(Text, {
|
|
15923
15938
|
as: "p",
|
|
15924
15939
|
variant: "secondary",
|
|
15940
|
+
size: "xs",
|
|
15925
15941
|
DANGEROUS_className: "mt-0.5 text-pretty",
|
|
15926
15942
|
children: description
|
|
15927
15943
|
}),
|
|
@@ -16080,7 +16096,7 @@ function PublishingVersionRelationship({ publishingState, supportsDrafts, schedu
|
|
|
16080
16096
|
children: rows
|
|
16081
16097
|
});
|
|
16082
16098
|
}
|
|
16083
|
-
function TimestampValue({ value, locale, size = "
|
|
16099
|
+
function TimestampValue({ value, locale, size = "xs" }) {
|
|
16084
16100
|
return /* @__PURE__ */ jsx("time", {
|
|
16085
16101
|
dateTime: value,
|
|
16086
16102
|
children: /* @__PURE__ */ jsx(Text, {
|
|
@@ -16090,7 +16106,7 @@ function TimestampValue({ value, locale, size = "base" }) {
|
|
|
16090
16106
|
})
|
|
16091
16107
|
});
|
|
16092
16108
|
}
|
|
16093
|
-
function TimestampRow({ label, children, size = "
|
|
16109
|
+
function TimestampRow({ label, children, size = "xs" }) {
|
|
16094
16110
|
return /* @__PURE__ */ jsxs("div", {
|
|
16095
16111
|
className: "flex items-center justify-between gap-2 whitespace-nowrap",
|
|
16096
16112
|
children: [/* @__PURE__ */ jsx("dt", {
|
|
@@ -16473,7 +16489,7 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16473
16489
|
})
|
|
16474
16490
|
}) : null;
|
|
16475
16491
|
return /* @__PURE__ */ jsxs("div", {
|
|
16476
|
-
className: "flex flex-col whitespace-normal",
|
|
16492
|
+
className: "flex flex-col whitespace-normal [&_input]:text-base [&_input]:font-normal [&_textarea]:text-base [&_textarea]:font-normal [&_[role=combobox]]:text-base",
|
|
16477
16493
|
children: [/* @__PURE__ */ jsxs(SortableContentSettingsSections, {
|
|
16478
16494
|
collection,
|
|
16479
16495
|
userId: currentUser?.id,
|
|
@@ -16490,9 +16506,8 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16490
16506
|
className: "p-4",
|
|
16491
16507
|
children: [
|
|
16492
16508
|
/* @__PURE__ */ jsx(Text, {
|
|
16493
|
-
bold: true,
|
|
16494
16509
|
as: "h3",
|
|
16495
|
-
DANGEROUS_className: "mb-4",
|
|
16510
|
+
DANGEROUS_className: "mb-4 font-semibold",
|
|
16496
16511
|
children: _t7({
|
|
16497
16512
|
id: "EEYbdt",
|
|
16498
16513
|
message: "Publish"
|
|
@@ -16553,7 +16568,7 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16553
16568
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
16554
16569
|
as: "span",
|
|
16555
16570
|
variant: "secondary",
|
|
16556
|
-
size: "
|
|
16571
|
+
size: "xs",
|
|
16557
16572
|
children: _t7({
|
|
16558
16573
|
id: "GJIQ9P",
|
|
16559
16574
|
message: "Created and updated"
|
|
@@ -16575,22 +16590,22 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16575
16590
|
id: "d+F6q9",
|
|
16576
16591
|
message: "Created"
|
|
16577
16592
|
}),
|
|
16578
|
-
size: "
|
|
16593
|
+
size: "xs",
|
|
16579
16594
|
children: /* @__PURE__ */ jsx(TimestampValue, {
|
|
16580
16595
|
value: item.createdAt,
|
|
16581
16596
|
locale: lingui.locale,
|
|
16582
|
-
size: "
|
|
16597
|
+
size: "xs"
|
|
16583
16598
|
})
|
|
16584
16599
|
}), /* @__PURE__ */ jsx(TimestampRow, {
|
|
16585
16600
|
label: _t7({
|
|
16586
16601
|
id: "+b7T3G",
|
|
16587
16602
|
message: "Updated"
|
|
16588
16603
|
}),
|
|
16589
|
-
size: "
|
|
16604
|
+
size: "xs",
|
|
16590
16605
|
children: /* @__PURE__ */ jsx(TimestampValue, {
|
|
16591
16606
|
value: item.updatedAt,
|
|
16592
16607
|
locale: lingui.locale,
|
|
16593
|
-
size: "
|
|
16608
|
+
size: "xs"
|
|
16594
16609
|
})
|
|
16595
16610
|
})]
|
|
16596
16611
|
})
|
|
@@ -16619,9 +16634,8 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16619
16634
|
children: /* @__PURE__ */ jsxs("div", {
|
|
16620
16635
|
className: "p-4",
|
|
16621
16636
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
16622
|
-
bold: true,
|
|
16623
16637
|
as: "h3",
|
|
16624
|
-
DANGEROUS_className: "mb-4",
|
|
16638
|
+
DANGEROUS_className: "mb-4 font-semibold",
|
|
16625
16639
|
children: _t7({
|
|
16626
16640
|
id: "mWCZbu",
|
|
16627
16641
|
message: "URL & language"
|
|
@@ -16689,9 +16703,8 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16689
16703
|
children: /* @__PURE__ */ jsxs("div", {
|
|
16690
16704
|
className: "p-4",
|
|
16691
16705
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
16692
|
-
bold: true,
|
|
16693
16706
|
as: "h3",
|
|
16694
|
-
DANGEROUS_className: "mb-4",
|
|
16707
|
+
DANGEROUS_className: "mb-4 font-semibold",
|
|
16695
16708
|
children: _t7({
|
|
16696
16709
|
id: "oDAEQq",
|
|
16697
16710
|
message: "Ownership"
|
|
@@ -16714,8 +16727,8 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16714
16727
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
16715
16728
|
className: "mb-4 flex items-center gap-1.5 pe-24",
|
|
16716
16729
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
16717
|
-
bold: true,
|
|
16718
16730
|
as: "h3",
|
|
16731
|
+
DANGEROUS_className: "font-semibold",
|
|
16719
16732
|
children: _t7({
|
|
16720
16733
|
id: "xLGa7J",
|
|
16721
16734
|
message: "Bylines"
|
|
@@ -16806,9 +16819,8 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16806
16819
|
children: /* @__PURE__ */ jsxs("div", {
|
|
16807
16820
|
className: "p-4",
|
|
16808
16821
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
16809
|
-
bold: true,
|
|
16810
16822
|
as: "h3",
|
|
16811
|
-
DANGEROUS_className: "mb-4",
|
|
16823
|
+
DANGEROUS_className: "mb-4 font-semibold",
|
|
16812
16824
|
children: _t7({
|
|
16813
16825
|
id: "4Ml90q",
|
|
16814
16826
|
message: "SEO"
|
|
@@ -16861,9 +16873,8 @@ const ContentSettingsPanel = React$1.memo(function ContentSettingsPanel({ collec
|
|
|
16861
16873
|
children: /* @__PURE__ */ jsxs("div", {
|
|
16862
16874
|
className: "min-w-0 p-4",
|
|
16863
16875
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
16864
|
-
bold: true,
|
|
16865
16876
|
as: "h3",
|
|
16866
|
-
DANGEROUS_className: "mb-4",
|
|
16877
|
+
DANGEROUS_className: "mb-4 font-semibold",
|
|
16867
16878
|
children: title
|
|
16868
16879
|
}), /* @__PURE__ */ jsx(ContentEditorPanelBoundary, {
|
|
16869
16880
|
pluginId,
|
|
@@ -17440,6 +17451,7 @@ function ImageFieldRenderer({ id, label, description, value, onChange, required,
|
|
|
17440
17451
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
17441
17452
|
as: "p",
|
|
17442
17453
|
variant: "secondary",
|
|
17454
|
+
size: "xs",
|
|
17443
17455
|
children: _t({
|
|
17444
17456
|
id: "N33X5f",
|
|
17445
17457
|
message: "Dark mode variant"
|
|
@@ -17534,6 +17546,7 @@ function ImageFieldRenderer({ id, label, description, value, onChange, required,
|
|
|
17534
17546
|
}), /* @__PURE__ */ jsx(Text, {
|
|
17535
17547
|
as: "span",
|
|
17536
17548
|
variant: "secondary",
|
|
17549
|
+
size: "xs",
|
|
17537
17550
|
DANGEROUS_className: "sr-only sm:not-sr-only",
|
|
17538
17551
|
children: _t({
|
|
17539
17552
|
id: "1pdLQw",
|
|
@@ -17562,6 +17575,7 @@ function ImageFieldRenderer({ id, label, description, value, onChange, required,
|
|
|
17562
17575
|
}), metadata && /* @__PURE__ */ jsx(Text, {
|
|
17563
17576
|
as: "p",
|
|
17564
17577
|
variant: "secondary",
|
|
17578
|
+
size: "xs",
|
|
17565
17579
|
truncate: true,
|
|
17566
17580
|
children: /* @__PURE__ */ jsx("bdi", {
|
|
17567
17581
|
dir: "ltr",
|
|
@@ -17596,7 +17610,7 @@ function ImageFieldRenderer({ id, label, description, value, onChange, required,
|
|
|
17596
17610
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
17597
17611
|
className: "flex min-h-20 items-center justify-center gap-2 rounded-lg border bg-kumo-tint text-kumo-subtle",
|
|
17598
17612
|
children: [/* @__PURE__ */ jsx(ImageBroken, { className: "h-5 w-5" }), /* @__PURE__ */ jsx("span", {
|
|
17599
|
-
className: "text-
|
|
17613
|
+
className: "text-xs leading-4",
|
|
17600
17614
|
children: _t({
|
|
17601
17615
|
id: "1pdLQw",
|
|
17602
17616
|
message: "Image not found"
|
|
@@ -17666,11 +17680,11 @@ function ImageFieldRenderer({ id, label, description, value, onChange, required,
|
|
|
17666
17680
|
assetEditor.dialog,
|
|
17667
17681
|
assetEditor.error && /* @__PURE__ */ jsx("p", {
|
|
17668
17682
|
role: "alert",
|
|
17669
|
-
className: "text-
|
|
17683
|
+
className: "text-xs leading-4 text-kumo-danger",
|
|
17670
17684
|
children: assetEditor.error
|
|
17671
17685
|
}),
|
|
17672
17686
|
required && !displayUrl && /* @__PURE__ */ jsx("p", {
|
|
17673
|
-
className: "-mt-1 text-
|
|
17687
|
+
className: "-mt-1 text-xs leading-4 text-kumo-danger",
|
|
17674
17688
|
children: _t({
|
|
17675
17689
|
id: "B8AaMI",
|
|
17676
17690
|
message: "This field is required"
|
|
@@ -17702,7 +17716,7 @@ var PluginFieldErrorBoundary = class extends React$1.Component {
|
|
|
17702
17716
|
className: "rounded-md border border-kumo-danger/50 bg-kumo-danger/5 p-3",
|
|
17703
17717
|
children: [
|
|
17704
17718
|
/* @__PURE__ */ jsx("p", {
|
|
17705
|
-
className: "text-
|
|
17719
|
+
className: "text-base font-medium text-kumo-danger",
|
|
17706
17720
|
children: /* @__PURE__ */ jsx(Trans, {
|
|
17707
17721
|
id: "zyTWI0",
|
|
17708
17722
|
message: "Plugin widget error"
|
|
@@ -17813,9 +17827,9 @@ function RepeaterField({ label, id, value, onChange, subFields, minItems = 0, ma
|
|
|
17813
17827
|
className: "flex items-center justify-between",
|
|
17814
17828
|
children: [/* @__PURE__ */ jsxs("label", {
|
|
17815
17829
|
htmlFor: id,
|
|
17816
|
-
className: "text-
|
|
17830
|
+
className: "text-base font-medium text-kumo-default",
|
|
17817
17831
|
children: [label, items.length > 0 && /* @__PURE__ */ jsx("span", {
|
|
17818
|
-
className: "ms-2 text-
|
|
17832
|
+
className: "ms-2 text-xs font-normal leading-4 text-kumo-subtle",
|
|
17819
17833
|
children: i18n._({
|
|
17820
17834
|
id: "JcH6Wc",
|
|
17821
17835
|
message: "{0, plural, one {(# item)} other {(# items)}}",
|
|
@@ -17835,7 +17849,7 @@ function RepeaterField({ label, id, value, onChange, subFields, minItems = 0, ma
|
|
|
17835
17849
|
}), items.length === 0 ? /* @__PURE__ */ jsxs("div", {
|
|
17836
17850
|
className: "border-2 border-dashed rounded-lg p-6 text-center text-kumo-subtle",
|
|
17837
17851
|
children: [/* @__PURE__ */ jsx("p", {
|
|
17838
|
-
className: "text-
|
|
17852
|
+
className: "text-xs leading-4",
|
|
17839
17853
|
children: _t({
|
|
17840
17854
|
id: "bWmJ0A",
|
|
17841
17855
|
message: "No items yet"
|
|
@@ -17903,7 +17917,7 @@ function SortableRepeaterItem({ item, index, subFields, isCollapsed, onToggleCol
|
|
|
17903
17917
|
}),
|
|
17904
17918
|
isCollapsed ? /* @__PURE__ */ jsx(CaretNext, { className: "h-4 w-4 text-kumo-subtle shrink-0" }) : /* @__PURE__ */ jsx(CaretDown, { className: "h-4 w-4 text-kumo-subtle shrink-0" }),
|
|
17905
17919
|
/* @__PURE__ */ jsx("span", {
|
|
17906
|
-
className: "text-
|
|
17920
|
+
className: "flex-1 truncate text-base font-medium",
|
|
17907
17921
|
children: summaryLabel
|
|
17908
17922
|
}),
|
|
17909
17923
|
onRemove && /* @__PURE__ */ jsx(Button, {
|
|
@@ -17963,7 +17977,7 @@ function SubFieldInput({ subField, value, onChange, timezone }) {
|
|
|
17963
17977
|
checked: Boolean(value),
|
|
17964
17978
|
onCheckedChange: (checked) => onChange(checked),
|
|
17965
17979
|
label: /* @__PURE__ */ jsx("span", {
|
|
17966
|
-
className: "text-
|
|
17980
|
+
className: "text-base",
|
|
17967
17981
|
children: subField.label
|
|
17968
17982
|
})
|
|
17969
17983
|
});
|
|
@@ -28279,7 +28293,7 @@ function ContentEditor({ collection, collectionLabel, item, fields, isNew, entry
|
|
|
28279
28293
|
})
|
|
28280
28294
|
}),
|
|
28281
28295
|
/* @__PURE__ */ jsx("div", {
|
|
28282
|
-
className: "space-y-6",
|
|
28296
|
+
className: cn("space-y-6", !isDistractionFree && "[&_input]:text-base [&_input]:font-normal [&_textarea]:text-base [&_textarea]:font-normal [&_[role=combobox]]:text-base"),
|
|
28283
28297
|
children: Object.entries(fields).map(([name, field]) => {
|
|
28284
28298
|
const fieldKey = `${name}:${item?.id ?? "new"}`;
|
|
28285
28299
|
return /* @__PURE__ */ jsx(FieldRenderer, {
|
|
@@ -28622,7 +28636,7 @@ function FieldRenderer({ name, field, value, onChange, onEditorReady, minimal, p
|
|
|
28622
28636
|
className: "text-base font-medium",
|
|
28623
28637
|
children: label
|
|
28624
28638
|
}), /* @__PURE__ */ jsx("p", {
|
|
28625
|
-
className: "text-
|
|
28639
|
+
className: "text-xs leading-4 text-kumo-subtle",
|
|
28626
28640
|
children: _t5({
|
|
28627
28641
|
id: "G+kT7j",
|
|
28628
28642
|
message: "This field cannot be edited by this version of EmDash."
|
|
@@ -29023,7 +29037,7 @@ function UrlFieldEditor({ label, labelClass, id, value, onChange, required, plac
|
|
|
29023
29037
|
required,
|
|
29024
29038
|
placeholder
|
|
29025
29039
|
}), error && /* @__PURE__ */ jsx("p", {
|
|
29026
|
-
className: "text-
|
|
29040
|
+
className: "mt-1 text-xs leading-4 text-kumo-danger",
|
|
29027
29041
|
children: error
|
|
29028
29042
|
})] });
|
|
29029
29043
|
}
|
|
@@ -29069,9 +29083,9 @@ function JsonFieldEditor({ label, id, value, onChange, required }) {
|
|
|
29069
29083
|
rows: 8,
|
|
29070
29084
|
placeholder: "{}",
|
|
29071
29085
|
required,
|
|
29072
|
-
className: "font-mono text-
|
|
29086
|
+
className: "font-mono text-base"
|
|
29073
29087
|
}), error && /* @__PURE__ */ jsx("p", {
|
|
29074
|
-
className: "text-
|
|
29088
|
+
className: "mt-1 text-xs leading-4 text-kumo-danger",
|
|
29075
29089
|
children: error
|
|
29076
29090
|
})] });
|
|
29077
29091
|
}
|
|
@@ -29142,10 +29156,10 @@ function FileFieldRenderer({ id, label, value, onChange, required, allowedMimeTy
|
|
|
29142
29156
|
href: normalized.displayUrl,
|
|
29143
29157
|
target: "_blank",
|
|
29144
29158
|
rel: "noopener noreferrer",
|
|
29145
|
-
className: "text-
|
|
29159
|
+
className: "block truncate text-base font-medium hover:underline",
|
|
29146
29160
|
children: normalized.filename
|
|
29147
29161
|
}) : /* @__PURE__ */ jsx("p", {
|
|
29148
|
-
className: "text-
|
|
29162
|
+
className: "truncate text-base font-medium",
|
|
29149
29163
|
children: normalized.filename
|
|
29150
29164
|
}), (hasMime || hasSize) && /* @__PURE__ */ jsxs("p", {
|
|
29151
29165
|
className: "text-xs text-kumo-subtle",
|
|
@@ -29226,7 +29240,7 @@ function FileFieldRenderer({ id, label, value, onChange, required, allowedMimeTy
|
|
|
29226
29240
|
}) : void 0
|
|
29227
29241
|
}),
|
|
29228
29242
|
required && !normalized && /* @__PURE__ */ jsx("p", {
|
|
29229
|
-
className: "-mt-1 text-
|
|
29243
|
+
className: "-mt-1 text-xs leading-4 text-kumo-danger",
|
|
29230
29244
|
children: _t9({
|
|
29231
29245
|
id: "B8AaMI",
|
|
29232
29246
|
message: "This field is required"
|