@momoi-labs/kiso 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -61,3 +61,12 @@ Code, config, and templates: **MIT**. Brand assets (name, logo, type):
61
61
  **CC BY 4.0** — brand usage rules live in [`kiso/docs/brand.md`](kiso/docs/brand.md).
62
62
 
63
63
  © 2026 Momoi Labs — [momoi-labs.dev](https://momoi-labs.dev)
64
+
65
+ ## React components and releases
66
+
67
+ [`@momoi-labs/kiso-react`](packages/kiso-react/README.md) provides React components
68
+ using Kiso tokens and CSS. Run `npm ci` and `npm run prototype` to open the
69
+ Self Host simulation and the full component gallery.
70
+
71
+ See [Publishing Kiso](docs/publishing.md) for the first npm publication, trusted
72
+ publisher setup, release PRs, and version tags.
@@ -160,9 +160,9 @@ Map Kiso variants onto shadcn *by intent*, not by name:
160
160
 
161
161
  | Kiso variant | shadcn `variant` |
162
162
  | --- | --- |
163
- | `primary` | `outline`, restyled: `--color-primary` text and border, `--type-weight-semibold`. Do not use shadcn's filled `default` — that needs an on-primary text role Kiso does not have. |
163
+ | `primary` | `default`, restyled: `--color-primary` fill, `--color-primary-foreground` label. Do not restyle shadcn's `outline` into an accent-text primary — that treatment reads as a secondary control. |
164
164
  | `default` | `outline` with `--color-foreground` / `--color-border` |
165
- | `destructive` | `outline` restyled with `--color-danger` text and border, not filled `destructive` |
165
+ | `destructive` | `destructive`, restyled: `--color-danger` fill, `--color-danger-foreground` label |
166
166
  | `ghost` | `ghost` |
167
167
 
168
168
  Do **not** use shadcn `variant="link"`. That style is [Link](link.md).
@@ -145,7 +145,7 @@ No dedicated Radix or shadcn `IconButton` primitive. Implement as shadcn
145
145
  | IconButton `sm` | `size="icon-sm"` (or `icon-xs` only if it still uses `--spacing-xs` padding) |
146
146
  | IconButton `md` | `size="icon"` |
147
147
  | IconButton `lg` | `size="icon-lg"` |
148
- | variants | Same Button mapping as [Button](button.md) (Kiso `primary` and `default` both start from shadcn `outline`, restyled) |
148
+ | variants | Same Button mapping as [Button](button.md) (Kiso `primary` is a fill, `default` starts from shadcn `outline`) |
149
149
 
150
150
  Always pass `aria-label`. Do not rely on the icon's title or a Tooltip
151
151
  alone.
package/kiso/ui.css CHANGED
@@ -819,11 +819,16 @@ pre {
819
819
  border: 1px solid var(--color-border);
820
820
  border-radius: var(--radius-surface);
821
821
  background: var(--color-muted);
822
- overflow-x: auto;
822
+ /* The frame no longer scrolls, so it needs an explicit floor to stay
823
+ inside a grid or flex parent when a code line is long. */
824
+ min-inline-size: 0;
823
825
  font-size: var(--type-size-label);
824
826
  line-height: var(--type-line-height-relaxed);
825
827
  }
826
- pre code { padding: 0; background: none; border: 0; }
828
+ /* Scrolling sits on the inner element, not on `pre`. A scroll container
829
+ scrolls for its own corner marks, which are absolutely positioned outside
830
+ the frame — the same reason `.table-scroll` exists. Write `<pre><code>`. */
831
+ pre code { display: block; overflow-x: auto; padding: 0; background: none; border: 0; }
827
832
 
828
833
  .kv { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: var(--spacing-sm) var(--spacing-lg); font-size: var(--type-size-body); }
829
834
  .kv dt { color: var(--color-muted-foreground); font-size: var(--type-size-label); }
@@ -831,16 +836,23 @@ pre code { padding: 0; background: none; border: 0; }
831
836
 
832
837
  .logview {
833
838
  position: relative;
839
+ display: flex;
840
+ flex-direction: column;
834
841
  background: var(--color-neutral-950);
835
842
  color: var(--color-neutral-300);
836
843
  border: 1px solid var(--color-border);
837
844
  border-radius: var(--radius-surface);
838
845
  padding: var(--spacing-md);
846
+ min-inline-size: 0;
839
847
  font-family: var(--font-mono);
840
848
  font-size: var(--type-size-label);
841
849
  line-height: var(--type-line-height-relaxed);
842
- overflow: auto;
843
850
  }
851
+ /* The frame is `.logview`, the scroller is `.log-scroll` inside it — same
852
+ split as `.table-wrap` / `.table-scroll`, and for the same reason: a scroll
853
+ container scrolls for the corner marks it draws just outside its own frame.
854
+ Height goes on `.logview`; the scroller takes what is left. */
855
+ .logview > .log-scroll { flex: 1 1 auto; min-block-size: 0; overflow: auto; }
844
856
  .logview .log-time { color: var(--color-neutral-600); margin-inline-end: var(--spacing-sm); }
845
857
  .logview .log-warn { color: var(--color-warning-on-dark); }
846
858
  .logview .log-error{ color: var(--color-danger-on-dark); }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@momoi-labs/kiso",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Kiso design-system contracts and generated design tokens",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/momoi-labs/blueprint.git"
8
+ "url": "git+https://github.com/momoi-labs/blueprint.git",
9
+ "directory": "packages/kiso"
9
10
  },
10
11
  "type": "module",
11
12
  "files": [
@@ -22,23 +23,11 @@
22
23
  "./contracts/*": "./kiso/*"
23
24
  },
24
25
  "scripts": {
25
- "build": "style-dictionary build --config style-dictionary.config.mjs",
26
- "check": "npm run build && npm run check:generated && npm run check:tokens",
27
- "check:generated": "git diff --exit-code -- tokens/build/",
28
- "check:tokens": "node scripts/validate-dtcg.mjs && node scripts/check-contrast.mjs tokens/tokens.json && node scripts/check-component-token-refs.mjs",
29
- "changeset": "changeset",
30
- "release": "changeset publish"
26
+ "build": "node ../../scripts/build-kiso-package.mjs",
27
+ "prepack": "npm run build"
31
28
  },
32
29
  "publishConfig": {
33
30
  "access": "public",
34
31
  "provenance": true
35
- },
36
- "devDependencies": {
37
- "@changesets/cli": "^2.29.7",
38
- "ajv": "^8.17.1",
39
- "style-dictionary": "^5.0.0"
40
- },
41
- "engines": {
42
- "node": ">=24"
43
32
  }
44
33
  }