sliftutils 0.60.0 → 0.61.0
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/index.d.ts +10 -0
- package/misc/openrouter.ts +1 -1
- package/package.json +1 -1
- package/render-utils/colors.d.ts +6 -0
- package/render-utils/colors.tsx +6 -8
package/index.d.ts
CHANGED
|
@@ -483,6 +483,16 @@ declare module "sliftutils/render-utils/asyncObservable" {
|
|
|
483
483
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
+
declare module "sliftutils/render-utils/colors" {
|
|
487
|
+
export declare const redButton: string;
|
|
488
|
+
export declare const yellowButton: string;
|
|
489
|
+
export declare const greenButton: string;
|
|
490
|
+
export declare const errorMessage: string;
|
|
491
|
+
export declare const warnMessage: string;
|
|
492
|
+
export declare const AnchorClass: string;
|
|
493
|
+
|
|
494
|
+
}
|
|
495
|
+
|
|
486
496
|
declare module "sliftutils/render-utils/mobxTyped" {
|
|
487
497
|
export declare function configureMobxNextFrameScheduler(): void;
|
|
488
498
|
|
package/misc/openrouter.ts
CHANGED
package/package.json
CHANGED
package/render-utils/colors.tsx
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { css } from "typesafecss";
|
|
2
2
|
|
|
3
|
-
export const redButton = css.hsl(0, 75, 50).bord(1, "hsl(0, 75%, 75%)").background("hsl(0, 75%, 75%)", "hover");
|
|
4
|
-
export const yellowButton = css.hsl(50, 90, 50).bord(1, "hsl(40, 75%, 75%)").color("hsl(0, 0%, 16%)!important").background("hsl(40, 75%, 75%)", "hover");
|
|
5
|
-
export const greenButton = css.hsl(110, 65, 45).bord(1, { h: 110, s: 65, l: 75 }).background("hsl(110, 65%, 90%)", "hover");
|
|
3
|
+
export const redButton = css.hsl(0, 75, 50).bord(1, "hsl(0, 75%, 75%)").background("hsl(0, 75%, 75%)", "hover") as string;
|
|
4
|
+
export const yellowButton = css.hsl(50, 90, 50).bord(1, "hsl(40, 75%, 75%)").color("hsl(0, 0%, 16%)!important").background("hsl(40, 75%, 75%)", "hover") as string;
|
|
5
|
+
export const greenButton = css.hsl(110, 65, 45).bord(1, { h: 110, s: 65, l: 75 }).background("hsl(110, 65%, 90%)", "hover") as string;
|
|
6
6
|
|
|
7
7
|
export const errorMessage = css.hsl(0, 75, 50).color("white")
|
|
8
8
|
.padding("4px 6px", "soft")
|
|
9
|
-
.whiteSpace("pre-wrap").display("inline-block", "soft")
|
|
10
|
-
;
|
|
9
|
+
.whiteSpace("pre-wrap").display("inline-block", "soft") as string;
|
|
11
10
|
export const warnMessage = css.hsl(50, 75, 50).color("hsl(0, 0%, 7%)", "important", "soft")
|
|
12
11
|
.padding("4px 6px", "soft")
|
|
13
|
-
.whiteSpace("pre-wrap").display("inline-block", "soft")
|
|
14
|
-
;
|
|
12
|
+
.whiteSpace("pre-wrap").display("inline-block", "soft") as string;
|
|
15
13
|
|
|
16
14
|
|
|
17
15
|
export const AnchorClass = (
|
|
18
|
-
css.textDecoration("none").color("hsl(210, 75%, 65%)").opacity(0.8, "hover")
|
|
16
|
+
css.textDecoration("none").color("hsl(210, 75%, 65%)").opacity(0.8, "hover") as string
|
|
19
17
|
);
|