@k2b/ui 0.58.0 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.css +1 -0
- package/dist/browser/actions/CommandList.js +67 -74
- package/dist/browser/actions/CommandList.js.map +1 -1
- package/dist/browser/actions/ContextMenu.js +16 -4
- package/dist/browser/actions/ContextMenu.js.map +1 -1
- package/dist/browser/actions/Dropdown.js +187 -169
- package/dist/browser/actions/Dropdown.js.map +1 -1
- package/dist/browser/actions/GestureMenu.js +18 -7
- package/dist/browser/actions/GestureMenu.js.map +1 -1
- package/dist/browser/actions/SelectionAction.js +232 -0
- package/dist/browser/actions/SelectionAction.js.map +1 -0
- package/dist/browser/actions/Tabs.js +58 -19
- package/dist/browser/actions/Tabs.js.map +1 -1
- package/dist/browser/actions/Toolbar.js +66 -60
- package/dist/browser/actions/Toolbar.js.map +1 -1
- package/dist/browser/actions/ViewTabs.js +89 -73
- package/dist/browser/actions/ViewTabs.js.map +1 -1
- package/dist/browser/actions/command-items.js.map +1 -1
- package/dist/browser/actions/drag-and-drop.js +2 -1
- package/dist/browser/actions/drag-and-drop.js.map +1 -1
- package/dist/browser/actions/index.js +1 -0
- package/dist/browser/actions/index.js.map +1 -1
- package/dist/browser/actions/menu-sheet-open.js +19 -0
- package/dist/browser/actions/menu-sheet-open.js.map +1 -0
- package/dist/browser/charts/core/line-details.js +2 -2
- package/dist/browser/charts/core/line-details.js.map +1 -1
- package/dist/browser/charts/core/render.js +2 -1
- package/dist/browser/charts/core/render.js.map +1 -1
- package/dist/browser/charts/core/snapshot.js +3 -1
- package/dist/browser/charts/core/snapshot.js.map +1 -1
- package/dist/browser/chat/ChatActivityWords.js +142 -0
- package/dist/browser/chat/ChatActivityWords.js.map +1 -0
- package/dist/browser/chat/ChatComposer.js +857 -679
- package/dist/browser/chat/ChatComposer.js.map +1 -1
- package/dist/browser/chat/ChatComposerQuotes.js +56 -0
- package/dist/browser/chat/ChatComposerQuotes.js.map +1 -0
- package/dist/browser/chat/ChatContextPopup.js +34 -4
- package/dist/browser/chat/ChatContextPopup.js.map +1 -1
- package/dist/browser/chat/ChatPrimitives.js +559 -336
- package/dist/browser/chat/ChatPrimitives.js.map +1 -1
- package/dist/browser/chat/ChatTasks.js +218 -80
- package/dist/browser/chat/ChatTasks.js.map +1 -1
- package/dist/browser/chat/ChatTimeline.js +5 -3
- package/dist/browser/chat/ChatTimeline.js.map +1 -1
- package/dist/browser/chat/chat-behavior.js +12 -0
- package/dist/browser/chat/chat-behavior.js.map +1 -1
- package/dist/browser/chat/chat-messages.js +50 -2
- package/dist/browser/chat/chat-messages.js.map +1 -1
- package/dist/browser/chat/index.js +6 -2
- package/dist/browser/chat/index.js.map +1 -1
- package/dist/browser/chat/types.js.map +1 -1
- package/dist/browser/content/ActivityList.js +789 -0
- package/dist/browser/content/ActivityList.js.map +1 -0
- package/dist/browser/content/Calendar.js +2 -2
- package/dist/browser/content/Calendar.js.map +1 -1
- package/dist/browser/content/CalendarWeekView.js +9 -2
- package/dist/browser/content/CalendarWeekView.js.map +1 -1
- package/dist/browser/content/ChartRoot.js +4 -1
- package/dist/browser/content/ChartRoot.js.map +1 -1
- package/dist/browser/content/DataTable.js +9 -0
- package/dist/browser/content/DataTable.js.map +1 -1
- package/dist/browser/content/DataTableTools.js +3 -0
- package/dist/browser/content/DataTableTools.js.map +1 -1
- package/dist/browser/content/Lightbox.js +4 -2
- package/dist/browser/content/Lightbox.js.map +1 -1
- package/dist/browser/content/MessageQuote.js +57 -0
- package/dist/browser/content/MessageQuote.js.map +1 -0
- package/dist/browser/content/MessageRow.js +413 -391
- package/dist/browser/content/MessageRow.js.map +1 -1
- package/dist/browser/content/PdfPages.js +1 -0
- package/dist/browser/content/PdfPages.js.map +1 -1
- package/dist/browser/content/ProgressPath.js +101 -0
- package/dist/browser/content/ProgressPath.js.map +1 -0
- package/dist/browser/content/Timeline.js +1 -1
- package/dist/browser/content/Timeline.js.map +1 -1
- package/dist/browser/content/VirtualFeed.js +29 -2
- package/dist/browser/content/VirtualFeed.js.map +1 -1
- package/dist/browser/content/activity-messages.js +47 -0
- package/dist/browser/content/activity-messages.js.map +1 -0
- package/dist/browser/content/activity-timeline.js +144 -0
- package/dist/browser/content/activity-timeline.js.map +1 -0
- package/dist/browser/content/chart-tick-room.js +59 -0
- package/dist/browser/content/chart-tick-room.js.map +1 -0
- package/dist/browser/content/chart-time-calendar.js +12 -18
- package/dist/browser/content/chart-time-calendar.js.map +1 -1
- package/dist/browser/content/find-text.js +47 -0
- package/dist/browser/content/find-text.js.map +1 -0
- package/dist/browser/content/index.js +2 -0
- package/dist/browser/content/index.js.map +1 -1
- package/dist/browser/content/quote-messages.js +25 -0
- package/dist/browser/content/quote-messages.js.map +1 -0
- package/dist/browser/feedback/HoverCard.js +535 -0
- package/dist/browser/feedback/HoverCard.js.map +1 -0
- package/dist/browser/feedback/Tooltip.js +5 -2
- package/dist/browser/feedback/Tooltip.js.map +1 -1
- package/dist/browser/feedback/dialog-core.js +129 -21
- package/dist/browser/feedback/dialog-core.js.map +1 -1
- package/dist/browser/feedback/dialog-frame-motion.js +274 -0
- package/dist/browser/feedback/dialog-frame-motion.js.map +1 -0
- package/dist/browser/feedback/index.js +1 -0
- package/dist/browser/feedback/index.js.map +1 -1
- package/dist/browser/feedback/prompt-confirm.js +3 -17
- package/dist/browser/feedback/prompt-confirm.js.map +1 -1
- package/dist/browser/feedback/prompt-sheet-view.js +96 -0
- package/dist/browser/feedback/prompt-sheet-view.js.map +1 -0
- package/dist/browser/feedback/prompt-sheet.js +36 -0
- package/dist/browser/feedback/prompt-sheet.js.map +1 -0
- package/dist/browser/feedback/prompts.js +63 -91
- package/dist/browser/feedback/prompts.js.map +1 -1
- package/dist/browser/feedback/toast.js +17 -12
- package/dist/browser/feedback/toast.js.map +1 -1
- package/dist/browser/hover-card.js +6 -0
- package/dist/browser/hover-card.js.map +1 -0
- package/dist/browser/inputs/AutocompleteEditor.js +2 -1
- package/dist/browser/inputs/AutocompleteEditor.js.map +1 -1
- package/dist/browser/inputs/AutocompleteSelect.js +3 -12
- package/dist/browser/inputs/AutocompleteSelect.js.map +1 -1
- package/dist/browser/inputs/ChoiceList.js +131 -127
- package/dist/browser/inputs/ChoiceList.js.map +1 -1
- package/dist/browser/inputs/Combobox.js +6 -15
- package/dist/browser/inputs/Combobox.js.map +1 -1
- package/dist/browser/inputs/MultiSelectInput.js +7 -16
- package/dist/browser/inputs/MultiSelectInput.js.map +1 -1
- package/dist/browser/inputs/PeriodPicker.js +475 -252
- package/dist/browser/inputs/PeriodPicker.js.map +1 -1
- package/dist/browser/inputs/RichSelect.js +431 -431
- package/dist/browser/inputs/RichSelect.js.map +1 -1
- package/dist/browser/inputs/Select.js +3 -12
- package/dist/browser/inputs/Select.js.map +1 -1
- package/dist/browser/inputs/SelectChip.js +1 -0
- package/dist/browser/inputs/SelectChip.js.map +1 -1
- package/dist/browser/inputs/TimeInput.js +181 -0
- package/dist/browser/inputs/TimeInput.js.map +1 -0
- package/dist/browser/inputs/choice.js.map +1 -1
- package/dist/browser/inputs/date-picker.js +2 -1
- package/dist/browser/inputs/date-picker.js.map +1 -1
- package/dist/browser/inputs/file-drop.js +2 -0
- package/dist/browser/inputs/file-drop.js.map +1 -1
- package/dist/browser/inputs/index.js +1 -0
- package/dist/browser/inputs/index.js.map +1 -1
- package/dist/browser/inputs/input-messages.js +20 -2
- package/dist/browser/inputs/input-messages.js.map +1 -1
- package/dist/browser/inputs/period-picker-messages.js +20 -2
- package/dist/browser/inputs/period-picker-messages.js.map +1 -1
- package/dist/browser/inputs/period.js +83 -0
- package/dist/browser/inputs/period.js.map +1 -1
- package/dist/browser/inputs/time-input.js +93 -0
- package/dist/browser/inputs/time-input.js.map +1 -0
- package/dist/browser/internal/anchor-placement.js +38 -0
- package/dist/browser/internal/anchor-placement.js.map +1 -0
- package/dist/browser/internal/exit-motion.js +23 -0
- package/dist/browser/internal/exit-motion.js.map +1 -0
- package/dist/browser/internal/option-description.js +47 -0
- package/dist/browser/internal/option-description.js.map +1 -0
- package/dist/browser/internal/portal-scope.js +36 -0
- package/dist/browser/internal/portal-scope.js.map +1 -0
- package/dist/browser/internal/portal.js +13 -10
- package/dist/browser/internal/portal.js.map +1 -1
- package/dist/browser/internal/scroll-places.js +15 -0
- package/dist/browser/internal/scroll-places.js.map +1 -0
- package/dist/browser/intl/messages.js +10 -0
- package/dist/browser/intl/messages.js.map +1 -1
- package/dist/browser/layout/AnchoredPopover.js +10 -25
- package/dist/browser/layout/AnchoredPopover.js.map +1 -1
- package/dist/browser/layout/AppWorkspace.js +572 -495
- package/dist/browser/layout/AppWorkspace.js.map +1 -1
- package/dist/browser/layout/BottomSheet.js +1 -24
- package/dist/browser/layout/BottomSheet.js.map +1 -1
- package/dist/browser/layout/Discussion.js +298 -3
- package/dist/browser/layout/Discussion.js.map +1 -1
- package/dist/browser/layout/FloatingWindow.js +2 -0
- package/dist/browser/layout/FloatingWindow.js.map +1 -1
- package/dist/browser/layout/Navigation.js +7 -2
- package/dist/browser/layout/Navigation.js.map +1 -1
- package/dist/browser/layout/Panes.js +3 -0
- package/dist/browser/layout/Panes.js.map +1 -1
- package/dist/browser/layout/SidebarSwitcher.js +28 -37
- package/dist/browser/layout/SidebarSwitcher.js.map +1 -1
- package/dist/browser/layout/app-workspace-controller.js +5 -1
- package/dist/browser/layout/app-workspace-controller.js.map +1 -1
- package/dist/browser/layout/bottom-sheet-load.js +17 -0
- package/dist/browser/layout/bottom-sheet-load.js.map +1 -0
- package/dist/browser/layout/bottom-sheet-options.js +27 -0
- package/dist/browser/layout/bottom-sheet-options.js.map +1 -0
- package/dist/browser/layout/index.js +2 -1
- package/dist/browser/layout/index.js.map +1 -1
- package/dist/browser/layout/panes-preview-scope.js +9 -0
- package/dist/browser/layout/panes-preview-scope.js.map +1 -0
- package/dist/browser/layout/sheet-handle.js +173 -37
- package/dist/browser/layout/sheet-handle.js.map +1 -1
- package/dist/browser/layout/sheet-motion.js +37 -5
- package/dist/browser/layout/sheet-motion.js.map +1 -1
- package/dist/browser/layout/sidebar-scroll-memory.js +30 -0
- package/dist/browser/layout/sidebar-scroll-memory.js.map +1 -1
- package/dist/browser/panes.js +3 -0
- package/dist/browser/panes.js.map +1 -0
- package/dist/browser/surfaces/AvatarStack.js +59 -43
- package/dist/browser/surfaces/AvatarStack.js.map +1 -1
- package/dist/browser/surfaces/ChangeList.js +78 -16
- package/dist/browser/surfaces/ChangeList.js.map +1 -1
- package/dist/browser/surfaces/DotStrip.js +126 -41
- package/dist/browser/surfaces/DotStrip.js.map +1 -1
- package/dist/browser/surfaces/LinkCard.js +69 -16
- package/dist/browser/surfaces/LinkCard.js.map +1 -1
- package/dist/browser/surfaces/Section.js +4 -2
- package/dist/browser/surfaces/Section.js.map +1 -1
- package/dist/browser/surfaces/StatCell.js +56 -28
- package/dist/browser/surfaces/StatCell.js.map +1 -1
- package/dist/browser/surfaces/StatGrid.js +17 -8
- package/dist/browser/surfaces/StatGrid.js.map +1 -1
- package/dist/browser/surfaces/index.js.map +1 -1
- package/dist/ssr/actions/CommandList.js +23 -26
- package/dist/ssr/actions/CommandList.js.map +1 -1
- package/dist/ssr/actions/ContextMenu.js +9 -2
- package/dist/ssr/actions/ContextMenu.js.map +1 -1
- package/dist/ssr/actions/Dropdown.js +79 -55
- package/dist/ssr/actions/Dropdown.js.map +1 -1
- package/dist/ssr/actions/GestureMenu.js +18 -7
- package/dist/ssr/actions/GestureMenu.js.map +1 -1
- package/dist/ssr/actions/SelectionAction.js +212 -0
- package/dist/ssr/actions/SelectionAction.js.map +1 -0
- package/dist/ssr/actions/Tabs.js +21 -6
- package/dist/ssr/actions/Tabs.js.map +1 -1
- package/dist/ssr/actions/Toolbar.js +24 -18
- package/dist/ssr/actions/Toolbar.js.map +1 -1
- package/dist/ssr/actions/ViewTabs.js +27 -20
- package/dist/ssr/actions/ViewTabs.js.map +1 -1
- package/dist/ssr/actions/command-items.js.map +1 -1
- package/dist/ssr/actions/drag-and-drop.js +2 -1
- package/dist/ssr/actions/drag-and-drop.js.map +1 -1
- package/dist/ssr/actions/index.js +1 -0
- package/dist/ssr/actions/index.js.map +1 -1
- package/dist/ssr/actions/menu-sheet-open.js +19 -0
- package/dist/ssr/actions/menu-sheet-open.js.map +1 -0
- package/dist/ssr/charts/core/line-details.js +2 -2
- package/dist/ssr/charts/core/line-details.js.map +1 -1
- package/dist/ssr/charts/core/render.js +2 -1
- package/dist/ssr/charts/core/render.js.map +1 -1
- package/dist/ssr/charts/core/snapshot.js +3 -1
- package/dist/ssr/charts/core/snapshot.js.map +1 -1
- package/dist/ssr/chat/ChatActivityWords.js +126 -0
- package/dist/ssr/chat/ChatActivityWords.js.map +1 -0
- package/dist/ssr/chat/ChatComposer.js +271 -142
- package/dist/ssr/chat/ChatComposer.js.map +1 -1
- package/dist/ssr/chat/ChatComposerQuotes.js +26 -0
- package/dist/ssr/chat/ChatComposerQuotes.js.map +1 -0
- package/dist/ssr/chat/ChatContextPopup.js +17 -1
- package/dist/ssr/chat/ChatContextPopup.js.map +1 -1
- package/dist/ssr/chat/ChatPrimitives.js +213 -79
- package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
- package/dist/ssr/chat/ChatTasks.js +117 -27
- package/dist/ssr/chat/ChatTasks.js.map +1 -1
- package/dist/ssr/chat/ChatTimeline.js +5 -3
- package/dist/ssr/chat/ChatTimeline.js.map +1 -1
- package/dist/ssr/chat/chat-behavior.js +12 -0
- package/dist/ssr/chat/chat-behavior.js.map +1 -1
- package/dist/ssr/chat/chat-messages.js +50 -2
- package/dist/ssr/chat/chat-messages.js.map +1 -1
- package/dist/ssr/chat/index.js +6 -2
- package/dist/ssr/chat/index.js.map +1 -1
- package/dist/ssr/chat/types.js.map +1 -1
- package/dist/ssr/content/ActivityList.js +553 -0
- package/dist/ssr/content/ActivityList.js.map +1 -0
- package/dist/ssr/content/Calendar.js +2 -2
- package/dist/ssr/content/Calendar.js.map +1 -1
- package/dist/ssr/content/CalendarWeekView.js +9 -2
- package/dist/ssr/content/CalendarWeekView.js.map +1 -1
- package/dist/ssr/content/ChartRoot.js +4 -1
- package/dist/ssr/content/ChartRoot.js.map +1 -1
- package/dist/ssr/content/DataTable.js +9 -0
- package/dist/ssr/content/DataTable.js.map +1 -1
- package/dist/ssr/content/DataTableTools.js +3 -0
- package/dist/ssr/content/DataTableTools.js.map +1 -1
- package/dist/ssr/content/Lightbox.js +4 -2
- package/dist/ssr/content/Lightbox.js.map +1 -1
- package/dist/ssr/content/MessageQuote.js +36 -0
- package/dist/ssr/content/MessageQuote.js.map +1 -0
- package/dist/ssr/content/MessageRow.js +112 -95
- package/dist/ssr/content/MessageRow.js.map +1 -1
- package/dist/ssr/content/PdfPages.js +1 -0
- package/dist/ssr/content/PdfPages.js.map +1 -1
- package/dist/ssr/content/ProgressPath.js +51 -0
- package/dist/ssr/content/ProgressPath.js.map +1 -0
- package/dist/ssr/content/Timeline.js +1 -1
- package/dist/ssr/content/Timeline.js.map +1 -1
- package/dist/ssr/content/VirtualFeed.js +29 -2
- package/dist/ssr/content/VirtualFeed.js.map +1 -1
- package/dist/ssr/content/activity-messages.js +47 -0
- package/dist/ssr/content/activity-messages.js.map +1 -0
- package/dist/ssr/content/activity-timeline.js +144 -0
- package/dist/ssr/content/activity-timeline.js.map +1 -0
- package/dist/ssr/content/chart-tick-room.js +59 -0
- package/dist/ssr/content/chart-tick-room.js.map +1 -0
- package/dist/ssr/content/chart-time-calendar.js +12 -18
- package/dist/ssr/content/chart-time-calendar.js.map +1 -1
- package/dist/ssr/content/find-text.js +47 -0
- package/dist/ssr/content/find-text.js.map +1 -0
- package/dist/ssr/content/index.js +2 -0
- package/dist/ssr/content/index.js.map +1 -1
- package/dist/ssr/content/quote-messages.js +25 -0
- package/dist/ssr/content/quote-messages.js.map +1 -0
- package/dist/ssr/feedback/HoverCard.js +473 -0
- package/dist/ssr/feedback/HoverCard.js.map +1 -0
- package/dist/ssr/feedback/Tooltip.js +5 -2
- package/dist/ssr/feedback/Tooltip.js.map +1 -1
- package/dist/ssr/feedback/dialog-core.js +129 -21
- package/dist/ssr/feedback/dialog-core.js.map +1 -1
- package/dist/ssr/feedback/dialog-frame-motion.js +274 -0
- package/dist/ssr/feedback/dialog-frame-motion.js.map +1 -0
- package/dist/ssr/feedback/index.js +1 -0
- package/dist/ssr/feedback/index.js.map +1 -1
- package/dist/ssr/feedback/prompt-confirm.js +3 -17
- package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
- package/dist/ssr/feedback/prompt-sheet-view.js +62 -0
- package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -0
- package/dist/ssr/feedback/prompt-sheet.js +36 -0
- package/dist/ssr/feedback/prompt-sheet.js.map +1 -0
- package/dist/ssr/feedback/prompts.js +28 -52
- package/dist/ssr/feedback/prompts.js.map +1 -1
- package/dist/ssr/feedback/toast.js +17 -12
- package/dist/ssr/feedback/toast.js.map +1 -1
- package/dist/ssr/hover-card.js +6 -0
- package/dist/ssr/hover-card.js.map +1 -0
- package/dist/ssr/inputs/AutocompleteEditor.js +2 -1
- package/dist/ssr/inputs/AutocompleteEditor.js.map +1 -1
- package/dist/ssr/inputs/AutocompleteSelect.js +3 -8
- package/dist/ssr/inputs/AutocompleteSelect.js.map +1 -1
- package/dist/ssr/inputs/ChoiceList.js +25 -25
- package/dist/ssr/inputs/ChoiceList.js.map +1 -1
- package/dist/ssr/inputs/Combobox.js +4 -9
- package/dist/ssr/inputs/Combobox.js.map +1 -1
- package/dist/ssr/inputs/MultiSelectInput.js +4 -9
- package/dist/ssr/inputs/MultiSelectInput.js.map +1 -1
- package/dist/ssr/inputs/PeriodPicker.js +241 -46
- package/dist/ssr/inputs/PeriodPicker.js.map +1 -1
- package/dist/ssr/inputs/RichSelect.js +135 -121
- package/dist/ssr/inputs/RichSelect.js.map +1 -1
- package/dist/ssr/inputs/Select.js +3 -8
- package/dist/ssr/inputs/Select.js.map +1 -1
- package/dist/ssr/inputs/SelectChip.js +1 -0
- package/dist/ssr/inputs/SelectChip.js.map +1 -1
- package/dist/ssr/inputs/TimeInput.js +145 -0
- package/dist/ssr/inputs/TimeInput.js.map +1 -0
- package/dist/ssr/inputs/choice.js.map +1 -1
- package/dist/ssr/inputs/date-picker.js +2 -1
- package/dist/ssr/inputs/date-picker.js.map +1 -1
- package/dist/ssr/inputs/file-drop.js +2 -0
- package/dist/ssr/inputs/file-drop.js.map +1 -1
- package/dist/ssr/inputs/index.js +1 -0
- package/dist/ssr/inputs/index.js.map +1 -1
- package/dist/ssr/inputs/input-messages.js +20 -2
- package/dist/ssr/inputs/input-messages.js.map +1 -1
- package/dist/ssr/inputs/period-picker-messages.js +20 -2
- package/dist/ssr/inputs/period-picker-messages.js.map +1 -1
- package/dist/ssr/inputs/period.js +83 -0
- package/dist/ssr/inputs/period.js.map +1 -1
- package/dist/ssr/inputs/time-input.js +93 -0
- package/dist/ssr/inputs/time-input.js.map +1 -0
- package/dist/ssr/internal/anchor-placement.js +38 -0
- package/dist/ssr/internal/anchor-placement.js.map +1 -0
- package/dist/ssr/internal/exit-motion.js +23 -0
- package/dist/ssr/internal/exit-motion.js.map +1 -0
- package/dist/ssr/internal/option-description.js +27 -0
- package/dist/ssr/internal/option-description.js.map +1 -0
- package/dist/ssr/internal/portal-scope.js +36 -0
- package/dist/ssr/internal/portal-scope.js.map +1 -0
- package/dist/ssr/internal/portal.js +13 -10
- package/dist/ssr/internal/portal.js.map +1 -1
- package/dist/ssr/internal/scroll-places.js +15 -0
- package/dist/ssr/internal/scroll-places.js.map +1 -0
- package/dist/ssr/intl/messages.js +10 -0
- package/dist/ssr/intl/messages.js.map +1 -1
- package/dist/ssr/layout/AnchoredPopover.js +10 -25
- package/dist/ssr/layout/AnchoredPopover.js.map +1 -1
- package/dist/ssr/layout/AppWorkspace.js +191 -121
- package/dist/ssr/layout/AppWorkspace.js.map +1 -1
- package/dist/ssr/layout/BottomSheet.js +1 -24
- package/dist/ssr/layout/BottomSheet.js.map +1 -1
- package/dist/ssr/layout/Discussion.js +168 -2
- package/dist/ssr/layout/Discussion.js.map +1 -1
- package/dist/ssr/layout/FloatingWindow.js +2 -0
- package/dist/ssr/layout/FloatingWindow.js.map +1 -1
- package/dist/ssr/layout/Navigation.js +7 -2
- package/dist/ssr/layout/Navigation.js.map +1 -1
- package/dist/ssr/layout/Panes.js +3 -0
- package/dist/ssr/layout/Panes.js.map +1 -1
- package/dist/ssr/layout/SidebarSwitcher.js +8 -13
- package/dist/ssr/layout/SidebarSwitcher.js.map +1 -1
- package/dist/ssr/layout/app-workspace-controller.js +5 -1
- package/dist/ssr/layout/app-workspace-controller.js.map +1 -1
- package/dist/ssr/layout/bottom-sheet-load.js +17 -0
- package/dist/ssr/layout/bottom-sheet-load.js.map +1 -0
- package/dist/ssr/layout/bottom-sheet-options.js +27 -0
- package/dist/ssr/layout/bottom-sheet-options.js.map +1 -0
- package/dist/ssr/layout/index.js +2 -1
- package/dist/ssr/layout/index.js.map +1 -1
- package/dist/ssr/layout/panes-preview-scope.js +9 -0
- package/dist/ssr/layout/panes-preview-scope.js.map +1 -0
- package/dist/ssr/layout/sheet-handle.js +173 -37
- package/dist/ssr/layout/sheet-handle.js.map +1 -1
- package/dist/ssr/layout/sheet-motion.js +37 -5
- package/dist/ssr/layout/sheet-motion.js.map +1 -1
- package/dist/ssr/layout/sidebar-scroll-memory.js +30 -0
- package/dist/ssr/layout/sidebar-scroll-memory.js.map +1 -1
- package/dist/ssr/panes.js +3 -0
- package/dist/ssr/panes.js.map +1 -0
- package/dist/ssr/surfaces/AvatarStack.js +56 -40
- package/dist/ssr/surfaces/AvatarStack.js.map +1 -1
- package/dist/ssr/surfaces/ChangeList.js +37 -5
- package/dist/ssr/surfaces/ChangeList.js.map +1 -1
- package/dist/ssr/surfaces/DotStrip.js +75 -12
- package/dist/ssr/surfaces/DotStrip.js.map +1 -1
- package/dist/ssr/surfaces/LinkCard.js +46 -7
- package/dist/ssr/surfaces/LinkCard.js.map +1 -1
- package/dist/ssr/surfaces/Section.js +4 -2
- package/dist/ssr/surfaces/Section.js.map +1 -1
- package/dist/ssr/surfaces/StatCell.js +24 -12
- package/dist/ssr/surfaces/StatCell.js.map +1 -1
- package/dist/ssr/surfaces/StatGrid.js +12 -6
- package/dist/ssr/surfaces/StatGrid.js.map +1 -1
- package/dist/ssr/surfaces/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/actions/Dropdown.d.ts +10 -0
- package/dist/types/actions/SelectionAction.d.ts +34 -0
- package/dist/types/actions/Tabs.d.ts +9 -0
- package/dist/types/actions/ViewTabs.d.ts +2 -0
- package/dist/types/actions/command-items.d.ts +5 -0
- package/dist/types/actions/index.d.ts +2 -0
- package/dist/types/actions/menu-sheet-open.d.ts +13 -0
- package/dist/types/charts/core/line-details.d.ts +1 -1
- package/dist/types/chat/ChatActivityWords.d.ts +31 -0
- package/dist/types/chat/ChatComposer.d.ts +41 -3
- package/dist/types/chat/ChatComposerQuotes.d.ts +10 -0
- package/dist/types/chat/ChatPrimitives.d.ts +23 -2
- package/dist/types/chat/ChatTasks.d.ts +14 -1
- package/dist/types/chat/chat-behavior.d.ts +14 -0
- package/dist/types/chat/chat-messages.d.ts +24 -0
- package/dist/types/chat/index.d.ts +10 -5
- package/dist/types/chat/types.d.ts +27 -0
- package/dist/types/content/ActivityList.d.ts +166 -0
- package/dist/types/content/DataTableTools.d.ts +2 -0
- package/dist/types/content/MessageQuote.d.ts +9 -0
- package/dist/types/content/MessageRow.d.ts +5 -0
- package/dist/types/content/ProgressPath.d.ts +25 -0
- package/dist/types/content/VirtualFeed.d.ts +6 -0
- package/dist/types/content/activity-messages.d.ts +22 -0
- package/dist/types/content/activity-timeline.d.ts +52 -0
- package/dist/types/content/chart-tick-room.d.ts +15 -0
- package/dist/types/content/chart-time-calendar.d.ts +6 -0
- package/dist/types/content/find-text.d.ts +10 -0
- package/dist/types/content/index.d.ts +2 -0
- package/dist/types/content/quote-messages.d.ts +6 -0
- package/dist/types/feedback/HoverCard.d.ts +44 -0
- package/dist/types/feedback/Tooltip.d.ts +5 -0
- package/dist/types/feedback/dialog-core.d.ts +2 -0
- package/dist/types/feedback/dialog-frame-motion.d.ts +37 -0
- package/dist/types/feedback/index.d.ts +2 -0
- package/dist/types/feedback/prompt-confirm.d.ts +0 -2
- package/dist/types/feedback/prompt-sheet-view.d.ts +3 -0
- package/dist/types/feedback/prompt-sheet.d.ts +20 -0
- package/dist/types/feedback/prompts.d.ts +5 -0
- package/dist/types/feedback/toast.d.ts +5 -1
- package/dist/types/hover-card.d.ts +5 -0
- package/dist/types/inputs/ChoiceList.d.ts +12 -5
- package/dist/types/inputs/Combobox.d.ts +5 -0
- package/dist/types/inputs/MultiSelectInput.d.ts +1 -0
- package/dist/types/inputs/PeriodPicker.d.ts +10 -0
- package/dist/types/inputs/RichSelect.d.ts +5 -0
- package/dist/types/inputs/Select.d.ts +1 -0
- package/dist/types/inputs/SelectChip.d.ts +5 -0
- package/dist/types/inputs/TimeInput.d.ts +16 -0
- package/dist/types/inputs/choice.d.ts +6 -1
- package/dist/types/inputs/index.d.ts +2 -0
- package/dist/types/inputs/input-messages.d.ts +9 -0
- package/dist/types/inputs/period-picker-messages.d.ts +9 -0
- package/dist/types/inputs/period.d.ts +41 -0
- package/dist/types/inputs/time-input.d.ts +43 -0
- package/dist/types/internal/anchor-placement.d.ts +23 -0
- package/dist/types/internal/exit-motion.d.ts +10 -0
- package/dist/types/internal/option-description.d.ts +20 -0
- package/dist/types/internal/portal-scope.d.ts +11 -0
- package/dist/types/internal/portal.d.ts +1 -1
- package/dist/types/internal/scroll-places.d.ts +2 -0
- package/dist/types/intl/messages.d.ts +5 -0
- package/dist/types/layout/AppWorkspace.d.ts +10 -0
- package/dist/types/layout/BottomSheet.d.ts +1 -18
- package/dist/types/layout/Discussion.d.ts +25 -0
- package/dist/types/layout/Panes.d.ts +6 -0
- package/dist/types/layout/SidebarSwitcher.d.ts +5 -0
- package/dist/types/layout/bottom-sheet-load.d.ts +9 -0
- package/dist/types/layout/bottom-sheet-options.d.ts +18 -0
- package/dist/types/layout/index.d.ts +4 -3
- package/dist/types/layout/panes-preview-scope.d.ts +2 -0
- package/dist/types/layout/sheet-handle.d.ts +17 -8
- package/dist/types/layout/sidebar-scroll-memory.d.ts +6 -0
- package/dist/types/panes.d.ts +2 -0
- package/dist/types/surfaces/ChangeList.d.ts +23 -4
- package/dist/types/surfaces/DotStrip.d.ts +25 -5
- package/dist/types/surfaces/LinkCard.d.ts +14 -0
- package/dist/types/surfaces/StatCell.d.ts +7 -2
- package/dist/types/surfaces/StatGrid.d.ts +15 -3
- package/dist/types/surfaces/index.d.ts +1 -1
- package/package.json +18 -5
|
@@ -117,6 +117,39 @@ export declare const periodInstants: (range: PeriodRange, timeZone: string) => {
|
|
|
117
117
|
from: string | null;
|
|
118
118
|
to: string | null;
|
|
119
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* How a period steps to its neighbour: calendar months, quarters and years keep their unit; every other range
|
|
122
|
+
* keeps its own number of days, even when its edges happen to be month boundaries.
|
|
123
|
+
*/
|
|
124
|
+
export type PeriodStep = {
|
|
125
|
+
months: number;
|
|
126
|
+
} | {
|
|
127
|
+
days: number;
|
|
128
|
+
};
|
|
129
|
+
/** What a period is, for its text and the way back to the current one. */
|
|
130
|
+
export type PeriodKind = "day" | "week" | "month" | "quarter" | "year" | "range";
|
|
131
|
+
/** The step of a period; `undefined` for an open edge, which has no neighbour. */
|
|
132
|
+
export declare const periodStep: (range: PeriodRange) => PeriodStep | undefined;
|
|
133
|
+
/** The period `count` steps away: `-1` is the previous one, `1` the next. */
|
|
134
|
+
export declare const stepPeriod: (range: {
|
|
135
|
+
start: string;
|
|
136
|
+
end: string;
|
|
137
|
+
}, step: PeriodStep, count: number) => {
|
|
138
|
+
start: string;
|
|
139
|
+
end: string;
|
|
140
|
+
};
|
|
141
|
+
/** The period of the same kind and rhythm that contains today: this week for a week, this month for a month. */
|
|
142
|
+
export declare const currentPeriodOf: (range: {
|
|
143
|
+
start: string;
|
|
144
|
+
end: string;
|
|
145
|
+
}, step: PeriodStep, today: string) => {
|
|
146
|
+
start: string;
|
|
147
|
+
end: string;
|
|
148
|
+
};
|
|
149
|
+
export declare const periodKind: (range: {
|
|
150
|
+
start: string;
|
|
151
|
+
end: string;
|
|
152
|
+
}, weekStartsOn: 0 | 1) => PeriodKind;
|
|
120
153
|
/**
|
|
121
154
|
* Short days of a preset, for the list and the trigger: "Sat, Nov 7", "Nov 1 – 30", "2025", "since 3/14/2019".
|
|
122
155
|
* The year is added only when the period is not in today's year.
|
|
@@ -127,6 +160,14 @@ export declare const formatPeriodRange: (range: {
|
|
|
127
160
|
start: string;
|
|
128
161
|
end: string;
|
|
129
162
|
}, locale: string) => string;
|
|
163
|
+
/**
|
|
164
|
+
* Explicit days that are one calendar week, month or year read as that: "9.–15. Nov. 2026", "Oktober 2026", "2025".
|
|
165
|
+
* `undefined` for any other range, which keeps its numeric days and count.
|
|
166
|
+
*/
|
|
167
|
+
export declare const formatPeriodUnit: (range: {
|
|
168
|
+
start: string;
|
|
169
|
+
end: string;
|
|
170
|
+
}, weekStartsOn: 0 | 1, locale: string) => string | undefined;
|
|
130
171
|
/** The widest explicit range within today's year, all of it (two-digit days, a three-digit count), so a trigger can reserve its width. */
|
|
131
172
|
export declare const widePeriodRangeSample: (today: string) => {
|
|
132
173
|
start: string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rules of the typed time field: what a text means as a 24-hour clock time `HH:mm`, the minute grid of `step`, and
|
|
3
|
+
* the bounds `min` and `max`. `24:00` is a time only where `max` allows it, as the end of a day.
|
|
4
|
+
*/
|
|
5
|
+
export type TimeTextResult = {
|
|
6
|
+
kind: "empty";
|
|
7
|
+
} | {
|
|
8
|
+
kind: "time";
|
|
9
|
+
value: string;
|
|
10
|
+
} | {
|
|
11
|
+
kind: "error";
|
|
12
|
+
};
|
|
13
|
+
export type TimeLimitError = {
|
|
14
|
+
code: "earliest";
|
|
15
|
+
time: string;
|
|
16
|
+
} | {
|
|
17
|
+
code: "latest";
|
|
18
|
+
time: string;
|
|
19
|
+
};
|
|
20
|
+
/** `HH:mm` from minutes after midnight; 1440 is `24:00`. */
|
|
21
|
+
export declare const timeFromMinutes: (minutes: number) => string;
|
|
22
|
+
/** Minutes after midnight of an `HH:mm` value, or `null` for anything else. `24:00` is 1440. */
|
|
23
|
+
export declare const timeToMinutes: (value: string | null | undefined) => number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Keeps what can still become a time while someone types: up to four digits and one separator after the hour.
|
|
26
|
+
* `.`, `h` and a space count as the separator and become `:`.
|
|
27
|
+
*/
|
|
28
|
+
export declare const filterTimeText: (value: string) => string;
|
|
29
|
+
/**
|
|
30
|
+
* What a typed text means: `9` and `09` are 09:00, `930` and `0930` are 09:30, `9:5` is 09:05. Hours above 24 and
|
|
31
|
+
* minutes above 59 are no time; `24:00` is, and the bounds decide whether it is allowed.
|
|
32
|
+
*/
|
|
33
|
+
export declare const parseTimeText: (text: string) => TimeTextResult;
|
|
34
|
+
/**
|
|
35
|
+
* The nearest time on the grid of `step` minutes, counted from `min` (or midnight). A time of the day that would round
|
|
36
|
+
* up to midnight takes the last grid line before it instead, so snapping never leaves the day.
|
|
37
|
+
*/
|
|
38
|
+
export declare const snapTime: (value: string, step: number | undefined, min?: string) => string;
|
|
39
|
+
/** Why a time lies outside `min`/`max`; without `max`, 23:59 is the last time of the day. */
|
|
40
|
+
export declare const timeLimitError: (value: string, limits: {
|
|
41
|
+
min?: string;
|
|
42
|
+
max?: string;
|
|
43
|
+
}) => TimeLimitError | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Distance between a surface and its anchor. */
|
|
2
|
+
export declare const ANCHOR_GAP = 6;
|
|
3
|
+
/** Where a surface at a control becomes a bottom sheet across the screen. */
|
|
4
|
+
export declare const SHEET_QUERY = "(max-width: 47.999rem)";
|
|
5
|
+
export type AnchorPlacementOptions = {
|
|
6
|
+
/** The side tried first. Defaults to `below`. */
|
|
7
|
+
side?: "below" | "above";
|
|
8
|
+
/** Which edge lines up with the anchor. */
|
|
9
|
+
align: "start" | "end";
|
|
10
|
+
/** The side chosen earlier, kept so a surface that grows never flips while open. */
|
|
11
|
+
above?: boolean;
|
|
12
|
+
/** The tallest the surface gets while open; the side is chosen for this height. */
|
|
13
|
+
plannedHeight?: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Places a fixed surface below or above its anchor, lined up with the anchor's start or end edge, and clamps it into
|
|
17
|
+
* the visible viewport with a margin. The surface flips to the other side only when that side has more room. Returns
|
|
18
|
+
* the chosen side, to keep it while the surface stays open, and the room on that side.
|
|
19
|
+
*/
|
|
20
|
+
export declare const placeAtAnchor: (surface: HTMLElement, anchor: HTMLElement, options: AnchorPlacementOptions) => {
|
|
21
|
+
above: boolean;
|
|
22
|
+
room: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Waits for the exit transitions that the stylesheet starts on an element that just closed, such as a dialog whose
|
|
3
|
+
* `[open]` went away, and then calls `done` once. Without a running transition (reduced motion, a sheet that moves
|
|
4
|
+
* itself, a document without the stylesheet) `done` runs at once. Only the element's own transitions count: a spinner
|
|
5
|
+
* inside it may loop forever.
|
|
6
|
+
*
|
|
7
|
+
* Returns a function that ends the wait at once and calls `done` now, for a new dialog that opens meanwhile or a page
|
|
8
|
+
* swap that disposes everything.
|
|
9
|
+
*/
|
|
10
|
+
export declare const afterExitTransitions: (element: Element, done: () => void) => (() => void);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
type OptionLine = {
|
|
3
|
+
description?: string;
|
|
4
|
+
descriptionVisual?: () => JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* The second line of an option row, as a `<small>`, or nothing without a
|
|
8
|
+
* description. With a `descriptionVisual`, such as a colored `Tag`, the visual
|
|
9
|
+
* shows in place of the description. The text stays in the row, hidden from
|
|
10
|
+
* view, so search, the accessible name, and the description a screen reader
|
|
11
|
+
* reads do not change. The visual keeps the line's height.
|
|
12
|
+
*
|
|
13
|
+
* Every option list calls this one function, so each call stays small in the
|
|
14
|
+
* islands that ship several lists. Only whether the line exists decides when
|
|
15
|
+
* its element is made: a host that rebuilds equal options, such as a menu
|
|
16
|
+
* whose entries come and go while someone types, keeps the element, and only
|
|
17
|
+
* its content follows.
|
|
18
|
+
*/
|
|
19
|
+
export declare const optionDescription: (option: OptionLine | (() => OptionLine), className?: string, id?: string) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type UiScope = {
|
|
2
|
+
primary: string | null;
|
|
3
|
+
theme: "light" | "dark";
|
|
4
|
+
};
|
|
5
|
+
export declare const PRIMARY_ATTRIBUTE = "data-k2b-primary";
|
|
6
|
+
export declare const currentUiSource: () => Element | undefined;
|
|
7
|
+
/** A trigger owns the palette during dispatch; programmatic opens use focused UI. */
|
|
8
|
+
export declare const readUiScope: (source?: Element | null) => UiScope;
|
|
9
|
+
export declare const applyUiScope: (target: HTMLElement, scope: UiScope) => void;
|
|
10
|
+
export declare const inheritUiScope: (target: HTMLElement, source?: Element) => void;
|
|
11
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getK2bPortalRoot: (scope?: HTMLElement | null) => HTMLElement;
|
|
1
|
+
export declare const getK2bPortalRoot: (scope?: HTMLElement | null, trigger?: Element | null, doc?: Document) => HTMLElement;
|
|
@@ -21,6 +21,9 @@ declare const uiMessages: import("@k2b/stdlib").Catalog<{
|
|
|
21
21
|
loading: string;
|
|
22
22
|
noData: string;
|
|
23
23
|
noResults: string;
|
|
24
|
+
changeAdded: string;
|
|
25
|
+
changeRemoved: string;
|
|
26
|
+
changeSame: string;
|
|
24
27
|
nothingHere: string;
|
|
25
28
|
nothingToShow: string;
|
|
26
29
|
no: string;
|
|
@@ -35,6 +38,8 @@ declare const uiMessages: import("@k2b/stdlib").Catalog<{
|
|
|
35
38
|
retry: string;
|
|
36
39
|
tryAgain: string;
|
|
37
40
|
movedHintDismiss: string;
|
|
41
|
+
progressDone: string;
|
|
42
|
+
progressOpen: string;
|
|
38
43
|
reset: string;
|
|
39
44
|
required: string;
|
|
40
45
|
delete: string;
|
|
@@ -392,6 +392,15 @@ export type AppWorkspaceSidebarItemActionsProps = {
|
|
|
392
392
|
children: JSX.Element;
|
|
393
393
|
visibility?: AppWorkspaceSidebarAccessoryVisibility;
|
|
394
394
|
};
|
|
395
|
+
/**
|
|
396
|
+
* One action in a section header's `actions`. With a mouse or trackpad, header actions show on hover or focus
|
|
397
|
+
* (`"hover"`, the default, as for unwrapped actions); `"always"` keeps an entry point people must find, such as
|
|
398
|
+
* discovering more, shown at all times. Its box is reserved either way, so revealing moves nothing.
|
|
399
|
+
*/
|
|
400
|
+
export type AppWorkspaceSidebarSectionActionProps = {
|
|
401
|
+
children: JSX.Element;
|
|
402
|
+
visibility?: AppWorkspaceSidebarAccessoryVisibility;
|
|
403
|
+
};
|
|
395
404
|
export type AppWorkspaceNavTreeProps = {
|
|
396
405
|
children: JSX.Element;
|
|
397
406
|
ariaLabel: string;
|
|
@@ -486,6 +495,7 @@ type AppWorkspaceComponent = ((props: AppWorkspaceProps) => JSX.Element) & {
|
|
|
486
495
|
SidebarItemMeta: (props: AppWorkspaceSidebarItemMetaProps) => JSX.Element;
|
|
487
496
|
SidebarItemAction: (props: AppWorkspaceSidebarItemActionProps) => JSX.Element;
|
|
488
497
|
SidebarItemActions: (props: AppWorkspaceSidebarItemActionsProps) => JSX.Element;
|
|
498
|
+
SidebarSectionAction: (props: AppWorkspaceSidebarSectionActionProps) => JSX.Element;
|
|
489
499
|
SidebarItemStatus: (props: AppWorkspaceSidebarItemStatusProps) => JSX.Element;
|
|
490
500
|
NavTree: AppWorkspaceNavTreeComponent;
|
|
491
501
|
SidebarIconGrid: (props: AppWorkspaceSidebarIconGridProps) => JSX.Element;
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
2
|
import type { DialogTone } from "../feedback/dialog-tone";
|
|
3
|
-
|
|
4
|
-
* dialog element itself. Native `showModal()` focuses the first focusable
|
|
5
|
-
* descendant, which is the drag handle; iOS shows a ring for that programmatic
|
|
6
|
-
* focus, so the sheet moves it to the ring-less dialog before the next paint. */
|
|
7
|
-
declare const sheetInitialFocus: (dialog: HTMLDialogElement) => HTMLElement;
|
|
8
|
-
export declare const bottomSheetOptions: {
|
|
9
|
-
panelClassName: string;
|
|
10
|
-
contentClassName: string;
|
|
11
|
-
initialFocus: typeof sheetInitialFocus;
|
|
12
|
-
};
|
|
13
|
-
/** A sheet on phones and a centered dialog from 48rem up, for decisions and forms; menus keep
|
|
14
|
-
* `bottomSheetOptions`. The stylesheet picks the mode with the phone media query, so the first
|
|
15
|
-
* frame is already right and a rotation or resize switches it in place, without a remount. */
|
|
16
|
-
export declare const bottomSheetAdaptiveOptions: {
|
|
17
|
-
contentClassName: string;
|
|
18
|
-
initialFocus: typeof sheetInitialFocus;
|
|
19
|
-
panelClassName: string;
|
|
20
|
-
};
|
|
3
|
+
export { bottomSheetAdaptiveOptions, bottomSheetOptions } from "./bottom-sheet-options";
|
|
21
4
|
export type BottomSheetProps = {
|
|
22
5
|
children: JSX.Element;
|
|
23
6
|
/** Pass dialogCore's render context requestDismiss, never the completion callback. */
|
|
@@ -51,10 +51,35 @@ export type DiscussionItemProps = Omit<JSX.LiHTMLAttributes<HTMLLIElement>, "chi
|
|
|
51
51
|
actionVisibility?: "always" | "progressive";
|
|
52
52
|
class?: string;
|
|
53
53
|
};
|
|
54
|
+
export type DiscussionThreadProps = {
|
|
55
|
+
/** Accessible name of the thread, such as "Comments on line 3". */
|
|
56
|
+
label: string;
|
|
57
|
+
/** The entries, as `Discussion.Item`s. In a thread every entry is flush, with a small avatar, name and time in one line, and the text below. */
|
|
58
|
+
children?: JSX.Element;
|
|
59
|
+
/** Without it the thread is read only: no reply field and no writing. */
|
|
60
|
+
onSubmit?: (message: string) => boolean | void | Promise<boolean | void>;
|
|
61
|
+
/** The reply field's placeholder and both fields' name, such as "Reply …" or "Comment on line 5 …". */
|
|
62
|
+
placeholder: string;
|
|
63
|
+
/** A quiet line beside the buttons while writing, such as who will see the comment and when. */
|
|
64
|
+
hint?: JSX.Element;
|
|
65
|
+
/** Label of the button that posts, such as "Comment". */
|
|
66
|
+
submitLabel: string;
|
|
67
|
+
cancelLabel?: string;
|
|
68
|
+
/** Whether the writing field is open; omit to let the thread manage it. */
|
|
69
|
+
writing?: boolean;
|
|
70
|
+
onWritingChange?: (writing: boolean) => void;
|
|
71
|
+
/** Opens with the writing field, such as a new thread on a line. */
|
|
72
|
+
defaultWriting?: boolean;
|
|
73
|
+
/** Older entries exist: "Load earlier" above the first entry calls `onLoadMore`. */
|
|
74
|
+
hasMore?: boolean;
|
|
75
|
+
onLoadMore?: () => boolean | void | Promise<boolean | void>;
|
|
76
|
+
loadMoreLabel?: string;
|
|
77
|
+
};
|
|
54
78
|
type DiscussionComponent = ((props: DiscussionProps) => JSX.Element) & {
|
|
55
79
|
Composer: (props: DiscussionComposerProps) => JSX.Element;
|
|
56
80
|
List: (props: DiscussionListProps) => JSX.Element;
|
|
57
81
|
Item: (props: DiscussionItemProps) => JSX.Element;
|
|
82
|
+
Thread: (props: DiscussionThreadProps) => JSX.Element;
|
|
58
83
|
};
|
|
59
84
|
declare const Discussion: DiscussionComponent;
|
|
60
85
|
export default Discussion;
|
|
@@ -11,6 +11,12 @@ export type PanesItem = {
|
|
|
11
11
|
export type PanesProps = {
|
|
12
12
|
layout: PanesLayout;
|
|
13
13
|
onLayoutChange: (layout: PanesLayout) => void;
|
|
14
|
+
/**
|
|
15
|
+
* The person chose an item: a click, focus, or work in its pane. Below `PANES_NARROW_WIDTH` this is the only report,
|
|
16
|
+
* because the narrow row of tabs never changes the stored layout; an application that names the front item in its
|
|
17
|
+
* URL or keeps it across devices listens here.
|
|
18
|
+
*/
|
|
19
|
+
onActivate?: (itemId: string) => void;
|
|
14
20
|
items: readonly PanesItem[];
|
|
15
21
|
movable?: boolean;
|
|
16
22
|
resizable?: boolean;
|
|
@@ -5,6 +5,11 @@ export type AppWorkspaceSwitcherOption = {
|
|
|
5
5
|
label: string;
|
|
6
6
|
/** One secondary fact, such as a mailbox's address. */
|
|
7
7
|
description?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
|
|
10
|
+
* It shows only with a `description`, which stays the text that search and screen readers use.
|
|
11
|
+
*/
|
|
12
|
+
descriptionVisual?: () => JSX.Element;
|
|
8
13
|
/** Tabler icon class; without it the row takes the switcher's icon. */
|
|
9
14
|
icon?: string;
|
|
10
15
|
/** Tints the icon; without it the app accent does. */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Sheet = typeof import("./BottomSheet");
|
|
2
|
+
/** Loads `BottomSheet` in the background for a sheet that is likely to open soon; a failure waits for that open. */
|
|
3
|
+
export declare const preloadBottomSheet: () => void;
|
|
4
|
+
/**
|
|
5
|
+
* Opens a `BottomSheet` that a component shows only on some screens: at once when its code is loaded, otherwise as
|
|
6
|
+
* soon as it is. A wide screen loads it with its first such sheet.
|
|
7
|
+
*/
|
|
8
|
+
export declare const withBottomSheet: <T>(open: (module: Sheet) => Promise<T>) => Promise<T>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Initial focus goes to the first input of the top sheet, otherwise to the
|
|
2
|
+
* dialog element itself. Native `showModal()` focuses the first focusable
|
|
3
|
+
* descendant, which is the drag handle; iOS shows a ring for that programmatic
|
|
4
|
+
* focus, so the sheet moves it to the ring-less dialog before the next paint. */
|
|
5
|
+
export declare const sheetInitialFocus: (dialog: HTMLDialogElement) => HTMLElement;
|
|
6
|
+
export declare const bottomSheetOptions: {
|
|
7
|
+
panelClassName: string;
|
|
8
|
+
contentClassName: string;
|
|
9
|
+
initialFocus: typeof sheetInitialFocus;
|
|
10
|
+
};
|
|
11
|
+
/** A sheet on phones and a centered dialog from 48rem up, for decisions and forms; menus keep
|
|
12
|
+
* `bottomSheetOptions`. The stylesheet picks the mode with the phone media query, so the first
|
|
13
|
+
* frame is already right and a rotation or resize switches it in place, without a remount. */
|
|
14
|
+
export declare const bottomSheetAdaptiveOptions: {
|
|
15
|
+
contentClassName: string;
|
|
16
|
+
initialFocus: typeof sheetInitialFocus;
|
|
17
|
+
panelClassName: string;
|
|
18
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AnchoredPopover, type AnchoredPopoverProps } from "./AnchoredPopover";
|
|
2
2
|
export type { AppOverviewCardsProps, AppOverviewEmptyStateProps, AppOverviewPanelProps, AppOverviewProps, } from "./AppOverview";
|
|
3
3
|
export { default as AppOverview } from "./AppOverview";
|
|
4
|
-
export type { AppWorkspaceBottomDrawerHeight, AppWorkspaceBottomDrawerProps, AppWorkspaceContentProps, AppWorkspaceDetailProps, AppWorkspaceDetailWidth, AppWorkspaceHeadProps, AppWorkspaceLevelSwitcher, AppWorkspaceMainPaneProps, AppWorkspaceMainProps, AppWorkspaceNavTreeItemProps, AppWorkspaceNavTreeMove, AppWorkspaceNavTreeProps, AppWorkspaceProps, AppWorkspaceSidebarAccessoryVisibility, AppWorkspaceSidebarBodyProps, AppWorkspaceSidebarIconActionProps, AppWorkspaceSidebarIconActionTone, AppWorkspaceSidebarIconGridProps, AppWorkspaceSidebarItemActionProps, AppWorkspaceSidebarItemActionsProps, AppWorkspaceSidebarItemIconProps, AppWorkspaceSidebarItemLabelProps, AppWorkspaceSidebarItemMetaProps, AppWorkspaceSidebarItemProps, AppWorkspaceSidebarItemStatusProps, AppWorkspaceSidebarItemTone, AppWorkspaceSidebarProps, AppWorkspaceSidebarSectionProps, AppWorkspaceSidebarToggleProps, AppWorkspaceSidebarVisibility, AppWorkspaceWidthShare, } from "./AppWorkspace";
|
|
4
|
+
export type { AppWorkspaceBottomDrawerHeight, AppWorkspaceBottomDrawerProps, AppWorkspaceContentProps, AppWorkspaceDetailProps, AppWorkspaceDetailWidth, AppWorkspaceHeadProps, AppWorkspaceLevelSwitcher, AppWorkspaceMainPaneProps, AppWorkspaceMainProps, AppWorkspaceNavTreeItemProps, AppWorkspaceNavTreeMove, AppWorkspaceNavTreeProps, AppWorkspaceProps, AppWorkspaceSidebarAccessoryVisibility, AppWorkspaceSidebarBodyProps, AppWorkspaceSidebarIconActionProps, AppWorkspaceSidebarIconActionTone, AppWorkspaceSidebarIconGridProps, AppWorkspaceSidebarItemActionProps, AppWorkspaceSidebarItemActionsProps, AppWorkspaceSidebarItemIconProps, AppWorkspaceSidebarItemLabelProps, AppWorkspaceSidebarItemMetaProps, AppWorkspaceSidebarItemProps, AppWorkspaceSidebarItemStatusProps, AppWorkspaceSidebarItemTone, AppWorkspaceSidebarProps, AppWorkspaceSidebarSectionActionProps, AppWorkspaceSidebarSectionProps, AppWorkspaceSidebarToggleProps, AppWorkspaceSidebarVisibility, AppWorkspaceWidthShare, } from "./AppWorkspace";
|
|
5
5
|
export { appWorkspaceDetailElementId, default as AppWorkspace } from "./AppWorkspace";
|
|
6
6
|
export { AppWorkspaceSidebarItemStatus } from "./AppWorkspaceSidebarItemStatus";
|
|
7
7
|
export { watchAppHostWidth } from "./app-host-width";
|
|
@@ -9,8 +9,9 @@ export type { AppWorkspaceControllerOptions } from "./app-workspace-controller";
|
|
|
9
9
|
export { installAppWorkspaceController, parkWorkspaceDetailDrawers } from "./app-workspace-controller";
|
|
10
10
|
export type { AppWorkspaceLayoutState, AppWorkspaceResizeKind, } from "./app-workspace-state";
|
|
11
11
|
export { APP_WORKSPACE_DETAIL_DEFAULT, APP_WORKSPACE_DETAIL_MAX, APP_WORKSPACE_DETAIL_MIN, APP_WORKSPACE_DRAWER_DEFAULT, APP_WORKSPACE_DRAWER_MAX, APP_WORKSPACE_DRAWER_MIN, APP_WORKSPACE_MAIN_MIN, APP_WORKSPACE_MAIN_MIN_HEIGHT, APP_WORKSPACE_PANE_DEFAULT, APP_WORKSPACE_PANE_MAX, APP_WORKSPACE_PANE_MIN, APP_WORKSPACE_SIDEBAR_COLLAPSE_THRESHOLD, APP_WORKSPACE_SIDEBAR_COLLAPSED, APP_WORKSPACE_SIDEBAR_DEFAULT, APP_WORKSPACE_SIDEBAR_MAX, APP_WORKSPACE_SIDEBAR_MIN, appWorkspaceLayoutStyle, appWorkspacePanelVariable, appWorkspaceResizeLimits, normalizeAppWorkspaceLayoutState, parseAppWorkspaceLayoutState, resolveAppWorkspaceSidebarWidth, safeAppWorkspacePanelId, serializeAppWorkspaceLayoutState, shouldCollapseAppWorkspaceSidebar, } from "./app-workspace-state";
|
|
12
|
-
export { type BottomSheetProps,
|
|
12
|
+
export { type BottomSheetProps, default as BottomSheet } from "./BottomSheet";
|
|
13
13
|
export { type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps } from "./Breadcrumbs";
|
|
14
|
+
export { bottomSheetAdaptiveOptions, bottomSheetOptions } from "./bottom-sheet-options";
|
|
14
15
|
export type { DataPanelProps } from "./DataPanel";
|
|
15
16
|
export { DataPanel } from "./DataPanel";
|
|
16
17
|
export type { DetailPanelActionButtonProps, DetailPanelActionCheckbox, DetailPanelActionLinkProps, DetailPanelActionProps, DetailPanelActionSecondary, DetailPanelBodyProps, DetailPanelGroupProps, DetailPanelHeaderProps, DetailPanelProps, DetailPanelRowProps, DetailPanelSummaryProps, } from "./DetailPanel";
|
|
@@ -18,7 +19,7 @@ export { default as DetailPanel } from "./DetailPanel";
|
|
|
18
19
|
export type { DetailAccessEntry, DetailAccessProps, DetailLinkItem, DetailLinksProps, DetailPresencePerson, DetailPresenceProps, DetailPresenceState, DetailPropertiesProps, DetailProperty, DetailTag, DetailTagsProps, } from "./DetailSections";
|
|
19
20
|
export { DetailAccess, DetailLinks, DetailPresence, DetailPresenceSlot, DetailProperties, DetailTags } from "./DetailSections";
|
|
20
21
|
export { DETAILS_ICON, DetailsToggle, type DetailsToggleProps } from "./DetailsToggle";
|
|
21
|
-
export type { DiscussionComposerProps, DiscussionItemProps, DiscussionListProps, DiscussionProps } from "./Discussion";
|
|
22
|
+
export type { DiscussionComposerProps, DiscussionItemProps, DiscussionListProps, DiscussionProps, DiscussionThreadProps, } from "./Discussion";
|
|
22
23
|
export { default as Discussion } from "./Discussion";
|
|
23
24
|
export type { FloatingWindowClose, FloatingWindowProps, FloatingWindowState, OpenFloatingWindowOptions, } from "./FloatingWindow";
|
|
24
25
|
export { default as FloatingWindow, type FloatingWindowBounds, type FloatingWindowRect, fitFloatingWindowRect, openFloatingWindow, } from "./FloatingWindow";
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
export type SheetHandleOptions = {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The sheet the handle sits on, anchored at its bottom edge. It carries the current detent in `data-sheet-detent`.
|
|
4
|
+
* Its container clips with `overflow: clip`, so the part that slides below the edge never scrolls into view.
|
|
5
|
+
*/
|
|
3
6
|
sheet: HTMLElement;
|
|
4
7
|
/** The detents' names, lowest first. The stylesheet gives each `[data-sheet-detent="…"]` its height. */
|
|
5
8
|
detents: readonly string[];
|
|
6
9
|
/** The detent the stylesheet draws while the sheet has no `data-sheet-detent`, such as in the server's markup. */
|
|
7
10
|
initial: string;
|
|
8
|
-
/**
|
|
11
|
+
/** When a drag or a press sends the sheet to another detent, as it starts to glide, for example to rename the handle. */
|
|
9
12
|
onChange?: (detent: string) => void;
|
|
10
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Without it, a drag stops at the lowest detent; with it, a drag well below that detent slides the sheet out and
|
|
15
|
+
* then asks to close. When the sheet is still shown afterwards, as when the owner asks first, it returns.
|
|
16
|
+
*/
|
|
11
17
|
onDismiss?: () => void;
|
|
12
18
|
};
|
|
13
19
|
/**
|
|
14
20
|
* Lets a sheet's handle drag it between detents. The handle stays a button: a press, by pointer, Enter or Space,
|
|
15
|
-
* moves the sheet to the next detent up, and from the highest back to the lowest.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
21
|
+
* moves the sheet to the next detent up, and from the highest back to the lowest.
|
|
22
|
+
*
|
|
23
|
+
* The sheet moves by transform only, like `BottomSheet`. When a drag or a glide starts, its layout height is pinned
|
|
24
|
+
* at the highest detent and a transform shows the visible part; the content inside does not lay out again on every
|
|
25
|
+
* frame. A release glides to the detent nearest to where the pointer's speed would carry it; then the stylesheet's
|
|
26
|
+
* height for that detent takes over in one step that looks the same. Reduced motion makes every glide instant. The
|
|
27
|
+
* stylesheet owns every resting height, which keeps the server's first frame and a rotation correct without script;
|
|
28
|
+
* it must not transition `height`.
|
|
20
29
|
*/
|
|
21
30
|
export declare function attachSheetHandle(handle: HTMLElement, options: SheetHandleOptions): () => void;
|
|
@@ -4,3 +4,9 @@
|
|
|
4
4
|
* Memory uses the body's scroll-preserve key, or the page path, and position.
|
|
5
5
|
*/
|
|
6
6
|
export declare function rememberSidebarScroll(body: HTMLElement | null, fadeEdges: (body: HTMLElement) => string | undefined): () => void;
|
|
7
|
+
/**
|
|
8
|
+
* For sidebars that no inline script reached, such as those a page swap inserted: keeps each one's current item
|
|
9
|
+
* in view by moving only the sidebar, so a restored page scroll stays, and stores every connected sidebar's offset
|
|
10
|
+
* when the page is left. Returns the cleanup.
|
|
11
|
+
*/
|
|
12
|
+
export declare function followSidebarScroll(root: ParentNode, fadeEdges: (body: HTMLElement) => string | undefined): () => void;
|
|
@@ -1,20 +1,39 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `add` gains something, `change` alters it, `remove` takes it away, `same` stays as it is, `neutral` names a
|
|
4
|
+
* setting, `warning` has a consequence for others.
|
|
5
|
+
*/
|
|
6
|
+
export type ChangeTone = "add" | "change" | "remove" | "same" | "neutral" | "warning";
|
|
7
|
+
/** A short quiet word at the end of a line, such as "new", "dropped", or "needs approval". */
|
|
8
|
+
export type ChangeMark = {
|
|
9
|
+
label: string;
|
|
10
|
+
/** A Tabler icon class before the word. */
|
|
11
|
+
icon?: string;
|
|
12
|
+
/** `new` takes the action colour, `gone` an outline; `neutral`, the default, a quiet grey. */
|
|
13
|
+
tone?: "new" | "gone" | "neutral";
|
|
14
|
+
};
|
|
4
15
|
export type ChangeListItem = {
|
|
5
16
|
tone: ChangeTone;
|
|
6
|
-
/** A Tabler icon class; defaults to plus, arrows or minus by tone. */
|
|
17
|
+
/** A Tabler icon class; defaults to plus, arrows or minus by tone. With `marker="sign"` the sign stays. */
|
|
7
18
|
icon?: string;
|
|
8
19
|
content: JSX.Element;
|
|
9
20
|
/** One quiet line under the content, such as what the change means for others. */
|
|
10
21
|
detail?: JSX.Element;
|
|
22
|
+
/** Words at the end of the line, such as which change needs approval. */
|
|
23
|
+
marks?: readonly ChangeMark[];
|
|
11
24
|
};
|
|
12
25
|
export type ChangeListProps = {
|
|
13
26
|
items: readonly ChangeListItem[];
|
|
14
27
|
/** Names the list for assistive technology, such as "What changes". */
|
|
15
28
|
label: string;
|
|
29
|
+
/**
|
|
30
|
+
* `icon`, the default: a round icon chip per line, for pending edits beside a save action. `sign`: a bare sign on
|
|
31
|
+
* one text edge, `+` in the action colour for something new, `−` for something gone, `=` for what stays, for a
|
|
32
|
+
* comparison such as what a new version may do.
|
|
33
|
+
*/
|
|
34
|
+
marker?: "icon" | "sign";
|
|
16
35
|
class?: string;
|
|
17
36
|
};
|
|
18
|
-
/**
|
|
37
|
+
/** Changes, one line each, so a person can check them in one look: pending edits, or what a new version changes. */
|
|
19
38
|
export declare function ChangeList(props: ChangeListProps): JSX.Element;
|
|
20
39
|
export default ChangeList;
|
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `accent` = the app colour (it worked), `success` = it worked, in the success colour, `ai` = came from AI,
|
|
4
|
+
* `warning` = skipped or needs a look, `danger` = failed, `muted` = nothing to do, `running` = runs now.
|
|
5
|
+
*/
|
|
6
|
+
export type DotStripTone = "accent" | "success" | "warning" | "danger" | "ai" | "muted" | "running";
|
|
7
|
+
type DotStripBase = {
|
|
5
8
|
/** Outcomes in order, left to right. */
|
|
6
9
|
dots: readonly DotStripTone[];
|
|
7
|
-
/** Total slots. Slots after `dots` show as empty
|
|
10
|
+
/** Total slots. Slots after `dots` show as empty places, so a growing strip keeps its size. Defaults to `dots.length`. */
|
|
8
11
|
length?: number;
|
|
9
12
|
/** Shows every slot as a quiet placeholder, for "nothing checked yet". */
|
|
10
13
|
waiting?: boolean;
|
|
11
14
|
/** Index of the dot that belongs to the item shown next to the strip. */
|
|
12
15
|
selected?: number | null;
|
|
13
16
|
size?: "md" | "lg";
|
|
17
|
+
/**
|
|
18
|
+
* `dot`, the default: round marks whose shape follows the state, so colour is never the only sign. `bar`: upright
|
|
19
|
+
* bars, 5 × 22 px at `lg`, as for the last runs beside a time. `slot`: square places, as for the places of a runner.
|
|
20
|
+
*/
|
|
21
|
+
variant?: "dot" | "bar" | "slot";
|
|
14
22
|
/** Dots per row; more wrap into further rows of the same width. Defaults to one row. */
|
|
15
23
|
columns?: number;
|
|
16
24
|
/** Names the strip and its counts, for example "Last 50 mails: 17 matched, 6 skipped, 27 not". */
|
|
17
25
|
label: string;
|
|
18
26
|
class?: string;
|
|
19
27
|
};
|
|
20
|
-
|
|
28
|
+
export type DotStripProps = DotStripBase & ({
|
|
29
|
+
links?: undefined;
|
|
30
|
+
dotLabels?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
/**
|
|
33
|
+
* One link per dot, such as the run it stands for; a dot without a link stays a named mark. The strip is then a
|
|
34
|
+
* list with one tab stop: arrow keys, Home, and End move between the links.
|
|
35
|
+
*/
|
|
36
|
+
links: readonly (string | undefined)[];
|
|
37
|
+
/** One accessible name per dot, such as "Run at 14:01: failed". */
|
|
38
|
+
dotLabels: readonly string[];
|
|
39
|
+
});
|
|
40
|
+
/** A fixed-size row of outcome marks: the last runs, checks or mails at a glance, each optionally a link. */
|
|
21
41
|
export declare function DotStrip(props: DotStripProps): JSX.Element;
|
|
22
42
|
export default DotStrip;
|
|
@@ -20,6 +20,20 @@ export type LinkCardProps = {
|
|
|
20
20
|
* hover, no chevron. Put plain cards in `AppOverview.Cards surface="plain"`.
|
|
21
21
|
*/
|
|
22
22
|
surface?: "paper" | "plain";
|
|
23
|
+
/**
|
|
24
|
+
* The card as a small overview of one thing, as on "My apps & automations": `aside` stands top right beside the
|
|
25
|
+
* title, such as a strip of the last runs; `body` is a line under the head, such as what it did last; `footer` is
|
|
26
|
+
* the last line, `start` (a state with its sign) and `end` (a quiet time). Any of them stacks the card: head, body,
|
|
27
|
+
* and footer one below the other, the footer on the card's bottom edge, a 10 px radius, and no chevron. Its title and
|
|
28
|
+
* description wrap instead of ending in "…". The whole
|
|
29
|
+
* card stays one link, so these places hold text and marks, never links or buttons.
|
|
30
|
+
*/
|
|
31
|
+
aside?: JSX.Element;
|
|
32
|
+
body?: JSX.Element;
|
|
33
|
+
footer?: {
|
|
34
|
+
start?: JSX.Element;
|
|
35
|
+
end?: JSX.Element;
|
|
36
|
+
};
|
|
23
37
|
};
|
|
24
38
|
export declare function LinkCard(props: LinkCardProps): JSX.Element;
|
|
25
39
|
export default LinkCard;
|
|
@@ -35,9 +35,13 @@ export type StatCellProps = {
|
|
|
35
35
|
valueClass?: string;
|
|
36
36
|
/** An icon in a chip before the label, in `tone`. `"in"` and `"out"` are the money colours of `FlowAmount`. */
|
|
37
37
|
icon?: string;
|
|
38
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* The chip colour of `icon`. Defaults to zinc. In a `plain` grid, `amber` (a warning) and `red` (a problem) also
|
|
40
|
+
* colour the figure and its third line; say what is wrong there with `accent` (icon and word).
|
|
41
|
+
*/
|
|
39
42
|
tone?: StatCellTone | "in" | "out";
|
|
40
43
|
accent?: StatCellAccent;
|
|
44
|
+
/** The change against `compare`; beside the figure, and always on the third line in a `plain` grid. */
|
|
41
45
|
delta?: StatCellDelta;
|
|
42
46
|
/** Keep the figure and change on separate rows, including while loading. Defaults to beside the figure. */
|
|
43
47
|
deltaPlacement?: "below";
|
|
@@ -65,7 +69,8 @@ export type StatCellProps = {
|
|
|
65
69
|
};
|
|
66
70
|
/**
|
|
67
71
|
* One key figure as a framed tile: icon and label, the figure with its change, and a support line with the comparison
|
|
68
|
-
* and the trend. Each state (loading, error, stale, empty)
|
|
72
|
+
* and the trend. In a `plain` grid the same three rows stand without a frame. Each state (loading, error, stale, empty)
|
|
73
|
+
* keeps the tile's place and size.
|
|
69
74
|
*/
|
|
70
75
|
export declare function StatCell(props: StatCellProps): JSX.Element;
|
|
71
76
|
export default StatCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JSX } from "solid-js";
|
|
1
|
+
import { type Accessor, type JSX } from "solid-js";
|
|
2
2
|
export type StatGridSize = "lg" | "md" | "sm";
|
|
3
3
|
export type StatGridSurface = "white" | "muted";
|
|
4
4
|
export type StatGridColumns = 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -6,6 +6,8 @@ export type StatGridAction = {
|
|
|
6
6
|
label: string;
|
|
7
7
|
href: string;
|
|
8
8
|
};
|
|
9
|
+
/** `tiles` frames each figure; `plain` sets the figures in equal columns with a thin line between, for a page head. */
|
|
10
|
+
export type StatGridVariant = "tiles" | "plain";
|
|
9
11
|
export type StatGridProps = {
|
|
10
12
|
children: JSX.Element;
|
|
11
13
|
title?: string;
|
|
@@ -13,11 +15,21 @@ export type StatGridProps = {
|
|
|
13
15
|
/** Tiles per row on a wide container. Defaults to 4; at 600 px or less two share a row, and five or six take three up to 900 px. */
|
|
14
16
|
columns?: StatGridColumns;
|
|
15
17
|
size?: StatGridSize;
|
|
18
|
+
/** Applies to `tiles` only: a `plain` row has no surface. */
|
|
16
19
|
surface?: StatGridSurface;
|
|
20
|
+
/**
|
|
21
|
+
* `tiles` (default) frames each figure. `plain` drops frame, surface and shadow: equal columns with a 1 px line
|
|
22
|
+
* between them, two columns below a 34rem container. Every figure keeps three rows (label, figure, a reserved third
|
|
23
|
+
* line for `sub`, the change or the comparison), so all figures stand on one line.
|
|
24
|
+
*/
|
|
25
|
+
variant?: StatGridVariant;
|
|
17
26
|
class?: string;
|
|
18
27
|
};
|
|
19
28
|
export declare const useStatGridSize: () => StatGridSize;
|
|
20
|
-
export declare const useStatGridSurface: () => StatGridSurface
|
|
21
|
-
/**
|
|
29
|
+
export declare const useStatGridSurface: () => Accessor<StatGridSurface | "plain">;
|
|
30
|
+
/**
|
|
31
|
+
* A row of key figures, each a framed tile of its own or, with `variant="plain"`, flat figures in equal columns; the
|
|
32
|
+
* optional title and action sit above the row.
|
|
33
|
+
*/
|
|
22
34
|
export declare function StatGrid(props: StatGridProps): JSX.Element;
|
|
23
35
|
export default StatGrid;
|
|
@@ -35,7 +35,7 @@ export { Section } from "./Section";
|
|
|
35
35
|
export { createDelayedLoading, type DelayedLoadingOptions, Skeleton, type SkeletonProps } from "./Skeleton";
|
|
36
36
|
export type { StatCellAccent, StatCellCompare, StatCellDelta, StatCellProps, StatCellSize, StatCellTone } from "./StatCell";
|
|
37
37
|
export { StatCell } from "./StatCell";
|
|
38
|
-
export type { StatGridAction, StatGridColumns, StatGridProps, StatGridSize, StatGridSurface, } from "./StatGrid";
|
|
38
|
+
export type { StatGridAction, StatGridColumns, StatGridProps, StatGridSize, StatGridSurface, StatGridVariant, } from "./StatGrid";
|
|
39
39
|
export { StatGrid } from "./StatGrid";
|
|
40
40
|
export type { StatusBadgeProps, StatusTone } from "./StatusBadge";
|
|
41
41
|
export { StatusBadge } from "./StatusBadge";
|