sliftutils 0.58.0 → 0.59.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 +14 -0
- package/package.json +1 -1
- package/render-utils/Anchor.d.ts +10 -0
- package/render-utils/Anchor.tsx +1 -5
- package/render-utils/colors.tsx +6 -1
- package/tsconfig.declarations.json +2 -2
package/index.d.ts
CHANGED
|
@@ -140,6 +140,20 @@ declare module "sliftutils/misc/zip" {
|
|
|
140
140
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
declare module "sliftutils/render-utils/Anchor" {
|
|
144
|
+
import preact from "preact";
|
|
145
|
+
import { URLParam } from "./URLParam";
|
|
146
|
+
export declare class Anchor extends preact.Component<{
|
|
147
|
+
className?: string;
|
|
148
|
+
params: ([URLParam, unknown] | [string, string])[];
|
|
149
|
+
button?: boolean;
|
|
150
|
+
} & Omit<preact.JSX.HTMLAttributes<HTMLAnchorElement>, "href">> {
|
|
151
|
+
render(): preact.JSX.Element;
|
|
152
|
+
}
|
|
153
|
+
export declare function createLinkRaw(params: ([URLParam, unknown])[]): string;
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
|
|
143
157
|
declare module "sliftutils/render-utils/DropdownCustom" {
|
|
144
158
|
import preact from "preact";
|
|
145
159
|
import { LengthOrPercentage } from "typesafecss/cssTypes";
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import preact from "preact";
|
|
2
|
+
import { URLParam } from "./URLParam";
|
|
3
|
+
export declare class Anchor extends preact.Component<{
|
|
4
|
+
className?: string;
|
|
5
|
+
params: ([URLParam, unknown] | [string, string])[];
|
|
6
|
+
button?: boolean;
|
|
7
|
+
} & Omit<preact.JSX.HTMLAttributes<HTMLAnchorElement>, "href">> {
|
|
8
|
+
render(): preact.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export declare function createLinkRaw(params: ([URLParam, unknown])[]): string;
|
package/render-utils/Anchor.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import preact from "preact";
|
|
2
2
|
import { URLParam, batchURLParamUpdate, getResolvedParam } from "./URLParam";
|
|
3
|
-
import { css, isNode } from "typesafecss";
|
|
4
|
-
|
|
5
|
-
export const AnchorClass = (
|
|
6
|
-
css.textDecoration("none").color("hsl(210, 75%, 65%)").opacity(0.8, "hover")
|
|
7
|
-
);
|
|
3
|
+
import { CSSType, css, isNode } from "typesafecss";
|
|
8
4
|
|
|
9
5
|
export class Anchor extends preact.Component<{
|
|
10
6
|
className?: string;
|
package/render-utils/colors.tsx
CHANGED
|
@@ -11,4 +11,9 @@ export const errorMessage = css.hsl(0, 75, 50).color("white")
|
|
|
11
11
|
export const warnMessage = css.hsl(50, 75, 50).color("hsl(0, 0%, 7%)", "important", "soft")
|
|
12
12
|
.padding("4px 6px", "soft")
|
|
13
13
|
.whiteSpace("pre-wrap").display("inline-block", "soft")
|
|
14
|
-
;
|
|
14
|
+
;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export const AnchorClass = (
|
|
18
|
+
css.textDecoration("none").color("hsl(210, 75%, 65%)").opacity(0.8, "hover")
|
|
19
|
+
);
|