@designa8/vibedesign-snapchat-deepseek-image-v1-2-176b 0.0.21 → 0.0.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 +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/src/atoms/Icon/Icon.tsx +12 -3
- package/src/atoms/Wizard/Wizard.tsx +10 -1
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.0.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.0.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
|
@@ -250,7 +250,7 @@ var Icon = React.forwardRef(
|
|
|
250
250
|
name,
|
|
251
251
|
size = "md",
|
|
252
252
|
strokeWidth = 2,
|
|
253
|
-
tone
|
|
253
|
+
tone,
|
|
254
254
|
framed = false,
|
|
255
255
|
className,
|
|
256
256
|
style,
|
|
@@ -260,6 +260,7 @@ var Icon = React.forwardRef(
|
|
|
260
260
|
const named = typeof size === "string";
|
|
261
261
|
const dimension = named ? SIZE_TOKENS[size].token : `${size}px`;
|
|
262
262
|
const px = named ? SIZE_TOKENS[size].px : size;
|
|
263
|
+
const resolvedTone = tone ?? (framed ? "on-inverse" : "default");
|
|
263
264
|
const svg = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
264
265
|
"svg",
|
|
265
266
|
{
|
|
@@ -270,7 +271,7 @@ var Icon = React.forwardRef(
|
|
|
270
271
|
strokeWidth,
|
|
271
272
|
strokeLinecap: "round",
|
|
272
273
|
strokeLinejoin: "round",
|
|
273
|
-
className: cx(TONE_CLASS[
|
|
274
|
+
className: cx(TONE_CLASS[resolvedTone], !framed && className),
|
|
274
275
|
style: {
|
|
275
276
|
width: dimension,
|
|
276
277
|
height: dimension,
|
package/dist/index.js
CHANGED
|
@@ -131,7 +131,7 @@ var Icon = React.forwardRef(
|
|
|
131
131
|
name,
|
|
132
132
|
size = "md",
|
|
133
133
|
strokeWidth = 2,
|
|
134
|
-
tone
|
|
134
|
+
tone,
|
|
135
135
|
framed = false,
|
|
136
136
|
className,
|
|
137
137
|
style,
|
|
@@ -141,6 +141,7 @@ var Icon = React.forwardRef(
|
|
|
141
141
|
const named = typeof size === "string";
|
|
142
142
|
const dimension = named ? SIZE_TOKENS[size].token : `${size}px`;
|
|
143
143
|
const px = named ? SIZE_TOKENS[size].px : size;
|
|
144
|
+
const resolvedTone = tone ?? (framed ? "on-inverse" : "default");
|
|
144
145
|
const svg = /* @__PURE__ */ jsx(
|
|
145
146
|
"svg",
|
|
146
147
|
{
|
|
@@ -151,7 +152,7 @@ var Icon = React.forwardRef(
|
|
|
151
152
|
strokeWidth,
|
|
152
153
|
strokeLinecap: "round",
|
|
153
154
|
strokeLinejoin: "round",
|
|
154
|
-
className: cx(TONE_CLASS[
|
|
155
|
+
className: cx(TONE_CLASS[resolvedTone], !framed && className),
|
|
155
156
|
style: {
|
|
156
157
|
width: dimension,
|
|
157
158
|
height: dimension,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designa8/vibedesign-snapchat-deepseek-image-v1-2-176b",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "Complete design system \"My Project snapchat-deepseek-image-v1\" generated by Atoms Design.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
package/src/atoms/Icon/Icon.tsx
CHANGED
|
@@ -24,7 +24,11 @@ export interface IconProps
|
|
|
24
24
|
size?: IconSize | number;
|
|
25
25
|
/** Stroke weight. Defaults to the regular iconography weight. */
|
|
26
26
|
strokeWidth?: number;
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Colour treatment. Defaults to `default`, except inside a `framed` tile,
|
|
29
|
+
* where it defaults to `on-inverse` so the glyph stays legible on the dark
|
|
30
|
+
* tile. An explicit tone always wins.
|
|
31
|
+
*/
|
|
28
32
|
tone?: IconTone;
|
|
29
33
|
/**
|
|
30
34
|
* Renders the glyph on the dark inverse tile shown in the reference board.
|
|
@@ -81,7 +85,7 @@ export const Icon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
|
81
85
|
name,
|
|
82
86
|
size = "md",
|
|
83
87
|
strokeWidth = 2,
|
|
84
|
-
tone
|
|
88
|
+
tone,
|
|
85
89
|
framed = false,
|
|
86
90
|
className,
|
|
87
91
|
style,
|
|
@@ -95,6 +99,11 @@ export const Icon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
|
95
99
|
const dimension = named ? SIZE_TOKENS[size].token : `${size}px`;
|
|
96
100
|
const px = named ? SIZE_TOKENS[size].px : size;
|
|
97
101
|
|
|
102
|
+
// A framed glyph sits on the dark inverse tile, so it only falls back to
|
|
103
|
+
// the on-inverse tone when no tone is passed explicitly — otherwise an
|
|
104
|
+
// ink glyph would paint ink-on-ink on the dark tile in light mode.
|
|
105
|
+
const resolvedTone: IconTone = tone ?? (framed ? "on-inverse" : "default");
|
|
106
|
+
|
|
98
107
|
// An unknown key renders an empty box at the requested size rather than
|
|
99
108
|
// throwing, so a typo degrades instead of blanking the whole surface.
|
|
100
109
|
const svg = (
|
|
@@ -106,7 +115,7 @@ export const Icon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
|
106
115
|
strokeWidth={strokeWidth}
|
|
107
116
|
strokeLinecap="round"
|
|
108
117
|
strokeLinejoin="round"
|
|
109
|
-
className={cx(TONE_CLASS[
|
|
118
|
+
className={cx(TONE_CLASS[resolvedTone], !framed && className)}
|
|
110
119
|
style={{
|
|
111
120
|
width: dimension,
|
|
112
121
|
height: dimension,
|
|
@@ -89,7 +89,16 @@ const AGE_MAX_OPTIONS = [
|
|
|
89
89
|
type GlyphName = React.ComponentProps<typeof Icon>["name"];
|
|
90
90
|
|
|
91
91
|
export interface WizardProps
|
|
92
|
-
extends Omit<
|
|
92
|
+
extends Omit<
|
|
93
|
+
React.HTMLAttributes<HTMLDivElement>,
|
|
94
|
+
| "onChange"
|
|
95
|
+
| "onSubmit"
|
|
96
|
+
| "defaultValue"
|
|
97
|
+
| "defaultChecked"
|
|
98
|
+
| "value"
|
|
99
|
+
| "step"
|
|
100
|
+
| "title"
|
|
101
|
+
> {
|
|
93
102
|
/** Controlled current step. */
|
|
94
103
|
step?: WizardStep;
|
|
95
104
|
/** Initial step when the wizard owns its own navigation. */
|