@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.
- 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
|
* DocumentActions — overflow menu (Unpublish / Delete) on the form chrome.
|
|
3
17
|
*
|
|
@@ -13,148 +27,150 @@
|
|
|
13
27
|
* .byline-form-actions-sr-only — visually-hidden autofocus shim
|
|
14
28
|
*/
|
|
15
29
|
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
@layer byline-components.cms {
|
|
31
|
+
.icon,
|
|
32
|
+
:global(.byline-form-actions-icon) {
|
|
33
|
+
transform: rotate(90deg);
|
|
34
|
+
color: var(--primary-500);
|
|
35
|
+
}
|
|
21
36
|
|
|
22
|
-
.menu,
|
|
23
|
-
:global(.byline-form-actions-menu) {
|
|
24
|
-
|
|
25
|
-
}
|
|
37
|
+
.menu,
|
|
38
|
+
:global(.byline-form-actions-menu) {
|
|
39
|
+
min-width: 140px;
|
|
40
|
+
}
|
|
26
41
|
|
|
27
|
-
.item,
|
|
28
|
-
:global(.byline-form-actions-item) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
42
|
+
.item,
|
|
43
|
+
:global(.byline-form-actions-item) {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
margin-left: var(--spacing-8);
|
|
47
|
+
}
|
|
33
48
|
|
|
34
|
-
.item-icon,
|
|
35
|
-
:global(.byline-form-actions-item-icon) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
49
|
+
.item-icon,
|
|
50
|
+
:global(.byline-form-actions-item-icon) {
|
|
51
|
+
display: inline-block;
|
|
52
|
+
width: 28px;
|
|
53
|
+
}
|
|
39
54
|
|
|
40
|
-
.item-text,
|
|
41
|
-
:global(.byline-form-actions-item-text) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
55
|
+
.item-text,
|
|
56
|
+
:global(.byline-form-actions-item-text) {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: 100%;
|
|
59
|
+
flex: 1;
|
|
60
|
+
font-size: var(--font-size-sm);
|
|
61
|
+
text-align: left;
|
|
62
|
+
}
|
|
48
63
|
|
|
49
|
-
.delete,
|
|
50
|
-
:global(.byline-form-actions-delete) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
64
|
+
.delete,
|
|
65
|
+
:global(.byline-form-actions-delete) {
|
|
66
|
+
flex: 1;
|
|
67
|
+
width: 100%;
|
|
68
|
+
border: none;
|
|
69
|
+
background: none;
|
|
70
|
+
padding: 0;
|
|
71
|
+
color: var(--red-600);
|
|
72
|
+
line-height: 1;
|
|
73
|
+
text-align: left;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
61
76
|
|
|
62
|
-
.modal-head,
|
|
63
|
-
:global(.byline-form-actions-modal-head) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
77
|
+
.modal-head,
|
|
78
|
+
:global(.byline-form-actions-modal-head) {
|
|
79
|
+
padding-top: 1rem;
|
|
80
|
+
margin-bottom: var(--spacing-8);
|
|
81
|
+
}
|
|
67
82
|
|
|
68
|
-
.modal-title,
|
|
69
|
-
:global(.byline-form-actions-modal-title) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
83
|
+
.modal-title,
|
|
84
|
+
:global(.byline-form-actions-modal-title) {
|
|
85
|
+
margin: 0 0 var(--spacing-8) 0;
|
|
86
|
+
font-size: var(--font-size-2xl);
|
|
87
|
+
}
|
|
73
88
|
|
|
74
|
-
.sr-only,
|
|
75
|
-
:global(.byline-form-actions-sr-only) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
89
|
+
.sr-only,
|
|
90
|
+
:global(.byline-form-actions-sr-only) {
|
|
91
|
+
position: absolute;
|
|
92
|
+
width: 1px;
|
|
93
|
+
height: 1px;
|
|
94
|
+
padding: 0;
|
|
95
|
+
margin: -1px;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
clip: rect(0, 0, 0, 0);
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
border: 0;
|
|
100
|
+
}
|
|
86
101
|
|
|
87
|
-
.list,
|
|
88
|
-
:global(.byline-form-actions-list) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
102
|
+
.list,
|
|
103
|
+
:global(.byline-form-actions-list) {
|
|
104
|
+
margin: var(--spacing-8) 0;
|
|
105
|
+
padding-left: 1.25rem;
|
|
106
|
+
font-size: var(--font-size-sm);
|
|
107
|
+
}
|
|
93
108
|
|
|
94
|
-
.preview,
|
|
95
|
-
:global(.byline-form-actions-preview) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
109
|
+
.preview,
|
|
110
|
+
:global(.byline-form-actions-preview) {
|
|
111
|
+
margin-top: var(--spacing-16);
|
|
112
|
+
padding: var(--spacing-8) var(--spacing-12);
|
|
113
|
+
background: var(--surface-2, rgba(0, 0, 0, 0.03));
|
|
114
|
+
border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
|
|
115
|
+
border-radius: var(--radius-md, 4px);
|
|
116
|
+
font-size: var(--font-size-sm);
|
|
117
|
+
}
|
|
103
118
|
|
|
104
|
-
.preview-label,
|
|
105
|
-
:global(.byline-form-actions-preview-label) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
119
|
+
.preview-label,
|
|
120
|
+
:global(.byline-form-actions-preview-label) {
|
|
121
|
+
font-weight: 500;
|
|
122
|
+
margin-bottom: var(--spacing-4);
|
|
123
|
+
opacity: 0.75;
|
|
124
|
+
}
|
|
110
125
|
|
|
111
|
-
.preview-row,
|
|
112
|
-
:global(.byline-form-actions-preview-row) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
126
|
+
.preview-row,
|
|
127
|
+
:global(.byline-form-actions-preview-row) {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: var(--spacing-8);
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
}
|
|
118
133
|
|
|
119
|
-
.preview-before,
|
|
120
|
-
:global(.byline-form-actions-preview-before) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
134
|
+
.preview-before,
|
|
135
|
+
:global(.byline-form-actions-preview-before) {
|
|
136
|
+
font-family: var(--font-mono, monospace);
|
|
137
|
+
opacity: 0.7;
|
|
138
|
+
}
|
|
124
139
|
|
|
125
|
-
.preview-arrow,
|
|
126
|
-
:global(.byline-form-actions-preview-arrow) {
|
|
127
|
-
|
|
128
|
-
}
|
|
140
|
+
.preview-arrow,
|
|
141
|
+
:global(.byline-form-actions-preview-arrow) {
|
|
142
|
+
opacity: 0.5;
|
|
143
|
+
}
|
|
129
144
|
|
|
130
|
-
.preview-after,
|
|
131
|
-
:global(.byline-form-actions-preview-after) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
145
|
+
.preview-after,
|
|
146
|
+
:global(.byline-form-actions-preview-after) {
|
|
147
|
+
font-family: var(--font-mono, monospace);
|
|
148
|
+
font-weight: 500;
|
|
149
|
+
}
|
|
135
150
|
|
|
136
|
-
.copy-row,
|
|
137
|
-
:global(.byline-form-actions-copy-row) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
151
|
+
.copy-row,
|
|
152
|
+
:global(.byline-form-actions-copy-row) {
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
flex-wrap: wrap;
|
|
156
|
+
}
|
|
142
157
|
|
|
143
|
-
.copy-label,
|
|
144
|
-
:global(.byline-form-actions-copy-label) {
|
|
145
|
-
|
|
146
|
-
}
|
|
158
|
+
.copy-label,
|
|
159
|
+
:global(.byline-form-actions-copy-label) {
|
|
160
|
+
/* Layout-only handle; spacing is set inline alongside the field. */
|
|
161
|
+
}
|
|
147
162
|
|
|
148
|
-
.copy-source,
|
|
149
|
-
:global(.byline-form-actions-copy-source) {
|
|
150
|
-
|
|
151
|
-
}
|
|
163
|
+
.copy-source,
|
|
164
|
+
:global(.byline-form-actions-copy-source) {
|
|
165
|
+
font-family: var(--font-mono, monospace);
|
|
166
|
+
}
|
|
152
167
|
|
|
153
|
-
/* ─── Dark theme variants ───────────────────────────────────── */
|
|
168
|
+
/* ─── Dark theme variants ───────────────────────────────────── */
|
|
154
169
|
|
|
155
|
-
:is([data-theme="dark"], :global(.dark)) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
170
|
+
:is([data-theme="dark"], :global(.dark)) {
|
|
171
|
+
.delete,
|
|
172
|
+
:global(.byline-form-actions-delete) {
|
|
173
|
+
color: var(--red-400);
|
|
174
|
+
}
|
|
159
175
|
}
|
|
160
176
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { readFileSync } from 'node:fs'
|
|
10
10
|
import { join } from 'node:path'
|
|
11
11
|
|
|
12
|
+
import postcss from 'postcss'
|
|
12
13
|
import { describe, expect, it } from 'vitest'
|
|
13
14
|
|
|
14
15
|
// jsdom applies no stylesheet, so the one-column guarantee of the stacked
|
|
@@ -24,9 +25,16 @@ describe('stacked form layout styles', () => {
|
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
it('does not put the stacked class in the two-column grid rule', () => {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const gridSelectors: string[] = []
|
|
29
|
+
postcss.parse(css).walkAtRules('media', (media) => {
|
|
30
|
+
if (media.params !== '(min-width: 60rem)') return
|
|
31
|
+
media.walkRules((rule) => {
|
|
32
|
+
rule.walkDecls('grid-template-columns', () => {
|
|
33
|
+
gridSelectors.push(rule.selector)
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
expect(gridSelectors.length).toBeGreaterThan(0)
|
|
38
|
+
for (const selector of gridSelectors) expect(selector).not.toContain('layout-stacked')
|
|
31
39
|
})
|
|
32
40
|
})
|