@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,7 +1,7 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.js";
|
|
2
1
|
import { TOOLBAR_ROW_HEIGHT } from "../inspector/layout-tokens.js";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/application-rail.tsx
|
|
5
5
|
const APPLICATION_RAIL_WIDTH = "w-12";
|
|
6
6
|
const APPLICATION_RAIL_BUTTON_SIZE = "size-11";
|
|
7
7
|
const APPLICATION_RAIL_ICON_SIZE = "size-4";
|
|
@@ -48,5 +48,4 @@ const ApplicationRailFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("
|
|
|
48
48
|
"data-slot": "application-rail-footer",
|
|
49
49
|
...props
|
|
50
50
|
});
|
|
51
|
-
//#endregion
|
|
52
51
|
export { APPLICATION_RAIL_BUTTON_SIZE, APPLICATION_RAIL_ICON_SIZE, APPLICATION_RAIL_WIDTH, ApplicationRail, ApplicationRailButton, ApplicationRailContent, ApplicationRailFooter, ApplicationRailHeader, ApplicationRailMenu, ApplicationRailSeparator };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
2
|
-
//#region src/components/avatar.d.ts
|
|
3
2
|
declare const Avatar: ({ className, ...props }: Avatar$1.Root.Props) => import("react").JSX.Element;
|
|
4
3
|
declare const AvatarImage: ({ className, ...props }: Avatar$1.Image.Props) => import("react").JSX.Element;
|
|
5
4
|
declare const AvatarFallback: ({ className, ...props }: Avatar$1.Fallback.Props) => import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
7
5
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
5
|
-
|
|
5
|
+
// src/components/avatar.tsx
|
|
6
6
|
const Avatar = ({ className, ...props }) => /* @__PURE__ */ jsx(Avatar$1.Root, {
|
|
7
7
|
className: cn("bg-background inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full align-middle text-xs font-medium select-none", className),
|
|
8
8
|
"data-slot": "avatar",
|
|
@@ -18,5 +18,4 @@ const AvatarFallback = ({ className, ...props }) => /* @__PURE__ */ jsx(Avatar$1
|
|
|
18
18
|
"data-slot": "avatar-fallback",
|
|
19
19
|
...props
|
|
20
20
|
});
|
|
21
|
-
//#endregion
|
|
22
21
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StatusTone } from "./list.js";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
//#region src/components/badge.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* A short label that classifies the thing beside it: a status, a type, a
|
|
6
5
|
* count. The words carry the meaning; the tone and the optional dot only
|
|
@@ -24,5 +23,4 @@ declare const badgeVariants: (props?: ({
|
|
|
24
23
|
size?: "sm" | "xs" | null | undefined;
|
|
25
24
|
tone?: "destructive" | "info" | "neutral" | "success" | "warning" | null | undefined;
|
|
26
25
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
27
|
-
//#endregion
|
|
28
26
|
export { Badge, type BadgeProps, type BadgeSize, type BadgeTone, badgeVariants };
|
package/dist/components/badge.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
|
-
|
|
6
|
+
// src/components/badge.tsx
|
|
7
7
|
/**
|
|
8
8
|
* A short label that classifies the thing beside it: a status, a type, a
|
|
9
9
|
* count. The words carry the meaning; the tone and the optional dot only
|
|
@@ -60,5 +60,4 @@ const BADGE_DOT_CLASS = {
|
|
|
60
60
|
success: "bg-success",
|
|
61
61
|
warning: "bg-warning"
|
|
62
62
|
};
|
|
63
|
-
//#endregion
|
|
64
63
|
export { Badge, badgeVariants };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
//#region src/components/bidi-text.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Isolation shields the text around a value, not the value itself: a
|
|
5
4
|
* directional control inside it still reorders its letters, so stored text
|
|
@@ -27,5 +26,4 @@ type ParagraphTextProps = Omit<React$1.ComponentPropsWithoutRef<"p">, "dir"> & {
|
|
|
27
26
|
direction?: BidiDirection;
|
|
28
27
|
};
|
|
29
28
|
type BidiTextProps = BdiElementProps | SpanTextProps | DivTextProps | ParagraphTextProps;
|
|
30
|
-
//#endregion
|
|
31
29
|
export type { BidiDirection, BidiTextProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/bidi-text.tsx
|
|
5
5
|
/** Explicit embeddings, overrides and isolates; implicit marks stay. */
|
|
6
6
|
const DIRECTIONAL_CONTROLS = /[\u202A-\u202E\u2066-\u2069]/gu;
|
|
7
7
|
/**
|
|
@@ -47,5 +47,4 @@ const BidiText = (props) => {
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
const UserText = BidiText;
|
|
50
|
-
//#endregion
|
|
51
50
|
export { BidiText, UserText, stripDirectionalControls, withoutDirectionalControls };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
//#region src/components/brand-icons.d.ts
|
|
3
2
|
type BrandIconProps = React$1.ComponentProps<"svg">;
|
|
4
3
|
export declare const DiscordLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
|
|
5
4
|
export declare const GitHubLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
|
|
6
5
|
export declare const XLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
// src/components/brand-icons.tsx
|
|
3
3
|
const DiscordLogoIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
4
|
"aria-hidden": "true",
|
|
5
5
|
fill: "currentColor",
|
|
@@ -21,5 +21,4 @@ const XLogoIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
21
21
|
...props,
|
|
22
22
|
children: /* @__PURE__ */ jsx("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.64 7.584H.47l8.6-9.835L0 1.153h7.594l5.243 6.932 6.064-6.932Zm-1.29 19.49h2.039L6.486 3.24H4.298l13.313 17.403Z" })
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { DiscordLogoIcon, GitHubLogoIcon, XLogoIcon };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
//#region src/components/breadcrumb.d.ts
|
|
4
3
|
declare const Breadcrumb: ({ ...props }: React$1.ComponentProps<"nav">) => React$1.JSX.Element;
|
|
5
4
|
declare const BreadcrumbList: ({ className, ...props }: React$1.ComponentProps<"ol">) => React$1.JSX.Element;
|
|
6
5
|
declare const BreadcrumbItem: ({ className, ...props }: React$1.ComponentProps<"li">) => React$1.JSX.Element;
|
|
@@ -8,5 +7,4 @@ declare function BreadcrumbLink({ className, render, ...props }: useRender.Compo
|
|
|
8
7
|
declare const BreadcrumbPage: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
|
|
9
8
|
declare const BreadcrumbSeparator: ({ children, className, ...props }: React$1.ComponentProps<"li">) => React$1.JSX.Element;
|
|
10
9
|
declare const BreadcrumbEllipsis: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
10
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
@@ -5,7 +5,7 @@ import { DirectionalIcon } from "./directional-icon.js";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
8
|
-
|
|
8
|
+
// src/components/breadcrumb.tsx
|
|
9
9
|
const Breadcrumb = ({ ...props }) => /* @__PURE__ */ jsx("nav", {
|
|
10
10
|
"aria-label": "Breadcrumb",
|
|
11
11
|
"data-slot": "breadcrumb",
|
|
@@ -57,5 +57,4 @@ const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("sp
|
|
|
57
57
|
children: "More"
|
|
58
58
|
})]
|
|
59
59
|
});
|
|
60
|
-
//#endregion
|
|
61
60
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ButtonContract, ButtonSize, ButtonVariant } from "./button.shared.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
//#region src/components/button.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Disabled styling for a button that is only `aria-disabled`.
|
|
7
6
|
*
|
|
@@ -103,5 +102,4 @@ type ButtonTextRunProps = Omit<ButtonProps, "children" | "className" | "focusRin
|
|
|
103
102
|
* `Button size="inline"` for a short action.
|
|
104
103
|
*/
|
|
105
104
|
declare const ButtonTextRun: ({ children, className, disabled, ...props }: ButtonTextRunProps) => import("react").JSX.Element;
|
|
106
|
-
//#endregion
|
|
107
105
|
export { BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Button, type ButtonFocusRing, type ButtonPlainShape, type ButtonProps, type ButtonSize, ButtonTextRun, type ButtonVariant, buttonAccessibleDisabledClass, buttonVariants };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../lib/utils.js";
|
|
3
|
-
import { renderTooltipTrigger } from "./tooltip-trigger-helper.js";
|
|
4
2
|
import { BUTTON_DISPOSITION, blockDisabledActivation, blockDisabledKeyActivation, resolveButtonDisposition } from "../lib/button-disposition.js";
|
|
5
3
|
import { MENU_ROW_CLASS_NAME } from "../lib/menu-row.js";
|
|
4
|
+
import { rendersNothing } from "../lib/renders-nothing.js";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
6
|
import { BUTTON_PLAIN_VARIANT, BUTTON_VARIANT_TOKENS } from "./button.shared.js";
|
|
7
7
|
import { Loader } from "./loader.js";
|
|
8
|
+
import { renderTooltipTrigger } from "./tooltip-trigger-helper.js";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { Fragment as Fragment$1, isValidElement } from "react";
|
|
10
11
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
11
12
|
import { useRender } from "@base-ui/react/use-render";
|
|
12
13
|
import { panic } from "better-result";
|
|
13
14
|
import { cva } from "class-variance-authority";
|
|
14
|
-
|
|
15
|
+
// src/components/button.tsx
|
|
15
16
|
/**
|
|
16
17
|
* Disabled styling for a button that is only `aria-disabled`.
|
|
17
18
|
*
|
|
@@ -218,17 +219,15 @@ function Button({ className, variant: variantProp, size, render, layout, loading
|
|
|
218
219
|
const isAccessibleDisabled = disposition === BUTTON_DISPOSITION.accessibleDisabled;
|
|
219
220
|
const isActivationPreservingDisabled = accessibleDisabled !== void 0;
|
|
220
221
|
const defaultProps = {
|
|
221
|
-
children:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
variant
|
|
231
|
-
}) ? containedLabel(children) : children] }),
|
|
222
|
+
children: buttonContent({
|
|
223
|
+
icon,
|
|
224
|
+
label: cutsLabel({
|
|
225
|
+
layout,
|
|
226
|
+
size,
|
|
227
|
+
variant
|
|
228
|
+
}) ? containedLabel(children) : children,
|
|
229
|
+
loading
|
|
230
|
+
}),
|
|
232
231
|
className: cn(variant === "plain" ? cn(BUTTON_PLAIN_CLASS, BUTTON_PLAIN_SHAPE_CLASS[shape], className) : cn(disposition === BUTTON_DISPOSITION.enabled && !isActivationPreservingDisabled && size !== "row" && size !== "inline" && variant !== "link" && buttonPressClass, buttonVariants({
|
|
233
232
|
className,
|
|
234
233
|
size,
|
|
@@ -263,6 +262,30 @@ function Button({ className, variant: variantProp, size, render, layout, loading
|
|
|
263
262
|
});
|
|
264
263
|
}
|
|
265
264
|
/**
|
|
265
|
+
* What the button shows. Loading never changes its width: with an `icon`,
|
|
266
|
+
* the loader takes the icon's place; without one, the label (already cut to
|
|
267
|
+
* the button's width where it is cut) stays in place but transparent (still
|
|
268
|
+
* the accessible name) and the loader sits over its centre, so a row of
|
|
269
|
+
* buttons does not shift when one starts saving.
|
|
270
|
+
*/
|
|
271
|
+
function buttonContent({ icon, label, loading }) {
|
|
272
|
+
if (!loading) return /* @__PURE__ */ jsxs(Fragment, { children: [icon, label] });
|
|
273
|
+
const hasIcon = !rendersNothing(icon);
|
|
274
|
+
const loader = /* @__PURE__ */ jsx(Loader, {
|
|
275
|
+
animation: "none",
|
|
276
|
+
className: cn("[transition:opacity_150ms_ease-out,scale_320ms_var(--ease-spring)] motion-reduce:transition-none starting:scale-50 starting:opacity-0", !hasIcon && "absolute inset-0 m-auto"),
|
|
277
|
+
"data-slot": "button-loader",
|
|
278
|
+
size: "sm",
|
|
279
|
+
variant: "decorative"
|
|
280
|
+
});
|
|
281
|
+
if (hasIcon) return /* @__PURE__ */ jsxs(Fragment, { children: [loader, label] });
|
|
282
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
283
|
+
className: "inline-flex min-w-0 items-center gap-[inherit] opacity-0",
|
|
284
|
+
"data-slot": "button-loading-label",
|
|
285
|
+
children: label
|
|
286
|
+
}), loader] });
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
266
289
|
* The run is the visible target: underlined like a link, ringed while its
|
|
267
290
|
* button has keyboard focus (per line, so a wrapped run rings each line).
|
|
268
291
|
*/
|
|
@@ -295,5 +318,4 @@ const ButtonTextRun = ({ children, className, disabled, ...props }) => /* @__PUR
|
|
|
295
318
|
variant: BUTTON_PLAIN_VARIANT
|
|
296
319
|
}), children]
|
|
297
320
|
});
|
|
298
|
-
//#endregion
|
|
299
321
|
export { BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Button, ButtonTextRun, buttonAccessibleDisabledClass, buttonVariants };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ButtonSize, ButtonVariant } from "./button.shared.js";
|
|
2
|
-
//#region src/components/button.native-classes.d.ts
|
|
3
2
|
type NativeButtonClassNamesOptions = {
|
|
4
3
|
className?: string | undefined;
|
|
5
4
|
inactive: boolean;
|
|
@@ -13,5 +12,4 @@ export declare const nativeButtonClassNames: ({ className, inactive, selected, s
|
|
|
13
12
|
pressable: string;
|
|
14
13
|
slop: 0 | 6 | 8 | 12;
|
|
15
14
|
};
|
|
16
|
-
//#endregion
|
|
17
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BUTTON_PLAIN_VARIANT, BUTTON_VARIANT_TOKENS } from "./button.shared.js";
|
|
2
|
-
|
|
2
|
+
// src/components/button.native-classes.ts
|
|
3
3
|
/** A control's box: centred content inside the variant's border. */
|
|
4
4
|
const CONTROL = "items-center justify-center border";
|
|
5
5
|
/**
|
|
@@ -177,5 +177,4 @@ const nativeButtonClassNames = ({ className, inactive, selected, size, variant }
|
|
|
177
177
|
slop: shape.slop
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
|
-
//#endregion
|
|
181
180
|
export { nativeButtonClassNames };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ButtonContract } from "./button.shared.js";
|
|
2
2
|
import { PressableProps } from "react-native";
|
|
3
|
-
//#region src/components/button.native.d.ts
|
|
4
3
|
type ButtonProps = Omit<PressableProps, "children" | "disabled"> & ButtonContract & {
|
|
5
4
|
className?: string | undefined;
|
|
6
5
|
};
|
|
@@ -14,5 +13,4 @@ type ButtonProps = Omit<PressableProps, "children" | "disabled"> & ButtonContrac
|
|
|
14
13
|
* only when it is selected. Its classes come from ./button.native-classes.ts.
|
|
15
14
|
*/
|
|
16
15
|
export declare const Button: ({ accessibilityState, children, className, disabled, hitSlop, icon, loading, selected: selectedProp, size, variant: variantProp, ...props }: ButtonProps) => import("react").JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
16
|
export {};
|
|
@@ -3,7 +3,7 @@ import { Loader } from "./loader.native.js";
|
|
|
3
3
|
import { Text as Text$1 } from "./text.native.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Pressable } from "react-native";
|
|
6
|
-
|
|
6
|
+
// src/components/button.native.tsx
|
|
7
7
|
/**
|
|
8
8
|
* The web's `Button` (./button.tsx) on a phone: the same variants and sizes,
|
|
9
9
|
* read from ./button.shared.ts, on a Pressable. A string child is set as the
|
|
@@ -44,5 +44,4 @@ const Button = ({ accessibilityState, children, className, disabled = false, hit
|
|
|
44
44
|
}) : children]
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
//#endregion
|
|
48
47
|
export { Button };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/components/button.shared.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Each variant's colours: the box (`surface`: border and fill) and the
|
|
5
4
|
* label. Neither carries state; each renderer adds its own hover, press and
|
|
@@ -83,5 +82,4 @@ export type ButtonContract = {
|
|
|
83
82
|
*/
|
|
84
83
|
selected?: boolean | undefined;
|
|
85
84
|
children?: ReactNode;
|
|
86
|
-
};
|
|
87
|
-
//#endregion
|
|
85
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/button.shared.ts
|
|
2
2
|
/**
|
|
3
3
|
* Each variant's colours: the box (`surface`: border and fill) and the
|
|
4
4
|
* label. Neither carries state; each renderer adds its own hover, press and
|
|
@@ -72,5 +72,4 @@ const BUTTON_SIZES = [
|
|
|
72
72
|
"xl",
|
|
73
73
|
"xs"
|
|
74
74
|
];
|
|
75
|
-
//#endregion
|
|
76
75
|
export { BUTTON_PLAIN_VARIANT, BUTTON_SIZES, BUTTON_VARIANT_TOKENS };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
5
|
-
|
|
5
|
+
// src/components/checkbox.tsx
|
|
6
6
|
const Checkbox = ({ className, ...props }) => /* @__PURE__ */ jsx(Checkbox$1.Root, {
|
|
7
|
-
className: cn("border-input bg-background ring-ring focus-visible:ring-offset-background aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48 dark:not-data-checked:bg-input/32 dark:aria-invalid:ring-destructive/24 relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-
|
|
7
|
+
className: cn("border-input bg-background ring-ring focus-visible:ring-offset-background aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48 dark:not-data-checked:bg-input/32 dark:aria-invalid:ring-destructive/24 relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-sm border shadow-xs/5 outline-none not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-sm)-1px)] not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-visible:ring-2 focus-visible:ring-offset-1 data-disabled:opacity-64 sm:size-4 dark:not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [[data-disabled],[data-checked],[aria-invalid]]:shadow-none", className),
|
|
8
8
|
"data-slot": "checkbox",
|
|
9
9
|
...props,
|
|
10
10
|
children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, {
|
|
11
|
-
className: "text-primary-foreground data-checked:bg-primary data-indeterminate:text-foreground absolute -inset-px flex items-center justify-center rounded-
|
|
11
|
+
className: "text-primary-foreground data-checked:bg-primary data-indeterminate:text-foreground absolute -inset-px flex items-center justify-center rounded-sm data-unchecked:hidden",
|
|
12
12
|
"data-slot": "checkbox-indicator",
|
|
13
13
|
render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", {
|
|
14
14
|
...indicatorProps,
|
|
@@ -42,5 +42,4 @@ const Checkbox = ({ className, ...props }) => /* @__PURE__ */ jsx(Checkbox$1.Roo
|
|
|
42
42
|
})
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
|
-
//#endregion
|
|
46
45
|
export { Checkbox };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
2
|
-
//#region src/components/collapsible.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* One disclosure: a trigger that shows or hides a single panel ("Show
|
|
5
4
|
* details" under a card, a step list in a transcript). A set of sections
|
|
@@ -28,5 +27,4 @@ declare const CollapsibleTrigger: ({ className, ...props }: Collapsible$1.Trigge
|
|
|
28
27
|
* `hiddenUntilFound={false}` to unmount it instead.
|
|
29
28
|
*/
|
|
30
29
|
declare const CollapsiblePanel: ({ className, hiddenUntilFound, ...props }: Collapsible$1.Panel.Props) => import("react").JSX.Element;
|
|
31
|
-
//#endregion
|
|
32
30
|
export { Collapsible, CollapsiblePanel, CollapsibleTrigger };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
5
|
-
|
|
5
|
+
// src/components/collapsible.tsx
|
|
6
6
|
/**
|
|
7
7
|
* One disclosure: a trigger that shows or hides a single panel ("Show
|
|
8
8
|
* details" under a card, a step list in a transcript). A set of sections
|
|
@@ -43,5 +43,4 @@ const CollapsiblePanel = ({ className, hiddenUntilFound = true, ...props }) => /
|
|
|
43
43
|
hiddenUntilFound,
|
|
44
44
|
...props
|
|
45
45
|
});
|
|
46
|
-
//#endregion
|
|
47
46
|
export { Collapsible, CollapsiblePanel, CollapsibleTrigger };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
//#region src/components/color-picker.d.ts
|
|
3
2
|
type ColorPreset = {
|
|
4
3
|
label: string;
|
|
5
4
|
/** Value emitted on select (e.g. "red" or "FF0000") */
|
|
@@ -23,8 +22,17 @@ type ColorPickerProps = {
|
|
|
23
22
|
defaultExpanded?: boolean;
|
|
24
23
|
/** Localized label for expanding the custom color controls. */
|
|
25
24
|
moreLabel: string;
|
|
26
|
-
/**
|
|
27
|
-
|
|
25
|
+
/**
|
|
26
|
+
* The popover trigger: one focusable element (normally a named button)
|
|
27
|
+
* that becomes the trigger itself, so the picker never wraps it in a
|
|
28
|
+
* second, unnamed button.
|
|
29
|
+
*/
|
|
30
|
+
trigger: React$1.ReactElement;
|
|
31
|
+
/**
|
|
32
|
+
* Whether `trigger` renders a native `<button>` (default). Pass `false`
|
|
33
|
+
* only for a non-button element; Base UI then gives it button semantics.
|
|
34
|
+
*/
|
|
35
|
+
nativeButton?: boolean;
|
|
28
36
|
/** Popover placement side */
|
|
29
37
|
side?: "top" | "bottom" | "left" | "right";
|
|
30
38
|
/** Popover placement alignment */
|
|
@@ -52,6 +60,5 @@ type ColorPickerContentProps = ColorPickerContentBaseProps & ({
|
|
|
52
60
|
});
|
|
53
61
|
declare const DEFAULT_PRESETS: ColorPreset[];
|
|
54
62
|
declare const ColorPickerContent: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, presentation }: ColorPickerContentProps) => React$1.JSX.Element;
|
|
55
|
-
declare const ColorPicker: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel,
|
|
56
|
-
//#endregion
|
|
63
|
+
declare const ColorPicker: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, nativeButton, trigger, side, align, className }: ColorPickerProps) => React$1.JSX.Element;
|
|
57
64
|
export { ColorPicker, ColorPickerContent, type ColorPickerContentProps, type ColorPickerProps, type ColorPreset, DEFAULT_PRESETS };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { CheckIcon, ChevronDownIcon } from "../icons.js";
|
|
3
|
-
import { cn } from "../lib/utils.js";
|
|
4
3
|
import { OVERLAY_LAYER_CLASS_NAMES } from "../lib/overlay-layer.js";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Suspense, lazy, useState } from "react";
|
|
7
7
|
import { Popover } from "@base-ui/react/popover";
|
|
8
|
-
|
|
8
|
+
// src/components/color-picker.tsx
|
|
9
9
|
const HexColorPicker = lazy(async () => {
|
|
10
10
|
return { default: (await import("./hex-color-picker.js")).HexColorPicker };
|
|
11
11
|
});
|
|
@@ -152,7 +152,7 @@ const CustomColorControls = ({ handleInputChange, handlePickerChange, inputHex,
|
|
|
152
152
|
}),
|
|
153
153
|
/* @__PURE__ */ jsx("input", {
|
|
154
154
|
"aria-label": "Custom hex color",
|
|
155
|
-
className: "border-input bg-background text-foreground text-2xs h-6 flex-1 rounded border px-1.5 font-mono outline-none",
|
|
155
|
+
className: "border-input bg-background text-foreground text-2xs h-6 flex-1 rounded-sm border px-1.5 font-mono outline-none",
|
|
156
156
|
dir: "ltr",
|
|
157
157
|
maxLength: 6,
|
|
158
158
|
onChange: (event) => handleInputChange(event.target.value),
|
|
@@ -165,7 +165,7 @@ const CustomColorControls = ({ handleInputChange, handlePickerChange, inputHex,
|
|
|
165
165
|
value: inputHex
|
|
166
166
|
}),
|
|
167
167
|
isValidHex(inputHex) && /* @__PURE__ */ jsx("span", {
|
|
168
|
-
className: "border-border size-6 shrink-0 rounded border",
|
|
168
|
+
className: "border-border size-6 shrink-0 rounded-sm border",
|
|
169
169
|
style: { backgroundColor: `#${inputHex}` }
|
|
170
170
|
})
|
|
171
171
|
]
|
|
@@ -248,7 +248,7 @@ const ColorPickerContent = ({ value, onSelect, onClear, presets, columns, defaul
|
|
|
248
248
|
onClear && /* @__PURE__ */ jsxs(Popover.Close, {
|
|
249
249
|
render: /* @__PURE__ */ jsx("button", {
|
|
250
250
|
"aria-label": "No color",
|
|
251
|
-
className: "text-muted-foreground hover:bg-accent hover:text-accent-foreground text-2xs flex h-6 w-full items-center gap-1.5 rounded px-1",
|
|
251
|
+
className: "text-muted-foreground hover:bg-accent hover:text-accent-foreground text-2xs flex h-6 w-full items-center gap-1.5 rounded-sm px-1",
|
|
252
252
|
onClick: onClear,
|
|
253
253
|
type: "button"
|
|
254
254
|
}),
|
|
@@ -287,11 +287,10 @@ const ColorPickerContent = ({ value, onSelect, onClear, presets, columns, defaul
|
|
|
287
287
|
]
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
|
-
const ColorPicker = ({ value, onSelect, onClear, presets = DEFAULT_PRESETS, columns = 9, defaultExpanded = false, moreLabel,
|
|
290
|
+
const ColorPicker = ({ value, onSelect, onClear, presets = DEFAULT_PRESETS, columns = 9, defaultExpanded = false, moreLabel, nativeButton = true, trigger, side = "bottom", align = "start", className }) => /* @__PURE__ */ jsxs(Popover.Root, { children: [/* @__PURE__ */ jsx(Popover.Trigger, {
|
|
291
291
|
"data-slot": "color-picker-trigger",
|
|
292
|
-
nativeButton
|
|
293
|
-
render:
|
|
294
|
-
children
|
|
292
|
+
nativeButton,
|
|
293
|
+
render: trigger
|
|
295
294
|
}), /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
|
|
296
295
|
align,
|
|
297
296
|
className: OVERLAY_LAYER_CLASS_NAMES.popup,
|
|
@@ -312,5 +311,4 @@ const ColorPicker = ({ value, onSelect, onClear, presets = DEFAULT_PRESETS, colu
|
|
|
312
311
|
})
|
|
313
312
|
})
|
|
314
313
|
}) })] });
|
|
315
|
-
//#endregion
|
|
316
314
|
export { ColorPicker, ColorPickerContent, DEFAULT_PRESETS };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
3
3
|
import { ControlSize } from "../lib/control-size.js";
|
|
4
|
-
//#region src/components/combobox.d.ts
|
|
5
4
|
declare const Combobox: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => React$1.JSX.Element;
|
|
6
5
|
declare const ComboboxChipsInput: ({ className, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
|
|
7
6
|
size?: ControlSize | number;
|
|
@@ -38,5 +37,4 @@ declare const ComboboxChips: ({ className, children, startAddon, ...props }: Com
|
|
|
38
37
|
startAddon?: React$1.ReactNode;
|
|
39
38
|
}) => React$1.JSX.Element;
|
|
40
39
|
declare const ComboboxChip: ({ children, ...props }: Combobox$1.Chip.Props) => React$1.JSX.Element;
|
|
41
|
-
//#endregion
|
|
42
40
|
export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ChevronsUpDownIcon, XIcon } from "../icons.js";
|
|
3
|
-
import { cn } from "../lib/utils.js";
|
|
4
|
-
import { OVERLAY_LAYER_CLASS_NAMES } from "../lib/overlay-layer.js";
|
|
5
|
-
import { ScrollArea } from "./scroll-area.js";
|
|
6
2
|
import { containedHandler } from "../hooks/use-contained-handler.js";
|
|
3
|
+
import { ChevronsUpDownIcon, XIcon } from "../icons.js";
|
|
7
4
|
import { CONTROL_SIZE } from "../lib/control-size.js";
|
|
8
5
|
import "../lib/field-trigger.js";
|
|
6
|
+
import { OVERLAY_LAYER_CLASS_NAMES } from "../lib/overlay-layer.js";
|
|
7
|
+
import { cn } from "../lib/utils.js";
|
|
9
8
|
import { Input } from "./input.js";
|
|
9
|
+
import { ScrollArea } from "./scroll-area.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import * as React$1 from "react";
|
|
12
12
|
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
13
|
-
|
|
13
|
+
// src/components/combobox.tsx
|
|
14
14
|
const ComboboxContext = React$1.createContext({
|
|
15
15
|
chipsRef: null,
|
|
16
16
|
multiple: false
|
|
@@ -232,5 +232,4 @@ const ComboboxChipRemove = (props) => /* @__PURE__ */ jsx(Combobox$1.ChipRemove,
|
|
|
232
232
|
...props,
|
|
233
233
|
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
234
234
|
});
|
|
235
|
-
//#endregion
|
|
236
235
|
export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
|
|
@@ -4,7 +4,6 @@ import { ControlSize } from "../lib/control-size.js";
|
|
|
4
4
|
import { Dialog } from "@base-ui/react/dialog";
|
|
5
5
|
import { DialogContent as DialogPopup } from "./dialog.js";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
|
-
//#region src/components/command.d.ts
|
|
8
7
|
type CommandProps<ItemValue> = Omit<Autocomplete.Root.Props<ItemValue>, "items"> & {
|
|
9
8
|
items?: readonly ItemValue[] | undefined;
|
|
10
9
|
};
|
|
@@ -36,5 +35,4 @@ declare const CommandItem: ({ className, size, ...props }: Autocomplete.Item.Pro
|
|
|
36
35
|
declare const CommandSeparator: ({ className, ...props }: Autocomplete.Separator.Props) => React$1.JSX.Element;
|
|
37
36
|
declare const CommandShortcut: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
|
|
38
37
|
declare const CommandFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
39
|
-
//#endregion
|
|
40
38
|
export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useContentDir } from "../hooks/use-content-dir.js";
|
|
2
3
|
import { SearchIcon } from "../icons.js";
|
|
3
|
-
import { cn } from "../lib/utils.js";
|
|
4
|
-
import { MENU_ROW_CLASS_NAME } from "../lib/menu-row.js";
|
|
5
4
|
import { CONTROL_SIZE } from "../lib/control-size.js";
|
|
6
|
-
import {
|
|
5
|
+
import { MENU_ROW_CLASS_NAME } from "../lib/menu-row.js";
|
|
6
|
+
import { cn } from "../lib/utils.js";
|
|
7
7
|
import { DialogContent as DialogPopup } from "./dialog.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Dialog } from "@base-ui/react/dialog";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
11
11
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
12
|
-
|
|
12
|
+
// src/components/command.tsx
|
|
13
13
|
const Command = ({ autoHighlight = "always", keepHighlight = true, open = true, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Root, {
|
|
14
14
|
autoHighlight,
|
|
15
15
|
keepHighlight,
|
|
@@ -114,5 +114,4 @@ const CommandFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
114
114
|
"data-slot": "command-footer",
|
|
115
115
|
...props
|
|
116
116
|
});
|
|
117
|
-
//#endregion
|
|
118
117
|
export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/composer-tokens.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The tokens every composer box shares: the chat hero, the chat follow-up
|
|
4
3
|
* bar, the docked bar over documents (inspector chat, file overlay,
|
|
@@ -68,5 +67,4 @@ export declare const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background
|
|
|
68
67
|
* law home's scope and jurisdiction): quiet text with a hover surface, so
|
|
69
68
|
* the row stays subordinate to the box above it.
|
|
70
69
|
*/
|
|
71
|
-
export declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
|
|
72
|
-
//#endregion
|
|
70
|
+
export declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/composer-tokens.ts
|
|
2
2
|
/**
|
|
3
3
|
* The tokens every composer box shares: the chat hero, the chat follow-up
|
|
4
4
|
* bar, the docked bar over documents (inspector chat, file overlay,
|
|
@@ -69,5 +69,4 @@ const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background hover:bg-foreg
|
|
|
69
69
|
* the row stays subordinate to the box above it.
|
|
70
70
|
*/
|
|
71
71
|
const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
|
|
72
|
-
//#endregion
|
|
73
72
|
export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS } from "./composer-tokens.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
//#region src/components/composer.d.ts
|
|
4
3
|
type ComposerStatusRowProps = {
|
|
5
4
|
/** Left cluster: matter picker, web-search / anonymize toggles, ... */
|
|
6
5
|
start?: ReactNode | undefined;
|
|
@@ -43,5 +42,4 @@ type ComposerPickerProps<Value extends string> = {
|
|
|
43
42
|
* kind of control.
|
|
44
43
|
*/
|
|
45
44
|
export declare const ComposerPicker: <Value extends string>({ ariaLabel, icon, onChange, options, value }: ComposerPickerProps<Value>) => import("react").JSX.Element;
|
|
46
|
-
//#endregion
|
|
47
45
|
export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS };
|