Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
47 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
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
7e53a6b
fix(icons): generate components with native SVG props
comfrt1k Nov 18, 2026
552fc73
feat(icons): add placeholder icon
comfrt1k Nov 18, 2026
f89945f
build(image): add theme progress and storybook dependencies
comfrt1k Nov 18, 2026
f6646fa
feat(image): add configurable container styles
comfrt1k Nov 18, 2026
352822f
feat(image): add configurable picture fit styles
comfrt1k Nov 18, 2026
92e60e0
feat(image): add themed responsive fallback styles
comfrt1k Nov 18, 2026
72a93b0
feat(image): add configurable loading overlay styles
comfrt1k Nov 18, 2026
4643b83
feat(image)!: compose native image loading and fallback states
comfrt1k Nov 18, 2026
64ccd73
docs(image): add interactive story for image states
comfrt1k Nov 18, 2026
4a8ef15
fix(icons): restore sprinkle-aware generation
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
b6b50ba
fix(image): stabilize callback ref declarations
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
84fd39a
chore(image): 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
99 changes: 89 additions & 10 deletions .pnp.cjs

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions generators/icons/src/svgr-utils/compile-icons/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const prettierPlugin = require('@svgr/plugin-prettier') as SvgrPlugin
const svgrTransformPlugins = [svgoPlugin, jsxPlugin, prettierPlugin]

export const MASK_ID_PATTERN = /mask0/g
export const PROPS_SPREAD_FROM = '...props'
export const PROPS_SPREAD_TO = '...otherProps'

export const FIFTY_PLUS_PATTERN = '50+'
export const FIFTY_PLUS_REPLACEMENT = 'FiftyPlus'
Expand All @@ -28,8 +26,4 @@ export const svgrTransformConfig: Config = {
typescript: true,
template: svgrTemplate,
plugins: svgrTransformPlugins,
svgProps: {
className: `{clsx(className, String(otherProps.className || ''))}`,
style: '{iconStyle}',
},
}
6 changes: 1 addition & 5 deletions generators/icons/src/svgr-utils/compile-icons/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import type { Source } from '../../interfaces.js'
import { transform } from '@svgr/core'

import { MASK_ID_PATTERN } from './constants.js'
import { PROPS_SPREAD_FROM } from './constants.js'
import { PROPS_SPREAD_TO } from './constants.js'
import { FIFTY_PLUS_PATTERN } from './constants.js'
import { FIFTY_PLUS_REPLACEMENT } from './constants.js'
import { svgrTransformConfig } from './constants.js'
Expand All @@ -25,9 +23,7 @@ export const compileIcons = async (
{ componentName: icon.name.replace(FIFTY_PLUS_PATTERN, FIFTY_PLUS_REPLACEMENT) }
)

const code = transformed
.replace(MASK_ID_PATTERN, icon.name)
.replace(PROPS_SPREAD_FROM, PROPS_SPREAD_TO)
const code = transformed.replace(MASK_ID_PATTERN, icon.name)

return {
name: icon.fileName,
Expand Down
18 changes: 4 additions & 14 deletions generators/icons/src/svgr-utils/compile-icons/template.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import type { Config } from '@svgr/core'

export const svgrTemplate: Config['template'] = ({ jsx, componentName }, { tpl }) => tpl`
import type { IconProps } from '../icons.interfaces.js'

import type { ReactNode } from 'react'

import { clsx } from 'clsx'

import { iconSprinkles } from '../icon.css.js'

export const ${componentName} = (props: IconProps): ReactNode => {
const { className, style, otherProps } = iconSprinkles(props)

const iconStyle = { ...style, ...otherProps.style }
import type { IconProps } from '../icons.interfaces.js'

return (
${jsx}
)
}
export const ${componentName} = (props: IconProps): ReactNode => (
${jsx}
)
Comment thread
comfrt1k marked this conversation as resolved.
Resolved
`
1 change: 1 addition & 0 deletions ui-parts/icons/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export * from './lock.icon.js'
export * from './minus.icon.js'
export * from './phone.icon.js'
export * from './search.icon.js'
export * from './placeholder.icon.js'
21 changes: 21 additions & 0 deletions ui-parts/icons/src/icons/placeholder.icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { ReactNode } from 'react'

import type { IconProps } from '../icons.interfaces.js'
export const PlaceholderIcon = (props: IconProps): ReactNode => (
<svg
xmlns='http://www.w3.org/2000/svg'
width='1em'
height='1em'
fill='none'
viewBox='0 0 100 81'
{...props}
>
<path
fill='currentColor'
d='M80.5 26.543c3.038 0 5.5-2.455 5.5-5.483s-2.462-5.483-5.5-5.483S75 18.032 75 21.06s2.462 5.483 5.5 5.483'
/>
<path stroke='currentColor' d='M2.5 3.115h95v74.77h-95z' />
<path stroke='currentColor' strokeWidth={1.01} d='m20 55.454 20-19.939 25 24.923' />
<path stroke='currentColor' strokeWidth={1.01} d='m55 50.47 7.5-7.478L80 60.44' />
</svg>
)
6 changes: 6 additions & 0 deletions ui-parts/icons/svg/placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui-parts/image/assets/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 deletions ui-parts/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,27 @@
"postpack": "rm -rf dist"
},
"dependencies": {
"clsx": "2.1.1",
"rainbow-sprinkles": "1.0.0"
"@atls-ui-parts/icons": "workspace:*",
"@atls-ui-parts/progress": "workspace:*",
"@atls-ui-parts/theme": "workspace:*",
"@atls-ui/theme": "workspace:*",
"clsx": "2.1.1"
},
"devDependencies": {
"@storybook/react": "10.4.6",
"@types/react": "19.1.2",
"@vanilla-extract/css": "1.17.1",
"@vanilla-extract/dynamic": "2.1.2"
"@vanilla-extract/dynamic": "2.1.2",
"react": "19.1.0",
"react-dom": "19.1.0",
"storybook": "10.4.6",
"typescript": "5.9.3"
},
"peerDependencies": {
"@vanilla-extract/css": "*",
"@vanilla-extract/dynamic": "*",
"react": "*",
"react-dom": "*"
"react": "^19",
"react-dom": "^19"
},
"publishConfig": {
"access": "public",
Expand Down
91 changes: 91 additions & 0 deletions ui-parts/image/src/component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
'use client'

/* eslint-disable @next/next/no-img-element */
import type { ImageProps } from './interfaces.js'
import { clsx } from 'clsx'

import { PlaceholderIcon } from '@atls-ui-parts/icons'
import { CircleProgress } from '@atls-ui-parts/progress'

import { containerStyles } from './container/styles/base.css.js'
import { fallbackStyles } from './fallback/styles/base.css.js'
import { fallbackIconStyles } from './fallback/styles/base.css.js'
import { descriptionStyles } from './fallback/styles/base.css.js'
import { loadingStyles } from './loading/styles/base.css.js'
import { pictureStyles } from './picture/styles/base.css.js'
import { imageAnimationStyles } from './styles/animation.css.js'
import { useImage } from './useImage.js'

export const Image = (props: ImageProps) => {
const {
shape,
colors,
state,
busy,
hasSource,
fallbackContent,
errorDescription,
loadingIndicator,
containerProps,
imageProps,
} = useImage(props)
return (
<div
{...containerProps}
className={clsx(containerStyles, containerProps.className)}
style={{
width: imageProps.width ?? shape.container.width,
height: imageProps.height ?? shape.container.height,
borderRadius: shape.container.radius,
...containerProps.style,
}}
>
<div
aria-hidden='true'
className={clsx(fallbackStyles, imageAnimationStyles)}
style={{
backgroundColor: colors.fallback.backgroundColor,
paddingInline: shape.fallback.paddingInline,
gap: shape.fallback.gap,
color: state === 'error' ? colors.fallback.errorColor : colors.fallback.color,
}}
>
{state !== 'loaded' &&
(fallbackContent === undefined ? (
<>
<PlaceholderIcon className={fallbackIconStyles} height='auto' />
{state === 'error' && errorDescription && (
<span className={descriptionStyles} style={shape.fallback.typography}>
{errorDescription}
</span>
)}
</>
) : (
fallbackContent
))}
</div>
{hasSource && (
<img
{...imageProps}
alt={imageProps.alt}
data-loaded={state === 'loaded'}
className={clsx(pictureStyles, imageAnimationStyles, imageProps.className)}
style={{ ...shape.picture, ...imageProps.style }}
/>
)}
<div
className={clsx(loadingStyles, imageAnimationStyles)}
data-loading={busy}
aria-hidden='true'
style={{ backgroundColor: colors.loading.backgroundColor }}
>
{busy &&
(loadingIndicator === undefined ? (
<CircleProgress shape={shape.loading.progress} appearance={colors.loading.progress} />
) : (
loadingIndicator
))}
</div>
</div>
)
}
7 changes: 7 additions & 0 deletions ui-parts/image/src/container/styles/base.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { style } from '@vanilla-extract/css'
export const containerStyles = style({
position: 'relative',
display: 'inline-block',
overflow: 'hidden',
verticalAlign: 'middle',
})
1 change: 1 addition & 0 deletions ui-parts/image/src/container/styles/shape/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const IMAGE_SIZE = 120
6 changes: 6 additions & 0 deletions ui-parts/image/src/container/styles/shape/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { CSSProperties } from 'react'
export interface ContainerShape {
width: CSSProperties['width']
height: CSSProperties['height']
radius: CSSProperties['borderRadius']
}
8 changes: 8 additions & 0 deletions ui-parts/image/src/container/styles/shape/variants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { ContainerShape } from './interfaces.js'

import { radii } from '@atls-ui/theme/tokens'

import { IMAGE_SIZE } from './constants.js'
export const containerShapes = {
default: { width: IMAGE_SIZE, height: IMAGE_SIZE, radius: radii.none },
} satisfies Record<string, ContainerShape>
5 changes: 5 additions & 0 deletions ui-parts/image/src/fallback/styles/appearance/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface FallbackAppearance {
backgroundColor: string
color: string
errorColor: string
}
10 changes: 10 additions & 0 deletions ui-parts/image/src/fallback/styles/appearance/variants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { Theme } from '@atls-ui/theme'

import type { FallbackAppearance } from './interfaces.js'
export const fallbackAppearances = {
default: (theme: Theme): FallbackAppearance => ({
backgroundColor: theme.colors.action.subtle,
color: theme.colors.text.primary,
errorColor: theme.colors.status.error,
}),
}
26 changes: 26 additions & 0 deletions ui-parts/image/src/fallback/styles/base.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { style } from '@vanilla-extract/css'

import { spacing } from '@atls-ui/theme/tokens'
export const fallbackStyles = style({
position: 'absolute',
inset: 0,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
boxSizing: 'border-box',
textAlign: 'center',
})
export const fallbackIconStyles = style({
display: 'block',
flexShrink: 0,
width: '100%',
height: 'auto',
})
export const descriptionStyles = style({
flexShrink: 0,
width: '100%',
margin: spacing.component.none,
overflowWrap: 'anywhere',
maxWidth: '100%',
})
6 changes: 6 additions & 0 deletions ui-parts/image/src/fallback/styles/shape/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { CSSProperties } from 'react'
export interface FallbackShape {
paddingInline: CSSProperties['paddingInline']
gap: CSSProperties['gap']
typography: CSSProperties
}
12 changes: 12 additions & 0 deletions ui-parts/image/src/fallback/styles/shape/variants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { FallbackShape } from './interfaces.js'

import { spacing } from '@atls-ui/theme/tokens'
import { typography } from '@atls-ui/theme/tokens'

export const fallbackShapes = {
default: {
paddingInline: spacing.component.lg,
gap: spacing.component.xs,
typography: typography.overline,
},
} satisfies Record<string, FallbackShape>
26 changes: 0 additions & 26 deletions ui-parts/image/src/image.component.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions ui-parts/image/src/image.css.ts

This file was deleted.

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

This file was deleted.

13 changes: 12 additions & 1 deletion ui-parts/image/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
export * from './image.component.js'
export { Image } from './component.js'
export type { ImageProps } from './interfaces.js'
export type { ImageShape } from './styles/shape/interfaces.js'
export { imageShapes } from './styles/shape/variants.js'
export type { ImageAppearance } from './styles/appearance/interfaces.js'
export { imageAppearances } from './styles/appearance/variants.js'
export type { ContainerShape } from './container/styles/shape/interfaces.js'
export type { PictureShape } from './picture/styles/shape/interfaces.js'
export type { FallbackShape } from './fallback/styles/shape/interfaces.js'
export type { FallbackAppearance } from './fallback/styles/appearance/interfaces.js'
export type { LoadingShape } from './loading/styles/shape/interfaces.js'
export type { LoadingAppearance } from './loading/styles/appearance/interfaces.js'
Loading
Loading