@designa8/vibedesign-flowtide-ds-v1-176b 0.2.2 → 0.2.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/README.md +1 -1
- package/dist/index.cjs +182 -137
- package/dist/index.js +182 -137
- package/package.json +1 -1
- package/src/atoms/Button/Button.tsx +17 -1
- package/src/atoms/Checkbox/Checkbox.tsx +20 -1
- package/src/atoms/IconButton/IconButton.tsx +2 -0
- package/src/molecules/ButtonGroup/ButtonGroup.tsx +22 -1
- package/src/molecules/CardHeader/CardHeader.tsx +17 -5
- package/src/molecules/CardHeader/preview.tsx +33 -0
- package/src/molecules/Dropdown/Dropdown.tsx +30 -4
- package/src/molecules/Dropdown/preview.tsx +17 -3
- package/src/organisms/SidebarDesktop/SidebarDesktop.tsx +112 -75
- package/src/organisms/SidebarDesktop/preview.tsx +20 -12
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-flowtide-ds-v1-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.2.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.2.3**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -568,6 +568,13 @@ var SIZE2 = {
|
|
|
568
568
|
sm: "h-8 px-md text-label-sm",
|
|
569
569
|
/* Compact form action: 36px tall, 14px medium label, tighter inset. */
|
|
570
570
|
control: "h-9 px-base text-label-sm",
|
|
571
|
+
/*
|
|
572
|
+
* Compact field: the Input atom's "sm" field inset (px-md) at the control
|
|
573
|
+
* height (36px), so a compact select trigger and a compact text field stack
|
|
574
|
+
* on one left edge and one baseline. A "control" action keeps its roomier
|
|
575
|
+
* px-base inset; this size exists for field-shaped controls.
|
|
576
|
+
*/
|
|
577
|
+
"field-sm": "h-9 px-md text-label-sm",
|
|
571
578
|
/*
|
|
572
579
|
* Control height: matches the Input atom's "md" field (h-10) and its
|
|
573
580
|
* horizontal inset (px-md), so a select trigger and a text field line up in
|
|
@@ -581,6 +588,7 @@ var SIZE_WRAP = {
|
|
|
581
588
|
xs: "min-h-6 px-sm py-xxs text-caption",
|
|
582
589
|
sm: "min-h-8 px-md py-xxs text-label-sm",
|
|
583
590
|
control: "min-h-9 px-base py-xxs text-label-sm",
|
|
591
|
+
"field-sm": "min-h-9 px-md py-xxs text-label-sm",
|
|
584
592
|
field: "min-h-10 px-md py-xs text-body-md",
|
|
585
593
|
md: "min-h-11 px-lg py-xs text-label-lg",
|
|
586
594
|
lg: "min-h-12 px-xl py-sm text-label-xl"
|
|
@@ -589,6 +597,7 @@ var ICON_ONLY_SIZE = {
|
|
|
589
597
|
xs: "size-6 p-0",
|
|
590
598
|
sm: "size-8 p-0",
|
|
591
599
|
control: "size-9 p-0",
|
|
600
|
+
"field-sm": "size-9 p-0",
|
|
592
601
|
field: "size-10 p-0",
|
|
593
602
|
md: "size-10 p-0",
|
|
594
603
|
lg: "size-12 p-0"
|
|
@@ -868,6 +877,7 @@ var Checkbox = React6.forwardRef(
|
|
|
868
877
|
}, [indeterminate]);
|
|
869
878
|
const filled = isOn || indeterminate;
|
|
870
879
|
const showCheck = isOn && !indeterminate;
|
|
880
|
+
const hasLabel = Boolean(label);
|
|
871
881
|
const accessibleName = rest["aria-label"] || rest["aria-labelledby"] || (typeof label === "string" ? label : "Checkbox");
|
|
872
882
|
const boxClasses = [
|
|
873
883
|
"relative flex shrink-0 items-center justify-center border",
|
|
@@ -887,56 +897,66 @@ var Checkbox = React6.forwardRef(
|
|
|
887
897
|
wrapperClassName || ""
|
|
888
898
|
].filter(Boolean).join(" "),
|
|
889
899
|
children: [
|
|
890
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
"aria-invalid": error ? true : void 0,
|
|
902
|
-
"aria-label": accessibleName,
|
|
903
|
-
onChange: (event) => {
|
|
904
|
-
if (!isControlled) setUncontrolled(event.currentTarget.checked);
|
|
905
|
-
if (onChange) onChange(event);
|
|
906
|
-
},
|
|
907
|
-
className: "peer absolute inset-0 z-10 m-0 h-full w-full cursor-pointer appearance-none rounded-sm border-0 bg-transparent p-0 opacity-0 outline-none disabled:cursor-not-allowed"
|
|
908
|
-
}
|
|
909
|
-
),
|
|
910
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { "aria-hidden": "true", className: boxClasses }),
|
|
911
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
912
|
-
"span",
|
|
913
|
-
{
|
|
914
|
-
"aria-hidden": "true",
|
|
915
|
-
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
916
|
-
children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
917
|
-
Icon,
|
|
900
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
901
|
+
"span",
|
|
902
|
+
{
|
|
903
|
+
className: [
|
|
904
|
+
"relative inline-flex shrink-0 justify-center",
|
|
905
|
+
hasLabel ? "items-center text-label-lg" : ""
|
|
906
|
+
].filter(Boolean).join(" "),
|
|
907
|
+
style: hasLabel ? { height: "1lh" } : void 0,
|
|
908
|
+
children: [
|
|
909
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
910
|
+
"input",
|
|
918
911
|
{
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
912
|
+
...rest,
|
|
913
|
+
ref: setRefs,
|
|
914
|
+
id: boxId,
|
|
915
|
+
type: "checkbox",
|
|
916
|
+
disabled,
|
|
917
|
+
checked: isControlled ? isOn : void 0,
|
|
918
|
+
defaultChecked: isControlled ? void 0 : defaultChecked,
|
|
919
|
+
"aria-invalid": error ? true : void 0,
|
|
920
|
+
"aria-label": accessibleName,
|
|
921
|
+
onChange: (event) => {
|
|
922
|
+
if (!isControlled) setUncontrolled(event.currentTarget.checked);
|
|
923
|
+
if (onChange) onChange(event);
|
|
924
|
+
},
|
|
925
|
+
className: "peer absolute inset-0 z-10 m-0 h-full w-full cursor-pointer appearance-none rounded-sm border-0 bg-transparent p-0 opacity-0 outline-none disabled:cursor-not-allowed"
|
|
923
926
|
}
|
|
924
|
-
)
|
|
925
|
-
|
|
927
|
+
),
|
|
928
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { "aria-hidden": "true", className: boxClasses }),
|
|
929
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
930
|
+
"span",
|
|
926
931
|
{
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
932
|
+
"aria-hidden": "true",
|
|
933
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
934
|
+
children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
935
|
+
Icon,
|
|
936
|
+
{
|
|
937
|
+
name: "minus",
|
|
938
|
+
size: GLYPH_SIZE2[size],
|
|
939
|
+
strokeWidth: 3,
|
|
940
|
+
className: disabled ? "text-muted-soft" : "text-on-primary"
|
|
941
|
+
}
|
|
942
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
943
|
+
Icon,
|
|
944
|
+
{
|
|
945
|
+
name: "check",
|
|
946
|
+
size: GLYPH_SIZE2[size],
|
|
947
|
+
strokeWidth: 3,
|
|
948
|
+
className: [
|
|
949
|
+
"transition duration-150 ease-out",
|
|
950
|
+
showCheck ? "scale-100 opacity-100" : "scale-75 opacity-0",
|
|
951
|
+
disabled ? "text-muted" : "text-on-primary"
|
|
952
|
+
].join(" ")
|
|
953
|
+
}
|
|
954
|
+
)
|
|
935
955
|
}
|
|
936
956
|
)
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
957
|
+
]
|
|
958
|
+
}
|
|
959
|
+
),
|
|
940
960
|
label || description || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex min-w-0 flex-col gap-xxs", children: [
|
|
941
961
|
label ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
942
962
|
Label,
|
|
@@ -1167,6 +1187,7 @@ var RADIUS3 = {
|
|
|
1167
1187
|
xs: "rounded-sm",
|
|
1168
1188
|
sm: "rounded-md",
|
|
1169
1189
|
control: "rounded-md",
|
|
1190
|
+
"field-sm": "rounded-md",
|
|
1170
1191
|
field: "rounded-md",
|
|
1171
1192
|
md: "rounded-lg",
|
|
1172
1193
|
lg: "rounded-lg"
|
|
@@ -1175,6 +1196,7 @@ var ICON_SIZE2 = {
|
|
|
1175
1196
|
xs: 14,
|
|
1176
1197
|
sm: 16,
|
|
1177
1198
|
control: 16,
|
|
1199
|
+
"field-sm": 16,
|
|
1178
1200
|
field: 18,
|
|
1179
1201
|
md: 18,
|
|
1180
1202
|
lg: 20
|
|
@@ -3774,6 +3796,7 @@ var ButtonGroup = React30.forwardRef(
|
|
|
3774
3796
|
const [hovered, setHovered] = React30.useState(null);
|
|
3775
3797
|
const selectedIndex = options.findIndex((option) => option.value === selected);
|
|
3776
3798
|
const hasSelection = selectedIndex >= 0;
|
|
3799
|
+
const compact = size === "sm";
|
|
3777
3800
|
const trackRef = React30.useRef(null);
|
|
3778
3801
|
const segmentRefs = React30.useRef([]);
|
|
3779
3802
|
const [boxes, setBoxes] = React30.useState([]);
|
|
@@ -3855,6 +3878,7 @@ var ButtonGroup = React30.forwardRef(
|
|
|
3855
3878
|
"relative rounded-md border border-hairline bg-surface",
|
|
3856
3879
|
"transition-colors duration-150 ease-out",
|
|
3857
3880
|
"has-[button:focus-visible]:border-primary",
|
|
3881
|
+
compact && "h-9",
|
|
3858
3882
|
stretch ? "flex w-full" : "inline-flex max-w-full"
|
|
3859
3883
|
),
|
|
3860
3884
|
style: { overflow: "hidden" },
|
|
@@ -3862,7 +3886,12 @@ var ButtonGroup = React30.forwardRef(
|
|
|
3862
3886
|
"div",
|
|
3863
3887
|
{
|
|
3864
3888
|
ref: trackRef,
|
|
3865
|
-
className: cn4(
|
|
3889
|
+
className: cn4(
|
|
3890
|
+
"relative",
|
|
3891
|
+
stretch ? "flex w-full" : "inline-flex",
|
|
3892
|
+
/* Fill the bordered track so the segments run edge to edge. */
|
|
3893
|
+
compact && "h-full"
|
|
3894
|
+
),
|
|
3866
3895
|
children: [
|
|
3867
3896
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3868
3897
|
"span",
|
|
@@ -3911,6 +3940,10 @@ var ButtonGroup = React30.forwardRef(
|
|
|
3911
3940
|
onMouseEnter: () => setHovered(index),
|
|
3912
3941
|
onMouseLeave: () => setHovered((current) => current === index ? null : current),
|
|
3913
3942
|
style: {
|
|
3943
|
+
/* Stretch to the group's content box (Button's own size
|
|
3944
|
+
sets a fixed height, so the inline height is what lets
|
|
3945
|
+
the segment fill the 36px track). */
|
|
3946
|
+
...compact ? { height: "100%" } : null,
|
|
3914
3947
|
backgroundColor: option.disabled || isHovered ? "var(--color-surface-soft)" : void 0,
|
|
3915
3948
|
color: option.disabled ? "var(--color-muted-soft)" : isSelected ? selectedColor : "var(--color-ink)"
|
|
3916
3949
|
},
|
|
@@ -4033,6 +4066,7 @@ var CardHeader = React32.forwardRef(
|
|
|
4033
4066
|
className,
|
|
4034
4067
|
...rest
|
|
4035
4068
|
} = props;
|
|
4069
|
+
const hasContent = React32.Children.toArray(children).length > 0;
|
|
4036
4070
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
4037
4071
|
"div",
|
|
4038
4072
|
{
|
|
@@ -4049,7 +4083,7 @@ var CardHeader = React32.forwardRef(
|
|
|
4049
4083
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: cx5(TITLE2[size], "min-w-0 break-words"), children: title }),
|
|
4050
4084
|
description ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-caption text-muted min-w-0 break-words", children: description }) : null
|
|
4051
4085
|
] }),
|
|
4052
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex min-w-0 shrink-0 basis-full items-center gap-md sm:shrink sm:basis-0 sm:grow", children }),
|
|
4086
|
+
hasContent ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex min-w-0 shrink-0 basis-full items-center gap-md sm:shrink sm:basis-0 sm:grow", children }) : null,
|
|
4053
4087
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "ml-auto flex shrink-0 items-start gap-md self-start", children: actions ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
4054
4088
|
showDivider ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Divider, { orientation: "vertical", className: "self-stretch" }) : null,
|
|
4055
4089
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
@@ -4992,7 +5026,7 @@ var Dropdown = React35.forwardRef(
|
|
|
4992
5026
|
};
|
|
4993
5027
|
const fieldAppearance = appearance === "field";
|
|
4994
5028
|
const compact = size === "sm";
|
|
4995
|
-
const triggerSize = compact ? "sm" : fieldAppearance ? "field" : "md";
|
|
5029
|
+
const triggerSize = compact ? "field-sm" : fieldAppearance ? "field" : "md";
|
|
4996
5030
|
const panel = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4997
5031
|
"div",
|
|
4998
5032
|
{
|
|
@@ -5034,6 +5068,7 @@ var Dropdown = React35.forwardRef(
|
|
|
5034
5068
|
fullWidth: true,
|
|
5035
5069
|
disabled: option.disabled,
|
|
5036
5070
|
tabIndex: open ? 0 : -1,
|
|
5071
|
+
title: typeof option.label === "string" ? option.label : void 0,
|
|
5037
5072
|
onClick: () => selectOption(option),
|
|
5038
5073
|
onKeyDown: (event) => handleOptionKeyDown(index, event),
|
|
5039
5074
|
style: {
|
|
@@ -5045,6 +5080,7 @@ var Dropdown = React35.forwardRef(
|
|
|
5045
5080
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue focus-visible:ring-inset",
|
|
5046
5081
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
5047
5082
|
),
|
|
5083
|
+
labelClassName: "min-w-0 flex-1",
|
|
5048
5084
|
children: [
|
|
5049
5085
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5050
5086
|
"span",
|
|
@@ -5057,9 +5093,9 @@ var Dropdown = React35.forwardRef(
|
|
|
5057
5093
|
)
|
|
5058
5094
|
}
|
|
5059
5095
|
),
|
|
5060
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "relative flex w-full items-center gap-sm", children: [
|
|
5096
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "relative flex w-full min-w-0 items-center gap-sm", children: [
|
|
5061
5097
|
showLeadingBox ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "flex size-4 shrink-0 items-center justify-center", children: option.leadingSlot ?? null }) : null,
|
|
5062
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "truncate", children: option.label }),
|
|
5098
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "min-w-0 truncate", children: option.label }),
|
|
5063
5099
|
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5064
5100
|
Icon,
|
|
5065
5101
|
{
|
|
@@ -14155,6 +14191,7 @@ var ROW_ACTIVE2 = "bg-primary-soft text-ink hover:bg-primary-soft active:bg-prim
|
|
|
14155
14191
|
var NESTED_INSET = "pl-10";
|
|
14156
14192
|
var LABEL2 = "truncate text-left text-body-md transition-opacity duration-150 ease-out";
|
|
14157
14193
|
var LABEL_HIDDEN = "w-0 overflow-hidden opacity-0 pointer-events-none";
|
|
14194
|
+
var LABEL_OFF_FLOW = "sr-only";
|
|
14158
14195
|
var SURFACE_CARD = "rounded-xl border border-solid border-hairline bg-surface shadow-sm";
|
|
14159
14196
|
var SURFACE_FLAT = "rounded-none border-x-0 border-t-0 border-r border-solid border-hairline bg-surface shadow-none";
|
|
14160
14197
|
function cx29(...parts) {
|
|
@@ -14222,7 +14259,9 @@ var SidebarDesktop = React79.forwardRef(function SidebarDesktop2({
|
|
|
14222
14259
|
isActive ? "text-ink" : "text-muted group-hover:text-ink"
|
|
14223
14260
|
);
|
|
14224
14261
|
const rowBox = (nested) => folded ? "mx-auto h-10 w-10 justify-center" : cx29("w-full h-10 gap-md px-sm", nested && NESTED_INSET);
|
|
14262
|
+
const rowSlot = (content) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: folded ? "flex justify-center" : "flex w-full", children: content });
|
|
14225
14263
|
const labelClass = (extra) => cx29(LABEL2, extra, folded ? LABEL_HIDDEN : "opacity-100");
|
|
14264
|
+
const buttonLabelClass = (extra) => cx29(LABEL2, extra, folded ? LABEL_OFF_FLOW : "opacity-100");
|
|
14226
14265
|
const renderRowTrailing = (node) => {
|
|
14227
14266
|
if (folded) return null;
|
|
14228
14267
|
if (node.count === void 0 && node.trailing === void 0) return null;
|
|
@@ -14268,42 +14307,44 @@ var SidebarDesktop = React79.forwardRef(function SidebarDesktop2({
|
|
|
14268
14307
|
const panelId = groupPanelId(section.id);
|
|
14269
14308
|
const open = collapsedGroups[section.id] !== true;
|
|
14270
14309
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("li", { children: [
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
|
|
14296
|
-
|
|
14297
|
-
|
|
14298
|
-
|
|
14299
|
-
|
|
14300
|
-
|
|
14301
|
-
|
|
14302
|
-
|
|
14303
|
-
|
|
14304
|
-
|
|
14305
|
-
|
|
14306
|
-
|
|
14310
|
+
rowSlot(
|
|
14311
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
14312
|
+
Button,
|
|
14313
|
+
{
|
|
14314
|
+
type: "button",
|
|
14315
|
+
chrome: "none",
|
|
14316
|
+
"aria-expanded": open,
|
|
14317
|
+
"aria-controls": panelId,
|
|
14318
|
+
title: folded ? section.label : void 0,
|
|
14319
|
+
onClick: () => toggleGroup(section.id),
|
|
14320
|
+
className: cx29(ROW6, rowBox(), ROW_IDLE2),
|
|
14321
|
+
children: [
|
|
14322
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14323
|
+
Icon,
|
|
14324
|
+
{
|
|
14325
|
+
name: section.icon,
|
|
14326
|
+
size: 20,
|
|
14327
|
+
strokeWidth: 1.8,
|
|
14328
|
+
className: iconTone2(false)
|
|
14329
|
+
}
|
|
14330
|
+
),
|
|
14331
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: labelClass(), children: section.label }),
|
|
14332
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14333
|
+
Icon,
|
|
14334
|
+
{
|
|
14335
|
+
name: "chevron-down",
|
|
14336
|
+
size: 18,
|
|
14337
|
+
strokeWidth: 2,
|
|
14338
|
+
className: cx29(
|
|
14339
|
+
"ml-auto shrink-0 text-muted transition duration-200 ease-out",
|
|
14340
|
+
open && "rotate-180",
|
|
14341
|
+
folded && "hidden"
|
|
14342
|
+
)
|
|
14343
|
+
}
|
|
14344
|
+
)
|
|
14345
|
+
]
|
|
14346
|
+
}
|
|
14347
|
+
)
|
|
14307
14348
|
),
|
|
14308
14349
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14309
14350
|
"div",
|
|
@@ -14409,69 +14450,73 @@ var SidebarDesktop = React79.forwardRef(function SidebarDesktop2({
|
|
|
14409
14450
|
(section) => section.children?.length ? renderGroup(section) : renderRow(section)
|
|
14410
14451
|
) }) }),
|
|
14411
14452
|
(hasCreate || hasStarred) && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Divider, { className: "my-md" }),
|
|
14412
|
-
hasCreate ?
|
|
14413
|
-
Button,
|
|
14414
|
-
{
|
|
14415
|
-
type: "button",
|
|
14416
|
-
chrome: "none",
|
|
14417
|
-
onClick: onCreateClick,
|
|
14418
|
-
title: folded ? createLabel : void 0,
|
|
14419
|
-
className: cx29(
|
|
14420
|
-
ROW6,
|
|
14421
|
-
rowBox(),
|
|
14422
|
-
"bg-accent-violet-soft text-accent-violet",
|
|
14423
|
-
"hover:brightness-[0.98] active:brightness-[0.96]"
|
|
14424
|
-
),
|
|
14425
|
-
children: [
|
|
14426
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14427
|
-
"span",
|
|
14428
|
-
{
|
|
14429
|
-
"aria-hidden": "true",
|
|
14430
|
-
className: "flex size-5 shrink-0 items-center justify-center rounded-full border border-current",
|
|
14431
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { name: "plus", size: 12, strokeWidth: 2.2 })
|
|
14432
|
-
}
|
|
14433
|
-
),
|
|
14434
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: labelClass(), children: createLabel })
|
|
14435
|
-
]
|
|
14436
|
-
}
|
|
14437
|
-
) : null,
|
|
14438
|
-
hasStarred ? /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: hasCreate ? "pt-md" : void 0, children: [
|
|
14453
|
+
hasCreate ? rowSlot(
|
|
14439
14454
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
14440
14455
|
Button,
|
|
14441
14456
|
{
|
|
14442
14457
|
type: "button",
|
|
14443
14458
|
chrome: "none",
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
14447
|
-
|
|
14448
|
-
|
|
14459
|
+
onClick: onCreateClick,
|
|
14460
|
+
title: folded ? createLabel : void 0,
|
|
14461
|
+
className: cx29(
|
|
14462
|
+
ROW6,
|
|
14463
|
+
rowBox(),
|
|
14464
|
+
"bg-accent-violet-soft text-accent-violet",
|
|
14465
|
+
"hover:brightness-[0.98] active:brightness-[0.96]"
|
|
14466
|
+
),
|
|
14449
14467
|
children: [
|
|
14450
14468
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14451
|
-
|
|
14469
|
+
"span",
|
|
14452
14470
|
{
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
strokeWidth:
|
|
14456
|
-
className: iconTone2(false)
|
|
14471
|
+
"aria-hidden": "true",
|
|
14472
|
+
className: "flex size-5 shrink-0 items-center justify-center rounded-full border border-current",
|
|
14473
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { name: "plus", size: 12, strokeWidth: 2.2 })
|
|
14457
14474
|
}
|
|
14458
14475
|
),
|
|
14459
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className:
|
|
14460
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14461
|
-
Icon,
|
|
14462
|
-
{
|
|
14463
|
-
name: "chevron-down",
|
|
14464
|
-
size: 18,
|
|
14465
|
-
strokeWidth: 2,
|
|
14466
|
-
className: cx29(
|
|
14467
|
-
"ml-auto shrink-0 text-muted transition duration-200 ease-out",
|
|
14468
|
-
starredOpen && "rotate-180",
|
|
14469
|
-
folded && "hidden"
|
|
14470
|
-
)
|
|
14471
|
-
}
|
|
14472
|
-
)
|
|
14476
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: buttonLabelClass(), children: createLabel })
|
|
14473
14477
|
]
|
|
14474
14478
|
}
|
|
14479
|
+
)
|
|
14480
|
+
) : null,
|
|
14481
|
+
hasStarred ? /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: hasCreate ? "pt-md" : void 0, children: [
|
|
14482
|
+
rowSlot(
|
|
14483
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
14484
|
+
Button,
|
|
14485
|
+
{
|
|
14486
|
+
type: "button",
|
|
14487
|
+
chrome: "none",
|
|
14488
|
+
"aria-expanded": starredOpen,
|
|
14489
|
+
"aria-controls": groupPanelId("starred"),
|
|
14490
|
+
title: folded ? starredLabel : void 0,
|
|
14491
|
+
onClick: () => toggleGroup("starred"),
|
|
14492
|
+
className: cx29(ROW6, rowBox(), ROW_IDLE2),
|
|
14493
|
+
children: [
|
|
14494
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14495
|
+
Icon,
|
|
14496
|
+
{
|
|
14497
|
+
name: "star",
|
|
14498
|
+
size: 20,
|
|
14499
|
+
strokeWidth: 1.8,
|
|
14500
|
+
className: iconTone2(false)
|
|
14501
|
+
}
|
|
14502
|
+
),
|
|
14503
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: buttonLabelClass("text-label-sm"), children: starredLabel }),
|
|
14504
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14505
|
+
Icon,
|
|
14506
|
+
{
|
|
14507
|
+
name: "chevron-down",
|
|
14508
|
+
size: 18,
|
|
14509
|
+
strokeWidth: 2,
|
|
14510
|
+
className: cx29(
|
|
14511
|
+
"ml-auto shrink-0 text-muted transition duration-200 ease-out",
|
|
14512
|
+
starredOpen && "rotate-180",
|
|
14513
|
+
folded && "hidden"
|
|
14514
|
+
)
|
|
14515
|
+
}
|
|
14516
|
+
)
|
|
14517
|
+
]
|
|
14518
|
+
}
|
|
14519
|
+
)
|
|
14475
14520
|
),
|
|
14476
14521
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14477
14522
|
"div",
|