@repraze/kernelkit 0.0.0-stage → 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -2
- package/dist/components/accordion.d.ts +13 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +33 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +24 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +49 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +22 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +61 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +10 -0
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +18 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/attachment.d.ts +27 -0
- package/dist/components/attachment.d.ts.map +1 -0
- package/dist/components/attachment.js +76 -0
- package/dist/components/attachment.js.map +1 -0
- package/dist/components/avatar.d.ts +18 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +38 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +18 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +49 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +40 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/bubble.d.ts +22 -0
- package/dist/components/bubble.d.ts.map +1 -0
- package/dist/components/bubble.js +72 -0
- package/dist/components/bubble.js.map +1 -0
- package/dist/components/button-group.d.ts +11 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button-group.js +38 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.d.ts +26 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +78 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.d.ts +11 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +89 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/callout.d.ts +25 -0
- package/dist/components/callout.d.ts.map +1 -0
- package/dist/components/callout.js +40 -0
- package/dist/components/callout.js.map +1 -0
- package/dist/components/card.d.ts +43 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +80 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.d.ts +36 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +148 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.d.ts +45 -0
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +137 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox-group.d.ts +9 -0
- package/dist/components/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group.js +14 -0
- package/dist/components/checkbox-group.js.map +1 -0
- package/dist/components/checkbox.d.ts +6 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +27 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/code-block.d.ts +29 -0
- package/dist/components/code-block.d.ts.map +1 -0
- package/dist/components/code-block.js +87 -0
- package/dist/components/code-block.js.map +1 -0
- package/dist/components/collapsible.d.ts +11 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +21 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.d.ts +26 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.js +66 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command.d.ts +25 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +48 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.d.ts +32 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +58 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/copy-button.d.ts +21 -0
- package/dist/components/copy-button.d.ts.map +1 -0
- package/dist/components/copy-button.js +34 -0
- package/dist/components/copy-button.js.map +1 -0
- package/dist/components/data-table/data-table-utils.d.ts +18 -0
- package/dist/components/data-table/data-table-utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-utils.js +92 -0
- package/dist/components/data-table/data-table-utils.js.map +1 -0
- package/dist/components/data-table/elements/data-table-base.d.ts +24 -0
- package/dist/components/data-table/elements/data-table-base.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-base.js +28 -0
- package/dist/components/data-table/elements/data-table-base.js.map +1 -0
- package/dist/components/data-table/elements/data-table-body.d.ts +8 -0
- package/dist/components/data-table/elements/data-table-body.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-body.js +16 -0
- package/dist/components/data-table/elements/data-table-body.js.map +1 -0
- package/dist/components/data-table/elements/data-table-cell.d.ts +12 -0
- package/dist/components/data-table/elements/data-table-cell.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-cell.js +23 -0
- package/dist/components/data-table/elements/data-table-cell.js.map +1 -0
- package/dist/components/data-table/elements/data-table-filter-row.d.ts +40 -0
- package/dist/components/data-table/elements/data-table-filter-row.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-filter-row.js +117 -0
- package/dist/components/data-table/elements/data-table-filter-row.js.map +1 -0
- package/dist/components/data-table/elements/data-table-foot.d.ts +9 -0
- package/dist/components/data-table/elements/data-table-foot.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-foot.js +11 -0
- package/dist/components/data-table/elements/data-table-foot.js.map +1 -0
- package/dist/components/data-table/elements/data-table-head.d.ts +9 -0
- package/dist/components/data-table/elements/data-table-head.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-head.js +11 -0
- package/dist/components/data-table/elements/data-table-head.js.map +1 -0
- package/dist/components/data-table/elements/data-table-info-row.d.ts +7 -0
- package/dist/components/data-table/elements/data-table-info-row.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-info-row.js +19 -0
- package/dist/components/data-table/elements/data-table-info-row.js.map +1 -0
- package/dist/components/data-table/elements/data-table-row.d.ts +13 -0
- package/dist/components/data-table/elements/data-table-row.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-row.js +19 -0
- package/dist/components/data-table/elements/data-table-row.js.map +1 -0
- package/dist/components/data-table/elements/data-table-scroll.d.ts +11 -0
- package/dist/components/data-table/elements/data-table-scroll.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-scroll.js +10 -0
- package/dist/components/data-table/elements/data-table-scroll.js.map +1 -0
- package/dist/components/data-table/elements/data-table-sort-row.d.ts +28 -0
- package/dist/components/data-table/elements/data-table-sort-row.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-sort-row.js +114 -0
- package/dist/components/data-table/elements/data-table-sort-row.js.map +1 -0
- package/dist/components/data-table/elements/data-table-title-row.d.ts +11 -0
- package/dist/components/data-table/elements/data-table-title-row.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-title-row.js +16 -0
- package/dist/components/data-table/elements/data-table-title-row.js.map +1 -0
- package/dist/components/data-table/elements/data-table-virtualized-body.d.ts +10 -0
- package/dist/components/data-table/elements/data-table-virtualized-body.d.ts.map +1 -0
- package/dist/components/data-table/elements/data-table-virtualized-body.js +38 -0
- package/dist/components/data-table/elements/data-table-virtualized-body.js.map +1 -0
- package/dist/components/data-table/set-utils.d.ts +41 -0
- package/dist/components/data-table/set-utils.d.ts.map +1 -0
- package/dist/components/data-table/set-utils.js +97 -0
- package/dist/components/data-table/set-utils.js.map +1 -0
- package/dist/components/data-table/views/data-table-filter-view.d.ts +18 -0
- package/dist/components/data-table/views/data-table-filter-view.d.ts.map +1 -0
- package/dist/components/data-table/views/data-table-filter-view.js +63 -0
- package/dist/components/data-table/views/data-table-filter-view.js.map +1 -0
- package/dist/components/data-table/views/data-table-prop-view.d.ts +297 -0
- package/dist/components/data-table/views/data-table-prop-view.d.ts.map +1 -0
- package/dist/components/data-table/views/data-table-prop-view.js +44 -0
- package/dist/components/data-table/views/data-table-prop-view.js.map +1 -0
- package/dist/components/data-table/views/data-table-root-view.d.ts +8 -0
- package/dist/components/data-table/views/data-table-root-view.d.ts.map +1 -0
- package/dist/components/data-table/views/data-table-root-view.js +18 -0
- package/dist/components/data-table/views/data-table-root-view.js.map +1 -0
- package/dist/components/data-table/views/data-table-sort-view.d.ts +18 -0
- package/dist/components/data-table/views/data-table-sort-view.d.ts.map +1 -0
- package/dist/components/data-table/views/data-table-sort-view.js +70 -0
- package/dist/components/data-table/views/data-table-sort-view.js.map +1 -0
- package/dist/components/data-table/views/data-table-view.d.ts +44 -0
- package/dist/components/data-table/views/data-table-view.d.ts.map +1 -0
- package/dist/components/data-table/views/data-table-view.js +86 -0
- package/dist/components/data-table/views/data-table-view.js.map +1 -0
- package/dist/components/data-table.d.ts +20 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +26 -0
- package/dist/components/data-table.js.map +1 -0
- package/dist/components/date-picker.d.ts +43 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +45 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/dialog.d.ts +24 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +57 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/direction.d.ts +2 -0
- package/dist/components/direction.d.ts.map +1 -0
- package/dist/components/direction.js +3 -0
- package/dist/components/direction.js.map +1 -0
- package/dist/components/drawer.d.ts +18 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +84 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +45 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +77 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/empty.d.ts +15 -0
- package/dist/components/empty.d.ts.map +1 -0
- package/dist/components/empty.js +44 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/field.d.ts +25 -0
- package/dist/components/field.d.ts.map +1 -0
- package/dist/components/field.js +72 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/file-upload.d.ts +24 -0
- package/dist/components/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload.js +78 -0
- package/dist/components/file-upload.js.map +1 -0
- package/dist/components/hero.d.ts +51 -0
- package/dist/components/hero.d.ts.map +1 -0
- package/dist/components/hero.js +104 -0
- package/dist/components/hero.js.map +1 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +17 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.d.ts +23 -0
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +86 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-otp.d.ts +13 -0
- package/dist/components/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp.js +25 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.d.ts +13 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +29 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/item.d.ts +23 -0
- package/dist/components/item.d.ts.map +1 -0
- package/dist/components/item.js +89 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/kbd.d.ts +11 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +26 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +9 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/marker.d.ts +11 -0
- package/dist/components/marker.d.ts.map +1 -0
- package/dist/components/marker.js +37 -0
- package/dist/components/marker.js.map +1 -0
- package/dist/components/menubar.d.ts +23 -0
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/menubar.js +60 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/message-scroller.d.ts +11 -0
- package/dist/components/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller.js +27 -0
- package/dist/components/message-scroller.js.map +1 -0
- package/dist/components/message.d.ts +17 -0
- package/dist/components/message.d.ts.map +1 -0
- package/dist/components/message.js +24 -0
- package/dist/components/message.js.map +1 -0
- package/dist/components/meter.d.ts +18 -0
- package/dist/components/meter.d.ts.map +1 -0
- package/dist/components/meter.js +25 -0
- package/dist/components/meter.js.map +1 -0
- package/dist/components/native-select.d.ts +14 -0
- package/dist/components/native-select.d.ts.map +1 -0
- package/dist/components/native-select.js +34 -0
- package/dist/components/native-select.js.map +1 -0
- package/dist/components/navbar.d.ts +11 -0
- package/dist/components/navbar.d.ts.map +1 -0
- package/dist/components/navbar.js +44 -0
- package/dist/components/navbar.js.map +1 -0
- package/dist/components/navigation-menu.d.ts +23 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu.js +51 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/number-field.d.ts +16 -0
- package/dist/components/number-field.d.ts.map +1 -0
- package/dist/components/number-field.js +49 -0
- package/dist/components/number-field.js.map +1 -0
- package/dist/components/page-header.d.ts +13 -0
- package/dist/components/page-header.d.ts.map +1 -0
- package/dist/components/page-header.js +51 -0
- package/dist/components/page-header.js.map +1 -0
- package/dist/components/pager.d.ts +14 -0
- package/dist/components/pager.d.ts.map +1 -0
- package/dist/components/pager.js +36 -0
- package/dist/components/pager.js.map +1 -0
- package/dist/components/pagination.d.ts +21 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +29 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/password-input.d.ts +18 -0
- package/dist/components/password-input.d.ts.map +1 -0
- package/dist/components/password-input.js +17 -0
- package/dist/components/password-input.js.map +1 -0
- package/dist/components/password-strength.d.ts +21 -0
- package/dist/components/password-strength.d.ts.map +1 -0
- package/dist/components/password-strength.js +52 -0
- package/dist/components/password-strength.js.map +1 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +27 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +26 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +39 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/questionnaire.d.ts +20 -0
- package/dist/components/questionnaire.d.ts.map +1 -0
- package/dist/components/questionnaire.js +57 -0
- package/dist/components/questionnaire.js.map +1 -0
- package/dist/components/radio-group.d.ts +8 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +27 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/resizable.d.ts +13 -0
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +24 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scroll-area.d.ts +17 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +12 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/search-dialog.d.ts +38 -0
- package/dist/components/search-dialog.d.ts.map +1 -0
- package/dist/components/search-dialog.js +39 -0
- package/dist/components/search-dialog.js.map +1 -0
- package/dist/components/search-trigger.d.ts +20 -0
- package/dist/components/search-trigger.d.ts.map +1 -0
- package/dist/components/search-trigger.js +52 -0
- package/dist/components/search-trigger.js.map +1 -0
- package/dist/components/section.d.ts +30 -0
- package/dist/components/section.d.ts.map +1 -0
- package/dist/components/section.js +79 -0
- package/dist/components/section.js.map +1 -0
- package/dist/components/select.d.ts +16 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +38 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +9 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.d.ts +16 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +44 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/sidebar.d.ts +76 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +289 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/site-footer.d.ts +22 -0
- package/dist/components/site-footer.d.ts.map +1 -0
- package/dist/components/site-footer.js +42 -0
- package/dist/components/site-footer.js.map +1 -0
- package/dist/components/site-header.d.ts +48 -0
- package/dist/components/site-header.d.ts.map +1 -0
- package/dist/components/site-header.js +104 -0
- package/dist/components/site-header.js.map +1 -0
- package/dist/components/site-layout.d.ts +35 -0
- package/dist/components/site-layout.d.ts.map +1 -0
- package/dist/components/site-layout.js +99 -0
- package/dist/components/site-layout.js.map +1 -0
- package/dist/components/skeleton.d.ts +6 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +16 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +11 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/spinner.d.ts +12 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +26 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stat.d.ts +31 -0
- package/dist/components/stat.d.ts.map +1 -0
- package/dist/components/stat.js +66 -0
- package/dist/components/stat.js.map +1 -0
- package/dist/components/status-dot.d.ts +25 -0
- package/dist/components/status-dot.d.ts.map +1 -0
- package/dist/components/status-dot.js +45 -0
- package/dist/components/status-dot.js.map +1 -0
- package/dist/components/switch.d.ts +17 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +49 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +25 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +45 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +18 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +51 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +4 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +10 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toast.d.ts +27 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.js +68 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/toc.d.ts +35 -0
- package/dist/components/toc.d.ts.map +1 -0
- package/dist/components/toc.js +94 -0
- package/dist/components/toc.js.map +1 -0
- package/dist/components/toggle-group.d.ts +19 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +33 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +15 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +42 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/toolbar.d.ts +14 -0
- package/dist/components/toolbar.d.ts.map +1 -0
- package/dist/components/toolbar.js +37 -0
- package/dist/components/toolbar.js.map +1 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +22 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/trace.d.ts +20 -0
- package/dist/components/trace.d.ts.map +1 -0
- package/dist/components/trace.js +32 -0
- package/dist/components/trace.js.map +1 -0
- package/dist/components/typography.d.ts +37 -0
- package/dist/components/typography.d.ts.map +1 -0
- package/dist/components/typography.js +140 -0
- package/dist/components/typography.js.map +1 -0
- package/dist/hooks/use-highlighted-code.d.ts +3 -0
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -0
- package/dist/hooks/use-highlighted-code.js +50 -0
- package/dist/hooks/use-highlighted-code.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/lib/color.d.ts +30 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +56 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/highlighter.d.ts +10 -0
- package/dist/lib/highlighter.d.ts.map +1 -0
- package/dist/lib/highlighter.js +94 -0
- package/dist/lib/highlighter.js.map +1 -0
- package/dist/lib/recipes.d.ts +30 -0
- package/dist/lib/recipes.d.ts.map +1 -0
- package/dist/lib/recipes.js +30 -0
- package/dist/lib/recipes.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +2 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +3 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/theme-provider.d.ts +47 -0
- package/dist/provider/theme-provider.d.ts.map +1 -0
- package/dist/provider/theme-provider.js +118 -0
- package/dist/provider/theme-provider.js.map +1 -0
- package/dist/provider/theme.d.ts +42 -0
- package/dist/provider/theme.d.ts.map +1 -0
- package/dist/provider/theme.js +58 -0
- package/dist/provider/theme.js.map +1 -0
- package/package.json +145 -5
- package/src/components/accordion.tsx +92 -0
- package/src/components/alert-dialog.tsx +167 -0
- package/src/components/alert.tsx +110 -0
- package/src/components/aspect-ratio.tsx +29 -0
- package/src/components/attachment.tsx +198 -0
- package/src/components/avatar.tsx +115 -0
- package/src/components/badge.tsx +75 -0
- package/src/components/breadcrumb.tsx +104 -0
- package/src/components/bubble.tsx +125 -0
- package/src/components/button-group.tsx +75 -0
- package/src/components/button.tsx +124 -0
- package/src/components/calendar.tsx +204 -0
- package/src/components/callout.tsx +131 -0
- package/src/components/card.tsx +178 -0
- package/src/components/carousel.tsx +329 -0
- package/src/components/chart.tsx +332 -0
- package/src/components/checkbox-group.tsx +21 -0
- package/src/components/checkbox.tsx +39 -0
- package/src/components/code-block.tsx +246 -0
- package/src/components/collapsible.tsx +47 -0
- package/src/components/combobox.tsx +295 -0
- package/src/components/command.tsx +174 -0
- package/src/components/context-menu.tsx +238 -0
- package/src/components/copy-button.tsx +80 -0
- package/src/components/data-table/data-table-utils.tsx +125 -0
- package/src/components/data-table/elements/data-table-base.tsx +78 -0
- package/src/components/data-table/elements/data-table-body.tsx +50 -0
- package/src/components/data-table/elements/data-table-cell.tsx +42 -0
- package/src/components/data-table/elements/data-table-filter-row.tsx +222 -0
- package/src/components/data-table/elements/data-table-foot.tsx +36 -0
- package/src/components/data-table/elements/data-table-head.tsx +36 -0
- package/src/components/data-table/elements/data-table-info-row.tsx +38 -0
- package/src/components/data-table/elements/data-table-row.tsx +58 -0
- package/src/components/data-table/elements/data-table-scroll.tsx +33 -0
- package/src/components/data-table/elements/data-table-sort-row.tsx +180 -0
- package/src/components/data-table/elements/data-table-title-row.tsx +33 -0
- package/src/components/data-table/elements/data-table-virtualized-body.tsx +87 -0
- package/src/components/data-table/set-utils.ts +103 -0
- package/src/components/data-table/views/data-table-filter-view.tsx +75 -0
- package/src/components/data-table/views/data-table-prop-view.tsx +55 -0
- package/src/components/data-table/views/data-table-root-view.tsx +20 -0
- package/src/components/data-table/views/data-table-sort-view.tsx +81 -0
- package/src/components/data-table/views/data-table-view.tsx +147 -0
- package/src/components/data-table.tsx +30 -0
- package/src/components/date-picker.tsx +166 -0
- package/src/components/dialog.tsx +158 -0
- package/src/components/direction.tsx +3 -0
- package/src/components/drawer.tsx +222 -0
- package/src/components/dropdown-menu.tsx +267 -0
- package/src/components/empty.tsx +97 -0
- package/src/components/field.tsx +229 -0
- package/src/components/file-upload.tsx +180 -0
- package/src/components/hero.tsx +207 -0
- package/src/components/hover-card.tsx +44 -0
- package/src/components/input-group.tsx +186 -0
- package/src/components/input-otp.tsx +82 -0
- package/src/components/input.tsx +50 -0
- package/src/components/item.tsx +191 -0
- package/src/components/kbd.tsx +39 -0
- package/src/components/label.tsx +19 -0
- package/src/components/marker.tsx +69 -0
- package/src/components/menubar.tsx +146 -0
- package/src/components/message-scroller.tsx +113 -0
- package/src/components/message.tsx +90 -0
- package/src/components/meter.tsx +69 -0
- package/src/components/native-select.tsx +76 -0
- package/src/components/navbar.tsx +55 -0
- package/src/components/navigation-menu.tsx +193 -0
- package/src/components/number-field.tsx +133 -0
- package/src/components/page-header.tsx +63 -0
- package/src/components/pager.tsx +70 -0
- package/src/components/pagination.tsx +106 -0
- package/src/components/password-input.tsx +71 -0
- package/src/components/password-strength.tsx +99 -0
- package/src/components/popover.tsx +68 -0
- package/src/components/progress.tsx +105 -0
- package/src/components/questionnaire.tsx +299 -0
- package/src/components/radio-group.tsx +43 -0
- package/src/components/resizable.tsx +62 -0
- package/src/components/scroll-area.tsx +68 -0
- package/src/components/search-dialog.tsx +87 -0
- package/src/components/search-trigger.tsx +74 -0
- package/src/components/section.tsx +110 -0
- package/src/components/select.tsx +184 -0
- package/src/components/separator.tsx +20 -0
- package/src/components/sheet.tsx +116 -0
- package/src/components/sidebar.tsx +722 -0
- package/src/components/site-footer.tsx +55 -0
- package/src/components/site-header.tsx +169 -0
- package/src/components/site-layout.tsx +147 -0
- package/src/components/skeleton.tsx +19 -0
- package/src/components/slider.tsx +46 -0
- package/src/components/spinner.tsx +42 -0
- package/src/components/stat.tsx +155 -0
- package/src/components/status-dot.tsx +94 -0
- package/src/components/switch.tsx +70 -0
- package/src/components/table.tsx +133 -0
- package/src/components/tabs.tsx +99 -0
- package/src/components/textarea.tsx +23 -0
- package/src/components/toast.tsx +221 -0
- package/src/components/toc.tsx +122 -0
- package/src/components/toggle-group.tsx +95 -0
- package/src/components/toggle.tsx +59 -0
- package/src/components/toolbar.tsx +97 -0
- package/src/components/tooltip.tsx +57 -0
- package/src/components/trace.tsx +143 -0
- package/src/components/typography.tsx +205 -0
- package/src/hooks/use-highlighted-code.ts +71 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/lib/color.ts +76 -0
- package/src/lib/highlighter.tsx +121 -0
- package/src/lib/recipes.ts +47 -0
- package/src/lib/utils.ts +1 -0
- package/src/provider/index.ts +2 -0
- package/src/provider/theme-provider.tsx +210 -0
- package/src/provider/theme.ts +83 -0
- package/src/styles/kernelkit.css +301 -0
- package/src/styles/shadcn.css +555 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Button } from "@repraze/kernelkit/components/button";
|
|
4
|
+
import { MessageScroller as MessageScrollerPrimitive, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from "@shadcn/react/message-scroller";
|
|
5
|
+
import { cn } from "cn";
|
|
6
|
+
import { ArrowDownIcon } from "lucide-react";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
function MessageScrollerProvider(props) {
|
|
9
|
+
return _jsx(MessageScrollerPrimitive.Provider, { ...props });
|
|
10
|
+
}
|
|
11
|
+
function MessageScroller({ className, ...props }) {
|
|
12
|
+
return (_jsx(MessageScrollerPrimitive.Root, { "data-slot": "message-scroller", className: cn("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", className), ...props }));
|
|
13
|
+
}
|
|
14
|
+
function MessageScrollerViewport({ className, ...props }) {
|
|
15
|
+
return (_jsx(MessageScrollerPrimitive.Viewport, { "data-slot": "message-scroller-viewport", className: cn("size-full min-h-0 min-w-0 scroll-fade-b scrollbar-thin outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent data-pending-scroll:invisible", className), ...props }));
|
|
16
|
+
}
|
|
17
|
+
function MessageScrollerContent({ className, ...props }) {
|
|
18
|
+
return (_jsx(MessageScrollerPrimitive.Content, { "data-slot": "message-scroller-content", className: cn("flex h-max min-h-full flex-col gap-6", className), ...props }));
|
|
19
|
+
}
|
|
20
|
+
function MessageScrollerItem({ className, scrollAnchor = false, ...props }) {
|
|
21
|
+
return (_jsx(MessageScrollerPrimitive.Item, { "data-slot": "message-scroller-item", scrollAnchor: scrollAnchor, className: cn("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", className), ...props }));
|
|
22
|
+
}
|
|
23
|
+
function MessageScrollerButton({ direction = "end", className, children, render, variant = "outline", size = "icon-sm", ...props }) {
|
|
24
|
+
return (_jsx(MessageScrollerPrimitive.Button, { "data-slot": "message-scroller-button", "data-direction": direction, "data-variant": variant, "data-size": size, direction: direction, className: cn("absolute inset-s-1/2 z-10 -translate-x-1/2 rounded-pill bg-background shadow-md dark:bg-background dark:hover:bg-hover shadow-(color:--shadow-color) transition-[translate,scale,opacity,background-color] duration-200 data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180 motion-reduce:transition-none", className), render: render ?? _jsx(Button, { variant: variant, size: size }), ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsx(ArrowDownIcon, {}), _jsx("span", { className: "sr-only", children: direction === "end" ? "Scroll to end" : "Scroll to start" })] })) }));
|
|
25
|
+
}
|
|
26
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, };
|
|
27
|
+
//# sourceMappingURL=message-scroller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-scroller.js","sourceRoot":"","sources":["../../src/components/message-scroller.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,MAAM,EAAC,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EACH,eAAe,IAAI,wBAAwB,EAC3C,kBAAkB,EAClB,4BAA4B,EAC5B,4BAA4B,GAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AACtB,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,SAAS,uBAAuB,CAAC,KAAqE;IAClG,OAAO,KAAC,wBAAwB,CAAC,QAAQ,OAAK,KAAK,GAAI,CAAC;AAC5D,CAAC;AAED,SAAS,eAAe,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA6D;IACtG,OAAO,CACH,KAAC,wBAAwB,CAAC,IAAI,iBAChB,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CAAC,iFAAiF,EAAE,SAAS,CAAC,KACvG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,uBAAuB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACqD;IAC7D,OAAO,CACH,KAAC,wBAAwB,CAAC,QAAQ,iBACpB,2BAA2B,EACrC,SAAS,EAAE,EAAE,CACT,qVAAqV,EACrV,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,sBAAsB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAgE;IAChH,OAAO,CACH,KAAC,wBAAwB,CAAC,OAAO,iBACnB,0BAA0B,EACpC,SAAS,EAAE,EAAE,CAAC,sCAAsC,EAAE,SAAS,CAAC,KAC5D,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,mBAAmB,CAAC,EACzB,SAAS,EACT,YAAY,GAAG,KAAK,EACpB,GAAG,KAAK,EACiD;IACzD,OAAO,CACH,KAAC,wBAAwB,CAAC,IAAI,iBAChB,uBAAuB,EACjC,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,EAAE,CAAC,gFAAgF,EAAE,SAAS,CAAC,KACtG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,qBAAqB,CAAC,EAC3B,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,SAAS,EAChB,GAAG,KAAK,EAEqD;IAC7D,OAAO,CACH,KAAC,wBAAwB,CAAC,MAAM,iBAClB,yBAAyB,oBACnB,SAAS,kBACX,OAAO,eACV,IAAI,EACf,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,EAAE,CACT,ozBAAozB,EACpzB,SAAS,CACZ,EACD,MAAM,EAAE,MAAM,IAAI,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,KACtD,KAAK,YAER,QAAQ,IAAI,CACT,8BACI,KAAC,aAAa,KAAG,EACjB,eAAM,SAAS,EAAC,SAAS,YAAE,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,iBAAiB,GAAQ,IAC7F,CACN,GAC6B,CACrC,CAAC;AACN,CAAC;AAED,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,4BAA4B,EAC5B,4BAA4B,GAC/B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
3
|
+
type MessageProps = React.ComponentProps<"div"> & {
|
|
4
|
+
/** `end` mirrors the row: avatar on the right, bubbles and footer aligned to the end (the user's side). */
|
|
5
|
+
align?: "start" | "end";
|
|
6
|
+
};
|
|
7
|
+
declare function Message({ className, align, ...props }: MessageProps): React.JSX.Element;
|
|
8
|
+
declare function MessageAvatar({ className, side, ...props }: React.ComponentProps<"div"> & {
|
|
9
|
+
/** `bottom` pins next to the last bubble (chat style); `top` sits by the header, for long assistant replies. */
|
|
10
|
+
side?: "top" | "bottom";
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function MessageContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
13
|
+
declare function MessageHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
|
+
declare function MessageFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
+
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader };
|
|
16
|
+
export type { MessageProps };
|
|
17
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/components/message.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,YAAY,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAEvE;AAED,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC9C,2GAA2G;IAC3G,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CAC3B,CAAC;AAEF,iBAAS,OAAO,CAAC,EAAC,SAAS,EAAE,KAAe,EAAE,GAAG,KAAK,EAAC,EAAE,YAAY,qBAYpE;AAED,iBAAS,aAAa,CAAC,EACnB,SAAS,EACT,IAAe,EACf,GAAG,KAAK,EACX,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7B,gHAAgH;IAChH,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC3B,qBAYA;AAED,iBAAS,cAAc,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWzE;AAED,iBAAS,aAAa,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWxE;AAED,iBAAS,aAAa,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWxE;AAED,OAAO,EAAC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAC,CAAC;AAC5F,YAAY,EAAC,YAAY,EAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
function MessageGroup({ className, ...props }) {
|
|
6
|
+
return _jsx("div", { "data-slot": "message-group", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props });
|
|
7
|
+
}
|
|
8
|
+
function Message({ className, align = "start", ...props }) {
|
|
9
|
+
return (_jsx("div", { "data-slot": "message", "data-align": align, className: cn("group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse", className), ...props }));
|
|
10
|
+
}
|
|
11
|
+
function MessageAvatar({ className, side = "bottom", ...props }) {
|
|
12
|
+
return (_jsx("div", { "data-slot": "message-avatar", "data-side": side, className: cn("flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-pill data-[side=bottom]:group-has-data-[slot=message-footer]/message:-translate-y-8 data-[side=top]:self-start", className), ...props }));
|
|
13
|
+
}
|
|
14
|
+
function MessageContent({ className, ...props }) {
|
|
15
|
+
return (_jsx("div", { "data-slot": "message-content", className: cn("flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end", className), ...props }));
|
|
16
|
+
}
|
|
17
|
+
function MessageHeader({ className, ...props }) {
|
|
18
|
+
return (_jsx("div", { "data-slot": "message-header", className: cn("flex max-w-full min-w-0 items-center gap-1.5 px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 [&_time]:font-mono [&_time]:font-normal [&_time]:tabular-nums", className), ...props }));
|
|
19
|
+
}
|
|
20
|
+
function MessageFooter({ className, ...props }) {
|
|
21
|
+
return (_jsx("div", { "data-slot": "message-footer", className: cn("flex max-w-full min-w-0 items-center gap-1 px-3 text-xs text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 [&_time]:font-mono [&_time]:tabular-nums", className), ...props }));
|
|
22
|
+
}
|
|
23
|
+
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader };
|
|
24
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/components/message.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AACtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,SAAS,YAAY,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA8B;IACpE,OAAO,2BAAe,eAAe,EAAC,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACxH,CAAC;AAOD,SAAS,OAAO,CAAC,EAAC,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE,GAAG,KAAK,EAAe;IACjE,OAAO,CACH,2BACc,SAAS,gBACP,KAAK,EACjB,SAAS,EAAE,EAAE,CACT,4FAA4F,EAC5F,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,aAAa,CAAC,EACnB,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,GAAG,KAAK,EAIX;IACG,OAAO,CACH,2BACc,gBAAgB,eACf,IAAI,EACf,SAAS,EAAE,EAAE,CACT,yMAAyM,EACzM,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,cAAc,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA8B;IACtE,OAAO,CACH,2BACc,iBAAiB,EAC3B,SAAS,EAAE,EAAE,CACT,0GAA0G,EAC1G,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,aAAa,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA8B;IACrE,OAAO,CACH,2BACc,gBAAgB,EAC1B,SAAS,EAAE,EAAE,CACT,sUAAsU,EACtU,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,aAAa,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA8B;IACrE,OAAO,CACH,2BACc,gBAAgB,EAC1B,SAAS,EAAE,EAAE,CACT,mSAAmS,EACnS,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,OAAO,EAAC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meter as MeterPrimitive } from "@base-ui/react/meter";
|
|
2
|
+
import { type ProgressSize } from "@repraze/kernelkit/components/progress";
|
|
3
|
+
import type { Color } from "@repraze/kernelkit/lib/color";
|
|
4
|
+
interface MeterProps extends Omit<MeterPrimitive.Root.Props, "color"> {
|
|
5
|
+
/** Indicator color. Defaults to primary; pass a status color for thresholds. */
|
|
6
|
+
color?: Color | null;
|
|
7
|
+
/** Track height: sm `h-1`, default `h-1.5`, lg `h-2`. */
|
|
8
|
+
size?: ProgressSize | null;
|
|
9
|
+
}
|
|
10
|
+
/** A static measurement within a known range (disk usage, quota, battery). For task completion use Progress. */
|
|
11
|
+
declare function Meter({ className, children, color, size, ...props }: MeterProps): import("react").JSX.Element;
|
|
12
|
+
declare function MeterTrack({ className, ...props }: MeterPrimitive.Track.Props): import("react").JSX.Element;
|
|
13
|
+
declare function MeterIndicator({ className, ...props }: MeterPrimitive.Indicator.Props): import("react").JSX.Element;
|
|
14
|
+
declare function MeterLabel({ className, ...props }: MeterPrimitive.Label.Props): import("react").JSX.Element;
|
|
15
|
+
declare function MeterValue({ className, ...props }: MeterPrimitive.Value.Props): import("react").JSX.Element;
|
|
16
|
+
export { Meter, MeterIndicator, MeterLabel, MeterTrack, MeterValue };
|
|
17
|
+
export type { MeterProps };
|
|
18
|
+
//# sourceMappingURL=meter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meter.d.ts","sourceRoot":"","sources":["../../src/components/meter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,KAAK,IAAI,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAEH,KAAK,YAAY,EAGpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,8BAA8B,CAAC;AAGxD,UAAU,UAAW,SAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC;IACjE,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,yDAAyD;IACzD,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CAC9B;AAED,gHAAgH;AAChH,iBAAS,KAAK,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,EAAC,EAAE,UAAU,+BAiBtE;AAED,iBAAS,UAAU,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,+BAEpE;AAED,iBAAS,cAAc,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,cAAc,CAAC,SAAS,CAAC,KAAK,+BAQ5E;AAED,iBAAS,UAAU,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,+BAEpE;AAED,iBAAS,UAAU,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,+BAQpE;AAED,OAAO,EAAC,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAC,CAAC;AACnE,YAAY,EAAC,UAAU,EAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Meter as MeterPrimitive } from "@base-ui/react/meter";
|
|
4
|
+
import { progressIndicatorClass, progressTrackClass, progressVariants, } from "@repraze/kernelkit/components/progress";
|
|
5
|
+
import { cn } from "cn";
|
|
6
|
+
/** A static measurement within a known range (disk usage, quota, battery). For task completion use Progress. */
|
|
7
|
+
function Meter({ className, children, color, size, ...props }) {
|
|
8
|
+
const resolvedColor = color ?? "primary";
|
|
9
|
+
const resolvedSize = size ?? "default";
|
|
10
|
+
return (_jsxs(MeterPrimitive.Root, { "data-slot": "meter", "data-color": resolvedColor, "data-size": resolvedSize, className: cn(progressVariants({ color: resolvedColor, size: resolvedSize }), className), ...props, children: [children, _jsx(MeterTrack, { children: _jsx(MeterIndicator, {}) })] }));
|
|
11
|
+
}
|
|
12
|
+
function MeterTrack({ className, ...props }) {
|
|
13
|
+
return _jsx(MeterPrimitive.Track, { "data-slot": "meter-track", className: cn(progressTrackClass, className), ...props });
|
|
14
|
+
}
|
|
15
|
+
function MeterIndicator({ className, ...props }) {
|
|
16
|
+
return (_jsx(MeterPrimitive.Indicator, { "data-slot": "meter-indicator", className: cn(progressIndicatorClass, className), ...props }));
|
|
17
|
+
}
|
|
18
|
+
function MeterLabel({ className, ...props }) {
|
|
19
|
+
return _jsx(MeterPrimitive.Label, { "data-slot": "meter-label", className: cn("text-sm font-medium", className), ...props });
|
|
20
|
+
}
|
|
21
|
+
function MeterValue({ className, ...props }) {
|
|
22
|
+
return (_jsx(MeterPrimitive.Value, { "data-slot": "meter-value", className: cn("ms-auto font-mono text-xs text-muted-foreground tabular-nums", className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
export { Meter, MeterIndicator, MeterLabel, MeterTrack, MeterValue };
|
|
25
|
+
//# sourceMappingURL=meter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meter.js","sourceRoot":"","sources":["../../src/components/meter.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,KAAK,IAAI,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACH,sBAAsB,EAEtB,kBAAkB,EAClB,gBAAgB,GACnB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AAStB,gHAAgH;AAChH,SAAS,KAAK,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,EAAa;IACnE,MAAM,aAAa,GAAG,KAAK,IAAI,SAAS,CAAC;IACzC,MAAM,YAAY,GAAG,IAAI,IAAI,SAAS,CAAC;IACvC,OAAO,CACH,MAAC,cAAc,CAAC,IAAI,iBACN,OAAO,gBACL,aAAa,eACd,YAAY,EACvB,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC,EAAE,SAAS,CAAC,KAClF,KAAK,aAER,QAAQ,EACT,KAAC,UAAU,cACP,KAAC,cAAc,KAAG,GACT,IACK,CACzB,CAAC;AACN,CAAC;AAED,SAAS,UAAU,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA6B;IACjE,OAAO,KAAC,cAAc,CAAC,KAAK,iBAAW,aAAa,EAAC,SAAS,EAAE,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACrH,CAAC;AAED,SAAS,cAAc,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAiC;IACzE,OAAO,CACH,KAAC,cAAc,CAAC,SAAS,iBACX,iBAAiB,EAC3B,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,KAC5C,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,UAAU,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA6B;IACjE,OAAO,KAAC,cAAc,CAAC,KAAK,iBAAW,aAAa,EAAC,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACxH,CAAC;AAED,SAAS,UAAU,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAA6B;IACjE,OAAO,CACH,KAAC,cAAc,CAAC,KAAK,iBACP,aAAa,EACvB,SAAS,EAAE,EAAE,CAAC,8DAA8D,EAAE,SAAS,CAAC,KACpF,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,OAAO,EAAC,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const nativeSelectVariants: (props?: ({
|
|
3
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
|
|
6
|
+
size?: "sm" | "default" | "lg";
|
|
7
|
+
};
|
|
8
|
+
/** A styled `<select>`: the platform picker, for long lists on mobile or forms without JS. */
|
|
9
|
+
declare function NativeSelect({ className, size, ...props }: NativeSelectProps): React.JSX.Element;
|
|
10
|
+
declare function NativeSelectOption({ className, ...props }: React.ComponentProps<"option">): React.JSX.Element;
|
|
11
|
+
declare function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<"optgroup">): React.JSX.Element;
|
|
12
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption, nativeSelectVariants };
|
|
13
|
+
export type { NativeSelectProps };
|
|
14
|
+
//# sourceMappingURL=native-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-select.d.ts","sourceRoot":"","sources":["../../src/components/native-select.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,oBAAoB;;8EAiBzB,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG;IACpE,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,8FAA8F;AAC9F,iBAAS,YAAY,CAAC,EAAC,SAAS,EAAE,IAAgB,EAAE,GAAG,KAAK,EAAC,EAAE,iBAAiB,qBAoB/E;AAED,iBAAS,kBAAkB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,qBAQhF;AAED,iBAAS,oBAAoB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,qBAQpF;AAED,OAAO,EAAC,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAC,CAAC;AACtF,YAAY,EAAC,iBAAiB,EAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { fieldSurface, focusRing, invalidRing } from "@repraze/kernelkit/lib/recipes";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "cn";
|
|
6
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
const nativeSelectVariants = cva([
|
|
9
|
+
fieldSurface,
|
|
10
|
+
focusRing,
|
|
11
|
+
invalidRing,
|
|
12
|
+
"w-full min-w-0 appearance-none py-0 pr-8 pl-2.5 text-sm outline-none select-none hover:bg-field-hover disabled:pointer-events-none",
|
|
13
|
+
], {
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
sm: "h-7 rounded-md pr-7 text-[0.8rem]",
|
|
17
|
+
default: "h-8",
|
|
18
|
+
lg: "h-9 pl-3 pr-9",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: { size: "default" },
|
|
22
|
+
});
|
|
23
|
+
/** A styled `<select>`: the platform picker, for long lists on mobile or forms without JS. */
|
|
24
|
+
function NativeSelect({ className, size = "default", ...props }) {
|
|
25
|
+
return (_jsxs("div", { className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className), "data-slot": "native-select-wrapper", "data-size": size, children: [_jsx("select", { "data-slot": "native-select", "data-size": size, className: cn(nativeSelectVariants({ size }), "disabled:opacity-100"), ...props }), _jsx(ChevronDownIcon, { className: "pointer-events-none absolute top-1/2 right-2 size-4 -translate-y-1/2 text-muted-foreground select-none group-data-[size=lg]/native-select:right-2.5 group-data-[size=sm]/native-select:right-1.5 group-data-[size=sm]/native-select:size-3.5", "aria-hidden": "true", "data-slot": "native-select-icon" })] }));
|
|
26
|
+
}
|
|
27
|
+
function NativeSelectOption({ className, ...props }) {
|
|
28
|
+
return (_jsx("option", { "data-slot": "native-select-option", className: cn("bg-popover text-popover-foreground", className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
function NativeSelectOptGroup({ className, ...props }) {
|
|
31
|
+
return (_jsx("optgroup", { "data-slot": "native-select-optgroup", className: cn("bg-popover text-popover-foreground", className), ...props }));
|
|
32
|
+
}
|
|
33
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption, nativeSelectVariants };
|
|
34
|
+
//# sourceMappingURL=native-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-select.js","sourceRoot":"","sources":["../../src/components/native-select.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,gCAAgC,CAAC;AACpF,OAAO,EAAC,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAC7C,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AACtB,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,oBAAoB,GAAG,GAAG,CAC5B;IACI,YAAY;IACZ,SAAS;IACT,WAAW;IACX,oIAAoI;CACvI,EACD;IACI,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,EAAE,EAAE,mCAAmC;YACvC,OAAO,EAAE,KAAK;YACd,EAAE,EAAE,eAAe;SACtB;KACJ;IACD,eAAe,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;CACrC,CACJ,CAAC;AAMF,8FAA8F;AAC9F,SAAS,YAAY,CAAC,EAAC,SAAS,EAAE,IAAI,GAAG,SAAS,EAAE,GAAG,KAAK,EAAoB;IAC5E,OAAO,CACH,eACI,SAAS,EAAE,EAAE,CAAC,qEAAqE,EAAE,SAAS,CAAC,eACrF,uBAAuB,eACtB,IAAI,aAEf,8BACc,eAAe,eACd,IAAI,EACf,SAAS,EAAE,EAAE,CAAC,oBAAoB,CAAC,EAAC,IAAI,EAAC,CAAC,EAAE,sBAAsB,CAAC,KAC/D,KAAK,GACX,EACF,KAAC,eAAe,IACZ,SAAS,EAAC,8OAA8O,iBAC5O,MAAM,eACR,oBAAoB,GAChC,IACA,CACT,CAAC;AACN,CAAC;AAED,SAAS,kBAAkB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAiC;IAC7E,OAAO,CACH,8BACc,sBAAsB,EAChC,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,KAC1D,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,SAAS,oBAAoB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAmC;IACjF,OAAO,CACH,gCACc,wBAAwB,EAClC,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,KAC1D,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,OAAO,EAAC,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
/** Sticky top bar: translucent background over a blur, one bottom line. */
|
|
3
|
+
declare function Navbar({ className, render, ...props }: useRender.ComponentProps<"header">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
4
|
+
/** The bar's row: `h-14`, horizontal padding, items centered. Constrain its width here (`max-w-*`). */
|
|
5
|
+
declare function NavbarContent({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
6
|
+
/** A cluster of items (brand, links, actions). Push one to the end with `ml-auto`. */
|
|
7
|
+
declare function NavbarSection({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
8
|
+
/** Holds the primary links or a `NavigationMenu`. Defaults to a `<nav>`. */
|
|
9
|
+
declare function NavbarMenu({ className, render, ...props }: useRender.ComponentProps<"nav">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
+
export { Navbar, NavbarContent, NavbarMenu, NavbarSection };
|
|
11
|
+
//# sourceMappingURL=navbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../src/components/navbar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAGpD,2EAA2E;AAC3E,iBAAS,MAAM,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,8FAehF;AAED,uGAAuG;AACvG,iBAAS,aAAa,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,8FAOpF;AAED,sFAAsF;AACtF,iBAAS,aAAa,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,8FAOpF;AAED,4EAA4E;AAC5E,iBAAS,UAAU,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,8FAOjF;AAED,OAAO,EAAC,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
/** Sticky top bar: translucent background over a blur, one bottom line. */
|
|
6
|
+
function Navbar({ className, render, ...props }) {
|
|
7
|
+
return useRender({
|
|
8
|
+
defaultTagName: "header",
|
|
9
|
+
props: mergeProps({
|
|
10
|
+
className: cn("sticky top-0 z-40 w-full border-b border-border bg-background/85 text-foreground supports-backdrop-filter:backdrop-blur-md", className),
|
|
11
|
+
}, props),
|
|
12
|
+
render,
|
|
13
|
+
state: { slot: "navbar" },
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/** The bar's row: `h-14`, horizontal padding, items centered. Constrain its width here (`max-w-*`). */
|
|
17
|
+
function NavbarContent({ className, render, ...props }) {
|
|
18
|
+
return useRender({
|
|
19
|
+
defaultTagName: "div",
|
|
20
|
+
props: mergeProps({ className: cn("flex h-14 items-center gap-2 px-4", className) }, props),
|
|
21
|
+
render,
|
|
22
|
+
state: { slot: "navbar-content" },
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/** A cluster of items (brand, links, actions). Push one to the end with `ml-auto`. */
|
|
26
|
+
function NavbarSection({ className, render, ...props }) {
|
|
27
|
+
return useRender({
|
|
28
|
+
defaultTagName: "div",
|
|
29
|
+
props: mergeProps({ className: cn("flex items-center gap-2", className) }, props),
|
|
30
|
+
render,
|
|
31
|
+
state: { slot: "navbar-section" },
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/** Holds the primary links or a `NavigationMenu`. Defaults to a `<nav>`. */
|
|
35
|
+
function NavbarMenu({ className, render, ...props }) {
|
|
36
|
+
return useRender({
|
|
37
|
+
defaultTagName: "nav",
|
|
38
|
+
props: mergeProps({ className: cn("flex items-center gap-1", className) }, props),
|
|
39
|
+
render,
|
|
40
|
+
state: { slot: "navbar-menu" },
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export { Navbar, NavbarContent, NavbarMenu, NavbarSection };
|
|
44
|
+
//# sourceMappingURL=navbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navbar.js","sourceRoot":"","sources":["../../src/components/navbar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAC,UAAU,EAAC,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AAEtB,2EAA2E;AAC3E,SAAS,MAAM,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAqC;IAC7E,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,QAAQ;QACxB,KAAK,EAAE,UAAU,CACb;YACI,SAAS,EAAE,EAAE,CACT,4HAA4H,EAC5H,SAAS,CACZ;SACJ,EACD,KAAK,CACR;QACD,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;KAC1B,CAAC,CAAC;AACP,CAAC;AAED,uGAAuG;AACvG,SAAS,aAAa,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAkC;IACjF,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,UAAU,CAAQ,EAAC,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,EAAC,EAAE,KAAK,CAAC;QAChG,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;KAClC,CAAC,CAAC;AACP,CAAC;AAED,sFAAsF;AACtF,SAAS,aAAa,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAkC;IACjF,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,UAAU,CAAQ,EAAC,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,EAAC,EAAE,KAAK,CAAC;QACtF,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;KAClC,CAAC,CAAC;AACP,CAAC;AAED,4EAA4E;AAC5E,SAAS,UAAU,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAkC;IAC9E,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,UAAU,CAAQ,EAAC,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,EAAC,EAAE,KAAK,CAAC;QACtF,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,aAAa,EAAC;KAC/B,CAAC,CAAC;AACP,CAAC;AAED,OAAO,EAAC,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
2
|
+
declare function NavigationMenu({ align, className, children, viewport: _viewport, ...props }: NavigationMenuPrimitive.Root.Props & Pick<NavigationMenuPrimitive.Positioner.Props, "align"> & {
|
|
3
|
+
/** Accepted for shadcn compatibility; the popup always uses the shared viewport. */
|
|
4
|
+
viewport?: boolean;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
declare function NavigationMenuList({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.List>): import("react").JSX.Element;
|
|
7
|
+
declare function NavigationMenuItem({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Item>): import("react").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Top-level trigger and link look: a ghost control at the default height (GUIDELINES §4). Open keeps the
|
|
10
|
+
* hover wash; the current page (`data-active`) gets the accent tint + medium weight.
|
|
11
|
+
*/
|
|
12
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
|
+
declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuPrimitive.Trigger.Props): import("react").JSX.Element;
|
|
14
|
+
declare function NavigationMenuContent({ className, ...props }: NavigationMenuPrimitive.Content.Props): import("react").JSX.Element;
|
|
15
|
+
declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, ...props }: NavigationMenuPrimitive.Positioner.Props): import("react").JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* A link. At the top level it looks like a trigger; inside `NavigationMenuContent` it is a list row
|
|
18
|
+
* (`rounded-md`, keyboard highlight instead of a ring). `active` marks the current page.
|
|
19
|
+
*/
|
|
20
|
+
declare function NavigationMenuLink({ className, ...props }: NavigationMenuPrimitive.Link.Props): import("react").JSX.Element;
|
|
21
|
+
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Icon>): import("react").JSX.Element;
|
|
22
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, navigationMenuTriggerStyle, };
|
|
23
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/components/navigation-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,IAAI,uBAAuB,EAAC,MAAM,gCAAgC,CAAC;AAOzF,iBAAS,cAAc,CAAC,EACpB,KAAe,EACf,SAAS,EACT,QAAQ,EAER,QAAQ,EAAE,SAAS,EACnB,GAAG,KAAK,EACX,EAAE,uBAAuB,CAAC,IAAI,CAAC,KAAK,GACjC,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IACtD,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,+BAcJ;AAED,iBAAS,kBAAkB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+BAQlH;AAED,iBAAS,kBAAkB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+BAQlH;AAED;;;GAGG;AACH,QAAA,MAAM,0BAA0B,oFAM9B,CAAC;AAEH,iBAAS,qBAAqB,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,KAAK,+BAkBpG;AAED,iBAAS,qBAAqB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,KAAK,+BAY1F;AAED,iBAAS,wBAAwB,CAAC,EAC9B,SAAS,EACT,IAAe,EACf,UAAc,EACd,KAAe,EACf,WAAe,EACf,GAAG,KAAK,EACX,EAAE,uBAAuB,CAAC,UAAU,CAAC,KAAK,+BA8B1C;AAED;;;GAGG;AACH,iBAAS,kBAAkB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,uBAAuB,CAAC,IAAI,CAAC,KAAK,+BAiBpF;AAED,iBAAS,uBAAuB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACX,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+BAalE;AAED,OAAO,EACH,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,GAC7B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
4
|
+
import { focusRing, popupSurface } from "@repraze/kernelkit/lib/recipes";
|
|
5
|
+
import { usePortalContainer } from "@repraze/kernelkit/provider";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
import { cn } from "cn";
|
|
8
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
9
|
+
function NavigationMenu({ align = "start", className, children,
|
|
10
|
+
// Radix-era shadcn prop: Base UI always renders the shared viewport. Accepted for drop-in use.
|
|
11
|
+
viewport: _viewport, ...props }) {
|
|
12
|
+
return (_jsxs(NavigationMenuPrimitive.Root, { "data-slot": "navigation-menu", className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className), ...props, children: [children, _jsx(NavigationMenuPositioner, { align: align })] }));
|
|
13
|
+
}
|
|
14
|
+
function NavigationMenuList({ className, ...props }) {
|
|
15
|
+
return (_jsx(NavigationMenuPrimitive.List, { "data-slot": "navigation-menu-list", className: cn("group flex flex-1 list-none items-center justify-center gap-1", className), ...props }));
|
|
16
|
+
}
|
|
17
|
+
function NavigationMenuItem({ className, ...props }) {
|
|
18
|
+
return (_jsx(NavigationMenuPrimitive.Item, { "data-slot": "navigation-menu-item", className: cn("relative", className), ...props }));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Top-level trigger and link look: a ghost control at the default height (GUIDELINES §4). Open keeps the
|
|
22
|
+
* hover wash; the current page (`data-active`) gets the accent tint + medium weight.
|
|
23
|
+
*/
|
|
24
|
+
const navigationMenuTriggerStyle = cva([
|
|
25
|
+
"group/navigation-menu-trigger inline-flex h-8 w-max items-center justify-center gap-1.5 rounded-lg px-2.5 text-sm font-medium text-foreground",
|
|
26
|
+
"transition-[color,background-color,border-color,box-shadow] duration-100 motion-reduce:transition-none",
|
|
27
|
+
focusRing,
|
|
28
|
+
"hover:bg-hover data-popup-open:bg-hover disabled:pointer-events-none disabled:opacity-50",
|
|
29
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
30
|
+
]);
|
|
31
|
+
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
32
|
+
return (_jsxs(NavigationMenuPrimitive.Trigger, { "data-slot": "navigation-menu-trigger", className: cn(navigationMenuTriggerStyle(), "pr-2", className), ...props, children: [children, _jsx(NavigationMenuPrimitive.Icon, { render: _jsx(ChevronDownIcon, { className: "size-3.5 text-muted-foreground transition-transform duration-200 group-data-popup-open/navigation-menu-trigger:rotate-180 motion-reduce:transition-none", "aria-hidden": "true" }) })] }));
|
|
33
|
+
}
|
|
34
|
+
function NavigationMenuContent({ className, ...props }) {
|
|
35
|
+
return (_jsx(NavigationMenuPrimitive.Content, { "data-slot": "navigation-menu-content", className: cn("h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:opacity-0 data-starting-style:opacity-0 motion-reduce:transition-none", "data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]", className), ...props }));
|
|
36
|
+
}
|
|
37
|
+
function NavigationMenuPositioner({ className, side = "bottom", sideOffset = 8, align = "start", alignOffset = 0, ...props }) {
|
|
38
|
+
return (_jsx(NavigationMenuPrimitive.Portal, { container: usePortalContainer(), children: _jsx(NavigationMenuPrimitive.Positioner, { "data-slot": "navigation-menu-positioner", side: side, sideOffset: sideOffset, align: align, alignOffset: alignOffset, className: cn("isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none motion-reduce:transition-none data-[side=bottom]:before:absolute data-[side=bottom]:before:inset-x-0 data-[side=bottom]:before:-top-2.5 data-[side=bottom]:before:h-2.5", className), ...props, children: _jsx(NavigationMenuPrimitive.Popup, { "data-slot": "navigation-menu-popup", className: cn(popupSurface, "relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-95 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-95 data-starting-style:opacity-0 motion-reduce:transition-none"), children: _jsx(NavigationMenuPrimitive.Viewport, { "data-slot": "navigation-menu-viewport", className: "relative size-full overflow-hidden rounded-[inherit]" }) }) }) }));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A link. At the top level it looks like a trigger; inside `NavigationMenuContent` it is a list row
|
|
42
|
+
* (`rounded-md`, keyboard highlight instead of a ring). `active` marks the current page.
|
|
43
|
+
*/
|
|
44
|
+
function NavigationMenuLink({ className, ...props }) {
|
|
45
|
+
return (_jsx(NavigationMenuPrimitive.Link, { "data-slot": "navigation-menu-link", className: cn("flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-sm text-foreground outline-none select-none", "transition-[color,background-color,border-color,box-shadow] duration-100 motion-reduce:transition-none", "hover:bg-hover focus-visible:ring-3 focus-visible:ring-ring/50", "data-active:bg-accent data-active:font-medium data-active:text-accent-foreground", "in-data-[slot=navigation-menu-list]:h-8 in-data-[slot=navigation-menu-list]:font-medium", "in-data-[slot=navigation-menu-content]:rounded-md in-data-[slot=navigation-menu-content]:px-2 in-data-[slot=navigation-menu-content]:focus-visible:bg-accent in-data-[slot=navigation-menu-content]:focus-visible:text-accent-foreground in-data-[slot=navigation-menu-content]:focus-visible:ring-0", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className), ...props }));
|
|
46
|
+
}
|
|
47
|
+
function NavigationMenuIndicator({ className, ...props }) {
|
|
48
|
+
return (_jsx(NavigationMenuPrimitive.Icon, { "data-slot": "navigation-menu-indicator", className: cn("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", className), ...props, children: _jsx("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-md" }) }));
|
|
49
|
+
}
|
|
50
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, navigationMenuTriggerStyle, };
|
|
51
|
+
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sourceRoot":"","sources":["../../src/components/navigation-menu.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NumberField as NumberFieldPrimitive } from "@base-ui/react/number-field";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare function NumberField({ className, ...props }: NumberFieldPrimitive.Root.Props): import("react").JSX.Element;
|
|
4
|
+
/** The field look: one bordered surface holding the input and both steppers (§4, §6). */
|
|
5
|
+
declare const numberFieldGroupVariants: (props?: ({
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
declare function NumberFieldGroup({ className, size, ...props }: NumberFieldPrimitive.Group.Props & VariantProps<typeof numberFieldGroupVariants>): import("react").JSX.Element;
|
|
9
|
+
declare function NumberFieldInput({ className, ...props }: NumberFieldPrimitive.Input.Props): import("react").JSX.Element;
|
|
10
|
+
declare function NumberFieldDecrement({ className, children, ...props }: NumberFieldPrimitive.Decrement.Props): import("react").JSX.Element;
|
|
11
|
+
declare function NumberFieldIncrement({ className, children, ...props }: NumberFieldPrimitive.Increment.Props): import("react").JSX.Element;
|
|
12
|
+
/** Drag horizontally over its children (usually the label) to change the value. */
|
|
13
|
+
declare function NumberFieldScrubArea({ className, children, ...props }: NumberFieldPrimitive.ScrubArea.Props): import("react").JSX.Element;
|
|
14
|
+
declare function NumberFieldScrubAreaCursor({ className, children, ...props }: NumberFieldPrimitive.ScrubAreaCursor.Props): import("react").JSX.Element;
|
|
15
|
+
export { NumberField, NumberFieldDecrement, NumberFieldGroup, numberFieldGroupVariants, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea, NumberFieldScrubAreaCursor, };
|
|
16
|
+
//# sourceMappingURL=number-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../src/components/number-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,IAAI,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AAEhF,OAAO,EAAM,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAIhE,iBAAS,WAAW,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,+BAQ1E;AAED,yFAAyF;AACzF,QAAA,MAAM,wBAAwB;;8EAkB7B,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACtB,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACX,EAAE,oBAAoB,CAAC,KAAK,CAAC,KAAK,GAAG,YAAY,CAAC,OAAO,wBAAwB,CAAC,+BASlF;AAED,iBAAS,gBAAgB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,KAAK,+BAYhF;AAKD,iBAAS,oBAAoB,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK,+BAWlG;AAED,iBAAS,oBAAoB,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK,+BAWlG;AAED,mFAAmF;AACnF,iBAAS,oBAAoB,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK,+BAWlG;AAED,iBAAS,0BAA0B,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,KAAK,+BAU9G;AAED,OAAO,EACH,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,GAC7B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { NumberField as NumberFieldPrimitive } from "@base-ui/react/number-field";
|
|
4
|
+
import { fieldSurface } from "@repraze/kernelkit/lib/recipes";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
import { cn } from "cn";
|
|
7
|
+
import { MinusIcon, MoveHorizontalIcon, PlusIcon } from "lucide-react";
|
|
8
|
+
function NumberField({ className, ...props }) {
|
|
9
|
+
return (_jsx(NumberFieldPrimitive.Root, { "data-slot": "number-field", className: cn("group/number-field flex w-full flex-col gap-2", className), ...props }));
|
|
10
|
+
}
|
|
11
|
+
/** The field look: one bordered surface holding the input and both steppers (§4, §6). */
|
|
12
|
+
const numberFieldGroupVariants = cva([
|
|
13
|
+
fieldSurface,
|
|
14
|
+
"group/number-field-group relative flex w-full min-w-0 items-center",
|
|
15
|
+
"has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50",
|
|
16
|
+
"data-invalid:border-danger data-invalid:ring-3 data-invalid:ring-danger/20 has-aria-invalid:border-danger has-aria-invalid:ring-3 has-aria-invalid:ring-danger/20 dark:data-invalid:ring-danger/40 dark:has-aria-invalid:ring-danger/40",
|
|
17
|
+
"data-disabled:cursor-not-allowed data-disabled:bg-field-disabled data-disabled:opacity-50",
|
|
18
|
+
], {
|
|
19
|
+
variants: {
|
|
20
|
+
size: {
|
|
21
|
+
sm: "h-7 gap-0.5 rounded-md pr-0.5",
|
|
22
|
+
default: "h-8 gap-0.5 pr-1",
|
|
23
|
+
lg: "h-9 gap-1 pr-1",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: { size: "default" },
|
|
27
|
+
});
|
|
28
|
+
function NumberFieldGroup({ className, size = "default", ...props }) {
|
|
29
|
+
return (_jsx(NumberFieldPrimitive.Group, { "data-slot": "number-field-group", "data-size": size, className: cn(numberFieldGroupVariants({ size }), className), ...props }));
|
|
30
|
+
}
|
|
31
|
+
function NumberFieldInput({ className, ...props }) {
|
|
32
|
+
return (_jsx(NumberFieldPrimitive.Input, { "data-slot": "number-field-input", className: cn("h-full w-full min-w-0 flex-1 bg-transparent px-2.5 text-base tabular-nums outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed md:text-sm", "group-data-[size=sm]/number-field-group:md:text-[0.8rem] group-data-[size=lg]/number-field-group:px-3", className), ...props }));
|
|
33
|
+
}
|
|
34
|
+
const stepper = "flex shrink-0 items-center justify-center rounded-md text-muted-foreground transition-[color,background-color] select-none hover:bg-hover hover:text-foreground active:bg-hover disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 group-data-disabled/number-field-group:opacity-100 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-3.5 size-6 group-data-[size=sm]/number-field-group:size-5 group-data-[size=sm]/number-field-group:rounded-sm group-data-[size=sm]/number-field-group:[&_svg:not([class*='size-'])]:size-3";
|
|
35
|
+
function NumberFieldDecrement({ className, children, ...props }) {
|
|
36
|
+
return (_jsx(NumberFieldPrimitive.Decrement, { "data-slot": "number-field-decrement", "aria-label": "Decrease", className: cn(stepper, className), ...props, children: children ?? _jsx(MinusIcon, {}) }));
|
|
37
|
+
}
|
|
38
|
+
function NumberFieldIncrement({ className, children, ...props }) {
|
|
39
|
+
return (_jsx(NumberFieldPrimitive.Increment, { "data-slot": "number-field-increment", "aria-label": "Increase", className: cn(stepper, className), ...props, children: children ?? _jsx(PlusIcon, {}) }));
|
|
40
|
+
}
|
|
41
|
+
/** Drag horizontally over its children (usually the label) to change the value. */
|
|
42
|
+
function NumberFieldScrubArea({ className, children, ...props }) {
|
|
43
|
+
return (_jsxs(NumberFieldPrimitive.ScrubArea, { "data-slot": "number-field-scrub-area", className: cn("flex w-fit cursor-ew-resize items-center gap-2 select-none *:cursor-ew-resize", className), ...props, children: [children, _jsx(NumberFieldScrubAreaCursor, {})] }));
|
|
44
|
+
}
|
|
45
|
+
function NumberFieldScrubAreaCursor({ className, children, ...props }) {
|
|
46
|
+
return (_jsx(NumberFieldPrimitive.ScrubAreaCursor, { "data-slot": "number-field-scrub-area-cursor", className: cn("text-foreground drop-shadow-sm", className), ...props, children: children ?? _jsx(MoveHorizontalIcon, { className: "size-5" }) }));
|
|
47
|
+
}
|
|
48
|
+
export { NumberField, NumberFieldDecrement, NumberFieldGroup, numberFieldGroupVariants, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea, NumberFieldScrubAreaCursor, };
|
|
49
|
+
//# sourceMappingURL=number-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../src/components/number-field.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
/**
|
|
3
|
+
* Top of a page: eyebrow (badges, breadcrumb), title, description, actions. Same scale on every site of
|
|
4
|
+
* the suite.
|
|
5
|
+
*/
|
|
6
|
+
declare function PageHeader({ className, render, ...props }: useRender.ComponentProps<"header">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
+
/** Above the title: category badges, a breadcrumb, a status. */
|
|
8
|
+
declare function PageHeaderEyebrow({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
9
|
+
declare function PageHeaderTitle({ className, render, ...props }: useRender.ComponentProps<"h1">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
+
declare function PageHeaderDescription({ className, render, ...props }: useRender.ComponentProps<"p">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
11
|
+
declare function PageHeaderActions({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
12
|
+
export { PageHeader, PageHeaderActions, PageHeaderDescription, PageHeaderEyebrow, PageHeaderTitle };
|
|
13
|
+
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../src/components/page-header.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAGpD;;;GAGG;AACH,iBAAS,UAAU,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,8FAOpF;AAED,gEAAgE;AAChE,iBAAS,iBAAiB,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,8FAOxF;AAED,iBAAS,eAAe,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,8FAUrF;AAED,iBAAS,qBAAqB,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,8FAU1F;AAED,iBAAS,iBAAiB,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,8FAOxF;AAED,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,eAAe,EAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
/**
|
|
6
|
+
* Top of a page: eyebrow (badges, breadcrumb), title, description, actions. Same scale on every site of
|
|
7
|
+
* the suite.
|
|
8
|
+
*/
|
|
9
|
+
function PageHeader({ className, render, ...props }) {
|
|
10
|
+
return useRender({
|
|
11
|
+
defaultTagName: "header",
|
|
12
|
+
props: mergeProps({ className: cn("flex flex-col gap-3", className) }, props),
|
|
13
|
+
render,
|
|
14
|
+
state: { slot: "page-header" },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/** Above the title: category badges, a breadcrumb, a status. */
|
|
18
|
+
function PageHeaderEyebrow({ className, render, ...props }) {
|
|
19
|
+
return useRender({
|
|
20
|
+
defaultTagName: "div",
|
|
21
|
+
props: mergeProps({ className: cn("flex flex-wrap items-center gap-2", className) }, props),
|
|
22
|
+
render,
|
|
23
|
+
state: { slot: "page-header-eyebrow" },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function PageHeaderTitle({ className, render, ...props }) {
|
|
27
|
+
return useRender({
|
|
28
|
+
defaultTagName: "h1",
|
|
29
|
+
props: mergeProps({ className: cn("font-heading text-3xl font-semibold tracking-tight text-balance", className) }, props),
|
|
30
|
+
render,
|
|
31
|
+
state: { slot: "page-header-title" },
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function PageHeaderDescription({ className, render, ...props }) {
|
|
35
|
+
return useRender({
|
|
36
|
+
defaultTagName: "p",
|
|
37
|
+
props: mergeProps({ className: cn("max-w-3xl text-base text-pretty text-muted-foreground md:text-lg", className) }, props),
|
|
38
|
+
render,
|
|
39
|
+
state: { slot: "page-header-description" },
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function PageHeaderActions({ className, render, ...props }) {
|
|
43
|
+
return useRender({
|
|
44
|
+
defaultTagName: "div",
|
|
45
|
+
props: mergeProps({ className: cn("flex flex-wrap items-center gap-2 pt-1", className) }, props),
|
|
46
|
+
render,
|
|
47
|
+
state: { slot: "page-header-actions" },
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export { PageHeader, PageHeaderActions, PageHeaderDescription, PageHeaderEyebrow, PageHeaderTitle };
|
|
51
|
+
//# sourceMappingURL=page-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.js","sourceRoot":"","sources":["../../src/components/page-header.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAC,UAAU,EAAC,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AAEtB;;;GAGG;AACH,SAAS,UAAU,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAqC;IACjF,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,QAAQ;QACxB,KAAK,EAAE,UAAU,CAAW,EAAC,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,EAAC,EAAE,KAAK,CAAC;QACrF,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,aAAa,EAAC;KAC/B,CAAC,CAAC;AACP,CAAC;AAED,gEAAgE;AAChE,SAAS,iBAAiB,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAkC;IACrF,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,UAAU,CAAQ,EAAC,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,EAAC,EAAE,KAAK,CAAC;QAChG,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,qBAAqB,EAAC;KACvC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,eAAe,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAiC;IAClF,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,IAAI;QACpB,KAAK,EAAE,UAAU,CACb,EAAC,SAAS,EAAE,EAAE,CAAC,iEAAiE,EAAE,SAAS,CAAC,EAAC,EAC7F,KAAK,CACR;QACD,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,mBAAmB,EAAC;KACrC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,qBAAqB,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAgC;IACvF,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,GAAG;QACnB,KAAK,EAAE,UAAU,CACb,EAAC,SAAS,EAAE,EAAE,CAAC,kEAAkE,EAAE,SAAS,CAAC,EAAC,EAC9F,KAAK,CACR;QACD,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,yBAAyB,EAAC;KAC3C,CAAC,CAAC;AACP,CAAC;AAED,SAAS,iBAAiB,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAkC;IACrF,OAAO,SAAS,CAAC;QACb,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,UAAU,CAAQ,EAAC,SAAS,EAAE,EAAE,CAAC,wCAAwC,EAAE,SAAS,CAAC,EAAC,EAAE,KAAK,CAAC;QACrG,MAAM;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,qBAAqB,EAAC;KACvC,CAAC,CAAC;AACP,CAAC;AAED,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,eAAe,EAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
/** Previous / next page links at the end of a page. */
|
|
4
|
+
declare function Pager({ className, render, ...props }: useRender.ComponentProps<"nav">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
5
|
+
interface PagerLinkProps extends useRender.ComponentProps<"a"> {
|
|
6
|
+
direction: "previous" | "next";
|
|
7
|
+
/** Small caption above the title. Defaults to "Previous" / "Next". */
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/** A pager card: caption + page title, arrow on the travel side. Pass router links with `render`. */
|
|
11
|
+
declare function PagerLink({ className, render, direction, label, children, ...props }: PagerLinkProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
12
|
+
export { Pager, PagerLink };
|
|
13
|
+
export type { PagerLinkProps };
|
|
14
|
+
//# sourceMappingURL=pager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pager.d.ts","sourceRoot":"","sources":["../../src/components/pager.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,uDAAuD;AACvD,iBAAS,KAAK,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,0EAa5E;AAED,UAAU,cAAe,SAAQ,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC;IAC1D,SAAS,EAAE,UAAU,GAAG,MAAM,CAAC;IAC/B,sEAAsE;IACtE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,qGAAqG;AACrG,iBAAS,SAAS,CAAC,EAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,cAAc,0EAkC3F;AAED,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,CAAC;AAC1B,YAAY,EAAC,cAAc,EAAC,CAAC"}
|