@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 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.22**.
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 GLYPH_BAR_CLASS = {
1966
- sm: "h-xxs",
1967
- md: "h-xs",
1968
- lg: "h-xs"
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 BAR_WIDTH = ["100%", "78%", "56%"];
1986
- var BAR_OFFSET = ["0%", "11%", "22%"];
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
- "flex shrink-0 flex-col justify-between",
2002
+ "relative block shrink-0 overflow-visible",
1997
2003
  boxClassName,
1998
2004
  toneClassName
1999
2005
  ].join(" "),
2000
- children: BAR_WIDTH.map((width, i) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2006
+ children: CARDS.map((card) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2001
2007
  "span",
2002
2008
  {
2003
- className: ["block rounded-full bg-current", GLYPH_BAR_CLASS[size]].join(
2004
- " "
2005
- ),
2006
- style: { width, marginLeft: BAR_OFFSET[i] }
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
- i
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: "edit", label: "Edit design", icon: "pencil" },
12233
- { id: "copy", label: "Make a copy", icon: "copy" },
12234
- { id: "move", label: "Move to a folder", icon: "folder", submenu: true },
12235
- { id: "trash", label: "Move to trash", icon: "trash", separated: true }
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 = "My philosophy is simple: Insight first, data second.",
12266
+ title = "Rooftop Supper Club",
12242
12267
  userName = "Sera",
12243
12268
  menuItems = DEFAULT_MENU_ITEMS,
12244
12269
  onMenuSelect,
12245
12270
  defaultMenuOpen = false,
12246
- label = "Document toolbar",
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 onBrandFocus = "focus-visible:ring-brand-tile-foreground focus-visible:ring-offset-brand-gradient-end";
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("w-full", className),
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
- "div",
12338
- {
12339
- className: "flex w-full items-center gap-xs px-lg py-sm text-brand-tile-foreground",
12340
- style: {
12341
- backgroundImage: "linear-gradient(96deg, var(--color-brand-gradient-start) 0%, var(--color-semantic-info) 44%, var(--color-brand-gradient-end) 100%)"
12342
- },
12343
- children: [
12344
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
12345
- Button,
12346
- {
12347
- variant: "onBrandGlass",
12348
- shape: "square",
12349
- size: "md",
12350
- icon: "house",
12351
- "aria-label": "Go to home",
12352
- className: cn58(onBrandFocus, "mr-xs")
12353
- }
12354
- ),
12355
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
12356
- Button,
12357
- {
12358
- variant: "onBrand",
12359
- size: "md",
12360
- className: cn58(onBrandFocus, "font-weight-body-md"),
12361
- children: "File"
12362
- }
12363
- ),
12364
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
12365
- Button,
12366
- {
12367
- variant: "onBrand",
12368
- size: "md",
12369
- className: cn58(onBrandFocus, "font-weight-body-md"),
12370
- children: "Resize"
12371
- }
12372
- ),
12373
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
12374
- Button,
12375
- {
12376
- ref: triggerRef,
12377
- variant: "onBrandGlass",
12378
- size: "md",
12379
- icon: "pencil",
12380
- "aria-haspopup": "menu",
12381
- "aria-expanded": open,
12382
- "aria-controls": menuId,
12383
- onClick: () => setOpen((value) => !value),
12384
- className: cn58(
12385
- onBrandFocus,
12386
- "ml-sm border-brand-tile-foreground/40 bg-brand-tile-foreground/25",
12387
- "hover:border-brand-tile-foreground/50 hover:bg-brand-tile-foreground/30"
12388
- ),
12389
- trailing: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
12390
- Icon,
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": "Editing mode",
12430
+ "aria-label": "Switch event",
12511
12431
  "aria-hidden": !open,
12512
12432
  "data-state": open ? "open" : "closed",
12513
12433
  onKeyDown: onPanelKeyDown,