@byline/admin 6.10.0 → 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
  * RelationField — widget for `type: 'relation'` fields.
3
17
  *
@@ -16,70 +30,71 @@
16
30
  * relation-specific help class.
17
31
  */
18
32
 
19
- .header,
20
- :global(.byline-field-relation-header) {
21
- display: flex;
22
- align-items: baseline;
23
- gap: var(--spacing-8);
24
- margin-bottom: 0.25rem;
25
- }
26
-
27
- .error-tile,
28
- :global(.byline-field-relation-error-tile) {
29
- display: flex;
30
- flex-direction: column;
31
- gap: 0.25rem;
32
- margin-top: 0.25rem;
33
- padding: var(--spacing-8);
34
- border: var(--border-width-thin) var(--border-style-solid) var(--red-700);
35
- background-color: oklch(from var(--red-900) l c h / 0.2);
36
- border-radius: var(--border-radius-md);
37
- color: var(--red-200);
38
- font-size: var(--font-size-xs);
39
- }
40
-
41
- .error-text,
42
- :global(.byline-field-relation-error-text) {
43
- color: oklch(from var(--red-400) l c h / 0.8);
44
- }
45
-
46
- .tile,
47
- :global(.byline-field-relation-tile) {
48
- display: flex;
49
- align-items: flex-start;
50
- justify-content: space-between;
51
- gap: var(--spacing-8);
52
- margin-top: 0.25rem;
53
- padding: var(--spacing-8);
54
- border: var(--border-width-thin) var(--border-style-solid) var(--primary-500);
55
- border-radius: var(--border-radius-md);
56
- color: var(--gray-200);
57
- font-size: var(--font-size-xs);
58
- }
59
-
60
- .actions,
61
- :global(.byline-field-relation-actions) {
62
- display: flex;
63
- align-items: center;
64
- gap: var(--spacing-4);
65
- flex-shrink: 0;
66
- }
67
-
68
- :global(.byline-field-relation-actions .byline-button) {
69
- color: var(--gray-900);
70
- }
71
-
72
- :global(.dark .byline-field-relation-actions .byline-button),
73
- :global([data-theme="dark"] .byline-field-relation-actions .byline-button) {
74
- color: var(--gray-200);
75
- }
76
-
77
- .mono,
78
- :global(.byline-field-relation-mono) {
79
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
80
- }
81
-
82
- /* ---------------------------------------------------------------------------
33
+ @layer byline-components.cms {
34
+ .header,
35
+ :global(.byline-field-relation-header) {
36
+ display: flex;
37
+ align-items: baseline;
38
+ gap: var(--spacing-8);
39
+ margin-bottom: 0.25rem;
40
+ }
41
+
42
+ .error-tile,
43
+ :global(.byline-field-relation-error-tile) {
44
+ display: flex;
45
+ flex-direction: column;
46
+ gap: 0.25rem;
47
+ margin-top: 0.25rem;
48
+ padding: var(--spacing-8);
49
+ border: var(--border-width-thin) var(--border-style-solid) var(--red-700);
50
+ background-color: oklch(from var(--red-900) l c h / 0.2);
51
+ border-radius: var(--border-radius-md);
52
+ color: var(--red-200);
53
+ font-size: var(--font-size-xs);
54
+ }
55
+
56
+ .error-text,
57
+ :global(.byline-field-relation-error-text) {
58
+ color: oklch(from var(--red-400) l c h / 0.8);
59
+ }
60
+
61
+ .tile,
62
+ :global(.byline-field-relation-tile) {
63
+ display: flex;
64
+ align-items: flex-start;
65
+ justify-content: space-between;
66
+ gap: var(--spacing-8);
67
+ margin-top: 0.25rem;
68
+ padding: var(--spacing-8);
69
+ border: var(--border-width-thin) var(--border-style-solid) var(--primary-500);
70
+ border-radius: var(--border-radius-md);
71
+ color: var(--gray-200);
72
+ font-size: var(--font-size-xs);
73
+ }
74
+
75
+ .actions,
76
+ :global(.byline-field-relation-actions) {
77
+ display: flex;
78
+ align-items: center;
79
+ gap: var(--spacing-4);
80
+ flex-shrink: 0;
81
+ }
82
+
83
+ :global(.byline-field-relation-actions .byline-button) {
84
+ color: var(--gray-900);
85
+ }
86
+
87
+ :global(.dark .byline-field-relation-actions .byline-button),
88
+ :global([data-theme="dark"] .byline-field-relation-actions .byline-button) {
89
+ color: var(--gray-200);
90
+ }
91
+
92
+ .mono,
93
+ :global(.byline-field-relation-mono) {
94
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
95
+ }
96
+
97
+ /* ---------------------------------------------------------------------------
83
98
  * hasMany — ordered list of relation tiles with drag-reorder + remove.
84
99
  *
85
100
  * Override handles:
@@ -91,76 +106,76 @@
91
106
  * .byline-field-relation-many-add — add-item button row
92
107
  * --------------------------------------------------------------------------- */
93
108
 
94
- .many,
95
- :global(.byline-field-relation-many) {
96
- display: flex;
97
- flex-direction: column;
98
- gap: var(--spacing-4);
99
- margin-top: 0.25rem;
100
- }
101
-
102
- .many-empty,
103
- :global(.byline-field-relation-many-empty) {
104
- margin: 0.25rem 0;
105
- color: var(--gray-400);
106
- font-size: var(--font-size-xs);
107
- }
108
-
109
- .many-tile,
110
- :global(.byline-field-relation-many-tile) {
111
- display: flex;
112
- align-items: center;
113
- gap: var(--spacing-8);
114
- padding: var(--spacing-4) var(--spacing-8);
115
- border: var(--border-width-thin) var(--border-style-solid) var(--primary-500);
116
- border-radius: var(--border-radius-md);
117
- background-color: var(--surface-100, transparent);
118
- color: var(--gray-200);
119
- font-size: var(--font-size-xs);
120
- }
121
-
122
- .many-tile-dragging,
123
- :global(.byline-field-relation-many-tile-dragging) {
124
- opacity: 0.85;
125
- box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.2));
126
- }
127
-
128
- .many-grip,
129
- :global(.byline-field-relation-many-grip) {
130
- display: inline-flex;
131
- align-items: center;
132
- flex-shrink: 0;
133
- padding: 0;
134
- border: none;
135
- background: none;
136
- color: var(--gray-400);
137
- cursor: grab;
138
- touch-action: none;
139
- }
140
-
141
- .many-grip:active,
142
- :global(.byline-field-relation-many-grip:active) {
143
- cursor: grabbing;
144
- }
145
-
146
- .many-body,
147
- :global(.byline-field-relation-many-body) {
148
- flex: 1 1 auto;
149
- min-width: 0;
150
- }
151
-
152
- .many-remove,
153
- :global(.byline-field-relation-many-remove) {
154
- flex-shrink: 0;
155
- }
156
-
157
- .many-add,
158
- :global(.byline-field-relation-many-add) {
159
- display: flex;
160
- margin-top: 0.25rem;
161
- }
162
-
163
- /* ---------------------------------------------------------------------------
109
+ .many,
110
+ :global(.byline-field-relation-many) {
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: var(--spacing-4);
114
+ margin-top: 0.25rem;
115
+ }
116
+
117
+ .many-empty,
118
+ :global(.byline-field-relation-many-empty) {
119
+ margin: 0.25rem 0;
120
+ color: var(--gray-400);
121
+ font-size: var(--font-size-xs);
122
+ }
123
+
124
+ .many-tile,
125
+ :global(.byline-field-relation-many-tile) {
126
+ display: flex;
127
+ align-items: center;
128
+ gap: var(--spacing-8);
129
+ padding: var(--spacing-4) var(--spacing-8);
130
+ border: var(--border-width-thin) var(--border-style-solid) var(--primary-500);
131
+ border-radius: var(--border-radius-md);
132
+ background-color: var(--surface-100, transparent);
133
+ color: var(--gray-200);
134
+ font-size: var(--font-size-xs);
135
+ }
136
+
137
+ .many-tile-dragging,
138
+ :global(.byline-field-relation-many-tile-dragging) {
139
+ opacity: 0.85;
140
+ box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.2));
141
+ }
142
+
143
+ .many-grip,
144
+ :global(.byline-field-relation-many-grip) {
145
+ display: inline-flex;
146
+ align-items: center;
147
+ flex-shrink: 0;
148
+ padding: 0;
149
+ border: none;
150
+ background: none;
151
+ color: var(--gray-400);
152
+ cursor: grab;
153
+ touch-action: none;
154
+ }
155
+
156
+ .many-grip:active,
157
+ :global(.byline-field-relation-many-grip:active) {
158
+ cursor: grabbing;
159
+ }
160
+
161
+ .many-body,
162
+ :global(.byline-field-relation-many-body) {
163
+ flex: 1 1 auto;
164
+ min-width: 0;
165
+ }
166
+
167
+ .many-remove,
168
+ :global(.byline-field-relation-many-remove) {
169
+ flex-shrink: 0;
170
+ }
171
+
172
+ .many-add,
173
+ :global(.byline-field-relation-many-add) {
174
+ display: flex;
175
+ margin-top: 0.25rem;
176
+ }
177
+
178
+ /* ---------------------------------------------------------------------------
164
179
  * Frame — rounded border around the field's interactive body (tiles and/or
165
180
  * buttons), rendered BELOW the label / help text, mirroring the framing
166
181
  * convention of composite inputs like the partial-date widget. Bordered with
@@ -171,24 +186,25 @@
171
186
  * .byline-field-relation-frame — the framing box
172
187
  * --------------------------------------------------------------------------- */
173
188
 
174
- .frame,
175
- :global(.byline-field-relation-frame) {
176
- margin-top: 0.25rem;
177
- border: var(--border-width-thin) var(--border-style-solid) var(--field-border);
178
- border-radius: var(--border-radius-md, 6px);
179
- padding: 0.5rem;
180
- }
189
+ .frame,
190
+ :global(.byline-field-relation-frame) {
191
+ margin-top: 0.25rem;
192
+ border: var(--border-width-thin) var(--border-style-solid) var(--field-border);
193
+ border-radius: var(--border-radius-md, 6px);
194
+ padding: 0.5rem;
195
+ }
181
196
 
182
- /* The frame now supplies the label → content separation, so zero the legacy
197
+ /* The frame now supplies the label → content separation, so zero the legacy
183
198
  top margins on children rendered inside it. */
184
- .frame > .tile,
185
- .frame > .many,
186
- :global(.byline-field-relation-frame > .byline-field-relation-tile),
187
- :global(.byline-field-relation-frame > .byline-field-relation-many) {
188
- margin-top: 0;
189
- }
190
-
191
- .frame > .many-empty,
192
- :global(.byline-field-relation-frame > .byline-field-relation-many-empty) {
193
- margin-top: 0;
199
+ .frame > .tile,
200
+ .frame > .many,
201
+ :global(.byline-field-relation-frame > .byline-field-relation-tile),
202
+ :global(.byline-field-relation-frame > .byline-field-relation-many) {
203
+ margin-top: 0;
204
+ }
205
+
206
+ .frame > .many-empty,
207
+ :global(.byline-field-relation-frame > .byline-field-relation-many-empty) {
208
+ margin-top: 0;
209
+ }
194
210
  }