@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
package/src/styles/notion.css
CHANGED
|
@@ -42,11 +42,18 @@
|
|
|
42
42
|
--ink-secondary: rgb(55 53 47 / 0.65);
|
|
43
43
|
--ink-tertiary: rgb(55 53 47 / 0.5);
|
|
44
44
|
--ink-disabled: rgb(55 53 47 / 0.35);
|
|
45
|
+
/* A placeholder sits on a field's tinted well, which costs it contrast; at 72%
|
|
46
|
+
it still reads at 4.5:1 there. */
|
|
47
|
+
--ink-placeholder: rgb(55 53 47 / 0.72);
|
|
45
48
|
--ink-inverse: #ffffff;
|
|
46
49
|
|
|
47
50
|
/* ── Lines & tints, derived from the same ink ─────────────────── */
|
|
48
51
|
--hairline: rgb(55 53 47 / 0.09); /* dividers whisper */
|
|
49
52
|
--hairline-strong: rgb(55 53 47 / 0.16); /* input borders */
|
|
53
|
+
/* The edge that is a control's state: an empty checkbox or radio, an off
|
|
54
|
+
switch, Segmented's chosen option. 3:1 or better on every surface (WCAG
|
|
55
|
+
1.4.11), unlike a hairline. */
|
|
56
|
+
--control-edge: rgb(55 53 47 / 0.58);
|
|
50
57
|
--tint-hover: rgb(55 53 47 / 0.055); /* hover is a TINT, */
|
|
51
58
|
--tint-active: rgb(55 53 47 / 0.08); /* never a border */
|
|
52
59
|
|
|
@@ -54,17 +61,76 @@
|
|
|
54
61
|
/* One colour per accent theme; the rest are mixed from it, so adding a theme
|
|
55
62
|
is one line here and one in `.dark`. */
|
|
56
63
|
--accent: #2383e2;
|
|
57
|
-
|
|
64
|
+
/* Where text or an icon sits on the accent (a primary button, a checked box,
|
|
65
|
+
a chosen day), the fill is a little deeper than the accent, so white on it
|
|
66
|
+
passes WCAG AA (4.5:1) in every colour theme. Hover and pressed go deeper. */
|
|
67
|
+
--accent-solid: color-mix(in oklab, var(--accent) 86%, black);
|
|
68
|
+
--accent-solid-hover: color-mix(in oklab, var(--accent) 78%, black);
|
|
69
|
+
--accent-solid-active: color-mix(in oklab, var(--accent) 72%, black);
|
|
58
70
|
--accent-tint: color-mix(in srgb, var(--accent) 11%, transparent);
|
|
59
71
|
--accent-ink: #ffffff;
|
|
60
72
|
/* Accent for words: pulled toward the ink so it reads as text, not as a link. */
|
|
61
73
|
--accent-text: color-mix(in oklab, var(--accent) 78%, #37352f);
|
|
62
74
|
|
|
63
|
-
--danger: #
|
|
64
|
-
--danger-
|
|
65
|
-
--danger-
|
|
66
|
-
|
|
67
|
-
--
|
|
75
|
+
--danger: #c13937;
|
|
76
|
+
--danger-solid: color-mix(in oklab, var(--danger) 94%, black);
|
|
77
|
+
--danger-solid-hover: color-mix(in oklab, var(--danger) 86%, black);
|
|
78
|
+
--danger-solid-active: color-mix(in oklab, var(--danger) 80%, black);
|
|
79
|
+
--danger-tint: rgb(193 57 55 / 0.1);
|
|
80
|
+
|
|
81
|
+
--danger-ink: #ffffff;
|
|
82
|
+
|
|
83
|
+
/* ── Status: the nine's own colours under the names a message uses. No new
|
|
84
|
+
hues: success is the green tag, warning the yellow, info the blue.
|
|
85
|
+
Danger keeps its own tokens above (it is the red tag's ink). ───── */
|
|
86
|
+
--success: var(--tag-green-ink);
|
|
87
|
+
--success-tint: var(--tag-green-bg);
|
|
88
|
+
--warning: var(--tag-yellow-ink);
|
|
89
|
+
--warning-tint: var(--tag-yellow-bg);
|
|
90
|
+
--info: var(--tag-blue-ink);
|
|
91
|
+
--info-tint: var(--tag-blue-bg);
|
|
92
|
+
|
|
93
|
+
/* The keyboard's focus: the full accent, drawn 2px clear of the control, so it
|
|
94
|
+
reads at 3:1 or better on the page and around a filled button alike. */
|
|
95
|
+
--focus-ring: var(--accent);
|
|
96
|
+
|
|
97
|
+
/* ── Scrim: what lies over the page behind a dialog or a drawer. ── */
|
|
98
|
+
--scrim: rgb(15 15 15 / 0.32);
|
|
99
|
+
|
|
100
|
+
/* ── On media: controls and labels laid over a picture. A picture can be
|
|
101
|
+
any colour, so these are the same in both themes: white on a dark
|
|
102
|
+
disc, with a light edge where a shape must read on dark pictures. ── */
|
|
103
|
+
--on-media-faint: rgb(0 0 0 / 0.25); /* a track, a resting disc */
|
|
104
|
+
--on-media: rgb(0 0 0 / 0.4); /* a button's disc */
|
|
105
|
+
--on-media-strong: rgb(0 0 0 / 0.6); /* hovered, or behind words */
|
|
106
|
+
--on-media-ink: #ffffff;
|
|
107
|
+
--on-media-edge: rgb(255 255 255 / 0.7);
|
|
108
|
+
|
|
109
|
+
/* ── Layers: what stacks over what. Inside a component, small local
|
|
110
|
+
z-indexes are fine; across the page, use these. Overlays (dialogs,
|
|
111
|
+
menus, popovers, drawers) share one layer and stack by the order
|
|
112
|
+
they open, so a menu opened in a dialog lands above it. ───────── */
|
|
113
|
+
--z-raised: 10; /* the sidebar column, floating page parts */
|
|
114
|
+
--z-sticky: 20; /* a top bar, a table header */
|
|
115
|
+
--z-overlay: 50; /* dialogs, drawers, menus, popovers */
|
|
116
|
+
--z-toast: 60;
|
|
117
|
+
--z-tooltip: 70;
|
|
118
|
+
|
|
119
|
+
/* ── Speeds. Instant for a hover tint, fast for a control's change,
|
|
120
|
+
base for something that moves, slow for something that changes
|
|
121
|
+
size. Nothing in the kit is slower than slow, except a picture's own
|
|
122
|
+
reveal (below). ─────────────────── */
|
|
123
|
+
--duration-instant: 75ms;
|
|
124
|
+
--duration-fast: 100ms;
|
|
125
|
+
--duration-base: 150ms;
|
|
126
|
+
--duration-slow: 200ms;
|
|
127
|
+
/* A picture arriving: it sharpens out of its blur. The one thing past 200ms,
|
|
128
|
+
because a blur clearing faster reads as a flicker, not a picture coming in. */
|
|
129
|
+
--duration-reveal: 400ms;
|
|
130
|
+
|
|
131
|
+
/* ── The sidebar's widths (SidebarProvider can override them). ──── */
|
|
132
|
+
--sidebar-width: 15rem;
|
|
133
|
+
--sidebar-width-icon: 3rem;
|
|
68
134
|
|
|
69
135
|
/* ── Layered shadows ──────────────────────────────────────────────
|
|
70
136
|
The 1px ambient ring in slot one is the whole trick. It keeps a
|
|
@@ -85,25 +151,28 @@
|
|
|
85
151
|
--shadow-inset: inset 0 0 0 1px rgb(55 53 47 / 0.16);
|
|
86
152
|
|
|
87
153
|
/* ── The nine. Desaturated on purpose: twenty tags on one page
|
|
88
|
-
must not fight each other. Each is a bg + a same-hue ink.
|
|
154
|
+
must not fight each other. Each is a bg + a same-hue ink.
|
|
155
|
+
The grounds are Notion's; the inks are Notion's with their
|
|
156
|
+
lightness moved (hue and chroma kept) until each reads at
|
|
157
|
+
4.5:1 on its own ground, light and dark (2026-12-05). ── */
|
|
89
158
|
--tag-gray-bg: #f1f1ef;
|
|
90
|
-
--tag-gray-ink: #
|
|
159
|
+
--tag-gray-ink: #6c6b68;
|
|
91
160
|
--tag-brown-bg: #f4eeee;
|
|
92
|
-
--tag-brown-ink: #
|
|
161
|
+
--tag-brown-ink: #925f48;
|
|
93
162
|
--tag-orange-bg: #fbecdd;
|
|
94
|
-
--tag-orange-ink: #
|
|
163
|
+
--tag-orange-ink: #b04e00;
|
|
95
164
|
--tag-yellow-bg: #fbf3db;
|
|
96
|
-
--tag-yellow-ink: #
|
|
165
|
+
--tag-yellow-ink: #996200;
|
|
97
166
|
--tag-green-bg: #edf3ec;
|
|
98
|
-
--tag-green-ink: #
|
|
167
|
+
--tag-green-ink: #397957;
|
|
99
168
|
--tag-blue-bg: #e7f3f8;
|
|
100
|
-
--tag-blue-ink: #
|
|
169
|
+
--tag-blue-ink: #25729c;
|
|
101
170
|
--tag-purple-bg: #f6f3f9;
|
|
102
|
-
--tag-purple-ink: #
|
|
171
|
+
--tag-purple-ink: #875ca6;
|
|
103
172
|
--tag-pink-bg: #faf1f5;
|
|
104
|
-
--tag-pink-ink: #
|
|
173
|
+
--tag-pink-ink: #b74381;
|
|
105
174
|
--tag-red-bg: #fdebec;
|
|
106
|
-
--tag-red-ink: #
|
|
175
|
+
--tag-red-ink: #c13937;
|
|
107
176
|
}
|
|
108
177
|
|
|
109
178
|
.dark {
|
|
@@ -119,24 +188,34 @@
|
|
|
119
188
|
--ink-secondary: rgb(255 255 255 / 0.56);
|
|
120
189
|
--ink-tertiary: rgb(255 255 255 / 0.42);
|
|
121
190
|
--ink-disabled: rgb(255 255 255 / 0.28);
|
|
191
|
+
--ink-placeholder: rgb(255 255 255 / 0.56);
|
|
122
192
|
--ink-inverse: #191919;
|
|
123
193
|
|
|
124
194
|
--hairline: rgb(255 255 255 / 0.094);
|
|
125
195
|
--hairline-strong: rgb(255 255 255 / 0.16);
|
|
196
|
+
--control-edge: rgb(255 255 255 / 0.42);
|
|
126
197
|
--tint-hover: rgb(255 255 255 / 0.055);
|
|
127
198
|
--tint-active: rgb(255 255 255 / 0.09);
|
|
128
199
|
|
|
129
200
|
--accent: #2383e2;
|
|
130
|
-
--accent-
|
|
201
|
+
--accent-solid: color-mix(in oklab, var(--accent) 86%, black);
|
|
202
|
+
--accent-solid-hover: color-mix(in oklab, var(--accent) 78%, black);
|
|
203
|
+
--accent-solid-active: color-mix(in oklab, var(--accent) 72%, black);
|
|
131
204
|
--accent-tint: color-mix(in srgb, var(--accent) 18%, transparent);
|
|
132
205
|
--accent-ink: #ffffff;
|
|
133
206
|
--accent-text: color-mix(in oklab, var(--accent) 62%, white);
|
|
134
207
|
|
|
135
208
|
--danger: #ff7369;
|
|
136
|
-
|
|
209
|
+
/* Dark's danger is bright, for words; a fill under white text goes much deeper. */
|
|
210
|
+
--danger-solid: color-mix(in oklab, var(--danger) 78%, black);
|
|
211
|
+
--danger-solid-hover: color-mix(in oklab, var(--danger) 70%, black);
|
|
212
|
+
--danger-solid-active: color-mix(in oklab, var(--danger) 64%, black);
|
|
137
213
|
--danger-tint: rgb(255 115 105 / 0.14);
|
|
138
214
|
|
|
139
|
-
--focus-ring:
|
|
215
|
+
--focus-ring: var(--accent);
|
|
216
|
+
|
|
217
|
+
/* A dark page needs a darker scrim for the dialog to stand off it. */
|
|
218
|
+
--scrim: rgb(0 0 0 / 0.55);
|
|
140
219
|
|
|
141
220
|
/* Dark needs a lighter ring and a heavier drop: on a dark canvas
|
|
142
221
|
the ring does the separating and the blur does the lifting. */
|
|
@@ -157,21 +236,21 @@
|
|
|
157
236
|
--tag-gray-bg: #2f2f2f;
|
|
158
237
|
--tag-gray-ink: #9b9b9b;
|
|
159
238
|
--tag-brown-bg: #4a3228;
|
|
160
|
-
--tag-brown-ink: #
|
|
239
|
+
--tag-brown-ink: #cc967f;
|
|
161
240
|
--tag-orange-bg: #5c3b23;
|
|
162
|
-
--tag-orange-ink: #
|
|
241
|
+
--tag-orange-ink: #ec9f6a;
|
|
163
242
|
--tag-yellow-bg: #564328;
|
|
164
|
-
--tag-yellow-ink: #
|
|
243
|
+
--tag-yellow-ink: #e1ae60;
|
|
165
244
|
--tag-green-bg: #243d30;
|
|
166
|
-
--tag-green-ink: #
|
|
245
|
+
--tag-green-ink: #66b285;
|
|
167
246
|
--tag-blue-bg: #143a4e;
|
|
168
|
-
--tag-blue-ink: #
|
|
247
|
+
--tag-blue-ink: #77a1e5;
|
|
169
248
|
--tag-purple-bg: #3c2d49;
|
|
170
|
-
--tag-purple-ink: #
|
|
249
|
+
--tag-purple-ink: #bb85f3;
|
|
171
250
|
--tag-pink-bg: #4e2c3c;
|
|
172
|
-
--tag-pink-ink: #
|
|
251
|
+
--tag-pink-ink: #f477b5;
|
|
173
252
|
--tag-red-bg: #522e2a;
|
|
174
|
-
--tag-red-ink: #
|
|
253
|
+
--tag-red-ink: #ff796f;
|
|
175
254
|
}
|
|
176
255
|
|
|
177
256
|
/* ── Accent themes. Chosen in the sidebar, set as data-accent on <html>. The hues
|
|
@@ -190,13 +269,6 @@
|
|
|
190
269
|
[data-accent="orange"] { --accent: #d9730d; }
|
|
191
270
|
[data-accent="red"] { --accent: #d44c47; }
|
|
192
271
|
[data-accent="brown"] { --accent: #9f6b53; }
|
|
193
|
-
.dark [data-accent="blue"] { --accent: #2383e2; }
|
|
194
|
-
.dark [data-accent="green"] { --accent: #529e72; }
|
|
195
|
-
.dark [data-accent="purple"] { --accent: #9d68d3; }
|
|
196
|
-
.dark [data-accent="pink"] { --accent: #d15796; }
|
|
197
|
-
.dark [data-accent="orange"] { --accent: #c77d48; }
|
|
198
|
-
.dark [data-accent="red"] { --accent: #e5645b; }
|
|
199
|
-
.dark [data-accent="brown"] { --accent: #ba856f; }
|
|
200
272
|
.dark[data-accent="green"] { --accent: #529e72; }
|
|
201
273
|
.dark[data-accent="purple"] { --accent: #9d68d3; }
|
|
202
274
|
.dark[data-accent="pink"] { --accent: #d15796; }
|
|
@@ -221,21 +293,41 @@
|
|
|
221
293
|
--color-ink-secondary: var(--ink-secondary);
|
|
222
294
|
--color-ink-tertiary: var(--ink-tertiary);
|
|
223
295
|
--color-ink-disabled: var(--ink-disabled);
|
|
296
|
+
--color-ink-placeholder: var(--ink-placeholder);
|
|
224
297
|
--color-ink-inverse: var(--ink-inverse);
|
|
225
298
|
|
|
226
299
|
--color-hairline: var(--hairline);
|
|
227
300
|
--color-hairline-strong: var(--hairline-strong);
|
|
301
|
+
--color-control-edge: var(--control-edge);
|
|
228
302
|
--color-tint-hover: var(--tint-hover);
|
|
229
303
|
--color-tint-active: var(--tint-active);
|
|
230
304
|
|
|
231
305
|
--color-accent: var(--accent);
|
|
232
|
-
--color-accent-
|
|
306
|
+
--color-accent-solid: var(--accent-solid);
|
|
307
|
+
--color-accent-solid-hover: var(--accent-solid-hover);
|
|
308
|
+
--color-accent-solid-active: var(--accent-solid-active);
|
|
233
309
|
--color-accent-tint: var(--accent-tint);
|
|
234
310
|
--color-accent-ink: var(--accent-ink);
|
|
235
311
|
--color-accent-text: var(--accent-text);
|
|
236
312
|
--color-danger: var(--danger);
|
|
237
|
-
--color-danger-
|
|
313
|
+
--color-danger-solid: var(--danger-solid);
|
|
314
|
+
--color-danger-solid-hover: var(--danger-solid-hover);
|
|
315
|
+
--color-danger-solid-active: var(--danger-solid-active);
|
|
238
316
|
--color-danger-tint: var(--danger-tint);
|
|
317
|
+
--color-danger-ink: var(--danger-ink);
|
|
318
|
+
--color-success: var(--success);
|
|
319
|
+
--color-success-tint: var(--success-tint);
|
|
320
|
+
--color-warning: var(--warning);
|
|
321
|
+
--color-warning-tint: var(--warning-tint);
|
|
322
|
+
--color-info: var(--info);
|
|
323
|
+
--color-info-tint: var(--info-tint);
|
|
324
|
+
|
|
325
|
+
--color-scrim: var(--scrim);
|
|
326
|
+
--color-on-media-faint: var(--on-media-faint);
|
|
327
|
+
--color-on-media: var(--on-media);
|
|
328
|
+
--color-on-media-strong: var(--on-media-strong);
|
|
329
|
+
--color-on-media-ink: var(--on-media-ink);
|
|
330
|
+
--color-on-media-edge: var(--on-media-edge);
|
|
239
331
|
|
|
240
332
|
--color-tag-gray-bg: var(--tag-gray-bg);
|
|
241
333
|
--color-tag-gray-ink: var(--tag-gray-ink);
|
|
@@ -261,6 +353,13 @@
|
|
|
261
353
|
--shadow-md: var(--shadow-md);
|
|
262
354
|
--shadow-popover: var(--shadow-popover);
|
|
263
355
|
--shadow-dialog: var(--shadow-dialog);
|
|
356
|
+
/* A hairline drawn as a shadow, so it takes no room: all round, or one side
|
|
357
|
+
(a header's foot, a column's edge). */
|
|
358
|
+
--shadow-edge: inset 0 0 0 1px var(--hairline);
|
|
359
|
+
--shadow-edge-t: inset 0 1px 0 var(--hairline);
|
|
360
|
+
--shadow-edge-b: inset 0 -1px 0 var(--hairline);
|
|
361
|
+
--shadow-edge-l: inset 1px 0 0 var(--hairline);
|
|
362
|
+
--shadow-edge-r: inset -1px 0 0 var(--hairline);
|
|
264
363
|
--inset-shadow-field: var(--shadow-inset);
|
|
265
364
|
|
|
266
365
|
/* ── Families: a system stack, so text renders native everywhere
|
|
@@ -281,8 +380,10 @@
|
|
|
281
380
|
separates "designed" from "default browser". Headings sit
|
|
282
381
|
at 1.3; body opens up to 1.5 for long-form reading. ──────── */
|
|
283
382
|
/* A page's name: the largest thing on it, tight enough to read as one
|
|
284
|
-
shape, and scaled to the
|
|
285
|
-
|
|
383
|
+
shape, and scaled to the room the page has (cqi: the width of the nearest
|
|
384
|
+
container, which is the page beside a sidebar, or the window where there
|
|
385
|
+
is none). 40px at a 400px page, 60px from a 1000px one. */
|
|
386
|
+
--text-display: clamp(2.5rem, 1.667rem + 3.333cqi, 3.75rem);
|
|
286
387
|
--text-display--line-height: 1.05;
|
|
287
388
|
--text-display--letter-spacing: -0.035em;
|
|
288
389
|
--text-display--font-weight: 700;
|
|
@@ -311,22 +412,48 @@
|
|
|
311
412
|
--text-body--line-height: 1.5;
|
|
312
413
|
--text-body--letter-spacing: -0.003em;
|
|
313
414
|
|
|
415
|
+
/* A page's opening line, a pulled quote: a step above body. */
|
|
416
|
+
--text-lead: 1.125rem;
|
|
417
|
+
--text-lead--line-height: 1.5;
|
|
418
|
+
--text-lead--letter-spacing: -0.006em;
|
|
419
|
+
|
|
314
420
|
--text-sm: 0.875rem;
|
|
315
421
|
--text-sm--line-height: 1.5;
|
|
316
422
|
|
|
317
423
|
--text-caption: 0.75rem;
|
|
318
424
|
--text-caption--line-height: 1.4;
|
|
319
425
|
|
|
320
|
-
/*
|
|
321
|
-
--
|
|
322
|
-
--
|
|
323
|
-
|
|
426
|
+
/* The smallest: a small badge, a count, a keyboard key. Never for a sentence. */
|
|
427
|
+
--text-micro: 0.6875rem;
|
|
428
|
+
--text-micro--line-height: 1.3;
|
|
429
|
+
|
|
430
|
+
/* Paragraphs meant to be read at length: prose, callouts, documents. */
|
|
431
|
+
--leading-prose: 1.6;
|
|
432
|
+
|
|
433
|
+
/* ── Radii: small and restrained. Notion never goes pill, except for
|
|
434
|
+
round things (avatars, dots, a picture's buttons): rounded-full. ── */
|
|
435
|
+
--radius-small: 0.1875rem; /* 3px: a checkbox, a badge, a row's own button */
|
|
436
|
+
--radius-control: 0.25rem; /* 4px: buttons, fields, menu rows */
|
|
437
|
+
--radius-surface: 0.5rem; /* 8px: cards, wells, pictures */
|
|
438
|
+
--radius-overlay: 0.625rem; /* 10px: menus, popovers, dialogs */
|
|
439
|
+
|
|
440
|
+
/* ── Control heights: every button, field and menu row is one of three. ── */
|
|
441
|
+
--spacing-control-sm: 1.75rem; /* 28px */
|
|
442
|
+
--spacing-control-md: 2rem; /* 32px */
|
|
443
|
+
--spacing-control-lg: 2.5rem; /* 40px */
|
|
324
444
|
|
|
325
445
|
/* ── Content measure: a hard reading column regardless of
|
|
326
446
|
viewport. Long lines are the #1 killer of "clean". ───────── */
|
|
327
447
|
--spacing-measure: 44rem; /* ~708px, Notion's page width */
|
|
328
448
|
|
|
449
|
+
/* ── Page widths (max-w-reading, max-w-wide; Page's `width`). ───── */
|
|
450
|
+
--container-measure: 44rem;
|
|
451
|
+
--container-reading: 63.75rem; /* 1020px: forms, settings, pages of text */
|
|
452
|
+
--container-wide: 93.75rem; /* 1500px: grids of pictures, wide tables */
|
|
453
|
+
|
|
329
454
|
--ease-out-notion: cubic-bezier(0.22, 1, 0.36, 1);
|
|
455
|
+
/* Leaving: slow to start, quick to go, so what closes gets out of the way. */
|
|
456
|
+
--ease-in-notion: cubic-bezier(0.4, 0, 1, 1);
|
|
330
457
|
}
|
|
331
458
|
|
|
332
459
|
/* ══════════════════════════════════════════════════════════════════════
|
|
@@ -342,6 +469,21 @@
|
|
|
342
469
|
-webkit-tap-highlight-color: transparent;
|
|
343
470
|
}
|
|
344
471
|
|
|
472
|
+
/* Anything that can be pressed shows the hand. Tailwind 4 leaves buttons with the
|
|
473
|
+
arrow, which made tags, tiles and rows look inert under the mouse. (endgame) */
|
|
474
|
+
button:not(:disabled),
|
|
475
|
+
[role="button"]:not([aria-disabled="true"]),
|
|
476
|
+
[role="tab"]:not(:disabled),
|
|
477
|
+
[role="checkbox"]:not(:disabled),
|
|
478
|
+
[role="radio"]:not(:disabled),
|
|
479
|
+
[role="switch"]:not(:disabled),
|
|
480
|
+
[role="menuitem"],
|
|
481
|
+
[role="option"],
|
|
482
|
+
summary,
|
|
483
|
+
select {
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
}
|
|
486
|
+
|
|
345
487
|
body {
|
|
346
488
|
background-color: var(--surface);
|
|
347
489
|
color: var(--ink);
|
|
@@ -360,7 +502,7 @@
|
|
|
360
502
|
never the default browser outline. */
|
|
361
503
|
:focus-visible {
|
|
362
504
|
outline: 2px solid var(--focus-ring);
|
|
363
|
-
outline-offset:
|
|
505
|
+
outline-offset: 2px;
|
|
364
506
|
}
|
|
365
507
|
|
|
366
508
|
::selection {
|
|
@@ -368,7 +510,24 @@
|
|
|
368
510
|
}
|
|
369
511
|
|
|
370
512
|
::placeholder {
|
|
371
|
-
color: var(--ink-
|
|
513
|
+
color: var(--ink-placeholder);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* Thin scrollbars in the ink, as Notion's: present when needed, never a grey
|
|
517
|
+
slab beside a sidebar or a menu. */
|
|
518
|
+
* {
|
|
519
|
+
scrollbar-width: thin;
|
|
520
|
+
scrollbar-color: var(--hairline-strong) transparent;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* Windows' high-contrast mode drops box-shadow, and every edge in the kit is a
|
|
525
|
+
shadow ring. Anything with one gets a real outline there instead, in the
|
|
526
|
+
system's own colour, so cards, fields and menus keep their edges. */
|
|
527
|
+
@media (forced-colors: active) {
|
|
528
|
+
[class*="shadow-"]:not([class*="shadow-none"]),
|
|
529
|
+
[class*="inset-shadow-"] {
|
|
530
|
+
outline: 1px solid CanvasText;
|
|
372
531
|
}
|
|
373
532
|
}
|
|
374
533
|
|
|
@@ -381,7 +540,7 @@
|
|
|
381
540
|
keyboard focus. Put `group` on the row, `affordance` on the control. */
|
|
382
541
|
@utility affordance {
|
|
383
542
|
opacity: 0;
|
|
384
|
-
transition: opacity
|
|
543
|
+
transition: opacity var(--duration-fast) var(--ease-out-notion);
|
|
385
544
|
|
|
386
545
|
@variant group-hover {
|
|
387
546
|
opacity: 1;
|
|
@@ -392,6 +551,35 @@
|
|
|
392
551
|
@variant focus-within {
|
|
393
552
|
opacity: 1;
|
|
394
553
|
}
|
|
554
|
+
/* A screen that cannot hover shows it always: it can still be tapped. */
|
|
555
|
+
@media (hover: none) {
|
|
556
|
+
opacity: 1;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* The bottom of a till receipt: a row of small teeth cut out of the box.
|
|
561
|
+
--tooth sets their size. (endgame, triptrack, medialogue) */
|
|
562
|
+
@utility torn-edge {
|
|
563
|
+
--tooth: 0.5rem;
|
|
564
|
+
mask:
|
|
565
|
+
linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
|
|
566
|
+
conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/* A link in running text, as Notion draws one: the text's own ink, underlined
|
|
570
|
+
faintly, the underline darkening on hover. Not the accent: in a page of words a
|
|
571
|
+
blue link reads as a web page, not a document. */
|
|
572
|
+
@utility link {
|
|
573
|
+
color: inherit;
|
|
574
|
+
text-decoration-line: underline;
|
|
575
|
+
text-decoration-color: var(--ink-tertiary);
|
|
576
|
+
text-decoration-thickness: 1px;
|
|
577
|
+
text-underline-offset: 0.15em;
|
|
578
|
+
cursor: pointer;
|
|
579
|
+
transition: text-decoration-color var(--duration-fast);
|
|
580
|
+
&:hover {
|
|
581
|
+
text-decoration-color: currentColor;
|
|
582
|
+
}
|
|
395
583
|
}
|
|
396
584
|
|
|
397
585
|
/* The reading column. */
|
|
@@ -410,11 +598,114 @@
|
|
|
410
598
|
══════════════════════════════════════════════════════════════════════ */
|
|
411
599
|
|
|
412
600
|
@theme {
|
|
413
|
-
--animate-fade-in: fade-in
|
|
414
|
-
--animate-fade-out: fade-out
|
|
415
|
-
--animate-scale-in: scale-in
|
|
416
|
-
--animate-scale-out: scale-out
|
|
417
|
-
--animate-slide-in: slide-in
|
|
601
|
+
--animate-fade-in: fade-in var(--duration-base) var(--ease-out-notion);
|
|
602
|
+
--animate-fade-out: fade-out var(--duration-fast) var(--ease-in-notion);
|
|
603
|
+
--animate-scale-in: scale-in var(--duration-base) var(--ease-out-notion);
|
|
604
|
+
--animate-scale-out: scale-out var(--duration-fast) var(--ease-in-notion);
|
|
605
|
+
--animate-slide-in: slide-in var(--duration-base) var(--ease-out-notion);
|
|
606
|
+
/* A dialog on a phone rises from the bottom edge as a sheet. */
|
|
607
|
+
--animate-sheet-in: sheet-in var(--duration-slow) var(--ease-out-notion);
|
|
608
|
+
--animate-sheet-out: sheet-out var(--duration-base) var(--ease-in-notion);
|
|
609
|
+
/* A sidebar on a phone slides in from its edge. --drawer-from is -100% on the
|
|
610
|
+
left, 100% on the right. */
|
|
611
|
+
--animate-drawer-in: drawer-in var(--duration-slow) var(--ease-out-notion);
|
|
612
|
+
--animate-drawer-out: drawer-out var(--duration-base) var(--ease-in-notion);
|
|
613
|
+
/* A Collapsible's content eases open and shut to its own height. */
|
|
614
|
+
--animate-collapse-down: collapse-down var(--duration-slow) var(--ease-out-notion);
|
|
615
|
+
--animate-collapse-up: collapse-up var(--duration-base) var(--ease-in-notion);
|
|
616
|
+
/* The image viewer opening: its first picture grows into place. */
|
|
617
|
+
--animate-viewer-in: viewer-in var(--duration-slow) var(--ease-out-notion);
|
|
618
|
+
/* A box's edges tracing in one after another, then fading, on repeat: a 3D
|
|
619
|
+
model on its way. Each edge is delayed a step, so the drawing travels. */
|
|
620
|
+
/* A loop keeps its own period; the speeds are for one-off changes. */
|
|
621
|
+
--animate-trace: trace 2.6s var(--ease-out-notion) infinite both;
|
|
622
|
+
/* A toast rises a little into place at the foot of the window. */
|
|
623
|
+
--animate-toast-in: toast-in var(--duration-slow) var(--ease-out-notion);
|
|
624
|
+
}
|
|
625
|
+
@keyframes collapse-down {
|
|
626
|
+
from {
|
|
627
|
+
height: 0;
|
|
628
|
+
}
|
|
629
|
+
to {
|
|
630
|
+
height: var(--radix-collapsible-content-height);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
@keyframes collapse-up {
|
|
634
|
+
from {
|
|
635
|
+
height: var(--radix-collapsible-content-height);
|
|
636
|
+
}
|
|
637
|
+
to {
|
|
638
|
+
height: 0;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
/* An indeterminate progress bar's band, sliding across its track. */
|
|
642
|
+
@keyframes progress-slide {
|
|
643
|
+
from {
|
|
644
|
+
left: -33%;
|
|
645
|
+
}
|
|
646
|
+
to {
|
|
647
|
+
left: 100%;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
@keyframes drawer-in {
|
|
651
|
+
from {
|
|
652
|
+
transform: translateX(var(--drawer-from, -100%));
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
@keyframes drawer-out {
|
|
656
|
+
to {
|
|
657
|
+
transform: translateX(var(--drawer-from, -100%));
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
@keyframes trace {
|
|
661
|
+
0% {
|
|
662
|
+
stroke-dashoffset: 1;
|
|
663
|
+
opacity: 1;
|
|
664
|
+
}
|
|
665
|
+
40% {
|
|
666
|
+
stroke-dashoffset: 0;
|
|
667
|
+
}
|
|
668
|
+
78% {
|
|
669
|
+
stroke-dashoffset: 0;
|
|
670
|
+
opacity: 1;
|
|
671
|
+
}
|
|
672
|
+
100% {
|
|
673
|
+
stroke-dashoffset: 0;
|
|
674
|
+
opacity: 0;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
@keyframes viewer-in {
|
|
679
|
+
from {
|
|
680
|
+
opacity: 0;
|
|
681
|
+
transform: scale(0.94);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
@keyframes toast-in {
|
|
685
|
+
from {
|
|
686
|
+
opacity: 0;
|
|
687
|
+
transform: translateY(0.75rem) scale(0.98);
|
|
688
|
+
}
|
|
689
|
+
to {
|
|
690
|
+
opacity: 1;
|
|
691
|
+
transform: translateY(0) scale(1);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
@keyframes sheet-in {
|
|
695
|
+
from {
|
|
696
|
+
transform: translateY(100%);
|
|
697
|
+
}
|
|
698
|
+
to {
|
|
699
|
+
transform: translateY(0);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
@keyframes sheet-out {
|
|
703
|
+
from {
|
|
704
|
+
transform: translateY(0);
|
|
705
|
+
}
|
|
706
|
+
to {
|
|
707
|
+
transform: translateY(100%);
|
|
708
|
+
}
|
|
418
709
|
}
|
|
419
710
|
|
|
420
711
|
@keyframes fade-in {
|
|
@@ -474,7 +765,7 @@
|
|
|
474
765
|
multi-step dialog's panes. The new one arrives from the side it was on.
|
|
475
766
|
Set --from to -1 for the previous one and 1 for the next. */
|
|
476
767
|
@theme {
|
|
477
|
-
--animate-step-in: step-in
|
|
768
|
+
--animate-step-in: step-in var(--duration-slow) var(--ease-out-notion);
|
|
478
769
|
}
|
|
479
770
|
|
|
480
771
|
@keyframes step-in {
|