@espressif/dashboard-ui-components 1.13.0 → 1.14.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.
Files changed (170) hide show
  1. package/.claude/rules/dashboard-ui-consumption.md +41 -0
  2. package/.cursor/rules/dashboard-ui-consumption.mdc +39 -1
  3. package/CHANGELOG.md +222 -0
  4. package/README.md +50 -4
  5. package/dist/{alert.props-CcKo49Rb.d.ts → alert.props-BuLuWmXA.d.ts} +3 -3
  6. package/dist/common/copyright-card/copyright-card.js +1 -1
  7. package/dist/common/footer-card/footer-card.js +2 -2
  8. package/dist/common/index.d.ts +3 -0
  9. package/dist/common/my-account-menu/my-account-menu.js +2 -2
  10. package/dist/common/page-loader/page-loader.js +4 -1
  11. package/dist/common/profile-card/profile-card.js +2 -2
  12. package/dist/components/accordion/accordion.js +6 -11
  13. package/dist/components/alert/index.d.ts +5 -5
  14. package/dist/components/anchored-panel/anchored-panel.js +4 -4
  15. package/dist/components/async-multi-select/async-multi-select.js +8 -8
  16. package/dist/components/badge/index.d.ts +1 -1
  17. package/dist/components/bottom-sheet/_hooks/use-sheet-drag.js +112 -0
  18. package/dist/components/bottom-sheet/bottom-sheet.js +84 -0
  19. package/dist/components/bottom-sheet/index.d.ts +50 -0
  20. package/dist/components/bottom-sheet/index.js +3 -0
  21. package/dist/components/bubble/bubble.js +1 -1
  22. package/dist/components/calendar/calendar.js +5 -5
  23. package/dist/components/cards/animated-card/animated-card.js +1 -1
  24. package/dist/components/cards/basic-details-card.js +2 -2
  25. package/dist/components/cards/collapsible-card.js +1 -1
  26. package/dist/components/cards/index.d.ts +2 -2
  27. package/dist/components/cards/no-data-card/no-data-card.js +2 -2
  28. package/dist/components/cards/section-card.js +12 -12
  29. package/dist/components/cards/simple-card.js +2 -5
  30. package/dist/components/category-card/category-card.js +2 -2
  31. package/dist/components/chart/chart.js +4 -4
  32. package/dist/components/chart/donut-chart.js +1 -1
  33. package/dist/components/chart/treemap-chart.js +1 -1
  34. package/dist/components/choice-card/choice-card.js +3 -3
  35. package/dist/components/code-editor/code-editor.js +4 -3
  36. package/dist/components/data-table/table-header.js +1 -1
  37. package/dist/components/date-range-picker/date-range-picker.js +3 -3
  38. package/dist/components/dynamic-list/dynamic-list.js +14 -13
  39. package/dist/components/dynamic-list/index.d.ts +1 -1
  40. package/dist/components/error-display/full-size-error/full-size-error.js +2 -2
  41. package/dist/components/expandable-text/expandable-text-overlay.js +1 -1
  42. package/dist/components/facet-filters/filter-group.js +2 -2
  43. package/dist/components/feature-grid/feature-grid.js +3 -3
  44. package/dist/components/file-input/file-input.js +8 -8
  45. package/dist/components/file-upload/file-upload.js +4 -4
  46. package/dist/components/fullscreen-dialog/fullscreen-dialog.js +1 -1
  47. package/dist/components/gradient-ring-button/_hooks/use-ring-geometry.js +116 -0
  48. package/dist/components/gradient-ring-button/gradient-ring-button.js +44 -0
  49. package/dist/components/gradient-ring-button/gradient-ring.js +77 -0
  50. package/dist/components/gradient-ring-button/index.d.ts +66 -0
  51. package/dist/components/gradient-ring-button/index.js +3 -0
  52. package/dist/components/horizontal-stepper/horizontal-stepper.js +2 -6
  53. package/dist/components/horizontal-stepper/index.d.ts +1 -1
  54. package/dist/components/icon-avatar/index.d.ts +3 -3
  55. package/dist/components/icon-text-action-card/index.d.ts +4 -4
  56. package/dist/components/index.d.ts +9 -7
  57. package/dist/components/index.js +5 -1
  58. package/dist/components/key-value-manager/key-value-manager-add-popover.js +1 -1
  59. package/dist/components/key-value-manager/key-value-manager-table.js +1 -1
  60. package/dist/components/link/link.js +7 -7
  61. package/dist/components/list/list-item.utils.js +5 -4
  62. package/dist/components/list/list.js +1 -1
  63. package/dist/components/list-details/index.d.ts +2 -2
  64. package/dist/components/markdown-content/markdown-content.components.js +2 -2
  65. package/dist/components/media-card/media-card-reveal.js +2 -2
  66. package/dist/components/media-card/media-card.js +2 -2
  67. package/dist/components/monospace-content/index.d.ts +4 -4
  68. package/dist/components/monospace-content/monospace-content.js +9 -11
  69. package/dist/components/nav-bar/nav-bar-mobile-menu.js +3 -3
  70. package/dist/components/nav-bar/nav-bar.js +4 -4
  71. package/dist/components/notice-strip/notice-strip.js +1 -1
  72. package/dist/components/option-card-group/option-card-group.js +2 -2
  73. package/dist/components/overflow-badge-list/index.d.ts +2 -2
  74. package/dist/components/overflow-badge-list/overflow-badge-list.js +3 -3
  75. package/dist/components/page-banner/page-banner.js +1 -1
  76. package/dist/components/page-container/page-container.js +1 -1
  77. package/dist/components/pagination/pagination.js +1 -1
  78. package/dist/components/progress-bar/progress-bar.js +2 -2
  79. package/dist/components/qr-code/qr-code.js +2 -2
  80. package/dist/components/radio-group/radio-group.js +3 -3
  81. package/dist/components/range-field/range-field.js +9 -12
  82. package/dist/components/readout/readout.js +1 -1
  83. package/dist/components/requirement-list/requirement-list.js +5 -10
  84. package/dist/components/scrollable-sections/scrollable-sections.js +1 -1
  85. package/dist/components/search-field-shell.js +8 -8
  86. package/dist/components/selectable-card-list/selectable-card-list-shared.js +6 -6
  87. package/dist/components/showcase-card/showcase-card.js +2 -2
  88. package/dist/components/sidebar/sidebar.js +13 -15
  89. package/dist/components/simple-clickable-card/index.d.ts +4 -4
  90. package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +17 -23
  91. package/dist/components/simple-info-card/index.d.ts +3 -3
  92. package/dist/components/simple-list/index.d.ts +1 -1
  93. package/dist/components/simple-list/simple-list.js +8 -8
  94. package/dist/components/simple-paginated-list/simple-paginated-list.js +1 -4
  95. package/dist/components/stat-card/stat-card.js +7 -13
  96. package/dist/components/status-badge/index.d.ts +3 -3
  97. package/dist/components/status-badge/status-badge.js +4 -4
  98. package/dist/components/status-card-list/status-card-list.js +6 -6
  99. package/dist/components/tag/index.d.ts +1 -1
  100. package/dist/components/tag/tag.js +4 -4
  101. package/dist/components/tag-input/tag-input.js +12 -12
  102. package/dist/components/timeline/timeline.js +2 -2
  103. package/dist/components/toast/index.d.ts +1 -1
  104. package/dist/components/toast/toast.js +2 -2
  105. package/dist/components/toolbar/index.d.ts +5 -2
  106. package/dist/components/toolbar/toolbar-button.js +1 -1
  107. package/dist/components/toolbar/toolbar.js +9 -3
  108. package/dist/components/trace/trace.js +1 -1
  109. package/dist/components/transfer-list/transfer-list.js +2 -2
  110. package/dist/components/typography/index.d.ts +12 -3
  111. package/dist/components/typography/typography-variants.js +98 -13
  112. package/dist/components/typography/typography.js +4 -2
  113. package/dist/components/user-type-badge/user-type-badge.js +4 -4
  114. package/dist/components/vertical-stepper/vertical-stepper.js +11 -7
  115. package/dist/core/alert.js +3 -3
  116. package/dist/core/animate-ui/components/animate/code-header.js +1 -1
  117. package/dist/core/animate-ui/components/animate/code.js +1 -1
  118. package/dist/core/animate-ui/components/animate/tabs.js +6 -6
  119. package/dist/core/animate-ui/components/animate/tooltip.js +1 -1
  120. package/dist/core/animate-ui/components/base/progress.js +2 -2
  121. package/dist/core/animate-ui/components/radix/accordion.js +2 -2
  122. package/dist/core/animate-ui/components/radix/dialog.js +2 -2
  123. package/dist/core/animate-ui/components/radix/dropdown-menu.js +6 -6
  124. package/dist/core/animate-ui/components/radix/sheet.js +2 -2
  125. package/dist/core/animate-ui/components/radix/sidebar.js +8 -8
  126. package/dist/core/animate-ui/components/radix/toggle.js +1 -1
  127. package/dist/core/badge.js +1 -1
  128. package/dist/core/breadcrumb.js +1 -1
  129. package/dist/core/button/button.js +2 -2
  130. package/dist/core/button-group.js +1 -1
  131. package/dist/core/button.js +2 -2
  132. package/dist/core/card.js +2 -2
  133. package/dist/core/combobox/combobox.js +3 -3
  134. package/dist/core/command.js +5 -5
  135. package/dist/core/field-label-row.js +4 -4
  136. package/dist/core/form.js +2 -2
  137. package/dist/core/index.d.ts +1 -1
  138. package/dist/core/input/input.js +11 -11
  139. package/dist/core/input-otp/input-otp.js +12 -12
  140. package/dist/core/label.js +1 -1
  141. package/dist/core/select.js +6 -6
  142. package/dist/core/separator.js +1 -1
  143. package/dist/core/table.js +2 -2
  144. package/dist/core/textarea/textarea.js +9 -9
  145. package/dist/{icon-avatar.props-RYtw2eSW.d.ts → icon-avatar.props-BJe0-vva.d.ts} +1 -1
  146. package/dist/{icon-text-action-card.props-B2ggncUK.d.ts → icon-text-action-card.props-BU7yFi2Q.d.ts} +2 -2
  147. package/dist/index.d.ts +9 -7
  148. package/dist/index.js +6 -2
  149. package/dist/layouts/entry-layout/entry-layout.js +1 -1
  150. package/dist/layouts/index.d.ts +21 -6
  151. package/dist/layouts/index.js +1 -1
  152. package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +10 -18
  153. package/dist/layouts/minimal-workspace-layout/sidebar-trigger.js +35 -7
  154. package/dist/layouts/workspace-layout/footer/footer.js +1 -1
  155. package/dist/markdown/index.d.ts +4 -4
  156. package/dist/{section-card-B7c5uc08.d.ts → section-card-DqQeQkzU.d.ts} +1 -1
  157. package/dist/{simple-clickable-card.props-BrPCw7CR.d.ts → simple-clickable-card.props-BhhotZMp.d.ts} +2 -2
  158. package/dist/{status-badge.props-lKlEOfRt.d.ts → status-badge.props-BVe8CmQZ.d.ts} +1 -1
  159. package/dist/styles/type-scale.js +153 -0
  160. package/dist/tailwind-preset.js +120 -1
  161. package/dist/toast/index.d.ts +1 -1
  162. package/dist/utils/cn.js +16 -5
  163. package/dist/utils/index.d.ts +31 -2
  164. package/dist/utils/index.js +2 -1
  165. package/dist/utils/variant.js +47 -47
  166. package/dist/{variant-D81RhpbR.d.ts → variant-DjdaxfIA.d.ts} +6 -1
  167. package/package.json +3 -1
  168. package/src/styles/theme.css +8 -3
  169. package/src/styles/type-scale.css +152 -0
  170. package/tailwind.preset.ts +23 -0
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { A as AppName, C as Color, P as PresetColor, S as Size } from './index-BQANnKs9.js';
2
- export { P as PRESET_GRADIENT_BACKDROP, a as PRESET_GRADIENT_FRAME, V as VARIANTS, b as VARIANT_GRADIENT_BACKDROP_BASE, c as VARIANT_GRADIENT_DURATION_CLASS, d as VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, e as VARIANT_GRADIENT_TRANSITION_DURATION_MS, f as Variant, g as VariantRecipe, h as VariantRegistry, i as VariantStyles, j as arbitraryGradientBackgroundImage, l as listVariants, r as registerVariant, k as resolveVariantStyles } from './variant-D81RhpbR.js';
2
+ export { P as PRESET_GRADIENT_BACKDROP, a as PRESET_GRADIENT_FRAME, V as VARIANTS, b as VARIANT_GRADIENT_BACKDROP_BASE, c as VARIANT_GRADIENT_DURATION_CLASS, d as VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, e as VARIANT_GRADIENT_TRANSITION_DURATION_MS, f as Variant, g as VariantRecipe, h as VariantRegistry, i as VariantStyles, j as arbitraryGradientBackgroundImage, l as listVariants, r as registerVariant, k as resolveVariantStyles } from './variant-DjdaxfIA.js';
3
3
  export { B as BORDERS, a as Border, b as BorderRegistry, D as DENSITIES, c as Density, d as DensityProps, e as DensityRegistry, f as DensityTokens, E as ELEVATIONS, g as Elevation, h as ElevationRegistry, R as RADII, i as Radius, j as RadiusRegistry, S as StyleAxis, k as StyleAxisProps, l as StyleValueAxis, m as densityStyle, n as listStyleValues, r as registerDensity, o as registerStyleValue, p as resolveDensity, q as resolveStyleValue, u as useStyleAxes } from './style-axes-DSQ2DGc5.js';
4
4
  export { StyleRole, StyleScope, StyleScopeProps } from './components/style-scope/index.js';
5
5
  export { TruncatedLineWithTooltip, TruncatedLineWithTooltipProps } from './components/truncated-line-with-tooltip/index.js';
@@ -34,6 +34,7 @@ export { ViewMode, ViewToggle, ViewToggleLabels, ViewToggleProps } from './compo
34
34
  export { Toolbar, ToolbarButton, ToolbarButtonProps, ToolbarProps } from './components/toolbar/index.js';
35
35
  export { AnchoredPanel, AnchoredPanelProps } from './components/anchored-panel/index.js';
36
36
  export { FloatingWindow, FloatingWindowPosition, FloatingWindowProps } from './components/floating-window/index.js';
37
+ export { BottomSheet, BottomSheetLabels, BottomSheetProps, SheetRest, settleSheet } from './components/bottom-sheet/index.js';
37
38
  export { NoticeStrip, NoticeStripProps, NoticeTone } from './components/notice-strip/index.js';
38
39
  export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleContentProps, TraceCollapsibleProps, TraceCollapsibleTrigger, TraceCollapsibleTriggerProps, TraceDescription, TraceDescriptionProps, TraceIcon, TraceIconProps, TraceLine, TraceLineProps, TraceProps, TraceStatus, TraceTitle, TraceTitleProps } from './components/trace/index.js';
39
40
  export { Readout, ReadoutProps, ReadoutSegment } from './components/readout/index.js';
@@ -65,6 +66,7 @@ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScro
65
66
  export { B as Button, a as ButtonIconOnlyBreakpoint, b as ButtonProps } from './button-BxJ7s6sR.js';
66
67
  export { CopyButton, CopyButtonProps, FlashButton, FlashButtonProps, InvertButton, InvertButtonProps } from './components/button/index.js';
67
68
  export { ReactionButton, ReactionButtonProps } from './components/reaction-button/index.js';
69
+ export { GradientRing, GradientRingButton, GradientRingButtonProps, GradientRingProps } from './components/gradient-ring-button/index.js';
68
70
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from './components/button-group/index.js';
69
71
  export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/card/index.js';
70
72
  export { AreaChart, AreaChartProps, BarChart, BarChartProps, BarSize, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, ChartCategoryColorKey, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartLegendLayout, ChartLegendList, ChartLegendListItem, ChartLegendListProps, ChartLegendOptions, ChartLegendValue, ChartSeriesColorKey, ChartStyle, ChartTooltip, ChartTooltipContent, ComposedChart, ComposedChartProps, ComposedChartSeries, DEFAULT_CHART_SERIES_COLORS, DonutChart, DonutChartProps, DonutDatum, LineChart, LineChartProps, LineStrokeWidth, TreemapAnimationEasing, TreemapChart, TreemapChartProps, TreemapDatum, TreemapTileLabelStyle, buildSeriesChartConfig, getChartSeriesColor } from './components/chart/index.js';
@@ -107,12 +109,12 @@ export { ShareMenu, ShareMenuLabels, ShareMenuProps, ShareTarget } from './compo
107
109
  export { Timeline, TimelineItem, TimelineLabels, TimelineProps } from './components/timeline/index.js';
108
110
  export { Identicon, IdenticonProps } from './components/identicon/index.js';
109
111
  export { IconAvatar } from './components/icon-avatar/index.js';
110
- export { I as IconAvatarProps, a as IconAvatarRingProps, b as IconAvatarVariant } from './icon-avatar.props-RYtw2eSW.js';
112
+ export { I as IconAvatarProps, a as IconAvatarRingProps, b as IconAvatarVariant } from './icon-avatar.props-BJe0-vva.js';
111
113
  export { Illustration, IllustrationProps, IllustrationType, illustrationRegistry, illustrationsById, parseSvgViewBoxAspectRatio } from './components/illustration/index.js';
112
114
  export { Badge, BadgeProps, badgeVariants } from './components/badge/index.js';
113
115
  export { UserType, UserTypeBadge, UserTypeBadgeProps, UserTypeBadgeRegistryItem, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes } from './components/user-type-badge/index.js';
114
116
  export { StatusBadge, statusBadgeSizeVariants } from './components/status-badge/index.js';
115
- export { S as StatusBadgeIcon, a as StatusBadgeProps } from './status-badge.props-lKlEOfRt.js';
117
+ export { S as StatusBadgeIcon, a as StatusBadgeProps } from './status-badge.props-BVe8CmQZ.js';
116
118
  export { Tag, TagProps } from './components/tag/index.js';
117
119
  export { TagInput, TagInputProps } from './components/tag-input/index.js';
118
120
  export { TransferItem, TransferList, TransferListProps } from './components/transfer-list/index.js';
@@ -132,7 +134,7 @@ export { RequirementList, RequirementListItem, RequirementListProps, Requirement
132
134
  export { SimpleList, SimpleListAvatarSize, SimpleListIconStyle, SimpleListItem, SimpleListItemDirection, SimpleListProps } from './components/simple-list/index.js';
133
135
  export { SimplePaginatedList, SimplePaginatedListItem, SimplePaginatedListProps, SimplePaginatedListSize } from './components/simple-paginated-list/index.js';
134
136
  export { Alert } from './components/alert/index.js';
135
- export { A as AlertColor, a as AlertIconAvatarVariant, b as AlertProps, c as AlertSize, d as AlertType, e as AlertVariant } from './alert.props-CcKo49Rb.js';
137
+ export { A as AlertColor, a as AlertIconAvatarVariant, b as AlertProps, c as AlertSize, d as AlertType, e as AlertVariant } from './alert.props-BuLuWmXA.js';
136
138
  export { Toast, ToastColor, ToastId, ToastInput, ToastOptions, ToastProps, ToastToasterProps, ToastType, ToastVariant, Toaster, toast } from './components/toast/index.js';
137
139
  export { MarkdownContent, MarkdownContentProps } from './components/markdown-content/index.js';
138
140
  export { MonospaceContent, MonospaceContentProps } from './components/monospace-content/index.js';
@@ -145,11 +147,11 @@ export { CircularProgress, CircularProgressProps } from './components/circular-p
145
147
  export { ProgressBar, ProgressBarProps, ProgressBarSegment } from './components/progress-bar/index.js';
146
148
  export { FullSizeError, FullSizeErrorProps, InlineError, InlineErrorProps } from './components/error-display/index.js';
147
149
  export { AnimatedCard, AnimatedCardProps, AnimatedCardType, BasicDetailsCard, BasicDetailsCardProps, CollapsibleCard, CollapsibleCardProps, NoDataCard, NoDataCardProps, SimpleCard, SimpleCardProps, animatedCardAnimations, animatedCardTypeKeys } from './components/cards/index.js';
148
- export { S as SectionCard, a as SectionCardProps, b as SectionCardSize, c as SectionCardVariant } from './section-card-B7c5uc08.js';
150
+ export { S as SectionCard, a as SectionCardProps, b as SectionCardSize, c as SectionCardVariant } from './section-card-DqQeQkzU.js';
149
151
  export { IconTextActionCard } from './components/icon-text-action-card/index.js';
150
- export { I as IconTextActionCardActionsPlacement, a as IconTextActionCardProps, b as IconTextActionCardVariant } from './icon-text-action-card.props-B2ggncUK.js';
152
+ export { I as IconTextActionCardActionsPlacement, a as IconTextActionCardProps, b as IconTextActionCardVariant } from './icon-text-action-card.props-BU7yFi2Q.js';
151
153
  export { SimpleClickableCard } from './components/simple-clickable-card/index.js';
152
- export { S as SimpleClickableCardProps, a as SimpleClickableCardSharedProps, b as SimpleClickableCardVariant } from './simple-clickable-card.props-BrPCw7CR.js';
154
+ export { S as SimpleClickableCardProps, a as SimpleClickableCardSharedProps, b as SimpleClickableCardVariant } from './simple-clickable-card.props-BhhotZMp.js';
153
155
  export { CategoryCard, CategoryCardProps } from './components/category-card/index.js';
154
156
  export { SimpleInfoCard, SimpleInfoCardProps } from './components/simple-info-card/index.js';
155
157
  export { GlitchText, GlitchTextProps, GradientText, GradientTextProps, HighlightText, HighlightTextProps, ShimmeringText, ShimmeringTextProps, parseTextMarkup } from './components/text-effects/index.js';
package/dist/index.js CHANGED
@@ -67,6 +67,8 @@ import { ToolbarButton } from "./components/toolbar/toolbar-button.js";
67
67
  import { Badge, badgeVariants } from "./core/badge.js";
68
68
  import { AnchoredPanel } from "./components/anchored-panel/anchored-panel.js";
69
69
  import { FloatingWindow } from "./components/floating-window/floating-window.js";
70
+ import { settleSheet } from "./components/bottom-sheet/_hooks/use-sheet-drag.js";
71
+ import { BottomSheet } from "./components/bottom-sheet/bottom-sheet.js";
70
72
  import { IconTextActionCard } from "./components/icon-text-action-card/icon-text-action-card.js";
71
73
  import { Alert } from "./components/alert/alert.js";
72
74
  import { NoticeStrip } from "./components/notice-strip/notice-strip.js";
@@ -115,6 +117,8 @@ import { OptionCardGroup } from "./components/option-card-group/option-card-grou
115
117
  import { StepTabs } from "./components/step-tabs/step-tabs.js";
116
118
  import { StatCard } from "./components/stat-card/stat-card.js";
117
119
  import { ReactionButton } from "./components/reaction-button/reaction-button.js";
120
+ import { GradientRing } from "./components/gradient-ring-button/gradient-ring.js";
121
+ import { GradientRingButton } from "./components/gradient-ring-button/gradient-ring-button.js";
118
122
  import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "./core/button-group.js";
119
123
  import { ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/chart/chart.js";
120
124
  import { CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, DEFAULT_CHART_SERIES_COLORS, buildSeriesChartConfig, getChartSeriesColor } from "./components/chart/chart-colors.js";
@@ -200,7 +204,7 @@ import Header from "./layouts/workspace-layout/header/header.js";
200
204
  import Footer from "./layouts/workspace-layout/footer/footer.js";
201
205
  import AccountMenu from "./layouts/workspace-layout/account-menu/account-menu.js";
202
206
  import WorkspaceLayout from "./layouts/workspace-layout/workspace-layout.js";
203
- import MinimalWorkspaceLayout from "./layouts/minimal-workspace-layout/minimal-workspace-layout.js";
204
207
  import { MinimalWorkspaceSidebarTrigger } from "./layouts/minimal-workspace-layout/sidebar-trigger.js";
208
+ import MinimalWorkspaceLayout from "./layouts/minimal-workspace-layout/minimal-workspace-layout.js";
205
209
  import EntryLayout from "./layouts/entry-layout/entry-layout.js";
206
- export { Accordion, AccountMenu, ActiveFilters, AdvancedSearchBox, Alert, AnchoredPanel, AnimatedCard, AnimatedRainmakerLogo, AppLogo, AreaChart, AsyncCombobox, AsyncMultiSelect, Avatar, AvatarGroup, BORDERS, Badge, BarChart, BasicDetailsCard, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardRail, CardTitle, Carousel, CategoryCard, ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent, CheckBadge, Checkbox, ChoiceCard, CircularProgress, Code, CodeEditor, Collapsible, CollapsibleCard, CollapsibleContent, CollapsibleTrigger, ColumnPanel, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, CopyButton, CopyrightCard, Coverflow, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DENSITIES, DataTable, DataTableRowActions, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicList, ELEVATIONS, EntryLayout, ExpandableText, FeatureGrid, FileInput, FileUpload, FilterGroup, FiltersBar, FiltersPanel, FiltersPill, FlashButton, FlipCard, FloatingWindow, FooterCard, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, GlitchText, GradientText, HighlightText, HorizontalStepper, IconAvatar, IconTextActionCard, Identicon, Illustration, InlineError, Input, InputGroup, InputGroupAddon, InputGroupTextarea, InputOTP, InputOTPSeparator, InputPassword, InvertButton, KeyValueManager, Keyframes, KeyframesMotion, LIST_CLASS_NAMES, Label, LineChart, Link, List, ListDetails, LottieAnimationContainer, MarkdownContent, MediaCard, MediaCardAction, MediaCardBody, MediaCardFooter, MediaCardImage, MediaCardLink, MediaCardMedia, MediaCardMeta, MediaCardReveal, MediaCardRevealChips, MediaCardRevealFooter, MediaCardRevealItem, MediaCardTitle, MediaStage, Menu, MessageScroller, MiniBarChart, MinimalWorkspaceLayout, MinimalWorkspaceSidebarTrigger, MonospaceContent, MyAccountMenu, NavBar, NoDataCard, NoticeStrip, OptionCardGroup, OverflowBadgeList, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, PRESET_IDS, PRESET_LABELS, PageBanner, PageContainer, PageContainerSkeleton, PageLoader, Pagination, PopCollectionItem, Popover, PopoverAnchor, PopoverContent, PopoverGroup, PopoverTrigger, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProfileCard, ProgressBar, QrCode, RADII, ROLLING_PRESET_IDS, RadioGroup, RangeField, RankNumeral, ReactionButton, Readout, RequirementList, ResizableGroup, ResizablePanel, ResizableSeparator, Reveal, ScrollArea, ScrollBar, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, Separator, ShareMenu, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShimmeringText, ShowcaseCard, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, Sidebar$1 as SidebarPrimitive, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Skeleton, SortMenu, Spinner, StatCard, StatusBadge, StatusCardList, StepTabs, StyleScope, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, ThumbnailStrip, TimePicker, Timeline, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, Tooltip, TooltipContent, TooltipProvider, Tooltip$1 as TooltipRoot, TooltipTrigger, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle, TransferList, TreemapChart, TruncatedLineWithTooltip, Typography, UserTypeBadge, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, VerificationInProgress, VerticalStepper, ViewToggle, Footer as WorkspaceFooter, Header as WorkspaceHeader, WorkspaceLayout, animatedCardAnimations, animatedCardTypeKeys, arbitraryGradientBackgroundImage, badgeVariants, buildSeriesChartConfig, buttonGroupVariants, buttonVariants, cn, computeDateRange, densityStyle, easeOutSplines, getChartSeriesColor, illustrationRegistry, illustrationsById, isSidebarGroup, keyTimes, listStyleValues, listVariants, parseSvgViewBoxAspectRatio, parseTextMarkup, registerDensity, registerStyleValue, registerVariant, resolveDensity, resolveStyleValue, resolveVariantStyles, statusBadgeSizeVariants, supportsViewTransitions, toast, typographyDefaultElement, typographyVariantClasses, useControlledState, useFiltersCollapsed, useFormField, useIsMobile, usePanelFlag, useSidebar, useStyleAxes, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
210
+ export { Accordion, AccountMenu, ActiveFilters, AdvancedSearchBox, Alert, AnchoredPanel, AnimatedCard, AnimatedRainmakerLogo, AppLogo, AreaChart, AsyncCombobox, AsyncMultiSelect, Avatar, AvatarGroup, BORDERS, Badge, BarChart, BasicDetailsCard, BottomSheet, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardRail, CardTitle, Carousel, CategoryCard, ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent, CheckBadge, Checkbox, ChoiceCard, CircularProgress, Code, CodeEditor, Collapsible, CollapsibleCard, CollapsibleContent, CollapsibleTrigger, ColumnPanel, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, CopyButton, CopyrightCard, Coverflow, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DENSITIES, DataTable, DataTableRowActions, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicList, ELEVATIONS, EntryLayout, ExpandableText, FeatureGrid, FileInput, FileUpload, FilterGroup, FiltersBar, FiltersPanel, FiltersPill, FlashButton, FlipCard, FloatingWindow, FooterCard, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, GlitchText, GradientRing, GradientRingButton, GradientText, HighlightText, HorizontalStepper, IconAvatar, IconTextActionCard, Identicon, Illustration, InlineError, Input, InputGroup, InputGroupAddon, InputGroupTextarea, InputOTP, InputOTPSeparator, InputPassword, InvertButton, KeyValueManager, Keyframes, KeyframesMotion, LIST_CLASS_NAMES, Label, LineChart, Link, List, ListDetails, LottieAnimationContainer, MarkdownContent, MediaCard, MediaCardAction, MediaCardBody, MediaCardFooter, MediaCardImage, MediaCardLink, MediaCardMedia, MediaCardMeta, MediaCardReveal, MediaCardRevealChips, MediaCardRevealFooter, MediaCardRevealItem, MediaCardTitle, MediaStage, Menu, MessageScroller, MiniBarChart, MinimalWorkspaceLayout, MinimalWorkspaceSidebarTrigger, MonospaceContent, MyAccountMenu, NavBar, NoDataCard, NoticeStrip, OptionCardGroup, OverflowBadgeList, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, PRESET_IDS, PRESET_LABELS, PageBanner, PageContainer, PageContainerSkeleton, PageLoader, Pagination, PopCollectionItem, Popover, PopoverAnchor, PopoverContent, PopoverGroup, PopoverTrigger, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProfileCard, ProgressBar, QrCode, RADII, ROLLING_PRESET_IDS, RadioGroup, RangeField, RankNumeral, ReactionButton, Readout, RequirementList, ResizableGroup, ResizablePanel, ResizableSeparator, Reveal, ScrollArea, ScrollBar, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, Separator, ShareMenu, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShimmeringText, ShowcaseCard, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, Sidebar$1 as SidebarPrimitive, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Skeleton, SortMenu, Spinner, StatCard, StatusBadge, StatusCardList, StepTabs, StyleScope, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, ThumbnailStrip, TimePicker, Timeline, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, Tooltip, TooltipContent, TooltipProvider, Tooltip$1 as TooltipRoot, TooltipTrigger, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle, TransferList, TreemapChart, TruncatedLineWithTooltip, Typography, UserTypeBadge, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, VerificationInProgress, VerticalStepper, ViewToggle, Footer as WorkspaceFooter, Header as WorkspaceHeader, WorkspaceLayout, animatedCardAnimations, animatedCardTypeKeys, arbitraryGradientBackgroundImage, badgeVariants, buildSeriesChartConfig, buttonGroupVariants, buttonVariants, cn, computeDateRange, densityStyle, easeOutSplines, getChartSeriesColor, illustrationRegistry, illustrationsById, isSidebarGroup, keyTimes, listStyleValues, listVariants, parseSvgViewBoxAspectRatio, parseTextMarkup, registerDensity, registerStyleValue, registerVariant, resolveDensity, resolveStyleValue, resolveVariantStyles, settleSheet, statusBadgeSizeVariants, supportsViewTransitions, toast, typographyDefaultElement, typographyVariantClasses, useControlledState, useFiltersCollapsed, useFormField, useIsMobile, usePanelFlag, useSidebar, useStyleAxes, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
@@ -28,7 +28,7 @@ function EntryLayout({ appName, children, backgroundImageUrl, heading, darkMode,
28
28
  className: "flex-1 flex flex-col items-center justify-center main-content",
29
29
  children
30
30
  }), !hideFooter && /* @__PURE__ */ jsx("div", {
31
- className: "shrink-0 text-center text-xs text-muted-foreground footer-card-wrapper py-10",
31
+ className: "shrink-0 text-center type-caption text-muted-foreground footer-card-wrapper py-10",
32
32
  children: /* @__PURE__ */ jsx(FooterCard, {})
33
33
  })] })]
34
34
  })
@@ -220,7 +220,10 @@ interface MinimalWorkspaceLayoutLabels {
220
220
  expandSidebar?: string;
221
221
  /** Collapse button beside the expanded logo. Default "Collapse sidebar". */
222
222
  collapseSidebar?: string;
223
- /** Menu button in the mobile top bar. Default "Open menu". */
223
+ /**
224
+ * Menu button in the mobile top bar, or `MinimalWorkspaceSidebarTrigger` on
225
+ * mobile with `hideMobileTopBar`. Default "Open menu".
226
+ */
224
227
  openMenu?: string;
225
228
  /**
226
229
  * `MinimalWorkspaceSidebarTrigger` while a `hideWhenCollapsed` sidebar is
@@ -248,10 +251,20 @@ interface MinimalWorkspaceLayoutProps extends Omit<WorkspaceLayoutProps, "sideba
248
251
  headerConfig?: WorkspaceHeaderConfig;
249
252
  /**
250
253
  * Floats over the main content at its top-right corner (desktop); sits at the
251
- * end of the top bar on mobile. Any node. It catches pointer events only on
252
- * itself, not on the space around it.
254
+ * end of the top bar on mobile, or floats there too with `hideMobileTopBar`.
255
+ * Any node. It catches pointer events only on itself, not on the space
256
+ * around it.
253
257
  */
254
258
  topRightContent?: ReactNode;
259
+ /**
260
+ * On mobile, draw no top bar (menu button, mobile logo, `topRightContent`)
261
+ * above the content: for a page that has a toolbar of its own, so a phone
262
+ * does not show two bars. The page then carries the way into the
263
+ * navigation: a `MinimalWorkspaceSidebarTrigger` in its toolbar becomes the
264
+ * menu button on mobile (opens the menu sheet, `labels.openMenu`).
265
+ * `topRightContent` floats over the content as on desktop. Default false.
266
+ */
267
+ hideMobileTopBar?: boolean;
255
268
  /**
256
269
  * Whether the sidebar starts expanded when uncontrolled. **Defaults to
257
270
  * `false`** (WorkspaceLayout's defaults to `true`).
@@ -274,9 +287,11 @@ type MinimalWorkspaceSidebarTriggerProps = Omit<ComponentProps<typeof Button>, "
274
287
  /**
275
288
  * A button that opens the sidebar inline and closes it again: the app's own
276
289
  * handle on a `hideWhenCollapsed` sidebar, usually placed in `topRightContent`
277
- * (it also expands and collapses the icon rail). Must render inside
278
- * `MinimalWorkspaceLayout`. Renders nothing when the sidebar is not
279
- * `expandable`, and on mobile, where the top bar has its own menu button.
290
+ * or the page's own toolbar (it also expands and collapses the icon rail).
291
+ * Must render inside `MinimalWorkspaceLayout`. On desktop it renders nothing
292
+ * when the sidebar is not `expandable`. On mobile it renders nothing while the
293
+ * layout's top bar carries the menu button; with `hideMobileTopBar` it is that
294
+ * menu button, opening the menu sheet.
280
295
  */
281
296
  declare function MinimalWorkspaceSidebarTrigger({ className, ...props }: MinimalWorkspaceSidebarTriggerProps): React.JSX.Element | null;
282
297
 
@@ -3,7 +3,7 @@ import Header from "./workspace-layout/header/header.js";
3
3
  import Footer from "./workspace-layout/footer/footer.js";
4
4
  import AccountMenu from "./workspace-layout/account-menu/account-menu.js";
5
5
  import WorkspaceLayout from "./workspace-layout/workspace-layout.js";
6
- import MinimalWorkspaceLayout from "./minimal-workspace-layout/minimal-workspace-layout.js";
7
6
  import { MinimalWorkspaceSidebarTrigger } from "./minimal-workspace-layout/sidebar-trigger.js";
7
+ import MinimalWorkspaceLayout from "./minimal-workspace-layout/minimal-workspace-layout.js";
8
8
  import EntryLayout from "./entry-layout/entry-layout.js";
9
9
  export { AccountMenu, EntryLayout, MinimalWorkspaceLayout, MinimalWorkspaceSidebarTrigger, Footer as WorkspaceFooter, Header as WorkspaceHeader, WorkspaceLayout, isSidebarGroup };
@@ -1,5 +1,4 @@
1
1
  import { cn } from "../../utils/cn.js";
2
- import { Button } from "../../components/button/button.js";
3
2
  import { SidebarInset, SidebarProvider, useSidebar } from "../../core/animate-ui/components/radix/sidebar.js";
4
3
  import Sidebar from "../../components/sidebar/sidebar.js";
5
4
  import AccountMenu from "../workspace-layout/account-menu/account-menu.js";
@@ -8,9 +7,9 @@ import { resolveFooterBranding } from "../shared/footer-branding.js";
8
7
  import { accountMenuProps } from "../shared/account-menu-props.js";
9
8
  import { RailLogo } from "./rail-logo.js";
10
9
  import { MinimalWorkspaceLayoutContextProvider } from "./minimal-workspace-layout-context.js";
10
+ import { MobileMenuButton } from "./sidebar-trigger.js";
11
11
  import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
- import { Menu } from "lucide-react";
14
13
  //#region src/layouts/minimal-workspace-layout/minimal-workspace-layout.tsx
15
14
  var LOGO_HEIGHT = "var(--espd-minimal-workspace-layout-logo-height,3.5rem)";
16
15
  /**
@@ -91,7 +90,7 @@ var hiddenGapClass = "data-[sidebar-mode=peek]:[&_[data-slot=sidebar-gap]]:w-0 d
91
90
  * Mouse-only by design (the trigger and ⌘/Ctrl+B serve the keyboard).
92
91
  */
93
92
  var edgeClass = cn("absolute inset-y-0 left-0 z-10 w-[var(--espd-minimal-workspace-layout-edge-hit-width,12px)] cursor-e-resize select-none", "before:absolute before:inset-y-0 before:left-0 before:w-[var(--espd-minimal-workspace-layout-edge-width,3px)] before:bg-[var(--espd-minimal-workspace-layout-edge-color,var(--color-primary))]", "before:opacity-0 before:transition-opacity before:duration-[var(--espd-duration-fast,150ms)] motion-reduce:before:transition-none hover:before:opacity-100");
94
- function MinimalWorkspaceShell({ appName, logo, logoCollapsed, logoMobile, logoAssets, footerBranding, children, sidebarConfig, headerConfig, topRightContent, labels, onLogoutClick, onProfileCardClick, onColorThemeChange, colorTheme, onLanguageChange, languages, currentLanguage, accountMenuItems, hiddenSidebar }) {
93
+ function MinimalWorkspaceShell({ appName, logo, logoCollapsed, logoMobile, logoAssets, footerBranding, children, sidebarConfig, headerConfig, topRightContent, hideMobileTopBar = false, labels, onLogoutClick, onProfileCardClick, onColorThemeChange, colorTheme, onLanguageChange, languages, currentLanguage, accountMenuItems, hiddenSidebar }) {
95
94
  const { state, isMobile, setOpen } = useSidebar();
96
95
  const sidebarId = useId();
97
96
  const expandable = sidebarConfig.expandable ?? true;
@@ -100,6 +99,8 @@ function MinimalWorkspaceShell({ appName, logo, logoCollapsed, logoMobile, logoA
100
99
  const darkMode = colorTheme === "dark";
101
100
  const LinkComponent = sidebarConfig.linkComponent;
102
101
  const topRight = topRightContent ?? headerConfig?.rightContent;
102
+ const mobileTopBar = isMobile && !hideMobileTopBar;
103
+ const menuLabel = labels?.openMenu ?? "Open menu";
103
104
  const showLabel = hide ? labels?.showSidebar ?? "Show sidebar" : labels?.expandSidebar ?? "Expand sidebar";
104
105
  const hideLabel = hide ? labels?.hideSidebar ?? "Hide sidebar" : labels?.collapseSidebar ?? "Collapse sidebar";
105
106
  const [triggers, setTriggers] = useState(0);
@@ -239,6 +240,8 @@ function MinimalWorkspaceShell({ appName, logo, logoCollapsed, logoMobile, logoA
239
240
  hidden: hide,
240
241
  showLabel,
241
242
  hideLabel,
243
+ mobileTopBar: !hideMobileTopBar,
244
+ menuLabel,
242
245
  registerTrigger
243
246
  },
244
247
  children: [/* @__PURE__ */ jsx(Sidebar, {
@@ -276,10 +279,11 @@ function MinimalWorkspaceShell({ appName, logo, logoCollapsed, logoMobile, logoA
276
279
  }), /* @__PURE__ */ jsxs(SidebarInset, {
277
280
  "data-slot": "minimal-workspace-layout-main",
278
281
  className: "h-[var(--espd-minimal-workspace-layout-height,100dvh)] max-h-[var(--espd-minimal-workspace-layout-height,100dvh)] overflow-hidden bg-[var(--espd-minimal-workspace-layout-content-background,var(--color-background))]",
279
- children: [isMobile && /* @__PURE__ */ jsxs("div", {
282
+ children: [mobileTopBar && /* @__PURE__ */ jsxs("div", {
283
+ "data-slot": "minimal-workspace-layout-mobile-bar",
280
284
  className: "flex h-12 shrink-0 items-center gap-2 border-b border-[color:color-mix(in_oklab,var(--espd-minimal-workspace-layout-content-background,var(--color-background))_90%,var(--color-foreground))] px-2",
281
285
  children: [
282
- /* @__PURE__ */ jsx(MobileMenuButton, { label: labels?.openMenu ?? "Open menu" }),
286
+ /* @__PURE__ */ jsx(MobileMenuButton, { label: menuLabel }),
283
287
  mobileLogo({
284
288
  logoMobile,
285
289
  logoAssets,
@@ -309,7 +313,7 @@ function MinimalWorkspaceShell({ appName, logo, logoCollapsed, logoMobile, logoA
309
313
  onPointerEnter: onEdgePointerEnter,
310
314
  onPointerLeave: cancelHoverPeek
311
315
  }),
312
- !isMobile && topRight != null && /* @__PURE__ */ jsx("div", {
316
+ !mobileTopBar && topRight != null && /* @__PURE__ */ jsx("div", {
313
317
  "data-slot": "minimal-workspace-layout-top-right",
314
318
  className: "pointer-events-none absolute top-[var(--espd-minimal-workspace-layout-top-right-offset-y,0.75rem)] right-[var(--espd-minimal-workspace-layout-top-right-offset-x,1rem)] z-20 flex",
315
319
  children: /* @__PURE__ */ jsx("div", {
@@ -322,18 +326,6 @@ function MinimalWorkspaceShell({ appName, logo, logoCollapsed, logoMobile, logoA
322
326
  })]
323
327
  });
324
328
  }
325
- function MobileMenuButton({ label }) {
326
- const { setOpenMobile } = useSidebar();
327
- return /* @__PURE__ */ jsx(Button, {
328
- variant: "ghost",
329
- size: "icon",
330
- hideRingOnHover: true,
331
- "aria-label": label,
332
- className: "size-9 shrink-0",
333
- onClick: () => setOpenMobile(true),
334
- children: /* @__PURE__ */ jsx(Menu, { className: "size-5" })
335
- });
336
- }
337
329
  /**
338
330
  * Header-less app shell: an icon rail that expands into a labelled sidebar
339
331
  * (or, with `sidebarConfig.hideWhenCollapsed`, a hidden sidebar that peeks
@@ -5,20 +5,31 @@ import { useSidebar } from "../../core/animate-ui/components/radix/sidebar.js";
5
5
  import { useMinimalWorkspaceLayout } from "./minimal-workspace-layout-context.js";
6
6
  import { useEffect } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
- import { PanelLeftClose, PanelLeftOpen } from "lucide-react";
8
+ import { Menu, PanelLeftClose, PanelLeftOpen } from "lucide-react";
9
9
  //#region src/layouts/minimal-workspace-layout/sidebar-trigger.tsx
10
10
  /**
11
11
  * A button that opens the sidebar inline and closes it again: the app's own
12
12
  * handle on a `hideWhenCollapsed` sidebar, usually placed in `topRightContent`
13
- * (it also expands and collapses the icon rail). Must render inside
14
- * `MinimalWorkspaceLayout`. Renders nothing when the sidebar is not
15
- * `expandable`, and on mobile, where the top bar has its own menu button.
13
+ * or the page's own toolbar (it also expands and collapses the icon rail).
14
+ * Must render inside `MinimalWorkspaceLayout`. On desktop it renders nothing
15
+ * when the sidebar is not `expandable`. On mobile it renders nothing while the
16
+ * layout's top bar carries the menu button; with `hideMobileTopBar` it is that
17
+ * menu button, opening the menu sheet.
16
18
  */
17
19
  function MinimalWorkspaceSidebarTrigger({ className, ...props }) {
18
20
  const { isMobile, setOpen } = useSidebar();
19
- const { sidebarId, pinned, expandable, showLabel, hideLabel, registerTrigger } = useMinimalWorkspaceLayout();
21
+ const { sidebarId, pinned, expandable, showLabel, hideLabel, mobileTopBar, menuLabel, registerTrigger } = useMinimalWorkspaceLayout();
20
22
  useEffect(() => registerTrigger(), [registerTrigger]);
21
- if (!expandable || isMobile) return null;
23
+ if (isMobile) {
24
+ if (mobileTopBar) return null;
25
+ return /* @__PURE__ */ jsx(MobileMenuButton, {
26
+ label: menuLabel,
27
+ "data-sidebar": "trigger",
28
+ className,
29
+ ...props
30
+ });
31
+ }
32
+ if (!expandable) return null;
22
33
  const label = pinned ? hideLabel : showLabel;
23
34
  return /* @__PURE__ */ jsx(Tooltip, {
24
35
  content: label,
@@ -38,5 +49,22 @@ function MinimalWorkspaceSidebarTrigger({ className, ...props }) {
38
49
  })
39
50
  });
40
51
  }
52
+ /**
53
+ * Opens the mobile menu sheet: the layout's own top bar draws it, and so does
54
+ * `MinimalWorkspaceSidebarTrigger` on mobile with `hideMobileTopBar`.
55
+ */
56
+ function MobileMenuButton({ label, className, ...props }) {
57
+ const { setOpenMobile } = useSidebar();
58
+ return /* @__PURE__ */ jsx(Button, {
59
+ variant: "ghost",
60
+ size: "icon",
61
+ hideRingOnHover: true,
62
+ "aria-label": label,
63
+ className: cn("size-9 shrink-0", className),
64
+ onClick: () => setOpenMobile(true),
65
+ ...props,
66
+ children: /* @__PURE__ */ jsx(Menu, { className: "size-5" })
67
+ });
68
+ }
41
69
  //#endregion
42
- export { MinimalWorkspaceSidebarTrigger };
70
+ export { MinimalWorkspaceSidebarTrigger, MobileMenuButton };
@@ -6,7 +6,7 @@ function Footer({ hidden = false }) {
6
6
  return /* @__PURE__ */ jsx("footer", {
7
7
  className: cn("bg-sidebar", hidden ? "h-[var(--espd-workspace-layout-hidden-footer-height,var(--espd-hidden-footer-height))]" : "h-[var(--espd-workspace-layout-footer-height,var(--espd-footer-height))]"),
8
8
  children: !hidden && /* @__PURE__ */ jsx("div", {
9
- className: "text-[10px] text-muted-foreground h-full flex items-center justify-center tracking-normal",
9
+ className: "type-caption text-muted-foreground h-full flex items-center justify-center tracking-normal",
10
10
  children: /* @__PURE__ */ jsx(FooterCard, {})
11
11
  })
12
12
  });
@@ -4,8 +4,8 @@ export { CodeEditor, CodeEditorProps } from '../components/code-editor/index.js'
4
4
  export { MonospaceContent, MonospaceContentProps } from '../components/monospace-content/index.js';
5
5
  import 'react';
6
6
  import '../style-axes-DSQ2DGc5.js';
7
- import '../alert.props-CcKo49Rb.js';
7
+ import '../alert.props-BuLuWmXA.js';
8
8
  import '../index-BQANnKs9.js';
9
- import '../variant-D81RhpbR.js';
10
- import '../icon-avatar.props-RYtw2eSW.js';
11
- import '../icon-text-action-card.props-B2ggncUK.js';
9
+ import '../variant-DjdaxfIA.js';
10
+ import '../icon-avatar.props-BJe0-vva.js';
11
+ import '../icon-text-action-card.props-BU7yFi2Q.js';
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { ReactNode, CSSProperties } from 'react';
3
3
  import { C as Color } from './index-BQANnKs9.js';
4
4
  import { k as StyleAxisProps } from './style-axes-DSQ2DGc5.js';
5
- import { f as Variant } from './variant-D81RhpbR.js';
5
+ import { f as Variant } from './variant-DjdaxfIA.js';
6
6
 
7
7
  type SectionCardSize = "sm" | "default" | "lg";
8
8
  /** `solid` / `soft` / `outline` / `gradient` — see `resolveVariantStyles` in `@/utils/variant`. */
@@ -1,8 +1,8 @@
1
1
  import { ButtonHTMLAttributes, ReactNode } from 'react';
2
2
  import { C as Color, S as Size } from './index-BQANnKs9.js';
3
- import { f as Variant } from './variant-D81RhpbR.js';
3
+ import { f as Variant } from './variant-DjdaxfIA.js';
4
4
  import { k as StyleAxisProps } from './style-axes-DSQ2DGc5.js';
5
- import { b as IconAvatarVariant } from './icon-avatar.props-RYtw2eSW.js';
5
+ import { b as IconAvatarVariant } from './icon-avatar.props-BJe0-vva.js';
6
6
 
7
7
  type SimpleClickableCardVariant = Variant;
8
8
  interface SimpleClickableCardProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "title">, Pick<StyleAxisProps, "radius"> {
@@ -1,7 +1,7 @@
1
1
  import { ReactElement, HTMLAttributes } from 'react';
2
2
  import { LucideIcon } from 'lucide-react';
3
3
  import { C as Color, S as Size } from './index-BQANnKs9.js';
4
- import { f as Variant } from './variant-D81RhpbR.js';
4
+ import { f as Variant } from './variant-DjdaxfIA.js';
5
5
  import { k as StyleAxisProps } from './style-axes-DSQ2DGc5.js';
6
6
 
7
7
  /**
@@ -0,0 +1,153 @@
1
+ //#region src/styles/type-scale.ts
2
+ /** Every text role, largest first. */
3
+ var TYPE_ROLES = [
4
+ "display",
5
+ "lead",
6
+ "title",
7
+ "headline",
8
+ "heading",
9
+ "subheading",
10
+ "prose",
11
+ "body",
12
+ "secondary",
13
+ "caption",
14
+ "label",
15
+ "input",
16
+ "code"
17
+ ];
18
+ /** The breakpoint where `md` values start: Tailwind's `md`, as `useIsMobile` and the inputs use. */
19
+ var TYPE_SCALE_MD = "48rem";
20
+ var TYPE_SCALE = {
21
+ display: {
22
+ use: "Marketing headline",
23
+ phone: {
24
+ size: "clamp(2.5rem, 7vw, 5.5rem)",
25
+ line: "1.04",
26
+ weight: "800"
27
+ },
28
+ token: {
29
+ size: "var(--text-display)",
30
+ line: "var(--text-display--line-height)",
31
+ weight: "var(--text-display--font-weight)"
32
+ }
33
+ },
34
+ lead: {
35
+ use: "The paragraph under a display headline",
36
+ phone: {
37
+ size: "clamp(1.0625rem, 1.5vw, 1.3125rem)",
38
+ line: "1.6",
39
+ weight: "400"
40
+ },
41
+ token: {
42
+ size: "var(--text-lead)",
43
+ line: "var(--text-lead--line-height)"
44
+ }
45
+ },
46
+ title: {
47
+ use: "A page's heading",
48
+ phone: {
49
+ size: "1.375rem",
50
+ line: "1.75rem",
51
+ weight: "700"
52
+ },
53
+ md: {
54
+ size: "1.625rem",
55
+ line: "2rem"
56
+ }
57
+ },
58
+ headline: {
59
+ use: "A section of a page (the step between a page and a card)",
60
+ phone: {
61
+ size: "1.125rem",
62
+ line: "1.5rem",
63
+ weight: "600"
64
+ },
65
+ md: {
66
+ size: "1.25rem",
67
+ line: "1.75rem"
68
+ }
69
+ },
70
+ heading: {
71
+ use: "A card, panel or dialog title",
72
+ phone: {
73
+ size: "1rem",
74
+ line: "1.375rem",
75
+ weight: "600"
76
+ }
77
+ },
78
+ subheading: {
79
+ use: "A smaller title (an alert's, a list group's)",
80
+ phone: {
81
+ size: "0.875rem",
82
+ line: "1.25rem",
83
+ weight: "600"
84
+ }
85
+ },
86
+ prose: {
87
+ use: "Long reading text (a description page, a document)",
88
+ phone: {
89
+ size: "1rem",
90
+ line: "1.5rem",
91
+ weight: "400"
92
+ },
93
+ md: { line: "1.625rem" }
94
+ },
95
+ body: {
96
+ use: "Running text in an interface: descriptions, alert bodies, messages",
97
+ phone: {
98
+ size: "0.875rem",
99
+ line: "1.3125rem",
100
+ weight: "400"
101
+ }
102
+ },
103
+ secondary: {
104
+ use: "A supporting line under a title, card meta",
105
+ phone: {
106
+ size: "0.8125rem",
107
+ line: "1.125rem",
108
+ weight: "400"
109
+ }
110
+ },
111
+ caption: {
112
+ use: "Timestamps, counts, hints, badges, footnotes",
113
+ phone: {
114
+ size: "0.75rem",
115
+ line: "1rem",
116
+ weight: "400"
117
+ }
118
+ },
119
+ label: {
120
+ use: "Form labels, tab, menu and button text",
121
+ phone: {
122
+ size: "0.875rem",
123
+ line: "1.25rem",
124
+ weight: "500"
125
+ }
126
+ },
127
+ input: {
128
+ use: "What a person types, and its placeholder",
129
+ phone: {
130
+ size: "1rem",
131
+ line: "1.5rem",
132
+ weight: "400"
133
+ },
134
+ md: {
135
+ size: "0.875rem",
136
+ line: "1.25rem"
137
+ }
138
+ },
139
+ code: {
140
+ use: "Code, logs, file paths (with font-mono)",
141
+ phone: {
142
+ size: "0.75rem",
143
+ line: "1.125rem",
144
+ weight: "400"
145
+ },
146
+ md: {
147
+ size: "0.8125rem",
148
+ line: "1.25rem"
149
+ }
150
+ }
151
+ };
152
+ //#endregion
153
+ export { TYPE_ROLES, TYPE_SCALE, TYPE_SCALE_MD };