@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
  * 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
- .icon,
17
- :global(.byline-form-actions-icon) {
18
- transform: rotate(90deg);
19
- color: var(--primary-500);
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
- min-width: 140px;
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
- display: flex;
30
- align-items: center;
31
- margin-left: var(--spacing-8);
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
- display: inline-block;
37
- width: 28px;
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
- display: inline-block;
43
- width: 100%;
44
- flex: 1;
45
- font-size: var(--font-size-sm);
46
- text-align: left;
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
- flex: 1;
52
- width: 100%;
53
- border: none;
54
- background: none;
55
- padding: 0;
56
- color: var(--red-600);
57
- line-height: 1;
58
- text-align: left;
59
- cursor: pointer;
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
- padding-top: 1rem;
65
- margin-bottom: var(--spacing-8);
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
- margin: 0 0 var(--spacing-8) 0;
71
- font-size: var(--font-size-2xl);
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
- position: absolute;
77
- width: 1px;
78
- height: 1px;
79
- padding: 0;
80
- margin: -1px;
81
- overflow: hidden;
82
- clip: rect(0, 0, 0, 0);
83
- white-space: nowrap;
84
- border: 0;
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
- margin: var(--spacing-8) 0;
90
- padding-left: 1.25rem;
91
- font-size: var(--font-size-sm);
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
- margin-top: var(--spacing-16);
97
- padding: var(--spacing-8) var(--spacing-12);
98
- background: var(--surface-2, rgba(0, 0, 0, 0.03));
99
- border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
100
- border-radius: var(--radius-md, 4px);
101
- font-size: var(--font-size-sm);
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
- font-weight: 500;
107
- margin-bottom: var(--spacing-4);
108
- opacity: 0.75;
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
- display: flex;
114
- align-items: center;
115
- gap: var(--spacing-8);
116
- flex-wrap: wrap;
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
- font-family: var(--font-mono, monospace);
122
- opacity: 0.7;
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
- opacity: 0.5;
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
- font-family: var(--font-mono, monospace);
133
- font-weight: 500;
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
- display: flex;
139
- align-items: center;
140
- flex-wrap: wrap;
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
- /* Layout-only handle; spacing is set inline alongside the field. */
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
- font-family: var(--font-mono, monospace);
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
- .delete,
157
- :global(.byline-form-actions-delete) {
158
- color: var(--red-400);
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 desktop = css.slice(css.indexOf('@media (min-width: 60rem)'))
28
- const gridRule = desktop.slice(0, desktop.indexOf('}\n}') + 3)
29
- expect(gridRule).toContain('grid-template-columns')
30
- expect(gridRule).not.toContain('layout-stacked')
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
  })