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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "0.58.0",
3
+ "version": "0.59.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -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;
@@ -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;
@@ -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
+ );
@@ -3,8 +3,8 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "emitDeclarationOnly": true,
6
- "outDir": "./render-utils",
7
- "rootDir": "./render-utils"
6
+ "outDir": "./",
7
+ "rootDir": "./"
8
8
  },
9
9
  "include": [
10
10
  "render-utils/**/*.ts",