suabochica-design-system 1.2.0 → 1.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/CHANGELOG.md +52 -0
- package/DESIGN_DECISIONS.md +25 -19
- package/DISTRIBUTION.md +5 -4
- package/MIGRATION.md +7 -5
- package/README.md +17 -2
- package/dist/icons/computer.svg +5 -0
- package/dist/icons/half-moon.svg +3 -0
- package/dist/icons/manifest.json +14 -1
- package/dist/icons/sun-light.svg +11 -0
- package/dist/images/sua-bg-terracota-me-color.png +0 -0
- package/dist/js/index.js +463 -12
- package/dist/js/index.js.map +1 -1
- package/dist/styles/suabochica.css +1 -1
- package/dist/types/components/Dropdown/Dropdown.d.ts +24 -0
- package/dist/types/components/ScrollTrack/ScrollTrack.d.ts +26 -0
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +9 -1
- package/dist/types/icons/generated.d.ts +1 -1
- package/dist/types/index.d.ts +3 -1
- package/package.json +4 -2
- package/src/components/Button/README.md +1 -1
- package/src/components/Dropdown/README.md +102 -0
- package/src/components/FORMS.md +2 -2
- package/src/components/Icon/README.md +6 -3
- package/src/components/LAYOUT.md +1 -1
- package/src/components/ScrollTrack/README.md +122 -0
- package/src/components/SiteHeader/README.md +36 -10
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,56 @@ Unreleased until a version is published.
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## [1.4.0] - 2026-11-08
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Dropdown molecule: a controlled single-selection select-only combobox with an
|
|
14
|
+
icon+label trigger, listbox popup, keyboard navigation, typeahead, disabled
|
|
15
|
+
options, and a native-select fallback that works before hydration and without
|
|
16
|
+
JavaScript. SiteHeader's optional theme selector now uses Dropdown (public
|
|
17
|
+
`themeSelector` API unchanged) with sun/half-moon/computer icons. Escape
|
|
18
|
+
inside the theme listbox closes only the listbox. React/Astro and a documented
|
|
19
|
+
plain-HTML/Hugo fallback share `sua-dropdown*` classes.
|
|
20
|
+
- Iconoir regular catalog grew to twelve SVGs with `sun-light`, `half-moon`, and
|
|
21
|
+
`computer` for light/dark/system theme presentation.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Light-theme reading, input, and secondary-text surfaces moved from pure white
|
|
26
|
+
to warm sand `#F1D4AF`. Dependent tokens retuned for contrast: secondary
|
|
27
|
+
button text uses cream `#FFF0C5`, placeholders use `#5C5A56`, structural
|
|
28
|
+
borders use stronger sand, and light headings/accent use deeper coral/teal
|
|
29
|
+
(`#A52A1A` / `#1F5F60`).
|
|
30
|
+
|
|
31
|
+
### Validation record
|
|
32
|
+
|
|
33
|
+
203 Jest tests and 560 Chromium checks passed in the pinned browser container,
|
|
34
|
+
including visual comparisons across light and dark themes, plus packed Astro/Hugo
|
|
35
|
+
installs of the 1.4.0 tarball.
|
|
36
|
+
|
|
37
|
+
## [1.3.0] - 2026-11-06
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- SiteHeader accepts an optional packaged portrait for the brand and a controlled
|
|
42
|
+
native Light/Dark/System selector, with a responsive layout and a Storybook
|
|
43
|
+
preview that switches the theme of its content.
|
|
44
|
+
- ScrollTrack organism: a pure-CSS scroll-driven isometric stage with three
|
|
45
|
+
abstract role layers (Developer, Designer, Manager by default). A named view
|
|
46
|
+
timeline tilts the rig and focuses each layer in depth while captions
|
|
47
|
+
crossfade; base styles render a static exploded stack under reduced motion or
|
|
48
|
+
without `animation-timeline` support. No JavaScript. React/Astro and
|
|
49
|
+
plain-HTML/Hugo share the same `sua-scroll-track*` classes and packaged CSS.
|
|
50
|
+
Long card/caption copy is height-capped with line clamps so descriptions
|
|
51
|
+
never overlap the stage.
|
|
52
|
+
|
|
53
|
+
### Validation record
|
|
54
|
+
|
|
55
|
+
189 Jest tests and 544 Chromium checks passed in the pinned browser container,
|
|
56
|
+
including 24 screenshot comparisons across light and dark themes, plus packed
|
|
57
|
+
Astro/Hugo installs of the 1.3.0 tarball.
|
|
58
|
+
|
|
9
59
|
## [1.2.0] - 2026-11-06
|
|
10
60
|
|
|
11
61
|
### Added
|
|
@@ -143,3 +193,5 @@ choosing the first release. See [RELEASE.md](RELEASE.md) for the sequence.
|
|
|
143
193
|
[1.0.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.0.0
|
|
144
194
|
[1.1.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.1.0
|
|
145
195
|
[1.2.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.2.0
|
|
196
|
+
[1.3.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.3.0
|
|
197
|
+
[1.4.0]: https://github.com/suabochica/suabochica-storybook/releases/tag/v1.4.0
|
package/DESIGN_DECISIONS.md
CHANGED
|
@@ -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: `#
|
|
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
|
|
56
|
-
**
|
|
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
|
-
|
|
62
|
-
**4.511:1** and paper at **4.728:1**. Retain original teal for
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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:** `#
|
|
75
|
-
|
|
76
|
-
|
|
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
|
|
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:**
|
|
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.
|
|
18
|
+
Install the generated `suabochica-design-system-1.4.0.tgz` in a separate consumer:
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
|
-
pnpm add /path/to/suabochica-design-system-1.
|
|
21
|
+
pnpm add /path/to/suabochica-design-system-1.4.0.tgz react@19.3.1 react-dom@19.3.1
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
```tsx
|
|
@@ -51,9 +51,10 @@ 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` |
|
|
54
|
+
| `suabochica-design-system/icons/*.svg` | Twelve 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
|
+
| `suabochica-design-system/images/*.png` | Packaged SiteHeader portrait for optional brand imagery |
|
|
57
58
|
| `suabochica-design-system/package.json` | Metadata and location for static asset tooling |
|
|
58
59
|
|
|
59
60
|
- ESM only; use `import`, not CommonJS `require` for the component entry.
|
|
@@ -75,7 +76,7 @@ no consumer Tailwind plugin or library-source scanning requirement.
|
|
|
75
76
|
declarations reachable from the public entry. `dist/styles/` contains CSS,
|
|
76
77
|
four relative variable-font assets, and both SIL notices. Preserve the complete
|
|
77
78
|
styles tree when copying it to a static site's public assets.
|
|
78
|
-
- `dist/icons/` contains only
|
|
79
|
+
- `dist/icons/` contains only twelve Iconoir SVGs, their manifest, and the separate
|
|
79
80
|
MIT notice. Astro renders the Icon atom without hydration; Hugo copies these
|
|
80
81
|
assets to its `assets/` tree and inlines them through a validated partial.
|
|
81
82
|
See the [Icon guide](src/components/Icon/README.md) for site integration.
|
package/MIGRATION.md
CHANGED
|
@@ -96,19 +96,21 @@ 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.
|
|
100
|
-
|
|
99
|
+
- **Packaging:** `suabochica-design-system@1.4.0` includes the Icon atom,
|
|
100
|
+
SiteHeader portrait/theme selector, ScrollTrack, and Dropdown. Packed ESM
|
|
101
|
+
builds are verified.
|
|
101
102
|
Arbitrary consumer Tailwind utilities are not generated by the precompiled
|
|
102
103
|
stylesheet.
|
|
103
104
|
- **Behavior:** apps own validation/announcements, routing, data fetching, CMS/
|
|
104
105
|
Markdown rendering, sanitization, and image optimization. CodeBlock provides
|
|
105
106
|
optional snippet highlighting; Hugo uses its built-in highlighter with the
|
|
106
107
|
shared CodeBlock styles.
|
|
107
|
-
The Icon atom supplies
|
|
108
|
+
The Icon atom supplies twelve pinned Iconoir regular SVGs; Astro renders it
|
|
108
109
|
statically, while Hugo inlines the same packaged SVGs from a local partial.
|
|
109
110
|
Apps own contact details, profile URLs, and cross-site destinations.
|
|
110
|
-
Newsletter backends, reading progress,
|
|
111
|
-
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.
|
|
112
114
|
- **Verification:** browser automation is Chromium at two widths, with axe and
|
|
113
115
|
selected visual baselines. It complements manual keyboard/visual review;
|
|
114
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.
|
|
26
|
+
pnpm add /path/to/suabochica-design-system-1.4.0.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
|
|
215
|
+
**Atoms → Icon** provides twelve 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
|
|
@@ -273,6 +279,15 @@ never claims payment receipt; hydration is optional. See
|
|
|
273
279
|
[`src/components/ReaderSupport/README.md`](src/components/ReaderSupport/README.md)
|
|
274
280
|
for configuration, clipboard/no-JavaScript behavior, and the Hugo shortcode.
|
|
275
281
|
|
|
282
|
+
**Organisms → ScrollTrack** is a pure-CSS scroll-driven isometric stage: three
|
|
283
|
+
abstract role layers (developer, designer, manager by default) separate in 3D
|
|
284
|
+
and focus one at a time while captions crossfade. Base styles render a static
|
|
285
|
+
stack for reduced motion and browsers without animation timelines; no
|
|
286
|
+
JavaScript is required. Card and caption blurbs are height-capped so long copy
|
|
287
|
+
never collides with the stage. See
|
|
288
|
+
[`src/components/ScrollTrack/README.md`](src/components/ScrollTrack/README.md)
|
|
289
|
+
for props, the motion contract, and the plain-HTML/Hugo markup.
|
|
290
|
+
|
|
276
291
|
**Templates → PortfolioIndexTemplate** and **Pages → Portfolio** demonstrate a
|
|
277
292
|
complete portfolio composition with skip navigation, project and writing
|
|
278
293
|
collections, optional content/footer slots, and alternating project media. See
|
|
@@ -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>
|
package/dist/icons/manifest.json
CHANGED
|
@@ -2,5 +2,18 @@
|
|
|
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": [
|
|
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
|
+
]
|
|
6
19
|
}
|
|
@@ -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>
|
|
Binary file
|