@meistrari/tela-build 1.81.1 → 1.82.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/CHANGELOG.md CHANGED
@@ -4,6 +4,7 @@ Latest updates and announcements.
4
4
 
5
5
  ## October 7, 2026
6
6
 
7
+ - [Header](/patterns/header) keeps icon-based step numbers available to screen readers.
7
8
  - [Chat](/templates/chat) bodies and conversations no longer use `:has()` selectors to detect the docked prompt input and to place the scroll fog. `TelaChatBody` sets `data-has-prompt-input` on itself, and `TelaChatConversation` marks its scroll-area viewport with `data-chat-conversation-viewport` and `data-scroll-fog`. Every DOM change inside a long conversation re-tested those selectors; in a 3,000-event transcript this cuts style recalculation per streamed text delta from about 17ms to 4ms. Padding, scrollbar insets, and the fog look the same.
8
9
 
9
10
  ## October 6, 2026
@@ -81,6 +82,8 @@ Full-bleed viewers that draw their own header (file previews, detail pages) use
81
82
 
82
83
  ## September 25, 2026
83
84
 
85
+ - [Header](/patterns/header) step numbers use the Phosphor `number-circle-*-bold` icons at 16px, colored `icon` (or `icon-tertiary` when disabled), matching the Figma library. Indexes above 9 keep the drawn ring, now in the same color as the number.
86
+
84
87
  - [Radio Group](/components/radio-group) and `TelaRadioButton` share one look: `border-strong` border on `bg` (hover `border-accent` on `bg-subtle`), a 5px `neutral-900` border that pops in with a scale animation when checked, and `border`/`bg-muted` when disabled. `TelaRadioButton` now styles its `disabled` state, and `TelaRadioGroup` generates unique ids with `useId()`.
85
88
 
86
89
  ## September 24, 2026
@@ -5,35 +5,37 @@ const props = defineProps<{
5
5
  disabled?: boolean
6
6
  }>()
7
7
 
8
- const stepColor = computed(() => {
9
- if (props.disabled) {
10
- return {
11
- ring: 'ring-neutral-400',
12
- text: 'text-tertiary',
13
- }
14
- }
8
+ // Full icon names are listed so UnoCSS can extract them statically
9
+ const NUMBER_CIRCLE_ICONS = [
10
+ 'i-ph-number-circle-zero-bold',
11
+ 'i-ph-number-circle-one-bold',
12
+ 'i-ph-number-circle-two-bold',
13
+ 'i-ph-number-circle-three-bold',
14
+ 'i-ph-number-circle-four-bold',
15
+ 'i-ph-number-circle-five-bold',
16
+ 'i-ph-number-circle-six-bold',
17
+ 'i-ph-number-circle-seven-bold',
18
+ 'i-ph-number-circle-eight-bold',
19
+ 'i-ph-number-circle-nine-bold',
20
+ ]
15
21
 
16
- return {
17
- ring: 'ring-neutral-700',
18
- text: 'text-primary',
19
- }
20
- })
22
+ const iconName = computed(() => NUMBER_CIRCLE_ICONS[props.index])
21
23
 
22
- const textColor = computed(() => {
23
- if (props.disabled) {
24
- return 'text-tertiary select-none'
25
- }
24
+ const iconColor = computed(() => props.disabled ? 'text-icon-tertiary' : 'text-icon')
26
25
 
27
- return 'text-primary'
28
- })
26
+ const textColor = computed(() => props.disabled ? 'text-tertiary select-none' : 'text-primary')
29
27
  </script>
30
28
 
31
29
  <template>
32
30
  <div flex items-center gap-6px>
33
- <div size-16px flex items-center justify-center shrink-0>
31
+ <div size-16px flex items-center justify-center shrink-0 :class="iconColor">
32
+ <template v-if="iconName">
33
+ <TelaIcon :name="iconName" size="16px" aria-hidden="true" />
34
+ <span sr-only>{{ index }}</span>
35
+ </template>
34
36
  <div
35
- size-12px flex items-center justify-center shrink-0 rounded-full ring-1.5px text-8px leading-none font-800
36
- :class="[stepColor.ring, stepColor.text, textColor]"
37
+ v-else
38
+ size-12px flex items-center justify-center shrink-0 rounded-full ring-1.5px ring-current text-8px leading-none font-800
37
39
  >
38
40
  <span translate-y="-0.2px">{{ index }}</span>
39
41
  </div>
@@ -208,11 +208,11 @@ Container for step indicators with muted background and 12px gap.
208
208
 
209
209
  ### TelaHeaderCenterStepsItem
210
210
 
211
- Individual step with a numbered circle indicator and label.
211
+ Individual step with a numbered circle indicator and label. Indexes 0–9 render the Phosphor `number-circle-*-bold` icon at 16px (`icon`, or `icon-tertiary` when disabled); higher indexes fall back to a drawn ring with the number.
212
212
 
213
213
  | Prop | Type | Default | Description |
214
214
  |------|------|---------|-------------|
215
- | `index` | `number` | - | Step number displayed in the circle |
215
+ | `index` | `number` | - | Step number displayed in the circle (0–9 use the Phosphor icon) |
216
216
  | `label` | `string` | - | Step label text |
217
217
  | `disabled` | `boolean` | `false` | Dims the step with tertiary colors |
218
218
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-build",
3
- "version": "1.81.1",
3
+ "version": "1.82.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "app.config.ts",