@krizaka/ui 3.63.0 → 3.64.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/dist/account-menu.d.ts +1 -1
- package/dist/account-menu.js +1 -1
- package/dist/account-settings.d.ts +61 -4
- package/dist/account-settings.js +207 -45
- package/dist/account-settings.js.map +1 -1
- package/dist/action-bar.js +4 -4
- package/dist/analysis-report.d.ts +274 -0
- package/dist/analysis-report.js +207 -0
- package/dist/analysis-report.js.map +1 -0
- package/dist/app-header.d.ts +3 -3
- package/dist/argument-card.d.ts +1 -1
- package/dist/argument-card.js +5 -5
- package/dist/avatar/defaults.d.ts +16 -5
- package/dist/avatar/defaults.js +15 -1
- package/dist/avatar/defaults.js.map +1 -1
- package/dist/{avatar-BL2iG_Js.d.ts → avatar-BdZcfkWR.d.ts} +11 -4
- package/dist/avatar.d.ts +16 -5
- package/dist/avatar.js +15 -1
- package/dist/avatar.js.map +1 -1
- package/dist/badge.js +4 -34
- package/dist/badge.js.map +1 -1
- package/dist/blocks.css +99 -8
- package/dist/button.js +1 -1
- package/dist/captcha.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/chunk-5PFCELGW.js +41 -0
- package/dist/chunk-5PFCELGW.js.map +1 -0
- package/dist/chunk-5RWHDX5J.js +37 -0
- package/dist/chunk-5RWHDX5J.js.map +1 -0
- package/dist/{chunk-5LANVCK7.js → chunk-BG5APGX6.js} +2 -2
- package/dist/{chunk-WOZP3JLW.js → chunk-DJ5ZPPWL.js} +1 -1
- package/dist/chunk-DJ5ZPPWL.js.map +1 -0
- package/dist/{chunk-UV4HBVH7.js → chunk-EB45EVPJ.js} +2 -2
- package/dist/{chunk-SJS6RJIT.js.map → chunk-EB45EVPJ.js.map} +1 -1
- package/dist/chunk-EUJ7337V.js +137 -0
- package/dist/chunk-EUJ7337V.js.map +1 -0
- package/dist/{chunk-6EAHUURY.js → chunk-GHAN7OOE.js} +2 -2
- package/dist/chunk-HK525THY.js +139 -0
- package/dist/chunk-HK525THY.js.map +1 -0
- package/dist/chunk-JT7ZKZT5.js +1 -0
- package/dist/chunk-JT7ZKZT5.js.map +1 -0
- package/dist/{chunk-3DHNN5V7.js → chunk-M3GEYLMR.js} +2 -2
- package/dist/{chunk-3DHNN5V7.js.map → chunk-M3GEYLMR.js.map} +1 -1
- package/dist/{chunk-7J2L4HOD.js → chunk-MTVX4RRF.js} +2 -2
- package/dist/{chunk-7J2L4HOD.js.map → chunk-MTVX4RRF.js.map} +1 -1
- package/dist/{chunk-YKEIOYJ5.js → chunk-NPMGYLJV.js} +1 -1
- package/dist/chunk-NPMGYLJV.js.map +1 -0
- package/dist/{chunk-HEKDKM5Y.js → chunk-QVHSV6RA.js} +1 -1
- package/dist/{chunk-7JG3VR4C.js → chunk-RCKXJEDQ.js} +5 -5
- package/dist/{chunk-3D2YI63L.js → chunk-SHBYNQFS.js} +7 -2
- package/dist/{chunk-3D2YI63L.js.map → chunk-SHBYNQFS.js.map} +1 -1
- package/dist/chunk-U4XTZMB7.js +103 -0
- package/dist/chunk-U4XTZMB7.js.map +1 -0
- package/dist/{chunk-SJS6RJIT.js → chunk-V7W4RLRW.js} +2 -2
- package/dist/{chunk-UV4HBVH7.js.map → chunk-V7W4RLRW.js.map} +1 -1
- package/dist/command.js +2 -2
- package/dist/confirm-button.js +1 -1
- package/dist/continue-prompt.js +1 -1
- package/dist/continue-prompt.js.map +1 -1
- package/dist/cover-hero.js +1 -1
- package/dist/dashboard-layout.js +2 -1
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/data-table.js +2 -2
- package/dist/date-picker.d.ts +15 -15
- package/dist/dialog.js +2 -2
- package/dist/docs-layout.js +1 -1
- package/dist/embed-facade.d.ts +37 -0
- package/dist/embed-facade.js +96 -0
- package/dist/embed-facade.js.map +1 -0
- package/dist/file-upload.d.ts +2 -2
- package/dist/force-update-screen.js +1 -1
- package/dist/genui.js +2 -2
- package/dist/kind-config-editor.js +1 -1
- package/dist/link-card.js +2 -2
- package/dist/maintenance-screen.js +1 -1
- package/dist/map.js +6 -0
- package/dist/map.js.map +1 -1
- package/dist/margin-layout.d.ts +71 -0
- package/dist/margin-layout.js +29 -0
- package/dist/margin-layout.js.map +1 -0
- package/dist/match-dialog.js +2 -2
- package/dist/media-grid.d.ts +8 -3
- package/dist/media-grid.js +2 -2
- package/dist/meter.js +2 -1
- package/dist/native/map.js +6 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native.d.ts +96 -5
- package/dist/native.js +1718 -1529
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.js +1 -1
- package/dist/page-DPHDmDAQ.d.ts +131 -0
- package/dist/page-hero.js +4 -4
- package/dist/page.d.ts +7 -125
- package/dist/page.js +13 -1
- package/dist/page.js.map +1 -1
- package/dist/quota-meter.js +2 -1
- package/dist/quota-meter.js.map +1 -1
- package/dist/retro-tv.d.ts +6 -3
- package/dist/retro-tv.js +6 -5
- package/dist/retro-tv.js.map +1 -1
- package/dist/reviews.d.ts +49 -0
- package/dist/reviews.js +66 -0
- package/dist/reviews.js.map +1 -0
- package/dist/separator.d.ts +26 -3
- package/dist/separator.js +19 -1
- package/dist/separator.js.map +1 -1
- package/dist/service-card.d.ts +56 -63
- package/dist/service-card.js +49 -10
- package/dist/service-card.js.map +1 -1
- package/dist/settings-layout.js +1 -1
- package/dist/site-cahier.js +1 -1
- package/dist/specimen-tag.d.ts +15 -3
- package/dist/specimen-tag.js +4 -27
- package/dist/specimen-tag.js.map +1 -1
- package/dist/stat.d.ts +87 -5
- package/dist/stat.js +9 -53
- package/dist/stat.js.map +1 -1
- package/dist/sticky-action.d.ts +7 -2
- package/dist/sticky-action.js +24 -3
- package/dist/sticky-action.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/update-prompt.js +1 -1
- package/dist/usage.d.ts +229 -0
- package/dist/usage.js +189 -0
- package/dist/usage.js.map +1 -0
- package/dist/vertical-video.js +2 -2
- package/dist/wall.d.ts +24 -12
- package/dist/wall.js +106 -43
- package/dist/wall.js.map +1 -1
- package/package.json +92 -13
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +67 -6
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/analysis-report.json +445 -0
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- package/registry/argument-card.json +3 -3
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +6 -5
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +2 -2
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +1 -1
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +2 -2
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +1 -1
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +2 -2
- package/registry/embed-facade.json +243 -0
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/environment-notice.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/examples/account-settings/avatar-picker-folder.d.ts +4 -0
- package/registry/examples/account-settings/avatar-picker-folder.js +27 -0
- package/registry/examples/account-settings/avatar-picker-folder.tsx +23 -0
- package/registry/examples/analysis-report/document-validation.d.ts +4 -0
- package/registry/examples/analysis-report/document-validation.js +47 -0
- package/registry/examples/analysis-report/document-validation.tsx +29 -0
- package/registry/examples/analysis-report/native/document-validation.d.ts +4 -0
- package/registry/examples/analysis-report/native/document-validation.dark.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.js +48 -0
- package/registry/examples/analysis-report/native/document-validation.light.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.tsx +32 -0
- package/registry/examples/analysis-report/streaming.d.ts +4 -0
- package/registry/examples/analysis-report/streaming.js +42 -0
- package/registry/examples/analysis-report/streaming.tsx +23 -0
- package/registry/examples/embed-facade/tiktok.d.ts +4 -0
- package/registry/examples/embed-facade/tiktok.js +20 -0
- package/registry/examples/embed-facade/tiktok.tsx +16 -0
- package/registry/examples/embed-facade/youtube.d.ts +4 -0
- package/registry/examples/embed-facade/youtube.js +22 -0
- package/registry/examples/embed-facade/youtube.tsx +20 -0
- package/registry/examples/margin-layout/findings.d.ts +4 -0
- package/registry/examples/margin-layout/findings.js +15 -0
- package/registry/examples/margin-layout/findings.tsx +18 -0
- package/registry/examples/margin-layout/steps.d.ts +4 -0
- package/registry/examples/margin-layout/steps.js +15 -0
- package/registry/examples/margin-layout/steps.tsx +16 -0
- package/registry/examples/page/kraft.d.ts +4 -0
- package/registry/examples/page/kraft.js +14 -0
- package/registry/examples/page/kraft.tsx +12 -0
- package/registry/examples/page/papers.d.ts +4 -0
- package/registry/examples/page/papers.js +14 -0
- package/registry/examples/page/papers.tsx +13 -0
- package/registry/examples/retro-tv/facade.d.ts +4 -0
- package/registry/examples/retro-tv/facade.js +12 -0
- package/registry/examples/retro-tv/facade.tsx +13 -0
- package/registry/examples/reviews/card.d.ts +4 -0
- package/registry/examples/reviews/card.js +23 -0
- package/registry/examples/reviews/card.tsx +19 -0
- package/registry/examples/reviews/summary.d.ts +4 -0
- package/registry/examples/reviews/summary.js +23 -0
- package/registry/examples/reviews/summary.tsx +17 -0
- package/registry/examples/separator/hand.d.ts +4 -0
- package/registry/examples/separator/hand.js +19 -0
- package/registry/examples/separator/hand.tsx +16 -0
- package/registry/examples/service-card/index-card.d.ts +4 -0
- package/registry/examples/service-card/index-card.js +15 -0
- package/registry/examples/service-card/index-card.tsx +12 -0
- package/registry/examples/service-card/index-list.d.ts +4 -0
- package/registry/examples/service-card/index-list.js +14 -0
- package/registry/examples/service-card/index-list.tsx +11 -0
- package/registry/examples/specimen-tag/facts.d.ts +4 -0
- package/registry/examples/specimen-tag/facts.js +23 -0
- package/registry/examples/specimen-tag/facts.tsx +18 -0
- package/registry/examples/stat/strip.d.ts +4 -0
- package/registry/examples/stat/strip.js +25 -0
- package/registry/examples/stat/strip.tsx +25 -0
- package/registry/examples/sticky-action/hide-while-visible.d.ts +4 -0
- package/registry/examples/sticky-action/hide-while-visible.js +16 -0
- package/registry/examples/sticky-action/hide-while-visible.tsx +17 -0
- package/registry/examples/usage/credits-page.d.ts +4 -0
- package/registry/examples/usage/credits-page.js +45 -0
- package/registry/examples/usage/credits-page.tsx +40 -0
- package/registry/examples/usage/empty.d.ts +4 -0
- package/registry/examples/usage/empty.js +15 -0
- package/registry/examples/usage/empty.tsx +12 -0
- package/registry/examples/wall/brick.js +1 -1
- package/registry/examples/wall/brick.tsx +1 -1
- package/registry/examples/wall/composition-fr.js +1 -1
- package/registry/examples/wall/composition-fr.tsx +1 -1
- package/registry/examples/wall/composition.js +1 -1
- package/registry/examples/wall/composition.tsx +1 -1
- package/registry/examples/wall/pinned-note.js +2 -2
- package/registry/examples/wall/pinned-note.tsx +3 -2
- package/registry/examples/wall/plaster.js +1 -1
- package/registry/examples/wall/plaster.tsx +1 -1
- package/registry/examples/wall/ridge.js +1 -1
- package/registry/examples/wall/ridge.tsx +1 -1
- package/registry/examples/wall/shop-sign.js +5 -4
- package/registry/examples/wall/shop-sign.tsx +7 -4
- package/registry/examples/wall/zellige.js +1 -1
- package/registry/examples/wall/zellige.tsx +1 -1
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +186 -18
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/margin-layout.json +200 -0
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +1 -1
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +2 -2
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +53 -11
- package/registry/pagination.json +1 -1
- package/registry/photo-grid.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +2 -2
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +45 -29
- package/registry/reviews.json +361 -0
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +71 -6
- package/registry/service-card.json +55 -6
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +2 -2
- package/registry/sites.json +1 -1
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +57 -5
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +61 -9
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +27 -4
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/usage.json +542 -0
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +3 -3
- package/registry/virtual.json +1 -1
- package/registry/wall.json +128 -40
- package/registry/waveform.json +1 -1
- package/dist/chunk-7AZ23BUX.js +0 -88
- package/dist/chunk-7AZ23BUX.js.map +0 -1
- package/dist/chunk-PW2FVPTV.js +0 -85
- package/dist/chunk-PW2FVPTV.js.map +0 -1
- package/dist/chunk-WOZP3JLW.js.map +0 -1
- package/dist/chunk-YKEIOYJ5.js.map +0 -1
- /package/dist/{chunk-5LANVCK7.js.map → chunk-BG5APGX6.js.map} +0 -0
- /package/dist/{chunk-6EAHUURY.js.map → chunk-GHAN7OOE.js.map} +0 -0
- /package/dist/{chunk-HEKDKM5Y.js.map → chunk-QVHSV6RA.js.map} +0 -0
- /package/dist/{chunk-7JG3VR4C.js.map → chunk-RCKXJEDQ.js.map} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/embed-facade/youtube.tsx
|
|
4
|
+
import { EmbedFacade } from "@krizaka/ui/embed-facade";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var POSTER = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 16"><rect width="9" height="16" fill="#9fb8cc"/><path d="m0 16 4-8 2 4 1.5-2L9 16Z" fill="#2c5f8a"/></svg>')}`;
|
|
7
|
+
function EmbedFacadeYoutube() {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { className: "w-64 max-w-full", children: /* @__PURE__ */ jsx(
|
|
9
|
+
EmbedFacade,
|
|
10
|
+
{
|
|
11
|
+
platform: "youtube-shorts",
|
|
12
|
+
url: "https://www.youtube.com/shorts/abcDEF_-123",
|
|
13
|
+
title: "Latest reel",
|
|
14
|
+
playLabel: "Load YouTube and play",
|
|
15
|
+
poster: POSTER,
|
|
16
|
+
notice: "YouTube will receive your visit when you press play."
|
|
17
|
+
}
|
|
18
|
+
) });
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
EmbedFacadeYoutube as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EmbedFacade } from "@krizaka/ui/embed-facade";
|
|
2
|
+
|
|
3
|
+
// Nothing is requested from YouTube until the visitor presses the button. The poster is the host's own copy (here inline;
|
|
4
|
+
// in an app, a picture of your own storage or CDN).
|
|
5
|
+
const POSTER = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 16"><rect width="9" height="16" fill="#9fb8cc"/><path d="m0 16 4-8 2 4 1.5-2L9 16Z" fill="#2c5f8a"/></svg>')}`;
|
|
6
|
+
|
|
7
|
+
export default function EmbedFacadeYoutube() {
|
|
8
|
+
return (
|
|
9
|
+
<div className="w-64 max-w-full">
|
|
10
|
+
<EmbedFacade
|
|
11
|
+
platform="youtube-shorts"
|
|
12
|
+
url="https://www.youtube.com/shorts/abcDEF_-123"
|
|
13
|
+
title="Latest reel"
|
|
14
|
+
playLabel="Load YouTube and play"
|
|
15
|
+
poster={POSTER}
|
|
16
|
+
notice="YouTube will receive your visit when you press play."
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/margin-layout/findings.tsx
|
|
4
|
+
import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function MarginLayoutFindings() {
|
|
7
|
+
return /* @__PURE__ */ jsxs(MarginLayout, { "aria-label": "Findings", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(MarginItem, { number: "1", note: "Clause 4.2, page 3", children: "The deposit is two months of rent, which is above the legal limit." }),
|
|
9
|
+
/* @__PURE__ */ jsx(MarginItem, { number: "2", note: "Clause 9, page 6", children: "The notice period for ending the lease is not stated." }),
|
|
10
|
+
/* @__PURE__ */ jsx(MarginItem, { number: "3", note: "Signature page", children: "The tenant's signature is missing on the last page." })
|
|
11
|
+
] });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
MarginLayoutFindings as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
|
|
2
|
+
|
|
3
|
+
// Demo data: a fictitious lease check. The note sits in the right margin from 64 rem, under the text below.
|
|
4
|
+
export default function MarginLayoutFindings() {
|
|
5
|
+
return (
|
|
6
|
+
<MarginLayout aria-label="Findings">
|
|
7
|
+
<MarginItem number="1" note="Clause 4.2, page 3">
|
|
8
|
+
The deposit is two months of rent, which is above the legal limit.
|
|
9
|
+
</MarginItem>
|
|
10
|
+
<MarginItem number="2" note="Clause 9, page 6">
|
|
11
|
+
The notice period for ending the lease is not stated.
|
|
12
|
+
</MarginItem>
|
|
13
|
+
<MarginItem number="3" note="Signature page">
|
|
14
|
+
The tenant's signature is missing on the last page.
|
|
15
|
+
</MarginItem>
|
|
16
|
+
</MarginLayout>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/margin-layout/steps.tsx
|
|
4
|
+
import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function MarginLayoutSteps() {
|
|
7
|
+
return /* @__PURE__ */ jsxs(MarginLayout, { "aria-label": "Steps", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(MarginItem, { number: "01", note: "Takes about two minutes.", children: "Add the documents to check." }),
|
|
9
|
+
/* @__PURE__ */ jsx(MarginItem, { number: "02", children: "Choose what to compare them with." }),
|
|
10
|
+
/* @__PURE__ */ jsx(MarginItem, { number: "03", note: "You can change the result before you sign.", children: "Read the report and decide." })
|
|
11
|
+
] });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
MarginLayoutSteps as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
|
|
2
|
+
|
|
3
|
+
// Demo data: a step flow. A note is optional per item.
|
|
4
|
+
export default function MarginLayoutSteps() {
|
|
5
|
+
return (
|
|
6
|
+
<MarginLayout aria-label="Steps">
|
|
7
|
+
<MarginItem number="01" note="Takes about two minutes.">
|
|
8
|
+
Add the documents to check.
|
|
9
|
+
</MarginItem>
|
|
10
|
+
<MarginItem number="02">Choose what to compare them with.</MarginItem>
|
|
11
|
+
<MarginItem number="03" note="You can change the result before you sign.">
|
|
12
|
+
Read the report and decide.
|
|
13
|
+
</MarginItem>
|
|
14
|
+
</MarginLayout>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/page/kraft.tsx
|
|
4
|
+
import { PaperGrain, Section } from "@krizaka/ui/page";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function PageKraft() {
|
|
7
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
+
/* @__PURE__ */ jsx(PaperGrain, {}),
|
|
9
|
+
/* @__PURE__ */ jsx(Section, { id: "story", paper: "kraft", spacing: "sm", title: "Our story", lead: "Two walkers, one canal, and a notebook of the dogs we know by name." })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
PageKraft as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PaperGrain, Section } from "@krizaka/ui/page";
|
|
2
|
+
|
|
3
|
+
// `kraft`: brown paper, its ink read at 7:1 on the darkest grain point in both themes. Mount `PaperGrain` once in the
|
|
4
|
+
// root layout (one inline SVG filter, a fixed seed, no image); without it the paper is flat, never broken.
|
|
5
|
+
export default function PageKraft() {
|
|
6
|
+
return (
|
|
7
|
+
<>
|
|
8
|
+
<PaperGrain />
|
|
9
|
+
<Section id="story" paper="kraft" spacing="sm" title="Our story" lead="Two walkers, one canal, and a notebook of the dogs we know by name." />
|
|
10
|
+
</>
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/page/papers.tsx
|
|
4
|
+
import { Page, Section } from "@krizaka/ui/page";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function PagePapers() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid w-full gap-4", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Section, { id: "dot-grid", paper: "dot-grid", spacing: "sm", title: "Dot-grid", lead: "A dot every 24 px: a page to plan on." }),
|
|
9
|
+
/* @__PURE__ */ jsx(Page, { paper: "lines", className: "py-6", children: /* @__PURE__ */ jsx("p", { className: "m-0 text-fg", children: "Lines only: a page to read." }) })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
PagePapers as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Page, Section } from "@krizaka/ui/page";
|
|
2
|
+
|
|
3
|
+
// `paper`: ruled (Seyès) · lines · dot-grid · kraft. Absent = plain. Text stays on the page's paper, never on a texture.
|
|
4
|
+
export default function PagePapers() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="grid w-full gap-4">
|
|
7
|
+
<Section id="dot-grid" paper="dot-grid" spacing="sm" title="Dot-grid" lead="A dot every 24 px: a page to plan on." />
|
|
8
|
+
<Page paper="lines" className="py-6">
|
|
9
|
+
<p className="m-0 text-fg">Lines only: a page to read.</p>
|
|
10
|
+
</Page>
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/retro-tv/facade.tsx
|
|
4
|
+
import { EmbedFacade } from "@krizaka/ui/embed-facade";
|
|
5
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
function RetroTvFacade() {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { className: "w-72 max-w-full", children: /* @__PURE__ */ jsx(RetroTv, { title: "Latest reel", channel: "CH 3 \xB7 Plateau", children: /* @__PURE__ */ jsx(EmbedFacade, { platform: "instagram", url: "https://www.instagram.com/reel/C1abcDEF123/", title: "Latest reel", playLabel: "Load Instagram and play" }) }) });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
RetroTvFacade as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EmbedFacade } from "@krizaka/ui/embed-facade";
|
|
2
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
3
|
+
|
|
4
|
+
// The latest reel of a platform on the shop's television: the screen shows the facade, nothing loads before the click.
|
|
5
|
+
export default function RetroTvFacade() {
|
|
6
|
+
return (
|
|
7
|
+
<div className="w-72 max-w-full">
|
|
8
|
+
<RetroTv title="Latest reel" channel="CH 3 · Plateau">
|
|
9
|
+
<EmbedFacade platform="instagram" url="https://www.instagram.com/reel/C1abcDEF123/" title="Latest reel" playLabel="Load Instagram and play" />
|
|
10
|
+
</RetroTv>
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/reviews/card.tsx
|
|
4
|
+
import { ReviewCard } from "@krizaka/ui/reviews";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function ReviewsCard() {
|
|
7
|
+
return /* @__PURE__ */ jsx("div", { className: "max-w-md", children: /* @__PURE__ */ jsx(
|
|
8
|
+
ReviewCard,
|
|
9
|
+
{
|
|
10
|
+
author: "Camille L.",
|
|
11
|
+
date: "octobre 2026",
|
|
12
|
+
dateTime: "2026-10",
|
|
13
|
+
service: "Coupe femme",
|
|
14
|
+
rating: 5,
|
|
15
|
+
ratingText: "5 sur 5",
|
|
16
|
+
text: "Une coupe exactement comme je l'imaginais, et un salon o\xF9 l'on se sent chez soi.",
|
|
17
|
+
reply: { label: "R\xE9ponse du salon", author: "Ma\xEBlle", text: "Merci Camille, \xE0 tr\xE8s bient\xF4t !" }
|
|
18
|
+
}
|
|
19
|
+
) });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
ReviewsCard as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReviewCard } from "@krizaka/ui/reviews";
|
|
2
|
+
|
|
3
|
+
// One review: first name and initial, the month, the service, the rating, the words — and the owner's reply, indented.
|
|
4
|
+
export default function ReviewsCard() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="max-w-md">
|
|
7
|
+
<ReviewCard
|
|
8
|
+
author="Camille L."
|
|
9
|
+
date="octobre 2026"
|
|
10
|
+
dateTime="2026-10"
|
|
11
|
+
service="Coupe femme"
|
|
12
|
+
rating={5}
|
|
13
|
+
ratingText="5 sur 5"
|
|
14
|
+
text="Une coupe exactement comme je l'imaginais, et un salon où l'on se sent chez soi."
|
|
15
|
+
reply={{ label: "Réponse du salon", author: "Maëlle", text: "Merci Camille, à très bientôt !" }}
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/reviews/summary.tsx
|
|
4
|
+
import { ReviewSummary } from "@krizaka/ui/reviews";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function ReviewsSummary() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
ReviewSummary,
|
|
9
|
+
{
|
|
10
|
+
score: 4.8,
|
|
11
|
+
count: 27,
|
|
12
|
+
distribution: [0, 1, 2, 4, 20],
|
|
13
|
+
minCount: 5,
|
|
14
|
+
scoreText: "4,8 / 5",
|
|
15
|
+
countText: "27 avis v\xE9rifi\xE9s",
|
|
16
|
+
summaryText: "4,8 sur 5, 27 avis v\xE9rifi\xE9s",
|
|
17
|
+
starText: (stars, n) => `${stars} \xE9toiles : ${n} avis`
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
ReviewsSummary as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReviewSummary } from "@krizaka/ui/reviews";
|
|
2
|
+
|
|
3
|
+
// The shop's score as a stamp, the verified count and five meters. Nothing is drawn under the host's `minCount`.
|
|
4
|
+
export default function ReviewsSummary() {
|
|
5
|
+
return (
|
|
6
|
+
<ReviewSummary
|
|
7
|
+
score={4.8}
|
|
8
|
+
count={27}
|
|
9
|
+
distribution={[0, 1, 2, 4, 20]}
|
|
10
|
+
minCount={5}
|
|
11
|
+
scoreText="4,8 / 5"
|
|
12
|
+
countText="27 avis vérifiés"
|
|
13
|
+
summaryText="4,8 sur 5, 27 avis vérifiés"
|
|
14
|
+
starText={(stars, n) => `${stars} étoiles : ${n} avis`}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/separator/hand.tsx
|
|
4
|
+
import { Separator } from "@krizaka/ui/separator";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function SeparatorHand() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex w-80 flex-col gap-5 text-sm text-fg", children: [
|
|
8
|
+
/* @__PURE__ */ jsx("p", { children: "Services" }),
|
|
9
|
+
/* @__PURE__ */ jsx(Separator, { variant: "hand", shape: "stroke" }),
|
|
10
|
+
/* @__PURE__ */ jsx("p", { children: "The wall" }),
|
|
11
|
+
/* @__PURE__ */ jsx(Separator, { variant: "hand", shape: "wave" }),
|
|
12
|
+
/* @__PURE__ */ jsx("p", { children: "Hours" }),
|
|
13
|
+
/* @__PURE__ */ jsx(Separator, { variant: "hand", shape: "dash", tone: "ink" }),
|
|
14
|
+
/* @__PURE__ */ jsx("p", { children: "Reviews" })
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
SeparatorHand as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Separator } from "@krizaka/ui/separator";
|
|
2
|
+
|
|
3
|
+
// `variant="hand"`: drawn by hand, three shapes, 6 px tall, the page's hue at 60 % (or the ink). Decorative.
|
|
4
|
+
export default function SeparatorHand() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="flex w-80 flex-col gap-5 text-sm text-fg">
|
|
7
|
+
<p>Services</p>
|
|
8
|
+
<Separator variant="hand" shape="stroke" />
|
|
9
|
+
<p>The wall</p>
|
|
10
|
+
<Separator variant="hand" shape="wave" />
|
|
11
|
+
<p>Hours</p>
|
|
12
|
+
<Separator variant="hand" shape="dash" tone="ink" />
|
|
13
|
+
<p>Reviews</p>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/service-card/index-card.tsx
|
|
4
|
+
import { CardGrid } from "@krizaka/ui/card-grid";
|
|
5
|
+
import { ServiceCard } from "@krizaka/ui/service-card";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function ServiceCardIndex() {
|
|
8
|
+
return /* @__PURE__ */ jsxs(CardGrid, { children: [
|
|
9
|
+
/* @__PURE__ */ jsx(ServiceCard, { variant: "index", name: "Coupe femme", duration: "45 min", price: "55,00 $", description: "Shampoing, coupe, s\xE9chage.", included: ["Consultation", "Coiffage"], actionLabel: "Choisir", href: "#book" }),
|
|
10
|
+
/* @__PURE__ */ jsx(ServiceCard, { variant: "index", name: "Couleur", duration: "90 min", priceFrom: "D\xE8s", price: "95,00 $", description: "Racines ou couleur compl\xE8te.", actionLabel: "Choisir", href: "#book" })
|
|
11
|
+
] });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
ServiceCardIndex as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CardGrid } from "@krizaka/ui/card-grid";
|
|
2
|
+
import { ServiceCard } from "@krizaka/ui/service-card";
|
|
3
|
+
|
|
4
|
+
// `variant="index"`: a stamped index card — ruled, straight, a punched hole, the duration and the price as stamps.
|
|
5
|
+
export default function ServiceCardIndex() {
|
|
6
|
+
return (
|
|
7
|
+
<CardGrid>
|
|
8
|
+
<ServiceCard variant="index" name="Coupe femme" duration="45 min" price="55,00 $" description="Shampoing, coupe, séchage." included={["Consultation", "Coiffage"]} actionLabel="Choisir" href="#book" />
|
|
9
|
+
<ServiceCard variant="index" name="Couleur" duration="90 min" priceFrom="Dès" price="95,00 $" description="Racines ou couleur complète." actionLabel="Choisir" href="#book" />
|
|
10
|
+
</CardGrid>
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/service-card/index-list.tsx
|
|
4
|
+
import { ServiceCard } from "@krizaka/ui/service-card";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function ServiceCardIndexList() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid max-w-2xl gap-4", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(ServiceCard, { variant: "index", density: "list", name: "Solo walk", duration: "30 min", capacity: "1 dog", price: "$22.00", description: "One dog, one walker.", actionLabel: "Book", href: "#book" }),
|
|
9
|
+
/* @__PURE__ */ jsx(ServiceCard, { variant: "index", density: "list", name: "Group walk", duration: "60 min", capacity: "Up to 5 dogs", price: "$22.00", actionLabel: "Book", href: "#book" })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
ServiceCardIndexList as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ServiceCard } from "@krizaka/ui/service-card";
|
|
2
|
+
|
|
3
|
+
// `density="list"`: the same card in one column, for a menu of services.
|
|
4
|
+
export default function ServiceCardIndexList() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="grid max-w-2xl gap-4">
|
|
7
|
+
<ServiceCard variant="index" density="list" name="Solo walk" duration="30 min" capacity="1 dog" price="$22.00" description="One dog, one walker." actionLabel="Book" href="#book" />
|
|
8
|
+
<ServiceCard variant="index" density="list" name="Group walk" duration="60 min" capacity="Up to 5 dogs" price="$22.00" actionLabel="Book" href="#book" />
|
|
9
|
+
</div>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/specimen-tag/facts.tsx
|
|
4
|
+
import { Stamp } from "@krizaka/ui/specimen-tag";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function SpecimenTagFacts() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-6", "data-hue": "cobalt", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Stamp, { tone: "ink", size: "sm", children: "45 min" }),
|
|
9
|
+
/* @__PURE__ */ jsx(Stamp, { tone: "ink", size: "sm", children: "55 $" }),
|
|
10
|
+
/* @__PURE__ */ jsx(Stamp, { tone: "hue", size: "sm", children: "Plateau" }),
|
|
11
|
+
/* @__PURE__ */ jsx(
|
|
12
|
+
Stamp,
|
|
13
|
+
{
|
|
14
|
+
tone: "hue",
|
|
15
|
+
icon: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx("path", { d: "M2 12c4-1 6-5 6-9 3 3 5 5 5 8s-3 3-5 3-4-1-6-2Z" }) }),
|
|
16
|
+
children: "en ce moment : th\xE9 \xE0 la menthe"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
SpecimenTagFacts as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Stamp } from "@krizaka/ui/specimen-tag";
|
|
2
|
+
|
|
3
|
+
// `ink` and `hue` tones, `size="sm"` (the frame stays askew, the text is straight) and a decorative glyph.
|
|
4
|
+
export default function SpecimenTagFacts() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="flex flex-wrap items-center gap-6" data-hue="cobalt">
|
|
7
|
+
<Stamp tone="ink" size="sm">45 min</Stamp>
|
|
8
|
+
<Stamp tone="ink" size="sm">55 $</Stamp>
|
|
9
|
+
<Stamp tone="hue" size="sm">Plateau</Stamp>
|
|
10
|
+
<Stamp
|
|
11
|
+
tone="hue"
|
|
12
|
+
icon={<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5"><path d="M2 12c4-1 6-5 6-9 3 3 5 5 5 8s-3 3-5 3-4-1-6-2Z" /></svg>}
|
|
13
|
+
>
|
|
14
|
+
en ce moment : thé à la menthe
|
|
15
|
+
</Stamp>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/stat/strip.tsx
|
|
4
|
+
import { StatGrid } from "@krizaka/ui/stat";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var line = (points) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 64 18", width: 64, height: 18, fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": true, children: /* @__PURE__ */ jsx("polyline", { points }) });
|
|
7
|
+
function StatStrip() {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
StatGrid,
|
|
10
|
+
{
|
|
11
|
+
variant: "strip",
|
|
12
|
+
className: "max-w-[26rem]",
|
|
13
|
+
"aria-label": "Activity, last 30 days",
|
|
14
|
+
items: [
|
|
15
|
+
{ id: "runs", label: "Checks run", value: "128", trend: "up", trendLabel: "+12 %", chart: line("0,15 13,11 26,13 39,7 52,5 64,2") },
|
|
16
|
+
{ id: "flagged", label: "Flagged", value: "9", trend: "down", trendLabel: "\u22122", chart: line("0,4 13,8 26,5 39,11 52,12 64,14") },
|
|
17
|
+
{ id: "time", label: "Average time", value: "42 s", trend: "flat", trendLabel: "same", chart: line("0,9 13,9 26,8 39,9 52,9 64,9") },
|
|
18
|
+
{ id: "credits", label: "Credits used", value: "310", trend: "up", trendLabel: "+4 %", chart: line("0,14 13,12 26,12 39,9 52,9 64,6") }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
StatStrip as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StatGrid } from "@krizaka/ui/stat";
|
|
2
|
+
|
|
3
|
+
// A sparkline of @krizaka/charts goes in `chart` (64 × 18); here a plain line stands in for it.
|
|
4
|
+
const line = (points: string) => (
|
|
5
|
+
<svg viewBox="0 0 64 18" width={64} height={18} fill="none" stroke="currentColor" strokeWidth="1.5" aria-hidden>
|
|
6
|
+
<polyline points={points} />
|
|
7
|
+
</svg>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
// The discreet activity of a side column: four figures in one row, each with its shape and its trend in words (demo data).
|
|
11
|
+
export default function StatStrip() {
|
|
12
|
+
return (
|
|
13
|
+
<StatGrid
|
|
14
|
+
variant="strip"
|
|
15
|
+
className="max-w-[26rem]"
|
|
16
|
+
aria-label="Activity, last 30 days"
|
|
17
|
+
items={[
|
|
18
|
+
{ id: "runs", label: "Checks run", value: "128", trend: "up", trendLabel: "+12 %", chart: line("0,15 13,11 26,13 39,7 52,5 64,2") },
|
|
19
|
+
{ id: "flagged", label: "Flagged", value: "9", trend: "down", trendLabel: "−2", chart: line("0,4 13,8 26,5 39,11 52,12 64,14") },
|
|
20
|
+
{ id: "time", label: "Average time", value: "42 s", trend: "flat", trendLabel: "same", chart: line("0,9 13,9 26,8 39,9 52,9 64,9") },
|
|
21
|
+
{ id: "credits", label: "Credits used", value: "310", trend: "up", trendLabel: "+4 %", chart: line("0,14 13,12 26,12 39,9 52,9 64,6") },
|
|
22
|
+
]}
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/sticky-action/hide-while-visible.tsx
|
|
4
|
+
import { Button } from "@krizaka/ui/button";
|
|
5
|
+
import { StickyAction } from "@krizaka/ui/sticky-action";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function StickyActionHideWhileVisible() {
|
|
8
|
+
return /* @__PURE__ */ jsxs("main", { className: "flex h-[28rem] flex-col overflow-auto", children: [
|
|
9
|
+
/* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(Button, { id: "hero-book", size: "lg", variant: "primary", children: "Book" }) }),
|
|
10
|
+
/* @__PURE__ */ jsx("p", { className: "m-0 h-[40rem] p-4 text-fg-secondary", children: "The page scrolls here\u2026" }),
|
|
11
|
+
/* @__PURE__ */ jsx(StickyAction, { hideWhileVisible: "#hero-book", children: /* @__PURE__ */ jsx(Button, { size: "lg", variant: "primary", children: "Book" }) })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
StickyActionHideWhileVisible as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Button } from "@krizaka/ui/button";
|
|
2
|
+
import { StickyAction } from "@krizaka/ui/sticky-action";
|
|
3
|
+
|
|
4
|
+
// `hideWhileVisible`: while the page's own « Book » is on screen the bar is hidden, so a phone never shows two at once.
|
|
5
|
+
export default function StickyActionHideWhileVisible() {
|
|
6
|
+
return (
|
|
7
|
+
<main className="flex h-[28rem] flex-col overflow-auto">
|
|
8
|
+
<div className="p-4">
|
|
9
|
+
<Button id="hero-book" size="lg" variant="primary">Book</Button>
|
|
10
|
+
</div>
|
|
11
|
+
<p className="m-0 h-[40rem] p-4 text-fg-secondary">The page scrolls here…</p>
|
|
12
|
+
<StickyAction hideWhileVisible="#hero-book">
|
|
13
|
+
<Button size="lg" variant="primary">Book</Button>
|
|
14
|
+
</StickyAction>
|
|
15
|
+
</main>
|
|
16
|
+
);
|
|
17
|
+
}
|