@byline/admin 6.10.1 → 6.11.0

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 (103) hide show
  1. package/dist/fields/array/array-field_module.css +57 -53
  2. package/dist/fields/blocks/blocks-field_module.css +134 -130
  3. package/dist/fields/checkbox/checkbox-field_module.css +6 -2
  4. package/dist/fields/code/code-field_module.css +57 -53
  5. package/dist/fields/datetime/datetime-field_module.css +6 -2
  6. package/dist/fields/draggable-context-menu_module.css +77 -73
  7. package/dist/fields/field-renderer_module.css +12 -8
  8. package/dist/fields/file/file-field_module.css +133 -129
  9. package/dist/fields/file/file-upload-field_module.css +67 -63
  10. package/dist/fields/group/group-field_module.css +25 -21
  11. package/dist/fields/image/image-field_module.css +123 -119
  12. package/dist/fields/image/image-upload-field_module.css +81 -77
  13. package/dist/fields/locale-badge_module.css +28 -24
  14. package/dist/fields/relation/relation-display_module.css +20 -16
  15. package/dist/fields/relation/relation-field_module.css +149 -145
  16. package/dist/fields/relation/relation-picker_module.css +187 -183
  17. package/dist/fields/relation/relation-summary_module.css +34 -30
  18. package/dist/fields/select/select-field_module.css +9 -5
  19. package/dist/fields/sortable-item_module.css +126 -122
  20. package/dist/fields/text/text-field_module.css +8 -4
  21. package/dist/fields/text-area/text-area-field_module.css +8 -4
  22. package/dist/forms/available-locales-widget_module.css +19 -15
  23. package/dist/forms/document-actions_module.css +120 -116
  24. package/dist/forms/form-renderer_module.css +247 -243
  25. package/dist/forms/path-widget_module.css +29 -25
  26. package/dist/forms/scheduled-publication-control_module.css +76 -72
  27. package/dist/forms/tree-placement-widget_module.css +61 -57
  28. package/dist/modules/admin-account/components/change-password_module.css +26 -22
  29. package/dist/modules/admin-account/components/container_module.css +93 -89
  30. package/dist/modules/admin-account/components/preferences_module.css +37 -33
  31. package/dist/modules/admin-account/components/theme-switch_module.css +16 -12
  32. package/dist/modules/admin-account/components/update_module.css +26 -22
  33. package/dist/modules/admin-permissions/components/inspector_module.css +197 -193
  34. package/dist/modules/admin-roles/components/create_module.css +26 -22
  35. package/dist/modules/admin-roles/components/permissions_module.css +159 -155
  36. package/dist/modules/admin-roles/components/update_module.css +26 -22
  37. package/dist/modules/admin-users/components/create_module.css +39 -35
  38. package/dist/modules/admin-users/components/roles_module.css +65 -61
  39. package/dist/modules/admin-users/components/set-password_module.css +29 -25
  40. package/dist/modules/admin-users/components/update_module.css +32 -28
  41. package/dist/modules/analytics/components/dashboard_module.css +268 -264
  42. package/dist/modules/analytics/components/timeseries_module.css +192 -188
  43. package/dist/modules/auth/components/passkey-manager_module.css +87 -83
  44. package/dist/modules/auth/components/sign-in-form_module.css +68 -64
  45. package/dist/presentation/group_module.css +19 -15
  46. package/dist/presentation/row_module.css +17 -13
  47. package/dist/presentation/tabs_module.css +231 -227
  48. package/dist/widgets/diff-viewer/diff-modal_module.css +58 -54
  49. package/dist/widgets/source-locale-badge/source-locale-badge_module.css +12 -8
  50. package/dist/widgets/status-badge/status-badge_module.css +20 -16
  51. package/package.json +9 -8
  52. package/src/fields/array/array-field.module.css +71 -55
  53. package/src/fields/blocks/blocks-field.module.css +173 -156
  54. package/src/fields/checkbox/checkbox-field.module.css +17 -3
  55. package/src/fields/code/code-editor.tsx +2 -0
  56. package/src/fields/code/code-field.module.css +75 -59
  57. package/src/fields/datetime/datetime-field.module.css +19 -3
  58. package/src/fields/draggable-context-menu.module.css +108 -92
  59. package/src/fields/field-renderer.module.css +26 -10
  60. package/src/fields/file/file-field.module.css +147 -131
  61. package/src/fields/file/file-upload-field.module.css +91 -75
  62. package/src/fields/group/group-field.module.css +42 -26
  63. package/src/fields/image/image-field.module.css +152 -136
  64. package/src/fields/image/image-upload-field.module.css +107 -91
  65. package/src/fields/locale-badge.module.css +43 -27
  66. package/src/fields/relation/relation-display.module.css +37 -21
  67. package/src/fields/relation/relation-field.module.css +168 -152
  68. package/src/fields/relation/relation-picker.module.css +207 -191
  69. package/src/fields/relation/relation-summary.module.css +52 -36
  70. package/src/fields/select/select-field.module.css +23 -7
  71. package/src/fields/sortable-item.module.css +143 -127
  72. package/src/fields/text/text-field.module.css +21 -5
  73. package/src/fields/text-area/text-area-field.module.css +21 -5
  74. package/src/forms/available-locales-widget.module.css +39 -23
  75. package/src/forms/document-actions.module.css +139 -123
  76. package/src/forms/form-layout-styles.test.node.ts +12 -4
  77. package/src/forms/form-renderer.module.css +312 -296
  78. package/src/forms/path-widget.module.css +44 -28
  79. package/src/forms/scheduled-publication-control.module.css +104 -91
  80. package/src/forms/tree-placement-widget.module.css +80 -64
  81. package/src/modules/admin-account/components/change-password.module.css +42 -26
  82. package/src/modules/admin-account/components/container.module.css +129 -113
  83. package/src/modules/admin-account/components/preferences.module.css +56 -40
  84. package/src/modules/admin-account/components/theme-switch.module.css +32 -16
  85. package/src/modules/admin-account/components/update.module.css +42 -26
  86. package/src/modules/admin-permissions/components/inspector.module.css +255 -239
  87. package/src/modules/admin-roles/components/create.module.css +42 -26
  88. package/src/modules/admin-roles/components/permissions.module.css +204 -201
  89. package/src/modules/admin-roles/components/update.module.css +42 -26
  90. package/src/modules/admin-users/components/create.module.css +58 -42
  91. package/src/modules/admin-users/components/roles.module.css +96 -86
  92. package/src/modules/admin-users/components/set-password.module.css +46 -30
  93. package/src/modules/admin-users/components/update.module.css +49 -33
  94. package/src/modules/analytics/components/dashboard.module.css +322 -306
  95. package/src/modules/analytics/components/timeseries.module.css +237 -221
  96. package/src/modules/auth/components/passkey-manager.module.css +98 -84
  97. package/src/modules/auth/components/sign-in-form.module.css +85 -69
  98. package/src/presentation/group.module.css +36 -20
  99. package/src/presentation/row.module.css +32 -16
  100. package/src/presentation/tabs.module.css +243 -227
  101. package/src/widgets/diff-viewer/diff-modal.module.css +71 -55
  102. package/src/widgets/source-locale-badge/source-locale-badge.module.css +25 -9
  103. package/src/widgets/status-badge/status-badge.module.css +35 -19
@@ -1,3 +1,17 @@
1
+ @layer base,
2
+ byline-base,
3
+ theme,
4
+ byline-theme,
5
+ byline-functional,
6
+ byline-typography,
7
+ components,
8
+ byline-components,
9
+ overrides,
10
+ byline-utilities,
11
+ utilities;
12
+
13
+ @layer byline-components.primitives, byline-components.cms;
14
+
1
15
  /**
2
16
  * CodeField — CodeMirror-backed source-code input.
3
17
  *
@@ -15,70 +29,72 @@
15
29
  * overriding these variables on `.byline-field-code`.
16
30
  */
17
31
 
18
- .label-row,
19
- :global(.byline-field-code-label-row) {
20
- display: flex;
21
- align-items: center;
22
- margin-bottom: 0.25rem;
23
- }
24
-
25
- :global(.byline-field-code) {
26
- /* Chrome */
27
- --byline-code-bg: var(--canvas-50, #fafafa);
28
- --byline-code-fg: var(--canvas-950, #1c1c1e);
29
- --byline-code-border: var(--canvas-300, #d6d6d6);
30
- --byline-code-gutter-bg: var(--canvas-100, #f2f2f2);
31
- --byline-code-gutter-fg: var(--canvas-500, #8b8b90);
32
- --byline-code-active-line: rgba(0, 0, 0, 0.04);
33
- --byline-code-selection: rgba(59, 130, 246, 0.18);
34
- --byline-code-caret: var(--canvas-950, #1c1c1e);
35
- --byline-code-focus-ring: rgba(59, 130, 246, 0.6);
36
-
37
- /* Syntax */
38
- --byline-code-keyword: #7c3aed;
39
- --byline-code-string: #15803d;
40
- --byline-code-comment: #767680;
41
- --byline-code-number: #c2410c;
42
- --byline-code-function: #1d4ed8;
43
- --byline-code-type: #0f766e;
44
- --byline-code-property: #a16207;
45
- --byline-code-operator: #52525b;
46
- }
32
+ @layer byline-components.cms {
33
+ .label-row,
34
+ :global(.byline-field-code-label-row) {
35
+ display: flex;
36
+ align-items: center;
37
+ margin-bottom: 0.25rem;
38
+ }
47
39
 
48
- :is([data-theme="dark"], :global(.dark)) {
49
40
  :global(.byline-field-code) {
50
41
  /* Chrome */
51
- --byline-code-bg: var(--canvas-900, #1b1b1f);
52
- --byline-code-fg: var(--canvas-100, #e6e6ea);
53
- --byline-code-border: var(--canvas-700, #3f3f46);
54
- --byline-code-gutter-bg: var(--canvas-800, #232327);
55
- --byline-code-gutter-fg: var(--canvas-500, #77777f);
56
- --byline-code-active-line: rgba(255, 255, 255, 0.05);
57
- --byline-code-selection: rgba(96, 165, 250, 0.28);
58
- --byline-code-caret: var(--canvas-100, #e6e6ea);
59
- --byline-code-focus-ring: rgba(96, 165, 250, 0.55);
42
+ --byline-code-bg: var(--canvas-50, #fafafa);
43
+ --byline-code-fg: var(--canvas-950, #1c1c1e);
44
+ --byline-code-border: var(--canvas-300, #d6d6d6);
45
+ --byline-code-gutter-bg: var(--canvas-100, #f2f2f2);
46
+ --byline-code-gutter-fg: var(--canvas-500, #8b8b90);
47
+ --byline-code-active-line: rgba(0, 0, 0, 0.04);
48
+ --byline-code-selection: rgba(59, 130, 246, 0.18);
49
+ --byline-code-caret: var(--canvas-950, #1c1c1e);
50
+ --byline-code-focus-ring: rgba(59, 130, 246, 0.6);
60
51
 
61
52
  /* Syntax */
62
- --byline-code-keyword: #c4b5fd;
63
- --byline-code-string: #86efac;
64
- --byline-code-comment: #8e8e96;
65
- --byline-code-number: #fdba74;
66
- --byline-code-function: #93c5fd;
67
- --byline-code-type: #5eead4;
68
- --byline-code-property: #fde047;
69
- --byline-code-operator: #a1a1aa;
53
+ --byline-code-keyword: #7c3aed;
54
+ --byline-code-string: #15803d;
55
+ --byline-code-comment: #767680;
56
+ --byline-code-number: #c2410c;
57
+ --byline-code-function: #1d4ed8;
58
+ --byline-code-type: #0f766e;
59
+ --byline-code-property: #a16207;
60
+ --byline-code-operator: #52525b;
70
61
  }
71
- }
72
62
 
73
- .loading,
74
- :global(.byline-field-code-loading) {
75
- width: 100%;
76
- resize: none;
77
- font-family: var(--byline-code-font, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
78
- font-size: var(--byline-code-font-size, 13px);
79
- color: var(--byline-code-fg);
80
- background-color: var(--byline-code-bg);
81
- border: 1px solid var(--byline-code-border);
82
- border-radius: var(--byline-code-radius, 4px);
83
- padding: 0.5rem;
63
+ :is([data-theme="dark"], :global(.dark)) {
64
+ :global(.byline-field-code) {
65
+ /* Chrome */
66
+ --byline-code-bg: var(--canvas-900, #1b1b1f);
67
+ --byline-code-fg: var(--canvas-100, #e6e6ea);
68
+ --byline-code-border: var(--canvas-700, #3f3f46);
69
+ --byline-code-gutter-bg: var(--canvas-800, #232327);
70
+ --byline-code-gutter-fg: var(--canvas-500, #77777f);
71
+ --byline-code-active-line: rgba(255, 255, 255, 0.05);
72
+ --byline-code-selection: rgba(96, 165, 250, 0.28);
73
+ --byline-code-caret: var(--canvas-100, #e6e6ea);
74
+ --byline-code-focus-ring: rgba(96, 165, 250, 0.55);
75
+
76
+ /* Syntax */
77
+ --byline-code-keyword: #c4b5fd;
78
+ --byline-code-string: #86efac;
79
+ --byline-code-comment: #8e8e96;
80
+ --byline-code-number: #fdba74;
81
+ --byline-code-function: #93c5fd;
82
+ --byline-code-type: #5eead4;
83
+ --byline-code-property: #fde047;
84
+ --byline-code-operator: #a1a1aa;
85
+ }
86
+ }
87
+
88
+ .loading,
89
+ :global(.byline-field-code-loading) {
90
+ width: 100%;
91
+ resize: none;
92
+ font-family: var(--byline-code-font, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
93
+ font-size: var(--byline-code-font-size, 13px);
94
+ color: var(--byline-code-fg);
95
+ background-color: var(--byline-code-bg);
96
+ border: 1px solid var(--byline-code-border);
97
+ border-radius: var(--byline-code-radius, 4px);
98
+ padding: 0.5rem;
99
+ }
84
100
  }
@@ -1,3 +1,17 @@
1
+ @layer base,
2
+ byline-base,
3
+ theme,
4
+ byline-theme,
5
+ byline-functional,
6
+ byline-typography,
7
+ components,
8
+ byline-components,
9
+ overrides,
10
+ byline-utilities,
11
+ utilities;
12
+
13
+ @layer byline-components.primitives, byline-components.cms;
14
+
1
15
  /**
2
16
  * DateTimeField — date/time picker form widget.
3
17
  *
@@ -7,7 +21,9 @@
7
21
  * field has unsaved local changes
8
22
  */
9
23
 
10
- .dirty,
11
- :global(.byline-field-datetime-dirty) {
12
- border-color: var(--blue-300);
24
+ @layer byline-components.cms {
25
+ .dirty,
26
+ :global(.byline-field-datetime-dirty) {
27
+ border-color: var(--blue-300);
28
+ }
13
29
  }
@@ -1,3 +1,17 @@
1
+ @layer base,
2
+ byline-base,
3
+ theme,
4
+ byline-theme,
5
+ byline-functional,
6
+ byline-typography,
7
+ components,
8
+ byline-components,
9
+ overrides,
10
+ byline-utilities,
11
+ utilities;
12
+
13
+ @layer byline-components.primitives, byline-components.cms;
14
+
1
15
  /**
2
16
  * DraggableContextMenu — small `…` dropdown attached to draggable list rows.
3
17
  *
@@ -11,117 +25,119 @@
11
25
  * .byline-draggable-menu-separator — separator between items
12
26
  */
13
27
 
14
- .menu,
15
- :global(.byline-draggable-menu) {
16
- z-index: 40;
17
- width: 8.5rem;
18
- padding: 0.25rem 0.375rem;
19
- background-color: white;
20
- border: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
21
- border-radius: var(--border-radius-sm);
22
- box-shadow:
23
- 0 4px 6px -1px rgb(0 0 0 / 0.1),
24
- 0 2px 4px -2px rgb(0 0 0 / 0.1);
25
- }
26
-
27
- .item,
28
- :global(.byline-draggable-menu-item) {
29
- display: flex;
30
- align-items: center;
31
- gap: 0.25rem;
32
- width: 100%;
33
- padding: 5px 2px;
34
- border-radius: var(--border-radius-sm);
35
- color: var(--gray-600);
36
- cursor: default;
37
- user-select: none;
38
- outline: none;
39
- }
40
-
41
- @media (min-width: 48rem) {
42
- .item,
43
- :global(.byline-draggable-menu-item) {
44
- font-size: var(--font-size-sm);
45
- }
46
- }
47
-
48
- .item:hover,
49
- .item:focus,
50
- :global(.byline-draggable-menu-item):hover,
51
- :global(.byline-draggable-menu-item):focus {
52
- background-color: oklch(from var(--canvas-50) l c h / 0.3);
53
- }
54
-
55
- .row,
56
- :global(.byline-draggable-menu-row) {
57
- display: flex;
58
- align-items: center;
59
- gap: 0.25rem;
60
- width: 100%;
61
- }
62
-
63
- .icon-slot,
64
- :global(.byline-draggable-menu-icon-slot) {
65
- display: inline-block;
66
- width: 22px;
67
- }
68
-
69
- .label,
70
- :global(.byline-draggable-menu-label) {
71
- display: inline-block;
72
- flex: 1;
73
- width: 100%;
74
- align-self: flex-start;
75
- text-align: left;
76
- color: black;
77
- }
78
-
79
- .label-danger,
80
- :global(.byline-draggable-menu-label-danger) {
81
- color: var(--red-600);
82
- }
83
-
84
- .delete-icon,
85
- :global(.byline-draggable-menu-delete-icon) {
86
- stroke: var(--red-600);
87
- }
88
-
89
- .separator,
90
- :global(.byline-draggable-menu-separator) {
91
- width: 90%;
92
- margin: 0.25rem auto;
93
- border: none;
94
- border-top: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
95
- }
96
-
97
- /* ─── Dark theme variants ───────────────────────────────────── */
98
-
99
- :is([data-theme="dark"], :global(.dark)) {
28
+ @layer byline-components.cms {
100
29
  .menu,
101
30
  :global(.byline-draggable-menu) {
102
- background-color: var(--canvas-800);
103
- border-color: var(--canvas-700);
31
+ z-index: 40;
32
+ width: 8.5rem;
33
+ padding: 0.25rem 0.375rem;
34
+ background-color: white;
35
+ border: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
36
+ border-radius: var(--border-radius-sm);
37
+ box-shadow:
38
+ 0 4px 6px -1px rgb(0 0 0 / 0.1),
39
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
104
40
  }
105
41
 
106
42
  .item,
107
43
  :global(.byline-draggable-menu-item) {
108
- color: var(--gray-300);
44
+ display: flex;
45
+ align-items: center;
46
+ gap: 0.25rem;
47
+ width: 100%;
48
+ padding: 5px 2px;
49
+ border-radius: var(--border-radius-sm);
50
+ color: var(--gray-600);
51
+ cursor: default;
52
+ user-select: none;
53
+ outline: none;
54
+ }
55
+
56
+ @media (min-width: 48rem) {
57
+ .item,
58
+ :global(.byline-draggable-menu-item) {
59
+ font-size: var(--font-size-sm);
60
+ }
109
61
  }
110
62
 
111
63
  .item:hover,
112
64
  .item:focus,
113
65
  :global(.byline-draggable-menu-item):hover,
114
66
  :global(.byline-draggable-menu-item):focus {
115
- background-color: var(--canvas-900);
67
+ background-color: oklch(from var(--canvas-50) l c h / 0.3);
68
+ }
69
+
70
+ .row,
71
+ :global(.byline-draggable-menu-row) {
72
+ display: flex;
73
+ align-items: center;
74
+ gap: 0.25rem;
75
+ width: 100%;
76
+ }
77
+
78
+ .icon-slot,
79
+ :global(.byline-draggable-menu-icon-slot) {
80
+ display: inline-block;
81
+ width: 22px;
116
82
  }
117
83
 
118
84
  .label,
119
85
  :global(.byline-draggable-menu-label) {
120
- color: var(--gray-300);
86
+ display: inline-block;
87
+ flex: 1;
88
+ width: 100%;
89
+ align-self: flex-start;
90
+ text-align: left;
91
+ color: black;
92
+ }
93
+
94
+ .label-danger,
95
+ :global(.byline-draggable-menu-label-danger) {
96
+ color: var(--red-600);
97
+ }
98
+
99
+ .delete-icon,
100
+ :global(.byline-draggable-menu-delete-icon) {
101
+ stroke: var(--red-600);
121
102
  }
122
103
 
123
104
  .separator,
124
105
  :global(.byline-draggable-menu-separator) {
125
- border-top-color: var(--gray-900);
106
+ width: 90%;
107
+ margin: 0.25rem auto;
108
+ border: none;
109
+ border-top: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
110
+ }
111
+
112
+ /* ─── Dark theme variants ───────────────────────────────────── */
113
+
114
+ :is([data-theme="dark"], :global(.dark)) {
115
+ .menu,
116
+ :global(.byline-draggable-menu) {
117
+ background-color: var(--canvas-800);
118
+ border-color: var(--canvas-700);
119
+ }
120
+
121
+ .item,
122
+ :global(.byline-draggable-menu-item) {
123
+ color: var(--gray-300);
124
+ }
125
+
126
+ .item:hover,
127
+ .item:focus,
128
+ :global(.byline-draggable-menu-item):hover,
129
+ :global(.byline-draggable-menu-item):focus {
130
+ background-color: var(--canvas-900);
131
+ }
132
+
133
+ .label,
134
+ :global(.byline-draggable-menu-label) {
135
+ color: var(--gray-300);
136
+ }
137
+
138
+ .separator,
139
+ :global(.byline-draggable-menu-separator) {
140
+ border-top-color: var(--gray-900);
141
+ }
126
142
  }
127
143
  }
@@ -1,3 +1,17 @@
1
+ @layer base,
2
+ byline-base,
3
+ theme,
4
+ byline-theme,
5
+ byline-functional,
6
+ byline-typography,
7
+ components,
8
+ byline-components,
9
+ overrides,
10
+ byline-utilities,
11
+ utilities;
12
+
13
+ @layer byline-components.primitives, byline-components.cms;
14
+
1
15
  /**
2
16
  * FieldRenderer — main field-type switch wrapper.
3
17
  *
@@ -8,15 +22,17 @@
8
22
  * .byline-field-localized-badge — the absolutely-positioned badge slot
9
23
  */
10
24
 
11
- .localized-wrap,
12
- :global(.byline-field-localized-wrap) {
13
- position: relative;
14
- }
25
+ @layer byline-components.cms {
26
+ .localized-wrap,
27
+ :global(.byline-field-localized-wrap) {
28
+ position: relative;
29
+ }
15
30
 
16
- .localized-badge,
17
- :global(.byline-field-localized-badge) {
18
- position: absolute;
19
- top: 0;
20
- right: 0;
21
- line-height: 1;
31
+ .localized-badge,
32
+ :global(.byline-field-localized-badge) {
33
+ position: absolute;
34
+ top: 0;
35
+ right: 0;
36
+ line-height: 1;
37
+ }
22
38
  }