@designa8/vibedesign-snapchat-deepseek-image-v1-2-176b 0.1.21 → 0.1.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 +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/molecules/CardFooter/CardFooter.tsx +7 -7
- package/src/molecules/CardFooter/preview.tsx +19 -19
- package/src/molecules/FileUpload/FileUpload.tsx +8 -8
- package/src/molecules/FileUpload/preview.tsx +10 -18
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-snapchat-deepseek-image-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.1.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.1.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/index.cjs
CHANGED
|
@@ -5233,7 +5233,7 @@ var FileUpload = React36.forwardRef(
|
|
|
5233
5233
|
items = [],
|
|
5234
5234
|
thumbnails = [],
|
|
5235
5235
|
maxFiles = 6,
|
|
5236
|
-
addLabel = "Add
|
|
5236
|
+
addLabel = "Add renders",
|
|
5237
5237
|
dropLabel = "Drop to upload",
|
|
5238
5238
|
onAdd,
|
|
5239
5239
|
onRemove,
|
|
@@ -5346,7 +5346,7 @@ var FileUpload = React36.forwardRef(
|
|
|
5346
5346
|
className: "h-full gap-0",
|
|
5347
5347
|
imgProps: { className: "h-full w-full object-cover" }
|
|
5348
5348
|
}
|
|
5349
|
-
) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { "aria-hidden": "true", className: THUMB_TILE, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "
|
|
5349
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { "aria-hidden": "true", className: THUMB_TILE, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "layers", size: 18, strokeWidth: 1.75, tone: "inherit" }) }),
|
|
5350
5350
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
5351
5351
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5352
5352
|
"span",
|
package/dist/index.js
CHANGED
|
@@ -5114,7 +5114,7 @@ var FileUpload = React36.forwardRef(
|
|
|
5114
5114
|
items = [],
|
|
5115
5115
|
thumbnails = [],
|
|
5116
5116
|
maxFiles = 6,
|
|
5117
|
-
addLabel = "Add
|
|
5117
|
+
addLabel = "Add renders",
|
|
5118
5118
|
dropLabel = "Drop to upload",
|
|
5119
5119
|
onAdd,
|
|
5120
5120
|
onRemove,
|
|
@@ -5227,7 +5227,7 @@ var FileUpload = React36.forwardRef(
|
|
|
5227
5227
|
className: "h-full gap-0",
|
|
5228
5228
|
imgProps: { className: "h-full w-full object-cover" }
|
|
5229
5229
|
}
|
|
5230
|
-
) }) : /* @__PURE__ */ jsx35("span", { "aria-hidden": "true", className: THUMB_TILE, children: /* @__PURE__ */ jsx35(Icon, { name: "
|
|
5230
|
+
) }) : /* @__PURE__ */ jsx35("span", { "aria-hidden": "true", className: THUMB_TILE, children: /* @__PURE__ */ jsx35(Icon, { name: "layers", size: 18, strokeWidth: 1.75, tone: "inherit" }) }),
|
|
5231
5231
|
/* @__PURE__ */ jsxs32("div", { className: "flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
5232
5232
|
/* @__PURE__ */ jsx35(
|
|
5233
5233
|
"span",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { Switch } from "../../atoms/Switch";
|
|
|
7
7
|
|
|
8
8
|
/** One outlined action pill in the footer's left cluster. */
|
|
9
9
|
export interface CardFooterAction {
|
|
10
|
-
/** Pill label, e.g. "
|
|
10
|
+
/** Pill label, e.g. "New render". */
|
|
11
11
|
label: string;
|
|
12
12
|
/** Leading glyph rendered through the shared `Icon` atom. */
|
|
13
13
|
icon?: IconName;
|
|
@@ -15,7 +15,7 @@ export interface CardFooterAction {
|
|
|
15
15
|
onClick?: () => void;
|
|
16
16
|
/**
|
|
17
17
|
* Toggled-on treatment: the pill carries the soft surface instead of the
|
|
18
|
-
* hairline outline, matching the
|
|
18
|
+
* hairline outline, matching the engaged state of a toggled pill.
|
|
19
19
|
*/
|
|
20
20
|
pressed?: boolean;
|
|
21
21
|
/** Accessible name override for the pill. Defaults to `label`. */
|
|
@@ -26,12 +26,12 @@ export interface CardFooterProps
|
|
|
26
26
|
extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
|
|
27
27
|
/**
|
|
28
28
|
* Left cluster of outlined action pills. The footer renders them in order,
|
|
29
|
-
* side by side and vertically centred
|
|
29
|
+
* side by side and vertically centred.
|
|
30
30
|
*/
|
|
31
31
|
actions?: CardFooterAction[];
|
|
32
32
|
/**
|
|
33
|
-
* Node pinned to the far right of the strip, on its own
|
|
34
|
-
*
|
|
33
|
+
* Node pinned to the far right of the strip, on its own, separated from the
|
|
34
|
+
* pill cluster.
|
|
35
35
|
*/
|
|
36
36
|
trailing?: React.ReactNode;
|
|
37
37
|
/** Note copy in the right-hand box — the sentence before the inline link. */
|
|
@@ -58,8 +58,8 @@ const cx = (...parts: Array<string | false | null | undefined>) =>
|
|
|
58
58
|
/**
|
|
59
59
|
* A card footer is one strip: a left cluster of outlined action pills, an
|
|
60
60
|
* optional right-hand meta box, and an optional far-right trailing action.
|
|
61
|
-
* Every cluster is optional, so this same molecule
|
|
62
|
-
*
|
|
61
|
+
* Every cluster is optional, so this same molecule covers both the
|
|
62
|
+
* "actions only" and the "meta + toggle" arrangements.
|
|
63
63
|
*
|
|
64
64
|
* Every action is the project's `Button` (secondary — its 24px radius clamps to
|
|
65
65
|
* a pill on a 32–40px control), the link is `Link` (text-decoration underline,
|
|
@@ -3,48 +3,48 @@ import { CardFooter } from "./CardFooter";
|
|
|
3
3
|
|
|
4
4
|
export default function CardFooterPreview() {
|
|
5
5
|
const [notify, setNotify] = React.useState(true);
|
|
6
|
-
const [
|
|
6
|
+
const [reviews, setReviews] = React.useState(false);
|
|
7
7
|
|
|
8
8
|
return (
|
|
9
9
|
<div className="w-full max-w-3xl mx-auto p-lg space-y-lg">
|
|
10
10
|
<CardFooter
|
|
11
11
|
actions={[
|
|
12
|
-
{ label: "
|
|
13
|
-
{ label: "
|
|
12
|
+
{ label: "New scene", icon: "sparkles" },
|
|
13
|
+
{ label: "Open library", icon: "folder" },
|
|
14
14
|
]}
|
|
15
|
-
note="
|
|
15
|
+
note="Jordan Reyes can review drafts before they leave the studio."
|
|
16
16
|
linkLabel="Learn more"
|
|
17
|
-
linkHref="#
|
|
18
|
-
switchLabel="Notify me when a
|
|
17
|
+
linkHref="#review-settings"
|
|
18
|
+
switchLabel="Notify me when a draft is ready for review"
|
|
19
19
|
switchChecked={notify}
|
|
20
20
|
onSwitchChange={setNotify}
|
|
21
21
|
/>
|
|
22
22
|
|
|
23
23
|
<CardFooter
|
|
24
24
|
actions={[
|
|
25
|
-
{ label: "
|
|
26
|
-
{ label: "
|
|
25
|
+
{ label: "New scene", icon: "sparkles" },
|
|
26
|
+
{ label: "Open library", icon: "folder" },
|
|
27
27
|
]}
|
|
28
|
-
note="
|
|
28
|
+
note="Renders and exports land in your project feed."
|
|
29
29
|
linkLabel="Learn more"
|
|
30
|
-
linkHref="#
|
|
31
|
-
switchLabel="Notify me about
|
|
32
|
-
switchChecked={
|
|
33
|
-
onSwitchChange={
|
|
30
|
+
linkHref="#feed-settings"
|
|
31
|
+
switchLabel="Notify me about finished renders and exports"
|
|
32
|
+
switchChecked={reviews}
|
|
33
|
+
onSwitchChange={setReviews}
|
|
34
34
|
/>
|
|
35
35
|
|
|
36
36
|
<CardFooter
|
|
37
37
|
actions={[
|
|
38
|
-
{ label: "
|
|
39
|
-
{ label: "
|
|
38
|
+
{ label: "Duplicate preset", icon: "plus" },
|
|
39
|
+
{ label: "Save to collection", icon: "folder", pressed: true },
|
|
40
40
|
]}
|
|
41
41
|
/>
|
|
42
42
|
|
|
43
43
|
<CardFooter
|
|
44
|
-
note="
|
|
45
|
-
linkLabel="
|
|
46
|
-
linkHref="#
|
|
47
|
-
switchLabel="Review
|
|
44
|
+
note="Amara Osei left comments on three shots in the autumn campaign."
|
|
45
|
+
linkLabel="View notes"
|
|
46
|
+
linkHref="#notes"
|
|
47
|
+
switchLabel="Review comments from collaborators"
|
|
48
48
|
defaultSwitchChecked
|
|
49
49
|
/>
|
|
50
50
|
</div>
|
|
@@ -17,7 +17,7 @@ export type FileUploadItemStatus = "uploading" | "complete" | "error";
|
|
|
17
17
|
export interface FileUploadItem {
|
|
18
18
|
/** Stable key for the row. */
|
|
19
19
|
id: string;
|
|
20
|
-
/**
|
|
20
|
+
/** Asset name — the primary line. */
|
|
21
21
|
name: string;
|
|
22
22
|
/** Human readable size ("2.4 MB"). Shown beside the progress track and on resting rows. */
|
|
23
23
|
size?: string;
|
|
@@ -79,11 +79,11 @@ const THUMB_TILE =
|
|
|
79
79
|
"border border-hairline-soft bg-surface-soft text-muted-soft";
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* File upload control. Four visual families live in one
|
|
83
|
-
* are the same affordance at different points in its life
|
|
84
|
-
*
|
|
85
|
-
* or failed). Every colour, radius, and space value is a
|
|
86
|
-
* whole set flips with the theme.
|
|
82
|
+
* File upload control for a creative workspace. Four visual families live in one
|
|
83
|
+
* component because they are the same affordance at different points in its life
|
|
84
|
+
* cycle: the empty asset-tile grid, the drag-over zone, and the transfer row
|
|
85
|
+
* (uploading, complete, or failed). Every colour, radius, and space value is a
|
|
86
|
+
* project token, so the whole set flips with the theme.
|
|
87
87
|
*/
|
|
88
88
|
export const FileUpload = React.forwardRef<HTMLDivElement, FileUploadProps>(
|
|
89
89
|
(
|
|
@@ -92,7 +92,7 @@ export const FileUpload = React.forwardRef<HTMLDivElement, FileUploadProps>(
|
|
|
92
92
|
items = [],
|
|
93
93
|
thumbnails = [],
|
|
94
94
|
maxFiles = 6,
|
|
95
|
-
addLabel = "Add
|
|
95
|
+
addLabel = "Add renders",
|
|
96
96
|
dropLabel = "Drop to upload",
|
|
97
97
|
onAdd,
|
|
98
98
|
onRemove,
|
|
@@ -218,7 +218,7 @@ export const FileUpload = React.forwardRef<HTMLDivElement, FileUploadProps>(
|
|
|
218
218
|
</div>
|
|
219
219
|
) : (
|
|
220
220
|
<span aria-hidden="true" className={THUMB_TILE}>
|
|
221
|
-
<Icon name="
|
|
221
|
+
<Icon name="layers" size={18} strokeWidth={1.75} tone="inherit" />
|
|
222
222
|
</span>
|
|
223
223
|
)}
|
|
224
224
|
|
|
@@ -2,17 +2,10 @@ import * as React from "react";
|
|
|
2
2
|
import { Button } from "../../atoms/Button";
|
|
3
3
|
import { FileUpload, type FileUploadItem } from "./FileUpload";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
alt: "Coastal cove at golden hour",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: "t2",
|
|
13
|
-
src: "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=200&q=70",
|
|
14
|
-
alt: "Portrait of a person outdoors",
|
|
15
|
-
},
|
|
5
|
+
/** Attached asset slots. No remote media — the Image frame renders an empty tile. */
|
|
6
|
+
const ASSET_THUMBS = [
|
|
7
|
+
{ id: "a1", alt: "Harbour render, draft two" },
|
|
8
|
+
{ id: "a2", alt: "Lumen preset thumbnail, unused slot" },
|
|
16
9
|
];
|
|
17
10
|
|
|
18
11
|
const makeItems = (
|
|
@@ -20,8 +13,8 @@ const makeItems = (
|
|
|
20
13
|
progress: number,
|
|
21
14
|
): FileUploadItem[] => [
|
|
22
15
|
{
|
|
23
|
-
id: "
|
|
24
|
-
name: "
|
|
16
|
+
id: "render-04",
|
|
17
|
+
name: "harbour-render-04.exr",
|
|
25
18
|
size: "2.4 MB",
|
|
26
19
|
progress,
|
|
27
20
|
status,
|
|
@@ -29,7 +22,7 @@ const makeItems = (
|
|
|
29
22
|
];
|
|
30
23
|
|
|
31
24
|
export default function FileUploadPreview() {
|
|
32
|
-
const [thumbs, setThumbs] = React.useState(
|
|
25
|
+
const [thumbs, setThumbs] = React.useState(ASSET_THUMBS);
|
|
33
26
|
const [dragState, setDragState] = React.useState<"dragover" | "empty">(
|
|
34
27
|
"dragover",
|
|
35
28
|
);
|
|
@@ -62,7 +55,7 @@ export default function FileUploadPreview() {
|
|
|
62
55
|
return (
|
|
63
56
|
<div className="w-full max-w-3xl mx-auto bg-canvas p-lg space-y-lg">
|
|
64
57
|
<section className="space-y-sm">
|
|
65
|
-
<p className={caption}>Empty (with
|
|
58
|
+
<p className={caption}>Empty (with asset tile grid)</p>
|
|
66
59
|
<FileUpload
|
|
67
60
|
state="empty"
|
|
68
61
|
thumbnails={thumbs}
|
|
@@ -73,9 +66,8 @@ export default function FileUploadPreview() {
|
|
|
73
66
|
: [
|
|
74
67
|
...current,
|
|
75
68
|
{
|
|
76
|
-
id: `
|
|
77
|
-
|
|
78
|
-
alt: "Attached photo preview",
|
|
69
|
+
id: `a${current.length + 1}`,
|
|
70
|
+
alt: "Attached asset slot",
|
|
79
71
|
},
|
|
80
72
|
],
|
|
81
73
|
)
|