@krizaka/ui 3.33.0 → 3.33.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/dist/motion.css CHANGED
@@ -690,8 +690,7 @@ svg[data-kz-icon="ExternalIcon"] {
690
690
  /* ─── Arrival and growth (the data demos of Krizaka Motion) — CSS only, held by the conductor like every loop ───
691
691
  `[data-kz-arrive]` on an element (or on a cell: its table row, `tr:has(…)`, its list item) plays an arrival once when it
692
692
  is added: `slide` (default) falls into place, `fade`, `flash` (an accent wash that fades) — chosen on any ancestor by
693
- `data-kz-arrival`. `--kz-arrive-duration` sets the length. `.kz-grow` around a Sparkline (or any SVG with a stroke and
694
- a fill) draws its stroke over `--kz-grow-duration` with `--kz-grow-ease`, and raises the fill. No movement of layout:
693
+ `data-kz-arrival`. `--kz-arrive-duration` sets the length. `.kz-grow` around a Sparkline (or any SVG chart) wipes it in from the left over `--kz-grow-duration` with `--kz-grow-ease`. No movement of layout:
695
694
  `translate`/`scale`/`opacity` only. Off screen they pause (`[data-offscreen]`), under reduced motion they rest done. */
696
695
  [data-kz-arrive], tr:has([data-kz-arrive]), li:has(> [data-kz-arrive]) {
697
696
  animation: kz-arrive-slide var(--kz-arrive-duration, 520ms) var(--kz-ease) both;
@@ -701,18 +700,11 @@ svg[data-kz-icon="ExternalIcon"] {
701
700
  @keyframes kz-arrive-slide { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
702
701
  @keyframes kz-arrive-fade { from { opacity: 0; } to { opacity: 1; } }
703
702
  @keyframes kz-arrive-flash { from { background: color-mix(in oklab, var(--kz-accent) 24%, transparent); } to { background: transparent; } }
704
- .kz-grow svg path[stroke]:not([stroke="none"]) {
705
- stroke-dasharray: 1;
706
- stroke-dashoffset: 1;
707
- animation: kz-grow-draw var(--kz-grow-duration, 900ms) var(--kz-grow-ease, var(--kz-ease)) forwards;
703
+ .kz-grow svg {
704
+ animation: kz-grow-wipe var(--kz-grow-duration, 900ms) var(--kz-grow-ease, var(--kz-ease)) backwards;
708
705
  }
709
- .kz-grow svg path[fill]:not([fill="none"]) {
710
- transform-box: fill-box;
711
- transform-origin: bottom;
712
- animation: kz-grow-rise var(--kz-grow-duration, 900ms) var(--kz-grow-ease, var(--kz-ease)) backwards;
713
- }
714
- @keyframes kz-grow-draw { to { stroke-dashoffset: 0; } }
715
- @keyframes kz-grow-rise { from { opacity: 0; scale: 1 0.2; } to { opacity: 1; scale: 1 1; } }
706
+ /* A wipe from the left: the whole chart (line, area, bars) is revealed as one — no per-path trick, so it works on any SVG chart. */
707
+ @keyframes kz-grow-wipe { from { clip-path: inset(-4px 100% -4px -4px); } to { clip-path: inset(-4px -4px -4px -4px); } }
716
708
 
717
709
  @media (prefers-reduced-motion: reduce) {
718
710
  .kz-page, .kz-word, .kz-gradient-text, .kz-marquee, .kz-backdrop-drift, .kz-overlay, .kz-dialog, .kz-pop, .kz-fade, .kz-progress,
@@ -730,6 +722,5 @@ svg[data-kz-icon="ExternalIcon"] {
730
722
  .kz-count-digit > span { transition: none; }
731
723
  /* The still frame is a composed picture, not a cut animation: particles rest along their link, labels show. */
732
724
  .kz-iso-item > .kz-iso-lift, .kz-iso-tip { transition: none; }
733
- [data-kz-arrive], tr:has([data-kz-arrive]), li:has(> [data-kz-arrive]), .kz-grow svg path { animation: none !important; }
734
- .kz-grow svg path[stroke]:not([stroke="none"]) { stroke-dashoffset: 0; }
725
+ [data-kz-arrive], tr:has([data-kz-arrive]), li:has(> [data-kz-arrive]), .kz-grow svg { animation: none !important; }
735
726
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "3.33.0",
3
+ "version": "3.33.1",
4
4
  "description": "The Krizaka front-end platform's components: the primitives (button, card, dialog, toast, menu, field, tabs, chip, switch, slider, command palette, theme, countdown…) on the semantic --kz-* tokens, the animated marks (Krizaka, Orazaka, Orochia, Yasakia, Yororis) and the motion signature — web and /native.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -721,7 +721,7 @@
721
721
  ],
722
722
  "peerDependencies": {
723
723
  "@krizaka/query": ">=0.2.1",
724
- "@krizaka/tailwind": ">=3.33.0",
724
+ "@krizaka/tailwind": ">=3.33.1",
725
725
  "@maplibre/maplibre-react-native": ">=11",
726
726
  "@shopify/flash-list": ">=2",
727
727
  "expo-camera": ">=16",
@@ -2464,9 +2464,9 @@
2464
2464
  "radix-ui": "^1.7.0",
2465
2465
  "sonner": "^2.0.8",
2466
2466
  "tailwind-variants": "^3.3.1",
2467
+ "@krizaka/tokens": "^3.33.1",
2467
2468
  "@krizaka/intl": "^0.2.1",
2468
- "@krizaka/pacer": "^0.1.0",
2469
- "@krizaka/tokens": "^3.33.0"
2469
+ "@krizaka/pacer": "^0.1.0"
2470
2470
  },
2471
2471
  "scripts": {
2472
2472
  "build": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});for(const f of fs.readdirSync('registry/examples',{recursive:true}))if(/\\.(js|d\\.ts)$/.test(f))fs.rmSync('registry/examples/'+f)\" && tsup && node -e \"require('node:fs').copyFileSync('src/motion.css','dist/motion.css');require('node:fs').copyFileSync('src/blocks.css','dist/blocks.css');require('node:fs').copyFileSync('src/story.css','dist/story.css')\" && node scripts/build-registry.mjs",
@@ -339,7 +339,7 @@
339
339
  "description": "`sm`, `md` (default) and `lg`.",
340
340
  "path": "examples/button/sizes.tsx",
341
341
  "module": "@krizaka/ui/registry/examples/button/sizes",
342
- "code": "import { Button } from \"@krizaka/ui/button\";\n\nexport default function ButtonSizes() {\n return (\n <div className=\"flex items-center gap-3\">\n <Button variant=\"primary\" size=\"sm\">\n Continue\n </Button>\n <Button variant=\"primary\" size=\"md\">\n Continue\n </Button>\n <Button variant=\"primary\" size=\"lg\">\n Continue\n </Button>\n </div>\n );\n}\n"
342
+ "code": "import { Button } from \"@krizaka/ui/button\";\n\nexport default function ButtonSizes() {\n return (\n <div className=\"flex flex-wrap items-center gap-3\">\n <Button variant=\"primary\" size=\"sm\">\n Continue\n </Button>\n <Button variant=\"primary\" size=\"md\">\n Continue\n </Button>\n <Button variant=\"primary\" size=\"lg\">\n Continue\n </Button>\n </div>\n );\n}\n"
343
343
  },
344
344
  {
345
345
  "name": "pill",
@@ -4,7 +4,7 @@
4
4
  import { Button } from "@krizaka/ui/button";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  function ButtonSizes() {
7
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
7
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
8
8
  /* @__PURE__ */ jsx(Button, { variant: "primary", size: "sm", children: "Continue" }),
9
9
  /* @__PURE__ */ jsx(Button, { variant: "primary", size: "md", children: "Continue" }),
10
10
  /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", children: "Continue" })
@@ -2,7 +2,7 @@ import { Button } from "@krizaka/ui/button";
2
2
 
3
3
  export default function ButtonSizes() {
4
4
  return (
5
- <div className="flex items-center gap-3">
5
+ <div className="flex flex-wrap items-center gap-3">
6
6
  <Button variant="primary" size="sm">
7
7
  Continue
8
8
  </Button>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "3.33.0",
3
+ "version": "3.33.1",
4
4
  "templatePurposes": {
5
5
  "convince": {
6
6
  "title": "Convince",
@@ -3017,7 +3017,7 @@
3017
3017
  "native": 2
3018
3018
  },
3019
3019
  "dependencies": [
3020
- "@krizaka/tokens@^3.33.0",
3020
+ "@krizaka/tokens@^3.33.1",
3021
3021
  "@protomaps/basemaps@5.7.2",
3022
3022
  "tailwind-variants@^3.3.1"
3023
3023
  ],
@@ -3456,7 +3456,7 @@
3456
3456
  "native": 0
3457
3457
  },
3458
3458
  "dependencies": [
3459
- "@krizaka/tokens@^3.33.0",
3459
+ "@krizaka/tokens@^3.33.1",
3460
3460
  "radix-ui@^1.7.0",
3461
3461
  "tailwind-variants@^3.3.1"
3462
3462
  ],
@@ -4088,7 +4088,7 @@
4088
4088
  "native": 0
4089
4089
  },
4090
4090
  "dependencies": [
4091
- "@krizaka/tokens@^3.33.0",
4091
+ "@krizaka/tokens@^3.33.1",
4092
4092
  "radix-ui@^1.7.0",
4093
4093
  "tailwind-variants@^3.3.1"
4094
4094
  ],
@@ -4431,7 +4431,7 @@
4431
4431
  "native": 0
4432
4432
  },
4433
4433
  "dependencies": [
4434
- "@krizaka/tokens@^3.33.0",
4434
+ "@krizaka/tokens@^3.33.1",
4435
4435
  "radix-ui@^1.7.0",
4436
4436
  "tailwind-variants@^3.3.1"
4437
4437
  ],
package/registry/map.json CHANGED
@@ -1060,7 +1060,7 @@
1060
1060
  }
1061
1061
  ],
1062
1062
  "dependencies": [
1063
- "@krizaka/tokens@^3.33.0",
1063
+ "@krizaka/tokens@^3.33.1",
1064
1064
  "@protomaps/basemaps@5.7.2",
1065
1065
  "tailwind-variants@^3.3.1"
1066
1066
  ],
@@ -618,7 +618,7 @@
618
618
  }
619
619
  ],
620
620
  "dependencies": [
621
- "@krizaka/tokens@^3.33.0",
621
+ "@krizaka/tokens@^3.33.1",
622
622
  "radix-ui@^1.7.0",
623
623
  "tailwind-variants@^3.3.1"
624
624
  ],
@@ -342,7 +342,7 @@
342
342
  }
343
343
  ],
344
344
  "dependencies": [
345
- "@krizaka/tokens@^3.33.0",
345
+ "@krizaka/tokens@^3.33.1",
346
346
  "radix-ui@^1.7.0",
347
347
  "tailwind-variants@^3.3.1"
348
348
  ],
@@ -329,7 +329,7 @@
329
329
  }
330
330
  ],
331
331
  "dependencies": [
332
- "@krizaka/tokens@^3.33.0",
332
+ "@krizaka/tokens@^3.33.1",
333
333
  "radix-ui@^1.7.0",
334
334
  "tailwind-variants@^3.3.1"
335
335
  ],