suabochica-design-system 1.3.0 → 1.4.1

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
@@ -6,6 +6,47 @@ Unreleased until a version is published.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [1.4.1] - 2026-11-08
10
+
11
+ ### Added
12
+
13
+ - Iconoir regular catalog grew to thirteen SVGs with `sun-light`, `half-moon`,
14
+ `computer`, and `terminal` for light/dark/system theme and CLI presentation.
15
+
16
+ ### Validation record
17
+
18
+ 204 Jest tests and 560 Chromium checks passed in the pinned browser container,
19
+ including visual comparisons across light and dark themes, plus packed Astro/Hugo
20
+ installs of the 1.4.1 tarball.
21
+
22
+ ## [1.4.0] - 2026-11-08
23
+
24
+ ### Added
25
+
26
+ - Dropdown molecule: a controlled single-selection select-only combobox with an
27
+ icon+label trigger, listbox popup, keyboard navigation, typeahead, disabled
28
+ options, and a native-select fallback that works before hydration and without
29
+ JavaScript. SiteHeader's optional theme selector now uses Dropdown (public
30
+ `themeSelector` API unchanged) with sun/half-moon/computer icons. Escape
31
+ inside the theme listbox closes only the listbox. React/Astro and a documented
32
+ plain-HTML/Hugo fallback share `sua-dropdown*` classes.
33
+ - Iconoir regular catalog grew to twelve SVGs with `sun-light`, `half-moon`, and
34
+ `computer` for light/dark/system theme presentation.
35
+
36
+ ### Changed
37
+
38
+ - Light-theme reading, input, and secondary-text surfaces moved from pure white
39
+ to warm sand `#F1D4AF`. Dependent tokens retuned for contrast: secondary
40
+ button text uses cream `#FFF0C5`, placeholders use `#5C5A56`, structural
41
+ borders use stronger sand, and light headings/accent use deeper coral/teal
42
+ (`#A52A1A` / `#1F5F60`).
43
+
44
+ ### Validation record
45
+
46
+ 203 Jest tests and 560 Chromium checks passed in the pinned browser container,
47
+ including visual comparisons across light and dark themes, plus packed Astro/Hugo
48
+ installs of the 1.4.0 tarball.
49
+
9
50
  ## [1.3.0] - 2026-11-06
10
51
 
11
52
  ### Added
@@ -166,3 +207,5 @@ choosing the first release. See [RELEASE.md](RELEASE.md) for the sequence.
166
207
  [1.1.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.1.0
167
208
  [1.2.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.2.0
168
209
  [1.3.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.3.0
210
+ [1.4.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.4.0
211
+ [1.4.1]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.4.1
@@ -26,7 +26,7 @@ recipes; browser-level accessibility validation remains part of component work.
26
26
  Use the written guide's roles, not its generated frontmatter palette:
27
27
 
28
28
  - Canvas: `#FFF0C5`.
29
- - Paper surface: `#FDF6DE`; input and reading surfaces: `#FFFFFF`.
29
+ - Paper surface: `#FDF6DE`; input and reading surfaces: `#F1D4AF`.
30
30
  - Primary text: `#4A4947`.
31
31
  - Structural borders: `#E3CAA5` and `#CDB38B`.
32
32
  - Primary action: `#972828`; hover and border: `#7D1F1F`.
@@ -52,28 +52,34 @@ boundaries and focus indicators need 3:1 against adjacent colors. Ratios below
52
52
  are displayed to three decimal places. These measurements do not establish
53
53
  whole-component WCAG conformance.
54
54
 
55
- - **Body text:** ink on canvas **7.932:1**, paper **8.314:1**, and white
56
- **8.993:1**. Use ink for body, labels, and muted text on warm surfaces.
55
+ - **Body text:** ink on canvas **7.932:1**, paper **8.314:1**, and the
56
+ reading/input surface (`#F1D4AF`) **6.328:1**. Use ink for body, labels, and
57
+ muted text on warm surfaces.
57
58
  - **Primary action:** canvas text on primary **6.989:1** and on primary-hover
58
59
  **8.872:1**. Retain the written button recipe.
59
60
  - **Secondary action:** white on original teal is **3.173:1**, failing normal
60
61
  text. Use darker teal `#28797A` as the functional secondary background;
61
- white on darker teal is **5.114:1**. It also contrasts with canvas at
62
- **4.511:1** and paper at **4.728:1**. Retain original teal for decoration.
63
- - **Text links:** primary on canvas **6.989:1**, paper **7.326:1**, and white
64
- **7.924:1**. Underline links in prose; use primary-hover on hover. Coral on
65
- canvas is only **3.226:1**, so do not turn normal-size link text coral.
66
- - **Focus:** original teal on canvas is **2.799:1**, failing 3:1. Use darker
67
- teal for a 2px outline with a 2px offset on supported light surfaces. The
68
- offset exposes the surrounding surface rather than touching the control fill.
69
- Audit a different pairing if the surrounding surface is dark or an image.
70
- - **Input boundaries:** sand on white is **1.584:1** and stronger sand on
71
- white is **2.016:1**. Neither is sufficient as the sole input boundary.
62
+ cream `#FFF0C5` on darker teal is **4.511:1**. It also contrasts with canvas
63
+ at **4.511:1** and paper at **4.728:1**. Retain original teal for
64
+ decoration.
65
+ - **Text links:** primary on canvas **6.989:1**, paper **7.326:1**, and the
66
+ reading surface **5.576:1**. Underline links in prose; use primary-hover on
67
+ hover. Coral on canvas is only **3.226:1**, so do not turn normal-size link
68
+ text coral.
69
+ - **Focus:** darker teal on canvas is **4.511:1** and on the reading surface
70
+ **3.599:1**. Use darker teal for a 2px outline with a 2px offset on
71
+ supported light surfaces. The offset exposes the surrounding surface rather
72
+ than touching the control fill. Audit a different pairing if the
73
+ surrounding surface is dark or an image.
74
+ - **Input boundaries:** ink on the reading/input surface is **6.328:1**.
75
+ Sand borders are decorative only (sand-strong on reading **1.419:1**).
72
76
  Use ink for functional input borders; retain sand for decorative separators
73
77
  and noninteractive cards that are understandable without their borders.
74
- - **Placeholder:** `#75726D` on white is **4.790:1**, but on canvas it is
75
- **4.225:1**. Restrict this placeholder role to white input surfaces. Do not
76
- use it for small metadata text on cream or as a replacement for labels.
78
+ - **Placeholder:** `#5C5A56` on the reading/input surface is **4.842:1**.
79
+ Restrict this placeholder role to input surfaces. Do not use it for small
80
+ metadata text on cream or as a replacement for labels.
81
+ - **Headings:** accent `#A52A1A` on canvas **6.287:1**, paper **6.590:1**,
82
+ and reading **5.016:1**; h3 teal-ink `#1F5F60` on reading **5.159:1**.
77
83
  - **Status:** ink on mint is **5.404:1**. Pair status text with a label or icon;
78
84
  a mint dot alone does not communicate success.
79
85
 
@@ -82,7 +88,7 @@ whole-component WCAG conformance.
82
88
  - **Primary button:** default primary fill, primary-hover fill on hover and
83
89
  press; canvas text throughout. Hover may add the documented contact shadow;
84
90
  press may translate 1px down/right. Preserve the focus outline independently.
85
- - **Secondary button:** darker teal fill and white text in all enabled states.
91
+ - **Secondary button:** darker teal fill and cream text in all enabled states.
86
92
  Use shadow/position changes for hover and press instead of inventing an
87
93
  unmeasured color. Keep the same contrast-tested palette.
88
94
  - **Outline button:** transparent fill, ink text/border; paper hover fill.
@@ -91,7 +97,7 @@ whole-component WCAG conformance.
91
97
  Disabled controls are not tabbable; explanatory text stays in normal contrast.
92
98
  - **Loading buttons, when implemented:** preserve the accessible name, expose
93
99
  busy status, and prevent duplicate activation. Do not rely on a spinner alone.
94
- - **Fields:** white background, ink border/text, measured placeholder role.
100
+ - **Fields:** reading-surface background, ink border/text, measured placeholder role.
95
101
  Invalid fields use primary-colored borders plus an explicit associated error
96
102
  message and `aria-invalid`; error text uses primary on a supported light
97
103
  surface. Focus still uses the separate outline. Do not use placeholder text
package/DISTRIBUTION.md CHANGED
@@ -15,10 +15,10 @@ pnpm pack --pack-destination /path/to/existing/output-directory
15
15
  ```
16
16
 
17
17
  `prepack` rebuilds the artifact, so packing never silently ships stale output.
18
- Install the generated `suabochica-design-system-1.3.0.tgz` in a separate consumer:
18
+ Install the generated `suabochica-design-system-1.4.1.tgz` in a separate consumer:
19
19
 
20
20
  ```sh
21
- pnpm add /path/to/suabochica-design-system-1.3.0.tgz react@19.3.1 react-dom@19.3.1
21
+ pnpm add /path/to/suabochica-design-system-1.4.1.tgz react@19.3.1 react-dom@19.3.1
22
22
  ```
23
23
 
24
24
  ```tsx
@@ -51,7 +51,7 @@ no consumer Tailwind plugin or library-source scanning requirement.
51
51
  | `suabochica-design-system` | Named ESM React components and public TypeScript types |
52
52
  | `suabochica-design-system/styles.css` | Compiled tokens, scoped base styles, and all component/template styles |
53
53
  | `suabochica-design-system/styles/*` | Relative assets and SIL font notices under the complete styles directory |
54
- | `suabochica-design-system/icons/*.svg` | Nine pinned Iconoir regular SVGs for static HTML/Hugo use |
54
+ | `suabochica-design-system/icons/*.svg` | Thirteen pinned Iconoir regular SVGs for static HTML/Hugo use |
55
55
  | `suabochica-design-system/icons/LICENSE` | Iconoir MIT copyright and license notice |
56
56
  | `suabochica-design-system/icons/manifest.json` | Curated icon names and upstream version |
57
57
  | `suabochica-design-system/images/*.png` | Packaged SiteHeader portrait for optional brand imagery |
@@ -76,7 +76,7 @@ no consumer Tailwind plugin or library-source scanning requirement.
76
76
  declarations reachable from the public entry. `dist/styles/` contains CSS,
77
77
  four relative variable-font assets, and both SIL notices. Preserve the complete
78
78
  styles tree when copying it to a static site's public assets.
79
- - `dist/icons/` contains only nine Iconoir SVGs, their manifest, and the separate
79
+ - `dist/icons/` contains only thirteen Iconoir SVGs, their manifest, and the separate
80
80
  MIT notice. Astro renders the Icon atom without hydration; Hugo copies these
81
81
  assets to its `assets/` tree and inlines them through a validated partial.
82
82
  See the [Icon guide](src/components/Icon/README.md) for site integration.
package/MIGRATION.md CHANGED
@@ -96,8 +96,8 @@ rather than porting routes/content logic into the library.
96
96
  fixtures are verified; the actual portfolio/blog repositories and their versions
97
97
  need separate integration review. Alternate React/framework versions are not
98
98
  established by those fixture results.
99
- - **Packaging:** `suabochica-design-system@1.3.0` is published, including the
100
- Icon atom, SiteHeader portrait/theme selector, and ScrollTrack. Packed ESM
99
+ - **Packaging:** `suabochica-design-system@1.4.1` includes the Icon atom,
100
+ SiteHeader portrait/theme selector, ScrollTrack, and Dropdown. Packed ESM
101
101
  builds are verified.
102
102
  Arbitrary consumer Tailwind utilities are not generated by the precompiled
103
103
  stylesheet.
@@ -105,11 +105,12 @@ rather than porting routes/content logic into the library.
105
105
  Markdown rendering, sanitization, and image optimization. CodeBlock provides
106
106
  optional snippet highlighting; Hugo uses its built-in highlighter with the
107
107
  shared CodeBlock styles.
108
- The Icon atom supplies nine pinned Iconoir regular SVGs; Astro renders it
108
+ The Icon atom supplies thirteen pinned Iconoir regular SVGs; Astro renders it
109
109
  statically, while Hugo inlines the same packaged SVGs from a local partial.
110
110
  Apps own contact details, profile URLs, and cross-site destinations.
111
- Newsletter backends, reading progress, overlays/modal/dropdown systems, broad
112
- icon sets, and ecommerce flows are deferred.
111
+ Newsletter backends, reading progress, multi-select/overlay menu systems,
112
+ broad icon sets, and ecommerce flows are deferred. Single-selection Dropdown
113
+ is included; action menus and multi-select are not.
113
114
  - **Verification:** browser automation is Chromium at two widths, with axe and
114
115
  selected visual baselines. It complements manual keyboard/visual review;
115
116
  production content, assistive-technology review, additional browsers, and the
package/README.md CHANGED
@@ -23,7 +23,7 @@ pnpm pack --pack-destination /path/to/existing/output-directory
23
23
  resulting tarball in your React application:
24
24
 
25
25
  ```sh
26
- pnpm add /path/to/suabochica-design-system-1.3.0.tgz react@19.3.1 react-dom@19.3.1
26
+ pnpm add /path/to/suabochica-design-system-1.4.1.tgz react@19.3.1 react-dom@19.3.1
27
27
  ```
28
28
 
29
29
  Import styles once in the application layout and components from the public entry:
@@ -212,7 +212,7 @@ Progress is tracked in `IMPLEMENTATION_PLAN.md`.
212
212
 
213
213
  ## Component and template catalog
214
214
 
215
- **Atoms → Icon** provides nine pinned Iconoir SVGs for email, phone, CV, social
215
+ **Atoms → Icon** provides thirteen pinned Iconoir SVGs for email, phone, CV, social
216
216
  links, and website/blog navigation. The React atom renders static inline SVG in
217
217
  Astro; the same packaged artwork powers a Hugo partial without React. See the
218
218
  [Icon guide](src/components/Icon/README.md) for names, accessibility, licensing,
@@ -250,6 +250,12 @@ caller-formatted metadata, and natural image/caption composition. See
250
250
  [`src/components/MOLECULES.md`](src/components/MOLECULES.md) for APIs, semantics,
251
251
  image constraints, fixture attribution, and shared HTML markup.
252
252
 
253
+ **Molecules → Dropdown** is a controlled single-selection combobox: icon+label
254
+ trigger, listbox keyboard/typeahead behavior, and a native-select fallback for
255
+ SSR and no-JavaScript hosts. See
256
+ [`src/components/Dropdown/README.md`](src/components/Dropdown/README.md) for
257
+ props, the interaction contract, and plain-HTML/Hugo markup.
258
+
253
259
  **Organisms → SiteHeader** composes the brand and navigation with a mobile
254
260
  disclosure, responsive focus management, and usable static/server markup. See
255
261
  [`src/components/SiteHeader/README.md`](src/components/SiteHeader/README.md) for
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2 21L17 21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M21 21L22 21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M2 16.4V3.6C2 3.26863 2.26863 3 2.6 3H21.4C21.7314 3 22 3.26863 22 3.6V16.4C22 16.7314 21.7314 17 21.4 17H2.6C2.26863 17 2 16.7314 2 16.4Z" stroke="currentColor" stroke-width="1.5"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3 11.5066C3 16.7497 7.25034 21 12.4934 21C16.2209 21 19.4466 18.8518 21 15.7259C12.4934 15.7259 8.27411 11.5066 8.27411 3C5.14821 4.55344 3 7.77915 3 11.5066Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -2,5 +2,19 @@
2
2
  "source": "https://github.com/iconoir-icons/iconoir/tree/v7.12.2/icons/regular",
3
3
  "version": "7.12.2",
4
4
  "style": "regular",
5
- "icons": ["mail-out", "phone-income", "post", "page-star", "github", "linkedin", "x", "instagram", "home"]
5
+ "icons": [
6
+ "mail-out",
7
+ "phone-income",
8
+ "post",
9
+ "page-star",
10
+ "github",
11
+ "linkedin",
12
+ "x",
13
+ "instagram",
14
+ "home",
15
+ "sun-light",
16
+ "half-moon",
17
+ "computer",
18
+ "terminal"
19
+ ]
6
20
  }
@@ -0,0 +1,11 @@
1
+ <svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M22 12L23 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M12 2V1" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M12 23V22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M20 20L19 19" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M20 4L19 5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
8
+ <path d="M4 20L5 19" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
9
+ <path d="M4 4L5 5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
10
+ <path d="M1 12L2 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
11
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13 17H20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M5 7L10 12L5 17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>