@espressif/dashboard-ui-components 1.8.0 → 1.9.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 CHANGED
@@ -4,6 +4,24 @@ All notable changes to this project are documented here. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres
5
5
  to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [1.9.0] - 2026-10-09
8
+
9
+ ### Added
10
+ - **`DataTable`** — `meta.fill` gives a column the width the other columns
11
+ leave, and its content never widens the table. Render the cell with
12
+ `truncate` and a long free-text value (a description, notes) ends in an
13
+ ellipsis at the column edge instead of making a phone-width table scroll.
14
+ Combined with `wrap`, the text wraps within that width, keeping `wrap`'s
15
+ 16rem minimum.
16
+
17
+ ### Fixed
18
+ - **`Alert`, `IconTextActionCard`** — actions that don't fit beside the text
19
+ now wrap onto their own line, aligned to the end, instead of squeezing the
20
+ title and description down to one character per line. The text keeps at
21
+ least 12rem (icon included) before the actions wrap. Wrapping follows the
22
+ card's own width, so it also applies inside dialogs and side panels. Cards
23
+ without actions are unchanged.
24
+
7
25
  ## [1.8.0] - 2026-10-08
8
26
 
9
27
  A minor release focused on small screens. `Tabs`, `DataTable`, `SimpleList`,
@@ -1,4 +1,4 @@
1
- import { ProgressBar } from './chunk-7GVOSWCQ.js';
1
+ import { ProgressBar } from './chunk-XNF4IADN.js';
2
2
  import { Card, CardContent } from './chunk-ABBHGIFI.js';
3
3
  import { Tooltip2 } from './chunk-ZFYUONPY.js';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -57820,6 +57820,9 @@ function DataTableBody({
57820
57820
  // One line by default: narrow screens scroll the table rather
57821
57821
  // than squashing every column into a stack of words.
57822
57822
  getColumnMeta(cell.column)?.wrap ? "min-w-64 whitespace-normal" : "whitespace-nowrap",
57823
+ // `max-w-0` drops the content from the column's width; `w-full`
57824
+ // then hands the column the table's leftover width.
57825
+ getColumnMeta(cell.column)?.fill && "w-full max-w-0",
57823
57826
  showBorder && cellIndex === 0 && "pl-4",
57824
57827
  sticky.className
57825
57828
  ),
@@ -59956,6 +59959,9 @@ function trailingLeadAndSlot(options) {
59956
59959
  }
59957
59960
  );
59958
59961
  }
59962
+ var ACTIONS_ROW_CLASS = "flex-wrap";
59963
+ var ACTIONS_LEADING_BASIS_CLASS = "basis-48";
59964
+ var ACTIONS_SLOT_CLASS = "relative z-10 ml-auto max-w-full shrink-0";
59959
59965
  function shellPresetRing(color) {
59960
59966
  const c = color ?? "gray";
59961
59967
  return isPresetColor(c) ? PRESET_RING_CLASSES[c] : "";
@@ -60069,7 +60075,7 @@ var IconTextActionCard = React11.forwardRef(
60069
60075
  !showActionsSlot ? s.gap : void 0,
60070
60076
  variant === "gradient" && "relative z-10",
60071
60077
  !showActionsSlot && "w-full min-w-0",
60072
- showActionsSlot && "min-w-0"
60078
+ showActionsSlot && ["min-w-0", ACTIONS_LEADING_BASIS_CLASS]
60073
60079
  ),
60074
60080
  children: leadingMain
60075
60081
  }
@@ -60105,6 +60111,7 @@ var IconTextActionCard = React11.forwardRef(
60105
60111
  "aria-disabled": disabled === true ? true : void 0,
60106
60112
  className: cn(
60107
60113
  "relative isolate inline-flex w-full max-w-full cursor-default items-center overflow-hidden rounded-xl text-left ring-offset-background",
60114
+ ACTIONS_ROW_CLASS,
60108
60115
  showActionsSlot && "group",
60109
60116
  variant === "gradient" && "group",
60110
60117
  disabled && "pointer-events-none opacity-50",
@@ -60122,7 +60129,7 @@ var IconTextActionCard = React11.forwardRef(
60122
60129
  "div",
60123
60130
  {
60124
60131
  className: cn(
60125
- "relative z-10 shrink-0",
60132
+ ACTIONS_SLOT_CLASS,
60126
60133
  showActionsOnlyOnHover && "pointer-events-none opacity-0 transition-opacity group-hover:pointer-events-auto group-hover:opacity-100"
60127
60134
  ),
60128
60135
  children: actions
@@ -60139,6 +60146,7 @@ var IconTextActionCard = React11.forwardRef(
60139
60146
  ref,
60140
60147
  className: cn(
60141
60148
  "relative isolate inline-flex w-full max-w-full items-center overflow-hidden rounded-xl ring-offset-background",
60149
+ ACTIONS_ROW_CLASS,
60142
60150
  ringTransitionClass,
60143
60151
  showActionsSlot && "group",
60144
60152
  variant === "gradient" && "group",
@@ -60166,7 +60174,8 @@ var IconTextActionCard = React11.forwardRef(
60166
60174
  "-m-0 inline-flex min-h-0 min-w-0 flex-1 cursor-pointer items-center rounded-none border-0 bg-transparent text-left outline-none focus-visible:outline-none",
60167
60175
  s.gap,
60168
60176
  variant === "gradient" && "relative z-10",
60169
- "min-w-0"
60177
+ "min-w-0",
60178
+ ACTIONS_LEADING_BASIS_CLASS
60170
60179
  ),
60171
60180
  children: leadingMain
60172
60181
  }
@@ -60175,7 +60184,7 @@ var IconTextActionCard = React11.forwardRef(
60175
60184
  "div",
60176
60185
  {
60177
60186
  className: cn(
60178
- "relative z-10 shrink-0",
60187
+ ACTIONS_SLOT_CLASS,
60179
60188
  showActionsOnlyOnHover && "pointer-events-none opacity-0 transition-opacity group-hover:pointer-events-auto group-hover:opacity-100"
60180
60189
  ),
60181
60190
  children: actions
@@ -1,5 +1,5 @@
1
- export { CopyrightCard, PageLoader } from '../chunk-DI4PTWVR.js';
2
- export { AnimatedRainmakerLogo } from '../chunk-7GVOSWCQ.js';
1
+ export { CopyrightCard, PageLoader } from '../chunk-RYJHAEBC.js';
2
+ export { AnimatedRainmakerLogo } from '../chunk-XNF4IADN.js';
3
3
  import '../chunk-ABBHGIFI.js';
4
4
  export { AppLogo, FooterCard, MyAccountMenu, ProfileCard } from '../chunk-P6F6UWV2.js';
5
5
  import '../chunk-ZFYUONPY.js';
@@ -18226,6 +18226,14 @@ interface DataTableColumnMeta {
18226
18226
  * long free-text columns such as descriptions.
18227
18227
  */
18228
18228
  wrap?: boolean;
18229
+ /**
18230
+ * Give the column whatever width the other columns leave, and never let its
18231
+ * content widen the table. Pair it with a cell that truncates (`truncate`)
18232
+ * so a long value ends in an ellipsis at the column edge instead of making
18233
+ * the table scroll. With `wrap`, the text wraps within that width instead,
18234
+ * but keeps `wrap`'s 16rem minimum.
18235
+ */
18236
+ fill?: boolean;
18229
18237
  /**
18230
18238
  * Hide the column while the table is narrower than this: a size from
18231
18239
  * Tailwind's container scale (`sm` 24rem/384px, `md` 28rem/448px, `lg`
@@ -1,4 +1,4 @@
1
- export { Accordion, AdvancedSearchBox, Alert, AnimatedCard, AreaChart, AsyncCombobox, AsyncMultiSelect, BarChart, BasicDetailsCard, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Carousel, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CircularProgress, Code, CodeEditor, CollapsibleCard, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DynamicList, FileInput, FileUpload, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, IconAvatar, IconTextActionCard, Illustration, InlineError, InputOTP, InputOTPSeparator, KeyValueManager, LineChart, ListDetails, LottieAnimationContainer, MarkdownContent, MonospaceContent, NavBar, no_data_card_default as NoDataCard, OverflowBadgeList, PRESET_IDS, PRESET_LABELS, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProgressBar, ROLLING_PRESET_IDS, RadioGroup, RequirementList, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Spinner, StatCard, StatusBadge, StatusCardList, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, TimePicker, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, TransferList, TreemapChart, Typography, UserTypeBadge, VerificationInProgress, VerticalStepper, animatedCardAnimations, animatedCardTypeKeys, buildSeriesChartConfig, computeDateRange, getChartSeriesColor, illustrationRegistry, illustrationsById, parseSvgViewBoxAspectRatio, statusBadgeSizeVariants, toast, typographyDefaultElement, typographyVariantClasses, useFormField, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes } from '../chunk-7GVOSWCQ.js';
1
+ export { Accordion, AdvancedSearchBox, Alert, AnimatedCard, AreaChart, AsyncCombobox, AsyncMultiSelect, BarChart, BasicDetailsCard, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Carousel, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CircularProgress, Code, CodeEditor, CollapsibleCard, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DynamicList, FileInput, FileUpload, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, IconAvatar, IconTextActionCard, Illustration, InlineError, InputOTP, InputOTPSeparator, KeyValueManager, LineChart, ListDetails, LottieAnimationContainer, MarkdownContent, MonospaceContent, NavBar, no_data_card_default as NoDataCard, OverflowBadgeList, PRESET_IDS, PRESET_LABELS, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProgressBar, ROLLING_PRESET_IDS, RadioGroup, RequirementList, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Spinner, StatCard, StatusBadge, StatusCardList, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, TimePicker, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, TransferList, TreemapChart, Typography, UserTypeBadge, VerificationInProgress, VerticalStepper, animatedCardAnimations, animatedCardTypeKeys, buildSeriesChartConfig, computeDateRange, getChartSeriesColor, illustrationRegistry, illustrationsById, parseSvgViewBoxAspectRatio, statusBadgeSizeVariants, toast, typographyDefaultElement, typographyVariantClasses, useFormField, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes } from '../chunk-XNF4IADN.js';
2
2
  export { Badge, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Label, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, arbitraryGradientBackgroundImage, badgeVariants, buttonGroupVariants, resolveVariantStyles } from '../chunk-ABBHGIFI.js';
3
3
  export { Avatar, Button, CopyButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FlashButton, GlitchText, GradientText, HighlightText, Input, InputPassword, InvertButton, LIST_CLASS_NAMES, Link, List, Menu, ScrollArea, ScrollBar, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShimmeringText, Sidebar2 as Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, Sidebar as SidebarPrimitive, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, Tooltip as TooltipRoot, TooltipTrigger, isSidebarGroup, parseTextMarkup, useSidebar } from '../chunk-ZFYUONPY.js';
4
4
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Collapsible, CollapsibleContent, CollapsibleTrigger, Separator, Skeleton, buttonVariants, useIsMobile } from '../chunk-OKB2WTX7.js';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { CopyrightCard, PageLoader } from './chunk-DI4PTWVR.js';
2
- export { Accordion, AdvancedSearchBox, Alert, AnimatedCard, AnimatedRainmakerLogo, AreaChart, AsyncCombobox, AsyncMultiSelect, BarChart, BasicDetailsCard, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Carousel, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CircularProgress, Code, CodeEditor, CollapsibleCard, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DynamicList, FileInput, FileUpload, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, IconAvatar, IconTextActionCard, Illustration, InlineError, InputOTP, InputOTPSeparator, KeyValueManager, LineChart, ListDetails, LottieAnimationContainer, MarkdownContent, MonospaceContent, NavBar, no_data_card_default as NoDataCard, OverflowBadgeList, PRESET_IDS, PRESET_LABELS, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProgressBar, ROLLING_PRESET_IDS, RadioGroup, RequirementList, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Spinner, StatCard, StatusBadge, StatusCardList, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, TimePicker, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, TransferList, TreemapChart, Typography, UserTypeBadge, VerificationInProgress, VerticalStepper, animatedCardAnimations, animatedCardTypeKeys, buildSeriesChartConfig, computeDateRange, getChartSeriesColor, illustrationRegistry, illustrationsById, parseSvgViewBoxAspectRatio, statusBadgeSizeVariants, toast, typographyDefaultElement, typographyVariantClasses, useFormField, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes } from './chunk-7GVOSWCQ.js';
1
+ export { CopyrightCard, PageLoader } from './chunk-RYJHAEBC.js';
2
+ export { Accordion, AdvancedSearchBox, Alert, AnimatedCard, AnimatedRainmakerLogo, AreaChart, AsyncCombobox, AsyncMultiSelect, BarChart, BasicDetailsCard, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Carousel, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CircularProgress, Code, CodeEditor, CollapsibleCard, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DynamicList, FileInput, FileUpload, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, IconAvatar, IconTextActionCard, Illustration, InlineError, InputOTP, InputOTPSeparator, KeyValueManager, LineChart, ListDetails, LottieAnimationContainer, MarkdownContent, MonospaceContent, NavBar, no_data_card_default as NoDataCard, OverflowBadgeList, PRESET_IDS, PRESET_LABELS, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProgressBar, ROLLING_PRESET_IDS, RadioGroup, RequirementList, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Spinner, StatCard, StatusBadge, StatusCardList, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, TimePicker, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, TransferList, TreemapChart, Typography, UserTypeBadge, VerificationInProgress, VerticalStepper, animatedCardAnimations, animatedCardTypeKeys, buildSeriesChartConfig, computeDateRange, getChartSeriesColor, illustrationRegistry, illustrationsById, parseSvgViewBoxAspectRatio, statusBadgeSizeVariants, toast, typographyDefaultElement, typographyVariantClasses, useFormField, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes } from './chunk-XNF4IADN.js';
3
3
  export { Badge, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Label, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, arbitraryGradientBackgroundImage, badgeVariants, buttonGroupVariants, resolveVariantStyles } from './chunk-ABBHGIFI.js';
4
4
  export { AccountMenu, EntryLayout, Footer as WorkspaceFooter, Header as WorkspaceHeader, WorkspaceLayout } from './chunk-XW6Z6VO4.js';
5
5
  export { AppLogo, FooterCard, MyAccountMenu, ProfileCard } from './chunk-P6F6UWV2.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@espressif/dashboard-ui-components",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Reusable React UI components, page layouts, and utilities — Espressif's dashboard design system.",
5
5
  "keywords": [
6
6
  "react",