@atelier-ui/angular 0.2.22 → 0.2.24
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
|
@@ -119,7 +119,29 @@
|
|
|
119
119
|
--ui-type-label: var(--ui-font-weight-medium) var(--ui-font-size-xs) /
|
|
120
120
|
var(--ui-line-height-tight) var(--ui-font-family);
|
|
121
121
|
--ui-type-code: var(--ui-font-weight-normal) var(--ui-font-size-sm) /
|
|
122
|
-
var(--ui-line-height-
|
|
122
|
+
var(--ui-line-height-code) var(--ui-font-mono);
|
|
123
|
+
|
|
124
|
+
/* The two roles the eight did not span. Both were measured on BOTH sides
|
|
125
|
+
* before being added (ADR-0074), which is the only sound basis for a role:
|
|
126
|
+
*
|
|
127
|
+
* control Medium 14 — 6 CSS rules (tab button, page button, step label,
|
|
128
|
+
* chip label, select label, chat action) and 75 Figma text nodes.
|
|
129
|
+
* action SemiBold 16 — 3 CSS rules (button, accordion trigger, chat
|
|
130
|
+
* header title) and 15 Figma text nodes.
|
|
131
|
+
*
|
|
132
|
+
* Both are TIGHT, and that was unanimous rather than chosen: every one of the
|
|
133
|
+
* 30 Figma nodes in these two combinations that states a leading at all states
|
|
134
|
+
* 125%, and .atl-button and .accordion-trigger state --ui-line-height-tight.
|
|
135
|
+
*
|
|
136
|
+
* They are named for the --ui-control-height-* ladder they live on: text on a
|
|
137
|
+
* control, not prose. A control's own VALUE text (an input's content) is not
|
|
138
|
+
* one of these — that stays a longhand, because its padding formula names the
|
|
139
|
+
* leading as an operand (ADR-0073).
|
|
140
|
+
*/
|
|
141
|
+
--ui-type-control: var(--ui-font-weight-medium) var(--ui-font-size-sm) /
|
|
142
|
+
var(--ui-line-height-tight) var(--ui-font-family);
|
|
143
|
+
--ui-type-action: var(--ui-font-weight-semibold) var(--ui-font-size-md) /
|
|
144
|
+
var(--ui-line-height-tight) var(--ui-font-family);
|
|
123
145
|
|
|
124
146
|
/* ── Colours · light mode (default) ────────────────────────── */
|
|
125
147
|
|
|
@@ -23,7 +23,7 @@ interface AtlComboboxOption {
|
|
|
23
23
|
label: string;
|
|
24
24
|
disabled?: boolean;
|
|
25
25
|
}
|
|
26
|
-
type AtlIconName = 'success' | 'check' | 'warning' | 'danger' | 'info' | 'error' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'sort-asc' | 'sort-desc' | 'arrow-right' | 'arrow-left' | 'copy' | 'paste' | 'add' | 'edit' | 'delete' | 'close' | 'more' | 'person' | 'default-toast';
|
|
26
|
+
type AtlIconName = 'success' | 'check' | 'warning' | 'danger' | 'info' | 'error' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-double-left' | 'chevron-double-right' | 'sort-asc' | 'sort-desc' | 'arrow-right' | 'arrow-left' | 'copy' | 'paste' | 'add' | 'edit' | 'delete' | 'close' | 'more' | 'person' | 'default-toast';
|
|
27
27
|
type AtlIconSize = 'sm' | 'md' | 'lg';
|
|
28
28
|
type AtlChatVariant = 'drawer' | 'popup' | 'inline';
|
|
29
29
|
type AtlChatStatus = 'idle' | 'streaming' | 'error';
|
|
@@ -236,6 +236,13 @@ declare class AtlInput implements FormValueControl<string> {
|
|
|
236
236
|
/** @internal */
|
|
237
237
|
protected readonly errorId: string;
|
|
238
238
|
/** @internal */
|
|
239
|
+
/**
|
|
240
|
+
* The message renders when there is a message. Gating it on `touched` as well was
|
|
241
|
+
* an Angular-only rule: `touched` is not in the spec contract and React and Vue have
|
|
242
|
+
* no equivalent, so the same four fields showed their errors at three different
|
|
243
|
+
* moments depending on the framework. Deciding *when* to pass errors belongs to the
|
|
244
|
+
* form layer, which is where `touched` lives (ADR-0055).
|
|
245
|
+
*/
|
|
239
246
|
protected readonly showErrors: _angular_core.Signal<boolean>;
|
|
240
247
|
/** @internal */
|
|
241
248
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -280,6 +287,13 @@ declare class AtlTextarea implements FormValueControl<string> {
|
|
|
280
287
|
/** @internal */
|
|
281
288
|
protected readonly errorId: string;
|
|
282
289
|
/** @internal */
|
|
290
|
+
/**
|
|
291
|
+
* The message renders when there is a message. Gating it on `touched` as well was
|
|
292
|
+
* an Angular-only rule: `touched` is not in the spec contract and React and Vue have
|
|
293
|
+
* no equivalent, so the same four fields showed their errors at three different
|
|
294
|
+
* moments depending on the framework. Deciding *when* to pass errors belongs to the
|
|
295
|
+
* form layer, which is where `touched` lives (ADR-0055).
|
|
296
|
+
*/
|
|
283
297
|
protected readonly showErrors: _angular_core.Signal<boolean>;
|
|
284
298
|
/** @internal */
|
|
285
299
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -322,6 +336,13 @@ declare class AtlCheckbox implements FormCheckboxControl {
|
|
|
322
336
|
/** @internal */
|
|
323
337
|
private readonly nativeInput;
|
|
324
338
|
/** @internal */
|
|
339
|
+
/**
|
|
340
|
+
* The message renders when there is a message. Gating it on `touched` as well was
|
|
341
|
+
* an Angular-only rule: `touched` is not in the spec contract and React and Vue have
|
|
342
|
+
* no equivalent, so the same four fields showed their errors at three different
|
|
343
|
+
* moments depending on the framework. Deciding *when* to pass errors belongs to the
|
|
344
|
+
* form layer, which is where `touched` lives (ADR-0055).
|
|
345
|
+
*/
|
|
325
346
|
protected readonly showErrors: _angular_core.Signal<boolean>;
|
|
326
347
|
/** @internal */
|
|
327
348
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -447,6 +468,13 @@ declare class AtlRadioGroup implements FormValueControl<string>, AtlRadioGroupCo
|
|
|
447
468
|
/** @internal */
|
|
448
469
|
private keyManager;
|
|
449
470
|
/** @internal */
|
|
471
|
+
/**
|
|
472
|
+
* The message renders when there is a message. Gating it on `touched` as well was
|
|
473
|
+
* an Angular-only rule: `touched` is not in the spec contract and React and Vue have
|
|
474
|
+
* no equivalent, so the same four fields showed their errors at three different
|
|
475
|
+
* moments depending on the framework. Deciding *when* to pass errors belongs to the
|
|
476
|
+
* form layer, which is where `touched` lives (ADR-0055).
|
|
477
|
+
*/
|
|
450
478
|
protected readonly showErrors: _angular_core.Signal<boolean>;
|
|
451
479
|
/** @internal */
|
|
452
480
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -495,6 +523,13 @@ declare class AtlToggle implements FormCheckboxControl {
|
|
|
495
523
|
/** @internal */
|
|
496
524
|
protected readonly errorId: string;
|
|
497
525
|
/** @internal */
|
|
526
|
+
/**
|
|
527
|
+
* The message renders when there is a message. Gating it on `touched` as well was
|
|
528
|
+
* an Angular-only rule: `touched` is not in the spec contract and React and Vue have
|
|
529
|
+
* no equivalent, so the same four fields showed their errors at three different
|
|
530
|
+
* moments depending on the framework. Deciding *when* to pass errors belongs to the
|
|
531
|
+
* form layer, which is where `touched` lives (ADR-0055).
|
|
532
|
+
*/
|
|
498
533
|
protected readonly showErrors: _angular_core.Signal<boolean>;
|
|
499
534
|
/** @internal */
|
|
500
535
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -591,6 +626,13 @@ declare class AtlSelect implements FormValueControl<string>, AtlSelectContext, O
|
|
|
591
626
|
/** @internal */
|
|
592
627
|
protected readonly selectedLabel: _angular_core.Signal<string>;
|
|
593
628
|
/** @internal */
|
|
629
|
+
/**
|
|
630
|
+
* The message renders when there is a message. Gating it on `touched` as well was
|
|
631
|
+
* an Angular-only rule: `touched` is not in the spec contract and React and Vue have
|
|
632
|
+
* no equivalent, so the same four fields showed their errors at three different
|
|
633
|
+
* moments depending on the framework. Deciding *when* to pass errors belongs to the
|
|
634
|
+
* form layer, which is where `touched` lives (ADR-0055).
|
|
635
|
+
*/
|
|
594
636
|
protected readonly showErrors: _angular_core.Signal<boolean>;
|
|
595
637
|
/** @internal */
|
|
596
638
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -718,6 +760,13 @@ declare class AtlCombobox implements FormValueControl<string> {
|
|
|
718
760
|
/** @internal */
|
|
719
761
|
protected readonly activeOptionId: _angular_core.Signal<string | null>;
|
|
720
762
|
/** @internal */
|
|
763
|
+
/**
|
|
764
|
+
* The message renders when there is a message. Gating it on `touched` as well was
|
|
765
|
+
* an Angular-only rule: `touched` is not in the spec contract and React and Vue have
|
|
766
|
+
* no equivalent, so the same four fields showed their errors at three different
|
|
767
|
+
* moments depending on the framework. Deciding *when* to pass errors belongs to the
|
|
768
|
+
* form layer, which is where `touched` lives (ADR-0055).
|
|
769
|
+
*/
|
|
721
770
|
protected readonly showErrors: _angular_core.Signal<boolean>;
|
|
722
771
|
/** @internal */
|
|
723
772
|
protected readonly hostClasses: _angular_core.Signal<string>;
|