@krizaka/ui 3.55.0 → 3.60.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 +2 -1
- package/dist/account-settings.d.ts +153 -61
- package/dist/account-settings.js +240 -97
- 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 +2 -1
- package/dist/app-header/search.d.ts +8 -7
- package/dist/app-header.d.ts +2 -1
- package/dist/app-shell.d.ts +26 -25
- package/dist/argument-card.d.ts +3 -2
- 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 +4 -2
- package/dist/blocks.css +183 -4
- 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/checkbox.d.ts +2 -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 +10 -1
- package/dist/choice-grid.d.ts +3 -2
- package/dist/chunk-27AWSJTK.js +46 -0
- package/dist/chunk-27AWSJTK.js.map +1 -0
- package/dist/chunk-44FU32KP.js +2 -0
- package/dist/chunk-44FU32KP.js.map +1 -0
- package/dist/{chunk-AEP3K4YD.js → chunk-4GQH27IT.js} +2 -2
- package/dist/{chunk-QWKCNSPF.js → chunk-5LANVCK7.js} +125 -73
- 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-7J2L4HOD.js +340 -0
- package/dist/chunk-7J2L4HOD.js.map +1 -0
- package/dist/{chunk-7U5TXA5Q.js → chunk-BQ4EOR2O.js} +74 -2
- package/dist/chunk-BQ4EOR2O.js.map +1 -0
- package/dist/chunk-F6JTHPHE.js +399 -0
- package/dist/chunk-F6JTHPHE.js.map +1 -0
- package/dist/chunk-OGWB76BR.js +90 -0
- package/dist/chunk-OGWB76BR.js.map +1 -0
- package/dist/{chunk-VIPSZXO4.js → chunk-UYGUSYIC.js} +72 -2
- package/dist/chunk-UYGUSYIC.js.map +1 -0
- 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/code-block.d.ts +2 -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 +2 -1
- package/dist/confirm-button.d.ts +2 -1
- package/dist/contact-page.d.ts +2 -1
- package/dist/continue-prompt.d.ts +2 -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 +45 -2
- package/dist/data-table.js +7 -3
- package/dist/date-picker.d.ts +29 -28
- package/dist/decision-list.d.ts +2 -1
- package/dist/description-list.d.ts +2 -1
- package/dist/detail-layout.d.ts +153 -20
- package/dist/detail-layout.js +73 -4
- 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 +17 -6
- package/dist/doodle.js +40 -9
- package/dist/doodle.js.map +1 -1
- package/dist/drop-overlay.d.ts +2 -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 +2 -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/file-upload.d.ts +16 -15
- 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 +8 -7
- package/dist/form/server.d.ts +2 -1
- package/dist/form.d.ts +2 -1
- package/dist/gallery-page.d.ts +2 -1
- package/dist/genui.d.ts +2 -1
- package/dist/genui.js +3 -3
- 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 +5 -4
- 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 +2 -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 +2 -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/loader.d.ts +2 -1
- package/dist/longform-page.d.ts +2 -1
- package/dist/maintenance-screen.d.ts +5 -4
- package/dist/map.d.ts +14 -13
- package/dist/map.js +24 -0
- package/dist/map.js.map +1 -1
- package/dist/markdown.d.ts +2 -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 +2 -1
- package/dist/media-capture.d.ts +5 -4
- 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/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 +24 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native/markdown.d.ts +2 -1
- package/dist/native/media-capture.d.ts +2 -1
- package/dist/native/media-picker.d.ts +2 -1
- package/dist/native/vertical-video.d.ts +2 -1
- package/dist/native/video-player.d.ts +2 -1
- package/dist/native.d.ts +230 -1
- package/dist/native.js +1465 -965
- package/dist/native.js.map +1 -1
- package/dist/nav-bar/me.d.ts +2 -1
- package/dist/nav-bar.d.ts +2 -1
- package/dist/next-actions.d.ts +2 -1
- package/dist/notification-preferences.d.ts +23 -22
- package/dist/notification-preferences.js +4 -3
- package/dist/notification-preferences.js.map +1 -1
- 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-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/popover.d.ts +2 -1
- package/dist/pricing-page.d.ts +2 -1
- package/dist/product-page.d.ts +2 -1
- package/dist/profile-card.d.ts +2 -1
- package/dist/progress.d.ts +2 -1
- package/dist/promise-card.d.ts +2 -1
- package/dist/quota-meter.d.ts +2 -1
- package/dist/radio-group.d.ts +2 -1
- package/dist/radio-group.js +3 -3
- package/dist/rail-nav.d.ts +17 -16
- package/dist/rail-nav.js +22 -56
- package/dist/rail-nav.js.map +1 -1
- package/dist/recipes.d.ts +2 -1
- package/dist/retro-tv.d.ts +2 -1
- package/dist/router.d.ts +2 -1
- package/dist/scroll-stage.d.ts +2 -1
- package/dist/search-field.d.ts +2 -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 +2 -1
- package/dist/signature.d.ts +2 -1
- 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/sites.d.ts +2 -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/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/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 +2 -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 +2 -1
- package/dist/swipe-deck.d.ts +2 -1
- package/dist/switch.d.ts +2 -1
- package/dist/tabs.d.ts +2 -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 +4 -20
- package/dist/taped-photo.js.map +1 -1
- package/dist/terminal-replay.d.ts +2 -1
- package/dist/terminal-replay.js +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/update-prompt.d.ts +11 -10
- 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-trimmer.d.ts +2 -1
- package/dist/virtual.d.ts +8 -7
- package/dist/wall.d.ts +79 -0
- package/dist/wall.js +127 -0
- package/dist/wall.js.map +1 -0
- package/dist/waveform.d.ts +2 -1
- package/package.json +140 -41
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +257 -5
- 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/anatomy-plate.json +1 -1
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- 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 +1 -1
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +116 -6
- 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 +386 -11
- 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 +91 -5
- package/registry/data-table.json +156 -5
- 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 +199 -5
- 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 +115 -22
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +2 -2
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/error-page.json +1 -1
- 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/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/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/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/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/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/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/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/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/examples/wall/brick.d.ts +4 -0
- package/registry/examples/wall/brick.js +14 -0
- package/registry/examples/wall/brick.tsx +8 -0
- package/registry/examples/wall/composition-fr.d.ts +4 -0
- package/registry/examples/wall/composition-fr.js +37 -0
- package/registry/examples/wall/composition-fr.tsx +18 -0
- package/registry/examples/wall/composition.d.ts +4 -0
- package/registry/examples/wall/composition.js +38 -0
- package/registry/examples/wall/composition.tsx +18 -0
- package/registry/examples/wall/pinned-note.d.ts +4 -0
- package/registry/examples/wall/pinned-note.js +15 -0
- package/registry/examples/wall/pinned-note.tsx +9 -0
- package/registry/examples/wall/plaster.d.ts +4 -0
- package/registry/examples/wall/plaster.js +14 -0
- package/registry/examples/wall/plaster.tsx +8 -0
- package/registry/examples/wall/polaroid.d.ts +4 -0
- package/registry/examples/wall/polaroid.js +19 -0
- package/registry/examples/wall/polaroid.tsx +10 -0
- package/registry/examples/wall/ridge.d.ts +4 -0
- package/registry/examples/wall/ridge.js +14 -0
- package/registry/examples/wall/ridge.tsx +8 -0
- package/registry/examples/wall/shop-sign.d.ts +4 -0
- package/registry/examples/wall/shop-sign.js +16 -0
- package/registry/examples/wall/shop-sign.tsx +10 -0
- package/registry/examples/wall/zellige.d.ts +4 -0
- package/registry/examples/wall/zellige.js +14 -0
- package/registry/examples/wall/zellige.tsx +8 -0
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +208 -8
- 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 +227 -0
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +355 -30
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +565 -0
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +548 -0
- 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 +156 -10
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +174 -0
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/status-chip.json +350 -0
- 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 +38 -8
- 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 +189 -12
- 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 +3 -3
- 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/verified-badge.json +1 -1
- package/registry/versus-card.json +194 -0
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +1 -1
- package/registry/virtual.json +2 -2
- package/registry/wall.json +511 -0
- package/registry/waveform.json +1 -1
- package/dist/chunk-7U5TXA5Q.js.map +0 -1
- package/dist/chunk-OIMXKRXF.js +0 -179
- package/dist/chunk-OIMXKRXF.js.map +0 -1
- package/dist/chunk-QWKCNSPF.js.map +0 -1
- package/dist/chunk-VIPSZXO4.js.map +0 -1
- /package/dist/{chunk-AEP3K4YD.js.map → chunk-4GQH27IT.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
DropdownMenu,
|
|
14
14
|
FilterBar,
|
|
15
15
|
FilterMenu
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F6JTHPHE.js";
|
|
17
17
|
import {
|
|
18
18
|
cn
|
|
19
19
|
} from "./chunk-NSLXEDIS.js";
|
|
@@ -250,6 +250,52 @@ var filterRange = (row, id, [min, max]) => {
|
|
|
250
250
|
filterRange.autoRemove = (value) => !Array.isArray(value) || value[0] == null && value[1] == null;
|
|
251
251
|
var FILTERS = { text: filterText, facet: filterFacet, range: filterRange };
|
|
252
252
|
|
|
253
|
+
// src/data-table/selection-bar.tsx
|
|
254
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
255
|
+
var selectionBarLabels = {
|
|
256
|
+
bar: "Actions on the selection",
|
|
257
|
+
selected: (count) => `${count.toLocaleString("en")} selected`,
|
|
258
|
+
clear: "Clear selection",
|
|
259
|
+
tooMany: (max) => `At most ${max.toLocaleString("en")} at a time`
|
|
260
|
+
};
|
|
261
|
+
function SelectionBar({ count, children, onClear, max, result, labels: given, className, ...props }) {
|
|
262
|
+
const labels = { ...selectionBarLabels, ...given };
|
|
263
|
+
const over = max !== void 0 && count > max;
|
|
264
|
+
return /* @__PURE__ */ jsxs2(
|
|
265
|
+
"div",
|
|
266
|
+
{
|
|
267
|
+
role: "toolbar",
|
|
268
|
+
"aria-label": labels.bar,
|
|
269
|
+
"data-over": over ? "" : void 0,
|
|
270
|
+
hidden: count === 0,
|
|
271
|
+
className: cn(
|
|
272
|
+
"sticky bottom-(--kz-dock-offset,0px) z-20 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-lg border border-border-default bg-surface-1 px-3 py-2.5 shadow-md",
|
|
273
|
+
"max-md:rounded-b-none max-md:pb-[max(0.625rem,env(safe-area-inset-bottom))]",
|
|
274
|
+
"[&_[role=toolbar]]:contents",
|
|
275
|
+
className
|
|
276
|
+
),
|
|
277
|
+
...props,
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ jsxs2("p", { className: "m-0 text-sm font-semibold text-fg tabular-nums", "aria-live": "polite", "aria-atomic": true, children: [
|
|
280
|
+
count > 0 ? labels.selected(count) : "",
|
|
281
|
+
over && max !== void 0 ? /* @__PURE__ */ jsx2("span", { className: "ml-2 font-normal text-fg-danger", children: labels.tooMany(max) }) : null
|
|
282
|
+
] }),
|
|
283
|
+
/* @__PURE__ */ jsx2("div", { className: cn("flex flex-wrap items-center gap-2", over && "pointer-events-none opacity-40"), inert: over || void 0, children }),
|
|
284
|
+
/* @__PURE__ */ jsx2(
|
|
285
|
+
"button",
|
|
286
|
+
{
|
|
287
|
+
type: "button",
|
|
288
|
+
onClick: onClear,
|
|
289
|
+
className: "ml-auto inline-flex h-9 items-center rounded-md px-2.5 text-xs font-semibold text-fg-accent hover:bg-surface-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
290
|
+
children: labels.clear
|
|
291
|
+
}
|
|
292
|
+
),
|
|
293
|
+
/* @__PURE__ */ jsx2("p", { className: "m-0 basis-full text-xs text-fg-secondary empty:hidden", "aria-live": "polite", "aria-atomic": true, children: result })
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
|
|
253
299
|
// src/data-table/use-route-table.ts
|
|
254
300
|
import * as React from "react";
|
|
255
301
|
import { useRouteSearch } from "@krizaka/ui/router";
|
|
@@ -367,7 +413,7 @@ function useRouteTable(routeKey, defaults, columns) {
|
|
|
367
413
|
}
|
|
368
414
|
|
|
369
415
|
// src/data-table/data-table.tsx
|
|
370
|
-
import { jsx as
|
|
416
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
371
417
|
var dataTable = tv2({
|
|
372
418
|
slots: {
|
|
373
419
|
root: "@container w-full overflow-clip rounded-xl border border-border-default bg-surface-1",
|
|
@@ -571,6 +617,9 @@ function DataTable({
|
|
|
571
617
|
defaultSelected = NONE2,
|
|
572
618
|
onSelectedChange,
|
|
573
619
|
rowLabel,
|
|
620
|
+
bulkActions,
|
|
621
|
+
bulkMax,
|
|
622
|
+
bulkResult,
|
|
574
623
|
groupBy: groupByProp,
|
|
575
624
|
defaultGroupBy = NONE2,
|
|
576
625
|
onGroupByChange,
|
|
@@ -785,7 +834,7 @@ function DataTable({
|
|
|
785
834
|
return { "data-pin": position, style: { ["--dt-pin"]: `${offset}px` } };
|
|
786
835
|
};
|
|
787
836
|
const width = (column) => fixedLayout || byId.get(column.id)?.width ? { width: column.getSize() } : void 0;
|
|
788
|
-
const message = (content, alert) => /* @__PURE__ */
|
|
837
|
+
const message = (content, alert) => /* @__PURE__ */ jsx3("tr", { role: "row", className: s2.tr({ className: "hover:bg-transparent" }), children: /* @__PURE__ */ jsx3("td", { role: "cell", colSpan: span, "data-card": "message", className: s2.td({ className: s2.message() }), children: alert ? /* @__PURE__ */ jsx3("div", { role: "alert", children: content }) : content }) });
|
|
789
838
|
const cardOf = (column) => column?.card === "title" || column && !column.card && column.type === "title" ? "title" : column?.card === "hidden" ? "hidden" : void 0;
|
|
790
839
|
const contentOf = (column, original) => {
|
|
791
840
|
if (column.cell) return column.cell(original);
|
|
@@ -796,24 +845,24 @@ function DataTable({
|
|
|
796
845
|
case "title": {
|
|
797
846
|
const sub = column.subtitle?.(original);
|
|
798
847
|
const href = column.href?.(original);
|
|
799
|
-
return /* @__PURE__ */
|
|
800
|
-
href ? /* @__PURE__ */
|
|
801
|
-
sub ? /* @__PURE__ */
|
|
848
|
+
return /* @__PURE__ */ jsxs3("span", { className: "block min-w-0", children: [
|
|
849
|
+
href ? /* @__PURE__ */ jsx3("a", { href, className: cn("block font-semibold text-fg no-underline hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring", cut, list && LIST_LINK[L]), title: text, children: text }) : /* @__PURE__ */ jsx3("span", { className: cn("block font-semibold text-fg", cut), title: text, children: text }),
|
|
850
|
+
sub ? /* @__PURE__ */ jsx3("span", { className: cn("block font-mono text-xs text-fg-tertiary", cut), children: sub }) : null
|
|
802
851
|
] });
|
|
803
852
|
}
|
|
804
853
|
case "number":
|
|
805
|
-
return /* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ jsxs3("span", { children: [
|
|
806
855
|
typeof value === "number" ? value.toLocaleString("en") : text,
|
|
807
|
-
column.unit ? /* @__PURE__ */
|
|
856
|
+
column.unit ? /* @__PURE__ */ jsx3("span", { className: "ms-1 text-fg-secondary", children: column.unit }) : null
|
|
808
857
|
] });
|
|
809
858
|
case "link": {
|
|
810
859
|
const href = column.href?.(original);
|
|
811
|
-
return href ? /* @__PURE__ */
|
|
860
|
+
return href ? /* @__PURE__ */ jsx3("a", { href, title: text, className: cn("block text-fg-accent underline-offset-2 hover:underline", cut), children: text }) : /* @__PURE__ */ jsx3("span", { className: cn("block", cut), title: text, children: text });
|
|
812
861
|
}
|
|
813
862
|
default: {
|
|
814
863
|
const lines = column.clamp ?? (column.type === "text" ? 2 : void 0);
|
|
815
864
|
if (!column.nowrap && !lines) return text;
|
|
816
|
-
return /* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ jsx3("span", { className: column.nowrap ? cn("block", cut || "truncate") : CLAMP[lines], title: text, children: text });
|
|
817
866
|
}
|
|
818
867
|
}
|
|
819
868
|
};
|
|
@@ -831,25 +880,25 @@ function DataTable({
|
|
|
831
880
|
const leaves = row.getLeafRows().filter((r) => !r.getIsGrouped()).map((r) => r.original);
|
|
832
881
|
if (cell.column.id === row.groupingColumnId) {
|
|
833
882
|
const value = display(row.groupingValue);
|
|
834
|
-
content = /* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
883
|
+
content = /* @__PURE__ */ jsxs3("button", { type: "button", className: s2.toggle({ className: "px-1.5 font-semibold text-fg" }), "aria-expanded": row.getIsExpanded(), onClick: row.getToggleExpandedHandler(), children: [
|
|
884
|
+
/* @__PURE__ */ jsx3(ChevronGlyph, { direction: "right", className: "h-4 w-4" }),
|
|
836
885
|
labels.group(value, leaves.length)
|
|
837
886
|
] });
|
|
838
887
|
} else content = column.aggregate ? column.aggregate(leaves) : null;
|
|
839
888
|
} else {
|
|
840
889
|
content = contentOf(column, row.original);
|
|
841
890
|
if (list && column === titleColumn && facts.length > 0) {
|
|
842
|
-
content = /* @__PURE__ */
|
|
891
|
+
content = /* @__PURE__ */ jsxs3("span", { className: "block min-w-0", children: [
|
|
843
892
|
content,
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
i > 0 ? /* @__PURE__ */
|
|
893
|
+
/* @__PURE__ */ jsx3("span", { "data-facts": "", className: LIST_FACTS[L], children: facts.map((c, i) => /* @__PURE__ */ jsxs3(React2.Fragment, { children: [
|
|
894
|
+
i > 0 ? /* @__PURE__ */ jsx3("span", { "aria-hidden": true, children: " \xB7 " }) : null,
|
|
846
895
|
contentOf(c, row.original)
|
|
847
896
|
] }, c.id)) })
|
|
848
897
|
] });
|
|
849
898
|
}
|
|
850
899
|
if (first && inlineToggle) {
|
|
851
|
-
content = /* @__PURE__ */
|
|
852
|
-
/* @__PURE__ */
|
|
900
|
+
content = /* @__PURE__ */ jsxs3("span", { className: "flex min-w-0 items-center gap-1", children: [
|
|
901
|
+
/* @__PURE__ */ jsx3(
|
|
853
902
|
"button",
|
|
854
903
|
{
|
|
855
904
|
type: "button",
|
|
@@ -857,10 +906,10 @@ function DataTable({
|
|
|
857
906
|
"aria-expanded": row.getIsExpanded(),
|
|
858
907
|
"aria-label": labels.showMore(nameOf(row)),
|
|
859
908
|
onClick: row.getToggleExpandedHandler(),
|
|
860
|
-
children: /* @__PURE__ */
|
|
909
|
+
children: /* @__PURE__ */ jsx3(ChevronGlyph, { direction: "right", className: "h-4 w-4" })
|
|
861
910
|
}
|
|
862
911
|
),
|
|
863
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ jsx3("span", { className: "min-w-0 flex-1", children: content })
|
|
864
913
|
] });
|
|
865
914
|
}
|
|
866
915
|
}
|
|
@@ -873,7 +922,7 @@ function DataTable({
|
|
|
873
922
|
(type || column.priority) && column.minWidth !== void 0 ? MIN[L] : "",
|
|
874
923
|
column.maxWidth !== void 0 ? MAX[L] : ""
|
|
875
924
|
].join(" ");
|
|
876
|
-
return /* @__PURE__ */
|
|
925
|
+
return /* @__PURE__ */ jsx3(
|
|
877
926
|
"td",
|
|
878
927
|
{
|
|
879
928
|
role: "cell",
|
|
@@ -899,7 +948,7 @@ function DataTable({
|
|
|
899
948
|
const canExpand = !grouped && (renderDetail ? true : row.getCanExpand());
|
|
900
949
|
const showDetail = detailed && !grouped && row.getIsExpanded() && !virtualized;
|
|
901
950
|
const cells = row.getVisibleCells();
|
|
902
|
-
const main = /* @__PURE__ */
|
|
951
|
+
const main = /* @__PURE__ */ jsxs3(
|
|
903
952
|
"tr",
|
|
904
953
|
{
|
|
905
954
|
role: "row",
|
|
@@ -910,25 +959,25 @@ function DataTable({
|
|
|
910
959
|
"data-group": grouped ? "" : void 0,
|
|
911
960
|
className: s2.tr({ className: grouped ? s2.groupRow() : void 0 }),
|
|
912
961
|
children: [
|
|
913
|
-
selectable && /* @__PURE__ */
|
|
914
|
-
hasExpander && /* @__PURE__ */
|
|
962
|
+
selectable && /* @__PURE__ */ jsx3("td", { role: "cell", className: s2.td({ className: s2.select() }), children: grouped ? null : /* @__PURE__ */ jsx3(Checkbox, { checked: isChosen, onCheckedChange: () => row.toggleSelected(), "aria-label": labels.selectRow(nameOf(row)) }) }),
|
|
963
|
+
hasExpander && /* @__PURE__ */ jsx3("td", { role: "cell", className: s2.td({ className: s2.expander() }), children: canExpand ? /* @__PURE__ */ jsx3("button", { type: "button", className: s2.toggle(), "aria-expanded": row.getIsExpanded(), "aria-label": labels.expandRow(nameOf(row)), onClick: row.getToggleExpandedHandler(), children: /* @__PURE__ */ jsx3(ChevronGlyph, { direction: "right", className: "h-4 w-4" }) }) : null }),
|
|
915
964
|
cells.map((cell, i) => dataCell(row, cell, i === 0))
|
|
916
965
|
]
|
|
917
966
|
}
|
|
918
967
|
);
|
|
919
|
-
if (!showDetail) return /* @__PURE__ */
|
|
968
|
+
if (!showDetail) return /* @__PURE__ */ jsx3(React2.Fragment, { children: main }, row.id);
|
|
920
969
|
const left = visibleColumns.filter((c) => {
|
|
921
970
|
const column = byId.get(c.id);
|
|
922
971
|
return priorityOf(column) > 1 || listAway.includes(column);
|
|
923
972
|
});
|
|
924
|
-
return /* @__PURE__ */
|
|
973
|
+
return /* @__PURE__ */ jsxs3(React2.Fragment, { children: [
|
|
925
974
|
main,
|
|
926
|
-
/* @__PURE__ */
|
|
927
|
-
left.length > 0 ? /* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ jsx3("tr", { role: "row", className: s2.tr({ className: "hover:bg-transparent" }), children: /* @__PURE__ */ jsxs3("td", { role: "cell", colSpan: span, "data-card": "message", className: s2.td({ className: renderDetail ? s2.detail() : "bg-surface-0 p-0 text-left" }), children: [
|
|
976
|
+
left.length > 0 ? /* @__PURE__ */ jsx3("dl", { className: cn("m-0 grid gap-3 text-left", renderDetail ? "mb-4" : cn("px-4 py-4", maxPriority > 1 ? PANEL[L][maxPriority] : "hidden", listAway.length > 0 && LIST_PANEL[L])), children: left.map((c) => {
|
|
928
977
|
const column = byId.get(c.id);
|
|
929
|
-
return /* @__PURE__ */
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
-
/* @__PURE__ */
|
|
978
|
+
return /* @__PURE__ */ jsxs3("div", { className: cn(listAway.includes(column) ? LIST_IN_DETAIL[L] : IN_DETAIL[L][priorityOf(column)], "grid-cols-[minmax(5rem,8rem)_minmax(0,1fr)] items-baseline gap-3"), children: [
|
|
979
|
+
/* @__PURE__ */ jsx3("dt", { className: "text-xs font-semibold text-fg-secondary", children: column.header }),
|
|
980
|
+
/* @__PURE__ */ jsx3("dd", { className: "m-0 min-w-0 text-sm text-fg", children: contentOf(column, row.original) })
|
|
932
981
|
] }, c.id);
|
|
933
982
|
}) }) : null,
|
|
934
983
|
renderDetail ? renderDetail(row.original) : null
|
|
@@ -937,17 +986,17 @@ function DataTable({
|
|
|
937
986
|
};
|
|
938
987
|
let body;
|
|
939
988
|
if (loading) {
|
|
940
|
-
body = Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */
|
|
941
|
-
selectable && /* @__PURE__ */
|
|
942
|
-
hasExpander && /* @__PURE__ */
|
|
943
|
-
visibleColumns.map((column) => /* @__PURE__ */
|
|
989
|
+
body = Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ jsxs3("tr", { role: "row", "aria-hidden": true, className: s2.tr(), children: [
|
|
990
|
+
selectable && /* @__PURE__ */ jsx3("td", { role: "cell", className: s2.td({ className: s2.select() }) }),
|
|
991
|
+
hasExpander && /* @__PURE__ */ jsx3("td", { role: "cell", className: s2.td({ className: s2.expander() }) }),
|
|
992
|
+
visibleColumns.map((column) => /* @__PURE__ */ jsx3("td", { role: "cell", "data-card": list ? void 0 : cardOf(byId.get(column.id)), "data-list": list ? listPlace(null, byId.get(column.id)) : void 0, className: s2.td(), children: /* @__PURE__ */ jsx3("div", { className: s2.skeleton() }) }, column.id))
|
|
944
993
|
] }, `loading-${i}`));
|
|
945
994
|
} else if (error) body = message(error, true);
|
|
946
995
|
else if (pageRows.length === 0) body = message(empty2 ?? labels.empty);
|
|
947
996
|
else if (windowItems) body = windowItems.map((item) => renderRow(pageRows[item.index], item.index));
|
|
948
997
|
else body = pageRows.map((row, i) => renderRow(row, i));
|
|
949
998
|
const headers = table.getHeaderGroups().at(-1)?.headers ?? [];
|
|
950
|
-
const tableElement = /* @__PURE__ */
|
|
999
|
+
const tableElement = /* @__PURE__ */ jsxs3(
|
|
951
1000
|
"table",
|
|
952
1001
|
{
|
|
953
1002
|
role: "table",
|
|
@@ -956,12 +1005,12 @@ function DataTable({
|
|
|
956
1005
|
className: s2.table({ className: fixedLayout ? "table-fixed" : void 0 }),
|
|
957
1006
|
style: fixedLayout ? { minWidth: table.getTotalSize() + (selectable ? 40 : 0) + (hasExpander ? 40 : 0) } : void 0,
|
|
958
1007
|
children: [
|
|
959
|
-
/* @__PURE__ */
|
|
1008
|
+
/* @__PURE__ */ jsxs3("caption", { className: showCaption ? s2.caption() : "sr-only", children: [
|
|
960
1009
|
caption,
|
|
961
|
-
loading ? /* @__PURE__ */
|
|
1010
|
+
loading ? /* @__PURE__ */ jsx3("span", { className: "sr-only", children: ` \u2014 ${labels.loading}` }) : null
|
|
962
1011
|
] }),
|
|
963
|
-
/* @__PURE__ */
|
|
964
|
-
selectable && /* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ jsx3("thead", { role: "rowgroup", className: s2.thead({ className: virtualized ? "sticky top-0 z-10 bg-surface-2" : void 0 }), children: /* @__PURE__ */ jsxs3("tr", { role: "row", "aria-rowindex": virtualized ? 1 : void 0, className: s2.headRow(), children: [
|
|
1013
|
+
selectable && /* @__PURE__ */ jsx3("th", { role: "columnheader", scope: "col", "data-keep": "", className: s2.th({ className: s2.select() }), children: /* @__PURE__ */ jsx3(
|
|
965
1014
|
Checkbox,
|
|
966
1015
|
{
|
|
967
1016
|
checked: allChosen ? true : someChosen ? "indeterminate" : false,
|
|
@@ -970,7 +1019,7 @@ function DataTable({
|
|
|
970
1019
|
"aria-label": labels.selectAll
|
|
971
1020
|
}
|
|
972
1021
|
) }),
|
|
973
|
-
hasExpander && /* @__PURE__ */
|
|
1022
|
+
hasExpander && /* @__PURE__ */ jsx3("th", { role: "columnheader", scope: "col", className: s2.th({ className: s2.expander() }), children: /* @__PURE__ */ jsx3("span", { className: "sr-only", children: labels.details }) }),
|
|
974
1023
|
headers.map((header) => {
|
|
975
1024
|
const column = byId.get(header.column.id);
|
|
976
1025
|
if (!column) return null;
|
|
@@ -978,7 +1027,7 @@ function DataTable({
|
|
|
978
1027
|
const direction = sorted === "asc" ? "ascending" : sorted === "desc" ? "descending" : void 0;
|
|
979
1028
|
const { style, ...pinnedProps } = pin(header.column);
|
|
980
1029
|
const level = priorityOf(column);
|
|
981
|
-
return /* @__PURE__ */
|
|
1030
|
+
return /* @__PURE__ */ jsxs3(
|
|
982
1031
|
"th",
|
|
983
1032
|
{
|
|
984
1033
|
role: "columnheader",
|
|
@@ -989,11 +1038,11 @@ function DataTable({
|
|
|
989
1038
|
className: s2.th({ className: cn(ALIGN[column.align ?? (column.type === "number" ? "end" : "start")], level > 1 && LEAVES_HEAD[L][level]) }),
|
|
990
1039
|
style: { ...style, ...typeof stickyHeader === "number" ? { ["--dt-top"]: `${stickyHeader}px` } : {}, ...width(header.column) },
|
|
991
1040
|
children: [
|
|
992
|
-
column.sortable ? /* @__PURE__ */
|
|
1041
|
+
column.sortable ? /* @__PURE__ */ jsxs3("button", { type: "button", "aria-pressed": Boolean(direction), className: s2.sortButton(), onClick: () => header.column.toggleSorting(void 0, false), children: [
|
|
993
1042
|
column.header,
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
] }) : column.headerHidden ? /* @__PURE__ */
|
|
996
|
-
resizing && header.column.getCanResize() ? /* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ jsx3(SortGlyph, { direction, className: "h-3.5 w-3.5" })
|
|
1044
|
+
] }) : column.headerHidden ? /* @__PURE__ */ jsx3("span", { className: "sr-only", children: column.header }) : column.header,
|
|
1045
|
+
resizing && header.column.getCanResize() ? /* @__PURE__ */ jsx3(
|
|
997
1046
|
ResizeHandle,
|
|
998
1047
|
{
|
|
999
1048
|
label: labels.resize(column.header),
|
|
@@ -1011,10 +1060,10 @@ function DataTable({
|
|
|
1011
1060
|
);
|
|
1012
1061
|
})
|
|
1013
1062
|
] }) }),
|
|
1014
|
-
/* @__PURE__ */
|
|
1015
|
-
before > 0 && /* @__PURE__ */
|
|
1063
|
+
/* @__PURE__ */ jsxs3("tbody", { role: "rowgroup", className: s2.tbody(), children: [
|
|
1064
|
+
before > 0 && /* @__PURE__ */ jsx3("tr", { "aria-hidden": true, style: { height: before }, children: /* @__PURE__ */ jsx3("td", { colSpan: span }) }),
|
|
1016
1065
|
body,
|
|
1017
|
-
after > 0 && /* @__PURE__ */
|
|
1066
|
+
after > 0 && /* @__PURE__ */ jsx3("tr", { "aria-hidden": true, style: { height: after }, children: /* @__PURE__ */ jsx3("td", { colSpan: span }) })
|
|
1018
1067
|
] })
|
|
1019
1068
|
]
|
|
1020
1069
|
}
|
|
@@ -1029,7 +1078,7 @@ function DataTable({
|
|
|
1029
1078
|
exportRows: () => table.getSortedRowModel().flatRows.filter((r) => !r.getIsGrouped()).map((r) => r.original),
|
|
1030
1079
|
manualFiltering: Boolean(manual?.filtering)
|
|
1031
1080
|
};
|
|
1032
|
-
const pagination2 = paginated ? /* @__PURE__ */
|
|
1081
|
+
const pagination2 = paginated ? /* @__PURE__ */ jsx3(
|
|
1033
1082
|
Pagination,
|
|
1034
1083
|
{
|
|
1035
1084
|
page: Math.min(page, pageCount),
|
|
@@ -1042,11 +1091,11 @@ function DataTable({
|
|
|
1042
1091
|
labels: labels.pagination
|
|
1043
1092
|
}
|
|
1044
1093
|
) : null;
|
|
1045
|
-
return /* @__PURE__ */
|
|
1046
|
-
toolbar ? /* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ jsx3(DataTableContext.Provider, { value: context, children: /* @__PURE__ */ jsxs3("div", { className: s2.root({ className }), children: [
|
|
1095
|
+
toolbar ? /* @__PURE__ */ jsx3("div", { className: s2.toolbar(), children: toolbar }) : null,
|
|
1047
1096
|
virtualized ? (
|
|
1048
1097
|
// A scrolling region the keyboard can reach: Tab lands on it, the arrows scroll it.
|
|
1049
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ jsx3(
|
|
1050
1099
|
"div",
|
|
1051
1100
|
{
|
|
1052
1101
|
ref: scroller,
|
|
@@ -1058,8 +1107,9 @@ function DataTable({
|
|
|
1058
1107
|
children: tableElement
|
|
1059
1108
|
}
|
|
1060
1109
|
)
|
|
1061
|
-
) : /* @__PURE__ */
|
|
1062
|
-
|
|
1110
|
+
) : /* @__PURE__ */ jsx3("div", { className: s2.scroller({ className: sideways ? scroll ? SHADOWS : CARD_CLIP[L] : "overflow-x-clip" }), children: tableElement }),
|
|
1111
|
+
selectable && bulkActions ? /* @__PURE__ */ jsx3(SelectionBar, { count: selected.length, max: bulkMax, result: bulkResult, labels: labels.selection, onClear: () => setSelected([]), children: bulkActions({ selected: [...selected], clear: () => setSelected([]) }) }) : null,
|
|
1112
|
+
pagination2 || footer ? /* @__PURE__ */ jsxs3("div", { className: s2.footer({ className: "flex flex-col gap-3" }), children: [
|
|
1063
1113
|
pagination2,
|
|
1064
1114
|
footer
|
|
1065
1115
|
] }) : null
|
|
@@ -1076,7 +1126,7 @@ function ResizeHandle({
|
|
|
1076
1126
|
}) {
|
|
1077
1127
|
return (
|
|
1078
1128
|
// A focusable separator is interactive (WAI-ARIA "window splitter"): its value is the width, the arrows change it.
|
|
1079
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ jsx3(
|
|
1080
1130
|
"div",
|
|
1081
1131
|
{
|
|
1082
1132
|
role: "separator",
|
|
@@ -1107,7 +1157,7 @@ import * as React3 from "react";
|
|
|
1107
1157
|
|
|
1108
1158
|
// src/field/field.tsx
|
|
1109
1159
|
import { tv as tv3 } from "tailwind-variants";
|
|
1110
|
-
import { jsx as
|
|
1160
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1111
1161
|
var field2 = tv3({
|
|
1112
1162
|
slots: {
|
|
1113
1163
|
root: "flex flex-col gap-1.5",
|
|
@@ -1123,11 +1173,11 @@ var field2 = tv3({
|
|
|
1123
1173
|
var s = field2();
|
|
1124
1174
|
var invalidProps = (invalid) => invalid ? { "aria-invalid": true, "data-invalid": "" } : {};
|
|
1125
1175
|
function Input({ invalid, className, ...props }) {
|
|
1126
|
-
return /* @__PURE__ */
|
|
1176
|
+
return /* @__PURE__ */ jsx4("input", { ...invalidProps(invalid), className: s.control({ className }), ...props });
|
|
1127
1177
|
}
|
|
1128
1178
|
|
|
1129
1179
|
// src/data-table/toolbar.tsx
|
|
1130
|
-
import { jsx as
|
|
1180
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1131
1181
|
var asRange = (value) => Array.isArray(value) && value.length === 2 && (typeof value[0] !== "string" || typeof value[1] !== "string") ? [value[0], value[1]] : [null, null];
|
|
1132
1182
|
var asList = (value) => Array.isArray(value) ? value : [];
|
|
1133
1183
|
var number = (text) => text.trim() === "" || Number.isNaN(Number(text)) ? null : Number(text);
|
|
@@ -1159,7 +1209,7 @@ function DataTableFilters({ debounce = 250, children, className }) {
|
|
|
1159
1209
|
const label = labels.activeFilter(column.header, text);
|
|
1160
1210
|
return [{ id: column.id, label, onRemove: () => set(column.id, null) }];
|
|
1161
1211
|
});
|
|
1162
|
-
return /* @__PURE__ */
|
|
1212
|
+
return /* @__PURE__ */ jsxs5(
|
|
1163
1213
|
FilterBar,
|
|
1164
1214
|
{
|
|
1165
1215
|
label: labels.filters,
|
|
@@ -1172,7 +1222,7 @@ function DataTableFilters({ debounce = 250, children, className }) {
|
|
|
1172
1222
|
children: [
|
|
1173
1223
|
filterable.map((column) => {
|
|
1174
1224
|
if (column.filter === "text")
|
|
1175
|
-
return /* @__PURE__ */
|
|
1225
|
+
return /* @__PURE__ */ jsx5(
|
|
1176
1226
|
TextFilter,
|
|
1177
1227
|
{
|
|
1178
1228
|
label: labels.search(column.header),
|
|
@@ -1183,11 +1233,11 @@ function DataTableFilters({ debounce = 250, children, className }) {
|
|
|
1183
1233
|
column.id
|
|
1184
1234
|
);
|
|
1185
1235
|
if (column.filter === "facet")
|
|
1186
|
-
return /* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ jsx5(FilterMenu, { label: column.header, options: optionsOf(column), value: asList(filters[column.id]), onValueChange: (value) => set(column.id, value) }, column.id);
|
|
1187
1237
|
const [min, max] = asRange(filters[column.id]);
|
|
1188
1238
|
const bounds = manualFiltering ? void 0 : table.getColumn(column.id)?.getFacetedMinMaxValues();
|
|
1189
|
-
return /* @__PURE__ */
|
|
1190
|
-
/* @__PURE__ */
|
|
1239
|
+
return /* @__PURE__ */ jsxs5("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1240
|
+
/* @__PURE__ */ jsx5(
|
|
1191
1241
|
Input,
|
|
1192
1242
|
{
|
|
1193
1243
|
type: "number",
|
|
@@ -1199,8 +1249,8 @@ function DataTableFilters({ debounce = 250, children, className }) {
|
|
|
1199
1249
|
className: "h-11 w-28"
|
|
1200
1250
|
}
|
|
1201
1251
|
),
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ jsx5("span", { "aria-hidden": true, className: "text-fg-secondary", children: "\u2013" }),
|
|
1253
|
+
/* @__PURE__ */ jsx5(
|
|
1204
1254
|
Input,
|
|
1205
1255
|
{
|
|
1206
1256
|
type: "number",
|
|
@@ -1221,14 +1271,14 @@ function DataTableFilters({ debounce = 250, children, className }) {
|
|
|
1221
1271
|
}
|
|
1222
1272
|
function DataTableColumnsMenu({ defaultOpen, className }) {
|
|
1223
1273
|
const { table, columns, labels } = useDataTable();
|
|
1224
|
-
return /* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
1274
|
+
return /* @__PURE__ */ jsxs5(DropdownMenu.Root, { defaultOpen, modal: false, children: [
|
|
1275
|
+
/* @__PURE__ */ jsx5(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs5(Button, { variant: "outline", size: "sm", className, children: [
|
|
1226
1276
|
labels.columns,
|
|
1227
|
-
/* @__PURE__ */
|
|
1277
|
+
/* @__PURE__ */ jsx5(ChevronGlyph, { className: "h-4 w-4" })
|
|
1228
1278
|
] }) }),
|
|
1229
|
-
/* @__PURE__ */
|
|
1279
|
+
/* @__PURE__ */ jsx5(DropdownMenu.Content, { align: "end", "aria-label": labels.columns, children: columns.filter((column) => column.hideable !== false).map((column) => {
|
|
1230
1280
|
const instance = table.getColumn(column.id);
|
|
1231
|
-
return /* @__PURE__ */
|
|
1281
|
+
return /* @__PURE__ */ jsx5(
|
|
1232
1282
|
DropdownMenu.CheckboxItem,
|
|
1233
1283
|
{
|
|
1234
1284
|
checked: instance?.getIsVisible() ?? true,
|
|
@@ -1252,7 +1302,7 @@ function DataTableExport({ filename = "export.csv", onExport, className }) {
|
|
|
1252
1302
|
link.click();
|
|
1253
1303
|
setTimeout(() => URL.revokeObjectURL(url), 0);
|
|
1254
1304
|
};
|
|
1255
|
-
return /* @__PURE__ */
|
|
1305
|
+
return /* @__PURE__ */ jsx5(Button, { variant: "outline", size: "sm", className, onClick: run, children: labels.export });
|
|
1256
1306
|
}
|
|
1257
1307
|
function TextFilter({ label, value, debounce, onCommit }) {
|
|
1258
1308
|
const [draft, setDraft] = React3.useState(value);
|
|
@@ -1265,7 +1315,7 @@ function TextFilter({ label, value, debounce, onCommit }) {
|
|
|
1265
1315
|
setDraft(value);
|
|
1266
1316
|
}
|
|
1267
1317
|
}
|
|
1268
|
-
return /* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ jsx5(
|
|
1269
1319
|
SearchField,
|
|
1270
1320
|
{
|
|
1271
1321
|
label,
|
|
@@ -1287,6 +1337,8 @@ function TextFilter({ label, value, debounce, onCommit }) {
|
|
|
1287
1337
|
export {
|
|
1288
1338
|
dataTableCsv,
|
|
1289
1339
|
compareValues,
|
|
1340
|
+
selectionBarLabels,
|
|
1341
|
+
SelectionBar,
|
|
1290
1342
|
encodeSort,
|
|
1291
1343
|
decodeSort,
|
|
1292
1344
|
encodeFilter,
|
|
@@ -1301,4 +1353,4 @@ export {
|
|
|
1301
1353
|
DataTableColumnsMenu,
|
|
1302
1354
|
DataTableExport
|
|
1303
1355
|
};
|
|
1304
|
-
//# sourceMappingURL=chunk-
|
|
1356
|
+
//# sourceMappingURL=chunk-5LANVCK7.js.map
|