@krizaka/ui 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -1
- package/dist/action-bar.d.ts +38 -0
- package/dist/action-bar.js +52 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/argument-card.d.ts +67 -0
- package/dist/argument-card.js +69 -0
- package/dist/argument-card.js.map +1 -0
- package/dist/audio-player.js +1 -1
- package/dist/block-link-BAg4eoZk.d.ts +12 -0
- package/dist/blocks.css +529 -0
- package/dist/button.js +5 -94
- package/dist/button.js.map +1 -1
- package/dist/card-grid.d.ts +42 -0
- package/dist/card-grid.js +47 -0
- package/dist/card-grid.js.map +1 -0
- package/dist/chunk-2AGSO3WH.js +20 -0
- package/dist/chunk-2AGSO3WH.js.map +1 -0
- package/dist/chunk-AB5D3KBG.js +37 -0
- package/dist/chunk-AB5D3KBG.js.map +1 -0
- package/dist/{chunk-YX6CNVJA.js → chunk-CPA5CF35.js} +1 -1
- package/dist/chunk-CPA5CF35.js.map +1 -0
- package/dist/chunk-K3SWZXYT.js +92 -0
- package/dist/chunk-K3SWZXYT.js.map +1 -0
- package/dist/{chunk-XUMJA5ZI.js → chunk-X6TW3X6Y.js} +2 -2
- package/dist/chunk-XCBVFMNV.js +41 -0
- package/dist/{chunk-YX6CNVJA.js.map → chunk-XCBVFMNV.js.map} +1 -1
- package/dist/chunk-XVLWVTQA.js +28 -0
- package/dist/chunk-XVLWVTQA.js.map +1 -0
- package/dist/chunk-Z6FUPB3Q.js +102 -0
- package/dist/chunk-Z6FUPB3Q.js.map +1 -0
- package/dist/code-block.d.ts +42 -0
- package/dist/code-block.js +202 -0
- package/dist/code-block.js.map +1 -0
- package/dist/combobox.js +2 -2
- package/dist/cta-panel.d.ts +23 -0
- package/dist/cta-panel.js +20 -0
- package/dist/cta-panel.js.map +1 -0
- package/dist/data-table.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/decision-list.d.ts +34 -0
- package/dist/decision-list.js +67 -0
- package/dist/decision-list.js.map +1 -0
- package/dist/file-upload.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/link-card.d.ts +35 -0
- package/dist/link-card.js +46 -0
- package/dist/link-card.js.map +1 -0
- package/dist/mascot-quote.d.ts +42 -0
- package/dist/mascot-quote.js +267 -0
- package/dist/mascot-quote.js.map +1 -0
- package/dist/media-capture.js +1 -1
- package/dist/motion.css +25 -1
- package/dist/page-hero.d.ts +44 -0
- package/dist/page-hero.js +41 -0
- package/dist/page-hero.js.map +1 -0
- package/dist/page.d.ts +116 -0
- package/dist/page.js +17 -0
- package/dist/page.js.map +1 -0
- package/dist/pagination.js +25 -44
- package/dist/pagination.js.map +1 -1
- package/dist/pointer-light.d.ts +20 -0
- package/dist/pointer-light.js +12 -0
- package/dist/pointer-light.js.map +1 -0
- package/dist/search-field.js +1 -1
- package/dist/section-backdrop.js +4 -22
- package/dist/section-backdrop.js.map +1 -1
- package/dist/tag-input.js +2 -2
- package/dist/terminal-replay.d.ts +68 -0
- package/dist/terminal-replay.js +231 -0
- package/dist/terminal-replay.js.map +1 -0
- package/dist/toc.d.ts +23 -0
- package/dist/toc.js +39 -0
- package/dist/toc.js.map +1 -0
- package/dist/video-player.js +1 -1
- package/package.json +192 -7
- package/registry/action-bar.json +205 -0
- package/registry/alert.json +1 -1
- package/registry/argument-card.json +327 -0
- package/registry/audio-player.json +2 -2
- package/registry/avatar.json +1 -1
- package/registry/badge.json +1 -1
- package/registry/button.json +5 -5
- package/registry/card-grid.json +221 -0
- package/registry/card.json +3 -3
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/code-block.json +262 -0
- package/registry/combobox.json +2 -2
- package/registry/command.json +1 -1
- package/registry/confirm-button.json +3 -3
- package/registry/countdown.json +1 -1
- package/registry/cta-panel.json +154 -0
- package/registry/data-table.json +2 -2
- package/registry/date-picker.json +2 -2
- package/registry/decision-list.json +144 -0
- package/registry/dialog.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/empty-state.json +1 -1
- package/registry/examples/action-bar/buttons.d.ts +4 -0
- package/registry/examples/action-bar/buttons.js +22 -0
- package/registry/examples/action-bar/buttons.tsx +17 -0
- package/registry/examples/action-bar/icons.d.ts +4 -0
- package/registry/examples/action-bar/icons.js +24 -0
- package/registry/examples/action-bar/icons.tsx +23 -0
- package/registry/examples/argument-card/building-block.d.ts +4 -0
- package/registry/examples/argument-card/building-block.js +29 -0
- package/registry/examples/argument-card/building-block.tsx +29 -0
- package/registry/examples/argument-card/grid.d.ts +4 -0
- package/registry/examples/argument-card/grid.js +17 -0
- package/registry/examples/argument-card/grid.tsx +19 -0
- package/registry/examples/argument-card/unfold.d.ts +4 -0
- package/registry/examples/argument-card/unfold.js +26 -0
- package/registry/examples/argument-card/unfold.tsx +21 -0
- package/registry/examples/card-grid/products.d.ts +4 -0
- package/registry/examples/card-grid/products.js +16 -0
- package/registry/examples/card-grid/products.tsx +13 -0
- package/registry/examples/card-grid/reveal.d.ts +4 -0
- package/registry/examples/card-grid/reveal.js +13 -0
- package/registry/examples/card-grid/reveal.tsx +16 -0
- package/registry/examples/code-block/build-tools.d.ts +4 -0
- package/registry/examples/code-block/build-tools.js +30 -0
- package/registry/examples/code-block/build-tools.tsx +25 -0
- package/registry/examples/code-block/file.d.ts +4 -0
- package/registry/examples/code-block/file.js +17 -0
- package/registry/examples/code-block/file.tsx +13 -0
- package/registry/examples/cta-panel/discuss.d.ts +4 -0
- package/registry/examples/cta-panel/discuss.js +31 -0
- package/registry/examples/cta-panel/discuss.tsx +23 -0
- package/registry/examples/decision-list/product.d.ts +4 -0
- package/registry/examples/decision-list/product.js +35 -0
- package/registry/examples/decision-list/product.tsx +30 -0
- package/registry/examples/link-card/docs-hub.d.ts +4 -0
- package/registry/examples/link-card/docs-hub.js +18 -0
- package/registry/examples/link-card/docs-hub.tsx +20 -0
- package/registry/examples/link-card/external.d.ts +4 -0
- package/registry/examples/link-card/external.js +22 -0
- package/registry/examples/link-card/external.tsx +16 -0
- package/registry/examples/link-card/stack.d.ts +4 -0
- package/registry/examples/link-card/stack.js +26 -0
- package/registry/examples/link-card/stack.tsx +21 -0
- package/registry/examples/mascot-quote/callout.d.ts +4 -0
- package/registry/examples/mascot-quote/callout.js +11 -0
- package/registry/examples/mascot-quote/callout.tsx +10 -0
- package/registry/examples/mascot-quote/inline.d.ts +4 -0
- package/registry/examples/mascot-quote/inline.js +11 -0
- package/registry/examples/mascot-quote/inline.tsx +10 -0
- package/registry/examples/page/backdrop.d.ts +4 -0
- package/registry/examples/page/backdrop.js +23 -0
- package/registry/examples/page/backdrop.tsx +18 -0
- package/registry/examples/page/facts.d.ts +4 -0
- package/registry/examples/page/facts.js +24 -0
- package/registry/examples/page/facts.tsx +21 -0
- package/registry/examples/page/frame.d.ts +4 -0
- package/registry/examples/page/frame.js +15 -0
- package/registry/examples/page/frame.tsx +17 -0
- package/registry/examples/page/sections.d.ts +4 -0
- package/registry/examples/page/sections.js +14 -0
- package/registry/examples/page/sections.tsx +15 -0
- package/registry/examples/page-hero/building-block.d.ts +4 -0
- package/registry/examples/page-hero/building-block.js +24 -0
- package/registry/examples/page-hero/building-block.tsx +20 -0
- package/registry/examples/page-hero/hub.d.ts +4 -0
- package/registry/examples/page-hero/hub.js +21 -0
- package/registry/examples/page-hero/hub.tsx +15 -0
- package/registry/examples/pointer-light/list.d.ts +4 -0
- package/registry/examples/pointer-light/list.js +16 -0
- package/registry/examples/pointer-light/list.tsx +14 -0
- package/registry/examples/terminal-replay/at-rest.d.ts +4 -0
- package/registry/examples/terminal-replay/at-rest.js +32 -0
- package/registry/examples/terminal-replay/at-rest.tsx +26 -0
- package/registry/examples/terminal-replay/session.d.ts +4 -0
- package/registry/examples/terminal-replay/session.js +34 -0
- package/registry/examples/terminal-replay/session.tsx +28 -0
- package/registry/examples/toc/reading-page.d.ts +4 -0
- package/registry/examples/toc/reading-page.js +21 -0
- package/registry/examples/toc/reading-page.tsx +21 -0
- package/registry/field.json +1 -1
- package/registry/file-upload.json +2 -2
- package/registry/filter-bar.json +2 -2
- package/registry/glow-card.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +241 -1
- package/registry/iso.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/link-card.json +279 -0
- package/registry/loader.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +191 -0
- package/registry/mascots.json +1 -1
- package/registry/media-capture.json +4 -4
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +254 -0
- package/registry/page.json +497 -0
- package/registry/pagination.json +2 -2
- package/registry/pointer-light.json +119 -0
- package/registry/popover.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/search-field.json +2 -2
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/skeleton.json +3 -3
- package/registry/slider.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/terminal-replay.json +317 -0
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +157 -0
- package/registry/tooltip.json +1 -1
- package/registry/video-player.json +4 -4
- package/registry/video-trimmer.json +3 -3
- /package/dist/{chunk-XUMJA5ZI.js.map → chunk-X6TW3X6Y.js.map} +0 -0
package/registry/index.json
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krizaka/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"items": [
|
|
5
|
+
{
|
|
6
|
+
"name": "action-bar",
|
|
7
|
+
"type": "primitive",
|
|
8
|
+
"title": "Action bar",
|
|
9
|
+
"summary": "A row of link actions — discuss, propose, report, read the docs, see the code: buttons with their words at the end of a page, or icon buttons whose words are a tooltip at the foot of a card.",
|
|
10
|
+
"description": "A row of link actions — discuss, propose, report, read the docs, see the code: buttons with their words at the end of a page, or icon buttons whose words are a tooltip at the foot of a card.",
|
|
11
|
+
"status": "beta",
|
|
12
|
+
"category": "blocks",
|
|
13
|
+
"platforms": "web",
|
|
14
|
+
"examples": {
|
|
15
|
+
"web": 2,
|
|
16
|
+
"native": 0
|
|
17
|
+
},
|
|
18
|
+
"dependencies": [],
|
|
19
|
+
"registryDependencies": [
|
|
20
|
+
"button",
|
|
21
|
+
"cn"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
5
24
|
{
|
|
6
25
|
"name": "alert",
|
|
7
26
|
"type": "primitive",
|
|
@@ -20,6 +39,25 @@
|
|
|
20
39
|
],
|
|
21
40
|
"registryDependencies": []
|
|
22
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"name": "argument-card",
|
|
44
|
+
"type": "primitive",
|
|
45
|
+
"title": "Argument card",
|
|
46
|
+
"summary": "A compact card that argues — about a third of a full card: who (icon, name, the bird in the corner), the trap in one line, facts and one short action; the long version lives on a detail page or unfolds in place.",
|
|
47
|
+
"description": "A compact card that argues — about a third of a full card: who (icon, name, the bird in the corner), the trap in one line, facts and one short action; the long version lives on a detail page or unfolds in place.",
|
|
48
|
+
"status": "beta",
|
|
49
|
+
"category": "blocks",
|
|
50
|
+
"platforms": "web",
|
|
51
|
+
"examples": {
|
|
52
|
+
"web": 3,
|
|
53
|
+
"native": 0
|
|
54
|
+
},
|
|
55
|
+
"dependencies": [],
|
|
56
|
+
"registryDependencies": [
|
|
57
|
+
"cn",
|
|
58
|
+
"page"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
23
61
|
{
|
|
24
62
|
"name": "audio-player",
|
|
25
63
|
"type": "primitive",
|
|
@@ -117,6 +155,25 @@
|
|
|
117
155
|
"cn"
|
|
118
156
|
]
|
|
119
157
|
},
|
|
158
|
+
{
|
|
159
|
+
"name": "card-grid",
|
|
160
|
+
"type": "primitive",
|
|
161
|
+
"title": "Card grid",
|
|
162
|
+
"summary": "A responsive grid of cards: as many columns as the width allows (one on a phone), the cells of a row at one height, a staggered reveal and the light that follows the pointer.",
|
|
163
|
+
"description": "A responsive grid of cards: as many columns as the width allows (one on a phone), the cells of a row at one height, a staggered reveal and the light that follows the pointer.",
|
|
164
|
+
"status": "beta",
|
|
165
|
+
"category": "blocks",
|
|
166
|
+
"platforms": "web",
|
|
167
|
+
"examples": {
|
|
168
|
+
"web": 2,
|
|
169
|
+
"native": 0
|
|
170
|
+
},
|
|
171
|
+
"dependencies": [],
|
|
172
|
+
"registryDependencies": [
|
|
173
|
+
"cn",
|
|
174
|
+
"pointer-light"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
120
177
|
{
|
|
121
178
|
"name": "checkbox",
|
|
122
179
|
"type": "primitive",
|
|
@@ -193,6 +250,25 @@
|
|
|
193
250
|
],
|
|
194
251
|
"registryDependencies": []
|
|
195
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"name": "code-block",
|
|
255
|
+
"type": "primitive",
|
|
256
|
+
"title": "Code block",
|
|
257
|
+
"summary": "A code sample: its language and file name, the code highlighted on the tokens (it scrolls sideways, never shrinks) and a copy button that says it copied — `CodeTabs` puts several build tools side by side.",
|
|
258
|
+
"description": "A code sample: its language and file name, the code highlighted on the tokens (it scrolls sideways, never shrinks) and a copy button that says it copied — `CodeTabs` puts several build tools side by side.",
|
|
259
|
+
"status": "beta",
|
|
260
|
+
"category": "blocks",
|
|
261
|
+
"platforms": "web",
|
|
262
|
+
"examples": {
|
|
263
|
+
"web": 2,
|
|
264
|
+
"native": 0
|
|
265
|
+
},
|
|
266
|
+
"dependencies": [],
|
|
267
|
+
"registryDependencies": [
|
|
268
|
+
"cn",
|
|
269
|
+
"tabs"
|
|
270
|
+
]
|
|
271
|
+
},
|
|
196
272
|
{
|
|
197
273
|
"name": "combobox",
|
|
198
274
|
"type": "primitive",
|
|
@@ -275,6 +351,24 @@
|
|
|
275
351
|
],
|
|
276
352
|
"registryDependencies": []
|
|
277
353
|
},
|
|
354
|
+
{
|
|
355
|
+
"name": "cta-panel",
|
|
356
|
+
"type": "primitive",
|
|
357
|
+
"title": "Call-to-action panel",
|
|
358
|
+
"summary": "The invitation at the end of a section or a page: a title, why it matters, the ways to answer — in the hue of the page.",
|
|
359
|
+
"description": "The invitation at the end of a section or a page: a title, why it matters, the ways to answer — in the hue of the page.",
|
|
360
|
+
"status": "beta",
|
|
361
|
+
"category": "blocks",
|
|
362
|
+
"platforms": "web",
|
|
363
|
+
"examples": {
|
|
364
|
+
"web": 1,
|
|
365
|
+
"native": 0
|
|
366
|
+
},
|
|
367
|
+
"dependencies": [],
|
|
368
|
+
"registryDependencies": [
|
|
369
|
+
"cn"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
278
372
|
{
|
|
279
373
|
"name": "data-table",
|
|
280
374
|
"type": "primitive",
|
|
@@ -316,6 +410,24 @@
|
|
|
316
410
|
"popover"
|
|
317
411
|
]
|
|
318
412
|
},
|
|
413
|
+
{
|
|
414
|
+
"name": "decision-list",
|
|
415
|
+
"type": "primitive",
|
|
416
|
+
"title": "Decision list",
|
|
417
|
+
"summary": "The decisions behind a product, numbered: what was chosen, large, then side by side what was refused, why, and what it costs the reader — each with its mark and its colour.",
|
|
418
|
+
"description": "The decisions behind a product, numbered: what was chosen, large, then side by side what was refused, why, and what it costs the reader — each with its mark and its colour.",
|
|
419
|
+
"status": "beta",
|
|
420
|
+
"category": "blocks",
|
|
421
|
+
"platforms": "web",
|
|
422
|
+
"examples": {
|
|
423
|
+
"web": 1,
|
|
424
|
+
"native": 0
|
|
425
|
+
},
|
|
426
|
+
"dependencies": [],
|
|
427
|
+
"registryDependencies": [
|
|
428
|
+
"cn"
|
|
429
|
+
]
|
|
430
|
+
},
|
|
319
431
|
{
|
|
320
432
|
"name": "dialog",
|
|
321
433
|
"type": "primitive",
|
|
@@ -513,6 +625,24 @@
|
|
|
513
625
|
],
|
|
514
626
|
"registryDependencies": []
|
|
515
627
|
},
|
|
628
|
+
{
|
|
629
|
+
"name": "link-card",
|
|
630
|
+
"type": "primitive",
|
|
631
|
+
"title": "Link card",
|
|
632
|
+
"summary": "An entry point where the whole card is one link: an icon tile, a title, one sentence and the way in — compact, the same on every page, lifting and lighting under the pointer or the focus.",
|
|
633
|
+
"description": "An entry point where the whole card is one link: an icon tile, a title, one sentence and the way in — compact, the same on every page, lifting and lighting under the pointer or the focus.",
|
|
634
|
+
"status": "beta",
|
|
635
|
+
"category": "blocks",
|
|
636
|
+
"platforms": "web",
|
|
637
|
+
"examples": {
|
|
638
|
+
"web": 3,
|
|
639
|
+
"native": 0
|
|
640
|
+
},
|
|
641
|
+
"dependencies": [],
|
|
642
|
+
"registryDependencies": [
|
|
643
|
+
"cn"
|
|
644
|
+
]
|
|
645
|
+
},
|
|
516
646
|
{
|
|
517
647
|
"name": "loader",
|
|
518
648
|
"type": "primitive",
|
|
@@ -551,6 +681,25 @@
|
|
|
551
681
|
"cn"
|
|
552
682
|
]
|
|
553
683
|
},
|
|
684
|
+
{
|
|
685
|
+
"name": "mascot-quote",
|
|
686
|
+
"type": "primitive",
|
|
687
|
+
"title": "Mascot quote",
|
|
688
|
+
"summary": "A rule, a promise or a decision told by a bird: the sentence in a speech bubble, the bird under its tail and who speaks — `inline` in a card, `callout` alone in a section.",
|
|
689
|
+
"description": "A rule, a promise or a decision told by a bird: the sentence in a speech bubble, the bird under its tail and who speaks — `inline` in a card, `callout` alone in a section.",
|
|
690
|
+
"status": "beta",
|
|
691
|
+
"category": "blocks",
|
|
692
|
+
"platforms": "web",
|
|
693
|
+
"examples": {
|
|
694
|
+
"web": 2,
|
|
695
|
+
"native": 0
|
|
696
|
+
},
|
|
697
|
+
"dependencies": [],
|
|
698
|
+
"registryDependencies": [
|
|
699
|
+
"cn",
|
|
700
|
+
"mascots"
|
|
701
|
+
]
|
|
702
|
+
},
|
|
554
703
|
{
|
|
555
704
|
"name": "mascots",
|
|
556
705
|
"type": "primitive",
|
|
@@ -640,6 +789,25 @@
|
|
|
640
789
|
"dependencies": [],
|
|
641
790
|
"registryDependencies": []
|
|
642
791
|
},
|
|
792
|
+
{
|
|
793
|
+
"name": "page",
|
|
794
|
+
"type": "primitive",
|
|
795
|
+
"title": "Page",
|
|
796
|
+
"summary": "The frame of every page: one width (`--kz-page-max`), one pair of gutters, one vertical rhythm — `Page`, `Section` (full-bleed, its heading, a hairline or the brand's backdrop as transition) and `SectionHeading`, with `Facts` and `Ticks`.",
|
|
797
|
+
"description": "The frame of every page: one width (`--kz-page-max`), one pair of gutters, one vertical rhythm — `Page`, `Section` (full-bleed, its heading, a hairline or the brand's backdrop as transition) and `SectionHeading`, with `Facts` and `Ticks`.",
|
|
798
|
+
"status": "beta",
|
|
799
|
+
"category": "blocks",
|
|
800
|
+
"platforms": "web",
|
|
801
|
+
"examples": {
|
|
802
|
+
"web": 4,
|
|
803
|
+
"native": 0
|
|
804
|
+
},
|
|
805
|
+
"dependencies": [],
|
|
806
|
+
"registryDependencies": [
|
|
807
|
+
"cn",
|
|
808
|
+
"section-backdrop"
|
|
809
|
+
]
|
|
810
|
+
},
|
|
643
811
|
{
|
|
644
812
|
"name": "page-header",
|
|
645
813
|
"type": "primitive",
|
|
@@ -658,6 +826,26 @@
|
|
|
658
826
|
],
|
|
659
827
|
"registryDependencies": []
|
|
660
828
|
},
|
|
829
|
+
{
|
|
830
|
+
"name": "page-hero",
|
|
831
|
+
"type": "primitive",
|
|
832
|
+
"title": "Page hero",
|
|
833
|
+
"summary": "The first screen of a page: the way back, an eyebrow, the `h1`, a lead, what follows them (facts, actions) and an aside (the page's bird) — on the brand's backdrop, painted at once.",
|
|
834
|
+
"description": "The first screen of a page: the way back, an eyebrow, the `h1`, a lead, what follows them (facts, actions) and an aside (the page's bird) — on the brand's backdrop, painted at once.",
|
|
835
|
+
"status": "beta",
|
|
836
|
+
"category": "blocks",
|
|
837
|
+
"platforms": "web",
|
|
838
|
+
"examples": {
|
|
839
|
+
"web": 2,
|
|
840
|
+
"native": 0
|
|
841
|
+
},
|
|
842
|
+
"dependencies": [],
|
|
843
|
+
"registryDependencies": [
|
|
844
|
+
"cn",
|
|
845
|
+
"page",
|
|
846
|
+
"section-backdrop"
|
|
847
|
+
]
|
|
848
|
+
},
|
|
661
849
|
{
|
|
662
850
|
"name": "pagination",
|
|
663
851
|
"type": "primitive",
|
|
@@ -676,6 +864,22 @@
|
|
|
676
864
|
],
|
|
677
865
|
"registryDependencies": []
|
|
678
866
|
},
|
|
867
|
+
{
|
|
868
|
+
"name": "pointer-light",
|
|
869
|
+
"type": "primitive",
|
|
870
|
+
"title": "Pointer light",
|
|
871
|
+
"summary": "The light that follows the pointer over a group of cards: one passive listener writes the pointer's position into the card it is over, the card's CSS draws the light.",
|
|
872
|
+
"description": "The light that follows the pointer over a group of cards: one passive listener writes the pointer's position into the card it is over, the card's CSS draws the light.",
|
|
873
|
+
"status": "beta",
|
|
874
|
+
"category": "blocks",
|
|
875
|
+
"platforms": "web",
|
|
876
|
+
"examples": {
|
|
877
|
+
"web": 1,
|
|
878
|
+
"native": 0
|
|
879
|
+
},
|
|
880
|
+
"dependencies": [],
|
|
881
|
+
"registryDependencies": []
|
|
882
|
+
},
|
|
679
883
|
{
|
|
680
884
|
"name": "popover",
|
|
681
885
|
"type": "primitive",
|
|
@@ -973,6 +1177,24 @@
|
|
|
973
1177
|
"combobox"
|
|
974
1178
|
]
|
|
975
1179
|
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "terminal-replay",
|
|
1182
|
+
"type": "primitive",
|
|
1183
|
+
"title": "Terminal replay",
|
|
1184
|
+
"summary": "A terminal session played back: each command typed at the prompt, its output line by line, the screen following the last line — or the whole session at rest, as the server renders it.",
|
|
1185
|
+
"description": "A terminal session played back: each command typed at the prompt, its output line by line, the screen following the last line — or the whole session at rest, as the server renders it.",
|
|
1186
|
+
"status": "beta",
|
|
1187
|
+
"category": "media",
|
|
1188
|
+
"platforms": "web",
|
|
1189
|
+
"examples": {
|
|
1190
|
+
"web": 2,
|
|
1191
|
+
"native": 0
|
|
1192
|
+
},
|
|
1193
|
+
"dependencies": [],
|
|
1194
|
+
"registryDependencies": [
|
|
1195
|
+
"cn"
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
976
1198
|
{
|
|
977
1199
|
"name": "theme",
|
|
978
1200
|
"type": "primitive",
|
|
@@ -1012,6 +1234,24 @@
|
|
|
1012
1234
|
"spinner"
|
|
1013
1235
|
]
|
|
1014
1236
|
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "toc",
|
|
1239
|
+
"type": "primitive",
|
|
1240
|
+
"title": "Table of contents",
|
|
1241
|
+
"summary": "The sections of a reading page: sticky beside the content on a wide screen, a row of chips that scrolls sideways on a phone, the section being read marked — with `TocLayout` to place it.",
|
|
1242
|
+
"description": "The sections of a reading page: sticky beside the content on a wide screen, a row of chips that scrolls sideways on a phone, the section being read marked — with `TocLayout` to place it.",
|
|
1243
|
+
"status": "beta",
|
|
1244
|
+
"category": "blocks",
|
|
1245
|
+
"platforms": "web",
|
|
1246
|
+
"examples": {
|
|
1247
|
+
"web": 1,
|
|
1248
|
+
"native": 0
|
|
1249
|
+
},
|
|
1250
|
+
"dependencies": [],
|
|
1251
|
+
"registryDependencies": [
|
|
1252
|
+
"cn"
|
|
1253
|
+
]
|
|
1254
|
+
},
|
|
1015
1255
|
{
|
|
1016
1256
|
"name": "tooltip",
|
|
1017
1257
|
"type": "primitive",
|
package/registry/iso.json
CHANGED
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
},
|
|
728
728
|
{
|
|
729
729
|
"path": "meta.ts",
|
|
730
|
-
"content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"alert\"\n | \"audio-player\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"cn\"\n | \"combobox\"\n | \"command\"\n | \"confirm-button\"\n | \"countdown\"\n | \"data-table\"\n | \"date-picker\"\n | \"dialog\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"glow-card\"\n | \"image-cropper\"\n | \"iso\"\n | \"kbd\"\n | \"loader\"\n | \"marquee\"\n | \"mascots\"\n | \"media-capture\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"page-header\"\n | \"pagination\"\n | \"popover\"\n | \"progress\"\n | \"radio-group\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"skeleton\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"stat\"\n | \"stepper\"\n | \"switch\"\n | \"tabs\"\n | \"tag-input\"\n | \"theme\"\n | \"toast\"\n | \"tooltip\"\n | \"txt\"\n | \"video-player\"\n | \"video-trimmer\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/** `stable`: its API only changes in a major. `beta`: it may still change in a minor. */\nexport type Status = \"stable\" | \"beta\";\n\n
|
|
730
|
+
"content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"action-bar\"\n | \"alert\"\n | \"argument-card\"\n | \"audio-player\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"card-grid\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"command\"\n | \"confirm-button\"\n | \"countdown\"\n | \"cta-panel\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"dialog\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"glow-card\"\n | \"image-cropper\"\n | \"iso\"\n | \"kbd\"\n | \"link-card\"\n | \"loader\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascots\"\n | \"media-capture\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"pointer-light\"\n | \"popover\"\n | \"progress\"\n | \"radio-group\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"skeleton\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"stat\"\n | \"stepper\"\n | \"switch\"\n | \"tabs\"\n | \"tag-input\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"txt\"\n | \"video-player\"\n | \"video-trimmer\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/** `stable`: its API only changes in a major. `beta`: it may still change in a minor. */\nexport type Status = \"stable\" | \"beta\";\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layout\" | \"foundations\";\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\nexport interface Example {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
|
|
731
731
|
}
|
|
732
732
|
],
|
|
733
733
|
"dependencies": [],
|
package/registry/kbd.json
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"path": "meta.ts",
|
|
99
|
-
"content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"alert\"\n | \"audio-player\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"cn\"\n | \"combobox\"\n | \"command\"\n | \"confirm-button\"\n | \"countdown\"\n | \"data-table\"\n | \"date-picker\"\n | \"dialog\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"glow-card\"\n | \"image-cropper\"\n | \"iso\"\n | \"kbd\"\n | \"loader\"\n | \"marquee\"\n | \"mascots\"\n | \"media-capture\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"page-header\"\n | \"pagination\"\n | \"popover\"\n | \"progress\"\n | \"radio-group\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"skeleton\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"stat\"\n | \"stepper\"\n | \"switch\"\n | \"tabs\"\n | \"tag-input\"\n | \"theme\"\n | \"toast\"\n | \"tooltip\"\n | \"txt\"\n | \"video-player\"\n | \"video-trimmer\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/** `stable`: its API only changes in a major. `beta`: it may still change in a minor. */\nexport type Status = \"stable\" | \"beta\";\n\n
|
|
99
|
+
"content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"action-bar\"\n | \"alert\"\n | \"argument-card\"\n | \"audio-player\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"card-grid\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"command\"\n | \"confirm-button\"\n | \"countdown\"\n | \"cta-panel\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"dialog\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"glow-card\"\n | \"image-cropper\"\n | \"iso\"\n | \"kbd\"\n | \"link-card\"\n | \"loader\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascots\"\n | \"media-capture\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"pointer-light\"\n | \"popover\"\n | \"progress\"\n | \"radio-group\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"skeleton\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"stat\"\n | \"stepper\"\n | \"switch\"\n | \"tabs\"\n | \"tag-input\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"txt\"\n | \"video-player\"\n | \"video-trimmer\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/** `stable`: its API only changes in a major. `beta`: it may still change in a minor. */\nexport type Status = \"stable\" | \"beta\";\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layout\" | \"foundations\";\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\nexport interface Example {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
|
|
100
100
|
}
|
|
101
101
|
],
|
|
102
102
|
"dependencies": [
|