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 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
 
@@ -1,4 +1,4 @@
1
- import { parseYAML } from "sliftutils/misc/yaml";
1
+ import { parseYAML } from "./yaml";
2
2
  import { retryFunctional } from "socket-function/src/batching";
3
3
  import { formatNumber } from "socket-function/src/formatting/format";
4
4
  import { getAPIKey } from "./apiKeys";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -0,0 +1,6 @@
1
+ export declare const redButton: string;
2
+ export declare const yellowButton: string;
3
+ export declare const greenButton: string;
4
+ export declare const errorMessage: string;
5
+ export declare const warnMessage: string;
6
+ export declare const AnchorClass: string;
@@ -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
  );