@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,37 +1,50 @@
1
- .manager {
2
- padding: 1.25rem;
3
- border: 1px solid var(--border-color, #8885);
4
- border-radius: 0.5rem;
5
- }
6
- .list {
7
- list-style: none;
8
- padding: 0;
9
- margin: 1rem 0;
10
- }
11
- .empty + .add {
12
- margin-top: 0.25rem;
13
- }
14
- .row {
15
- display: flex;
16
- align-items: center;
17
- justify-content: space-between;
18
- flex-wrap: wrap;
19
- gap: 0.75rem;
20
- padding: 0.75rem 0;
21
- border-bottom: 1px solid var(--border-color, #8885);
22
- overflow-wrap: anywhere;
23
- }
24
- .row p {
25
- font-size: 0.875rem;
26
- margin: 0.25rem 0;
27
- }
28
- .actions {
29
- display: flex;
30
- flex-wrap: wrap;
31
- gap: 0.5rem;
32
- }
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
+ @layer byline-components.primitives, byline-components.cms;
13
+ @layer byline-components.cms {
14
+ .manager {
15
+ padding: 1.25rem;
16
+ border: 1px solid var(--border-color, #8885);
17
+ border-radius: 0.5rem;
18
+ }
19
+ .list {
20
+ list-style: none;
21
+ padding: 0;
22
+ margin: 1rem 0;
23
+ }
24
+ .empty + .add {
25
+ margin-top: 0.25rem;
26
+ }
27
+ .row {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: space-between;
31
+ flex-wrap: wrap;
32
+ gap: 0.75rem;
33
+ padding: 0.75rem 0;
34
+ border-bottom: 1px solid var(--border-color, #8885);
35
+ overflow-wrap: anywhere;
36
+ }
37
+ .row p {
38
+ font-size: 0.875rem;
39
+ margin: 0.25rem 0;
40
+ }
41
+ .actions {
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ gap: 0.5rem;
45
+ }
33
46
 
34
- /*
47
+ /*
35
48
  * Add and rename open in a drawer, matching the other account and user edit
36
49
  * panels; remove opens a modal, matching other destructive confirmations.
37
50
  * Both share the action row below: below 40rem the actions stack full-width
@@ -41,60 +54,61 @@
41
54
  * 48rem (40px wider than the account drawers) so the three proof actions fit
42
55
  * one row in French.
43
56
  */
44
- .modal {
45
- width: calc(100% - 2 * var(--spacing-8));
46
- max-width: 540px;
47
- margin-bottom: var(--spacing-8);
48
- }
49
- .drawer-body {
50
- padding: var(--spacing-8);
51
- }
52
- .drawer-form {
53
- display: flex;
54
- flex-direction: column;
55
- gap: var(--spacing-16);
56
- padding-top: var(--spacing-8);
57
- }
58
- .drawer-actions {
59
- display: flex;
60
- justify-content: flex-end;
61
- gap: var(--spacing-12);
62
- margin-top: var(--spacing-8);
63
- }
64
- .drawer-skip {
65
- position: absolute;
66
- width: 1px;
67
- height: 1px;
68
- padding: 0;
69
- margin: -1px;
70
- overflow: hidden;
71
- clip: rect(0, 0, 0, 0);
72
- white-space: nowrap;
73
- border: 0;
74
- }
75
- .modal-actions {
76
- flex-direction: column-reverse;
77
- align-items: stretch;
78
- }
79
- @media (max-width: 39.99rem) {
80
- .modal-actions > * {
81
- min-height: 2.5rem;
82
- }
83
- }
84
- @media (min-width: 40rem) {
85
57
  .modal {
86
- width: 100%;
87
- margin-bottom: 0;
58
+ width: calc(100% - 2 * var(--spacing-8));
59
+ max-width: 540px;
60
+ margin-bottom: var(--spacing-8);
61
+ }
62
+ .drawer-body {
63
+ padding: var(--spacing-8);
64
+ }
65
+ .drawer-form {
66
+ display: flex;
67
+ flex-direction: column;
68
+ gap: var(--spacing-16);
69
+ padding-top: var(--spacing-8);
70
+ }
71
+ .drawer-actions {
72
+ display: flex;
73
+ justify-content: flex-end;
74
+ gap: var(--spacing-12);
75
+ margin-top: var(--spacing-8);
76
+ }
77
+ .drawer-skip {
78
+ position: absolute;
79
+ width: 1px;
80
+ height: 1px;
81
+ padding: 0;
82
+ margin: -1px;
83
+ overflow: hidden;
84
+ clip: rect(0, 0, 0, 0);
85
+ white-space: nowrap;
86
+ border: 0;
88
87
  }
89
88
  .modal-actions {
90
- flex-direction: row;
91
- flex-wrap: wrap;
92
- align-items: center;
93
- gap: var(--spacing-8);
89
+ flex-direction: column-reverse;
90
+ align-items: stretch;
94
91
  }
95
- }
96
- @media (min-width: 48rem) {
97
- .drawer {
98
- width: 540px;
92
+ @media (max-width: 39.99rem) {
93
+ .modal-actions > * {
94
+ min-height: 2.5rem;
95
+ }
96
+ }
97
+ @media (min-width: 40rem) {
98
+ .modal {
99
+ width: 100%;
100
+ margin-bottom: 0;
101
+ }
102
+ .modal-actions {
103
+ flex-direction: row;
104
+ flex-wrap: wrap;
105
+ align-items: center;
106
+ gap: var(--spacing-8);
107
+ }
108
+ }
109
+ @media (min-width: 48rem) {
110
+ .drawer {
111
+ width: 540px;
112
+ }
99
113
  }
100
114
  }
@@ -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
  * SignInForm — admin sign-in card form.
3
17
  *
@@ -14,86 +28,88 @@
14
28
  * .byline-passkey-sign-in-button — full-width passkey button
15
29
  */
16
30
 
17
- .card,
18
- :global(.byline-sign-in-card) {
19
- width: 100%;
20
- }
21
-
22
- @media (min-width: 40rem) {
31
+ @layer byline-components.cms {
23
32
  .card,
24
33
  :global(.byline-sign-in-card) {
25
- max-width: 380px;
34
+ width: 100%;
26
35
  }
27
- }
28
36
 
29
- .alert,
30
- :global(.byline-sign-in-alert) {
31
- margin-top: var(--spacing-12);
32
- }
37
+ @media (min-width: 40rem) {
38
+ .card,
39
+ :global(.byline-sign-in-card) {
40
+ max-width: 380px;
41
+ }
42
+ }
33
43
 
34
- .form,
35
- :global(.byline-sign-in-form) {
36
- padding-top: var(--spacing-8);
37
- margin-bottom: var(--spacing-8);
38
- }
44
+ .alert,
45
+ :global(.byline-sign-in-alert) {
46
+ margin-top: var(--spacing-12);
47
+ }
39
48
 
40
- .fields,
41
- :global(.byline-sign-in-fields) {
42
- display: flex;
43
- flex-direction: column;
44
- gap: var(--spacing-16);
45
- }
49
+ .form,
50
+ :global(.byline-sign-in-form) {
51
+ padding-top: var(--spacing-8);
52
+ margin-bottom: var(--spacing-8);
53
+ }
46
54
 
47
- .actions,
48
- :global(.byline-sign-in-actions) {
49
- display: flex;
50
- align-items: center;
51
- margin-top: var(--spacing-24);
52
- }
55
+ .fields,
56
+ :global(.byline-sign-in-fields) {
57
+ display: flex;
58
+ flex-direction: column;
59
+ gap: var(--spacing-16);
60
+ }
53
61
 
54
- .home-link,
55
- :global(.byline-sign-in-home-link) {
56
- font-size: 0.9rem;
57
- text-decoration: underline;
58
- }
62
+ .actions,
63
+ :global(.byline-sign-in-actions) {
64
+ display: flex;
65
+ align-items: center;
66
+ margin-top: var(--spacing-24);
67
+ }
59
68
 
60
- .button,
61
- :global(.byline-sign-in-button) {
62
- min-width: 5rem;
63
- /* Always floats right whether or not a Home link is present on the left. */
64
- margin-left: auto;
65
- }
69
+ .home-link,
70
+ :global(.byline-sign-in-home-link) {
71
+ font-size: 0.9rem;
72
+ text-decoration: underline;
73
+ }
66
74
 
67
- .alternate,
68
- :global(.byline-sign-in-alternate) {
69
- flex-direction: column;
70
- align-items: stretch;
71
- gap: var(--spacing-16);
72
- padding-bottom: var(--spacing-24);
73
- }
75
+ .button,
76
+ :global(.byline-sign-in-button) {
77
+ min-width: 5rem;
78
+ /* Always floats right whether or not a Home link is present on the left. */
79
+ margin-left: auto;
80
+ }
74
81
 
75
- .divider,
76
- :global(.byline-sign-in-divider) {
77
- display: flex;
78
- align-items: center;
79
- gap: var(--spacing-12);
80
- color: var(--gray-500);
81
- font-size: var(--font-size-xs);
82
- text-transform: uppercase;
83
- letter-spacing: 0.04em;
84
- }
82
+ .alternate,
83
+ :global(.byline-sign-in-alternate) {
84
+ flex-direction: column;
85
+ align-items: stretch;
86
+ gap: var(--spacing-16);
87
+ padding-bottom: var(--spacing-24);
88
+ }
85
89
 
86
- .divider::before,
87
- .divider::after,
88
- :global(.byline-sign-in-divider)::before,
89
- :global(.byline-sign-in-divider)::after {
90
- content: "";
91
- flex: 1;
92
- border-top: var(--border-width-thin) var(--border-style-solid) var(--border-color, #8885);
93
- }
90
+ .divider,
91
+ :global(.byline-sign-in-divider) {
92
+ display: flex;
93
+ align-items: center;
94
+ gap: var(--spacing-12);
95
+ color: var(--gray-500);
96
+ font-size: var(--font-size-xs);
97
+ text-transform: uppercase;
98
+ letter-spacing: 0.04em;
99
+ }
94
100
 
95
- .passkey-button,
96
- :global(.byline-passkey-sign-in-button) {
97
- width: 100%;
98
- gap: var(--spacing-8);
101
+ .divider::before,
102
+ .divider::after,
103
+ :global(.byline-sign-in-divider)::before,
104
+ :global(.byline-sign-in-divider)::after {
105
+ content: "";
106
+ flex: 1;
107
+ border-top: var(--border-width-thin) var(--border-style-solid) var(--border-color, #8885);
108
+ }
109
+
110
+ .passkey-button,
111
+ :global(.byline-passkey-sign-in-button) {
112
+ width: 100%;
113
+ gap: var(--spacing-8);
114
+ }
99
115
  }
@@ -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
  * Group — labelled fieldset clustering related fields together.
3
17
  *
@@ -14,28 +28,30 @@
14
28
  * the namespaces disambiguated.
15
29
  */
16
30
 
17
- .group,
18
- :global(.byline-admin-group) {
19
- display: flex;
20
- flex-direction: column;
21
- gap: var(--spacing-16);
22
- padding: var(--spacing-12);
23
- border: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
24
- border-radius: var(--border-radius-md);
25
- }
31
+ @layer byline-components.cms {
32
+ .group,
33
+ :global(.byline-admin-group) {
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: var(--spacing-16);
37
+ padding: var(--spacing-12);
38
+ border: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
39
+ border-radius: var(--border-radius-md);
40
+ }
26
41
 
27
- .legend,
28
- :global(.byline-admin-group-legend) {
29
- padding-inline: var(--spacing-4);
30
- font-size: var(--font-size-sm);
31
- font-weight: var(--font-weight-medium);
32
- }
42
+ .legend,
43
+ :global(.byline-admin-group-legend) {
44
+ padding-inline: var(--spacing-4);
45
+ font-size: var(--font-size-sm);
46
+ font-weight: var(--font-weight-medium);
47
+ }
33
48
 
34
- /* ─── Dark theme variants ───────────────────────────────────── */
49
+ /* ─── Dark theme variants ───────────────────────────────────── */
35
50
 
36
- :is([data-theme="dark"], :global(.dark)) {
37
- .group,
38
- :global(.byline-admin-group) {
39
- border-color: var(--gray-700);
51
+ :is([data-theme="dark"], :global(.dark)) {
52
+ .group,
53
+ :global(.byline-admin-group) {
54
+ border-color: var(--gray-700);
55
+ }
40
56
  }
41
57
  }
@@ -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
  * Row — horizontal flex layout for admin form fields.
3
17
  *
@@ -10,23 +24,25 @@
10
24
  * without referring to the hashed local name.
11
25
  */
12
26
 
13
- .row,
14
- :global(.byline-admin-row) {
15
- display: flex;
16
- flex-direction: column;
17
- align-items: flex-start;
18
- gap: var(--spacing-16);
19
- }
20
-
21
- .row > *,
22
- :global(.byline-admin-row) > * {
23
- flex: 1;
24
- min-width: 0;
25
- }
26
-
27
- @media (min-width: 40rem) {
27
+ @layer byline-components.cms {
28
28
  .row,
29
29
  :global(.byline-admin-row) {
30
- flex-direction: row;
30
+ display: flex;
31
+ flex-direction: column;
32
+ align-items: flex-start;
33
+ gap: var(--spacing-16);
34
+ }
35
+
36
+ .row > *,
37
+ :global(.byline-admin-row) > * {
38
+ flex: 1;
39
+ min-width: 0;
40
+ }
41
+
42
+ @media (min-width: 40rem) {
43
+ .row,
44
+ :global(.byline-admin-row) {
45
+ flex-direction: row;
46
+ }
31
47
  }
32
48
  }