Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
062f7d2
feat(tooltip)!: redesign tooltip component
comfrt1k Nov 6, 2026
8486814
docs(tooltip): update story for redesigned component
comfrt1k Nov 6, 2026
1d8eb90
fix(components): update tooltip generator template
comfrt1k Nov 6, 2026
70e11c2
chore(tooltip): format
comfrt1k Nov 6, 2026
8daf5bb
fix(tooltip): wrap long unbroken text
comfrt1k Nov 6, 2026
89beaa0
Merge pull request #822 from atls/feat/redesign-tooltip
TorinAsakura Nov 7, 2026
0edd1b8
build(avatar): add theme and progress dependencies
comfrt1k Nov 13, 2026
d485cf4
feat(avatar): add customizable box
comfrt1k Nov 13, 2026
286a5fa
feat(avatar): add configurable image
comfrt1k Nov 13, 2026
b00948a
feat(avatar): add themed text fallback
comfrt1k Nov 13, 2026
4c1f7e0
feat(avatar): add progress loading overlay
comfrt1k Nov 13, 2026
8fe68e6
feat(avatar): add layered content container
comfrt1k Nov 13, 2026
5d07ebc
feat(avatar)!: compose avatar from customizable parts
comfrt1k Nov 13, 2026
2c4dde2
fix(avatar)!: isolate interactive button props
comfrt1k Nov 17, 2026
21d5435
chore(avatar): integrate stack and regenerate pnp
TorinAsakura Nov 17, 2026
72e20de
refactor(progress): share theme shadow tokens
comfrt1k Nov 18, 2026
b9ea605
refactor(progress): reserve percentage label space in CSS
comfrt1k Nov 18, 2026
8b03763
refactor(progress): reuse the default circle box shape
comfrt1k Nov 18, 2026
0ccdd11
refactor(progress): render circle segments on a shared SVG track
comfrt1k Nov 18, 2026
1670a4c
refactor(progress): animate circle segments with CSS keyframes
comfrt1k Nov 18, 2026
626d77a
refactor(progress): animate linear segments with CSS keyframes
comfrt1k Nov 18, 2026
0bef69e
refactor(progress): use the spacing token for circle padding
comfrt1k Nov 18, 2026
a0143f8
refactor(progress): colocate stories with each progress variant
comfrt1k Nov 18, 2026
6384104
refactor(progress): use theme tokens for motion and opacity
comfrt1k Nov 18, 2026
9bb39a6
refactor(progress): extract full radius constant
comfrt1k Nov 18, 2026
c9fe6e2
feat(theme): add spacing token for circle progress padding
comfrt1k Nov 18, 2026
832485a
refactor(progress): extract built-in animation constants
comfrt1k Nov 18, 2026
912570f
refactor(progress): extract story animation constants
comfrt1k Nov 18, 2026
de2ce6b
build(npm): declare Hyperion package repositories
TorinAsakura Nov 20, 2026
61979fe
ci(npm): publish workspaces with applied Yarn versions
TorinAsakura Nov 20, 2026
99a0d12
ci(npm): preserve the shared release flow
TorinAsakura Nov 20, 2026
cd90953
feat(workflows): update
atlantis-terraformer-bot[bot] Nov 20, 2026
ef6e6c4
Merge commit 'cd9095316a8f82aa74ef4689a000115b1215a9bc' into build/np…
TorinAsakura Nov 20, 2026
55b4d20
Merge pull request #837 from atls/build/npm-trusted-publishing
TorinAsakura Nov 20, 2026
7d53d50
chore(release): publish workspace versions
atlantis-courier[bot] Nov 20, 2026
4732249
test(text-transform): verify transformations without a browser
TorinAsakura Nov 20, 2026
ae2ab26
Merge pull request #838 from atls/test/text-transform-node
TorinAsakura Nov 20, 2026
ad5fd61
chore(release): publish workspace versions
atlantis-courier[bot] Nov 20, 2026
b12fac5
feat(workflows): update
atlantis-terraformer-bot[bot] Nov 20, 2026
f0736e3
chore: synchronize v2 with master
TorinAsakura Nov 21, 2026
77b5721
chore(progress): integrate current v2
TorinAsakura Nov 21, 2026
bdf8684
chore(modals): integrate current stack base
TorinAsakura Nov 21, 2026
c24471a
chore(link): integrate current stack base
TorinAsakura Nov 21, 2026
f36de38
chore(avatar): integrate current stack base
TorinAsakura Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ui-parts/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"postpack": "rm -rf dist"
},
"dependencies": {
"@atls-ui-parts/progress": "workspace:*",
"@atls-ui-parts/theme": "workspace:*",
"@atls-ui/theme": "workspace:*",
"@radix-ui/react-avatar": "1.1.7",
"@vanilla-extract/recipes": "0.5.5",
"clsx": "2.1.1"
},
"devDependencies": {
Expand Down
20 changes: 0 additions & 20 deletions ui-parts/avatar/src/avatar-fallback/avatar-fallback.component.tsx

This file was deleted.

47 changes: 0 additions & 47 deletions ui-parts/avatar/src/avatar-fallback/avatar-fallback.css.ts

This file was deleted.

11 changes: 0 additions & 11 deletions ui-parts/avatar/src/avatar-fallback/avatar-fallback.interfaces.ts

This file was deleted.

2 changes: 0 additions & 2 deletions ui-parts/avatar/src/avatar-fallback/index.ts

This file was deleted.

14 changes: 0 additions & 14 deletions ui-parts/avatar/src/avatar-image/avatar-image.component.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions ui-parts/avatar/src/avatar-image/avatar-image.interfaces.ts

This file was deleted.

2 changes: 0 additions & 2 deletions ui-parts/avatar/src/avatar-image/index.ts

This file was deleted.

21 changes: 0 additions & 21 deletions ui-parts/avatar/src/avatar/avatar-fallback.component.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions ui-parts/avatar/src/avatar/avatar.css.ts

This file was deleted.

11 changes: 0 additions & 11 deletions ui-parts/avatar/src/avatar/avatar.interfaces.ts

This file was deleted.

2 changes: 0 additions & 2 deletions ui-parts/avatar/src/avatar/index.ts

This file was deleted.

54 changes: 54 additions & 0 deletions ui-parts/avatar/src/box/component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import type { CSSProperties } from 'react'
import type { Ref } from 'react'

import type { BoxProps } from './interfaces.js'

import { assignInlineVars } from '@vanilla-extract/dynamic'
import { clsx } from 'clsx'

import { avatarAnimationStyles } from '../styles/animation.css.js'
import { boxAppearanceStyles } from './styles/appearance/styles.css.js'
import { boxAppearanceVariables } from './styles/appearance/styles.css.js'
import { boxBaseStyles } from './styles/base.css.js'
import { boxBorderWidth } from './styles/base.css.js'
export const Box = ({
shape,
appearance,
clickable,
disabled,
children,
className,
style,
ref,
...props
}: BoxProps) => {
const boxProps = {
...props,
'data-clickable': clickable ? '' : undefined,
'data-disabled': disabled ? '' : undefined,
className: clsx(boxBaseStyles, boxAppearanceStyles, avatarAnimationStyles, className),
style: {
...assignInlineVars(boxAppearanceVariables, appearance),
...assignInlineVars({
[boxBorderWidth]:
typeof shape.borderWidth === 'number' ? `${shape.borderWidth}px` : shape.borderWidth,
}),
width: shape.size,
height: shape.size,
borderRadius: shape.radius,
...style,
} satisfies CSSProperties,
}
if (clickable) {
return (
<button ref={ref as Ref<HTMLButtonElement>} {...boxProps} disabled={disabled} type='button'>
{children}
</button>
)
}
return (
<span ref={ref} {...boxProps}>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

При clickable=false те же props попадают на span. В Chromium статичный Avatar с tabIndex=0 получил фокус по Tab, а при disabled клик всё равно вызвал onClick, несмотря на aria-disabled=true. Раздели props статичного и интерактивного вариантов и проверь переключение clickable с сохранённым обработчиком.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{children}
</span>
)
}
19 changes: 19 additions & 0 deletions ui-parts/avatar/src/box/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { DOMAttributes } from 'react'
import type { HTMLAttributes } from 'react'
import type { ReactNode } from 'react'
import type { Ref } from 'react'

import type { BoxAppearance } from './styles/appearance/interfaces.js'
import type { BoxShape } from './styles/shape/interfaces.js'

export interface BoxProps extends Omit<
HTMLAttributes<HTMLSpanElement>,
keyof DOMAttributes<HTMLSpanElement> | 'accessKey' | 'autoFocus' | 'contentEditable' | 'tabIndex'
> {
shape: BoxShape
appearance: BoxAppearance
clickable?: boolean
disabled?: boolean
children?: ReactNode
ref?: Ref<HTMLButtonElement | HTMLSpanElement>
}
1 change: 1 addition & 0 deletions ui-parts/avatar/src/box/styles/appearance/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DISABLED_OPACITY = 0.6
12 changes: 12 additions & 0 deletions ui-parts/avatar/src/box/styles/appearance/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export interface BoxAppearanceValues {
borderColor: string
shadow: string
opacity: string
}
export interface BoxAppearance {
default: BoxAppearanceValues
hover: BoxAppearanceValues
focused: BoxAppearanceValues
pressed: BoxAppearanceValues
disabled: BoxAppearanceValues
}
Loading
Loading