@meistrari/tela-build 1.77.2 → 1.77.3
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 +13 -0
- package/components/tela/checkbox/checkbox.vue +12 -5
- package/components/tela/combobox/combobox-list.vue +1 -2
- package/components/tela/date-range-picker.vue +1 -2
- package/components/tela/dropdown-menu/DropdownMenuContent.vue +1 -7
- package/components/tela/filter/filter-content.vue +1 -5
- package/components/tela/menubar/menubar-content.vue +1 -7
- package/components/tela/multiple-select/multiple-select.vue +1 -7
- package/components/tela/select-menu/select-menu-content.vue +2 -3
- package/components/tela/switch/switch.vue +8 -6
- package/components/tela/tags/tags-select.vue +1 -5
- package/components/tela/tooltip/tooltip-content.vue +1 -2
- package/css/animations.css +2 -3
- package/package.json +1 -1
- package/unocss.config.ts +6 -1
- package/utils/design-tokens.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Latest updates and announcements.
|
|
4
4
|
|
|
5
|
+
## September 30, 2026
|
|
6
|
+
|
|
7
|
+
- [Switch](/components/switch) thumb stretches iOS-style: pressing widens it toward the opposite side (16 → 18px on `sm`, 18 → 20px on `md`), and on release it slides over while settling back to a circle. The stretch is a `scaleX` on the thumb background, so it animates smoothly between pixels and leaves `#thumb` slot content undistorted. Respects `prefers-reduced-motion`. The `md` thumb is now 18px with a 3px inset on every side (was 20px, 2px inset).
|
|
8
|
+
- [Dropdown Menu](/components/dropdown-menu) content now scales in from its trigger. It read the unset `--radix-dropdown-menu-content-transform-origin` variable, so it animated from its center.
|
|
9
|
+
|
|
5
10
|
## September 29, 2026
|
|
6
11
|
|
|
7
12
|
- `TelaTransparentInput` only emits `blur` on an outside click when its input has focus. Without `displayIcon`, the first click anywhere on the page used to emit `blur`, so title fields saved an unchanged value on every visit.
|
|
@@ -35,6 +40,14 @@ Latest updates and announcements.
|
|
|
35
40
|
|
|
36
41
|
## September 17, 2026
|
|
37
42
|
|
|
43
|
+
### Typography
|
|
44
|
+
|
|
45
|
+
- **Heading semibold is now 520.** `heading-*-semibold` utilities render at font-weight 520 through the new `DT.fontWeight.headingSemibold` token. `body-*-semibold` and `font-semibold` stay at 540. See [Typography](/typography).
|
|
46
|
+
|
|
47
|
+
### Checkbox
|
|
48
|
+
|
|
49
|
+
- **Exit animation.** `TelaCheckbox` now animates when unchecked: the check mark fades out (opacity 1 → 0) while the background and border fade back to the unchecked state. The draw-in animation on check is unchanged. See [Checkbox](/components/checkbox).
|
|
50
|
+
|
|
38
51
|
### Tags
|
|
39
52
|
|
|
40
53
|
- **Delete is an icon button.** In `TelaTagsSelect`'s edit view, delete is now a trash icon button in the header instead of a labeled button, so the `deleteTagLabel` prop was removed. See [Tags Select](/components/tags-select).
|
|
@@ -16,9 +16,9 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
16
16
|
<CheckboxRoot
|
|
17
17
|
v-bind="forwarded"
|
|
18
18
|
:class="cn(
|
|
19
|
-
'grid place-content-center peer w-16px h-16px shrink-0 rounded-5px border-[1px] border-
|
|
20
|
-
'hover:data-[state=unchecked]:bg-
|
|
21
|
-
'disabled:cursor-not-allowed disabled:bg-
|
|
19
|
+
'checkbox grid place-content-center peer w-16px h-16px shrink-0 rounded-5px border-[1px] border-strong bg focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-600',
|
|
20
|
+
'hover:data-[state=unchecked]:bg-muted data-[state=checked]:border-transparent data-[state=checked]:bg-btn-primary hover:data-[state=checked]:bg-btn-primary-active',
|
|
21
|
+
'disabled:cursor-not-allowed disabled:bg-muted disabled:border disabled:data-[state=checked]:bg-neutral-300',
|
|
22
22
|
props.class,
|
|
23
23
|
)"
|
|
24
24
|
>
|
|
@@ -28,7 +28,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
28
28
|
fill="none"
|
|
29
29
|
stroke-linecap="round"
|
|
30
30
|
stroke-linejoin="round"
|
|
31
|
-
class="shrink-0 stroke-3 stroke-white
|
|
31
|
+
class="shrink-0 stroke-3 stroke-white w-14px h-11px"
|
|
32
32
|
>
|
|
33
33
|
<path
|
|
34
34
|
data-show-icon="true"
|
|
@@ -44,10 +44,17 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
44
44
|
[data-show-icon="true"] {
|
|
45
45
|
stroke-dasharray: 1;
|
|
46
46
|
stroke-dashoffset: 1;
|
|
47
|
-
|
|
47
|
+
opacity: 0;
|
|
48
|
+
transition: opacity 125ms ease-out, stroke-dashoffset 0s linear 125ms;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
[data-state="checked"] [data-show-icon="true"] {
|
|
51
52
|
stroke-dashoffset: 0;
|
|
53
|
+
opacity: 1;
|
|
54
|
+
transition: stroke-dashoffset 150ms cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.checkbox {
|
|
58
|
+
transition: background-color 125ms ease-out, border-color 125ms ease-out;
|
|
52
59
|
}
|
|
53
60
|
</style>
|
|
@@ -31,7 +31,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
31
31
|
<ComboboxPortal :disabled="props.disablePortal">
|
|
32
32
|
<ComboboxContent
|
|
33
33
|
v-bind="forwarded"
|
|
34
|
-
:class="cn('ComboboxContent popover-enter-exit z-[9999] [box-shadow:0_4px_16px_0_rgba(85,91,98,0.14)] overflow-hidden outline-none rounded-[16px] bg border-0.5px border pointer-events-auto', props.class)"
|
|
34
|
+
:class="cn('ComboboxContent popover-enter-exit origin-[var(--reka-combobox-content-transform-origin)] z-[9999] [box-shadow:0_4px_16px_0_rgba(85,91,98,0.14)] overflow-hidden outline-none rounded-[16px] bg border-0.5px border pointer-events-auto', props.class)"
|
|
35
35
|
>
|
|
36
36
|
<ComboboxViewport>
|
|
37
37
|
<slot />
|
|
@@ -43,6 +43,5 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
43
43
|
<style>
|
|
44
44
|
.ComboboxContent {
|
|
45
45
|
min-width: var(--reka-combobox-trigger-width);
|
|
46
|
-
transform-origin: var(--reka-combobox-content-transform-origin);
|
|
47
46
|
}
|
|
48
47
|
</style>
|
|
@@ -115,8 +115,7 @@ const defaultLabel = computed(() => {
|
|
|
115
115
|
rounded-xl
|
|
116
116
|
bg-white
|
|
117
117
|
shadow-lg
|
|
118
|
-
class="popover-enter-exit will-change-[transform,opacity]"
|
|
119
|
-
style="transform-origin: var(--reka-date-range-picker-content-transform-origin)"
|
|
118
|
+
class="popover-enter-exit origin-[var(--reka-date-range-picker-content-transform-origin)] will-change-[transform,opacity]"
|
|
120
119
|
>
|
|
121
120
|
<DateRangePickerArrow fill-white />
|
|
122
121
|
<DateRangePickerCalendar
|
|
@@ -30,15 +30,9 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
30
30
|
<DropdownMenuContent
|
|
31
31
|
:data-tela-escape-layer="escapeLayer ? '' : undefined"
|
|
32
32
|
v-bind="forwarded"
|
|
33
|
-
:class="cn('DropdownMenuContent popover-enter-exit z-50 min-w-60 overflow-hidden rounded-2xl border-[0.5px] border-gray-300 bg-white-1000 p-1 shadow-sm', props.class)"
|
|
33
|
+
:class="cn('DropdownMenuContent popover-enter-exit origin-[var(--reka-dropdown-menu-content-transform-origin)] z-50 min-w-60 overflow-hidden rounded-2xl border-[0.5px] border-gray-300 bg-white-1000 p-1 shadow-sm', props.class)"
|
|
34
34
|
>
|
|
35
35
|
<slot />
|
|
36
36
|
</DropdownMenuContent>
|
|
37
37
|
</DropdownMenuPortal>
|
|
38
38
|
</template>
|
|
39
|
-
|
|
40
|
-
<style>
|
|
41
|
-
.DropdownMenuContent {
|
|
42
|
-
transform-origin: var(--radix-dropdown-menu-content-transform-origin);
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
@@ -193,7 +193,7 @@ function getSlideMotionVariants(index: number, closingState: boolean) {
|
|
|
193
193
|
data-popover-content
|
|
194
194
|
:data-settled="settled || undefined"
|
|
195
195
|
:class="cn(
|
|
196
|
-
'relative select-none z-99999 p-4px bg-background border-[0.5px] border-border rounded-12px overflow-hidden',
|
|
196
|
+
'relative origin-[var(--reka-popover-content-transform-origin)] select-none z-99999 p-4px bg-background border-[0.5px] border-border rounded-12px overflow-hidden',
|
|
197
197
|
'[box-shadow:0_3px_10px_0_rgba(163,163,163,0.08),0_12px_20px_0_rgba(163,163,163,0.06)]',
|
|
198
198
|
contentClass,
|
|
199
199
|
)"
|
|
@@ -281,10 +281,6 @@ function getSlideMotionVariants(index: number, closingState: boolean) {
|
|
|
281
281
|
</template>
|
|
282
282
|
|
|
283
283
|
<style>
|
|
284
|
-
[data-popover-content] {
|
|
285
|
-
transform-origin: var(--reka-popover-content-transform-origin);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
284
|
[data-popover-content][data-state="open"] {
|
|
289
285
|
animation: enter 0.12s ease-out forwards;
|
|
290
286
|
}
|
|
@@ -29,7 +29,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
29
29
|
v-bind="forwardedProps"
|
|
30
30
|
:class="
|
|
31
31
|
cn(
|
|
32
|
-
'MenubarContent popover-enter-exit z-50 min-w-60 overflow-hidden rounded-2xl border-[0.5px] border-strong bg p-4px',
|
|
32
|
+
'MenubarContent popover-enter-exit origin-[var(--reka-menubar-content-transform-origin)] z-50 min-w-60 overflow-hidden rounded-2xl border-[0.5px] border-strong bg p-4px',
|
|
33
33
|
'[box-shadow:0_4px_16px_0_rgba(85,91,98,0.14)]',
|
|
34
34
|
props.class,
|
|
35
35
|
)
|
|
@@ -39,9 +39,3 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
39
39
|
</MenubarContent>
|
|
40
40
|
</Component>
|
|
41
41
|
</template>
|
|
42
|
-
|
|
43
|
-
<style>
|
|
44
|
-
.MenubarContent {
|
|
45
|
-
transform-origin: var(--reka-menubar-content-transform-origin);
|
|
46
|
-
}
|
|
47
|
-
</style>
|
|
@@ -484,7 +484,7 @@ function handleSearchKeydown(e: KeyboardEvent) {
|
|
|
484
484
|
|
|
485
485
|
<SelectPortal>
|
|
486
486
|
<SelectContent
|
|
487
|
-
class="SelectContent popover-enter-exit bg-white rounded-10px"
|
|
487
|
+
class="SelectContent popover-enter-exit origin-[var(--reka-select-content-transform-origin)] bg-white rounded-10px"
|
|
488
488
|
flying-shadow
|
|
489
489
|
b="0.5px border" overflow-hidden
|
|
490
490
|
:side-offset="4"
|
|
@@ -647,9 +647,3 @@ function handleSearchKeydown(e: KeyboardEvent) {
|
|
|
647
647
|
</SelectRoot>
|
|
648
648
|
</div>
|
|
649
649
|
</template>
|
|
650
|
-
|
|
651
|
-
<style>
|
|
652
|
-
.SelectContent {
|
|
653
|
-
transform-origin: var(--reka-select-content-transform-origin);
|
|
654
|
-
}
|
|
655
|
-
</style>
|
|
@@ -33,7 +33,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
33
33
|
<SelectContent
|
|
34
34
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
35
35
|
:class="cn(
|
|
36
|
-
'SelectContent popover-enter-exit relative z-999 max-h-80 overflow-hidden rounded-[10px] border-0.5px border bg',
|
|
36
|
+
'SelectContent popover-enter-exit origin-[var(--reka-select-content-transform-origin)] relative z-999 max-h-80 overflow-hidden rounded-[10px] border-0.5px border bg',
|
|
37
37
|
props.class,
|
|
38
38
|
)"
|
|
39
39
|
:side-offset="4"
|
|
@@ -49,7 +49,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
49
49
|
v-else
|
|
50
50
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
51
51
|
:class="cn(
|
|
52
|
-
'SelectContent popover-enter-exit relative z-999 max-h-80 overflow-hidden rounded-[16px] border-0.5px border bg',
|
|
52
|
+
'SelectContent popover-enter-exit origin-[var(--reka-select-content-transform-origin)] relative z-999 max-h-80 overflow-hidden rounded-[16px] border-0.5px border bg',
|
|
53
53
|
props.class,
|
|
54
54
|
)"
|
|
55
55
|
:side-offset="4"
|
|
@@ -65,6 +65,5 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
65
65
|
<style>
|
|
66
66
|
.SelectContent {
|
|
67
67
|
min-width: var(--reka-select-trigger-width);
|
|
68
|
-
transform-origin: var(--reka-select-content-transform-origin);
|
|
69
68
|
}
|
|
70
69
|
</style>
|
|
@@ -23,12 +23,12 @@ const resolvedSize = computed(() => props.size || 'sm')
|
|
|
23
23
|
|
|
24
24
|
const sizeStyle = computed(() => (({
|
|
25
25
|
sm: 'w-32px h-20px',
|
|
26
|
-
md: 'w-40px h-24px',
|
|
26
|
+
md: 'w-40px h-24px px-1px',
|
|
27
27
|
}) as Record<SwitchSize, string>)[resolvedSize.value] ?? '')
|
|
28
28
|
|
|
29
29
|
const thumbSizeStyle = computed(() => (({
|
|
30
|
-
sm: 'w-16px h-16px data-[state=checked]:translate-x-3',
|
|
31
|
-
md: 'w-
|
|
30
|
+
sm: 'w-16px h-16px data-[state=checked]:translate-x-3 group-enabled:group-active:before:scale-x-[1.125]',
|
|
31
|
+
md: 'w-18px h-18px data-[state=checked]:translate-x-4 group-enabled:group-active:before:scale-x-[1.111]',
|
|
32
32
|
}) as Record<SwitchSize, string>)[resolvedSize.value] ?? '')
|
|
33
33
|
</script>
|
|
34
34
|
|
|
@@ -36,15 +36,17 @@ const thumbSizeStyle = computed(() => (({
|
|
|
36
36
|
<SwitchRoot
|
|
37
37
|
v-bind="forwarded"
|
|
38
38
|
:class="cn(
|
|
39
|
-
'peer inline-flex w-32px h-20px shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-600 disabled:cursor-not-allowed disabled:opacity-50',
|
|
40
|
-
'data-[state=unchecked]:bg-
|
|
39
|
+
'group peer inline-flex w-32px h-20px shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-600 disabled:cursor-not-allowed disabled:opacity-50',
|
|
40
|
+
'data-[state=unchecked]:bg-neutral-200 not-disabled:data-[state=unchecked]:hover:bg-neutral-300 data-[state=checked]:bg-green-500 not-disabled:data-[state=checked]:hover:bg-green-600',
|
|
41
41
|
sizeStyle,
|
|
42
42
|
props.class,
|
|
43
43
|
)"
|
|
44
44
|
>
|
|
45
45
|
<SwitchThumb
|
|
46
46
|
:class="cn(
|
|
47
|
-
'flex items-center justify-center rounded-full
|
|
47
|
+
'relative isolate flex items-center justify-center rounded-full ring-0 transition-[transform,filter] duration-350 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none data-[state=checked]:drop-shadow-md',
|
|
48
|
+
'before:content-empty before:absolute before:inset-0 before:-z-1 before:rounded-full before:bg before:origin-left data-[state=checked]:before:origin-right',
|
|
49
|
+
'before:transition-[transform,background-color] before:duration-350 before:ease-[cubic-bezier(0.22,1,0.36,1)] group-enabled:group-active:before:duration-160 group-enabled:group-active:before:ease-out motion-reduce:before:transition-none hover:before:bg-muted',
|
|
48
50
|
thumbSizeStyle,
|
|
49
51
|
)"
|
|
50
52
|
>
|
|
@@ -522,7 +522,7 @@ updateAllCreatedTags()
|
|
|
522
522
|
</span>
|
|
523
523
|
</PopoverTrigger>
|
|
524
524
|
<PopoverPortal>
|
|
525
|
-
<PopoverContent class="TagsSelectContent popover-enter-exit z-[99999] relative [box-shadow:0_4px_16px_0_rgba(85,91,98,0.14)]" :side-offset="4" w-220px pt-12px px-16px bg border-0.5px border rounded-12px overflow-hidden>
|
|
525
|
+
<PopoverContent class="TagsSelectContent popover-enter-exit origin-[var(--reka-popover-content-transform-origin)] z-[99999] relative [box-shadow:0_4px_16px_0_rgba(85,91,98,0.14)]" :side-offset="4" w-220px pt-12px px-16px bg border-0.5px border rounded-12px overflow-hidden>
|
|
526
526
|
<div
|
|
527
527
|
class="[transition:height_0.25s_ease-out]"
|
|
528
528
|
:style="computedHeightContent ? { height: computedHeightContent } : {}"
|
|
@@ -679,8 +679,4 @@ updateAllCreatedTags()
|
|
|
679
679
|
.tags-select-dot-mask:not(:last-child) {
|
|
680
680
|
mask-image: radial-gradient(circle 8px at calc(100% + 2px) center, transparent 8px, #fff 8px);
|
|
681
681
|
}
|
|
682
|
-
|
|
683
|
-
.TagsSelectContent {
|
|
684
|
-
transform-origin: var(--reka-popover-content-transform-origin);
|
|
685
|
-
}
|
|
686
682
|
</style>
|
|
@@ -46,7 +46,7 @@ const isGrouped = computed(() => activeId !== null && activeId.value !== null &&
|
|
|
46
46
|
<TooltipPortal :disabled="disablePortal">
|
|
47
47
|
<TooltipContent
|
|
48
48
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
49
|
-
:class="cn('tooltip-content z-1000 relative rounded-[8px] py-[5px] px-[10px] pointer-events-auto body-12-semibold text-white bg-neutral-800', props.class)"
|
|
49
|
+
:class="cn('tooltip-content origin-[var(--reka-tooltip-content-transform-origin)] z-1000 relative rounded-[8px] py-[5px] px-[10px] pointer-events-auto body-12-semibold text-white bg-neutral-800', props.class)"
|
|
50
50
|
:data-grouped="isGrouped || undefined"
|
|
51
51
|
@click="$emit('click', $event)"
|
|
52
52
|
>
|
|
@@ -57,7 +57,6 @@ const isGrouped = computed(() => activeId !== null && activeId.value !== null &&
|
|
|
57
57
|
|
|
58
58
|
<style>
|
|
59
59
|
.tooltip-content {
|
|
60
|
-
transform-origin: var(--reka-tooltip-content-transform-origin);
|
|
61
60
|
animation: tooltip-in 0.125s ease-out;
|
|
62
61
|
|
|
63
62
|
&[data-state='closed'] {
|
package/css/animations.css
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Shared enter/exit animation for anchored overlay content (popover, combobox,
|
|
3
3
|
* select menu, dropdown, menubar). Add `popover-enter-exit` to the content
|
|
4
|
-
* element
|
|
5
|
-
*
|
|
6
|
-
* anchor side.
|
|
4
|
+
* element with an `origin-[var(--reka-*-content-transform-origin)]` class so
|
|
5
|
+
* the scale animates from the anchor side.
|
|
7
6
|
*/
|
|
8
7
|
.popover-enter-exit[data-state='open'] {
|
|
9
8
|
animation: slideDownAndFade 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
package/package.json
CHANGED
package/unocss.config.ts
CHANGED
|
@@ -84,7 +84,12 @@ export default defineConfig({
|
|
|
84
84
|
const sizeStyle = `text-size-[${sizeFontSpecs[0]}] leading-${sizeFontSpecs[1]['line-height']} tracking-[${sizeFontSpecs[1]['letter-spacing']}]`
|
|
85
85
|
const isCaption = type === '-caption'
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
// Headings use a lighter semibold than body text
|
|
88
|
+
const fontWeight = tag?.toLowerCase() === 'heading' && weight?.toLowerCase() === 'semibold'
|
|
89
|
+
? DT.fontWeight.headingSemibold
|
|
90
|
+
: weight
|
|
91
|
+
|
|
92
|
+
return `${sizeStyle} font-${fontWeight} ${isCaption ? 'uppercase tracking-0.05em!' : ''}`
|
|
88
93
|
}],
|
|
89
94
|
// Catch for `text-(primary|secondary|tertiary|subtle|contrast|inverse|success|error|warning|pending)`
|
|
90
95
|
[/text-(primary|secondary|tertiary|subtle|contrast|inverse|success|error|warning|pending)/, ([_, v]) => `text-text-${v}`],
|