@byline/admin 4.11.0 → 4.11.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.
Files changed (97) hide show
  1. package/dist/fields/array/array-field.js +10 -10
  2. package/dist/fields/blocks/blocks-field.js +15 -15
  3. package/dist/fields/code/code-field.js +3 -3
  4. package/dist/fields/datetime/datetime-field.js +2 -2
  5. package/dist/fields/draggable-context-menu.js +9 -9
  6. package/dist/fields/field-renderer.js +3 -3
  7. package/dist/fields/file/file-field.js +21 -21
  8. package/dist/fields/file/file-upload-field.js +8 -8
  9. package/dist/fields/group/group-field.js +6 -6
  10. package/dist/fields/image/image-field.js +23 -23
  11. package/dist/fields/image/image-upload-field.js +11 -11
  12. package/dist/fields/locale-badge.js +2 -2
  13. package/dist/fields/relation/relation-display.js +2 -2
  14. package/dist/fields/relation/relation-field.js +7 -7
  15. package/dist/fields/relation/relation-many-field.js +12 -12
  16. package/dist/fields/relation/relation-picker.js +19 -19
  17. package/dist/fields/relation/relation-summary.js +9 -9
  18. package/dist/fields/select/select-field.js +3 -3
  19. package/dist/fields/sortable-item.js +9 -9
  20. package/dist/fields/text/text-field.js +2 -2
  21. package/dist/fields/text-area/text-area-field.js +2 -2
  22. package/dist/forms/available-locales-widget.js +4 -4
  23. package/dist/forms/document-actions.js +40 -40
  24. package/dist/forms/form-modals.js +12 -12
  25. package/dist/forms/form-renderer.js +17 -17
  26. package/dist/forms/form-status-display.js +15 -15
  27. package/dist/forms/path-widget.js +4 -4
  28. package/dist/forms/tree-placement-widget.js +10 -10
  29. package/dist/modules/admin-account/components/change-password.js +6 -6
  30. package/dist/modules/admin-account/components/container.js +28 -28
  31. package/dist/modules/admin-account/components/preferences.js +9 -9
  32. package/dist/modules/admin-account/components/theme-switch.js +4 -4
  33. package/dist/modules/admin-account/components/update.js +6 -6
  34. package/dist/modules/admin-permissions/components/inspector.js +31 -31
  35. package/dist/modules/admin-roles/components/create.js +6 -6
  36. package/dist/modules/admin-roles/components/permissions.js +25 -25
  37. package/dist/modules/admin-roles/components/update.js +6 -6
  38. package/dist/modules/admin-users/components/create.js +8 -8
  39. package/dist/modules/admin-users/components/roles.js +15 -15
  40. package/dist/modules/admin-users/components/set-password.js +6 -6
  41. package/dist/modules/admin-users/components/update.js +7 -7
  42. package/dist/modules/auth/components/sign-in-form.js +8 -8
  43. package/dist/presentation/group.js +3 -3
  44. package/dist/presentation/row.js +2 -2
  45. package/dist/presentation/tabs.js +5 -5
  46. package/dist/widgets/diff-viewer/diff-modal.js +10 -10
  47. package/dist/widgets/source-locale-badge/source-locale-badge.js +2 -2
  48. package/dist/widgets/status-badge/status-badge.js +4 -4
  49. package/package.json +6 -6
  50. package/src/fields/array/array-field.tsx +1 -1
  51. package/src/fields/blocks/blocks-field.tsx +1 -1
  52. package/src/fields/code/code-field.tsx +1 -1
  53. package/src/fields/datetime/datetime-field.tsx +1 -1
  54. package/src/fields/draggable-context-menu.tsx +1 -1
  55. package/src/fields/field-renderer.tsx +1 -1
  56. package/src/fields/file/file-field.tsx +1 -1
  57. package/src/fields/file/file-upload-field.tsx +1 -1
  58. package/src/fields/group/group-field.tsx +1 -1
  59. package/src/fields/image/image-field.tsx +1 -1
  60. package/src/fields/image/image-upload-field.tsx +1 -1
  61. package/src/fields/locale-badge.tsx +1 -1
  62. package/src/fields/relation/relation-display.tsx +1 -1
  63. package/src/fields/relation/relation-field.tsx +1 -1
  64. package/src/fields/relation/relation-many-field.tsx +1 -1
  65. package/src/fields/relation/relation-picker.tsx +1 -1
  66. package/src/fields/relation/relation-summary.tsx +1 -1
  67. package/src/fields/select/select-field.tsx +1 -1
  68. package/src/fields/sortable-item.tsx +1 -1
  69. package/src/fields/text/text-field.tsx +1 -1
  70. package/src/fields/text-area/text-area-field.tsx +1 -1
  71. package/src/forms/available-locales-widget.tsx +1 -1
  72. package/src/forms/document-actions.tsx +1 -1
  73. package/src/forms/form-modals.tsx +1 -1
  74. package/src/forms/form-renderer.tsx +1 -1
  75. package/src/forms/form-status-display.tsx +1 -1
  76. package/src/forms/path-widget.tsx +1 -1
  77. package/src/forms/tree-placement-widget.tsx +1 -1
  78. package/src/modules/admin-account/components/change-password.tsx +1 -1
  79. package/src/modules/admin-account/components/container.tsx +1 -1
  80. package/src/modules/admin-account/components/preferences.tsx +1 -1
  81. package/src/modules/admin-account/components/theme-switch.tsx +1 -1
  82. package/src/modules/admin-account/components/update.tsx +1 -1
  83. package/src/modules/admin-permissions/components/inspector.tsx +1 -1
  84. package/src/modules/admin-roles/components/create.tsx +1 -1
  85. package/src/modules/admin-roles/components/permissions.tsx +1 -1
  86. package/src/modules/admin-roles/components/update.tsx +1 -1
  87. package/src/modules/admin-users/components/create.tsx +1 -1
  88. package/src/modules/admin-users/components/roles.tsx +1 -1
  89. package/src/modules/admin-users/components/set-password.tsx +1 -1
  90. package/src/modules/admin-users/components/update.tsx +1 -1
  91. package/src/modules/auth/components/sign-in-form.tsx +1 -1
  92. package/src/presentation/group.tsx +1 -1
  93. package/src/presentation/row.tsx +1 -1
  94. package/src/presentation/tabs.tsx +1 -1
  95. package/src/widgets/diff-viewer/diff-modal.tsx +1 -1
  96. package/src/widgets/source-locale-badge/source-locale-badge.tsx +1 -1
  97. package/src/widgets/status-badge/status-badge.tsx +1 -1
@@ -1,19 +1,19 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { resolveItemViewColumns } from "@byline/core";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import { PickerCell, resolveFallbackDisplayField, resolveRowLabel } from "./relation-display.js";
5
5
  import relation_summary_module from "./relation-summary.module.js";
6
6
  function RelationSummary({ targetDefinition, targetAdminConfig, displayField, value, cachedRecord }) {
7
7
  const pickerColumns = resolveItemViewColumns(targetAdminConfig);
8
8
  if (false === value._resolved) return /*#__PURE__*/ jsxs("div", {
9
- className: classnames('byline-relation-summary-stack', relation_summary_module.stack),
9
+ className: clsx('byline-relation-summary-stack', relation_summary_module.stack),
10
10
  children: [
11
11
  /*#__PURE__*/ jsx("span", {
12
- className: classnames('byline-relation-summary-kind', relation_summary_module.kind),
12
+ className: clsx('byline-relation-summary-kind', relation_summary_module.kind),
13
13
  children: targetDefinition.labels.singular
14
14
  }),
15
15
  /*#__PURE__*/ jsxs("span", {
16
- className: classnames('byline-relation-summary-value-mono byline-relation-summary-missing', relation_summary_module["value-mono"], relation_summary_module.missing),
16
+ className: clsx('byline-relation-summary-value-mono byline-relation-summary-missing', relation_summary_module["value-mono"], relation_summary_module.missing),
17
17
  children: [
18
18
  "(target not found) ",
19
19
  value.targetDocumentId
@@ -23,7 +23,7 @@ function RelationSummary({ targetDefinition, targetAdminConfig, displayField, va
23
23
  });
24
24
  const record = true === value._resolved && !value._cycle && value.document || cachedRecord || null;
25
25
  if (record && pickerColumns && pickerColumns.length > 0) return /*#__PURE__*/ jsx("div", {
26
- className: classnames('byline-relation-summary-row', relation_summary_module.row),
26
+ className: clsx('byline-relation-summary-row', relation_summary_module.row),
27
27
  children: pickerColumns.map((col)=>/*#__PURE__*/ jsx(PickerCell, {
28
28
  column: col,
29
29
  record: record
@@ -32,17 +32,17 @@ function RelationSummary({ targetDefinition, targetAdminConfig, displayField, va
32
32
  const resolvedDisplayField = displayField ?? targetDefinition.useAsTitle ?? resolveFallbackDisplayField(targetDefinition) ?? null;
33
33
  const label = record ? resolveRowLabel(record, resolvedDisplayField) : null;
34
34
  return /*#__PURE__*/ jsxs("div", {
35
- className: classnames('byline-relation-summary-stack', relation_summary_module.stack),
35
+ className: clsx('byline-relation-summary-stack', relation_summary_module.stack),
36
36
  children: [
37
37
  /*#__PURE__*/ jsx("span", {
38
- className: classnames('byline-relation-summary-kind', relation_summary_module.kind),
38
+ className: clsx('byline-relation-summary-kind', relation_summary_module.kind),
39
39
  children: targetDefinition.labels.singular
40
40
  }),
41
41
  label ? /*#__PURE__*/ jsx("span", {
42
- className: classnames('byline-relation-summary-value', relation_summary_module.value),
42
+ className: clsx('byline-relation-summary-value', relation_summary_module.value),
43
43
  children: label
44
44
  }) : /*#__PURE__*/ jsx("span", {
45
- className: classnames('byline-relation-summary-value-mono', relation_summary_module["value-mono"]),
45
+ className: clsx('byline-relation-summary-value-mono', relation_summary_module["value-mono"]),
46
46
  children: value.targetDocumentId
47
47
  })
48
48
  ]
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ErrorText, Label, Select } from "@byline/ui/react";
3
- import classnames from "classnames";
3
+ import clsx from "clsx";
4
4
  import { useFieldError, useFieldValue, useIsDirty } from "../../forms/form-context.js";
5
5
  import select_field_module from "./select-field.module.js";
6
6
  const SelectField = ({ field, value, defaultValue, onChange, id, path })=>{
@@ -18,7 +18,7 @@ const SelectField = ({ field, value, defaultValue, onChange, id, path })=>{
18
18
  htmlFor: htmlId,
19
19
  label: field.label,
20
20
  required: !field.optional,
21
- className: classnames('byline-field-select-label', select_field_module.label)
21
+ className: clsx('byline-field-select-label', select_field_module.label)
22
22
  }),
23
23
  /*#__PURE__*/ jsx(Select, {
24
24
  size: "xs",
@@ -37,7 +37,7 @@ const SelectField = ({ field, value, defaultValue, onChange, id, path })=>{
37
37
  onValueChange: (value)=>{
38
38
  if (null != value) onChange?.(value);
39
39
  },
40
- className: classnames(isDirty && [
40
+ className: clsx(isDirty && [
41
41
  'byline-field-select-dirty',
42
42
  select_field_module.dirty
43
43
  ])
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { useTranslation } from "@byline/i18n/react";
4
4
  import { ChevronDownIcon, GripperVerticalIcon, useSortable } from "@byline/ui/react";
5
- import classnames from "classnames";
5
+ import clsx from "clsx";
6
6
  import { DraggableContextMenu } from "./draggable-context-menu.js";
7
7
  import sortable_item_module from "./sortable-item.module.js";
8
8
  const ItemFrame = ({ label, children, onAddBelow, onRemove, grip, rootRef, style, dragging = false, rootClassName })=>{
@@ -11,7 +11,7 @@ const ItemFrame = ({ label, children, onAddBelow, onRemove, grip, rootRef, style
11
11
  return /*#__PURE__*/ jsxs("div", {
12
12
  ref: rootRef,
13
13
  style: style,
14
- className: classnames('byline-sortable', sortable_item_module.root, rootClassName, dragging && [
14
+ className: clsx('byline-sortable', sortable_item_module.root, rootClassName, dragging && [
15
15
  'byline-sortable-dragging',
16
16
  sortable_item_module.dragging
17
17
  ], collapsed && [
@@ -20,14 +20,14 @@ const ItemFrame = ({ label, children, onAddBelow, onRemove, grip, rootRef, style
20
20
  ]),
21
21
  children: [
22
22
  /*#__PURE__*/ jsxs("div", {
23
- className: classnames('byline-sortable-header', sortable_item_module.header, !collapsed && [
23
+ className: clsx('byline-sortable-header', sortable_item_module.header, !collapsed && [
24
24
  'byline-sortable-header-expanded',
25
25
  sortable_item_module["header-expanded"]
26
26
  ]),
27
27
  children: [
28
28
  grip,
29
29
  /*#__PURE__*/ jsx("div", {
30
- className: classnames('byline-sortable-label', sortable_item_module.label),
30
+ className: clsx('byline-sortable-label', sortable_item_module.label),
31
31
  children: label
32
32
  }),
33
33
  /*#__PURE__*/ jsx(DraggableContextMenu, {
@@ -36,11 +36,11 @@ const ItemFrame = ({ label, children, onAddBelow, onRemove, grip, rootRef, style
36
36
  }),
37
37
  /*#__PURE__*/ jsx("button", {
38
38
  type: "button",
39
- className: classnames('byline-sortable-toggle', sortable_item_module.toggle),
39
+ className: clsx('byline-sortable-toggle', sortable_item_module.toggle),
40
40
  onClick: ()=>setCollapsed((prev)=>!prev),
41
41
  "aria-label": collapsed ? t('fields.sortable.expandAriaLabel') : t('fields.sortable.collapseAriaLabel'),
42
42
  children: /*#__PURE__*/ jsx(ChevronDownIcon, {
43
- className: classnames('byline-sortable-toggle-icon', sortable_item_module["toggle-icon"], collapsed && [
43
+ className: clsx('byline-sortable-toggle-icon', sortable_item_module["toggle-icon"], collapsed && [
44
44
  'byline-sortable-toggle-icon-rotated',
45
45
  sortable_item_module["toggle-icon-rotated"]
46
46
  ])
@@ -49,7 +49,7 @@ const ItemFrame = ({ label, children, onAddBelow, onRemove, grip, rootRef, style
49
49
  ]
50
50
  }),
51
51
  /*#__PURE__*/ jsx("div", {
52
- className: classnames('byline-sortable-content', sortable_item_module.content, collapsed && [
52
+ className: clsx('byline-sortable-content', sortable_item_module.content, collapsed && [
53
53
  'byline-sortable-content-hidden',
54
54
  sortable_item_module["content-hidden"]
55
55
  ]),
@@ -80,11 +80,11 @@ const SortableItem = ({ id, label, children, onAddBelow, onRemove })=>{
80
80
  dragging: isDragging,
81
81
  grip: /*#__PURE__*/ jsx("button", {
82
82
  type: "button",
83
- className: classnames('byline-sortable-grip', sortable_item_module.grip),
83
+ className: clsx('byline-sortable-grip', sortable_item_module.grip),
84
84
  ...attributes,
85
85
  ...listeners,
86
86
  children: /*#__PURE__*/ jsx(GripperVerticalIcon, {
87
- className: classnames('byline-sortable-grip-icon', sortable_item_module["grip-icon"])
87
+ className: clsx('byline-sortable-grip-icon', sortable_item_module["grip-icon"])
88
88
  })
89
89
  }),
90
90
  children: children
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useCallback } from "react";
3
3
  import { Input, Label } from "@byline/ui/react";
4
- import classnames from "classnames";
4
+ import clsx from "clsx";
5
5
  import { useFieldError, useFieldValue } from "../../forms/form-context.js";
6
6
  import { LocaleBadge } from "../locale-badge.js";
7
7
  import text_field_module from "./text-field.module.js";
@@ -33,7 +33,7 @@ const TextField = ({ field, value, defaultValue, onChange, id, path, locale, com
33
33
  const hasCustomLabel = !!CustomLabel;
34
34
  const suppressInputLabel = showBadge || hasCustomLabel;
35
35
  const suppressInputHelpText = !!CustomHelpText;
36
- const labelRowClass = classnames('byline-field-text-label-row', text_field_module["label-row"]);
36
+ const labelRowClass = clsx('byline-field-text-label-row', text_field_module["label-row"]);
37
37
  const renderLabel = ()=>{
38
38
  if (hasCustomLabel) return /*#__PURE__*/ jsxs("div", {
39
39
  className: labelRowClass,
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useCallback } from "react";
3
3
  import { Label, TextArea } from "@byline/ui/react";
4
- import classnames from "classnames";
4
+ import clsx from "clsx";
5
5
  import { useFieldError, useFieldValue } from "../../forms/form-context.js";
6
6
  import { LocaleBadge } from "../locale-badge.js";
7
7
  import text_area_field_module from "./text-area-field.module.js";
@@ -33,7 +33,7 @@ const TextAreaField = ({ field, value, defaultValue, onChange, id, path, locale,
33
33
  const hasCustomLabel = !!CustomLabel;
34
34
  const suppressInputLabel = showBadge || hasCustomLabel;
35
35
  const suppressInputHelpText = !!CustomHelpText;
36
- const labelRowClass = classnames('byline-field-text-area-label-row', text_area_field_module["label-row"]);
36
+ const labelRowClass = clsx('byline-field-text-area-label-row', text_area_field_module["label-row"]);
37
37
  const renderLabel = ()=>{
38
38
  if (hasCustomLabel) return /*#__PURE__*/ jsxs("div", {
39
39
  className: labelRowClass,
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useCallback, useMemo } from "react";
4
4
  import { useTranslation } from "@byline/i18n/react";
5
5
  import { Checkbox, Label } from "@byline/ui/react";
6
- import classnames from "classnames";
6
+ import clsx from "clsx";
7
7
  import { reconcileLocaleState } from "./available-locales-reconcile.js";
8
8
  import available_locales_widget_module from "./available-locales-widget.module.js";
9
9
  import { useFormContext, useSystemAvailableLocales } from "./form-context.js";
@@ -30,7 +30,7 @@ const AvailableLocalesWidget = ({ contentLocales, availableVersionLocales })=>{
30
30
  ]);
31
31
  if (0 === contentLocales.length) return null;
32
32
  return /*#__PURE__*/ jsxs("div", {
33
- className: classnames('byline-form-available-locales', available_locales_widget_module.container),
33
+ className: clsx('byline-form-available-locales', available_locales_widget_module.container),
34
34
  children: [
35
35
  /*#__PURE__*/ jsx(Label, {
36
36
  id: "available-locales",
@@ -39,7 +39,7 @@ const AvailableLocalesWidget = ({ contentLocales, availableVersionLocales })=>{
39
39
  }),
40
40
  /*#__PURE__*/ jsx("div", {
41
41
  id: "available-locales-group",
42
- className: classnames('byline-form-available-locales-list', available_locales_widget_module.list),
42
+ className: clsx('byline-form-available-locales-list', available_locales_widget_module.list),
43
43
  role: "group",
44
44
  "aria-labelledby": "label-for-available-locales",
45
45
  "aria-describedby": "available-locales-description",
@@ -59,7 +59,7 @@ const AvailableLocalesWidget = ({ contentLocales, availableVersionLocales })=>{
59
59
  }),
60
60
  /*#__PURE__*/ jsx("span", {
61
61
  id: "available-locales-description",
62
- className: classnames('byline-form-available-locales-sr-only', available_locales_widget_module["sr-only"]),
62
+ className: clsx('byline-form-available-locales-sr-only', available_locales_widget_module["sr-only"]),
63
63
  children: t("availableLocalesWidget.srDescription")
64
64
  })
65
65
  ]
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
4
  import { useTranslation } from "@byline/i18n/react";
5
5
  import { Button, Checkbox, CloseIcon, DeleteIcon, Dropdown, EllipsisIcon, IconButton, Modal, Select } from "@byline/ui/react";
6
- import classnames from "classnames";
6
+ import clsx from "clsx";
7
7
  import document_actions_module from "./document-actions.module.js";
8
8
  const DUPLICATE_TITLE_SUFFIX = ' (copy)';
9
9
  function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate, sourceTitle, onCopyToLocale, sourceLocale, contentLocales, hasUnsavedChanges, onUnsavedChanges, onDeleteLocale, defaultLocale, availableLocales }) {
@@ -94,14 +94,14 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
94
94
  size: "sm"
95
95
  }),
96
96
  children: /*#__PURE__*/ jsx(EllipsisIcon, {
97
- className: classnames('byline-form-actions-icon', document_actions_module.icon),
97
+ className: clsx('byline-form-actions-icon', document_actions_module.icon),
98
98
  width: "15px",
99
99
  height: "15px"
100
100
  })
101
101
  }),
102
102
  /*#__PURE__*/ jsx(Dropdown.Portal, {
103
103
  children: /*#__PURE__*/ jsxs(Dropdown.Content, {
104
- className: classnames('byline-form-actions-menu', document_actions_module.menu),
104
+ className: clsx('byline-form-actions-menu', document_actions_module.menu),
105
105
  align: "end",
106
106
  "data-side": "top",
107
107
  sideOffset: 10,
@@ -109,9 +109,9 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
109
109
  copyToLocaleAvailable && /*#__PURE__*/ jsx(Dropdown.Item, {
110
110
  onClick: handleOpenCopyToLocale,
111
111
  children: /*#__PURE__*/ jsx("div", {
112
- className: classnames('byline-form-actions-item', document_actions_module.item),
112
+ className: clsx('byline-form-actions-item', document_actions_module.item),
113
113
  children: /*#__PURE__*/ jsx("span", {
114
- className: classnames('byline-form-actions-item-text', document_actions_module["item-text"]),
114
+ className: clsx('byline-form-actions-item-text', document_actions_module["item-text"]),
115
115
  children: /*#__PURE__*/ jsx("button", {
116
116
  type: "button",
117
117
  children: t('documentActions.copyToLocaleMenuItem')
@@ -122,9 +122,9 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
122
122
  deleteLocaleAvailable && /*#__PURE__*/ jsx(Dropdown.Item, {
123
123
  onClick: handleOpenDeleteLocale,
124
124
  children: /*#__PURE__*/ jsx("div", {
125
- className: classnames('byline-form-actions-item', document_actions_module.item),
125
+ className: clsx('byline-form-actions-item', document_actions_module.item),
126
126
  children: /*#__PURE__*/ jsx("span", {
127
- className: classnames('byline-form-actions-item-text', document_actions_module["item-text"]),
127
+ className: clsx('byline-form-actions-item-text', document_actions_module["item-text"]),
128
128
  children: /*#__PURE__*/ jsx("button", {
129
129
  type: "button",
130
130
  children: t('documentActions.deleteLocale.menuItem')
@@ -135,9 +135,9 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
135
135
  onDuplicate && /*#__PURE__*/ jsx(Dropdown.Item, {
136
136
  onClick: handleOpenDuplicate,
137
137
  children: /*#__PURE__*/ jsx("div", {
138
- className: classnames('byline-form-actions-item', document_actions_module.item),
138
+ className: clsx('byline-form-actions-item', document_actions_module.item),
139
139
  children: /*#__PURE__*/ jsx("span", {
140
- className: classnames('byline-form-actions-item-text', document_actions_module["item-text"]),
140
+ className: clsx('byline-form-actions-item-text', document_actions_module["item-text"]),
141
141
  children: /*#__PURE__*/ jsx("button", {
142
142
  type: "button",
143
143
  children: t('common.actions.duplicate')
@@ -151,20 +151,20 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
151
151
  setShowDeleteConfirm(true);
152
152
  },
153
153
  children: /*#__PURE__*/ jsxs("div", {
154
- className: classnames('byline-form-actions-item', document_actions_module.item),
154
+ className: clsx('byline-form-actions-item', document_actions_module.item),
155
155
  children: [
156
156
  /*#__PURE__*/ jsx("span", {
157
- className: classnames('byline-form-actions-item-icon', document_actions_module["item-icon"]),
157
+ className: clsx('byline-form-actions-item-icon', document_actions_module["item-icon"]),
158
158
  children: /*#__PURE__*/ jsx(DeleteIcon, {
159
159
  width: "16px",
160
160
  height: "16px"
161
161
  })
162
162
  }),
163
163
  /*#__PURE__*/ jsx("span", {
164
- className: classnames('byline-form-actions-item-text', document_actions_module["item-text"]),
164
+ className: clsx('byline-form-actions-item-text', document_actions_module["item-text"]),
165
165
  children: /*#__PURE__*/ jsx("button", {
166
166
  type: "button",
167
- className: classnames('byline-form-actions-delete', document_actions_module["delete"]),
167
+ className: clsx('byline-form-actions-delete', document_actions_module["delete"]),
168
168
  children: t('common.actions.delete')
169
169
  })
170
170
  })
@@ -188,10 +188,10 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
188
188
  },
189
189
  children: [
190
190
  /*#__PURE__*/ jsxs(Modal.Header, {
191
- className: classnames('byline-form-actions-modal-head', document_actions_module["modal-head"]),
191
+ className: clsx('byline-form-actions-modal-head', document_actions_module["modal-head"]),
192
192
  children: [
193
193
  /*#__PURE__*/ jsx("h3", {
194
- className: classnames('byline-form-actions-modal-title', document_actions_module["modal-title"]),
194
+ className: clsx('byline-form-actions-modal-title', document_actions_module["modal-title"]),
195
195
  children: t('documentActions.delete.title')
196
196
  }),
197
197
  /*#__PURE__*/ jsx(IconButton, {
@@ -219,7 +219,7 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
219
219
  "data-autofocus": true,
220
220
  type: "button",
221
221
  tabIndex: 0,
222
- className: classnames('byline-form-actions-sr-only', document_actions_module["sr-only"]),
222
+ className: clsx('byline-form-actions-sr-only', document_actions_module["sr-only"]),
223
223
  children: "no action"
224
224
  }),
225
225
  /*#__PURE__*/ jsx(Button, {
@@ -259,10 +259,10 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
259
259
  },
260
260
  children: [
261
261
  /*#__PURE__*/ jsxs(Modal.Header, {
262
- className: classnames('byline-form-actions-modal-head', document_actions_module["modal-head"]),
262
+ className: clsx('byline-form-actions-modal-head', document_actions_module["modal-head"]),
263
263
  children: [
264
264
  /*#__PURE__*/ jsx("h3", {
265
- className: classnames('byline-form-actions-modal-title', document_actions_module["modal-title"]),
265
+ className: clsx('byline-form-actions-modal-title', document_actions_module["modal-title"]),
266
266
  children: t('documentActions.duplicate.title')
267
267
  }),
268
268
  /*#__PURE__*/ jsx(IconButton, {
@@ -287,7 +287,7 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
287
287
  children: t('documentActions.duplicate.intro')
288
288
  }),
289
289
  /*#__PURE__*/ jsxs("ul", {
290
- className: classnames('byline-form-actions-list', document_actions_module.list),
290
+ className: clsx('byline-form-actions-list', document_actions_module.list),
291
291
  children: [
292
292
  /*#__PURE__*/ jsxs("li", {
293
293
  children: [
@@ -305,25 +305,25 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
305
305
  ]
306
306
  }),
307
307
  null != sourceTitle && sourceTitle.length > 0 && /*#__PURE__*/ jsxs("div", {
308
- className: classnames('byline-form-actions-preview', document_actions_module.preview),
308
+ className: clsx('byline-form-actions-preview', document_actions_module.preview),
309
309
  children: [
310
310
  /*#__PURE__*/ jsx("div", {
311
- className: classnames('byline-form-actions-preview-label', document_actions_module["preview-label"]),
311
+ className: clsx('byline-form-actions-preview-label', document_actions_module["preview-label"]),
312
312
  children: t('documentActions.duplicate.previewLabel')
313
313
  }),
314
314
  /*#__PURE__*/ jsxs("div", {
315
- className: classnames('byline-form-actions-preview-row', document_actions_module["preview-row"]),
315
+ className: clsx('byline-form-actions-preview-row', document_actions_module["preview-row"]),
316
316
  children: [
317
317
  /*#__PURE__*/ jsx("span", {
318
- className: classnames('byline-form-actions-preview-before', document_actions_module["preview-before"]),
318
+ className: clsx('byline-form-actions-preview-before', document_actions_module["preview-before"]),
319
319
  children: duplicatePreviewBefore
320
320
  }),
321
321
  /*#__PURE__*/ jsx("span", {
322
- className: classnames('byline-form-actions-preview-arrow', document_actions_module["preview-arrow"]),
322
+ className: clsx('byline-form-actions-preview-arrow', document_actions_module["preview-arrow"]),
323
323
  children: "→"
324
324
  }),
325
325
  /*#__PURE__*/ jsx("span", {
326
- className: classnames('byline-form-actions-preview-after', document_actions_module["preview-after"]),
326
+ className: clsx('byline-form-actions-preview-after', document_actions_module["preview-after"]),
327
327
  children: duplicatePreviewAfter
328
328
  })
329
329
  ]
@@ -338,7 +338,7 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
338
338
  "data-autofocus": true,
339
339
  type: "button",
340
340
  tabIndex: 0,
341
- className: classnames('byline-form-actions-sr-only', document_actions_module["sr-only"]),
341
+ className: clsx('byline-form-actions-sr-only', document_actions_module["sr-only"]),
342
342
  children: "no action"
343
343
  }),
344
344
  /*#__PURE__*/ jsx(Button, {
@@ -380,10 +380,10 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
380
380
  },
381
381
  children: [
382
382
  /*#__PURE__*/ jsxs(Modal.Header, {
383
- className: classnames('byline-form-actions-modal-head', document_actions_module["modal-head"]),
383
+ className: clsx('byline-form-actions-modal-head', document_actions_module["modal-head"]),
384
384
  children: [
385
385
  /*#__PURE__*/ jsx("h3", {
386
- className: classnames('byline-form-actions-modal-title', document_actions_module["modal-title"]),
386
+ className: clsx('byline-form-actions-modal-title', document_actions_module["modal-title"]),
387
387
  children: t('documentActions.copyToLocale.title')
388
388
  }),
389
389
  /*#__PURE__*/ jsx(IconButton, {
@@ -406,13 +406,13 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
406
406
  children: t('documentActions.copyToLocale.intro')
407
407
  }),
408
408
  /*#__PURE__*/ jsxs("div", {
409
- className: classnames('byline-form-actions-copy-row', document_actions_module["copy-row"]),
409
+ className: clsx('byline-form-actions-copy-row', document_actions_module["copy-row"]),
410
410
  style: {
411
411
  marginTop: 'var(--spacing-12)'
412
412
  },
413
413
  children: [
414
414
  /*#__PURE__*/ jsxs("span", {
415
- className: classnames('byline-form-actions-copy-label', document_actions_module["copy-label"]),
415
+ className: clsx('byline-form-actions-copy-label', document_actions_module["copy-label"]),
416
416
  style: {
417
417
  fontWeight: 500
418
418
  },
@@ -422,19 +422,19 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
422
422
  ]
423
423
  }),
424
424
  /*#__PURE__*/ jsx("span", {
425
- className: classnames('byline-form-actions-copy-source', document_actions_module["copy-source"]),
425
+ className: clsx('byline-form-actions-copy-source', document_actions_module["copy-source"]),
426
426
  children: sourceLocaleLabel
427
427
  })
428
428
  ]
429
429
  }),
430
430
  /*#__PURE__*/ jsxs("div", {
431
- className: classnames('byline-form-actions-copy-row', document_actions_module["copy-row"]),
431
+ className: clsx('byline-form-actions-copy-row', document_actions_module["copy-row"]),
432
432
  style: {
433
433
  marginTop: 'var(--spacing-12)'
434
434
  },
435
435
  children: [
436
436
  /*#__PURE__*/ jsx("span", {
437
- className: classnames('byline-form-actions-copy-label', document_actions_module["copy-label"]),
437
+ className: clsx('byline-form-actions-copy-label', document_actions_module["copy-label"]),
438
438
  style: {
439
439
  fontWeight: 500,
440
440
  marginRight: 'var(--spacing-8)'
@@ -457,7 +457,7 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
457
457
  ]
458
458
  }),
459
459
  /*#__PURE__*/ jsx("div", {
460
- className: classnames('byline-form-actions-copy-row', document_actions_module["copy-row"]),
460
+ className: clsx('byline-form-actions-copy-row', document_actions_module["copy-row"]),
461
461
  style: {
462
462
  marginTop: 'var(--spacing-16)'
463
463
  },
@@ -481,7 +481,7 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
481
481
  "data-autofocus": true,
482
482
  type: "button",
483
483
  tabIndex: 0,
484
- className: classnames('byline-form-actions-sr-only', document_actions_module["sr-only"]),
484
+ className: clsx('byline-form-actions-sr-only', document_actions_module["sr-only"]),
485
485
  children: "no action"
486
486
  }),
487
487
  /*#__PURE__*/ jsx(Button, {
@@ -523,10 +523,10 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
523
523
  },
524
524
  children: [
525
525
  /*#__PURE__*/ jsxs(Modal.Header, {
526
- className: classnames('byline-form-actions-modal-head', document_actions_module["modal-head"]),
526
+ className: clsx('byline-form-actions-modal-head', document_actions_module["modal-head"]),
527
527
  children: [
528
528
  /*#__PURE__*/ jsx("h3", {
529
- className: classnames('byline-form-actions-modal-title', document_actions_module["modal-title"]),
529
+ className: clsx('byline-form-actions-modal-title', document_actions_module["modal-title"]),
530
530
  children: t('documentActions.deleteLocale.title')
531
531
  }),
532
532
  /*#__PURE__*/ jsx(IconButton, {
@@ -549,13 +549,13 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
549
549
  children: t('documentActions.deleteLocale.intro')
550
550
  }),
551
551
  /*#__PURE__*/ jsxs("div", {
552
- className: classnames('byline-form-actions-copy-row', document_actions_module["copy-row"]),
552
+ className: clsx('byline-form-actions-copy-row', document_actions_module["copy-row"]),
553
553
  style: {
554
554
  marginTop: 'var(--spacing-12)'
555
555
  },
556
556
  children: [
557
557
  /*#__PURE__*/ jsx("span", {
558
- className: classnames('byline-form-actions-copy-label', document_actions_module["copy-label"]),
558
+ className: clsx('byline-form-actions-copy-label', document_actions_module["copy-label"]),
559
559
  style: {
560
560
  fontWeight: 500,
561
561
  marginRight: 'var(--spacing-8)'
@@ -591,7 +591,7 @@ function DocumentActions({ publishedVersion, onUnpublish, onDelete, onDuplicate,
591
591
  "data-autofocus": true,
592
592
  type: "button",
593
593
  tabIndex: 0,
594
- className: classnames('byline-form-actions-sr-only', document_actions_module["sr-only"]),
594
+ className: clsx('byline-form-actions-sr-only', document_actions_module["sr-only"]),
595
595
  children: "no action"
596
596
  }),
597
597
  /*#__PURE__*/ jsx(Button, {
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useTranslation } from "@byline/i18n/react";
4
4
  import { Button, CloseIcon, IconButton, Modal } from "@byline/ui/react";
5
- import classnames from "classnames";
5
+ import clsx from "clsx";
6
6
  import form_renderer_module from "./form-renderer.module.js";
7
7
  const UnsavedChangesModal = ({ onClose })=>{
8
8
  const { t } = useTranslation('byline-admin');
@@ -16,15 +16,15 @@ const UnsavedChangesModal = ({ onClose })=>{
16
16
  },
17
17
  children: [
18
18
  /*#__PURE__*/ jsx(Modal.Header, {
19
- className: classnames('byline-form-guard-modal-head', form_renderer_module["guard-modal-head"]),
19
+ className: clsx('byline-form-guard-modal-head', form_renderer_module["guard-modal-head"]),
20
20
  children: /*#__PURE__*/ jsx("h3", {
21
- className: classnames('byline-form-guard-modal-title', form_renderer_module["guard-modal-title"]),
21
+ className: clsx('byline-form-guard-modal-title', form_renderer_module["guard-modal-title"]),
22
22
  children: t('forms.unsavedChanges.title')
23
23
  })
24
24
  }),
25
25
  /*#__PURE__*/ jsx(Modal.Content, {
26
26
  children: /*#__PURE__*/ jsx("p", {
27
- className: classnames('byline-form-guard-modal-text', form_renderer_module["guard-modal-text"]),
27
+ className: clsx('byline-form-guard-modal-text', form_renderer_module["guard-modal-text"]),
28
28
  children: t('forms.unsavedChanges.message')
29
29
  })
30
30
  }),
@@ -56,10 +56,10 @@ const SystemFieldsConfirmModal = ({ contentDirty, pathDirty, availableLocalesDir
56
56
  },
57
57
  children: [
58
58
  /*#__PURE__*/ jsxs(Modal.Header, {
59
- className: classnames('byline-form-guard-modal-head', form_renderer_module["guard-modal-head"]),
59
+ className: clsx('byline-form-guard-modal-head', form_renderer_module["guard-modal-head"]),
60
60
  children: [
61
61
  /*#__PURE__*/ jsx("h3", {
62
- className: classnames('byline-form-guard-modal-title', form_renderer_module["guard-modal-title"]),
62
+ className: clsx('byline-form-guard-modal-title', form_renderer_module["guard-modal-title"]),
63
63
  children: contentDirty ? t('forms.systemFieldsConfirm.bothTitle') : t('forms.systemFieldsConfirm.title')
64
64
  }),
65
65
  /*#__PURE__*/ jsx(IconButton, {
@@ -78,7 +78,7 @@ const SystemFieldsConfirmModal = ({ contentDirty, pathDirty, availableLocalesDir
78
78
  className: "prose",
79
79
  children: [
80
80
  contentDirty && /*#__PURE__*/ jsx("p", {
81
- className: classnames('byline-form-system-fields-content-note', 'm-0 mt-2'),
81
+ className: clsx('byline-form-system-fields-content-note', 'm-0 mt-2'),
82
82
  children: t('forms.systemFieldsConfirm.contentNote')
83
83
  }),
84
84
  /*#__PURE__*/ jsx("p", {
@@ -91,7 +91,7 @@ const SystemFieldsConfirmModal = ({ contentDirty, pathDirty, availableLocalesDir
91
91
  children: t('forms.systemFieldsConfirm.intro')
92
92
  }),
93
93
  /*#__PURE__*/ jsxs("ul", {
94
- className: classnames('byline-form-system-fields-list', form_renderer_module["guard-modal-text"], 'm-0'),
94
+ className: clsx('byline-form-system-fields-list', form_renderer_module["guard-modal-text"], 'm-0'),
95
95
  children: [
96
96
  pathDirty && /*#__PURE__*/ jsx("li", {
97
97
  children: t('forms.systemFieldsConfirm.bulletPath')
@@ -102,7 +102,7 @@ const SystemFieldsConfirmModal = ({ contentDirty, pathDirty, availableLocalesDir
102
102
  ]
103
103
  }),
104
104
  /*#__PURE__*/ jsx("p", {
105
- className: classnames('byline-form-system-fields-effect', form_renderer_module["guard-modal-text"]),
105
+ className: clsx('byline-form-system-fields-effect', form_renderer_module["guard-modal-text"]),
106
106
  style: {
107
107
  marginTop: 'var(--spacing-4)',
108
108
  marginBottom: 0,
@@ -152,15 +152,15 @@ const NavigationGuardModal = ({ onStay, onProceed })=>{
152
152
  },
153
153
  children: [
154
154
  /*#__PURE__*/ jsx(Modal.Header, {
155
- className: classnames('byline-form-guard-modal-head', form_renderer_module["guard-modal-head"]),
155
+ className: clsx('byline-form-guard-modal-head', form_renderer_module["guard-modal-head"]),
156
156
  children: /*#__PURE__*/ jsx("h3", {
157
- className: classnames('byline-form-guard-modal-title', form_renderer_module["guard-modal-title"]),
157
+ className: clsx('byline-form-guard-modal-title', form_renderer_module["guard-modal-title"]),
158
158
  children: t('forms.navigationGuard.title')
159
159
  })
160
160
  }),
161
161
  /*#__PURE__*/ jsx(Modal.Content, {
162
162
  children: /*#__PURE__*/ jsx("p", {
163
- className: classnames('byline-form-guard-modal-text', form_renderer_module["guard-modal-text"]),
163
+ className: clsx('byline-form-guard-modal-text', form_renderer_module["guard-modal-text"]),
164
164
  children: t('forms.navigationGuard.message')
165
165
  })
166
166
  }),