@atelier-ui/react 0.3.14 โ 0.4.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
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 0.4.0 (2026-10-09)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for react to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.3.15 (2026-10-09)
|
|
6
|
+
|
|
7
|
+
### ๐ Features
|
|
8
|
+
|
|
9
|
+
- **tokens:** --ui-type-emphasis for short SemiBold text at sm (ADR-0162) ([8ac02b33](https://github.com/DominikPieper/atelier-ui/commit/8ac02b33))
|
|
10
|
+
|
|
11
|
+
### ๐ฉน Fixes
|
|
12
|
+
|
|
13
|
+
- **badge:** decorative by default, no role="status" on every badge ([239abbba](https://github.com/DominikPieper/atelier-ui/commit/239abbba))
|
|
14
|
+
|
|
15
|
+
### โค๏ธ Thank You
|
|
16
|
+
|
|
17
|
+
- Claude Opus 5.5
|
|
18
|
+
- Dominik Pieper @DominikPieper
|
|
19
|
+
|
|
1
20
|
## 0.3.14 (2026-10-08)
|
|
2
21
|
|
|
3
22
|
This was a version bump only for react to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atelier-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Atelier component library for React โ LLM-optimised, accessible, design-token-driven",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "libs/react"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atelier-ui/styles": "0.
|
|
22
|
+
"@atelier-ui/styles": "0.4.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -21,6 +21,8 @@ export interface AtlBadgeProps extends HTMLAttributes<HTMLSpanElement>, AtlBadge
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* A badge component for displaying small amounts of information or status.
|
|
24
|
+
* Decorative by default: it carries no ARIA role. When the badge announces a
|
|
25
|
+
* change, pass `role="status"` yourself.
|
|
24
26
|
*/
|
|
25
27
|
export declare function AtlBadge({ variant, size, children, className, ...rest }: AtlBadgeProps): import("react").JSX.Element;
|
|
26
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atl-badge.d.ts","sourceRoot":"","sources":["../../../../../../libs/react/src/lib/badge/atl-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,SAAS,CAAC;AACzD,OAAO,wCAAwC,CAAC;AAahD,KAAK,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,cAAc,CAAC,eAAe,CAAC,EAAE,YAAY;IACrD;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED
|
|
1
|
+
{"version":3,"file":"atl-badge.d.ts","sourceRoot":"","sources":["../../../../../../libs/react/src/lib/badge/atl-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,SAAS,CAAC;AACzD,OAAO,wCAAwC,CAAC;AAahD,KAAK,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,cAAc,CAAC,eAAe,CAAC,EAAE,YAAY;IACrD;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAmB,EACnB,IAAW,EACX,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,+BAaf"}
|
|
@@ -12,12 +12,14 @@ const VARIANT_ICON_NAMES = {
|
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* A badge component for displaying small amounts of information or status.
|
|
15
|
+
* Decorative by default: it carries no ARIA role. When the badge announces a
|
|
16
|
+
* change, pass `role="status"` yourself.
|
|
15
17
|
*/
|
|
16
18
|
export function AtlBadge({ variant = 'default', size = 'md', children, className, ...rest }) {
|
|
17
19
|
const classes = ['atl-badge', `variant-${variant}`, `size-${size}`, className]
|
|
18
20
|
.filter(Boolean)
|
|
19
21
|
.join(' ');
|
|
20
22
|
const iconName = VARIANT_ICON_NAMES[variant];
|
|
21
|
-
return (_jsxs("span", { className: classes,
|
|
23
|
+
return (_jsxs("span", { className: classes, ...rest, children: [iconName && (_jsx(AtlIcon, { className: "variant-icon", name: iconName, size: "sm" })), children] }));
|
|
22
24
|
}
|
|
23
25
|
//# sourceMappingURL=atl-badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atl-badge.js","sourceRoot":"","sources":["../../../../../../libs/react/src/lib/badge/atl-badge.tsx"],"names":[],"mappings":";AAEA,OAAO,wCAAwC,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;wBAEwB;AACxB,MAAM,kBAAkB,GAAkD;IACxE,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAuBF
|
|
1
|
+
{"version":3,"file":"atl-badge.js","sourceRoot":"","sources":["../../../../../../libs/react/src/lib/badge/atl-badge.tsx"],"names":[],"mappings":";AAEA,OAAO,wCAAwC,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;wBAEwB;AACxB,MAAM,kBAAkB,GAAkD;IACxE,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAuBF;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,IAAI,EACX,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACO;IACd,MAAM,OAAO,GAAG,CAAC,WAAW,EAAE,WAAW,OAAO,EAAE,EAAE,QAAQ,IAAI,EAAE,EAAE,SAAS,CAAC;SAC3E,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC7C,OAAO,CACL,gBAAM,SAAS,EAAE,OAAO,KAAM,IAAI,aAC/B,QAAQ,IAAI,CACX,KAAC,OAAO,IAAC,SAAS,EAAC,cAAc,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,IAAI,GAAG,CAC/D,EACA,QAAQ,IACJ,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { HTMLAttributes, ReactNode } from 'react';\nimport type { AtlBadgeSpec, AtlIconName } from '../spec';\nimport '@atelier-ui/styles/badge/atl-badge.css';\nimport { AtlIcon } from '../icon/atl-icon';\n\n/** Which AtlIcon each variant carries. Names, not glyphs: a glyph in a string map\n * was the fifth way this library drew an icon, and the one check:icon-duplication\n * missed (ADR-0050). */\nconst VARIANT_ICON_NAMES: Partial<Record<AtlBadgeVariant, AtlIconName>> = {\n info: 'info',\n success: 'success',\n warning: 'warning',\n danger: 'danger',\n};\n\ntype AtlBadgeVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';\n\n/**\n * Properties for the AtlBadge component.\n */\nexport interface AtlBadgeProps\n extends HTMLAttributes<HTMLSpanElement>, AtlBadgeSpec {\n /**\n * The visual style variant of the badge.\n */\n variant?: AtlBadgeVariant;\n /**\n * The size of the badge.\n */\n size?: 'sm' | 'md';\n /**\n * The content to be rendered inside the badge.\n */\n children?: ReactNode;\n}\n\n/**\n * A badge component for displaying small amounts of information or status.\n * Decorative by default: it carries no ARIA role. When the badge announces a\n * change, pass `role=\"status\"` yourself.\n */\nexport function AtlBadge({\n variant = 'default',\n size = 'md',\n children,\n className,\n ...rest\n}: AtlBadgeProps) {\n const classes = ['atl-badge', `variant-${variant}`, `size-${size}`, className]\n .filter(Boolean)\n .join(' ');\n const iconName = VARIANT_ICON_NAMES[variant];\n return (\n <span className={classes} {...rest}>\n {iconName && (\n <AtlIcon className=\"variant-icon\" name={iconName} size=\"sm\" />\n )}\n {children}\n </span>\n );\n}\n"]}
|
package/styles/tokens.css
CHANGED
|
@@ -168,6 +168,24 @@
|
|
|
168
168
|
--ui-type-row-sm: var(--ui-font-weight-normal) var(--ui-font-size-sm) /
|
|
169
169
|
var(--ui-line-height-tight) var(--ui-font-family);
|
|
170
170
|
|
|
171
|
+
/* The emphasis role (ADR-0162). SemiBold at sm, tight: the text of a small
|
|
172
|
+
* element that is stressed rather than read โ a badge, a step marker, the
|
|
173
|
+
* current breadcrumb. Measured on BOTH sides before being added (ADR-0074):
|
|
174
|
+
*
|
|
175
|
+
* emphasis SemiBold 14 โ 3 CSS rules (.atl-badge.size-md, .step-circle,
|
|
176
|
+
* .breadcrumb-current) and 15 Figma text nodes (AtlAvatar 2,
|
|
177
|
+
* AtlAvatarGroup 5, AtlBreadcrumbItem 1, AtlStep 4, AtlTh 3),
|
|
178
|
+
* all 125% leading.
|
|
179
|
+
*
|
|
180
|
+
* The xs sibling (SemiBold 12, tight) has NO role: only 2 clean CSS rules
|
|
181
|
+
* (table header cell, badge sm) โ the other xs rules are mono, or inherit a
|
|
182
|
+
* leading that is not tight โ so it misses the rule of three (ADR-0162).
|
|
183
|
+
* Letter-spacing and text-transform are not part of a role: badge and table
|
|
184
|
+
* header add their own.
|
|
185
|
+
*/
|
|
186
|
+
--ui-type-emphasis: var(--ui-font-weight-semibold) var(--ui-font-size-sm) /
|
|
187
|
+
var(--ui-line-height-tight) var(--ui-font-family);
|
|
188
|
+
|
|
171
189
|
/* โโ Colours ยท light mode (default) โโโโโโโโโโโโโโโโโโโโโโโโโโ */
|
|
172
190
|
|
|
173
191
|
/* Primary โ Conciso deep teal */
|