@espressif/dashboard-ui-components 1.12.0 → 1.13.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 (40) hide show
  1. package/.claude/rules/dashboard-ui-consumption.md +22 -2
  2. package/.cursor/rules/dashboard-ui-consumption.mdc +22 -2
  3. package/CHANGELOG.md +43 -0
  4. package/README.md +9 -4
  5. package/dist/components/cards/section-card.js +37 -29
  6. package/dist/components/floating-window/_hooks/use-drag-move.js +1 -0
  7. package/dist/components/floating-window/_hooks/use-resize.js +133 -0
  8. package/dist/components/floating-window/floating-window.js +67 -40
  9. package/dist/components/floating-window/index.d.ts +21 -2
  10. package/dist/components/horizontal-stepper/index.d.ts +1 -1
  11. package/dist/components/index.d.ts +5 -1
  12. package/dist/components/index.js +11 -6
  13. package/dist/components/keyframes/index.d.ts +53 -0
  14. package/dist/components/keyframes/index.js +3 -0
  15. package/dist/components/keyframes/keyframes-motion.js +23 -0
  16. package/dist/components/keyframes/keyframes.js +37 -0
  17. package/dist/components/qr-code/index.d.ts +26 -0
  18. package/dist/components/qr-code/index.js +2 -0
  19. package/dist/components/qr-code/qr-code.js +69 -0
  20. package/dist/components/range-field/index.d.ts +45 -0
  21. package/dist/components/range-field/index.js +2 -0
  22. package/dist/components/range-field/range-field.js +164 -0
  23. package/dist/components/reveal/index.d.ts +6 -3
  24. package/dist/components/reveal/reveal.js +7 -4
  25. package/dist/components/search-box/index.d.ts +3 -1
  26. package/dist/components/search-box/search-box.js +7 -12
  27. package/dist/components/showcase-card/index.d.ts +14 -3
  28. package/dist/components/showcase-card/showcase-card.js +43 -2
  29. package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +3 -1
  30. package/dist/components/step-tabs/index.d.ts +1 -1
  31. package/dist/components/trace/index.d.ts +49 -0
  32. package/dist/components/trace/index.js +2 -0
  33. package/dist/components/trace/trace.js +109 -0
  34. package/dist/components/vertical-stepper/index.d.ts +2 -2
  35. package/dist/components/vertical-stepper/vertical-stepper.js +7 -4
  36. package/dist/index.d.ts +5 -1
  37. package/dist/index.js +11 -6
  38. package/dist/{vertical-stepper.props-BXYcbW70.d.ts → vertical-stepper.props-DONJJXIy.d.ts} +1 -0
  39. package/package.json +7 -1
  40. package/src/styles/theme.css +15 -0
@@ -23,18 +23,59 @@ function TitleLink({ open, titlePrefix, title }) {
23
23
  })
24
24
  });
25
25
  }
26
+ var ROW_MIST = "bg-linear-to-r from-primary/8 via-primary/3 to-card dark:from-primary/12 dark:via-primary/4";
27
+ /** `layout="row"`: the picture at the card's left, full height, the words beside it. */
28
+ function ShowcaseRow({ media, title, open, titlePrefix, meta, footer, engage }) {
29
+ return /* @__PURE__ */ jsxs(MediaCard, {
30
+ elevation: "none",
31
+ className: "view-transition-glide @container h-full flex-row hover:shadow-md",
32
+ ...engage,
33
+ children: [/* @__PURE__ */ jsxs("div", {
34
+ className: "relative w-28 shrink-0 self-stretch @md:w-2/5",
35
+ "aria-hidden": true,
36
+ children: [/* @__PURE__ */ jsx("span", { className: cn("absolute inset-0", ROW_MIST) }), /* @__PURE__ */ jsx("div", {
37
+ className: "absolute inset-0",
38
+ children: media
39
+ })]
40
+ }), /* @__PURE__ */ jsxs(MediaCardBody, {
41
+ className: "min-h-24 min-w-0 gap-1.5 py-3.5 pr-3.5 pl-1 @md:min-h-42 @md:gap-2 @md:py-5 @md:pr-5",
42
+ children: [
43
+ /* @__PURE__ */ jsx(MediaCardTitle, {
44
+ className: "text-base font-extrabold tracking-tight @md:text-lg",
45
+ title,
46
+ children: /* @__PURE__ */ jsx(TitleLink, {
47
+ open,
48
+ titlePrefix,
49
+ title
50
+ })
51
+ }),
52
+ /* @__PURE__ */ jsx(MediaCardMeta, {
53
+ className: "block text-sm leading-relaxed @max-md:line-clamp-2",
54
+ children: meta
55
+ }),
56
+ footer && /* @__PURE__ */ jsx(MediaCardFooter, {
57
+ className: "hidden justify-end border-t border-border pt-3 @md:flex",
58
+ children: footer
59
+ })
60
+ ]
61
+ })]
62
+ });
63
+ }
26
64
  /**
27
65
  * A catalogue card on `MediaCard`: a picture with an actions strip that
28
66
  * slides up over it, the name (the whole card opens it), a meta row and a
29
67
  * footer row. Props only: builds, hardware parts or templates fill the same
30
68
  * frame. Cards glide to their new places in a view transition
31
69
  * (`view-transition-glide`), for instance when a filters panel opens beside
32
- * the grid.
70
+ * the grid. `layout="row"` lays the picture at the card's left instead.
33
71
  */
34
- function ShowcaseCard({ media, mediaLayout, mediaClassName, mediaOverlay, reveal, title, open, titlePrefix, titleAction, meta, footer, bodyClassName }) {
72
+ function ShowcaseCard(props) {
73
+ if (props.layout === "row") return /* @__PURE__ */ jsx(ShowcaseRow, { ...props });
74
+ const { media, mediaLayout, mediaClassName, mediaOverlay, reveal, title, open, titlePrefix, titleAction, meta, footer, bodyClassName, engage } = props;
35
75
  return /* @__PURE__ */ jsxs(MediaCard, {
36
76
  elevation: "none",
37
77
  className: "view-transition-glide h-full",
78
+ ...engage,
38
79
  children: [/* @__PURE__ */ jsxs(MediaCardMedia, {
39
80
  layout: mediaLayout,
40
81
  className: mediaClassName,
@@ -243,7 +243,9 @@ function renderTitleAndDescriptionBlocks(p) {
243
243
  style: descStyle,
244
244
  children: description
245
245
  });
246
- else descriptionBlock = /* @__PURE__ */ jsx("div", {
246
+ else descriptionBlock = /* @__PURE__ */ jsx(Typography, {
247
+ as: "div",
248
+ variant: "body2",
247
249
  className: cn("min-w-0 text-left font-medium", descClass),
248
250
  style: descStyle,
249
251
  children: description
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { C as Color } from '../../index-BQANnKs9.js';
4
- import { c as VerticalStepperStepStatus } from '../../vertical-stepper.props-BXYcbW70.js';
4
+ import { c as VerticalStepperStepStatus } from '../../vertical-stepper.props-DONJJXIy.js';
5
5
 
6
6
  /** One step. `status` is the steppers' status (`stale` included), so one product's chain feeds all three. */
7
7
  interface StepTabsStep {
@@ -0,0 +1,49 @@
1
+ import * as React from 'react';
2
+ import { Collapsible, CollapsibleContent } from '../collapsible/index.js';
3
+ import '@radix-ui/react-collapsible';
4
+
5
+ /** How a step stands: running (its title shimmers), failed, or waiting to start. Unset: done. */
6
+ type TraceStatus = "running" | "error" | "pending";
7
+ interface TraceProps extends React.HTMLAttributes<HTMLDivElement> {
8
+ /** `sm` for a dense list beside a conversation (12px text), `md` (14px) on its own. Default `md`. */
9
+ size?: "sm" | "md";
10
+ }
11
+ interface TraceLineProps extends React.HTMLAttributes<HTMLSpanElement> {
12
+ status?: TraceStatus;
13
+ }
14
+ type TraceIconProps = React.HTMLAttributes<HTMLSpanElement>;
15
+ interface TraceTitleProps extends React.HTMLAttributes<HTMLSpanElement> {
16
+ /** A plain string shimmers while its line is running; anything else is drawn as it is. */
17
+ children?: React.ReactNode;
18
+ }
19
+ type TraceDescriptionProps = React.HTMLAttributes<HTMLSpanElement>;
20
+ type TraceCollapsibleProps = React.ComponentPropsWithoutRef<typeof Collapsible>;
21
+ type TraceCollapsibleTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
22
+ type TraceCollapsibleContentProps = React.ComponentPropsWithoutRef<typeof CollapsibleContent>;
23
+
24
+ /**
25
+ * An agent's steps, one line each: what it read, ran, changed or thought,
26
+ * in the order it did them. A line names the action with an icon and a title,
27
+ * may carry a short description (a diff stat, a duration, a count) and a
28
+ * status, and may open to show more (`TraceCollapsible`). The pattern of
29
+ * shadcn's AI Elements Trace, on this library's tokens.
30
+ *
31
+ * Status is colour and motion, so say it in the title too ("Build failed").
32
+ */
33
+ declare function Trace({ size, className, ...props }: TraceProps): React.JSX.Element;
34
+ /** One step: an icon, a title, an optional description. A span, so it is not a tab stop unless a trigger or link wraps it. */
35
+ declare function TraceLine({ status, className, ...props }: TraceLineProps): React.JSX.Element;
36
+ /** The icon naming the action (before the title) or showing a state (after it). Decorative: the title says it. */
37
+ declare function TraceIcon({ className, ...props }: TraceIconProps): React.JSX.Element;
38
+ /** The step in words, on one line (truncated). A string title shimmers while its line runs, unless the person asks for reduced motion. */
39
+ declare function TraceTitle({ children, className, ...props }: TraceTitleProps): React.JSX.Element;
40
+ /** Secondary text after the title: a diff stat, a duration, a count. Never truncated. */
41
+ declare function TraceDescription({ className, ...props }: TraceDescriptionProps): React.JSX.Element;
42
+ /** A line that opens to show more. Closed unless `defaultOpen` or `open` says otherwise. */
43
+ declare function TraceCollapsible({ className, ...props }: TraceCollapsibleProps): React.JSX.Element;
44
+ /** The button that opens and closes the line: wrap the `TraceLine` in it. A chevron follows the line. */
45
+ declare function TraceCollapsibleTrigger({ className, children, ...props }: TraceCollapsibleTriggerProps): React.JSX.Element;
46
+ /** What the line opens to, set in under its title. */
47
+ declare function TraceCollapsibleContent({ className, ...props }: TraceCollapsibleContentProps): React.JSX.Element;
48
+
49
+ export { Trace, TraceCollapsible, TraceCollapsibleContent, type TraceCollapsibleContentProps, type TraceCollapsibleProps, TraceCollapsibleTrigger, type TraceCollapsibleTriggerProps, TraceDescription, type TraceDescriptionProps, TraceIcon, type TraceIconProps, TraceLine, type TraceLineProps, type TraceProps, type TraceStatus, TraceTitle, type TraceTitleProps };
@@ -0,0 +1,2 @@
1
+ import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./trace.js";
2
+ export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle };
@@ -0,0 +1,109 @@
1
+ "use client";
2
+ import { cn } from "../../utils/cn.js";
3
+ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../core/collapsible.js";
4
+ import { usePrefersReducedMotion } from "../../core/hooks/use-prefers-reduced-motion.js";
5
+ import { ShimmeringText } from "../text-effects/shimmer-text/shimmer-text.js";
6
+ import * as React$1 from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { ChevronRight } from "lucide-react";
9
+ //#region src/components/trace/trace.tsx
10
+ var SizeContext = React$1.createContext("md");
11
+ var StatusContext = React$1.createContext(void 0);
12
+ /**
13
+ * An agent's steps, one line each: what it read, ran, changed or thought,
14
+ * in the order it did them. A line names the action with an icon and a title,
15
+ * may carry a short description (a diff stat, a duration, a count) and a
16
+ * status, and may open to show more (`TraceCollapsible`). The pattern of
17
+ * shadcn's AI Elements Trace, on this library's tokens.
18
+ *
19
+ * Status is colour and motion, so say it in the title too ("Build failed").
20
+ */
21
+ function Trace({ size = "md", className, ...props }) {
22
+ return /* @__PURE__ */ jsx(SizeContext.Provider, {
23
+ value: size,
24
+ children: /* @__PURE__ */ jsx("div", {
25
+ "data-slot": "trace",
26
+ className: cn("flex min-w-0 flex-col gap-0.5", size === "sm" ? "text-xs leading-5" : "text-sm leading-6", className),
27
+ ...props
28
+ })
29
+ });
30
+ }
31
+ /** One step: an icon, a title, an optional description. A span, so it is not a tab stop unless a trigger or link wraps it. */
32
+ function TraceLine({ status, className, ...props }) {
33
+ return /* @__PURE__ */ jsx(StatusContext.Provider, {
34
+ value: status,
35
+ children: /* @__PURE__ */ jsx("span", {
36
+ "data-slot": "trace-line",
37
+ "data-status": status ?? "done",
38
+ className: cn("flex min-w-0 items-center gap-1.5 text-foreground-muted", status === "error" && "text-error", status === "pending" && "text-foreground-disabled", className),
39
+ ...props
40
+ })
41
+ });
42
+ }
43
+ /** The icon naming the action (before the title) or showing a state (after it). Decorative: the title says it. */
44
+ function TraceIcon({ className, ...props }) {
45
+ return /* @__PURE__ */ jsx("span", {
46
+ "aria-hidden": true,
47
+ "data-slot": "trace-icon",
48
+ className: cn("inline-flex shrink-0 items-center justify-center", React$1.useContext(SizeContext) === "sm" ? "[&_svg]:size-3.5" : "[&_svg]:size-4", className),
49
+ ...props
50
+ });
51
+ }
52
+ /** The step in words, on one line (truncated). A string title shimmers while its line runs, unless the person asks for reduced motion. */
53
+ function TraceTitle({ children, className, ...props }) {
54
+ const status = React$1.useContext(StatusContext);
55
+ const reduced = usePrefersReducedMotion();
56
+ const shimmer = status === "running" && !reduced && typeof children === "string";
57
+ return /* @__PURE__ */ jsx("span", {
58
+ "data-slot": "trace-title",
59
+ className: cn("min-w-0 truncate", status === "running" && "text-foreground-secondary", className),
60
+ ...props,
61
+ children: shimmer ? /* @__PURE__ */ jsx(ShimmeringText, {
62
+ text: children,
63
+ color: "var(--color-foreground-muted)",
64
+ shimmeringColor: "var(--color-foreground)"
65
+ }) : children
66
+ });
67
+ }
68
+ /** Secondary text after the title: a diff stat, a duration, a count. Never truncated. */
69
+ function TraceDescription({ className, ...props }) {
70
+ return /* @__PURE__ */ jsx("span", {
71
+ "data-slot": "trace-description",
72
+ className: cn("shrink-0 tabular-nums text-foreground-muted", className),
73
+ ...props
74
+ });
75
+ }
76
+ /** A line that opens to show more. Closed unless `defaultOpen` or `open` says otherwise. */
77
+ function TraceCollapsible({ className, ...props }) {
78
+ return /* @__PURE__ */ jsx(Collapsible, {
79
+ "data-slot": "trace-collapsible",
80
+ className: cn("group/trace min-w-0", className),
81
+ ...props
82
+ });
83
+ }
84
+ /** The button that opens and closes the line: wrap the `TraceLine` in it. A chevron follows the line. */
85
+ function TraceCollapsibleTrigger({ className, children, ...props }) {
86
+ return /* @__PURE__ */ jsx(CollapsibleTrigger, {
87
+ asChild: true,
88
+ children: /* @__PURE__ */ jsxs("button", {
89
+ type: "button",
90
+ "data-slot": "trace-collapsible-trigger",
91
+ className: cn("group/trigger flex w-full min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left outline-none", "hover:[&_[data-slot=trace-line][data-status=done]]:text-foreground focus-visible:ring-2 focus-visible:ring-ring", className),
92
+ ...props,
93
+ children: [children, /* @__PURE__ */ jsx(ChevronRight, {
94
+ "aria-hidden": true,
95
+ className: "size-3.5 shrink-0 text-foreground-muted transition-transform group-data-[state=open]/trigger:rotate-90 motion-reduce:transition-none"
96
+ })]
97
+ })
98
+ });
99
+ }
100
+ /** What the line opens to, set in under its title. */
101
+ function TraceCollapsibleContent({ className, ...props }) {
102
+ return /* @__PURE__ */ jsx(CollapsibleContent, {
103
+ "data-slot": "trace-collapsible-content",
104
+ className: cn("pt-1 pb-1.5 pl-5 text-foreground-muted", className),
105
+ ...props
106
+ });
107
+ }
108
+ //#endregion
109
+ export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { V as VerticalStepperProps } from '../../vertical-stepper.props-BXYcbW70.js';
3
- export { a as VerticalStepperSize, b as VerticalStepperStep, c as VerticalStepperStepStatus } from '../../vertical-stepper.props-BXYcbW70.js';
2
+ import { V as VerticalStepperProps } from '../../vertical-stepper.props-DONJJXIy.js';
3
+ export { a as VerticalStepperSize, b as VerticalStepperStep, c as VerticalStepperStepStatus } from '../../vertical-stepper.props-DONJJXIy.js';
4
4
 
5
5
  declare function VerticalStepper({ data, onStepClick, size, className, ariaLabel, }: VerticalStepperProps): React.JSX.Element;
6
6
 
@@ -60,6 +60,7 @@ var sizeStyles = {
60
60
  connectorStart: "start-[1.125rem]",
61
61
  connectorTop: "top-9",
62
62
  textGap: "gap-0.5",
63
+ textMinHeight: "min-h-9",
63
64
  endIcon: "size-4 shrink-0",
64
65
  endGap: "gap-2"
65
66
  },
@@ -74,6 +75,7 @@ var sizeStyles = {
74
75
  connectorStart: "start-[1.375rem]",
75
76
  connectorTop: "top-11",
76
77
  textGap: "gap-0.5",
78
+ textMinHeight: "min-h-11",
77
79
  endIcon: "size-5 shrink-0",
78
80
  endGap: "gap-2"
79
81
  },
@@ -88,6 +90,7 @@ var sizeStyles = {
88
90
  connectorStart: "start-[1.625rem]",
89
91
  connectorTop: "top-[52px]",
90
92
  textGap: "gap-0.5",
93
+ textMinHeight: "min-h-[52px]",
91
94
  endIcon: "size-6 shrink-0",
92
95
  endGap: "gap-3"
93
96
  }
@@ -108,10 +111,10 @@ function StepTextContent({ step, visuals, s }) {
108
111
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
109
112
  className: cn(s.primary, visuals.titleClass),
110
113
  children: step.title
111
- }), /* @__PURE__ */ jsx("span", {
114
+ }), step.description ? /* @__PURE__ */ jsx("span", {
112
115
  className: cn(s.secondary, visuals.descriptionClass),
113
116
  children: step.description
114
- })] });
117
+ }) : null] });
115
118
  }
116
119
  function VerticalStepperStepRow({ step, isLast, onStepClick, s }) {
117
120
  const visuals = stateVisuals[step.status];
@@ -124,7 +127,7 @@ function VerticalStepperStepRow({ step, isLast, onStepClick, s }) {
124
127
  children: iconSized(step.icon, cn(s.icon, visuals.iconClass))
125
128
  });
126
129
  const textContent = /* @__PURE__ */ jsxs("div", {
127
- className: cn("flex min-w-0 flex-1 flex-col", s.textGap),
130
+ className: cn("flex min-w-0 flex-1 flex-col justify-center", s.textMinHeight, s.textGap),
128
131
  children: [/* @__PURE__ */ jsx("span", {
129
132
  className: "sr-only",
130
133
  children: srStatus
@@ -148,7 +151,7 @@ function VerticalStepperStepRow({ step, isLast, onStepClick, s }) {
148
151
  }),
149
152
  isInteractive ? /* @__PURE__ */ jsx("button", {
150
153
  type: "button",
151
- className: cn("flex min-w-0 flex-1 flex-col rounded-md text-left outline-none", s.textGap, "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50"),
154
+ className: cn("flex min-w-0 flex-1 flex-col justify-center rounded-md text-left outline-none", s.textMinHeight, s.textGap, "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50"),
152
155
  "aria-label": stepAriaLabel,
153
156
  onClick: () => onStepClick(step.id),
154
157
  children: /* @__PURE__ */ jsx(StepTextContent, {
package/dist/index.d.ts CHANGED
@@ -35,6 +35,7 @@ export { Toolbar, ToolbarButton, ToolbarButtonProps, ToolbarProps } from './comp
35
35
  export { AnchoredPanel, AnchoredPanelProps } from './components/anchored-panel/index.js';
36
36
  export { FloatingWindow, FloatingWindowPosition, FloatingWindowProps } from './components/floating-window/index.js';
37
37
  export { NoticeStrip, NoticeStripProps, NoticeTone } from './components/notice-strip/index.js';
38
+ export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleContentProps, TraceCollapsibleProps, TraceCollapsibleTrigger, TraceCollapsibleTriggerProps, TraceDescription, TraceDescriptionProps, TraceIcon, TraceIconProps, TraceLine, TraceLineProps, TraceProps, TraceStatus, TraceTitle, TraceTitleProps } from './components/trace/index.js';
38
39
  export { Readout, ReadoutProps, ReadoutSegment } from './components/readout/index.js';
39
40
  export { ChoiceCard, ChoiceCardProps } from './components/choice-card/index.js';
40
41
  export { ShowcaseCard, ShowcaseCardOpen, ShowcaseCardProps } from './components/showcase-card/index.js';
@@ -43,6 +44,9 @@ export { ActiveFilterTag, ActiveFilters, ActiveFiltersProps, FacetFilterGroup, F
43
44
  export { InputGroup, InputGroupAddon, InputGroupAddonProps, InputGroupProps, InputGroupTextarea, InputGroupTextareaProps } from './components/input-group/index.js';
44
45
  export { Bubble, BubbleProps } from './components/bubble/index.js';
45
46
  export { Reveal, RevealProps } from './components/reveal/index.js';
47
+ export { QrCode, QrCodeProps } from './components/qr-code/index.js';
48
+ export { RangeField, RangeFieldLabels, RangeFieldProps } from './components/range-field/index.js';
49
+ export { Keyframes, KeyframesMotion, KeyframesProps, easeOutSplines, keyTimes } from './components/keyframes/index.js';
46
50
  export { CheckBadge, CheckBadgeProps } from './components/check-badge/index.js';
47
51
  export { MessageScroller, MessageScrollerProps } from './components/message-scroller/index.js';
48
52
  export { ResizableGroup, ResizablePanel, ResizableSeparator } from './components/resizable/index.js';
@@ -52,7 +56,7 @@ export { RadioGroup, RadioGroupProps, RadioGroupSize, RadioOption } from './comp
52
56
  export { SelectableCardList, SelectableCardListElement, SelectableCardListItem, SelectableCardListMultiProps, SelectableCardListProps, SelectableCardListSingleProps, SelectableCardListSize } from './components/selectable-card-list/index.js';
53
57
  export { StatusCardList, StatusCardListItem, StatusCardListProps, StatusCardListSize, StatusCardState } from './components/status-card-list/index.js';
54
58
  export { VerticalStepper } from './components/vertical-stepper/index.js';
55
- export { V as VerticalStepperProps, a as VerticalStepperSize, b as VerticalStepperStep, c as VerticalStepperStepStatus } from './vertical-stepper.props-BXYcbW70.js';
59
+ export { V as VerticalStepperProps, a as VerticalStepperSize, b as VerticalStepperStep, c as VerticalStepperStepStatus } from './vertical-stepper.props-DONJJXIy.js';
56
60
  export { HorizontalStepper, HorizontalStepperAlign, HorizontalStepperProps, HorizontalStepperSemantics, HorizontalStepperSize, HorizontalStepperStep } from './components/horizontal-stepper/index.js';
57
61
  export { OptionCardGroup, OptionCardGroupItem, OptionCardGroupProps, OptionCardGroupTag } from './components/option-card-group/index.js';
58
62
  export { StepTabs, StepTabsProps, StepTabsSize, StepTabsStep, StepTabsVariant } from './components/step-tabs/index.js';
package/dist/index.js CHANGED
@@ -70,6 +70,12 @@ import { FloatingWindow } from "./components/floating-window/floating-window.js"
70
70
  import { IconTextActionCard } from "./components/icon-text-action-card/icon-text-action-card.js";
71
71
  import { Alert } from "./components/alert/alert.js";
72
72
  import { NoticeStrip } from "./components/notice-strip/notice-strip.js";
73
+ import { GlitchText } from "./components/text-effects/glitch-effect/glitch-text.js";
74
+ import { GradientText } from "./components/text-effects/gradient-text/gradient-text.js";
75
+ import { HighlightText } from "./components/text-effects/highlight-text/highlight-text.js";
76
+ import { ShimmeringText } from "./components/text-effects/shimmer-text/shimmer-text.js";
77
+ import { parseTextMarkup } from "./components/text-effects/parse-text-markup.js";
78
+ import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./components/trace/trace.js";
73
79
  import { Readout } from "./components/readout/readout.js";
74
80
  import { ChoiceCard } from "./components/choice-card/choice-card.js";
75
81
  import { MediaCard, MediaCardAction, MediaCardBody, MediaCardFooter, MediaCardLink, MediaCardMedia, MediaCardMeta, MediaCardTitle } from "./components/media-card/media-card.js";
@@ -87,6 +93,10 @@ import { supportsViewTransitions, useFiltersCollapsed } from "./components/facet
87
93
  import { InputGroup, InputGroupAddon, InputGroupTextarea } from "./components/input-group/input-group.js";
88
94
  import { Bubble } from "./components/bubble/bubble.js";
89
95
  import { Reveal } from "./components/reveal/reveal.js";
96
+ import { QrCode } from "./components/qr-code/qr-code.js";
97
+ import { RangeField } from "./components/range-field/range-field.js";
98
+ import { KeyframesMotion, easeOutSplines, keyTimes } from "./components/keyframes/keyframes-motion.js";
99
+ import { Keyframes } from "./components/keyframes/keyframes.js";
90
100
  import { CheckBadge } from "./components/check-badge/check-badge.js";
91
101
  import { MessageScroller } from "./components/message-scroller/message-scroller.js";
92
102
  import { ResizableGroup } from "./components/resizable/resizable-group.js";
@@ -176,11 +186,6 @@ import { InlineError } from "./components/error-display/inline-error/inline-erro
176
186
  import { SimpleClickableCard } from "./components/simple-clickable-card/simple-clickable-card.js";
177
187
  import { CategoryCard } from "./components/category-card/category-card.js";
178
188
  import { SimpleInfoCard } from "./components/simple-info-card/simple-info-card.js";
179
- import { GlitchText } from "./components/text-effects/glitch-effect/glitch-text.js";
180
- import { GradientText } from "./components/text-effects/gradient-text/gradient-text.js";
181
- import { HighlightText } from "./components/text-effects/highlight-text/highlight-text.js";
182
- import { ShimmeringText } from "./components/text-effects/shimmer-text/shimmer-text.js";
183
- import { parseTextMarkup } from "./components/text-effects/parse-text-markup.js";
184
189
  import { CodeEditor } from "./components/code-editor/code-editor.js";
185
190
  import { ContentContainer } from "./components/content-container/content-container.js";
186
191
  import PageContainer from "./components/page-container/page-container.js";
@@ -198,4 +203,4 @@ import WorkspaceLayout from "./layouts/workspace-layout/workspace-layout.js";
198
203
  import MinimalWorkspaceLayout from "./layouts/minimal-workspace-layout/minimal-workspace-layout.js";
199
204
  import { MinimalWorkspaceSidebarTrigger } from "./layouts/minimal-workspace-layout/sidebar-trigger.js";
200
205
  import EntryLayout from "./layouts/entry-layout/entry-layout.js";
201
- 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, 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, RADII, ROLLING_PRESET_IDS, RadioGroup, 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, 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, getChartSeriesColor, illustrationRegistry, illustrationsById, isSidebarGroup, 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 };
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 };
@@ -12,6 +12,7 @@ type VerticalStepperSize = "sm" | "default" | "lg";
12
12
  interface VerticalStepperStep {
13
13
  id: string;
14
14
  title: string;
15
+ /** A second line under the title; an empty string draws none, and the title centres on the icon. */
15
16
  description: string;
16
17
  icon: ReactNode;
17
18
  status: VerticalStepperStepStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@espressif/dashboard-ui-components",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Reusable React UI components, page layouts, and utilities — Espressif's dashboard design system.",
5
5
  "keywords": [
6
6
  "react",
@@ -150,6 +150,7 @@
150
150
  },
151
151
  "peerDependencies": {
152
152
  "@tanstack/react-table": "^8.0.0",
153
+ "qrcode": "^1.5.0",
153
154
  "react": "^18.0.0 || ^19.0.0",
154
155
  "react-dom": "^18.0.0 || ^19.0.0",
155
156
  "react-hook-form": "^7.0.0",
@@ -160,6 +161,9 @@
160
161
  "@tanstack/react-table": {
161
162
  "optional": true
162
163
  },
164
+ "qrcode": {
165
+ "optional": true
166
+ },
163
167
  "react-hook-form": {
164
168
  "optional": true
165
169
  }
@@ -206,11 +210,13 @@
206
210
  "@testing-library/react": "16.3.2",
207
211
  "@testing-library/user-event": "14.6.1",
208
212
  "@types/lodash-es": "^4.17.12",
213
+ "@types/qrcode": "1.5.6",
209
214
  "@types/react": "^19.0.0",
210
215
  "@types/react-dom": "^19.0.0",
211
216
  "esbuild": "^0.28.1",
212
217
  "eslint": "10.10.0",
213
218
  "jsdom": "29.1.1",
219
+ "qrcode": "1.5.4",
214
220
  "react": "^19.0.0",
215
221
  "react-dom": "^19.0.0",
216
222
  "react-hook-form": "^7.71.0",
@@ -106,6 +106,12 @@
106
106
  at the call site. */
107
107
  --animate-throb: espd-throb 2s ease-out infinite;
108
108
  --animate-throb-ring: espd-throb-ring 2s ease-out infinite;
109
+ /* "This is the one": a soft primary tint that fades back, once, to the
110
+ element's own background (a panel showing what a click elsewhere opened,
111
+ even when it was already open). Background only, so it never moves
112
+ anything. Restart it by re-mounting or re-keying the element. Wrap it in
113
+ motion-safe: at the call site. */
114
+ --animate-highlight: espd-highlight 0.9s ease-out;
109
115
 
110
116
  /* Easings beyond Tailwind's three. `spring` overshoots and settles (a mark
111
117
  scaling up when it lights); `emphasized` is a fast-out, long-settle curve
@@ -354,6 +360,15 @@
354
360
  }
355
361
  }
356
362
 
363
+ /* Only a start: it fades to whatever background the element has. The tint is
364
+ mixed into the page background, not into transparent, so an opaque surface
365
+ (a sticky header over scrolled content) stays opaque the whole way. */
366
+ @keyframes espd-highlight {
367
+ from {
368
+ background-color: color-mix(in oklab, var(--color-primary) 18%, var(--color-background));
369
+ }
370
+ }
371
+
357
372
  @keyframes espd-throb {
358
373
  0%,
359
374
  70%,