@designa8/vibedesign-figma-deepseek-image-v1-2-176b 0.3.21 → 0.3.23
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.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.3.23**.
|
|
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
package/package.json
CHANGED
|
@@ -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 —
|
|
10
|
-
*
|
|
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
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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
|
|
5
|
-
{ value: "
|
|
6
|
-
{ value: "
|
|
7
|
-
{ value: "
|
|
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
|
|
11
|
-
{ value: "
|
|
12
|
-
{ value: "
|
|
13
|
-
{ value: "
|
|
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>("
|
|
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="
|
|
33
|
-
options={
|
|
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="
|
|
44
|
-
options={
|
|
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="
|
|
55
|
-
options={
|
|
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-
|
|
73
|
+
<div className="w-full max-w-md">
|
|
67
74
|
<ButtonGroup
|
|
68
|
-
label="
|
|
75
|
+
label="Run status filter, small"
|
|
69
76
|
size="sm"
|
|
70
|
-
options={
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
options={runFilterOptions}
|
|
78
|
+
value={uncontrolled}
|
|
79
|
+
onChange={setUncontrolled}
|
|
73
80
|
/>
|
|
74
81
|
</div>
|
|
75
82
|
</div>
|
|
@@ -4,7 +4,7 @@ import { Button } from "../../atoms/Button";
|
|
|
4
4
|
export interface TabItem {
|
|
5
5
|
/** Stable identifier for the tab. */
|
|
6
6
|
value: string;
|
|
7
|
-
/** Visible tab label. */
|
|
7
|
+
/** Visible tab label — supply your own copy, e.g. "Runs", "Connections". */
|
|
8
8
|
label: string;
|
|
9
9
|
/** Optional numeric counter rendered after the label. */
|
|
10
10
|
count?: number;
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Tab } from "./Tab";
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
{ value: "all", label: "All", count:
|
|
6
|
-
{ value: "
|
|
7
|
-
{ value: "
|
|
4
|
+
const runStates = [
|
|
5
|
+
{ value: "all", label: "All runs", count: 248 },
|
|
6
|
+
{ value: "queued", label: "Queued", count: 12 },
|
|
7
|
+
{ value: "failed", label: "Failed", count: 3 },
|
|
8
8
|
];
|
|
9
9
|
|
|
10
10
|
const sections = [
|
|
11
11
|
{ value: "overview", label: "Overview" },
|
|
12
|
-
{ value: "
|
|
13
|
-
{ value: "
|
|
12
|
+
{ value: "steps", label: "Steps" },
|
|
13
|
+
{ value: "usage", label: "Usage" },
|
|
14
14
|
];
|
|
15
15
|
|
|
16
16
|
const withDisabled = [
|
|
17
|
-
{ value: "
|
|
18
|
-
{ value: "
|
|
19
|
-
{ value: "
|
|
17
|
+
{ value: "triggers", label: "Triggers", count: 4 },
|
|
18
|
+
{ value: "steps", label: "Steps", count: 9 },
|
|
19
|
+
{ value: "archive", label: "Archive", count: 0, disabled: true },
|
|
20
20
|
];
|
|
21
21
|
|
|
22
22
|
const longFilters = [
|
|
23
|
-
{ value: "all", label: "All
|
|
24
|
-
{ value: "
|
|
25
|
-
{ value: "
|
|
26
|
-
{ value: "
|
|
27
|
-
{ value: "
|
|
28
|
-
{ value: "trash", label: "Trash", count: 0 },
|
|
23
|
+
{ value: "all", label: "All workflows", count: 24 },
|
|
24
|
+
{ value: "active", label: "Active", count: 18 },
|
|
25
|
+
{ value: "draft", label: "Drafts", count: 4 },
|
|
26
|
+
{ value: "connections", label: "Connections", count: 7 },
|
|
27
|
+
{ value: "templates", label: "Templates", count: 11 },
|
|
29
28
|
];
|
|
30
29
|
|
|
31
30
|
export default function Preview() {
|
|
32
31
|
const [active, setActive] = React.useState("all");
|
|
33
32
|
const [second, setSecond] = React.useState("overview");
|
|
34
|
-
const [third, setThird] = React.useState("
|
|
35
|
-
const [fourth, setFourth] = React.useState("
|
|
33
|
+
const [third, setThird] = React.useState("steps");
|
|
34
|
+
const [fourth, setFourth] = React.useState("active");
|
|
36
35
|
|
|
37
36
|
return (
|
|
38
37
|
<div className="w-full max-w-3xl mx-auto p-lg space-y-xl text-ink">
|
|
39
38
|
<div>
|
|
40
39
|
<Tab
|
|
41
|
-
items={
|
|
40
|
+
items={runStates}
|
|
42
41
|
value={active}
|
|
43
42
|
onValueChange={setActive}
|
|
44
|
-
label="
|
|
43
|
+
label="Run states"
|
|
45
44
|
/>
|
|
46
45
|
<p className="mt-sm text-caption text-muted">
|
|
47
46
|
Counts are neutral pills; only the selected tab tints its count.
|
|
@@ -53,7 +52,7 @@ export default function Preview() {
|
|
|
53
52
|
items={sections}
|
|
54
53
|
value={second}
|
|
55
54
|
onValueChange={setSecond}
|
|
56
|
-
label="
|
|
55
|
+
label="Workflow sections"
|
|
57
56
|
/>
|
|
58
57
|
<p className="mt-sm text-caption text-muted">
|
|
59
58
|
The selected pill slides between tabs — click or use the arrow keys.
|
|
@@ -65,7 +64,7 @@ export default function Preview() {
|
|
|
65
64
|
items={withDisabled}
|
|
66
65
|
value={third}
|
|
67
66
|
onValueChange={setThird}
|
|
68
|
-
label="
|
|
67
|
+
label="Workflow panels"
|
|
69
68
|
/>
|
|
70
69
|
<p className="mt-sm text-caption text-muted">
|
|
71
70
|
A disabled tab uses the native attribute.
|
|
@@ -78,11 +77,11 @@ export default function Preview() {
|
|
|
78
77
|
value={fourth}
|
|
79
78
|
onValueChange={setFourth}
|
|
80
79
|
variant="underline"
|
|
81
|
-
label="
|
|
80
|
+
label="Workspace filters"
|
|
82
81
|
/>
|
|
83
82
|
<p className="mt-sm text-caption text-muted">
|
|
84
|
-
Underline variant: the
|
|
85
|
-
|
|
83
|
+
Underline variant: the rule stays aligned to its label and the strip
|
|
84
|
+
scrolls sideways at narrow widths.
|
|
86
85
|
</p>
|
|
87
86
|
</div>
|
|
88
87
|
</div>
|