@atelier-ui/angular 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/package.json
CHANGED
package/src/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 */
|
|
@@ -41,14 +41,18 @@ type AtlChatVariant = 'drawer' | 'popup' | 'inline';
|
|
|
41
41
|
type AtlChatStatus = 'idle' | 'streaming' | 'error';
|
|
42
42
|
type AtlChatMessageRole = 'user' | 'assistant' | 'system';
|
|
43
43
|
|
|
44
|
+
/** Native `type` attribute of the button. */
|
|
45
|
+
type AtlButtonType = 'button' | 'submit' | 'reset';
|
|
44
46
|
/**
|
|
45
|
-
* Accessible button component with visual variants and sizes.
|
|
47
|
+
* Accessible button component with visual variants and sizes. An attribute
|
|
48
|
+
* component on a native `<button>`: focus, Tab order, Enter/Space activation and
|
|
49
|
+
* form submission are the browser's own.
|
|
46
50
|
*
|
|
47
51
|
* Usage:
|
|
48
52
|
* ```html
|
|
49
|
-
* <atl-button variant="primary" size="md" (click)="save()">Save</
|
|
50
|
-
* <atl-button variant="outline" [disabled]="true">Cancel</
|
|
51
|
-
* <atl-button [loading]="isSaving">Saving…</
|
|
53
|
+
* <button atl-button variant="primary" size="md" (click)="save()">Save</button>
|
|
54
|
+
* <button atl-button variant="outline" [disabled]="true">Cancel</button>
|
|
55
|
+
* <button atl-button type="submit" [loading]="isSaving">Saving…</button>
|
|
52
56
|
* ```
|
|
53
57
|
*/
|
|
54
58
|
declare class AtlButton {
|
|
@@ -60,14 +64,15 @@ declare class AtlButton {
|
|
|
60
64
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
61
65
|
/** Shows a loading spinner and disables interaction. */
|
|
62
66
|
readonly loading: _angular_core.InputSignal<boolean>;
|
|
67
|
+
/** Native `type` attribute of the button. */
|
|
68
|
+
readonly type: _angular_core.InputSignal<AtlButtonType>;
|
|
63
69
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
64
70
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
65
71
|
/** @internal — host element ref for the dev-mode a11y check. */
|
|
66
72
|
private readonly el;
|
|
67
|
-
private readonly destroyRef;
|
|
68
73
|
constructor();
|
|
69
74
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AtlButton, never>;
|
|
70
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AtlButton, "atl-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
75
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AtlButton, "button[atl-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
/**
|
|
@@ -80,7 +85,7 @@ declare class AtlButton {
|
|
|
80
85
|
* <atl-card-header>Card Title</atl-card-header>
|
|
81
86
|
* <atl-card-content>Main content goes here.</atl-card-content>
|
|
82
87
|
* <atl-card-footer>
|
|
83
|
-
* <atl-button variant="primary">Save</
|
|
88
|
+
* <button atl-button variant="primary">Save</button>
|
|
84
89
|
* </atl-card-footer>
|
|
85
90
|
* </atl-card>
|
|
86
91
|
* ```
|
|
@@ -136,7 +141,7 @@ declare class AtlCardContent {
|
|
|
136
141
|
* Usage:
|
|
137
142
|
* ```html
|
|
138
143
|
* <atl-card-footer>
|
|
139
|
-
* <atl-button variant="primary">Save</
|
|
144
|
+
* <button atl-button variant="primary">Save</button>
|
|
140
145
|
* </atl-card-footer>
|
|
141
146
|
* ```
|
|
142
147
|
*/
|
|
@@ -145,6 +150,19 @@ declare class AtlCardFooter {
|
|
|
145
150
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AtlCardFooter, "atl-card-footer", never, {}, {}, never, ["*"], true, never>;
|
|
146
151
|
}
|
|
147
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Inline badge for labeling items with semantic color variants.
|
|
155
|
+
*
|
|
156
|
+
* Decorative by default: it carries no ARIA role. When the badge announces a
|
|
157
|
+
* change (a count or state that updates), pass `role="status"` yourself.
|
|
158
|
+
*
|
|
159
|
+
* Usage:
|
|
160
|
+
* ```html
|
|
161
|
+
* <atl-badge variant="success">Active</atl-badge>
|
|
162
|
+
* <atl-badge variant="danger" size="sm">Error</atl-badge>
|
|
163
|
+
* <atl-badge variant="warning" role="status">3 pending</atl-badge>
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
148
166
|
declare class AtlBadge {
|
|
149
167
|
/** Semantic color variant of the badge. */
|
|
150
168
|
readonly variant: _angular_core.InputSignal<"danger" | "default" | "success" | "warning" | "info">;
|
|
@@ -936,7 +954,7 @@ declare class AtlCombobox implements FormValueControl<string> {
|
|
|
936
954
|
* <atl-dialog-header>Dialog Title</atl-dialog-header>
|
|
937
955
|
* <atl-dialog-content>Dialog body content.</atl-dialog-content>
|
|
938
956
|
* <atl-dialog-footer>
|
|
939
|
-
* <atl-button variant="primary" (click)="isOpen = false">Confirm</
|
|
957
|
+
* <button atl-button variant="primary" (click)="isOpen = false">Confirm</button>
|
|
940
958
|
* </atl-dialog-footer>
|
|
941
959
|
* </atl-dialog>
|
|
942
960
|
* ```
|
|
@@ -1193,11 +1211,11 @@ declare class AtlAccordionItem implements AccordionItem, OnInit, OnDestroy {
|
|
|
1193
1211
|
|
|
1194
1212
|
/**
|
|
1195
1213
|
* Trigger directive that opens an `<atl-menu>` dropdown.
|
|
1196
|
-
* Apply to any element (typically `<atl-button>`) to wire up click + keyboard open/close.
|
|
1214
|
+
* Apply to any element (typically `<button atl-button>`) to wire up click + keyboard open/close.
|
|
1197
1215
|
*
|
|
1198
1216
|
* Usage:
|
|
1199
1217
|
* ```html
|
|
1200
|
-
* <atl-button [atlMenuTriggerFor]="myMenu">Open</
|
|
1218
|
+
* <button atl-button [atlMenuTriggerFor]="myMenu">Open</button>
|
|
1201
1219
|
* <ng-template #myMenu>
|
|
1202
1220
|
* <atl-menu>
|
|
1203
1221
|
* <atl-menu-item (triggered)="action()">Action</atl-menu-item>
|
|
@@ -1215,7 +1233,7 @@ declare class AtlMenuTrigger {
|
|
|
1215
1233
|
*
|
|
1216
1234
|
* Usage:
|
|
1217
1235
|
* ```html
|
|
1218
|
-
* <atl-button [atlMenuTriggerFor]="actions">Actions</
|
|
1236
|
+
* <button atl-button [atlMenuTriggerFor]="actions">Actions</button>
|
|
1219
1237
|
* <ng-template #actions>
|
|
1220
1238
|
* <atl-menu>
|
|
1221
1239
|
* <atl-menu-item (triggered)="onCopy()">Copy</atl-menu-item>
|
|
@@ -1274,8 +1292,8 @@ declare class AtlMenuSeparator {
|
|
|
1274
1292
|
*
|
|
1275
1293
|
* Usage:
|
|
1276
1294
|
* ```html
|
|
1277
|
-
* <atl-button atlTooltip="Save your changes">Save</
|
|
1278
|
-
* <atl-button atlTooltip="Copy to clipboard" atlTooltipPosition="right">Copy</
|
|
1295
|
+
* <button atl-button atlTooltip="Save your changes">Save</button>
|
|
1296
|
+
* <button atl-button atlTooltip="Copy to clipboard" atlTooltipPosition="right">Copy</button>
|
|
1279
1297
|
* ```
|
|
1280
1298
|
*/
|
|
1281
1299
|
declare class AtlTooltip implements OnDestroy {
|
|
@@ -1623,12 +1641,12 @@ declare class AtlPagination {
|
|
|
1623
1641
|
*
|
|
1624
1642
|
* Usage:
|
|
1625
1643
|
* ```html
|
|
1626
|
-
* <atl-button (click)="isOpen = true">Open</
|
|
1644
|
+
* <button atl-button (click)="isOpen = true">Open</button>
|
|
1627
1645
|
* <atl-drawer [(open)]="isOpen" position="right">
|
|
1628
1646
|
* <atl-drawer-header>Settings</atl-drawer-header>
|
|
1629
1647
|
* <atl-drawer-content>Content here.</atl-drawer-content>
|
|
1630
1648
|
* <atl-drawer-footer>
|
|
1631
|
-
* <atl-button variant="primary" (click)="isOpen = false">Save</
|
|
1649
|
+
* <button atl-button variant="primary" (click)="isOpen = false">Save</button>
|
|
1632
1650
|
* </atl-drawer-footer>
|
|
1633
1651
|
* </atl-drawer>
|
|
1634
1652
|
* ```
|