@stll/ui 0.65.1 → 0.67.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/calendar/day-calendar.d.ts +8 -3
- package/dist/calendar/day-calendar.js +8 -11
- package/dist/calendar/day-calendar.logic.d.ts +0 -2
- package/dist/calendar/day-calendar.logic.js +1 -2
- package/dist/calendar/primitives.d.ts +1 -3
- package/dist/calendar/primitives.js +1 -2
- package/dist/calendar/resource-calendar.d.ts +0 -2
- package/dist/calendar/resource-calendar.js +1 -2
- package/dist/calendar/resource-calendar.logic.d.ts +1 -3
- package/dist/calendar/resource-calendar.logic.js +1 -2
- package/dist/components/accordion.d.ts +0 -2
- package/dist/components/accordion.js +1 -2
- package/dist/components/ai-label.d.ts +0 -2
- package/dist/components/ai-label.js +1 -2
- package/dist/components/alert-dialog.d.ts +0 -2
- package/dist/components/alert-dialog.js +2 -3
- package/dist/components/animated-count.d.ts +0 -2
- package/dist/components/animated-count.js +1 -2
- package/dist/components/animated-preview.css +152 -0
- package/dist/components/animated-preview.d.ts +75 -0
- package/dist/components/animated-preview.js +105 -0
- package/dist/components/application-rail.d.ts +1 -3
- package/dist/components/application-rail.js +2 -3
- package/dist/components/avatar.d.ts +0 -2
- package/dist/components/avatar.js +1 -2
- package/dist/components/badge.d.ts +0 -2
- package/dist/components/badge.js +1 -2
- package/dist/components/bidi-text.d.ts +0 -2
- package/dist/components/bidi-text.js +1 -2
- package/dist/components/brand-icons.d.ts +0 -2
- package/dist/components/brand-icons.js +1 -2
- package/dist/components/breadcrumb.d.ts +0 -2
- package/dist/components/breadcrumb.js +1 -2
- package/dist/components/button.d.ts +0 -2
- package/dist/components/button.js +37 -15
- package/dist/components/button.native-classes.d.ts +0 -2
- package/dist/components/button.native-classes.js +1 -2
- package/dist/components/button.native.d.ts +0 -2
- package/dist/components/button.native.js +1 -2
- package/dist/components/button.shared.d.ts +1 -3
- package/dist/components/button.shared.js +1 -2
- package/dist/components/checkbox.d.ts +0 -2
- package/dist/components/checkbox.js +3 -4
- package/dist/components/collapsible.d.ts +0 -2
- package/dist/components/collapsible.js +1 -2
- package/dist/components/color-picker.d.ts +12 -5
- package/dist/components/color-picker.js +8 -10
- package/dist/components/combobox.d.ts +0 -2
- package/dist/components/combobox.js +5 -6
- package/dist/components/command.d.ts +0 -2
- package/dist/components/command.js +4 -5
- package/dist/components/composer-tokens.d.ts +1 -3
- package/dist/components/composer-tokens.js +1 -2
- package/dist/components/composer.d.ts +0 -2
- package/dist/components/composer.js +2 -3
- package/dist/components/context-menu.d.ts +9 -2
- package/dist/components/context-menu.js +10 -4
- package/dist/components/copy-button.d.ts +0 -2
- package/dist/components/copy-button.js +1 -2
- package/dist/components/court-badge.d.ts +0 -2
- package/dist/components/court-badge.js +1 -2
- package/dist/components/court-filter.d.ts +0 -2
- package/dist/components/court-filter.js +3 -4
- package/dist/components/date-picker-popover.d.ts +0 -2
- package/dist/components/date-picker-popover.js +6 -70
- package/dist/components/date-picker-popover.logic.d.ts +1 -3
- package/dist/components/date-picker-popover.logic.js +1 -2
- package/dist/components/date-range-filter.d.ts +0 -2
- package/dist/components/date-range-filter.js +1 -2
- package/dist/components/destructive-action-confirmation.d.ts +0 -2
- package/dist/components/destructive-action-confirmation.js +2 -3
- package/dist/components/destructive-confirm-dialog.d.ts +0 -2
- package/dist/components/destructive-confirm-dialog.js +1 -2
- package/dist/components/details-grid.d.ts +13 -5
- package/dist/components/details-grid.js +69 -14
- package/dist/components/dialog-form-state.d.ts +1 -3
- package/dist/components/dialog-form-state.js +1 -2
- package/dist/components/dialog.d.ts +0 -2
- package/dist/components/dialog.js +4 -5
- package/dist/components/directional-icon.d.ts +0 -2
- package/dist/components/directional-icon.js +1 -2
- package/dist/components/document-identity-badge.d.ts +0 -2
- package/dist/components/document-identity-badge.js +2 -3
- package/dist/components/document-identity-badge.logic.d.ts +1 -3
- package/dist/components/document-identity-badge.logic.js +1 -2
- package/dist/components/document-mark.d.ts +9 -0
- package/dist/components/document-mark.js +29 -0
- package/dist/components/document-mark.native.d.ts +11 -0
- package/dist/components/document-mark.native.js +36 -0
- package/dist/components/document-mark.shared.d.ts +378 -0
- package/dist/components/document-mark.shared.js +756 -0
- package/dist/components/entity-actions.d.ts +34 -0
- package/dist/components/entity-actions.js +132 -0
- package/dist/components/field.d.ts +0 -2
- package/dist/components/field.js +1 -2
- package/dist/components/file-input.d.ts +0 -2
- package/dist/components/file-input.js +2 -3
- package/dist/components/form.d.ts +0 -2
- package/dist/components/form.js +1 -2
- package/dist/components/frame.d.ts +0 -2
- package/dist/components/frame.js +1 -2
- package/dist/components/hex-color-picker.d.ts +0 -2
- package/dist/components/hex-color-picker.js +2 -3
- package/dist/components/horizontal-scroller.d.ts +0 -2
- package/dist/components/horizontal-scroller.js +3 -4
- package/dist/components/identity-text.d.ts +0 -2
- package/dist/components/identity-text.js +2 -3
- package/dist/components/inline-drop-indicator.d.ts +1 -3
- package/dist/components/inline-drop-indicator.js +1 -2
- package/dist/components/inline-rename.d.ts +0 -2
- package/dist/components/inline-rename.js +2 -3
- package/dist/components/input-control.d.ts +1 -3
- package/dist/components/input-control.js +1 -2
- package/dist/components/input-group.d.ts +0 -2
- package/dist/components/input-group.js +4 -5
- package/dist/components/input-otp.d.ts +0 -2
- package/dist/components/input-otp.js +1 -2
- package/dist/components/input.d.ts +0 -2
- package/dist/components/input.js +3 -4
- package/dist/components/input.native.d.ts +0 -2
- package/dist/components/input.native.js +1 -2
- package/dist/components/input.shared.d.ts +1 -3
- package/dist/components/kbd.d.ts +58 -0
- package/dist/components/kbd.js +90 -0
- package/dist/components/label.d.ts +0 -2
- package/dist/components/label.js +1 -2
- package/dist/components/landing.d.ts +0 -2
- package/dist/components/landing.js +1 -2
- package/dist/components/list.d.ts +0 -2
- package/dist/components/list.js +1 -2
- package/dist/components/loader.d.ts +0 -2
- package/dist/components/loader.js +1 -2
- package/dist/components/loader.native.d.ts +0 -2
- package/dist/components/loader.native.js +1 -2
- package/dist/components/loader.shared.d.ts +1 -3
- package/dist/components/loader.shared.js +1 -2
- package/dist/components/matter-icon.d.ts +0 -2
- package/dist/components/matter-icon.js +2 -3
- package/dist/components/matter-icon.native.d.ts +0 -2
- package/dist/components/matter-icon.native.js +2 -3
- package/dist/components/matter-icon.shared.d.ts +1 -3
- package/dist/components/matter-icon.shared.js +1 -2
- package/dist/components/menu-section.d.ts +0 -2
- package/dist/components/menu-section.js +1 -2
- package/dist/components/menu.d.ts +18 -4
- package/dist/components/menu.js +29 -9
- package/dist/components/middle-truncate.d.ts +0 -2
- package/dist/components/middle-truncate.js +1 -2
- package/dist/components/middle-truncate.logic.d.ts +0 -2
- package/dist/components/middle-truncate.logic.js +1 -2
- package/dist/components/number-input.d.ts +0 -2
- package/dist/components/number-input.js +2 -3
- package/dist/components/outline-rail.d.ts +12 -3
- package/dist/components/outline-rail.js +64 -12
- package/dist/components/outline-rail.logic.d.ts +0 -2
- package/dist/components/outline-rail.logic.js +7 -3
- package/dist/components/pagination.d.ts +0 -2
- package/dist/components/pagination.js +1 -2
- package/dist/components/popover.d.ts +0 -2
- package/dist/components/popover.js +2 -3
- package/dist/components/preview-card.d.ts +0 -2
- package/dist/components/preview-card.js +1 -2
- package/dist/components/preview-pane.d.ts +0 -2
- package/dist/components/preview-pane.js +1 -2
- package/dist/components/prose.d.ts +0 -2
- package/dist/components/prose.js +1 -2
- package/dist/components/scroll-area.d.ts +0 -2
- package/dist/components/scroll-area.js +1 -2
- package/dist/components/scroll-to-top.d.ts +1 -3
- package/dist/components/scroll-to-top.js +1 -2
- package/dist/components/search-field.d.ts +0 -2
- package/dist/components/search-field.js +1 -2
- package/dist/components/secret-input.d.ts +0 -2
- package/dist/components/secret-input.js +1 -2
- package/dist/components/segmented-icon-toggle.d.ts +0 -2
- package/dist/components/segmented-icon-toggle.js +2 -3
- package/dist/components/select.d.ts +0 -2
- package/dist/components/select.js +4 -5
- package/dist/components/separator.d.ts +0 -2
- package/dist/components/separator.js +1 -2
- package/dist/components/separator.native.d.ts +1 -3
- package/dist/components/separator.native.js +1 -2
- package/dist/components/separator.shared.d.ts +1 -3
- package/dist/components/sheet.d.ts +0 -2
- package/dist/components/sheet.js +3 -4
- package/dist/components/sheet.native.d.ts +1 -3
- package/dist/components/sheet.native.js +2 -3
- package/dist/components/sheet.shared.d.ts +1 -3
- package/dist/components/sidebar.d.ts +0 -2
- package/dist/components/sidebar.js +5 -6
- package/dist/components/sidebar.logic.d.ts +1 -3
- package/dist/components/sidebar.logic.js +1 -2
- package/dist/components/skeleton.d.ts +0 -2
- package/dist/components/skeleton.js +1 -2
- package/dist/components/split-button.d.ts +0 -2
- package/dist/components/split-button.js +2 -3
- package/dist/components/status-mark.d.ts +0 -2
- package/dist/components/status-mark.js +1 -2
- package/dist/components/stella-mark.d.ts +1 -3
- package/dist/components/stella-mark.js +1 -2
- package/dist/components/stella-mark.native.d.ts +1 -3
- package/dist/components/stella-mark.native.js +1 -2
- package/dist/components/stella-mark.shared.d.ts +1 -3
- package/dist/components/stella-mark.shared.js +1 -2
- package/dist/components/stella-wordmark.d.ts +1 -3
- package/dist/components/stella-wordmark.js +1 -2
- package/dist/components/stella-wordmark.native.d.ts +1 -3
- package/dist/components/stella-wordmark.native.js +1 -2
- package/dist/components/stella-wordmark.shared.d.ts +1 -3
- package/dist/components/stella-wordmark.shared.js +1 -2
- package/dist/components/steps.d.ts +0 -2
- package/dist/components/steps.js +1 -2
- package/dist/components/swap-text.d.ts +0 -2
- package/dist/components/swap-text.js +1 -2
- package/dist/components/switch.d.ts +0 -2
- package/dist/components/switch.js +1 -2
- package/dist/components/switch.native.d.ts +0 -2
- package/dist/components/switch.native.js +1 -2
- package/dist/components/switch.shared.d.ts +1 -3
- package/dist/components/table-chart.d.ts +1 -3
- package/dist/components/table-chart.js +1 -2
- package/dist/components/table.d.ts +0 -2
- package/dist/components/table.js +1 -2
- package/dist/components/tabs.d.ts +0 -2
- package/dist/components/tabs.js +2 -3
- package/dist/components/text.d.ts +0 -2
- package/dist/components/text.js +1 -2
- package/dist/components/text.native.d.ts +0 -2
- package/dist/components/text.native.js +1 -2
- package/dist/components/text.shared.d.ts +1 -3
- package/dist/components/text.shared.js +1 -2
- package/dist/components/textarea.d.ts +11 -3
- package/dist/components/textarea.js +53 -15
- package/dist/components/textarea.native.d.ts +1 -3
- package/dist/components/textarea.native.js +1 -2
- package/dist/components/textarea.shared.d.ts +1 -3
- package/dist/components/time-field.d.ts +25 -0
- package/dist/components/time-field.js +108 -0
- package/dist/components/toast.d.ts +0 -2
- package/dist/components/toast.js +4 -5
- package/dist/components/toggle-group.d.ts +0 -2
- package/dist/components/toggle-group.js +1 -2
- package/dist/components/toggle.d.ts +0 -2
- package/dist/components/toggle.js +1 -2
- package/dist/components/toolbar-icon-action.d.ts +0 -2
- package/dist/components/toolbar-icon-action.js +1 -2
- package/dist/components/tooltip-trigger-helper.d.ts +0 -2
- package/dist/components/tooltip-trigger-helper.js +1 -2
- package/dist/components/tooltip.d.ts +7 -3
- package/dist/components/tooltip.js +10 -6
- package/dist/components/truncated-text.d.ts +0 -2
- package/dist/components/truncated-text.js +3 -4
- package/dist/components/view-toolbar.d.ts +0 -2
- package/dist/components/view-toolbar.js +1 -2
- package/dist/components/workspace-shell.d.ts +0 -2
- package/dist/components/workspace-shell.js +4 -5
- package/dist/css.d.ts +0 -1
- package/dist/data-table/schema.d.ts +1 -3
- package/dist/data-table/schema.js +1 -2
- package/dist/data-table/table.d.ts +0 -2
- package/dist/data-table/table.js +2 -3
- package/dist/hooks/use-contained-handler.d.ts +0 -2
- package/dist/hooks/use-contained-handler.js +1 -2
- package/dist/hooks/use-content-dir.d.ts +0 -2
- package/dist/hooks/use-content-dir.js +1 -2
- package/dist/hooks/use-latest.d.ts +1 -3
- package/dist/hooks/use-latest.js +1 -2
- package/dist/hooks/use-mobile.d.ts +1 -3
- package/dist/hooks/use-mobile.js +1 -2
- package/dist/hooks/use-prefers-reduced-motion.d.ts +6 -0
- package/dist/hooks/use-prefers-reduced-motion.js +17 -0
- package/dist/hooks/use-viewport-width.d.ts +1 -3
- package/dist/hooks/use-viewport-width.js +1 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.js +35 -34
- package/dist/inspector/chrome.d.ts +1 -3
- package/dist/inspector/chrome.js +2 -3
- package/dist/inspector/dock.d.ts +0 -2
- package/dist/inspector/dock.js +2 -3
- package/dist/inspector/entity-tab.d.ts +0 -2
- package/dist/inspector/entity-tab.js +3 -4
- package/dist/inspector/entity-tab.logic.d.ts +1 -3
- package/dist/inspector/entity-tab.logic.js +1 -2
- package/dist/inspector/facet-bar.d.ts +1 -3
- package/dist/inspector/facet-bar.js +5 -6
- package/dist/inspector/facet-bar.logic.d.ts +1 -3
- package/dist/inspector/facet-bar.logic.js +1 -2
- package/dist/inspector/index.js +2 -2
- package/dist/inspector/layout-tokens.d.ts +1 -3
- package/dist/inspector/layout-tokens.js +1 -2
- package/dist/inspector/pane-width.d.ts +0 -2
- package/dist/inspector/pane-width.js +1 -2
- package/dist/inspector/use-pane-width.d.ts +0 -2
- package/dist/inspector/use-pane-width.js +1 -2
- package/dist/kanban/band-peek.d.ts +1 -3
- package/dist/kanban/band-peek.js +1 -2
- package/dist/kanban/card-properties.d.ts +1 -3
- package/dist/kanban/card-properties.js +1 -2
- package/dist/kanban/card-shell.d.ts +1 -3
- package/dist/kanban/card-shell.js +2 -3
- package/dist/kanban/cell-action.d.ts +1 -3
- package/dist/kanban/cell-action.js +2 -3
- package/dist/kanban/column-band-header.d.ts +1 -3
- package/dist/kanban/column-band-header.js +2 -3
- package/dist/kanban/column-bands.d.ts +1 -3
- package/dist/kanban/column-bands.js +1 -2
- package/dist/kanban/column-header.d.ts +1 -3
- package/dist/kanban/column-header.js +1 -2
- package/dist/kanban/drag-interactions.d.ts +0 -2
- package/dist/kanban/drag-interactions.js +1 -2
- package/dist/kanban/grouping.d.ts +1 -3
- package/dist/kanban/grouping.js +1 -2
- package/dist/kanban/index.js +5 -5
- package/dist/kanban/layout-tokens.d.ts +1 -3
- package/dist/kanban/layout-tokens.js +1 -2
- package/dist/kanban/matrix.d.ts +1 -3
- package/dist/kanban/matrix.js +1 -2
- package/dist/kanban/sortable-edge.d.ts +0 -2
- package/dist/kanban/sortable-edge.js +1 -2
- package/dist/kanban/sortable-interactions.d.ts +0 -2
- package/dist/kanban/sortable-interactions.js +3 -4
- package/dist/kanban/sortable-interactions.logic.d.ts +0 -2
- package/dist/kanban/sortable-interactions.logic.js +1 -2
- package/dist/kanban/sticky-lane.d.ts +0 -2
- package/dist/kanban/sticky-lane.js +1 -2
- package/dist/kanban/subgroup-board.d.ts +0 -2
- package/dist/kanban/subgroup-board.js +5 -6
- package/dist/kanban/touch-identity.d.ts +0 -2
- package/dist/kanban/touch-identity.js +1 -2
- package/dist/kanban/virtual-cell.d.ts +1 -3
- package/dist/kanban/virtual-cell.js +3 -4
- package/dist/lib/button-disposition.d.ts +0 -2
- package/dist/lib/button-disposition.js +1 -2
- package/dist/lib/control-size.d.ts +0 -2
- package/dist/lib/control-size.js +1 -2
- package/dist/lib/field-trigger.d.ts +1 -3
- package/dist/lib/field-trigger.js +1 -2
- package/dist/lib/file-picker.d.ts +0 -2
- package/dist/lib/file-picker.js +1 -2
- package/dist/lib/initials.d.ts +1 -3
- package/dist/lib/initials.js +1 -2
- package/dist/lib/inline-reorder.d.ts +0 -2
- package/dist/lib/inline-reorder.js +1 -2
- package/dist/lib/matter-colors.d.ts +0 -2
- package/dist/lib/matter-colors.js +1 -2
- package/dist/lib/menu-row.d.ts +1 -3
- package/dist/lib/menu-row.js +1 -2
- package/dist/lib/native-context-menu.d.ts +24 -0
- package/dist/lib/native-context-menu.js +85 -0
- package/dist/lib/option-color.d.ts +1 -3
- package/dist/lib/option-color.js +1 -2
- package/dist/lib/overlay-layer.d.ts +1 -3
- package/dist/lib/overlay-layer.js +1 -2
- package/dist/lib/panel-inset.d.ts +1 -3
- package/dist/lib/panel-inset.js +1 -2
- package/dist/lib/positioner-sizing.d.ts +1 -3
- package/dist/lib/positioner-sizing.js +1 -2
- package/dist/lib/renders-nothing.d.ts +8 -0
- package/dist/lib/renders-nothing.js +14 -0
- package/dist/lib/safe-area.d.ts +1 -3
- package/dist/lib/safe-area.js +1 -2
- package/dist/lib/scroll-edge-fade.d.ts +1 -3
- package/dist/lib/scroll-edge-fade.js +1 -2
- package/dist/lib/slot.d.ts +0 -2
- package/dist/lib/slot.js +1 -2
- package/dist/lib/tab-order.d.ts +0 -2
- package/dist/lib/tab-order.js +1 -2
- package/dist/lib/tooltip-content.d.ts +1 -3
- package/dist/lib/tooltip-content.js +1 -2
- package/dist/lib/typed-character.d.ts +1 -3
- package/dist/lib/typed-character.js +1 -2
- package/dist/lib/utils.d.ts +1 -3
- package/dist/lib/utils.js +1 -2
- package/dist/lib/week.d.ts +1 -3
- package/dist/lib/week.js +1 -2
- package/dist/review/review-author-avatar.d.ts +0 -2
- package/dist/review/review-author-avatar.js +2 -3
- package/dist/review/review-comment-card.d.ts +0 -2
- package/dist/review/review-comment-card.js +3 -4
- package/dist/review/review-decision-actions.d.ts +0 -2
- package/dist/review/review-decision-actions.js +2 -3
- package/dist/review/review-diff-text.d.ts +0 -2
- package/dist/review/review-diff-text.js +1 -2
- package/dist/review/review-out-of-date-notice.d.ts +0 -2
- package/dist/review/review-out-of-date-notice.js +2 -3
- package/dist/review/review-severity-dot.d.ts +0 -2
- package/dist/review/review-severity-dot.js +1 -2
- package/dist/review/review-status-badge.d.ts +0 -2
- package/dist/review/review-status-badge.js +1 -2
- package/dist/review/review-word-diff.d.ts +1 -3
- package/dist/review/review-word-diff.js +1 -2
- package/dist/review/text-mark.d.ts +0 -2
- package/dist/review/text-mark.js +1 -2
- package/dist/styles/theme.css +50 -23
- package/dist/testing/browser-clock.d.ts +1 -3
- package/dist/testing/browser-clock.js +1 -2
- package/package.json +50 -10
package/dist/inspector/dock.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/inspector/dock.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Docked inspector pane: an in-flow spacer plus a fixed overlay.
|
|
5
4
|
*
|
|
@@ -61,5 +60,4 @@ type InspectorDockProps = {
|
|
|
61
60
|
width: number;
|
|
62
61
|
};
|
|
63
62
|
export declare const InspectorDock: ({ children, className, mount, onResetWidth, rail, resizeHandleLabel, resizeHandleProps, showPaneContent, width }: InspectorDockProps) => import("react").JSX.Element;
|
|
64
|
-
//#endregion
|
|
65
63
|
export {};
|
package/dist/inspector/dock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EllipsisIcon } from "../icons.js";
|
|
2
|
-
import { cn } from "../lib/utils.js";
|
|
3
2
|
import { SHELL_CHROME_LAYER_CLASS_NAME } from "../lib/overlay-layer.js";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
4
|
import "./pane-width.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/inspector/dock.tsx
|
|
7
7
|
const PANE_LAYER_CLASS_NAME = {
|
|
8
8
|
content: SHELL_CHROME_LAYER_CLASS_NAME,
|
|
9
9
|
"shell-end": "z-10"
|
|
@@ -51,5 +51,4 @@ const InspectorDock = ({ children, className, mount = "shell-end", onResetWidth,
|
|
|
51
51
|
})]
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
//#endregion
|
|
55
54
|
export { InspectorDock };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from "react";
|
|
2
|
-
//#region src/inspector/entity-tab.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* One rail tab for an open entity: a bordered `InspectorRailTab` cell
|
|
5
4
|
* showing the active tab's icon, with a tooltip carrying the full label.
|
|
@@ -63,5 +62,4 @@ export type InspectorEntityTabProps = {
|
|
|
63
62
|
* is `".gi"`, not `""`.
|
|
64
63
|
*/
|
|
65
64
|
export declare const entityTabGlyph: (name: string, length?: number) => string;
|
|
66
|
-
//#endregion
|
|
67
65
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.js";
|
|
2
1
|
import { Tooltip, TooltipContent as TooltipPopup, TooltipTrigger } from "../components/tooltip.js";
|
|
3
|
-
import { InspectorRailTab } from "./chrome.js";
|
|
4
2
|
import { containedEventHandler } from "../hooks/use-contained-handler.js";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
|
+
import { InspectorRailTab } from "./chrome.js";
|
|
5
5
|
import { resolveEntityTabActivateHandler, resolveEntityTabCloseHandler } from "./entity-tab.logic.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/inspector/entity-tab.tsx
|
|
8
8
|
/**
|
|
9
9
|
* One rail tab for an open entity: a bordered `InspectorRailTab` cell
|
|
10
10
|
* showing the active tab's icon, with a tooltip carrying the full label.
|
|
@@ -51,5 +51,4 @@ const entityTabGlyph = (name, length = 3) => {
|
|
|
51
51
|
const dot = rest.lastIndexOf(".");
|
|
52
52
|
return (leadingDot + (dot === -1 ? rest : rest.slice(0, dot))).slice(0, length);
|
|
53
53
|
};
|
|
54
|
-
//#endregion
|
|
55
54
|
export { InspectorEntityTab, entityTabGlyph };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/inspector/entity-tab.logic.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Pure activation/close-gesture policy for `InspectorEntityTab`, kept out
|
|
4
3
|
* of the component so it's unit-testable without a DOM: each function
|
|
@@ -23,5 +22,4 @@ export declare const resolveEntityTabCloseHandler: (button: number, onClose: (()
|
|
|
23
22
|
* callable handler to hand to `containedEventHandler` regardless of
|
|
24
23
|
* whether the host cares about selection.
|
|
25
24
|
*/
|
|
26
|
-
export declare const resolveEntityTabActivateHandler: (onSelect: (() => void) | undefined) => (() => void);
|
|
27
|
-
//#endregion
|
|
25
|
+
export declare const resolveEntityTabActivateHandler: (onSelect: (() => void) | undefined) => (() => void);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/inspector/entity-tab.logic.ts
|
|
2
2
|
/**
|
|
3
3
|
* Pure activation/close-gesture policy for `InspectorEntityTab`, kept out
|
|
4
4
|
* of the component so it's unit-testable without a DOM: each function
|
|
@@ -28,5 +28,4 @@ const resolveEntityTabCloseHandler = (button, onClose) => isEntityTabCloseGestur
|
|
|
28
28
|
*/
|
|
29
29
|
const resolveEntityTabActivateHandler = (onSelect) => onSelect ?? entityTabNoop;
|
|
30
30
|
const entityTabNoop = () => void 0;
|
|
31
|
-
//#endregion
|
|
32
31
|
export { isEntityTabCloseGesture, resolveEntityTabActivateHandler, resolveEntityTabCloseHandler };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/inspector/facet-bar.d.ts
|
|
2
1
|
export type InspectorFacetBarProps<F extends string> = {
|
|
3
2
|
facet: F;
|
|
4
3
|
facets: readonly F[];
|
|
@@ -41,5 +40,4 @@ export type InspectorFacetBarProps<F extends string> = {
|
|
|
41
40
|
* — except at the narrowest widths, where not even the active chip fits
|
|
42
41
|
* beside the trigger; see `resolveFacetOverflow`'s narrow-width floor.
|
|
43
42
|
*/
|
|
44
|
-
export declare const InspectorFacetBar: <F extends string>({ facet, facets, labels, disabledFacets, pulseSeq, activeBadge, overflowMenuLabel, onChange }: InspectorFacetBarProps<F>) => import("react").JSX.Element;
|
|
45
|
-
//#endregion
|
|
43
|
+
export declare const InspectorFacetBar: <F extends string>({ facet, facets, labels, disabledFacets, pulseSeq, activeBadge, overflowMenuLabel, onChange }: InspectorFacetBarProps<F>) => import("react").JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "../icons.js";
|
|
2
|
-
import { cn } from "../lib/utils.js";
|
|
3
|
-
import { TOOLBAR_ROW_HEIGHT } from "./layout-tokens.js";
|
|
4
|
-
import { Tooltip, TooltipContent as TooltipPopup, TooltipTrigger } from "../components/tooltip.js";
|
|
5
1
|
import { Button } from "../components/button.js";
|
|
6
2
|
import { DropdownMenu as Menu, DropdownMenuContent as MenuPopup, DropdownMenuItem as MenuItem, DropdownMenuTrigger as MenuTrigger } from "../components/menu.js";
|
|
3
|
+
import { Tooltip, TooltipContent as TooltipPopup, TooltipTrigger } from "../components/tooltip.js";
|
|
4
|
+
import { ChevronDownIcon } from "../icons.js";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
7
6
|
import { resolveFacetOverflow } from "./facet-bar.logic.js";
|
|
7
|
+
import { TOOLBAR_ROW_HEIGHT } from "./layout-tokens.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
10
|
-
|
|
10
|
+
// src/inspector/facet-bar.tsx
|
|
11
11
|
/**
|
|
12
12
|
* Inspector subtab row: a single line of pill chips at toolbar-row
|
|
13
13
|
* height. Presentational and facet-agnostic — every inspector tab
|
|
@@ -176,5 +176,4 @@ const FacetChip = ({ label, value, isActive, disabled, activeBadge, onSelect })
|
|
|
176
176
|
}),
|
|
177
177
|
children: label
|
|
178
178
|
}), /* @__PURE__ */ jsx(TooltipPopup, { children: isActive && activeBadge !== void 0 ? `${label} · ${activeBadge}` : label })] });
|
|
179
|
-
//#endregion
|
|
180
179
|
export { InspectorFacetBar };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/inspector/facet-bar.logic.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Pure overflow policy for `InspectorFacetBar`: given the row's available
|
|
4
3
|
* width and each chip's natural (measured) width, decides how many chips
|
|
@@ -46,5 +45,4 @@ export type FacetOverflowPolicy = {
|
|
|
46
45
|
* active one, still reaches through the overflow menu, and the trigger
|
|
47
46
|
* itself always stays on screen.
|
|
48
47
|
*/
|
|
49
|
-
export declare const resolveFacetOverflow: ({ availableWidth, chipWidths, activeIndex, triggerWidth, gap }: FacetOverflowInput) => FacetOverflowPolicy;
|
|
50
|
-
//#endregion
|
|
48
|
+
export declare const resolveFacetOverflow: ({ availableWidth, chipWidths, activeIndex, triggerWidth, gap }: FacetOverflowInput) => FacetOverflowPolicy;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/inspector/facet-bar.logic.ts
|
|
2
2
|
const sumWithGaps = (widths, gap) => widths.reduce((sum, width, index) => sum + width + (index > 0 ? gap : 0), 0);
|
|
3
3
|
/**
|
|
4
4
|
* Decides the facet row's visible/overflow split.
|
|
@@ -49,5 +49,4 @@ const resolveFacetOverflow = ({ availableWidth, chipWidths, activeIndex, trigger
|
|
|
49
49
|
showOverflowTrigger: true
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
52
|
export { resolveFacetOverflow };
|
package/dist/inspector/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PROPERTY_ROW_GRID, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX } from "./layout-tokens.js";
|
|
2
1
|
import { Inspector, InspectorActions, InspectorContent, InspectorDescription, InspectorEmptyRow, InspectorHeader, InspectorHeaderText, InspectorProperty, InspectorPropertyLabel, InspectorPropertyList, InspectorPropertyValue, InspectorRail, InspectorRailCell, InspectorRailContent, InspectorRailFooter, InspectorRailIconButton, InspectorRailTab, InspectorSection, InspectorSectionTitle, InspectorTitle } from "./chrome.js";
|
|
3
|
-
import { INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, shouldForceSidebarCollapsed } from "./pane-width.js";
|
|
4
2
|
import { InspectorDock } from "./dock.js";
|
|
5
3
|
import { InspectorEntityTab, entityTabGlyph } from "./entity-tab.js";
|
|
6
4
|
import { InspectorFacetBar } from "./facet-bar.js";
|
|
5
|
+
import { PROPERTY_ROW_GRID, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX } from "./layout-tokens.js";
|
|
6
|
+
import { INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, shouldForceSidebarCollapsed } from "./pane-width.js";
|
|
7
7
|
import { INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, resolveDragWidth, resolveKeyboardWidth, useInspectorPaneWidth } from "./use-pane-width.js";
|
|
8
8
|
export { INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, Inspector, InspectorActions, InspectorContent, InspectorDescription, InspectorDock, InspectorEmptyRow, InspectorEntityTab, InspectorFacetBar, InspectorHeader, InspectorHeaderText, InspectorProperty, InspectorPropertyLabel, InspectorPropertyList, InspectorPropertyValue, InspectorRail, InspectorRailCell, InspectorRailContent, InspectorRailFooter, InspectorRailIconButton, InspectorRailTab, InspectorSection, InspectorSectionTitle, InspectorTitle, PROPERTY_ROW_GRID, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX, entityTabGlyph, resolveDragWidth, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, resolveKeyboardWidth, shouldForceSidebarCollapsed, useInspectorPaneWidth };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/inspector/layout-tokens.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Layout constants the inspector chrome is built from.
|
|
4
3
|
*
|
|
@@ -27,5 +26,4 @@ export declare const SIDE_RAIL_CONTAINER_CLASS: "bg-sidebar flex shrink-0 flex-c
|
|
|
27
26
|
export declare const SIDE_RAIL_ICON_BUTTON_SIZE: "size-11";
|
|
28
27
|
export declare const SIDE_RAIL_TAB_ICON_SIZE: "size-3.5";
|
|
29
28
|
/** Two-column grid the key/value rows share. */
|
|
30
|
-
export declare const PROPERTY_ROW_GRID: "grid-cols-[8rem_minmax(0,1fr)]";
|
|
31
|
-
//#endregion
|
|
29
|
+
export declare const PROPERTY_ROW_GRID: "grid-cols-[8rem_minmax(0,1fr)]";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/inspector/layout-tokens.ts
|
|
2
2
|
/**
|
|
3
3
|
* Layout constants the inspector chrome is built from.
|
|
4
4
|
*
|
|
@@ -28,5 +28,4 @@ const SIDE_RAIL_ICON_BUTTON_SIZE = "size-11";
|
|
|
28
28
|
const SIDE_RAIL_TAB_ICON_SIZE = "size-3.5";
|
|
29
29
|
/** Two-column grid the key/value rows share. */
|
|
30
30
|
const PROPERTY_ROW_GRID = "grid-cols-[8rem_minmax(0,1fr)]";
|
|
31
|
-
//#endregion
|
|
32
31
|
export { PROPERTY_ROW_GRID, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/inspector/pane-width.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Width arithmetic for a docked inspector pane.
|
|
4
3
|
*
|
|
@@ -84,5 +83,4 @@ export declare const resolveInspectorDockWidth: ({ paneWidth, showPaneContent }:
|
|
|
84
83
|
paneWidth: number;
|
|
85
84
|
showPaneContent: boolean;
|
|
86
85
|
}) => number;
|
|
87
|
-
//#endregion
|
|
88
86
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/inspector/pane-width.ts
|
|
2
2
|
/**
|
|
3
3
|
* Width arithmetic for a docked inspector pane.
|
|
4
4
|
*
|
|
@@ -74,5 +74,4 @@ const resolveInspectorPaneWidth = ({ desiredWidth, sidebarWidth, viewportWidth }
|
|
|
74
74
|
* shown, the bare rail while it is collapsed or minimized.
|
|
75
75
|
*/
|
|
76
76
|
const resolveInspectorDockWidth = ({ paneWidth, showPaneContent }) => showPaneContent ? paneWidth : 48;
|
|
77
|
-
//#endregion
|
|
78
77
|
export { INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, clampInspectorPaneWidth, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, shouldForceSidebarCollapsed };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KeyboardEvent, PointerEvent } from "react";
|
|
2
|
-
//#region src/inspector/use-pane-width.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Width the drag produces for a pane docked to the inline-end edge.
|
|
5
4
|
*
|
|
@@ -83,5 +82,4 @@ type UseInspectorPaneWidthResult = {
|
|
|
83
82
|
* pane returns to it once the room comes back.
|
|
84
83
|
*/
|
|
85
84
|
export declare const useInspectorPaneWidth: ({ sidebarWidth, persistence, viewportWidth }: UseInspectorPaneWidthOptions) => UseInspectorPaneWidthResult;
|
|
86
|
-
//#endregion
|
|
87
85
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INSPECTOR_PANE_MAX_WIDTH, clampInspectorPaneWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth } from "./pane-width.js";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/inspector/use-pane-width.ts
|
|
4
4
|
/**
|
|
5
5
|
* Width the drag produces for a pane docked to the inline-end edge.
|
|
6
6
|
*
|
|
@@ -130,5 +130,4 @@ const useInspectorPaneWidth = ({ sidebarWidth, persistence, viewportWidth }) =>
|
|
|
130
130
|
width
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
//#endregion
|
|
134
133
|
export { INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, resolveDragWidth, resolveKeyboardWidth, useInspectorPaneWidth };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/kanban/band-peek.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The peek a collapsed band opens while a dragged card rests on its folded
|
|
4
3
|
* slot, as a state machine with an injectable scheduler so its timing rules
|
|
@@ -54,5 +53,4 @@ export type BandPeekController = {
|
|
|
54
53
|
/** Ends any pending timer, for unmount. */
|
|
55
54
|
dispose: () => void;
|
|
56
55
|
};
|
|
57
|
-
export declare const createBandPeekController: ({ onChange, delayMs, lingerMs, schedule }: BandPeekControllerOptions) => BandPeekController;
|
|
58
|
-
//#endregion
|
|
56
|
+
export declare const createBandPeekController: ({ onChange, delayMs, lingerMs, schedule }: BandPeekControllerOptions) => BandPeekController;
|
package/dist/kanban/band-peek.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kanban/band-peek.ts
|
|
2
2
|
/**
|
|
3
3
|
* The peek a collapsed band opens while a dragged card rests on its folded
|
|
4
4
|
* slot, as a state machine with an injectable scheduler so its timing rules
|
|
@@ -99,5 +99,4 @@ const createBandPeekController = ({ onChange, delayMs = 400, lingerMs = 150, sch
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
//#endregion
|
|
103
102
|
export { KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS, createBandPeekController };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/kanban/card-properties.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Which properties a kanban card renders as values.
|
|
4
3
|
*
|
|
@@ -22,5 +21,4 @@ export type KanbanCardFieldSelection = {
|
|
|
22
21
|
* The visible field ids a card renders as property values, in view order and
|
|
23
22
|
* without duplicates.
|
|
24
23
|
*/
|
|
25
|
-
export declare const selectKanbanCardFieldIds: (visibleFieldIds: readonly string[], { reservedFieldIds, isRenderable }: KanbanCardFieldSelection) => string[];
|
|
26
|
-
//#endregion
|
|
24
|
+
export declare const selectKanbanCardFieldIds: (visibleFieldIds: readonly string[], { reservedFieldIds, isRenderable }: KanbanCardFieldSelection) => string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kanban/card-properties.ts
|
|
2
2
|
/**
|
|
3
3
|
* The visible field ids a card renders as property values, in view order and
|
|
4
4
|
* without duplicates.
|
|
@@ -15,5 +15,4 @@ const selectKanbanCardFieldIds = (visibleFieldIds, { reservedFieldIds, isRendera
|
|
|
15
15
|
}
|
|
16
16
|
return selected;
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { selectKanbanCardFieldIds };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from "react";
|
|
2
|
-
//#region src/kanban/card-shell.d.ts
|
|
3
2
|
export type KanbanCardSelectionModifiers = {
|
|
4
3
|
/** Cmd on macOS, Ctrl elsewhere. */
|
|
5
4
|
meta: boolean;
|
|
@@ -81,5 +80,4 @@ export type KanbanCardShellProps = {
|
|
|
81
80
|
* Nothing here clips its overflow: a pinned identity row stops sticking the
|
|
82
81
|
* moment anything between it and the scroll container clips.
|
|
83
82
|
*/
|
|
84
|
-
export declare const KanbanCardShell: ({ children, appearance, actions, actionsVisibility, stickyHeader, active, selected, onOpen, onSelectionClick, bodyRef, dragRef, className }: KanbanCardShellProps) => import("react").JSX.Element;
|
|
85
|
-
//#endregion
|
|
83
|
+
export declare const KanbanCardShell: ({ children, appearance, actions, actionsVisibility, stickyHeader, active, selected, onOpen, onSelectionClick, bodyRef, dragRef, className }: KanbanCardShellProps) => import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.js";
|
|
2
1
|
import { containedEventHandler } from "../hooks/use-contained-handler.js";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { KANBAN_CARD_STICKY_TOP_CLASS } from "./sticky-lane.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/kanban/card-shell.tsx
|
|
6
6
|
/**
|
|
7
7
|
* The card chrome: border, hover lift, active ring, drag wrapper, and the
|
|
8
8
|
* keyboard contract for a card that opens something.
|
|
@@ -135,5 +135,4 @@ const STICKY_HEADER_CLASS = "bg-background bg-[linear-gradient(var(--color-card)
|
|
|
135
135
|
* the pair stays in one class string.
|
|
136
136
|
*/
|
|
137
137
|
const HOVER_ACTIONS_CLASS = "absolute end-1.5 top-1.5 z-10 flex items-center gap-0.5 opacity-0 pointer-events-none transition-opacity group-hover/card:pointer-events-auto group-hover/card:opacity-100 group-data-[active=true]/card:pointer-events-auto group-data-[active=true]/card:opacity-100 focus-within:pointer-events-auto focus-within:opacity-100 has-[[aria-expanded=true]]:pointer-events-auto has-[[aria-expanded=true]]:opacity-100 motion-reduce:transition-none";
|
|
138
|
-
//#endregion
|
|
139
138
|
export { KanbanCardShell };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Button } from "../components/button.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
//#region src/kanban/cell-action.d.ts
|
|
4
3
|
export type KanbanCellActionProps = Omit<ComponentProps<typeof Button>, "variant">;
|
|
5
4
|
/**
|
|
6
5
|
* The quiet action at the end of a cell: a full-width row that adds a card to
|
|
@@ -18,5 +17,4 @@ export type KanbanCellActionProps = Omit<ComponentProps<typeof Button>, "variant
|
|
|
18
17
|
* since the button's own size drops a step at `sm` and the row has to hold the
|
|
19
18
|
* board's chrome rhythm at every width.
|
|
20
19
|
*/
|
|
21
|
-
export declare const KanbanCellAction: ({ children, className, ...props }: KanbanCellActionProps) => import("react").JSX.Element;
|
|
22
|
-
//#endregion
|
|
20
|
+
export declare const KanbanCellAction: ({ children, className, ...props }: KanbanCellActionProps) => import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Button } from "../components/button.js";
|
|
1
2
|
import { PlusIcon } from "../icons.js";
|
|
2
3
|
import { cn } from "../lib/utils.js";
|
|
3
|
-
import { Button } from "../components/button.js";
|
|
4
4
|
import "./layout-tokens.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/kanban/cell-action.tsx
|
|
7
7
|
/**
|
|
8
8
|
* The quiet action at the end of a cell: a full-width row that adds a card to
|
|
9
9
|
* that column and lane.
|
|
@@ -27,5 +27,4 @@ const KanbanCellAction = ({ children, className, ...props }) => /* @__PURE__ */
|
|
|
27
27
|
variant: "ghost",
|
|
28
28
|
children: [/* @__PURE__ */ jsx(PlusIcon, { className: "size-3.5" }), children]
|
|
29
29
|
});
|
|
30
|
-
//#endregion
|
|
31
30
|
export { KanbanCellAction };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/kanban/column-band-header.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* How a band toggle was activated. A pointer activation leaves the pointer
|
|
5
4
|
* over whatever replaces the caption (the folded slot), which matters to the
|
|
@@ -39,5 +38,4 @@ export type KanbanColumnBandHeaderProps = {
|
|
|
39
38
|
* Folded, only the toggle remains in this line; the band's name moves down
|
|
40
39
|
* into the narrow column body, where the height is already there.
|
|
41
40
|
*/
|
|
42
|
-
export declare const KanbanColumnBandHeader: ({ title, swatch, meta, collapsed, compact, toggleLabel, onCollapsedChange, actions }: KanbanColumnBandHeaderProps) => import("react").JSX.Element;
|
|
43
|
-
//#endregion
|
|
41
|
+
export declare const KanbanColumnBandHeader: ({ title, swatch, meta, collapsed, compact, toggleLabel, onCollapsedChange, actions }: KanbanColumnBandHeaderProps) => import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { DirectionalIcon } from "../components/directional-icon.js";
|
|
1
2
|
import { ChevronDownIcon } from "../icons.js";
|
|
2
3
|
import { cn } from "../lib/utils.js";
|
|
3
|
-
import { DirectionalIcon } from "../components/directional-icon.js";
|
|
4
4
|
import { KANBAN_CHROME_TOGGLE_COARSE_TARGET_CLASS } from "./layout-tokens.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/kanban/column-band-header.tsx
|
|
7
7
|
/**
|
|
8
8
|
* The band line above a run of columns: one `KANBAN_BAND_CAPTION_ROW_HEIGHT`
|
|
9
9
|
* row of toggle, swatch, name, and count.
|
|
@@ -43,5 +43,4 @@ const KanbanColumnBandHeader = ({ title, swatch, meta, collapsed, compact = coll
|
|
|
43
43
|
actions
|
|
44
44
|
] })]
|
|
45
45
|
});
|
|
46
|
-
//#endregion
|
|
47
46
|
export { KanbanColumnBandHeader };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { KanbanBoardColumn } from "./matrix.js";
|
|
2
2
|
import { KanbanColumnBand } from "./grouping.js";
|
|
3
|
-
//#region src/kanban/column-bands.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Column bands: named runs of adjacent columns the board shows under one
|
|
6
5
|
* header and can collapse as a unit.
|
|
@@ -36,5 +35,4 @@ export type KanbanColumnBandSpan = {
|
|
|
36
35
|
*/
|
|
37
36
|
export declare const resolveKanbanColumnBands: (columns: readonly KanbanBoardColumn[]) => KanbanColumnBandSpan[];
|
|
38
37
|
/** Whether any presented column carries band metadata. */
|
|
39
|
-
export declare const hasKanbanColumnBands: (columns: readonly KanbanBoardColumn[]) => boolean;
|
|
40
|
-
//#endregion
|
|
38
|
+
export declare const hasKanbanColumnBands: (columns: readonly KanbanBoardColumn[]) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getKanbanBoardColumnIdentity } from "./matrix.js";
|
|
2
2
|
import { panic } from "better-result";
|
|
3
|
-
|
|
3
|
+
// src/kanban/column-bands.ts
|
|
4
4
|
/**
|
|
5
5
|
* Column bands: named runs of adjacent columns the board shows under one
|
|
6
6
|
* header and can collapse as a unit.
|
|
@@ -48,5 +48,4 @@ const resolveKanbanColumnBands = (columns) => {
|
|
|
48
48
|
};
|
|
49
49
|
/** Whether any presented column carries band metadata. */
|
|
50
50
|
const hasKanbanColumnBands = (columns) => columns.some((column) => bandOf(column) !== null);
|
|
51
|
-
//#endregion
|
|
52
51
|
export { KANBAN_COLLAPSED_BAND_WIDTH_CLASS, KANBAN_COLLAPSED_BAND_WIDTH_PX, KANBAN_COLUMN_GAP_PX, KANBAN_COLUMN_WIDTH_CLASS, KANBAN_COLUMN_WIDTH_PX, hasKanbanColumnBands, resolveKanbanColumnBands };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/kanban/column-header.d.ts
|
|
3
2
|
export type KanbanColumnHeaderProps = {
|
|
4
3
|
/** Colour swatch, or the control that changes it. */
|
|
5
4
|
swatch?: ReactNode;
|
|
@@ -25,5 +24,4 @@ export type KanbanColumnHeaderProps = {
|
|
|
25
24
|
* lines up with the lane rows under it. The title clips instead of wrapping
|
|
26
25
|
* so a long name can never grow the row past that height.
|
|
27
26
|
*/
|
|
28
|
-
export declare const KanbanColumnHeader: ({ swatch, title, meta, calculation, dragHandle, actions, className }: KanbanColumnHeaderProps) => import("react").JSX.Element;
|
|
29
|
-
//#endregion
|
|
27
|
+
export declare const KanbanColumnHeader: ({ swatch, title, meta, calculation, dragHandle, actions, className }: KanbanColumnHeaderProps) => import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.js";
|
|
2
2
|
import "./layout-tokens.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/kanban/column-header.tsx
|
|
5
5
|
/**
|
|
6
6
|
* The column header row: one rhythm for the swatch, the name, the count, the
|
|
7
7
|
* calculation, and the column's controls, so every board's header lines up.
|
|
@@ -34,5 +34,4 @@ const KanbanColumnHeader = ({ swatch, title, meta, calculation, dragHandle, acti
|
|
|
34
34
|
actions
|
|
35
35
|
]
|
|
36
36
|
});
|
|
37
|
-
//#endregion
|
|
38
37
|
export { KanbanColumnHeader };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { draggable } from "@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter";
|
|
2
|
-
//#region src/kanban/drag-interactions.d.ts
|
|
3
2
|
type AtlaskitDraggableOptions = Parameters<typeof draggable>[0];
|
|
4
3
|
/**
|
|
5
4
|
* Marks a card drag on the native `DataTransfer` so the board's native
|
|
@@ -52,5 +51,4 @@ export type RegisterKanbanBoardAutoScrollOptions = {
|
|
|
52
51
|
};
|
|
53
52
|
/** Register horizontal auto-scroll at the board's overflow boundary. */
|
|
54
53
|
export declare const registerKanbanBoardAutoScroll: ({ element, sources }: RegisterKanbanBoardAutoScrollOptions) => (() => void);
|
|
55
|
-
//#endregion
|
|
56
54
|
export {};
|
|
@@ -5,7 +5,7 @@ import { draggable } from "@atlaskit/pragmatic-drag-and-drop/adapter/element-ada
|
|
|
5
5
|
import { centerUnderPointer } from "@atlaskit/pragmatic-drag-and-drop/utils/center-under-pointer";
|
|
6
6
|
import { combine } from "@atlaskit/pragmatic-drag-and-drop/utils/combine";
|
|
7
7
|
import { setCustomNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview";
|
|
8
|
-
|
|
8
|
+
// src/kanban/drag-interactions.ts
|
|
9
9
|
/**
|
|
10
10
|
* Marks a card drag on the native `DataTransfer` so the board's native
|
|
11
11
|
* `dragover`/`dragenter`/`dragleave` listeners (which also see reorders,
|
|
@@ -70,5 +70,4 @@ const registerKanbanBoardAutoScroll = ({ element, sources }) => {
|
|
|
70
70
|
getAllowedAxis: () => "horizontal"
|
|
71
71
|
}));
|
|
72
72
|
};
|
|
73
|
-
//#endregion
|
|
74
73
|
export { KANBAN_BOARD_AUTO_SCROLL_SOURCES, KANBAN_CARD_DRAG_MIME, registerKanbanBoardAutoScroll, registerKanbanCardDrag };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OptionColor } from "../lib/option-color.js";
|
|
2
|
-
//#region src/kanban/grouping.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The band a column belongs to: a named run of adjacent columns the board
|
|
5
4
|
* shows under one header and can collapse as a unit. A status property's
|
|
@@ -93,5 +92,4 @@ export declare const selectKanbanRows: <TRow, TProperty, TGroupId extends string
|
|
|
93
92
|
/** The static column options for a grouping, excluding uncategorized. */
|
|
94
93
|
export declare const resolveKanbanGroupOptions: <TRow, TProperty, TGroupId extends string = string>(grouping: KanbanGrouping<TRow, TProperty, TGroupId>) => readonly KanbanGroupOption[];
|
|
95
94
|
/** Append the uncategorized bucket (null value) after the options. */
|
|
96
|
-
export declare const getKanbanGroups: (options: readonly KanbanGroupOption[], uncategorizedLabel: string) => KanbanGroup[];
|
|
97
|
-
//#endregion
|
|
95
|
+
export declare const getKanbanGroups: (options: readonly KanbanGroupOption[], uncategorizedLabel: string) => KanbanGroup[];
|
package/dist/kanban/grouping.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { panic } from "better-result";
|
|
2
|
-
|
|
2
|
+
// src/kanban/grouping.ts
|
|
3
3
|
/**
|
|
4
4
|
* Kanban grouping: which columns a board has, and which rows may appear on it.
|
|
5
5
|
*
|
|
@@ -85,5 +85,4 @@ const getKanbanGroups = (options, uncategorizedLabel) => {
|
|
|
85
85
|
});
|
|
86
86
|
return result;
|
|
87
87
|
};
|
|
88
|
-
//#endregion
|
|
89
88
|
export { getKanbanGroupingPropertyId, getKanbanGroups, isKanbanGroupingRenderable, resolveKanbanGroupOptions, resolveKanbanGrouping, selectKanbanRows };
|
package/dist/kanban/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { selectKanbanCardFieldIds } from "./card-properties.js";
|
|
2
|
-
import { KANBAN_CARD_STICKY_TOP_VAR, KANBAN_STICKY_TOP_VAR, KanbanCollapsedBandCaption } from "./sticky-lane.js";
|
|
3
2
|
import { KanbanCardShell } from "./card-shell.js";
|
|
4
|
-
import { KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX } from "./layout-tokens.js";
|
|
5
3
|
import { KanbanCellAction } from "./cell-action.js";
|
|
6
4
|
import { KanbanColumnBandHeader } from "./column-band-header.js";
|
|
7
|
-
import { getKanbanGroupingPropertyId, getKanbanGroups, isKanbanGroupingRenderable, resolveKanbanGroupOptions, resolveKanbanGrouping, selectKanbanRows } from "./grouping.js";
|
|
8
|
-
import { KANBAN_BOARD_AXES, buildKanbanBoardMatrix, createKanbanDropIntent, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, orderKanbanCellsByColumns } from "./matrix.js";
|
|
9
5
|
import { KANBAN_COLLAPSED_BAND_WIDTH_CLASS, KANBAN_COLLAPSED_BAND_WIDTH_PX, KANBAN_COLUMN_GAP_PX, KANBAN_COLUMN_WIDTH_CLASS, KANBAN_COLUMN_WIDTH_PX, hasKanbanColumnBands, resolveKanbanColumnBands } from "./column-bands.js";
|
|
10
6
|
import { KanbanColumnHeader } from "./column-header.js";
|
|
11
|
-
import {
|
|
7
|
+
import { KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX } from "./layout-tokens.js";
|
|
12
8
|
import { KANBAN_BOARD_AUTO_SCROLL_OPTIONS, KANBAN_DRAG_OVERLAY_Z_INDEX, KANBAN_MOUSE_ACTIVATION_DISTANCE, KANBAN_SORTABLE_ACTIVATION_MODES, KANBAN_TOUCH_ACTIVATION_CONSTRAINT, KanbanCardDragSurface, KanbanDragHandle, KanbanSortableBoard, useKanbanDropTarget, useKanbanSortable, useKanbanSortableSensors } from "./sortable-interactions.js";
|
|
13
9
|
import { KANBAN_DIRECTIONS, KANBAN_HORIZONTAL_EDGES, getKanbanHorizontalEdge } from "./sortable-edge.js";
|
|
14
10
|
import { KANBAN_BOARD_AUTO_SCROLL_SOURCES, KANBAN_CARD_DRAG_MIME, registerKanbanBoardAutoScroll, registerKanbanCardDrag } from "./drag-interactions.js";
|
|
11
|
+
import { KANBAN_BOARD_COLLISION_DETECTION, kanbanKeyboardCoordinates } from "./sortable-interactions.logic.js";
|
|
12
|
+
import { getKanbanGroupingPropertyId, getKanbanGroups, isKanbanGroupingRenderable, resolveKanbanGroupOptions, resolveKanbanGrouping, selectKanbanRows } from "./grouping.js";
|
|
13
|
+
import { KANBAN_BOARD_AXES, buildKanbanBoardMatrix, createKanbanDropIntent, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, orderKanbanCellsByColumns } from "./matrix.js";
|
|
15
14
|
import { KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS } from "./band-peek.js";
|
|
16
15
|
import { KanbanSubgroupBoard } from "./subgroup-board.js";
|
|
16
|
+
import { KANBAN_CARD_STICKY_TOP_VAR, KANBAN_STICKY_TOP_VAR, KanbanCollapsedBandCaption } from "./sticky-lane.js";
|
|
17
17
|
import { KANBAN_VIRTUAL_CELL_PAGINATION, KanbanVirtualCell } from "./virtual-cell.js";
|
|
18
18
|
export { KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS, KANBAN_BOARD_AUTO_SCROLL_OPTIONS, KANBAN_BOARD_AUTO_SCROLL_SOURCES, KANBAN_BOARD_AXES, KANBAN_BOARD_COLLISION_DETECTION, KANBAN_CARD_DRAG_MIME, KANBAN_CARD_STICKY_TOP_VAR, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX, KANBAN_COLLAPSED_BAND_WIDTH_CLASS, KANBAN_COLLAPSED_BAND_WIDTH_PX, KANBAN_COLUMN_GAP_PX, KANBAN_COLUMN_WIDTH_CLASS, KANBAN_COLUMN_WIDTH_PX, KANBAN_DIRECTIONS, KANBAN_DRAG_OVERLAY_Z_INDEX, KANBAN_HORIZONTAL_EDGES, KANBAN_MOUSE_ACTIVATION_DISTANCE, KANBAN_SORTABLE_ACTIVATION_MODES, KANBAN_STICKY_TOP_VAR, KANBAN_TOUCH_ACTIVATION_CONSTRAINT, KANBAN_VIRTUAL_CELL_PAGINATION, KanbanCardDragSurface, KanbanCardShell, KanbanCellAction, KanbanCollapsedBandCaption, KanbanColumnBandHeader, KanbanColumnHeader, KanbanDragHandle, KanbanSortableBoard, KanbanSubgroupBoard, KanbanVirtualCell, buildKanbanBoardMatrix, createKanbanDropIntent, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, getKanbanGroupingPropertyId, getKanbanGroups, getKanbanHorizontalEdge, hasKanbanColumnBands, isKanbanGroupingRenderable, kanbanKeyboardCoordinates, orderKanbanCellsByColumns, registerKanbanBoardAutoScroll, registerKanbanCardDrag, resolveKanbanColumnBands, resolveKanbanGroupOptions, resolveKanbanGrouping, selectKanbanCardFieldIds, selectKanbanRows, useKanbanDropTarget, useKanbanSortable, useKanbanSortableSensors };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/kanban/layout-tokens.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The heights the board's chrome rows are built from.
|
|
4
3
|
*
|
|
@@ -46,5 +45,4 @@ export declare const KANBAN_BAND_CAPTION_ROW_HEIGHT_PX: 36;
|
|
|
46
45
|
* distance either way, and neither spills into the row underneath: an inset
|
|
47
46
|
* grows a short control downwards by whatever it is short by.
|
|
48
47
|
*/
|
|
49
|
-
export declare const KANBAN_CHROME_TOGGLE_COARSE_TARGET_CLASS = "relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:top-1/2 pointer-coarse:after:h-11 pointer-coarse:after:-translate-y-1/2";
|
|
50
|
-
//#endregion
|
|
48
|
+
export declare const KANBAN_CHROME_TOGGLE_COARSE_TARGET_CLASS = "relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:top-1/2 pointer-coarse:after:h-11 pointer-coarse:after:-translate-y-1/2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kanban/layout-tokens.ts
|
|
2
2
|
/**
|
|
3
3
|
* The heights the board's chrome rows are built from.
|
|
4
4
|
*
|
|
@@ -47,5 +47,4 @@ const KANBAN_BAND_CAPTION_ROW_HEIGHT_PX = 36;
|
|
|
47
47
|
* grows a short control downwards by whatever it is short by.
|
|
48
48
|
*/
|
|
49
49
|
const KANBAN_CHROME_TOGGLE_COARSE_TARGET_CLASS = "relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:top-1/2 pointer-coarse:after:h-11 pointer-coarse:after:-translate-y-1/2";
|
|
50
|
-
//#endregion
|
|
51
50
|
export { KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX, KANBAN_CHROME_TOGGLE_COARSE_TARGET_CLASS };
|
package/dist/kanban/matrix.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KanbanGroup, KanbanGrouping } from "./grouping.js";
|
|
2
|
-
//#region src/kanban/matrix.d.ts
|
|
3
2
|
/** Which axis of a board a grouping controls. */
|
|
4
3
|
export declare const KANBAN_BOARD_AXES: {
|
|
5
4
|
readonly group: "group";
|
|
@@ -102,5 +101,4 @@ export type CreateKanbanDropIntentParams<TRow, TProperty, TCardId, TGroupId exte
|
|
|
102
101
|
* Diagonal drops carry both changes together; an adapter must commit this
|
|
103
102
|
* intent atomically or reject it as a whole.
|
|
104
103
|
*/
|
|
105
|
-
export declare const createKanbanDropIntent: <TRow, TProperty, TCardId, TGroupId extends string = string>({ cardId, group, source, subgroup, target }: CreateKanbanDropIntentParams<TRow, TProperty, TCardId, TGroupId>) => KanbanDropIntent<TCardId, TGroupId> | null;
|
|
106
|
-
//#endregion
|
|
104
|
+
export declare const createKanbanDropIntent: <TRow, TProperty, TCardId, TGroupId extends string = string>({ cardId, group, source, subgroup, target }: CreateKanbanDropIntentParams<TRow, TProperty, TCardId, TGroupId>) => KanbanDropIntent<TCardId, TGroupId> | null;
|
package/dist/kanban/matrix.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getKanbanGroupingPropertyId, getKanbanGroups, isKanbanGroupingRenderable, resolveKanbanGroupOptions, selectKanbanRows } from "./grouping.js";
|
|
2
2
|
import { panic } from "better-result";
|
|
3
|
-
|
|
3
|
+
// src/kanban/matrix.ts
|
|
4
4
|
/** Which axis of a board a grouping controls. */
|
|
5
5
|
const KANBAN_BOARD_AXES = {
|
|
6
6
|
group: "group",
|
|
@@ -144,5 +144,4 @@ const createKanbanDropIntent = ({ cardId, group, source, subgroup, target }) =>
|
|
|
144
144
|
type: "move"
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
//#endregion
|
|
148
147
|
export { KANBAN_BOARD_AXES, buildKanbanBoardMatrix, createKanbanDropIntent, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, orderKanbanCellsByColumns };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ClientRect } from "@dnd-kit/core";
|
|
2
|
-
//#region src/kanban/sortable-edge.d.ts
|
|
3
2
|
export declare const KANBAN_HORIZONTAL_EDGES: {
|
|
4
3
|
readonly before: "before";
|
|
5
4
|
readonly after: "after";
|
|
@@ -35,5 +34,4 @@ export type KanbanHorizontalEdgeOptions = KanbanPointerHorizontalEdgeOptions | K
|
|
|
35
34
|
* reconciliation and are not viewport coordinates.
|
|
36
35
|
*/
|
|
37
36
|
export declare const getKanbanHorizontalEdge: ({ ...options }: KanbanHorizontalEdgeOptions) => KanbanHorizontalEdge;
|
|
38
|
-
//#endregion
|
|
39
37
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kanban/sortable-edge.ts
|
|
2
2
|
const KANBAN_HORIZONTAL_EDGES = {
|
|
3
3
|
before: "before",
|
|
4
4
|
after: "after"
|
|
@@ -23,5 +23,4 @@ const getKanbanHorizontalEdge = ({ ...options }) => {
|
|
|
23
23
|
return physicalEdge;
|
|
24
24
|
};
|
|
25
25
|
const getRectCenterX = ({ left, width }) => left + width / 2;
|
|
26
|
-
//#endregion
|
|
27
26
|
export { KANBAN_DIRECTIONS, KANBAN_HORIZONTAL_EDGES, getKanbanHorizontalEdge };
|