@soxa-ui/theme-base 0.6.1 → 0.7.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.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "Общий слой тем Soxa UI: сброс частей библиотеки, знак направления письма и структура частей с числами в переменных — чистый CSS, без препроцессора, — и плагины раскладки для поведения темы",
5
5
  "keywords": [
6
6
  "soxa",
@@ -8,6 +8,7 @@
8
8
 
9
9
  .so-stepper-item {
10
10
  --so-stepper-indicator-size: calc(var(--so-button-height-normal) * 0.75);
11
+ --so-stepper-trigger-block-padding: 0px;
11
12
  display: grid;
12
13
  grid-template-columns: minmax(0, max-content) minmax(1rem, 1fr);
13
14
  gap: 0.5rem;
@@ -46,7 +47,8 @@
46
47
  align-items: center;
47
48
  gap: 0.5rem;
48
49
  min-inline-size: 0;
49
- padding: 0;
50
+ padding-block: var(--so-stepper-trigger-block-padding);
51
+ padding-inline: 0;
50
52
  border: 0;
51
53
  background: none;
52
54
  color: inherit;
@@ -91,6 +93,41 @@ button.so-stepper-item__trigger:enabled {
91
93
  pointer-events: none;
92
94
  }
93
95
 
96
+ .so-stepper[data-orientation='horizontal'] > .so-stepper__list > .so-stepper-item {
97
+ &:not(:has(> .so-stepper-item__separator:not([hidden]))) {
98
+ grid-template-columns: minmax(0, max-content);
99
+ }
100
+
101
+ & > .so-stepper-item__trigger {
102
+ align-items: start;
103
+ }
104
+
105
+ /* Center the indicator and connector on the first label line even when the
106
+ * label wraps or the description adds rows. */
107
+ & > .so-stepper-item__trigger > .so-stepper-item__indicator {
108
+ margin-block-start: max(0px, (1lh - var(--so-stepper-indicator-size)) / 2);
109
+ }
110
+
111
+ & > .so-stepper-item__trigger > .so-stepper-item__body {
112
+ min-inline-size: 0;
113
+ margin-block-start: max(0px, (var(--so-stepper-indicator-size) - 1lh) / 2);
114
+ }
115
+
116
+ & > .so-stepper-item__trigger > .so-stepper-item__body > .so-stepper-item__label {
117
+ overflow: hidden;
118
+ overflow-wrap: normal;
119
+ text-overflow: ellipsis;
120
+ }
121
+
122
+ & > .so-stepper-item__separator:empty {
123
+ align-self: start;
124
+ margin-block-start: calc(
125
+ var(--so-stepper-trigger-block-padding) + max(1lh, var(--so-stepper-indicator-size)) / 2
126
+ );
127
+ translate: 0 -50%;
128
+ }
129
+ }
130
+
94
131
  .so-stepper[data-orientation='vertical'] > .so-stepper__list {
95
132
  flex-direction: column;
96
133
  }