@krizaka/sovkora-design-system 0.0.0-stage → 4.0.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +244 -0
  2. package/LICENSE +202 -0
  3. package/README.md +82 -2
  4. package/package.json +112 -3
  5. package/registry/badge.json +97 -0
  6. package/registry/button.json +140 -0
  7. package/registry/chat-showcase.json +113 -0
  8. package/registry/clip-player.json +120 -0
  9. package/registry/command-palette.json +116 -0
  10. package/registry/examples/badge/model-state.tsx +16 -0
  11. package/registry/examples/button/send.tsx +18 -0
  12. package/registry/examples/chat-showcase/french.tsx +20 -0
  13. package/registry/examples/chat-showcase/sovereign-answer.tsx +20 -0
  14. package/registry/examples/clip-player/tea-pour.tsx +27 -0
  15. package/registry/examples/command-palette/workspace.tsx +30 -0
  16. package/registry/examples/icon/engine.tsx +26 -0
  17. package/registry/examples/icon/in-a-button.tsx +12 -0
  18. package/registry/examples/run-facts/clip-run.tsx +15 -0
  19. package/registry/examples/sentinel-mini/sidebar.tsx +11 -0
  20. package/registry/examples/skeleton/answer-loading.tsx +11 -0
  21. package/registry/examples/video-result/assistant.tsx +36 -0
  22. package/registry/examples/video-result/tea-pour.tsx +40 -0
  23. package/registry/foundations.json +2067 -0
  24. package/registry/icon.json +109 -0
  25. package/registry/index.json +242 -0
  26. package/registry/run-facts.json +75 -0
  27. package/registry/sentinel-mini.json +81 -0
  28. package/registry/skeleton.json +116 -0
  29. package/registry/video-result.json +167 -0
  30. package/src/components/Badge.tsx +36 -0
  31. package/src/components/Button.tsx +26 -0
  32. package/src/components/ChatShowcase.tsx +248 -0
  33. package/src/components/ClipPlayer.tsx +223 -0
  34. package/src/components/CommandPalette.tsx +104 -0
  35. package/src/components/CommandPalette.types.ts +33 -0
  36. package/src/components/Input.tsx +14 -0
  37. package/src/components/RunFacts.tsx +36 -0
  38. package/src/components/SentinelMini.tsx +61 -0
  39. package/src/components/Skeleton.tsx +50 -0
  40. package/src/components/VideoResult.tsx +123 -0
  41. package/src/components/badge.meta.ts +34 -0
  42. package/src/components/button.meta.ts +35 -0
  43. package/src/components/chat-showcase.css.ts +19 -0
  44. package/src/components/chat-showcase.meta.ts +50 -0
  45. package/src/components/clip-player.meta.ts +48 -0
  46. package/src/components/command-palette.meta.ts +47 -0
  47. package/src/components/icon.meta.ts +45 -0
  48. package/src/components/run-facts.meta.ts +32 -0
  49. package/src/components/sentinel-mini.meta.ts +39 -0
  50. package/src/components/skeleton.meta.ts +42 -0
  51. package/src/components/video-result.meta.ts +53 -0
  52. package/src/icon.registry.tsx +737 -0
  53. package/src/icon.tsx +74 -0
  54. package/src/index.ts +43 -0
  55. package/src/meta.ts +76 -0
  56. package/src/theme.css +859 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,244 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@krizaka/sovkora-design-system` (published as `@krizaka/orazaka-design-system` up to 3.4.0). Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
4
+ versions: [Semantic Versioning](https://semver.org/).
5
+
6
+ ## 4.0.1
7
+
8
+ ### Patch Changes
9
+
10
+ - Updated dependencies [[`9b63927`](https://github.com/krizaka/krizaka-ui/commit/9b63927f5f7ac45e0b1dce2b43b1ef7fece63e71), [`9b63927`](https://github.com/krizaka/krizaka-ui/commit/9b63927f5f7ac45e0b1dce2b43b1ef7fece63e71), [`e2131ce`](https://github.com/krizaka/krizaka-ui/commit/e2131ce4ad5eb31dc33df541955a1e12ec0dbaf9)]:
11
+ - @krizaka/ui@4.1.0
12
+ - @krizaka/icons@0.10.0
13
+ - @krizaka/tailwind@4.1.0
14
+ - @krizaka/tokens@4.1.0
15
+
16
+ ## 4.0.0
17
+
18
+ ### Major Changes
19
+
20
+ - The Sovkora design system, published until 3.4.0 as `@krizaka/orazaka-design-system`, is now `@krizaka/sovkora-design-system`: it lives in krizaka-ui (`packages/sovkora-design-system`, moved from sovkora-ui-kit, ADR-029) and drops the code name. Import `@krizaka/sovkora-design-system` (and `@krizaka/sovkora-design-system/theme.css`); the product tokens are `--sovkora-*` (were `--orazaka-*`), the named theme is « Sovkora Orange » and the registry's product is `sovkora`. It is built on the 4.x platform: `@krizaka/ui`, `@krizaka/tokens` and `@krizaka/tailwind` ^4.0.0 (workspace siblings); `theme.css` imports `@krizaka/tokens/brands/sovkora.css` (the same orange as the former `brands/orazaka.css`) and the docs point to `SovkoraLogo`. An app moves to it together with `@krizaka/ui` 4. `ChatShowcase` reads the reduced-motion preference in render (same behaviour, no state set inside an effect). Node >= 22. This first release also carries the 3.4.1 fix of the changelog, never published under the old name. Its shared contracts are `@krizaka/sovkora-shared` 2.0.0 (was `@krizaka/orazaka-shared`).
21
+
22
+ ## [3.4.1] — 2026-10-16
23
+
24
+ ### Fixed
25
+ - `@krizaka/tailwind` and `@krizaka/tokens` are declared at `^3.19.0`, like `@krizaka/ui` (they were still `^2.4.0`): npm hoisted tailwind 2.10 to the workspace root, where `theme.css`'s `@import "@krizaka/tailwind"` could not find `@krizaka/ui/motion.css` and every app build failed. A test keeps the three on one major.
26
+
27
+ ## [3.4.0] — 2026-10-16
28
+
29
+ ### Changed
30
+ - `ChatShowcase`'s footer is now an instance of `@krizaka/ui`'s `MessageComposer` (`variant="pill"`, inert) instead of a drawing, so the home hero and the app's chat share one component; the privacy line is its status row. New optional label `send`. Depends on `@krizaka/ui` ^3.19.0.
31
+
32
+ ## [3.3.1] — 2026-10-15
33
+
34
+ ### Fixed
35
+ - `RunFacts`: a value wraps at its spaces and breaks only a word that does not fit (`overflow-wrap: anywhere`); it used
36
+ `break-all`, which cut sentences mid-word in narrow columns.
37
+
38
+ ## [3.3.0] — 2026-10-15
39
+
40
+ ### Added
41
+ - `ClipPlayer`: a short clip that is plainly a clip — a muted loop that plays only in view (a pause by hand sticks), a
42
+ "Video · 5 s" badge, play/pause and sound buttons on hover and focus, a click that opens it larger in a dialog with the
43
+ native controls; poster and a play button under reduced motion.
44
+ - `RunFacts`: what a run recorded, as a description list.
45
+
46
+ ### Changed
47
+ - `VideoResult` is built on them (a loop in view instead of a still player), takes `promptNode` (the app may type the
48
+ prompt in) and `reproduceLead`; its labels gain the player's words. New dependency: `@krizaka/icons`.
49
+
50
+ ## [3.2.0] — 2026-10-15
51
+
52
+ ### Added
53
+ - `VideoResult`: what a video run of a Studio leaves — the clip in a player with its poster, the exact prompt, the facts
54
+ the run recorded (model, seed, frame, length, time, cost, run id), "Reproduce it" as a `@krizaka/ui` CodeBlock, and a
55
+ download. Every word is a prop; a portrait clip is drawn as tall as a phone allows. Documented with `video-result.meta.ts`
56
+ and two examples; render-tested. Web only: the mobile app draws the same facts natively (tracked in orazaka-mobile-client).
57
+
58
+ ## [3.1.0] — 2026-10-14
59
+
60
+ ### Removed
61
+ - The hand-made sign-in layout of the theme: `.login-split`, `.login-hero*`, `.login-form-panel`, `.auth-legal-*`,
62
+ `.auth-footer-separator`, `.auth-lang-*`, and the Sentinel HUD animations (`.sentinel-*`, `.hud-pulse`, `.rotator-*`).
63
+ The apps' entry screens are built on `@krizaka/ui/auth-layout`.
64
+
65
+ ## [3.0.1] — 2026-10-14
66
+
67
+ ### Fixed
68
+ - `ChatShowcase`: the card is sized by its final state (an invisible copy of the finished conversation shares its grid
69
+ cell), so it no longer grows while the answer types in — the page around it does not shift (CLS 0). Reduced motion
70
+ shows the final state directly. Tests guard it.
71
+
72
+ ## [3.0.0] — 2026-10-11
73
+
74
+ The kit keeps only what is Orazaka's: the theme, the composites, and the few primitives it re-exports with an Orazaka
75
+ default. Everything @krizaka/ui 2.4 now draws is imported from there — the apps (web client, console) moved first.
76
+
77
+ ### Removed (breaking)
78
+
79
+ - `Card`, `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, `CardFooter`, `Dialog`, `ToastContainer` (the
80
+ 1.x adapters, deprecated since 2.3): compose `Card.*` (`@krizaka/ui/card`), `Dialog.*` (`@krizaka/ui/dialog`),
81
+ `Toaster` + `toast` (`@krizaka/ui/toast`). Their documentation pages go with them.
82
+ - The 1.x defaults of `CommandPalette`: `commands` and `labels` are required.
83
+ - The "2.x compatibility" block of `theme.css` — the 1.x variables (`--surface-1`, `--text-primary`, `--accent`…), their
84
+ utilities (`text-text-primary`, `bg-card-bg`, `text-status-success`…) — and the 1.x theme classes (`html.cyberpunk`…):
85
+ write the roles (`bg-surface-1`, `text-fg`, `text-accent`, `text-fg-danger`) and `html.theme-<name>`.
86
+
87
+ ### Changed
88
+
89
+ - On `@krizaka/ui` ^2.4.0, `@krizaka/tailwind` / `@krizaka/tokens` ^2.4.0 (Loader, Stepper, Progress with ETA, the
90
+ job toasts, Meter, NumberTicker, GlowCard, the gliding Tabs, NavBar; DS3: DataTable, Pagination, FilterBar…).
91
+
92
+ ## [2.5.0] — 2026-10-11
93
+
94
+ The kit documents itself: krizaka.com/docs/orazaka/ui is generated from its code, like /docs/ui from @krizaka/ui.
95
+
96
+ ### Added
97
+
98
+ - **The registry** (`registry/`, published; `./registry/*` and `./registry/examples/*` exports), in the format of
99
+ @krizaka/ui's: one `registry/<name>.json` per component (its `src/components/<name>.meta.ts` — summary, why it exists
100
+ above Krizaka UI, when to use / not, the @krizaka/ui primitives it is built on, accessibility, related, deprecation;
101
+ its named examples, `registry/examples/<name>/*.tsx`; its props from their JSDoc), `registry/foundations.json` (the
102
+ Orazaka Orange theme resolved in both modes and the five named themes, with their WCAG contrasts; the product tokens,
103
+ the fluid type scale, the typography, the icons, the product rules quoted from the contracts) and `registry/index.json`.
104
+ Written by `npm run registry` (in `check`, and before `npm pack`).
105
+ - `scripts/registry.test.mjs` (in `npm test`): fails when an exported component has no meta or example, a prop has no
106
+ description, a reference does not resolve, a theme falls below AA, or an example speaks as an admin.
107
+ - `SkeletonGroupProps`; JSDoc on `ChatShowcase`'s `labels` and `className`.
108
+
109
+ ## [2.4.0] — 2026-10-11
110
+
111
+ Built on `@krizaka/ui`, `@krizaka/tokens` and `@krizaka/tailwind` **2.1.0** (floor raised from 2.0.0).
112
+
113
+ ### Changed
114
+
115
+ - **The Orazaka mark is the brand's orange.** `OrazakaLogo` / `ProductLogo id="orazaka"` (and `OrazakaMark` native) of
116
+ `@krizaka/ui` 2.1.0 leave amber (`#b45309 → #f59e0b`) for deep orange `#b45309` → orange `#dc6509` on the accent's
117
+ hue 26 — every stop ≥ 3:1 on dark and light pages — read from `marks.orazaka` of `@krizaka/tokens`.
118
+ - `ThemeScript` takes `defaultMode` like `ThemeProvider` (`@krizaka/ui/theme`): an Orazaka app that wants to be dark
119
+ first passes `defaultMode="dark"` to both — no flash, the visitor's `kz-theme` still wins.
120
+
121
+ ## [2.3.0] — 2026-10-10
122
+
123
+ No markup of a primitive is left in the kit: what it still drew itself is now drawn by `@krizaka/ui` 2.0.0 (stable).
124
+ No export is removed (semver minor); the 1.x APIs below are deprecated and go in 3.0.
125
+
126
+ ### Changed
127
+
128
+ - `CommandPalette` is a product composite on `CommandDialog` from `@krizaka/ui/command` (cmdk + the platform dialog:
129
+ combobox and listbox roles, arrows, Enter, filtering, focus trap, Escape, focus return). New props: `commands`
130
+ (entries with a `section`, an `icon` of the registry, an `href` and/or `onSelect`, `keywords`), `labels` (the words,
131
+ translated), `onNavigate` (default `router.push`), `shortcut` (default `k`).
132
+ - `Card`, `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, `CardFooter` are drawn by `@krizaka/ui/card`
133
+ (`Card.Root`, `Card.Body`, `Card.Title`…), with their 1.x look kept through `className`.
134
+ - `Dialog` (1.x props: `open`, `onClose`, `title`, `description`, `closeLabel`) is drawn by `@krizaka/ui/dialog` (Radix:
135
+ focus trap and focus return, which 1.x lacked).
136
+ - `ToastContainer` (1.x controlled list) is drawn by the `@krizaka/ui/toast` `Toaster` (sonner): each item becomes a
137
+ `toast[variant]` with its id; new optional `label` and `closeLabel`.
138
+ - Dependencies: `@krizaka/ui`, `@krizaka/tokens`, `@krizaka/tailwind` `^2.0.0` (stable). `@krizaka/orazaka-shared`
139
+ 1.1.1 takes `@krizaka/tokens` `^2.0.0` (nothing else changes).
140
+
141
+ ### Deprecated
142
+
143
+ - `Card*` → `Card.*` from `@krizaka/ui/card`; `Dialog` → `Dialog.*` from `@krizaka/ui/dialog`; `ToastContainer`,
144
+ `ToastItem`, `ToastVariant` → `Toaster` + `toast` from `@krizaka/ui/toast`; the 1.x defaults of `CommandPalette`
145
+ (English words, 1.x routes) → pass `labels` and `commands`. All removed in 3.0.
146
+
147
+ ## [2.2.1] — 2026-10-10
148
+
149
+ ### Added
150
+
151
+ - `Icon` takes an optional `fallback`: the icon drawn when `name` comes from data and is not in the registry (a Studio
152
+ whose `iconKey` the kit does not know showed an empty square).
153
+
154
+ ### Fixed
155
+
156
+ - `ChatShowcase`: the composer placeholder reads at AA (`text-fg-secondary`; `text-fg-muted` measured 3.9:1 on
157
+ `surface-1`, which Lighthouse counts against the page even though the composer is decorative).
158
+
159
+ ### Changed
160
+
161
+ - `tokens`, `themes`, `status` (re-exported from `@krizaka/orazaka-shared` 1.1.0) are the Orazaka orange for React
162
+ Native and the CLI too: `dark` and `light` come from `@krizaka/tokens/native`, each theme gains `onAccent` and
163
+ `accentText`, and `electric` joins the named themes.
164
+
165
+ ## [2.2.0] — 2026-10-09
166
+
167
+ ### Changed
168
+
169
+ - **Orazaka is orange.** The default theme (dark and light) is the Orazaka brand of `@krizaka/tokens`
170
+ (`brands/orazaka.css`, imported by `theme.css`): the orange of the Orazaka mark — `hsl(26 92% 55%)` under near-black
171
+ text in dark (7.4:1), the mark's deep stop `#b45309` under white in light (5.1:1). `info` stays blue. Nothing to
172
+ change in an app: the roles (`bg-accent`, `text-on-accent`…) take the new values.
173
+
174
+ ### Added
175
+
176
+ - The named theme `electric` (`html.theme-electric`, `.theme-electric`): Electric Blue, the 2.x identity, for the
177
+ users who chose it.
178
+ - Every named theme sets its whole accent family (`accent-text`, `accent-2`, `ring`, `info`, section gradient), so an
179
+ island never keeps the brand's orange; `accent-text` is tested at AA on every surface.
180
+
181
+ ## [2.1.0] — 2026-10-09
182
+
183
+ ### Added
184
+
185
+ - A named theme also works as an **island**: `.theme-custom`, `.theme-cyberpunk`, `.theme-solarized`, `.theme-krizaka` on
186
+ any element give it that theme inside any page — as `.theme-dark` does for dark. A theme picker draws its previews
187
+ with the roles (`bg-surface-1`, `bg-accent`…) inside the island and shows the real tokens. `html.theme-<name>` stays
188
+ the first selector, so it still outweighs `html.light` on the root.
189
+
190
+ ## [2.0.0] — 2026-10-09
191
+
192
+ The kit becomes a theme and a set of composites on the Krizaka platform (`@krizaka/tokens`, `@krizaka/tailwind`,
193
+ `@krizaka/ui` 2). No export is removed: every primitive is re-exported, and the 1.x variables stay mapped until 3.0.
194
+
195
+ ### Changed
196
+
197
+ - `theme.css` is the **Electric Blue** identity expressed as `--kz-*` role overrides, on the organisation's mechanism:
198
+ dark by default on `:root` (and `.theme-dark`), light on `html.light`, a named theme on `html.theme-<name>`
199
+ (`custom`, `cyberpunk`, `solarized`, `krizaka`). It imports `@krizaka/tailwind` and `@krizaka/ui/tailwind.css`
200
+ itself: the app keeps two lines (`tailwindcss`, then this `theme.css`).
201
+ - The accent is the brief's — `hsl(217 92% 60%)` dark, `hsl(217 92% 50%)` light (was amber `hsl(38 92% 50%)`); the
202
+ surfaces, borders and text are the platform's (the krizaka.com values).
203
+ - **Contrast adjustments (WCAG AA, tested):** white on the dark accent reads 3.6:1, so the dark accent carries
204
+ near-black text (`--kz-on-accent: hsl(240 6% 5%)`, 5.4:1) and its hover lightens to `hsl(217 92% 66%)` (6.6:1); the
205
+ same holds for the dark named themes and solarized. Solarized text is darker (primary `hsl(192 14% 25%)`, secondary
206
+ `hsl(192 14% 32%)`, muted `hsl(186 5% 42%)` — the 1.x primary read 3.7:1); krizaka muted text is `hsl(210 8% 46%)`
207
+ (was 2.5:1). Named-theme hovers lighten instead of darkening.
208
+ - `Button`, `Badge`, `Input`, `Skeleton` are the `@krizaka/ui` primitives. `Button` keeps `primary` as its default
209
+ variant; sizes follow the primitive (`lg` is `h-12`, `icon` is `h-10 w-10`); `ref` is a prop (React 19). `Badge` is
210
+ the platform badge (uppercase, `tone`, `dot`, `pulse`). `Skeleton` keeps `rect` as its default shape.
211
+ - `Card*`, `Dialog`, `ToastContainer`, `CommandPalette`, `ChatShowcase` are tokenized: roles only (`bg-surface-1`,
212
+ `text-fg-secondary`, `border-border-subtle`, `text-success` / `text-danger` / `text-warning`), no `[var(--…)]`, no
213
+ `dark:`, no raw palette colour, `cn()` instead of template strings — a `className` override now wins.
214
+ - The 1.x `@custom-variant` declarations are gone: `dark:` comes from `@krizaka/tailwind` (`:root:not(.light)`).
215
+ - Lint: the four UI rules of `@krizaka/config` (strict) and `krizaka-ratchet` at zero; `check` = lint, type-check, Jest,
216
+ publint (`validate` runs it).
217
+ - The theme's own idle and entrance animations stop under `prefers-reduced-motion`.
218
+
219
+ ### Added
220
+
221
+ - `IconButton`, `buttonVariants`, `badgeVariants`, `Field`, `Textarea`, `Select`, `skeletonVariants`, `cn`, the
222
+ `BadgeVariant` and `ButtonVariants` types.
223
+ - Product tokens `--orazaka-accent-glow`, `--orazaka-grid-color`, `--orazaka-space-card`, `--orazaka-space-section`.
224
+ - `src/__tests__/theme.test.ts`: every theme resolved over the `@krizaka/tokens` defaults and held to WCAG AA.
225
+
226
+ ### Deprecated
227
+
228
+ - `Badge` `variant` → `tone` (`default` → `neutral`).
229
+ - `Skeleton` `variant` → `shape`; `width` / `height` → a `className` or `style`.
230
+ - The **2.x compatibility block** of `theme.css` — the unprefixed 1.x variables (`--surface-*`, `--accent*`,
231
+ `--text-*`, `--border-*`, `--status-*`, `--radius-*`, `--shadow-*`, `--background`, `--card-*`, `--input-*`…), their
232
+ utilities (`text-text-primary`, `bg-card-bg`, `bg-status-success`…) and the 1.x theme classes (`html.custom`,
233
+ `html.cyberpunk`, `html.solarized`, `html.krizaka`). **Removed in 3.0.**
234
+
235
+ ### Removed
236
+
237
+ - From `theme.css`: the light-on-`:root` / dark-on-`.dark` mechanism and its `prefers-color-scheme` block, the
238
+ `--accent-h/-s/-l` channels, the `@custom-variant` declarations.
239
+
240
+ ### Not changed
241
+
242
+ - `@krizaka/orazaka-shared` (types, Zod schemas, tokens) — its `themes` keep the 1.x values for React Native and the
243
+ CLI. It is CommonJS and `@krizaka/tokens` is ESM-only, so it cannot import the platform tokens yet; the mobile
244
+ migration does it.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,83 @@
1
- # Temporary Holding Version
1
+ # @krizaka/sovkora-design-system
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
+ The Sovkora identity on the Krizaka platform: the **Sovkora Orange** theme (the Sovkora brand of `@krizaka/tokens`)
4
+ and its named themes as `--kz-*` token
5
+ overrides, the product composites, and the [`@krizaka/ui`](https://github.com/krizaka/krizaka-ui) primitives
6
+ re-exported. Lives in [`packages/sovkora-design-system`](https://github.com/krizaka/krizaka-ui/tree/main/packages/sovkora-design-system) of krizaka-ui.
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install @krizaka/sovkora-design-system && npm install -D tailwindcss
12
+ ```
13
+
14
+ React 19, Next.js ≥ 15, Tailwind CSS v4. The package ships its TypeScript sources: add it to `transpilePackages`.
15
+
16
+ ```ts
17
+ // next.config.ts
18
+ transpilePackages: ["@krizaka/sovkora-design-system", "@krizaka/sovkora-shared", "@krizaka/ui"],
19
+ ```
20
+
21
+ The app's global stylesheet — `theme.css` brings the platform layers (`@krizaka/tailwind`, `@krizaka/ui/tailwind.css`)
22
+ itself:
23
+
24
+ ```css
25
+ @import "tailwindcss";
26
+ @import "@krizaka/sovkora-design-system/theme.css";
27
+ ```
28
+
29
+ ## Themes
30
+
31
+ One mechanism, the organisation's: **dark** is the default (`:root`), **light** is `html.light`, a **named theme** is
32
+ `html.theme-<name>` — `electric` (Electric Blue, the 2.x identity), `custom` (Deep Violet), `cyberpunk` (Neon Matrix), `solarized` (Warm Parchment, light),
33
+ `krizaka` (Obsidian Razor, zero radius). A named theme also works as an island: `.theme-<name>` on
34
+ any element gives it that theme inside any page (as `.theme-dark` does for dark) — a theme picker draws real previews.
35
+ A theme is a set of token values, never a set of classes: components write
36
+ roles (`bg-surface-1`, `text-fg-secondary`, `border-border-subtle`, `bg-accent text-on-accent`, `text-danger`) and
37
+ read right in every theme.
38
+
39
+ | Role | Dark | Light |
40
+ | :--- | :--- | :--- |
41
+ | `--kz-accent` | `hsl(26 92% 55%)` #f67e23 | `hsl(26 90.5% 37.1%)` #b45309 (deep orange, the first stop of the mark) |
42
+ | `--kz-accent-hover` | `hsl(26 92% 62%)` | `hsl(26 90% 31%)` |
43
+ | `--kz-on-accent` | `hsl(240 6% 5%)` — 7.4:1 | white — 5.1:1 |
44
+ | `--kz-accent-text` (`text-fg-accent`) | `hsl(26 92% 60%)` | `hsl(26 90% 32%)` |
45
+ | `--kz-accent-2` | `#f59e0b` (closes the buttons' gradient) | `hsl(32 95% 33%)` |
46
+ | `--kz-info` | blue `hsl(217 92% 60%)` — an orange "info" would read as a warning | `hsl(217 92% 50%)` |
47
+ | surfaces, borders, text | the platform's (`@krizaka/tokens`, the krizaka.com values) | idem |
48
+
49
+ These values are **not declared here**: `theme.css` imports `@krizaka/tokens/brands/sovkora.css`, the Sovkora brand of
50
+ the Krizaka brand system (`@krizaka/tokens`, `BRAND.md`) — the orange of the Sovkora mark. A change of colour is made
51
+ there, released, then adopted.
52
+
53
+ Every theme is tested at WCAG AA (`src/__tests__/theme.test.ts`): primary and secondary text ≥ 4.5:1 on every
54
+ surface, muted text ≥ 3:1, on-accent ≥ 4.5:1 on the accent and its hover, the accent as text ≥ 4.5:1 on every
55
+ surface, focus ring ≥ 3:1.
56
+
57
+ ## Contents
58
+
59
+ | | |
60
+ | :--- | :--- |
61
+ | **Theme** | `theme.css`: the `--kz-*` overrides above, the named themes, the product tokens (`--sovkora-*`), the fluid type scale, the Sovkora layout classes (`glass-card`, `login-*`, `sentinel-*`…). |
62
+ | **Composites** | `ChatShowcase`, `SentinelMini`, `Icon` (the icon registry), `CommandPalette` (the ⌘K palette on `CommandDialog` from `@krizaka/ui/command`: entries and words as props, `onNavigate`). |
63
+ | **Re-exported from `@krizaka/ui`** | `Button` (default variant `primary`, as in 1.x), `IconButton`, `buttonVariants`, `Badge` (`variant` → deprecated alias of `tone`), `badgeVariants`, `Input`, `Field`, `Textarea`, `Select`, `Skeleton` (`variant`, `width`, `height` deprecated), `skeletonVariants`, `cn`. New code imports them from `@krizaka/ui`. |
64
+ | **Documentation** | `registry/`: every component's documentation, examples and props, and the foundations (the themes resolved with their contrasts, the type scale, the rules) — rendered by [krizaka.com/docs/sovkora/ui](https://www.krizaka.com/en/docs/sovkora/ui). |
65
+ | **Tokens** | `tokens`, `themes`, `radius`… re-exported from `@krizaka/sovkora-shared` (for React Native and the CLI: the same Sovkora orange as `theme.css`, from `@krizaka/tokens/native`). |
66
+ | **Everything else** | From `@krizaka/ui` directly: `Card`, `Dialog`, `Toaster` + `toast` / `progressToast` / `groupedToast`, `Loader` / `LoadingRegion`, `Stepper`, `Progress`, `Meter`, `NumberTicker`, `GlowCard`, `Tabs`, `NavBar`… and the charts from `@krizaka/charts`. 3.0 removed the 1.x adapters and variables (see the CHANGELOG). |
67
+
68
+ A product variant extends a primitive, it never copies it:
69
+
70
+ ```ts
71
+ import { buttonVariants } from "@krizaka/ui/button";
72
+ import { tv } from "tailwind-variants";
73
+
74
+ export const sovkoraButton = tv({ extend: buttonVariants, variants: { variant: { glow: "shadow-lg shadow-accent/30" } } });
75
+ ```
76
+
77
+ ## Develop
78
+
79
+ ```bash
80
+ pnpm turbo run check --filter=@krizaka/sovkora-design-system # eslint (UI rules strict), type-check, Vitest + the registry test, registry, size, publint
81
+ ```
82
+
83
+ Apache-2.0 · Part of [Krizaka](https://www.krizaka.com).
package/package.json CHANGED
@@ -1,6 +1,115 @@
1
1
  {
2
2
  "name": "@krizaka/sovkora-design-system",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "4.0.1",
4
+ "description": "The Sovkora identity on the Krizaka platform: the Sovkora Orange theme (the Sovkora brand of @krizaka/tokens) and its named themes as --kz-* token overrides, the product composites (ChatShowcase, CommandPalette, SentinelMini, icon registry) with their documentation registry (krizaka.com/docs/sovkora/ui), and the @krizaka/ui primitives re-exported.",
5
+ "keywords": [
6
+ "sovkora",
7
+ "krizaka",
8
+ "design-system",
9
+ "theme",
10
+ "design-tokens",
11
+ "react",
12
+ "nextjs",
13
+ "tailwindcss",
14
+ "tailwind-v4"
15
+ ],
16
+ "homepage": "https://github.com/krizaka/krizaka-ui/tree/main/packages/sovkora-design-system#readme",
17
+ "bugs": "https://github.com/krizaka/krizaka-ui/issues",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/krizaka/krizaka-ui.git",
21
+ "directory": "packages/sovkora-design-system"
22
+ },
23
+ "license": "Apache-2.0",
24
+ "author": "Krizaka (https://www.krizaka.com)",
25
+ "type": "module",
26
+ "main": "./src/index.ts",
27
+ "types": "./src/index.ts",
28
+ "exports": {
29
+ ".": "./src/index.ts",
30
+ "./theme.css": "./src/theme.css",
31
+ "./registry/examples/*": "./registry/examples/*.tsx",
32
+ "./registry/*": "./registry/*",
33
+ "./package.json": "./package.json"
34
+ },
35
+ "files": [
36
+ "src",
37
+ "!src/**/__tests__",
38
+ "registry",
39
+ "README.md",
40
+ "CHANGELOG.md",
41
+ "LICENSE"
42
+ ],
43
+ "sideEffects": [
44
+ "*.css"
45
+ ],
46
+ "dependencies": {
47
+ "tailwind-variants": "^3.3.1",
48
+ "@krizaka/icons": "^0.10.0",
49
+ "@krizaka/sovkora-shared": "^2.0.0",
50
+ "@krizaka/tailwind": "^4.1.0",
51
+ "@krizaka/tokens": "^4.1.0",
52
+ "@krizaka/ui": "^4.1.0"
53
+ },
54
+ "peerDependencies": {
55
+ "next": ">=15",
56
+ "react": ">=19",
57
+ "react-dom": ">=19",
58
+ "tailwindcss": "^4.1"
59
+ },
60
+ "devDependencies": {
61
+ "@krizaka/config": "^0.9.1",
62
+ "@size-limit/preset-small-lib": "^14.2.0",
63
+ "@testing-library/dom": "^10.4.0",
64
+ "@testing-library/jest-dom": "^7.0.1",
65
+ "@testing-library/react": "^16.3.0",
66
+ "@types/node": "^22.15.0",
67
+ "@types/react": "^19.2.0",
68
+ "@types/react-dom": "^19.2.0",
69
+ "@vitest/coverage-v8": "5.0.5",
70
+ "eslint": "^9.39.0",
71
+ "happy-dom": "^21.0.4",
72
+ "next": "^16.3.0",
73
+ "publint": "^0.3.25",
74
+ "react": "^19.3.1",
75
+ "react-docgen-typescript": "^2.4.0",
76
+ "react-dom": "^19.3.1",
77
+ "size-limit": "^14.2.0",
78
+ "tailwindcss": "^4.3.3",
79
+ "typescript": "^5.9.0",
80
+ "vitest": "^5.0.5"
81
+ },
82
+ "engines": {
83
+ "node": ">=22"
84
+ },
85
+ "publishConfig": {
86
+ "access": "public"
87
+ },
88
+ "size-limit": [
89
+ {
90
+ "name": ".",
91
+ "path": "src/index.ts",
92
+ "limit": "60 kB",
93
+ "gzip": true,
94
+ "ignore": [
95
+ "react",
96
+ "react-dom",
97
+ "next",
98
+ "@krizaka/ui",
99
+ "@krizaka/icons",
100
+ "@krizaka/sovkora-shared",
101
+ "@krizaka/tokens",
102
+ "@krizaka/tailwind",
103
+ "tailwind-variants"
104
+ ]
105
+ }
106
+ ],
107
+ "scripts": {
108
+ "build": "node scripts/build-registry.mjs",
109
+ "lint": "eslint . --max-warnings 0 && tsc --noEmit --noUnusedParameters --noFallthroughCasesInSwitch --noImplicitReturns",
110
+ "typecheck": "tsc --noEmit",
111
+ "test": "vitest run --coverage",
112
+ "size": "size-limit",
113
+ "publint": "publint"
114
+ }
6
115
  }