@designa8/vibedesign-v6 2.2.2 → 2.2.4

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
  # @plasma/vibedesign-v6
2
2
 
3
- Complete design system generated by Atoms Design, version **2.2.2**.
3
+ Complete design system generated by Atoms Design, version **2.2.4**.
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
@@ -975,9 +975,9 @@ var variantClasses2 = {
975
975
  error: "bg-[var(--color-semantic-error-soft)] text-[var(--color-semantic-error)] border border-[var(--color-semantic-error)]"
976
976
  };
977
977
  var sizeClasses3 = {
978
- sm: { chip: "h-6 px-xs gap-xs rounded-xs", text: "text-caption", icon: "w-3 h-3", thumb: "w-4 h-4", dismissSize: "sm" },
979
- md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", thumb: "w-5 h-5", dismissSize: "sm" },
980
- lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", thumb: "w-6 h-6", dismissSize: "sm" }
978
+ sm: { chip: "h-6 px-xs gap-xs rounded-xs", text: "text-caption", icon: "w-3 h-3", thumb: "w-4 h-4", dismissSize: "sm", progressHeight: "h-1" },
979
+ md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", thumb: "w-5 h-5", dismissSize: "sm", progressHeight: "h-1.5" },
980
+ lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", thumb: "w-6 h-6", dismissSize: "sm", progressHeight: "h-2" }
981
981
  };
982
982
  var Chip = import_react5.default.forwardRef(
983
983
  ({
@@ -1019,12 +1019,12 @@ var Chip = import_react5.default.forwardRef(
1019
1019
  showProgressBar && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1020
1020
  "div",
1021
1021
  {
1022
- className: "absolute bottom-0 left-0 right-0 h-0.5 bg-scrim",
1022
+ className: `absolute bottom-0 left-0 right-0 ${sz.progressHeight} bg-scrim`,
1023
1023
  "aria-label": `Upload progress: ${uploadProgress}%`,
1024
1024
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1025
1025
  "div",
1026
1026
  {
1027
- className: "h-full bg-primary transition-all duration-200",
1027
+ className: `h-full bg-primary transition-all duration-200`,
1028
1028
  style: { width: `${uploadProgress}%` }
1029
1029
  }
1030
1030
  )
package/dist/index.js CHANGED
@@ -881,9 +881,9 @@ var variantClasses2 = {
881
881
  error: "bg-[var(--color-semantic-error-soft)] text-[var(--color-semantic-error)] border border-[var(--color-semantic-error)]"
882
882
  };
883
883
  var sizeClasses3 = {
884
- sm: { chip: "h-6 px-xs gap-xs rounded-xs", text: "text-caption", icon: "w-3 h-3", thumb: "w-4 h-4", dismissSize: "sm" },
885
- md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", thumb: "w-5 h-5", dismissSize: "sm" },
886
- lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", thumb: "w-6 h-6", dismissSize: "sm" }
884
+ sm: { chip: "h-6 px-xs gap-xs rounded-xs", text: "text-caption", icon: "w-3 h-3", thumb: "w-4 h-4", dismissSize: "sm", progressHeight: "h-1" },
885
+ md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", thumb: "w-5 h-5", dismissSize: "sm", progressHeight: "h-1.5" },
886
+ lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", thumb: "w-6 h-6", dismissSize: "sm", progressHeight: "h-2" }
887
887
  };
888
888
  var Chip = React6.forwardRef(
889
889
  ({
@@ -925,12 +925,12 @@ var Chip = React6.forwardRef(
925
925
  showProgressBar && /* @__PURE__ */ jsx6(
926
926
  "div",
927
927
  {
928
- className: "absolute bottom-0 left-0 right-0 h-0.5 bg-scrim",
928
+ className: `absolute bottom-0 left-0 right-0 ${sz.progressHeight} bg-scrim`,
929
929
  "aria-label": `Upload progress: ${uploadProgress}%`,
930
930
  children: /* @__PURE__ */ jsx6(
931
931
  "div",
932
932
  {
933
- className: "h-full bg-primary transition-all duration-200",
933
+ className: `h-full bg-primary transition-all duration-200`,
934
934
  style: { width: `${uploadProgress}%` }
935
935
  }
936
936
  )
package/dist/styles.css CHANGED
@@ -1,4 +1,18 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Plus%20Jakarta%20Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
1
+ /* Bundled local fonts */
2
+ @font-face {
3
+ font-family: "Plus Jakarta Sans";
4
+ font-style: italic;
5
+ font-weight: 100 900;
6
+ font-display: swap;
7
+ src: url("./fonts/plusjakartasans/PlusJakartaSans-Italic%5Bwght%5D.ttf") format("truetype");
8
+ }
9
+ @font-face {
10
+ font-family: "Plus Jakarta Sans";
11
+ font-style: normal;
12
+ font-weight: 100 900;
13
+ font-display: swap;
14
+ src: url("./fonts/plusjakartasans/PlusJakartaSans%5Bwght%5D.ttf") format("truetype");
15
+ }
2
16
 
3
17
  /*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
4
18
  @layer properties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "Complete design system \"Plasma Design System\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -29,7 +29,7 @@ export interface NavEntry {
29
29
  alwaysExpanded?: boolean;
30
30
  }
31
31
 
32
- export interface AppSidebarProps extends React.HTMLAttributes<HTMLElement> {
32
+ export interface AppSidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
33
33
  /**
34
34
  * Brand / product name displayed in the header when the sidebar is expanded.
35
35
  * If omitted the default logo icon is shown without a title.
@@ -279,7 +279,10 @@ function AccountMenu({ userInitials, userEmail, onLogout, onSettings }: AccountM
279
279
  /** Fallback for when `transitionend` never fires (reduced motion, no animation). */
280
280
  const WIDTH_TRANSITION_FALLBACK_MS = 180;
281
281
 
282
- export const AppSidebar = React.forwardRef<HTMLElement, AppSidebarProps>(
282
+ export const AppSidebar = React.forwardRef<
283
+ HTMLElement,
284
+ AppSidebarProps
285
+ >(
283
286
  (
284
287
  {
285
288
  brandName,
@@ -312,7 +315,7 @@ export const AppSidebar = React.forwardRef<HTMLElement, AppSidebarProps>(
312
315
  children,
313
316
  className,
314
317
  ...rest
315
- },
318
+ }: AppSidebarProps,
316
319
  ref,
317
320
  ) => {
318
321
  /* ── Collapse state (drives the WIDTH class only) ── */
@@ -429,7 +432,7 @@ export const AppSidebar = React.forwardRef<HTMLElement, AppSidebarProps>(
429
432
  ]
430
433
  .filter(Boolean)
431
434
  .join(" ")}
432
- {...(rest as React.HTMLAttributes<HTMLElement>)}
435
+ {...(rest as Omit<React.HTMLAttributes<HTMLElement>, "onSelect">)}
433
436
  >
434
437
  {/* ── Header: logo / brand name + collapse toggle ── */}
435
438
  <div
@@ -21,8 +21,8 @@ export interface ChipProps extends React.HTMLAttributes<HTMLSpanElement> {
21
21
  /** Alt text for the thumbnail. Falls back to `label`. */
22
22
  imageAlt?: string;
23
23
  /** Upload progress as a number from 0 to 100. When set and below 100, overlays
24
- * a thin progress bar filled to that percent with the primary color on a scrim.
25
- * At 100 or when omitted, shows the thumbnail with no bar. */
24
+ * a visible progress bar band across the bottom of the thumbnail, filled to that percent
25
+ * with the primary color on a scrim. At 100 or when omitted, shows the thumbnail with no bar. */
26
26
  uploadProgress?: number;
27
27
  /** If provided, renders a dismiss (×) button and calls this handler on click */
28
28
  onDismiss?: () => void;
@@ -43,11 +43,11 @@ const variantClasses: Record<ChipVariant, string> = {
43
43
 
44
44
  const sizeClasses: Record<
45
45
  ChipSize,
46
- { chip: string; text: string; icon: string; thumb: string; dismissSize: "sm" }
46
+ { chip: string; text: string; icon: string; thumb: string; dismissSize: "sm"; progressHeight: string }
47
47
  > = {
48
- sm: { chip: "h-6 px-xs gap-xs rounded-xs", text: "text-caption", icon: "w-3 h-3", thumb: "w-4 h-4", dismissSize: "sm" },
49
- md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", thumb: "w-5 h-5", dismissSize: "sm" },
50
- lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", thumb: "w-6 h-6", dismissSize: "sm" },
48
+ sm: { chip: "h-6 px-xs gap-xs rounded-xs", text: "text-caption", icon: "w-3 h-3", thumb: "w-4 h-4", dismissSize: "sm", progressHeight: "h-1" },
49
+ md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", thumb: "w-5 h-5", dismissSize: "sm", progressHeight: "h-1.5" },
50
+ lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", thumb: "w-6 h-6", dismissSize: "sm", progressHeight: "h-2" },
51
51
  };
52
52
 
53
53
  export const Chip = React.forwardRef<HTMLSpanElement, ChipProps>(
@@ -91,11 +91,11 @@ export const Chip = React.forwardRef<HTMLSpanElement, ChipProps>(
91
91
  />
92
92
  {showProgressBar && (
93
93
  <div
94
- className="absolute bottom-0 left-0 right-0 h-0.5 bg-scrim"
94
+ className={`absolute bottom-0 left-0 right-0 ${sz.progressHeight} bg-scrim`}
95
95
  aria-label={`Upload progress: ${uploadProgress}%`}
96
96
  >
97
97
  <div
98
- className="h-full bg-primary transition-all duration-200"
98
+ className={`h-full bg-primary transition-all duration-200`}
99
99
  style={{ width: `${uploadProgress}%` }}
100
100
  />
101
101
  </div>