@photoroom/ui 0.1.232 → 0.1.234
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/colors.css +45 -8
- package/components/action/Button/utils.d.ts +1 -1
- package/components/action/Button/utils.d.ts.map +1 -1
- package/components/action/HeroButton/HeroButton.d.ts +1 -1
- package/components/action/HeroButton/HeroButton.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +8 -2
- package/package.json +1 -1
- package/theme.css +11 -4
package/colors.css
CHANGED
|
@@ -27,6 +27,31 @@
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/*
|
|
31
|
+
* Flash gradient backgrounds (same in light + dark)
|
|
32
|
+
*/
|
|
33
|
+
@utility bg-background-flash {
|
|
34
|
+
background-image: linear-gradient(
|
|
35
|
+
to right,
|
|
36
|
+
var(--color-yellow-500),
|
|
37
|
+
var(--color-yellow-light-500)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
@utility bg-background-flash-hover {
|
|
41
|
+
background-image: linear-gradient(
|
|
42
|
+
to right,
|
|
43
|
+
var(--color-yellow-400),
|
|
44
|
+
var(--color-yellow-light-400)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
@utility bg-background-flash-down {
|
|
48
|
+
background-image: linear-gradient(
|
|
49
|
+
to right,
|
|
50
|
+
var(--color-yellow-600),
|
|
51
|
+
var(--color-yellow-light-600)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
30
55
|
/*
|
|
31
56
|
* Pro gradient on text/content elements (same in light + dark)
|
|
32
57
|
*/
|
|
@@ -142,6 +167,16 @@
|
|
|
142
167
|
/* Camera accent */
|
|
143
168
|
--color-camera-accent-500: #f5b63d;
|
|
144
169
|
|
|
170
|
+
/* Yellow */
|
|
171
|
+
--color-yellow-400: #edf280;
|
|
172
|
+
--color-yellow-500: #e5ed49;
|
|
173
|
+
--color-yellow-600: #c3c93e;
|
|
174
|
+
|
|
175
|
+
/* Yellow light */
|
|
176
|
+
--color-yellow-light-400: #feffea;
|
|
177
|
+
--color-yellow-light-500: #fdffd5;
|
|
178
|
+
--color-yellow-light-600: #e4e5c0;
|
|
179
|
+
|
|
145
180
|
/* Branding */
|
|
146
181
|
--color-secondary-moon-grape: #626eff;
|
|
147
182
|
--color-secondary-electric-litchi: #ff86f6;
|
|
@@ -262,10 +297,6 @@
|
|
|
262
297
|
--color-misc-ai-image: #5383ff;
|
|
263
298
|
--color-misc-ai-video: #00cd9c;
|
|
264
299
|
--color-misc-automated-exports: #aa4fff;
|
|
265
|
-
|
|
266
|
-
/* Yellow flash */
|
|
267
|
-
--color-misc-yellow: #e5ed49;
|
|
268
|
-
--color-misc-yellow-light: #fdffd5;
|
|
269
300
|
}
|
|
270
301
|
|
|
271
302
|
/*
|
|
@@ -347,6 +378,16 @@
|
|
|
347
378
|
/* Camera accent */
|
|
348
379
|
--color-camera-accent-500: #f5b63d;
|
|
349
380
|
|
|
381
|
+
/* Yellow */
|
|
382
|
+
--color-yellow-400: #edf280;
|
|
383
|
+
--color-yellow-500: #e5ed49;
|
|
384
|
+
--color-yellow-600: #c3c93e;
|
|
385
|
+
|
|
386
|
+
/* Yellow light */
|
|
387
|
+
--color-yellow-light-400: #feffea;
|
|
388
|
+
--color-yellow-light-500: #fdffd5;
|
|
389
|
+
--color-yellow-light-600: #e4e5c0;
|
|
390
|
+
|
|
350
391
|
/*
|
|
351
392
|
* ALIASES
|
|
352
393
|
*/
|
|
@@ -449,10 +490,6 @@
|
|
|
449
490
|
--color-misc-ai-image: #5383ff;
|
|
450
491
|
--color-misc-ai-video: #00cd9c;
|
|
451
492
|
--color-misc-automated-exports: #aa4fff;
|
|
452
|
-
|
|
453
|
-
/* Yellow flash */
|
|
454
|
-
--color-misc-yellow: #e5ed49;
|
|
455
|
-
--color-misc-yellow-light: #fdffd5;
|
|
456
493
|
}
|
|
457
494
|
.theme-dark .bg-background-pro-hover {
|
|
458
495
|
background-image: linear-gradient(
|
|
@@ -8,7 +8,7 @@ type ButtonLayoutParams = {
|
|
|
8
8
|
export type ButtonLayouts = "icon" | "icon-and-label" | "label" | "stack" | "loading";
|
|
9
9
|
export declare function getButtonLayout({ icon, stacked, children }: ButtonLayoutParams): ButtonLayouts;
|
|
10
10
|
export declare const buttonVariants: (props?: ({
|
|
11
|
-
variant?: "accent" | "secondary-accent" | "borderless-accent" | "primary" | "secondary" | "borderless" | "secondary-outline" | "negative" | "pro" | "on-dark" | "secondary-on-dark" | "borderless-on-dark" | null | undefined;
|
|
11
|
+
variant?: "accent" | "secondary-accent" | "borderless-accent" | "primary" | "secondary" | "borderless" | "secondary-outline" | "negative" | "pro" | "flash" | "on-dark" | "secondary-on-dark" | "borderless-on-dark" | null | undefined;
|
|
12
12
|
density?: "compact" | "regular" | "spacious" | null | undefined;
|
|
13
13
|
loading?: boolean | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/action/Button/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,kBAAkB,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtF,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,kBAAkB,GAAG,aAAa,CAU9F;AAED,eAAO,MAAM,cAAc;;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/action/Button/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,kBAAkB,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtF,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,kBAAkB,GAAG,aAAa,CAU9F;AAED,eAAO,MAAM,cAAc;;;;8EA6C1B,CAAC;AAsBF,eAAO,MAAM,aAAa;;;;8EAwDxB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;8EAQ3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;8EAQ3B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ForwardRefComponent } from "../../polymorphic";
|
|
2
2
|
export type HeroButtonProps = Readonly<{
|
|
3
|
-
variant?: "accent" | "primary" | "on-dark" | "pro";
|
|
3
|
+
variant?: "accent" | "primary" | "on-dark" | "pro" | "flash";
|
|
4
4
|
size?: "medium" | "large";
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
badge?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroButton.d.ts","sourceRoot":"","sources":["../../../../src/components/action/HeroButton/HeroButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"HeroButton.d.ts","sourceRoot":"","sources":["../../../../src/components/action/HeroButton/HeroButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC;IAC7D,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,qBAAqB,GAAG,mBAAmB,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;AAE5E,eAAO,MAAM,UAAU,EAkFlB,qBAAqB,CAAC"}
|