@kahitsan/ksui 0.7.0 → 0.7.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kahitsan/ksui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "ksui is a set of shared SolidJS UI components plus the @kserp/host-ui type contract for KahitSan/Hilinga plugins. Published to the public npm registry and consumed as a normal dependency. Ships source under a `solid` export condition so the consumer's vite-plugin-solid compiles it with solid-js + @kserp/host-ui externalized to the host runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"./host-ui": {
|
|
16
16
|
"types": "./host-ui.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./components/*": {
|
|
19
|
+
"solid": "./src/components/*.tsx",
|
|
20
|
+
"types": "./src/components/*.tsx",
|
|
21
|
+
"development": "./src/components/*.tsx",
|
|
22
|
+
"import": "./src/components/*.tsx"
|
|
17
23
|
}
|
|
18
24
|
},
|
|
19
25
|
"files": [
|
|
@@ -75,8 +75,12 @@ export type ButtonIntent = "primary" | "danger" | "secondary";
|
|
|
75
75
|
export type ButtonVariant = "clip1" | "clip2" | "ghost" | "link";
|
|
76
76
|
|
|
77
77
|
export interface ButtonProps {
|
|
78
|
-
/** Element / component to render as (defaults to "button").
|
|
79
|
-
as
|
|
78
|
+
/** Element / component to render as (defaults to "button"). Intentionally
|
|
79
|
+
* permissive: a polymorphic `as` must accept anything from a tag string to a
|
|
80
|
+
* router link component with its own required props (e.g. SolidJS Router's
|
|
81
|
+
* `A`, which requires `href`), so it is typed `any` rather than a narrow
|
|
82
|
+
* `Component<Record<string, unknown>>` that would reject those callers. */
|
|
83
|
+
as?: any;
|
|
80
84
|
intent?: ButtonIntent;
|
|
81
85
|
variant?: ButtonVariant;
|
|
82
86
|
noRipple?: boolean;
|