@designa8/vibedesign-v6 2.2.2 → 2.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 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.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
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
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",
@@ -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>