@espressif/dashboard-ui-components 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/rules/dashboard-ui-consumption.md +63 -2
- package/.cursor/rules/dashboard-ui-consumption.mdc +61 -3
- package/CHANGELOG.md +265 -0
- package/README.md +59 -8
- 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/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/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 +49 -41
- 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/floating-window/_hooks/use-drag-move.js +1 -0
- package/dist/components/floating-window/_hooks/use-resize.js +133 -0
- package/dist/components/floating-window/floating-window.js +67 -40
- package/dist/components/floating-window/index.d.ts +21 -2
- 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 +2 -6
- package/dist/components/horizontal-stepper/index.d.ts +2 -2
- 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 +14 -8
- package/dist/components/index.js +15 -6
- 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/keyframes/index.d.ts +53 -0
- package/dist/components/keyframes/index.js +3 -0
- package/dist/components/keyframes/keyframes-motion.js +23 -0
- package/dist/components/keyframes/keyframes.js +37 -0
- 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/index.d.ts +26 -0
- package/dist/components/qr-code/index.js +2 -0
- package/dist/components/qr-code/qr-code.js +69 -0
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/range-field/index.d.ts +45 -0
- package/dist/components/range-field/index.js +2 -0
- package/dist/components/range-field/range-field.js +161 -0
- package/dist/components/readout/readout.js +1 -1
- package/dist/components/requirement-list/requirement-list.js +5 -10
- package/dist/components/reveal/index.d.ts +6 -3
- package/dist/components/reveal/reveal.js +7 -4
- package/dist/components/scrollable-sections/scrollable-sections.js +1 -1
- package/dist/components/search-box/index.d.ts +3 -1
- package/dist/components/search-box/search-box.js +7 -12
- 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/index.d.ts +14 -3
- package/dist/components/showcase-card/showcase-card.js +43 -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 +19 -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/step-tabs/index.d.ts +1 -1
- 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/index.d.ts +49 -0
- package/dist/components/trace/index.js +2 -0
- package/dist/components/trace/trace.js +109 -0
- 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/index.d.ts +2 -2
- package/dist/components/vertical-stepper/vertical-stepper.js +18 -11
- 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.js +1 -1
- 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-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 +14 -8
- package/dist/index.js +16 -7
- 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/index.d.ts +31 -2
- package/dist/utils/index.js +2 -1
- package/dist/utils/variant.js +47 -47
- package/dist/{variant-D81RhpbR.d.ts → variant-DjdaxfIA.d.ts} +6 -1
- package/dist/{vertical-stepper.props-BXYcbW70.d.ts → vertical-stepper.props-DONJJXIy.d.ts} +1 -0
- package/package.json +9 -1
- package/src/styles/theme.css +23 -3
- package/src/styles/type-scale.css +152 -0
- package/tailwind.preset.ts +23 -0
|
@@ -47,47 +47,54 @@ var statusSrLabel = {
|
|
|
47
47
|
in_progress: "Current step",
|
|
48
48
|
not_started: "Not started"
|
|
49
49
|
};
|
|
50
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Aligned with StatusCardList / SelectableCardList size scales. The size
|
|
52
|
+
* changes the icon box and gaps only: the title is `label` (semibold) and the
|
|
53
|
+
* description `secondary` at every size.
|
|
54
|
+
*/
|
|
51
55
|
var sizeStyles = {
|
|
52
56
|
sm: {
|
|
53
57
|
rowGap: "gap-2",
|
|
54
58
|
stepGap: "pb-8",
|
|
55
|
-
primary: "
|
|
56
|
-
secondary: "
|
|
59
|
+
primary: "type-label font-semibold",
|
|
60
|
+
secondary: "type-secondary",
|
|
57
61
|
icon: "h-[18px] w-[18px] shrink-0",
|
|
58
62
|
iconBox: "size-9",
|
|
59
63
|
iconBoxHeight: "h-9",
|
|
60
64
|
connectorStart: "start-[1.125rem]",
|
|
61
65
|
connectorTop: "top-9",
|
|
62
66
|
textGap: "gap-0.5",
|
|
67
|
+
textMinHeight: "min-h-9",
|
|
63
68
|
endIcon: "size-4 shrink-0",
|
|
64
69
|
endGap: "gap-2"
|
|
65
70
|
},
|
|
66
71
|
default: {
|
|
67
72
|
rowGap: "gap-3",
|
|
68
73
|
stepGap: "pb-10",
|
|
69
|
-
primary: "
|
|
70
|
-
secondary: "
|
|
74
|
+
primary: "type-label font-semibold",
|
|
75
|
+
secondary: "type-secondary",
|
|
71
76
|
icon: "h-6 w-6 shrink-0",
|
|
72
77
|
iconBox: "size-11",
|
|
73
78
|
iconBoxHeight: "h-11",
|
|
74
79
|
connectorStart: "start-[1.375rem]",
|
|
75
80
|
connectorTop: "top-11",
|
|
76
81
|
textGap: "gap-0.5",
|
|
82
|
+
textMinHeight: "min-h-11",
|
|
77
83
|
endIcon: "size-5 shrink-0",
|
|
78
84
|
endGap: "gap-2"
|
|
79
85
|
},
|
|
80
86
|
lg: {
|
|
81
87
|
rowGap: "gap-4",
|
|
82
88
|
stepGap: "pb-12",
|
|
83
|
-
primary: "
|
|
84
|
-
secondary: "
|
|
89
|
+
primary: "type-label font-semibold",
|
|
90
|
+
secondary: "type-secondary",
|
|
85
91
|
icon: "h-8 w-8 shrink-0",
|
|
86
92
|
iconBox: "size-[52px]",
|
|
87
93
|
iconBoxHeight: "h-[52px]",
|
|
88
94
|
connectorStart: "start-[1.625rem]",
|
|
89
95
|
connectorTop: "top-[52px]",
|
|
90
96
|
textGap: "gap-0.5",
|
|
97
|
+
textMinHeight: "min-h-[52px]",
|
|
91
98
|
endIcon: "size-6 shrink-0",
|
|
92
99
|
endGap: "gap-3"
|
|
93
100
|
}
|
|
@@ -108,10 +115,10 @@ function StepTextContent({ step, visuals, s }) {
|
|
|
108
115
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
109
116
|
className: cn(s.primary, visuals.titleClass),
|
|
110
117
|
children: step.title
|
|
111
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
118
|
+
}), step.description ? /* @__PURE__ */ jsx("span", {
|
|
112
119
|
className: cn(s.secondary, visuals.descriptionClass),
|
|
113
120
|
children: step.description
|
|
114
|
-
})] });
|
|
121
|
+
}) : null] });
|
|
115
122
|
}
|
|
116
123
|
function VerticalStepperStepRow({ step, isLast, onStepClick, s }) {
|
|
117
124
|
const visuals = stateVisuals[step.status];
|
|
@@ -124,7 +131,7 @@ function VerticalStepperStepRow({ step, isLast, onStepClick, s }) {
|
|
|
124
131
|
children: iconSized(step.icon, cn(s.icon, visuals.iconClass))
|
|
125
132
|
});
|
|
126
133
|
const textContent = /* @__PURE__ */ jsxs("div", {
|
|
127
|
-
className: cn("flex min-w-0 flex-1 flex-col", s.textGap),
|
|
134
|
+
className: cn("flex min-w-0 flex-1 flex-col justify-center", s.textMinHeight, s.textGap),
|
|
128
135
|
children: [/* @__PURE__ */ jsx("span", {
|
|
129
136
|
className: "sr-only",
|
|
130
137
|
children: srStatus
|
|
@@ -148,7 +155,7 @@ function VerticalStepperStepRow({ step, isLast, onStepClick, s }) {
|
|
|
148
155
|
}),
|
|
149
156
|
isInteractive ? /* @__PURE__ */ jsx("button", {
|
|
150
157
|
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"),
|
|
158
|
+
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
159
|
"aria-label": stepAriaLabel,
|
|
153
160
|
onClick: () => onStepClick(step.id),
|
|
154
161
|
children: /* @__PURE__ */ jsx(StepTextContent, {
|
package/dist/core/alert.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React$1 from "react";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
//#region src/core/alert.tsx
|
|
6
|
-
var alertVariants = cva("relative w-full rounded-lg border px-4 py-3
|
|
6
|
+
var alertVariants = cva("relative w-full rounded-lg border px-4 py-3 type-body [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", {
|
|
7
7
|
variants: { variant: {
|
|
8
8
|
default: "bg-background text-foreground",
|
|
9
9
|
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
@@ -19,13 +19,13 @@ var Alert = React$1.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
19
19
|
Alert.displayName = "Alert";
|
|
20
20
|
var AlertTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("h5", {
|
|
21
21
|
ref,
|
|
22
|
-
className: cn("mb-1 font-medium leading-none tracking-tight", className),
|
|
22
|
+
className: cn("mb-1 type-subheading font-medium leading-none tracking-tight", className),
|
|
23
23
|
...props
|
|
24
24
|
}));
|
|
25
25
|
AlertTitle.displayName = "AlertTitle";
|
|
26
26
|
var AlertDescription = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
27
27
|
ref,
|
|
28
|
-
className: cn("
|
|
28
|
+
className: cn("type-body", className),
|
|
29
29
|
...props
|
|
30
30
|
}));
|
|
31
31
|
AlertDescription.displayName = "AlertDescription";
|
|
@@ -15,7 +15,7 @@ function CodeHeader({ icon: Icon, fileName, copyContent, copyLabel = "Copy", act
|
|
|
15
15
|
className: cn(actions == null && "ml-auto", "w-auto h-auto p-2 -mr-2")
|
|
16
16
|
});
|
|
17
17
|
return /* @__PURE__ */ jsxs("div", {
|
|
18
|
-
className: "shrink-0 gap-x-2 border-b border-border/75 dark:border-border/50
|
|
18
|
+
className: "shrink-0 gap-x-2 border-b border-border/75 dark:border-border/50 type-code font-mono flex text-muted-foreground items-center px-4 w-full h-10 font-medium",
|
|
19
19
|
children: [
|
|
20
20
|
Icon && /* @__PURE__ */ jsx(Icon, { className: "size-4" }),
|
|
21
21
|
fileName,
|
|
@@ -91,7 +91,7 @@ function Code({ className, code, icon: Icon, theme = "light", themes, copyButton
|
|
|
91
91
|
theme,
|
|
92
92
|
themes,
|
|
93
93
|
scrollContainerRef: scrollRef,
|
|
94
|
-
className: cn("relative
|
|
94
|
+
className: cn("relative type-code font-mono p-4", "[&>pre,_&_code]:!bg-transparent [&>pre,_&_code]:[background:transparent_!important] [&>pre,_&_code]:border-none [&_code_.line]:!px-0", "[&_code_.line]:inline-block [&_code_.line]:min-w-full [&_code_.line.highlighted]:bg-primary/12", "data-[line-numbers]:[&_code]:[counter-reset:line] data-[line-numbers]:[&_code_.line]:before:[counter-increment:line] data-[line-numbers]:[&_code_.line]:before:content-[counter(line)] data-[line-numbers]:[&_code_.line]:before:inline-block data-[line-numbers]:[&_code_.line]:before:w-[4ch] data-[line-numbers]:[&_code_.line]:before:mr-4 data-[line-numbers]:[&_code_.line]:before:text-right data-[line-numbers]:[&_code_.line]:before:text-muted-foreground/60 data-[line-numbers]:[&_code_.line]:before:select-none"),
|
|
95
95
|
code,
|
|
96
96
|
lang,
|
|
97
97
|
lineNumbers,
|
|
@@ -71,7 +71,7 @@ var TABS_LIST_VARIANTS = {
|
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* `sm`: the list's padding and its triggers shrink to a 28px strip, for a
|
|
74
|
-
* toolbar. `lg`: 36px triggers with
|
|
74
|
+
* toolbar. `lg`: 36px triggers with 20px icons, for a page's
|
|
75
75
|
* main switch; the rounded list grows by as much as `sm` shrinks it.
|
|
76
76
|
*/
|
|
77
77
|
var TABS_LIST_SIZE = {
|
|
@@ -82,13 +82,13 @@ var TABS_LIST_SIZE = {
|
|
|
82
82
|
},
|
|
83
83
|
sm: {
|
|
84
84
|
list: "p-0.5",
|
|
85
|
-
trigger: "h-6 px-2.5 py-0
|
|
86
|
-
lineTrigger: "py-1.5
|
|
85
|
+
trigger: "h-6 px-2.5 py-0",
|
|
86
|
+
lineTrigger: "py-1.5"
|
|
87
87
|
},
|
|
88
88
|
lg: {
|
|
89
89
|
list: "",
|
|
90
|
-
trigger: "h-9 px-4 py-0 gap-2
|
|
91
|
-
lineTrigger: "py-3 gap-2
|
|
90
|
+
trigger: "h-9 px-4 py-0 gap-2 [&_svg:not([class*='size-'])]:size-5",
|
|
91
|
+
lineTrigger: "py-3 gap-2 [&_svg:not([class*='size-'])]:size-5"
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
/** The CSS variables a list sets from its `color`: the colour, and (for `solid`) the text that reads on a fill of it. */
|
|
@@ -271,7 +271,7 @@ function TabsList({ variant, size = "default", color = "primary", fullWidth = tr
|
|
|
271
271
|
})
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
var tabsTriggerBaseClass = "data-[state=active]:text-[color:var(--espd-tabs-color)] tracking-wide focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] w-full px-2
|
|
274
|
+
var tabsTriggerBaseClass = "data-[state=active]:text-[color:var(--espd-tabs-color)] tracking-wide focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] w-full px-2 type-label whitespace-nowrap transition-colors duration-500 ease-in-out focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";
|
|
275
275
|
/**
|
|
276
276
|
* The selected label in the list's colour, its lightness held where text
|
|
277
277
|
* reads (4.5:1 on the 10% pill, with room for an off-white page): at most
|
|
@@ -32,7 +32,7 @@ function TooltipContent({ className, children, layout = "preserve-aspect", radiu
|
|
|
32
32
|
...typeof children === "string" || typeof children === "number" ? { "data-text": String(children) } : {},
|
|
33
33
|
...props,
|
|
34
34
|
children: [/* @__PURE__ */ jsx(motion.div, {
|
|
35
|
-
className: "overflow-hidden px-3 py-1.5
|
|
35
|
+
className: "overflow-hidden px-3 py-1.5 type-caption text-balance",
|
|
36
36
|
children: /* @__PURE__ */ jsx(motion.div, {
|
|
37
37
|
layout,
|
|
38
38
|
children
|
|
@@ -18,13 +18,13 @@ function ProgressTrack({ className, indicatorClassName, indicatorStyle, ...props
|
|
|
18
18
|
}
|
|
19
19
|
function ProgressLabel(props) {
|
|
20
20
|
return /* @__PURE__ */ jsx(ProgressLabel$1, {
|
|
21
|
-
className: "
|
|
21
|
+
className: "type-label",
|
|
22
22
|
...props
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function ProgressValue(props) {
|
|
26
26
|
return /* @__PURE__ */ jsx(ProgressValue$1, {
|
|
27
|
-
className: "
|
|
27
|
+
className: "type-body",
|
|
28
28
|
...props
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -17,7 +17,7 @@ function AccordionTrigger({ className, children, showArrow = true, ...props }) {
|
|
|
17
17
|
return /* @__PURE__ */ jsx(AccordionHeader, {
|
|
18
18
|
className: "flex",
|
|
19
19
|
children: /* @__PURE__ */ jsxs(AccordionTrigger$1, {
|
|
20
|
-
className: cn("flex flex-1 items-center justify-between py-4 text-left
|
|
20
|
+
className: cn("flex flex-1 items-center justify-between py-4 text-left type-heading font-medium transition-all [&[data-state=open]>svg]:rotate-180", className),
|
|
21
21
|
...props,
|
|
22
22
|
children: [children, showArrow && /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-px transition-transform duration-200" })]
|
|
23
23
|
})
|
|
@@ -27,7 +27,7 @@ function AccordionContent({ className, children, ...props }) {
|
|
|
27
27
|
return /* @__PURE__ */ jsx(AccordionContent$1, {
|
|
28
28
|
...props,
|
|
29
29
|
children: /* @__PURE__ */ jsx("div", {
|
|
30
|
-
className: cn("pb-4
|
|
30
|
+
className: cn("pb-4 type-body", className),
|
|
31
31
|
children
|
|
32
32
|
})
|
|
33
33
|
});
|
|
@@ -60,13 +60,13 @@ function DialogFooter({ className, ...props }) {
|
|
|
60
60
|
}
|
|
61
61
|
function DialogTitle({ className, ...props }) {
|
|
62
62
|
return /* @__PURE__ */ jsx(DialogTitle$1, {
|
|
63
|
-
className: cn("
|
|
63
|
+
className: cn("type-heading leading-none", className),
|
|
64
64
|
...props
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
function DialogDescription({ className, ...props }) {
|
|
68
68
|
return /* @__PURE__ */ jsx(DialogDescription$1, {
|
|
69
|
-
className: cn("text-muted-foreground
|
|
69
|
+
className: cn("text-muted-foreground type-body", className),
|
|
70
70
|
...props
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -41,7 +41,7 @@ function DropdownMenuItem({ className, inset, variant = "default", disabled, ...
|
|
|
41
41
|
disabled,
|
|
42
42
|
"data-inset": inset,
|
|
43
43
|
"data-variant": variant,
|
|
44
|
-
className: cn("focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5
|
|
44
|
+
className: cn("focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 type-label outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
45
45
|
...props
|
|
46
46
|
})
|
|
47
47
|
});
|
|
@@ -51,7 +51,7 @@ function DropdownMenuCheckboxItem({ className, children, checked, disabled, ...p
|
|
|
51
51
|
disabled,
|
|
52
52
|
children: /* @__PURE__ */ jsxs(DropdownMenuCheckboxItem$1, {
|
|
53
53
|
disabled,
|
|
54
|
-
className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8
|
|
54
|
+
className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8 type-label outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
55
55
|
checked,
|
|
56
56
|
...props,
|
|
57
57
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -79,7 +79,7 @@ function DropdownMenuRadioItem({ className, children, disabled, ...props }) {
|
|
|
79
79
|
disabled,
|
|
80
80
|
children: /* @__PURE__ */ jsxs(DropdownMenuRadioItem$1, {
|
|
81
81
|
disabled,
|
|
82
|
-
className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8
|
|
82
|
+
className: cn("focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-1.5 pr-2 pl-8 type-label outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
83
83
|
...props,
|
|
84
84
|
children: [/* @__PURE__ */ jsx("span", {
|
|
85
85
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
@@ -94,7 +94,7 @@ function DropdownMenuRadioItem({ className, children, disabled, ...props }) {
|
|
|
94
94
|
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
95
95
|
return /* @__PURE__ */ jsx(DropdownMenuLabel$1, {
|
|
96
96
|
"data-inset": inset,
|
|
97
|
-
className: cn("px-2 py-1.5
|
|
97
|
+
className: cn("px-2 py-1.5 type-subheading data-[inset]:pl-8", className),
|
|
98
98
|
...props
|
|
99
99
|
});
|
|
100
100
|
}
|
|
@@ -106,7 +106,7 @@ function DropdownMenuSeparator({ className, ...props }) {
|
|
|
106
106
|
}
|
|
107
107
|
function DropdownMenuShortcut({ className, ...props }) {
|
|
108
108
|
return /* @__PURE__ */ jsx(DropdownMenuShortcut$1, {
|
|
109
|
-
className: cn("text-muted-foreground ml-auto
|
|
109
|
+
className: cn("text-muted-foreground ml-auto type-caption tracking-widest", className),
|
|
110
110
|
...props
|
|
111
111
|
});
|
|
112
112
|
}
|
|
@@ -119,7 +119,7 @@ function DropdownMenuSubTrigger({ disabled, className, inset, children, ...props
|
|
|
119
119
|
children: /* @__PURE__ */ jsxs(DropdownMenuSubTrigger$1, {
|
|
120
120
|
disabled,
|
|
121
121
|
"data-inset": inset,
|
|
122
|
-
className: cn("focus:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5
|
|
122
|
+
className: cn("focus:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 type-label outline-hidden select-none data-[inset]:pl-8", "data-[state=open]:[&_[data-slot=chevron]]:rotate-90 [&_[data-slot=chevron]]:transition-transform [&_[data-slot=chevron]]:duration-300 [&_[data-slot=chevron]]:ease-in-out", className),
|
|
123
123
|
...props,
|
|
124
124
|
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
125
125
|
"data-slot": "chevron",
|
|
@@ -112,13 +112,13 @@ function SheetFooter({ className, ...props }) {
|
|
|
112
112
|
}
|
|
113
113
|
function SheetTitle({ className, ...props }) {
|
|
114
114
|
return /* @__PURE__ */ jsx(SheetTitle$1, {
|
|
115
|
-
className: cn("text-foreground
|
|
115
|
+
className: cn("text-foreground type-heading", className),
|
|
116
116
|
...props
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
function SheetDescription({ className, ...props }) {
|
|
120
120
|
return /* @__PURE__ */ jsx(SheetDescription$1, {
|
|
121
|
-
className: cn("text-muted-foreground
|
|
121
|
+
className: cn("text-muted-foreground type-body", className),
|
|
122
122
|
...props
|
|
123
123
|
});
|
|
124
124
|
}
|
|
@@ -261,7 +261,7 @@ function SidebarGroupLabel({ className, asChild = false, ...props }) {
|
|
|
261
261
|
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
|
|
262
262
|
"data-slot": "sidebar-group-label",
|
|
263
263
|
"data-sidebar": "group-label",
|
|
264
|
-
className: cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2
|
|
264
|
+
className: cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 type-caption font-medium outline-hidden transition-[margin,opacity] duration-300 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", className),
|
|
265
265
|
...props
|
|
266
266
|
});
|
|
267
267
|
}
|
|
@@ -277,7 +277,7 @@ function SidebarGroupContent({ className, ...props }) {
|
|
|
277
277
|
return /* @__PURE__ */ jsx("div", {
|
|
278
278
|
"data-slot": "sidebar-group-content",
|
|
279
279
|
"data-sidebar": "group-content",
|
|
280
|
-
className: cn("w-full
|
|
280
|
+
className: cn("w-full type-body flex", className),
|
|
281
281
|
...props
|
|
282
282
|
});
|
|
283
283
|
}
|
|
@@ -304,16 +304,16 @@ var sidebarMenuButtonActiveVariants = cva("bg-sidebar-accent text-sidebar-accent
|
|
|
304
304
|
} },
|
|
305
305
|
defaultVariants: { variant: "default" }
|
|
306
306
|
});
|
|
307
|
-
var sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] p-2 text-left
|
|
307
|
+
var sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] p-2 text-left type-label outline-hidden ring-sidebar-ring transition-[width,height,padding] [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground [&:not([data-highlight])]:data-[state=open]:hover:bg-sidebar-accent [&:not([data-highlight])]:data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
308
308
|
variants: {
|
|
309
309
|
variant: {
|
|
310
310
|
default: "[&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground",
|
|
311
311
|
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground [&:not([data-highlight])]:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
312
312
|
},
|
|
313
313
|
size: {
|
|
314
|
-
default: "h-[var(--espd-sidebar-row-height,calc(var(--spacing)*8))]
|
|
315
|
-
sm: "h-[var(--espd-sidebar-row-height-sm,calc(var(--spacing)*7))]
|
|
316
|
-
lg: "h-12
|
|
314
|
+
default: "h-[var(--espd-sidebar-row-height,calc(var(--spacing)*8))]",
|
|
315
|
+
sm: "h-[var(--espd-sidebar-row-height-sm,calc(var(--spacing)*7))]",
|
|
316
|
+
lg: "h-12 group-data-[collapsible=icon]:p-0!"
|
|
317
317
|
}
|
|
318
318
|
},
|
|
319
319
|
defaultVariants: {
|
|
@@ -360,7 +360,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
360
360
|
return /* @__PURE__ */ jsx("div", {
|
|
361
361
|
"data-slot": "sidebar-menu-badge",
|
|
362
362
|
"data-sidebar": "menu-badge",
|
|
363
|
-
className: cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1
|
|
363
|
+
className: cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 type-caption font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", className),
|
|
364
364
|
...props
|
|
365
365
|
});
|
|
366
366
|
}
|
|
@@ -407,7 +407,7 @@ function SidebarMenuSubButton({ asChild = false, size = "md", isActive = false,
|
|
|
407
407
|
"data-sidebar": "menu-sub-button",
|
|
408
408
|
"data-size": size,
|
|
409
409
|
"data-active": isActive,
|
|
410
|
-
className: cn("text-sidebar-foreground ring-sidebar-ring [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
410
|
+
className: cn("text-sidebar-foreground ring-sidebar-ring [&:not([data-highlight])]:hover:bg-sidebar-accent [&:not([data-highlight])]:hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", "type-label", "group-data-[collapsible=icon]:hidden", className),
|
|
411
411
|
...props
|
|
412
412
|
})
|
|
413
413
|
});
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
//#region src/core/animate-ui/components/radix/toggle.tsx
|
|
5
|
-
var toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))]
|
|
5
|
+
var toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] type-label hover:bg-muted/40 hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,background-color,box-shadow] duration-200 ease-in-out aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
8
|
default: "bg-transparent",
|
package/dist/core/badge.js
CHANGED
|
@@ -6,7 +6,7 @@ import "react";
|
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { cva } from "class-variance-authority";
|
|
8
8
|
//#region src/core/badge.tsx
|
|
9
|
-
var badgeVariants = cva("inline-flex items-center rounded-[var(--espd-own-radius,var(--espd-radius-pill,var(--radius-md)))] px-2.5 py-0.5
|
|
9
|
+
var badgeVariants = cva("inline-flex items-center rounded-[var(--espd-own-radius,var(--espd-radius-pill,var(--radius-md)))] px-2.5 py-0.5 type-caption font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2");
|
|
10
10
|
function Badge({ className, variant = "soft", color = "primary", style, children, radius, ...props }) {
|
|
11
11
|
const styles = resolveVariantStyles(variant, color);
|
|
12
12
|
const { partStyle } = useStyleAxes({ radius }, ["radius"]);
|
package/dist/core/breadcrumb.js
CHANGED
|
@@ -12,7 +12,7 @@ var Breadcrumb = React$1.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("
|
|
|
12
12
|
Breadcrumb.displayName = "Breadcrumb";
|
|
13
13
|
var BreadcrumbList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("ol", {
|
|
14
14
|
ref,
|
|
15
|
-
className: cn("flex flex-wrap items-center gap-1.5 break-words
|
|
15
|
+
className: cn("flex flex-wrap items-center gap-1.5 break-words type-label text-muted-foreground sm:gap-2.5", className),
|
|
16
16
|
...props
|
|
17
17
|
}));
|
|
18
18
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
@@ -4,7 +4,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
//#region src/core/button/button.tsx
|
|
7
|
-
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))]
|
|
7
|
+
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] type-label transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: "bg-primary text-primary-foreground shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-control,var(--shadow-sm)))] hover:bg-primary/90",
|
|
@@ -16,7 +16,7 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
|
|
|
16
16
|
},
|
|
17
17
|
size: {
|
|
18
18
|
default: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] px-[var(--espd-button-padding-x-md,calc(var(--spacing)*4))] py-2",
|
|
19
|
-
sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))]
|
|
19
|
+
sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))]",
|
|
20
20
|
lg: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-lg,calc(var(--spacing)*8))]",
|
|
21
21
|
icon: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] w-[var(--espd-control-height-md,calc(var(--spacing)*9))]"
|
|
22
22
|
}
|
|
@@ -22,7 +22,7 @@ function ButtonGroup({ className, orientation, ...props }) {
|
|
|
22
22
|
}
|
|
23
23
|
function ButtonGroupText({ className, asChild = false, ...props }) {
|
|
24
24
|
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
25
|
-
className: cn("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4
|
|
25
|
+
className: cn("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 type-label [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className),
|
|
26
26
|
...props
|
|
27
27
|
});
|
|
28
28
|
}
|
package/dist/core/button.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
//#region src/core/button.tsx
|
|
7
|
-
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))]
|
|
7
|
+
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] type-label transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: "shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-control,var(--shadow-sm)))]",
|
|
@@ -17,7 +17,7 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
|
|
|
17
17
|
},
|
|
18
18
|
size: {
|
|
19
19
|
default: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] px-[var(--espd-button-padding-x-md,calc(var(--spacing)*4))] py-2",
|
|
20
|
-
sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))]
|
|
20
|
+
sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-sm,calc(var(--spacing)*3))]",
|
|
21
21
|
lg: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] px-[var(--espd-button-padding-x-lg,calc(var(--spacing)*8))]",
|
|
22
22
|
icon: "h-[var(--espd-control-height-md,calc(var(--spacing)*9))] w-[var(--espd-control-height-md,calc(var(--spacing)*9))]"
|
|
23
23
|
}
|
package/dist/core/card.js
CHANGED
|
@@ -34,13 +34,13 @@ var CardHeader = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
34
34
|
CardHeader.displayName = "CardHeader";
|
|
35
35
|
var CardTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
36
36
|
ref,
|
|
37
|
-
className: cn("
|
|
37
|
+
className: cn("type-heading leading-none tracking-tight", className),
|
|
38
38
|
...props
|
|
39
39
|
}));
|
|
40
40
|
CardTitle.displayName = "CardTitle";
|
|
41
41
|
var CardDescription = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
42
42
|
ref,
|
|
43
|
-
className: cn("
|
|
43
|
+
className: cn("type-body text-muted-foreground", className),
|
|
44
44
|
...props
|
|
45
45
|
}));
|
|
46
46
|
CardDescription.displayName = "CardDescription";
|
|
@@ -28,7 +28,7 @@ function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoadin
|
|
|
28
28
|
role: "combobox",
|
|
29
29
|
"aria-expanded": open,
|
|
30
30
|
disabled,
|
|
31
|
-
className: cn("flex h-10 w-full items-center justify-between rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2
|
|
31
|
+
className: cn("flex h-10 w-full items-center justify-between rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 type-input ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", !displayValue && "text-muted-foreground", className),
|
|
32
32
|
style: axes.style,
|
|
33
33
|
onClick: () => setOpen(!open),
|
|
34
34
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -41,7 +41,7 @@ function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoadin
|
|
|
41
41
|
children: [label != null && /* @__PURE__ */ jsx("div", {
|
|
42
42
|
className: "flex items-center justify-between",
|
|
43
43
|
children: /* @__PURE__ */ jsxs("label", {
|
|
44
|
-
className: "flex items-center gap-2
|
|
44
|
+
className: "flex items-center gap-2 type-label leading-none select-none",
|
|
45
45
|
children: [label, required && /* @__PURE__ */ jsx("span", {
|
|
46
46
|
className: "text-destructive",
|
|
47
47
|
children: "*"
|
|
@@ -76,7 +76,7 @@ function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoadin
|
|
|
76
76
|
className: "border-t p-2",
|
|
77
77
|
children: /* @__PURE__ */ jsx("button", {
|
|
78
78
|
type: "button",
|
|
79
|
-
className: "
|
|
79
|
+
className: "type-label text-primary hover:underline w-full text-center",
|
|
80
80
|
onClick: () => onLoadMore(),
|
|
81
81
|
children: "Load more"
|
|
82
82
|
})
|
package/dist/core/command.js
CHANGED
|
@@ -15,7 +15,7 @@ var CommandInput = React$1.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
15
15
|
"cmdk-input-wrapper": "",
|
|
16
16
|
children: [/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command.Input, {
|
|
17
17
|
ref,
|
|
18
|
-
className: cn("flex h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] w-full rounded-md bg-transparent py-3
|
|
18
|
+
className: cn("flex h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] w-full rounded-md bg-transparent py-3 type-input placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
19
19
|
...props
|
|
20
20
|
})]
|
|
21
21
|
}));
|
|
@@ -28,13 +28,13 @@ var CommandList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
28
28
|
CommandList.displayName = Command.List.displayName;
|
|
29
29
|
var CommandEmpty = React$1.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command.Empty, {
|
|
30
30
|
ref,
|
|
31
|
-
className: "py-6 text-center
|
|
31
|
+
className: "py-6 text-center type-body",
|
|
32
32
|
...props
|
|
33
33
|
}));
|
|
34
34
|
CommandEmpty.displayName = Command.Empty.displayName;
|
|
35
35
|
var CommandGroup = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command.Group, {
|
|
36
36
|
ref,
|
|
37
|
-
className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:
|
|
37
|
+
className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:type-caption [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className),
|
|
38
38
|
...props
|
|
39
39
|
}));
|
|
40
40
|
CommandGroup.displayName = Command.Group.displayName;
|
|
@@ -46,13 +46,13 @@ var CommandSeparator = React$1.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
46
46
|
CommandSeparator.displayName = Command.Separator.displayName;
|
|
47
47
|
var CommandItem = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command.Item, {
|
|
48
48
|
ref,
|
|
49
|
-
className: cn("relative flex cursor-default gap-2 select-none items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5
|
|
49
|
+
className: cn("relative flex cursor-default gap-2 select-none items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] px-2 py-1.5 type-label outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
50
50
|
...props
|
|
51
51
|
}));
|
|
52
52
|
CommandItem.displayName = Command.Item.displayName;
|
|
53
53
|
var CommandShortcut = ({ className, ...props }) => {
|
|
54
54
|
return /* @__PURE__ */ jsx("span", {
|
|
55
|
-
className: cn("ml-auto
|
|
55
|
+
className: cn("ml-auto type-caption tracking-widest text-muted-foreground", className),
|
|
56
56
|
...props
|
|
57
57
|
});
|
|
58
58
|
};
|
|
@@ -3,13 +3,13 @@ import "react";
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/core/field-label-row.tsx
|
|
5
5
|
/** Shared with `MonospaceContent` and any other UI that should match non-floating field labels. */
|
|
6
|
-
var inputLabelClassName = "flex items-center gap-2
|
|
7
|
-
/** Hint text placed at the end of a label row. `leading-none` keeps the row
|
|
8
|
-
var fieldHintClassName = "
|
|
6
|
+
var inputLabelClassName = "flex items-center gap-2 type-label leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50";
|
|
7
|
+
/** Hint text placed at the end of a label row. `leading-none` keeps it no taller than the label, so the row stays one label line tall. */
|
|
8
|
+
var fieldHintClassName = "type-caption leading-none text-muted-foreground";
|
|
9
9
|
/**
|
|
10
10
|
* The label row every enhanced form control shares (`Input`, `Textarea`,
|
|
11
11
|
* `SelectTrigger`, the date pickers): label with an optional required
|
|
12
|
-
* marker on the left, optional hint on the right, one line of `
|
|
12
|
+
* marker on the left, optional hint on the right, one line of `type-label`
|
|
13
13
|
* at `leading-none`. Rendering it from one place keeps the distance
|
|
14
14
|
* between label text and control identical across control types.
|
|
15
15
|
*/
|
package/dist/core/form.js
CHANGED
|
@@ -70,7 +70,7 @@ var FormDescription = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
70
70
|
return /* @__PURE__ */ jsx("p", {
|
|
71
71
|
ref,
|
|
72
72
|
id: formDescriptionId,
|
|
73
|
-
className: cn("
|
|
73
|
+
className: cn("type-caption text-muted-foreground", className),
|
|
74
74
|
...props
|
|
75
75
|
});
|
|
76
76
|
});
|
|
@@ -82,7 +82,7 @@ var FormMessage = React$1.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
82
82
|
return /* @__PURE__ */ jsx("p", {
|
|
83
83
|
ref,
|
|
84
84
|
id: formMessageId,
|
|
85
|
-
className: cn("
|
|
85
|
+
className: cn("type-caption font-medium text-destructive", className),
|
|
86
86
|
...props,
|
|
87
87
|
children: body
|
|
88
88
|
});
|
package/dist/core/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { u as useControlledState } from '../use-controlled-state-BL9NoHu8.js';
|
|
|
16
16
|
export { useIsMobile } from '../components/use-mobile/index.js';
|
|
17
17
|
import { UseInViewOptions } from 'motion/react';
|
|
18
18
|
import '../style-axes-DSQ2DGc5.js';
|
|
19
|
-
import '../variant-
|
|
19
|
+
import '../variant-DjdaxfIA.js';
|
|
20
20
|
import '../index-BQANnKs9.js';
|
|
21
21
|
import '@radix-ui/react-collapsible';
|
|
22
22
|
import '@radix-ui/react-label';
|