@kujoforall/paper-ui 0.1.0 → 0.2.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/CHANGELOG.md +94 -0
- package/README.md +50 -7
- package/dist/components/editor/block-text.d.ts.map +1 -1
- package/dist/components/editor/block-text.js +52 -17
- package/dist/components/editor/block-text.js.map +1 -1
- package/dist/components/editor/blocks.d.ts.map +1 -1
- package/dist/components/editor/blocks.js +17 -13
- package/dist/components/editor/blocks.js.map +1 -1
- package/dist/components/editor/document-editor.d.ts.map +1 -1
- package/dist/components/editor/document-editor.js +4 -2
- package/dist/components/editor/document-editor.js.map +1 -1
- package/dist/components/editor/document-view.d.ts.map +1 -1
- package/dist/components/editor/document-view.js +17 -12
- package/dist/components/editor/document-view.js.map +1 -1
- package/dist/components/editor/editor-state.d.ts +7 -0
- package/dist/components/editor/editor-state.d.ts.map +1 -1
- package/dist/components/editor/editor-state.js +28 -3
- package/dist/components/editor/editor-state.js.map +1 -1
- package/dist/components/editor/extensions/kit-blocks.d.ts +34 -0
- package/dist/components/editor/extensions/kit-blocks.d.ts.map +1 -0
- package/dist/components/editor/extensions/kit-blocks.js +201 -0
- package/dist/components/editor/extensions/kit-blocks.js.map +1 -0
- package/dist/components/editor/extensions/spoiler.d.ts.map +1 -1
- package/dist/components/editor/extensions/spoiler.js +2 -2
- package/dist/components/editor/extensions/spoiler.js.map +1 -1
- package/dist/components/editor/index.d.ts +1 -0
- package/dist/components/editor/index.d.ts.map +1 -1
- package/dist/components/editor/index.js +1 -0
- package/dist/components/editor/index.js.map +1 -1
- package/dist/components/editor/kinds.js +1 -1
- package/dist/components/editor/kinds.js.map +1 -1
- package/dist/components/editor/look.d.ts +18 -0
- package/dist/components/editor/look.d.ts.map +1 -0
- package/dist/components/editor/look.js +21 -0
- package/dist/components/editor/look.js.map +1 -0
- package/dist/components/three/model-viewer.d.ts +36 -0
- package/dist/components/three/model-viewer.d.ts.map +1 -0
- package/dist/components/three/model-viewer.js +338 -0
- package/dist/components/three/model-viewer.js.map +1 -0
- package/dist/components/ui/accent-picker.js +1 -1
- package/dist/components/ui/accent-picker.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +29 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +72 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/animated-height.d.ts +6 -0
- package/dist/components/ui/animated-height.d.ts.map +1 -0
- package/dist/components/ui/animated-height.js +26 -0
- package/dist/components/ui/animated-height.js.map +1 -0
- package/dist/components/ui/app-shell.d.ts +1 -0
- package/dist/components/ui/app-shell.d.ts.map +1 -1
- package/dist/components/ui/app-shell.js +5 -3
- package/dist/components/ui/app-shell.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +30 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +50 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +3 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/banner.d.ts +33 -0
- package/dist/components/ui/banner.d.ts.map +1 -0
- package/dist/components/ui/banner.js +21 -0
- package/dist/components/ui/banner.js.map +1 -0
- package/dist/components/ui/breadcrumbs.js +1 -1
- package/dist/components/ui/breadcrumbs.js.map +1 -1
- package/dist/components/ui/button.d.ts +8 -6
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +91 -26
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +6 -5
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/callout.d.ts +23 -4
- package/dist/components/ui/callout.d.ts.map +1 -1
- package/dist/components/ui/callout.js +28 -15
- package/dist/components/ui/callout.js.map +1 -1
- package/dist/components/ui/card.d.ts +13 -8
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +10 -9
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +9 -4
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +25 -5
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/choice-label.d.ts +13 -0
- package/dist/components/ui/choice-label.d.ts.map +1 -0
- package/dist/components/ui/choice-label.js +17 -0
- package/dist/components/ui/choice-label.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +10 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +21 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/collection-layout.d.ts +24 -0
- package/dist/components/ui/collection-layout.d.ts.map +1 -0
- package/dist/components/ui/collection-layout.js +16 -0
- package/dist/components/ui/collection-layout.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +10 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +93 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command-menu.d.ts +5 -2
- package/dist/components/ui/command-menu.d.ts.map +1 -1
- package/dist/components/ui/command-menu.js +31 -6
- package/dist/components/ui/command-menu.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +19 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +42 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/copy-button.d.ts +11 -0
- package/dist/components/ui/copy-button.d.ts.map +1 -0
- package/dist/components/ui/copy-button.js +48 -0
- package/dist/components/ui/copy-button.js.map +1 -0
- package/dist/components/ui/database/calendar-view.d.ts +10 -0
- package/dist/components/ui/database/calendar-view.d.ts.map +1 -0
- package/dist/components/ui/database/calendar-view.js +65 -0
- package/dist/components/ui/database/calendar-view.js.map +1 -0
- package/dist/components/ui/database/card-views.d.ts +22 -0
- package/dist/components/ui/database/card-views.d.ts.map +1 -0
- package/dist/components/ui/database/card-views.js +74 -0
- package/dist/components/ui/database/card-views.js.map +1 -0
- package/dist/components/ui/database/cells.d.ts +20 -0
- package/dist/components/ui/database/cells.d.ts.map +1 -0
- package/dist/components/ui/database/cells.js +132 -0
- package/dist/components/ui/database/cells.js.map +1 -0
- package/dist/components/ui/database/database.d.ts +19 -0
- package/dist/components/ui/database/database.d.ts.map +1 -0
- package/dist/components/ui/database/database.js +102 -0
- package/dist/components/ui/database/database.js.map +1 -0
- package/dist/components/ui/database/icons.d.ts +5 -0
- package/dist/components/ui/database/icons.d.ts.map +1 -0
- package/dist/components/ui/database/icons.js +13 -0
- package/dist/components/ui/database/icons.js.map +1 -0
- package/dist/components/ui/database/table-view.d.ts +11 -0
- package/dist/components/ui/database/table-view.d.ts.map +1 -0
- package/dist/components/ui/database/table-view.js +157 -0
- package/dist/components/ui/database/table-view.js.map +1 -0
- package/dist/components/ui/date-picker.d.ts +6 -1
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +20 -12
- package/dist/components/ui/date-picker.js.map +1 -1
- package/dist/components/ui/date-time-picker.d.ts +3 -1
- package/dist/components/ui/date-time-picker.d.ts.map +1 -1
- package/dist/components/ui/date-time-picker.js +17 -15
- package/dist/components/ui/date-time-picker.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +13 -9
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +33 -3
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/document-layout.d.ts +15 -0
- package/dist/components/ui/document-layout.d.ts.map +1 -0
- package/dist/components/ui/document-layout.js +15 -0
- package/dist/components/ui/document-layout.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +14 -10
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +22 -13
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/editable-text.d.ts +9 -2
- package/dist/components/ui/editable-text.d.ts.map +1 -1
- package/dist/components/ui/editable-text.js +27 -10
- package/dist/components/ui/editable-text.js.map +1 -1
- package/dist/components/ui/empty-state.d.ts +11 -0
- package/dist/components/ui/empty-state.d.ts.map +1 -0
- package/dist/components/ui/empty-state.js +9 -0
- package/dist/components/ui/empty-state.js.map +1 -0
- package/dist/components/ui/error-state.d.ts +20 -0
- package/dist/components/ui/error-state.d.ts.map +1 -0
- package/dist/components/ui/error-state.js +17 -0
- package/dist/components/ui/error-state.js.map +1 -0
- package/dist/components/ui/field-button.d.ts +2 -1
- package/dist/components/ui/field-button.d.ts.map +1 -1
- package/dist/components/ui/field-button.js +7 -5
- package/dist/components/ui/field-button.js.map +1 -1
- package/dist/components/ui/file-preview.js +1 -1
- package/dist/components/ui/file-preview.js.map +1 -1
- package/dist/components/ui/file-uploader.d.ts.map +1 -1
- package/dist/components/ui/file-uploader.js +5 -4
- package/dist/components/ui/file-uploader.js.map +1 -1
- package/dist/components/ui/filter-builder.d.ts +18 -0
- package/dist/components/ui/filter-builder.d.ts.map +1 -0
- package/dist/components/ui/filter-builder.js +98 -0
- package/dist/components/ui/filter-builder.js.map +1 -0
- package/dist/components/ui/focus-shell.d.ts +14 -0
- package/dist/components/ui/focus-shell.d.ts.map +1 -0
- package/dist/components/ui/focus-shell.js +13 -0
- package/dist/components/ui/focus-shell.js.map +1 -0
- package/dist/components/ui/handle-row.d.ts +11 -1
- package/dist/components/ui/handle-row.d.ts.map +1 -1
- package/dist/components/ui/handle-row.js +101 -32
- package/dist/components/ui/handle-row.js.map +1 -1
- package/dist/components/ui/header-bar.d.ts +5 -0
- package/dist/components/ui/header-bar.d.ts.map +1 -0
- package/dist/components/ui/header-bar.js +10 -0
- package/dist/components/ui/header-bar.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +13 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/image-block.js +4 -4
- package/dist/components/ui/image-block.js.map +1 -1
- package/dist/components/ui/image-card.d.ts.map +1 -1
- package/dist/components/ui/image-card.js +5 -4
- package/dist/components/ui/image-card.js.map +1 -1
- package/dist/components/ui/image-framer.d.ts +24 -0
- package/dist/components/ui/image-framer.d.ts.map +1 -0
- package/dist/components/ui/image-framer.js +89 -0
- package/dist/components/ui/image-framer.js.map +1 -0
- package/dist/components/ui/image-viewer.d.ts.map +1 -1
- package/dist/components/ui/image-viewer.js +38 -5
- package/dist/components/ui/image-viewer.js.map +1 -1
- package/dist/components/ui/image.d.ts +25 -3
- package/dist/components/ui/image.d.ts.map +1 -1
- package/dist/components/ui/image.js +50 -21
- package/dist/components/ui/image.js.map +1 -1
- package/dist/components/ui/index.d.ts +54 -11
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +53 -10
- package/dist/components/ui/index.js.map +1 -1
- package/dist/components/ui/input.d.ts +71 -12
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +236 -23
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/link-block.d.ts.map +1 -1
- package/dist/components/ui/link-block.js +1 -1
- package/dist/components/ui/link-block.js.map +1 -1
- package/dist/components/ui/list-detail.d.ts +23 -0
- package/dist/components/ui/list-detail.d.ts.map +1 -0
- package/dist/components/ui/list-detail.js +33 -0
- package/dist/components/ui/list-detail.js.map +1 -0
- package/dist/components/ui/listbox.d.ts +7 -0
- package/dist/components/ui/listbox.d.ts.map +1 -0
- package/dist/components/ui/listbox.js +29 -0
- package/dist/components/ui/listbox.js.map +1 -0
- package/dist/components/ui/mac-card.js +1 -1
- package/dist/components/ui/mac-card.js.map +1 -1
- package/dist/components/ui/month-picker.d.ts +13 -0
- package/dist/components/ui/month-picker.d.ts.map +1 -0
- package/dist/components/ui/month-picker.js +53 -0
- package/dist/components/ui/month-picker.js.map +1 -0
- package/dist/components/ui/multi-select.d.ts +22 -0
- package/dist/components/ui/multi-select.d.ts.map +1 -0
- package/dist/components/ui/multi-select.js +88 -0
- package/dist/components/ui/multi-select.js.map +1 -0
- package/dist/components/ui/nav-tree.d.ts.map +1 -1
- package/dist/components/ui/nav-tree.js +10 -3
- package/dist/components/ui/nav-tree.js.map +1 -1
- package/dist/components/ui/page.d.ts +16 -5
- package/dist/components/ui/page.d.ts.map +1 -1
- package/dist/components/ui/page.js +23 -10
- package/dist/components/ui/page.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +26 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +54 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/picker-panel.d.ts +13 -0
- package/dist/components/ui/picker-panel.d.ts.map +1 -0
- package/dist/components/ui/picker-panel.js +19 -0
- package/dist/components/ui/picker-panel.js.map +1 -0
- package/dist/components/ui/popover.d.ts +2 -2
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +11 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +17 -4
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/property.d.ts +2 -6
- package/dist/components/ui/property.d.ts.map +1 -1
- package/dist/components/ui/property.js +6 -22
- package/dist/components/ui/property.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +8 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +18 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/rating.d.ts +14 -0
- package/dist/components/ui/rating.d.ts.map +1 -0
- package/dist/components/ui/rating.js +61 -0
- package/dist/components/ui/rating.js.map +1 -0
- package/dist/components/ui/save-status.d.ts +8 -0
- package/dist/components/ui/save-status.d.ts.map +1 -0
- package/dist/components/ui/save-status.js +31 -0
- package/dist/components/ui/save-status.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +15 -7
- package/dist/components/ui/segmented.d.ts.map +1 -1
- package/dist/components/ui/segmented.js +8 -6
- package/dist/components/ui/segmented.js.map +1 -1
- package/dist/components/ui/select-menu.d.ts +3 -1
- package/dist/components/ui/select-menu.d.ts.map +1 -1
- package/dist/components/ui/select-menu.js +2 -2
- package/dist/components/ui/select-menu.js.map +1 -1
- package/dist/components/ui/select.d.ts +7 -2
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +19 -5
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/selection-bar.js +1 -1
- package/dist/components/ui/selection-bar.js.map +1 -1
- package/dist/components/ui/settings-layout.d.ts +34 -0
- package/dist/components/ui/settings-layout.d.ts.map +1 -0
- package/dist/components/ui/settings-layout.js +16 -0
- package/dist/components/ui/settings-layout.js.map +1 -0
- package/dist/components/ui/share-link.d.ts +14 -0
- package/dist/components/ui/share-link.d.ts.map +1 -0
- package/dist/components/ui/share-link.js +16 -0
- package/dist/components/ui/share-link.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +21 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +53 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +258 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +8 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +15 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +12 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +14 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/spotlight.d.ts.map +1 -1
- package/dist/components/ui/spotlight.js +14 -11
- package/dist/components/ui/spotlight.js.map +1 -1
- package/dist/components/ui/step-dialog.js +3 -3
- package/dist/components/ui/step-dialog.js.map +1 -1
- package/dist/components/ui/steps-layout.d.ts +20 -0
- package/dist/components/ui/steps-layout.d.ts.map +1 -0
- package/dist/components/ui/steps-layout.js +26 -0
- package/dist/components/ui/steps-layout.js.map +1 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +13 -5
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +65 -12
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +19 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/theme-toggle.d.ts +14 -0
- package/dist/components/ui/theme-toggle.d.ts.map +1 -1
- package/dist/components/ui/theme-toggle.js +69 -41
- package/dist/components/ui/theme-toggle.js.map +1 -1
- package/dist/components/ui/time-list.d.ts +16 -0
- package/dist/components/ui/time-list.d.ts.map +1 -0
- package/dist/components/ui/time-list.js +49 -0
- package/dist/components/ui/time-list.js.map +1 -0
- package/dist/components/ui/time-picker.d.ts +37 -11
- package/dist/components/ui/time-picker.d.ts.map +1 -1
- package/dist/components/ui/time-picker.js +130 -52
- package/dist/components/ui/time-picker.js.map +1 -1
- package/dist/components/ui/toast.d.ts +18 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +77 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +15 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +55 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +13 -2
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/ui/top-bar.d.ts +25 -0
- package/dist/components/ui/top-bar.d.ts.map +1 -0
- package/dist/components/ui/top-bar.js +23 -0
- package/dist/components/ui/top-bar.js.map +1 -0
- package/dist/components/ui/typography.d.ts +11 -5
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/components/ui/typography.js +31 -5
- package/dist/components/ui/typography.js.map +1 -1
- package/dist/components/ui/video-block.d.ts.map +1 -1
- package/dist/components/ui/video-block.js +5 -1
- package/dist/components/ui/video-block.js.map +1 -1
- package/dist/hooks/use-dismiss.d.ts +5 -0
- package/dist/hooks/use-dismiss.d.ts.map +1 -0
- package/dist/hooks/use-dismiss.js +23 -0
- package/dist/hooks/use-dismiss.js.map +1 -0
- package/dist/hooks/use-escape-first.d.ts +3 -0
- package/dist/hooks/use-escape-first.d.ts.map +1 -0
- package/dist/hooks/use-escape-first.js +27 -0
- package/dist/hooks/use-escape-first.js.map +1 -0
- package/dist/hooks/use-media-query.d.ts +5 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +16 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-save-queue.d.ts.map +1 -1
- package/dist/hooks/use-save-queue.js +19 -7
- package/dist/hooks/use-save-queue.js.map +1 -1
- package/dist/hooks/use-selection.d.ts.map +1 -1
- package/dist/hooks/use-selection.js +10 -1
- package/dist/hooks/use-selection.js.map +1 -1
- package/dist/lib/database.d.ts +92 -0
- package/dist/lib/database.d.ts.map +1 -0
- package/dist/lib/database.js +272 -0
- package/dist/lib/database.js.map +1 -0
- package/dist/lib/dates.d.ts +16 -0
- package/dist/lib/dates.d.ts.map +1 -1
- package/dist/lib/dates.js +27 -0
- package/dist/lib/dates.js.map +1 -1
- package/dist/lib/keys.d.ts +18 -0
- package/dist/lib/keys.d.ts.map +1 -0
- package/dist/lib/keys.js +66 -0
- package/dist/lib/keys.js.map +1 -0
- package/dist/lib/number.d.ts +4 -0
- package/dist/lib/number.d.ts.map +1 -0
- package/dist/lib/number.js +33 -0
- package/dist/lib/number.js.map +1 -0
- package/dist/lib/pointer.d.ts +2 -0
- package/dist/lib/pointer.d.ts.map +1 -0
- package/dist/lib/pointer.js +4 -0
- package/dist/lib/pointer.js.map +1 -0
- package/dist/lib/prepare-image.d.ts +43 -0
- package/dist/lib/prepare-image.d.ts.map +1 -0
- package/dist/lib/prepare-image.js +105 -0
- package/dist/lib/prepare-image.js.map +1 -0
- package/dist/lib/rich-text-dom.d.ts +2 -0
- package/dist/lib/rich-text-dom.d.ts.map +1 -1
- package/dist/lib/rich-text-dom.js +5 -3
- package/dist/lib/rich-text-dom.js.map +1 -1
- package/dist/lib/theme.d.ts +6 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/theme.js +15 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/lib/time.d.ts +19 -0
- package/dist/lib/time.d.ts.map +1 -0
- package/dist/lib/time.js +91 -0
- package/dist/lib/time.js.map +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +20 -2
- package/dist/lib/utils.js.map +1 -1
- package/dist/styles/notion.css +342 -51
- package/package.json +27 -4
- package/src/components/editor/block-text.tsx +58 -17
- package/src/components/editor/blocks.tsx +19 -14
- package/src/components/editor/document-editor.tsx +7 -2
- package/src/components/editor/document-view.tsx +37 -24
- package/src/components/editor/editor-state.tsx +31 -3
- package/src/components/editor/extensions/kit-blocks.tsx +452 -0
- package/src/components/editor/extensions/spoiler.tsx +9 -4
- package/src/components/editor/index.ts +1 -0
- package/src/components/editor/kinds.ts +1 -1
- package/src/components/editor/look.tsx +36 -0
- package/src/components/three/model-viewer.tsx +514 -0
- package/src/components/ui/accent-picker.tsx +2 -2
- package/src/components/ui/alert-dialog.tsx +136 -0
- package/src/components/ui/animated-height.tsx +34 -0
- package/src/components/ui/app-shell.tsx +9 -7
- package/src/components/ui/avatar.tsx +106 -0
- package/src/components/ui/badge.tsx +4 -4
- package/src/components/ui/banner.tsx +53 -0
- package/src/components/ui/breadcrumbs.tsx +1 -1
- package/src/components/ui/button.tsx +115 -41
- package/src/components/ui/calendar.tsx +8 -7
- package/src/components/ui/callout.tsx +41 -42
- package/src/components/ui/card.tsx +27 -58
- package/src/components/ui/checkbox.tsx +53 -19
- package/src/components/ui/choice-label.tsx +43 -0
- package/src/components/ui/collapsible.tsx +58 -0
- package/src/components/ui/collection-layout.tsx +69 -0
- package/src/components/ui/combobox.tsx +155 -0
- package/src/components/ui/command-menu.tsx +61 -31
- package/src/components/ui/context-menu.tsx +89 -0
- package/src/components/ui/copy-button.tsx +80 -0
- package/src/components/ui/database/calendar-view.tsx +180 -0
- package/src/components/ui/database/card-views.tsx +221 -0
- package/src/components/ui/database/cells.tsx +237 -0
- package/src/components/ui/database/database.tsx +279 -0
- package/src/components/ui/database/icons.ts +15 -0
- package/src/components/ui/database/table-view.tsx +311 -0
- package/src/components/ui/date-picker.tsx +99 -61
- package/src/components/ui/date-time-picker.tsx +68 -62
- package/src/components/ui/dialog.tsx +48 -21
- package/src/components/ui/document-layout.tsx +52 -0
- package/src/components/ui/dropdown-menu.tsx +33 -31
- package/src/components/ui/editable-text.tsx +40 -7
- package/src/components/ui/empty-state.tsx +35 -0
- package/src/components/ui/error-state.tsx +67 -0
- package/src/components/ui/field-button.tsx +11 -9
- package/src/components/ui/file-preview.tsx +1 -1
- package/src/components/ui/file-uploader.tsx +23 -24
- package/src/components/ui/filter-builder.tsx +304 -0
- package/src/components/ui/focus-shell.tsx +48 -0
- package/src/components/ui/handle-row.tsx +176 -40
- package/src/components/ui/header-bar.tsx +15 -0
- package/src/components/ui/hover-card.tsx +30 -0
- package/src/components/ui/image-block.tsx +6 -6
- package/src/components/ui/image-card.tsx +18 -25
- package/src/components/ui/image-framer.tsx +160 -0
- package/src/components/ui/image-viewer.tsx +53 -10
- package/src/components/ui/image.tsx +133 -29
- package/src/components/ui/index.ts +106 -11
- package/src/components/ui/input.tsx +437 -65
- package/src/components/ui/link-block.tsx +5 -2
- package/src/components/ui/list-detail.tsx +115 -0
- package/src/components/ui/listbox.ts +26 -0
- package/src/components/ui/mac-card.tsx +5 -5
- package/src/components/ui/month-picker.tsx +119 -0
- package/src/components/ui/multi-select.tsx +221 -0
- package/src/components/ui/nav-tree.tsx +11 -5
- package/src/components/ui/page.tsx +63 -15
- package/src/components/ui/pagination.tsx +143 -0
- package/src/components/ui/picker-panel.tsx +69 -0
- package/src/components/ui/popover.tsx +3 -3
- package/src/components/ui/progress.tsx +56 -16
- package/src/components/ui/property.tsx +6 -37
- package/src/components/ui/radio-group.tsx +61 -0
- package/src/components/ui/rating.tsx +122 -0
- package/src/components/ui/save-status.tsx +53 -0
- package/src/components/ui/segmented.tsx +48 -16
- package/src/components/ui/select-menu.tsx +11 -3
- package/src/components/ui/select.tsx +33 -10
- package/src/components/ui/selection-bar.tsx +1 -1
- package/src/components/ui/settings-layout.tsx +117 -0
- package/src/components/ui/share-link.tsx +66 -0
- package/src/components/ui/sheet.tsx +90 -0
- package/src/components/ui/sidebar.tsx +627 -0
- package/src/components/ui/skeleton.tsx +22 -0
- package/src/components/ui/spinner.tsx +28 -0
- package/src/components/ui/spotlight.tsx +21 -21
- package/src/components/ui/step-dialog.tsx +6 -6
- package/src/components/ui/steps-layout.tsx +91 -0
- package/src/components/ui/switch.tsx +55 -0
- package/src/components/ui/table.tsx +75 -18
- package/src/components/ui/tabs.tsx +41 -0
- package/src/components/ui/theme-toggle.tsx +74 -83
- package/src/components/ui/time-list.tsx +106 -0
- package/src/components/ui/time-picker.tsx +305 -134
- package/src/components/ui/toast.tsx +132 -0
- package/src/components/ui/toggle.tsx +76 -0
- package/src/components/ui/tooltip.tsx +20 -6
- package/src/components/ui/top-bar.tsx +118 -0
- package/src/components/ui/typography.tsx +45 -9
- package/src/components/ui/video-block.tsx +9 -3
- package/src/hooks/use-dismiss.ts +24 -0
- package/src/hooks/use-escape-first.ts +25 -0
- package/src/hooks/use-media-query.ts +23 -0
- package/src/hooks/use-save-queue.ts +19 -7
- package/src/hooks/use-selection.ts +8 -1
- package/src/lib/database.ts +322 -0
- package/src/lib/dates.ts +36 -0
- package/src/lib/keys.ts +72 -0
- package/src/lib/number.ts +29 -0
- package/src/lib/pointer.ts +3 -0
- package/src/lib/prepare-image.ts +141 -0
- package/src/lib/rich-text-dom.ts +5 -3
- package/src/lib/theme.ts +18 -0
- package/src/lib/time.ts +83 -0
- package/src/lib/utils.ts +21 -2
- package/src/styles/notion.css +342 -51
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export declare function Switch({ size, label, description, className, ...props }: ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: "sm" | "md";
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAevD,wBAAgB,MAAM,CAAC,EACnB,IAAW,EACX,KAAK,EACL,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACX,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,WAAW,CAAC,EAAE,SAAS,CAAA;CAAE,+BA8BlH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { ChoiceLabel } from "./choice-label.js";
|
|
6
|
+
import { fromField, useField } from "./input.js";
|
|
7
|
+
/* A setting that is on or off and takes effect at once: no Save to press. For a
|
|
8
|
+
choice that is saved with a form, a Checkbox. Off is a track in the control edge
|
|
9
|
+
(3:1, so it reads as a control and not as a gap), on is the accent; the thumb is
|
|
10
|
+
white on both. With `label` the words sit before it, pressable too. */
|
|
11
|
+
const track = {
|
|
12
|
+
sm: "h-4 w-7 [&>span]:size-3 [&>span]:data-[state=checked]:translate-x-3",
|
|
13
|
+
md: "h-5 w-9 [&>span]:size-4 [&>span]:data-[state=checked]:translate-x-4",
|
|
14
|
+
};
|
|
15
|
+
export function Switch({ size = "md", label, description, className, ...props }) {
|
|
16
|
+
const own = fromField(useField(), props);
|
|
17
|
+
return (_jsx(ChoiceLabel, { end: true, label: label, description: description, disabled: own.disabled, control: ({ labelId, descriptionId }) => (_jsx(SwitchPrimitive.Root, { "aria-labelledby": own["aria-labelledby"] ?? labelId, ...own, "aria-describedby": [own["aria-describedby"], descriptionId].filter(Boolean).join(" ") || undefined, className: cn("relative inline-flex items-center p-0.5 rounded-full shrink-0 outline-offset-2", "bg-control-edge data-[state=checked]:bg-accent-solid hover:data-[state=checked]:bg-accent-solid-hover", "transition-colors duration-(--duration-fast)", "aria-invalid:shadow-[0_0_0_1.5px_var(--danger)]", "disabled:cursor-not-allowed disabled:bg-tint-active disabled:data-[state=checked]:bg-tint-active",
|
|
18
|
+
// 24px to press.
|
|
19
|
+
"after:absolute after:-inset-y-1 after:-inset-x-0.5 after:content-['']", track[size], className), children: _jsx(SwitchPrimitive.Thumb, { className: "block bg-accent-ink shadow-sm rounded-full transition-transform duration-(--duration-fast) ease-out-notion" }) })) }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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AC7H,CAC1B,GACH,CACL,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function Table({ className, children, ...props }:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
export declare function Table({ className, children, label, ...props }: ComponentProps<"table"> & {
|
|
3
|
+
label?: string;
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
/** The table's name, shown above it; it names the scrolling box too. */
|
|
6
|
+
export declare function TableCaption({ className, ...props }: ComponentProps<"caption">): import("react").JSX.Element;
|
|
7
|
+
export declare function Th({ className, numeric, ...props }: ComponentProps<"th"> & {
|
|
8
|
+
numeric?: boolean;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare function Td({ className, numeric, ...props }: ComponentProps<"td"> & {
|
|
11
|
+
numeric?: boolean;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export declare function ClickableRow({ className, onOpen, onClick, onKeyDown, ...props }: ComponentProps<"tr"> & {
|
|
6
14
|
onOpen: () => void;
|
|
7
15
|
}): import("react").JSX.Element;
|
|
8
16
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAc3G,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAoC3G;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,SAAS,CAAC,+BAG9E;AAID,wBAAgB,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+BAEhG;AAED,wBAAgB,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+BAEhG;AAGD,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,+BA2B9H"}
|
|
@@ -1,23 +1,76 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useEffect, useId, useRef, useState } from "react";
|
|
3
4
|
import { cn } from "../../lib/utils.js";
|
|
4
5
|
/* Notion's simple table: a hairline grid, a sunken header row, 14px text. It scrolls
|
|
5
6
|
sideways inside its own box rather than squeezing columns below a readable width,
|
|
6
|
-
which is what keeps a page from scrolling sideways on a phone.
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
which is what keeps a page from scrolling sideways on a phone. That box can be
|
|
8
|
+
reached with Tab and scrolled with the arrow keys, and is named by the table's
|
|
9
|
+
caption (or `label`), so the part out of view is not out of reach.
|
|
10
|
+
|
|
11
|
+
A number column: `<Td numeric>` and `<Th numeric>`, right-aligned in figures of one
|
|
12
|
+
width so the digits line up. A row that opens something: ClickableRow. */
|
|
13
|
+
const CaptionId = createContext(undefined);
|
|
14
|
+
export function Table({ className, children, label, ...props }) {
|
|
15
|
+
const captionId = useId();
|
|
16
|
+
const box = useRef(null);
|
|
17
|
+
// Only a table wider than its box is a stop for the keyboard: one that fits has
|
|
18
|
+
// nothing to scroll, and an extra Tab stop would only be in the way.
|
|
19
|
+
const [scrolls, setScrolls] = useState(false);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const el = box.current;
|
|
22
|
+
if (!el || typeof ResizeObserver === "undefined")
|
|
23
|
+
return;
|
|
24
|
+
const check = () => setScrolls(el.scrollWidth > el.clientWidth + 1);
|
|
25
|
+
const observer = new ResizeObserver(check);
|
|
26
|
+
observer.observe(el);
|
|
27
|
+
if (el.firstElementChild)
|
|
28
|
+
observer.observe(el.firstElementChild);
|
|
29
|
+
check();
|
|
30
|
+
return () => observer.disconnect();
|
|
31
|
+
}, []);
|
|
32
|
+
const [hasCaption, setHasCaption] = useState(false);
|
|
33
|
+
useEffect(() => setHasCaption(!!box.current?.querySelector(`[id="${captionId}"]`)), [children, captionId]);
|
|
34
|
+
const named = label !== undefined || hasCaption;
|
|
35
|
+
return (
|
|
36
|
+
// A region the keyboard can scroll, named by `label` or the caption.
|
|
37
|
+
_jsx("div", { ref: box, role: scrolls && named ? "region" : undefined, "aria-label": scrolls ? label : undefined, "aria-labelledby": scrolls && label === undefined && hasCaption ? captionId : undefined, tabIndex: scrolls ? 0 : undefined, className: "rounded-small overflow-x-auto outline-offset-2", children: _jsx(CaptionId.Provider, { value: captionId, children: _jsx("table", { className: cn("w-full text-sm border-collapse", className), ...props, children: children }) }) }));
|
|
9
38
|
}
|
|
10
|
-
|
|
11
|
-
export function
|
|
12
|
-
|
|
39
|
+
/** The table's name, shown above it; it names the scrolling box too. */
|
|
40
|
+
export function TableCaption({ className, ...props }) {
|
|
41
|
+
const id = useContext(CaptionId);
|
|
42
|
+
return _jsx("caption", { id: id, className: cn("mb-2 font-medium text-ink-secondary text-sm text-left caption-top", className), ...props });
|
|
13
43
|
}
|
|
14
|
-
|
|
15
|
-
|
|
44
|
+
const cell = "border border-hairline-strong px-2.25 py-1.75 text-left align-top";
|
|
45
|
+
export function Th({ className, numeric, ...props }) {
|
|
46
|
+
return _jsx("th", { scope: "col", className: cn(cell, "bg-surface-sunken font-medium", numeric && "text-right", className), ...props });
|
|
47
|
+
}
|
|
48
|
+
export function Td({ className, numeric, ...props }) {
|
|
49
|
+
return _jsx("td", { className: cn(cell, "min-w-28", numeric && "text-right tabular-nums", className), ...props });
|
|
16
50
|
}
|
|
17
51
|
/* A row that opens something: hover tint, pointer, and Enter from the keyboard. */
|
|
18
|
-
export function ClickableRow({ className, onOpen, ...props }) {
|
|
19
|
-
return (_jsx("tr", { tabIndex: 0,
|
|
20
|
-
|
|
21
|
-
|
|
52
|
+
export function ClickableRow({ className, onOpen, onClick, onKeyDown, ...props }) {
|
|
53
|
+
return (_jsx("tr", { ...props, tabIndex: 0, onClick: (e) => {
|
|
54
|
+
onClick?.(e);
|
|
55
|
+
if (e.defaultPrevented)
|
|
56
|
+
return;
|
|
57
|
+
// React carries clicks up from portals, so a choice in a menu opened from
|
|
58
|
+
// this row arrives here too; only a click in the row's own DOM opens it.
|
|
59
|
+
if (!e.currentTarget.contains(e.target))
|
|
60
|
+
return;
|
|
61
|
+
// A link or a button inside a cell keeps its own click.
|
|
62
|
+
if (e.target.closest("a, button"))
|
|
63
|
+
return;
|
|
64
|
+
onOpen();
|
|
65
|
+
}, onKeyDown: (e) => {
|
|
66
|
+
onKeyDown?.(e);
|
|
67
|
+
if (e.defaultPrevented || e.target !== e.currentTarget)
|
|
68
|
+
return;
|
|
69
|
+
// Enter or Space, as for anything else that opens.
|
|
70
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
onOpen();
|
|
73
|
+
}
|
|
74
|
+
}, className: cn("cursor-pointer outline-offset-[-2px] transition-colors duration-(--duration-fast) hover:bg-tint-hover", className) }));
|
|
22
75
|
}
|
|
23
76
|
//# sourceMappingURL=table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAC;AAC3G,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;;;4EAO4E;AAE5E,MAAM,SAAS,GAAG,aAAa,CAAqB,SAAS,CAAC,CAAC;AAE/D,MAAM,UAAU,KAAK,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAgD;IACxG,MAAM,SAAS,GAAG,KAAK,EAAE,CAAC;IAC1B,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACzC,gFAAgF;IAChF,qEAAqE;IACrE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,IAAI,OAAO,cAAc,KAAK,WAAW;YAAE,OAAO;QACzD,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC;QAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACrB,IAAI,EAAE,CAAC,iBAAiB;YAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;QACjE,KAAK,EAAE,CAAC;QACR,OAAO,GAAG,EAAE,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C/D,mDAAmD;YACnD,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;gBACrC,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,MAAM,EAAE,CAAC;YACb,CAAC;QACL,CAAC,EACD,SAAS,EAAE,EAAE,CAAC,uGAAuG,EAAE,SAAS,CAAC,GACnI,CACL,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
export declare const Tabs: import("react").ForwardRefExoticComponent<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare function TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): import("react").JSX.Element;
|
|
5
|
+
export declare function TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): import("react").JSX.Element;
|
|
6
|
+
export declare function TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,eAAO,MAAM,IAAI,oHAAqB,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+BAO1F;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+BAchG;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+BAEhG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
/* Notion's tabs: a row of names over a hairline, the current one in full ink with
|
|
6
|
+
a 2px rule under it in the ink (well over 3:1). The arrow keys move between them,
|
|
7
|
+
Tab goes into the panel. A row too long for its space scrolls sideways rather
|
|
8
|
+
than wrapping. For choosing a value, not a view, use Segmented. */
|
|
9
|
+
export const Tabs = TabsPrimitive.Root;
|
|
10
|
+
export function TabsList({ className, ...props }) {
|
|
11
|
+
return (_jsx(TabsPrimitive.List, { className: cn("flex gap-1 shadow-edge-b overflow-x-auto [scrollbar-width:none]", className), ...props }));
|
|
12
|
+
}
|
|
13
|
+
export function TabsTrigger({ className, ...props }) {
|
|
14
|
+
return (_jsx(TabsPrimitive.Trigger, { className: cn("inline-flex relative items-center gap-1.5 px-2 h-control-md font-medium text-ink-secondary text-sm whitespace-nowrap outline-offset-[-2px] shrink-0", "hover:text-ink transition-colors duration-(--duration-fast) [&_svg]:size-4", "after:absolute after:inset-x-2 after:bottom-0 after:h-0.5 after:rounded-full after:content-[''] after:bg-transparent", "data-[state=active]:text-ink data-[state=active]:after:bg-ink", "disabled:text-ink-disabled disabled:cursor-not-allowed", className), ...props }));
|
|
15
|
+
}
|
|
16
|
+
export function TabsContent({ className, ...props }) {
|
|
17
|
+
return _jsx(TabsPrimitive.Content, { className: cn("pt-4 rounded-control outline-offset-2", className), ...props });
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;qEAGqE;AAErE,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;AAEvC,MAAM,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA6C;IACvF,OAAO,CACH,KAAC,aAAa,CAAC,IAAI,IACf,SAAS,EAAE,EAAE,CAAC,iEAAiE,EAAE,SAAS,CAAC,KACvF,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgD;IAC7F,OAAO,CACH,KAAC,aAAa,CAAC,OAAO,IAClB,SAAS,EAAE,EAAE,CACT,qJAAqJ,EACrJ,4EAA4E,EAC5E,sHAAsH,EACtH,+DAA+D,EAC/D,wDAAwD,EACxD,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgD;IAC7F,OAAO,KAAC,aAAa,CAAC,OAAO,IAAC,SAAS,EAAE,EAAE,CAAC,uCAAuC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACnH,CAAC"}
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type Theme } from "../../lib/theme.js";
|
|
3
|
+
type ThemeContextValue = {
|
|
4
|
+
theme: Theme;
|
|
5
|
+
resolved: "light" | "dark";
|
|
6
|
+
setTheme: (theme: Theme) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function ThemeProvider({ children, storageKey }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
storageKey?: string;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
/** The theme chosen (`theme`), what it comes to now (`resolved`), and a way to change it. */
|
|
13
|
+
export declare function useTheme(): ThemeContextValue;
|
|
1
14
|
export declare function ThemeToggle(): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
2
16
|
//# sourceMappingURL=theme-toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/theme-toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/theme-toggle.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAmE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACxG,OAAO,EAAsB,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAIpE,KAAK,iBAAiB,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,CAAC;AA2BxG,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,UAAsB,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,+BAkC/G;AAED,6FAA6F;AAC7F,wBAAgB,QAAQ,IAAI,iBAAiB,CAI5C;AAKD,wBAAgB,WAAW,gCAU1B"}
|
|
@@ -1,49 +1,77 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { AnimatePresence, motion, useAnimationControls } from "framer-motion";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
3
|
import { Moon, Sun } from "lucide-react";
|
|
4
|
+
import { createContext, useContext, useEffect, useLayoutEffect, useState } from "react";
|
|
5
|
+
import { isTheme, THEME_KEY } from "../../lib/theme.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
? "
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
root.classList.add(theme);
|
|
20
|
-
root.setAttribute("data-theme", theme);
|
|
21
|
-
root.style.colorScheme = theme;
|
|
22
|
-
window.localStorage.setItem("theme", theme);
|
|
7
|
+
import { Tooltip } from "./tooltip.js";
|
|
8
|
+
const ThemeContext = createContext(null);
|
|
9
|
+
const prefersDark = () => typeof window !== "undefined" && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
10
|
+
function read(storageKey) {
|
|
11
|
+
try {
|
|
12
|
+
const stored = localStorage.getItem(storageKey);
|
|
13
|
+
return isTheme(stored) ? stored : "system";
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
// Private windows and blocked site data both throw here.
|
|
17
|
+
return "system";
|
|
18
|
+
}
|
|
23
19
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
/* Holds the theme for everything inside it and puts the `dark` class on <html>.
|
|
21
|
+
"system" keeps following the OS after load, not just at it. Pair it with
|
|
22
|
+
themeInitScript() in <head> so the first paint is already right.
|
|
23
|
+
|
|
24
|
+
The first render is the same on the server and in the browser (system, light),
|
|
25
|
+
so a server-rendered page hydrates without a mismatch; the stored choice and the
|
|
26
|
+
system's are read straight after, before the browser paints. Until then the
|
|
27
|
+
`dark` class is left as the init script set it, so there is no flash either.
|
|
28
|
+
|
|
29
|
+
From triptrack and medialogue, 2026-12-05; it replaces the kit's animated toggle,
|
|
30
|
+
which had no system mode and could throw where storage is blocked. */
|
|
31
|
+
export function ThemeProvider({ children, storageKey = THEME_KEY }) {
|
|
32
|
+
const [theme, setThemeState] = useState("system");
|
|
33
|
+
const [systemDark, setSystemDark] = useState(false);
|
|
34
|
+
const [ready, setReady] = useState(false);
|
|
35
|
+
useLayoutEffect(() => {
|
|
36
|
+
setThemeState(read(storageKey));
|
|
37
|
+
setSystemDark(prefersDark());
|
|
38
|
+
setReady(true);
|
|
39
|
+
}, [storageKey]);
|
|
29
40
|
useEffect(() => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
const query = window.matchMedia("(prefers-color-scheme: dark)");
|
|
42
|
+
const onChange = (event) => setSystemDark(event.matches);
|
|
43
|
+
query.addEventListener("change", onChange);
|
|
44
|
+
return () => query.removeEventListener("change", onChange);
|
|
33
45
|
}, []);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
const resolved = theme === "system" ? (systemDark ? "dark" : "light") : theme;
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (ready)
|
|
49
|
+
document.documentElement.classList.toggle("dark", resolved === "dark");
|
|
50
|
+
}, [resolved, ready]);
|
|
51
|
+
const setTheme = (next) => {
|
|
52
|
+
setThemeState(next);
|
|
53
|
+
try {
|
|
54
|
+
localStorage.setItem(storageKey, next);
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
// Remembering the choice is a convenience, not a requirement.
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
return _jsx(ThemeContext.Provider, { value: { theme, resolved, setTheme }, children: children });
|
|
61
|
+
}
|
|
62
|
+
/** The theme chosen (`theme`), what it comes to now (`resolved`), and a way to change it. */
|
|
63
|
+
export function useTheme() {
|
|
64
|
+
const value = useContext(ThemeContext);
|
|
65
|
+
if (value === null)
|
|
66
|
+
throw new Error("useTheme must be used inside ThemeProvider");
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
/* One button between light and dark. Until it is pressed the app follows the
|
|
70
|
+
system; pressing it is a choice, and the choice is kept. To offer "system" again,
|
|
71
|
+
put the three THEMES in a Segmented or a menu and call setTheme. */
|
|
72
|
+
export function ThemeToggle() {
|
|
73
|
+
const { resolved, setTheme } = useTheme();
|
|
74
|
+
const next = resolved === "dark" ? "light" : "dark";
|
|
75
|
+
return (_jsx(Tooltip, { content: "Toggle theme", side: "bottom", children: _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": `Switch to ${next} mode`, onClick: () => setTheme(next), children: resolved === "dark" ? _jsx(Moon, {}) : _jsx(Sun, {}) }) }));
|
|
48
76
|
}
|
|
49
77
|
//# sourceMappingURL=theme-toggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-toggle.js","sourceRoot":"","sources":["../../../src/components/ui/theme-toggle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"theme-toggle.js","sourceRoot":"","sources":["../../../src/components/ui/theme-toggle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,SAAS,EAAc,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAe,CAAC;AAIxC,MAAM,YAAY,GAAG,aAAa,CAA2B,IAAI,CAAC,CAAC;AAEnE,MAAM,WAAW,GAAG,GAAY,EAAE,CAAC,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,OAAO,CAAC;AAE9H,SAAS,IAAI,CAAC,UAAkB;IAC5B,IAAI,CAAC;QACD,MAAM,MAAM,GAA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IAAI,EAAC,SAAS,gBAAa,aAAa,IAAI,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,YACrG,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,KAAG,CAAC,CAAC,CAAC,KAAC,GAAG,KAAG,GACpC,GACH,CACb,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type HourCycle } from "../../lib/time.js";
|
|
2
|
+
export declare function TimeList({ value, onChange, step, hourCycle, relativeTo, label, mode, active, onActive, id, className, }: {
|
|
3
|
+
value: string | null;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
step?: number;
|
|
6
|
+
hourCycle?: HourCycle;
|
|
7
|
+
relativeTo?: string | null;
|
|
8
|
+
label?: string;
|
|
9
|
+
mode?: "focus" | "active";
|
|
10
|
+
active?: string | null;
|
|
11
|
+
onActive?: (time: string) => void;
|
|
12
|
+
/** The listbox's id; each option is `${id}-HHMM`. */
|
|
13
|
+
id?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=time-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/time-list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA6E,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAa9H,wBAAgB,QAAQ,CAAC,EACrB,KAAK,EACL,QAAQ,EACR,IAAS,EACT,SAAS,EACT,UAAU,EACV,KAAe,EACf,IAAc,EACd,MAAM,EACN,QAAQ,EACR,EAAE,EACF,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,qDAAqD;IACrD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAgEA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useLayoutEffect, useRef } from "react";
|
|
4
|
+
import { durationLabel, formatTime, localHourCycle, minutesOf, nearest, timesEvery } from "../../lib/time.js";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
/* The times of a day, every `step` minutes, as a list to choose from: Google
|
|
7
|
+
Calendar's way. It opens on the chosen time (or the one nearest now), centred.
|
|
8
|
+
With `relativeTo` (an end time's start) it starts after that time and says how
|
|
9
|
+
long each is ("10:30 AM · 1 hr"). Rows are 28px with a mouse and 44px on a touch
|
|
10
|
+
screen.
|
|
11
|
+
|
|
12
|
+
`focus` mode: a listbox with one tab stop, the arrows moving between times,
|
|
13
|
+
Enter or a press choosing. `active` mode: for a list a text field drives (the
|
|
14
|
+
field keeps focus; `active` is the highlighted one, named by aria-activedescendant
|
|
15
|
+
on the field). */
|
|
16
|
+
export function TimeList({ value, onChange, step = 15, hourCycle, relativeTo, label = "Times", mode = "focus", active, onActive, id, className, }) {
|
|
17
|
+
const cycle = hourCycle ?? localHourCycle();
|
|
18
|
+
const times = timesEvery(step, { after: relativeTo, include: value });
|
|
19
|
+
const list = useRef(null);
|
|
20
|
+
const anchor = value ?? nearest(times, relativeTo ?? undefined) ?? times[0];
|
|
21
|
+
const optionId = (t) => (id ? `${id}-${t.replace(":", "")}` : undefined);
|
|
22
|
+
// Open on the chosen time, centred. Set on the list itself: scrollIntoView would
|
|
23
|
+
// scroll every ancestor too, and the page would jump under the panel.
|
|
24
|
+
useLayoutEffect(() => {
|
|
25
|
+
const el = list.current;
|
|
26
|
+
const at = el?.querySelector(`[data-time="${mode === "active" && active ? active : anchor}"]`);
|
|
27
|
+
if (el && at)
|
|
28
|
+
el.scrollTop = at.offsetTop - el.clientHeight / 2 + at.offsetHeight / 2;
|
|
29
|
+
}, [anchor, active, mode]);
|
|
30
|
+
const move = (event) => {
|
|
31
|
+
if (mode !== "focus")
|
|
32
|
+
return;
|
|
33
|
+
const keys = ["ArrowDown", "ArrowUp", "Home", "End", "PageDown", "PageUp"];
|
|
34
|
+
if (!keys.includes(event.key))
|
|
35
|
+
return;
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
const items = [...(list.current?.querySelectorAll("[role=option]") ?? [])];
|
|
38
|
+
const at = items.indexOf(document.activeElement);
|
|
39
|
+
const page = Math.max(1, Math.round(60 / step));
|
|
40
|
+
const next = { Home: 0, End: items.length - 1, ArrowDown: at + 1, ArrowUp: at - 1, PageDown: at + page, PageUp: at - page }[event.key];
|
|
41
|
+
items[Math.max(0, Math.min(items.length - 1, next))]?.focus();
|
|
42
|
+
};
|
|
43
|
+
return (_jsx("div", { ref: list, id: id, role: "listbox", "aria-label": label, onKeyDown: move, className: cn("flex flex-col gap-px p-1.5 w-full min-w-40 h-64 overflow-y-auto overscroll-contain", className), children: times.map((time) => {
|
|
44
|
+
const chosen = time === value;
|
|
45
|
+
const highlighted = mode === "active" && time === active;
|
|
46
|
+
return (_jsxs("button", { type: "button", role: "option", id: optionId(time), "data-time": time, "aria-selected": chosen, tabIndex: mode === "focus" && time === anchor ? 0 : -1, onClick: () => onChange(time), onMouseDown: mode === "active" ? (e) => e.preventDefault() : undefined, onMouseEnter: mode === "active" ? () => onActive?.(time) : undefined, className: cn("flex justify-between items-center gap-3 px-2.5 rounded-control h-control-sm [@media(pointer:coarse)]:h-11 text-sm text-left tabular-nums whitespace-nowrap cursor-pointer shrink-0", "transition-colors duration-(--duration-instant)", chosen ? "bg-accent-solid font-medium text-accent-ink" : highlighted ? "bg-tint-hover text-ink" : "text-ink hover:bg-tint-hover"), children: [_jsx("span", { children: formatTime(time, cycle) }), relativeTo && _jsx("span", { className: cn("text-caption", chosen ? "text-accent-ink" : "text-ink-tertiary"), children: durationLabel(minutesOf(time) - minutesOf(relativeTo)) })] }, time));
|
|
47
|
+
}) }));
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=time-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-list.js","sourceRoot":"","sources":["../../../src/components/ui/time-list.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAsB,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAkB,MAAM,mBAAmB,CAAC;AAC9H,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;;;;;oBASoB;AACpB,MAAM,UAAU,QAAQ,CAAC,EACrB,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,EAAE,EACT,SAAS,EACT,UAAU,EACV,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,OAAO,EACd,MAAM,EACN,QAAQ,EACR,EAAE,EACF,SAAS,GAcZ;IACG,MAAM,KAAK,GAAG,SAAS,IAAI,cAAc,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,KAAK,IAAI,OAAO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CAAC,CAAC,EACtD,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC7B,WAAW,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,EACtE,YAAY,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,EACpE,SAAS,EAAE,EAAE,CACT,oLAAoL,EACpL,iDAAiD,EACjD,MAAM,CAAC,CAAC,CAAC,6CAA6C,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,8BAA8B,CACnI,aAED,yBAAO,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,GAAQ,EACrC,UAAU,IAAI,eAAM,SAAS,EAAE,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,mBAAmB,CAAC,YAAG,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,GAAQ,KAjBhK,IAAI,CAkBJ,CACZ,CAAC;QACN,CAAC,CAAC,GACA,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,21 +1,47 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export
|
|
3
|
-
/** `HH:MM`, 24-hour, or null for none. */
|
|
4
|
-
value: string | null;
|
|
5
|
-
onChange: (value: string) => void;
|
|
6
|
-
minuteStep?: number;
|
|
7
|
-
fallbackHour?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
10
|
-
export interface TimePickerProps extends Omit<FieldButtonProps, "value" | "onChange" | "children" | "onClear" | "icon"> {
|
|
1
|
+
import { type HourCycle } from "../../lib/time.js";
|
|
2
|
+
export interface TimePickerProps {
|
|
11
3
|
/** `HH:MM`, 24-hour, or null for none. */
|
|
12
4
|
value: string | null;
|
|
13
5
|
onChange: (value: string | null) => void;
|
|
6
|
+
/** Minutes between the listed times. Any time can still be typed. */
|
|
14
7
|
minuteStep?: number;
|
|
8
|
+
hourCycle?: HourCycle;
|
|
9
|
+
/** The start of a span: the list starts after it and gives lengths. */
|
|
10
|
+
relativeTo?: string | null;
|
|
15
11
|
/** Show the cross that empties it. On by default; turn off for a required time. */
|
|
16
12
|
clearable?: boolean;
|
|
17
13
|
/** Sends the value with a form, as a hidden field of this name. */
|
|
18
14
|
name?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
size?: "sm" | "md" | "lg";
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
"aria-label"?: string;
|
|
22
|
+
"aria-labelledby"?: string;
|
|
23
|
+
"aria-describedby"?: string;
|
|
19
24
|
}
|
|
20
|
-
export declare function TimePicker(
|
|
25
|
+
export declare function TimePicker(props: TimePickerProps): import("react").JSX.Element;
|
|
26
|
+
export declare function TimeRangePicker({ value, onChange, minuteStep, hourCycle, names, className, labels, }: {
|
|
27
|
+
value: {
|
|
28
|
+
from: string | null;
|
|
29
|
+
to: string | null;
|
|
30
|
+
};
|
|
31
|
+
onChange: (value: {
|
|
32
|
+
from: string | null;
|
|
33
|
+
to: string | null;
|
|
34
|
+
}) => void;
|
|
35
|
+
minuteStep?: number;
|
|
36
|
+
hourCycle?: HourCycle;
|
|
37
|
+
names?: {
|
|
38
|
+
from: string;
|
|
39
|
+
to: string;
|
|
40
|
+
};
|
|
41
|
+
labels?: {
|
|
42
|
+
from: string;
|
|
43
|
+
to: string;
|
|
44
|
+
};
|
|
45
|
+
className?: string;
|
|
46
|
+
}): import("react").JSX.Element;
|
|
21
47
|
//# sourceMappingURL=time-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/time-picker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/time-picker.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAyE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAuB1H,MAAM,WAAW,eAAe;IAC5B,0CAA0C;IAC1C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAShD;AAkOD,wBAAgB,eAAe,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,UAAe,EACf,SAAS,EACT,KAAK,EACL,SAAS,EACT,MAA+C,GAClD,EAAE;IACC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,EA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