@canonical/svelte-ds-app-launchpad 0.22.0-experimental.0 → 0.22.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.
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Attachment } from "svelte/attachments";
|
|
2
|
+
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
3
|
+
interface BaseProps {
|
|
3
4
|
ref?: HTMLElement;
|
|
4
|
-
|
|
5
|
+
[key: symbol]: Attachment<HTMLElement> | false | undefined | null;
|
|
5
6
|
}
|
|
7
|
+
interface ButtonPrimitiveAnchorAttributes extends Omit<HTMLAnchorAttributes, "type" | "href" | keyof BaseProps>, BaseProps {
|
|
8
|
+
href: HTMLAnchorAttributes["href"];
|
|
9
|
+
type?: never;
|
|
10
|
+
disabled?: HTMLButtonAttributes["disabled"];
|
|
11
|
+
}
|
|
12
|
+
interface ButtonPrimitiveButtonAttributes extends Omit<HTMLButtonAttributes, keyof BaseProps>, BaseProps {
|
|
13
|
+
href?: never;
|
|
14
|
+
}
|
|
15
|
+
export type ButtonPrimitiveProps = ButtonPrimitiveButtonAttributes | ButtonPrimitiveAnchorAttributes;
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/svelte-ds-app-launchpad",
|
|
3
3
|
"description": "Launchpad-specific components for the Pragma design system.",
|
|
4
|
-
"version": "0.22.0
|
|
4
|
+
"version": "0.22.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@biomejs/biome": "2.4.9",
|
|
55
|
-
"@canonical/biome-config": "^0.
|
|
55
|
+
"@canonical/biome-config": "^0.22.0",
|
|
56
56
|
"@canonical/design-tokens": "^0.6.0",
|
|
57
|
-
"@canonical/storybook-config": "^0.
|
|
58
|
-
"@canonical/storybook-helpers": "^0.
|
|
59
|
-
"@canonical/svelte-ssr-test": "^0.
|
|
60
|
-
"@canonical/typescript-config-svelte": "^0.
|
|
61
|
-
"@canonical/webarchitect": "^0.
|
|
57
|
+
"@canonical/storybook-config": "^0.22.0",
|
|
58
|
+
"@canonical/storybook-helpers": "^0.22.0",
|
|
59
|
+
"@canonical/svelte-ssr-test": "^0.22.0",
|
|
60
|
+
"@canonical/typescript-config-svelte": "^0.22.0",
|
|
61
|
+
"@canonical/webarchitect": "^0.22.0",
|
|
62
62
|
"@storybook/addon-docs": "^10.3.1",
|
|
63
63
|
"@storybook/addon-svelte-csf": "^5.0.11",
|
|
64
64
|
"@sveltejs/package": "^2.5.7",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"svelte": "^5.47.1"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "99e187cf46d8bd7f3933705322fa4ab2d4a711e7"
|
|
86
86
|
}
|