@krizaka/ui 3.63.0 → 3.63.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/account-settings.js +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/argument-card.d.ts +1 -1
- package/dist/argument-card.js +5 -5
- 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/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-6EAHUURY.js → chunk-GHAN7OOE.js} +2 -2
- 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-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/data-table.js +2 -2
- package/dist/date-picker.d.ts +15 -15
- package/dist/dialog.js +2 -2
- 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/filter-bar.d.ts +3 -3
- package/dist/force-update-screen.js +1 -1
- package/dist/genui.js +2 -2
- package/dist/kind-config-editor.js +1 -1
- package/dist/language-switch.d.ts +9 -9
- 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 +1 -1
- package/dist/media-grid.js +1 -1
- 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 +88 -2
- package/dist/native.js +1667 -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 +1 -1
- package/dist/wall.d.ts +24 -12
- package/dist/wall.js +106 -43
- package/dist/wall.js.map +1 -1
- package/package.json +87 -8
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/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 +184 -17
- 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-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,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
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/usage/credits-page.tsx
|
|
4
|
+
import { CreditsMeter, PeriodSwitch, UsageChart, UsageTiles } from "@krizaka/ui/usage";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var spark = (data) => /* @__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: data.map((v, i) => `${i * 64 / (data.length - 1)},${17 - v}`).join(" ") }) });
|
|
7
|
+
var days = [
|
|
8
|
+
{ label: "1 nov.", values: { done: 8, flagged: 2, failed: 0 } },
|
|
9
|
+
{ label: "2 nov.", values: { done: 11, flagged: 1, failed: 1 } },
|
|
10
|
+
{ label: "3 nov.", values: { done: 6, flagged: 3, failed: 0 } }
|
|
11
|
+
];
|
|
12
|
+
function CreditsPage() {
|
|
13
|
+
const period = /* @__PURE__ */ jsx(PeriodSwitch, { label: "P\xE9riode", value: 30, href: "/credits" });
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-2xl flex-col gap-4", children: [
|
|
15
|
+
/* @__PURE__ */ jsx(CreditsMeter, { label: "Cr\xE9dits", balance: 820, total: 1e3, renewal: "Renouvel\xE9s le 1er d\xE9cembre", action: /* @__PURE__ */ jsx("a", { href: "/credits/acheter", children: "Acheter des cr\xE9dits" }) }),
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
17
|
+
UsageTiles,
|
|
18
|
+
{
|
|
19
|
+
period,
|
|
20
|
+
tiles: [
|
|
21
|
+
{ id: "runs", label: "V\xE9rifications", value: 128, previous: 114, chart: spark([4, 6, 5, 8, 9, 12]) },
|
|
22
|
+
{ id: "flagged", label: "Signal\xE9es", value: 8, previous: 10, good: "down", chart: spark([3, 2, 2, 1, 1, 1]) },
|
|
23
|
+
{ id: "credits", label: "Cr\xE9dits utilis\xE9s", value: 180, previous: 180, chart: spark([3, 3, 3, 3, 3, 3]) }
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ jsx(
|
|
28
|
+
UsageChart,
|
|
29
|
+
{
|
|
30
|
+
title: "Activit\xE9 par r\xE9sultat",
|
|
31
|
+
days,
|
|
32
|
+
columns: { day: "Jour", total: "Total" },
|
|
33
|
+
emptyLabel: "Aucune activit\xE9 sur cette p\xE9riode.",
|
|
34
|
+
outcomes: [
|
|
35
|
+
{ id: "done", label: "Termin\xE9es", tone: "success" },
|
|
36
|
+
{ id: "flagged", label: "Signal\xE9es", tone: "warning" },
|
|
37
|
+
{ id: "failed", label: "\xC9chou\xE9es", tone: "danger" }
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
CreditsPage as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CreditsMeter, PeriodSwitch, UsageChart, UsageTiles } from "@krizaka/ui/usage";
|
|
2
|
+
|
|
3
|
+
const spark = (data: number[]) => (
|
|
4
|
+
<svg viewBox="0 0 64 18" width={64} height={18} fill="none" stroke="currentColor" strokeWidth="1.5" aria-hidden>
|
|
5
|
+
<polyline points={data.map((v, i) => `${(i * 64) / (data.length - 1)},${17 - v}`).join(" ")} />
|
|
6
|
+
</svg>
|
|
7
|
+
);
|
|
8
|
+
const days = [
|
|
9
|
+
{ label: "1 nov.", values: { done: 8, flagged: 2, failed: 0 } },
|
|
10
|
+
{ label: "2 nov.", values: { done: 11, flagged: 1, failed: 1 } },
|
|
11
|
+
{ label: "3 nov.", values: { done: 6, flagged: 3, failed: 0 } },
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
// A « Credits & usage » page in French (the default), demo data. A `Sparkline` of @krizaka/charts goes in `chart`; a line stands in.
|
|
15
|
+
export default function CreditsPage() {
|
|
16
|
+
const period = <PeriodSwitch label="Période" value={30} href="/credits" />;
|
|
17
|
+
return (
|
|
18
|
+
<div className="flex w-full max-w-2xl flex-col gap-4">
|
|
19
|
+
<CreditsMeter label="Crédits" balance={820} total={1000} renewal="Renouvelés le 1er décembre" action={<a href="/credits/acheter">Acheter des crédits</a>} />
|
|
20
|
+
<UsageTiles
|
|
21
|
+
period={period}
|
|
22
|
+
tiles={[
|
|
23
|
+
{ id: "runs", label: "Vérifications", value: 128, previous: 114, chart: spark([4, 6, 5, 8, 9, 12]) },
|
|
24
|
+
{ id: "flagged", label: "Signalées", value: 8, previous: 10, good: "down", chart: spark([3, 2, 2, 1, 1, 1]) },
|
|
25
|
+
{ id: "credits", label: "Crédits utilisés", value: 180, previous: 180, chart: spark([3, 3, 3, 3, 3, 3]) },
|
|
26
|
+
]}
|
|
27
|
+
/>
|
|
28
|
+
<UsageChart
|
|
29
|
+
title="Activité par résultat"
|
|
30
|
+
days={days}
|
|
31
|
+
columns={{ day: "Jour", total: "Total" }} emptyLabel="Aucune activité sur cette période."
|
|
32
|
+
outcomes={[
|
|
33
|
+
{ id: "done", label: "Terminées", tone: "success" },
|
|
34
|
+
{ id: "flagged", label: "Signalées", tone: "warning" },
|
|
35
|
+
{ id: "failed", label: "Échouées", tone: "danger" },
|
|
36
|
+
]}
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/usage/empty.tsx
|
|
4
|
+
import { UsageChart, UsageTiles } from "@krizaka/ui/usage";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function UsageEmpty() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-2xl flex-col gap-4", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(UsageTiles, { loading: true, tiles: [] }),
|
|
9
|
+
/* @__PURE__ */ jsx(UsageChart, { loading: true, title: "Activit\xE9 par r\xE9sultat", days: [], outcomes: [], columns: { day: "Jour", total: "Total" }, emptyLabel: "" }),
|
|
10
|
+
/* @__PURE__ */ jsx(UsageChart, { title: "Activit\xE9 par r\xE9sultat", days: [{ label: "1 nov.", values: {} }], outcomes: [{ id: "done", label: "Termin\xE9es", tone: "success" }], columns: { day: "Jour", total: "Total" }, emptyLabel: "Aucune activit\xE9 sur cette p\xE9riode." })
|
|
11
|
+
] });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
UsageEmpty as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UsageChart, UsageTiles } from "@krizaka/ui/usage";
|
|
2
|
+
|
|
3
|
+
// While the data is on its way (`loading`), then when the period has nothing in it.
|
|
4
|
+
export default function UsageEmpty() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="flex w-full max-w-2xl flex-col gap-4">
|
|
7
|
+
<UsageTiles loading tiles={[]} />
|
|
8
|
+
<UsageChart loading title="Activité par résultat" days={[]} outcomes={[]} columns={{ day: "Jour", total: "Total" }} emptyLabel="" />
|
|
9
|
+
<UsageChart title="Activité par résultat" days={[{ label: "1 nov.", values: {} }]} outcomes={[{ id: "done", label: "Terminées", tone: "success" }]} columns={{ day: "Jour", total: "Total" }} emptyLabel="Aucune activité sur cette période." />
|
|
10
|
+
</div>
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -7,7 +7,7 @@ function BrickExample() {
|
|
|
7
7
|
const m = { brickLabel: "Brick wall", paintedSign: "The neighbourhood" };
|
|
8
8
|
return /* @__PURE__ */ jsx(Wall, { "aria-label": m.brickLabel, texture: "brick", items: [
|
|
9
9
|
{ id: "sign", kind: "sign", x: 50, y: 50, rotation: -2, z: 1, logo: m.paintedSign, variant: "painted" }
|
|
10
|
-
]
|
|
10
|
+
] });
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
13
|
BrickExample as default
|
|
@@ -4,5 +4,5 @@ export default function BrickExample() {
|
|
|
4
4
|
const m = { brickLabel: "Brick wall", paintedSign: "The neighbourhood" };
|
|
5
5
|
return <Wall aria-label={m.brickLabel} texture="brick" items={[
|
|
6
6
|
{ id: "sign", kind: "sign", x: 50, y: 50, rotation: -2, z: 1, logo: m.paintedSign, variant: "painted" },
|
|
7
|
-
]}
|
|
7
|
+
]} />;
|
|
8
8
|
}
|
|
@@ -12,7 +12,7 @@ function FrenchCompositionExample() {
|
|
|
12
12
|
signature: "Sam",
|
|
13
13
|
sign: "Atelier du coin"
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */ jsx("div", { lang: "fr", children: /* @__PURE__ */ jsx(Wall, { "aria-label": m.wallLabel, texture: "brick",
|
|
15
|
+
return /* @__PURE__ */ jsx("div", { lang: "fr", children: /* @__PURE__ */ jsx(Wall, { "aria-label": m.wallLabel, texture: "brick", itemWidth: 220, items: [
|
|
16
16
|
{
|
|
17
17
|
kind: "polaroid",
|
|
18
18
|
id: "photo",
|
|
@@ -6,7 +6,7 @@ export default function FrenchCompositionExample() {
|
|
|
6
6
|
caption: "La vue d’ici", note: "Fait avec patience. Partagé avec plaisir.",
|
|
7
7
|
signature: "Sam", sign: "Atelier du coin",
|
|
8
8
|
};
|
|
9
|
-
return <div lang="fr"><Wall aria-label={m.wallLabel} texture="brick"
|
|
9
|
+
return <div lang="fr"><Wall aria-label={m.wallLabel} texture="brick" itemWidth={220} items={[
|
|
10
10
|
{ kind: "polaroid", id: "photo", z: 1, x: 8, y: 18, rotation: -4, attachment: "tape", attachmentRotation: 6, caption: m.caption,
|
|
11
11
|
img: <svg viewBox="0 0 240 240" role="img" aria-label={m.photoAlt}>
|
|
12
12
|
<rect width="240" height="240" fill="var(--kz-accent-soft)" />
|
|
@@ -31,7 +31,7 @@ var items = [
|
|
|
31
31
|
{ id: "sign", kind: "sign", x: 94, y: 22, rotation: -2, z: 3, logo: m.sign, variant: "enamel" }
|
|
32
32
|
];
|
|
33
33
|
function CompositionExample() {
|
|
34
|
-
return /* @__PURE__ */ jsx(Wall, { "aria-label": m.wallLabel, texture: "brick", items,
|
|
34
|
+
return /* @__PURE__ */ jsx(Wall, { "aria-label": m.wallLabel, texture: "brick", items, itemWidth: 220 });
|
|
35
35
|
}
|
|
36
36
|
export {
|
|
37
37
|
CompositionExample as default
|
|
@@ -14,5 +14,5 @@ const items: WallItem[] = [
|
|
|
14
14
|
];
|
|
15
15
|
|
|
16
16
|
export default function CompositionExample() {
|
|
17
|
-
return <Wall aria-label={m.wallLabel} texture="brick" items={items}
|
|
17
|
+
return <Wall aria-label={m.wallLabel} texture="brick" items={items} itemWidth={220} />;
|
|
18
18
|
}
|
|
@@ -6,8 +6,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
function PinnedNoteExample() {
|
|
7
7
|
const m = { patientNote: "Good things take time.", signature: "Sam", thanksNote: "Thanks for stopping by. See you soon!", sunnySignature: "Nour" };
|
|
8
8
|
return /* @__PURE__ */ jsxs("div", { className: "grid gap-8 p-8 sm:grid-cols-2", children: [
|
|
9
|
-
/* @__PURE__ */ jsx(PinnedNote, { text: m.patientNote, signature: m.signature,
|
|
10
|
-
/* @__PURE__ */ jsx(PinnedNote, { text: m.thanksNote, signature: m.sunnySignature,
|
|
9
|
+
/* @__PURE__ */ jsx(PinnedNote, { text: m.patientNote, signature: m.signature, hold: "pin", ink: "margin", rotation: -2 }),
|
|
10
|
+
/* @__PURE__ */ jsx(PinnedNote, { text: m.thanksNote, signature: m.sunnySignature, hold: "tape", ink: "hue", rotation: 2, lines: 3 })
|
|
11
11
|
] });
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PinnedNote } from "@krizaka/ui/wall";
|
|
2
2
|
|
|
3
|
+
// `hold` (tape or pin, through Stuck), `ink` (blue, margin, hue) and `lines`: a fixed box, so a late font moves nothing.
|
|
3
4
|
export default function PinnedNoteExample() {
|
|
4
5
|
const m = { patientNote: "Good things take time.", signature: "Sam", thanksNote: "Thanks for stopping by. See you soon!", sunnySignature: "Nour" };
|
|
5
6
|
return <div className="grid gap-8 p-8 sm:grid-cols-2">
|
|
6
|
-
<PinnedNote text={m.patientNote} signature={m.signature}
|
|
7
|
-
<PinnedNote text={m.thanksNote} signature={m.sunnySignature}
|
|
7
|
+
<PinnedNote text={m.patientNote} signature={m.signature} hold="pin" ink="margin" rotation={-2} />
|
|
8
|
+
<PinnedNote text={m.thanksNote} signature={m.sunnySignature} hold="tape" ink="hue" rotation={2} lines={3} />
|
|
8
9
|
</div>;
|
|
9
10
|
}
|
|
@@ -7,7 +7,7 @@ function PlasterExample() {
|
|
|
7
7
|
const m = { plasterLabel: "Plaster wall", welcomeNote: "Come as you are. There is always room.", welcomeSignature: "Alex" };
|
|
8
8
|
return /* @__PURE__ */ jsx(Wall, { "aria-label": m.plasterLabel, texture: "plaster", items: [
|
|
9
9
|
{ id: "note", kind: "note", x: 50, y: 50, rotation: 2, z: 1, text: m.welcomeNote, signature: m.welcomeSignature }
|
|
10
|
-
]
|
|
10
|
+
] });
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
13
|
PlasterExample as default
|
|
@@ -4,5 +4,5 @@ export default function PlasterExample() {
|
|
|
4
4
|
const m = { plasterLabel: "Plaster wall", welcomeNote: "Come as you are. There is always room.", welcomeSignature: "Alex" };
|
|
5
5
|
return <Wall aria-label={m.plasterLabel} texture="plaster" items={[
|
|
6
6
|
{ id: "note", kind: "note", x: 50, y: 50, rotation: 2, z: 1, text: m.welcomeNote, signature: m.welcomeSignature },
|
|
7
|
-
]}
|
|
7
|
+
]} />;
|
|
8
8
|
}
|
|
@@ -7,7 +7,7 @@ function RidgeExample() {
|
|
|
7
7
|
const m = { ridgeLabel: "Mountain wall", mountainNote: "Back after a walk in the mountains.", mountainSignature: "Lou" };
|
|
8
8
|
return /* @__PURE__ */ jsx(Wall, { "aria-label": m.ridgeLabel, texture: "ridge", items: [
|
|
9
9
|
{ id: "note", kind: "note", x: 50, y: 50, rotation: -3, z: -2, text: m.mountainNote, signature: m.mountainSignature }
|
|
10
|
-
]
|
|
10
|
+
] });
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
13
|
RidgeExample as default
|
|
@@ -4,5 +4,5 @@ export default function RidgeExample() {
|
|
|
4
4
|
const m = { ridgeLabel: "Mountain wall", mountainNote: "Back after a walk in the mountains.", mountainSignature: "Lou" };
|
|
5
5
|
return <Wall aria-label={m.ridgeLabel} texture="ridge" items={[
|
|
6
6
|
{ id: "note", kind: "note", x: 50, y: 50, rotation: -3, z: -2, text: m.mountainNote, signature: m.mountainSignature },
|
|
7
|
-
]}
|
|
7
|
+
]} />;
|
|
8
8
|
}
|