@krizaka/ui 3.54.0 → 3.59.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 +1 -0
- package/dist/{RotatingWord-D9s7FXFD.d.ts → RotatingWord-COSabR2c.d.ts} +2 -1
- package/dist/account-menu.d.ts +8 -3
- package/dist/account-menu.js +8 -1
- package/dist/account-menu.js.map +1 -1
- package/dist/account-settings.d.ts +153 -61
- package/dist/account-settings.js +243 -160
- package/dist/account-settings.js.map +1 -1
- package/dist/achievement.d.ts +2 -1
- package/dist/action-bar.d.ts +3 -2
- package/dist/activity-feed.d.ts +2 -1
- package/dist/agenda.d.ts +2 -1
- package/dist/alert.d.ts +2 -1
- package/dist/anatomy-plate.d.ts +6 -2
- package/dist/anatomy-plate.js +4 -0
- package/dist/anatomy-plate.js.map +1 -1
- package/dist/app-header/search.d.ts +64 -0
- package/dist/app-header/search.js +70 -0
- package/dist/app-header/search.js.map +1 -0
- package/dist/app-header.d.ts +89 -4
- package/dist/app-header.js +63 -5
- package/dist/app-header.js.map +1 -1
- package/dist/app-shell.d.ts +26 -25
- package/dist/app-shell.js +31 -40
- package/dist/app-shell.js.map +1 -1
- package/dist/argument-card.d.ts +3 -2
- package/dist/argument-card.js +3 -3
- package/dist/audio-player.d.ts +2 -1
- package/dist/auth-layout.d.ts +11 -10
- package/dist/avatar/defaults.d.ts +2 -1
- package/dist/avatar.d.ts +2 -1
- package/dist/badge.d.ts +2 -1
- package/dist/bird-plate.d.ts +7 -3
- package/dist/bird-plate.js +2 -2
- package/dist/bird-plate.js.map +1 -1
- package/dist/blocks.css +235 -27
- package/dist/button.d.ts +2 -1
- package/dist/captcha.d.ts +2 -1
- package/dist/captcha.js +1 -0
- package/dist/captcha.js.map +1 -1
- package/dist/card-grid.d.ts +2 -1
- package/dist/card.d.ts +2 -1
- package/dist/catalogue-page.d.ts +82 -2
- package/dist/catalogue-page.js +156 -13
- package/dist/catalogue-page.js.map +1 -1
- package/dist/changelog-page.d.ts +2 -1
- package/dist/chapter.d.ts +2 -1
- package/dist/chat.d.ts +14 -13
- package/dist/chat.js +2 -2
- package/dist/chat.js.map +1 -1
- package/dist/checkbox.d.ts +2 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/chip-link.d.ts +2 -1
- package/dist/chip-row.d.ts +8 -7
- package/dist/chip.d.ts +55 -1
- package/dist/chip.js +14 -98
- package/dist/chip.js.map +1 -1
- package/dist/choice-grid.d.ts +3 -2
- package/dist/choice-grid.js +28 -88
- package/dist/choice-grid.js.map +1 -1
- package/dist/chunk-27AWSJTK.js +46 -0
- package/dist/chunk-27AWSJTK.js.map +1 -0
- package/dist/{chunk-YGIN2YIY.js → chunk-3X3OF4TI.js} +2 -2
- package/dist/chunk-3X3OF4TI.js.map +1 -0
- package/dist/{chunk-KBQD6HE3.js → chunk-4GQH27IT.js} +3 -3
- package/dist/{chunk-KBQD6HE3.js.map → chunk-4GQH27IT.js.map} +1 -1
- package/dist/{chunk-YHKTYFOQ.js → chunk-5LANVCK7.js} +383 -107
- package/dist/chunk-5LANVCK7.js.map +1 -0
- package/dist/{chunk-KDXRYUD3.js → chunk-5QEXOGO2.js} +3 -1
- package/dist/{chunk-KDXRYUD3.js.map → chunk-5QEXOGO2.js.map} +1 -1
- package/dist/chunk-5VEVYDVC.js +11 -0
- package/dist/chunk-5VEVYDVC.js.map +1 -0
- package/dist/chunk-7J2L4HOD.js +340 -0
- package/dist/chunk-7J2L4HOD.js.map +1 -0
- package/dist/chunk-BDIU5LZB.js +18 -0
- package/dist/chunk-BDIU5LZB.js.map +1 -0
- package/dist/chunk-BQ4EOR2O.js +177 -0
- package/dist/chunk-BQ4EOR2O.js.map +1 -0
- package/dist/chunk-CSRKYZ53.js +39 -0
- package/dist/chunk-CSRKYZ53.js.map +1 -0
- package/dist/chunk-F6JTHPHE.js +399 -0
- package/dist/chunk-F6JTHPHE.js.map +1 -0
- package/dist/chunk-HEKDKM5Y.js +128 -0
- package/dist/chunk-HEKDKM5Y.js.map +1 -0
- package/dist/chunk-KGLRZMCY.js +16 -0
- package/dist/chunk-KGLRZMCY.js.map +1 -0
- package/dist/chunk-KID32IRJ.js +18 -0
- package/dist/chunk-KID32IRJ.js.map +1 -0
- package/dist/chunk-OGWB76BR.js +90 -0
- package/dist/chunk-OGWB76BR.js.map +1 -0
- package/dist/{chunk-4LYKBSOG.js → chunk-USPOIQV5.js} +2 -2
- package/dist/chunk-USPOIQV5.js.map +1 -0
- package/dist/chunk-UYGUSYIC.js +173 -0
- package/dist/chunk-UYGUSYIC.js.map +1 -0
- package/dist/{chunk-7NRSPHAF.js → chunk-VB7MWE2N.js} +2 -2
- package/dist/{chunk-7NRSPHAF.js.map → chunk-VB7MWE2N.js.map} +1 -1
- package/dist/chunk-WOZP3JLW.js +51 -0
- package/dist/chunk-WOZP3JLW.js.map +1 -0
- package/dist/chunk-XVXFMVG3.js +27 -0
- package/dist/chunk-XVXFMVG3.js.map +1 -0
- package/dist/chunk-YCZ7N6Q6.js +385 -0
- package/dist/chunk-YCZ7N6Q6.js.map +1 -0
- package/dist/code-block.d.ts +2 -1
- package/dist/code-block.js +81 -98
- package/dist/code-block.js.map +1 -1
- package/dist/combobox.d.ts +20 -19
- package/dist/combobox.js +3 -2
- package/dist/command.d.ts +21 -20
- package/dist/comparison-table.d.ts +2 -1
- package/dist/component-page.d.ts +6 -2
- package/dist/component-page.js +5 -0
- package/dist/component-page.js.map +1 -1
- package/dist/confirm-button.d.ts +2 -1
- package/dist/contact-page.d.ts +2 -1
- package/dist/continue-prompt.d.ts +6 -2
- package/dist/continue-prompt.js +4 -0
- package/dist/continue-prompt.js.map +1 -1
- package/dist/countdown.d.ts +2 -1
- package/dist/cover-hero.d.ts +20 -19
- package/dist/cover-hero.js +25 -42
- package/dist/cover-hero.js.map +1 -1
- package/dist/cta-panel.d.ts +2 -1
- package/dist/dashboard-layout.d.ts +50 -2
- package/dist/dashboard-layout.js +66 -11
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/data-table.d.ts +103 -4
- package/dist/data-table.js +23 -7
- package/dist/date-picker.d.ts +29 -28
- package/dist/date-picker.js +2 -2
- package/dist/date-picker.js.map +1 -1
- package/dist/decision-list.d.ts +2 -1
- package/dist/description-list.d.ts +2 -1
- package/dist/detail-layout.d.ts +147 -3
- package/dist/detail-layout.js +143 -17
- package/dist/detail-layout.js.map +1 -1
- package/dist/{dialog-D42QwYb_.d.ts → dialog-DpUwec2g.d.ts} +2 -1
- package/dist/dialog.d.ts +3 -2
- package/dist/docs-article-page.d.ts +2 -1
- package/dist/docs-hub-page.d.ts +2 -1
- package/dist/docs-layout.d.ts +2 -1
- package/dist/docs-nav.d.ts +3 -10
- package/dist/document-viewer.d.ts +5 -4
- package/dist/doodle.d.ts +32 -0
- package/dist/doodle.js +70 -0
- package/dist/doodle.js.map +1 -0
- package/dist/drop-overlay.d.ts +14 -5
- package/dist/drop-overlay.js +16 -6
- package/dist/drop-overlay.js.map +1 -1
- package/dist/dropdown-menu.d.ts +2 -1
- package/dist/dropdown-menu.js +13 -74
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/elephant.d.ts +4 -1
- package/dist/elephant.js +4 -0
- package/dist/elephant.js.map +1 -1
- package/dist/empty-state.d.ts +2 -1
- package/dist/engine-flow.d.ts +2 -1
- package/dist/error-page.d.ts +2 -1
- package/dist/field.js +1 -1
- package/dist/field.js.map +1 -1
- package/dist/file-upload.d.ts +14 -13
- package/dist/filter-bar.d.ts +84 -11
- package/dist/filter-bar.js +6 -2
- package/dist/flock.d.ts +3 -2
- package/dist/footnote.d.ts +2 -1
- package/dist/force-update-screen.d.ts +13 -8
- package/dist/force-update-screen.js +4 -0
- package/dist/force-update-screen.js.map +1 -1
- package/dist/form/server.d.ts +2 -1
- package/dist/form.d.ts +2 -1
- package/dist/gallery-page.d.ts +6 -2
- package/dist/gallery-page.js +4 -0
- package/dist/gallery-page.js.map +1 -1
- package/dist/genui.d.ts +2 -1
- package/dist/genui.js +5 -5
- package/dist/{geometry-DX-W-Yyf.d.ts → geometry-DZ4Q3hDQ.d.ts} +2 -1
- package/dist/glossary-term.d.ts +2 -1
- package/dist/glossary.d.ts +2 -1
- package/dist/glow-card.d.ts +2 -1
- package/dist/goal-gauge.d.ts +2 -1
- package/dist/grade-stamp.d.ts +23 -0
- package/dist/grade-stamp.js +42 -0
- package/dist/grade-stamp.js.map +1 -0
- package/dist/how-it-works-page.d.ts +2 -1
- package/dist/image-cropper.d.ts +15 -6
- package/dist/image-cropper.js +4 -0
- package/dist/image-cropper.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -4
- package/dist/iso.d.ts +2 -1
- package/dist/kanban.d.ts +5 -1
- package/dist/kanban.js +4 -0
- package/dist/kanban.js.map +1 -1
- package/dist/kbd.d.ts +2 -1
- package/dist/kind-config-editor.d.ts +152 -0
- package/dist/kind-config-editor.js +574 -0
- package/dist/kind-config-editor.js.map +1 -0
- package/dist/kpi-explained.d.ts +2 -1
- package/dist/landing-page.d.ts +2 -1
- package/dist/landscape.d.ts +6 -2
- package/dist/landscape.js +4 -0
- package/dist/landscape.js.map +1 -1
- package/dist/language-switch/server.d.ts +2 -1
- package/dist/language-switch.d.ts +11 -10
- package/dist/legal-page.d.ts +2 -1
- package/dist/link-card.d.ts +2 -1
- package/dist/list.d.ts +2 -1
- package/dist/list.js +1 -1
- package/dist/loader.d.ts +2 -1
- package/dist/longform-page.d.ts +2 -1
- package/dist/maintenance-screen.d.ts +10 -5
- package/dist/maintenance-screen.js +4 -0
- package/dist/maintenance-screen.js.map +1 -1
- package/dist/map.d.ts +8 -7
- package/dist/map.js +30 -0
- package/dist/map.js.map +1 -1
- package/dist/markdown.d.ts +7 -2
- package/dist/markdown.js +12 -5
- package/dist/markdown.js.map +1 -1
- package/dist/marketing-layout.d.ts +5 -4
- package/dist/marquee.d.ts +2 -1
- package/dist/mascot-quote.d.ts +2 -1
- package/dist/mascot-state.d.ts +3 -2
- package/dist/mascots.d.ts +4 -3
- package/dist/match-dialog.d.ts +6 -2
- package/dist/match-dialog.js +4 -0
- package/dist/match-dialog.js.map +1 -1
- package/dist/media-capture.d.ts +11 -5
- package/dist/media-capture.js +4 -0
- package/dist/media-capture.js.map +1 -1
- package/dist/media-gallery.d.ts +2 -1
- package/dist/media-grid.d.ts +3 -10
- package/dist/meta-row.d.ts +2 -1
- package/dist/meter.d.ts +2 -1
- package/dist/meter.js +5 -121
- package/dist/meter.js.map +1 -1
- package/dist/motion.d.ts +3 -2
- package/dist/native/form.d.ts +2 -1
- package/dist/native/list.d.ts +2 -1
- package/dist/native/map.d.ts +2 -1
- package/dist/native/map.js +30 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native/markdown.d.ts +11 -3
- package/dist/native/markdown.js +46 -7
- package/dist/native/markdown.js.map +1 -1
- package/dist/native/media-capture.d.ts +3 -1
- package/dist/native/media-capture.js +5 -0
- package/dist/native/media-capture.js.map +1 -1
- package/dist/native/media-picker.d.ts +2 -1
- package/dist/native/vertical-video.d.ts +10 -3
- package/dist/native/vertical-video.js +6 -0
- package/dist/native/vertical-video.js.map +1 -1
- package/dist/native/video-player.d.ts +2 -1
- package/dist/native.d.ts +323 -4
- package/dist/native.js +1974 -1348
- package/dist/native.js.map +1 -1
- package/dist/nav-bar/me.d.ts +33 -0
- package/dist/nav-bar/me.js +23 -0
- package/dist/nav-bar/me.js.map +1 -0
- package/dist/nav-bar.d.ts +61 -2
- package/dist/nav-bar.js +92 -48
- package/dist/nav-bar.js.map +1 -1
- package/dist/next-actions.d.ts +2 -1
- package/dist/notification-preferences.d.ts +152 -0
- package/dist/notification-preferences.js +78 -0
- package/dist/notification-preferences.js.map +1 -0
- package/dist/number-ticker.d.ts +2 -1
- package/dist/opening-hours.d.ts +2 -1
- package/dist/page-header.d.ts +2 -1
- package/dist/page-header.js +1 -1
- package/dist/page-header.js.map +1 -1
- package/dist/page-hero.d.ts +2 -1
- package/dist/page-index.d.ts +2 -1
- package/dist/page.d.ts +2 -1
- package/dist/pagination.d.ts +2 -1
- package/dist/photo-grid.d.ts +2 -1
- package/dist/pointer-light.d.ts +2 -1
- package/dist/pointer-light.js +5 -0
- package/dist/pointer-light.js.map +1 -1
- package/dist/popover.d.ts +2 -1
- package/dist/pricing-page.d.ts +2 -1
- package/dist/product-page.d.ts +6 -2
- package/dist/product-page.js +4 -0
- package/dist/product-page.js.map +1 -1
- package/dist/profile-card.d.ts +120 -1
- package/dist/profile-card.js +68 -21
- package/dist/profile-card.js.map +1 -1
- package/dist/progress.d.ts +2 -1
- package/dist/promise-card.d.ts +6 -2
- package/dist/promise-card.js +4 -0
- package/dist/promise-card.js.map +1 -1
- package/dist/quota-meter.d.ts +114 -0
- package/dist/quota-meter.js +58 -0
- package/dist/quota-meter.js.map +1 -0
- package/dist/radio-group.d.ts +2 -1
- package/dist/radio-group.js +7 -9
- package/dist/radio-group.js.map +1 -1
- package/dist/rail-nav.d.ts +35 -18
- package/dist/rail-nav.js +45 -56
- package/dist/rail-nav.js.map +1 -1
- package/dist/recipes.d.ts +2 -1
- package/dist/retro-tv.d.ts +31 -0
- package/dist/retro-tv.js +124 -0
- package/dist/retro-tv.js.map +1 -0
- package/dist/router.d.ts +13 -1
- package/dist/router.js +85 -8
- package/dist/router.js.map +1 -1
- package/dist/scroll-stage.d.ts +7 -2
- package/dist/scroll-stage.js +5 -0
- package/dist/scroll-stage.js.map +1 -1
- package/dist/search-field.d.ts +2 -1
- package/dist/search-field.js +1 -1
- package/dist/section-backdrop.d.ts +2 -1
- package/dist/separator.d.ts +2 -1
- package/dist/service-card.d.ts +9 -8
- package/dist/settings-layout.d.ts +2 -1
- package/dist/settings-layout.js +10 -324
- package/dist/settings-layout.js.map +1 -1
- package/dist/showcase.d.ts +11 -3
- package/dist/showcase.js +5 -0
- package/dist/showcase.js.map +1 -1
- package/dist/signature.d.ts +20 -0
- package/dist/signature.js +39 -0
- package/dist/signature.js.map +1 -0
- package/dist/site-cahier.d.ts +187 -0
- package/dist/site-cahier.js +844 -0
- package/dist/site-cahier.js.map +1 -0
- package/dist/site-footer.d.ts +2 -1
- package/dist/site-footer.js +1 -1
- package/dist/sites.d.ts +2 -1
- package/dist/sites.js +1 -1
- package/dist/sites.js.map +1 -1
- package/dist/skeleton.d.ts +2 -1
- package/dist/skip-link.d.ts +2 -1
- package/dist/slider.d.ts +2 -1
- package/dist/slot-picker.d.ts +86 -13
- package/dist/slot-picker.js +98 -16
- package/dist/slot-picker.js.map +1 -1
- package/dist/slot.d.ts +1 -1
- package/dist/specimen-tag.d.ts +2 -1
- package/dist/speed-lines.d.ts +19 -0
- package/dist/speed-lines.js +45 -0
- package/dist/speed-lines.js.map +1 -0
- package/dist/spinner.d.ts +2 -1
- package/dist/split-view.d.ts +2 -1
- package/dist/stage-banner.d.ts +2 -1
- package/dist/stat.d.ts +2 -1
- package/dist/stat.js +1 -1
- package/dist/stat.js.map +1 -1
- package/dist/status-chip.d.ts +44 -0
- package/dist/status-chip.js +137 -0
- package/dist/status-chip.js.map +1 -0
- package/dist/status-page.d.ts +6 -2
- package/dist/status-page.js +5 -0
- package/dist/status-page.js.map +1 -1
- package/dist/step-progress.d.ts +2 -1
- package/dist/step-showcase.d.ts +2 -1
- package/dist/stepper.d.ts +2 -1
- package/dist/sticky-action.d.ts +28 -5
- package/dist/sticky-action.js +10 -4
- package/dist/sticky-action.js.map +1 -1
- package/dist/stuck.d.ts +28 -0
- package/dist/stuck.js +26 -0
- package/dist/stuck.js.map +1 -0
- package/dist/swipe-deck.d.ts +11 -3
- package/dist/swipe-deck.js +5 -0
- package/dist/swipe-deck.js.map +1 -1
- package/dist/switch.d.ts +2 -1
- package/dist/switch.js +4 -32
- package/dist/switch.js.map +1 -1
- package/dist/tabs.d.ts +48 -8
- package/dist/tabs.js +62 -12
- package/dist/tabs.js.map +1 -1
- package/dist/tag-input.d.ts +2 -1
- package/dist/tag-input.js +3 -2
- package/dist/tag-input.js.map +1 -1
- package/dist/tag-selector.d.ts +30 -4
- package/dist/tag-selector.js +90 -8
- package/dist/tag-selector.js.map +1 -1
- package/dist/taped-photo.d.ts +2 -1
- package/dist/taped-photo.js +3 -20
- package/dist/taped-photo.js.map +1 -1
- package/dist/terminal-replay.d.ts +6 -2
- package/dist/terminal-replay.js +5 -1
- package/dist/terminal-replay.js.map +1 -1
- package/dist/text-style/server.d.ts +2 -1
- package/dist/text-style.d.ts +2 -1
- package/dist/theme.d.ts +21 -1
- package/dist/theme.js +37 -1
- package/dist/theme.js.map +1 -1
- package/dist/toast.d.ts +2 -1
- package/dist/toc.d.ts +2 -1
- package/dist/tooltip.d.ts +2 -1
- package/dist/tree-view.d.ts +2 -1
- package/dist/tree-view.js +4 -0
- package/dist/tree-view.js.map +1 -1
- package/dist/update-prompt.d.ts +16 -11
- package/dist/update-prompt.js +4 -0
- package/dist/update-prompt.js.map +1 -1
- package/dist/upload-queue.d.ts +2 -1
- package/dist/verified-badge.d.ts +2 -1
- package/dist/versus-card.d.ts +40 -0
- package/dist/versus-card.js +40 -0
- package/dist/versus-card.js.map +1 -0
- package/dist/vertical-video.d.ts +2 -1
- package/dist/video-player.d.ts +20 -19
- package/dist/video-player.js +7 -376
- package/dist/video-player.js.map +1 -1
- package/dist/video-trimmer.d.ts +8 -2
- package/dist/video-trimmer.js +4 -0
- package/dist/video-trimmer.js.map +1 -1
- package/dist/virtual.d.ts +8 -7
- package/dist/waveform.d.ts +2 -1
- package/package.json +249 -52
- package/registry/account-menu.json +9 -8
- package/registry/account-settings.json +258 -6
- package/registry/achievement.json +3 -4
- package/registry/action-bar.json +3 -3
- package/registry/action-sheet.json +1 -0
- package/registry/activity-feed.json +2 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/anatomy-plate.json +13 -5
- package/registry/app-header.json +470 -23
- package/registry/app-shell.json +2 -2
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +3 -2
- package/registry/badge.json +2 -1
- package/registry/bird-plate.json +16 -2
- package/registry/button.json +7 -6
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +7 -6
- package/registry/catalogue-page.json +117 -8
- package/registry/changelog-page.json +3 -5
- package/registry/chapter.json +1 -1
- package/registry/chat.json +3 -2
- package/registry/checkbox.json +4 -3
- package/registry/chip-link.json +2 -2
- package/registry/chip-row.json +2 -2
- package/registry/chip.json +388 -12
- package/registry/choice-grid.json +3 -4
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +3 -2
- package/registry/command.json +2 -2
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +14 -5
- package/registry/confirm-button.json +4 -4
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +13 -5
- package/registry/countdown.json +4 -3
- package/registry/cover-hero.json +3 -4
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +91 -5
- package/registry/data-table.json +215 -8
- package/registry/date-picker.json +5 -4
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +2 -1
- package/registry/detail-layout.json +226 -8
- package/registry/dialog.json +7 -6
- package/registry/docs-article-page.json +3 -4
- 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 +3 -5
- package/registry/doodle.json +302 -0
- package/registry/drop-overlay.json +30 -16
- package/registry/dropdown-menu.json +2 -2
- package/registry/elephant.json +15 -7
- package/registry/empty-state.json +2 -1
- package/registry/engine-flow.json +1 -1
- package/registry/error-page.json +3 -5
- package/registry/examples/account-settings/appearance.d.ts +4 -0
- package/registry/examples/account-settings/appearance.js +40 -0
- package/registry/examples/account-settings/appearance.tsx +30 -0
- package/registry/examples/app-header/family.d.ts +4 -0
- package/registry/examples/app-header/family.js +41 -0
- package/registry/examples/app-header/family.tsx +37 -0
- package/registry/examples/app-header/native/family.d.ts +4 -0
- package/registry/examples/app-header/native/family.dark.png +0 -0
- package/registry/examples/app-header/native/family.js +25 -0
- package/registry/examples/app-header/native/family.light.png +0 -0
- package/registry/examples/app-header/native/family.tsx +33 -0
- package/registry/examples/catalogue-page/clients.d.ts +4 -0
- package/registry/examples/catalogue-page/clients.js +49 -0
- package/registry/examples/catalogue-page/clients.tsx +61 -0
- package/registry/examples/chip/marker-picker.d.ts +4 -0
- package/registry/examples/chip/marker-picker.js +17 -0
- package/registry/examples/chip/marker-picker.tsx +17 -0
- package/registry/examples/chip/native/marker-picker.d.ts +4 -0
- package/registry/examples/chip/native/marker-picker.dark.png +0 -0
- package/registry/examples/chip/native/marker-picker.js +18 -0
- package/registry/examples/chip/native/marker-picker.light.png +0 -0
- package/registry/examples/chip/native/marker-picker.tsx +16 -0
- package/registry/examples/chip/native/tags.d.ts +4 -0
- package/registry/examples/chip/native/tags.dark.png +0 -0
- package/registry/examples/chip/native/tags.js +22 -0
- package/registry/examples/chip/native/tags.light.png +0 -0
- package/registry/examples/chip/native/tags.tsx +20 -0
- package/registry/examples/chip/tags.d.ts +4 -0
- package/registry/examples/chip/tags.js +26 -0
- package/registry/examples/chip/tags.tsx +23 -0
- package/registry/examples/dashboard-layout/today.d.ts +4 -0
- package/registry/examples/dashboard-layout/today.js +54 -0
- package/registry/examples/dashboard-layout/today.tsx +63 -0
- package/registry/examples/data-table/applicant-files.d.ts +4 -0
- package/registry/examples/data-table/applicant-files.js +24 -0
- package/registry/examples/data-table/applicant-files.tsx +23 -0
- package/registry/examples/data-table/bulk.d.ts +4 -0
- package/registry/examples/data-table/bulk.js +45 -0
- package/registry/examples/data-table/bulk.tsx +34 -0
- package/registry/examples/data-table/checks.d.ts +4 -0
- package/registry/examples/data-table/checks.js +25 -0
- package/registry/examples/data-table/checks.tsx +24 -0
- package/registry/examples/detail-layout/client.d.ts +4 -0
- package/registry/examples/detail-layout/client.js +40 -0
- package/registry/examples/detail-layout/client.tsx +39 -0
- package/registry/examples/detail-layout/new-invoice.d.ts +4 -0
- package/registry/examples/detail-layout/new-invoice.js +44 -0
- package/registry/examples/detail-layout/new-invoice.tsx +34 -0
- package/registry/examples/detail-layout/profile.d.ts +4 -0
- package/registry/examples/detail-layout/profile.js +26 -0
- package/registry/examples/detail-layout/profile.tsx +21 -0
- package/registry/examples/doodle/bird-sketch.d.ts +4 -0
- package/registry/examples/doodle/bird-sketch.js +11 -0
- package/registry/examples/doodle/bird-sketch.tsx +12 -0
- package/registry/examples/doodle/kinds.d.ts +4 -0
- package/registry/examples/doodle/kinds.js +17 -0
- package/registry/examples/doodle/kinds.tsx +14 -0
- package/registry/examples/doodle/margin-marks.d.ts +4 -0
- package/registry/examples/doodle/margin-marks.js +27 -0
- package/registry/examples/doodle/margin-marks.tsx +19 -0
- package/registry/examples/doodle/margin.d.ts +4 -0
- package/registry/examples/doodle/margin.js +17 -0
- package/registry/examples/doodle/margin.tsx +17 -0
- package/registry/examples/filter-bar/views.d.ts +4 -0
- package/registry/examples/filter-bar/views.js +39 -0
- package/registry/examples/filter-bar/views.tsx +30 -0
- package/registry/examples/grade-stamp/coverage.d.ts +4 -0
- package/registry/examples/grade-stamp/coverage.js +12 -0
- package/registry/examples/grade-stamp/coverage.tsx +8 -0
- package/registry/examples/grade-stamp/lighthouse.d.ts +4 -0
- package/registry/examples/grade-stamp/lighthouse.js +12 -0
- package/registry/examples/grade-stamp/lighthouse.tsx +14 -0
- package/registry/examples/kind-config-editor/derived.d.ts +4 -0
- package/registry/examples/kind-config-editor/derived.js +26 -0
- package/registry/examples/kind-config-editor/derived.tsx +16 -0
- package/registry/examples/kind-config-editor/native/status-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/native/status-set.dark.png +0 -0
- package/registry/examples/kind-config-editor/native/status-set.js +22 -0
- package/registry/examples/kind-config-editor/native/status-set.light.png +0 -0
- package/registry/examples/kind-config-editor/native/status-set.tsx +19 -0
- package/registry/examples/kind-config-editor/native/tag-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/native/tag-set.dark.png +0 -0
- package/registry/examples/kind-config-editor/native/tag-set.js +20 -0
- package/registry/examples/kind-config-editor/native/tag-set.light.png +0 -0
- package/registry/examples/kind-config-editor/native/tag-set.tsx +18 -0
- package/registry/examples/kind-config-editor/status-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/status-set.js +29 -0
- package/registry/examples/kind-config-editor/status-set.tsx +25 -0
- package/registry/examples/kind-config-editor/tag-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/tag-set.js +20 -0
- package/registry/examples/kind-config-editor/tag-set.tsx +18 -0
- package/registry/examples/markdown/native/basic.dark.png +0 -0
- package/registry/examples/markdown/native/basic.light.png +0 -0
- package/registry/examples/markdown/native/wide-table.d.ts +4 -0
- package/registry/examples/markdown/native/wide-table.dark.png +0 -0
- package/registry/examples/markdown/native/wide-table.js +23 -0
- package/registry/examples/markdown/native/wide-table.light.png +0 -0
- package/registry/examples/markdown/native/wide-table.tsx +22 -0
- package/registry/examples/markdown/wide-table.d.ts +4 -0
- package/registry/examples/markdown/wide-table.js +28 -0
- package/registry/examples/markdown/wide-table.tsx +23 -0
- package/registry/examples/nav-bar/family-product.js +2 -4
- package/registry/examples/nav-bar/family-product.tsx +3 -5
- package/registry/examples/notification-preferences/default.d.ts +4 -0
- package/registry/examples/notification-preferences/default.js +29 -0
- package/registry/examples/notification-preferences/default.tsx +28 -0
- package/registry/examples/profile-card/banner.d.ts +4 -0
- package/registry/examples/profile-card/banner.js +28 -0
- package/registry/examples/profile-card/banner.tsx +24 -0
- package/registry/examples/profile-card/native/banner.d.ts +4 -0
- package/registry/examples/profile-card/native/banner.dark.png +0 -0
- package/registry/examples/profile-card/native/banner.js +22 -0
- package/registry/examples/profile-card/native/banner.light.png +0 -0
- package/registry/examples/profile-card/native/banner.tsx +18 -0
- package/registry/examples/quota-meter/default.d.ts +4 -0
- package/registry/examples/quota-meter/default.js +26 -0
- package/registry/examples/quota-meter/default.tsx +20 -0
- package/registry/examples/quota-meter/full.d.ts +4 -0
- package/registry/examples/quota-meter/full.js +25 -0
- package/registry/examples/quota-meter/full.tsx +18 -0
- package/registry/examples/rail-nav/shortcuts.d.ts +4 -0
- package/registry/examples/rail-nav/shortcuts.js +49 -0
- package/registry/examples/rail-nav/shortcuts.tsx +40 -0
- package/registry/examples/retro-tv/cabinet.d.ts +4 -0
- package/registry/examples/retro-tv/cabinet.js +12 -0
- package/registry/examples/retro-tv/cabinet.tsx +7 -0
- package/registry/examples/retro-tv/portable.d.ts +4 -0
- package/registry/examples/retro-tv/portable.js +12 -0
- package/registry/examples/retro-tv/portable.tsx +7 -0
- package/registry/examples/signature/both.d.ts +4 -0
- package/registry/examples/signature/both.js +11 -0
- package/registry/examples/signature/both.tsx +6 -0
- package/registry/examples/signature/variants.d.ts +4 -0
- package/registry/examples/signature/variants.js +14 -0
- package/registry/examples/signature/variants.tsx +11 -0
- package/registry/examples/site-cahier/java-releases.d.ts +4 -0
- package/registry/examples/site-cahier/java-releases.js +33 -0
- package/registry/examples/site-cahier/java-releases.tsx +32 -0
- package/registry/examples/site-cahier/motion-lab.d.ts +4 -0
- package/registry/examples/site-cahier/motion-lab.js +32 -0
- package/registry/examples/site-cahier/motion-lab.tsx +29 -0
- package/registry/examples/site-cahier/ts-changelog.d.ts +4 -0
- package/registry/examples/site-cahier/ts-changelog.js +24 -0
- package/registry/examples/site-cahier/ts-changelog.tsx +20 -0
- package/registry/examples/site-cahier/ts-doc.d.ts +4 -0
- package/registry/examples/site-cahier/ts-doc.js +38 -0
- package/registry/examples/site-cahier/ts-doc.tsx +27 -0
- package/registry/examples/site-cahier/ui-home.d.ts +4 -0
- package/registry/examples/site-cahier/ui-home.js +46 -0
- package/registry/examples/site-cahier/ui-home.tsx +40 -0
- package/registry/examples/slot-picker/weeks.d.ts +4 -0
- package/registry/examples/slot-picker/weeks.js +45 -0
- package/registry/examples/slot-picker/weeks.tsx +28 -0
- package/registry/examples/speed-lines/hero.d.ts +4 -0
- package/registry/examples/speed-lines/hero.js +11 -0
- package/registry/examples/speed-lines/hero.tsx +12 -0
- package/registry/examples/speed-lines/streaks.d.ts +4 -0
- package/registry/examples/speed-lines/streaks.js +11 -0
- package/registry/examples/speed-lines/streaks.tsx +12 -0
- package/registry/examples/status-chip/default.d.ts +4 -0
- package/registry/examples/status-chip/default.js +35 -0
- package/registry/examples/status-chip/default.tsx +32 -0
- package/registry/examples/status-chip/native/default.d.ts +4 -0
- package/registry/examples/status-chip/native/default.dark.png +0 -0
- package/registry/examples/status-chip/native/default.js +26 -0
- package/registry/examples/status-chip/native/default.light.png +0 -0
- package/registry/examples/status-chip/native/default.tsx +20 -0
- package/registry/examples/stuck/card.d.ts +4 -0
- package/registry/examples/stuck/card.js +13 -0
- package/registry/examples/stuck/card.tsx +14 -0
- package/registry/examples/stuck/holds.d.ts +4 -0
- package/registry/examples/stuck/holds.js +12 -0
- package/registry/examples/stuck/holds.tsx +16 -0
- package/registry/examples/stuck/tag.d.ts +4 -0
- package/registry/examples/stuck/tag.js +12 -0
- package/registry/examples/stuck/tag.tsx +13 -0
- package/registry/examples/tabs/binder.d.ts +4 -0
- package/registry/examples/tabs/binder.js +22 -0
- package/registry/examples/tabs/binder.tsx +20 -0
- package/registry/examples/tabs/native/binder.d.ts +4 -0
- package/registry/examples/tabs/native/binder.dark.png +0 -0
- package/registry/examples/tabs/native/binder.js +26 -0
- package/registry/examples/tabs/native/binder.light.png +0 -0
- package/registry/examples/tabs/native/binder.tsx +22 -0
- package/registry/examples/tag-selector/creatable.d.ts +4 -0
- package/registry/examples/tag-selector/creatable.js +41 -0
- package/registry/examples/tag-selector/creatable.tsx +29 -0
- package/registry/examples/tag-selector/native/tags.d.ts +4 -0
- package/registry/examples/tag-selector/native/tags.dark.png +0 -0
- package/registry/examples/tag-selector/native/tags.js +19 -0
- package/registry/examples/tag-selector/native/tags.light.png +0 -0
- package/registry/examples/tag-selector/native/tags.tsx +19 -0
- package/registry/examples/versus-card/alternatives.d.ts +4 -0
- package/registry/examples/versus-card/alternatives.js +20 -0
- package/registry/examples/versus-card/alternatives.tsx +14 -0
- package/registry/examples/versus-card/releases.d.ts +4 -0
- package/registry/examples/versus-card/releases.js +35 -0
- package/registry/examples/versus-card/releases.tsx +29 -0
- package/registry/fab.json +1 -0
- package/registry/field.json +3 -2
- package/registry/file-upload.json +6 -11
- package/registry/filter-bar.json +209 -9
- package/registry/flock.json +3 -4
- package/registry/footnote.json +2 -3
- package/registry/force-update-screen.json +14 -5
- package/registry/form.json +5 -4
- package/registry/gallery-page.json +14 -5
- package/registry/genui.json +2 -2
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +2 -2
- package/registry/goal-gauge.json +2 -1
- package/registry/grade-stamp.json +227 -0
- package/registry/header.json +1 -0
- package/registry/how-it-works-page.json +3 -5
- package/registry/image-cropper.json +13 -5
- package/registry/image-viewer.json +3 -4
- package/registry/index.json +612 -105
- package/registry/iso.json +1 -1
- package/registry/kanban.json +13 -5
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +565 -0
- package/registry/kpi-explained.json +2 -2
- package/registry/landing-page.json +3 -5
- package/registry/landscape.json +13 -5
- 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 +2 -1
- package/registry/loader.json +2 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +14 -5
- package/registry/map.json +3 -2
- package/registry/markdown.json +86 -9
- 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 +12 -11
- package/registry/mascots.json +2 -1
- package/registry/match-dialog.json +14 -5
- package/registry/media-capture.json +14 -5
- package/registry/media-gallery.json +3 -5
- package/registry/media-grid.json +1 -1
- package/registry/media-picker.json +2 -3
- package/registry/meta-row.json +2 -1
- package/registry/meter.json +4 -3
- package/registry/nav-bar.json +100 -9
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +250 -0
- package/registry/number-ticker.json +2 -1
- package/registry/onboarding.json +1 -0
- package/registry/opening-hours.json +1 -1
- package/registry/otp-input.json +1 -0
- package/registry/page-header.json +2 -2
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +3 -3
- package/registry/pagination.json +2 -1
- package/registry/permission-prompt.json +2 -2
- package/registry/photo-grid.json +4 -4
- package/registry/pointer-light.json +6 -2
- package/registry/popover.json +2 -2
- package/registry/pricing-page.json +4 -6
- package/registry/product-page.json +14 -5
- package/registry/profile-card.json +232 -8
- package/registry/progress.json +4 -3
- package/registry/promise-card.json +13 -5
- package/registry/pull-to-refresh.json +1 -0
- package/registry/quota-meter.json +308 -0
- package/registry/radio-group.json +4 -3
- package/registry/rail-nav.json +48 -10
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +478 -0
- package/registry/router.json +3 -3
- package/registry/screen.json +1 -0
- package/registry/scroll-stage.json +14 -5
- package/registry/search-field.json +3 -2
- package/registry/section-backdrop.json +1 -1
- package/registry/segmented.json +1 -0
- package/registry/separator.json +2 -2
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +2 -1
- package/registry/showcase.json +14 -5
- package/registry/signature.json +185 -0
- package/registry/site-cahier.json +548 -0
- package/registry/site-footer.json +3 -3
- package/registry/sites.json +2 -2
- package/registry/skeleton.json +2 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +5 -4
- package/registry/slot-picker.json +156 -10
- package/registry/slot.json +2 -2
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +174 -0
- package/registry/spinner.json +4 -3
- package/registry/splash-handoff.json +1 -0
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +2 -3
- package/registry/stat.json +2 -2
- package/registry/status-chip.json +350 -0
- package/registry/status-page.json +13 -5
- package/registry/step-progress.json +2 -1
- package/registry/step-showcase.json +3 -5
- package/registry/stepper.json +2 -1
- package/registry/sticky-action.json +38 -8
- package/registry/stuck.json +219 -0
- package/registry/swipe-deck.json +14 -5
- package/registry/swipeable-row.json +1 -0
- package/registry/switch.json +3 -2
- package/registry/tab-bar.json +1 -0
- package/registry/tabs.json +154 -22
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +190 -12
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +14 -5
- package/registry/text-style.json +5 -5
- package/registry/theme.json +4 -3
- package/registry/toast.json +2 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +2 -2
- package/registry/tree-view.json +6 -2
- package/registry/txt.json +1 -0
- package/registry/update-prompt.json +14 -5
- package/registry/upload-queue.json +1 -1
- package/registry/verified-badge.json +6 -6
- package/registry/versus-card.json +194 -0
- package/registry/vertical-video.json +8 -3
- package/registry/video-player.json +5 -6
- package/registry/video-trimmer.json +13 -5
- package/registry/virtual.json +2 -2
- package/registry/waveform.json +4 -3
- package/dist/chunk-4LYKBSOG.js.map +0 -1
- package/dist/chunk-HHFWK2HH.js +0 -163
- package/dist/chunk-HHFWK2HH.js.map +0 -1
- package/dist/chunk-R3LTSMS5.js +0 -75
- package/dist/chunk-R3LTSMS5.js.map +0 -1
- package/dist/chunk-YGIN2YIY.js.map +0 -1
- package/dist/chunk-YHKTYFOQ.js.map +0 -1
- package/dist/chunk-ZQW7LF4Y.js +0 -179
- package/dist/chunk-ZQW7LF4Y.js.map +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { AppearanceSettings, type ThemeCardOption } from "@krizaka/ui/account-settings";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
const dark = { surface0: "#111318", surface1: "#171a21", surface2: "#1e222b", text: "#e8ebf1", muted: "#959eae" };
|
|
7
|
+
const light = { surface0: "#fbfbfa", surface1: "#ffffff", surface2: "#f4f4f2", text: "#242c3d", muted: "#646d80" };
|
|
8
|
+
// In an app these come from `appearance.themes` of @krizaka/tokens; the product passes the subset it offers.
|
|
9
|
+
const THEMES: ThemeCardOption[] = [
|
|
10
|
+
{ id: "system", label: "System", description: "Follows your device", preview: null, halves: [light, dark] },
|
|
11
|
+
{ id: "light", label: "Light", preview: light },
|
|
12
|
+
{ id: "dark", label: "Dark", preview: dark },
|
|
13
|
+
{ id: "blueprint", label: "Blueprint", description: "Navy", preview: { surface0: "hsl(222 40% 9%)", surface1: "hsl(222 38% 12%)", surface2: "hsl(222 36% 15%)", text: "hsl(215 40% 93%)", muted: "hsl(215 18% 69%)" } },
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
// Applied at once, nothing to save: `useAppearance()` of @krizaka/ui/theme does it in a real app.
|
|
17
|
+
export default function AppearanceExample() {
|
|
18
|
+
const [theme, setTheme] = React.useState("system");
|
|
19
|
+
const [accent, setAccent] = React.useState("akinaza");
|
|
20
|
+
const [density, setDensity] = React.useState("standard");
|
|
21
|
+
const [language, setLanguage] = React.useState("en");
|
|
22
|
+
return (
|
|
23
|
+
<AppearanceSettings
|
|
24
|
+
themes={THEMES} theme={theme} onThemeChange={setTheme}
|
|
25
|
+
accents={[{ id: "akinaza", label: "Forest green", color: "#4fa04f" }, { id: "krizaka", label: "Steel blue", color: "#3f78ab" }]} accent={accent} onAccentChange={setAccent}
|
|
26
|
+
densities={[{ value: "standard", label: "Standard" }, { value: "compact", label: "Compact" }]} density={density} onDensityChange={setDensity}
|
|
27
|
+
languages={[{ code: "en", name: "English" }, { code: "fr", name: "Français" }]} language={language} onLanguageChange={setLanguage}
|
|
28
|
+
/>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/app-header/family.tsx
|
|
4
|
+
import { ProductLogo } from "@krizaka/ui";
|
|
5
|
+
import { AccountMenu } from "@krizaka/ui/account-menu";
|
|
6
|
+
import { AppHeader, AppHeaderCount } from "@krizaka/ui/app-header";
|
|
7
|
+
import { AppHeaderSearch } from "@krizaka/ui/app-header/search";
|
|
8
|
+
import { Command, CommandDialog } from "@krizaka/ui/command";
|
|
9
|
+
import { languagesFor, LanguageSwitch } from "@krizaka/ui/language-switch";
|
|
10
|
+
import { useState } from "react";
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var icon = (d) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d }) });
|
|
13
|
+
function AppHeaderFamily() {
|
|
14
|
+
const [open, setOpen] = useState(false);
|
|
15
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
17
|
+
AppHeader,
|
|
18
|
+
{
|
|
19
|
+
name: "Yomizaka",
|
|
20
|
+
mark: /* @__PURE__ */ jsx(ProductLogo, { id: "yomizaka", size: 22, animated: false }),
|
|
21
|
+
href: "#home",
|
|
22
|
+
search: /* @__PURE__ */ jsx(AppHeaderSearch, { label: "Search files and checks", onOpen: () => setOpen(true) }),
|
|
23
|
+
language: /* @__PURE__ */ jsx(LanguageSwitch, { label: "Language", current: "en", languages: languagesFor("/en/files") }),
|
|
24
|
+
messages: /* @__PURE__ */ jsx(AppHeaderCount, { label: "Messages", icon: icon("M4 5h16v11H8l-4 4z"), count: 2, countLabel: "2 unread", href: "#messages" }),
|
|
25
|
+
notifications: /* @__PURE__ */ jsx(AppHeaderCount, { label: "Notifications", icon: icon("M6 16V11a6 6 0 1 1 12 0v5l2 2H4zM10 20h4"), count: 3, countLabel: "3 new" }),
|
|
26
|
+
account: /* @__PURE__ */ jsx(AccountMenu, { label: "Account", name: "Eric Tremblay", email: "eric@example.com", showName: true, avatar: { defaultAvatar: { brand: "yomizaka", seed: "eric" } }, signOut: { label: "Sign out", onSelect: () => {
|
|
27
|
+
} } })
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ jsxs(CommandDialog, { open, onOpenChange: setOpen, label: "Search", children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Command.Input, { placeholder: "Search files and checks" }),
|
|
32
|
+
/* @__PURE__ */ jsxs(Command.List, { label: "Results", emptyLabel: "Nothing matches.", children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Command.Item, { onSelect: () => setOpen(false), children: "Applicant files" }),
|
|
34
|
+
/* @__PURE__ */ jsx(Command.Item, { onSelect: () => setOpen(false), children: "Checks" })
|
|
35
|
+
] })
|
|
36
|
+
] })
|
|
37
|
+
] });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
AppHeaderFamily as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { ProductLogo } from "@krizaka/ui";
|
|
4
|
+
import { AccountMenu } from "@krizaka/ui/account-menu";
|
|
5
|
+
import { AppHeader, AppHeaderCount } from "@krizaka/ui/app-header";
|
|
6
|
+
import { AppHeaderSearch } from "@krizaka/ui/app-header/search";
|
|
7
|
+
import { Command, CommandDialog } from "@krizaka/ui/command";
|
|
8
|
+
import { languagesFor, LanguageSwitch } from "@krizaka/ui/language-switch";
|
|
9
|
+
import { useState } from "react";
|
|
10
|
+
|
|
11
|
+
const icon = (d: string) => <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden><path d={d} /></svg>;
|
|
12
|
+
|
|
13
|
+
// The family's bar: search (⌘K opens the palette), language, messages, notifications with their counts, the account.
|
|
14
|
+
export default function AppHeaderFamily() {
|
|
15
|
+
const [open, setOpen] = useState(false);
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
<AppHeader
|
|
19
|
+
name="Yomizaka"
|
|
20
|
+
mark={<ProductLogo id="yomizaka" size={22} animated={false} />}
|
|
21
|
+
href="#home"
|
|
22
|
+
search={<AppHeaderSearch label="Search files and checks" onOpen={() => setOpen(true)} />}
|
|
23
|
+
language={<LanguageSwitch label="Language" current="en" languages={languagesFor("/en/files")} />}
|
|
24
|
+
messages={<AppHeaderCount label="Messages" icon={icon("M4 5h16v11H8l-4 4z")} count={2} countLabel="2 unread" href="#messages" />}
|
|
25
|
+
notifications={<AppHeaderCount label="Notifications" icon={icon("M6 16V11a6 6 0 1 1 12 0v5l2 2H4zM10 20h4")} count={3} countLabel="3 new" />}
|
|
26
|
+
account={<AccountMenu label="Account" name="Eric Tremblay" email="eric@example.com" showName avatar={{ defaultAvatar: { brand: "yomizaka", seed: "eric" } }} signOut={{ label: "Sign out", onSelect: () => {} }} />}
|
|
27
|
+
/>
|
|
28
|
+
<CommandDialog open={open} onOpenChange={setOpen} label="Search">
|
|
29
|
+
<Command.Input placeholder="Search files and checks" />
|
|
30
|
+
<Command.List label="Results" emptyLabel="Nothing matches.">
|
|
31
|
+
<Command.Item onSelect={() => setOpen(false)}>Applicant files</Command.Item>
|
|
32
|
+
<Command.Item onSelect={() => setOpen(false)}>Checks</Command.Item>
|
|
33
|
+
</Command.List>
|
|
34
|
+
</CommandDialog>
|
|
35
|
+
</>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/app-header/native/family.tsx
|
|
4
|
+
import { AppHeader, AppHeaderCount, AppHeaderSearch, Avatar, ProductMark, useTheme } from "@krizaka/ui/native";
|
|
5
|
+
import { Pressable, Text, View } from "react-native";
|
|
6
|
+
import Svg, { Path } from "react-native-svg";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
function NativeAppHeaderFamily() {
|
|
9
|
+
const { theme } = useTheme();
|
|
10
|
+
const bell = /* @__PURE__ */ jsx(Svg, { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", stroke: theme.textSecondary, strokeWidth: 1.8, strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(Path, { d: "M6 16V11a6 6 0 1 1 12 0v5l2 2H4zM10 20h4" }) });
|
|
11
|
+
return /* @__PURE__ */ jsx(View, { style: { width: 360 }, children: /* @__PURE__ */ jsx(
|
|
12
|
+
AppHeader,
|
|
13
|
+
{
|
|
14
|
+
name: "Yomizaka",
|
|
15
|
+
mark: /* @__PURE__ */ jsx(ProductMark, { id: "yomizaka", size: 24, animated: false }),
|
|
16
|
+
search: /* @__PURE__ */ jsx(AppHeaderSearch, { label: "Search files and checks", onOpen: () => void 0 }),
|
|
17
|
+
language: /* @__PURE__ */ jsx(Pressable, { role: "button", "aria-label": "Language: EN (English)", style: { minHeight: 40, justifyContent: "center", paddingHorizontal: 6 }, children: /* @__PURE__ */ jsx(Text, { style: { color: theme.textSecondary, fontWeight: "600", fontSize: 12 }, children: "EN" }) }),
|
|
18
|
+
notifications: /* @__PURE__ */ jsx(AppHeaderCount, { label: "Notifications", icon: bell, count: 3, countLabel: "3 new", onPress: () => void 0 }),
|
|
19
|
+
account: /* @__PURE__ */ jsx(Pressable, { role: "button", "aria-label": "Account, Eric Tremblay", children: /* @__PURE__ */ jsx(Avatar, { size: "sm", fallback: "E" }) })
|
|
20
|
+
}
|
|
21
|
+
) });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
NativeAppHeaderFamily as default
|
|
25
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AppHeader, AppHeaderCount, AppHeaderSearch, Avatar, ProductMark, useTheme } from "@krizaka/ui/native";
|
|
2
|
+
import { Pressable, Text, View } from "react-native";
|
|
3
|
+
import Svg, { Path } from "react-native-svg";
|
|
4
|
+
|
|
5
|
+
// The family's bar on a phone: search, language, notifications with their count, the account.
|
|
6
|
+
export default function NativeAppHeaderFamily() {
|
|
7
|
+
const { theme } = useTheme();
|
|
8
|
+
const bell = (
|
|
9
|
+
<Svg width={20} height={20} viewBox="0 0 24 24" fill="none" stroke={theme.textSecondary} strokeWidth={1.8} strokeLinecap="round" aria-hidden>
|
|
10
|
+
<Path d="M6 16V11a6 6 0 1 1 12 0v5l2 2H4zM10 20h4" />
|
|
11
|
+
</Svg>
|
|
12
|
+
);
|
|
13
|
+
return (
|
|
14
|
+
<View style={{ width: 360 }}>
|
|
15
|
+
<AppHeader
|
|
16
|
+
name="Yomizaka"
|
|
17
|
+
mark={<ProductMark id="yomizaka" size={24} animated={false} />}
|
|
18
|
+
search={<AppHeaderSearch label="Search files and checks" onOpen={() => undefined} />}
|
|
19
|
+
language={
|
|
20
|
+
<Pressable role="button" aria-label="Language: EN (English)" style={{ minHeight: 40, justifyContent: "center", paddingHorizontal: 6 }}>
|
|
21
|
+
<Text style={{ color: theme.textSecondary, fontWeight: "600", fontSize: 12 }}>EN</Text>
|
|
22
|
+
</Pressable>
|
|
23
|
+
}
|
|
24
|
+
notifications={<AppHeaderCount label="Notifications" icon={bell} count={3} countLabel="3 new" onPress={() => undefined} />}
|
|
25
|
+
account={
|
|
26
|
+
<Pressable role="button" aria-label="Account, Eric Tremblay">
|
|
27
|
+
<Avatar size="sm" fallback="E" />
|
|
28
|
+
</Pressable>
|
|
29
|
+
}
|
|
30
|
+
/>
|
|
31
|
+
</View>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/catalogue-page/clients.tsx
|
|
4
|
+
import { Badge } from "@krizaka/ui/badge";
|
|
5
|
+
import { Button } from "@krizaka/ui/button";
|
|
6
|
+
import { CataloguePage, PlanStrip } from "@krizaka/ui/catalogue-page";
|
|
7
|
+
import { Chip } from "@krizaka/ui/chip";
|
|
8
|
+
import { SelectionBar } from "@krizaka/ui/data-table";
|
|
9
|
+
import { SearchField } from "@krizaka/ui/search-field";
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var CLIENTS = [
|
|
13
|
+
{ id: "c1", name: "Gagnon & fils", status: "To follow up", tone: "warning" },
|
|
14
|
+
{ id: "c2", name: "Mme Roy", status: "Active", tone: "success" },
|
|
15
|
+
{ id: "c3", name: "Lavoie Plomberie", status: "Active", tone: "success" }
|
|
16
|
+
];
|
|
17
|
+
function CataloguePageClients() {
|
|
18
|
+
const [picked, setPicked] = React.useState([]);
|
|
19
|
+
return /* @__PURE__ */ jsx("div", { className: "brand-akinaza", children: /* @__PURE__ */ jsx(
|
|
20
|
+
CataloguePage,
|
|
21
|
+
{
|
|
22
|
+
eyebrow: "Clients",
|
|
23
|
+
title: "Your clients",
|
|
24
|
+
search: /* @__PURE__ */ jsx(SearchField, { label: "Search the clients", placeholder: "A name, a city\u2026" }),
|
|
25
|
+
filtersLabel: "Filters",
|
|
26
|
+
filters: /* @__PURE__ */ jsxs(Chip.Group, { type: "single", label: "Status", defaultValue: "all", children: [
|
|
27
|
+
/* @__PURE__ */ jsx(Chip, { value: "all", children: "All \xB7 3" }),
|
|
28
|
+
/* @__PURE__ */ jsx(Chip, { value: "active", children: "Active \xB7 2" }),
|
|
29
|
+
/* @__PURE__ */ jsx(Chip, { value: "follow", children: "To follow up \xB7 1" })
|
|
30
|
+
] }),
|
|
31
|
+
plan: /* @__PURE__ */ jsx(PlanStrip, { label: "Your plan", figures: [{ id: "clients", label: "clients", value: "3" }, { id: "open", label: "invoices open", value: "2" }], meter: { label: "Clients on your plan", value: 3, max: 25, valueText: "3 of 25", showLabel: true } }),
|
|
32
|
+
dividers: /* @__PURE__ */ jsxs(Chip.Group, { type: "single", label: "Shelf", defaultValue: "all", children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Chip, { value: "all", children: "Clients" }),
|
|
34
|
+
/* @__PURE__ */ jsx(Chip, { value: "archived", children: "Archived" })
|
|
35
|
+
] }),
|
|
36
|
+
count: "3 clients",
|
|
37
|
+
selection: /* @__PURE__ */ jsx(SelectionBar, { count: picked.length, onClear: () => setPicked([]), children: /* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "Archive" }) }),
|
|
38
|
+
children: /* @__PURE__ */ jsx("ul", { className: "m-0 flex list-none flex-col gap-2 p-0", children: CLIENTS.map((c) => /* @__PURE__ */ jsxs("li", { className: "flex flex-wrap items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3", children: [
|
|
39
|
+
/* @__PURE__ */ jsx("input", { type: "checkbox", "aria-label": `Select ${c.name}`, checked: picked.includes(c.id), onChange: (e) => setPicked((p) => e.target.checked ? [...p, c.id] : p.filter((x) => x !== c.id)) }),
|
|
40
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 font-semibold text-fg", children: c.name }),
|
|
41
|
+
/* @__PURE__ */ jsx(Badge, { tone: c.tone, children: c.status }),
|
|
42
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "New invoice" })
|
|
43
|
+
] }, c.id)) })
|
|
44
|
+
}
|
|
45
|
+
) });
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
CataloguePageClients as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Badge } from "@krizaka/ui/badge";
|
|
3
|
+
import { Button } from "@krizaka/ui/button";
|
|
4
|
+
import { CataloguePage, PlanStrip } from "@krizaka/ui/catalogue-page";
|
|
5
|
+
import { Chip } from "@krizaka/ui/chip";
|
|
6
|
+
import { SelectionBar } from "@krizaka/ui/data-table";
|
|
7
|
+
import { SearchField } from "@krizaka/ui/search-field";
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
|
|
10
|
+
const CLIENTS = [
|
|
11
|
+
{ id: "c1", name: "Gagnon & fils", status: "To follow up", tone: "warning" as const },
|
|
12
|
+
{ id: "c2", name: "Mme Roy", status: "Active", tone: "success" as const },
|
|
13
|
+
{ id: "c3", name: "Lavoie Plomberie", status: "Active", tone: "success" as const },
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
// TEMPLATE — a client list (Atelier Eric, fictitious): the plan strip (figures and a meter), the binder dividers, the search in the hero
|
|
17
|
+
// with the filters as chips and their counts, rows with a status and one action, and the selection bar when rows are ticked.
|
|
18
|
+
export default function CataloguePageClients() {
|
|
19
|
+
const [picked, setPicked] = React.useState<string[]>([]);
|
|
20
|
+
return (
|
|
21
|
+
<div className="brand-akinaza">
|
|
22
|
+
<CataloguePage
|
|
23
|
+
eyebrow="Clients"
|
|
24
|
+
title="Your clients"
|
|
25
|
+
search={<SearchField label="Search the clients" placeholder="A name, a city…" />}
|
|
26
|
+
filtersLabel="Filters"
|
|
27
|
+
filters={
|
|
28
|
+
<Chip.Group type="single" label="Status" defaultValue="all">
|
|
29
|
+
<Chip value="all">All · 3</Chip>
|
|
30
|
+
<Chip value="active">Active · 2</Chip>
|
|
31
|
+
<Chip value="follow">To follow up · 1</Chip>
|
|
32
|
+
</Chip.Group>
|
|
33
|
+
}
|
|
34
|
+
plan={<PlanStrip label="Your plan" figures={[{ id: "clients", label: "clients", value: "3" }, { id: "open", label: "invoices open", value: "2" }]} meter={{ label: "Clients on your plan", value: 3, max: 25, valueText: "3 of 25", showLabel: true }} />}
|
|
35
|
+
dividers={
|
|
36
|
+
<Chip.Group type="single" label="Shelf" defaultValue="all">
|
|
37
|
+
<Chip value="all">Clients</Chip>
|
|
38
|
+
<Chip value="archived">Archived</Chip>
|
|
39
|
+
</Chip.Group>
|
|
40
|
+
}
|
|
41
|
+
count="3 clients"
|
|
42
|
+
selection={
|
|
43
|
+
<SelectionBar count={picked.length} onClear={() => setPicked([])}>
|
|
44
|
+
<Button size="sm" variant="secondary">Archive</Button>
|
|
45
|
+
</SelectionBar>
|
|
46
|
+
}
|
|
47
|
+
>
|
|
48
|
+
<ul className="m-0 flex list-none flex-col gap-2 p-0">
|
|
49
|
+
{CLIENTS.map((c) => (
|
|
50
|
+
<li key={c.id} className="flex flex-wrap items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3">
|
|
51
|
+
<input type="checkbox" aria-label={`Select ${c.name}`} checked={picked.includes(c.id)} onChange={(e) => setPicked((p) => (e.target.checked ? [...p, c.id] : p.filter((x) => x !== c.id)))} />
|
|
52
|
+
<span className="min-w-0 flex-1 font-semibold text-fg">{c.name}</span>
|
|
53
|
+
<Badge tone={c.tone}>{c.status}</Badge>
|
|
54
|
+
<Button size="sm" variant="secondary">New invoice</Button>
|
|
55
|
+
</li>
|
|
56
|
+
))}
|
|
57
|
+
</ul>
|
|
58
|
+
</CataloguePage>
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/chip/marker-picker.tsx
|
|
4
|
+
import { MarkerPicker, TagChip } from "@krizaka/ui/chip";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
var NAMES = { blue: "Blue", green: "Green", amber: "Amber", red: "Red", violet: "Violet", gray: "Gray" };
|
|
8
|
+
function ChipMarkerPicker() {
|
|
9
|
+
const [marker, setMarker] = React.useState("violet");
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-3", children: [
|
|
11
|
+
/* @__PURE__ */ jsx(TagChip, { marker, children: "Gift cards" }),
|
|
12
|
+
/* @__PURE__ */ jsx(MarkerPicker, { label: "Colour of the tag Gift cards", names: NAMES, value: marker, onValueChange: setMarker })
|
|
13
|
+
] });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
ChipMarkerPicker as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { type Marker, MarkerPicker, TagChip } from "@krizaka/ui/chip";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
const NAMES: Record<Marker, string> = { blue: "Blue", green: "Green", amber: "Amber", red: "Red", violet: "Violet", gray: "Gray" };
|
|
7
|
+
|
|
8
|
+
// Recolour a tag from the closed palette of six: a swatch is named and ticked, the colour is never alone.
|
|
9
|
+
export default function ChipMarkerPicker() {
|
|
10
|
+
const [marker, setMarker] = React.useState<Marker>("violet");
|
|
11
|
+
return (
|
|
12
|
+
<div className="flex flex-col items-start gap-3">
|
|
13
|
+
<TagChip marker={marker}>Gift cards</TagChip>
|
|
14
|
+
<MarkerPicker label="Colour of the tag Gift cards" names={NAMES} value={marker} onValueChange={setMarker} />
|
|
15
|
+
</div>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/chip/native/marker-picker.tsx
|
|
4
|
+
import { MarkerPicker, TagChip } from "@krizaka/ui/native";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { View } from "react-native";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
var NAMES = { blue: "Blue", green: "Green", amber: "Amber", red: "Red", violet: "Violet", gray: "Gray" };
|
|
9
|
+
function NativeChipMarkerPicker() {
|
|
10
|
+
const [marker, setMarker] = useState("violet");
|
|
11
|
+
return /* @__PURE__ */ jsxs(View, { style: { gap: 12, alignItems: "flex-start" }, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(TagChip, { marker, children: "Gift cards" }),
|
|
13
|
+
/* @__PURE__ */ jsx(MarkerPicker, { label: "Colour of the tag Gift cards", names: NAMES, value: marker, onValueChange: setMarker })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
NativeChipMarkerPicker as default
|
|
18
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Marker, MarkerPicker, TagChip } from "@krizaka/ui/native";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
|
|
5
|
+
const NAMES: Record<Marker, string> = { blue: "Blue", green: "Green", amber: "Amber", red: "Red", violet: "Violet", gray: "Gray" };
|
|
6
|
+
|
|
7
|
+
// Recolour a tag from the closed palette of six.
|
|
8
|
+
export default function NativeChipMarkerPicker() {
|
|
9
|
+
const [marker, setMarker] = useState<Marker>("violet");
|
|
10
|
+
return (
|
|
11
|
+
<View style={{ gap: 12, alignItems: "flex-start" }}>
|
|
12
|
+
<TagChip marker={marker}>Gift cards</TagChip>
|
|
13
|
+
<MarkerPicker label="Colour of the tag Gift cards" names={NAMES} value={marker} onValueChange={setMarker} />
|
|
14
|
+
</View>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/chip/native/tags.tsx
|
|
4
|
+
import { Chip, TagChip } from "@krizaka/ui/native";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { View } from "react-native";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function NativeChipTags() {
|
|
9
|
+
const [filter, setFilter] = useState(["regular"]);
|
|
10
|
+
return /* @__PURE__ */ jsxs(View, { style: { gap: 16, width: 340 }, children: [
|
|
11
|
+
/* @__PURE__ */ jsxs(Chip.Group, { type: "multiple", "aria-label": "Filter clients by tag", value: filter, onValueChange: setFilter, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(TagChip, { value: "regular", marker: "blue", children: "Regular" }),
|
|
13
|
+
/* @__PURE__ */ jsx(TagChip, { value: "to-follow", marker: "amber", children: "To follow up" }),
|
|
14
|
+
/* @__PURE__ */ jsx(TagChip, { value: "late", marker: "red", children: "Late payer" })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ jsx(View, { style: { flexDirection: "row", gap: 8 }, children: /* @__PURE__ */ jsx(TagChip, { marker: "green", shape: "ribbon", removable: true, removeLabel: "Remove the tag Pick-up", onRemove: () => {
|
|
17
|
+
}, children: "Pick-up" }) })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
NativeChipTags as default
|
|
22
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Chip, TagChip } from "@krizaka/ui/native";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
|
|
5
|
+
// A client's tags (a fictitious bike workshop): the marker beside the name, a dot or a ribbon.
|
|
6
|
+
export default function NativeChipTags() {
|
|
7
|
+
const [filter, setFilter] = useState(["regular"]);
|
|
8
|
+
return (
|
|
9
|
+
<View style={{ gap: 16, width: 340 }}>
|
|
10
|
+
<Chip.Group type="multiple" aria-label="Filter clients by tag" value={filter} onValueChange={setFilter}>
|
|
11
|
+
<TagChip value="regular" marker="blue">Regular</TagChip>
|
|
12
|
+
<TagChip value="to-follow" marker="amber">To follow up</TagChip>
|
|
13
|
+
<TagChip value="late" marker="red">Late payer</TagChip>
|
|
14
|
+
</Chip.Group>
|
|
15
|
+
<View style={{ flexDirection: "row", gap: 8 }}>
|
|
16
|
+
<TagChip marker="green" shape="ribbon" removable removeLabel="Remove the tag Pick-up" onRemove={() => {}}>Pick-up</TagChip>
|
|
17
|
+
</View>
|
|
18
|
+
</View>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/chip/tags.tsx
|
|
4
|
+
import { Chip, TagChip } from "@krizaka/ui/chip";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function ChipTags() {
|
|
8
|
+
const [filter, setFilter] = React.useState(["regular"]);
|
|
9
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
10
|
+
/* @__PURE__ */ jsxs(Chip.Group, { type: "multiple", label: "Filter clients by tag", value: filter, onValueChange: setFilter, children: [
|
|
11
|
+
/* @__PURE__ */ jsx(TagChip, { value: "regular", marker: "blue", children: "Regular" }),
|
|
12
|
+
/* @__PURE__ */ jsx(TagChip, { value: "to-follow", marker: "amber", children: "To follow up" }),
|
|
13
|
+
/* @__PURE__ */ jsx(TagChip, { value: "vip", marker: "violet", children: "Gift cards" }),
|
|
14
|
+
/* @__PURE__ */ jsx(TagChip, { value: "late", marker: "red", children: "Late payer" })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
17
|
+
/* @__PURE__ */ jsx(TagChip, { marker: "green", shape: "ribbon", removable: true, removeLabel: "Remove the tag Pick-up", onRemove: () => {
|
|
18
|
+
}, children: "Pick-up" }),
|
|
19
|
+
/* @__PURE__ */ jsx(TagChip, { marker: "gray", shape: "ribbon", removable: true, removeLabel: "Remove the tag Winter storage", onRemove: () => {
|
|
20
|
+
}, children: "Winter storage" })
|
|
21
|
+
] })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
ChipTags as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Chip, TagChip } from "@krizaka/ui/chip";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
// A client's tags (a fictitious bike workshop): the marker sits beside the name, in a dot or in a ribbon; the name says it all.
|
|
7
|
+
export default function ChipTags() {
|
|
8
|
+
const [filter, setFilter] = React.useState(["regular"]);
|
|
9
|
+
return (
|
|
10
|
+
<div className="flex flex-col gap-4">
|
|
11
|
+
<Chip.Group type="multiple" label="Filter clients by tag" value={filter} onValueChange={setFilter}>
|
|
12
|
+
<TagChip value="regular" marker="blue">Regular</TagChip>
|
|
13
|
+
<TagChip value="to-follow" marker="amber">To follow up</TagChip>
|
|
14
|
+
<TagChip value="vip" marker="violet">Gift cards</TagChip>
|
|
15
|
+
<TagChip value="late" marker="red">Late payer</TagChip>
|
|
16
|
+
</Chip.Group>
|
|
17
|
+
<div className="flex flex-wrap gap-2">
|
|
18
|
+
<TagChip marker="green" shape="ribbon" removable removeLabel="Remove the tag Pick-up" onRemove={() => {}}>Pick-up</TagChip>
|
|
19
|
+
<TagChip marker="gray" shape="ribbon" removable removeLabel="Remove the tag Winter storage" onRemove={() => {}}>Winter storage</TagChip>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/dashboard-layout/today.tsx
|
|
4
|
+
import { Badge } from "@krizaka/ui/badge";
|
|
5
|
+
import { Button } from "@krizaka/ui/button";
|
|
6
|
+
import { DashboardLayout, Widget } from "@krizaka/ui/dashboard-layout";
|
|
7
|
+
import { Stat } from "@krizaka/ui/stat";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var link = "font-semibold text-fg-accent underline underline-offset-2";
|
|
10
|
+
function DashboardLayoutToday() {
|
|
11
|
+
return /* @__PURE__ */ jsx("div", { className: "brand-akinaza w-full", children: /* @__PURE__ */ jsxs(
|
|
12
|
+
DashboardLayout,
|
|
13
|
+
{
|
|
14
|
+
title: "Good morning, Eric",
|
|
15
|
+
date: "Monday, October 26",
|
|
16
|
+
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx("a", { className: link, href: "#unpaid", children: "2 invoices" }),
|
|
18
|
+
" are waiting for payment and ",
|
|
19
|
+
/* @__PURE__ */ jsx("a", { className: link, href: "#visits", children: "3 visits" }),
|
|
20
|
+
" are planned today."
|
|
21
|
+
] }),
|
|
22
|
+
actions: /* @__PURE__ */ jsx(Button, { size: "sm", variant: "primary", children: "New invoice" }),
|
|
23
|
+
quickActions: [
|
|
24
|
+
{ id: "invoice", label: "New invoice", hint: "From a visit or a quote", href: "#invoice" },
|
|
25
|
+
{ id: "client", label: "New client", hint: "Name and a contact", href: "#client" },
|
|
26
|
+
{ id: "visit", label: "Plan a visit", hint: "Pick a time", href: "#visit" },
|
|
27
|
+
{ id: "expense", label: "Add an expense", hint: "A photo is enough", href: "#expense" }
|
|
28
|
+
],
|
|
29
|
+
quickActionsLabel: "Quick access",
|
|
30
|
+
side: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Widget, { title: "This month", level: 3, description: "October 1 \u2013 26", children: /* @__PURE__ */ jsx(Stat, { label: "Invoiced", value: "$4,280", trend: "up", trendLabel: "+12 %" }) }),
|
|
32
|
+
/* @__PURE__ */ jsx(Widget, { title: "Next steps", level: 3, children: /* @__PURE__ */ jsxs("ul", { className: "flex list-none flex-col gap-2 p-0 text-sm", children: [
|
|
33
|
+
/* @__PURE__ */ jsx("li", { children: "Send the Gagnon quote" }),
|
|
34
|
+
/* @__PURE__ */ jsx("li", { children: "Call Mme Roy about her invoice" })
|
|
35
|
+
] }) }),
|
|
36
|
+
/* @__PURE__ */ jsx(Widget, { title: "Notes", level: 3, children: /* @__PURE__ */ jsx("p", { className: "m-0 text-sm text-fg-secondary", children: "Tax instalment is due on the 15th." }) })
|
|
37
|
+
] }),
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx(Widget, { title: "Waiting for payment", span: 2, action: /* @__PURE__ */ jsx(Badge, { tone: "warning", children: "2" }), children: /* @__PURE__ */ jsxs("ul", { className: "flex list-none flex-col gap-2 p-0 text-sm", children: [
|
|
40
|
+
/* @__PURE__ */ jsx("li", { children: "Gagnon \u2014 $640, 9 days late" }),
|
|
41
|
+
/* @__PURE__ */ jsx("li", { children: "Roy \u2014 $215, due Friday" })
|
|
42
|
+
] }) }),
|
|
43
|
+
/* @__PURE__ */ jsx(Widget, { title: "Today", span: 2, children: /* @__PURE__ */ jsxs("ul", { className: "flex list-none flex-col gap-2 p-0 text-sm", children: [
|
|
44
|
+
/* @__PURE__ */ jsx("li", { children: "9:00 \u2014 Lavoie, kitchen taps" }),
|
|
45
|
+
/* @__PURE__ */ jsx("li", { children: "11:30 \u2014 Roy, quote visit" }),
|
|
46
|
+
/* @__PURE__ */ jsx("li", { children: "2:00 \u2014 Gagnon, follow-up" })
|
|
47
|
+
] }) })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
) });
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
DashboardLayoutToday as default
|
|
54
|
+
};
|