@designa8/vibedesign-figma-deepseek-image-v1-2-176b 0.3.21 → 0.3.22

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-figma-deepseek-image-v1-2-176b
2
2
 
3
- Complete design system generated by Atoms Design, version **0.3.21**.
3
+ Complete design system generated by Atoms Design, version **0.3.22**.
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/styles.css CHANGED
@@ -963,9 +963,6 @@
963
963
  .max-w-sm {
964
964
  max-width: var(--spacing-sm);
965
965
  }
966
- .max-w-xl {
967
- max-width: var(--spacing-xl);
968
- }
969
966
  .min-w-0 {
970
967
  min-width: 0;
971
968
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-figma-deepseek-image-v1-2-176b",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "Design system generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -6,8 +6,8 @@ export type ButtonGroupSize = Extract<ButtonSize, "sm" | "md">;
6
6
  /**
7
7
  * Selection recipe. "solid" paints the sliding indicator with the brand fill
8
8
  * and a reversed label. "tint" keeps the track quiet and marks the selection
9
- * with a soft brand wash plus brand-colored text — the recipe used by a
10
- * billing-period switch that sits next to page content.
9
+ * with a soft brand wash plus brand-colored text — a quieter recipe for a
10
+ * segmented switch that sits beside page content, such as a period toggle.
11
11
  */
12
12
  export type ButtonGroupTone = "solid" | "tint";
13
13
 
@@ -36,7 +36,7 @@ export interface ButtonGroupProps
36
36
  stretch?: boolean;
37
37
  /** Fill recipe for the selected segment. */
38
38
  tone?: ButtonGroupTone;
39
- /** Accessible name for the segment group. */
39
+ /** Accessible name for the segment group. Defaults to "Selection group". */
40
40
  label?: string;
41
41
  }
42
42
 
@@ -50,9 +50,14 @@ function cn(...values: Array<string | false | null | undefined>) {
50
50
  }
51
51
 
52
52
  /**
53
- * Segmented control. Segments sit flush inside one bordered surface, one shared
54
- * indicator slides between them, and a hairline divider is drawn only between
55
- * adjacent unselected segments. Every segment is a Button in the chrome-less
53
+ * Segmented control for switching one value across a small set of segments —
54
+ * a view mode, a period, a step filter. Copy comes entirely from `options`, so
55
+ * the component ships with no baked-in sample content; `label` is the only
56
+ * string it owns and defaults to "Selection group".
57
+ *
58
+ * Segments sit flush inside one bordered surface, one shared indicator slides
59
+ * between them, and a hairline divider is drawn only between adjacent
60
+ * unselected segments. Every segment is a Button in the chrome-less
56
61
  * "bare" / "flat" recipe, so the group owns the only stroke and radius.
57
62
  */
58
63
  export const ButtonGroup = React.forwardRef<HTMLDivElement, ButtonGroupProps>(
@@ -1,16 +1,22 @@
1
1
  import * as React from "react";
2
2
  import { ButtonGroup, type ButtonGroupOption } from "./ButtonGroup";
3
3
 
4
- const baseOptions: ButtonGroupOption[] = [
5
- { value: "design", label: "Design" },
6
- { value: "prototype", label: "Prototype" },
7
- { value: "build", label: "Build" },
4
+ const runFilterOptions: ButtonGroupOption[] = [
5
+ { value: "all", label: "All runs" },
6
+ { value: "successful", label: "Succeeded" },
7
+ { value: "failed", label: "Failed" },
8
8
  ];
9
9
 
10
- const disabledOptions: ButtonGroupOption[] = [
11
- { value: "design", label: "Design" },
12
- { value: "prototype", label: "Prototype" },
13
- { value: "build", label: "Build", disabled: true },
10
+ const periodOptions: ButtonGroupOption[] = [
11
+ { value: "day", label: "Day" },
12
+ { value: "week", label: "Week" },
13
+ { value: "month", label: "Month" },
14
+ ];
15
+
16
+ const stepFilterOptions: ButtonGroupOption[] = [
17
+ { value: "workflows", label: "Workflows" },
18
+ { value: "runs", label: "Runs" },
19
+ { value: "logs", label: "Logs", disabled: true },
14
20
  ];
15
21
 
16
22
  function Caption({ children }: { children: React.ReactNode }) {
@@ -19,8 +25,9 @@ function Caption({ children }: { children: React.ReactNode }) {
19
25
 
20
26
  export default function ButtonGroupPreview() {
21
27
  const [empty, setEmpty] = React.useState<string | null>(null);
22
- const [selected, setSelected] = React.useState<string | null>("prototype");
28
+ const [selected, setSelected] = React.useState<string | null>("week");
23
29
  const [withDisabled, setWithDisabled] = React.useState<string | null>(null);
30
+ const [uncontrolled, setUncontrolled] = React.useState<string | null>("all");
24
31
 
25
32
  return (
26
33
  <div className="w-full max-w-6xl mx-auto p-lg space-y-xl bg-canvas text-ink">
@@ -29,19 +36,19 @@ export default function ButtonGroupPreview() {
29
36
 
30
37
  <div className="flex flex-col gap-md">
31
38
  <ButtonGroup
32
- label="Default button group"
33
- options={baseOptions}
39
+ label="Run status filter"
40
+ options={runFilterOptions}
34
41
  value={empty}
35
42
  onChange={setEmpty}
36
43
  stretch
37
44
  />
38
- <Caption>Default</Caption>
45
+ <Caption>Default — no segment selected</Caption>
39
46
  </div>
40
47
 
41
48
  <div className="flex flex-col gap-md">
42
49
  <ButtonGroup
43
- label="Button group with one selected"
44
- options={baseOptions}
50
+ label="Usage period"
51
+ options={periodOptions}
45
52
  value={selected}
46
53
  onChange={setSelected}
47
54
  stretch
@@ -51,8 +58,8 @@ export default function ButtonGroupPreview() {
51
58
 
52
59
  <div className="flex flex-col gap-md">
53
60
  <ButtonGroup
54
- label="Button group with a disabled segment"
55
- options={disabledOptions}
61
+ label="Workflow sections"
62
+ options={stepFilterOptions}
56
63
  value={withDisabled}
57
64
  onChange={setWithDisabled}
58
65
  stretch
@@ -63,13 +70,13 @@ export default function ButtonGroupPreview() {
63
70
 
64
71
  <div className="flex flex-col gap-md">
65
72
  <Caption>Small size — arrow keys move the selection</Caption>
66
- <div className="w-full max-w-xl">
73
+ <div className="w-full max-w-md">
67
74
  <ButtonGroup
68
- label="Small button group"
75
+ label="Run status filter, small"
69
76
  size="sm"
70
- options={baseOptions}
71
- defaultValue="design"
72
- stretch
77
+ options={runFilterOptions}
78
+ value={uncontrolled}
79
+ onChange={setUncontrolled}
73
80
  />
74
81
  </div>
75
82
  </div>