@espressif/dashboard-ui-components 1.13.0 → 1.14.1
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/.claude/rules/dashboard-ui-consumption.md +42 -0
- package/.cursor/rules/dashboard-ui-consumption.mdc +40 -1
- package/CHANGELOG.md +272 -0
- package/README.md +68 -6
- package/dist/{alert.props-CcKo49Rb.d.ts → alert.props-BuLuWmXA.d.ts} +3 -3
- package/dist/common/copyright-card/copyright-card.js +1 -1
- package/dist/common/footer-card/footer-card.js +2 -2
- package/dist/common/index.d.ts +3 -0
- package/dist/common/my-account-menu/my-account-menu.js +2 -2
- package/dist/common/page-loader/page-loader.js +4 -1
- package/dist/common/profile-card/profile-card.js +2 -2
- package/dist/components/accordion/accordion.js +6 -11
- package/dist/components/alert/index.d.ts +5 -5
- package/dist/components/anchored-panel/anchored-panel.js +4 -4
- package/dist/components/async-multi-select/async-multi-select.js +8 -8
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/bottom-sheet/_hooks/use-sheet-drag.js +112 -0
- package/dist/components/bottom-sheet/bottom-sheet.js +84 -0
- package/dist/components/bottom-sheet/index.d.ts +50 -0
- package/dist/components/bottom-sheet/index.js +3 -0
- package/dist/components/bubble/bubble.js +1 -1
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/flash-button.js +4 -4
- package/dist/components/calendar/calendar.js +5 -5
- package/dist/components/cards/animated-card/animated-card.js +1 -1
- package/dist/components/cards/basic-details-card.js +2 -2
- package/dist/components/cards/collapsible-card.js +1 -1
- package/dist/components/cards/index.d.ts +2 -2
- package/dist/components/cards/no-data-card/no-data-card.js +2 -2
- package/dist/components/cards/section-card.js +12 -12
- package/dist/components/cards/simple-card.js +2 -5
- package/dist/components/category-card/category-card.js +2 -2
- package/dist/components/chart/chart.js +4 -4
- package/dist/components/chart/donut-chart.js +1 -1
- package/dist/components/chart/treemap-chart.js +1 -1
- package/dist/components/choice-card/choice-card.js +3 -3
- package/dist/components/code-editor/code-editor.js +4 -3
- package/dist/components/data-table/table-header.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +3 -3
- package/dist/components/dynamic-list/dynamic-list.js +14 -13
- package/dist/components/dynamic-list/index.d.ts +1 -1
- package/dist/components/error-display/full-size-error/full-size-error.js +2 -2
- package/dist/components/expandable-text/expandable-text-overlay.js +1 -1
- package/dist/components/facet-filters/filter-group.js +2 -2
- package/dist/components/feature-grid/feature-grid.js +3 -3
- package/dist/components/file-input/file-input.js +8 -8
- package/dist/components/file-upload/file-upload.js +4 -4
- package/dist/components/fullscreen-dialog/fullscreen-dialog.js +1 -1
- package/dist/components/gradient-ring-button/_hooks/use-ring-geometry.js +116 -0
- package/dist/components/gradient-ring-button/gradient-ring-button.js +44 -0
- package/dist/components/gradient-ring-button/gradient-ring.js +77 -0
- package/dist/components/gradient-ring-button/index.d.ts +66 -0
- package/dist/components/gradient-ring-button/index.js +3 -0
- package/dist/components/horizontal-stepper/horizontal-stepper.js +4 -8
- package/dist/components/horizontal-stepper/index.d.ts +1 -1
- package/dist/components/icon-avatar/index.d.ts +3 -3
- package/dist/components/icon-text-action-card/index.d.ts +4 -4
- package/dist/components/index.d.ts +9 -7
- package/dist/components/index.js +5 -1
- package/dist/components/key-value-manager/key-value-manager-add-popover.js +1 -1
- package/dist/components/key-value-manager/key-value-manager-table.js +1 -1
- package/dist/components/link/link.js +7 -7
- package/dist/components/list/list-item.utils.js +5 -4
- package/dist/components/list/list.js +1 -1
- package/dist/components/list-details/index.d.ts +2 -2
- package/dist/components/markdown-content/markdown-content.components.js +2 -2
- package/dist/components/media-card/media-card-reveal.js +2 -2
- package/dist/components/media-card/media-card.js +2 -2
- package/dist/components/monospace-content/index.d.ts +4 -4
- package/dist/components/monospace-content/monospace-content.js +9 -11
- package/dist/components/nav-bar/nav-bar-mobile-menu.js +3 -3
- package/dist/components/nav-bar/nav-bar.js +4 -4
- package/dist/components/notice-strip/notice-strip.js +1 -1
- package/dist/components/option-card-group/option-card-group.js +2 -2
- package/dist/components/overflow-badge-list/index.d.ts +2 -2
- package/dist/components/overflow-badge-list/overflow-badge-list.js +3 -3
- package/dist/components/page-banner/page-banner.js +1 -1
- package/dist/components/page-container/page-container.js +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/qr-code/qr-code.js +2 -2
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/range-field/range-field.js +9 -12
- package/dist/components/readout/readout.js +1 -1
- package/dist/components/requirement-list/requirement-list.js +5 -10
- package/dist/components/scrollable-sections/scrollable-sections.js +1 -1
- package/dist/components/search-field-shell.js +8 -8
- package/dist/components/selectable-card-list/selectable-card-list-shared.js +6 -6
- package/dist/components/showcase-card/showcase-card.js +2 -2
- package/dist/components/sidebar/sidebar.js +13 -15
- package/dist/components/simple-clickable-card/index.d.ts +4 -4
- package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +17 -23
- package/dist/components/simple-info-card/index.d.ts +3 -3
- package/dist/components/simple-list/index.d.ts +1 -1
- package/dist/components/simple-list/simple-list.js +8 -8
- package/dist/components/simple-paginated-list/simple-paginated-list.js +1 -4
- package/dist/components/stat-card/stat-card.js +7 -13
- package/dist/components/status-badge/index.d.ts +3 -3
- package/dist/components/status-badge/status-badge.js +4 -4
- package/dist/components/status-card-list/status-card-list.js +6 -6
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag/tag.js +4 -4
- package/dist/components/tag-input/tag-input.js +12 -12
- package/dist/components/timeline/timeline.js +2 -2
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/toast.js +2 -2
- package/dist/components/toolbar/index.d.ts +5 -2
- package/dist/components/toolbar/toolbar-button.js +1 -1
- package/dist/components/toolbar/toolbar.js +9 -3
- package/dist/components/trace/trace.js +1 -1
- package/dist/components/transfer-list/transfer-list.js +2 -2
- package/dist/components/typography/index.d.ts +12 -3
- package/dist/components/typography/typography-variants.js +98 -13
- package/dist/components/typography/typography.js +4 -2
- package/dist/components/user-type-badge/user-type-badge.js +4 -4
- package/dist/components/vertical-stepper/vertical-stepper.js +11 -7
- package/dist/core/alert.js +3 -3
- package/dist/core/animate-ui/components/animate/code-header.js +1 -1
- package/dist/core/animate-ui/components/animate/code.js +1 -1
- package/dist/core/animate-ui/components/animate/tabs.js +6 -6
- package/dist/core/animate-ui/components/animate/tooltip.js +1 -1
- package/dist/core/animate-ui/components/base/progress.js +2 -2
- package/dist/core/animate-ui/components/radix/accordion.js +2 -2
- package/dist/core/animate-ui/components/radix/dialog.js +2 -2
- package/dist/core/animate-ui/components/radix/dropdown-menu.js +6 -6
- package/dist/core/animate-ui/components/radix/sheet.js +2 -2
- package/dist/core/animate-ui/components/radix/sidebar.js +8 -8
- package/dist/core/animate-ui/components/radix/toggle-group.js +4 -4
- package/dist/core/animate-ui/components/radix/toggle.js +1 -1
- package/dist/core/animate-ui/primitives/animate/tooltip.js +3 -0
- package/dist/core/badge.js +1 -1
- package/dist/core/breadcrumb.js +1 -1
- package/dist/core/button/button.js +2 -2
- package/dist/core/button/craft-button.js +4 -4
- package/dist/core/button-group.js +1 -1
- package/dist/core/button.js +2 -2
- package/dist/core/card.js +2 -2
- package/dist/core/combobox/combobox.js +3 -3
- package/dist/core/command.js +5 -5
- package/dist/core/field-label-row.js +4 -4
- package/dist/core/form.js +2 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/core/input/input.js +11 -11
- package/dist/core/input-otp/input-otp.js +12 -12
- package/dist/core/label.js +1 -1
- package/dist/core/select.js +6 -6
- package/dist/core/separator.js +1 -1
- package/dist/core/table.js +2 -2
- package/dist/core/textarea/textarea.js +9 -9
- package/dist/{icon-avatar.props-RYtw2eSW.d.ts → icon-avatar.props-BJe0-vva.d.ts} +1 -1
- package/dist/{icon-text-action-card.props-B2ggncUK.d.ts → icon-text-action-card.props-BU7yFi2Q.d.ts} +2 -2
- package/dist/index.d.ts +9 -7
- package/dist/index.js +6 -2
- package/dist/layouts/entry-layout/entry-layout.js +1 -1
- package/dist/layouts/index.d.ts +21 -6
- package/dist/layouts/index.js +1 -1
- package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +10 -18
- package/dist/layouts/minimal-workspace-layout/sidebar-trigger.js +35 -7
- package/dist/layouts/workspace-layout/footer/footer.js +1 -1
- package/dist/markdown/index.d.ts +4 -4
- package/dist/{section-card-B7c5uc08.d.ts → section-card-DqQeQkzU.d.ts} +1 -1
- package/dist/{simple-clickable-card.props-BrPCw7CR.d.ts → simple-clickable-card.props-BhhotZMp.d.ts} +2 -2
- package/dist/{status-badge.props-lKlEOfRt.d.ts → status-badge.props-BVe8CmQZ.d.ts} +1 -1
- package/dist/styles/type-scale.js +153 -0
- package/dist/tailwind-preset.js +120 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/utils/cn.js +16 -5
- package/dist/utils/color.js +10 -1
- package/dist/utils/index.d.ts +37 -3
- package/dist/utils/index.js +2 -1
- package/dist/utils/variant.js +76 -76
- package/dist/{variant-D81RhpbR.d.ts → variant-DjdaxfIA.d.ts} +6 -1
- package/package.json +6 -2
- package/src/styles/colors.css +23 -2
- package/src/styles/theme.css +8 -3
- package/src/styles/type-scale.css +152 -0
- package/tailwind.preset.ts +23 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { usePrefersReducedMotion } from "../../core/hooks/use-prefers-reduced-motion.js";
|
|
3
|
+
import { DEFAULT_TURN_SECONDS, RING_WIDTH, useRingGeometry } from "./_hooks/use-ring-geometry.js";
|
|
4
|
+
import { useId } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/gradient-ring-button/gradient-ring.tsx
|
|
7
|
+
/**
|
|
8
|
+
* A 2px border in the theme's gradient (`--color-gradient-start` → middle →
|
|
9
|
+
* end) around one pill-shaped control: at rest the start colour is on the
|
|
10
|
+
* left and the end colour on the right. While the control is pointed at (or
|
|
11
|
+
* focused from the keyboard) the whole gradient turns clockwise, and when it
|
|
12
|
+
* is let go it finishes the turn it is on and settles back.
|
|
13
|
+
*
|
|
14
|
+
* SVG, not a turning CSS layer: a turning layer has to be clipped to the
|
|
15
|
+
* pill, and a clip on an animated layer softens its outermost pixel, which is
|
|
16
|
+
* the whole ring. A stroke is painted as a line wherever it is, so the
|
|
17
|
+
* control can stay transparent. The gradient turns in the outline's own box
|
|
18
|
+
* (objectBoundingBox), so a quarter turn puts the start colour along the
|
|
19
|
+
* whole top however wide the pill is. The stops take the tokens through
|
|
20
|
+
* `currentColor`, and the turn is SMIL. Not rendered for someone who asked
|
|
21
|
+
* for less motion: the ring then only brightens, and keyboard focus gets the
|
|
22
|
+
* page's usual outline.
|
|
23
|
+
*/
|
|
24
|
+
function GradientRing({ children, wide = false, quiet = false, cue = false, turnSeconds = DEFAULT_TURN_SECONDS }) {
|
|
25
|
+
const reduced = usePrefersReducedMotion();
|
|
26
|
+
const moving = !quiet && !reduced;
|
|
27
|
+
const gradient = `gradient-ring-${useId().replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
28
|
+
const { wrapRef, svgRef } = useRingGeometry(moving, turnSeconds, cue);
|
|
29
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
30
|
+
ref: wrapRef,
|
|
31
|
+
"data-slot": "gradient-ring",
|
|
32
|
+
className: cn("group/ring relative rounded-full p-0.5", wide ? "flex w-full" : "inline-flex", !moving && !quiet && "has-focus-visible:outline-2 has-focus-visible:outline-offset-2 has-focus-visible:outline-ring"),
|
|
33
|
+
children: [children, /* @__PURE__ */ jsxs("svg", {
|
|
34
|
+
ref: svgRef,
|
|
35
|
+
"aria-hidden": "true",
|
|
36
|
+
className: cn("pointer-events-none absolute inset-0 size-full overflow-visible transition-opacity duration-300 motion-reduce:transition-none", quiet ? "opacity-35" : "opacity-75 group-hover/ring:opacity-100 group-has-focus-visible/ring:opacity-100"),
|
|
37
|
+
children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
|
|
38
|
+
id: gradient,
|
|
39
|
+
x1: "0",
|
|
40
|
+
y1: "0.5",
|
|
41
|
+
x2: "1",
|
|
42
|
+
y2: "0.5",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsx("stop", {
|
|
45
|
+
offset: "0",
|
|
46
|
+
stopColor: "currentColor",
|
|
47
|
+
className: "text-gradient-start"
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ jsx("stop", {
|
|
50
|
+
offset: "0.5",
|
|
51
|
+
stopColor: "currentColor",
|
|
52
|
+
className: "text-gradient-middle"
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ jsx("stop", {
|
|
55
|
+
offset: "1",
|
|
56
|
+
stopColor: "currentColor",
|
|
57
|
+
className: "text-gradient-end"
|
|
58
|
+
}),
|
|
59
|
+
moving && /* @__PURE__ */ jsx("animateTransform", {
|
|
60
|
+
attributeName: "gradientTransform",
|
|
61
|
+
type: "rotate",
|
|
62
|
+
from: "0 0.5 0.5",
|
|
63
|
+
to: "360 0.5 0.5",
|
|
64
|
+
dur: `${turnSeconds}s`,
|
|
65
|
+
repeatCount: "indefinite"
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
}) }), /* @__PURE__ */ jsx("rect", {
|
|
69
|
+
fill: "none",
|
|
70
|
+
stroke: `url(#${gradient})`,
|
|
71
|
+
strokeWidth: RING_WIDTH
|
|
72
|
+
})]
|
|
73
|
+
})]
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { GradientRing };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { b as ButtonProps } from '../../button-BxJ7s6sR.js';
|
|
4
|
+
import '../../button-BK-DIR_L.js';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
import 'class-variance-authority';
|
|
7
|
+
import '../../style-axes-DSQ2DGc5.js';
|
|
8
|
+
import '../../index-BQANnKs9.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The styled Button's props, less `variant` and `color` (the look is the
|
|
12
|
+
* component: clear, plain text, the gradient ring). `fullWidth` defaults to
|
|
13
|
+
* `false` here, and the ring goes full width with the button.
|
|
14
|
+
*/
|
|
15
|
+
interface GradientRingButtonProps extends Omit<ButtonProps, "variant" | "color"> {
|
|
16
|
+
/** One full turn of the ring's gradient while pointed at or focused from the keyboard, in seconds. Default 1.5. */
|
|
17
|
+
turnSeconds?: number;
|
|
18
|
+
/** Turn once by itself as it appears ("this is your next step"), then settle. Read on mount only. */
|
|
19
|
+
cue?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A clear pill button with a 2px border in the theme's gradient tokens that
|
|
24
|
+
* turns clockwise while it is pointed at or focused from the keyboard, and
|
|
25
|
+
* settles back when let go (see `GradientRing`). For the one step into
|
|
26
|
+
* something new on a surface, where a filled primary button is too loud.
|
|
27
|
+
*
|
|
28
|
+
* Every prop of the styled Button passes through except `variant` and
|
|
29
|
+
* `color`. `disabled` fades the ring and holds it still; `fullWidth`
|
|
30
|
+
* (default `false`) makes the ring the full width too.
|
|
31
|
+
*/
|
|
32
|
+
declare const GradientRingButton: React.ForwardRefExoticComponent<GradientRingButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
|
|
34
|
+
interface GradientRingProps {
|
|
35
|
+
/** One pill-shaped control (the ring draws over its outermost pixel). */
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
/** The control takes the full width (a phone's own row). */
|
|
38
|
+
wide?: boolean;
|
|
39
|
+
/** A control that cannot be used now: the ring fades and stays still. */
|
|
40
|
+
quiet?: boolean;
|
|
41
|
+
/** Turn once by itself as it appears, then settle. Read on mount only. */
|
|
42
|
+
cue?: boolean;
|
|
43
|
+
/** One full turn of the gradient while the control is engaged, in seconds. Default 1.5. */
|
|
44
|
+
turnSeconds?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A 2px border in the theme's gradient (`--color-gradient-start` → middle →
|
|
49
|
+
* end) around one pill-shaped control: at rest the start colour is on the
|
|
50
|
+
* left and the end colour on the right. While the control is pointed at (or
|
|
51
|
+
* focused from the keyboard) the whole gradient turns clockwise, and when it
|
|
52
|
+
* is let go it finishes the turn it is on and settles back.
|
|
53
|
+
*
|
|
54
|
+
* SVG, not a turning CSS layer: a turning layer has to be clipped to the
|
|
55
|
+
* pill, and a clip on an animated layer softens its outermost pixel, which is
|
|
56
|
+
* the whole ring. A stroke is painted as a line wherever it is, so the
|
|
57
|
+
* control can stay transparent. The gradient turns in the outline's own box
|
|
58
|
+
* (objectBoundingBox), so a quarter turn puts the start colour along the
|
|
59
|
+
* whole top however wide the pill is. The stops take the tokens through
|
|
60
|
+
* `currentColor`, and the turn is SMIL. Not rendered for someone who asked
|
|
61
|
+
* for less motion: the ring then only brightens, and keyboard focus gets the
|
|
62
|
+
* page's usual outline.
|
|
63
|
+
*/
|
|
64
|
+
declare function GradientRing({ children, wide, quiet, cue, turnSeconds }: GradientRingProps): React.JSX.Element;
|
|
65
|
+
|
|
66
|
+
export { GradientRing, GradientRingButton, type GradientRingButtonProps, type GradientRingProps };
|
|
@@ -7,16 +7,12 @@ var sizes = {
|
|
|
7
7
|
sm: {
|
|
8
8
|
node: "size-7",
|
|
9
9
|
icon: "size-3.5",
|
|
10
|
-
label: "text-[11px]",
|
|
11
|
-
description: "text-[11px]",
|
|
12
10
|
line: "top-3.5",
|
|
13
11
|
lineFromNode: "left-9"
|
|
14
12
|
},
|
|
15
13
|
default: {
|
|
16
14
|
node: "size-9",
|
|
17
15
|
icon: "size-4.5",
|
|
18
|
-
label: "text-xs",
|
|
19
|
-
description: "text-xs",
|
|
20
16
|
line: "top-4.5",
|
|
21
17
|
lineFromNode: "left-11"
|
|
22
18
|
}
|
|
@@ -60,7 +56,7 @@ function sized(icon, className) {
|
|
|
60
56
|
function HorizontalStepper({ steps, color = "primary", size = "default", tone = "default", animateIn, ariaLabel = "Progress", align = "center", semantics = "image", className }) {
|
|
61
57
|
const s = sizes[size];
|
|
62
58
|
const t = tones[tone];
|
|
63
|
-
const fill = resolveColor(color, "
|
|
59
|
+
const fill = resolveColor(color, "solid");
|
|
64
60
|
const onFill = resolveColor(color, "fg");
|
|
65
61
|
const animate = animateIn === "media-card-reveal";
|
|
66
62
|
const start = align === "start";
|
|
@@ -98,7 +94,7 @@ function HorizontalStepper({ steps, color = "primary", size = "default", tone =
|
|
|
98
94
|
/* @__PURE__ */ jsx("span", {
|
|
99
95
|
"data-status": step.status,
|
|
100
96
|
"aria-hidden": asList ? true : void 0,
|
|
101
|
-
className: cn("relative z-10 flex shrink-0 items-center justify-center rounded-full border-2", s.node, stale && "border-transparent bg-warning text-warning-foreground", failed && "border-transparent bg-error text-error-foreground", !stale && !failed && (reached ? cn("border-transparent", fill.className, onFill.className) : t.upcoming), animate && cn(NODE_POP, NODE_DELAYS[Math.min(index, NODE_DELAYS.length - 1)])),
|
|
97
|
+
className: cn("relative z-10 flex shrink-0 items-center justify-center rounded-full border-2", s.node, stale && "border-transparent bg-warning-solid text-warning-foreground", failed && "border-transparent bg-error text-error-foreground", !stale && !failed && (reached ? cn("border-transparent", fill.className, onFill.className) : t.upcoming), animate && cn(NODE_POP, NODE_DELAYS[Math.min(index, NODE_DELAYS.length - 1)])),
|
|
102
98
|
style: reached && !stale && !failed && (fill.style || onFill.style) ? {
|
|
103
99
|
...fill.style,
|
|
104
100
|
...onFill.style
|
|
@@ -106,11 +102,11 @@ function HorizontalStepper({ steps, color = "primary", size = "default", tone =
|
|
|
106
102
|
children: sized(step.icon, s.icon)
|
|
107
103
|
}),
|
|
108
104
|
/* @__PURE__ */ jsx("span", {
|
|
109
|
-
className: cn("max-w-full font-semibold", step.description ? "mt-1" : "truncate",
|
|
105
|
+
className: cn("max-w-full type-label font-semibold", step.description ? "mt-1" : "truncate", reached ? t.label : t.upcomingLabel, start && "text-left"),
|
|
110
106
|
children: step.label
|
|
111
107
|
}),
|
|
112
108
|
step.description && /* @__PURE__ */ jsx("span", {
|
|
113
|
-
className: cn("max-w-full
|
|
109
|
+
className: cn("max-w-full type-secondary text-muted-foreground", start ? "text-left" : "text-center"),
|
|
114
110
|
children: step.description
|
|
115
111
|
})
|
|
116
112
|
]
|
|
@@ -32,7 +32,7 @@ interface HorizontalStepperProps {
|
|
|
32
32
|
steps: HorizontalStepperStep[];
|
|
33
33
|
/** Fill of the steps reached (complete and current) and of the line between them. Default `primary`. */
|
|
34
34
|
color?: Color;
|
|
35
|
-
/** `sm`: 28px nodes and
|
|
35
|
+
/** `sm`: 28px nodes and tighter spacing, for a card (labels keep the `label` role). Default `default`. */
|
|
36
36
|
size?: HorizontalStepperSize;
|
|
37
37
|
/**
|
|
38
38
|
* `inverse` draws it for a dark overlay such as a `MediaCardReveal` panel, in
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { I as IconAvatarProps } from '../../icon-avatar.props-
|
|
3
|
-
export { a as IconAvatarRingProps, b as IconAvatarVariant } from '../../icon-avatar.props-
|
|
2
|
+
import { I as IconAvatarProps } from '../../icon-avatar.props-BJe0-vva.js';
|
|
3
|
+
export { a as IconAvatarRingProps, b as IconAvatarVariant } from '../../icon-avatar.props-BJe0-vva.js';
|
|
4
4
|
import '../../index-BQANnKs9.js';
|
|
5
|
-
import '../../variant-
|
|
5
|
+
import '../../variant-DjdaxfIA.js';
|
|
6
6
|
|
|
7
7
|
declare function IconAvatar({ size, color, variant, ring, children, className, discClassName, discStyle, }: IconAvatarProps): React.JSX.Element;
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { a as IconTextActionCardProps } from '../../icon-text-action-card.props-
|
|
3
|
-
export { I as IconTextActionCardActionsPlacement, b as IconTextActionCardVariant } from '../../icon-text-action-card.props-
|
|
2
|
+
import { a as IconTextActionCardProps } from '../../icon-text-action-card.props-BU7yFi2Q.js';
|
|
3
|
+
export { I as IconTextActionCardActionsPlacement, b as IconTextActionCardVariant } from '../../icon-text-action-card.props-BU7yFi2Q.js';
|
|
4
4
|
import '../../index-BQANnKs9.js';
|
|
5
|
-
import '../../variant-
|
|
5
|
+
import '../../variant-DjdaxfIA.js';
|
|
6
6
|
import '../../style-axes-DSQ2DGc5.js';
|
|
7
|
-
import '../../icon-avatar.props-
|
|
7
|
+
import '../../icon-avatar.props-BJe0-vva.js';
|
|
8
8
|
|
|
9
9
|
declare const IconTextActionCard: React.ForwardRefExoticComponent<IconTextActionCardProps & React.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { 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-
|
|
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 './style-scope/index.js';
|
|
5
5
|
export { TruncatedLineWithTooltip, TruncatedLineWithTooltipProps } from './truncated-line-with-tooltip/index.js';
|
|
@@ -34,6 +34,7 @@ export { ViewMode, ViewToggle, ViewToggleLabels, ViewToggleProps } from './view-
|
|
|
34
34
|
export { Toolbar, ToolbarButton, ToolbarButtonProps, ToolbarProps } from './toolbar/index.js';
|
|
35
35
|
export { AnchoredPanel, AnchoredPanelProps } from './anchored-panel/index.js';
|
|
36
36
|
export { FloatingWindow, FloatingWindowPosition, FloatingWindowProps } from './floating-window/index.js';
|
|
37
|
+
export { BottomSheet, BottomSheetLabels, BottomSheetProps, SheetRest, settleSheet } from './bottom-sheet/index.js';
|
|
37
38
|
export { NoticeStrip, NoticeStripProps, NoticeTone } from './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 './trace/index.js';
|
|
39
40
|
export { Readout, ReadoutProps, ReadoutSegment } from './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 './button/index.js';
|
|
67
68
|
export { ReactionButton, ReactionButtonProps } from './reaction-button/index.js';
|
|
69
|
+
export { GradientRing, GradientRingButton, GradientRingButtonProps, GradientRingProps } from './gradient-ring-button/index.js';
|
|
68
70
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from './button-group/index.js';
|
|
69
71
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './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 './chart/index.js';
|
|
@@ -107,12 +109,12 @@ export { ShareMenu, ShareMenuLabels, ShareMenuProps, ShareTarget } from './share
|
|
|
107
109
|
export { Timeline, TimelineItem, TimelineLabels, TimelineProps } from './timeline/index.js';
|
|
108
110
|
export { Identicon, IdenticonProps } from './identicon/index.js';
|
|
109
111
|
export { IconAvatar } from './icon-avatar/index.js';
|
|
110
|
-
export { I as IconAvatarProps, a as IconAvatarRingProps, b as IconAvatarVariant } from '../icon-avatar.props-
|
|
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 './illustration/index.js';
|
|
112
114
|
export { Badge, BadgeProps, badgeVariants } from './badge/index.js';
|
|
113
115
|
export { UserType, UserTypeBadge, UserTypeBadgeProps, UserTypeBadgeRegistryItem, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes } from './user-type-badge/index.js';
|
|
114
116
|
export { StatusBadge, statusBadgeSizeVariants } from './status-badge/index.js';
|
|
115
|
-
export { S as StatusBadgeIcon, a as StatusBadgeProps } from '../status-badge.props-
|
|
117
|
+
export { S as StatusBadgeIcon, a as StatusBadgeProps } from '../status-badge.props-BVe8CmQZ.js';
|
|
116
118
|
export { Tag, TagProps } from './tag/index.js';
|
|
117
119
|
export { TagInput, TagInputProps } from './tag-input/index.js';
|
|
118
120
|
export { TransferItem, TransferList, TransferListProps } from './transfer-list/index.js';
|
|
@@ -132,7 +134,7 @@ export { RequirementList, RequirementListItem, RequirementListProps, Requirement
|
|
|
132
134
|
export { SimpleList, SimpleListAvatarSize, SimpleListIconStyle, SimpleListItem, SimpleListItemDirection, SimpleListProps } from './simple-list/index.js';
|
|
133
135
|
export { SimplePaginatedList, SimplePaginatedListItem, SimplePaginatedListProps, SimplePaginatedListSize } from './simple-paginated-list/index.js';
|
|
134
136
|
export { Alert } from './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-
|
|
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 './toast/index.js';
|
|
137
139
|
export { MarkdownContent, MarkdownContentProps } from './markdown-content/index.js';
|
|
138
140
|
export { MonospaceContent, MonospaceContentProps } from './monospace-content/index.js';
|
|
@@ -145,11 +147,11 @@ export { CircularProgress, CircularProgressProps } from './circular-progress/ind
|
|
|
145
147
|
export { ProgressBar, ProgressBarProps, ProgressBarSegment } from './progress-bar/index.js';
|
|
146
148
|
export { FullSizeError, FullSizeErrorProps, InlineError, InlineErrorProps } from './error-display/index.js';
|
|
147
149
|
export { AnimatedCard, AnimatedCardProps, AnimatedCardType, BasicDetailsCard, BasicDetailsCardProps, CollapsibleCard, CollapsibleCardProps, NoDataCard, NoDataCardProps, SimpleCard, SimpleCardProps, animatedCardAnimations, animatedCardTypeKeys } from './cards/index.js';
|
|
148
|
-
export { S as SectionCard, a as SectionCardProps, b as SectionCardSize, c as SectionCardVariant } from '../section-card-
|
|
150
|
+
export { S as SectionCard, a as SectionCardProps, b as SectionCardSize, c as SectionCardVariant } from '../section-card-DqQeQkzU.js';
|
|
149
151
|
export { IconTextActionCard } from './icon-text-action-card/index.js';
|
|
150
|
-
export { I as IconTextActionCardActionsPlacement, a as IconTextActionCardProps, b as IconTextActionCardVariant } from '../icon-text-action-card.props-
|
|
152
|
+
export { I as IconTextActionCardActionsPlacement, a as IconTextActionCardProps, b as IconTextActionCardVariant } from '../icon-text-action-card.props-BU7yFi2Q.js';
|
|
151
153
|
export { SimpleClickableCard } from './simple-clickable-card/index.js';
|
|
152
|
-
export { S as SimpleClickableCardProps, a as SimpleClickableCardSharedProps, b as SimpleClickableCardVariant } from '../simple-clickable-card.props-
|
|
154
|
+
export { S as SimpleClickableCardProps, a as SimpleClickableCardSharedProps, b as SimpleClickableCardVariant } from '../simple-clickable-card.props-BhhotZMp.js';
|
|
153
155
|
export { CategoryCard, CategoryCardProps } from './category-card/index.js';
|
|
154
156
|
export { SimpleInfoCard, SimpleInfoCardProps } from './simple-info-card/index.js';
|
|
155
157
|
export { GlitchText, GlitchTextProps, GradientText, GradientTextProps, HighlightText, HighlightTextProps, ShimmeringText, ShimmeringTextProps, parseTextMarkup } from './text-effects/index.js';
|
package/dist/components/index.js
CHANGED
|
@@ -64,6 +64,8 @@ import { ToolbarButton } from "./toolbar/toolbar-button.js";
|
|
|
64
64
|
import { Badge, badgeVariants } from "../core/badge.js";
|
|
65
65
|
import { AnchoredPanel } from "./anchored-panel/anchored-panel.js";
|
|
66
66
|
import { FloatingWindow } from "./floating-window/floating-window.js";
|
|
67
|
+
import { settleSheet } from "./bottom-sheet/_hooks/use-sheet-drag.js";
|
|
68
|
+
import { BottomSheet } from "./bottom-sheet/bottom-sheet.js";
|
|
67
69
|
import { IconTextActionCard } from "./icon-text-action-card/icon-text-action-card.js";
|
|
68
70
|
import { Alert } from "./alert/alert.js";
|
|
69
71
|
import { NoticeStrip } from "./notice-strip/notice-strip.js";
|
|
@@ -112,6 +114,8 @@ import { OptionCardGroup } from "./option-card-group/option-card-group.js";
|
|
|
112
114
|
import { StepTabs } from "./step-tabs/step-tabs.js";
|
|
113
115
|
import { StatCard } from "./stat-card/stat-card.js";
|
|
114
116
|
import { ReactionButton } from "./reaction-button/reaction-button.js";
|
|
117
|
+
import { GradientRing } from "./gradient-ring-button/gradient-ring.js";
|
|
118
|
+
import { GradientRingButton } from "./gradient-ring-button/gradient-ring-button.js";
|
|
115
119
|
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "../core/button-group.js";
|
|
116
120
|
import { ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent } from "./chart/chart.js";
|
|
117
121
|
import { CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, DEFAULT_CHART_SERIES_COLORS, buildSeriesChartConfig, getChartSeriesColor } from "./chart/chart-colors.js";
|
|
@@ -187,4 +191,4 @@ import { CodeEditor } from "./code-editor/code-editor.js";
|
|
|
187
191
|
import { ContentContainer } from "./content-container/content-container.js";
|
|
188
192
|
import PageContainer from "./page-container/page-container.js";
|
|
189
193
|
import PageContainerSkeleton from "./page-container/page-container-skeleton.js";
|
|
190
|
-
export { Accordion, ActiveFilters, AdvancedSearchBox, Alert, AnchoredPanel, AnimatedCard, 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, 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, ExpandableText, FeatureGrid, FileInput, FileUpload, FilterGroup, FiltersBar, FiltersPanel, FiltersPill, FlashButton, FlipCard, FloatingWindow, 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, MonospaceContent, NavBar, NoDataCard, NoticeStrip, OptionCardGroup, OverflowBadgeList, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, PRESET_IDS, PRESET_LABELS, PageBanner, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, Popover, PopoverAnchor, PopoverContent, PopoverGroup, PopoverTrigger, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, 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, animatedCardAnimations, animatedCardTypeKeys, arbitraryGradientBackgroundImage, badgeVariants, buildSeriesChartConfig, buttonGroupVariants, buttonVariants, computeDateRange, densityStyle, easeOutSplines, getChartSeriesColor, illustrationRegistry, illustrationsById, isSidebarGroup, keyTimes, listStyleValues, listVariants, parseSvgViewBoxAspectRatio, parseTextMarkup, registerDensity, registerStyleValue, registerVariant, resolveDensity, resolveStyleValue, resolveVariantStyles, statusBadgeSizeVariants, supportsViewTransitions, toast, typographyDefaultElement, typographyVariantClasses, useFiltersCollapsed, useFormField, useIsMobile, usePanelFlag, useSidebar, useStyleAxes, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
|
|
194
|
+
export { Accordion, ActiveFilters, AdvancedSearchBox, Alert, AnchoredPanel, AnimatedCard, 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, 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, ExpandableText, FeatureGrid, FileInput, FileUpload, FilterGroup, FiltersBar, FiltersPanel, FiltersPill, FlashButton, FlipCard, FloatingWindow, 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, MonospaceContent, NavBar, NoDataCard, NoticeStrip, OptionCardGroup, OverflowBadgeList, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, PRESET_IDS, PRESET_LABELS, PageBanner, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, Popover, PopoverAnchor, PopoverContent, PopoverGroup, PopoverTrigger, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, 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, animatedCardAnimations, animatedCardTypeKeys, arbitraryGradientBackgroundImage, badgeVariants, buildSeriesChartConfig, buttonGroupVariants, buttonVariants, computeDateRange, densityStyle, easeOutSplines, getChartSeriesColor, illustrationRegistry, illustrationsById, isSidebarGroup, keyTimes, listStyleValues, listVariants, parseSvgViewBoxAspectRatio, parseTextMarkup, registerDensity, registerStyleValue, registerVariant, resolveDensity, resolveStyleValue, resolveVariantStyles, settleSheet, statusBadgeSizeVariants, supportsViewTransitions, toast, typographyDefaultElement, typographyVariantClasses, useFiltersCollapsed, useFormField, useIsMobile, usePanelFlag, useSidebar, useStyleAxes, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
|
|
@@ -114,7 +114,7 @@ function KeyValueManagerAddPopover({ items, meta, labels, maxAllowed, onUpdate,
|
|
|
114
114
|
endIcon: /* @__PURE__ */ jsx(ArrowRight, {}),
|
|
115
115
|
children: labels.add
|
|
116
116
|
}), showSuccess ? /* @__PURE__ */ jsx("p", {
|
|
117
|
-
className: cn("
|
|
117
|
+
className: cn("type-body text-success"),
|
|
118
118
|
children: labels.successMessage
|
|
119
119
|
}) : null]
|
|
120
120
|
})
|
|
@@ -80,7 +80,7 @@ function KeyValueManagerTable({ rows, itemsPerPage = 10, hasSearchQuery, onDelet
|
|
|
80
80
|
/* @__PURE__ */ jsx("div", {
|
|
81
81
|
className: "overflow-hidden sm:hidden",
|
|
82
82
|
children: noRows ? /* @__PURE__ */ jsx("p", {
|
|
83
|
-
className: "py-8 text-center
|
|
83
|
+
className: "py-8 text-center type-body text-muted-foreground",
|
|
84
84
|
children: emptyMessage
|
|
85
85
|
}) : /* @__PURE__ */ jsx(AnimatePresence, {
|
|
86
86
|
mode: "wait",
|
|
@@ -9,13 +9,13 @@ function isExternalHref(to) {
|
|
|
9
9
|
}
|
|
10
10
|
var baseClasses = "inline-flex items-center gap-1.5 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0";
|
|
11
11
|
var colorClasses = {
|
|
12
|
-
primary: "px-2 h-8
|
|
13
|
-
secondary: "px-2 h-8
|
|
14
|
-
error: "px-2 h-8
|
|
15
|
-
info: "px-2 h-8
|
|
16
|
-
success: "px-2 h-8
|
|
17
|
-
warning: "px-2 h-8
|
|
18
|
-
gray: "px-2 h-8
|
|
12
|
+
primary: "px-2 h-8 type-label text-primary hover:bg-primary/10",
|
|
13
|
+
secondary: "px-2 h-8 type-label text-secondary hover:bg-secondary/10",
|
|
14
|
+
error: "px-2 h-8 type-label text-error hover:bg-error/10",
|
|
15
|
+
info: "px-2 h-8 type-label text-info hover:bg-info/10",
|
|
16
|
+
success: "px-2 h-8 type-label text-success hover:bg-success/10",
|
|
17
|
+
warning: "px-2 h-8 type-label text-warning hover:bg-warning/10",
|
|
18
|
+
gray: "px-2 h-8 type-label text-gray hover:bg-gray/10"
|
|
19
19
|
};
|
|
20
20
|
var variantClasses = {
|
|
21
21
|
default: "",
|
|
@@ -4,7 +4,7 @@ import { LIST_CLASS_NAMES } from "./list.props.js";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/list/list-item.utils.tsx
|
|
7
|
-
var listItemBase = "min-h-[var(--espd-item-height,var(--menu-item-height))] w-full scroll-mt-[calc(var(--spacing)*1.5)] px-[calc(var(--spacing)*2.5)] py-[calc(var(--spacing)*1.5)] my-[calc(var(--spacing)*0.5)]
|
|
7
|
+
var listItemBase = "min-h-[var(--espd-item-height,var(--menu-item-height))] w-full scroll-mt-[calc(var(--spacing)*1.5)] px-[calc(var(--spacing)*2.5)] py-[calc(var(--spacing)*1.5)] my-[calc(var(--spacing)*0.5)] type-body select-none rounded-[var(--espd-own-radius,var(--espd-radius-item,10px))] items-center flex relative no-underline";
|
|
8
8
|
/**
|
|
9
9
|
* Interaction classes shared by the `<button>` and link renderings of a row, so a
|
|
10
10
|
* linked item is visually identical to a clickable one.
|
|
@@ -21,10 +21,11 @@ var presetColorStyles = {
|
|
|
21
21
|
gray: "text-gray",
|
|
22
22
|
mist: "text-mist-foreground"
|
|
23
23
|
};
|
|
24
|
+
/** Padding per size. The text is `type-body` (in `listItemBase`) at every size. */
|
|
24
25
|
var sizeStyles = {
|
|
25
|
-
sm: "
|
|
26
|
-
default: "
|
|
27
|
-
lg: "
|
|
26
|
+
sm: "py-1 px-2",
|
|
27
|
+
default: "py-1.5 px-2",
|
|
28
|
+
lg: "py-2 px-3"
|
|
28
29
|
};
|
|
29
30
|
function isListItem(item) {
|
|
30
31
|
return typeof item === "object" && item !== null && !React.isValidElement(item) && "id" in item && "label" in item && typeof item.id === "string" && typeof item.label === "string";
|
|
@@ -8,7 +8,7 @@ import DropdownListItem from "./dropdown-list-item.js";
|
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/list/list.tsx
|
|
11
|
-
var groupLabelBase = "
|
|
11
|
+
var groupLabelBase = "type-subheading font-normal truncate overflow-ellipsis font-inter text-gray-400 flex items-center gap-2";
|
|
12
12
|
function List({ items, role = "list", showSeparators = true, className, itemClassName, separatorClassName, linkComponent, density }) {
|
|
13
13
|
const shouldShowSeparators = showSeparators && items.length > 1;
|
|
14
14
|
const isDropdown = role === "dropdown-list";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
|
|
4
|
-
import { c as SectionCardVariant, b as SectionCardSize } from '../../section-card-
|
|
4
|
+
import { c as SectionCardVariant, b as SectionCardSize } from '../../section-card-DqQeQkzU.js';
|
|
5
5
|
import { C as Color } from '../../index-BQANnKs9.js';
|
|
6
|
-
import '../../variant-
|
|
6
|
+
import '../../variant-DjdaxfIA.js';
|
|
7
7
|
|
|
8
8
|
type ListDetailsTitleListPanelColumnWidth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12;
|
|
9
9
|
type ListDetailsItem = {
|
|
@@ -74,7 +74,7 @@ function createMarkdownComponents({ linkComponent, colorTheme } = {}) {
|
|
|
74
74
|
children
|
|
75
75
|
}),
|
|
76
76
|
li: ({ children }) => /* @__PURE__ */ jsx("li", {
|
|
77
|
-
className: "
|
|
77
|
+
className: "type-prose",
|
|
78
78
|
children
|
|
79
79
|
}),
|
|
80
80
|
table: ({ children }) => /* @__PURE__ */ jsx(Table, { children }),
|
|
@@ -98,7 +98,7 @@ function createMarkdownComponents({ linkComponent, colorTheme } = {}) {
|
|
|
98
98
|
});
|
|
99
99
|
},
|
|
100
100
|
code: ({ children }) => /* @__PURE__ */ jsx("code", {
|
|
101
|
-
className: "rounded bg-muted px-1.5 py-0.5 font-mono
|
|
101
|
+
className: "rounded bg-muted px-1.5 py-0.5 type-code font-mono",
|
|
102
102
|
children
|
|
103
103
|
}),
|
|
104
104
|
img: ({ src, alt, title }) => /* @__PURE__ */ jsx("img", {
|
|
@@ -39,7 +39,7 @@ function MediaCardRevealItem({ step = 0, className, ...props }) {
|
|
|
39
39
|
}
|
|
40
40
|
/** A row of small labels (the latest builds) popping in one by one, with an optional "+N". */
|
|
41
41
|
function MediaCardRevealChips({ items, more, className, ...props }) {
|
|
42
|
-
const chip = "inline-flex min-w-0 max-w-full items-center rounded-full px-2.5 py-1
|
|
42
|
+
const chip = "inline-flex min-w-0 max-w-full items-center rounded-full px-2.5 py-1 type-caption font-semibold";
|
|
43
43
|
return /* @__PURE__ */ jsxs("ul", {
|
|
44
44
|
"data-slot": "media-card-reveal-chips",
|
|
45
45
|
className: cn("m-0 flex list-none flex-wrap gap-1.5 p-0", className),
|
|
@@ -64,7 +64,7 @@ function MediaCardRevealFooter({ action, step = 2, className, children, ...props
|
|
|
64
64
|
className: cn("mt-auto flex items-center justify-between gap-2.5", at(RISE_STEPS, step), className),
|
|
65
65
|
...props,
|
|
66
66
|
children: [/* @__PURE__ */ jsx("div", {
|
|
67
|
-
className: "min-w-0 truncate font-mono
|
|
67
|
+
className: "min-w-0 truncate font-mono type-caption text-scrim-foreground/75",
|
|
68
68
|
children
|
|
69
69
|
}), action && /* @__PURE__ */ jsx("span", {
|
|
70
70
|
className: cn("pointer-events-auto relative z-30", SWING),
|
|
@@ -48,7 +48,7 @@ function MediaCardBody({ className, ...props }) {
|
|
|
48
48
|
function MediaCardTitle({ className, ...props }) {
|
|
49
49
|
return /* @__PURE__ */ jsx("h3", {
|
|
50
50
|
"data-slot": "media-card-title",
|
|
51
|
-
className: cn("m-0 min-w-0 truncate
|
|
51
|
+
className: cn("m-0 min-w-0 truncate type-heading font-bold leading-snug text-foreground", className),
|
|
52
52
|
...props
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -67,7 +67,7 @@ function MediaCardLink({ asChild, className, ...props }) {
|
|
|
67
67
|
function MediaCardMeta({ className, ...props }) {
|
|
68
68
|
return /* @__PURE__ */ jsx("div", {
|
|
69
69
|
"data-slot": "media-card-meta",
|
|
70
|
-
className: cn("flex min-w-0 items-center gap-2
|
|
70
|
+
className: cn("flex min-w-0 items-center gap-2 type-secondary text-foreground-secondary", className),
|
|
71
71
|
...props
|
|
72
72
|
});
|
|
73
73
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { A as AlertColor } from '../../alert.props-
|
|
3
|
+
import { A as AlertColor } from '../../alert.props-BuLuWmXA.js';
|
|
4
4
|
import { S as Size } from '../../index-BQANnKs9.js';
|
|
5
|
-
import '../../variant-
|
|
5
|
+
import '../../variant-DjdaxfIA.js';
|
|
6
6
|
import '../../style-axes-DSQ2DGc5.js';
|
|
7
|
-
import '../../icon-avatar.props-
|
|
8
|
-
import '../../icon-text-action-card.props-
|
|
7
|
+
import '../../icon-avatar.props-BJe0-vva.js';
|
|
8
|
+
import '../../icon-text-action-card.props-BU7yFi2Q.js';
|
|
9
9
|
|
|
10
10
|
interface MonospaceContentProps {
|
|
11
11
|
title?: ReactNode;
|
|
@@ -8,23 +8,21 @@ import * as React$1 from "react";
|
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Eye, EyeOff } from "lucide-react";
|
|
10
10
|
//#region src/components/monospace-content/monospace-content.tsx
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Action sizes mirror `CopiableText`'s own map, so the unmask toggle matches the copy button.
|
|
13
|
+
* The text keeps its roles at every size: the title is a field label (`type-label`, from
|
|
14
|
+
* `inputLabelClassName`), the value `type-code`.
|
|
15
|
+
*/
|
|
12
16
|
var MONOSPACE_SIZE_STYLES = {
|
|
13
17
|
sm: {
|
|
14
|
-
title: "text-xs",
|
|
15
|
-
value: "text-xs",
|
|
16
18
|
action: "size-5",
|
|
17
19
|
gap: "gap-1.5"
|
|
18
20
|
},
|
|
19
21
|
default: {
|
|
20
|
-
title: "text-sm",
|
|
21
|
-
value: "text-sm",
|
|
22
22
|
action: "size-6",
|
|
23
23
|
gap: "gap-2"
|
|
24
24
|
},
|
|
25
25
|
lg: {
|
|
26
|
-
title: "text-base",
|
|
27
|
-
value: "text-base",
|
|
28
26
|
action: "size-7",
|
|
29
27
|
gap: "gap-2.5"
|
|
30
28
|
}
|
|
@@ -51,12 +49,12 @@ var MonospaceContent = React$1.forwardRef(function MonospaceContent({ title, val
|
|
|
51
49
|
ref,
|
|
52
50
|
className: cn("flex min-w-0 max-w-full flex-col overflow-hidden", sizeStyles.gap, className),
|
|
53
51
|
children: [title != null && (typeof title === "string" ? /* @__PURE__ */ jsx("div", {
|
|
54
|
-
className: cn(inputLabelClassName,
|
|
52
|
+
className: cn(inputLabelClassName, "title"),
|
|
55
53
|
children: title
|
|
56
54
|
}) : /* @__PURE__ */ jsx(Typography, {
|
|
57
|
-
variant: "
|
|
55
|
+
variant: "label",
|
|
58
56
|
as: "div",
|
|
59
|
-
className: cn(inputLabelClassName,
|
|
57
|
+
className: cn(inputLabelClassName, "text-muted-foreground", "title"),
|
|
60
58
|
children: title
|
|
61
59
|
})), /* @__PURE__ */ jsx(Alert, {
|
|
62
60
|
variant: "soft",
|
|
@@ -70,7 +68,7 @@ var MonospaceContent = React$1.forwardRef(function MonospaceContent({ title, val
|
|
|
70
68
|
size,
|
|
71
69
|
actions: unmaskToggle,
|
|
72
70
|
alwaysShowActions: mask,
|
|
73
|
-
className: cn("w-full min-w-0 max-w-full font-mono tabular-nums",
|
|
71
|
+
className: cn("w-full min-w-0 max-w-full type-code font-mono tabular-nums", masked && "select-none [-webkit-text-security:disc]")
|
|
74
72
|
})
|
|
75
73
|
})]
|
|
76
74
|
});
|
|
@@ -93,11 +93,11 @@ function NavBarMobileMenu({ items, activeId, onItemClick, open, onOpenChange, li
|
|
|
93
93
|
"aria-hidden": "true"
|
|
94
94
|
})
|
|
95
95
|
}), /* @__PURE__ */ jsx("span", {
|
|
96
|
-
className: "truncate
|
|
96
|
+
className: "truncate type-subheading text-foreground",
|
|
97
97
|
children: detailsItem.label
|
|
98
98
|
})]
|
|
99
99
|
}), /* @__PURE__ */ jsx("div", {
|
|
100
|
-
className: "flex-1 min-h-0 overflow-y-auto px-4 py-4
|
|
100
|
+
className: "flex-1 min-h-0 overflow-y-auto px-4 py-4 type-body",
|
|
101
101
|
children: detailsItem.details
|
|
102
102
|
})]
|
|
103
103
|
}, detailsItem.id)
|
|
@@ -116,7 +116,7 @@ var SLIDE_TRANSITION = {
|
|
|
116
116
|
]
|
|
117
117
|
};
|
|
118
118
|
function MobileMenuItemTrigger({ item, isActive, onClick, linkComponent, colorClasses }) {
|
|
119
|
-
const classes = cn("flex items-center gap-2 min-w-0 w-full px-4 h-11
|
|
119
|
+
const classes = cn("flex items-center gap-2 min-w-0 w-full px-4 h-11 type-label", "text-foreground transition-colors", colorClasses ? colorClasses.hoverBgClass : "hover:bg-foreground/5", isActive && colorClasses && `${colorClasses.textClass} ${colorClasses.bgClass}`, item.disabled && "opacity-50 pointer-events-none");
|
|
120
120
|
const activeStyle = isActive && colorClasses?.textStyle ? {
|
|
121
121
|
...colorClasses.textStyle,
|
|
122
122
|
...colorClasses.bgStyle
|