@soxa-ui/theme-base 0.3.0-beta.1 → 0.3.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/README.md +5 -0
- package/package.json +3 -3
- package/src/components/badge.css +106 -0
- package/src/components/breadcrumbs.css +103 -0
- package/src/components/code-block.css +173 -0
- package/src/components/select.css +2 -0
- package/src/components/tabs.css +30 -9
- package/src/components/toggle-group.css +30 -0
- package/src/index.css +9 -4
- package/theme-contract.json +402 -9
- package/theme-variables.json +49 -2
package/README.md
CHANGED
|
@@ -398,3 +398,8 @@ the application uses Tailwind, name the order before any stylesheet loads, so th
|
|
|
398
398
|
## License
|
|
399
399
|
|
|
400
400
|
[MIT](https://github.com/youra-h/soxa-ui/blob/main/LICENSE)
|
|
401
|
+
|
|
402
|
+
## Breadcrumbs
|
|
403
|
+
|
|
404
|
+
Breadcrumbs provides an ordered navigation trail with native links, localized accessible names
|
|
405
|
+
and an overflow menu. See the [API and examples](../../../docs/api/breadcrumbs.md).
|
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.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.3.0",
|
|
51
|
+
"@soxa-ui/plugins": "^0.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"postcss": "^8.5.9",
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* Size scales are document defaults; each Badge selects its own size below. */
|
|
2
|
+
:root {
|
|
3
|
+
--so-badge-height-sm: 1rem;
|
|
4
|
+
--so-badge-height-normal: 1.25rem;
|
|
5
|
+
--so-badge-height-lg: 1.5rem;
|
|
6
|
+
--so-badge-height-xl: 1.75rem;
|
|
7
|
+
--so-badge-height-2xl: 2rem;
|
|
8
|
+
|
|
9
|
+
--so-badge-font-size-sm: 0.625rem;
|
|
10
|
+
--so-badge-font-size-normal: 0.75rem;
|
|
11
|
+
--so-badge-font-size-lg: 0.875rem;
|
|
12
|
+
--so-badge-font-size-xl: 1rem;
|
|
13
|
+
--so-badge-font-size-2xl: 1.125rem;
|
|
14
|
+
|
|
15
|
+
--so-badge-padding-sm: 0.25rem;
|
|
16
|
+
--so-badge-padding-normal: 0.375rem;
|
|
17
|
+
--so-badge-padding-lg: 0.4375rem;
|
|
18
|
+
--so-badge-padding-xl: 0.5rem;
|
|
19
|
+
--so-badge-padding-2xl: 0.625rem;
|
|
20
|
+
|
|
21
|
+
--so-badge-dot-size-sm: 0.375rem;
|
|
22
|
+
--so-badge-dot-size-normal: 0.5rem;
|
|
23
|
+
--so-badge-dot-size-lg: 0.625rem;
|
|
24
|
+
--so-badge-dot-size-xl: 0.75rem;
|
|
25
|
+
--so-badge-dot-size-2xl: 0.875rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Inline geometry and logical overlay placement; appearance belongs to a theme. */
|
|
29
|
+
.so-badge {
|
|
30
|
+
--so-badge-height: var(--so-badge-height-normal);
|
|
31
|
+
--so-badge-font-size: var(--so-badge-font-size-normal);
|
|
32
|
+
--so-badge-padding: var(--so-badge-padding-normal);
|
|
33
|
+
--so-badge-dot-size: var(--so-badge-dot-size-normal);
|
|
34
|
+
|
|
35
|
+
position: relative;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.so-badge--size-sm {
|
|
41
|
+
--so-badge-height: var(--so-badge-height-sm);
|
|
42
|
+
--so-badge-font-size: var(--so-badge-font-size-sm);
|
|
43
|
+
--so-badge-padding: var(--so-badge-padding-sm);
|
|
44
|
+
--so-badge-dot-size: var(--so-badge-dot-size-sm);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.so-badge--size-lg {
|
|
48
|
+
--so-badge-height: var(--so-badge-height-lg);
|
|
49
|
+
--so-badge-font-size: var(--so-badge-font-size-lg);
|
|
50
|
+
--so-badge-padding: var(--so-badge-padding-lg);
|
|
51
|
+
--so-badge-dot-size: var(--so-badge-dot-size-lg);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.so-badge--size-xl {
|
|
55
|
+
--so-badge-height: var(--so-badge-height-xl);
|
|
56
|
+
--so-badge-font-size: var(--so-badge-font-size-xl);
|
|
57
|
+
--so-badge-padding: var(--so-badge-padding-xl);
|
|
58
|
+
--so-badge-dot-size: var(--so-badge-dot-size-xl);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.so-badge--size-2xl {
|
|
62
|
+
--so-badge-height: var(--so-badge-height-2xl);
|
|
63
|
+
--so-badge-font-size: var(--so-badge-font-size-2xl);
|
|
64
|
+
--so-badge-padding: var(--so-badge-padding-2xl);
|
|
65
|
+
--so-badge-dot-size: var(--so-badge-dot-size-2xl);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.so-badge__anchor {
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.so-badge__anchor:empty {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.so-badge__indicator {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
|
|
82
|
+
min-inline-size: var(--so-badge-height);
|
|
83
|
+
block-size: var(--so-badge-height);
|
|
84
|
+
padding-inline: var(--so-badge-padding);
|
|
85
|
+
|
|
86
|
+
font-size: var(--so-badge-font-size);
|
|
87
|
+
line-height: 1;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.so-badge[data-dot='true'] > .so-badge__indicator {
|
|
94
|
+
inline-size: var(--so-badge-dot-size);
|
|
95
|
+
min-inline-size: var(--so-badge-dot-size);
|
|
96
|
+
block-size: var(--so-badge-dot-size);
|
|
97
|
+
padding: 0;
|
|
98
|
+
border-radius: 50%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.so-badge:has(> .so-badge__anchor:not(:empty)) > .so-badge__indicator {
|
|
102
|
+
position: absolute;
|
|
103
|
+
inset-block-start: 0;
|
|
104
|
+
inset-inline-end: 0;
|
|
105
|
+
translate: calc(50% * var(--so-dir-sign)) -50%;
|
|
106
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* Breadcrumbs is a wrapping navigation row. Each collection item keeps its li
|
|
2
|
+
* while collapsed ancestors are represented by Menu items at the overflow stop.
|
|
3
|
+
* The first visible li hosts that stop immediately after its own native anchor.
|
|
4
|
+
*
|
|
5
|
+
* Root variables expose the gap scale and separator geometry to themes. Gap
|
|
6
|
+
* defaults follow Button's shared scale; a theme can override Breadcrumbs alone.
|
|
7
|
+
* Each size resolves its step into --so-breadcrumbs-gap for the list and items.
|
|
8
|
+
* Text uses ItemRow's font scale; appearance and separator content belong to the theme. */
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--so-breadcrumbs-gap-sm: var(--so-button-gap-sm);
|
|
12
|
+
--so-breadcrumbs-gap-normal: var(--so-button-gap-normal);
|
|
13
|
+
--so-breadcrumbs-gap-lg: var(--so-button-gap-lg);
|
|
14
|
+
--so-breadcrumbs-gap-xl: var(--so-button-gap-xl);
|
|
15
|
+
--so-breadcrumbs-gap-2xl: var(--so-button-gap-2xl);
|
|
16
|
+
|
|
17
|
+
--so-breadcrumbs-separator-size: 0.5em;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Resolve the normal step locally so ancestor overrides of the scale are inherited. */
|
|
21
|
+
.so-breadcrumbs,
|
|
22
|
+
.so-breadcrumbs-item {
|
|
23
|
+
--so-breadcrumbs-gap: var(--so-breadcrumbs-gap-normal);
|
|
24
|
+
min-inline-size: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.so-breadcrumbs__list {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-wrap: wrap;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: var(--so-breadcrumbs-gap);
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 0;
|
|
34
|
+
list-style: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.so-breadcrumbs-item {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: var(--so-breadcrumbs-gap);
|
|
41
|
+
max-inline-size: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* The link keeps ItemRow's slots and font, with inline navigation geometry. */
|
|
45
|
+
.so-breadcrumbs__link {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--so-breadcrumbs-gap);
|
|
49
|
+
min-inline-size: 0;
|
|
50
|
+
height: auto;
|
|
51
|
+
padding-inline: 0;
|
|
52
|
+
cursor: default;
|
|
53
|
+
overflow-wrap: anywhere;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.so-breadcrumbs__link[href] {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Long labels wrap with the trail instead of inheriting Button's ellipsis. */
|
|
61
|
+
.so-breadcrumbs__link > .so-button__text {
|
|
62
|
+
white-space: normal;
|
|
63
|
+
overflow: visible;
|
|
64
|
+
text-overflow: clip;
|
|
65
|
+
text-align: start;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.so-breadcrumbs__separator {
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
flex: none;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
inline-size: var(--so-breadcrumbs-separator-size);
|
|
73
|
+
user-select: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.so-breadcrumbs--size-sm,
|
|
77
|
+
.so-breadcrumbs-item--size-sm {
|
|
78
|
+
--so-breadcrumbs-gap: var(--so-breadcrumbs-gap-sm);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.so-breadcrumbs--size-lg,
|
|
82
|
+
.so-breadcrumbs-item--size-lg {
|
|
83
|
+
--so-breadcrumbs-gap: var(--so-breadcrumbs-gap-lg);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.so-breadcrumbs--size-xl,
|
|
87
|
+
.so-breadcrumbs-item--size-xl {
|
|
88
|
+
--so-breadcrumbs-gap: var(--so-breadcrumbs-gap-xl);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.so-breadcrumbs--size-2xl,
|
|
92
|
+
.so-breadcrumbs-item--size-2xl {
|
|
93
|
+
--so-breadcrumbs-gap: var(--so-breadcrumbs-gap-2xl);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Fade the source item once; embedded controls inherit the reset opacity. */
|
|
97
|
+
.so-breadcrumbs-item[data-disabled='true'] {
|
|
98
|
+
opacity: var(--so-disabled-opacity);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.so-breadcrumbs-item[data-disabled='true'] > * {
|
|
102
|
+
--so-disabled-opacity: 1;
|
|
103
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/* Geometry is shared by all themes; every configurable dimension has a public default. */
|
|
2
|
+
:root {
|
|
3
|
+
--so-code-block-padding: 1em;
|
|
4
|
+
--so-code-block-gap: 0.5em;
|
|
5
|
+
--so-code-block-font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
6
|
+
--so-code-block-font-size: 0.8125em;
|
|
7
|
+
--so-code-block-toolbar-font-size: 0.75rem;
|
|
8
|
+
--so-code-block-line-height: 1.6;
|
|
9
|
+
--so-code-block-tab-size: 4;
|
|
10
|
+
--so-code-block-header-height-sm: 2.25rem;
|
|
11
|
+
--so-code-block-header-height-normal: 2.5rem;
|
|
12
|
+
--so-code-block-header-height-lg: 2.75rem;
|
|
13
|
+
--so-code-block-header-height-xl: 3rem;
|
|
14
|
+
--so-code-block-header-height-2xl: 3.25rem;
|
|
15
|
+
--so-code-block-gutter-width: 2ch;
|
|
16
|
+
}
|
|
17
|
+
.so-code-block {
|
|
18
|
+
--so-code-block-header-height: var(--so-code-block-header-height-normal);
|
|
19
|
+
position: relative;
|
|
20
|
+
display: block;
|
|
21
|
+
min-inline-size: 0;
|
|
22
|
+
max-inline-size: 100%;
|
|
23
|
+
}
|
|
24
|
+
.so-code-block__header {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--so-code-block-gap);
|
|
28
|
+
min-block-size: var(--so-code-block-header-height);
|
|
29
|
+
padding-inline: var(--so-code-block-padding);
|
|
30
|
+
}
|
|
31
|
+
.so-code-block__title {
|
|
32
|
+
flex: 1;
|
|
33
|
+
min-inline-size: 0;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
font-family: var(--so-code-block-font-family);
|
|
38
|
+
font-size: var(--so-code-block-toolbar-font-size);
|
|
39
|
+
}
|
|
40
|
+
.so-code-block__tabs {
|
|
41
|
+
min-inline-size: 0;
|
|
42
|
+
}
|
|
43
|
+
.so-code-block__tabs > .so-tabs__bar > .so-tabs__list {
|
|
44
|
+
flex-wrap: nowrap;
|
|
45
|
+
overflow-x: auto;
|
|
46
|
+
}
|
|
47
|
+
.so-code-block__content {
|
|
48
|
+
position: relative;
|
|
49
|
+
min-inline-size: 0;
|
|
50
|
+
}
|
|
51
|
+
.so-code-block__pre {
|
|
52
|
+
margin: 0;
|
|
53
|
+
padding: var(--so-code-block-padding);
|
|
54
|
+
overflow: auto;
|
|
55
|
+
max-inline-size: 100%;
|
|
56
|
+
font-family: var(--so-code-block-font-family);
|
|
57
|
+
font-size: var(--so-code-block-font-size);
|
|
58
|
+
line-height: var(--so-code-block-line-height);
|
|
59
|
+
tab-size: var(--so-code-block-tab-size);
|
|
60
|
+
white-space: pre;
|
|
61
|
+
text-align: left;
|
|
62
|
+
}
|
|
63
|
+
/* A separate row keeps arbitrary copy content outside the code scrollport. */
|
|
64
|
+
.so-code-block[data-header='false'][data-copyable='true'] > .so-code-block__content {
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-columns: minmax(0, 1fr);
|
|
67
|
+
}
|
|
68
|
+
.so-code-block[data-header='false'][data-copyable='true']
|
|
69
|
+
> .so-code-block__content
|
|
70
|
+
> .so-code-block__pre {
|
|
71
|
+
grid-row: 2;
|
|
72
|
+
min-inline-size: 0;
|
|
73
|
+
}
|
|
74
|
+
.so-code-block__code {
|
|
75
|
+
display: block;
|
|
76
|
+
min-inline-size: max-content;
|
|
77
|
+
font: inherit;
|
|
78
|
+
}
|
|
79
|
+
.so-code-block__line {
|
|
80
|
+
display: flex;
|
|
81
|
+
min-block-size: 1lh;
|
|
82
|
+
}
|
|
83
|
+
.so-code-block__text {
|
|
84
|
+
min-inline-size: 0;
|
|
85
|
+
}
|
|
86
|
+
.so-code-block__gutter {
|
|
87
|
+
flex: none;
|
|
88
|
+
inline-size: var(--so-code-block-gutter-width);
|
|
89
|
+
padding-inline-end: var(--so-code-block-gap);
|
|
90
|
+
text-align: right;
|
|
91
|
+
user-select: none;
|
|
92
|
+
}
|
|
93
|
+
.so-code-block[data-wrap='true'] > .so-code-block__content > .so-code-block__pre,
|
|
94
|
+
.so-code-block[data-wrap='true']
|
|
95
|
+
> .so-code-block__tabs
|
|
96
|
+
> .so-code-block__content
|
|
97
|
+
> .so-code-block__pre {
|
|
98
|
+
white-space: pre-wrap;
|
|
99
|
+
overflow-wrap: anywhere;
|
|
100
|
+
}
|
|
101
|
+
.so-code-block[data-wrap='true']
|
|
102
|
+
> .so-code-block__content
|
|
103
|
+
> .so-code-block__pre
|
|
104
|
+
> .so-code-block__code,
|
|
105
|
+
.so-code-block[data-wrap='true']
|
|
106
|
+
> .so-code-block__tabs
|
|
107
|
+
> .so-code-block__content
|
|
108
|
+
> .so-code-block__pre
|
|
109
|
+
> .so-code-block__code {
|
|
110
|
+
min-inline-size: 0;
|
|
111
|
+
}
|
|
112
|
+
.so-code-block__copy {
|
|
113
|
+
flex: none;
|
|
114
|
+
font-size: var(--so-code-block-toolbar-font-size);
|
|
115
|
+
min-block-size: calc(var(--so-code-block-header-height) - 2 * var(--so-code-block-gap));
|
|
116
|
+
block-size: auto;
|
|
117
|
+
padding-block: 0;
|
|
118
|
+
padding-inline: var(--so-code-block-gap);
|
|
119
|
+
line-height: var(--so-code-block-line-height);
|
|
120
|
+
}
|
|
121
|
+
.so-code-block[data-header='false'] > .so-code-block__content > .so-code-block__copy {
|
|
122
|
+
grid-row: 1;
|
|
123
|
+
justify-self: end;
|
|
124
|
+
max-inline-size: calc(100% - 2 * var(--so-code-block-gap));
|
|
125
|
+
margin-block-start: var(--so-code-block-gap);
|
|
126
|
+
margin-inline: var(--so-code-block-gap);
|
|
127
|
+
}
|
|
128
|
+
.so-code-block__status {
|
|
129
|
+
display: block;
|
|
130
|
+
padding-inline: var(--so-code-block-padding);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.so-code-block__status:empty {
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
|
136
|
+
/* Embedded Tabs shares one compact toolbar with its copy action. */
|
|
137
|
+
.so-code-block__tabs > .so-tabs__bar {
|
|
138
|
+
min-block-size: var(--so-code-block-header-height);
|
|
139
|
+
padding-inline: var(--so-code-block-padding);
|
|
140
|
+
gap: var(--so-code-block-gap);
|
|
141
|
+
overflow: visible;
|
|
142
|
+
}
|
|
143
|
+
.so-code-block__tabs > .so-tabs__bar > .so-tabs__list {
|
|
144
|
+
gap: 0;
|
|
145
|
+
}
|
|
146
|
+
.so-code-block__tabs > .so-tabs__bar > .so-tabs__list > .so-tabs-item > .so-button {
|
|
147
|
+
font-size: var(--so-code-block-toolbar-font-size);
|
|
148
|
+
min-block-size: var(--so-code-block-header-height);
|
|
149
|
+
block-size: auto;
|
|
150
|
+
padding-block: 0;
|
|
151
|
+
padding-inline: var(--so-code-block-gap);
|
|
152
|
+
}
|
|
153
|
+
.so-code-block__tabs > .so-tabs__bar > .so-tabs__trailing {
|
|
154
|
+
flex: none;
|
|
155
|
+
max-inline-size: 50%;
|
|
156
|
+
gap: var(--so-code-block-gap);
|
|
157
|
+
padding-inline: 0;
|
|
158
|
+
}
|
|
159
|
+
.so-code-block__tabs > .so-tabs-content {
|
|
160
|
+
margin-block: 0;
|
|
161
|
+
}
|
|
162
|
+
.so-code-block--size-sm {
|
|
163
|
+
--so-code-block-header-height: var(--so-code-block-header-height-sm);
|
|
164
|
+
}
|
|
165
|
+
.so-code-block--size-lg {
|
|
166
|
+
--so-code-block-header-height: var(--so-code-block-header-height-lg);
|
|
167
|
+
}
|
|
168
|
+
.so-code-block--size-xl {
|
|
169
|
+
--so-code-block-header-height: var(--so-code-block-header-height-xl);
|
|
170
|
+
}
|
|
171
|
+
.so-code-block--size-2xl {
|
|
172
|
+
--so-code-block-header-height: var(--so-code-block-header-height-2xl);
|
|
173
|
+
}
|
package/src/components/tabs.css
CHANGED
|
@@ -43,10 +43,18 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.so-tabs {
|
|
46
|
+
min-width: 0;
|
|
46
47
|
display: flex;
|
|
47
48
|
width: 100%;
|
|
48
49
|
}
|
|
49
50
|
|
|
51
|
+
/* Keep a long tab row reachable inside its own viewport on narrow screens. */
|
|
52
|
+
.so-tabs--orientation-horizontal > .so-tabs__bar {
|
|
53
|
+
min-width: 0;
|
|
54
|
+
overflow-x: auto;
|
|
55
|
+
overflow-y: hidden;
|
|
56
|
+
}
|
|
57
|
+
|
|
50
58
|
.so-tabs--orientation-horizontal {
|
|
51
59
|
flex-direction: column;
|
|
52
60
|
}
|
|
@@ -122,22 +130,35 @@
|
|
|
122
130
|
justify-content: center;
|
|
123
131
|
}
|
|
124
132
|
|
|
125
|
-
/*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* Состояние — `data-disabled` корня: ядро пишет его на любом теге, а
|
|
129
|
-
* модификатора `--disabled` у блока нет. Табы выключены вместе с набором — их
|
|
130
|
-
* `disabled` распространяется от владельца — и под погасшим корнем второй раз
|
|
131
|
-
* не гаснут. */
|
|
133
|
+
/* Keep panel content readable when the set is disabled. Only the tab bar
|
|
134
|
+
* dims; its disabled descendants must not dim a second time. Interaction
|
|
135
|
+
* stays disabled for the whole set, including its panels. */
|
|
132
136
|
.so-tabs[data-disabled='true'] {
|
|
133
|
-
opacity: var(--so-disabled-opacity);
|
|
134
137
|
pointer-events: none;
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
.so-tabs[data-disabled='true'] >
|
|
140
|
+
.so-tabs[data-disabled='true'] > .so-tabs__bar {
|
|
141
|
+
opacity: var(--so-disabled-opacity);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.so-tabs[data-disabled='true'] > .so-tabs__bar > * {
|
|
138
145
|
--so-disabled-opacity: 1;
|
|
139
146
|
}
|
|
140
147
|
|
|
148
|
+
/* WebKit scrolls a focused container only when the container can receive
|
|
149
|
+
* pointer events. Restore the measured scroll surface or a focused inner stop,
|
|
150
|
+
* while its contents
|
|
151
|
+
* keep the disabled subtree's pointer policy and native disabled state. */
|
|
152
|
+
.so-tabs[data-disabled='true'] > .so-tabs__bar:is([tabindex='0'], :focus-within) {
|
|
153
|
+
pointer-events: auto;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.so-tabs[data-disabled='true']
|
|
157
|
+
> .so-tabs__bar:is([tabindex='0'], :focus-within)
|
|
158
|
+
> :is(.so-tabs__leading, .so-tabs__list, .so-tabs__trailing) {
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
141
162
|
/* Строка таба и кнопка закрытия — соседи в одну линию. Внутри строки кнопке
|
|
142
163
|
* не место: строка — `<button role="tab">`, интерактивный потомок у кнопки
|
|
143
164
|
* запрещён, а подпись крестика вошла бы в имя таба. Поэтому всё, что
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* A group of buttons, laid out on one axis. The buttons keep the Button scale. */
|
|
2
|
+
:root {
|
|
3
|
+
--so-toggle-group-gap: 0.25rem;
|
|
4
|
+
--so-toggle-group-bleed: 0.25rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.so-toggle-group {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
min-inline-size: 0;
|
|
10
|
+
max-inline-size: 100%;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--so-toggle-group-gap);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Keep every action reachable without widening the page. Padding preserves
|
|
16
|
+
* the buttons' outer focus rings inside the scroll viewport. */
|
|
17
|
+
.so-toggle-group--orientation-horizontal {
|
|
18
|
+
overflow-x: auto;
|
|
19
|
+
padding: var(--so-toggle-group-bleed);
|
|
20
|
+
scroll-padding-inline: var(--so-toggle-group-bleed);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.so-toggle-group--orientation-horizontal > .so-toggle-group-item {
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.so-toggle-group--orientation-vertical {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: stretch;
|
|
30
|
+
}
|
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.check-box, so.accordion, so.date-input,
|
|
48
|
-
so.modal, so.dialog, so.drag-and-drop, so.drawer, so.input, so.label, so.field, so.list-box,
|
|
49
|
-
so.menu, so.number-input, so.pagination, so.popover, so.calendar, so.date-picker,
|
|
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,
|
|
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
51
|
so.skeleton, so.slider, so.switch, so.table, so.tabs, so.tags, so.textarea, so.toasts,
|
|
52
|
-
so.tooltip;
|
|
52
|
+
so.tooltip, so.code-block;
|
|
53
53
|
|
|
54
54
|
@import './reset.css' layer(so.reset);
|
|
55
55
|
@import './direction.css' layer(so.direction);
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
@import './place.css' layer(so.place);
|
|
64
64
|
@import './components/icon.css' layer(so.icon);
|
|
65
65
|
@import './components/button.css' layer(so.button);
|
|
66
|
+
@import './components/toggle-group.css' layer(so.toggle-group);
|
|
66
67
|
@import './components/check-box.css' layer(so.check-box);
|
|
67
68
|
@import './components/accordion.css' layer(so.accordion);
|
|
68
69
|
@import './components/date-input.css' layer(so.date-input);
|
|
@@ -71,10 +72,12 @@
|
|
|
71
72
|
@import './components/drag-and-drop.css' layer(so.drag-and-drop);
|
|
72
73
|
@import './components/drawer.css' layer(so.drawer);
|
|
73
74
|
@import './components/input.css' layer(so.input);
|
|
75
|
+
@import './components/badge.css' layer(so.badge);
|
|
74
76
|
@import './components/label.css' layer(so.label);
|
|
75
77
|
@import './components/field.css' layer(so.field);
|
|
76
78
|
@import './components/list-box.css' layer(so.list-box);
|
|
77
79
|
@import './components/menu.css' layer(so.menu);
|
|
80
|
+
@import './components/breadcrumbs.css' layer(so.breadcrumbs);
|
|
78
81
|
@import './components/number-input.css' layer(so.number-input);
|
|
79
82
|
@import './components/pagination.css' layer(so.pagination);
|
|
80
83
|
@import './components/popover.css' layer(so.popover);
|
|
@@ -95,3 +98,5 @@
|
|
|
95
98
|
@import './components/textarea.css' layer(so.textarea);
|
|
96
99
|
@import './components/toasts.css' layer(so.toasts);
|
|
97
100
|
@import './components/tooltip.css' layer(so.tooltip);
|
|
101
|
+
|
|
102
|
+
@import './components/code-block.css' layer(so.code-block);
|
package/theme-contract.json
CHANGED
|
@@ -19,6 +19,24 @@
|
|
|
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-badge",
|
|
24
|
+
"sources": ["packages/core/src/components/custom/badge/badge.class.ts"],
|
|
25
|
+
"description": "Noninteractive badge wrapper.",
|
|
26
|
+
"scope": "Badge"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "so-breadcrumbs",
|
|
30
|
+
"sources": ["packages/core/src/components/custom/breadcrumbs/breadcrumbs.class.ts"],
|
|
31
|
+
"description": "Navigation landmark containing an ordered trail of locations.",
|
|
32
|
+
"scope": "so-breadcrumbs"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "so-breadcrumbs-item",
|
|
36
|
+
"sources": ["packages/core/src/components/custom/breadcrumbs/item/item.class.ts"],
|
|
37
|
+
"description": "Mounted breadcrumb collection item, retaining its identity while collapsed.",
|
|
38
|
+
"scope": "so-breadcrumbs-item"
|
|
39
|
+
},
|
|
22
40
|
{
|
|
23
41
|
"name": "so-button",
|
|
24
42
|
"sources": ["packages/core/src/components/custom/button/button.class.ts"],
|
|
@@ -43,6 +61,12 @@
|
|
|
43
61
|
"description": "Root of check box. Inherited component classes use the concrete component's base name.",
|
|
44
62
|
"scope": "so-check-box"
|
|
45
63
|
},
|
|
64
|
+
{
|
|
65
|
+
"name": "so-code-block",
|
|
66
|
+
"sources": ["packages/core/src/components/custom/code-block/code-block.class.ts"],
|
|
67
|
+
"description": "Read-only source display containing an optional title, Tabs-backed snippets and a copy action.",
|
|
68
|
+
"scope": "CodeBlock"
|
|
69
|
+
},
|
|
46
70
|
{
|
|
47
71
|
"name": "so-component-view",
|
|
48
72
|
"sources": ["packages/core/src/components/base/component-view/component-view.class.ts"],
|
|
@@ -307,6 +331,24 @@
|
|
|
307
331
|
"description": "Root of toasts item. Inherited component classes use the concrete component's base name.",
|
|
308
332
|
"scope": "so-toasts-item"
|
|
309
333
|
},
|
|
334
|
+
{
|
|
335
|
+
"name": "so-toggle-button",
|
|
336
|
+
"sources": ["packages/core/src/components/custom/toggle-button/toggle-button.class.ts"],
|
|
337
|
+
"description": "Identity class of a toggle button; the node also carries the inherited so-button surface and modifiers.",
|
|
338
|
+
"scope": "so-toggle-button"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "so-toggle-group",
|
|
342
|
+
"sources": ["packages/core/src/components/custom/toggle-group/toggle-group.class.ts"],
|
|
343
|
+
"description": "Root of the toggle button collection; contains buttons and receives the accessible group name.",
|
|
344
|
+
"scope": "so-toggle-group"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "so-toggle-group-item",
|
|
348
|
+
"sources": ["packages/core/src/components/custom/toggle-group/item/item.class.ts"],
|
|
349
|
+
"description": "Identity class of a toggle button; the node also carries the inherited so-button surface and modifiers.",
|
|
350
|
+
"scope": "so-toggle-group-item"
|
|
351
|
+
},
|
|
310
352
|
{
|
|
311
353
|
"name": "so-tooltip",
|
|
312
354
|
"sources": ["packages/core/src/components/custom/tooltip/tooltip.class.ts"],
|
|
@@ -367,17 +409,120 @@
|
|
|
367
409
|
"description": "header part of accordion item. Availability follows the rendered component structure.",
|
|
368
410
|
"scope": "so-accordion-item"
|
|
369
411
|
},
|
|
412
|
+
{
|
|
413
|
+
"name": "so-badge__anchor",
|
|
414
|
+
"sources": [
|
|
415
|
+
"packages/ui/angular/src/components/badge/badge.component.html",
|
|
416
|
+
"packages/ui/react/src/components/badge/Badge.tsx",
|
|
417
|
+
"packages/ui/solid/src/components/badge/Badge.tsx",
|
|
418
|
+
"packages/ui/svelte/src/components/badge/Badge.svelte",
|
|
419
|
+
"packages/ui/vue/src/components/badge/Badge.vue",
|
|
420
|
+
"packages/ui/webc/src/components/badge/badge.template.ts"
|
|
421
|
+
],
|
|
422
|
+
"description": "Arbitrary anchor content.",
|
|
423
|
+
"scope": "Badge"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "so-badge__indicator",
|
|
427
|
+
"sources": [
|
|
428
|
+
"packages/ui/angular/src/components/badge/badge.component.html",
|
|
429
|
+
"packages/ui/react/src/components/badge/Badge.tsx",
|
|
430
|
+
"packages/ui/solid/src/components/badge/Badge.tsx",
|
|
431
|
+
"packages/ui/svelte/src/components/badge/Badge.svelte",
|
|
432
|
+
"packages/ui/vue/src/components/badge/Badge.vue",
|
|
433
|
+
"packages/ui/webc/src/components/badge/badge.template.ts"
|
|
434
|
+
],
|
|
435
|
+
"description": "Badge text or dot; receives the Badge ARIA set.",
|
|
436
|
+
"scope": "Badge"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "so-breadcrumbs__link",
|
|
440
|
+
"sources": [
|
|
441
|
+
"packages/ui/angular/src/components/breadcrumbs/item/breadcrumbs-item.component.html",
|
|
442
|
+
"packages/ui/react/src/components/breadcrumbs/item/Item.tsx",
|
|
443
|
+
"packages/ui/solid/src/components/breadcrumbs/item/Item.tsx",
|
|
444
|
+
"packages/ui/svelte/src/components/breadcrumbs/item/Item.svelte",
|
|
445
|
+
"packages/ui/vue/src/components/breadcrumbs/item/Item.vue",
|
|
446
|
+
"packages/ui/webc/src/components/breadcrumbs/item/breadcrumbs-item.template.ts"
|
|
447
|
+
],
|
|
448
|
+
"description": "Native anchor for a breadcrumb; without href it presents text, and activation determines aria-current.",
|
|
449
|
+
"scope": "so-breadcrumbs__link"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "so-breadcrumbs__list",
|
|
453
|
+
"sources": [
|
|
454
|
+
"packages/ui/angular/src/components/breadcrumbs/breadcrumbs.component.html",
|
|
455
|
+
"packages/ui/react/src/components/breadcrumbs/Breadcrumbs.tsx",
|
|
456
|
+
"packages/ui/solid/src/components/breadcrumbs/Breadcrumbs.tsx",
|
|
457
|
+
"packages/ui/svelte/src/components/breadcrumbs/Breadcrumbs.svelte",
|
|
458
|
+
"packages/ui/vue/src/components/breadcrumbs/Breadcrumbs.vue",
|
|
459
|
+
"packages/ui/webc/src/components/breadcrumbs/breadcrumbs.template.ts"
|
|
460
|
+
],
|
|
461
|
+
"description": "Ordered list of mounted breadcrumb items; collapsed ancestors remain in the collection.",
|
|
462
|
+
"scope": "so-breadcrumbs__list"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "so-breadcrumbs__overflow",
|
|
466
|
+
"sources": [
|
|
467
|
+
"packages/ui/angular/src/components/breadcrumbs/item/breadcrumbs-item.component.html",
|
|
468
|
+
"packages/ui/react/src/components/breadcrumbs/item/Item.tsx",
|
|
469
|
+
"packages/ui/solid/src/components/breadcrumbs/item/Item.tsx",
|
|
470
|
+
"packages/ui/svelte/src/components/breadcrumbs/item/Item.svelte",
|
|
471
|
+
"packages/ui/vue/src/components/breadcrumbs/item/Item.vue",
|
|
472
|
+
"packages/ui/webc/src/components/breadcrumbs/item/breadcrumbs-item.template.ts"
|
|
473
|
+
],
|
|
474
|
+
"description": "Internal Menu wrapper anchoring the hidden-location panel.",
|
|
475
|
+
"scope": "so-breadcrumbs__overflow"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "so-breadcrumbs__separator",
|
|
479
|
+
"sources": [
|
|
480
|
+
"packages/ui/angular/src/components/breadcrumbs/item/breadcrumbs-item.component.html",
|
|
481
|
+
"packages/ui/react/src/components/breadcrumbs/item/Item.tsx",
|
|
482
|
+
"packages/ui/solid/src/components/breadcrumbs/item/Item.tsx",
|
|
483
|
+
"packages/ui/svelte/src/components/breadcrumbs/item/Item.svelte",
|
|
484
|
+
"packages/ui/vue/src/components/breadcrumbs/item/Item.vue",
|
|
485
|
+
"packages/ui/webc/src/components/breadcrumbs/item/breadcrumbs-item.template.ts"
|
|
486
|
+
],
|
|
487
|
+
"description": "Decorative separator before a location; hidden from the accessibility tree.",
|
|
488
|
+
"scope": "so-breadcrumbs__separator"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "so-breadcrumbs__trigger",
|
|
492
|
+
"sources": [
|
|
493
|
+
"packages/ui/angular/src/components/breadcrumbs/item/breadcrumbs-item.component.html",
|
|
494
|
+
"packages/ui/react/src/components/breadcrumbs/item/Item.tsx",
|
|
495
|
+
"packages/ui/solid/src/components/breadcrumbs/item/Item.tsx",
|
|
496
|
+
"packages/ui/svelte/src/components/breadcrumbs/item/Item.svelte",
|
|
497
|
+
"packages/ui/vue/src/components/breadcrumbs/item/Item.vue",
|
|
498
|
+
"packages/ui/webc/src/components/breadcrumbs/item/breadcrumbs-item.template.ts"
|
|
499
|
+
],
|
|
500
|
+
"description": "Localized overflow Button opening the hidden-location Menu.",
|
|
501
|
+
"scope": "so-breadcrumbs__trigger"
|
|
502
|
+
},
|
|
370
503
|
{
|
|
371
504
|
"name": "so-button__text",
|
|
372
505
|
"sources": [
|
|
373
506
|
"packages/ui/angular/src/components/button/button.component.html",
|
|
507
|
+
"packages/ui/angular/src/components/toggle-button/toggle-button.component.html",
|
|
508
|
+
"packages/ui/angular/src/components/toggle-group/item/toggle-group-item.component.html",
|
|
374
509
|
"packages/ui/react/src/components/button/Button.tsx",
|
|
510
|
+
"packages/ui/react/src/components/toggle-button/ToggleButton.tsx",
|
|
511
|
+
"packages/ui/react/src/components/toggle-group/item/Item.tsx",
|
|
375
512
|
"packages/ui/solid/src/components/button/Button.tsx",
|
|
513
|
+
"packages/ui/solid/src/components/toggle-button/ToggleButton.tsx",
|
|
514
|
+
"packages/ui/solid/src/components/toggle-group/item/Item.tsx",
|
|
376
515
|
"packages/ui/svelte/src/components/button/Button.svelte",
|
|
377
516
|
"packages/ui/svelte/src/components/item-row/ItemRow.svelte",
|
|
517
|
+
"packages/ui/svelte/src/components/toggle-button/ToggleButton.svelte",
|
|
518
|
+
"packages/ui/svelte/src/components/toggle-group/item/Item.svelte",
|
|
378
519
|
"packages/ui/vue/src/components/button/Button.vue",
|
|
379
520
|
"packages/ui/vue/src/components/item-row/ItemRow.vue",
|
|
380
|
-
"packages/ui/
|
|
521
|
+
"packages/ui/vue/src/components/toggle-button/ToggleButton.vue",
|
|
522
|
+
"packages/ui/vue/src/components/toggle-group/item/Item.vue",
|
|
523
|
+
"packages/ui/webc/src/components/button/button.template.ts",
|
|
524
|
+
"packages/ui/webc/src/components/toggle-button/toggle-button.template.ts",
|
|
525
|
+
"packages/ui/webc/src/components/toggle-group/item/toggle-group-item.template.ts"
|
|
381
526
|
],
|
|
382
527
|
"description": "text part of button. Availability follows the rendered component structure.",
|
|
383
528
|
"scope": "so-button"
|
|
@@ -667,6 +812,149 @@
|
|
|
667
812
|
"description": "mark part of check box. Availability follows the rendered component structure.",
|
|
668
813
|
"scope": "so-check-box"
|
|
669
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"name": "so-code-block__code",
|
|
817
|
+
"sources": [
|
|
818
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
819
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
820
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
821
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
822
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
823
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
824
|
+
],
|
|
825
|
+
"description": "Native code container with normalized programming-language metadata; source is rendered as text.",
|
|
826
|
+
"scope": "CodeBlock"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "so-code-block__content",
|
|
830
|
+
"sources": [
|
|
831
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
832
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
833
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
834
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
835
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
836
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
837
|
+
],
|
|
838
|
+
"description": "Single-source body or a Tabs.Content panel belonging to one snippet.",
|
|
839
|
+
"scope": "CodeBlock"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "so-code-block__copy",
|
|
843
|
+
"sources": [
|
|
844
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
845
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
846
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
847
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
848
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
849
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
850
|
+
],
|
|
851
|
+
"description": "Embedded native Button for copying the clicked source snapshot; disabled for empty source or a pending write.",
|
|
852
|
+
"scope": "CodeBlock"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "so-code-block__gutter",
|
|
856
|
+
"sources": [
|
|
857
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
858
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
859
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
860
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
861
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
862
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
863
|
+
],
|
|
864
|
+
"description": "Optional logical line number, hidden from assistive technology and excluded from text selection.",
|
|
865
|
+
"scope": "CodeBlock"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "so-code-block__header",
|
|
869
|
+
"sources": [
|
|
870
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
871
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
872
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
873
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
874
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
875
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
876
|
+
],
|
|
877
|
+
"description": "Optional title row; absent without a title or active filename. Its copy action uses intrinsic width.",
|
|
878
|
+
"scope": "CodeBlock"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"name": "so-code-block__line",
|
|
882
|
+
"sources": [
|
|
883
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
884
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
885
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
886
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
887
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
888
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
889
|
+
],
|
|
890
|
+
"description": "One logical source line, preserving its original ending and optional highlighted state.",
|
|
891
|
+
"scope": "CodeBlock"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"name": "so-code-block__pre",
|
|
895
|
+
"sources": [
|
|
896
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
897
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
898
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
899
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
900
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
901
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
902
|
+
],
|
|
903
|
+
"description": "Labelled, focusable LTR scroll region. Its maximum height affects code rather than the title or Tabs bar.",
|
|
904
|
+
"scope": "CodeBlock"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"name": "so-code-block__status",
|
|
908
|
+
"sources": [
|
|
909
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
910
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
911
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
912
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
913
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
914
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
915
|
+
],
|
|
916
|
+
"description": "Polite live region for localized copy success or failure feedback.",
|
|
917
|
+
"scope": "CodeBlock"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"name": "so-code-block__tabs",
|
|
921
|
+
"sources": [
|
|
922
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
923
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
924
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
925
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
926
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
927
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
928
|
+
],
|
|
929
|
+
"description": "Embedded Tabs root; its trailing slot holds Copy when there is no separate title row.",
|
|
930
|
+
"scope": "CodeBlock"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "so-code-block__text",
|
|
934
|
+
"sources": [
|
|
935
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
936
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
937
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
938
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
939
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
940
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
941
|
+
],
|
|
942
|
+
"description": "Exact source text of a logical line, separate from the decorative line number.",
|
|
943
|
+
"scope": "CodeBlock"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "so-code-block__title",
|
|
947
|
+
"sources": [
|
|
948
|
+
"packages/ui/angular/src/components/code-block/code-block.component.html",
|
|
949
|
+
"packages/ui/react/src/components/code-block/CodeBlock.tsx",
|
|
950
|
+
"packages/ui/solid/src/components/code-block/CodeBlock.tsx",
|
|
951
|
+
"packages/ui/svelte/src/components/code-block/CodeBlock.svelte",
|
|
952
|
+
"packages/ui/vue/src/components/code-block/CodeBlock.vue",
|
|
953
|
+
"packages/ui/webc/src/components/code-block/code-block.template.ts"
|
|
954
|
+
],
|
|
955
|
+
"description": "Visible file title or the filename of the active snippet, rendered as text.",
|
|
956
|
+
"scope": "CodeBlock"
|
|
957
|
+
},
|
|
670
958
|
{
|
|
671
959
|
"name": "so-date-input__clear",
|
|
672
960
|
"sources": [
|
|
@@ -1356,21 +1644,25 @@
|
|
|
1356
1644
|
"packages/ui/angular/src/components/menu/popover-item/menu-popover-item.component.html",
|
|
1357
1645
|
"packages/ui/angular/src/components/menu/radio-item/menu-radio-item.component.html",
|
|
1358
1646
|
"packages/ui/angular/src/components/menu/submenu/menu-submenu.component.html",
|
|
1647
|
+
"packages/ui/react/src/components/breadcrumbs/overflow-item/Item.tsx",
|
|
1359
1648
|
"packages/ui/react/src/components/menu/checkbox-item/CheckboxItem.tsx",
|
|
1360
1649
|
"packages/ui/react/src/components/menu/item/Item.tsx",
|
|
1361
1650
|
"packages/ui/react/src/components/menu/popover-item/PopoverItem.tsx",
|
|
1362
1651
|
"packages/ui/react/src/components/menu/radio-item/RadioItem.tsx",
|
|
1363
1652
|
"packages/ui/react/src/components/menu/submenu/Submenu.tsx",
|
|
1653
|
+
"packages/ui/solid/src/components/breadcrumbs/overflow-item/Item.tsx",
|
|
1364
1654
|
"packages/ui/solid/src/components/menu/checkbox-item/CheckboxItem.tsx",
|
|
1365
1655
|
"packages/ui/solid/src/components/menu/item/Item.tsx",
|
|
1366
1656
|
"packages/ui/solid/src/components/menu/popover-item/PopoverItem.tsx",
|
|
1367
1657
|
"packages/ui/solid/src/components/menu/radio-item/RadioItem.tsx",
|
|
1368
1658
|
"packages/ui/solid/src/components/menu/submenu/Submenu.tsx",
|
|
1659
|
+
"packages/ui/svelte/src/components/breadcrumbs/overflow-item/Item.svelte",
|
|
1369
1660
|
"packages/ui/svelte/src/components/menu/checkbox-item/CheckboxItem.svelte",
|
|
1370
1661
|
"packages/ui/svelte/src/components/menu/item/Item.svelte",
|
|
1371
1662
|
"packages/ui/svelte/src/components/menu/popover-item/PopoverItem.svelte",
|
|
1372
1663
|
"packages/ui/svelte/src/components/menu/radio-item/RadioItem.svelte",
|
|
1373
1664
|
"packages/ui/svelte/src/components/menu/submenu/Submenu.svelte",
|
|
1665
|
+
"packages/ui/vue/src/components/breadcrumbs/overflow-item/Item.vue",
|
|
1374
1666
|
"packages/ui/vue/src/components/menu/checkbox-item/CheckboxItem.vue",
|
|
1375
1667
|
"packages/ui/vue/src/components/menu/item/Item.vue",
|
|
1376
1668
|
"packages/ui/vue/src/components/menu/popover-item/PopoverItem.vue",
|
|
@@ -1423,15 +1715,19 @@
|
|
|
1423
1715
|
"packages/ui/angular/src/components/menu/checkbox-item/menu-checkbox-item.component.html",
|
|
1424
1716
|
"packages/ui/angular/src/components/menu/item/menu-item.component.html",
|
|
1425
1717
|
"packages/ui/angular/src/components/menu/radio-item/menu-radio-item.component.html",
|
|
1718
|
+
"packages/ui/react/src/components/breadcrumbs/overflow-item/Item.tsx",
|
|
1426
1719
|
"packages/ui/react/src/components/menu/checkbox-item/CheckboxItem.tsx",
|
|
1427
1720
|
"packages/ui/react/src/components/menu/item/Item.tsx",
|
|
1428
1721
|
"packages/ui/react/src/components/menu/radio-item/RadioItem.tsx",
|
|
1722
|
+
"packages/ui/solid/src/components/breadcrumbs/overflow-item/Item.tsx",
|
|
1429
1723
|
"packages/ui/solid/src/components/menu/checkbox-item/CheckboxItem.tsx",
|
|
1430
1724
|
"packages/ui/solid/src/components/menu/item/Item.tsx",
|
|
1431
1725
|
"packages/ui/solid/src/components/menu/radio-item/RadioItem.tsx",
|
|
1726
|
+
"packages/ui/svelte/src/components/breadcrumbs/overflow-item/Item.svelte",
|
|
1432
1727
|
"packages/ui/svelte/src/components/menu/checkbox-item/CheckboxItem.svelte",
|
|
1433
1728
|
"packages/ui/svelte/src/components/menu/item/Item.svelte",
|
|
1434
1729
|
"packages/ui/svelte/src/components/menu/radio-item/RadioItem.svelte",
|
|
1730
|
+
"packages/ui/vue/src/components/breadcrumbs/overflow-item/Item.vue",
|
|
1435
1731
|
"packages/ui/vue/src/components/menu/checkbox-item/CheckboxItem.vue",
|
|
1436
1732
|
"packages/ui/vue/src/components/menu/item/Item.vue",
|
|
1437
1733
|
"packages/ui/vue/src/components/menu/radio-item/RadioItem.vue",
|
|
@@ -2617,7 +2913,8 @@
|
|
|
2617
2913
|
"sources": [
|
|
2618
2914
|
"packages/core/src/components/custom/progress-linear/progress-linear.class.ts",
|
|
2619
2915
|
"packages/core/src/components/custom/slider/slider.class.ts",
|
|
2620
|
-
"packages/core/src/components/custom/tabs/tabs.class.ts"
|
|
2916
|
+
"packages/core/src/components/custom/tabs/tabs.class.ts",
|
|
2917
|
+
"packages/core/src/components/custom/toggle-group/toggle-group.class.ts"
|
|
2621
2918
|
],
|
|
2622
2919
|
"pattern": "so-<block>--orientation-<value>",
|
|
2623
2920
|
"description": "Orientation of the component layout.",
|
|
@@ -2707,13 +3004,15 @@
|
|
|
2707
3004
|
"name": "--view-",
|
|
2708
3005
|
"sources": [
|
|
2709
3006
|
"packages/core/src/components/custom/accordion/accordion.class.ts",
|
|
3007
|
+
"packages/core/src/components/custom/badge/badge.class.ts",
|
|
2710
3008
|
"packages/core/src/components/custom/button/button.class.ts",
|
|
2711
3009
|
"packages/core/src/components/custom/check-box/check-box.class.ts",
|
|
2712
3010
|
"packages/core/src/components/custom/list-box/list-box.class.ts",
|
|
2713
3011
|
"packages/core/src/components/custom/radio-group/item/item.class.ts",
|
|
2714
3012
|
"packages/core/src/components/custom/radio-group/radio-group.class.ts",
|
|
2715
3013
|
"packages/core/src/components/custom/tabs/tabs.class.ts",
|
|
2716
|
-
"packages/core/src/components/custom/tags/tags.class.ts"
|
|
3014
|
+
"packages/core/src/components/custom/tags/tags.class.ts",
|
|
3015
|
+
"packages/core/src/components/custom/toggle-group/toggle-group.class.ts"
|
|
2717
3016
|
],
|
|
2718
3017
|
"pattern": "so-<block>--view-<value>",
|
|
2719
3018
|
"description": "Theme-defined visual treatment; absent when unset.",
|
|
@@ -2792,10 +3091,18 @@
|
|
|
2792
3091
|
"values": "List: truncate | wrap | expand; item: truncate | wrap",
|
|
2793
3092
|
"presence": "Written when the list extension is attached; removed on disposal."
|
|
2794
3093
|
},
|
|
3094
|
+
{
|
|
3095
|
+
"name": "data-copyable",
|
|
3096
|
+
"sources": ["packages/core/src/components/custom/code-block/code-block.class.ts"],
|
|
3097
|
+
"description": "CodeBlock shows its built-in copy action; actual disabled state belongs to the embedded Button.",
|
|
3098
|
+
"scope": "CodeBlock",
|
|
3099
|
+
"values": ["true", "false"],
|
|
3100
|
+
"presence": "Present with an explicit boolean string for the corresponding CodeBlock feature."
|
|
3101
|
+
},
|
|
2795
3102
|
{
|
|
2796
3103
|
"name": "data-current",
|
|
2797
3104
|
"sources": ["packages/core/src/components/custom/slider/slider.class.ts"],
|
|
2798
|
-
"description": "
|
|
3105
|
+
"description": "Whether a Slider mark represents the current value.",
|
|
2799
3106
|
"scope": "Slider mark",
|
|
2800
3107
|
"values": "true | false",
|
|
2801
3108
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
@@ -2808,6 +3115,14 @@
|
|
|
2808
3115
|
"values": "true | false",
|
|
2809
3116
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
2810
3117
|
},
|
|
3118
|
+
{
|
|
3119
|
+
"name": "data-dot",
|
|
3120
|
+
"sources": ["packages/core/src/components/custom/badge/badge.class.ts"],
|
|
3121
|
+
"description": "Indicator is a dot.",
|
|
3122
|
+
"scope": "Badge root",
|
|
3123
|
+
"values": "true | false",
|
|
3124
|
+
"presence": "Always present, including false."
|
|
3125
|
+
},
|
|
2811
3126
|
{
|
|
2812
3127
|
"name": "data-dragging",
|
|
2813
3128
|
"sources": [
|
|
@@ -2855,11 +3170,22 @@
|
|
|
2855
3170
|
"values": "true | false",
|
|
2856
3171
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
2857
3172
|
},
|
|
3173
|
+
{
|
|
3174
|
+
"name": "data-header",
|
|
3175
|
+
"sources": ["packages/core/src/components/custom/code-block/code-block.class.ts"],
|
|
3176
|
+
"description": "CodeBlock has an upper title or Tabs bar. It is false only in the basic single-source mode without a title.",
|
|
3177
|
+
"scope": "CodeBlock",
|
|
3178
|
+
"values": ["true", "false"],
|
|
3179
|
+
"presence": "Present with an explicit boolean string for the corresponding CodeBlock feature."
|
|
3180
|
+
},
|
|
2858
3181
|
{
|
|
2859
3182
|
"name": "data-highlighted",
|
|
2860
|
-
"sources": [
|
|
3183
|
+
"sources": [
|
|
3184
|
+
"packages/core/src/components/custom/code-block/code-block.class.ts",
|
|
3185
|
+
"packages/plugins/src/custom/list/item/item.plugin.ts"
|
|
3186
|
+
],
|
|
2861
3187
|
"description": "Current keyboard or pointer navigation target.",
|
|
2862
|
-
"scope": "ListBox/Select item row and Menu item root",
|
|
3188
|
+
"scope": "ListBox/Select item row and Menu item root; CodeBlock logical source lines",
|
|
2863
3189
|
"values": "true | false",
|
|
2864
3190
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
2865
3191
|
},
|
|
@@ -2913,6 +3239,28 @@
|
|
|
2913
3239
|
"values": "true; absent when inactive",
|
|
2914
3240
|
"presence": "Gesture flag: written as true, removed with null when inactive."
|
|
2915
3241
|
},
|
|
3242
|
+
{
|
|
3243
|
+
"name": "data-language",
|
|
3244
|
+
"sources": ["packages/core/src/components/custom/code-block/code-block.class.ts"],
|
|
3245
|
+
"description": "Normalized CodeBlock programming language on code. Aliases resolve to full names; unknown languages use text.",
|
|
3246
|
+
"scope": "CodeBlock",
|
|
3247
|
+
"values": [
|
|
3248
|
+
"text",
|
|
3249
|
+
"javascript",
|
|
3250
|
+
"typescript",
|
|
3251
|
+
"jsx",
|
|
3252
|
+
"tsx",
|
|
3253
|
+
"html",
|
|
3254
|
+
"css",
|
|
3255
|
+
"json",
|
|
3256
|
+
"bash",
|
|
3257
|
+
"vue",
|
|
3258
|
+
"svelte",
|
|
3259
|
+
"python",
|
|
3260
|
+
"yaml"
|
|
3261
|
+
],
|
|
3262
|
+
"presence": "Present on the code element with the normalized supported language."
|
|
3263
|
+
},
|
|
2916
3264
|
{
|
|
2917
3265
|
"name": "data-layer",
|
|
2918
3266
|
"sources": ["packages/core/src/components/base/layer/types.ts"],
|
|
@@ -2929,6 +3277,14 @@
|
|
|
2929
3277
|
"values": "reached | exceeded; absent below the limit or without maxlength",
|
|
2930
3278
|
"presence": "Present only when text length reaches or exceeds maxlength."
|
|
2931
3279
|
},
|
|
3280
|
+
{
|
|
3281
|
+
"name": "data-line-numbers",
|
|
3282
|
+
"sources": ["packages/core/src/components/custom/code-block/code-block.class.ts"],
|
|
3283
|
+
"description": "CodeBlock renders decorative logical line numbers without adding them to copied source.",
|
|
3284
|
+
"scope": "CodeBlock",
|
|
3285
|
+
"values": ["true", "false"],
|
|
3286
|
+
"presence": "Present with an explicit boolean string for the corresponding CodeBlock feature."
|
|
3287
|
+
},
|
|
2932
3288
|
{
|
|
2933
3289
|
"name": "data-maximized",
|
|
2934
3290
|
"sources": ["packages/core/src/components/custom/dialog/dialog.class.ts"],
|
|
@@ -2969,7 +3325,8 @@
|
|
|
2969
3325
|
"name": "data-overflow",
|
|
2970
3326
|
"sources": [
|
|
2971
3327
|
"packages/core/src/components/custom/table/collection/extensions/columns/columns.extension.ts",
|
|
2972
|
-
"packages/core/src/components/custom/tags/tags.class.ts"
|
|
3328
|
+
"packages/core/src/components/custom/tags/tags.class.ts",
|
|
3329
|
+
"packages/plugins/src/custom/scroll-focus/scroll-focus.plugin.ts"
|
|
2973
3330
|
],
|
|
2974
3331
|
"description": "Content exceeds the available space.",
|
|
2975
3332
|
"scope": "Table root; Tags root (layout overflow policy)",
|
|
@@ -3117,7 +3474,8 @@
|
|
|
3117
3474
|
"packages/core/src/components/custom/calendar/collection/extensions/selection/selection.extension.ts",
|
|
3118
3475
|
"packages/core/src/components/custom/date-picker/date-picker.class.ts",
|
|
3119
3476
|
"packages/core/src/components/custom/menu/menu.class.ts",
|
|
3120
|
-
"packages/core/src/components/custom/popover/popover.class.ts"
|
|
3477
|
+
"packages/core/src/components/custom/popover/popover.class.ts",
|
|
3478
|
+
"packages/core/src/components/custom/toggle-button/toggle-button.class.ts"
|
|
3121
3479
|
],
|
|
3122
3480
|
"description": "Selected/active state; for popup triggers indicates the open popup.",
|
|
3123
3481
|
"scope": "Selectable/activatable collection item; ListBox/Select inner row; popup triggerDataset (consumer trigger, Select arrow, DatePicker button)",
|
|
@@ -3153,6 +3511,14 @@
|
|
|
3153
3511
|
"values": "full | reduce; absence follows prefers-reduced-motion",
|
|
3154
3512
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
3155
3513
|
},
|
|
3514
|
+
{
|
|
3515
|
+
"name": "data-so-toasts-announcer",
|
|
3516
|
+
"sources": ["packages/plugins/src/custom/toasts/announce/announce.plugin.ts"],
|
|
3517
|
+
"description": "Identifies the persistent text-only toast announcement region.",
|
|
3518
|
+
"scope": "Visually hidden live region inside the Toasts manager",
|
|
3519
|
+
"values": "polite | assertive",
|
|
3520
|
+
"presence": "Present while the Toasts manager is mounted; the value selects announcement priority."
|
|
3521
|
+
},
|
|
3156
3522
|
{
|
|
3157
3523
|
"name": "data-sort",
|
|
3158
3524
|
"sources": [
|
|
@@ -3175,7 +3541,10 @@
|
|
|
3175
3541
|
},
|
|
3176
3542
|
{
|
|
3177
3543
|
"name": "data-sticky-head",
|
|
3178
|
-
"sources": [
|
|
3544
|
+
"sources": [
|
|
3545
|
+
"packages/core/src/components/custom/table/table.class.ts",
|
|
3546
|
+
"packages/plugins/src/custom/scroll-focus/scroll-focus.plugin.ts"
|
|
3547
|
+
],
|
|
3179
3548
|
"description": "Table header remains visible during scrolling.",
|
|
3180
3549
|
"scope": "Table root",
|
|
3181
3550
|
"values": "true | false",
|
|
@@ -3205,6 +3574,14 @@
|
|
|
3205
3574
|
"values": "true | false",
|
|
3206
3575
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
3207
3576
|
},
|
|
3577
|
+
{
|
|
3578
|
+
"name": "data-tabbed",
|
|
3579
|
+
"sources": ["packages/core/src/components/custom/code-block/code-block.class.ts"],
|
|
3580
|
+
"description": "CodeBlock uses snippet mode. An explicitly empty snippets array still sets this to true.",
|
|
3581
|
+
"scope": "CodeBlock",
|
|
3582
|
+
"values": ["true", "false"],
|
|
3583
|
+
"presence": "Present with an explicit boolean string for the corresponding CodeBlock feature."
|
|
3584
|
+
},
|
|
3208
3585
|
{
|
|
3209
3586
|
"name": "data-today",
|
|
3210
3587
|
"sources": [
|
|
@@ -3215,6 +3592,14 @@
|
|
|
3215
3592
|
"values": "true | false",
|
|
3216
3593
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
3217
3594
|
},
|
|
3595
|
+
{
|
|
3596
|
+
"name": "data-token",
|
|
3597
|
+
"sources": ["packages/core/src/components/custom/code-block/highlight.ts"],
|
|
3598
|
+
"description": "Space-separated syntax categories of an inert CodeBlock text segment, provided by the shared grammar tokenizer.",
|
|
3599
|
+
"scope": "CodeBlock text segments",
|
|
3600
|
+
"values": "Syntax token categories such as keyword, string, function, comment, number, tag or an empty string.",
|
|
3601
|
+
"presence": "Present on each token segment; an empty value denotes unstyled source text."
|
|
3602
|
+
},
|
|
3218
3603
|
{
|
|
3219
3604
|
"name": "data-type",
|
|
3220
3605
|
"sources": [
|
|
@@ -3243,6 +3628,14 @@
|
|
|
3243
3628
|
"scope": "Table root",
|
|
3244
3629
|
"values": "true | false",
|
|
3245
3630
|
"presence": "TDataset serializes false as \"false\"; null/undefined removes the attribute. See scope for the bound DOM node."
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"name": "data-wrap",
|
|
3634
|
+
"sources": ["packages/core/src/components/custom/code-block/code-block.class.ts"],
|
|
3635
|
+
"description": "CodeBlock allows long logical lines to wrap within its own code region.",
|
|
3636
|
+
"scope": "CodeBlock",
|
|
3637
|
+
"values": ["true", "false"],
|
|
3638
|
+
"presence": "Present with an explicit boolean string for the corresponding CodeBlock feature."
|
|
3246
3639
|
}
|
|
3247
3640
|
],
|
|
3248
3641
|
"dynamic": [
|
package/theme-variables.json
CHANGED
|
@@ -278,7 +278,53 @@
|
|
|
278
278
|
"--so-table-body-shift": "Neighboring Table column cell shift in reorderPreview: column. The base layer distributes it to cells by column number. The theme sets it on the body using its motion while a column is dragged, for at most thirty columns (the base layer rule limit). Without it cells stay in place.",
|
|
279
279
|
"--so-table-body-dragged": "Dragged Table column cell visibility in reorderPreview: column (hidden hides cells in their original positions). The theme sets it on the body using its motion, with the same column-count limit. Fallback: row visibility.",
|
|
280
280
|
"--so-swipe-offset": "Layer offset during swipe-to-dismiss, in signed pixels along the viewport axis. The gesture plugin writes it on the dragged layer (Popover, Select, DatePicker, Drawer or toast); themes must not set it. The base layer uses it in translate and registers it without inheritance. Fallback: 0px.",
|
|
281
|
-
"--so-table-column-drag": "Dragged Table header inline offset during column reorder. The gesture plugin writes it on the header to follow the pointer and, after release, to reach the destination. Themes must not set it. The base layer uses it in translate; the theme transitions the landing. Fallback: 0."
|
|
281
|
+
"--so-table-column-drag": "Dragged Table header inline offset during column reorder. The gesture plugin writes it on the header to follow the pointer and, after release, to reach the destination. Themes must not set it. The base layer uses it in translate; the theme transitions the landing. Fallback: 0.",
|
|
282
|
+
"--so-badge-height-sm": "Badge indicator height and minimum inline size, size sm; default: 1rem.",
|
|
283
|
+
"--so-badge-height-normal": "Badge indicator height and minimum inline size, size normal; default: 1.25rem.",
|
|
284
|
+
"--so-badge-height-lg": "Badge indicator height and minimum inline size, size lg; default: 1.5rem.",
|
|
285
|
+
"--so-badge-height-xl": "Badge indicator height and minimum inline size, size xl; default: 1.75rem.",
|
|
286
|
+
"--so-badge-height-2xl": "Badge indicator height and minimum inline size, size 2xl; default: 2rem.",
|
|
287
|
+
"--so-badge-font-size-sm": "Badge indicator font size, size sm; default: 0.625rem.",
|
|
288
|
+
"--so-badge-font-size-normal": "Badge indicator font size, size normal; default: 0.75rem.",
|
|
289
|
+
"--so-badge-font-size-lg": "Badge indicator font size, size lg; default: 0.875rem.",
|
|
290
|
+
"--so-badge-font-size-xl": "Badge indicator font size, size xl; default: 1rem.",
|
|
291
|
+
"--so-badge-font-size-2xl": "Badge indicator font size, size 2xl; default: 1.125rem.",
|
|
292
|
+
"--so-badge-padding-sm": "Badge indicator inline padding, size sm; default: 0.25rem.",
|
|
293
|
+
"--so-badge-padding-normal": "Badge indicator inline padding, size normal; default: 0.375rem.",
|
|
294
|
+
"--so-badge-padding-lg": "Badge indicator inline padding, size lg; default: 0.4375rem.",
|
|
295
|
+
"--so-badge-padding-xl": "Badge indicator inline padding, size xl; default: 0.5rem.",
|
|
296
|
+
"--so-badge-padding-2xl": "Badge indicator inline padding, size 2xl; default: 0.625rem.",
|
|
297
|
+
"--so-badge-dot-size-sm": "Badge dot side length, size sm; default: 0.375rem.",
|
|
298
|
+
"--so-badge-dot-size-normal": "Badge dot side length, size normal; default: 0.5rem.",
|
|
299
|
+
"--so-badge-dot-size-lg": "Badge dot side length, size lg; default: 0.625rem.",
|
|
300
|
+
"--so-badge-dot-size-xl": "Badge dot side length, size xl; default: 0.75rem.",
|
|
301
|
+
"--so-badge-dot-size-2xl": "Badge dot side length, size 2xl; default: 0.875rem.",
|
|
302
|
+
"--so-badge-height": "Badge indicator height and minimum inline size; default: 1.25rem (normal), 1rem (sm), 1.5rem (lg), 1.75rem (xl), 2rem (2xl).",
|
|
303
|
+
"--so-badge-font-size": "Badge indicator font size; default: 0.75rem (normal), 0.625rem (sm), 0.875rem (lg), 1rem (xl), 1.125rem (2xl).",
|
|
304
|
+
"--so-badge-padding": "Badge indicator inline padding; default: 0.375rem (normal), 0.25rem (sm), 0.4375rem (lg), 0.5rem (xl), 0.625rem (2xl).",
|
|
305
|
+
"--so-badge-dot-size": "Badge dot side length; default: 0.5rem (normal), 0.375rem (sm), 0.625rem (lg), 0.75rem (xl), 0.875rem (2xl).",
|
|
306
|
+
"--so-breadcrumbs-gap": "Resolved gap for the current Breadcrumbs size, shared by its list and item parts.",
|
|
307
|
+
"--so-breadcrumbs-separator-size": "Inline size of a decorative breadcrumb separator; default: 0.5em.",
|
|
308
|
+
"--so-breadcrumbs-gap-sm": "Breadcrumbs gap scale, size sm; defaults to the shared Button gap. Override on :root or an ancestor of a trail.",
|
|
309
|
+
"--so-breadcrumbs-gap-normal": "Breadcrumbs gap scale, size normal; defaults to the shared Button gap. Override on :root or an ancestor of a trail.",
|
|
310
|
+
"--so-breadcrumbs-gap-lg": "Breadcrumbs gap scale, size lg; defaults to the shared Button gap. Override on :root or an ancestor of a trail.",
|
|
311
|
+
"--so-breadcrumbs-gap-xl": "Breadcrumbs gap scale, size xl; defaults to the shared Button gap. Override on :root or an ancestor of a trail.",
|
|
312
|
+
"--so-breadcrumbs-gap-2xl": "Breadcrumbs gap scale, size 2xl; defaults to the shared Button gap. Override on :root or an ancestor of a trail.",
|
|
313
|
+
"--so-toggle-group-gap": "Gap between ToggleGroup buttons on either orientation; default: 0.25rem.",
|
|
314
|
+
"--so-toggle-group-bleed": "Space for the buttons' outer focus rings inside the horizontal ToggleGroup scroll viewport; default: 0.25rem.",
|
|
315
|
+
"--so-code-block-padding": "CodeBlock padding: shared layout default, overridable by the theme or application.",
|
|
316
|
+
"--so-code-block-gap": "CodeBlock gap: shared layout default, overridable by the theme or application.",
|
|
317
|
+
"--so-code-block-font-family": "CodeBlock font family: shared layout default, overridable by the theme or application.",
|
|
318
|
+
"--so-code-block-toolbar-font-size": "CodeBlock filename, tab and copy-action font size. Default: 0.75rem.",
|
|
319
|
+
"--so-code-block-font-size": "CodeBlock font size: shared layout default, overridable by the theme or application.",
|
|
320
|
+
"--so-code-block-line-height": "CodeBlock line height: shared layout default, overridable by the theme or application.",
|
|
321
|
+
"--so-code-block-gutter-width": "CodeBlock gutter width: shared layout default, overridable by the theme or application.",
|
|
322
|
+
"--so-code-block-header-height-sm": "CodeBlock toolbar height, size sm: compact toolbar scale, independent of the standalone Button height.",
|
|
323
|
+
"--so-code-block-header-height-normal": "CodeBlock toolbar height, size normal: compact toolbar scale, independent of the standalone Button height.",
|
|
324
|
+
"--so-code-block-header-height-lg": "CodeBlock toolbar height, size lg: compact toolbar scale, independent of the standalone Button height.",
|
|
325
|
+
"--so-code-block-header-height-xl": "CodeBlock toolbar height, size xl: compact toolbar scale, independent of the standalone Button height.",
|
|
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."
|
|
282
328
|
},
|
|
283
329
|
"theme-reads": {
|
|
284
330
|
"--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.",
|
|
@@ -331,6 +377,7 @@
|
|
|
331
377
|
"--so-tabs-active-moving": "Active marker movement flag: 1 while row pseudo-element transitions finish. Written on the row by TTabsViewPlugin; the theme uses it for marker transition duration: calc(var(--so-tabs-active-moving, 0) * 200ms).",
|
|
332
378
|
"--so-table-column-ghost": "Table column resize ghost inline offset during deferred handle dragging (data-resize-ghost). Written on the header by the resize plugin; the theme draws the ghost and uses it in translate.",
|
|
333
379
|
"--so-table-column-ghost-size": "Table column resize ghost height from the header top to the table bottom inside its viewport. Written on the header by the resize plugin.",
|
|
334
|
-
"--so-table-column-shift": "Dragged Table column width, used to move neighbors during reorder. The gesture plugin writes it on the header in reorderPreview: head, or on the root in column mode. The theme animates neighbors with it and sets body variables (--so-table-body-shift)."
|
|
380
|
+
"--so-table-column-shift": "Dragged Table column width, used to move neighbors during reorder. The gesture plugin writes it on the header in reorderPreview: head, or on the root in column mode. The theme animates neighbors with it and sets body variables (--so-table-body-shift).",
|
|
381
|
+
"--so-code-block-header-height": "Resolved CodeBlock toolbar height at its current size, from the document-root header-height scale."
|
|
335
382
|
}
|
|
336
383
|
}
|