@designa8/vibedesign-joyvent-ds-v1-2-176b 0.3.22 → 0.3.24
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 +109 -189
- package/dist/index.js +109 -189
- package/dist/styles.css +0 -63
- package/package.json +1 -1
- package/src/atoms/Logo/Logo.tsx +55 -26
- package/src/atoms/Logo/preview.tsx +24 -1
- package/src/organisms/NavbarDesktop/NavbarDesktop.tsx +114 -166
- package/src/organisms/NavbarDesktop/index.ts +1 -0
- package/src/organisms/NavbarDesktop/preview.tsx +102 -17
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-joyvent-ds-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.3.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.3.24**.
|
|
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
|
@@ -1962,10 +1962,10 @@ var TILE_GLYPH_BOX_CLASS = {
|
|
|
1962
1962
|
md: "h-lg w-lg",
|
|
1963
1963
|
lg: "h-xl w-xl"
|
|
1964
1964
|
};
|
|
1965
|
-
var
|
|
1966
|
-
sm: "
|
|
1967
|
-
md: "
|
|
1968
|
-
lg: "
|
|
1965
|
+
var CARD_RADIUS_CLASS = {
|
|
1966
|
+
sm: "rounded-xs",
|
|
1967
|
+
md: "rounded-xs",
|
|
1968
|
+
lg: "rounded-sm"
|
|
1969
1969
|
};
|
|
1970
1970
|
var GAP_CLASS = {
|
|
1971
1971
|
sm: "gap-xs",
|
|
@@ -1982,8 +1982,14 @@ var TILE_RADIUS_CLASS2 = {
|
|
|
1982
1982
|
md: "rounded-md",
|
|
1983
1983
|
lg: "rounded-lg"
|
|
1984
1984
|
};
|
|
1985
|
-
var
|
|
1986
|
-
|
|
1985
|
+
var CARDS = [
|
|
1986
|
+
{ left: "35%", rotation: -16, opacity: 0.45 },
|
|
1987
|
+
{ left: "65%", rotation: 16, opacity: 0.7 },
|
|
1988
|
+
{ left: "50%", rotation: 0, opacity: 1 }
|
|
1989
|
+
];
|
|
1990
|
+
var CARD_WIDTH = "40%";
|
|
1991
|
+
var CARD_HEIGHT = "64%";
|
|
1992
|
+
var CARD_PIVOT = "50% 100%";
|
|
1987
1993
|
var LogoGlyph = ({
|
|
1988
1994
|
size,
|
|
1989
1995
|
boxClassName,
|
|
@@ -1993,19 +1999,27 @@ var LogoGlyph = ({
|
|
|
1993
1999
|
{
|
|
1994
2000
|
"aria-hidden": "true",
|
|
1995
2001
|
className: [
|
|
1996
|
-
"
|
|
2002
|
+
"relative block shrink-0 overflow-visible",
|
|
1997
2003
|
boxClassName,
|
|
1998
2004
|
toneClassName
|
|
1999
2005
|
].join(" "),
|
|
2000
|
-
children:
|
|
2006
|
+
children: CARDS.map((card) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2001
2007
|
"span",
|
|
2002
2008
|
{
|
|
2003
|
-
className: [
|
|
2004
|
-
" "
|
|
2005
|
-
|
|
2006
|
-
|
|
2009
|
+
className: [
|
|
2010
|
+
"absolute bottom-0 block bg-current",
|
|
2011
|
+
CARD_RADIUS_CLASS[size]
|
|
2012
|
+
].join(" "),
|
|
2013
|
+
style: {
|
|
2014
|
+
left: card.left,
|
|
2015
|
+
width: CARD_WIDTH,
|
|
2016
|
+
height: CARD_HEIGHT,
|
|
2017
|
+
opacity: card.opacity,
|
|
2018
|
+
transformOrigin: CARD_PIVOT,
|
|
2019
|
+
transform: `translateX(-50%) rotate(${card.rotation}deg)`
|
|
2020
|
+
}
|
|
2007
2021
|
},
|
|
2008
|
-
|
|
2022
|
+
card.left
|
|
2009
2023
|
))
|
|
2010
2024
|
}
|
|
2011
2025
|
);
|
|
@@ -12229,21 +12243,35 @@ var import_react_dom10 = require("react-dom");
|
|
|
12229
12243
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
12230
12244
|
var cn58 = (...parts) => parts.filter(Boolean).join(" ");
|
|
12231
12245
|
var DEFAULT_MENU_ITEMS = [
|
|
12232
|
-
{ id: "
|
|
12233
|
-
{ id: "
|
|
12234
|
-
{ id: "
|
|
12235
|
-
{
|
|
12246
|
+
{ id: "gallery-night", label: "Gallery Night", icon: "calendar" },
|
|
12247
|
+
{ id: "harbor-sound", label: "Harbor Sound Session", icon: "calendar" },
|
|
12248
|
+
{ id: "makers-market", label: "Winter Makers Market", icon: "calendar" },
|
|
12249
|
+
{
|
|
12250
|
+
id: "archive",
|
|
12251
|
+
label: "Past events",
|
|
12252
|
+
icon: "folder",
|
|
12253
|
+
separated: true,
|
|
12254
|
+
submenu: true
|
|
12255
|
+
}
|
|
12236
12256
|
];
|
|
12257
|
+
var STATUS_RECIPE = {
|
|
12258
|
+
draft: { variant: "warning", label: "Draft" },
|
|
12259
|
+
published: { variant: "success", label: "Published" },
|
|
12260
|
+
ended: { variant: "neutral", label: "Ended" }
|
|
12261
|
+
};
|
|
12237
12262
|
var PANEL_MIN_WIDTH = 288;
|
|
12238
12263
|
var MENU_ROW_CLASS2 = "cursor-pointer transition duration-150 ease-out";
|
|
12239
12264
|
var NavbarDesktop = React71.forwardRef(
|
|
12240
12265
|
({
|
|
12241
|
-
title = "
|
|
12266
|
+
title = "Rooftop Supper Club",
|
|
12242
12267
|
userName = "Sera",
|
|
12243
12268
|
menuItems = DEFAULT_MENU_ITEMS,
|
|
12244
12269
|
onMenuSelect,
|
|
12245
12270
|
defaultMenuOpen = false,
|
|
12246
|
-
|
|
12271
|
+
status = "draft",
|
|
12272
|
+
onShare,
|
|
12273
|
+
onPreview,
|
|
12274
|
+
label = "Event toolbar",
|
|
12247
12275
|
className,
|
|
12248
12276
|
...rest
|
|
12249
12277
|
}, ref) => {
|
|
@@ -12324,182 +12352,74 @@ var NavbarDesktop = React71.forwardRef(
|
|
|
12324
12352
|
choose(item.id);
|
|
12325
12353
|
}
|
|
12326
12354
|
};
|
|
12327
|
-
const
|
|
12355
|
+
const statusRecipe = STATUS_RECIPE[status];
|
|
12328
12356
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
12329
12357
|
"header",
|
|
12330
12358
|
{
|
|
12331
12359
|
ref,
|
|
12332
12360
|
"aria-label": label,
|
|
12333
|
-
className: cn58(
|
|
12361
|
+
className: cn58(
|
|
12362
|
+
"w-full min-w-0 border-b border-hairline bg-surface text-ink",
|
|
12363
|
+
className
|
|
12364
|
+
),
|
|
12334
12365
|
...rest,
|
|
12335
12366
|
children: [
|
|
12336
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
12337
|
-
"
|
|
12338
|
-
{
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
name: "chevron-down",
|
|
12393
|
-
size: 16,
|
|
12394
|
-
strokeWidth: 2,
|
|
12395
|
-
className: cn58(
|
|
12396
|
-
"transition-transform duration-200 ease-out",
|
|
12397
|
-
open && "rotate-180"
|
|
12398
|
-
)
|
|
12399
|
-
}
|
|
12400
|
-
),
|
|
12401
|
-
children: "Editing"
|
|
12402
|
-
}
|
|
12403
|
-
),
|
|
12404
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12405
|
-
"span",
|
|
12406
|
-
{
|
|
12407
|
-
"aria-hidden": "true",
|
|
12408
|
-
className: "mx-sm h-6 w-px shrink-0 bg-brand-tile-foreground/30"
|
|
12409
|
-
}
|
|
12410
|
-
),
|
|
12411
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12412
|
-
Button,
|
|
12413
|
-
{
|
|
12414
|
-
variant: "onBrand",
|
|
12415
|
-
shape: "square",
|
|
12416
|
-
size: "md",
|
|
12417
|
-
icon: "undo",
|
|
12418
|
-
"aria-label": "Undo",
|
|
12419
|
-
className: onBrandFocus
|
|
12420
|
-
}
|
|
12421
|
-
),
|
|
12422
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12423
|
-
Button,
|
|
12424
|
-
{
|
|
12425
|
-
variant: "onBrand",
|
|
12426
|
-
shape: "square",
|
|
12427
|
-
size: "md",
|
|
12428
|
-
icon: "redo",
|
|
12429
|
-
"aria-label": "Redo",
|
|
12430
|
-
disabled: true,
|
|
12431
|
-
className: cn58(
|
|
12432
|
-
onBrandFocus,
|
|
12433
|
-
"disabled:bg-transparent! disabled:shadow-none"
|
|
12434
|
-
)
|
|
12435
|
-
}
|
|
12436
|
-
),
|
|
12437
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12438
|
-
Button,
|
|
12439
|
-
{
|
|
12440
|
-
variant: "onBrand",
|
|
12441
|
-
shape: "square",
|
|
12442
|
-
size: "md",
|
|
12443
|
-
icon: "cloud-check",
|
|
12444
|
-
"aria-label": "All changes saved",
|
|
12445
|
-
className: cn58(onBrandFocus, "ml-xs")
|
|
12446
|
-
}
|
|
12447
|
-
),
|
|
12448
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex min-w-0 flex-1 items-center justify-end pr-md", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12449
|
-
"span",
|
|
12450
|
-
{
|
|
12451
|
-
className: "truncate text-body-sm text-brand-tile-foreground/90",
|
|
12452
|
-
title,
|
|
12453
|
-
children: title
|
|
12454
|
-
}
|
|
12455
|
-
) }),
|
|
12456
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12457
|
-
Avatar,
|
|
12458
|
-
{
|
|
12459
|
-
size: "sm",
|
|
12460
|
-
initials: userName.slice(0, 1).toUpperCase(),
|
|
12461
|
-
name: userName,
|
|
12462
|
-
tone: "warm",
|
|
12463
|
-
className: "mr-xs"
|
|
12464
|
-
}
|
|
12465
|
-
),
|
|
12466
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12467
|
-
Button,
|
|
12468
|
-
{
|
|
12469
|
-
variant: "onBrandGlass",
|
|
12470
|
-
shape: "square",
|
|
12471
|
-
size: "md",
|
|
12472
|
-
icon: "chart-column",
|
|
12473
|
-
"aria-label": "Open document data",
|
|
12474
|
-
className: onBrandFocus
|
|
12475
|
-
}
|
|
12476
|
-
),
|
|
12477
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12478
|
-
Button,
|
|
12479
|
-
{
|
|
12480
|
-
variant: "onBrandGlass",
|
|
12481
|
-
shape: "square",
|
|
12482
|
-
size: "md",
|
|
12483
|
-
icon: "message-circle",
|
|
12484
|
-
"aria-label": "Open comments",
|
|
12485
|
-
className: onBrandFocus
|
|
12486
|
-
}
|
|
12487
|
-
),
|
|
12488
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12489
|
-
Button,
|
|
12490
|
-
{
|
|
12491
|
-
variant: "onBrandSolid",
|
|
12492
|
-
size: "md",
|
|
12493
|
-
className: cn58(
|
|
12494
|
-
onBrandFocus,
|
|
12495
|
-
"ml-xs rounded-md font-weight-label-md"
|
|
12496
|
-
),
|
|
12497
|
-
children: "Share"
|
|
12498
|
-
}
|
|
12499
|
-
)
|
|
12500
|
-
]
|
|
12501
|
-
}
|
|
12502
|
-
),
|
|
12367
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex w-full min-w-0 items-center gap-md px-lg py-sm", children: [
|
|
12368
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Logo, { size: "sm", className: "shrink-0" }),
|
|
12369
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { "aria-hidden": "true", className: "h-6 w-px shrink-0 bg-hairline" }),
|
|
12370
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex min-w-0 items-center gap-md", children: [
|
|
12371
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12372
|
+
Button,
|
|
12373
|
+
{
|
|
12374
|
+
ref: triggerRef,
|
|
12375
|
+
variant: "quiet",
|
|
12376
|
+
size: "md",
|
|
12377
|
+
align: "between",
|
|
12378
|
+
"aria-haspopup": "menu",
|
|
12379
|
+
"aria-expanded": open,
|
|
12380
|
+
"aria-controls": menuId,
|
|
12381
|
+
onClick: () => setOpen((value) => !value),
|
|
12382
|
+
className: "min-w-0",
|
|
12383
|
+
trailing: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12384
|
+
Icon,
|
|
12385
|
+
{
|
|
12386
|
+
name: "chevron-down",
|
|
12387
|
+
size: 16,
|
|
12388
|
+
strokeWidth: 2,
|
|
12389
|
+
className: cn58(
|
|
12390
|
+
"text-muted transition-transform duration-200 ease-out",
|
|
12391
|
+
open && "rotate-180"
|
|
12392
|
+
)
|
|
12393
|
+
}
|
|
12394
|
+
),
|
|
12395
|
+
children: title
|
|
12396
|
+
}
|
|
12397
|
+
),
|
|
12398
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Badge, { variant: statusRecipe.variant, size: "sm", className: "shrink-0", children: statusRecipe.label }),
|
|
12399
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12400
|
+
Button,
|
|
12401
|
+
{
|
|
12402
|
+
variant: "ghost",
|
|
12403
|
+
size: "sm",
|
|
12404
|
+
onClick: onPreview,
|
|
12405
|
+
className: "shrink-0",
|
|
12406
|
+
children: "Preview"
|
|
12407
|
+
}
|
|
12408
|
+
)
|
|
12409
|
+
] }),
|
|
12410
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "ml-auto flex shrink-0 items-center gap-sm", children: [
|
|
12411
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12412
|
+
Avatar,
|
|
12413
|
+
{
|
|
12414
|
+
size: "sm",
|
|
12415
|
+
initials: userName.slice(0, 1).toUpperCase(),
|
|
12416
|
+
name: userName,
|
|
12417
|
+
tone: "warm"
|
|
12418
|
+
}
|
|
12419
|
+
),
|
|
12420
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Button, { variant: "primary", size: "md", onClick: onShare, children: "Share" })
|
|
12421
|
+
] })
|
|
12422
|
+
] }),
|
|
12503
12423
|
(0, import_react_dom10.createPortal)(
|
|
12504
12424
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
12505
12425
|
"div",
|
|
@@ -12507,7 +12427,7 @@ var NavbarDesktop = React71.forwardRef(
|
|
|
12507
12427
|
ref: panelRef,
|
|
12508
12428
|
id: menuId,
|
|
12509
12429
|
role: "menu",
|
|
12510
|
-
"aria-label": "
|
|
12430
|
+
"aria-label": "Switch event",
|
|
12511
12431
|
"aria-hidden": !open,
|
|
12512
12432
|
"data-state": open ? "open" : "closed",
|
|
12513
12433
|
onKeyDown: onPanelKeyDown,
|