@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
  * UserRoles — drawer for assigning roles to a user.
3
17
  *
@@ -16,104 +30,100 @@
16
30
  * .byline-user-roles-action — buttons in the actions row
17
31
  */
18
32
 
19
- .wrap,
20
- :global(.byline-user-roles-wrap) {
21
- display: flex;
22
- flex-direction: column;
23
- gap: var(--spacing-12);
24
- padding: var(--spacing-4);
25
- margin-top: var(--spacing-4);
26
- }
33
+ @layer byline-components.cms {
34
+ .wrap,
35
+ :global(.byline-user-roles-wrap) {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: var(--spacing-12);
39
+ padding: var(--spacing-4);
40
+ margin-top: var(--spacing-4);
41
+ }
27
42
 
28
- .empty,
29
- :global(.byline-user-roles-empty) {
30
- margin: 0;
31
- font-style: italic;
32
- }
43
+ .empty,
44
+ :global(.byline-user-roles-empty) {
45
+ margin: 0;
46
+ font-style: italic;
47
+ }
33
48
 
34
- .empty-hint,
35
- :global(.byline-user-roles-empty-hint) {
36
- /* Inherits muted colour from the parent .muted utility. */
37
- }
49
+ .empty-hint,
50
+ :global(.byline-user-roles-empty-hint) {
51
+ /* Inherits muted colour from the parent .muted utility. */
52
+ }
38
53
 
39
- .list,
40
- :global(.byline-user-roles-list) {
41
- display: flex;
42
- flex-direction: column;
43
- gap: var(--spacing-4);
44
- }
54
+ .list,
55
+ :global(.byline-user-roles-list) {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: var(--spacing-4);
59
+ }
45
60
 
46
- .row,
47
- :global(.byline-user-roles-row) {
48
- display: flex;
49
- align-items: flex-start;
50
- gap: var(--spacing-8);
51
- padding: var(--spacing-4) 0;
52
- }
61
+ .row,
62
+ :global(.byline-user-roles-row) {
63
+ display: flex;
64
+ align-items: flex-start;
65
+ gap: var(--spacing-8);
66
+ padding: var(--spacing-4) 0;
67
+ }
53
68
 
54
- .label,
55
- :global(.byline-user-roles-label) {
56
- min-width: 0;
57
- flex: 1 1 0;
58
- cursor: pointer;
59
- }
69
+ .label,
70
+ :global(.byline-user-roles-label) {
71
+ min-width: 0;
72
+ flex: 1 1 0;
73
+ cursor: pointer;
74
+ }
60
75
 
61
- .label-head,
62
- :global(.byline-user-roles-label-head) {
63
- display: flex;
64
- align-items: center;
65
- gap: var(--spacing-8);
66
- }
76
+ .label-head,
77
+ :global(.byline-user-roles-label-head) {
78
+ display: flex;
79
+ align-items: center;
80
+ gap: var(--spacing-8);
81
+ }
67
82
 
68
- .name,
69
- :global(.byline-user-roles-name) {
70
- font-size: var(--font-size-sm);
71
- font-weight: var(--font-weight-medium);
72
- }
83
+ .name,
84
+ :global(.byline-user-roles-name) {
85
+ font-size: var(--font-size-sm);
86
+ font-weight: var(--font-weight-medium);
87
+ }
73
88
 
74
- .machine,
75
- :global(.byline-user-roles-machine) {
76
- background-color: var(--gray-100);
77
- padding: 0.125rem 0.375rem;
78
- font-size: var(--font-size-xs);
79
- border-radius: var(--border-radius-sm);
80
- }
89
+ .machine,
90
+ :global(.byline-user-roles-machine) {
91
+ background-color: var(--gray-100);
92
+ padding: 0.125rem 0.375rem;
93
+ font-size: var(--font-size-xs);
94
+ border-radius: var(--border-radius-sm);
95
+ }
81
96
 
82
- .description,
83
- :global(.byline-user-roles-description) {
84
- margin-bottom: 0;
85
- font-size: var(--font-size-xs);
86
- }
97
+ .description,
98
+ :global(.byline-user-roles-description) {
99
+ margin-bottom: 0;
100
+ font-size: var(--font-size-xs);
101
+ }
87
102
 
88
- .actions,
89
- :global(.byline-user-roles-actions) {
90
- display: flex;
91
- align-items: center;
92
- justify-content: flex-end;
93
- gap: var(--spacing-8);
94
- margin-top: var(--spacing-16);
95
- }
103
+ .actions,
104
+ :global(.byline-user-roles-actions) {
105
+ display: flex;
106
+ align-items: center;
107
+ justify-content: flex-end;
108
+ gap: var(--spacing-8);
109
+ margin-top: var(--spacing-16);
110
+ }
96
111
 
97
- .action,
98
- :global(.byline-user-roles-action) {
99
- min-width: 4rem;
100
- }
112
+ .action,
113
+ :global(.byline-user-roles-action) {
114
+ min-width: 4rem;
115
+ }
101
116
 
102
- /*
103
- * Checkbox shrink-fit — see admin-roles/permissions.module.css for the
104
- * rationale; the same override is needed here for the per-user role
105
- * checkbox list. `!important` is required to win over the uikit
106
- * Checkbox's `width: 100%` default at equal specificity.
107
- */
108
- .checkbox-auto,
109
- :global(.byline-user-roles-checkbox-auto) {
110
- /* biome-ignore lint/complexity/noImportantStyles: see admin-roles/permissions.module.css */
111
- width: auto !important;
112
- }
117
+ /* The CMS sublayer refines the primitive checkbox width; direct utilities still win. */
118
+ .checkbox-auto,
119
+ :global(.byline-user-roles-checkbox-auto) {
120
+ width: auto;
121
+ }
113
122
 
114
- :is([data-theme="dark"], :global(.dark)) {
115
- .machine,
116
- :global(.byline-user-roles-machine) {
117
- background-color: var(--canvas-800);
123
+ :is([data-theme="dark"], :global(.dark)) {
124
+ .machine,
125
+ :global(.byline-user-roles-machine) {
126
+ background-color: var(--canvas-800);
127
+ }
118
128
  }
119
129
  }
@@ -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
  * SetAdminUserPassword — privileged "set password" drawer form.
3
17
  *
@@ -9,38 +23,40 @@
9
23
  * .byline-user-set-password-action — buttons in the actions row
10
24
  */
11
25
 
12
- .wrap,
13
- :global(.byline-user-set-password-wrap) {
14
- display: flex;
15
- flex-direction: column;
16
- gap: var(--spacing-8);
17
- padding: var(--spacing-4);
18
- margin-top: var(--spacing-4);
19
- }
26
+ @layer byline-components.cms {
27
+ .wrap,
28
+ :global(.byline-user-set-password-wrap) {
29
+ display: flex;
30
+ flex-direction: column;
31
+ gap: var(--spacing-8);
32
+ padding: var(--spacing-4);
33
+ margin-top: var(--spacing-4);
34
+ }
20
35
 
21
- .form,
22
- :global(.byline-user-set-password-form) {
23
- display: flex;
24
- flex-direction: column;
25
- gap: var(--spacing-16);
26
- padding-top: var(--spacing-8);
27
- }
36
+ .form,
37
+ :global(.byline-user-set-password-form) {
38
+ display: flex;
39
+ flex-direction: column;
40
+ gap: var(--spacing-16);
41
+ padding-top: var(--spacing-8);
42
+ }
28
43
 
29
- .target,
30
- :global(.byline-user-set-password-target) {
31
- font-weight: var(--font-weight-semibold);
32
- }
44
+ .target,
45
+ :global(.byline-user-set-password-target) {
46
+ font-weight: var(--font-weight-semibold);
47
+ }
33
48
 
34
- .actions,
35
- :global(.byline-user-set-password-actions) {
36
- display: flex;
37
- align-items: center;
38
- justify-content: flex-end;
39
- gap: var(--spacing-8);
40
- margin-top: var(--spacing-16);
41
- }
49
+ .actions,
50
+ :global(.byline-user-set-password-actions) {
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: flex-end;
54
+ gap: var(--spacing-8);
55
+ margin-top: var(--spacing-16);
56
+ }
42
57
 
43
- .action,
44
- :global(.byline-user-set-password-action) {
45
- min-width: 4rem;
58
+ .action,
59
+ :global(.byline-user-set-password-action) {
60
+ min-width: 4rem;
61
+ }
46
62
  }
@@ -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
  * UpdateAdminUser — drawer form for editing an admin user.
3
17
  *
@@ -9,41 +23,43 @@
9
23
  * .byline-user-update-action — buttons in the actions row
10
24
  */
11
25
 
12
- .wrap,
13
- :global(.byline-user-update-wrap) {
14
- display: flex;
15
- flex-direction: column;
16
- gap: var(--spacing-8);
17
- padding: var(--spacing-4);
18
- margin-top: var(--spacing-4);
19
- }
26
+ @layer byline-components.cms {
27
+ .wrap,
28
+ :global(.byline-user-update-wrap) {
29
+ display: flex;
30
+ flex-direction: column;
31
+ gap: var(--spacing-8);
32
+ padding: var(--spacing-4);
33
+ margin-top: var(--spacing-4);
34
+ }
20
35
 
21
- .form,
22
- :global(.byline-user-update-form) {
23
- display: flex;
24
- flex-direction: column;
25
- gap: var(--spacing-16);
26
- padding-top: var(--spacing-8);
27
- }
36
+ .form,
37
+ :global(.byline-user-update-form) {
38
+ display: flex;
39
+ flex-direction: column;
40
+ gap: var(--spacing-16);
41
+ padding-top: var(--spacing-8);
42
+ }
28
43
 
29
- .flags,
30
- :global(.byline-user-update-flags) {
31
- display: flex;
32
- flex-direction: column;
33
- gap: var(--spacing-8);
34
- padding: var(--spacing-4);
35
- }
44
+ .flags,
45
+ :global(.byline-user-update-flags) {
46
+ display: flex;
47
+ flex-direction: column;
48
+ gap: var(--spacing-8);
49
+ padding: var(--spacing-4);
50
+ }
36
51
 
37
- .actions,
38
- :global(.byline-user-update-actions) {
39
- display: flex;
40
- align-items: center;
41
- justify-content: flex-end;
42
- gap: var(--spacing-8);
43
- margin-top: var(--spacing-16);
44
- }
52
+ .actions,
53
+ :global(.byline-user-update-actions) {
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: flex-end;
57
+ gap: var(--spacing-8);
58
+ margin-top: var(--spacing-16);
59
+ }
45
60
 
46
- .action,
47
- :global(.byline-user-update-action) {
48
- min-width: 4rem;
61
+ .action,
62
+ :global(.byline-user-update-action) {
63
+ min-width: 4rem;
64
+ }
49
65
  }