legato-ui 0.0.0-stage → 1.2.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.
Files changed (203) hide show
  1. package/CHANGELOG.md +399 -0
  2. package/LICENSE +21 -0
  3. package/README.md +110 -2
  4. package/bin/gavia-theme.mjs +17 -0
  5. package/bin/theme-cli.mjs +75 -0
  6. package/dist/chunks/BovMd2iJ.js +1082 -0
  7. package/dist/chunks/CC86JZu0.js +45 -0
  8. package/dist/chunks/Cyf5vHOa.js +21 -0
  9. package/dist/chunks/Dq46i43b.js +11 -0
  10. package/dist/chunks/KbPin6nM.js +602 -0
  11. package/dist/chunks/U27hmRqd.js +6548 -0
  12. package/dist/components/WlAccordion.vue.d.ts +42 -0
  13. package/dist/components/WlAlert.vue.d.ts +75 -0
  14. package/dist/components/WlAutocomplete.vue.d.ts +118 -0
  15. package/dist/components/WlAvatar.vue.d.ts +64 -0
  16. package/dist/components/WlBadge.vue.d.ts +63 -0
  17. package/dist/components/WlBreadcrumbs.vue.d.ts +69 -0
  18. package/dist/components/WlButton.vue.d.ts +109 -0
  19. package/dist/components/WlButtonGroup.vue.d.ts +44 -0
  20. package/dist/components/WlCalendar.vue.d.ts +63 -0
  21. package/dist/components/WlCard.vue.d.ts +66 -0
  22. package/dist/components/WlCheckbox.vue.d.ts +63 -0
  23. package/dist/components/WlCheckboxGroup.vue.d.ts +98 -0
  24. package/dist/components/WlChip.vue.d.ts +99 -0
  25. package/dist/components/WlColorPicker.vue.d.ts +98 -0
  26. package/dist/components/WlCommandPalette.vue.d.ts +137 -0
  27. package/dist/components/WlConfirmDialog.vue.d.ts +55 -0
  28. package/dist/components/WlContextMenu.vue.d.ts +65 -0
  29. package/dist/components/WlDatePicker.vue.d.ts +101 -0
  30. package/dist/components/WlDialog.vue.d.ts +124 -0
  31. package/dist/components/WlDivider.vue.d.ts +28 -0
  32. package/dist/components/WlDrawer.vue.d.ts +131 -0
  33. package/dist/components/WlEmpty.vue.d.ts +44 -0
  34. package/dist/components/WlField.vue.d.ts +72 -0
  35. package/dist/components/WlFilePicker.vue.d.ts +96 -0
  36. package/dist/components/WlFileUpload.vue.d.ts +109 -0
  37. package/dist/components/WlFilterBar.vue.d.ts +142 -0
  38. package/dist/components/WlIcon.vue.d.ts +49 -0
  39. package/dist/components/WlIconButton.vue.d.ts +103 -0
  40. package/dist/components/WlInput.vue.d.ts +106 -0
  41. package/dist/components/WlLink.vue.d.ts +79 -0
  42. package/dist/components/WlMenu.vue.d.ts +61 -0
  43. package/dist/components/WlMultiSelect.vue.d.ts +137 -0
  44. package/dist/components/WlNavItem.vue.d.ts +105 -0
  45. package/dist/components/WlNumberInput.vue.d.ts +149 -0
  46. package/dist/components/WlPageHeader.vue.d.ts +100 -0
  47. package/dist/components/WlPagination.vue.d.ts +75 -0
  48. package/dist/components/WlPasswordInput.vue.d.ts +90 -0
  49. package/dist/components/WlPill.vue.d.ts +58 -0
  50. package/dist/components/WlPopover.vue.d.ts +110 -0
  51. package/dist/components/WlProgress.vue.d.ts +77 -0
  52. package/dist/components/WlRadio.vue.d.ts +60 -0
  53. package/dist/components/WlRadioGroup.vue.d.ts +97 -0
  54. package/dist/components/WlSegmented.vue.d.ts +65 -0
  55. package/dist/components/WlSelect.vue.d.ts +114 -0
  56. package/dist/components/WlSidebar.vue.d.ts +139 -0
  57. package/dist/components/WlSkeleton.vue.d.ts +53 -0
  58. package/dist/components/WlSlider.vue.d.ts +132 -0
  59. package/dist/components/WlSpinner.vue.d.ts +48 -0
  60. package/dist/components/WlStatCard.vue.d.ts +67 -0
  61. package/dist/components/WlSteps.vue.d.ts +68 -0
  62. package/dist/components/WlSwitch.vue.d.ts +104 -0
  63. package/dist/components/WlTable.vue.d.ts +82 -0
  64. package/dist/components/WlTabs.vue.d.ts +60 -0
  65. package/dist/components/WlTag.vue.d.ts +97 -0
  66. package/dist/components/WlTagsInput.vue.d.ts +148 -0
  67. package/dist/components/WlTextarea.vue.d.ts +100 -0
  68. package/dist/components/WlTimePicker.vue.d.ts +98 -0
  69. package/dist/components/WlToast.vue.d.ts +71 -0
  70. package/dist/components/WlToolbar.vue.d.ts +88 -0
  71. package/dist/components/WlTooltip.vue.d.ts +102 -0
  72. package/dist/components/choice-group-contracts.d.ts +70 -0
  73. package/dist/components/generic-contracts.d.ts +148 -0
  74. package/dist/components/index.d.ts +60 -0
  75. package/dist/components/internal/MenuPanel.vue.d.ts +38 -0
  76. package/dist/components/native-contracts.d.ts +204 -0
  77. package/dist/composables/index.d.ts +22 -0
  78. package/dist/composables/useNativeFilePicker.d.ts +8 -0
  79. package/dist/composables/useWlAnnouncer.d.ts +4 -0
  80. package/dist/composables/useWlClipboard.d.ts +7 -0
  81. package/dist/composables/useWlConfirm.d.ts +29 -0
  82. package/dist/composables/useWlControllable.d.ts +17 -0
  83. package/dist/composables/useWlHotkey.d.ts +8 -0
  84. package/dist/composables/useWlMediaQuery.d.ts +7 -0
  85. package/dist/composables/useWlOverlay.d.ts +13 -0
  86. package/dist/composables/useWlResultsAnnouncement.d.ts +7 -0
  87. package/dist/composables/useWlTheme.d.ts +30 -0
  88. package/dist/composables/useWlToast.d.ts +48 -0
  89. package/dist/composables/useWlTypeahead.d.ts +13 -0
  90. package/dist/composables.js +118 -0
  91. package/dist/config.d.ts +41 -0
  92. package/dist/design-system/index.d.ts +8 -0
  93. package/dist/design-system/tokens.generated.d.ts +5899 -0
  94. package/dist/design-system/types.d.ts +34 -0
  95. package/dist/design-tokens.json +6684 -0
  96. package/dist/directives/tooltip.d.ts +10 -0
  97. package/dist/field-types.d.ts +17 -0
  98. package/dist/iconNames.d.ts +5 -0
  99. package/dist/icons.generated.d.ts +3 -0
  100. package/dist/index.d.ts +35 -0
  101. package/dist/index.js +14122 -0
  102. package/dist/input-expose-types.d.ts +5 -0
  103. package/dist/locale-types.d.ts +153 -0
  104. package/dist/locale.d.ts +17 -0
  105. package/dist/manifest/actions.d.ts +1 -0
  106. package/dist/manifest/composites.d.ts +1 -0
  107. package/dist/manifest/containers.d.ts +1 -0
  108. package/dist/manifest/data.d.ts +1 -0
  109. package/dist/manifest/feedback.d.ts +1 -0
  110. package/dist/manifest/index.d.ts +17 -0
  111. package/dist/manifest/inputs.d.ts +1 -0
  112. package/dist/manifest/misc.d.ts +1 -0
  113. package/dist/manifest/navigation.d.ts +1 -0
  114. package/dist/manifest/types.d.ts +50 -0
  115. package/dist/manifest/values.d.ts +17 -0
  116. package/dist/manifest.json +6323 -0
  117. package/dist/model-types.d.ts +12 -0
  118. package/dist/native-types.d.ts +36 -0
  119. package/dist/navigation-types.d.ts +118 -0
  120. package/dist/overlay-types.d.ts +36 -0
  121. package/dist/picker-types.d.ts +34 -0
  122. package/dist/pt-types.d.ts +557 -0
  123. package/dist/selection-types.d.ts +33 -0
  124. package/dist/services/confirmation.d.ts +31 -0
  125. package/dist/services/toast.d.ts +53 -0
  126. package/dist/table-types.d.ts +70 -0
  127. package/dist/theme/index.d.ts +6 -0
  128. package/dist/theme/palette.d.ts +43 -0
  129. package/dist/theme/types.d.ts +34 -0
  130. package/dist/theme-generator.js +198 -0
  131. package/dist/theme.d.ts +12 -0
  132. package/dist/types.d.ts +73 -0
  133. package/dist/utils/accessibility.d.ts +2 -0
  134. package/dist/utils/anchoredOverlay.d.ts +28 -0
  135. package/dist/utils/appCleanup.d.ts +3 -0
  136. package/dist/utils/attrs.d.ts +2 -0
  137. package/dist/utils/bodyScrollLock.d.ts +5 -0
  138. package/dist/utils/buttonGroup.d.ts +10 -0
  139. package/dist/utils/color.d.ts +11 -0
  140. package/dist/utils/colorPicker.d.ts +9 -0
  141. package/dist/utils/date.d.ts +8 -0
  142. package/dist/utils/dateInputFormat.d.ts +8 -0
  143. package/dist/utils/development.d.ts +1 -0
  144. package/dist/utils/format.d.ts +28 -0
  145. package/dist/utils/index.d.ts +10 -0
  146. package/dist/utils/initials.d.ts +1 -0
  147. package/dist/utils/inputAttrs.d.ts +14 -0
  148. package/dist/utils/inputCounter.d.ts +6 -0
  149. package/dist/utils/menu.d.ts +10 -0
  150. package/dist/utils/merge.d.ts +8 -0
  151. package/dist/utils/number.d.ts +6 -0
  152. package/dist/utils/optionGroups.d.ts +13 -0
  153. package/dist/utils/options.d.ts +21 -0
  154. package/dist/utils/overlayLifecycle.d.ts +24 -0
  155. package/dist/utils/overlayProps.d.ts +6 -0
  156. package/dist/utils/overlayStack.d.ts +23 -0
  157. package/dist/utils/overlayTransition.d.ts +4 -0
  158. package/dist/utils/parseNumber.d.ts +2 -0
  159. package/dist/utils/rovingFocus.d.ts +13 -0
  160. package/dist/utils/templateTeleport.vue.d.ts +11 -0
  161. package/dist/utils/templateTransition.vue.d.ts +3 -0
  162. package/dist/utils/timeInputFormat.d.ts +7 -0
  163. package/dist/utils/useWlId.d.ts +2 -0
  164. package/dist/utils.js +4 -0
  165. package/fonts/gavia/FONTLOG.txt +17 -0
  166. package/fonts/gavia/Gavia-Bold.woff2 +0 -0
  167. package/fonts/gavia/Gavia-BoldItalic.woff2 +0 -0
  168. package/fonts/gavia/Gavia-Light.woff2 +0 -0
  169. package/fonts/gavia/Gavia-LightItalic.woff2 +0 -0
  170. package/fonts/gavia/Gavia-Medium.woff2 +0 -0
  171. package/fonts/gavia/Gavia-MediumItalic.woff2 +0 -0
  172. package/fonts/gavia/Gavia-Regular.woff2 +0 -0
  173. package/fonts/gavia/Gavia-RegularItalic.woff2 +0 -0
  174. package/fonts/gavia/Gavia-SemiBold.woff2 +0 -0
  175. package/fonts/gavia/Gavia-SemiBoldItalic.woff2 +0 -0
  176. package/fonts/gavia/Gavia-Thin.woff2 +0 -0
  177. package/fonts/gavia/Gavia-ThinItalic.woff2 +0 -0
  178. package/fonts/gavia/Gavia-Variable-Core.woff2 +0 -0
  179. package/fonts/gavia/Gavia-Variable-Italic-Core.woff2 +0 -0
  180. package/fonts/gavia/Gavia-Variable-Italic.woff2 +0 -0
  181. package/fonts/gavia/Gavia-Variable.woff2 +0 -0
  182. package/fonts/gavia/OFL.txt +94 -0
  183. package/fonts/gavia/Onest-OFL.txt +93 -0
  184. package/fonts/gavia/VARIABLE-FONTLOG.txt +11 -0
  185. package/fonts/gavia/manifest.json +225 -0
  186. package/package.json +108 -3
  187. package/styles/base.css +589 -0
  188. package/styles/components/actions-and-pagination.css +12 -0
  189. package/styles/components/controls.css +72 -0
  190. package/styles/components/core.css +4070 -0
  191. package/styles/components/menu.css +33 -0
  192. package/styles/components/pickers.css +46 -0
  193. package/styles/fonts/gavia.css +307 -0
  194. package/styles/fonts/legato.css +167 -0
  195. package/styles/primitives.css +37 -0
  196. package/styles/reset.css +93 -0
  197. package/themes/gavia-dark.css +549 -0
  198. package/themes/gavia.css +549 -0
  199. package/themes/graphite.css +549 -0
  200. package/themes/legato-dark.css +549 -0
  201. package/themes/legato.css +549 -0
  202. package/themes/newspaper.css +549 -0
  203. package/themes/white.css +551 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,399 @@
1
+ # Changelog
2
+
3
+ What changed in the component library and what to consider when upgrading.
4
+ Versions before the rebrand used the previous package name.
5
+ The history was reconstructed from release Git tags and migration notes.
6
+ Historical generated Changeset paragraphs are preserved in [the maintainer archive](https://github.com/whitewolf06/legato-ui/blob/main/docs/maintainers/changeset-history.md).
7
+
8
+ ## Unreleased
9
+
10
+ ## 1.2.0 — 2026-11-21
11
+
12
+ ### Added
13
+
14
+ - Starting with 1.2.0, install `legato-ui`. The previous package remains available as `gavia-ui@1.1.0`. See the [migration guide](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-2) to retain existing imports with an npm alias.
15
+ - Use the Legato UI name in the Playground. Legato and Legato Dark follow the system appearance by default. Legato Sans is available for web and desktop. Existing Gavia themes, font families, imports and download links remain supported.
16
+ - Generate full or delta theme CSS, manual token overrides and scoped contrast reports through the pure `legato-ui/theme` entry.
17
+ - Generate or check theme CSS from versioned JSON with the `legato-theme` Node CLI; download matching v2 configs from Theme Builder.
18
+
19
+ ### Fixed
20
+
21
+ - Keep shared locale and icon configuration reactive on Vue 3.4 after the first consuming component unmounts.
22
+ - Prevent Dialog and Drawer heading IDs from colliding with Vue 3.5 `useId()`, including applications with a custom `idPrefix`.
23
+ - Describe synthesized model-update events in the manifest and distinguish inherited settings from literal defaults in documentation API tables.
24
+
25
+ ### Documentation
26
+
27
+ - Expand the customization guide and custom-theme starter with primary action states, links, focus, selection and scoped brand layers.
28
+ - Apply a draft palette across the Playground, restore it after reload and undo it from any page.
29
+ - Update the Legato and Legato Dark homepages with the Duetto arch on paper, wider section spacing, unframed metrics and navigation, and compact project cards with diagonal corner accents. The browser tab shows a white script L on a rounded indigo square.
30
+ - Align the Playground header with page content across all six sections and fix a WebKit resize error when navigating between them.
31
+
32
+ ## 1.1.0 — 2026-11-14
33
+
34
+ Compatible additions and bug fixes for 1.0 consumers. Review the [1.1 upgrade guide](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-1.1.0.md), especially if you added workarounds for Card padding.
35
+
36
+ ### Added
37
+
38
+ - Customize Card, Accordion, Alert and Segmented typography and insets with component tokens. Opt into `wl-type-scale` from the primitives stylesheet to follow semantic text roles while retaining the 1.0 appearance by default ([#5](https://github.com/whitewolf06/legato-ui/issues/5)).
39
+
40
+ - Add WlCalendar `disabledDates` and a typed `dateSelect` activation event, including repeated activation of the selected date; preserve selection models and skip unavailable dates during keyboard navigation ([#6](https://github.com/whitewolf06/legato-ui/issues/6)).
41
+
42
+ - Configure Field, input-family, Accordion and Slider width limits through component tokens, or opt into `wl-fluid` with the optional primitives stylesheet to fill the containing layout ([#7](https://github.com/whitewolf06/legato-ui/issues/7)).
43
+
44
+ ### Fixed
45
+
46
+ - Align WlSlider range thumbs with the track, keep endpoint mark labels inside the control and reserve layout space for marks.
47
+
48
+ - Preserve local `--wl-type-small-size` overrides for small Segmented items when the semantic component scale is disabled ([#5](https://github.com/whitewolf06/legato-ui/issues/5)).
49
+
50
+ - Expose WlCalendar `multiple` as a boolean control in the Playground and align its live example with the component's single-selection default ([#6](https://github.com/whitewolf06/legato-ui/issues/6)).
51
+
52
+ - Keep Slider range tracks and marks within the same width as their inputs.
53
+
54
+ - Apply WlCard `padding="none|sm|md|lg"` to its own caption, content and footer once, without adding body padding or affecting nested cards. Cards without the prop keep their existing insets ([#4](https://github.com/whitewolf06/legato-ui/issues/4)).
55
+
56
+ ### Known limitations
57
+
58
+ Manual screen-reader checks remain unverified; automated CI does not establish manual accessibility acceptance ([protocol](https://github.com/whitewolf06/legato-ui/blob/main/docs/maintainers/manual-accessibility.md)).
59
+
60
+ ## 1.0.0 — 2026-10-25
61
+
62
+ Stable 1.0 promotes the RC public API to npm `latest`. The library API is unchanged from 1.0.0-rc.1; the Playground now translates all changelog prose into Russian.
63
+ Follow the [1.0 upgrade guide](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0).
64
+
65
+ ### Breaking changes
66
+
67
+ - Built-in text falls back to English; install `WlConfig` with `wlLocaleRu` to keep Russian ([localization](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-localization)).
68
+ - Use canonical PT names and separate `iconButton` overrides from `button` ([PT mapping](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-public-api)).
69
+ - Replace status variants with semantic `tone` and overlay `dismissable` with `dismissible` ([appearance and dismissal](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#semantic-tone-appearance-and-dismissal)).
70
+ - Import the Tooltip component as `WlTooltip`, register `WlTooltipDirective`, and provide names for icon actions ([Tooltip and names](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#tooltip-imports-and-action-names)).
71
+
72
+ ### Added
73
+
74
+ - Add CheckboxGroup, RadioGroup, Tooltip, nested menus, ContextMenu, Toolbar and TagsInput.
75
+ - Add pure utilities through `gavia-ui/utils` and Vue helpers through `gavia-ui/composables`.
76
+ - Add optional router adaptation through WlLink and controlled Table sorting/selection with stable row keys.
77
+ - Add typed option slots, disabled options, stable keys and clearable single selection.
78
+ - Add Toast IDs, updates, promise messages, actions, positions and pause/queue controls; confirmation also returns a Promise.
79
+ - Add Gavia Sans variable weights 100–700, real italic and a live Playground weight slider.
80
+ - Add canonical documentation routes, prerendering, full-text search, recipes and starter applications.
81
+
82
+ ### Changed
83
+
84
+ - Normalize configuration reactively and isolate locale, services and generated IDs per Vue application.
85
+ - Share overlay stacking, modal inert/focus ownership and active-only positioning listeners.
86
+ - Use one copyable SFC source for examples and source-derived public API metadata.
87
+ - Ship WOFF2 web fonts in npm and provide licensed TTF desktop downloads separately.
88
+ - Preserve Vue 3.4+, TypeScript 5.4+, five themes and explicit CSS imports.
89
+ - Keep prerendered Playground pages visible before startup and simplify displayed API types and component badges.
90
+ - Keep home-only preloads out of prerendered documentation and size artwork for high-density mobile screens.
91
+ - Use SVG decorations to avoid an unnecessary Full-font download on the Playground home page.
92
+ - Separate optional Core font families from complete Gavia fallback; use the complete face in Firefox to preserve combining clusters.
93
+ - Exclude variable-font audit data from npm and use neutral names for shared library chunks.
94
+ - Keep rendered documentation visible while the next Playground page and its translations load.
95
+
96
+ ### Fixed
97
+
98
+ - Translate the complete Playground changelog into Russian, including new releases, and check translation coverage.
99
+ - Keep New component badges when promoting the same numeric release from a prerelease to stable.
100
+ - Correct listbox keyboard navigation, active-option scrolling and duplicate click selection.
101
+ - Give Tabs unique tab/panel relationships and support disabled, vertical and retained/lazy panels.
102
+ - Restore anchored-panel positioning and focus after rendering, rebinding and reopening.
103
+ - Correct Alert/Field/Steps semantics and avoid duplicate Toast announcements.
104
+ - Reset settled Toast lifetimes and consistently cancel replaced confirmation requests.
105
+ - Support native Node16/NodeNext ESM declarations and independent installed-package consumers.
106
+ - Recognize dated alpha, beta and RC changelog entries while preserving the separate published stable version.
107
+
108
+ ### Deprecated / removed
109
+
110
+ - Remove the 0.x PT/status/dismissal aliases in the 1.0 release; use the [canonical-name migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-public-api).
111
+ - Remove internal locale adapters and Russian prop defaults; public locale overrides remain optional.
112
+ - Exclude TTF desktop files and font QA reports from npm ([font assets](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-package-assets)).
113
+
114
+ ### Known limitations
115
+
116
+ - Manual NVDA/Firefox, macOS VoiceOver/Safari and iOS VoiceOver checks remain unperformed. On 2026-10-25 the owner accepted this known limitation for stable 1.0 and chose immediate publication without the planned RC feedback period; automated checks do not establish manual accessibility acceptance ([protocol](https://github.com/whitewolf06/legato-ui/blob/main/docs/maintainers/manual-accessibility.md)).
117
+
118
+ ## 1.0.0-rc.1 — 2026-10-24
119
+
120
+ An opt-in release candidate for npm `next`; stable `latest` remains unchanged.
121
+ Follow the [1.0 upgrade guide](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-rc-1).
122
+
123
+ ### Breaking changes
124
+
125
+ - Built-in text falls back to English; install `WlConfig` with `wlLocaleRu` to keep Russian ([localization](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-localization)).
126
+ - Use canonical PT names and separate `iconButton` overrides from `button` ([PT mapping](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-public-api)).
127
+ - Replace status variants with semantic `tone` and overlay `dismissable` with `dismissible` ([appearance and dismissal](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#semantic-tone-appearance-and-dismissal)).
128
+ - Import the Tooltip component as `WlTooltip`, register `WlTooltipDirective`, and provide names for icon actions ([Tooltip and names](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#tooltip-imports-and-action-names)).
129
+
130
+ ### Added
131
+
132
+ - Add CheckboxGroup, RadioGroup, Tooltip, nested menus, ContextMenu, Toolbar and TagsInput.
133
+ - Add pure utilities through `gavia-ui/utils` and Vue helpers through `gavia-ui/composables`.
134
+ - Add optional router adaptation through WlLink and controlled Table sorting/selection with stable row keys.
135
+ - Add typed option slots, disabled options, stable keys and clearable single selection.
136
+ - Add Toast IDs, updates, promise messages, actions, positions and pause/queue controls; confirmation also returns a Promise.
137
+ - Add Gavia Sans variable weights 100–700, real italic and a live Playground weight slider.
138
+ - Add canonical documentation routes, prerendering, full-text search, recipes and starter applications.
139
+
140
+ ### Changed
141
+
142
+ - Normalize configuration reactively and isolate locale, services and generated IDs per Vue application.
143
+ - Share overlay stacking, modal inert/focus ownership and active-only positioning listeners.
144
+ - Use one copyable SFC source for examples and source-derived public API metadata.
145
+ - Ship WOFF2 web fonts in npm and provide licensed TTF desktop downloads separately.
146
+ - Preserve Vue 3.4+, TypeScript 5.4+, five themes and explicit CSS imports.
147
+ - Keep prerendered Playground pages visible before startup and simplify displayed API types and component badges.
148
+ - Keep home-only preloads out of prerendered documentation and size artwork for high-density mobile screens.
149
+ - Use SVG decorations to avoid an unnecessary Full-font download on the Playground home page.
150
+ - Separate optional Core font families from complete Gavia fallback; use the complete face in Firefox to preserve combining clusters.
151
+ - Exclude variable-font audit data from npm and use neutral names for shared library chunks.
152
+ - Keep rendered documentation visible while the next Playground page and its translations load.
153
+
154
+ ### Fixed
155
+
156
+ - Correct listbox keyboard navigation, active-option scrolling and duplicate click selection.
157
+ - Give Tabs unique tab/panel relationships and support disabled, vertical and retained/lazy panels.
158
+ - Restore anchored-panel positioning and focus after rendering, rebinding and reopening.
159
+ - Correct Alert/Field/Steps semantics and avoid duplicate Toast announcements.
160
+ - Reset settled Toast lifetimes and consistently cancel replaced confirmation requests.
161
+ - Support native Node16/NodeNext ESM declarations and independent installed-package consumers.
162
+ - Recognize dated alpha, beta and RC changelog entries while preserving the separate published stable version.
163
+
164
+ ### Deprecated / removed
165
+
166
+ - Remove the 0.x PT/status/dismissal aliases in the major candidate; use the [canonical-name migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-public-api).
167
+ - Remove internal locale adapters and Russian prop defaults; public locale overrides remain optional.
168
+ - Exclude TTF desktop files and font QA reports from npm ([font assets](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-package-assets)).
169
+
170
+ ### Known limitations
171
+
172
+ - Manual NVDA/Firefox, macOS VoiceOver/Safari and iOS VoiceOver checks remain unperformed. The owner accepted this gap for the RC on 2026-10-24; automated browser and Axe checks do not establish manual accessibility acceptance ([protocol](https://github.com/whitewolf06/legato-ui/blob/main/docs/maintainers/manual-accessibility.md)).
173
+
174
+ ## 0.12.1 — 2026-10-12
175
+
176
+ - The Playground follows the system color scheme and supported browser language on first visit, remembers manual choices, and offers a System theme option. Explicit language/theme links keep their priority.
177
+ - Home metrics link to the component, icon, token and theme sections. Documentation components are sorted alphabetically within each group and can be filtered with a local search field.
178
+
179
+ ## 0.12.0 — 2026-10-09
180
+
181
+ - Added an optional wlLocaleEn preset and EN/RU Playground localization with English by default and language URLs; GitHub Markdown documentation now uses English.
182
+ - Expanded the author story in the Playground and README, including the personal website.
183
+ - Added route-specific titles, descriptions, canonical/hreflang links and a sitemap; public documentation remains a client-rendered SPA.
184
+ - The Playground header keeps navigation links that fit and moves trailing links to More; mobile uses one row with 44 px Search/Theme controls with centered icons, a 68 px EN/RU selector and the Menu button at the far right. Desktop Search and Theme share a 120 px width, with Search text aligned left.
185
+
186
+ ## 0.11.1 — 2026-10-09
187
+
188
+ - Revised playground, README and documentation copy: shorter descriptions, clearer instructions and limitations.
189
+ - Opening a saved playground documentation link now scrolls to the requested section immediately.
190
+ - Fixed breadcrumb separator spacing and WlPill alignment.
191
+ - Changed the main accent in light Gavia to `#3c7490`; updated hover, active and accent text shades.
192
+
193
+ ## 0.11.0 — 2026-10-08
194
+
195
+ ### Public API typing
196
+
197
+ - Select/MultiSelect connect options, optionValue, model and update events through generics; resolvers no longer use any, and readonly lists are supported.
198
+ - Autocomplete distinguishes free single input from suggestion arrays; fixed lost text when option-label uses a key and a stale field after an external null/undefined reset.
199
+ - Table infers Row from value and checks regular columns against row keys; virtual columns require kind: "virtual". Cell slots retain the field type.
200
+ - pt provides section and context suggestions; WlPtStrict / WlPtConfigStrict catch typos through satisfies while allowing dynamic configuration.
201
+ - Radio/Segmented/Tabs connect the model to its domain; Sidebar/CommandPalette retain item/data types in events and slots. Added Expose types for ref methods and WlTooltipValue.
202
+ - Public generic exports require the actual resolver/mode prop when an explicit non-default generic is used, including DatePicker range.
203
+ - Menu/Accordion connect callbacks, keys and slots to the full item; Sidebar/CommandPalette retain extra group fields. Descriptor collections accept readonly.
204
+ - DOM attributes/events are typed without new runtime props; Field scoped slots and Menu/Popover/FilePicker/FilterBar ref methods received public contracts.
205
+ - Models describe modifiers: trim is supported only by text fields and CommandPalette query. Locale normalization is safe; known keys are no longer unknown.
206
+ - Confirm/Toast received scoped group helpers; Teleport component attrs reach the DOM. FilterBar uses an SSR id.
207
+ - Fixed single FileUpload, selection retention after a rejected replacement, disabled bypasses and NaN/Infinity in numeric UI.
208
+ - Positive and negative API fixtures were checked against source and installed archives on Vue 3.4 / TypeScript 5.4 and Vue 3.5; local results and check boundaries are in the [quality documentation](https://github.com/whitewolf06/legato-ui/blob/main/docs/quality.md).
209
+
210
+ ### Breaking changes
211
+
212
+ - Unknown models and callback labels without free-text handling require an explicit data type. Navigation descriptor collections are readonly; generic SFCs may require replacing InstanceType with an Expose contract.
213
+ - An explicit generic range DatePicker requires the actual selectionMode="range"; other models and handlers are preserved.
214
+ - Virtual columns must be marked explicitly; Menu/Accordion/Sidebar keys and callbacks are checked against data. The new declarations require TypeScript 5.4+.
215
+ - The historical 0.9.1 fixture stays unchanged. A scoped contract records the agreed 0.11 migration; new API losses still block the gate. [0.11 migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-0.11.0.md).
216
+
217
+ ## 0.10.0 — 2026-10-08
218
+
219
+ ### Themes
220
+
221
+ - README presents Gavia / Gavia Dark as the primary themes and Classic / Classic Dark / Newspaper as additional themes; each lists its identifier and explicit CSS import.
222
+ - Added a compact ghost sun/moon WlIconButton in the hero’s upper right corner: a tinted 32 px icon, a 44 × 44 px interaction area, no background box in the normal state and a visible keyboard focus ring. Gavia ↔ Gavia Dark, Classic ↔ Classic Dark; Newspaper switches to Classic Dark and returns on the next click.
223
+ - Day and night hero backgrounds are preloaded and remain two layers of the same composition: light themes use day and both dark themes use night. Theme switching uses one temporary full-page transition when View Transitions API is available; other browsers keep the hero crossfade. The night layer appears once loaded; prefers-reduced-motion disables transitions.
224
+ - Forest and reeds in home information cards remain visible in dark themes; cards retain dark backgrounds. Links to documentation, Issues and the GitHub guide in these cards open in a new tab and have an external-link icon.
225
+ - Gavia Dark received a night hero with the moon at the original sun position, soft blue light and the same loon; surfaces use cool gray with a slight blue undertone, and the main turquoise accent is stronger and slightly bluer. The installation card keeps its colored border and uses a dark turquoise accent background.
226
+ - Refined the cool undertone in only six Gavia Dark fills: page background, raised and secondary surfaces, hover and two soft accent backgrounds.
227
+ - The “Clarity in every detail” heading on the font page follows the selected theme’s typeface; Gavia Sans specimens keep their own font.
228
+ - Narrow WlAlert messages with action and close controls retain a readable text width; actions wrap within the available component width.
229
+ - Added Gavia Dark (`gavia-dark`, `themes/gavia-dark.css`) with Gavia Sans; the catalog contains five themes.
230
+ - White / Graphite display as Classic / Classic Dark. Identifiers `white` / `graphite`, CSS paths, original theme values and catalog positions are preserved.
231
+ - `wlDesignThemes` expanded from four to five entries; literal labels changed. Use `WlDesignTheme` / `WlThemeName` and `name` rather than fixing the old tuple length or label. [Theme migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-themes.md).
232
+
233
+ ### Checks and compatibility
234
+
235
+ - The actual public TypeScript/CSS/pt contract is protected by the 0.9.1 snapshot; the existing Vue consumer is checked.
236
+ - Added Gavia visual baselines with real Gavia Sans and axe checks for WCAG 2.2 AA.
237
+ - The archive runs in a browser on desktop/mobile; Node import, SSR/hydration and WlButton size are checked separately.
238
+ - Fixed Vue 3.4 support: declarations and SSR ids work with the minimum peer; Vue 3.5 retains native ids.
239
+ - Select/MultiSelect/Autocomplete connect controls and named lists through ARIA.
240
+ - Added --wl-text-accent/--wl-text-accent-hover and a foundation value for readable accent text; Graphite retains its original primary action color.
241
+ - Removed unused token/component catalogs from the single-button bundle; public exports are preserved.
242
+ - CI measures coverage against baseline thresholds; added overlay close-cancellation checks.
243
+ - Added “Quality and compatibility” in the playground, a home summary and search/footer links. Coverage, measurement date and source come from a real report; the README badge uses the saved repository snapshot, while the published playground uses its CI build report.
244
+ - WlStatCard labels use the theme’s readable text token.
245
+ - Playground coverage uses WlProgress percentage bars on a 0–100% scale; colors, radii and animation come from the theme.
246
+ - Changesets prepares versions, prereleases use npm next, and tag-release previews are stored separately.
247
+ - pnpm, npm and Bun installation options are available in the playground and README; added Issue templates and browser/version policy.
248
+
249
+ ## 0.9.1 — 2026-10-07
250
+
251
+ This release includes the 0.9 branch changes and corrected browser checks.
252
+ Version 0.9.0 was not published to npm; upgrade directly from 0.8.1 to 0.9.1.
253
+
254
+ ### Added
255
+
256
+ - Gavia Sans 0.6: Cyrillic and Latin, 6 weights, 12 upright/oblique faces, TTF/WOFF2. Explicit exports for font CSS and files; SIL OFL 1.1 license. The previous Gavia CSS family and import paths are preserved.
257
+ - Gavia theme with a warm background, primary color #294451 and danger #ab4448. Gavia Sans is used only in Gavia; White, Graphite and Newspaper retain their typography. The library’s base theme remains White.
258
+ - Playground font page: Russian/English text, numbers, all weights and a custom text specimen. Download Gavia-Sans-0.6.zip from the page and footer: 12 TTF, 12 WOFF2, CSS and licenses.
259
+ - Theme builder: 8 key colors, live components, contrast checks, local drafts and JSON/CSS export.
260
+ - Full guides for 53 components: interactive controls, copyable SFCs, API, accessibility and introduced version. Icons and themes are grouped in documentation; previous gallery URLs retain their redirects.
261
+ - WlDatePicker: optional selectionMode="range" with an ISO range and shared calendar. Single mode and the string model are preserved.
262
+ - Foundations documentation: typography, layout, copy and responsiveness with working examples. CSS primitives gained container variants, a divider, local scrolling and layer isolation.
263
+ - Shared page headers built with WlPageHeader/WlBreadcrumbs; a photographic home page with installation, metrics, sections and author. README uses the current logo, a graphic header and brief setup instructions.
264
+
265
+ ### Fixed
266
+
267
+ - Gavia and font specimens retain exact tabular number widths in Linux Chromium; rendering settings moved into theme tokens. Approved font files are unchanged.
268
+ - Documentation browser checks wait for the mobile menu rebuild to finish; dependency installation prefers Ubuntu archive and has its own timeout.
269
+
270
+ - Browser CI is split into four jobs; large SVG checks are split by theme with all states preserved. The number test checks set width and font loading; Gavia Sans source files are unchanged.
271
+
272
+ - The home page inherits the selected theme’s fonts, colors, radii and states; images and layout are shared. Installation and the 2×2 metrics use one grid and responsive spacing.
273
+ - Header: 20 px title, logo alignment, distinct design-system and theme-builder icons, favicon in Gavia’s primary color. The compact menu supports keyboard navigation and focus return.
274
+ - Short API and “Accessibility” tabs no longer stretch to the sidebar’s height. The side catalog sticks below the header; icons, categories and item spacing are aligned.
275
+ - The active table-of-contents item uses a small chevron and smooth 8 px shift; reduced motion is respected, and scrolling does not change the URL.
276
+ - WlPopover examples separate controls from nested dialog values; the copyable SFC keeps the same spacing. DatePicker focus covers the field and calendar button together.
277
+ - The font page uses current UI kit components; previous versions, comparisons, duplicate text specimens and the global Ctrl+S interception were removed from the presentation.
278
+
279
+ ## 0.8.1 — 2026-10-06
280
+
281
+ This release includes the 0.8 branch changes and the nested overlay fix.
282
+ Version 0.8.0 was not published to npm; upgrade directly from 0.7.1 to 0.8.1.
283
+
284
+ ### Added
285
+
286
+ - `WlTimePicker`: local HH:mm/null time, minute precision, bounds and native attributes.
287
+ - `WlFilePicker`: stateless File[] selection, a trigger slot and synchronous choose()/clear(); the app owns uploads and limits.
288
+ - `WlDatePicker.displayFormat`: Russian display by default and ISO display with matching manual input; the ISO model is preserved.
289
+ - Expanded the SVG catalog and added typed `resolveWlIconName` for canonical and legacy names.
290
+
291
+ ### Fixed
292
+ - Nested pickers/menus inside Popover and Dialog preserve the parent overlay when an item is chosen in a teleported list. Escape closes only the top layer and returns focus; Dialog retains its local Tab trap.
293
+ - `WlInput` retains a string model with `type="number"`, including clearing; native IME composition avoids premature commits.
294
+ - `WlTimePicker` shows focus and invalid outlines when the keyboard moves into internal segments of the native time control.
295
+
296
+ - `verify:package` handles Windows and Linux line endings in LICENSE while comparing license content strictly.
297
+ - Infinite `WlNumberInput` bounds do not reach aria-valuemin/aria-valuemax; default max=99 is preserved.
298
+
299
+ [Consumer upgrade](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-0.8.md). Existing models, classes,
300
+ tokens and defaults are preserved; new components are imported explicitly.
301
+
302
+ ## 0.7.1 — 2026-10-05
303
+
304
+ ### Fixed
305
+
306
+ - `WlCheckbox` checked and indeterminate marks use SVG icons instead of font characters: their shapes and alignment match across three themes.
307
+ - Disabled `WlCheckbox` and `WlRadio` retain their appearance on hover.
308
+ - `WlSelect`, `WlMultiSelect` and `WlAutocomplete` disclosure arrows use aligned SVG icons instead of text characters.
309
+
310
+ ### Changed
311
+
312
+ - Removed nine completed HTML prototypes; working examples remain in the Vue playground, and source icons remain in the SVG catalog.
313
+ - The roadmap and icon instructions link to live SFC examples and the SVG catalog. Prototype history remains in Git. README starts with a prominent link to the public demo.
314
+
315
+ ## 0.7.0 — 2026-10-05
316
+
317
+ The first release under the new name on public npm. Setup instructions
318
+ and publication status are in [README](https://github.com/whitewolf06/legato-ui/blob/main/README.md).
319
+
320
+ ### Added
321
+
322
+ - Added an “About the project” playground page: author, license, instructions and the full changelog from one source.
323
+ - Added the documentation build and browser checks for GitHub Pages; site publication depends on all checks for the same commit.
324
+ - Added the full MIT text to the repository and library archive.
325
+ - Added the changelog and maintenance rules.
326
+
327
+ ### Changed
328
+
329
+ - The project adopted the `gavia-ui` name and a loon-shaped G mark.
330
+ - Documentation and metadata were prepared for `whitewolf06/legato-ui`.
331
+ - New package name `gavia-ui` on public npm: installation without a GitHub token after the first release.
332
+ - Updated imports, workspace, CI and the [package-name migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-gavia.md).
333
+ - Removed the previous brand from descriptions, demo data and prototypes.
334
+ - The local preview variable became `GAVIA_E2E_BASE_URL`. Catalog errors began
335
+ including the library name. The migration lists these changes.
336
+ - Local browser checks support the full pinned Chromium through `GAVIA_E2E_CHROMIUM_CHANNEL`.
337
+
338
+ ### Compatibility
339
+
340
+ - Public `Wl*` names, props, events, models, slots, icon names, `wl-*` classes
341
+ and `--wl-*` tokens are preserved.
342
+
343
+ The required package-path change and consumer checks are described in
344
+ the [0.7 migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-0.7.md). Application setup and the
345
+ 0.6.0 design system are preserved.
346
+
347
+ ## 0.6.0 — 2026-10-01
348
+
349
+ ### Added
350
+
351
+ - Design system: 416 tokens, White / Graphite / Newspaper themes and contrast checks.
352
+ - Layout and typography primitives, a JSON catalog and typed token APIs.
353
+ - Live SFC examples for 51 components, 47 SVG icons and six UI recipes.
354
+ - Contract, browser and visual checks; consumer smoke on Node 18 and 24.
355
+
356
+ ### Changed
357
+
358
+ - PrimeVue and PrimeIcons were fully removed. Vue 3 is the only required peer; there are no runtime dependencies.
359
+ - Configuration, tooltip, toast and confirmation behavior is implemented within the library.
360
+ - Optional overlay motion respects `prefers-reduced-motion`.
361
+ - Public component contracts and previous tokens are preserved.
362
+
363
+ ### Fixed
364
+
365
+ - Scroll blocking when opening Dialog/Drawer, focus return and nested overlay layers.
366
+ - Search focus and contrast for buttons, hints and error text.
367
+ - Reading CSS files in Node 18 tests and CI scenario timeouts.
368
+
369
+ Application setup and table changes are described in the
370
+ [0.6 migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-0.6.md) and [migration from 0.3](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration-0.5.md).
371
+ Work labeled 0.4/0.5 was included in 0.6.0; it has no separate release tags.
372
+
373
+ ## 0.3.0 — 2026-08-09
374
+
375
+ - Strengthened component contracts and added page layout primitives.
376
+
377
+ ## 0.2.1 — 2026-07-30
378
+
379
+ - Added the Newspaper theme.
380
+ - Switched the playground to lazy-loaded demos.
381
+
382
+ ## 0.2.0 — 2026-07-27
383
+
384
+ - Added the composite Sidebar and expanded composite examples.
385
+ - Added command palette, version navigation, selection/confirmation APIs and the manifest.
386
+
387
+ ## 0.1.0 — 2026-07-19
388
+
389
+ - First Vue 3 + TypeScript workspace: package, playground, themes and tokens.
390
+ - Basic components, navigation, overlays, table, calendar, date selection and file upload.
391
+ - Configured publication of the previous package to GitHub Packages.
392
+
393
+ ## Maintenance rules
394
+
395
+ Record changes under “Unreleased” first. At release, move them under the
396
+ version and actual publication date. Record features, fixes and required
397
+ upgrade steps; breaking changes require a migration note.
398
+ Root and package changelogs must have the same content; package documentation
399
+ links are absolute. Verify publication separately from pushing the tag.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gavia UI contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,111 @@
1
- # Temporary Holding Version
1
+ # Legato UI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ From 1.2.0 onward the npm name is `legato-ui`. Existing applications can keep their
4
+ old imports with the dependency `"gavia-ui": "npm:legato-ui@^1.2.0"`.
5
+
6
+ A Vue 3 + TypeScript component library and design system. Plain CSS, seven themes,
7
+ explicit style imports and no runtime dependencies. Vue `^3.4.0` is the only
8
+ required peer. TypeScript consumers need TypeScript 5.4 or later.
9
+
10
+ Source and package archive version: **1.2.0**.
11
+ Prerelease versions use npm `next` after publication; opt in with `legato-ui@next`
12
+ or an exact candidate version. The ordinary install command below selects stable.
13
+ [Documentation](https://whitewolf06.github.io/legato-ui/docs/) ·
14
+ [Русский](https://whitewolf06.github.io/legato-ui/ru/docs/) ·
15
+ [Playground](https://whitewolf06.github.io/legato-ui/) ·
16
+ [Repository](https://github.com/whitewolf06/legato-ui) ·
17
+ [Changelog](https://github.com/whitewolf06/legato-ui/blob/main/CHANGELOG.md) ·
18
+ [Migration guides](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md)
19
+
20
+ ## Install
21
+
22
+ ```sh
23
+ pnpm add legato-ui vue
24
+ # or
25
+ npm install legato-ui vue
26
+ # or
27
+ bun add legato-ui vue
28
+ ```
29
+
30
+ Import CSS once in your application's entry point:
31
+
32
+ ```ts
33
+ import "legato-ui/styles/reset.css";
34
+ import "legato-ui/styles/base.css";
35
+ import "legato-ui/styles/primitives.css";
36
+ import "legato-ui/styles/fonts/legato.css";
37
+ import "legato-ui/themes/legato.css";
38
+
39
+ document.documentElement.dataset.wlTheme = "legato";
40
+ ```
41
+
42
+ ```vue
43
+ <script setup lang="ts">
44
+ import { WlButton } from "legato-ui";
45
+ </script>
46
+
47
+ <template>
48
+ <WlButton>Save changes</WlButton>
49
+ </template>
50
+ ```
51
+
52
+ ## Themes and customization
53
+
54
+ Legato (`legato`), Legato Dark (`legato-dark`), Gavia (`gavia`), Gavia Dark (`gavia-dark`), Classic (`white`), Classic Dark
55
+ (`graphite`) and Newspaper (`newspaper`) share the same components. Import the
56
+ corresponding `legato-ui/themes/<theme>.css` and set `data-wl-theme`.
57
+
58
+ Tokens use the stable `--wl-*` namespace. Props, slots and pass-through sections
59
+ let applications extend components; optional `WlConfig` supplies shared locale,
60
+ pt and motion settings. Services are isolated per Vue application.
61
+
62
+ `legato-ui/theme` exports the pure `createWlTheme` generator and
63
+ `parseWlThemeConfig` JSON reader. The optional `legato-theme` command generates
64
+ CSS or checks it in CI with `--check`; it requires Node 22.13+.
65
+ See the [customization guide](https://github.com/whitewolf06/legato-ui/blob/main/docs/guide/theming.md#generate-css-from-a-versioned-config)
66
+ for v2 configs, full/delta output and scoped contrast reports.
67
+
68
+ ## Locale migration for 1.0
69
+
70
+ The 1.0 line uses English built-in text when locale configuration is omitted;
71
+ released 0.x versions used Russian. For a prerelease, follow the
72
+ [candidate migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-rc-1).
73
+ To preserve Russian,
74
+ install the explicit preset in your application entry point:
75
+
76
+ ```ts
77
+ import { WlConfig, wlLocaleRu } from "legato-ui";
78
+ app.use(WlConfig, { locale: wlLocaleRu });
79
+ ```
80
+
81
+ Missing fields in a partial locale fall back to English. Customize Russian with
82
+ `{ ...wlLocaleRu, accept: "Продолжить" }`. Omitted/`undefined` text props follow the
83
+ current locale; explicit strings, including `""`, keep priority. See the
84
+ [localization guide](https://github.com/whitewolf06/legato-ui/blob/main/docs/guide/localization.md)
85
+ and [1.0 migration](https://github.com/whitewolf06/legato-ui/blob/main/docs/migration.md#migration-1-0-localization).
86
+
87
+ See the [architecture and public contracts](https://github.com/whitewolf06/legato-ui/blob/main/docs/maintainers/architecture.md),
88
+ [design system](https://github.com/whitewolf06/legato-ui/blob/main/docs/reference/design-system.md)
89
+ and [compatibility checks](https://github.com/whitewolf06/legato-ui/blob/main/docs/maintainers/quality.md).
90
+ The package also exports `manifest.json` and `design-tokens.json` for tooling.
91
+
92
+ ## Legato Sans
93
+
94
+ Legato uses `"Legato Sans Core", "Legato Sans", ...` for compact ordinary
95
+ text and complete fallback for combining clusters. Firefox uses the complete face
96
+ to preserve mark placement. The stylesheet also registers Gavia Sans and Gavia for existing applications.
97
+
98
+ The npm package contains the WOFF2 web fonts and their OFL notices. TTF files and
99
+ the font QA report stay in the source repository. Download the full font family
100
+ from the [font page](https://whitewolf06.github.io/legato-ui/font/); release
101
+ attachments, when published, are listed in
102
+ [GitHub Releases](https://github.com/whitewolf06/legato-ui/releases).
103
+
104
+ ## Contribute and report issues
105
+
106
+ [Contributing](https://github.com/whitewolf06/legato-ui/blob/main/CONTRIBUTING.md) ·
107
+ [Issues](https://github.com/whitewolf06/legato-ui/issues) ·
108
+ [Security policy](https://github.com/whitewolf06/legato-ui/blob/main/SECURITY.md)
109
+
110
+ Created by [Dmitry Gorbach](https://github.com/whitewolf06).
111
+ Components: MIT. Legato Sans (also distributed as Gavia Sans): SIL OFL 1.1; preserve the distributed font notices.
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ /* global process */
3
+ import { runThemeCli } from "./theme-cli.mjs";
4
+
5
+ const [major, minor] = process.versions.node.split(".").map(Number);
6
+ if (major < 22 || (major === 22 && minor < 13)) {
7
+ process.stderr.write("legato-theme requires Node 22.13 or later.\n");
8
+ process.exitCode = 1;
9
+ } else {
10
+ try {
11
+ const engine = await import("../dist/theme-generator.js");
12
+ process.exitCode = runThemeCli(process.argv.slice(2), engine);
13
+ } catch (error) {
14
+ process.stderr.write(`legato-theme: ${error instanceof Error ? error.message : String(error)}\n`);
15
+ process.exitCode = 1;
16
+ }
17
+ }
@@ -0,0 +1,75 @@
1
+ /* global process */
2
+ import { existsSync, mkdirSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
3
+ import { dirname, resolve } from "node:path";
4
+
5
+ const usage = "Usage: legato-theme --config <theme.json> --output <theme.css> [--check]\n";
6
+
7
+ function argumentsFor(argv) {
8
+ const options = { check: false };
9
+ for (let index = 0; index < argv.length; index++) {
10
+ const argument = argv[index];
11
+ if (argument === "--check" && !options.check) {
12
+ options.check = true;
13
+ } else if ((argument === "--config" || argument === "--output")
14
+ && !options[argument.slice(2)] && argv[index + 1]?.trim() && !argv[index + 1].startsWith("--")) {
15
+ options[argument.slice(2)] = argv[++index];
16
+ } else {
17
+ throw new Error(`Unexpected or repeated argument: ${argument}. ${usage.trim()}`);
18
+ }
19
+ }
20
+ if (!options.config || !options.output) throw new Error(usage.trim());
21
+ return options;
22
+ }
23
+
24
+ /**
25
+ * The engine is the public theme module, also used by source-level CLI tests.
26
+ * @param {string[]} argv
27
+ * @param engine The public theme module.
28
+ * @param {{ cwd?: string, stdout?: (message: string) => unknown, stderr?: (message: string) => unknown }} [options]
29
+ */
30
+ export function runThemeCli(argv, engine, {
31
+ cwd = process.cwd(),
32
+ stdout = (message) => process.stdout.write(message),
33
+ stderr = (message) => process.stderr.write(message)
34
+ } = {}) {
35
+ try {
36
+ if (argv.length === 1 && argv[0] === "--help") {
37
+ stdout(usage);
38
+ return 0;
39
+ }
40
+ const options = argumentsFor(argv);
41
+ const configPath = realpathSync(resolve(cwd, options.config));
42
+ const outputPath = resolve(cwd, options.output);
43
+ const existingOutput = existsSync(outputPath) ? realpathSync(outputPath) : outputPath;
44
+ const comparable = (path) => process.platform === "win32" ? path.toLowerCase() : path;
45
+ if (comparable(configPath) === comparable(existingOutput)) {
46
+ throw new Error("Configuration and CSS output must be different files.");
47
+ }
48
+ const input = JSON.parse(readFileSync(configPath, "utf8"));
49
+ const config = engine.parseWlThemeConfig(input);
50
+ if (input.schemaVersion === 1) {
51
+ stderr("Legacy schemaVersion 1: only name, baseTheme and palette are used; derived export fields are ignored.\n");
52
+ }
53
+ const result = engine.createWlTheme(config);
54
+ const failed = result.contrast.filter((pair) => !pair.passes);
55
+ for (const pair of failed) {
56
+ stderr(`Contrast failed: ${pair.name} (${pair.ratio.toFixed(2)}:1; minimum ${pair.minimum}:1).\n`);
57
+ }
58
+ if (options.check) {
59
+ const current = existsSync(outputPath) && readFileSync(outputPath, "utf8") === result.css;
60
+ if (!current) stderr(`CSS is missing or out of date: ${options.output}\n`);
61
+ if (failed.length) return 3;
62
+ if (!current) return 2;
63
+ stdout(`CSS is current: ${options.output}\n`);
64
+ return 0;
65
+ }
66
+ if (failed.length) return 3;
67
+ mkdirSync(dirname(outputPath), { recursive: true });
68
+ writeFileSync(outputPath, result.css, "utf8");
69
+ stdout(`Wrote ${options.output}\n`);
70
+ return 0;
71
+ } catch (error) {
72
+ stderr(`legato-theme: ${error instanceof Error ? error.message : String(error)}\n`);
73
+ return 1;
74
+ }
75
+ }