@atelier-ui/angular 0.3.15 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atelier-ui/angular",
3
- "version": "0.3.15",
3
+ "version": "0.4.0",
4
4
  "description": "Atelier component library for Angular — LLM-optimised, accessible, design-token-driven",
5
5
  "keywords": [
6
6
  "angular",
@@ -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</atl-button>
50
- * <atl-button variant="outline" [disabled]="true">Cancel</atl-button>
51
- * <atl-button [loading]="isSaving">Saving…</atl-button>
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</atl-button>
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</atl-button>
144
+ * <button atl-button variant="primary">Save</button>
140
145
  * </atl-card-footer>
141
146
  * ```
142
147
  */
@@ -949,7 +954,7 @@ declare class AtlCombobox implements FormValueControl<string> {
949
954
  * <atl-dialog-header>Dialog Title</atl-dialog-header>
950
955
  * <atl-dialog-content>Dialog body content.</atl-dialog-content>
951
956
  * <atl-dialog-footer>
952
- * <atl-button variant="primary" (click)="isOpen = false">Confirm</atl-button>
957
+ * <button atl-button variant="primary" (click)="isOpen = false">Confirm</button>
953
958
  * </atl-dialog-footer>
954
959
  * </atl-dialog>
955
960
  * ```
@@ -1206,11 +1211,11 @@ declare class AtlAccordionItem implements AccordionItem, OnInit, OnDestroy {
1206
1211
 
1207
1212
  /**
1208
1213
  * Trigger directive that opens an `<atl-menu>` dropdown.
1209
- * 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.
1210
1215
  *
1211
1216
  * Usage:
1212
1217
  * ```html
1213
- * <atl-button [atlMenuTriggerFor]="myMenu">Open</atl-button>
1218
+ * <button atl-button [atlMenuTriggerFor]="myMenu">Open</button>
1214
1219
  * <ng-template #myMenu>
1215
1220
  * <atl-menu>
1216
1221
  * <atl-menu-item (triggered)="action()">Action</atl-menu-item>
@@ -1228,7 +1233,7 @@ declare class AtlMenuTrigger {
1228
1233
  *
1229
1234
  * Usage:
1230
1235
  * ```html
1231
- * <atl-button [atlMenuTriggerFor]="actions">Actions</atl-button>
1236
+ * <button atl-button [atlMenuTriggerFor]="actions">Actions</button>
1232
1237
  * <ng-template #actions>
1233
1238
  * <atl-menu>
1234
1239
  * <atl-menu-item (triggered)="onCopy()">Copy</atl-menu-item>
@@ -1287,8 +1292,8 @@ declare class AtlMenuSeparator {
1287
1292
  *
1288
1293
  * Usage:
1289
1294
  * ```html
1290
- * <atl-button atlTooltip="Save your changes">Save</atl-button>
1291
- * <atl-button atlTooltip="Copy to clipboard" atlTooltipPosition="right">Copy</atl-button>
1295
+ * <button atl-button atlTooltip="Save your changes">Save</button>
1296
+ * <button atl-button atlTooltip="Copy to clipboard" atlTooltipPosition="right">Copy</button>
1292
1297
  * ```
1293
1298
  */
1294
1299
  declare class AtlTooltip implements OnDestroy {
@@ -1636,12 +1641,12 @@ declare class AtlPagination {
1636
1641
  *
1637
1642
  * Usage:
1638
1643
  * ```html
1639
- * <atl-button (click)="isOpen = true">Open</atl-button>
1644
+ * <button atl-button (click)="isOpen = true">Open</button>
1640
1645
  * <atl-drawer [(open)]="isOpen" position="right">
1641
1646
  * <atl-drawer-header>Settings</atl-drawer-header>
1642
1647
  * <atl-drawer-content>Content here.</atl-drawer-content>
1643
1648
  * <atl-drawer-footer>
1644
- * <atl-button variant="primary" (click)="isOpen = false">Save</atl-button>
1649
+ * <button atl-button variant="primary" (click)="isOpen = false">Save</button>
1645
1650
  * </atl-drawer-footer>
1646
1651
  * </atl-drawer>
1647
1652
  * ```