@borisj74/bv-ds 0.1.1 → 0.1.3
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/dist/index.cjs +143 -28
- package/dist/index.d.cts +56 -26
- package/dist/index.d.ts +56 -26
- package/dist/index.js +143 -29
- package/package.json +11 -9
- package/src/components/Button/Button.tsx +42 -22
- package/src/components/ButtonDestructive/ButtonDestructive.tsx +3 -3
- package/src/components/CalendarColumnHeader/CalendarColumnHeader.tsx +1 -1
- package/src/components/CalendarViewDropdown/CalendarViewDropdown.tsx +1 -1
- package/src/components/ChartTooltip/ChartTooltip.tsx +1 -1
- package/src/components/Checkbox/checkboxBase.tsx +1 -1
- package/src/components/ContentFeatureText/ContentFeatureText.tsx +3 -2
- package/src/components/ContextMenu/ContextMenu.tsx +1 -1
- package/src/components/FeaturedIcon/FeaturedIcon.tsx +146 -0
- package/src/components/FeaturedIcon/index.ts +7 -0
- package/src/components/MessageAction/MessageAction.tsx +1 -1
- package/src/components/NavAccountCard/NavAccountCard.tsx +42 -5
- package/src/components/NavAccountCard/index.ts +5 -1
- package/src/components/NavAccountCardMenuItem/NavAccountCardMenuItem.tsx +1 -1
- package/src/components/NavButton/NavButton.tsx +1 -1
- package/src/components/NavFeaturedCard/NavFeaturedCard.tsx +1 -1
- package/src/components/NavItemBase/NavItemBase.tsx +1 -1
- package/src/components/NavItemDropdownBase/NavItemDropdownBase.tsx +1 -1
- package/src/components/PageHeader/PageHeader.tsx +1 -1
- package/src/components/PaginationDotIndicator/PaginationDotIndicator.tsx +1 -1
- package/src/components/ProgressBar/ProgressBar.tsx +1 -1
- package/src/components/RadioGroupItem/RadioGroupItem.tsx +1 -1
- package/src/components/SelectMenuItem/SelectMenuItem.tsx +2 -2
- package/src/components/SidebarNavigation/SidebarNavigation.tsx +2 -2
- package/src/components/SocialButton/SocialButton.tsx +2 -2
- package/src/components/TableHeaderLabel/TableHeaderLabel.tsx +1 -1
- package/src/components/Toggle/Toggle.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +1 -1
- package/src/components/TreeViewItem/TreeViewItem.tsx +1 -1
- package/src/components/VerificationCodeInput/VerificationCodeInput.tsx +1 -1
- package/src/index.ts +1 -0
- package/tailwind-preset.js +223 -210
package/dist/index.cjs
CHANGED
|
@@ -5093,18 +5093,18 @@ function AdvancedFilterBar({
|
|
|
5093
5093
|
] });
|
|
5094
5094
|
}
|
|
5095
5095
|
var hierarchyClasses = {
|
|
5096
|
-
Primary: "bg-brand-solid text-white border-2 border-white/[0.12] hover:bg-bg-brand-solid-hover",
|
|
5097
|
-
Secondary: "bg-bg-primary text-text-secondary border border-border-primary",
|
|
5098
|
-
Tertiary: "bg-transparent text-text-tertiary border-0",
|
|
5099
|
-
"Link color": "bg-transparent text-text-brand-secondary border-0 p-0",
|
|
5100
|
-
"Link gray": "bg-transparent text-text-tertiary border-0 p-0"
|
|
5096
|
+
Primary: "bg-bg-brand-solid text-text-white border-2 border-white/[0.12] shadow-skeuomorphic hover:bg-bg-brand-solid-hover",
|
|
5097
|
+
Secondary: "bg-bg-primary text-text-secondary border border-border-primary shadow-skeuomorphic hover:bg-bg-primary-hover",
|
|
5098
|
+
Tertiary: "bg-transparent text-text-tertiary border-0 hover:bg-bg-secondary",
|
|
5099
|
+
"Link color": "bg-transparent text-text-brand-secondary border-0 p-0 hover:text-text-brand-secondary-hover",
|
|
5100
|
+
"Link gray": "bg-transparent text-text-tertiary border-0 p-0 hover:text-text-tertiary-hover"
|
|
5101
5101
|
};
|
|
5102
5102
|
var sizeClasses = {
|
|
5103
|
-
xs: "px-[10px] py-sm text-xs",
|
|
5104
|
-
sm: "px-lg py-md text-xs",
|
|
5105
|
-
md: "px-[14px] py-[10px] text-sm",
|
|
5106
|
-
lg: "px-xl py-[10px] text-md",
|
|
5107
|
-
xl: "px-[18px] py-lg text-md"
|
|
5103
|
+
xs: "px-[10px] py-sm gap-xs text-xs font-semibold",
|
|
5104
|
+
sm: "px-lg py-md gap-xs text-xs font-semibold",
|
|
5105
|
+
md: "px-[14px] py-[10px] gap-xs text-sm font-semibold",
|
|
5106
|
+
lg: "px-xl py-[10px] gap-sm text-md font-semibold",
|
|
5107
|
+
xl: "px-[18px] py-lg gap-sm text-md font-semibold"
|
|
5108
5108
|
};
|
|
5109
5109
|
function Button({
|
|
5110
5110
|
hierarchy = "Primary",
|
|
@@ -5119,8 +5119,10 @@ function Button({
|
|
|
5119
5119
|
"button",
|
|
5120
5120
|
{
|
|
5121
5121
|
className: clsx_default(
|
|
5122
|
-
"
|
|
5123
|
-
"
|
|
5122
|
+
"inline-flex items-center justify-center font-body rounded-md",
|
|
5123
|
+
"cursor-pointer transition-colors",
|
|
5124
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-brand focus-visible:ring-offset-2",
|
|
5125
|
+
"disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none",
|
|
5124
5126
|
hierarchyClasses[hierarchy],
|
|
5125
5127
|
sizeClasses[size],
|
|
5126
5128
|
className
|
|
@@ -5128,7 +5130,7 @@ function Button({
|
|
|
5128
5130
|
disabled: disabled || loading,
|
|
5129
5131
|
"aria-disabled": disabled || loading,
|
|
5130
5132
|
...rest,
|
|
5131
|
-
children: loading ? "Loading\u2026" : children
|
|
5133
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "opacity-70", children: "Loading\u2026" }) : children
|
|
5132
5134
|
}
|
|
5133
5135
|
);
|
|
5134
5136
|
}
|
|
@@ -5979,7 +5981,7 @@ function ButtonCloseX({
|
|
|
5979
5981
|
);
|
|
5980
5982
|
}
|
|
5981
5983
|
var hierarchyClasses2 = {
|
|
5982
|
-
Primary: "bg-error-solid text-white border-2 border-white/[0.12] shadow-skeuomorphic hover:bg-error-solid-hover",
|
|
5984
|
+
Primary: "bg-bg-error-solid text-text-white border-2 border-white/[0.12] shadow-skeuomorphic hover:bg-bg-error-solid-hover",
|
|
5983
5985
|
Secondary: "bg-bg-primary text-text-error-primary border border-border-error-subtle shadow-skeuomorphic hover:bg-bg-error-primary",
|
|
5984
5986
|
Tertiary: "bg-transparent text-text-error-primary border-0 hover:bg-bg-error-primary",
|
|
5985
5987
|
Link: "bg-transparent text-text-error-primary border-0 p-0 hover:text-text-error-primary"
|
|
@@ -6005,7 +6007,7 @@ function ButtonDestructive({
|
|
|
6005
6007
|
{
|
|
6006
6008
|
className: clsx_default(
|
|
6007
6009
|
"font-body font-semibold rounded-md cursor-pointer transition-colors",
|
|
6008
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-error focus-visible:ring-offset-2 focus-visible:ring-offset-bg-primary",
|
|
6010
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-border-error focus-visible:ring-offset-2 focus-visible:ring-offset-bg-bg-primary",
|
|
6009
6011
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
6010
6012
|
hierarchyClasses2[hierarchy],
|
|
6011
6013
|
hierarchy === "Link" ? "" : sizeClasses4[size],
|
|
@@ -6238,7 +6240,7 @@ function CalendarColumnHeader({
|
|
|
6238
6240
|
{
|
|
6239
6241
|
className: clsx_default(
|
|
6240
6242
|
"flex items-center justify-center text-xs font-semibold",
|
|
6241
|
-
current ? "size-6 rounded-full bg-brand-solid text-white" : "text-text-secondary"
|
|
6243
|
+
current ? "size-6 rounded-full bg-bg-brand-solid text-white" : "text-text-secondary"
|
|
6242
6244
|
),
|
|
6243
6245
|
"aria-current": current ? "date" : void 0,
|
|
6244
6246
|
children: date2
|
|
@@ -6497,7 +6499,7 @@ function CalendarViewDropdown({
|
|
|
6497
6499
|
"flex size-4 shrink-0 items-center justify-center rounded-full border",
|
|
6498
6500
|
isSelected ? "border-border-brand" : "border-border-primary"
|
|
6499
6501
|
),
|
|
6500
|
-
children: isSelected ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "size-2 rounded-full bg-brand-solid" }) : null
|
|
6502
|
+
children: isSelected ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "size-2 rounded-full bg-bg-brand-solid" }) : null
|
|
6501
6503
|
}
|
|
6502
6504
|
),
|
|
6503
6505
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-left", children: opt.label }),
|
|
@@ -28868,7 +28870,7 @@ function CheckControlVisual({
|
|
|
28868
28870
|
"peer-focus-visible:ring-2 peer-focus-visible:ring-border-brand peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-bg-primary",
|
|
28869
28871
|
type === "radio" ? "rounded-full" : "rounded-sm",
|
|
28870
28872
|
boxSize[size],
|
|
28871
|
-
disabled ? "border-border-primary bg-bg-tertiary" : active ? "border-brand-solid bg-brand-solid" : "border-border-primary bg-bg-primary"
|
|
28873
|
+
disabled ? "border-border-primary bg-bg-tertiary" : active ? "border-bg-brand-solid bg-bg-brand-solid" : "border-border-primary bg-bg-primary"
|
|
28872
28874
|
),
|
|
28873
28875
|
children: [
|
|
28874
28876
|
type === "checkbox" && checked && !indeterminate ? /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 16 16", fill: "none", className: glyphSize[size], "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -29317,7 +29319,7 @@ function ContentDivider({
|
|
|
29317
29319
|
);
|
|
29318
29320
|
}
|
|
29319
29321
|
var sizeConfig = {
|
|
29320
|
-
sm: { box: "p-3xl rounded-
|
|
29322
|
+
sm: { box: "p-3xl rounded-2xl", heading: "text-lg", body: "text-md" },
|
|
29321
29323
|
md: { box: "p-4xl rounded-2xl", heading: "text-xl", body: "text-lg" }
|
|
29322
29324
|
};
|
|
29323
29325
|
function ContentFeatureText({
|
|
@@ -29968,6 +29970,100 @@ function EmptyState({
|
|
|
29968
29970
|
}
|
|
29969
29971
|
);
|
|
29970
29972
|
}
|
|
29973
|
+
var boxSize2 = {
|
|
29974
|
+
sm: "size-8",
|
|
29975
|
+
// 32px
|
|
29976
|
+
md: "size-10",
|
|
29977
|
+
// 40px
|
|
29978
|
+
lg: "size-12",
|
|
29979
|
+
// 48px
|
|
29980
|
+
xl: "size-14"
|
|
29981
|
+
// 56px
|
|
29982
|
+
};
|
|
29983
|
+
var iconPx = {
|
|
29984
|
+
sm: 16,
|
|
29985
|
+
md: 20,
|
|
29986
|
+
lg: 24,
|
|
29987
|
+
xl: 28
|
|
29988
|
+
};
|
|
29989
|
+
function radiusFor(theme) {
|
|
29990
|
+
if (theme === "light") return "rounded-full";
|
|
29991
|
+
if (theme === "modern-neue") return "rounded-lg";
|
|
29992
|
+
return "rounded-xl";
|
|
29993
|
+
}
|
|
29994
|
+
var lightBg = {
|
|
29995
|
+
brand: "bg-bg-brand-secondary",
|
|
29996
|
+
gray: "bg-bg-secondary",
|
|
29997
|
+
error: "bg-bg-error-secondary",
|
|
29998
|
+
warning: "bg-bg-warning-secondary",
|
|
29999
|
+
success: "bg-bg-success-secondary"
|
|
30000
|
+
};
|
|
30001
|
+
var lightFg = {
|
|
30002
|
+
brand: "text-fg-brand-primary",
|
|
30003
|
+
gray: "text-fg-secondary",
|
|
30004
|
+
error: "text-fg-error-primary",
|
|
30005
|
+
warning: "text-fg-warning-primary",
|
|
30006
|
+
success: "text-fg-success-primary"
|
|
30007
|
+
};
|
|
30008
|
+
var darkBg = {
|
|
30009
|
+
brand: "bg-bg-brand-solid",
|
|
30010
|
+
gray: "bg-bg-secondary-solid",
|
|
30011
|
+
error: "bg-bg-error-solid",
|
|
30012
|
+
warning: "bg-bg-warning-solid",
|
|
30013
|
+
success: "bg-bg-success-solid"
|
|
30014
|
+
};
|
|
30015
|
+
var gradientFill = {
|
|
30016
|
+
brand: "bg-gradient-to-br from-utility-brand-50 to-utility-brand-200",
|
|
30017
|
+
gray: "bg-gradient-to-br from-utility-neutral-50 to-utility-neutral-200",
|
|
30018
|
+
error: "bg-gradient-to-br from-utility-red-50 to-utility-red-200",
|
|
30019
|
+
warning: "bg-gradient-to-br from-utility-amber-50 to-utility-amber-200",
|
|
30020
|
+
success: "bg-gradient-to-br from-utility-green-50 to-utility-green-200"
|
|
30021
|
+
};
|
|
30022
|
+
function FeaturedIcon({
|
|
30023
|
+
icon,
|
|
30024
|
+
color: color2 = "brand",
|
|
30025
|
+
theme = "light",
|
|
30026
|
+
size = "md",
|
|
30027
|
+
className,
|
|
30028
|
+
...rest
|
|
30029
|
+
}) {
|
|
30030
|
+
const px = iconPx[size];
|
|
30031
|
+
const themeClasses = clsx_default(
|
|
30032
|
+
theme === "light" && [lightBg[color2], lightFg[color2]],
|
|
30033
|
+
theme === "dark" && [
|
|
30034
|
+
darkBg[color2],
|
|
30035
|
+
"text-fg-white border-2 border-[rgba(255,255,255,0.12)] shadow-skeuomorphic"
|
|
30036
|
+
],
|
|
30037
|
+
theme === "gradient" && [gradientFill[color2], "text-fg-white"],
|
|
30038
|
+
theme === "modern" && [
|
|
30039
|
+
"bg-bg-primary text-fg-secondary border border-border-primary shadow-skeuomorphic"
|
|
30040
|
+
],
|
|
30041
|
+
theme === "modern-neue" && [
|
|
30042
|
+
"bg-bg-primary text-fg-secondary border border-border-primary shadow-xs"
|
|
30043
|
+
]
|
|
30044
|
+
);
|
|
30045
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30046
|
+
"span",
|
|
30047
|
+
{
|
|
30048
|
+
className: clsx_default(
|
|
30049
|
+
"inline-flex shrink-0 items-center justify-center",
|
|
30050
|
+
boxSize2[size],
|
|
30051
|
+
radiusFor(theme),
|
|
30052
|
+
themeClasses,
|
|
30053
|
+
className
|
|
30054
|
+
),
|
|
30055
|
+
...rest,
|
|
30056
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30057
|
+
"span",
|
|
30058
|
+
{
|
|
30059
|
+
"aria-hidden": "true",
|
|
30060
|
+
style: { width: px, height: px, display: "inline-flex" },
|
|
30061
|
+
children: icon
|
|
30062
|
+
}
|
|
30063
|
+
)
|
|
30064
|
+
}
|
|
30065
|
+
);
|
|
30066
|
+
}
|
|
29971
30067
|
var avatarSize2 = {
|
|
29972
30068
|
sm: "size-8",
|
|
29973
30069
|
// 32px
|
|
@@ -31418,7 +31514,7 @@ function MetricItem({
|
|
|
31418
31514
|
}
|
|
31419
31515
|
);
|
|
31420
31516
|
}
|
|
31421
|
-
var
|
|
31517
|
+
var FeaturedIcon2 = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-md border border-border-primary text-fg-secondary shadow-xs", children });
|
|
31422
31518
|
var XClose2 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 20 20", fill: "none", className: "size-5", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 5 5 15M5 5l10 10", stroke: "currentColor", strokeWidth: "1.67", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
31423
31519
|
function ModalHeader({
|
|
31424
31520
|
title,
|
|
@@ -31452,7 +31548,7 @@ function ModalHeader({
|
|
|
31452
31548
|
isCenter && "items-center"
|
|
31453
31549
|
),
|
|
31454
31550
|
children: [
|
|
31455
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31551
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(FeaturedIcon2, { children: icon }),
|
|
31456
31552
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
31457
31553
|
"div",
|
|
31458
31554
|
{
|
|
@@ -31769,6 +31865,18 @@ var LogOut = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 16 16",
|
|
|
31769
31865
|
strokeLinejoin: "round"
|
|
31770
31866
|
}
|
|
31771
31867
|
) });
|
|
31868
|
+
var LayeredAvatar = ({ src, online }) => /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-flex size-10 shrink-0 rounded-full border-[0.75px] border-border-secondary-alt bg-bg-primary p-[1px] shadow-xs", children: [
|
|
31869
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-full overflow-hidden rounded-full border-[0.5px] border-[rgba(0,0,0,0.16)]", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt: "", className: "size-full rounded-full object-cover" }) }),
|
|
31870
|
+
online !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31871
|
+
"span",
|
|
31872
|
+
{
|
|
31873
|
+
className: clsx_default(
|
|
31874
|
+
"absolute bottom-[-2px] right-[-2px] size-[14px] rounded-full border-[1.5px] border-bg-primary",
|
|
31875
|
+
online ? "bg-fg-success-secondary" : "bg-utility-neutral-300"
|
|
31876
|
+
)
|
|
31877
|
+
}
|
|
31878
|
+
)
|
|
31879
|
+
] });
|
|
31772
31880
|
var AvatarLabel = ({ avatar, name, email }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-md", children: [
|
|
31773
31881
|
avatar && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: avatar }),
|
|
31774
31882
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col text-left", children: [
|
|
@@ -31779,7 +31887,10 @@ var AvatarLabel = ({ avatar, name, email }) => /* @__PURE__ */ jsxRuntime.jsxs("
|
|
|
31779
31887
|
function NavAccountCard({
|
|
31780
31888
|
variant = "card",
|
|
31781
31889
|
open = false,
|
|
31890
|
+
breakpoint = "desktop",
|
|
31782
31891
|
avatar,
|
|
31892
|
+
src,
|
|
31893
|
+
online,
|
|
31783
31894
|
name,
|
|
31784
31895
|
email,
|
|
31785
31896
|
onToggle,
|
|
@@ -31788,17 +31899,20 @@ function NavAccountCard({
|
|
|
31788
31899
|
className,
|
|
31789
31900
|
...rest
|
|
31790
31901
|
}) {
|
|
31902
|
+
const widthClass = breakpoint === "mobile" ? "w-[256px]" : "w-[280px]";
|
|
31903
|
+
const avatarNode = avatar ?? (src !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(LayeredAvatar, { src, online }) : void 0);
|
|
31791
31904
|
if (variant === "simple") {
|
|
31792
31905
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31793
31906
|
"div",
|
|
31794
31907
|
{
|
|
31795
31908
|
className: clsx_default(
|
|
31796
|
-
"relative flex
|
|
31909
|
+
"relative flex items-start gap-xl border-t border-border-secondary px-md pt-2xl",
|
|
31910
|
+
widthClass,
|
|
31797
31911
|
className
|
|
31798
31912
|
),
|
|
31799
31913
|
...rest,
|
|
31800
31914
|
children: [
|
|
31801
|
-
/* @__PURE__ */ jsxRuntime.jsx(AvatarLabel, { avatar, name, email }),
|
|
31915
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarLabel, { avatar: avatarNode, name, email }),
|
|
31802
31916
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31803
31917
|
"button",
|
|
31804
31918
|
{
|
|
@@ -31813,7 +31927,7 @@ function NavAccountCard({
|
|
|
31813
31927
|
}
|
|
31814
31928
|
);
|
|
31815
31929
|
}
|
|
31816
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx_default("relative
|
|
31930
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx_default("relative", widthClass, className), ...rest, children: [
|
|
31817
31931
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
31818
31932
|
"button",
|
|
31819
31933
|
{
|
|
@@ -31821,7 +31935,7 @@ function NavAccountCard({
|
|
|
31821
31935
|
onClick: onToggle,
|
|
31822
31936
|
className: "relative flex w-full items-start gap-xl rounded-xl border border-border-secondary bg-bg-primary-alt p-lg text-left shadow-xs",
|
|
31823
31937
|
children: [
|
|
31824
|
-
/* @__PURE__ */ jsxRuntime.jsx(AvatarLabel, { avatar, name, email }),
|
|
31938
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarLabel, { avatar: avatarNode, name, email }),
|
|
31825
31939
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31826
31940
|
"span",
|
|
31827
31941
|
{
|
|
@@ -32092,7 +32206,7 @@ var GLYPH = {
|
|
|
32092
32206
|
error: "M10 6.67V10m0 3.33h.01M18.33 10a8.33 8.33 0 1 1-16.66 0 8.33 8.33 0 0 1 16.66 0Z"
|
|
32093
32207
|
};
|
|
32094
32208
|
var XClose5 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 20 20", fill: "none", className: "size-5", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 5 5 15M5 5l10 10", stroke: "currentColor", strokeWidth: "1.67", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
32095
|
-
var
|
|
32209
|
+
var FeaturedIcon3 = ({ variant }) => /* @__PURE__ */ jsxRuntime.jsxs("span", { className: clsx_default("relative inline-flex size-5 shrink-0 items-center justify-center", RING[variant].split(" ")[1]), children: [
|
|
32096
32210
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx_default("absolute inset-[-20%] rounded-full border-2 opacity-30", RING[variant].split(" ")[0]) }),
|
|
32097
32211
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx_default("absolute inset-[-45%] rounded-full border-2 opacity-10", RING[variant].split(" ")[0]) }),
|
|
32098
32212
|
/* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 20 20", fill: "none", className: "relative size-5", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: GLYPH[variant], stroke: "currentColor", strokeWidth: "1.67", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
@@ -32117,7 +32231,7 @@ function Notification({
|
|
|
32117
32231
|
),
|
|
32118
32232
|
...rest,
|
|
32119
32233
|
children: [
|
|
32120
|
-
leadingMedia ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
32234
|
+
leadingMedia ?? /* @__PURE__ */ jsxRuntime.jsx(FeaturedIcon3, { variant }),
|
|
32121
32235
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-lg pr-8", children: [
|
|
32122
32236
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-xs", children: [
|
|
32123
32237
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-fg-primary", children: title }),
|
|
@@ -32937,7 +33051,7 @@ function SidebarNavigation({
|
|
|
32937
33051
|
}
|
|
32938
33052
|
);
|
|
32939
33053
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
32940
|
-
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: "hidden h-full md:
|
|
33054
|
+
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: "hidden h-full md:flex", children: rail }),
|
|
32941
33055
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:hidden", children: [
|
|
32942
33056
|
/* @__PURE__ */ jsxRuntime.jsx(NavMenuButton, { opened: isOpen, onClick: () => setOpen(!isOpen) }),
|
|
32943
33057
|
isOpen && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "fixed inset-0 z-50 flex", children: [
|
|
@@ -33917,6 +34031,7 @@ exports.DropdownMenuHeader = DropdownMenuHeader;
|
|
|
33917
34031
|
exports.DropdownMenuItemInsetIcon = DropdownMenuItemInsetIcon;
|
|
33918
34032
|
exports.DropdownMenuListItem = DropdownMenuListItem;
|
|
33919
34033
|
exports.EmptyState = EmptyState;
|
|
34034
|
+
exports.FeaturedIcon = FeaturedIcon;
|
|
33920
34035
|
exports.FeedItemBase = FeedItemBase;
|
|
33921
34036
|
exports.FileUpload = FileUpload;
|
|
33922
34037
|
exports.FileUploadBase = FileUploadBase;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ButtonHTMLAttributes, MouseEventHandler, HTMLAttributes, CSSProperties, InputHTMLAttributes, ElementType, TextareaHTMLAttributes, SVGProps } from 'react';
|
|
2
|
+
import react__default, { ReactNode, ButtonHTMLAttributes, MouseEventHandler, HTMLAttributes, CSSProperties, InputHTMLAttributes, ElementType, TextareaHTMLAttributes, SVGProps } from 'react';
|
|
3
3
|
|
|
4
4
|
type ActivityFeedDivider = "line" | "connector" | "divider" | "none";
|
|
5
5
|
interface ActivityFeedProps {
|
|
@@ -576,7 +576,7 @@ interface ChartTooltipProps {
|
|
|
576
576
|
}
|
|
577
577
|
/**
|
|
578
578
|
* Themed tooltip card for the Recharts chart wrappers — pass as the chart's
|
|
579
|
-
* `<Tooltip content={<ChartTooltip />} />`. Renders a `bg-primary` card with the
|
|
579
|
+
* `<Tooltip content={<ChartTooltip />} />`. Renders a `bg-bg-primary` card with the
|
|
580
580
|
* point label and one colored-dot row per series. Returns null when inactive.
|
|
581
581
|
*/
|
|
582
582
|
declare function ChartTooltip({ active, payload, label, formatValue }: ChartTooltipProps): react.JSX.Element | null;
|
|
@@ -837,7 +837,7 @@ interface ContextMenuProps {
|
|
|
837
837
|
}
|
|
838
838
|
/**
|
|
839
839
|
* A thin positioned panel for right-click menus. Reuses the dropdown panel
|
|
840
|
-
* tokens (shadow-lg, border-secondary-alt, radius-md) and renders whatever
|
|
840
|
+
* tokens (shadow-lg, border-border-secondary-alt, radius-md) and renders whatever
|
|
841
841
|
* rows you pass — compose DropdownMenuListItem children; it does NOT
|
|
842
842
|
* reimplement list items. Pair with `useContextMenu`.
|
|
843
843
|
*/
|
|
@@ -1042,6 +1042,28 @@ interface EmptyStateProps {
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
declare function EmptyState({ icon, title, description, actions, size, className, }: EmptyStateProps): react.JSX.Element;
|
|
1044
1044
|
|
|
1045
|
+
type FeaturedIconColor = "brand" | "gray" | "error" | "warning" | "success";
|
|
1046
|
+
type FeaturedIconTheme = "light" | "dark" | "gradient" | "modern" | "modern-neue";
|
|
1047
|
+
type FeaturedIconSize = "sm" | "md" | "lg" | "xl";
|
|
1048
|
+
interface FeaturedIconProps extends Omit<react__default.HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
1049
|
+
/** Icon element (e.g. from @borisj74/bv-ds-icons). Inherits currentColor. */
|
|
1050
|
+
icon: react__default.ReactNode;
|
|
1051
|
+
color?: FeaturedIconColor;
|
|
1052
|
+
theme?: FeaturedIconTheme;
|
|
1053
|
+
size?: FeaturedIconSize;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* FeaturedIcon — Untitled UI "Featured icon" (node 1102:5338).
|
|
1057
|
+
*
|
|
1058
|
+
* A coloured container wrapping an icon, used by Empty state, Alert, Metric,
|
|
1059
|
+
* Notification, etc. Pass the icon via the `icon` slot — it inherits
|
|
1060
|
+
* currentColor, so no fill/stroke props are needed.
|
|
1061
|
+
*
|
|
1062
|
+
* `modern` and `modern-neue` are neutral white-card treatments (gray-only in
|
|
1063
|
+
* Figma); the `color` prop is ignored for those two themes.
|
|
1064
|
+
*/
|
|
1065
|
+
declare function FeaturedIcon({ icon, color, theme, size, className, ...rest }: FeaturedIconProps): react__default.JSX.Element;
|
|
1066
|
+
|
|
1045
1067
|
type FeedItemSize = "sm" | "md";
|
|
1046
1068
|
interface FeedItemBaseProps {
|
|
1047
1069
|
/** Display name of the actor (e.g. "Olivia Rhye"). */
|
|
@@ -1284,7 +1306,7 @@ interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1284
1306
|
arrow?: TooltipArrow;
|
|
1285
1307
|
}
|
|
1286
1308
|
/**
|
|
1287
|
-
* Presentational tooltip bubble (dark `bg-primary-solid`, white text). `text` is
|
|
1309
|
+
* Presentational tooltip bubble (dark `bg-bg-primary-solid`, white text). `text` is
|
|
1288
1310
|
* the heading; `supportingText` adds a second `utility-neutral-300` line (max
|
|
1289
1311
|
* 296px). `arrow` positions a small pointer on the bubble edge (rendered as a
|
|
1290
1312
|
* rotated square). Positioning relative to a trigger is the caller's job.
|
|
@@ -1497,7 +1519,7 @@ interface MessageActionProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCha
|
|
|
1497
1519
|
* - **minimal** — single-line field + square send button (row).
|
|
1498
1520
|
* - **textarea** — multiline box, attach/emoji + brand Send pinned bottom-right,
|
|
1499
1521
|
* record button top-right.
|
|
1500
|
-
* - **advanced** — AI prompt box on `bg-secondary`; author chip + Shortcuts/Attach
|
|
1522
|
+
* - **advanced** — AI prompt box on `bg-bg-secondary`; author chip + Shortcuts/Attach
|
|
1501
1523
|
* footer, mic top-right, resize handle.
|
|
1502
1524
|
*
|
|
1503
1525
|
* Renders real `<input>`/`<textarea>` (controlled via `value`/`onValueChange`);
|
|
@@ -1689,12 +1711,20 @@ interface MultiSelectProps {
|
|
|
1689
1711
|
declare function MultiSelect({ options, value, onChange, open, onToggle, label, hint, placeholder, searchable, disabled, invalid, className, }: MultiSelectProps): react.JSX.Element;
|
|
1690
1712
|
|
|
1691
1713
|
type NavAccountCardVariant = "simple" | "card";
|
|
1714
|
+
type NavAccountCardBreakpoint = "desktop" | "mobile";
|
|
1692
1715
|
interface NavAccountCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
1693
1716
|
/** `simple` = inline row + sign-out button · `card` = boxed trigger that opens a menu. */
|
|
1694
1717
|
variant?: NavAccountCardVariant;
|
|
1695
1718
|
/** card only — whether the dropdown menu is shown. */
|
|
1696
1719
|
open?: boolean;
|
|
1720
|
+
/** Width: `desktop` = 280px · `mobile` = 256px. */
|
|
1721
|
+
breakpoint?: NavAccountCardBreakpoint;
|
|
1722
|
+
/** Custom avatar node — takes precedence over the built-in `src` treatment. */
|
|
1697
1723
|
avatar?: ReactNode;
|
|
1724
|
+
/** Image URL for the built-in layered avatar (used when `avatar` is not supplied). */
|
|
1725
|
+
src?: string;
|
|
1726
|
+
/** Status dot on the built-in avatar — `true` online (green) · `false` offline (gray) · omit for none. */
|
|
1727
|
+
online?: boolean;
|
|
1698
1728
|
name?: ReactNode;
|
|
1699
1729
|
email?: ReactNode;
|
|
1700
1730
|
/** card only — toggles the dropdown (fires on trigger click). */
|
|
@@ -1712,13 +1742,13 @@ interface NavAccountCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "titl
|
|
|
1712
1742
|
* with a sign-out button; `card` renders a boxed trigger that, when `open`,
|
|
1713
1743
|
* reveals a dropdown (the `menu` slot — compose `NavAccountCardMenuItem` rows).
|
|
1714
1744
|
*
|
|
1715
|
-
* The active account is marked with `bg-brand-solid` (the radio inside the
|
|
1745
|
+
* The active account is marked with `bg-bg-brand-solid` (the radio inside the
|
|
1716
1746
|
* account menu items). Note: Figma opens the desktop menu as a right-side
|
|
1717
1747
|
* flyout; this opens it above the trigger (`bottom-full`) — a layout
|
|
1718
1748
|
* simplification (see figma-map). Width defaults to 280px; override via
|
|
1719
1749
|
* `className` for mobile (256px).
|
|
1720
1750
|
*/
|
|
1721
|
-
declare function NavAccountCard({ variant, open, avatar, name, email, onToggle, onSignOut, menu, className, ...rest }: NavAccountCardProps): react.JSX.Element;
|
|
1751
|
+
declare function NavAccountCard({ variant, open, breakpoint, avatar, src, online, name, email, onToggle, onSignOut, menu, className, ...rest }: NavAccountCardProps): react.JSX.Element;
|
|
1722
1752
|
|
|
1723
1753
|
type NavAccountCardMenuItemType = "menu-item" | "account";
|
|
1724
1754
|
interface NavAccountCardMenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "name" | "type"> {
|
|
@@ -1743,12 +1773,12 @@ interface NavAccountCardMenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButt
|
|
|
1743
1773
|
* A single row inside `NavAccountCard`'s dropdown. Two shapes:
|
|
1744
1774
|
* - `menu-item` — icon + label + optional shortcut chip (View profile, Settings…).
|
|
1745
1775
|
* - `account` — avatar + name/email with a radio indicator; `current` fills the
|
|
1746
|
-
* radio with `bg-brand-solid` (the active-account marker).
|
|
1776
|
+
* radio with `bg-bg-brand-solid` (the active-account marker).
|
|
1747
1777
|
*/
|
|
1748
1778
|
declare function NavAccountCardMenuItem({ type, current, icon, label, shortcut, avatar, name, email, className, ...rest }: NavAccountCardMenuItemProps): react.JSX.Element;
|
|
1749
1779
|
|
|
1750
1780
|
interface NavButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
1751
|
-
/** Active route — applies the selected (`bg-secondary`) background. */
|
|
1781
|
+
/** Active route — applies the selected (`bg-bg-secondary`) background. */
|
|
1752
1782
|
current?: boolean;
|
|
1753
1783
|
/** Render only the leading icon (square button). */
|
|
1754
1784
|
iconOnly?: boolean;
|
|
@@ -1773,7 +1803,7 @@ interface NavFeaturedCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "tit
|
|
|
1773
1803
|
children?: ReactNode;
|
|
1774
1804
|
/** CTA row — compose Button(s) / link buttons. */
|
|
1775
1805
|
action?: ReactNode;
|
|
1776
|
-
/** Bordered surface (`bg-primary` + border) vs subtle (`bg-secondary`). */
|
|
1806
|
+
/** Bordered surface (`bg-bg-primary` + border) vs subtle (`bg-bg-secondary`). */
|
|
1777
1807
|
bordered?: boolean;
|
|
1778
1808
|
/** Renders an x-close button top-right. */
|
|
1779
1809
|
onClose?: () => void;
|
|
@@ -1788,7 +1818,7 @@ interface NavFeaturedCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "tit
|
|
|
1788
1818
|
declare function NavFeaturedCard({ icon, title, subtitle, children, action, bordered, onClose, className, ...rest }: NavFeaturedCardProps): react.JSX.Element;
|
|
1789
1819
|
|
|
1790
1820
|
interface NavItemBaseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
1791
|
-
/** Active route — selected (`bg-secondary`) background. */
|
|
1821
|
+
/** Active route — selected (`bg-bg-secondary`) background. */
|
|
1792
1822
|
current?: boolean;
|
|
1793
1823
|
/** Leading icon (20px). */
|
|
1794
1824
|
icon?: ReactNode;
|
|
@@ -1807,7 +1837,7 @@ interface NavItemBaseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
1807
1837
|
declare function NavItemBase({ current, icon, label, dot, badge, trailingChevron, className, type, ...rest }: NavItemBaseProps): react.JSX.Element;
|
|
1808
1838
|
|
|
1809
1839
|
interface NavItemDropdownBaseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
1810
|
-
/** Active group — selected (`bg-secondary`) background on the trigger. */
|
|
1840
|
+
/** Active group — selected (`bg-bg-secondary`) background on the trigger. */
|
|
1811
1841
|
current?: boolean;
|
|
1812
1842
|
/** Expanded state — reveals the submenu. */
|
|
1813
1843
|
open?: boolean;
|
|
@@ -1893,7 +1923,7 @@ interface PageHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" |
|
|
|
1893
1923
|
actions?: ReactNode;
|
|
1894
1924
|
/** Optional breadcrumbs slot above the title. */
|
|
1895
1925
|
breadcrumbs?: ReactNode;
|
|
1896
|
-
/** Banner background image (banner styles); falls back to `bg-tertiary`. */
|
|
1926
|
+
/** Banner background image (banner styles); falls back to `bg-bg-tertiary`. */
|
|
1897
1927
|
bannerUrl?: string;
|
|
1898
1928
|
}
|
|
1899
1929
|
/**
|
|
@@ -1983,7 +2013,7 @@ interface PaginationDotIndicatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1983
2013
|
}
|
|
1984
2014
|
/**
|
|
1985
2015
|
* Single pagination indicator — a dot or a line. `current` fills it with the
|
|
1986
|
-
* brand colour, otherwise `bg-quaternary`. Dimensions per size/variant match
|
|
2016
|
+
* brand colour, otherwise `bg-bg-quaternary`. Dimensions per size/variant match
|
|
1987
2017
|
* Figma (dot md 8 / lg 10; line md h6 / lg h8, both 40 wide).
|
|
1988
2018
|
*/
|
|
1989
2019
|
declare function PaginationDotIndicator({ current, size, variant, className, ...rest }: PaginationDotIndicatorProps): react.JSX.Element;
|
|
@@ -2037,7 +2067,7 @@ interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
2037
2067
|
}
|
|
2038
2068
|
/**
|
|
2039
2069
|
* Progress bar — pure CSS, no chart lib. `value` (0–100) drives an animated fill
|
|
2040
|
-
* (`fg-brand-primary` on a `bg-quaternary` track). `label`: none / right (inline
|
|
2070
|
+
* (`fg-brand-primary` on a `bg-bg-quaternary` track). `label`: none / right (inline
|
|
2041
2071
|
* %) / bottom (% under) / top|bottom-floating (tooltip bubble tracking the fill).
|
|
2042
2072
|
*/
|
|
2043
2073
|
declare function ProgressBar({ value, label, className, ...rest }: ProgressBarProps): react.JSX.Element;
|
|
@@ -2159,7 +2189,7 @@ interface RadioGroupItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
2159
2189
|
}
|
|
2160
2190
|
/**
|
|
2161
2191
|
* Selectable radio/checkbox card. One component over the 6 Figma `type`s — the
|
|
2162
|
-
* shared shell (border, padding, `radius-xl`, selected `border-brand`) is
|
|
2192
|
+
* shared shell (border, padding, `radius-xl`, selected `border-border-brand`) is
|
|
2163
2193
|
* constant; only the leading element and control placement change. `radioButton`
|
|
2164
2194
|
* uses a radio (leading); `checkbox` a checkbox (leading); `iconSimple`/`avatar`/
|
|
2165
2195
|
* `paymentIcon` put a `leading` visual on the left and the checkbox trailing;
|
|
@@ -2271,8 +2301,8 @@ interface SelectMenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
2271
2301
|
/**
|
|
2272
2302
|
* List-item primitive for `Select` and Multi-select dropdowns. One component over
|
|
2273
2303
|
* both: `multi` swaps the trailing selected-check for a leading checkbox. The
|
|
2274
|
-
* shared shell is a full-width row with hover `bg-primary-hover`; `label` is
|
|
2275
|
-
* `text-primary`, `supportingText` sits inline in `text-tertiary`.
|
|
2304
|
+
* shared shell is a full-width row with hover `bg-bg-primary-hover`; `label` is
|
|
2305
|
+
* `text-text-primary`, `supportingText` sits inline in `text-text-tertiary`.
|
|
2276
2306
|
*/
|
|
2277
2307
|
declare function SelectMenuItem({ label, supportingText, selected, size, leading, multi, disabled, className, ...rest }: SelectMenuItemProps): react.JSX.Element;
|
|
2278
2308
|
|
|
@@ -2296,7 +2326,7 @@ interface SidebarNavigationProps extends Omit<HTMLAttributes<HTMLElement>, "titl
|
|
|
2296
2326
|
* a fixed-width rail (`slim` collapses to 68px). Composes existing `Nav*`
|
|
2297
2327
|
* components via slots/children — it does not reimplement nav items. On mobile
|
|
2298
2328
|
* the rail is hidden behind a hamburger (`NavMenuButton`); opening it shows a
|
|
2299
|
-
* `bg-overlay` + `backdrop-blur-md` scrim and slides the rail in as a drawer.
|
|
2329
|
+
* `bg-bg-overlay` + `backdrop-blur-md` scrim and slides the rail in as a drawer.
|
|
2300
2330
|
*
|
|
2301
2331
|
* NOTE: `dualTier`'s icon-rail + expanding-panel split is simplified to a single
|
|
2302
2332
|
* 280px column here — compose the icon rail separately if you need the two-tier
|
|
@@ -2386,8 +2416,8 @@ interface SocialButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
2386
2416
|
children?: ReactNode;
|
|
2387
2417
|
}
|
|
2388
2418
|
/**
|
|
2389
|
-
* Social-login button. All themes share the neutral white shell (border-primary,
|
|
2390
|
-
* shadow-xs, `text-secondary` label) — `theme` only controls the brand glyph:
|
|
2419
|
+
* Social-login button. All themes share the neutral white shell (border-border-primary,
|
|
2420
|
+
* shadow-xs, `text-text-secondary` label) — `theme` only controls the brand glyph:
|
|
2391
2421
|
* `color`/`brand` = full color, `gray` = monochrome (CSS grayscale, flagged
|
|
2392
2422
|
* approximation of UntitledUI's true single-color gray logos). `iconOnly` drops
|
|
2393
2423
|
* the label for a square button.
|
|
@@ -2524,7 +2554,7 @@ interface TableHeaderLabelProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
2524
2554
|
helpIcon?: ReactNode;
|
|
2525
2555
|
}
|
|
2526
2556
|
/**
|
|
2527
|
-
* Column-header label — `text-xs` semibold in `text-quaternary` (→ `text-tertiary`
|
|
2557
|
+
* Column-header label — `text-xs` semibold in `text-text-quaternary` (→ `text-text-tertiary`
|
|
2528
2558
|
* on hover), with an optional sort `arrow` and trailing `helpIcon` slot. Consumed
|
|
2529
2559
|
* by `TableHeaderCell`.
|
|
2530
2560
|
*/
|
|
@@ -2639,7 +2669,7 @@ interface ToggleProps {
|
|
|
2639
2669
|
"aria-label"?: string;
|
|
2640
2670
|
}
|
|
2641
2671
|
/**
|
|
2642
|
-
* Switch toggle. `default` = filled track (`bg-brand-solid` when on); `slim` = a
|
|
2672
|
+
* Switch toggle. `default` = filled track (`bg-bg-brand-solid` when on); `slim` = a
|
|
2643
2673
|
* thinner track with a bordered knob (uses the `toggle-slim-border-pressed`
|
|
2644
2674
|
* tokens when on). The `_Toggle base` control is inline (not a separate export).
|
|
2645
2675
|
* Controlled via `checked`/`onCheckedChange`; optional `label`/`supportingText`.
|
|
@@ -2683,7 +2713,7 @@ interface TreeViewItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "onTogg
|
|
|
2683
2713
|
/**
|
|
2684
2714
|
* One row of a `TreeView`. Composes `TreeViewConnector` for the `level` indent
|
|
2685
2715
|
* guides, plus an optional expand chevron, `checkbox`, `icon` and label. Selected
|
|
2686
|
-
* → `bg-secondary`; hover → `bg-primary-hover`. Width is fluid (parent controls).
|
|
2716
|
+
* → `bg-bg-secondary`; hover → `bg-bg-primary-hover`. Width is fluid (parent controls).
|
|
2687
2717
|
*/
|
|
2688
2718
|
declare function TreeViewItem({ size, level, selected, expandable, open, onToggle, checkbox, checked, onCheckedChange, icon, dragHandle, children, className, ...rest }: TreeViewItemProps): react.JSX.Element;
|
|
2689
2719
|
|
|
@@ -2734,7 +2764,7 @@ interface VerificationCodeInputProps {
|
|
|
2734
2764
|
* OTP-style verification code input. `digits` 4 or 6 separate single-character
|
|
2735
2765
|
* cells (6 shows a centre "-" separator); large display typography
|
|
2736
2766
|
* (`display-lg`/`display-xl`). Controlled via `value`/`onChange`; auto-advances
|
|
2737
|
-
* focus on entry and steps back on backspace. Cell borders use `border-primary`
|
|
2767
|
+
* focus on entry and steps back on backspace. Cell borders use `border-border-primary`
|
|
2738
2768
|
* (= `utility-neutral-300` #d4d4d4, same value).
|
|
2739
2769
|
*/
|
|
2740
2770
|
declare function VerificationCodeInput({ digits, value, onChange, size, label, hint, destructive, disabled, className, "aria-label": ariaLabel, }: VerificationCodeInputProps): react.JSX.Element;
|
|
@@ -2759,4 +2789,4 @@ declare namespace index {
|
|
|
2759
2789
|
export { index_BoxIllustration as BoxIllustration, index_CloudIllustration as CloudIllustration, index_CreditCardIllustration as CreditCardIllustration, index_DocumentsIllustration as DocumentsIllustration };
|
|
2760
2790
|
}
|
|
2761
2791
|
|
|
2762
|
-
export { ActivityFeed, type ActivityFeedDivider, type ActivityFeedProps, ActivityGauge, type ActivityGaugeLegend, type ActivityGaugeProps, type ActivityGaugeSeries, type ActivityGaugeSize, AdvancedFilterBar, type AdvancedFilterBarProps, Alert, type AlertAction, type AlertColor, type AlertProps, type AlertSize, Avatar, AvatarAddButton, type AvatarAddButtonProps, type AvatarAddButtonSize, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupSize, AvatarLabelGroup, type AvatarLabelGroupProps, type AvatarLabelGroupSize, AvatarProfilePhoto, type AvatarProfilePhotoProps, type AvatarProfilePhotoSize, type AvatarProps, type AvatarSize, BadgeCloseX, type BadgeCloseXProps, type BadgeCloseXShape, type BadgeColor, type BadgeCommonProps, BadgeGroup, type BadgeGroupBadgePosition, type BadgeGroupProps, type BadgeGroupSize, type BadgeGroupType, type BadgeSize, BreadcrumbButtonBase, type BreadcrumbButtonBaseProps, type BreadcrumbButtonType, Breadcrumbs, type BreadcrumbsDivider, type BreadcrumbsProps, Button, ButtonCloseX, type ButtonCloseXProps, type ButtonCloseXSize, ButtonDestructive, type ButtonDestructiveHierarchy, type ButtonDestructiveProps, type ButtonDestructiveSize, ButtonGroup, type ButtonGroupProps, ButtonGroupSegment, type ButtonGroupSegmentProps, type ButtonGroupSegmentSize, type ButtonProps, ButtonUtility, type ButtonUtilityProps, type ButtonUtilitySize, type ButtonUtilityVariant, CalendarCell, CalendarCellDayWeekView, type CalendarCellDayWeekViewProps, type CalendarCellProps, CalendarColumnHeader, type CalendarColumnHeaderOrientation, type CalendarColumnHeaderProps, CalendarDateIcon, type CalendarDateIconProps, CalendarEvent, type CalendarEventColor, CalendarEventDayWeekView, type CalendarEventDayWeekViewProps, type CalendarEventProps, CalendarHeader, type CalendarHeaderProps, CalendarRowLabel, type CalendarRowLabelProps, CalendarTimemarker, type CalendarTimemarkerAlign, type CalendarTimemarkerProps, type CalendarView, CalendarViewDropdown, type CalendarViewDropdownProps, type CalendarViewOption, CardHeader, type CardHeaderProps, CarouselArrow, type CarouselArrowDirection, type CarouselArrowProps, type CarouselArrowSize, CarouselImage, type CarouselImageProps, Change, type ChangeProps, type ChangeTrend, type ChangeType, ChartLegend, type ChartLegendItem, type ChartLegendPosition, type ChartLegendProps, ChartMarker, type ChartMarkerLine, type ChartMarkerProps, ChartMini, type ChartMiniDatum, type ChartMiniProps, type ChartMiniTrend, type ChartSeries, type ChartStyle, ChartTooltip, type ChartTooltipPayloadItem, type ChartTooltipProps, type CheckControlSize, Checkbox, type CheckboxProps, CodeSnippet, type CodeSnippetProps, CodeSnippetTabs, type CodeSnippetTabsProps, ColorBadge, type ColorBadgeProps, CommandBar, CommandBarFooter, type CommandBarFooterHint, type CommandBarFooterProps, CommandBarMenuSection, type CommandBarMenuSectionProps, CommandBarNavigationIcon, type CommandBarNavigationIconProps, type CommandBarProps, CommandDropdownMenuItem, type CommandDropdownMenuItemProps, CommandInput, type CommandInputProps, CommandShortcut, type CommandShortcutProps, ContentDivider, type ContentDividerProps, type ContentDividerStyle, type ContentDividerType, ContentFeatureText, type ContentFeatureTextProps, type ContentFeatureTextSize, ContentHeading, type ContentHeadingProps, type ContentHeadingSize, ContentParagraph, type ContentParagraphProps, type ContentParagraphSize, ContentQuote, type ContentQuoteAlign, type ContentQuoteProps, type ContentQuoteSize, ContentRule, type ContentRuleProps, type ContentRuleSize, ContextMenu, type ContextMenuProps, type ContextMenuState, DatePickerCell, type DatePickerCellProps, type DatePickerCellType, DatePickerListItem, type DatePickerListItemProps, DatePickerMenu, type DatePickerMenuProps, DropdownAccountListItem, type DropdownAccountListItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, type DropdownMenuFooterType, DropdownMenuHeader, type DropdownMenuHeaderProps, type DropdownMenuHeaderType, DropdownMenuItemInsetIcon, type DropdownMenuItemInsetIconProps, type DropdownMenuItemInsetIconType, DropdownMenuListItem, type DropdownMenuListItemProps, EmptyState, type EmptyStateProps, type EmptyStateSize, FeedItemBase, type FeedItemBaseProps, type FeedItemSize, FileUpload, FileUploadBase, type FileUploadBaseProps, FileUploadItemBase, type FileUploadItemBaseProps, type FileUploadItemIconType, type FileUploadItemStatus, type FileUploadItemType, type FileUploadProps, FilterBar, type FilterBarProps, FilterTabs, type FilterTabsProps, FiltersDropdownMenu, type FiltersDropdownMenuProps, FiltersSlideoutMenu, type FiltersSlideoutMenuProps, type HeaderNavItem, HeaderNavigation, type HeaderNavigationProps, type HeaderNavigationType, HelpIcon, type HelpIconProps, InputField, type InputFieldProps, type InputFieldSize, type InputFieldType, LeadingInputField, type LeadingInputFieldProps, LineAndBarChart, type LineAndBarChartProps, LinkMessage, type LinkMessageProps, type LinkMessageType, LoadingIndicator, type LoadingIndicatorProps, type LoadingIndicatorSize, type LoadingIndicatorStyle, MediaMessage, type MediaMessageProps, type MediaMessageType, MegaInputFieldBase, type MegaInputFieldBaseProps, type MegaInputFieldBaseSize, Message, MessageAction, MessageActionButton, type MessageActionButtonProps, MessageActionPanel, type MessageActionPanelProps, type MessageActionProps, type MessageActionType, type MessageBubbleTone, type MessageProps, MessageReaction, type MessageReactionProps, type MessageStatus, MessageStatusIcon, type MessageStatusIconProps, type MessageType, MetricItem, type MetricItemProps, Modal, ModalActions, type ModalActionsProps, type ModalActionsType, ModalHeader, type ModalHeaderProps, type ModalHeaderType, type ModalProps, type ModalSize, ModernBadge, type ModernBadgeProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavAccountCard, NavAccountCardMenuItem, type NavAccountCardMenuItemProps, type NavAccountCardMenuItemType, type NavAccountCardProps, type NavAccountCardVariant, NavButton, type NavButtonProps, NavFeaturedCard, type NavFeaturedCardProps, NavItemBase, type NavItemBaseProps, NavItemDropdownBase, type NavItemDropdownBaseProps, NavMenuButton, type NavMenuButtonProps, Notification, type NotificationProps, type NotificationVariant, NumberInput, type NumberInputLayout, type NumberInputProps, PageHeader, type PageHeaderProps, type PageHeaderStyle, Pagination, PaginationButtonGroupBase, type PaginationButtonGroupBaseProps, type PaginationButtonGroupType, PaginationCards, type PaginationCardsProps, type PaginationCardsVariant, PaginationDotGroup, type PaginationDotGroupProps, PaginationDotIndicator, type PaginationDotIndicatorProps, type PaginationDotSize, type PaginationDotVariant, PaginationNumberBase, type PaginationNumberBaseProps, type PaginationNumberShape, type PaginationProps, type PaginationType, PieChart, type PieChartProps, type PieChartSize, type PieSlice, PillBadge, type PillBadgeProps, ProgressBar, type ProgressBarLabel, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, type ProgressCircleShape, type ProgressCircleSize, RadarChart, type RadarChartProps, type RadarLegendPosition, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupItemSize, type RadioGroupItemType, type RadioGroupProps, type RadioProps, SectionFooter, type SectionFooterProps, type SectionFooterType, SectionHeader, type SectionHeaderProps, SectionLabel, type SectionLabelProps, type SectionLabelSize, Select, SelectMenuItem, type SelectMenuItemProps, type SelectMenuItemSize, type SelectProps, type SelectSize, type SelectType, SidebarNavigation, type SidebarNavigationProps, type SidebarNavigationType, SlideOutMenuHeader, type SlideOutMenuHeaderProps, SlideoutMenu, type SlideoutMenuProps, type SlideoutMenuSide, type SlideoutMenuSize, Slider, type SliderLabel, type SliderProps, type SocialBrand, SocialButton, type SocialButtonProps, type SocialButtonSize, type SocialButtonTheme, StatusIcon, type StatusIconProps, type StatusIconType, StepBase, type StepBaseProps, StepIconBase, type StepIconBaseProps, type StepIconSize, type StepIconType, type StepOrientation, type StepStatus, TabButtonBase, type TabButtonBaseProps, type TabButtonSize, type TabButtonType, type TabItem, TableCell, type TableCellProps, type TableCellSize, TableHeaderCell, type TableHeaderCellProps, type TableHeaderCellSize, TableHeaderLabel, type TableHeaderLabelArrow, type TableHeaderLabelProps, Tabs, type TabsOrientation, type TabsProps, Tag, type TagProps, type TagSize, TagsInputField, type TagsInputFieldProps, type TagsInputVariant, TextEditorToolbar, TextEditorToolbarDivider, type TextEditorToolbarProps, TextEditorTooltip, type TextEditorTooltipProps, TextareaInputField, type TextareaInputFieldProps, Toggle, type ToggleProps, type ToggleSize, type ToggleType, Tooltip, type TooltipArrow, type TooltipProps, TrailingInputField, type TrailingInputFieldProps, type TreeNode, TreeView, TreeViewConnector, type TreeViewConnectorProps, type TreeViewConnectorSize, type TreeViewConnectorType, TreeViewItem, type TreeViewItemProps, type TreeViewItemSize, type TreeViewProps, type UseContextMenuReturn, type VerificationCodeDigits, VerificationCodeInput, type VerificationCodeInputProps, type VerificationCodeSize, index as illustrations, useContextMenu };
|
|
2792
|
+
export { ActivityFeed, type ActivityFeedDivider, type ActivityFeedProps, ActivityGauge, type ActivityGaugeLegend, type ActivityGaugeProps, type ActivityGaugeSeries, type ActivityGaugeSize, AdvancedFilterBar, type AdvancedFilterBarProps, Alert, type AlertAction, type AlertColor, type AlertProps, type AlertSize, Avatar, AvatarAddButton, type AvatarAddButtonProps, type AvatarAddButtonSize, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupSize, AvatarLabelGroup, type AvatarLabelGroupProps, type AvatarLabelGroupSize, AvatarProfilePhoto, type AvatarProfilePhotoProps, type AvatarProfilePhotoSize, type AvatarProps, type AvatarSize, BadgeCloseX, type BadgeCloseXProps, type BadgeCloseXShape, type BadgeColor, type BadgeCommonProps, BadgeGroup, type BadgeGroupBadgePosition, type BadgeGroupProps, type BadgeGroupSize, type BadgeGroupType, type BadgeSize, BreadcrumbButtonBase, type BreadcrumbButtonBaseProps, type BreadcrumbButtonType, Breadcrumbs, type BreadcrumbsDivider, type BreadcrumbsProps, Button, ButtonCloseX, type ButtonCloseXProps, type ButtonCloseXSize, ButtonDestructive, type ButtonDestructiveHierarchy, type ButtonDestructiveProps, type ButtonDestructiveSize, ButtonGroup, type ButtonGroupProps, ButtonGroupSegment, type ButtonGroupSegmentProps, type ButtonGroupSegmentSize, type ButtonProps, ButtonUtility, type ButtonUtilityProps, type ButtonUtilitySize, type ButtonUtilityVariant, CalendarCell, CalendarCellDayWeekView, type CalendarCellDayWeekViewProps, type CalendarCellProps, CalendarColumnHeader, type CalendarColumnHeaderOrientation, type CalendarColumnHeaderProps, CalendarDateIcon, type CalendarDateIconProps, CalendarEvent, type CalendarEventColor, CalendarEventDayWeekView, type CalendarEventDayWeekViewProps, type CalendarEventProps, CalendarHeader, type CalendarHeaderProps, CalendarRowLabel, type CalendarRowLabelProps, CalendarTimemarker, type CalendarTimemarkerAlign, type CalendarTimemarkerProps, type CalendarView, CalendarViewDropdown, type CalendarViewDropdownProps, type CalendarViewOption, CardHeader, type CardHeaderProps, CarouselArrow, type CarouselArrowDirection, type CarouselArrowProps, type CarouselArrowSize, CarouselImage, type CarouselImageProps, Change, type ChangeProps, type ChangeTrend, type ChangeType, ChartLegend, type ChartLegendItem, type ChartLegendPosition, type ChartLegendProps, ChartMarker, type ChartMarkerLine, type ChartMarkerProps, ChartMini, type ChartMiniDatum, type ChartMiniProps, type ChartMiniTrend, type ChartSeries, type ChartStyle, ChartTooltip, type ChartTooltipPayloadItem, type ChartTooltipProps, type CheckControlSize, Checkbox, type CheckboxProps, CodeSnippet, type CodeSnippetProps, CodeSnippetTabs, type CodeSnippetTabsProps, ColorBadge, type ColorBadgeProps, CommandBar, CommandBarFooter, type CommandBarFooterHint, type CommandBarFooterProps, CommandBarMenuSection, type CommandBarMenuSectionProps, CommandBarNavigationIcon, type CommandBarNavigationIconProps, type CommandBarProps, CommandDropdownMenuItem, type CommandDropdownMenuItemProps, CommandInput, type CommandInputProps, CommandShortcut, type CommandShortcutProps, ContentDivider, type ContentDividerProps, type ContentDividerStyle, type ContentDividerType, ContentFeatureText, type ContentFeatureTextProps, type ContentFeatureTextSize, ContentHeading, type ContentHeadingProps, type ContentHeadingSize, ContentParagraph, type ContentParagraphProps, type ContentParagraphSize, ContentQuote, type ContentQuoteAlign, type ContentQuoteProps, type ContentQuoteSize, ContentRule, type ContentRuleProps, type ContentRuleSize, ContextMenu, type ContextMenuProps, type ContextMenuState, DatePickerCell, type DatePickerCellProps, type DatePickerCellType, DatePickerListItem, type DatePickerListItemProps, DatePickerMenu, type DatePickerMenuProps, DropdownAccountListItem, type DropdownAccountListItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, type DropdownMenuFooterType, DropdownMenuHeader, type DropdownMenuHeaderProps, type DropdownMenuHeaderType, DropdownMenuItemInsetIcon, type DropdownMenuItemInsetIconProps, type DropdownMenuItemInsetIconType, DropdownMenuListItem, type DropdownMenuListItemProps, EmptyState, type EmptyStateProps, type EmptyStateSize, FeaturedIcon, type FeaturedIconColor, type FeaturedIconProps, type FeaturedIconSize, type FeaturedIconTheme, FeedItemBase, type FeedItemBaseProps, type FeedItemSize, FileUpload, FileUploadBase, type FileUploadBaseProps, FileUploadItemBase, type FileUploadItemBaseProps, type FileUploadItemIconType, type FileUploadItemStatus, type FileUploadItemType, type FileUploadProps, FilterBar, type FilterBarProps, FilterTabs, type FilterTabsProps, FiltersDropdownMenu, type FiltersDropdownMenuProps, FiltersSlideoutMenu, type FiltersSlideoutMenuProps, type HeaderNavItem, HeaderNavigation, type HeaderNavigationProps, type HeaderNavigationType, HelpIcon, type HelpIconProps, InputField, type InputFieldProps, type InputFieldSize, type InputFieldType, LeadingInputField, type LeadingInputFieldProps, LineAndBarChart, type LineAndBarChartProps, LinkMessage, type LinkMessageProps, type LinkMessageType, LoadingIndicator, type LoadingIndicatorProps, type LoadingIndicatorSize, type LoadingIndicatorStyle, MediaMessage, type MediaMessageProps, type MediaMessageType, MegaInputFieldBase, type MegaInputFieldBaseProps, type MegaInputFieldBaseSize, Message, MessageAction, MessageActionButton, type MessageActionButtonProps, MessageActionPanel, type MessageActionPanelProps, type MessageActionProps, type MessageActionType, type MessageBubbleTone, type MessageProps, MessageReaction, type MessageReactionProps, type MessageStatus, MessageStatusIcon, type MessageStatusIconProps, type MessageType, MetricItem, type MetricItemProps, Modal, ModalActions, type ModalActionsProps, type ModalActionsType, ModalHeader, type ModalHeaderProps, type ModalHeaderType, type ModalProps, type ModalSize, ModernBadge, type ModernBadgeProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavAccountCard, type NavAccountCardBreakpoint, NavAccountCardMenuItem, type NavAccountCardMenuItemProps, type NavAccountCardMenuItemType, type NavAccountCardProps, type NavAccountCardVariant, NavButton, type NavButtonProps, NavFeaturedCard, type NavFeaturedCardProps, NavItemBase, type NavItemBaseProps, NavItemDropdownBase, type NavItemDropdownBaseProps, NavMenuButton, type NavMenuButtonProps, Notification, type NotificationProps, type NotificationVariant, NumberInput, type NumberInputLayout, type NumberInputProps, PageHeader, type PageHeaderProps, type PageHeaderStyle, Pagination, PaginationButtonGroupBase, type PaginationButtonGroupBaseProps, type PaginationButtonGroupType, PaginationCards, type PaginationCardsProps, type PaginationCardsVariant, PaginationDotGroup, type PaginationDotGroupProps, PaginationDotIndicator, type PaginationDotIndicatorProps, type PaginationDotSize, type PaginationDotVariant, PaginationNumberBase, type PaginationNumberBaseProps, type PaginationNumberShape, type PaginationProps, type PaginationType, PieChart, type PieChartProps, type PieChartSize, type PieSlice, PillBadge, type PillBadgeProps, ProgressBar, type ProgressBarLabel, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, type ProgressCircleShape, type ProgressCircleSize, RadarChart, type RadarChartProps, type RadarLegendPosition, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupItemSize, type RadioGroupItemType, type RadioGroupProps, type RadioProps, SectionFooter, type SectionFooterProps, type SectionFooterType, SectionHeader, type SectionHeaderProps, SectionLabel, type SectionLabelProps, type SectionLabelSize, Select, SelectMenuItem, type SelectMenuItemProps, type SelectMenuItemSize, type SelectProps, type SelectSize, type SelectType, SidebarNavigation, type SidebarNavigationProps, type SidebarNavigationType, SlideOutMenuHeader, type SlideOutMenuHeaderProps, SlideoutMenu, type SlideoutMenuProps, type SlideoutMenuSide, type SlideoutMenuSize, Slider, type SliderLabel, type SliderProps, type SocialBrand, SocialButton, type SocialButtonProps, type SocialButtonSize, type SocialButtonTheme, StatusIcon, type StatusIconProps, type StatusIconType, StepBase, type StepBaseProps, StepIconBase, type StepIconBaseProps, type StepIconSize, type StepIconType, type StepOrientation, type StepStatus, TabButtonBase, type TabButtonBaseProps, type TabButtonSize, type TabButtonType, type TabItem, TableCell, type TableCellProps, type TableCellSize, TableHeaderCell, type TableHeaderCellProps, type TableHeaderCellSize, TableHeaderLabel, type TableHeaderLabelArrow, type TableHeaderLabelProps, Tabs, type TabsOrientation, type TabsProps, Tag, type TagProps, type TagSize, TagsInputField, type TagsInputFieldProps, type TagsInputVariant, TextEditorToolbar, TextEditorToolbarDivider, type TextEditorToolbarProps, TextEditorTooltip, type TextEditorTooltipProps, TextareaInputField, type TextareaInputFieldProps, Toggle, type ToggleProps, type ToggleSize, type ToggleType, Tooltip, type TooltipArrow, type TooltipProps, TrailingInputField, type TrailingInputFieldProps, type TreeNode, TreeView, TreeViewConnector, type TreeViewConnectorProps, type TreeViewConnectorSize, type TreeViewConnectorType, TreeViewItem, type TreeViewItemProps, type TreeViewItemSize, type TreeViewProps, type UseContextMenuReturn, type VerificationCodeDigits, VerificationCodeInput, type VerificationCodeInputProps, type VerificationCodeSize, index as illustrations, useContextMenu };
|