@mastra/playground-ui 42.0.0-alpha.8 → 42.0.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/CHANGELOG.md +234 -0
- package/dist/Card-BjFMX3pD.js +96 -0
- package/dist/Card-BjFMX3pD.js.map +1 -0
- package/dist/{Card-CHeBhO_f.cjs → Card-WU2qkiHB.cjs} +42 -9
- package/dist/Card-WU2qkiHB.cjs.map +1 -0
- package/dist/components/Breadcrumb.cjs.js +2 -2
- package/dist/components/Breadcrumb.cjs.js.map +1 -1
- package/dist/components/Breadcrumb.es.js +2 -2
- package/dist/components/Breadcrumb.es.js.map +1 -1
- package/dist/components/Card.cjs.js +2 -1
- package/dist/components/Card.cjs.js.map +1 -1
- package/dist/components/Card.es.js +1 -1
- package/dist/components/Command.cjs.js +1 -1
- package/dist/components/Command.es.js +1 -1
- package/dist/components/Composer.cjs.js +3 -3
- package/dist/components/Composer.cjs.js.map +1 -1
- package/dist/components/Composer.es.js +3 -3
- package/dist/components/Composer.es.js.map +1 -1
- package/dist/components/DataCodeSection.cjs.js +1 -1
- package/dist/components/DataCodeSection.es.js +1 -1
- package/dist/components/DataList.cjs.js +4 -4
- package/dist/components/DataList.es.js +4 -4
- package/dist/components/DataPanel.cjs.js +1 -1
- package/dist/components/DataPanel.es.js +1 -1
- package/dist/components/DateRangeTimeline.cjs.js +1011 -0
- package/dist/components/DateRangeTimeline.cjs.js.map +1 -0
- package/dist/components/DateRangeTimeline.d.ts +2 -0
- package/dist/components/DateRangeTimeline.es.js +1005 -0
- package/dist/components/DateRangeTimeline.es.js.map +1 -0
- package/dist/components/DateTimePicker.cjs.js +4 -3
- package/dist/components/DateTimePicker.cjs.js.map +1 -1
- package/dist/components/DateTimePicker.es.js +2 -1
- package/dist/components/DateTimePicker.es.js.map +1 -1
- package/dist/components/DateTimeRangePicker.cjs.js +1 -1
- package/dist/components/DateTimeRangePicker.es.js +1 -1
- package/dist/components/EnvironmentVariablesEditor.cjs.js +1 -1
- package/dist/components/EnvironmentVariablesEditor.es.js +1 -1
- package/dist/components/FormFieldBlocks.cjs.js +1 -1
- package/dist/components/FormFieldBlocks.es.js +1 -1
- package/dist/components/HorizontalBars.cjs.js +1 -1
- package/dist/components/HorizontalBars.es.js +1 -1
- package/dist/components/ListSearch.cjs.js +1 -1
- package/dist/components/ListSearch.es.js +1 -1
- package/dist/components/LogsDataList.cjs.js +2 -2
- package/dist/components/LogsDataList.es.js +2 -2
- package/dist/components/MainSidebar.cjs.js +39 -12
- package/dist/components/MainSidebar.cjs.js.map +1 -1
- package/dist/components/MainSidebar.es.js +39 -12
- package/dist/components/MainSidebar.es.js.map +1 -1
- package/dist/components/MetricsLineChart.cjs.js +1 -1
- package/dist/components/MetricsLineChart.es.js +1 -1
- package/dist/components/SankeyChart.cjs.js +346 -46
- package/dist/components/SankeyChart.cjs.js.map +1 -1
- package/dist/components/SankeyChart.es.js +348 -49
- package/dist/components/SankeyChart.es.js.map +1 -1
- package/dist/components/ScrollArea.cjs.js +1 -1
- package/dist/components/ScrollArea.es.js +1 -1
- package/dist/components/ThreadRail.cjs.js +1 -1
- package/dist/components/ThreadRail.es.js +1 -1
- package/dist/components/Toaster.cjs.js +1 -0
- package/dist/components/Toaster.cjs.js.map +1 -1
- package/dist/components/Toaster.es.js +1 -1
- package/dist/{data-code-section-CGy0owio.js → data-code-section-BjqDCzy3.js} +2 -2
- package/dist/{data-code-section-CGy0owio.js.map → data-code-section-BjqDCzy3.js.map} +1 -1
- package/dist/{data-code-section-D5yXGjk5.cjs → data-code-section-D0BwpqvV.cjs} +2 -2
- package/dist/{data-code-section-D5yXGjk5.cjs.map → data-code-section-D0BwpqvV.cjs.map} +1 -1
- package/dist/{data-list-BwGRWaNd.cjs → data-list-CQWBPREX.cjs} +3 -3
- package/dist/{data-list-BwGRWaNd.cjs.map → data-list-CQWBPREX.cjs.map} +1 -1
- package/dist/{data-list-By3xmGvT.js → data-list-Ca8j8X2e.js} +3 -3
- package/dist/{data-list-By3xmGvT.js.map → data-list-Ca8j8X2e.js.map} +1 -1
- package/dist/{data-list-row-wrapper-D0eATMXZ.cjs → data-list-row-wrapper-D-ieH7I9.cjs} +2 -2
- package/dist/{data-list-row-wrapper-D0eATMXZ.cjs.map → data-list-row-wrapper-D-ieH7I9.cjs.map} +1 -1
- package/dist/{data-list-row-wrapper--77eZufv.js → data-list-row-wrapper-dMY1gERX.js} +2 -2
- package/dist/{data-list-row-wrapper--77eZufv.js.map → data-list-row-wrapper-dMY1gERX.js.map} +1 -1
- package/dist/{data-list-skeleton-BGvCCBtu.cjs → data-list-skeleton-C-DkvqbS.cjs} +2 -2
- package/dist/{data-list-skeleton-BGvCCBtu.cjs.map → data-list-skeleton-C-DkvqbS.cjs.map} +1 -1
- package/dist/{data-list-skeleton-rDMLgcEJ.js → data-list-skeleton-CIxMXF73.js} +2 -2
- package/dist/{data-list-skeleton-rDMLgcEJ.js.map → data-list-skeleton-CIxMXF73.js.map} +1 -1
- package/dist/{data-list-top-cell-CT5c7UVt.cjs → data-list-top-cell-CL-FVkPX.cjs} +9 -4
- package/dist/data-list-top-cell-CL-FVkPX.cjs.map +1 -0
- package/dist/{data-list-top-cell-B5qdzDE4.js → data-list-top-cell-QZpCLDIZ.js} +9 -4
- package/dist/data-list-top-cell-QZpCLDIZ.js.map +1 -0
- package/dist/{data-panel-BELvPVPG.js → data-panel-BGpCzY5K.js} +2 -2
- package/dist/{data-panel-BELvPVPG.js.map → data-panel-BGpCzY5K.js.map} +1 -1
- package/dist/{data-panel-C6Aa1nFn.cjs → data-panel-CsonAnlK.cjs} +2 -2
- package/dist/{data-panel-C6Aa1nFn.cjs.map → data-panel-CsonAnlK.cjs.map} +1 -1
- package/dist/date-picker-BpKciwOX.js +48 -0
- package/dist/date-picker-BpKciwOX.js.map +1 -0
- package/dist/date-picker-DrWmUawi.cjs +50 -0
- package/dist/date-picker-DrWmUawi.cjs.map +1 -0
- package/dist/{date-time-range-picker-BRQx-ox5.cjs → date-time-range-picker-CF4a39P7.cjs} +5 -4
- package/dist/{date-time-range-picker-BRQx-ox5.cjs.map → date-time-range-picker-CF4a39P7.cjs.map} +1 -1
- package/dist/{date-time-range-picker-Cw4Ac_rW.js → date-time-range-picker-DDNeOyj9.js} +3 -2
- package/dist/{date-time-range-picker-Cw4Ac_rW.js.map → date-time-range-picker-DDNeOyj9.js.map} +1 -1
- package/dist/domains/logs/components/logs-list-view.cjs.js +2 -2
- package/dist/domains/logs/components/logs-list-view.es.js +2 -2
- package/dist/domains/metrics/components/date-range-selector.cjs.js +1 -1
- package/dist/domains/metrics/components/date-range-selector.es.js +1 -1
- package/dist/domains/metrics/components/latency-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/latency-card-view.es.js +1 -1
- package/dist/domains/metrics/components/memory-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/memory-card-view.es.js +1 -1
- package/dist/domains/metrics/components/model-usage-cost-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/model-usage-cost-card-view.es.js +1 -1
- package/dist/domains/metrics/components/scores-card-view.cjs.js +2 -2
- package/dist/domains/metrics/components/scores-card-view.es.js +2 -2
- package/dist/domains/metrics/components/token-usage-by-agent-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/token-usage-by-agent-card-view.es.js +1 -1
- package/dist/domains/metrics/components/token-usage-timeline-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/token-usage-timeline-card-view.es.js +1 -1
- package/dist/domains/metrics/components/traces-volume-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/traces-volume-card-view.es.js +1 -1
- package/dist/domains/traces/components/span-data-panel-view.cjs.js +1 -1
- package/dist/domains/traces/components/span-data-panel-view.es.js +1 -1
- package/dist/domains/traces/components/trace-data-panel-view.cjs.js +1 -1
- package/dist/domains/traces/components/trace-data-panel-view.es.js +1 -1
- package/dist/domains/traces/components/traces-list-view.cjs.js +2 -2
- package/dist/domains/traces/components/traces-list-view.es.js +2 -2
- package/dist/ee/signals/components/signals-empty-state.cjs.js +1 -1
- package/dist/ee/signals/components/signals-empty-state.es.js +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.cjs.js +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.es.js +1 -1
- package/dist/{horizontal-bars-DmWxvGBL.js → horizontal-bars-CHoNhl-X.js} +2 -2
- package/dist/{horizontal-bars-DmWxvGBL.js.map → horizontal-bars-CHoNhl-X.js.map} +1 -1
- package/dist/{horizontal-bars-C39TYAB0.cjs → horizontal-bars-aRhVh7mi.cjs} +2 -2
- package/dist/{horizontal-bars-C39TYAB0.cjs.map → horizontal-bars-aRhVh7mi.cjs.map} +1 -1
- package/dist/{logs-data-list-BYbBzVcC.cjs → logs-data-list-4R9mXlZ5.cjs} +3 -3
- package/dist/{logs-data-list-BYbBzVcC.cjs.map → logs-data-list-4R9mXlZ5.cjs.map} +1 -1
- package/dist/{logs-data-list-DbfZpFx8.js → logs-data-list-BXLk5vqv.js} +3 -3
- package/dist/{logs-data-list-DbfZpFx8.js.map → logs-data-list-BXLk5vqv.js.map} +1 -1
- package/dist/{metrics-line-chart-ByY_VXfb.js → metrics-line-chart-COIxay_u.js} +6 -3
- package/dist/metrics-line-chart-COIxay_u.js.map +1 -0
- package/dist/{metrics-line-chart-FvsUXcL7.cjs → metrics-line-chart-kZ1Ed_ga.cjs} +6 -3
- package/dist/metrics-line-chart-kZ1Ed_ga.cjs.map +1 -0
- package/dist/{scroll-area-C3deZ3yj.cjs → scroll-area-BIaiA4t3.cjs} +7 -5
- package/dist/scroll-area-BIaiA4t3.cjs.map +1 -0
- package/dist/{scroll-area-DcY6f0GS.js → scroll-area-h3DvBR0U.js} +7 -5
- package/dist/scroll-area-h3DvBR0U.js.map +1 -0
- package/dist/{search-field-block-DaXYck0w.js → search-field-block-CMoQ9fjl.js} +3 -2
- package/dist/search-field-block-CMoQ9fjl.js.map +1 -0
- package/dist/{search-field-block-BFY5jn1F.cjs → search-field-block-DmqZsrrI.cjs} +3 -2
- package/dist/search-field-block-DmqZsrrI.cjs.map +1 -0
- package/dist/src/ds/components/Card/Card.d.ts +15 -2
- package/dist/src/ds/components/Card/index.d.ts +2 -2
- package/dist/src/ds/components/Composer/composer.d.ts +5 -1
- package/dist/src/ds/components/Composer/index.d.ts +1 -1
- package/dist/src/ds/components/DataList/data-list-cells.d.ts +3 -1
- package/dist/src/ds/components/DateRangeTimeline/DateRangeBoundaryPicker.d.ts +10 -0
- package/dist/src/ds/components/DateRangeTimeline/DateRangeBoundaryPickers.d.ts +14 -0
- package/dist/src/ds/components/DateRangeTimeline/DateRangeHandle.d.ts +15 -0
- package/dist/src/ds/components/DateRangeTimeline/DateRangeSelection.d.ts +14 -0
- package/dist/src/ds/components/DateRangeTimeline/DateRangeTicks.d.ts +8 -0
- package/dist/src/ds/components/DateRangeTimeline/DateRangeTimeline.d.ts +9 -0
- package/dist/src/ds/components/DateRangeTimeline/DateRangeTrack.d.ts +13 -0
- package/dist/src/ds/components/DateRangeTimeline/DateRangeTrackGrid.d.ts +6 -0
- package/dist/src/ds/components/DateRangeTimeline/hooks/use-pointer-drag.d.ts +14 -0
- package/dist/src/ds/components/DateRangeTimeline/hooks/useDateRangeBoundaryLayout.d.ts +8 -0
- package/dist/src/ds/components/DateRangeTimeline/hooks/useDateRangeKeyboardControls.d.ts +13 -0
- package/dist/src/ds/components/DateRangeTimeline/hooks/useDateRangePointerGestures.d.ts +21 -0
- package/dist/src/ds/components/DateRangeTimeline/hooks/useDateRangeTimelineState.d.ts +22 -0
- package/dist/src/ds/components/DateRangeTimeline/hooks/useDateRangeWheelZoom.d.ts +9 -0
- package/dist/src/ds/components/DateRangeTimeline/index.d.ts +3 -0
- package/dist/src/ds/components/DateRangeTimeline/lib/date-range-boundary-layout.d.ts +15 -0
- package/dist/src/ds/components/DateRangeTimeline/lib/date-range-timeline-grid.d.ts +7 -0
- package/dist/src/ds/components/DateRangeTimeline/lib/date-range-timeline-interactions.d.ts +37 -0
- package/dist/src/ds/components/DateRangeTimeline/lib/date-range-timeline-view-model.d.ts +37 -0
- package/dist/src/ds/components/DateRangeTimeline/lib/date-range-timeline.d.ts +29 -0
- package/dist/src/ds/components/DateRangeTimeline/types.d.ts +9 -0
- package/dist/src/ds/components/MainSidebar/main-sidebar-nav-item-classes.d.ts +8 -1
- package/dist/src/ds/components/MainSidebar/main-sidebar-nav-label.d.ts +3 -3
- package/dist/src/ds/components/MainSidebar/main-sidebar-nav-link.d.ts +12 -1
- package/dist/src/ds/components/MainSidebar/main-sidebar.d.ts +1 -0
- package/dist/src/ds/components/MetricsLineChart/metrics-line-chart.d.ts +6 -1
- package/dist/src/ds/components/SankeyChart/index.d.ts +2 -2
- package/dist/src/ds/components/SankeyChart/sankey-chart-utils.d.ts +32 -1
- package/dist/src/ds/components/SankeyChart/sankey-chart.d.ts +4 -2
- package/dist/src/ds/components/SankeyChart/sankey-context.d.ts +6 -1
- package/dist/src/ds/components/SankeyChart/use-sankey-chart-measurements.d.ts +14 -0
- package/dist/src/ds/components/ScrollArea/scroll-area.d.ts +13 -1
- package/dist/src/ds/components/Toaster/index.d.ts +1 -1
- package/dist/style.css +154 -2
- package/dist/{time-picker-kYaitcDa.cjs → time-picker-Box0pdQU.cjs} +2 -46
- package/dist/time-picker-Box0pdQU.cjs.map +1 -0
- package/dist/{time-picker-Dg78gQcJ.js → time-picker-ew9aXG86.js} +4 -47
- package/dist/time-picker-ew9aXG86.js.map +1 -0
- package/dist/{traces-data-list-DKKrObgb.js → traces-data-list-DLmFHLQ6.js} +2 -2
- package/dist/{traces-data-list-DKKrObgb.js.map → traces-data-list-DLmFHLQ6.js.map} +1 -1
- package/dist/{traces-data-list-Bh6onSDp.cjs → traces-data-list-G69pEglx.cjs} +2 -2
- package/dist/{traces-data-list-Bh6onSDp.cjs.map → traces-data-list-G69pEglx.cjs.map} +1 -1
- package/package.json +8 -8
- package/dist/Card-BOmiCU4T.js +0 -64
- package/dist/Card-BOmiCU4T.js.map +0 -1
- package/dist/Card-CHeBhO_f.cjs.map +0 -1
- package/dist/data-list-top-cell-B5qdzDE4.js.map +0 -1
- package/dist/data-list-top-cell-CT5c7UVt.cjs.map +0 -1
- package/dist/metrics-line-chart-ByY_VXfb.js.map +0 -1
- package/dist/metrics-line-chart-FvsUXcL7.cjs.map +0 -1
- package/dist/scroll-area-C3deZ3yj.cjs.map +0 -1
- package/dist/scroll-area-DcY6f0GS.js.map +0 -1
- package/dist/search-field-block-BFY5jn1F.cjs.map +0 -1
- package/dist/search-field-block-DaXYck0w.js.map +0 -1
- package/dist/time-picker-Dg78gQcJ.js.map +0 -1
- package/dist/time-picker-kYaitcDa.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,239 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 42.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added ClampedText, a design-system component that clamps text to a number of lines and shows a "Read more" toggle only when the clamp actually cuts content. Detection is based on the rendered layout (element measurement, re-checked on resize and after fonts load), not on character count. ([#19565](https://github.com/mastra-ai/mastra/pull/19565))
|
|
8
|
+
|
|
9
|
+
- Added reusable Ask User and Task List components for agent interfaces. ([#19624](https://github.com/mastra-ai/mastra/pull/19624))
|
|
10
|
+
|
|
11
|
+
- Added separate Sankey node identity, display label, display value, and layout weight accessors, plus constrained labels with full hover text. Stable layout weights can now keep node positions fixed while current record weights animate bar and ribbon sizes. ([#19871](https://github.com/mastra-ai/mastra/pull/19871))
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
<Sankey
|
|
15
|
+
data={records}
|
|
16
|
+
columns={columns}
|
|
17
|
+
getRecordNodeId={(record, column) => String(record[`${column.id}Id`])}
|
|
18
|
+
getRecordNodeLabel={(record, column) => String(record[`${column.id}Label`])}
|
|
19
|
+
getRecordNodeValue={(record, column) => Number(record[`${column.id}Count`])}
|
|
20
|
+
getRecordWeight={record => Number(record.count)}
|
|
21
|
+
getRecordLayoutWeight={record => Number(record.windowMaxCount)}
|
|
22
|
+
>
|
|
23
|
+
<SankeyChart />
|
|
24
|
+
</Sankey>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- Added compact sizing, custom interactive elements, and trailing actions to sidebar navigation items. ([#19959](https://github.com/mastra-ai/mastra/pull/19959))
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
<MainSidebar.NavLink
|
|
31
|
+
// Compact density for dense lists
|
|
32
|
+
size="sm"
|
|
33
|
+
// Bring your own interactive element (e.g. a router Link or button)
|
|
34
|
+
render={<Link to="/sessions/feature-work">Feature work</Link>}
|
|
35
|
+
// Trailing control rendered beside the row, independently clickable
|
|
36
|
+
action={
|
|
37
|
+
<Button size="icon-sm" variant="ghost" onClick={onDelete}>
|
|
38
|
+
<TrashIcon />
|
|
39
|
+
</Button>
|
|
40
|
+
}
|
|
41
|
+
/>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
- Added optional Sankey node activation with mouse and keyboard support, including per-node eligibility. ([#19896](https://github.com/mastra-ai/mastra/pull/19896))
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
<SankeyChart
|
|
48
|
+
onNodeClick={({ column, value }) => openDrilldown(column.id, value)}
|
|
49
|
+
isNodeClickable={({ value }) => drillableNodeIds.has(value)}
|
|
50
|
+
/>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- Added a `revealScrollbarOnHover` prop to `ScrollArea`. Set it to `false` to keep the overlay scrollbar hidden until the user actively scrolls, instead of also revealing it when the pointer hovers the area. Defaults to `true`, so existing usage is unchanged. ([#20037](https://github.com/mastra-ai/mastra/pull/20037))
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
<ScrollArea revealScrollbarOnHover={false}>{content}</ScrollArea>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- Added a borderless surface appearance, compact content density, and a dedicated card link component with native link semantics, plus hover, focus, and active states for interactive cards. ([#19747](https://github.com/mastra-ai/mastra/pull/19747))
|
|
60
|
+
|
|
61
|
+
- Added a composable Sankey chart with deterministic colors, gradient ribbons, connected hover feedback, percentage labels, configurable margins, and opt-in column palettes. Redesigned Signals around Agent Learning theme-flow analysis with weighted graph metrics, shared signal colors, compact distribution summaries, and a guided trace-to-signal onboarding pipeline when usable data is not yet available. Fixed the empty state to match Sankey colors and emphasize the Mastra Engine stage. ([#19472](https://github.com/mastra-ai/mastra/pull/19472))
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- dependencies updates: ([#19388](https://github.com/mastra-ai/mastra/pull/19388))
|
|
66
|
+
- Updated dependency [`prettier@^3.9.5` ↗︎](https://www.npmjs.com/package/prettier/v/3.9.5) (from `^3.8.3`, in `dependencies`)
|
|
67
|
+
|
|
68
|
+
- Added a disabled prop to DataList.SelectCell so rows can block checkbox toggling while an async selection save is pending. ([#20038](https://github.com/mastra-ai/mastra/pull/20038))
|
|
69
|
+
|
|
70
|
+
- Fixed the ClampedText read-more button to announce its expanded state to screen readers, and fixed clamp measurement so font-load re-measure and effect cleanup still run in browsers without ResizeObserver. ([#19582](https://github.com/mastra-ai/mastra/pull/19582))
|
|
71
|
+
|
|
72
|
+
- Fixed composer inputs to show one scrollbar for long messages. Added a `maxHeight` prop for configuring the scrolling viewport. ([#19876](https://github.com/mastra-ai/mastra/pull/19876))
|
|
73
|
+
|
|
74
|
+
- Exported the shared toast API through the Toaster component entry point. ([#19876](https://github.com/mastra-ai/mastra/pull/19876))
|
|
75
|
+
|
|
76
|
+
- Improved breadcrumb navigation with clearer hover and pressed feedback for clickable path segments. ([#19840](https://github.com/mastra-ai/mastra/pull/19840))
|
|
77
|
+
|
|
78
|
+
- Added reusable Composer compound components for building controlled chat inputs. ([#19470](https://github.com/mastra-ai/mastra/pull/19470))
|
|
79
|
+
|
|
80
|
+
- Fixed named form fields adding a second page scrollbar inside app scroll containers. ([#19617](https://github.com/mastra-ai/mastra/pull/19617))
|
|
81
|
+
|
|
82
|
+
- Improved sidebar density and prevented date range timelines from clipping edge labels. ([#19972](https://github.com/mastra-ai/mastra/pull/19972))
|
|
83
|
+
|
|
84
|
+
- Removed interaction hints from the date range timeline. ([#19987](https://github.com/mastra-ai/mastra/pull/19987))
|
|
85
|
+
|
|
86
|
+
- Fixed hidden search labels so search fields are announced correctly by assistive technologies. ([#19840](https://github.com/mastra-ai/mastra/pull/19840))
|
|
87
|
+
|
|
88
|
+
- Updated dependencies [[`ec857fc`](https://github.com/mastra-ai/mastra/commit/ec857fc79c264b53b38e16478c789b7177f2ad59), [`d7385ad`](https://github.com/mastra-ai/mastra/commit/d7385ad9e88f9e4f33d15c0ec0bfebedde0cbc2e), [`41a5392`](https://github.com/mastra-ai/mastra/commit/41a5392d9f6c5e18d6b227f0fc0ddf49c50774e9), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39), [`1426af2`](https://github.com/mastra-ai/mastra/commit/1426af24975879c000d13ac75673f630fcc970c1), [`a40adeb`](https://github.com/mastra-ai/mastra/commit/a40adeb222b961a56a58af56a106106525721b74), [`8a0d145`](https://github.com/mastra-ai/mastra/commit/8a0d145aadbdf7278665aceaaec364b35dd9bd94), [`bd2f1d2`](https://github.com/mastra-ai/mastra/commit/bd2f1d274d05e60e2366f005ea0d94d5cea0d5ff), [`f901b73`](https://github.com/mastra-ai/mastra/commit/f901b7363b8d21849b98c167bae168fa11d3edcf), [`e1f2fae`](https://github.com/mastra-ai/mastra/commit/e1f2faebaf048c3d4c2e2c01d293767c195d5794), [`63aa799`](https://github.com/mastra-ai/mastra/commit/63aa799c6b44eacc7806cda6846b7c5bbee06b37), [`b7e79c3`](https://github.com/mastra-ai/mastra/commit/b7e79c3c02ac5cd415db34ba0975ceafc1464333), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`da009e1`](https://github.com/mastra-ai/mastra/commit/da009e1aacd89ed94b8d1b2af09c9d4fe7c4db49), [`3b77e77`](https://github.com/mastra-ai/mastra/commit/3b77e7704936522e4769d29de1b5ea6901f302bd), [`c7d30cd`](https://github.com/mastra-ai/mastra/commit/c7d30cd86009c407df91105591f03cd6e3d2854d), [`4696604`](https://github.com/mastra-ai/mastra/commit/4696604a8db7517459e7075ed4a6924114cdbdfb), [`21a0eb8`](https://github.com/mastra-ai/mastra/commit/21a0eb86746ba0b703acea360d4f84c6a5a493f2), [`8b20926`](https://github.com/mastra-ai/mastra/commit/8b20926cd59e2ba3d66458e062fa0e6e2ada3e68), [`975295d`](https://github.com/mastra-ai/mastra/commit/975295d418552f0d46a59edfef4c3ee555f9930a), [`73db8db`](https://github.com/mastra-ai/mastra/commit/73db8db90d69ab6153c7942749f624db0d96952d), [`6b1bf3b`](https://github.com/mastra-ai/mastra/commit/6b1bf3b9494bd51aa8f654c68c9355d6046fa2a1), [`35c2181`](https://github.com/mastra-ai/mastra/commit/35c2181e6a50e47c90ba36260db7c9723d54696f), [`0a2c22c`](https://github.com/mastra-ai/mastra/commit/0a2c22c902604439ec490319e14c17f331e0c84c), [`4cfdd64`](https://github.com/mastra-ai/mastra/commit/4cfdd645794feaea0c4ea711e70ecdfbef0c5b8e), [`b75d749`](https://github.com/mastra-ai/mastra/commit/b75d749621ff5d17e86bcb4ee809d301fb4f7cf3), [`821648b`](https://github.com/mastra-ai/mastra/commit/821648bf2871ef840100c7bacbecf676010bd12a), [`de86fd7`](https://github.com/mastra-ai/mastra/commit/de86fd7119f0438381d1a642e3d258143c0b9c29), [`2fd1a51`](https://github.com/mastra-ai/mastra/commit/2fd1a510946ede90bd42de32c315f7586bfcfd20), [`2745031`](https://github.com/mastra-ai/mastra/commit/2745031d1d4a4978f037092da371428c32e2842a), [`b4b7ea8`](https://github.com/mastra-ai/mastra/commit/b4b7ea8733f033fc441ea47ed03f6afb17ec2248), [`3a8024c`](https://github.com/mastra-ai/mastra/commit/3a8024ce615f8aa89479c0d71fe61d10bb0040be), [`35865a5`](https://github.com/mastra-ai/mastra/commit/35865a53e194aa9634d6a70a97010e7a6b9d58b1), [`85e4fb5`](https://github.com/mastra-ai/mastra/commit/85e4fb50087a81c74df3a762f53b56373db0b912), [`74faf8b`](https://github.com/mastra-ai/mastra/commit/74faf8bd9c1018f2492653c06b1e25fc8300e9e6), [`ef03fbc`](https://github.com/mastra-ai/mastra/commit/ef03fbcc556bcbc04c9b3d06fab88771ecaa043c), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`70687f7`](https://github.com/mastra-ai/mastra/commit/70687f7e495a322a02070b4a67cb0c77a5ca91ec), [`1fadac4`](https://github.com/mastra-ai/mastra/commit/1fadac44537caeefe81f9f775ae2f2f3d94e9069), [`22c7ca8`](https://github.com/mastra-ai/mastra/commit/22c7ca85b893ebc9bf0113309e13d238a896bdaf), [`73db8db`](https://github.com/mastra-ai/mastra/commit/73db8db90d69ab6153c7942749f624db0d96952d), [`76b7181`](https://github.com/mastra-ai/mastra/commit/76b71810366e6d90b9d3973149d1c7ba3659ffb9), [`6040ab9`](https://github.com/mastra-ai/mastra/commit/6040ab95bdfff38fceb1c0b9781a64a6d30f3cbd), [`bed6cf4`](https://github.com/mastra-ai/mastra/commit/bed6cf440860395c3a6e5c17c0af477b8741233e), [`792ec9a`](https://github.com/mastra-ai/mastra/commit/792ec9a0869bab8274cf5e0ed2840738737a1607), [`712b864`](https://github.com/mastra-ai/mastra/commit/712b864aa1ed12b14c54390ec17b69de163c37f7), [`85e4fb5`](https://github.com/mastra-ai/mastra/commit/85e4fb50087a81c74df3a762f53b56373db0b912), [`0c0e8d7`](https://github.com/mastra-ai/mastra/commit/0c0e8d7becd4d1445c656b78d5d845f606c1ff9d), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`72e437c`](https://github.com/mastra-ai/mastra/commit/72e437c515942c80b9def5b026e0bdee61b469d9), [`8f7a5de`](https://github.com/mastra-ai/mastra/commit/8f7a5dedc246cdc938bb65516703cf9b27b03756), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`11f6cd9`](https://github.com/mastra-ai/mastra/commit/11f6cd96fe42582403416608beb212cc1a2cc79e), [`39c6753`](https://github.com/mastra-ai/mastra/commit/39c6753788a8d17278531b3381eb508747495b67), [`ef03c0c`](https://github.com/mastra-ai/mastra/commit/ef03c0cfc62367a458e4cc56462e2148b35681c5), [`39c6753`](https://github.com/mastra-ai/mastra/commit/39c6753788a8d17278531b3381eb508747495b67), [`4fb4d88`](https://github.com/mastra-ai/mastra/commit/4fb4d881bc107acee13890ad4d78661016c510ed), [`4e68363`](https://github.com/mastra-ai/mastra/commit/4e683634f94ebd062d26a3bb6093a8dfc7263d37), [`c328769`](https://github.com/mastra-ai/mastra/commit/c3287698ff8ef98dba86d415faa566fa3e5f4d56), [`9f7c67a`](https://github.com/mastra-ai/mastra/commit/9f7c67abeeb52c41c51a9b5edee60b62afe7cd8d), [`0c52047`](https://github.com/mastra-ai/mastra/commit/0c520470a4547666156b2f18eb794eb8bd2676c8), [`3b65e68`](https://github.com/mastra-ai/mastra/commit/3b65e68d7f1c771c7a70eea42d83fefdd28cad88), [`4eba27a`](https://github.com/mastra-ai/mastra/commit/4eba27adcf60f991df0e62f94b3e75b4e67f3b4b), [`c701be3`](https://github.com/mastra-ai/mastra/commit/c701be32d7d9aa94a66da8c6cc38dcac6856f464), [`db650ce`](https://github.com/mastra-ai/mastra/commit/db650ce490348914e85b93651d83acdf8f2a4c31), [`232fcbc`](https://github.com/mastra-ai/mastra/commit/232fcbc14fce625dd672ba043329c0b732c62be2), [`6354eeb`](https://github.com/mastra-ai/mastra/commit/6354eeb32efa9f5f68f51dda394e90e2ee76f1fb), [`a8799bb`](https://github.com/mastra-ai/mastra/commit/a8799bb8e44f4a60d01e4e2acd3448ff80bf14f8), [`50e0ec5`](https://github.com/mastra-ai/mastra/commit/50e0ec5a1b2f3dec9eb1333487be733ac499173c), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39), [`e3868e2`](https://github.com/mastra-ai/mastra/commit/e3868e22babfffd0133771669ca724501c2dd58e), [`9251370`](https://github.com/mastra-ai/mastra/commit/9251370ad413af464aa22d7566338bec5613e8de), [`21a0eb8`](https://github.com/mastra-ai/mastra/commit/21a0eb86746ba0b703acea360d4f84c6a5a493f2), [`3491666`](https://github.com/mastra-ai/mastra/commit/34916663c4fdd43b48c21f4ab2d5fb6dcccc94f9), [`c0bec73`](https://github.com/mastra-ai/mastra/commit/c0bec732c93d1a22ae5e51ed66cf8cacca8bd6a6)]:
|
|
89
|
+
- @mastra/core@1.52.0
|
|
90
|
+
- @mastra/client-js@1.33.0
|
|
91
|
+
- @mastra/react@1.3.0
|
|
92
|
+
- @mastra/memory@1.23.1
|
|
93
|
+
|
|
94
|
+
## 42.0.0-alpha.19
|
|
95
|
+
|
|
96
|
+
### Minor Changes
|
|
97
|
+
|
|
98
|
+
- Added a `revealScrollbarOnHover` prop to `ScrollArea`. Set it to `false` to keep the overlay scrollbar hidden until the user actively scrolls, instead of also revealing it when the pointer hovers the area. Defaults to `true`, so existing usage is unchanged. ([#20037](https://github.com/mastra-ai/mastra/pull/20037))
|
|
99
|
+
|
|
100
|
+
```tsx
|
|
101
|
+
<ScrollArea revealScrollbarOnHover={false}>{content}</ScrollArea>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- Added a disabled prop to DataList.SelectCell so rows can block checkbox toggling while an async selection save is pending. ([#20038](https://github.com/mastra-ai/mastra/pull/20038))
|
|
107
|
+
|
|
108
|
+
## 42.0.0-alpha.18
|
|
109
|
+
|
|
110
|
+
### Patch Changes
|
|
111
|
+
|
|
112
|
+
- Improved sidebar density and prevented date range timelines from clipping edge labels. ([#19972](https://github.com/mastra-ai/mastra/pull/19972))
|
|
113
|
+
|
|
114
|
+
## 42.0.0-alpha.17
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- Updated dependencies:
|
|
119
|
+
- @mastra/core@1.52.0-alpha.13
|
|
120
|
+
- @mastra/client-js@1.33.0-alpha.14
|
|
121
|
+
- @mastra/react@1.3.0-alpha.14
|
|
122
|
+
|
|
123
|
+
## 42.0.0-alpha.16
|
|
124
|
+
|
|
125
|
+
### Patch Changes
|
|
126
|
+
|
|
127
|
+
- Removed interaction hints from the date range timeline. ([#19987](https://github.com/mastra-ai/mastra/pull/19987))
|
|
128
|
+
|
|
129
|
+
## 42.0.0-alpha.15
|
|
130
|
+
|
|
131
|
+
### Minor Changes
|
|
132
|
+
|
|
133
|
+
- Added separate Sankey node identity, display label, display value, and layout weight accessors, plus constrained labels with full hover text. Stable layout weights can now keep node positions fixed while current record weights animate bar and ribbon sizes. ([#19871](https://github.com/mastra-ai/mastra/pull/19871))
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
<Sankey
|
|
137
|
+
data={records}
|
|
138
|
+
columns={columns}
|
|
139
|
+
getRecordNodeId={(record, column) => String(record[`${column.id}Id`])}
|
|
140
|
+
getRecordNodeLabel={(record, column) => String(record[`${column.id}Label`])}
|
|
141
|
+
getRecordNodeValue={(record, column) => Number(record[`${column.id}Count`])}
|
|
142
|
+
getRecordWeight={record => Number(record.count)}
|
|
143
|
+
getRecordLayoutWeight={record => Number(record.windowMaxCount)}
|
|
144
|
+
>
|
|
145
|
+
<SankeyChart />
|
|
146
|
+
</Sankey>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
- Added optional Sankey node activation with mouse and keyboard support, including per-node eligibility. ([#19896](https://github.com/mastra-ai/mastra/pull/19896))
|
|
150
|
+
|
|
151
|
+
```tsx
|
|
152
|
+
<SankeyChart
|
|
153
|
+
onNodeClick={({ column, value }) => openDrilldown(column.id, value)}
|
|
154
|
+
isNodeClickable={({ value }) => drillableNodeIds.has(value)}
|
|
155
|
+
/>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Patch Changes
|
|
159
|
+
|
|
160
|
+
- Updated dependencies [[`f901b73`](https://github.com/mastra-ai/mastra/commit/f901b7363b8d21849b98c167bae168fa11d3edcf)]:
|
|
161
|
+
- @mastra/client-js@1.33.0-alpha.13
|
|
162
|
+
- @mastra/react@1.3.0-alpha.13
|
|
163
|
+
|
|
164
|
+
## 42.0.0-alpha.14
|
|
165
|
+
|
|
166
|
+
### Minor Changes
|
|
167
|
+
|
|
168
|
+
- Added compact sizing, custom interactive elements, and trailing actions to sidebar navigation items. ([#19959](https://github.com/mastra-ai/mastra/pull/19959))
|
|
169
|
+
|
|
170
|
+
```tsx
|
|
171
|
+
<MainSidebar.NavLink
|
|
172
|
+
// Compact density for dense lists
|
|
173
|
+
size="sm"
|
|
174
|
+
// Bring your own interactive element (e.g. a router Link or button)
|
|
175
|
+
render={<Link to="/sessions/feature-work">Feature work</Link>}
|
|
176
|
+
// Trailing control rendered beside the row, independently clickable
|
|
177
|
+
action={
|
|
178
|
+
<Button size="icon-sm" variant="ghost" onClick={onDelete}>
|
|
179
|
+
<TrashIcon />
|
|
180
|
+
</Button>
|
|
181
|
+
}
|
|
182
|
+
/>
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- Updated dependencies [[`d7385ad`](https://github.com/mastra-ai/mastra/commit/d7385ad9e88f9e4f33d15c0ec0bfebedde0cbc2e), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39), [`35865a5`](https://github.com/mastra-ai/mastra/commit/35865a53e194aa9634d6a70a97010e7a6b9d58b1), [`70687f7`](https://github.com/mastra-ai/mastra/commit/70687f7e495a322a02070b4a67cb0c77a5ca91ec), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39)]:
|
|
188
|
+
- @mastra/core@1.52.0-alpha.12
|
|
189
|
+
- @mastra/client-js@1.33.0-alpha.12
|
|
190
|
+
- @mastra/react@1.3.0-alpha.12
|
|
191
|
+
|
|
192
|
+
## 42.0.0-alpha.13
|
|
193
|
+
|
|
194
|
+
### Minor Changes
|
|
195
|
+
|
|
196
|
+
- Added a borderless surface appearance, compact content density, and a dedicated card link component with native link semantics, plus hover, focus, and active states for interactive cards. ([#19747](https://github.com/mastra-ai/mastra/pull/19747))
|
|
197
|
+
|
|
198
|
+
## 42.0.0-alpha.12
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- Updated dependencies [[`c7d30cd`](https://github.com/mastra-ai/mastra/commit/c7d30cd86009c407df91105591f03cd6e3d2854d), [`ef03fbc`](https://github.com/mastra-ai/mastra/commit/ef03fbcc556bcbc04c9b3d06fab88771ecaa043c), [`6040ab9`](https://github.com/mastra-ai/mastra/commit/6040ab95bdfff38fceb1c0b9781a64a6d30f3cbd), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`4e68363`](https://github.com/mastra-ai/mastra/commit/4e683634f94ebd062d26a3bb6093a8dfc7263d37), [`9251370`](https://github.com/mastra-ai/mastra/commit/9251370ad413af464aa22d7566338bec5613e8de)]:
|
|
203
|
+
- @mastra/core@1.52.0-alpha.11
|
|
204
|
+
- @mastra/client-js@1.33.0-alpha.11
|
|
205
|
+
- @mastra/react@1.3.0-alpha.11
|
|
206
|
+
|
|
207
|
+
## 42.0.0-alpha.11
|
|
208
|
+
|
|
209
|
+
### Patch Changes
|
|
210
|
+
|
|
211
|
+
- Fixed composer inputs to show one scrollbar for long messages. Added a `maxHeight` prop for configuring the scrolling viewport. ([#19876](https://github.com/mastra-ai/mastra/pull/19876))
|
|
212
|
+
|
|
213
|
+
- Exported the shared toast API through the Toaster component entry point. ([#19876](https://github.com/mastra-ai/mastra/pull/19876))
|
|
214
|
+
|
|
215
|
+
## 42.0.0-alpha.10
|
|
216
|
+
|
|
217
|
+
### Patch Changes
|
|
218
|
+
|
|
219
|
+
- Improved breadcrumb navigation with clearer hover and pressed feedback for clickable path segments. ([#19840](https://github.com/mastra-ai/mastra/pull/19840))
|
|
220
|
+
|
|
221
|
+
- Fixed hidden search labels so search fields are announced correctly by assistive technologies. ([#19840](https://github.com/mastra-ai/mastra/pull/19840))
|
|
222
|
+
|
|
223
|
+
- Updated dependencies [[`41a5392`](https://github.com/mastra-ai/mastra/commit/41a5392d9f6c5e18d6b227f0fc0ddf49c50774e9), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`da009e1`](https://github.com/mastra-ai/mastra/commit/da009e1aacd89ed94b8d1b2af09c9d4fe7c4db49), [`35c2181`](https://github.com/mastra-ai/mastra/commit/35c2181e6a50e47c90ba36260db7c9723d54696f), [`b4b7ea8`](https://github.com/mastra-ai/mastra/commit/b4b7ea8733f033fc441ea47ed03f6afb17ec2248), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`c328769`](https://github.com/mastra-ai/mastra/commit/c3287698ff8ef98dba86d415faa566fa3e5f4d56), [`232fcbc`](https://github.com/mastra-ai/mastra/commit/232fcbc14fce625dd672ba043329c0b732c62be2), [`3491666`](https://github.com/mastra-ai/mastra/commit/34916663c4fdd43b48c21f4ab2d5fb6dcccc94f9)]:
|
|
224
|
+
- @mastra/core@1.52.0-alpha.10
|
|
225
|
+
- @mastra/client-js@1.33.0-alpha.10
|
|
226
|
+
- @mastra/react@1.3.0-alpha.10
|
|
227
|
+
|
|
228
|
+
## 42.0.0-alpha.9
|
|
229
|
+
|
|
230
|
+
### Patch Changes
|
|
231
|
+
|
|
232
|
+
- Updated dependencies [[`0a2c22c`](https://github.com/mastra-ai/mastra/commit/0a2c22c902604439ec490319e14c17f331e0c84c), [`3a8024c`](https://github.com/mastra-ai/mastra/commit/3a8024ce615f8aa89479c0d71fe61d10bb0040be)]:
|
|
233
|
+
- @mastra/core@1.52.0-alpha.9
|
|
234
|
+
- @mastra/client-js@1.33.0-alpha.9
|
|
235
|
+
- @mastra/react@1.2.6-alpha.9
|
|
236
|
+
|
|
3
237
|
## 42.0.0-alpha.8
|
|
4
238
|
|
|
5
239
|
### Patch Changes
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { c as cva } from './index-CSm06eOE.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { c as cn } from './cn-BakJzhuv.js';
|
|
5
|
+
|
|
6
|
+
const cardVariants = cva(
|
|
7
|
+
// Base styles
|
|
8
|
+
"duration-normal rounded-lg transition-all ease-out-custom motion-reduce:transition-none",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
appearance: {
|
|
12
|
+
outlined: "border border-border1 bg-surface2",
|
|
13
|
+
surface: "bg-surface3"
|
|
14
|
+
},
|
|
15
|
+
elevation: {
|
|
16
|
+
flat: "",
|
|
17
|
+
raised: "shadow-card",
|
|
18
|
+
elevated: "shadow-elevated"
|
|
19
|
+
},
|
|
20
|
+
interactive: {
|
|
21
|
+
true: "cursor-pointer active:scale-99",
|
|
22
|
+
false: ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
compoundVariants: [
|
|
26
|
+
{
|
|
27
|
+
appearance: "outlined",
|
|
28
|
+
interactive: true,
|
|
29
|
+
className: "hover:border-border2 hover:bg-surface3"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
appearance: "surface",
|
|
33
|
+
interactive: true,
|
|
34
|
+
className: "hover:bg-surface4 focus-visible:bg-surface4 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-border2 active:bg-surface5"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
appearance: "outlined",
|
|
39
|
+
elevation: "flat",
|
|
40
|
+
interactive: false
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
const Card = React.forwardRef(
|
|
45
|
+
({ className, appearance, elevation, interactive, as, ...props }, ref) => {
|
|
46
|
+
const Component = as || (interactive ? "button" : "div");
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
48
|
+
Component,
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
type: Component === "button" ? "button" : void 0,
|
|
52
|
+
className: cn(cardVariants({ appearance, elevation, interactive }), className),
|
|
53
|
+
...props
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
Card.displayName = "Card";
|
|
59
|
+
function CardLink({ className, appearance, elevation, LinkComponent: Link = "a", ...props }) {
|
|
60
|
+
return /* @__PURE__ */ jsx(Link, { className: cn(cardVariants({ appearance, elevation, interactive: true }), className), ...props });
|
|
61
|
+
}
|
|
62
|
+
const CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col space-y-1.5 p-4 pb-0", className), ...props }));
|
|
63
|
+
CardHeader.displayName = "CardHeader";
|
|
64
|
+
const CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
65
|
+
"h3",
|
|
66
|
+
{
|
|
67
|
+
ref,
|
|
68
|
+
className: cn("text-ui-md leading-none font-semibold tracking-tight text-neutral6", className),
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
));
|
|
72
|
+
CardTitle.displayName = "CardTitle";
|
|
73
|
+
const CardDescription = React.forwardRef(
|
|
74
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, className: cn("text-ui-sm text-neutral3", className), ...props })
|
|
75
|
+
);
|
|
76
|
+
CardDescription.displayName = "CardDescription";
|
|
77
|
+
const cardContentVariants = cva("", {
|
|
78
|
+
variants: {
|
|
79
|
+
density: {
|
|
80
|
+
default: "p-4",
|
|
81
|
+
compact: "p-3"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
defaultVariants: {
|
|
85
|
+
density: "default"
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
const CardContent = React.forwardRef(
|
|
89
|
+
({ className, density, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(cardContentVariants({ density }), className), ...props })
|
|
90
|
+
);
|
|
91
|
+
CardContent.displayName = "CardContent";
|
|
92
|
+
const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center p-4 pt-0", className), ...props }));
|
|
93
|
+
CardFooter.displayName = "CardFooter";
|
|
94
|
+
|
|
95
|
+
export { Card as C, CardContent as a, CardDescription as b, CardFooter as c, CardHeader as d, CardLink as e, CardTitle as f };
|
|
96
|
+
//# sourceMappingURL=Card-BjFMX3pD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card-BjFMX3pD.js","sources":["../src/ds/components/Card/Card.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport type { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport type { LinkComponent } from '@/ds/types/link-component';\nimport { cn } from '@/lib/utils';\n\nconst cardVariants = cva(\n // Base styles\n 'duration-normal rounded-lg transition-all ease-out-custom motion-reduce:transition-none',\n {\n variants: {\n appearance: {\n outlined: 'border border-border1 bg-surface2',\n surface: 'bg-surface3',\n },\n elevation: {\n flat: '',\n raised: 'shadow-card',\n elevated: 'shadow-elevated',\n },\n interactive: {\n true: 'cursor-pointer active:scale-99',\n false: '',\n },\n },\n compoundVariants: [\n {\n appearance: 'outlined',\n interactive: true,\n className: 'hover:border-border2 hover:bg-surface3',\n },\n {\n appearance: 'surface',\n interactive: true,\n className:\n 'hover:bg-surface4 focus-visible:bg-surface4 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-border2 active:bg-surface5',\n },\n ],\n defaultVariants: {\n appearance: 'outlined',\n elevation: 'flat',\n interactive: false,\n },\n },\n);\n\nexport type CardProps = React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof cardVariants> & {\n as?: React.ElementType;\n };\n\nexport const Card = React.forwardRef<HTMLDivElement, CardProps>(\n ({ className, appearance, elevation, interactive, as, ...props }, ref) => {\n const Component = as || (interactive ? 'button' : 'div');\n\n return (\n <Component\n ref={ref}\n type={Component === 'button' ? 'button' : undefined}\n className={cn(cardVariants({ appearance, elevation, interactive }), className)}\n {...props}\n />\n );\n },\n);\nCard.displayName = 'Card';\n\nexport type CardLinkProps = Omit<React.ComponentPropsWithoutRef<'a'>, 'href'> &\n Omit<VariantProps<typeof cardVariants>, 'interactive'> & {\n href: string;\n LinkComponent?: LinkComponent;\n };\n\nexport function CardLink({ className, appearance, elevation, LinkComponent: Link = 'a', ...props }: CardLinkProps) {\n return <Link className={cn(cardVariants({ appearance, elevation, interactive: true }), className)} {...props} />;\n}\n\n// Card Header component\nexport type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const CardHeader = React.forwardRef<HTMLDivElement, CardHeaderProps>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex flex-col space-y-1.5 p-4 pb-0', className)} {...props} />\n));\nCardHeader.displayName = 'CardHeader';\n\n// Card Title component\nexport type CardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nexport const CardTitle = React.forwardRef<HTMLHeadingElement, CardTitleProps>(({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn('text-ui-md leading-none font-semibold tracking-tight text-neutral6', className)}\n {...props}\n />\n));\nCardTitle.displayName = 'CardTitle';\n\n// Card Description component\nexport type CardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;\n\nexport const CardDescription = React.forwardRef<HTMLParagraphElement, CardDescriptionProps>(\n ({ className, ...props }, ref) => <p ref={ref} className={cn('text-ui-sm text-neutral3', className)} {...props} />,\n);\nCardDescription.displayName = 'CardDescription';\n\n// Card Content component\nconst cardContentVariants = cva('', {\n variants: {\n density: {\n default: 'p-4',\n compact: 'p-3',\n },\n },\n defaultVariants: {\n density: 'default',\n },\n});\n\nexport type CardContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardContentVariants>;\n\nexport const CardContent = React.forwardRef<HTMLDivElement, CardContentProps>(\n ({ className, density, ...props }, ref) => (\n <div ref={ref} className={cn(cardContentVariants({ density }), className)} {...props} />\n ),\n);\nCardContent.displayName = 'CardContent';\n\n// Card Footer component\nexport type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const CardFooter = React.forwardRef<HTMLDivElement, CardFooterProps>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex items-center p-4 pt-0', className)} {...props} />\n));\nCardFooter.displayName = 'CardFooter';\n"],"names":[],"mappings":";;;;;AAMA,MAAM,YAAA,GAAe,GAAA;AAAA;AAAA,EAEnB,yFAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,UAAA,EAAY;AAAA,QACV,QAAA,EAAU,mCAAA;AAAA,QACV,OAAA,EAAS;AAAA,OACX;AAAA,MACA,SAAA,EAAW;AAAA,QACT,IAAA,EAAM,EAAA;AAAA,QACN,MAAA,EAAQ,aAAA;AAAA,QACR,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,WAAA,EAAa;AAAA,QACX,IAAA,EAAM,gCAAA;AAAA,QACN,KAAA,EAAO;AAAA;AACT,KACF;AAAA,IACA,gBAAA,EAAkB;AAAA,MAChB;AAAA,QACE,UAAA,EAAY,UAAA;AAAA,QACZ,WAAA,EAAa,IAAA;AAAA,QACb,SAAA,EAAW;AAAA,OACb;AAAA,MACA;AAAA,QACE,UAAA,EAAY,SAAA;AAAA,QACZ,WAAA,EAAa,IAAA;AAAA,QACb,SAAA,EACE;AAAA;AACJ,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,UAAA,EAAY,UAAA;AAAA,MACZ,SAAA,EAAW,MAA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;"}
|
|
@@ -26,41 +26,60 @@ const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
26
26
|
|
|
27
27
|
const cardVariants = index.cva(
|
|
28
28
|
// Base styles
|
|
29
|
-
"duration-normal rounded-lg
|
|
29
|
+
"duration-normal rounded-lg transition-all ease-out-custom motion-reduce:transition-none",
|
|
30
30
|
{
|
|
31
31
|
variants: {
|
|
32
|
+
appearance: {
|
|
33
|
+
outlined: "border border-border1 bg-surface2",
|
|
34
|
+
surface: "bg-surface3"
|
|
35
|
+
},
|
|
32
36
|
elevation: {
|
|
33
37
|
flat: "",
|
|
34
38
|
raised: "shadow-card",
|
|
35
39
|
elevated: "shadow-elevated"
|
|
36
40
|
},
|
|
37
41
|
interactive: {
|
|
38
|
-
true: "
|
|
42
|
+
true: "cursor-pointer active:scale-99",
|
|
39
43
|
false: ""
|
|
40
44
|
}
|
|
41
45
|
},
|
|
46
|
+
compoundVariants: [
|
|
47
|
+
{
|
|
48
|
+
appearance: "outlined",
|
|
49
|
+
interactive: true,
|
|
50
|
+
className: "hover:border-border2 hover:bg-surface3"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
appearance: "surface",
|
|
54
|
+
interactive: true,
|
|
55
|
+
className: "hover:bg-surface4 focus-visible:bg-surface4 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-border2 active:bg-surface5"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
42
58
|
defaultVariants: {
|
|
59
|
+
appearance: "outlined",
|
|
43
60
|
elevation: "flat",
|
|
44
61
|
interactive: false
|
|
45
62
|
}
|
|
46
63
|
}
|
|
47
64
|
);
|
|
48
65
|
const Card = React__namespace.forwardRef(
|
|
49
|
-
({ className, elevation, interactive, as, ...props }, ref) => {
|
|
50
|
-
const Component = as || "div";
|
|
66
|
+
({ className, appearance, elevation, interactive, as, ...props }, ref) => {
|
|
67
|
+
const Component = as || (interactive ? "button" : "div");
|
|
51
68
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
69
|
Component,
|
|
53
70
|
{
|
|
54
71
|
ref,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
tabIndex: interactive ? 0 : void 0,
|
|
72
|
+
type: Component === "button" ? "button" : void 0,
|
|
73
|
+
className: utils_cn.cn(cardVariants({ appearance, elevation, interactive }), className),
|
|
58
74
|
...props
|
|
59
75
|
}
|
|
60
76
|
);
|
|
61
77
|
}
|
|
62
78
|
);
|
|
63
79
|
Card.displayName = "Card";
|
|
80
|
+
function CardLink({ className, appearance, elevation, LinkComponent: Link = "a", ...props }) {
|
|
81
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Link, { className: utils_cn.cn(cardVariants({ appearance, elevation, interactive: true }), className), ...props });
|
|
82
|
+
}
|
|
64
83
|
const CardHeader = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: utils_cn.cn("flex flex-col space-y-1.5 p-4 pb-0", className), ...props }));
|
|
65
84
|
CardHeader.displayName = "CardHeader";
|
|
66
85
|
const CardTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -76,7 +95,20 @@ const CardDescription = React__namespace.forwardRef(
|
|
|
76
95
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("p", { ref, className: utils_cn.cn("text-ui-sm text-neutral3", className), ...props })
|
|
77
96
|
);
|
|
78
97
|
CardDescription.displayName = "CardDescription";
|
|
79
|
-
const
|
|
98
|
+
const cardContentVariants = index.cva("", {
|
|
99
|
+
variants: {
|
|
100
|
+
density: {
|
|
101
|
+
default: "p-4",
|
|
102
|
+
compact: "p-3"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
defaultVariants: {
|
|
106
|
+
density: "default"
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const CardContent = React__namespace.forwardRef(
|
|
110
|
+
({ className, density, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: utils_cn.cn(cardContentVariants({ density }), className), ...props })
|
|
111
|
+
);
|
|
80
112
|
CardContent.displayName = "CardContent";
|
|
81
113
|
const CardFooter = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: utils_cn.cn("flex items-center p-4 pt-0", className), ...props }));
|
|
82
114
|
CardFooter.displayName = "CardFooter";
|
|
@@ -86,5 +118,6 @@ exports.CardContent = CardContent;
|
|
|
86
118
|
exports.CardDescription = CardDescription;
|
|
87
119
|
exports.CardFooter = CardFooter;
|
|
88
120
|
exports.CardHeader = CardHeader;
|
|
121
|
+
exports.CardLink = CardLink;
|
|
89
122
|
exports.CardTitle = CardTitle;
|
|
90
|
-
//# sourceMappingURL=Card-
|
|
123
|
+
//# sourceMappingURL=Card-WU2qkiHB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card-WU2qkiHB.cjs","sources":["../src/ds/components/Card/Card.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport type { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport type { LinkComponent } from '@/ds/types/link-component';\nimport { cn } from '@/lib/utils';\n\nconst cardVariants = cva(\n // Base styles\n 'duration-normal rounded-lg transition-all ease-out-custom motion-reduce:transition-none',\n {\n variants: {\n appearance: {\n outlined: 'border border-border1 bg-surface2',\n surface: 'bg-surface3',\n },\n elevation: {\n flat: '',\n raised: 'shadow-card',\n elevated: 'shadow-elevated',\n },\n interactive: {\n true: 'cursor-pointer active:scale-99',\n false: '',\n },\n },\n compoundVariants: [\n {\n appearance: 'outlined',\n interactive: true,\n className: 'hover:border-border2 hover:bg-surface3',\n },\n {\n appearance: 'surface',\n interactive: true,\n className:\n 'hover:bg-surface4 focus-visible:bg-surface4 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-border2 active:bg-surface5',\n },\n ],\n defaultVariants: {\n appearance: 'outlined',\n elevation: 'flat',\n interactive: false,\n },\n },\n);\n\nexport type CardProps = React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof cardVariants> & {\n as?: React.ElementType;\n };\n\nexport const Card = React.forwardRef<HTMLDivElement, CardProps>(\n ({ className, appearance, elevation, interactive, as, ...props }, ref) => {\n const Component = as || (interactive ? 'button' : 'div');\n\n return (\n <Component\n ref={ref}\n type={Component === 'button' ? 'button' : undefined}\n className={cn(cardVariants({ appearance, elevation, interactive }), className)}\n {...props}\n />\n );\n },\n);\nCard.displayName = 'Card';\n\nexport type CardLinkProps = Omit<React.ComponentPropsWithoutRef<'a'>, 'href'> &\n Omit<VariantProps<typeof cardVariants>, 'interactive'> & {\n href: string;\n LinkComponent?: LinkComponent;\n };\n\nexport function CardLink({ className, appearance, elevation, LinkComponent: Link = 'a', ...props }: CardLinkProps) {\n return <Link className={cn(cardVariants({ appearance, elevation, interactive: true }), className)} {...props} />;\n}\n\n// Card Header component\nexport type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const CardHeader = React.forwardRef<HTMLDivElement, CardHeaderProps>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex flex-col space-y-1.5 p-4 pb-0', className)} {...props} />\n));\nCardHeader.displayName = 'CardHeader';\n\n// Card Title component\nexport type CardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nexport const CardTitle = React.forwardRef<HTMLHeadingElement, CardTitleProps>(({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn('text-ui-md leading-none font-semibold tracking-tight text-neutral6', className)}\n {...props}\n />\n));\nCardTitle.displayName = 'CardTitle';\n\n// Card Description component\nexport type CardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;\n\nexport const CardDescription = React.forwardRef<HTMLParagraphElement, CardDescriptionProps>(\n ({ className, ...props }, ref) => <p ref={ref} className={cn('text-ui-sm text-neutral3', className)} {...props} />,\n);\nCardDescription.displayName = 'CardDescription';\n\n// Card Content component\nconst cardContentVariants = cva('', {\n variants: {\n density: {\n default: 'p-4',\n compact: 'p-3',\n },\n },\n defaultVariants: {\n density: 'default',\n },\n});\n\nexport type CardContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardContentVariants>;\n\nexport const CardContent = React.forwardRef<HTMLDivElement, CardContentProps>(\n ({ className, density, ...props }, ref) => (\n <div ref={ref} className={cn(cardContentVariants({ density }), className)} {...props} />\n ),\n);\nCardContent.displayName = 'CardContent';\n\n// Card Footer component\nexport type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const CardFooter = React.forwardRef<HTMLDivElement, CardFooterProps>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex items-center p-4 pt-0', className)} {...props} />\n));\nCardFooter.displayName = 'CardFooter';\n"],"names":["cva","React","jsx","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,YAAA,GAAeA,SAAA;AAAA;AAAA,EAEnB,yFAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,UAAA,EAAY;AAAA,QACV,QAAA,EAAU,mCAAA;AAAA,QACV,OAAA,EAAS;AAAA,OACX;AAAA,MACA,SAAA,EAAW;AAAA,QACT,IAAA,EAAM,EAAA;AAAA,QACN,MAAA,EAAQ,aAAA;AAAA,QACR,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,WAAA,EAAa;AAAA,QACX,IAAA,EAAM,gCAAA;AAAA,QACN,KAAA,EAAO;AAAA;AACT,KACF;AAAA,IACA,gBAAA,EAAkB;AAAA,MAChB;AAAA,QACE,UAAA,EAAY,UAAA;AAAA,QACZ,WAAA,EAAa,IAAA;AAAA,QACb,SAAA,EAAW;AAAA,OACb;AAAA,MACA;AAAA,QACE,UAAA,EAAY,SAAA;AAAA,QACZ,WAAA,EAAa,IAAA;AAAA,QACb,SAAA,EACE;AAAA;AACJ,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,UAAA,EAAY,UAAA;AAAA,MACZ,SAA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nF;AACD,UAAA,CAAW,WAAA,GAAc,YAAA;;;;;;;;;;"}
|
|
@@ -20,9 +20,9 @@ const Crumb = ({ className, as, isCurrent, action, ...props }) => {
|
|
|
20
20
|
{
|
|
21
21
|
"aria-current": isCurrent ? "page" : void 0,
|
|
22
22
|
className: utils_cn.cn(
|
|
23
|
-
"flex min-w-0 items-center gap-2 truncate text-ui-md leading-ui-md",
|
|
23
|
+
"flex min-w-0 items-center gap-2 truncate rounded-md px-1 text-ui-md leading-ui-md",
|
|
24
24
|
primitives_transitions.transitions.colors,
|
|
25
|
-
isCurrent ? "font-medium text-neutral6" : "text-neutral3 hover:text-neutral5",
|
|
25
|
+
isCurrent ? "font-medium text-neutral6" : "cursor-pointer text-neutral3 hover:bg-neutral6/5 hover:text-neutral5 active:bg-neutral6/10",
|
|
26
26
|
className
|
|
27
27
|
),
|
|
28
28
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.cjs.js","sources":["../../src/ds/components/Breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Icon } from '../../icons/Icon';\nimport { SlashIcon } from '../../icons/SlashIcon';\nimport { transitions } from '@/ds/primitives/transitions';\nimport { cn } from '@/lib/utils';\n\nexport interface BreadcrumbProps {\n children?: React.ReactNode;\n label?: string;\n className?: string;\n listClassName?: string;\n}\n\nexport const Breadcrumb = ({ children, label, className, listClassName }: BreadcrumbProps) => {\n return (\n <nav aria-label={label} className={className}>\n <ol className={cn('flex items-center gap-0.5', listClassName)}>{children}</ol>\n </nav>\n );\n};\n\nexport interface CrumbProps {\n isCurrent?: boolean;\n as: React.ElementType;\n className?: string;\n to?: string;\n prefetch?: boolean | null;\n children: React.ReactNode;\n action?: React.ReactNode;\n 'data-testid'?: string;\n}\n\nexport const Crumb = ({ className, as, isCurrent, action, ...props }: CrumbProps) => {\n const Root = as || 'span';\n\n return (\n <>\n <li className={cn('flex h-full min-w-0 items-center gap-1', isCurrent ? 'shrink' : 'shrink-0')}>\n <Root\n aria-current={isCurrent ? 'page' : undefined}\n className={cn(\n 'flex min-w-0 items-center gap-2 truncate text-ui-md leading-ui-md',\n transitions.colors,\n isCurrent
|
|
1
|
+
{"version":3,"file":"Breadcrumb.cjs.js","sources":["../../src/ds/components/Breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Icon } from '../../icons/Icon';\nimport { SlashIcon } from '../../icons/SlashIcon';\nimport { transitions } from '@/ds/primitives/transitions';\nimport { cn } from '@/lib/utils';\n\nexport interface BreadcrumbProps {\n children?: React.ReactNode;\n label?: string;\n className?: string;\n listClassName?: string;\n}\n\nexport const Breadcrumb = ({ children, label, className, listClassName }: BreadcrumbProps) => {\n return (\n <nav aria-label={label} className={className}>\n <ol className={cn('flex items-center gap-0.5', listClassName)}>{children}</ol>\n </nav>\n );\n};\n\nexport interface CrumbProps {\n isCurrent?: boolean;\n as: React.ElementType;\n className?: string;\n to?: string;\n prefetch?: boolean | null;\n children: React.ReactNode;\n action?: React.ReactNode;\n 'data-testid'?: string;\n}\n\nexport const Crumb = ({ className, as, isCurrent, action, ...props }: CrumbProps) => {\n const Root = as || 'span';\n\n return (\n <>\n <li className={cn('flex h-full min-w-0 items-center gap-1', isCurrent ? 'shrink' : 'shrink-0')}>\n <Root\n aria-current={isCurrent ? 'page' : undefined}\n className={cn(\n 'flex min-w-0 items-center gap-2 truncate rounded-md px-1 text-ui-md leading-ui-md',\n transitions.colors,\n isCurrent\n ? 'font-medium text-neutral6'\n : 'cursor-pointer text-neutral3 hover:bg-neutral6/5 hover:text-neutral5 active:bg-neutral6/10',\n className,\n )}\n {...props}\n />\n {action}\n </li>\n {!isCurrent && (\n <li role=\"separator\" className=\"flex h-full items-center\">\n <Icon className={cn('text-neutral2', transitions.colors)}>\n <SlashIcon />\n </Icon>\n </li>\n )}\n </>\n );\n};\n"],"names":["jsx","cn","jsxs","Fragment","transitions","Icon","SlashIcon"],"mappings":";;;;;;;;;;AAcO,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 +16,9 @@ const Crumb = ({ className, as, isCurrent, action, ...props }) => {
|
|
|
16
16
|
{
|
|
17
17
|
"aria-current": isCurrent ? "page" : void 0,
|
|
18
18
|
className: cn(
|
|
19
|
-
"flex min-w-0 items-center gap-2 truncate text-ui-md leading-ui-md",
|
|
19
|
+
"flex min-w-0 items-center gap-2 truncate rounded-md px-1 text-ui-md leading-ui-md",
|
|
20
20
|
transitions.colors,
|
|
21
|
-
isCurrent ? "font-medium text-neutral6" : "text-neutral3 hover:text-neutral5",
|
|
21
|
+
isCurrent ? "font-medium text-neutral6" : "cursor-pointer text-neutral3 hover:bg-neutral6/5 hover:text-neutral5 active:bg-neutral6/10",
|
|
22
22
|
className
|
|
23
23
|
),
|
|
24
24
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.es.js","sources":["../../src/ds/components/Breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Icon } from '../../icons/Icon';\nimport { SlashIcon } from '../../icons/SlashIcon';\nimport { transitions } from '@/ds/primitives/transitions';\nimport { cn } from '@/lib/utils';\n\nexport interface BreadcrumbProps {\n children?: React.ReactNode;\n label?: string;\n className?: string;\n listClassName?: string;\n}\n\nexport const Breadcrumb = ({ children, label, className, listClassName }: BreadcrumbProps) => {\n return (\n <nav aria-label={label} className={className}>\n <ol className={cn('flex items-center gap-0.5', listClassName)}>{children}</ol>\n </nav>\n );\n};\n\nexport interface CrumbProps {\n isCurrent?: boolean;\n as: React.ElementType;\n className?: string;\n to?: string;\n prefetch?: boolean | null;\n children: React.ReactNode;\n action?: React.ReactNode;\n 'data-testid'?: string;\n}\n\nexport const Crumb = ({ className, as, isCurrent, action, ...props }: CrumbProps) => {\n const Root = as || 'span';\n\n return (\n <>\n <li className={cn('flex h-full min-w-0 items-center gap-1', isCurrent ? 'shrink' : 'shrink-0')}>\n <Root\n aria-current={isCurrent ? 'page' : undefined}\n className={cn(\n 'flex min-w-0 items-center gap-2 truncate text-ui-md leading-ui-md',\n transitions.colors,\n isCurrent
|
|
1
|
+
{"version":3,"file":"Breadcrumb.es.js","sources":["../../src/ds/components/Breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Icon } from '../../icons/Icon';\nimport { SlashIcon } from '../../icons/SlashIcon';\nimport { transitions } from '@/ds/primitives/transitions';\nimport { cn } from '@/lib/utils';\n\nexport interface BreadcrumbProps {\n children?: React.ReactNode;\n label?: string;\n className?: string;\n listClassName?: string;\n}\n\nexport const Breadcrumb = ({ children, label, className, listClassName }: BreadcrumbProps) => {\n return (\n <nav aria-label={label} className={className}>\n <ol className={cn('flex items-center gap-0.5', listClassName)}>{children}</ol>\n </nav>\n );\n};\n\nexport interface CrumbProps {\n isCurrent?: boolean;\n as: React.ElementType;\n className?: string;\n to?: string;\n prefetch?: boolean | null;\n children: React.ReactNode;\n action?: React.ReactNode;\n 'data-testid'?: string;\n}\n\nexport const Crumb = ({ className, as, isCurrent, action, ...props }: CrumbProps) => {\n const Root = as || 'span';\n\n return (\n <>\n <li className={cn('flex h-full min-w-0 items-center gap-1', isCurrent ? 'shrink' : 'shrink-0')}>\n <Root\n aria-current={isCurrent ? 'page' : undefined}\n className={cn(\n 'flex min-w-0 items-center gap-2 truncate rounded-md px-1 text-ui-md leading-ui-md',\n transitions.colors,\n isCurrent\n ? 'font-medium text-neutral6'\n : 'cursor-pointer text-neutral3 hover:bg-neutral6/5 hover:text-neutral5 active:bg-neutral6/10',\n className,\n )}\n {...props}\n />\n {action}\n </li>\n {!isCurrent && (\n <li role=\"separator\" className=\"flex h-full items-center\">\n <Icon className={cn('text-neutral2', transitions.colors)}>\n <SlashIcon />\n </Icon>\n </li>\n )}\n </>\n );\n};\n"],"names":[],"mappings":";;;;;;AAcO,MAAM,aAAa,CAAC,EAAE,UAAU,KAAA,EAAO,SAAA,EAAW,eAAc,KAAuB;AAC5F,EAAA,uBACE,GAAA,CAAC,KAAA,EAAA,EAAI,YAAA,EAAY,KA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6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,5 +11,6 @@ exports.CardContent = Card.CardContent;
|
|
|
11
11
|
exports.CardDescription = Card.CardDescription;
|
|
12
12
|
exports.CardFooter = Card.CardFooter;
|
|
13
13
|
exports.CardHeader = Card.CardHeader;
|
|
14
|
+
exports.CardLink = Card.CardLink;
|
|
14
15
|
exports.CardTitle = Card.CardTitle;
|
|
15
16
|
//# sourceMappingURL=Card.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Card, a as CardContent, b as CardDescription, c as CardFooter, d as CardHeader, e as CardTitle } from '../Card-
|
|
1
|
+
export { C as Card, a as CardContent, b as CardDescription, c as CardFooter, d as CardHeader, e as CardLink, f as CardTitle } from '../Card-BjFMX3pD.js';
|
|
2
2
|
//# sourceMappingURL=Card.es.js.map
|
|
@@ -7,7 +7,7 @@ const cmdk = require('cmdk');
|
|
|
7
7
|
const lucideReact = require('lucide-react');
|
|
8
8
|
const React = require('react');
|
|
9
9
|
const dialog = require('../dialog-XVpF4nQ5.cjs');
|
|
10
|
-
const scrollArea = require('../scroll-area-
|
|
10
|
+
const scrollArea = require('../scroll-area-BIaiA4t3.cjs');
|
|
11
11
|
const primitives_transitions = require('../primitives/transitions.cjs.js');
|
|
12
12
|
const utils_cn = require('../cn-vA5sWo9W.cjs');
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
3
3
|
import { Search } from 'lucide-react';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { D as Dialog, c as DialogContent, i as DialogTitle, d as DialogDescription } from '../dialog-DhjOHEDT.js';
|
|
6
|
-
import { S as ScrollArea } from '../scroll-area-
|
|
6
|
+
import { S as ScrollArea } from '../scroll-area-h3DvBR0U.js';
|
|
7
7
|
import { transitions } from '../primitives/transitions.es.js';
|
|
8
8
|
import { c as cn } from '../cn-BakJzhuv.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
require('../Composer.css');const jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
const React = require('react');
|
|
7
|
-
const scrollArea = require('../scroll-area-
|
|
7
|
+
const scrollArea = require('../scroll-area-BIaiA4t3.cjs');
|
|
8
8
|
const utils_cn = require('../cn-vA5sWo9W.cjs');
|
|
9
9
|
|
|
10
10
|
const Composer = React.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("form", { ref, "data-slot": "composer", ...props, children }));
|
|
@@ -42,13 +42,13 @@ const ComposerAttachments = React.forwardRef(
|
|
|
42
42
|
);
|
|
43
43
|
ComposerAttachments.displayName = "ComposerAttachments";
|
|
44
44
|
const ComposerInput = React.forwardRef(
|
|
45
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea, { maxHeight
|
|
45
|
+
({ className, maxHeight = "212px", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea, { maxHeight, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
46
46
|
"textarea",
|
|
47
47
|
{
|
|
48
48
|
ref,
|
|
49
49
|
"data-slot": "composer-input",
|
|
50
50
|
className: utils_cn.cn(
|
|
51
|
-
"min-h-17 field-sizing-content w-full resize-none bg-transparent px-3 pt-3 pb-2 text-ui-lg leading-ui-lg text-neutral6 outline-hidden placeholder:text-neutral3 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
51
|
+
"min-h-17 field-sizing-content w-full resize-none overflow-hidden bg-transparent px-3 pt-3 pb-2 text-ui-lg leading-ui-lg text-neutral6 outline-hidden placeholder:text-neutral3 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
52
52
|
className
|
|
53
53
|
),
|
|
54
54
|
...props
|