@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
|
@@ -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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { XIcon } from "../icons.js";
|
|
3
|
-
import { cn } from "../lib/utils.js";
|
|
4
3
|
import { OVERLAY_LAYER_CLASS_NAMES } from "../lib/overlay-layer.js";
|
|
5
4
|
import "../lib/safe-area.js";
|
|
6
|
-
import {
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
7
6
|
import { Button } from "./button.js";
|
|
8
7
|
import { ScrollArea } from "./scroll-area.js";
|
|
8
|
+
import { renderTooltipTrigger } from "./tooltip-trigger-helper.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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Text as Text$1 } from "./text.native.js";
|
|
2
1
|
import { Button } from "./button.native.js";
|
|
2
|
+
import { Text as Text$1 } from "./text.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 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useIsMobile } from "../hooks/use-mobile.js";
|
|
2
3
|
import { PanelLeftIcon, PanelRightIcon } from "../icons.js";
|
|
4
|
+
import { Slot } from "../lib/slot.js";
|
|
3
5
|
import { cn } from "../lib/utils.js";
|
|
4
|
-
import { Tooltip, TooltipContent as TooltipPopup, TooltipTrigger } from "./tooltip.js";
|
|
5
|
-
import { useIsMobile } from "../hooks/use-mobile.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
|
-
import { Sheet, SheetContent as SheetPopup, SheetDescription, SheetHeader, SheetTitle } from "./sheet.js";
|
|
8
7
|
import { Input } from "./input.js";
|
|
9
8
|
import { Separator } from "./separator.js";
|
|
10
|
-
import {
|
|
9
|
+
import { Sheet, SheetContent as SheetPopup, SheetDescription, SheetHeader, SheetTitle } from "./sheet.js";
|
|
11
10
|
import { deriveSidebarState, nextOpenMobile, nextRequestedOpen, resolveSidebarLayout, resolveSidebarOpen } from "./sidebar.logic.js";
|
|
12
11
|
import { Skeleton } from "./skeleton.js";
|
|
12
|
+
import { Tooltip, TooltipContent as TooltipPopup, TooltipTrigger } from "./tooltip.js";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { createContext, use, useId, useState } from "react";
|
|
15
15
|
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 {};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { ChevronDownIcon } from "../icons.js";
|
|
3
3
|
import { cn } from "../lib/utils.js";
|
|
4
4
|
import { BUTTON_CONTENT, Button } from "./button.js";
|
|
5
|
-
import { Popover, PopoverTrigger } from "./popover.js";
|
|
6
5
|
import { DropdownMenu as Menu, DropdownMenuTrigger as MenuTrigger } from "./menu.js";
|
|
6
|
+
import { Popover, PopoverTrigger } from "./popover.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;
|
|
@@ -2,7 +2,7 @@ import { STELLA_MARK } from "./stella-mark.shared.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import Svg, { Path } from "react-native-svg";
|
|
4
4
|
import { useCSSVariable } from "uniwind";
|
|
5
|
-
|
|
5
|
+
// src/components/stella-mark.native.tsx
|
|
6
6
|
const BOX = STELLA_MARK.viewBox.split(" ").map(Number);
|
|
7
7
|
const WIDTH = BOX[2] ?? 1;
|
|
8
8
|
const HEIGHT = BOX[3] ?? 1;
|
|
@@ -24,5 +24,4 @@ const StellaMark = ({ size = 28 }) => {
|
|
|
24
24
|
}, d))
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { StellaMark };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//#region src/components/stella-mark.shared.d.ts
|
|
2
1
|
export declare const STELLA_MARK: {
|
|
3
2
|
readonly viewBox: "0 0 40 41";
|
|
4
3
|
readonly paths: readonly ["M6.58 11.3 16.69 5.05a5.9 5.9 0 0 1 6.62.01l14.68 9.07V9.26L25.52 1.55A11.8 11.8 0 0 0 20 0c-1.97 0-3.88.54-5.53 1.56L4.37 7.81A9.3 9.3 0 0 0 0 15.61a9.3 9.3 0 0 0 4.37 7.8l3.26 2.02-.01.01 11.15 6.9c.14.09.27.16.39.2.68.26 1.42.19 2.03-.19l9.59-5.93.1-.07 2.07-1.28-2.82-1.72-1.1-.69-9.02 5.56-.41-.24-13.01-8.05a5.57 5.57 0 0 1-2.41-4.31c0-1.79.88-3.36 2.41-4.3Z", "M33.34 29.25 23.24 35.5a5.9 5.9 0 0 1-6.63-.01L1.94 26.43v4.86l12.47 7.71a11.8 11.8 0 0 0 5.52 1.55c1.97 0 3.88-.54 5.53-1.56l10.1-6.25a9.3 9.3 0 0 0 4.37-7.8 9.3 9.3 0 0 0-4.37-7.8l-3.26-2.02.01-.01-11.15-6.9a1.6 1.6 0 0 0-.39-.2 1.64 1.64 0 0 0-2.03.19l-9.59 5.93-.1.07-2.07 1.28 2.82 1.72 1.1.69 9.02-5.56.41.24 13.01 8.05a5.57 5.57 0 0 1 2.41 4.31c0 1.79-.88 3.36-2.41 4.3Z"];
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
4
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/stella-mark.shared.ts
|
|
2
2
|
const STELLA_MARK = {
|
|
3
3
|
viewBox: "0 0 40 41",
|
|
4
4
|
paths: ["M6.58 11.3 16.69 5.05a5.9 5.9 0 0 1 6.62.01l14.68 9.07V9.26L25.52 1.55A11.8 11.8 0 0 0 20 0c-1.97 0-3.88.54-5.53 1.56L4.37 7.81A9.3 9.3 0 0 0 0 15.61a9.3 9.3 0 0 0 4.37 7.8l3.26 2.02-.01.01 11.15 6.9c.14.09.27.16.39.2.68.26 1.42.19 2.03-.19l9.59-5.93.1-.07 2.07-1.28-2.82-1.72-1.1-.69-9.02 5.56-.41-.24-13.01-8.05a5.57 5.57 0 0 1-2.41-4.31c0-1.79.88-3.36 2.41-4.3Z", "M33.34 29.25 23.24 35.5a5.9 5.9 0 0 1-6.63-.01L1.94 26.43v4.86l12.47 7.71a11.8 11.8 0 0 0 5.52 1.55c1.97 0 3.88-.54 5.53-1.56l10.1-6.25a9.3 9.3 0 0 0 4.37-7.8 9.3 9.3 0 0 0-4.37-7.8l-3.26-2.02.01-.01-11.15-6.9a1.6 1.6 0 0 0-.39-.2 1.64 1.64 0 0 0-2.03.19l-9.59 5.93-.1.07-2.07 1.28 2.82 1.72 1.1.69 9.02-5.56.41.24 13.01 8.05a5.57 5.57 0 0 1 2.41 4.31c0 1.79-.88 3.36-2.41 4.3Z"]
|
|
5
5
|
};
|
|
6
|
-
//#endregion
|
|
7
6
|
export { STELLA_MARK };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from "react";
|
|
2
|
-
|
|
3
|
-
export declare const StellaWordmarkLatin: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare const StellaWordmarkLatin: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { STELLA_WORDMARK } from "./stella-wordmark.shared.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/stella-wordmark.tsx
|
|
4
4
|
const StellaWordmarkLatin = (props) => /* @__PURE__ */ jsx("svg", {
|
|
5
5
|
"aria-hidden": "true",
|
|
6
6
|
fill: "currentColor",
|
|
@@ -9,5 +9,4 @@ const StellaWordmarkLatin = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
9
9
|
...props,
|
|
10
10
|
children: STELLA_WORDMARK.paths.map((d) => /* @__PURE__ */ jsx("path", { d }, d))
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { StellaWordmarkLatin };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/components/stella-wordmark.native.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The web's `StellaWordmarkLatin` (./stella-wordmark.tsx) on a phone: the
|
|
4
3
|
* same paths, in the foreground colour, `height` points tall.
|
|
5
4
|
*/
|
|
6
5
|
export declare const StellaWordmarkLatin: ({ height }: {
|
|
7
6
|
height?: number | undefined;
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { STELLA_WORDMARK } from "./stella-wordmark.shared.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import Svg, { Path } from "react-native-svg";
|
|
4
4
|
import { useCSSVariable } from "uniwind";
|
|
5
|
-
|
|
5
|
+
// src/components/stella-wordmark.native.tsx
|
|
6
6
|
const BOX = STELLA_WORDMARK.viewBox.split(" ").map(Number);
|
|
7
7
|
const WIDTH = BOX[2] ?? 1;
|
|
8
8
|
const HEIGHT = BOX[3] ?? 1;
|
|
@@ -23,5 +23,4 @@ const StellaWordmarkLatin = ({ height = 20 }) => {
|
|
|
23
23
|
}, d))
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { StellaWordmarkLatin };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//#region src/components/stella-wordmark.shared.d.ts
|
|
2
1
|
export declare const STELLA_WORDMARK: {
|
|
3
2
|
readonly viewBox: "0 0 573 151";
|
|
4
3
|
readonly paths: readonly ["M23.54 44.93L59.65 22.32C63.19 20.1 67.28 18.94 71.49 18.94C75.7 18.94 79.79 20.1 83.32 22.32L135.77 55.14V37.56L91.2 9.63C85.32 5.96 78.5 3.99 71.49 3.99C64.48 3.99 57.63 5.93 51.74 9.63L15.63 32.24C5.85 38.39 0 48.96 0 60.52C0 72.08 5.85 82.65 15.63 88.77L27.27 96.05L67.11 121.04C67.63 121.36 68.08 121.59 68.5 121.75C70.94 122.68 73.58 122.42 75.77 121.07L110.05 99.62C110.05 99.62 110.3 99.46 110.4 99.36L117.8 94.72L107.73 88.48L103.78 86L71.55 106.13L70.07 105.26L23.57 76.11C18.11 72.66 14.95 66.99 14.95 60.52C14.95 54.05 18.11 48.38 23.57 44.93H23.54Z", "M119.18 109.86L83.07 132.47C79.53 134.7 75.44 135.85 71.23 135.85C67.02 135.85 62.93 134.7 59.4 132.47L6.91 99.65V117.24L51.49 145.13C57.37 148.8 64.19 150.77 71.2 150.77C78.21 150.77 85.06 148.84 90.94 145.13L127.06 122.52C136.83 116.4 142.69 105.84 142.69 94.27C142.69 82.71 136.83 72.15 127.06 66.03L115.42 58.75L75.57 33.75C75.06 33.43 74.61 33.21 74.19 33.05C71.75 32.11 69.11 32.37 66.92 33.72L32.64 55.17C32.64 55.17 32.38 55.33 32.29 55.43L24.89 60.07L34.96 66.32L38.91 68.8L71.13 48.67L72.61 49.54L119.12 78.69C124.58 82.13 127.73 87.8 127.73 94.27C127.73 100.75 124.58 106.42 119.12 109.86H119.18Z", "M230.38 123.02C212.11 123.02 195.46 115.06 189.49 98.78L200.89 89.91C203.96 99.87 213.55 109.82 230.92 109.82C241.23 109.82 248.11 105.84 248.11 98.06C248.11 90.1 240.15 87.56 229.83 85.21L218.26 82.5C205.77 79.6 192.2 73.63 192.2 57.53C192.2 41.61 204.51 31.84 223.5 31.84C241.96 31.84 254.8 41.61 259.69 53.19L247.75 62.05C243.4 51.74 235.08 45.23 222.6 45.23C213.55 45.23 207.04 49.21 207.04 56.63C207.04 64.41 212.83 67.12 224.77 70.01L235.99 72.91C255.71 77.61 262.22 85.75 262.22 97.88C262.22 115.24 247.38 123.02 230.38 123.02Z", "M304.21 123.2C289.92 123.2 279.79 113.8 279.79 98.78V45.95H265.67V33.65H279.79V22.43L295.52 10.85V33.65H324.29V45.95H295.52V94.08C295.52 105.29 300.77 108.01 307.65 108.01C315.43 108.01 320.85 101.49 323.21 96.07L328.45 111.63C324.65 117.6 316.33 123.2 304.21 123.2Z", "M371.45 123.02C346.66 123.02 329.48 105.29 329.48 77.43C329.48 49.75 346.48 31.84 370.54 31.84C395.33 31.84 410.34 48.3 410.34 73.99C410.34 76.71 409.98 79.42 409.62 81.05H344.67C345.58 99.5 355.89 110 371.45 110C389 110 396.05 100.41 399.49 92.81L409.08 103.66C402.57 114.16 390.44 123.02 371.45 123.02ZM370.54 45.05C356.43 45.05 347.02 53.37 345.03 69.65H396.23C394.6 53.55 385.2 45.05 370.54 45.05Z", "M442.77 121.21H427.03V0H442.77V121.21Z", "M478.55 121.21H462.81V0H478.55V121.21Z", "M516.68 123.02C501.84 123.02 493.52 114.52 493.52 102.94C493.52 91.18 502.39 83.76 514.87 78.16L546.53 64.04C545.99 53.73 541.1 46.13 527.35 46.13C514.87 46.13 506.55 53.37 502.02 62.96L491.35 51.92C496.6 42.88 509.62 31.84 529.16 31.84C550.69 31.84 562.27 44.69 562.27 65.49V101.49C562.27 105.66 563.9 106.92 567.15 106.92H572.76V121.21H562.63C553.58 121.21 547.07 116.87 547.07 104.57V98.42C544.18 110 534.77 123.02 516.68 123.02ZM509.44 100.41C509.44 106.38 513.6 110 521.74 110C536.58 110 547.07 100.23 547.07 87.56V75.44L521.56 87.38C513.24 91.36 509.44 94.98 509.44 100.41Z"];
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
4
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/stella-wordmark.shared.ts
|
|
2
2
|
const STELLA_WORDMARK = {
|
|
3
3
|
viewBox: "0 0 573 151",
|
|
4
4
|
paths: [
|
|
@@ -12,5 +12,4 @@ const STELLA_WORDMARK = {
|
|
|
12
12
|
"M516.68 123.02C501.84 123.02 493.52 114.52 493.52 102.94C493.52 91.18 502.39 83.76 514.87 78.16L546.53 64.04C545.99 53.73 541.1 46.13 527.35 46.13C514.87 46.13 506.55 53.37 502.02 62.96L491.35 51.92C496.6 42.88 509.62 31.84 529.16 31.84C550.69 31.84 562.27 44.69 562.27 65.49V101.49C562.27 105.66 563.9 106.92 567.15 106.92H572.76V121.21H562.63C553.58 121.21 547.07 116.87 547.07 104.57V98.42C544.18 110 534.77 123.02 516.68 123.02ZM509.44 100.41C509.44 106.38 513.6 110 521.74 110C536.58 110 547.07 100.23 547.07 87.56V75.44L521.56 87.38C513.24 91.36 509.44 94.98 509.44 100.41Z"
|
|
13
13
|
]
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { STELLA_WORDMARK };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
//#region src/components/steps.d.ts
|
|
4
3
|
declare const stepsVariants: (props?: ({
|
|
5
4
|
variant?: "compact" | "default" | "progress" | null | undefined;
|
|
6
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -14,5 +13,4 @@ declare const stepVariants: (props?: ({
|
|
|
14
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
14
|
type StepProps = React$1.ComponentProps<"li"> & VariantProps<typeof stepVariants>;
|
|
16
15
|
declare const Step: ({ className, status, ...props }: StepProps) => React$1.JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { Step, Steps };
|
package/dist/components/steps.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/steps.tsx
|
|
5
5
|
const stepsVariants = cva("list-decimal ps-6 marker:font-medium", {
|
|
6
6
|
variants: { variant: {
|
|
7
7
|
default: "space-y-4",
|
|
@@ -30,5 +30,4 @@ const Step = ({ className, status, ...props }) => /* @__PURE__ */ jsx("li", {
|
|
|
30
30
|
"data-slot": "step",
|
|
31
31
|
...props
|
|
32
32
|
});
|
|
33
|
-
//#endregion
|
|
34
33
|
export { Step, Steps };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/swap-text.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A short label that changes in place (a live status line): the old text
|
|
4
3
|
* lifts out with a slight blur while the new one rises into the same cell,
|
|
@@ -12,5 +11,4 @@ declare const SwapText: ({ className, text }: {
|
|
|
12
11
|
className?: string;
|
|
13
12
|
text: string;
|
|
14
13
|
}) => import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
14
|
export { SwapText };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useState } from "react";
|
|
5
|
-
|
|
5
|
+
// src/components/swap-text.tsx
|
|
6
6
|
/**
|
|
7
7
|
* A short label that changes in place (a live status line): the old text
|
|
8
8
|
* lifts out with a slight blur while the new one rises into the same cell,
|
|
@@ -48,5 +48,4 @@ const SwapText = ({ className, text }) => {
|
|
|
48
48
|
}, `in-${state.generation}`)]
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { SwapText };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
3
|
-
//#region src/components/switch.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `default` is a setting's own control; `sm` sits in a dense row or a menu
|
|
6
5
|
* beside small type.
|
|
@@ -20,5 +19,4 @@ declare const SwitchField: ({ className, description, label, size, ...props }: S
|
|
|
20
19
|
label: React$1.ReactNode;
|
|
21
20
|
description?: React$1.ReactNode;
|
|
22
21
|
}) => React$1.JSX.Element;
|
|
23
|
-
//#endregion
|
|
24
22
|
export { Switch, SwitchField, type SwitchProps, type SwitchSize };
|
|
@@ -3,7 +3,7 @@ import { cn } from "../lib/utils.js";
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
6
|
-
|
|
6
|
+
// src/components/switch.tsx
|
|
7
7
|
const SWITCH_ROOT_SIZE_CLASS_NAME = {
|
|
8
8
|
default: "h-5 w-9",
|
|
9
9
|
sm: "h-4 w-7"
|
|
@@ -51,5 +51,4 @@ const SwitchField = ({ className, description, label, size, ...props }) => {
|
|
|
51
51
|
})]
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
//#endregion
|
|
55
54
|
export { Switch, SwitchField };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SwitchContract } from "./switch.shared.js";
|
|
2
2
|
import { SwitchProps } from "react-native";
|
|
3
|
-
//#region src/components/switch.native.d.ts
|
|
4
3
|
type SwitchProps$1 = Omit<SwitchProps, "value" | "onValueChange" | "disabled" | keyof SwitchContract> & SwitchContract;
|
|
5
4
|
/**
|
|
6
5
|
* The web's `Switch` (./switch.tsx) on a phone: the platform's own switch, in
|
|
@@ -9,5 +8,4 @@ type SwitchProps$1 = Omit<SwitchProps, "value" | "onValueChange" | "disabled" |
|
|
|
9
8
|
* `defaultChecked`.
|
|
10
9
|
*/
|
|
11
10
|
export declare const Switch: ({ checked, defaultChecked, disabled, onCheckedChange, ...props }: SwitchProps$1) => import("react").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
11
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { Switch as Switch$1 } from "react-native";
|
|
4
|
-
|
|
4
|
+
// src/components/switch.native.tsx
|
|
5
5
|
/**
|
|
6
6
|
* The web's `Switch` (./switch.tsx) on a phone: the platform's own switch, in
|
|
7
7
|
* the web's colours (the primary fill when on, the input fill when off).
|
|
@@ -29,5 +29,4 @@ const Switch = ({ checked, defaultChecked = false, disabled = false, onCheckedCh
|
|
|
29
29
|
value
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { Switch };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/components/switch.shared.d.ts
|
|
2
1
|
/** The props every switch renderer accepts, with one meaning. */
|
|
3
2
|
export type SwitchContract = {
|
|
4
3
|
checked?: boolean;
|
|
5
4
|
defaultChecked?: boolean;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
onCheckedChange?: (checked: boolean) => void;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
7
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/table-chart.d.ts
|
|
2
1
|
export type TableChartKind = "bar" | "line" | "pie" | "scatter";
|
|
3
2
|
export type TableChartPoint = {
|
|
4
3
|
label: string;
|
|
@@ -16,5 +15,4 @@ export type TableChartProps = {
|
|
|
16
15
|
xMode?: "numeric" | "category";
|
|
17
16
|
formatNumber: (value: number) => string;
|
|
18
17
|
};
|
|
19
|
-
export declare const TableChart: ({ kind, points, title, summary, xLabel, yLabel, xMode, formatNumber }: TableChartProps) => import("react").JSX.Element;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare const TableChart: ({ kind, points, title, summary, xLabel, yLabel, xMode, formatNumber }: TableChartProps) => import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useId } from "react";
|
|
4
4
|
import { panic } from "better-result";
|
|
5
|
-
|
|
5
|
+
// src/components/table-chart.tsx
|
|
6
6
|
const WIDTH = 640;
|
|
7
7
|
const HEIGHT = 360;
|
|
8
8
|
const PLOT = {
|
|
@@ -270,5 +270,4 @@ const TableChart = ({ kind, points, title, summary, xLabel, yLabel, xMode = "num
|
|
|
270
270
|
]
|
|
271
271
|
});
|
|
272
272
|
};
|
|
273
|
-
//#endregion
|
|
274
273
|
export { TableChart };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
//#region src/components/table.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* How far cells pad their content from the column edges.
|
|
5
4
|
*
|
|
@@ -108,5 +107,4 @@ type SortableHeadProps = Omit<TableHeadProps, "onClick"> & {
|
|
|
108
107
|
*/
|
|
109
108
|
declare const SortableHead: ({ children, sortDirection, onSort, trailing, className, align, numeric, ...props }: SortableHeadProps) => React$1.JSX.Element;
|
|
110
109
|
declare const TableCaption: ({ className, ...props }: React$1.ComponentProps<"caption">) => React$1.JSX.Element;
|
|
111
|
-
//#endregion
|
|
112
110
|
export { type SortDirection, SortableHead, Table, type TableAlign, TableBody, TableCaption, TableCell, type TableCellProps, type TableDensity, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableInset, type TableProps, TableRow, type TableScroll, type TableTone };
|
package/dist/components/table.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ArrowDownIcon, ArrowUpIcon } from "../icons.js";
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/table.tsx
|
|
6
6
|
const Table = ({ className, density = "default", inset = "default", scroll = "self", ...props }) => {
|
|
7
7
|
const table = /* @__PURE__ */ jsx("table", {
|
|
8
8
|
className: cn("w-full caption-bottom text-sm in-data-[slot=frame]:border-separate in-data-[slot=frame]:border-spacing-0", className),
|
|
@@ -103,5 +103,4 @@ const TableCaption = ({ className, ...props }) => /* @__PURE__ */ jsx("caption",
|
|
|
103
103
|
"data-slot": "table-caption",
|
|
104
104
|
...props
|
|
105
105
|
});
|
|
106
|
-
//#endregion
|
|
107
106
|
export { SortableHead, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
2
|
-
//#region src/components/tabs.d.ts
|
|
3
2
|
type TabsVariant = "default" | "underline";
|
|
4
3
|
declare const Tabs: ({ className, ...props }: Tabs$1.Root.Props) => import("react").JSX.Element;
|
|
5
4
|
declare const TabsList: ({ variant, className, children, ref, ...props }: Tabs$1.List.Props & {
|
|
@@ -7,5 +6,4 @@ declare const TabsList: ({ variant, className, children, ref, ...props }: Tabs$1
|
|
|
7
6
|
}) => import("react").JSX.Element;
|
|
8
7
|
declare const TabsTab: ({ className, ...props }: Tabs$1.Tab.Props) => import("react").JSX.Element;
|
|
9
8
|
declare const TabsPanel: ({ className, ...props }: Tabs$1.Panel.Props) => import("react").JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { Tabs, TabsPanel as TabsContent, TabsPanel, TabsList, TabsTab, TabsTab as TabsTrigger };
|
package/dist/components/tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn, composeRefs } from "../lib/utils.js";
|
|
3
2
|
import { hasTabOrderChanged, revealActiveTab } from "../lib/tab-order.js";
|
|
3
|
+
import { cn, composeRefs } from "../lib/utils.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
6
6
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
7
|
-
|
|
7
|
+
// src/components/tabs.tsx
|
|
8
8
|
const useIsoLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
9
9
|
const Tabs = ({ className, ...props }) => /* @__PURE__ */ jsx(Tabs$1.Root, {
|
|
10
10
|
className: cn("flex flex-col gap-2 data-[orientation=vertical]:flex-row", className),
|
|
@@ -53,5 +53,4 @@ const TabsPanel = ({ className, ...props }) => /* @__PURE__ */ jsx(Tabs$1.Panel,
|
|
|
53
53
|
"data-slot": "tabs-content",
|
|
54
54
|
...props
|
|
55
55
|
});
|
|
56
|
-
//#endregion
|
|
57
56
|
export { Tabs, TabsPanel as TabsContent, TabsPanel, TabsList, TabsTab, TabsTab as TabsTrigger };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { TextContract, TextVariant } from "./text.shared.js";
|
|
3
|
-
//#region src/components/text.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Text in one of the design system's roles (./text.shared.ts), the same role
|
|
6
5
|
* the React Native renderer (./text.native.tsx) sets on a phone. Inline, so a
|
|
7
6
|
* role can sit inside a paragraph; a block of prose is `Prose`.
|
|
8
7
|
*/
|
|
9
8
|
declare const Text: ({ className, variant, ...props }: Omit<ComponentProps<"span">, keyof TextContract> & TextContract) => import("react").JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { Text, type TextVariant };
|