@atelier-ui/create-workspace 0.3.11 → 0.3.13

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,18 @@
1
+ ## 0.3.13 (2026-10-08)
2
+
3
+ This was a version bump only for create-workspace to align it with other projects, there were no code changes.
4
+
5
+ ## 0.3.12 (2026-10-08)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **styles:** disabled button tokens and an AA placeholder (ADR-0159) ([8c66902a](https://github.com/DominikPieper/atelier-ui/commit/8c66902a))
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Claude Opus 5.5
14
+ - Dominik Pieper @DominikPieper
15
+
1
16
  ## 0.3.11 (2026-10-07)
2
17
 
3
18
  This was a version bump only for create-workspace 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/create-workspace",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "Nx preset for Atelier workshop workspaces",
5
5
  "keywords": [
6
6
  "nx",
@@ -10,6 +10,14 @@ export const contract = {
10
10
  "Native HTML button 'type' passthrough ('button'|'submit'|'reset') — a form-semantics attribute the button element always carries, not a Figma-drawn visual axis.",
11
11
  },
12
12
  ],
13
+ impliesBoolean: [
14
+ {
15
+ codeProp: 'loading',
16
+ figmaBoolean: 'disabled',
17
+ reason:
18
+ "In code `loading` always sets `is-disabled` (ADR-0159), so a loading button paints the disabled cover; the master's `loading` Boolean only adds the spinner, which sits on top of the `disabled` Boolean's opaque `_disabled-overlay`.",
19
+ },
20
+ ],
13
21
  figmaOnly: [
14
22
  {
15
23
  name: 'hasIcon',
@@ -50,6 +50,19 @@ export interface ComponentContract {
50
50
  values?: Readonly<Record<string, string | number | boolean | null>>;
51
51
  reason: string;
52
52
  }>;
53
+ /**
54
+ * A code Boolean that, by behaviour, also switches ON another Boolean the master draws
55
+ * (`loading` always disables the button, so a loading story paints the disabled cover).
56
+ * `codeProp` is the arg a story sets; `figmaBoolean` is the master's Boolean name (without
57
+ * its `#id`) whose cover the paint gate compares against when `codeProp` is true. Only
58
+ * needed when the Figma Boolean of that name would not otherwise be reached — a code prop
59
+ * that shares its Figma Boolean's name needs no entry.
60
+ */
61
+ impliesBoolean?: ReadonlyArray<{
62
+ codeProp: string;
63
+ figmaBoolean: string;
64
+ reason: string;
65
+ }>;
53
66
  /** Only when the root frame is not the comparable layer: the part a parity probe measures instead. */
54
67
  probes?: ReadonlyArray<{ part: string; selector: string; reason: string }>;
55
68
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "fileKey": "QMnDD8uZQPldPrlCwZZ58T",
4
- "figmaLastModified": "2026-10-03T06:57:31Z",
4
+ "figmaLastModified": "2026-10-08T07:12:19Z",
5
5
  "projectedFrom": "tools/figma/snapshot.json"
6
6
  },
7
7
  "components": [
@@ -9,7 +9,7 @@
9
9
  "selector": "AtlButton",
10
10
  "nodeId": "129:20",
11
11
  "name": "Inputs/AtlButton",
12
- "description": "Action button. Maps to AtlButtonSpec in libs/spec.\n\nUse when: a user-initiated action — submit, save, delete, navigate. Pick the visual based on hierarchy: `primary` for the screen's main action (one per screen), `secondary` for supporting actions, `outline` for tertiary/inline, `danger` for destructive actions (delete, irreversible).\n\nDon't use when: the action is a navigation link (use a real `<a>` element, not a styled button), the choice is between two states (use Form/AtlToggle), or the user is filling a form field (use Form/AtlInput / Form/AtlSelect).\n\nAPI surface (Figma → spec):\n- Variant `variant`: primary | secondary | outline | danger — maps to AtlButtonSpec.variant\n- Variant `size`: sm | md | lg — maps to AtlButtonSpec.size\n- Variant `state`: default | hover | focus | active — interaction state\n- Boolean `disabled`: maps to AtlButtonSpec.disabled\n- Boolean `loading`: maps to AtlButtonSpec.loading — shows spinner, disables interaction\n- Boolean `hasIcon`: toggles the leading icon slot (Instance Swap → Icon library)\n\nA11y: native HTML <button>. When the button has no visible label (icon-only), supply `aria-label` — required by spec. Disabled state uses HTML `disabled` (not aria-disabled) for buttons since they're never expected to remain in the tab order.\n\nStatus: structural restructure 2026-04-27 — `state` enum slimmed to interaction (default/hover/focus/active); `loading` and `disabled` moved out as Booleans matching AtlButtonSpec; `hasIcon` Boolean added for icon-slot toggle.\n\nDeclared Boolean properties that reference no layer (2026-08-27, ADR-0058). check:figma reads these lines, so the reason is stated where a designer opening the master sees it:\n- Boolean `hasIcon`: declared but unbound — and it maps to nothing: `AtlButtonSpec` has no `hasIcon`. It is a Figma-side slot toggle for placing an Icon instance, which is a legitimate authoring affordance but not part of the component contract. Bind it to the icon slot layer when that slot exists, or drop it.",
12
+ "description": "Action button. Maps to AtlButtonSpec in libs/spec.\n\nUse when: a user-initiated action — submit, save, delete, navigate. Pick the visual based on hierarchy: `primary` for the screen's main action (one per screen), `secondary` for supporting actions, `outline` for tertiary/inline, `danger` for destructive actions (delete, irreversible).\n\nDon't use when: the action is a navigation link (use a real `<a>` element, not a styled button), the choice is between two states (use Form/AtlToggle), or the user is filling a form field (use Form/AtlInput / Form/AtlSelect).\n\nAPI surface (Figma → spec):\n- Variant `variant`: primary | secondary | outline | danger — maps to AtlButtonSpec.variant\n- Variant `size`: sm | md | lg — maps to AtlButtonSpec.size\n- Variant `state`: default | hover | focus | active — interaction state\n- Text `label`: not a property — the label is the button's content (default slot / `children` / `<ng-content>`), not a field of AtlButtonSpec. Bound to both the label and the disabled overlay's label, so one override drives both\n- Boolean `disabled`: maps to AtlButtonSpec.disabled — shows `_disabled-overlay`, an opaque layer in `color/disabled-bg` / `-border` / `-text` (ADR-0159; not an opacity wash, which kept the brand hue in dark mode)\n- Boolean `loading`: maps to AtlButtonSpec.loading — shows the spinner in `color/disabled-text`. In code loading always disables the button, so set `disabled` too\n- Boolean `hasIcon`: toggles the leading icon slot (Instance Swap → Icon library)\n\nA11y: native HTML <button>. When the button has no visible label (icon-only), supply `aria-label` — required by spec. Disabled state uses HTML `disabled` (not aria-disabled) for buttons since they're never expected to remain in the tab order.\n\nStatus: structural restructure 2026-04-27 — `state` enum slimmed to interaction (default/hover/focus/active); `loading` and `disabled` moved out as Booleans matching AtlButtonSpec; `hasIcon` Boolean added for icon-slot toggle.\n\nDeclared Boolean properties that reference no layer (2026-08-27, ADR-0058). check:figma reads these lines, so the reason is stated where a designer opening the master sees it:\n- Boolean `hasIcon`: declared but unbound — and it maps to nothing: `AtlButtonSpec` has no `hasIcon`. It is a Figma-side slot toggle for placing an Icon instance, which is a legitimate authoring affordance but not part of the component contract. Bind it to the icon slot layer when that slot exists, or drop it.",
13
13
  "variantAxes": {
14
14
  "variant": [
15
15
  "primary",
@@ -33,6 +33,7 @@
33
33
  "disabled#507:192": "BOOLEAN",
34
34
  "loading#507:217": "BOOLEAN",
35
35
  "hasIcon#507:242": "BOOLEAN",
36
+ "label#1169:0": "TEXT",
36
37
  "variant": "VARIANT",
37
38
  "size": "VARIANT",
38
39
  "state": "VARIANT"
@@ -5,7 +5,7 @@
5
5
  * scale. No moss, no warm bone — just Conciso.
6
6
  *
7
7
  * All foreground/background pairs verified WCAG 2.2 AA via
8
- * tools/scripts/wcag-contrast.mjs (52/52 pairs passing 2026-04-26).
8
+ * tools/scripts/wcag-contrast.mjs (30 pairs across 4 modes, 120/120 passing 2026-10-08).
9
9
  *
10
10
  * Typography: Instrument Sans (UI) + Instrument Serif (display) + JetBrains
11
11
  * Mono (code), chosen 2026-08-26 — see ADR-0035, which revises ADR-0020's
@@ -397,7 +397,13 @@
397
397
  --ui-color-input-border-hover: #475569;
398
398
  --ui-color-input-border-focus: var(--ui-color-primary);
399
399
  --ui-color-input-border-invalid: var(--ui-color-danger);
400
- --ui-color-placeholder: #64748b;
400
+ --ui-color-placeholder: #566579;
401
+
402
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
403
+ * Legibility floor only; WCAG exempts disabled controls. */
404
+ --ui-color-disabled-bg: #e2e8f0;
405
+ --ui-color-disabled-text: #64748b;
406
+ --ui-color-disabled-border: #cbd5e1;
401
407
  --ui-color-error-text: var(--ui-color-danger-text);
402
408
 
403
409
  /* Z-index scale */
@@ -459,6 +465,12 @@
459
465
  --ui-color-input-border-hover: #94a3b8;
460
466
  --ui-color-placeholder: #94a3b8;
461
467
 
468
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
469
+ * Legibility floor only; WCAG exempts disabled controls. */
470
+ --ui-color-disabled-bg: #1e293b;
471
+ --ui-color-disabled-text: #94a3b8;
472
+ --ui-color-disabled-border: #334155;
473
+
462
474
  --ui-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
463
475
  --ui-shadow-sm:
464
476
  0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
@@ -519,6 +531,12 @@
519
531
  --ui-color-input-border-hover: #94a3b8;
520
532
  --ui-color-placeholder: #94a3b8;
521
533
 
534
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
535
+ * Legibility floor only; WCAG exempts disabled controls. */
536
+ --ui-color-disabled-bg: #1e293b;
537
+ --ui-color-disabled-text: #94a3b8;
538
+ --ui-color-disabled-border: #334155;
539
+
522
540
  --ui-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
523
541
  --ui-shadow-sm:
524
542
  0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
@@ -577,7 +595,13 @@
577
595
 
578
596
  --ui-color-input-border: var(--ui-color-border-strong);
579
597
  --ui-color-input-border-hover: #475569;
580
- --ui-color-placeholder: #64748b;
598
+ --ui-color-placeholder: #566579;
599
+
600
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
601
+ * Legibility floor only; WCAG exempts disabled controls. */
602
+ --ui-color-disabled-bg: #e2e8f0;
603
+ --ui-color-disabled-text: #64748b;
604
+ --ui-color-disabled-border: #cbd5e1;
581
605
 
582
606
  --ui-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
583
607
  --ui-shadow-sm: