@soxa-ui/theme-base 0.3.0 → 0.3.1-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soxa-ui/theme-base",
3
- "version": "0.3.0",
3
+ "version": "0.3.1-beta.0",
4
4
  "description": "Общий слой тем Soxa UI: сброс частей библиотеки, знак направления письма и структура частей с числами в переменных — чистый CSS, без препроцессора, — и плагины раскладки для поведения темы",
5
5
  "keywords": [
6
6
  "soxa",
@@ -47,8 +47,8 @@
47
47
  "test": "vitest run"
48
48
  },
49
49
  "peerDependencies": {
50
- "@soxa-ui/core": "^0.3.0",
51
- "@soxa-ui/plugins": "^0.3.0"
50
+ "@soxa-ui/core": "^0.4.0-beta.0",
51
+ "@soxa-ui/plugins": "^0.4.0-beta.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "postcss": "^8.5.9",
@@ -0,0 +1,19 @@
1
+ /* A centered confirmation uses the shared modal anatomy and its own size contract. */
2
+ :root {
3
+ --so-alert-dialog-width: 32rem;
4
+ --so-alert-dialog-height: fit-content;
5
+ --so-alert-dialog-offset: 1rem;
6
+ }
7
+
8
+ .so-alert-dialog {
9
+ position: fixed;
10
+ inset: var(--so-alert-dialog-offset);
11
+ margin: auto;
12
+ grid-template-columns: minmax(0, 1fr) auto;
13
+ grid-template-rows: auto minmax(0, 1fr) auto;
14
+ grid-template-areas: 'title close' 'body body' 'footer footer';
15
+ width: var(--so-alert-dialog-width);
16
+ height: var(--so-alert-dialog-height);
17
+ max-width: calc(100% - 2 * var(--so-alert-dialog-offset));
18
+ max-height: calc(100% - 2 * var(--so-alert-dialog-offset));
19
+ }
@@ -0,0 +1,116 @@
1
+ /* Geometry stays independent of the theme's colors and visual variants. */
2
+ :root {
3
+ --so-alert-padding: 1rem;
4
+ --so-alert-gap: 0.75rem;
5
+ --so-alert-icon-size: 1.25em;
6
+ --so-alert-close-size: var(--so-button-height-sm);
7
+ }
8
+
9
+ .so-alert {
10
+ display: grid;
11
+ grid-template-columns: minmax(0, 1fr);
12
+ align-items: start;
13
+ column-gap: var(--so-alert-gap);
14
+ padding: var(--so-alert-padding);
15
+ min-inline-size: 0;
16
+ overflow-wrap: anywhere;
17
+ }
18
+
19
+ .so-alert:has(> .so-alert__icon:not(:empty)) {
20
+ grid-template-columns: auto minmax(0, 1fr);
21
+ }
22
+
23
+ .so-alert[data-closable='true'] {
24
+ grid-template-columns: minmax(0, 1fr) auto;
25
+ }
26
+ .so-alert[data-closable='true']:has(> .so-alert__icon:not(:empty)) {
27
+ grid-template-columns: auto minmax(0, 1fr) auto;
28
+ }
29
+
30
+ .so-alert__icon {
31
+ grid-column: 1;
32
+ grid-row: 1;
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ /* Match the first text line, including inherited and size-specific leading. */
37
+ margin-block: calc((1lh - var(--so-alert-icon-size)) / 2);
38
+ inline-size: var(--so-alert-icon-size);
39
+ block-size: var(--so-alert-icon-size);
40
+ }
41
+
42
+ .so-alert__icon > .so-icon {
43
+ inline-size: 100%;
44
+ block-size: 100%;
45
+ }
46
+
47
+ .so-alert__body,
48
+ .so-alert__action {
49
+ grid-column: 1;
50
+ min-inline-size: 0;
51
+ }
52
+
53
+ .so-alert:has(> .so-alert__icon:not(:empty)) > .so-alert__body,
54
+ .so-alert:has(> .so-alert__icon:not(:empty)) > .so-alert__action {
55
+ grid-column: 2;
56
+ }
57
+
58
+ .so-alert__body {
59
+ grid-row: 1;
60
+ }
61
+ .so-alert__action {
62
+ display: flex;
63
+ flex-wrap: wrap;
64
+ align-items: center;
65
+ gap: calc(var(--so-alert-gap) / 2);
66
+ grid-row: 2;
67
+ margin-block-start: var(--so-alert-gap);
68
+ }
69
+ .so-alert__title:not(:empty) + .so-alert__content:not(:empty) {
70
+ margin-block-start: calc(var(--so-alert-gap) / 2);
71
+ }
72
+
73
+ .so-alert__icon:empty,
74
+ .so-alert__title:empty,
75
+ .so-alert__content:empty,
76
+ .so-alert__action:empty {
77
+ display: none;
78
+ }
79
+
80
+ .so-alert__close {
81
+ grid-column: -2 / -1;
82
+ grid-row: 1;
83
+ inline-size: var(--so-alert-close-size);
84
+ block-size: var(--so-alert-close-size);
85
+ min-inline-size: var(--so-target-size);
86
+ min-block-size: var(--so-target-size);
87
+ padding: 0;
88
+ font-size: inherit;
89
+ line-height: inherit;
90
+ margin-block: calc((1lh - max(var(--so-alert-close-size), var(--so-target-size))) / 2);
91
+ }
92
+
93
+ /* The close slot has a wrapper, so Button's block auto margins cannot center its icon. */
94
+ .so-alert__close > .so-button__text,
95
+ .so-alert__close > .so-button__text > span {
96
+ display: flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ }
100
+
101
+ .so-alert--size-sm {
102
+ font-size: var(--so-button-font-size-sm);
103
+ line-height: var(--so-button-line-height-sm);
104
+ }
105
+ .so-alert--size-lg {
106
+ font-size: var(--so-button-font-size-lg);
107
+ line-height: var(--so-button-line-height-lg);
108
+ }
109
+ .so-alert--size-xl {
110
+ font-size: var(--so-button-font-size-xl);
111
+ line-height: var(--so-button-line-height-xl);
112
+ }
113
+ .so-alert--size-2xl {
114
+ font-size: var(--so-button-font-size-2xl);
115
+ line-height: var(--so-button-line-height-2xl);
116
+ }
@@ -0,0 +1,36 @@
1
+ :root {
2
+ --so-avatar-group-overlap: 0.25rem;
3
+ --so-avatar-group-count-padding: 0.375rem;
4
+ }
5
+
6
+ .so-avatar-group {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ vertical-align: middle;
10
+ }
11
+
12
+ /* Logical margins follow the nearest writing direction, including nested LTR/RTL. */
13
+ .so-avatar-group > .so-avatar ~ .so-avatar,
14
+ .so-avatar-group > .so-avatar ~ .so-avatar-group__overflow {
15
+ margin-inline-start: calc(-1 * var(--so-avatar-group-overlap));
16
+ }
17
+
18
+ .so-avatar-group__overflow {
19
+ position: relative;
20
+ display: inline-flex;
21
+ flex: none;
22
+ }
23
+
24
+ .so-avatar-group__count {
25
+ display: inline-flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ min-inline-size: var(--so-avatar-size-normal);
29
+ block-size: var(--so-avatar-size-normal);
30
+ padding-inline: var(--so-avatar-group-count-padding);
31
+ font-size: var(--so-avatar-font-size-normal);
32
+ line-height: 1;
33
+ white-space: nowrap;
34
+ direction: ltr;
35
+ unicode-bidi: isolate;
36
+ }
@@ -0,0 +1,75 @@
1
+ /* Each avatar owns its size; groups never replace a child's scale. */
2
+ :root {
3
+ --so-avatar-size-sm: 1.5rem;
4
+ --so-avatar-size-normal: 2rem;
5
+ --so-avatar-size-lg: 2.5rem;
6
+ --so-avatar-size-xl: 3rem;
7
+ --so-avatar-size-2xl: 4rem;
8
+
9
+ --so-avatar-font-size-sm: calc(1em - 0.125rem);
10
+ --so-avatar-font-size-normal: 1em;
11
+ --so-avatar-font-size-lg: calc(1em + 0.125rem);
12
+ --so-avatar-font-size-xl: calc(1em + 0.25rem);
13
+ --so-avatar-font-size-2xl: calc(1em + 0.5rem);
14
+ }
15
+
16
+ .so-avatar {
17
+ --so-avatar-size: var(--so-avatar-size-normal);
18
+ --so-avatar-font-size: var(--so-avatar-font-size-normal);
19
+
20
+ position: relative;
21
+ display: inline-grid;
22
+ flex: none;
23
+ inline-size: var(--so-avatar-size);
24
+ block-size: var(--so-avatar-size);
25
+ overflow: hidden;
26
+ vertical-align: middle;
27
+ }
28
+
29
+ .so-avatar--size-sm {
30
+ --so-avatar-size: var(--so-avatar-size-sm);
31
+ --so-avatar-font-size: var(--so-avatar-font-size-sm);
32
+ }
33
+
34
+ .so-avatar--size-lg {
35
+ --so-avatar-size: var(--so-avatar-size-lg);
36
+ --so-avatar-font-size: var(--so-avatar-font-size-lg);
37
+ }
38
+
39
+ .so-avatar--size-xl {
40
+ --so-avatar-size: var(--so-avatar-size-xl);
41
+ --so-avatar-font-size: var(--so-avatar-font-size-xl);
42
+ }
43
+
44
+ .so-avatar--size-2xl {
45
+ --so-avatar-size: var(--so-avatar-size-2xl);
46
+ --so-avatar-font-size: var(--so-avatar-font-size-2xl);
47
+ }
48
+
49
+ .so-avatar__image,
50
+ .so-avatar__fallback {
51
+ grid-area: 1 / 1;
52
+ inline-size: 100%;
53
+ block-size: 100%;
54
+ min-inline-size: 0;
55
+ }
56
+
57
+ .so-avatar__image {
58
+ display: block;
59
+ object-fit: cover;
60
+ }
61
+
62
+ .so-avatar__fallback {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ font-size: var(--so-avatar-font-size);
67
+ line-height: 1;
68
+ white-space: nowrap;
69
+ }
70
+
71
+ /* Keep the fallback for idle, loading and error; an unfinished image is never visible. */
72
+ .so-avatar:not([data-status='loaded']) > .so-avatar__image,
73
+ .so-avatar[data-status='loaded'] > .so-avatar__fallback {
74
+ display: none;
75
+ }
@@ -0,0 +1,15 @@
1
+ /* The parent supplies the available length; the line never consumes flex space. */
2
+ .so-separator {
3
+ flex: none;
4
+ align-self: stretch;
5
+ }
6
+
7
+ .so-separator--orientation-horizontal {
8
+ inline-size: 100%;
9
+ block-size: var(--so-separator-width, 1px);
10
+ }
11
+
12
+ .so-separator--orientation-vertical {
13
+ inline-size: var(--so-separator-width, 1px);
14
+ block-size: 100%;
15
+ }
package/src/index.css CHANGED
@@ -44,12 +44,12 @@
44
44
  * the README of the package. */
45
45
 
46
46
  @layer so.reset, so.direction, so.disabled, so.caption, so.required, so.target, so.group,
47
- so.anchored, so.swipe, so.place, so.icon, so.button, so.toggle-group, so.check-box, so.accordion, so.date-input,
48
- so.modal, so.dialog, so.drag-and-drop, so.drawer, so.input, so.badge, so.label, so.field, so.list-box,
47
+ so.anchored, so.swipe, so.place, so.icon, so.avatar, so.avatar-group, so.button, so.toggle-group, so.check-box, so.accordion, so.date-input,
48
+ so.modal, so.dialog, so.alert-dialog, so.drag-and-drop, so.drawer, so.input, so.badge, so.label, so.field, so.list-box,
49
49
  so.menu, so.breadcrumbs, so.number-input, so.pagination, so.popover, so.calendar, so.date-picker,
50
50
  so.progress-linear, so.progress-spinner, so.radio-group, so.rating, so.scroller, so.select,
51
- so.skeleton, so.slider, so.switch, so.table, so.tabs, so.tags, so.textarea, so.toasts,
52
- so.tooltip, so.code-block;
51
+ so.separator, so.skeleton, so.slider, so.switch, so.table, so.tabs, so.tags, so.textarea, so.toasts,
52
+ so.tooltip, so.code-block, so.alert;
53
53
 
54
54
  @import './reset.css' layer(so.reset);
55
55
  @import './direction.css' layer(so.direction);
@@ -62,6 +62,8 @@
62
62
  @import './swipe.css' layer(so.swipe);
63
63
  @import './place.css' layer(so.place);
64
64
  @import './components/icon.css' layer(so.icon);
65
+ @import './components/avatar.css' layer(so.avatar);
66
+ @import './components/avatar-group.css' layer(so.avatar-group);
65
67
  @import './components/button.css' layer(so.button);
66
68
  @import './components/toggle-group.css' layer(so.toggle-group);
67
69
  @import './components/check-box.css' layer(so.check-box);
@@ -69,6 +71,7 @@
69
71
  @import './components/date-input.css' layer(so.date-input);
70
72
  @import './modal.css' layer(so.modal);
71
73
  @import './components/dialog.css' layer(so.dialog);
74
+ @import './components/alert-dialog.css' layer(so.alert-dialog);
72
75
  @import './components/drag-and-drop.css' layer(so.drag-and-drop);
73
76
  @import './components/drawer.css' layer(so.drawer);
74
77
  @import './components/input.css' layer(so.input);
@@ -89,6 +92,7 @@
89
92
  @import './components/rating.css' layer(so.rating);
90
93
  @import './components/scroller.css' layer(so.scroller);
91
94
  @import './components/select.css' layer(so.select);
95
+ @import './components/separator.css' layer(so.separator);
92
96
  @import './components/skeleton.css' layer(so.skeleton);
93
97
  @import './components/slider.css' layer(so.slider);
94
98
  @import './components/switch.css' layer(so.switch);
@@ -100,3 +104,5 @@
100
104
  @import './components/tooltip.css' layer(so.tooltip);
101
105
 
102
106
  @import './components/code-block.css' layer(so.code-block);
107
+
108
+ @import './components/alert.css' layer(so.alert);
package/src/modal.css CHANGED
@@ -61,20 +61,23 @@
61
61
  }
62
62
 
63
63
  .so-dialog__backdrop,
64
- .so-drawer__backdrop {
64
+ .so-drawer__backdrop,
65
+ .so-alert-dialog__backdrop {
65
66
  position: fixed;
66
67
  inset: 0;
67
68
  }
68
69
 
69
70
  .so-dialog,
70
- .so-drawer {
71
+ .so-drawer,
72
+ .so-alert-dialog {
71
73
  display: grid;
72
74
  overflow: hidden;
73
75
  }
74
76
 
75
77
  /* Заголовок рисуется всегда: на него панель ссылается `aria-labelledby`. */
76
78
  .so-dialog__title,
77
- .so-drawer__title {
79
+ .so-drawer__title,
80
+ .so-alert-dialog__title {
78
81
  grid-area: title;
79
82
  padding: var(--so-modal-padding) var(--so-modal-padding) 0;
80
83
  line-height: var(--so-modal-title-line);
@@ -82,12 +85,14 @@
82
85
  }
83
86
 
84
87
  .so-dialog__title:empty,
85
- .so-drawer__title:empty {
88
+ .so-drawer__title:empty,
89
+ .so-alert-dialog__title:empty {
86
90
  display: none;
87
91
  }
88
92
 
89
93
  .so-dialog__body,
90
- .so-drawer__body {
94
+ .so-drawer__body,
95
+ .so-alert-dialog__body {
91
96
  grid-area: body;
92
97
  min-height: 0;
93
98
  padding: var(--so-modal-gap) var(--so-modal-padding);
@@ -96,13 +101,18 @@
96
101
  overflow-wrap: break-word;
97
102
  }
98
103
 
99
- :where(.so-dialog__body > .so-table__viewport, .so-drawer__body > .so-table__viewport) {
104
+ :where(
105
+ .so-dialog__body > .so-table__viewport,
106
+ .so-drawer__body > .so-table__viewport,
107
+ .so-alert-dialog__body > .so-table__viewport
108
+ ) {
100
109
  --so-table-head-offset: calc(-1 * var(--so-modal-gap));
101
110
  }
102
111
 
103
112
  /* Подвал — ряд действий в конце строки, в RTL он сам встаёт слева. */
104
113
  .so-dialog__footer,
105
- .so-drawer__footer {
114
+ .so-drawer__footer,
115
+ .so-alert-dialog__footer {
106
116
  grid-area: footer;
107
117
  display: flex;
108
118
  flex-wrap: wrap;
@@ -113,7 +123,8 @@
113
123
  }
114
124
 
115
125
  .so-dialog__footer:empty,
116
- .so-drawer__footer:empty {
126
+ .so-drawer__footer:empty,
127
+ .so-alert-dialog__footer:empty {
117
128
  display: none;
118
129
  }
119
130
 
@@ -121,7 +132,9 @@
121
132
  * панели полным отступом, а не промежутком после шапки. */
122
133
  .so-dialog:not(:has(> .so-dialog__title:not(:empty), > .so-dialog__maximize, > .so-dialog__close))
123
134
  > .so-dialog__body,
124
- .so-drawer:not(:has(> .so-drawer__title:not(:empty), > .so-drawer__close)) > .so-drawer__body {
135
+ .so-drawer:not(:has(> .so-drawer__title:not(:empty), > .so-drawer__close)) > .so-drawer__body,
136
+ .so-alert-dialog:not(:has(> .so-alert-dialog__title:not(:empty), > .so-alert-dialog__close))
137
+ > .so-alert-dialog__body {
125
138
  padding-block-start: var(--so-modal-padding);
126
139
  }
127
140
 
@@ -133,6 +146,9 @@
133
146
  > .so-table__viewport,
134
147
  .so-drawer:not(:has(> .so-drawer__title:not(:empty), > .so-drawer__close))
135
148
  > .so-drawer__body
149
+ > .so-table__viewport,
150
+ .so-alert-dialog:not(:has(> .so-alert-dialog__title:not(:empty), > .so-alert-dialog__close))
151
+ > .so-alert-dialog__body
136
152
  > .so-table__viewport
137
153
  ) {
138
154
  --so-table-head-offset: calc(-1 * var(--so-modal-padding));
@@ -140,13 +156,15 @@
140
156
 
141
157
  /* Подвала нет — тело кончается у нижнего края панели полным отступом. */
142
158
  .so-dialog:has(> .so-dialog__footer:empty) > .so-dialog__body,
143
- .so-drawer:has(> .so-drawer__footer:empty) > .so-drawer__body {
159
+ .so-drawer:has(> .so-drawer__footer:empty) > .so-drawer__body,
160
+ .so-alert-dialog:has(> .so-alert-dialog__footer:empty) > .so-alert-dialog__body {
144
161
  padding-block-end: var(--so-modal-padding);
145
162
  }
146
163
 
147
164
  .so-dialog__maximize,
148
165
  .so-dialog__close,
149
- .so-drawer__close {
166
+ .so-drawer__close,
167
+ .so-alert-dialog__close {
150
168
  flex-shrink: 0;
151
169
  align-self: flex-start;
152
170
  aspect-ratio: 1;
@@ -159,7 +177,8 @@
159
177
 
160
178
  .so-dialog__maximize:last-child,
161
179
  .so-dialog__close:last-child,
162
- .so-drawer__close:last-child {
180
+ .so-drawer__close:last-child,
181
+ .so-alert-dialog__close:last-child {
163
182
  margin-inline-end: calc(var(--so-modal-padding) - var(--so-button-height-normal) / 4);
164
183
  }
165
184
 
@@ -168,7 +187,8 @@
168
187
  * потребителя, что бы в нём ни лежало. */
169
188
  .so-dialog__maximize > .so-button__text,
170
189
  .so-dialog__close > .so-button__text,
171
- .so-drawer__close > .so-button__text {
190
+ .so-drawer__close > .so-button__text,
191
+ .so-alert-dialog__close > .so-button__text {
172
192
  display: flex;
173
193
  justify-content: center;
174
194
  }
@@ -178,6 +198,7 @@
178
198
  }
179
199
 
180
200
  .so-dialog__close,
181
- .so-drawer__close {
201
+ .so-drawer__close,
202
+ .so-alert-dialog__close {
182
203
  grid-area: close;
183
204
  }
package/src/place.css CHANGED
@@ -24,6 +24,7 @@
24
24
  .so-menu__panel,
25
25
  .so-menu-item__panel,
26
26
  .so-dialog,
27
+ .so-alert-dialog,
27
28
  .so-drawer,
28
29
  .so-toasts-item__card {
29
30
  --so-place-surface: var(--so-panel-surface);
@@ -19,6 +19,30 @@
19
19
  "description": "Root of accordion item. Inherited component classes use the concrete component's base name.",
20
20
  "scope": "so-accordion-item"
21
21
  },
22
+ {
23
+ "name": "so-alert",
24
+ "sources": ["packages/core/src/components/custom/alert/alert.class.ts"],
25
+ "description": "Inline message; urgency is independent of its themed appearance.",
26
+ "scope": "Alert"
27
+ },
28
+ {
29
+ "name": "so-alert-dialog",
30
+ "sources": ["packages/core/src/components/custom/alert-dialog/alert-dialog.class.ts"],
31
+ "description": "AlertDialog so-alert-dialog emission.",
32
+ "scope": "AlertDialog"
33
+ },
34
+ {
35
+ "name": "so-avatar",
36
+ "sources": ["packages/core/src/components/custom/avatar/avatar.class.ts"],
37
+ "description": "Noninteractive user image or initials/custom fallback.",
38
+ "scope": "Avatar"
39
+ },
40
+ {
41
+ "name": "so-avatar-group",
42
+ "sources": ["packages/core/src/components/custom/avatar/group/group.class.ts"],
43
+ "description": "Overlapping row of the avatars supplied by the application.",
44
+ "scope": "Avatar.Group"
45
+ },
22
46
  {
23
47
  "name": "so-badge",
24
48
  "sources": ["packages/core/src/components/custom/badge/badge.class.ts"],
@@ -247,6 +271,12 @@
247
271
  "description": "Root of select item. Inherited component classes use the concrete component's base name.",
248
272
  "scope": "so-select-item"
249
273
  },
274
+ {
275
+ "name": "so-separator",
276
+ "sources": ["packages/core/src/components/custom/separator/separator.class.ts"],
277
+ "description": "A non-interactive semantic or decorative content boundary.",
278
+ "scope": "so-separator"
279
+ },
250
280
  {
251
281
  "name": "so-skeleton",
252
282
  "sources": ["packages/core/src/components/custom/skeleton/skeleton.class.ts"],
@@ -409,6 +439,224 @@
409
439
  "description": "header part of accordion item. Availability follows the rendered component structure.",
410
440
  "scope": "so-accordion-item"
411
441
  },
442
+ {
443
+ "name": "so-alert__action",
444
+ "sources": [
445
+ "packages/ui/angular/src/components/alert/alert.component.html",
446
+ "packages/ui/react/src/components/alert/Alert.tsx",
447
+ "packages/ui/solid/src/components/alert/Alert.tsx",
448
+ "packages/ui/svelte/src/components/alert/Alert.svelte",
449
+ "packages/ui/vue/src/components/alert/Alert.vue",
450
+ "packages/ui/webc/src/components/alert/alert.template.ts"
451
+ ],
452
+ "description": "Alert action part.",
453
+ "scope": "Alert"
454
+ },
455
+ {
456
+ "name": "so-alert__body",
457
+ "sources": [
458
+ "packages/ui/angular/src/components/alert/alert.component.html",
459
+ "packages/ui/react/src/components/alert/Alert.tsx",
460
+ "packages/ui/solid/src/components/alert/Alert.tsx",
461
+ "packages/ui/svelte/src/components/alert/Alert.svelte",
462
+ "packages/ui/vue/src/components/alert/Alert.vue",
463
+ "packages/ui/webc/src/components/alert/alert.template.ts"
464
+ ],
465
+ "description": "Alert body part.",
466
+ "scope": "Alert"
467
+ },
468
+ {
469
+ "name": "so-alert__close",
470
+ "sources": [
471
+ "packages/ui/angular/src/components/alert/alert.component.html",
472
+ "packages/ui/react/src/components/alert/Alert.tsx",
473
+ "packages/ui/solid/src/components/alert/Alert.tsx",
474
+ "packages/ui/svelte/src/components/alert/Alert.svelte",
475
+ "packages/ui/vue/src/components/alert/Alert.vue",
476
+ "packages/ui/webc/src/components/alert/alert.template.ts"
477
+ ],
478
+ "description": "Alert close part.",
479
+ "scope": "Alert"
480
+ },
481
+ {
482
+ "name": "so-alert__content",
483
+ "sources": [
484
+ "packages/ui/angular/src/components/alert/alert.component.html",
485
+ "packages/ui/react/src/components/alert/Alert.tsx",
486
+ "packages/ui/solid/src/components/alert/Alert.tsx",
487
+ "packages/ui/svelte/src/components/alert/Alert.svelte",
488
+ "packages/ui/vue/src/components/alert/Alert.vue",
489
+ "packages/ui/webc/src/components/alert/alert.template.ts"
490
+ ],
491
+ "description": "Alert content part.",
492
+ "scope": "Alert"
493
+ },
494
+ {
495
+ "name": "so-alert__icon",
496
+ "sources": [
497
+ "packages/ui/angular/src/components/alert/alert.component.html",
498
+ "packages/ui/react/src/components/alert/Alert.tsx",
499
+ "packages/ui/solid/src/components/alert/Alert.tsx",
500
+ "packages/ui/svelte/src/components/alert/Alert.svelte",
501
+ "packages/ui/vue/src/components/alert/Alert.vue",
502
+ "packages/ui/webc/src/components/alert/alert.template.ts"
503
+ ],
504
+ "description": "Alert icon part.",
505
+ "scope": "Alert"
506
+ },
507
+ {
508
+ "name": "so-alert__title",
509
+ "sources": [
510
+ "packages/ui/angular/src/components/alert/alert.component.html",
511
+ "packages/ui/react/src/components/alert/Alert.tsx",
512
+ "packages/ui/solid/src/components/alert/Alert.tsx",
513
+ "packages/ui/svelte/src/components/alert/Alert.svelte",
514
+ "packages/ui/vue/src/components/alert/Alert.vue",
515
+ "packages/ui/webc/src/components/alert/alert.template.ts"
516
+ ],
517
+ "description": "Alert title part.",
518
+ "scope": "Alert"
519
+ },
520
+ {
521
+ "name": "so-alert-dialog__action",
522
+ "sources": [
523
+ "packages/ui/angular/src/components/alert-dialog/alert-dialog.component.html",
524
+ "packages/ui/react/src/components/alert-dialog/AlertDialog.tsx",
525
+ "packages/ui/solid/src/components/alert-dialog/AlertDialog.tsx",
526
+ "packages/ui/svelte/src/components/alert-dialog/AlertDialog.svelte",
527
+ "packages/ui/vue/src/components/alert-dialog/AlertDialog.vue"
528
+ ],
529
+ "description": "AlertDialog action emission.",
530
+ "scope": "AlertDialog"
531
+ },
532
+ {
533
+ "name": "so-alert-dialog__backdrop",
534
+ "sources": [
535
+ "packages/ui/angular/src/components/alert-dialog/alert-dialog.component.html",
536
+ "packages/ui/react/src/components/alert-dialog/AlertDialog.tsx",
537
+ "packages/ui/solid/src/components/alert-dialog/AlertDialog.tsx",
538
+ "packages/ui/svelte/src/components/alert-dialog/AlertDialog.svelte",
539
+ "packages/ui/vue/src/components/alert-dialog/AlertDialog.vue",
540
+ "packages/ui/webc/src/components/alert-dialog/alert-dialog.template.ts"
541
+ ],
542
+ "description": "AlertDialog backdrop emission.",
543
+ "scope": "AlertDialog"
544
+ },
545
+ {
546
+ "name": "so-alert-dialog__body",
547
+ "sources": [
548
+ "packages/ui/angular/src/components/alert-dialog/alert-dialog.component.html",
549
+ "packages/ui/react/src/components/alert-dialog/AlertDialog.tsx",
550
+ "packages/ui/solid/src/components/alert-dialog/AlertDialog.tsx",
551
+ "packages/ui/svelte/src/components/alert-dialog/AlertDialog.svelte",
552
+ "packages/ui/vue/src/components/alert-dialog/AlertDialog.vue",
553
+ "packages/ui/webc/src/components/alert-dialog/alert-dialog.template.ts"
554
+ ],
555
+ "description": "AlertDialog body emission.",
556
+ "scope": "AlertDialog"
557
+ },
558
+ {
559
+ "name": "so-alert-dialog__cancel",
560
+ "sources": [
561
+ "packages/ui/angular/src/components/alert-dialog/alert-dialog.component.html",
562
+ "packages/ui/react/src/components/alert-dialog/AlertDialog.tsx",
563
+ "packages/ui/solid/src/components/alert-dialog/AlertDialog.tsx",
564
+ "packages/ui/svelte/src/components/alert-dialog/AlertDialog.svelte",
565
+ "packages/ui/vue/src/components/alert-dialog/AlertDialog.vue"
566
+ ],
567
+ "description": "AlertDialog cancel emission.",
568
+ "scope": "AlertDialog"
569
+ },
570
+ {
571
+ "name": "so-alert-dialog__close",
572
+ "sources": [
573
+ "packages/ui/angular/src/components/alert-dialog/alert-dialog.component.html",
574
+ "packages/ui/react/src/components/alert-dialog/AlertDialog.tsx",
575
+ "packages/ui/solid/src/components/alert-dialog/AlertDialog.tsx",
576
+ "packages/ui/svelte/src/components/alert-dialog/AlertDialog.svelte",
577
+ "packages/ui/vue/src/components/alert-dialog/AlertDialog.vue"
578
+ ],
579
+ "description": "AlertDialog close emission.",
580
+ "scope": "AlertDialog"
581
+ },
582
+ {
583
+ "name": "so-alert-dialog__footer",
584
+ "sources": [
585
+ "packages/ui/angular/src/components/alert-dialog/alert-dialog.component.html",
586
+ "packages/ui/react/src/components/alert-dialog/AlertDialog.tsx",
587
+ "packages/ui/solid/src/components/alert-dialog/AlertDialog.tsx",
588
+ "packages/ui/svelte/src/components/alert-dialog/AlertDialog.svelte",
589
+ "packages/ui/vue/src/components/alert-dialog/AlertDialog.vue",
590
+ "packages/ui/webc/src/components/alert-dialog/alert-dialog.template.ts"
591
+ ],
592
+ "description": "AlertDialog footer emission.",
593
+ "scope": "AlertDialog"
594
+ },
595
+ {
596
+ "name": "so-alert-dialog__title",
597
+ "sources": [
598
+ "packages/ui/angular/src/components/alert-dialog/alert-dialog.component.html",
599
+ "packages/ui/react/src/components/alert-dialog/AlertDialog.tsx",
600
+ "packages/ui/solid/src/components/alert-dialog/AlertDialog.tsx",
601
+ "packages/ui/svelte/src/components/alert-dialog/AlertDialog.svelte",
602
+ "packages/ui/vue/src/components/alert-dialog/AlertDialog.vue",
603
+ "packages/ui/webc/src/components/alert-dialog/alert-dialog.template.ts"
604
+ ],
605
+ "description": "AlertDialog title emission.",
606
+ "scope": "AlertDialog"
607
+ },
608
+ {
609
+ "name": "so-avatar__fallback",
610
+ "sources": [
611
+ "packages/ui/angular/src/components/avatar/avatar.component.html",
612
+ "packages/ui/react/src/components/avatar/Avatar.tsx",
613
+ "packages/ui/solid/src/components/avatar/Avatar.tsx",
614
+ "packages/ui/svelte/src/components/avatar/Avatar.svelte",
615
+ "packages/ui/vue/src/components/avatar/Avatar.vue",
616
+ "packages/ui/webc/src/components/avatar/avatar.template.ts"
617
+ ],
618
+ "description": "Initials or custom fallback visible until the image is loaded.",
619
+ "scope": "Avatar"
620
+ },
621
+ {
622
+ "name": "so-avatar__image",
623
+ "sources": [
624
+ "packages/ui/angular/src/components/avatar/avatar.component.html",
625
+ "packages/ui/react/src/components/avatar/Avatar.tsx",
626
+ "packages/ui/solid/src/components/avatar/Avatar.tsx",
627
+ "packages/ui/svelte/src/components/avatar/Avatar.svelte",
628
+ "packages/ui/vue/src/components/avatar/Avatar.vue",
629
+ "packages/ui/webc/src/components/avatar/avatar.template.ts"
630
+ ],
631
+ "description": "Loaded decorative image cropped to the avatar box.",
632
+ "scope": "Avatar"
633
+ },
634
+ {
635
+ "name": "so-avatar-group__count",
636
+ "sources": [
637
+ "packages/ui/angular/src/components/avatar/group/avatar-group.component.html",
638
+ "packages/ui/react/src/components/avatar/group/AvatarGroup.tsx",
639
+ "packages/ui/solid/src/components/avatar/group/AvatarGroup.tsx",
640
+ "packages/ui/svelte/src/components/avatar/group/AvatarGroup.svelte",
641
+ "packages/ui/vue/src/components/avatar/group/AvatarGroup.vue",
642
+ "packages/ui/webc/src/components/avatar/group/avatar-group.template.ts"
643
+ ],
644
+ "description": "Default positive overflow count, rendered as +N.",
645
+ "scope": "Avatar.Group"
646
+ },
647
+ {
648
+ "name": "so-avatar-group__overflow",
649
+ "sources": [
650
+ "packages/ui/angular/src/components/avatar/group/avatar-group.component.html",
651
+ "packages/ui/react/src/components/avatar/group/AvatarGroup.tsx",
652
+ "packages/ui/solid/src/components/avatar/group/AvatarGroup.tsx",
653
+ "packages/ui/svelte/src/components/avatar/group/AvatarGroup.svelte",
654
+ "packages/ui/vue/src/components/avatar/group/AvatarGroup.vue",
655
+ "packages/ui/webc/src/components/avatar/group/avatar-group.template.ts"
656
+ ],
657
+ "description": "Custom overflow slot replacing the default hidden-people count.",
658
+ "scope": "Avatar.Group"
659
+ },
412
660
  {
413
661
  "name": "so-badge__anchor",
414
662
  "sources": [
@@ -2912,13 +3160,14 @@
2912
3160
  "name": "--orientation-",
2913
3161
  "sources": [
2914
3162
  "packages/core/src/components/custom/progress-linear/progress-linear.class.ts",
3163
+ "packages/core/src/components/custom/separator/separator.class.ts",
2915
3164
  "packages/core/src/components/custom/slider/slider.class.ts",
2916
3165
  "packages/core/src/components/custom/tabs/tabs.class.ts",
2917
3166
  "packages/core/src/components/custom/toggle-group/toggle-group.class.ts"
2918
3167
  ],
2919
3168
  "pattern": "so-<block>--orientation-<value>",
2920
3169
  "description": "Orientation of the component layout.",
2921
- "scope": "Tabs, Slider and ProgressLinear roots",
3170
+ "scope": "Tabs, Slider, ProgressLinear, ToggleGroup and Separator roots",
2922
3171
  "values": "horizontal | vertical"
2923
3172
  },
2924
3173
  {
@@ -2954,10 +3203,13 @@
2954
3203
  },
2955
3204
  {
2956
3205
  "name": "--shape-",
2957
- "sources": ["packages/core/src/components/custom/skeleton/skeleton.class.ts"],
3206
+ "sources": [
3207
+ "packages/core/src/components/custom/avatar/avatar.class.ts",
3208
+ "packages/core/src/components/custom/skeleton/skeleton.class.ts"
3209
+ ],
2958
3210
  "pattern": "so-<block>--shape-<value>",
2959
- "description": "Theme-defined skeleton geometry.",
2960
- "scope": "Skeleton",
3211
+ "description": "Theme-defined component geometry.",
3212
+ "scope": "Skeleton and Avatar",
2961
3213
  "values": "<shape>; values declared by the theme"
2962
3214
  },
2963
3215
  {
@@ -3004,6 +3256,7 @@
3004
3256
  "name": "--view-",
3005
3257
  "sources": [
3006
3258
  "packages/core/src/components/custom/accordion/accordion.class.ts",
3259
+ "packages/core/src/components/custom/alert/alert.class.ts",
3007
3260
  "packages/core/src/components/custom/badge/badge.class.ts",
3008
3261
  "packages/core/src/components/custom/button/button.class.ts",
3009
3262
  "packages/core/src/components/custom/check-box/check-box.class.ts",
@@ -3016,7 +3269,7 @@
3016
3269
  ],
3017
3270
  "pattern": "so-<block>--view-<value>",
3018
3271
  "description": "Theme-defined visual treatment; absent when unset.",
3019
- "scope": "Button, CheckBox, RadioGroup/items, Tabs, Accordion/items, Tags/items, ListBox/Select rows",
3272
+ "scope": "Alert, Badge, Button, CheckBox, RadioGroup/items, Tabs, Accordion/items, Tags/items, ListBox/Select rows",
3020
3273
  "values": "<view>; values declared by the theme"
3021
3274
  }
3022
3275
  ],
@@ -3059,11 +3312,12 @@
3059
3312
  {
3060
3313
  "name": "data-closable",
3061
3314
  "sources": [
3315
+ "packages/core/src/components/custom/alert/alert.class.ts",
3062
3316
  "packages/core/src/components/custom/tabs/item/item.class.ts",
3063
3317
  "packages/core/src/components/custom/tags/item/item.class.ts"
3064
3318
  ],
3065
- "description": "Own closable flag of a collection item; inherited collection policy and disabled state still determine the effective close action.",
3066
- "scope": "Tabs item and Tags item roots",
3319
+ "description": "Own closable flag of inline Alert or collection item; collection policy may further restrict the effective action.",
3320
+ "scope": "Alert, Tabs item and Tags item roots",
3067
3321
  "values": "true | false",
3068
3322
  "presence": "Always present on applicable component instances, including the initial render; false is serialized as \"false\"."
3069
3323
  },
@@ -3539,6 +3793,14 @@
3539
3793
  "values": "positive integer; absent when unsorted",
3540
3794
  "presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
3541
3795
  },
3796
+ {
3797
+ "name": "data-status",
3798
+ "sources": ["packages/core/src/components/custom/avatar/avatar.class.ts"],
3799
+ "description": "Image loading state; only loaded displays an image.",
3800
+ "scope": "Avatar root",
3801
+ "values": "idle | loading | loaded | error",
3802
+ "presence": "Always present, including idle server markup."
3803
+ },
3542
3804
  {
3543
3805
  "name": "data-sticky-head",
3544
3806
  "sources": [
@@ -324,7 +324,27 @@
324
324
  "--so-code-block-header-height-lg": "CodeBlock toolbar height, size lg: compact toolbar scale, independent of the standalone Button height.",
325
325
  "--so-code-block-header-height-xl": "CodeBlock toolbar height, size xl: compact toolbar scale, independent of the standalone Button height.",
326
326
  "--so-code-block-header-height-2xl": "CodeBlock toolbar height, size 2xl: compact toolbar scale, independent of the standalone Button height.",
327
- "--so-code-block-tab-size": "CodeBlock visual tab width, in character cells; default: 4."
327
+ "--so-code-block-tab-size": "CodeBlock visual tab width, in character cells; default: 4.",
328
+ "--so-alert-padding": "Alert inner padding; default: 1rem.",
329
+ "--so-alert-gap": "Alert column/action gap; default: 0.75rem.",
330
+ "--so-alert-icon-size": "Decorative Alert icon side; default: 1.25em.",
331
+ "--so-alert-close-size": "Alert close button side; default: var(--so-button-height-sm).",
332
+ "--so-avatar-size-sm": "Avatar square image and fallback box, size sm. The normal step also sizes the default group overflow count.",
333
+ "--so-avatar-font-size-sm": "Avatar fallback font size relative to its surrounding text, size sm.",
334
+ "--so-avatar-size-normal": "Avatar square image and fallback box, size normal. The normal step also sizes the default group overflow count.",
335
+ "--so-avatar-font-size-normal": "Avatar fallback font size relative to its surrounding text, size normal.",
336
+ "--so-avatar-size-lg": "Avatar square image and fallback box, size lg. The normal step also sizes the default group overflow count.",
337
+ "--so-avatar-font-size-lg": "Avatar fallback font size relative to its surrounding text, size lg.",
338
+ "--so-avatar-size-xl": "Avatar square image and fallback box, size xl. The normal step also sizes the default group overflow count.",
339
+ "--so-avatar-font-size-xl": "Avatar fallback font size relative to its surrounding text, size xl.",
340
+ "--so-avatar-size-2xl": "Avatar square image and fallback box, size 2xl. The normal step also sizes the default group overflow count.",
341
+ "--so-avatar-font-size-2xl": "Avatar fallback font size relative to its surrounding text, size 2xl.",
342
+ "--so-avatar-group-overlap": "Inline overlap between sibling avatars and the overflow slot; default: 0.25rem.",
343
+ "--so-avatar-group-count-padding": "Inline padding of the default avatar group overflow count; default: 0.375rem.",
344
+ "--so-separator-width": "Separator line thickness in either orientation; default: 1px.",
345
+ "--so-alert-dialog-width": "AlertDialog panel width; default: 32rem. Bounded by the viewport minus its offset.",
346
+ "--so-alert-dialog-height": "AlertDialog panel height; default: fit-content. Bounded by the viewport minus its offset.",
347
+ "--so-alert-dialog-offset": "AlertDialog distance from every viewport edge; default: 1rem."
328
348
  },
329
349
  "theme-reads": {
330
350
  "--so-dir-sign": "Writing direction sign from the nearest dir: 1 for left-to-right, -1 for right-to-left. Written by the base layer dir rules; themes multiply mirroring transforms (scale, gradient angle or offset) by it.",