@stll/ui 0.65.0 → 0.66.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 +7 -10
- 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 +18 -4
- package/dist/components/accordion.js +25 -9
- 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 +1 -2
- 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 +1 -2
- 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 +35 -13
- 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 +1 -2
- package/dist/components/collapsible.d.ts +10 -6
- package/dist/components/collapsible.js +12 -6
- package/dist/components/color-picker.d.ts +12 -5
- package/dist/components/color-picker.js +4 -6
- package/dist/components/combobox.d.ts +0 -2
- package/dist/components/combobox.js +1 -2
- package/dist/components/command.d.ts +0 -2
- package/dist/components/command.js +1 -2
- 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 +1 -2
- package/dist/components/context-menu.d.ts +1 -3
- package/dist/components/context-menu.js +1 -2
- 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 +1 -2
- package/dist/components/date-picker-popover.d.ts +0 -2
- package/dist/components/date-picker-popover.js +4 -68
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/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 +1 -2
- 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 +1 -2
- package/dist/components/horizontal-scroller.d.ts +0 -2
- package/dist/components/horizontal-scroller.js +1 -2
- package/dist/components/identity-text.d.ts +0 -2
- package/dist/components/identity-text.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +27 -7
- 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 +1 -2
- package/dist/components/outline-rail.d.ts +12 -3
- package/dist/components/outline-rail.js +61 -9
- 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 +1 -2
- 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 +1 -2
- package/dist/components/select.d.ts +0 -2
- package/dist/components/select.js +1 -2
- 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 +1 -2
- package/dist/components/sheet.native.d.ts +1 -3
- package/dist/components/sheet.native.js +1 -2
- package/dist/components/sheet.shared.d.ts +1 -3
- package/dist/components/sidebar.d.ts +0 -2
- package/dist/components/sidebar.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +51 -13
- 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 +1 -2
- 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 +9 -5
- package/dist/components/truncated-text.d.ts +0 -2
- package/dist/components/truncated-text.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +5 -4
- package/dist/inspector/chrome.d.ts +1 -3
- package/dist/inspector/chrome.js +1 -2
- package/dist/inspector/dock.d.ts +0 -2
- package/dist/inspector/dock.js +1 -2
- package/dist/inspector/entity-tab.d.ts +0 -2
- package/dist/inspector/entity-tab.js +1 -2
- 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 +1 -2
- package/dist/inspector/facet-bar.logic.d.ts +1 -3
- package/dist/inspector/facet-bar.logic.js +1 -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 +1 -2
- package/dist/kanban/cell-action.d.ts +1 -3
- package/dist/kanban/cell-action.js +1 -2
- package/dist/kanban/column-band-header.d.ts +1 -3
- package/dist/kanban/column-band-header.js +1 -2
- 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/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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/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 +1 -2
- package/dist/review/review-comment-card.d.ts +0 -2
- package/dist/review/review-comment-card.js +1 -2
- package/dist/review/review-decision-actions.d.ts +0 -2
- package/dist/review/review-decision-actions.js +1 -2
- 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 +1 -2
- 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 +27 -0
- package/dist/testing/browser-clock.d.ts +1 -3
- package/dist/testing/browser-clock.js +1 -2
- package/package.json +37 -5
|
@@ -6,7 +6,7 @@ import { DirectionalIcon } from "./directional-icon.js";
|
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
8
8
|
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
-
|
|
9
|
+
// src/components/pagination.tsx
|
|
10
10
|
const Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx("nav", {
|
|
11
11
|
"aria-label": "Pagination",
|
|
12
12
|
className: cn("mx-auto flex w-full justify-center", className),
|
|
@@ -74,5 +74,4 @@ const PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("sp
|
|
|
74
74
|
children: "More pages"
|
|
75
75
|
})]
|
|
76
76
|
});
|
|
77
|
-
//#endregion
|
|
78
77
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -2,7 +2,6 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { OverlayLayer } from "../lib/overlay-layer.js";
|
|
4
4
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
5
|
-
//#region src/components/popover.d.ts
|
|
6
5
|
declare const PopoverCreateHandle: typeof Popover$1.createHandle;
|
|
7
6
|
declare const Popover: typeof Popover$1.Root;
|
|
8
7
|
declare function PopoverTrigger({ tooltip, ...props }: Popover$1.Trigger.Props & {
|
|
@@ -43,5 +42,4 @@ declare const PopoverPanel: ({ children, contentClassName, ...props }: Component
|
|
|
43
42
|
declare const PopoverClose: ({ ...props }: Popover$1.Close.Props) => React$1.JSX.Element;
|
|
44
43
|
declare const PopoverTitle: ({ className, ...props }: Popover$1.Title.Props) => React$1.JSX.Element;
|
|
45
44
|
declare const PopoverDescription: ({ className, ...props }: Popover$1.Description.Props) => React$1.JSX.Element;
|
|
46
|
-
//#endregion
|
|
47
45
|
export { Popover, PopoverClose, PopoverPopup as PopoverContent, PopoverPopup, PopoverCreateHandle, PopoverDescription, PopoverPanel, PopoverTitle, PopoverTrigger };
|
|
@@ -5,7 +5,7 @@ import { CONTENT_SIZED_POSITIONER_CLASS_NAME, IN_FLOW_POPUP_CLASS_NAME } from ".
|
|
|
5
5
|
import { renderTooltipTrigger } from "./tooltip-trigger-helper.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
8
|
-
|
|
8
|
+
// src/components/popover.tsx
|
|
9
9
|
const PopoverCreateHandle = Popover$1.createHandle;
|
|
10
10
|
const Popover = Popover$1.Root;
|
|
11
11
|
function PopoverTrigger({ tooltip, ...props }) {
|
|
@@ -76,5 +76,4 @@ const PopoverDescription = ({ className, ...props }) => /* @__PURE__ */ jsx(Popo
|
|
|
76
76
|
"data-slot": "popover-description",
|
|
77
77
|
...props
|
|
78
78
|
});
|
|
79
|
-
//#endregion
|
|
80
79
|
export { Popover, PopoverClose, PopoverPopup as PopoverContent, PopoverPopup, PopoverCreateHandle, PopoverDescription, PopoverPanel, PopoverTitle, PopoverTrigger };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
3
|
-
//#region src/components/preview-card.d.ts
|
|
4
3
|
export declare const PreviewCard: typeof PreviewCardPrimitive.Root;
|
|
5
4
|
export declare const PreviewCardTrigger: ({ ...props }: PreviewCardPrimitive.Trigger.Props) => React.ReactElement;
|
|
6
5
|
export declare const PreviewCardPopup: ({ className, children, align, sideOffset, anchor, ...props }: PreviewCardPrimitive.Popup.Props & {
|
|
@@ -8,5 +7,4 @@ export declare const PreviewCardPopup: ({ className, children, align, sideOffset
|
|
|
8
7
|
sideOffset?: PreviewCardPrimitive.Positioner.Props["sideOffset"];
|
|
9
8
|
anchor?: PreviewCardPrimitive.Positioner.Props["anchor"];
|
|
10
9
|
}) => React.ReactElement;
|
|
11
|
-
//#endregion
|
|
12
10
|
export { PreviewCard as HoverCard, PreviewCardPopup as HoverCardContent, PreviewCardTrigger as HoverCardTrigger, PreviewCardPrimitive };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
5
|
-
|
|
5
|
+
// src/components/preview-card.tsx
|
|
6
6
|
const PreviewCard = PreviewCardPrimitive.Root;
|
|
7
7
|
const PreviewCardTrigger = ({ ...props }) => /* @__PURE__ */ jsx(PreviewCardPrimitive.Trigger, {
|
|
8
8
|
"data-slot": "preview-card-trigger",
|
|
@@ -21,5 +21,4 @@ const PreviewCardPopup = ({ className, children, align = "center", sideOffset =
|
|
|
21
21
|
children
|
|
22
22
|
})
|
|
23
23
|
}) });
|
|
24
|
-
//#endregion
|
|
25
24
|
export { PreviewCard as HoverCard, PreviewCard, PreviewCardPopup as HoverCardContent, PreviewCardPopup, PreviewCardTrigger as HoverCardTrigger, PreviewCardTrigger, PreviewCardPrimitive };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
//#region src/components/preview-pane.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Side-pane preview pattern: a list of options (menu items, rows) with a
|
|
5
4
|
* fixed-width pane beside it that previews the highlighted option. The pane
|
|
@@ -39,5 +38,4 @@ type PreviewPaneProps = React$1.ComponentProps<"div"> & {
|
|
|
39
38
|
size?: "default" | "thumbnail";
|
|
40
39
|
};
|
|
41
40
|
declare const PreviewPane: ({ children, className, overflow, size, ...props }: PreviewPaneProps) => React$1.JSX.Element;
|
|
42
|
-
//#endregion
|
|
43
41
|
export { MenuPreviewLayout, PreviewPane };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.js";
|
|
2
2
|
import { ScrollArea } from "./scroll-area.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/preview-pane.tsx
|
|
5
5
|
const MenuPreviewLayout = ({ children, preview, className, previewWidth = "fixed" }) => /* @__PURE__ */ jsxs("div", {
|
|
6
6
|
className: cn("flex items-stretch", className),
|
|
7
7
|
"data-slot": "menu-preview-layout",
|
|
@@ -40,5 +40,4 @@ const PreviewPane = ({ children, className, overflow = "clip", size = "default",
|
|
|
40
40
|
children
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
|
-
//#endregion
|
|
44
43
|
export { MenuPreviewLayout, PreviewPane };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
//#region src/components/prose.d.ts
|
|
4
3
|
/** Preserve source word breaks while allowing oversized tokens to fit narrow panes. */
|
|
5
4
|
export declare const LEGAL_TEXT_CLASS_NAME = "hyphens-manual wrap-anywhere";
|
|
6
5
|
declare const proseVariants: (props?: ({
|
|
@@ -9,5 +8,4 @@ declare const proseVariants: (props?: ({
|
|
|
9
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
9
|
/** A readable measure for narrative copy; task-shaped text should not use it. */
|
|
11
10
|
export declare const Prose: ({ className, size, tone, ...props }: React$1.ComponentProps<"p"> & VariantProps<typeof proseVariants>) => React$1.JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
11
|
export {};
|
package/dist/components/prose.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
|
|
4
|
+
// src/components/prose.tsx
|
|
5
5
|
/** Preserve source word breaks while allowing oversized tokens to fit narrow panes. */
|
|
6
6
|
const LEGAL_TEXT_CLASS_NAME = "hyphens-manual wrap-anywhere";
|
|
7
7
|
const proseVariants = cva("max-w-[80ch] leading-relaxed", {
|
|
@@ -32,5 +32,4 @@ const Prose = ({ className, size, tone, ...props }) => /* @__PURE__ */ jsx("p",
|
|
|
32
32
|
}), className),
|
|
33
33
|
...props
|
|
34
34
|
});
|
|
35
|
-
//#endregion
|
|
36
35
|
export { LEGAL_TEXT_CLASS_NAME, Prose };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Ref } from "react";
|
|
2
2
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
3
|
-
//#region src/components/scroll-area.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Which way the area may scroll. `both` is the primitive's own behaviour: a
|
|
6
5
|
* viewport that scrolls whichever axis its content overflows. `vertical` is
|
|
@@ -27,5 +26,4 @@ declare const ScrollArea: ({ axis, className, children, scrollFade, scrollbarCla
|
|
|
27
26
|
viewportRef?: Ref<HTMLDivElement>;
|
|
28
27
|
}) => import("react").JSX.Element;
|
|
29
28
|
declare const ScrollBar: ({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props) => import("react").JSX.Element;
|
|
30
|
-
//#endregion
|
|
31
29
|
export { ScrollArea, ScrollBar };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
5
|
-
|
|
5
|
+
// src/components/scroll-area.tsx
|
|
6
6
|
const AXIS_VIEWPORT_CLASS = {
|
|
7
7
|
both: "",
|
|
8
8
|
vertical: "overflow-x-hidden"
|
|
@@ -38,5 +38,4 @@ const ScrollBar = ({ className, orientation = "vertical", ...props }) => /* @__P
|
|
|
38
38
|
"data-slot": "scroll-area-thumb"
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
//#endregion
|
|
42
41
|
export { ScrollArea, ScrollBar };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
//#region src/components/scroll-to-top.d.ts
|
|
3
2
|
export type ScrollToTopProps = {
|
|
4
3
|
scrollContainerRef: RefObject<HTMLElement | null>;
|
|
5
4
|
/** Show once scrollTop exceeds this many px. */
|
|
@@ -7,5 +6,4 @@ export type ScrollToTopProps = {
|
|
|
7
6
|
label?: string;
|
|
8
7
|
className?: string;
|
|
9
8
|
};
|
|
10
|
-
export declare const ScrollToTop: ({ scrollContainerRef, threshold, label, className }: ScrollToTopProps) => import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const ScrollToTop: ({ scrollContainerRef, threshold, label, className }: ScrollToTopProps) => import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
|
-
|
|
5
|
+
// src/components/scroll-to-top.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Scroll-to-top affordance — a subtle floating button that fades in once a
|
|
8
8
|
* scroll container is scrolled past a threshold and jumps back to the top
|
|
@@ -39,5 +39,4 @@ const ScrollToTop = ({ scrollContainerRef, threshold = 600, label = "Scroll to t
|
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
//#endregion
|
|
43
42
|
export { ScrollToTop };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { InputGroupInput } from "./input-group.js";
|
|
3
|
-
//#region src/components/search-field.d.ts
|
|
4
3
|
type SearchFieldProps = Omit<React$1.ComponentProps<typeof InputGroupInput>, "onChange" | "type" | "value"> & {
|
|
5
4
|
value: string;
|
|
6
5
|
onValueChange: (value: string) => void;
|
|
@@ -16,5 +15,4 @@ type SearchFieldProps = Omit<React$1.ComponentProps<typeof InputGroupInput>, "on
|
|
|
16
15
|
* hundred rows.
|
|
17
16
|
*/
|
|
18
17
|
declare const SearchField: ({ value, onValueChange, clearLabel, groupClassName, className, onKeyDown, ...props }: SearchFieldProps) => React$1.JSX.Element;
|
|
19
|
-
//#endregion
|
|
20
18
|
export { SearchField, type SearchFieldProps };
|
|
@@ -4,7 +4,7 @@ import { cn } from "../lib/utils.js";
|
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
import { InputGroup, InputGroupAddon, InputGroupInput } from "./input-group.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/search-field.tsx
|
|
8
8
|
/**
|
|
9
9
|
* Filter-as-you-type search box: leading magnifier, clear button once there is
|
|
10
10
|
* a query, and Escape clears before it blurs. The caller owns the query state
|
|
@@ -46,5 +46,4 @@ const SearchField = ({ value, onValueChange, clearLabel, groupClassName, classNa
|
|
|
46
46
|
})
|
|
47
47
|
})]
|
|
48
48
|
});
|
|
49
|
-
//#endregion
|
|
50
49
|
export { SearchField };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { InputProps } from "./input.js";
|
|
2
|
-
//#region src/components/secret-input.d.ts
|
|
3
2
|
type SecretInputProps = Omit<InputProps, "type"> & {
|
|
4
3
|
hideValueLabel: string;
|
|
5
4
|
showValueLabel: string;
|
|
6
5
|
};
|
|
7
6
|
declare const SecretInput: ({ className, dir, disabled, hideValueLabel, showValueLabel, ...props }: SecretInputProps) => import("react").JSX.Element;
|
|
8
|
-
//#endregion
|
|
9
7
|
export { SecretInput, type SecretInputProps };
|
|
@@ -5,7 +5,7 @@ import { Button } from "./button.js";
|
|
|
5
5
|
import { Input } from "./input.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useState } from "react";
|
|
8
|
-
|
|
8
|
+
// src/components/secret-input.tsx
|
|
9
9
|
const SecretInput = ({ className, dir, disabled, hideValueLabel, showValueLabel, ...props }) => {
|
|
10
10
|
const [visibility, setVisibility] = useState("concealed");
|
|
11
11
|
const isRevealed = visibility === "revealed";
|
|
@@ -34,5 +34,4 @@ const SecretInput = ({ className, dir, disabled, hideValueLabel, showValueLabel,
|
|
|
34
34
|
})]
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { SecretInput };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
|
-
//#region src/components/segmented-icon-toggle.d.ts
|
|
3
2
|
type SegmentedIconToggleOption<T extends string> = {
|
|
4
3
|
value: T;
|
|
5
4
|
icon: ComponentType<{
|
|
@@ -19,5 +18,4 @@ type SegmentedIconToggleProps<T extends string> = {
|
|
|
19
18
|
* the same across the app. A `ToggleGroup` of icon items that always holds
|
|
20
19
|
* one value: clicking the chosen option keeps it. */
|
|
21
20
|
export declare const SegmentedIconToggle: <T extends string>({ value, options, onChange, size }: SegmentedIconToggleProps<T>) => import("react").JSX.Element;
|
|
22
|
-
//#endregion
|
|
23
21
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { ToggleGroup, ToggleGroupItem } from "./toggle-group.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/segmented-icon-toggle.tsx
|
|
6
6
|
/** Compact segmented control of icon buttons (e.g. table row wrap, list
|
|
7
7
|
* density). One shared shell so every density/mode switch looks and behaves
|
|
8
8
|
* the same across the app. A `ToggleGroup` of icon items that always holds
|
|
@@ -27,5 +27,4 @@ const SegmentedIconToggle = ({ value, options, onChange, size = "compact" }) =>
|
|
|
27
27
|
}, option.value);
|
|
28
28
|
})
|
|
29
29
|
});
|
|
30
|
-
//#endregion
|
|
31
30
|
export { SegmentedIconToggle };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { ControlSize } from "../lib/control-size.js";
|
|
3
3
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
4
|
-
//#region src/components/select.d.ts
|
|
5
4
|
type SelectItemProps = Select$1.Item.Props & {
|
|
6
5
|
label?: string;
|
|
7
6
|
};
|
|
@@ -22,5 +21,4 @@ declare const SelectItem: ({ className, children, label: _label, ...props }: Sel
|
|
|
22
21
|
declare const SelectSeparator: ({ className, ...props }: Select$1.Separator.Props) => React$1.JSX.Element;
|
|
23
22
|
declare const SelectGroup: (props: Select$1.Group.Props) => React$1.JSX.Element;
|
|
24
23
|
declare const SelectGroupLabel: (props: Select$1.GroupLabel.Props) => React$1.JSX.Element;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { Select, SelectPopup as SelectContent, SelectPopup, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -8,7 +8,7 @@ import { useLatest } from "../hooks/use-latest.js";
|
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
11
|
-
|
|
11
|
+
// src/components/select.tsx
|
|
12
12
|
const SelectItemDisplaysContext = React$1.createContext(/* @__PURE__ */ new Map());
|
|
13
13
|
const renderSelectedDisplay = (displays, placeholder) => (value) => {
|
|
14
14
|
if (!displays.has(value)) return placeholder ?? null;
|
|
@@ -191,5 +191,4 @@ const SelectGroupLabel = (props) => /* @__PURE__ */ jsx(Select$1.GroupLabel, {
|
|
|
191
191
|
"data-slot": "select-group-label",
|
|
192
192
|
...props
|
|
193
193
|
});
|
|
194
|
-
//#endregion
|
|
195
194
|
export { Select, SelectPopup as SelectContent, SelectPopup, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
3
|
-
//#region src/components/separator.d.ts
|
|
4
3
|
declare const Separator: ({ className, orientation, ...props }: Separator$1.Props) => import("react").JSX.Element;
|
|
5
4
|
type TextSeparatorProps = PropsWithChildren<{
|
|
6
5
|
/** Container overrides, e.g. gap or vertical padding. */
|
|
@@ -37,5 +36,4 @@ type ResizeSeparatorProps = {
|
|
|
37
36
|
* adds no visible width of its own.
|
|
38
37
|
*/
|
|
39
38
|
declare const ResizeSeparator: ({ className, label, value, min, max, keyboardStep, onResize }: ResizeSeparatorProps) => import("react").JSX.Element;
|
|
40
|
-
//#endregion
|
|
41
39
|
export { ResizeSeparator, Separator, TextSeparator };
|
|
@@ -3,7 +3,7 @@ import { cn } from "../lib/utils.js";
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
6
|
-
|
|
6
|
+
// src/components/separator.tsx
|
|
7
7
|
const Separator = ({ className, orientation = "horizontal", ...props }) => /* @__PURE__ */ jsx(Separator$1, {
|
|
8
8
|
className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch", className),
|
|
9
9
|
"data-slot": "separator",
|
|
@@ -73,5 +73,4 @@ const ResizeSeparator = ({ className, label, value, min, max, keyboardStep, onRe
|
|
|
73
73
|
tabIndex: 0
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
//#endregion
|
|
77
76
|
export { ResizeSeparator, Separator, TextSeparator };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SeparatorContract } from "./separator.shared.js";
|
|
2
2
|
import { ViewProps } from "react-native";
|
|
3
|
-
//#region src/components/separator.native.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The web's `Separator` (./separator.tsx) on a phone: a hairline in the
|
|
6
5
|
* border colour, across the container or, `vertical`, down it. A list passes
|
|
@@ -10,5 +9,4 @@ export declare const Separator: ({ className, orientation, ...props }: ViewProps
|
|
|
10
9
|
className?: string | undefined;
|
|
11
10
|
/** A hairline holds nothing. */
|
|
12
11
|
children?: never;
|
|
13
|
-
}) => import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
|
|
3
|
+
// src/components/separator.native.tsx
|
|
4
4
|
/**
|
|
5
5
|
* The web's `Separator` (./separator.tsx) on a phone: a hairline in the
|
|
6
6
|
* border colour, across the container or, `vertical`, down it. A list passes
|
|
@@ -12,5 +12,4 @@ const Separator = ({ className, orientation = "horizontal", ...props }) => /* @_
|
|
|
12
12
|
className: `bg-border ${orientation === "vertical" ? "w-px self-stretch" : "h-px w-full"} ${className ?? ""}`,
|
|
13
13
|
importantForAccessibility: "no-hide-descendants"
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { Separator };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Dialog } from "@base-ui/react/dialog";
|
|
3
|
-
//#region src/components/sheet.d.ts
|
|
4
3
|
declare const Sheet: <Payload>(props: Dialog.Root.Props<Payload>) => React$1.JSX.Element;
|
|
5
4
|
declare const SheetPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
6
5
|
type SheetSide = "inline-start" | "inline-end" | "block-start" | "block-end";
|
|
@@ -25,5 +24,4 @@ declare const SheetDescription: ({ className, ...props }: Dialog.Description.Pro
|
|
|
25
24
|
declare const SheetPanel: ({ className, scrollFade, ...props }: React$1.ComponentProps<"div"> & {
|
|
26
25
|
scrollFade?: boolean;
|
|
27
26
|
}) => React$1.JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
27
|
export { Sheet, SheetBackdrop, SheetBackdrop as SheetOverlay, SheetClose, SheetPopup as SheetContent, SheetPopup, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPortal, type SheetSide, SheetTitle, SheetTrigger };
|
package/dist/components/sheet.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Button } from "./button.js";
|
|
|
8
8
|
import { ScrollArea } from "./scroll-area.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { Dialog } from "@base-ui/react/dialog";
|
|
11
|
-
|
|
11
|
+
// src/components/sheet.tsx
|
|
12
12
|
const Sheet = Dialog.Root;
|
|
13
13
|
const SheetPortal = Dialog.Portal;
|
|
14
14
|
function SheetTrigger({ tooltip, ...props }) {
|
|
@@ -101,5 +101,4 @@ const SheetPanel = ({ className, scrollFade = true, ...props }) => /* @__PURE__
|
|
|
101
101
|
...props
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
|
-
//#endregion
|
|
105
104
|
export { Sheet, SheetBackdrop, SheetBackdrop as SheetOverlay, SheetClose, SheetPopup as SheetContent, SheetPopup, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPortal, SheetTitle, SheetTrigger };
|
|
@@ -3,7 +3,6 @@ import { ComponentProps } from "react";
|
|
|
3
3
|
import { ScrollView, ViewProps } from "react-native";
|
|
4
4
|
import { SheetContract } from "./sheet.shared.js";
|
|
5
5
|
import { Text as Text$1 } from "./text.native.js";
|
|
6
|
-
//#region src/components/sheet.native.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* The web's `Sheet` (./sheet.tsx) on a phone: the platform's page sheet,
|
|
9
8
|
* sliding up over the screen. A swipe down or the system back gesture asks
|
|
@@ -23,5 +22,4 @@ export declare const SheetDescription: (props: ComponentProps<typeof Text$1>) =>
|
|
|
23
22
|
/** The sheet's body, scrolling when it outgrows the sheet. */
|
|
24
23
|
export declare const SheetPanel: ({ contentContainerClassName, ...props }: ComponentProps<typeof ScrollView>) => import("react").JSX.Element;
|
|
25
24
|
/** A button that closes the sheet, after its own `onPress`. */
|
|
26
|
-
export declare const SheetClose: ({ onPress, size, variant, ...props }: ComponentProps<typeof Button>) => import("react").JSX.Element;
|
|
27
|
-
//#endregion
|
|
25
|
+
export declare const SheetClose: ({ onPress, size, variant, ...props }: ComponentProps<typeof Button>) => import("react").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { Button } from "./button.native.js";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { createContext, use } from "react";
|
|
5
5
|
import { KeyboardAvoidingView, Modal, Platform, ScrollView, View } from "react-native";
|
|
6
|
-
|
|
6
|
+
// src/components/sheet.native.tsx
|
|
7
7
|
/** Closes the sheet that holds it; nothing outside a sheet. */
|
|
8
8
|
const SheetCloseContext = createContext(() => void 0);
|
|
9
9
|
/**
|
|
@@ -65,5 +65,4 @@ const SheetClose = ({ onPress, size = "sm", variant = "ghost", ...props }) => {
|
|
|
65
65
|
...props
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { Sheet, SheetClose, SheetDescription, SheetHeader, SheetPanel, SheetPopup, SheetTitle };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/components/sheet.shared.d.ts
|
|
3
2
|
/** The props every sheet root accepts, with one meaning. */
|
|
4
3
|
export type SheetContract = {
|
|
5
4
|
open?: boolean;
|
|
6
5
|
onOpenChange?: (open: boolean) => void;
|
|
7
6
|
children?: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
7
|
+
};
|
|
@@ -5,7 +5,6 @@ import { SidebarLayout } from "./sidebar.logic.js";
|
|
|
5
5
|
import { TooltipContent as TooltipPopup } from "./tooltip.js";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
8
|
-
//#region src/components/sidebar.d.ts
|
|
9
8
|
/**
|
|
10
9
|
* Inline size the sidebar takes out of the layout row when expanded, in CSS
|
|
11
10
|
* pixels. Kept equal across the two rail-shaped primitives in this package:
|
|
@@ -139,5 +138,4 @@ declare const SidebarMenuSubButton: ({ asChild, size, isActive, className, ...pr
|
|
|
139
138
|
size?: "sm" | "md";
|
|
140
139
|
isActive?: boolean;
|
|
141
140
|
}) => import("react").JSX.Element;
|
|
142
|
-
//#endregion
|
|
143
141
|
export { PanelTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIdentityButton, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarIdentityTriggerClassName, useSidebar, useSidebarInlineSize, useSidebarLayout };
|
|
@@ -16,7 +16,7 @@ import { mergeProps } from "@base-ui/react/merge-props";
|
|
|
16
16
|
import { useRender } from "@base-ui/react/use-render";
|
|
17
17
|
import { panic } from "better-result";
|
|
18
18
|
import { cva } from "class-variance-authority";
|
|
19
|
-
|
|
19
|
+
// src/components/sidebar.tsx
|
|
20
20
|
/**
|
|
21
21
|
* Inline size the sidebar takes out of the layout row when expanded, in CSS
|
|
22
22
|
* pixels. Kept equal across the two rail-shaped primitives in this package:
|
|
@@ -419,5 +419,4 @@ const SidebarMenuSubButton = ({ asChild = false, size = "md", isActive = false,
|
|
|
419
419
|
...props
|
|
420
420
|
});
|
|
421
421
|
};
|
|
422
|
-
//#endregion
|
|
423
422
|
export { PanelTrigger, SIDEBAR_WIDTH_ICON_PX, SIDEBAR_WIDTH_PX, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIdentityButton, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarIdentityTriggerClassName, useSidebar, useSidebarInlineSize, useSidebarLayout };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/sidebar.logic.d.ts
|
|
2
1
|
export type SidebarState = "expanded" | "collapsed";
|
|
3
2
|
/** How the sidebar's contents are drawn: the icon rail, or full width. */
|
|
4
3
|
export type SidebarLayout = "rail" | "full";
|
|
@@ -32,5 +31,4 @@ export declare const deriveSidebarState: (open: boolean) => SidebarState;
|
|
|
32
31
|
*/
|
|
33
32
|
export declare const nextRequestedOpen: (requestedOpen: boolean) => boolean;
|
|
34
33
|
/** `toggleSidebar`'s mobile transition: it flips the sheet's open state. */
|
|
35
|
-
export declare const nextOpenMobile: (openMobile: boolean) => boolean;
|
|
36
|
-
//#endregion
|
|
34
|
+
export declare const nextOpenMobile: (openMobile: boolean) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/sidebar.logic.ts
|
|
2
2
|
/**
|
|
3
3
|
* The layout the sidebar's contents are drawn in. The mobile sheet never
|
|
4
4
|
* collapses to icons, whatever the desktop collapse state holds, so chrome
|
|
@@ -24,5 +24,4 @@ const deriveSidebarState = (open) => open ? "expanded" : "collapsed";
|
|
|
24
24
|
const nextRequestedOpen = (requestedOpen) => !requestedOpen;
|
|
25
25
|
/** `toggleSidebar`'s mobile transition: it flips the sheet's open state. */
|
|
26
26
|
const nextOpenMobile = (openMobile) => !openMobile;
|
|
27
|
-
//#endregion
|
|
28
27
|
export { deriveSidebarState, nextOpenMobile, nextRequestedOpen, resolveSidebarLayout, resolveSidebarOpen };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/skeleton.tsx
|
|
4
4
|
const Skeleton = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
5
5
|
className: cn("animate-skeleton rounded-sm [--skeleton-highlight:--alpha(var(--color-white)/64%)] [background:linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)_var(--color-muted)_0_0/200%_100%_fixed] dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]", className),
|
|
6
6
|
"data-slot": "skeleton",
|
|
7
7
|
...props
|
|
8
8
|
});
|
|
9
|
-
//#endregion
|
|
10
9
|
export { Skeleton };
|
|
@@ -2,7 +2,6 @@ import { BUTTON_CONTENT, Button } from "./button.js";
|
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
import { DropdownMenu as Menu } from "./menu.js";
|
|
4
4
|
import { Popover } from "./popover.js";
|
|
5
|
-
//#region src/components/split-button.d.ts
|
|
6
5
|
type SplitButtonSharedProps = {
|
|
7
6
|
menuLabel: string;
|
|
8
7
|
primaryDescriptionId?: string;
|
|
@@ -34,5 +33,4 @@ type SplitButtonProps = SplitButtonSharedProps & SplitButtonPrimary & ({
|
|
|
34
33
|
});
|
|
35
34
|
/** Two independent actions share quiet chrome; only the chevron opens the secondary surface. */
|
|
36
35
|
export declare const SplitButton: (props: SplitButtonProps) => import("react").JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
36
|
export {};
|
|
@@ -5,7 +5,7 @@ import { BUTTON_CONTENT, Button } from "./button.js";
|
|
|
5
5
|
import { Popover, PopoverTrigger } from "./popover.js";
|
|
6
6
|
import { DropdownMenu as Menu, DropdownMenuTrigger as MenuTrigger } from "./menu.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/split-button.tsx
|
|
9
9
|
/** Two independent actions share quiet chrome; only the chevron opens the secondary surface. */
|
|
10
10
|
const SplitButton = (props) => {
|
|
11
11
|
const { primaryLabel, menuLabel, primaryDescriptionId, menuDescriptionId, onPrimaryClick, children, menu, primaryDisabled, menuDisabled, size = "md", className } = props;
|
|
@@ -62,5 +62,4 @@ const SplitButton = (props) => {
|
|
|
62
62
|
children: [controls, menu]
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
//#endregion
|
|
66
65
|
export { SplitButton };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/status-mark.d.ts
|
|
2
1
|
type StatusMarkStatus = "pending" | "running" | "done" | "failed";
|
|
3
2
|
type StatusMarkProps = {
|
|
4
3
|
status: StatusMarkStatus;
|
|
@@ -13,5 +12,4 @@ type StatusMarkProps = {
|
|
|
13
12
|
* failure eases to destructive.
|
|
14
13
|
*/
|
|
15
14
|
declare const StatusMark: ({ className, label, status }: StatusMarkProps) => import("react").JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
15
|
export { StatusMark, type StatusMarkStatus };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/status-mark.tsx
|
|
5
5
|
const RING_RADIUS = 6.25;
|
|
6
6
|
const CHECK_PATH = "M5.4 8.3 7.2 10.1 10.6 6.3";
|
|
7
7
|
const CROSS_PATH = "M6.1 6.1 9.9 9.9M9.9 6.1 6.1 9.9";
|
|
@@ -70,5 +70,4 @@ const StatusMark = ({ className, label, status }) => /* @__PURE__ */ jsxs("svg",
|
|
|
70
70
|
})
|
|
71
71
|
]
|
|
72
72
|
});
|
|
73
|
-
//#endregion
|
|
74
73
|
export { StatusMark };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from "react";
|
|
2
|
-
|
|
3
|
-
export declare const StellaMark: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare const StellaMark: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { STELLA_MARK } from "./stella-mark.shared.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/stella-mark.tsx
|
|
4
4
|
const StellaMark = (props) => /* @__PURE__ */ jsx("svg", {
|
|
5
5
|
"aria-hidden": "true",
|
|
6
6
|
fill: "currentColor",
|
|
@@ -9,5 +9,4 @@ const StellaMark = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
9
9
|
...props,
|
|
10
10
|
children: STELLA_MARK.paths.map((d) => /* @__PURE__ */ jsx("path", { d }, d))
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { StellaMark };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/components/stella-mark.native.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The web's `StellaMark` (./stella-mark.tsx) on a phone: the same paths, in
|
|
4
3
|
* the foreground colour, `size` points tall. Decorative, like the web's.
|
|
5
4
|
*/
|
|
6
5
|
export declare const StellaMark: ({ size }: {
|
|
7
6
|
size?: number | undefined;
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
7
|
+
}) => import("react").JSX.Element;
|