@syscore/ui-library 2.0.0-beta-publish-workflow-beta.9 → 2.0.0-beta-publish-workflow-beta.11
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/client/components/ui/avatar-identity.tsx +16 -3
- package/client/components/ui/avatar.tsx +32 -4
- package/client/components/ui/back-link.tsx +35 -0
- package/client/components/ui/card.tsx +20 -3
- package/client/components/ui/centered-page.tsx +27 -0
- package/client/components/ui/checkbox-field.tsx +57 -0
- package/client/components/ui/dialog.tsx +6 -0
- package/client/components/ui/icon-button.tsx +45 -0
- package/client/components/ui/layout.tsx +32 -5
- package/client/components/ui/modal-panel.tsx +35 -4
- package/client/components/ui/outline-node.tsx +112 -0
- package/client/components/ui/radio-card.tsx +54 -0
- package/client/components/ui/resource-thumbnail.tsx +12 -1
- package/client/components/ui/side-nav.tsx +126 -0
- package/client/components/ui/status-pill.tsx +37 -4
- package/client/components/ui/table.tsx +26 -4
- package/client/components/ui/typography.tsx +29 -2
- package/client/global.css +815 -9
- package/client/ui/Avatar.stories.tsx +78 -0
- package/client/ui/BackLink.stories.tsx +50 -0
- package/client/ui/Card.stories.tsx +30 -0
- package/client/ui/CenteredPage.stories.tsx +43 -0
- package/client/ui/CheckboxField.stories.tsx +68 -0
- package/client/ui/Dialog.stories.tsx +31 -0
- package/client/ui/IconButton.stories.tsx +77 -0
- package/client/ui/OutlineNode.stories.tsx +106 -0
- package/client/ui/RadioCard.stories.tsx +75 -0
- package/client/ui/SideNav.stories.tsx +68 -0
- package/client/ui/StatusPill.stories.tsx +78 -0
- package/client/ui/Table/Table.stories.tsx +32 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +84 -0
- package/dist/index.es.js +398 -40
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -10,7 +10,7 @@ import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
|
10
10
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
11
11
|
import { GripVertical, X as X$1, PanelLeft, Eye, EyeOff, Circle, Dot, ChevronLeft, ChevronRight, Search, Check, MoreHorizontal, ChevronDown, ArrowLeft, ArrowRight } from "lucide-react";
|
|
12
12
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
13
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
13
|
+
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
14
14
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
15
15
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
16
16
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
@@ -1139,13 +1139,29 @@ const defaultElementMap = {
|
|
|
1139
1139
|
"number-base": "span"
|
|
1140
1140
|
};
|
|
1141
1141
|
const Text = React.forwardRef(
|
|
1142
|
-
({
|
|
1142
|
+
({
|
|
1143
|
+
className,
|
|
1144
|
+
variant = "body-base",
|
|
1145
|
+
as,
|
|
1146
|
+
tone = "default",
|
|
1147
|
+
strong = false,
|
|
1148
|
+
align,
|
|
1149
|
+
leading = "default",
|
|
1150
|
+
...props
|
|
1151
|
+
}, ref) => {
|
|
1143
1152
|
const Component = as || defaultElementMap[variant];
|
|
1144
1153
|
return /* @__PURE__ */ jsx(
|
|
1145
1154
|
Component,
|
|
1146
1155
|
{
|
|
1147
1156
|
ref,
|
|
1148
|
-
className: cn(
|
|
1157
|
+
className: cn(
|
|
1158
|
+
typographyVariants({ variant }),
|
|
1159
|
+
tone === "muted" && "typo--muted",
|
|
1160
|
+
strong && "typo--strong",
|
|
1161
|
+
align === "center" && "typo--center",
|
|
1162
|
+
leading === "relaxed" && "typo--relaxed",
|
|
1163
|
+
className
|
|
1164
|
+
),
|
|
1149
1165
|
...props
|
|
1150
1166
|
}
|
|
1151
1167
|
);
|
|
@@ -1194,24 +1210,38 @@ const cardVariants = cva("card", {
|
|
|
1194
1210
|
outlined: "card--outlined",
|
|
1195
1211
|
elevated: "card--elevated",
|
|
1196
1212
|
filled: "card--filled",
|
|
1197
|
-
interactive: "card--interactive"
|
|
1213
|
+
interactive: "card--interactive",
|
|
1214
|
+
/** A bordered 16px-radius panel for a side summary. */
|
|
1215
|
+
panel: "card--panel",
|
|
1216
|
+
/** A bordered 12px-radius box nested inside a form or another card. */
|
|
1217
|
+
inset: "card--inset"
|
|
1198
1218
|
},
|
|
1199
1219
|
padding: {
|
|
1200
1220
|
default: "",
|
|
1201
1221
|
spacious: "card--padding-spacious"
|
|
1222
|
+
},
|
|
1223
|
+
/** `relaxed` — more air between heading, description and content (dense back-office pages). */
|
|
1224
|
+
spacing: {
|
|
1225
|
+
default: "",
|
|
1226
|
+
relaxed: "card--spacing-relaxed"
|
|
1202
1227
|
}
|
|
1203
1228
|
},
|
|
1204
1229
|
defaultVariants: {
|
|
1205
1230
|
variant: "default",
|
|
1206
|
-
padding: "default"
|
|
1231
|
+
padding: "default",
|
|
1232
|
+
spacing: "default"
|
|
1207
1233
|
}
|
|
1208
1234
|
});
|
|
1209
1235
|
const Card = React.forwardRef(
|
|
1210
|
-
({ className, variant, padding, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1236
|
+
({ className, variant, padding, spacing: spacing2, sticky = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1211
1237
|
"div",
|
|
1212
1238
|
{
|
|
1213
1239
|
ref,
|
|
1214
|
-
className: cn(
|
|
1240
|
+
className: cn(
|
|
1241
|
+
cardVariants({ variant, padding, spacing: spacing2 }),
|
|
1242
|
+
sticky && "card--sticky",
|
|
1243
|
+
className
|
|
1244
|
+
),
|
|
1215
1245
|
...props
|
|
1216
1246
|
}
|
|
1217
1247
|
)
|
|
@@ -1355,15 +1385,31 @@ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
1355
1385
|
));
|
|
1356
1386
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
1357
1387
|
const Table = React.forwardRef(
|
|
1358
|
-
({
|
|
1359
|
-
|
|
1388
|
+
({
|
|
1389
|
+
className,
|
|
1390
|
+
containerClassName,
|
|
1391
|
+
density = "compact",
|
|
1392
|
+
appearance = "plain",
|
|
1393
|
+
...props
|
|
1394
|
+
}, ref) => /* @__PURE__ */ jsx(
|
|
1395
|
+
"div",
|
|
1360
1396
|
{
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1397
|
+
className: cn(
|
|
1398
|
+
"table-wrapper",
|
|
1399
|
+
appearance === "card" && "table-wrapper--card",
|
|
1400
|
+
containerClassName
|
|
1401
|
+
),
|
|
1402
|
+
children: /* @__PURE__ */ jsx(
|
|
1403
|
+
"table",
|
|
1404
|
+
{
|
|
1405
|
+
ref,
|
|
1406
|
+
"data-density": density,
|
|
1407
|
+
className: cn("table", className),
|
|
1408
|
+
...props
|
|
1409
|
+
}
|
|
1410
|
+
)
|
|
1365
1411
|
}
|
|
1366
|
-
)
|
|
1412
|
+
)
|
|
1367
1413
|
);
|
|
1368
1414
|
Table.displayName = "Table";
|
|
1369
1415
|
const TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("table-header", className), ...props }));
|
|
@@ -1400,12 +1446,12 @@ const TableHead = React.forwardRef(
|
|
|
1400
1446
|
);
|
|
1401
1447
|
TableHead.displayName = "TableHead";
|
|
1402
1448
|
const TableCell = React.forwardRef(
|
|
1403
|
-
({ className, align = "left", text, tag, action, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1449
|
+
({ className, align = "left", strong = false, text, tag, action, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1404
1450
|
"td",
|
|
1405
1451
|
{
|
|
1406
1452
|
ref,
|
|
1407
1453
|
"data-align": align,
|
|
1408
|
-
className: cn("table-cell", className),
|
|
1454
|
+
className: cn("table-cell", strong && "table-cell--strong", className),
|
|
1409
1455
|
...props,
|
|
1410
1456
|
children: /* @__PURE__ */ jsxs("span", { className: "table-cell-inner", children: [
|
|
1411
1457
|
text,
|
|
@@ -2833,6 +2879,38 @@ const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2833
2879
|
}
|
|
2834
2880
|
));
|
|
2835
2881
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
2882
|
+
const CheckboxField = React.forwardRef(({ className, label, description, id, disabled, ...props }, ref) => {
|
|
2883
|
+
const generatedId = React.useId();
|
|
2884
|
+
const fieldId = id ?? generatedId;
|
|
2885
|
+
const descriptionId = description ? `${fieldId}-description` : void 0;
|
|
2886
|
+
return /* @__PURE__ */ jsxs(
|
|
2887
|
+
"div",
|
|
2888
|
+
{
|
|
2889
|
+
className: cn(
|
|
2890
|
+
"checkbox-field",
|
|
2891
|
+
disabled && "checkbox-field--disabled",
|
|
2892
|
+
className
|
|
2893
|
+
),
|
|
2894
|
+
children: [
|
|
2895
|
+
/* @__PURE__ */ jsx(
|
|
2896
|
+
Checkbox,
|
|
2897
|
+
{
|
|
2898
|
+
ref,
|
|
2899
|
+
id: fieldId,
|
|
2900
|
+
disabled,
|
|
2901
|
+
"aria-describedby": descriptionId,
|
|
2902
|
+
...props
|
|
2903
|
+
}
|
|
2904
|
+
),
|
|
2905
|
+
/* @__PURE__ */ jsxs("div", { className: "checkbox-field__text", children: [
|
|
2906
|
+
/* @__PURE__ */ jsx("label", { htmlFor: fieldId, className: "checkbox-field__label", children: label }),
|
|
2907
|
+
description ? /* @__PURE__ */ jsx("span", { id: descriptionId, className: "checkbox-field__description", children: description }) : null
|
|
2908
|
+
] })
|
|
2909
|
+
]
|
|
2910
|
+
}
|
|
2911
|
+
);
|
|
2912
|
+
});
|
|
2913
|
+
CheckboxField.displayName = "CheckboxField";
|
|
2836
2914
|
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
|
|
2837
2915
|
return /* @__PURE__ */ jsx(
|
|
2838
2916
|
RadioGroupPrimitive.Root,
|
|
@@ -3591,11 +3669,17 @@ const avatarIdentityVariants = cva("avatar-identity", {
|
|
|
3591
3669
|
textDirection: {
|
|
3592
3670
|
right: "avatar-identity--right",
|
|
3593
3671
|
left: "avatar-identity--left"
|
|
3672
|
+
},
|
|
3673
|
+
/** `soft` — a table-row identity: pale initials disc, no ring, name over a quieter email. */
|
|
3674
|
+
appearance: {
|
|
3675
|
+
default: "",
|
|
3676
|
+
soft: "avatar-identity--soft"
|
|
3594
3677
|
}
|
|
3595
3678
|
},
|
|
3596
3679
|
defaultVariants: {
|
|
3597
3680
|
size: "xlarge",
|
|
3598
|
-
textDirection: "right"
|
|
3681
|
+
textDirection: "right",
|
|
3682
|
+
appearance: "default"
|
|
3599
3683
|
}
|
|
3600
3684
|
});
|
|
3601
3685
|
function initialsFromName(name) {
|
|
@@ -3606,10 +3690,12 @@ const AvatarIdentity = React.forwardRef(
|
|
|
3606
3690
|
className,
|
|
3607
3691
|
size,
|
|
3608
3692
|
textDirection,
|
|
3693
|
+
appearance,
|
|
3609
3694
|
variant = "placeholder",
|
|
3610
3695
|
name = "",
|
|
3611
3696
|
email = "",
|
|
3612
3697
|
initials,
|
|
3698
|
+
icon,
|
|
3613
3699
|
src,
|
|
3614
3700
|
alt,
|
|
3615
3701
|
showText = true,
|
|
@@ -3621,7 +3707,10 @@ const AvatarIdentity = React.forwardRef(
|
|
|
3621
3707
|
"div",
|
|
3622
3708
|
{
|
|
3623
3709
|
ref,
|
|
3624
|
-
className: cn(
|
|
3710
|
+
className: cn(
|
|
3711
|
+
avatarIdentityVariants({ size, textDirection, appearance }),
|
|
3712
|
+
className
|
|
3713
|
+
),
|
|
3625
3714
|
...props,
|
|
3626
3715
|
children: [
|
|
3627
3716
|
/* @__PURE__ */ jsxs("div", { className: "avatar-identity__face", "data-face": face, children: [
|
|
@@ -3633,7 +3722,7 @@ const AvatarIdentity = React.forwardRef(
|
|
|
3633
3722
|
alt: alt || name
|
|
3634
3723
|
}
|
|
3635
3724
|
) : null,
|
|
3636
|
-
face === "initials" ? /* @__PURE__ */ jsx("span", { className: "avatar-identity__initials", "aria-hidden": showText, children: letters }) : null,
|
|
3725
|
+
face === "initials" ? /* @__PURE__ */ jsx("span", { className: "avatar-identity__initials", "aria-hidden": showText, children: icon ?? letters }) : null,
|
|
3637
3726
|
face === "placeholder" ? /* @__PURE__ */ jsx(
|
|
3638
3727
|
"img",
|
|
3639
3728
|
{
|
|
@@ -3646,7 +3735,7 @@ const AvatarIdentity = React.forwardRef(
|
|
|
3646
3735
|
] }),
|
|
3647
3736
|
showText ? /* @__PURE__ */ jsxs("div", { className: "avatar-identity__text", children: [
|
|
3648
3737
|
/* @__PURE__ */ jsx("p", { className: "avatar-identity__name", children: name }),
|
|
3649
|
-
/* @__PURE__ */ jsx("p", { className: "avatar-identity__email", children: email })
|
|
3738
|
+
email ? /* @__PURE__ */ jsx("p", { className: "avatar-identity__email", children: email }) : null
|
|
3650
3739
|
] }) : null
|
|
3651
3740
|
]
|
|
3652
3741
|
}
|
|
@@ -4236,11 +4325,29 @@ const AlertDialogPanel = ({
|
|
|
4236
4325
|
}
|
|
4237
4326
|
);
|
|
4238
4327
|
AlertDialogPanel.displayName = "AlertDialogPanel";
|
|
4239
|
-
const
|
|
4328
|
+
const avatarVariants = cva("avatar", {
|
|
4329
|
+
variants: {
|
|
4330
|
+
size: {
|
|
4331
|
+
sm: "avatar--sm",
|
|
4332
|
+
md: "",
|
|
4333
|
+
lg: "avatar--lg",
|
|
4334
|
+
xl: "avatar--xl"
|
|
4335
|
+
},
|
|
4336
|
+
appearance: {
|
|
4337
|
+
default: "",
|
|
4338
|
+
brand: "avatar--brand"
|
|
4339
|
+
}
|
|
4340
|
+
},
|
|
4341
|
+
defaultVariants: {
|
|
4342
|
+
size: "md",
|
|
4343
|
+
appearance: "default"
|
|
4344
|
+
}
|
|
4345
|
+
});
|
|
4346
|
+
const Avatar = React.forwardRef(({ className, size, appearance, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4240
4347
|
AvatarPrimitive.Root,
|
|
4241
4348
|
{
|
|
4242
4349
|
ref,
|
|
4243
|
-
className: cn(
|
|
4350
|
+
className: cn(avatarVariants({ size, appearance }), className),
|
|
4244
4351
|
...props
|
|
4245
4352
|
}
|
|
4246
4353
|
));
|
|
@@ -4618,6 +4725,7 @@ function DialogContent({
|
|
|
4618
4725
|
children,
|
|
4619
4726
|
showCloseButton = true,
|
|
4620
4727
|
size = "default",
|
|
4728
|
+
appearance = "default",
|
|
4621
4729
|
...props
|
|
4622
4730
|
}) {
|
|
4623
4731
|
return /* @__PURE__ */ jsx(DialogPortal, { "data-slot": "dialog-portal", children: /* @__PURE__ */ jsx(
|
|
@@ -4634,6 +4742,7 @@ function DialogContent({
|
|
|
4634
4742
|
className: cn(
|
|
4635
4743
|
"dialog-content",
|
|
4636
4744
|
size === "fullscreen" && "dialog-content--fullscreen",
|
|
4745
|
+
appearance === "form" && "dialog-content--form",
|
|
4637
4746
|
className
|
|
4638
4747
|
),
|
|
4639
4748
|
...props,
|
|
@@ -5285,6 +5394,8 @@ const GridSpan = React.forwardRef(
|
|
|
5285
5394
|
GridSpan.displayName = "GridSpan";
|
|
5286
5395
|
const ColumnsPresetMap = {
|
|
5287
5396
|
sidebar: "var(--layout-panel-width-default) 1fr",
|
|
5397
|
+
// A flexible main column and a 20–27.5rem aside (a form beside its live summary).
|
|
5398
|
+
"main-aside": "minmax(0, 1fr) minmax(20rem, 27.5rem)",
|
|
5288
5399
|
"sidebar-right": "1fr var(--layout-panel-width-default)",
|
|
5289
5400
|
"wide-sidebar": "var(--layout-panel-width-wide) 1fr",
|
|
5290
5401
|
"narrow-sidebar": "var(--layout-panel-width-narrow) 1fr",
|
|
@@ -5304,6 +5415,7 @@ const Columns = React.forwardRef(
|
|
|
5304
5415
|
columnGap,
|
|
5305
5416
|
rowGap,
|
|
5306
5417
|
collapse,
|
|
5418
|
+
align,
|
|
5307
5419
|
className,
|
|
5308
5420
|
style,
|
|
5309
5421
|
...props
|
|
@@ -5316,6 +5428,7 @@ const Columns = React.forwardRef(
|
|
|
5316
5428
|
className: cn(
|
|
5317
5429
|
"columns-layout",
|
|
5318
5430
|
collapse && `columns-layout--collapse-${collapse}`,
|
|
5431
|
+
align === "start" && "columns-layout--align-start",
|
|
5319
5432
|
className
|
|
5320
5433
|
),
|
|
5321
5434
|
style: {
|
|
@@ -5425,7 +5538,7 @@ function panelWidthVar(width) {
|
|
|
5425
5538
|
if (width == null) return void 0;
|
|
5426
5539
|
if (typeof width === "number") {
|
|
5427
5540
|
warnOnce(
|
|
5428
|
-
`LayoutPanel: width={${width}} freezes ${width}px into this app. Use width="narrow" | "default" | "wide" so --layout-panel-width-* stays in control.`
|
|
5541
|
+
`LayoutPanel: width={${width}} freezes ${width}px into this app. Use width="rail" | "nav" | "narrow" | "default" | "wide" so --layout-panel-width-* stays in control.`
|
|
5429
5542
|
);
|
|
5430
5543
|
return `${width}px`;
|
|
5431
5544
|
}
|
|
@@ -5456,9 +5569,16 @@ function slotIdOf(element) {
|
|
|
5456
5569
|
}
|
|
5457
5570
|
const LayoutHeader = markSlot(
|
|
5458
5571
|
React.forwardRef(
|
|
5459
|
-
({ as = "header", ...props }, ref) => {
|
|
5572
|
+
({ as = "header", sticky = false, ...props }, ref) => {
|
|
5460
5573
|
const Component = as;
|
|
5461
|
-
return /* @__PURE__ */ jsx(
|
|
5574
|
+
return /* @__PURE__ */ jsx(
|
|
5575
|
+
Component,
|
|
5576
|
+
{
|
|
5577
|
+
ref,
|
|
5578
|
+
className: cn("layout-header", sticky && "layout-header--sticky"),
|
|
5579
|
+
...props
|
|
5580
|
+
}
|
|
5581
|
+
);
|
|
5462
5582
|
}
|
|
5463
5583
|
),
|
|
5464
5584
|
"header"
|
|
@@ -5502,6 +5622,8 @@ const LayoutPanel = markSlot(
|
|
|
5502
5622
|
placement = "start",
|
|
5503
5623
|
width,
|
|
5504
5624
|
padding,
|
|
5625
|
+
appearance = "default",
|
|
5626
|
+
collapsed = false,
|
|
5505
5627
|
isScrollable = true,
|
|
5506
5628
|
tabIndex,
|
|
5507
5629
|
"aria-label": ariaLabel,
|
|
@@ -5515,12 +5637,14 @@ const LayoutPanel = markSlot(
|
|
|
5515
5637
|
className: cn(
|
|
5516
5638
|
"layout-panel",
|
|
5517
5639
|
`layout-panel--${placement}`,
|
|
5518
|
-
isScrollable && "layout-panel--scrollable"
|
|
5640
|
+
isScrollable && "layout-panel--scrollable",
|
|
5641
|
+
appearance === "nav" && "layout-panel--nav"
|
|
5519
5642
|
),
|
|
5520
5643
|
style: {
|
|
5521
5644
|
...width != null ? { ["--layout-panel-width"]: panelWidthVar(width) } : void 0,
|
|
5522
5645
|
...padding != null ? { ["--layout-panel-padding"]: tokenCss(padding) } : void 0
|
|
5523
5646
|
},
|
|
5647
|
+
"data-collapsed": collapsed || void 0,
|
|
5524
5648
|
tabIndex: tabIndex ?? (isScrollable ? 0 : void 0),
|
|
5525
5649
|
"aria-label": ariaLabel ?? (placement === "end" ? "Details" : "Navigation"),
|
|
5526
5650
|
...props
|
|
@@ -17206,18 +17330,30 @@ const TONES = [
|
|
|
17206
17330
|
"paid",
|
|
17207
17331
|
"waived",
|
|
17208
17332
|
"void",
|
|
17209
|
-
"neutral"
|
|
17333
|
+
"neutral",
|
|
17334
|
+
"info",
|
|
17335
|
+
"success",
|
|
17336
|
+
"warning",
|
|
17337
|
+
"danger",
|
|
17338
|
+
"accent",
|
|
17339
|
+
"inactive",
|
|
17340
|
+
"plain"
|
|
17210
17341
|
];
|
|
17211
17342
|
function toneForStatus(status) {
|
|
17212
17343
|
const value = String(status ?? "").toLowerCase();
|
|
17213
17344
|
return TONES.includes(value) ? value : "neutral";
|
|
17214
17345
|
}
|
|
17215
17346
|
const StatusPill = React.forwardRef(
|
|
17216
|
-
({ tone = "neutral", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17347
|
+
({ tone = "neutral", appearance = "default", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17217
17348
|
"span",
|
|
17218
17349
|
{
|
|
17219
17350
|
ref,
|
|
17220
|
-
className: cn(
|
|
17351
|
+
className: cn(
|
|
17352
|
+
"status-pill",
|
|
17353
|
+
`status-pill--${tone}`,
|
|
17354
|
+
appearance === "chip" && "status-pill--chip",
|
|
17355
|
+
className
|
|
17356
|
+
),
|
|
17221
17357
|
...props,
|
|
17222
17358
|
children
|
|
17223
17359
|
}
|
|
@@ -17363,16 +17499,28 @@ const ModalContainer = React.forwardRef(
|
|
|
17363
17499
|
);
|
|
17364
17500
|
ModalContainer.displayName = "ModalContainer";
|
|
17365
17501
|
const ModalCloseRow = React.forwardRef(
|
|
17366
|
-
({ onClose, label = "Close", icon, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17367
|
-
"
|
|
17502
|
+
({ onClose, label = "Close", icon, inset = "default", className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17503
|
+
"div",
|
|
17368
17504
|
{
|
|
17369
|
-
|
|
17370
|
-
className:
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17505
|
+
ref,
|
|
17506
|
+
className: cn(
|
|
17507
|
+
"modal-close-row",
|
|
17508
|
+
inset === "roomy" && "modal-close-row--roomy",
|
|
17509
|
+
className
|
|
17510
|
+
),
|
|
17511
|
+
...props,
|
|
17512
|
+
children: /* @__PURE__ */ jsx(
|
|
17513
|
+
"button",
|
|
17514
|
+
{
|
|
17515
|
+
type: "button",
|
|
17516
|
+
className: "modal-close",
|
|
17517
|
+
onClick: onClose,
|
|
17518
|
+
"aria-label": label,
|
|
17519
|
+
children: icon
|
|
17520
|
+
}
|
|
17521
|
+
)
|
|
17374
17522
|
}
|
|
17375
|
-
)
|
|
17523
|
+
)
|
|
17376
17524
|
);
|
|
17377
17525
|
ModalCloseRow.displayName = "ModalCloseRow";
|
|
17378
17526
|
const ModalPanel = React.forwardRef(
|
|
@@ -17382,6 +17530,9 @@ const ModalPanel = React.forwardRef(
|
|
|
17382
17530
|
align = "start",
|
|
17383
17531
|
angle = 114.72731273771963,
|
|
17384
17532
|
height,
|
|
17533
|
+
gap,
|
|
17534
|
+
paddingTop,
|
|
17535
|
+
paddingBottom,
|
|
17385
17536
|
className,
|
|
17386
17537
|
style,
|
|
17387
17538
|
...props
|
|
@@ -17398,6 +17549,9 @@ const ModalPanel = React.forwardRef(
|
|
|
17398
17549
|
style: {
|
|
17399
17550
|
...tone === "accent" ? { ["--panel-gradient-angle"]: `${angle}deg` } : null,
|
|
17400
17551
|
...height !== void 0 ? { height } : null,
|
|
17552
|
+
...gap ? { ["--modal-panel-gap"]: `var(--space-${gap})` } : null,
|
|
17553
|
+
...paddingTop ? { ["--modal-panel-padding-top"]: `var(--space-${paddingTop})` } : null,
|
|
17554
|
+
...paddingBottom ? { ["--modal-panel-padding-bottom"]: `var(--space-${paddingBottom})` } : null,
|
|
17401
17555
|
...style
|
|
17402
17556
|
},
|
|
17403
17557
|
...props
|
|
@@ -17406,7 +17560,13 @@ const ModalPanel = React.forwardRef(
|
|
|
17406
17560
|
);
|
|
17407
17561
|
ModalPanel.displayName = "ModalPanel";
|
|
17408
17562
|
const ModalTitle = React.forwardRef(
|
|
17409
|
-
({ as: Component = "h2", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17563
|
+
({ as: Component = "h2", size = "default", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17564
|
+
"div",
|
|
17565
|
+
{
|
|
17566
|
+
className: cn("modal-title", size === "large" && "modal-title--large", className),
|
|
17567
|
+
children: /* @__PURE__ */ jsx(Component, { ref, className: "modal-title__text heading-xxsmall", ...props, children })
|
|
17568
|
+
}
|
|
17569
|
+
)
|
|
17410
17570
|
);
|
|
17411
17571
|
ModalTitle.displayName = "ModalTitle";
|
|
17412
17572
|
const ModalPromptRow = React.forwardRef(
|
|
@@ -17730,12 +17890,17 @@ const FileUploadTrigger = React.forwardRef(
|
|
|
17730
17890
|
FileUploadTrigger.displayName = "FileUploadTrigger";
|
|
17731
17891
|
function ResourceThumbnail({
|
|
17732
17892
|
src,
|
|
17733
|
-
alt = ""
|
|
17893
|
+
alt = "",
|
|
17894
|
+
size = "default"
|
|
17734
17895
|
}) {
|
|
17735
17896
|
return /* @__PURE__ */ jsx(
|
|
17736
17897
|
"img",
|
|
17737
17898
|
{
|
|
17738
|
-
className:
|
|
17899
|
+
className: cn(
|
|
17900
|
+
"resource-thumbnail",
|
|
17901
|
+
size === "preview" && "resource-thumbnail--preview",
|
|
17902
|
+
size === "thumb" && "resource-thumbnail--thumb"
|
|
17903
|
+
),
|
|
17739
17904
|
src,
|
|
17740
17905
|
alt,
|
|
17741
17906
|
loading: "lazy"
|
|
@@ -17795,6 +17960,182 @@ const PriceTag = React.forwardRef(
|
|
|
17795
17960
|
)
|
|
17796
17961
|
);
|
|
17797
17962
|
PriceTag.displayName = "PriceTag";
|
|
17963
|
+
const SideNavContext = React.createContext({
|
|
17964
|
+
collapsed: false
|
|
17965
|
+
});
|
|
17966
|
+
const SideNav = React.forwardRef(
|
|
17967
|
+
({ className, collapsed = false, children, ...props }, ref) => /* @__PURE__ */ jsx(SideNavContext.Provider, { value: { collapsed }, children: /* @__PURE__ */ jsx(
|
|
17968
|
+
"nav",
|
|
17969
|
+
{
|
|
17970
|
+
ref,
|
|
17971
|
+
"data-collapsed": collapsed || void 0,
|
|
17972
|
+
className: cn("side-nav", collapsed && "side-nav--collapsed", className),
|
|
17973
|
+
...props,
|
|
17974
|
+
children
|
|
17975
|
+
}
|
|
17976
|
+
) })
|
|
17977
|
+
);
|
|
17978
|
+
SideNav.displayName = "SideNav";
|
|
17979
|
+
const SideNavGroup = React.forwardRef(
|
|
17980
|
+
({ className, label, children, ...props }, ref) => {
|
|
17981
|
+
const headingId = React.useId();
|
|
17982
|
+
return /* @__PURE__ */ jsxs(
|
|
17983
|
+
"div",
|
|
17984
|
+
{
|
|
17985
|
+
ref,
|
|
17986
|
+
role: "group",
|
|
17987
|
+
"aria-labelledby": label ? headingId : void 0,
|
|
17988
|
+
className: cn("side-nav__group", className),
|
|
17989
|
+
...props,
|
|
17990
|
+
children: [
|
|
17991
|
+
label ? /* @__PURE__ */ jsx("span", { id: headingId, className: "side-nav__heading", children: label }) : null,
|
|
17992
|
+
children
|
|
17993
|
+
]
|
|
17994
|
+
}
|
|
17995
|
+
);
|
|
17996
|
+
}
|
|
17997
|
+
);
|
|
17998
|
+
SideNavGroup.displayName = "SideNavGroup";
|
|
17999
|
+
const SideNavItem = React.forwardRef(
|
|
18000
|
+
({ className, icon, active = false, asChild = false, children, ...props }, ref) => {
|
|
18001
|
+
const { collapsed } = React.useContext(SideNavContext);
|
|
18002
|
+
const Comp = asChild ? Slot : "button";
|
|
18003
|
+
const label = typeof children === "string" ? children : void 0;
|
|
18004
|
+
return /* @__PURE__ */ jsxs(
|
|
18005
|
+
Comp,
|
|
18006
|
+
{
|
|
18007
|
+
ref,
|
|
18008
|
+
...asChild ? {} : { type: "button" },
|
|
18009
|
+
"aria-current": active ? "page" : void 0,
|
|
18010
|
+
"aria-label": collapsed ? label : void 0,
|
|
18011
|
+
title: collapsed ? label : void 0,
|
|
18012
|
+
className: cn(
|
|
18013
|
+
"side-nav__item",
|
|
18014
|
+
active && "side-nav__item--active",
|
|
18015
|
+
className
|
|
18016
|
+
),
|
|
18017
|
+
...props,
|
|
18018
|
+
children: [
|
|
18019
|
+
icon ? /* @__PURE__ */ jsx("span", { className: "side-nav__icon", "aria-hidden": "true", children: icon }) : null,
|
|
18020
|
+
asChild ? /* @__PURE__ */ jsx(Slottable, { children }) : /* @__PURE__ */ jsx("span", { className: "side-nav__label", children })
|
|
18021
|
+
]
|
|
18022
|
+
}
|
|
18023
|
+
);
|
|
18024
|
+
}
|
|
18025
|
+
);
|
|
18026
|
+
SideNavItem.displayName = "SideNavItem";
|
|
18027
|
+
const RadioCardGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
18028
|
+
RadioGroupPrimitive.Root,
|
|
18029
|
+
{
|
|
18030
|
+
ref,
|
|
18031
|
+
className: cn("radio-card-group", className),
|
|
18032
|
+
...props
|
|
18033
|
+
}
|
|
18034
|
+
));
|
|
18035
|
+
RadioCardGroup.displayName = "RadioCardGroup";
|
|
18036
|
+
const RadioCardItem = React.forwardRef(({ className, title, description, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18037
|
+
RadioGroupPrimitive.Item,
|
|
18038
|
+
{
|
|
18039
|
+
ref,
|
|
18040
|
+
className: cn("radio-card", className),
|
|
18041
|
+
...props,
|
|
18042
|
+
children: [
|
|
18043
|
+
/* @__PURE__ */ jsx("span", { className: "radio-card__title", children: title }),
|
|
18044
|
+
description ? /* @__PURE__ */ jsx("span", { className: "radio-card__description", children: description }) : null
|
|
18045
|
+
]
|
|
18046
|
+
}
|
|
18047
|
+
));
|
|
18048
|
+
RadioCardItem.displayName = "RadioCardItem";
|
|
18049
|
+
const outlineNodeVariants = cva("tree-node", {
|
|
18050
|
+
variants: {
|
|
18051
|
+
level: {
|
|
18052
|
+
section: "tree-node--section",
|
|
18053
|
+
branch: "tree-node--branch",
|
|
18054
|
+
leaf: "tree-node--leaf"
|
|
18055
|
+
}
|
|
18056
|
+
},
|
|
18057
|
+
defaultVariants: { level: "section" }
|
|
18058
|
+
});
|
|
18059
|
+
const OutlineNode = React.forwardRef(
|
|
18060
|
+
({ className, level, inactive = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
18061
|
+
"div",
|
|
18062
|
+
{
|
|
18063
|
+
ref,
|
|
18064
|
+
"data-inactive": inactive || void 0,
|
|
18065
|
+
className: cn(outlineNodeVariants({ level }), className),
|
|
18066
|
+
...props
|
|
18067
|
+
}
|
|
18068
|
+
)
|
|
18069
|
+
);
|
|
18070
|
+
OutlineNode.displayName = "OutlineNode";
|
|
18071
|
+
const OutlineNodeHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("tree-node__head", className), ...props }));
|
|
18072
|
+
OutlineNodeHead.displayName = "OutlineNodeHead";
|
|
18073
|
+
const OutlineNodeTitle = React.forwardRef(
|
|
18074
|
+
({ className, code, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("tree-node__title", className), ...props, children: [
|
|
18075
|
+
code != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18076
|
+
/* @__PURE__ */ jsx("strong", { className: "tree-node__code", children: code }),
|
|
18077
|
+
"· "
|
|
18078
|
+
] }) : null,
|
|
18079
|
+
children
|
|
18080
|
+
] })
|
|
18081
|
+
);
|
|
18082
|
+
OutlineNodeTitle.displayName = "OutlineNodeTitle";
|
|
18083
|
+
const OutlineNodeMeta = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("span", { ref, className: cn("tree-node__meta", className), ...props }));
|
|
18084
|
+
OutlineNodeMeta.displayName = "OutlineNodeMeta";
|
|
18085
|
+
const OutlineNodeControls = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
18086
|
+
"div",
|
|
18087
|
+
{
|
|
18088
|
+
ref,
|
|
18089
|
+
className: cn("tree-node__controls", className),
|
|
18090
|
+
...props
|
|
18091
|
+
}
|
|
18092
|
+
));
|
|
18093
|
+
OutlineNodeControls.displayName = "OutlineNodeControls";
|
|
18094
|
+
const BackLink = React.forwardRef(
|
|
18095
|
+
({ className, asChild = false, children, ...props }, ref) => {
|
|
18096
|
+
const Comp = asChild ? Slot : "button";
|
|
18097
|
+
return /* @__PURE__ */ jsxs(
|
|
18098
|
+
Comp,
|
|
18099
|
+
{
|
|
18100
|
+
ref,
|
|
18101
|
+
...asChild ? {} : { type: "button" },
|
|
18102
|
+
className: cn("back-link", className),
|
|
18103
|
+
...props,
|
|
18104
|
+
children: [
|
|
18105
|
+
/* @__PURE__ */ jsx(ArrowLeft, { className: "back-link__icon", "aria-hidden": "true" }),
|
|
18106
|
+
asChild ? /* @__PURE__ */ jsx(Slottable, { children }) : /* @__PURE__ */ jsx("span", { children })
|
|
18107
|
+
]
|
|
18108
|
+
}
|
|
18109
|
+
);
|
|
18110
|
+
}
|
|
18111
|
+
);
|
|
18112
|
+
BackLink.displayName = "BackLink";
|
|
18113
|
+
const CenteredPage = React.forwardRef(
|
|
18114
|
+
({ as: Component = "main", className, children, ...props }, ref) => /* @__PURE__ */ jsx(Component, { ref, className: cn("centered-page", className), ...props, children: /* @__PURE__ */ jsx("div", { className: "centered-page__body", children }) })
|
|
18115
|
+
);
|
|
18116
|
+
CenteredPage.displayName = "CenteredPage";
|
|
18117
|
+
const iconButtonVariants = cva("icon-button", {
|
|
18118
|
+
variants: {
|
|
18119
|
+
size: {
|
|
18120
|
+
sm: "icon-button--sm",
|
|
18121
|
+
md: "icon-button--md",
|
|
18122
|
+
bare: "icon-button--bare"
|
|
18123
|
+
}
|
|
18124
|
+
},
|
|
18125
|
+
defaultVariants: { size: "md" }
|
|
18126
|
+
});
|
|
18127
|
+
const IconButton = React.forwardRef(
|
|
18128
|
+
({ className, size, type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
18129
|
+
"button",
|
|
18130
|
+
{
|
|
18131
|
+
ref,
|
|
18132
|
+
type,
|
|
18133
|
+
className: cn(iconButtonVariants({ size }), className),
|
|
18134
|
+
...props
|
|
18135
|
+
}
|
|
18136
|
+
)
|
|
18137
|
+
);
|
|
18138
|
+
IconButton.displayName = "IconButton";
|
|
17798
18139
|
export {
|
|
17799
18140
|
Accordion,
|
|
17800
18141
|
AccordionContainer,
|
|
@@ -17837,6 +18178,7 @@ export {
|
|
|
17837
18178
|
AvatarFallback,
|
|
17838
18179
|
AvatarIdentity,
|
|
17839
18180
|
AvatarImage,
|
|
18181
|
+
BackLink,
|
|
17840
18182
|
BadgeCertificationBronze,
|
|
17841
18183
|
BadgeCertificationGold,
|
|
17842
18184
|
BadgeCertificationPlatinum,
|
|
@@ -17901,12 +18243,14 @@ export {
|
|
|
17901
18243
|
CarouselNext,
|
|
17902
18244
|
CarouselPrevious,
|
|
17903
18245
|
Center,
|
|
18246
|
+
CenteredPage,
|
|
17904
18247
|
ChartContainer,
|
|
17905
18248
|
ChartLegend,
|
|
17906
18249
|
ChartStyle,
|
|
17907
18250
|
ChartTooltip,
|
|
17908
18251
|
ChartTooltipContent,
|
|
17909
18252
|
Checkbox,
|
|
18253
|
+
CheckboxField,
|
|
17910
18254
|
CodeBadge,
|
|
17911
18255
|
Collapsible,
|
|
17912
18256
|
CollapsibleContent,
|
|
@@ -18010,6 +18354,7 @@ export {
|
|
|
18010
18354
|
HoverCardContent,
|
|
18011
18355
|
HoverCardTrigger,
|
|
18012
18356
|
IWBILogo,
|
|
18357
|
+
IconButton,
|
|
18013
18358
|
IconConceptAir,
|
|
18014
18359
|
IconConceptCommunity,
|
|
18015
18360
|
IconConceptInnovation,
|
|
@@ -18081,6 +18426,11 @@ export {
|
|
|
18081
18426
|
NavigationMenuList,
|
|
18082
18427
|
NavigationMenuTrigger,
|
|
18083
18428
|
NavigationTray,
|
|
18429
|
+
OutlineNode,
|
|
18430
|
+
OutlineNodeControls,
|
|
18431
|
+
OutlineNodeHead,
|
|
18432
|
+
OutlineNodeMeta,
|
|
18433
|
+
OutlineNodeTitle,
|
|
18084
18434
|
PageHeader,
|
|
18085
18435
|
PageHeaderBadge,
|
|
18086
18436
|
PageHeaderDescription,
|
|
@@ -18109,6 +18459,8 @@ export {
|
|
|
18109
18459
|
ProfileAvatar,
|
|
18110
18460
|
ProfileRow,
|
|
18111
18461
|
Progress,
|
|
18462
|
+
RadioCardGroup,
|
|
18463
|
+
RadioCardItem,
|
|
18112
18464
|
RadioGroup,
|
|
18113
18465
|
RadioGroupItem,
|
|
18114
18466
|
ResizableHandle,
|
|
@@ -18170,6 +18522,9 @@ export {
|
|
|
18170
18522
|
SheetTitle,
|
|
18171
18523
|
SheetTrigger,
|
|
18172
18524
|
Show,
|
|
18525
|
+
SideNav,
|
|
18526
|
+
SideNavGroup,
|
|
18527
|
+
SideNavItem,
|
|
18173
18528
|
Sidebar,
|
|
18174
18529
|
SidebarContent,
|
|
18175
18530
|
SidebarFooter,
|
|
@@ -18278,6 +18633,7 @@ export {
|
|
|
18278
18633
|
alertDialogPanelVariants,
|
|
18279
18634
|
alertV02Variants,
|
|
18280
18635
|
avatarIdentityVariants,
|
|
18636
|
+
avatarVariants,
|
|
18281
18637
|
bannerVariants,
|
|
18282
18638
|
buttonV01Variants,
|
|
18283
18639
|
buttonVariants,
|
|
@@ -18285,7 +18641,9 @@ export {
|
|
|
18285
18641
|
cn,
|
|
18286
18642
|
conceptColors,
|
|
18287
18643
|
conceptOrder,
|
|
18644
|
+
iconButtonVariants,
|
|
18288
18645
|
navigationMenuTriggerStyle,
|
|
18646
|
+
outlineNodeVariants,
|
|
18289
18647
|
switchV01Variants,
|
|
18290
18648
|
tagStatusV02Variants,
|
|
18291
18649
|
tagV02Variants,
|