@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
  * AccountSelfContainer — self-service account dashboard with edit drawers.
3
17
  *
@@ -20,148 +34,150 @@
20
34
  * .byline-account-drawer-skip — sr-only "no action" focus shim
21
35
  */
22
36
 
23
- .grid,
24
- :global(.byline-account-grid) {
25
- display: flex;
26
- flex-direction: column;
27
- gap: var(--spacing-16);
28
- margin-bottom: var(--spacing-48);
29
- }
30
-
31
- @media (min-width: 40rem) {
37
+ @layer byline-components.cms {
32
38
  .grid,
33
39
  :global(.byline-account-grid) {
34
- display: grid;
35
- grid-template-columns: 1fr 1fr;
40
+ display: flex;
41
+ flex-direction: column;
42
+ gap: var(--spacing-16);
43
+ margin-bottom: var(--spacing-48);
36
44
  }
37
- }
38
45
 
39
- .column,
40
- :global(.byline-account-column) {
41
- display: flex;
42
- flex-direction: column;
43
- gap: var(--spacing-16);
44
- margin-bottom: var(--spacing-16);
45
- }
46
+ @media (min-width: 40rem) {
47
+ .grid,
48
+ :global(.byline-account-grid) {
49
+ display: grid;
50
+ grid-template-columns: 1fr 1fr;
51
+ }
52
+ }
46
53
 
47
- .section,
48
- :global(.byline-account-section) {
49
- padding: var(--spacing-16);
50
- border: var(--border-width-thin) var(--border-style-solid) var(--gray-100);
51
- background-color: var(--canvas-25);
52
- border-radius: var(--border-radius-sm);
53
- }
54
+ .column,
55
+ :global(.byline-account-column) {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: var(--spacing-16);
59
+ margin-bottom: var(--spacing-16);
60
+ }
54
61
 
55
- .section-head,
56
- :global(.byline-account-section-head) {
57
- display: flex;
58
- align-items: center;
59
- justify-content: space-between;
60
- margin-bottom: var(--spacing-8);
61
- }
62
+ .section,
63
+ :global(.byline-account-section) {
64
+ padding: var(--spacing-16);
65
+ border: var(--border-width-thin) var(--border-style-solid) var(--gray-100);
66
+ background-color: var(--canvas-25);
67
+ border-radius: var(--border-radius-sm);
68
+ }
62
69
 
63
- .line,
64
- :global(.byline-account-line) {
65
- margin-bottom: 0;
66
- }
70
+ .section-head,
71
+ :global(.byline-account-section-head) {
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: space-between;
75
+ margin-bottom: var(--spacing-8);
76
+ }
67
77
 
68
- .cta-line,
69
- :global(.byline-account-cta-line) {
70
- margin-bottom: var(--spacing-12);
71
- }
78
+ .line,
79
+ :global(.byline-account-line) {
80
+ margin-bottom: 0;
81
+ }
72
82
 
73
- .meta,
74
- :global(.byline-account-meta) {
75
- margin-top: var(--spacing-16);
76
- font-size: var(--font-size-xs);
77
- }
83
+ .cta-line,
84
+ :global(.byline-account-cta-line) {
85
+ margin-bottom: var(--spacing-12);
86
+ }
78
87
 
79
- .status-on,
80
- :global(.byline-account-status-on) {
81
- color: var(--green-600);
82
- }
88
+ .meta,
89
+ :global(.byline-account-meta) {
90
+ margin-top: var(--spacing-16);
91
+ font-size: var(--font-size-xs);
92
+ }
83
93
 
84
- .status-off,
85
- :global(.byline-account-status-off) {
86
- color: var(--red-600);
87
- }
94
+ .status-on,
95
+ :global(.byline-account-status-on) {
96
+ color: var(--green-600);
97
+ }
88
98
 
89
- .status-help,
90
- :global(.byline-account-status-help) {
91
- margin-top: var(--spacing-12);
92
- margin-bottom: 0;
93
- font-size: var(--font-size-xs);
94
- }
99
+ .status-off,
100
+ :global(.byline-account-status-off) {
101
+ color: var(--red-600);
102
+ }
95
103
 
96
- .preferences-theme,
97
- :global(.byline-account-preferences-theme) {
98
- display: flex;
99
- flex-direction: column;
100
- gap: var(--spacing-8);
101
- margin-top: var(--spacing-20);
102
- }
104
+ .status-help,
105
+ :global(.byline-account-status-help) {
106
+ margin-top: var(--spacing-12);
107
+ margin-bottom: 0;
108
+ font-size: var(--font-size-xs);
109
+ }
110
+
111
+ .preferences-theme,
112
+ :global(.byline-account-preferences-theme) {
113
+ display: flex;
114
+ flex-direction: column;
115
+ gap: var(--spacing-8);
116
+ margin-top: var(--spacing-20);
117
+ }
103
118
 
104
- /*
119
+ /*
105
120
  * Italic helper for "Not set" placeholders. Replaces the Tailwind
106
121
  * `italic` utility we used pre-lift; with the component now in a
107
122
  * published package, Tailwind's source scanner doesn't see the class
108
123
  * string in the host so the rule was never generated.
109
124
  */
110
- .not-set,
111
- :global(.byline-account-not-set) {
112
- font-style: italic;
113
- }
114
-
115
- .drawer,
116
- :global(.byline-account-drawer) {
117
- /* Width handled by uikit Drawer prop; no additional class needed today. */
118
- }
125
+ .not-set,
126
+ :global(.byline-account-not-set) {
127
+ font-style: italic;
128
+ }
119
129
 
120
- @media (min-width: 48rem) {
121
130
  .drawer,
122
131
  :global(.byline-account-drawer) {
123
- width: 500px;
132
+ /* Width handled by uikit Drawer prop; no additional class needed today. */
124
133
  }
125
- }
126
134
 
127
- .drawer-body,
128
- :global(.byline-account-drawer-body) {
129
- padding: var(--spacing-8);
130
- }
131
-
132
- .drawer-scroll,
133
- :global(.byline-account-drawer-scroll) {
134
- max-height: calc(100vh - 160px);
135
- overflow-y: auto;
136
- }
135
+ @media (min-width: 48rem) {
136
+ .drawer,
137
+ :global(.byline-account-drawer) {
138
+ width: 500px;
139
+ }
140
+ }
137
141
 
138
- .drawer-skip,
139
- :global(.byline-account-drawer-skip) {
140
- position: absolute;
141
- width: 1px;
142
- height: 1px;
143
- padding: 0;
144
- margin: -1px;
145
- overflow: hidden;
146
- clip: rect(0, 0, 0, 0);
147
- white-space: nowrap;
148
- border: 0;
149
- }
142
+ .drawer-body,
143
+ :global(.byline-account-drawer-body) {
144
+ padding: var(--spacing-8);
145
+ }
150
146
 
151
- :is([data-theme="dark"], :global(.dark)) {
152
- .section,
153
- :global(.byline-account-section) {
154
- border-color: var(--gray-700);
155
- background-color: var(--canvas-800);
147
+ .drawer-scroll,
148
+ :global(.byline-account-drawer-scroll) {
149
+ max-height: calc(100vh - 160px);
150
+ overflow-y: auto;
156
151
  }
157
152
 
158
- .status-on,
159
- :global(.byline-account-status-on) {
160
- color: var(--green-400);
153
+ .drawer-skip,
154
+ :global(.byline-account-drawer-skip) {
155
+ position: absolute;
156
+ width: 1px;
157
+ height: 1px;
158
+ padding: 0;
159
+ margin: -1px;
160
+ overflow: hidden;
161
+ clip: rect(0, 0, 0, 0);
162
+ white-space: nowrap;
163
+ border: 0;
161
164
  }
162
165
 
163
- .status-off,
164
- :global(.byline-account-status-off) {
165
- color: var(--red-400);
166
+ :is([data-theme="dark"], :global(.dark)) {
167
+ .section,
168
+ :global(.byline-account-section) {
169
+ border-color: var(--gray-700);
170
+ background-color: var(--canvas-800);
171
+ }
172
+
173
+ .status-on,
174
+ :global(.byline-account-status-on) {
175
+ color: var(--green-400);
176
+ }
177
+
178
+ .status-off,
179
+ :global(.byline-account-status-off) {
180
+ color: var(--red-400);
181
+ }
166
182
  }
167
183
  }
@@ -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
  * Preferences — self-service account-preferences form (drawer body).
3
17
  *
@@ -11,50 +25,52 @@
11
25
  * .byline-account-preferences-action — buttons in the actions row
12
26
  */
13
27
 
14
- .wrap,
15
- :global(.byline-account-preferences-wrap) {
16
- display: flex;
17
- flex-direction: column;
18
- gap: var(--spacing-8);
19
- padding: var(--spacing-4);
20
- margin-top: var(--spacing-4);
21
- }
28
+ @layer byline-components.cms {
29
+ .wrap,
30
+ :global(.byline-account-preferences-wrap) {
31
+ display: flex;
32
+ flex-direction: column;
33
+ gap: var(--spacing-8);
34
+ padding: var(--spacing-4);
35
+ margin-top: var(--spacing-4);
36
+ }
22
37
 
23
- .form,
24
- :global(.byline-account-preferences-form) {
25
- display: flex;
26
- flex-direction: column;
27
- gap: var(--spacing-16);
28
- padding-top: var(--spacing-8);
29
- }
38
+ .form,
39
+ :global(.byline-account-preferences-form) {
40
+ display: flex;
41
+ flex-direction: column;
42
+ gap: var(--spacing-16);
43
+ padding-top: var(--spacing-8);
44
+ }
30
45
 
31
- .row,
32
- :global(.byline-account-preferences-row) {
33
- display: flex;
34
- flex-direction: column;
35
- gap: var(--spacing-4);
36
- }
46
+ .row,
47
+ :global(.byline-account-preferences-row) {
48
+ display: flex;
49
+ flex-direction: column;
50
+ gap: var(--spacing-4);
51
+ }
37
52
 
38
- .label,
39
- :global(.byline-account-preferences-label) {
40
- font-weight: 500;
41
- }
53
+ .label,
54
+ :global(.byline-account-preferences-label) {
55
+ font-weight: 500;
56
+ }
42
57
 
43
- .help,
44
- :global(.byline-account-preferences-help) {
45
- font-size: 0.875rem;
46
- }
58
+ .help,
59
+ :global(.byline-account-preferences-help) {
60
+ font-size: 0.875rem;
61
+ }
47
62
 
48
- .actions,
49
- :global(.byline-account-preferences-actions) {
50
- display: flex;
51
- align-items: center;
52
- justify-content: flex-end;
53
- gap: var(--spacing-8);
54
- margin-top: var(--spacing-16);
55
- }
63
+ .actions,
64
+ :global(.byline-account-preferences-actions) {
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: flex-end;
68
+ gap: var(--spacing-8);
69
+ margin-top: var(--spacing-16);
70
+ }
56
71
 
57
- .action,
58
- :global(.byline-account-preferences-action) {
59
- min-width: 4rem;
72
+ .action,
73
+ :global(.byline-account-preferences-action) {
74
+ min-width: 4rem;
75
+ }
60
76
  }
@@ -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
  * This Source Code is subject to the terms of the Mozilla Public
3
17
  * License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -6,7 +20,8 @@
6
20
  * Copyright (c) Infonomic Company Limited
7
21
  */
8
22
 
9
- /*
23
+ @layer byline-components.cms {
24
+ /*
10
25
  * ThemeSwitch — the segmented control fills the card width; the help
11
26
  * line below it matches the muted helper styling used elsewhere on the
12
27
  * account cards.
@@ -17,21 +32,22 @@
17
32
  * .byline-account-theme-help — muted helper line
18
33
  */
19
34
 
20
- .wrap,
21
- :global(.byline-account-theme-switch) {
22
- display: flex;
23
- flex-direction: column;
24
- gap: var(--spacing-8);
25
- }
35
+ .wrap,
36
+ :global(.byline-account-theme-switch) {
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: var(--spacing-8);
40
+ }
26
41
 
27
- .group,
28
- :global(.byline-account-theme-group) {
29
- width: 100%;
30
- }
42
+ .group,
43
+ :global(.byline-account-theme-group) {
44
+ width: 100%;
45
+ }
31
46
 
32
- .help,
33
- :global(.byline-account-theme-help) {
34
- margin-top: var(--spacing-4);
35
- margin-bottom: 0;
36
- font-size: var(--font-size-xs);
47
+ .help,
48
+ :global(.byline-account-theme-help) {
49
+ margin-top: var(--spacing-4);
50
+ margin-bottom: 0;
51
+ font-size: var(--font-size-xs);
52
+ }
37
53
  }
@@ -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
  * UpdateAccount — self-service profile form (drawer body).
3
17
  *
@@ -8,33 +22,35 @@
8
22
  * .byline-account-update-action — buttons in the actions row
9
23
  */
10
24
 
11
- .wrap,
12
- :global(.byline-account-update-wrap) {
13
- display: flex;
14
- flex-direction: column;
15
- gap: var(--spacing-8);
16
- padding: var(--spacing-4);
17
- margin-top: var(--spacing-4);
18
- }
25
+ @layer byline-components.cms {
26
+ .wrap,
27
+ :global(.byline-account-update-wrap) {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: var(--spacing-8);
31
+ padding: var(--spacing-4);
32
+ margin-top: var(--spacing-4);
33
+ }
19
34
 
20
- .form,
21
- :global(.byline-account-update-form) {
22
- display: flex;
23
- flex-direction: column;
24
- gap: var(--spacing-16);
25
- padding-top: var(--spacing-8);
26
- }
35
+ .form,
36
+ :global(.byline-account-update-form) {
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: var(--spacing-16);
40
+ padding-top: var(--spacing-8);
41
+ }
27
42
 
28
- .actions,
29
- :global(.byline-account-update-actions) {
30
- display: flex;
31
- align-items: center;
32
- justify-content: flex-end;
33
- gap: var(--spacing-8);
34
- margin-top: var(--spacing-16);
35
- }
43
+ .actions,
44
+ :global(.byline-account-update-actions) {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: flex-end;
48
+ gap: var(--spacing-8);
49
+ margin-top: var(--spacing-16);
50
+ }
36
51
 
37
- .action,
38
- :global(.byline-account-update-action) {
39
- min-width: 4rem;
52
+ .action,
53
+ :global(.byline-account-update-action) {
54
+ min-width: 4rem;
55
+ }
40
56
  }