@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.
- package/dist/fields/array/array-field_module.css +57 -53
- package/dist/fields/blocks/blocks-field_module.css +134 -130
- package/dist/fields/checkbox/checkbox-field_module.css +6 -2
- package/dist/fields/code/code-field_module.css +57 -53
- package/dist/fields/datetime/datetime-field_module.css +6 -2
- package/dist/fields/draggable-context-menu_module.css +77 -73
- package/dist/fields/field-renderer_module.css +12 -8
- package/dist/fields/file/file-field_module.css +133 -129
- package/dist/fields/file/file-upload-field_module.css +67 -63
- package/dist/fields/group/group-field_module.css +25 -21
- package/dist/fields/image/image-field_module.css +123 -119
- package/dist/fields/image/image-upload-field_module.css +81 -77
- package/dist/fields/locale-badge_module.css +28 -24
- package/dist/fields/relation/relation-display_module.css +20 -16
- package/dist/fields/relation/relation-field_module.css +149 -145
- package/dist/fields/relation/relation-picker_module.css +187 -183
- package/dist/fields/relation/relation-summary_module.css +34 -30
- package/dist/fields/select/select-field_module.css +9 -5
- package/dist/fields/sortable-item_module.css +126 -122
- package/dist/fields/text/text-field_module.css +8 -4
- package/dist/fields/text-area/text-area-field_module.css +8 -4
- package/dist/forms/available-locales-widget_module.css +19 -15
- package/dist/forms/document-actions_module.css +120 -116
- package/dist/forms/form-renderer_module.css +247 -243
- package/dist/forms/path-widget_module.css +29 -25
- package/dist/forms/scheduled-publication-control_module.css +76 -72
- package/dist/forms/tree-placement-widget_module.css +61 -57
- package/dist/modules/admin-account/components/change-password_module.css +26 -22
- package/dist/modules/admin-account/components/container_module.css +93 -89
- package/dist/modules/admin-account/components/preferences_module.css +37 -33
- package/dist/modules/admin-account/components/theme-switch_module.css +16 -12
- package/dist/modules/admin-account/components/update_module.css +26 -22
- package/dist/modules/admin-permissions/components/inspector_module.css +197 -193
- package/dist/modules/admin-roles/components/create_module.css +26 -22
- package/dist/modules/admin-roles/components/permissions_module.css +159 -155
- package/dist/modules/admin-roles/components/update_module.css +26 -22
- package/dist/modules/admin-users/components/create_module.css +39 -35
- package/dist/modules/admin-users/components/roles_module.css +65 -61
- package/dist/modules/admin-users/components/set-password_module.css +29 -25
- package/dist/modules/admin-users/components/update_module.css +32 -28
- package/dist/modules/analytics/components/dashboard_module.css +268 -264
- package/dist/modules/analytics/components/timeseries_module.css +192 -188
- package/dist/modules/auth/components/passkey-manager_module.css +87 -83
- package/dist/modules/auth/components/sign-in-form_module.css +68 -64
- package/dist/presentation/group_module.css +19 -15
- package/dist/presentation/row_module.css +17 -13
- package/dist/presentation/tabs_module.css +231 -227
- package/dist/widgets/diff-viewer/diff-modal_module.css +58 -54
- package/dist/widgets/source-locale-badge/source-locale-badge_module.css +12 -8
- package/dist/widgets/status-badge/status-badge_module.css +20 -16
- package/package.json +9 -8
- package/src/fields/array/array-field.module.css +71 -55
- package/src/fields/blocks/blocks-field.module.css +173 -156
- package/src/fields/checkbox/checkbox-field.module.css +17 -3
- package/src/fields/code/code-editor.tsx +2 -0
- package/src/fields/code/code-field.module.css +75 -59
- package/src/fields/datetime/datetime-field.module.css +19 -3
- package/src/fields/draggable-context-menu.module.css +108 -92
- package/src/fields/field-renderer.module.css +26 -10
- package/src/fields/file/file-field.module.css +147 -131
- package/src/fields/file/file-upload-field.module.css +91 -75
- package/src/fields/group/group-field.module.css +42 -26
- package/src/fields/image/image-field.module.css +152 -136
- package/src/fields/image/image-upload-field.module.css +107 -91
- package/src/fields/locale-badge.module.css +43 -27
- package/src/fields/relation/relation-display.module.css +37 -21
- package/src/fields/relation/relation-field.module.css +168 -152
- package/src/fields/relation/relation-picker.module.css +207 -191
- package/src/fields/relation/relation-summary.module.css +52 -36
- package/src/fields/select/select-field.module.css +23 -7
- package/src/fields/sortable-item.module.css +143 -127
- package/src/fields/text/text-field.module.css +21 -5
- package/src/fields/text-area/text-area-field.module.css +21 -5
- package/src/forms/available-locales-widget.module.css +39 -23
- package/src/forms/document-actions.module.css +139 -123
- package/src/forms/form-layout-styles.test.node.ts +12 -4
- package/src/forms/form-renderer.module.css +312 -296
- package/src/forms/path-widget.module.css +44 -28
- package/src/forms/scheduled-publication-control.module.css +104 -91
- package/src/forms/tree-placement-widget.module.css +80 -64
- package/src/modules/admin-account/components/change-password.module.css +42 -26
- package/src/modules/admin-account/components/container.module.css +129 -113
- package/src/modules/admin-account/components/preferences.module.css +56 -40
- package/src/modules/admin-account/components/theme-switch.module.css +32 -16
- package/src/modules/admin-account/components/update.module.css +42 -26
- package/src/modules/admin-permissions/components/inspector.module.css +255 -239
- package/src/modules/admin-roles/components/create.module.css +42 -26
- package/src/modules/admin-roles/components/permissions.module.css +204 -201
- package/src/modules/admin-roles/components/update.module.css +42 -26
- package/src/modules/admin-users/components/create.module.css +58 -42
- package/src/modules/admin-users/components/roles.module.css +96 -86
- package/src/modules/admin-users/components/set-password.module.css +46 -30
- package/src/modules/admin-users/components/update.module.css +49 -33
- package/src/modules/analytics/components/dashboard.module.css +322 -306
- package/src/modules/analytics/components/timeseries.module.css +237 -221
- package/src/modules/auth/components/passkey-manager.module.css +98 -84
- package/src/modules/auth/components/sign-in-form.module.css +85 -69
- package/src/presentation/group.module.css +36 -20
- package/src/presentation/row.module.css +32 -16
- package/src/presentation/tabs.module.css +243 -227
- package/src/widgets/diff-viewer/diff-modal.module.css +71 -55
- package/src/widgets/source-locale-badge/source-locale-badge.module.css +25 -9
- 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
|
-
.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:global(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.many-empty,
|
|
103
|
-
:global(.byline-field-relation-many-empty) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.many-tile,
|
|
110
|
-
:global(.byline-field-relation-many-tile) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.many-tile-dragging,
|
|
123
|
-
:global(.byline-field-relation-many-tile-dragging) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.many-grip,
|
|
129
|
-
:global(.byline-field-relation-many-grip) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.many-grip:active,
|
|
142
|
-
:global(.byline-field-relation-many-grip:active) {
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.many-body,
|
|
147
|
-
:global(.byline-field-relation-many-body) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.many-remove,
|
|
153
|
-
:global(.byline-field-relation-many-remove) {
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.many-add,
|
|
158
|
-
:global(.byline-field-relation-many-add) {
|
|
159
|
-
|
|
160
|
-
|
|
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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.frame > .many-empty,
|
|
192
|
-
:global(.byline-field-relation-frame > .byline-field-relation-many-empty) {
|
|
193
|
-
|
|
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
|
}
|