@canonical/svelte-ds-app-launchpad 0.22.0-experimental.0 → 0.22.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/dist/components/Breadcrumbs/common/ExpandedItems/ExpandedItems.svelte +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.js +1 -0
- package/dist/components/Popover/Popover.svelte +1 -1
- package/dist/components/Popover/types.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +1 -0
- package/dist/components/Switch/Switch.svelte +1 -1
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Switch/index.js +1 -0
- package/dist/components/Switch/types.d.ts +2 -2
- package/dist/components/common/ButtonPrimitive/types.d.ts +14 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/inernal.d.ts +1 -0
- package/dist/inernal.js +1 -0
- package/dist/useFunctions/index.d.ts +2 -0
- package/dist/useFunctions/index.js +2 -0
- package/package.json +14 -9
- /package/dist/{useIsMounted.svelte.d.ts → useFunctions/useIsMounted.svelte.d.ts} +0 -0
- /package/dist/{useIsMounted.svelte.js → useFunctions/useIsMounted.svelte.js} +0 -0
- /package/dist/{usePositionArea.svelte.d.ts → useFunctions/usePositionArea.svelte.d.ts} +0 -0
- /package/dist/{usePositionArea.svelte.js → useFunctions/usePositionArea.svelte.js} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Item } from "../common/index.js";
|
|
4
4
|
import type { ExpandedItemsProps } from "./types.js";
|
|
5
5
|
import "./styles.css";
|
|
6
|
-
import { useIsMounted } from "../../../../
|
|
6
|
+
import { useIsMounted } from "../../../../useFunctions/index.js";
|
|
7
7
|
|
|
8
8
|
const componentCssClassName = "ds expanded-items";
|
|
9
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Checkbox } from "./Checkbox.svelte";
|
|
2
|
-
export
|
|
2
|
+
export * from "./types.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<script lang="ts">
|
|
4
4
|
import { createAttachmentKey } from "svelte/attachments";
|
|
5
|
-
import { usePositionArea } from "../../
|
|
5
|
+
import { usePositionArea } from "../../useFunctions/index.js";
|
|
6
6
|
import type { PopoverMethods, PopoverProps } from "./types.js";
|
|
7
7
|
import "./styles.css";
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Snippet } from "svelte";
|
|
2
2
|
import type { Attachment } from "svelte/attachments";
|
|
3
3
|
import type { HTMLButtonAttributes, SvelteHTMLElements } from "svelte/elements";
|
|
4
|
-
import type { PositionArea, PositionTryFallbacks } from "../../
|
|
4
|
+
import type { PositionArea, PositionTryFallbacks } from "../../useFunctions/index.js";
|
|
5
5
|
type BaseProps = Omit<SvelteHTMLElements["div"], "children">;
|
|
6
6
|
type PopoverTarget = NonNullable<HTMLButtonAttributes["popovertarget"]>;
|
|
7
7
|
export type PopoverTriggerProps = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Radio } from "./Radio.svelte";
|
|
2
|
-
export
|
|
2
|
+
export * from "./types.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Switch } from "./Switch.svelte";
|
|
2
|
-
export
|
|
2
|
+
export * from "./types.js";
|
|
@@ -2,12 +2,12 @@ import type { HTMLInputAttributes } from "svelte/elements";
|
|
|
2
2
|
interface BaseProps extends Omit<HTMLInputAttributes, "children" | "role" | "indeterminate" | "aria-checked" | "aria-readonly"> {
|
|
3
3
|
type?: "checkbox";
|
|
4
4
|
}
|
|
5
|
-
interface CheckedControlledSwitchProps<T> extends BaseProps {
|
|
5
|
+
export interface CheckedControlledSwitchProps<T> extends BaseProps {
|
|
6
6
|
value?: T;
|
|
7
7
|
group?: never;
|
|
8
8
|
checked?: boolean;
|
|
9
9
|
}
|
|
10
|
-
interface GroupControlledSwitchProps<T> extends BaseProps {
|
|
10
|
+
export interface GroupControlledSwitchProps<T> extends BaseProps {
|
|
11
11
|
value: T;
|
|
12
12
|
group: T[];
|
|
13
13
|
checked?: never;
|
|
@@ -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/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/common/index.js";
|
package/dist/inernal.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/common/index.js";
|
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.
|
|
4
|
+
"version": "0.22.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,12 @@
|
|
|
11
11
|
"import": "./dist/index.js",
|
|
12
12
|
"svelte": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
-
"./styles.css": "./dist/index.css"
|
|
14
|
+
"./styles.css": "./dist/index.css",
|
|
15
|
+
"./internal": {
|
|
16
|
+
"types": "./dist/internal.d.js",
|
|
17
|
+
"import": "./dist/internal.js",
|
|
18
|
+
"svelte": "./dist/internal.js"
|
|
19
|
+
}
|
|
15
20
|
},
|
|
16
21
|
"files": [
|
|
17
22
|
"dist"
|
|
@@ -52,13 +57,13 @@
|
|
|
52
57
|
},
|
|
53
58
|
"devDependencies": {
|
|
54
59
|
"@biomejs/biome": "2.4.9",
|
|
55
|
-
"@canonical/biome-config": "^0.
|
|
60
|
+
"@canonical/biome-config": "^0.22.0",
|
|
56
61
|
"@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.
|
|
62
|
+
"@canonical/storybook-config": "^0.22.0",
|
|
63
|
+
"@canonical/storybook-helpers": "^0.22.0",
|
|
64
|
+
"@canonical/svelte-ssr-test": "^0.22.0",
|
|
65
|
+
"@canonical/typescript-config-svelte": "^0.22.0",
|
|
66
|
+
"@canonical/webarchitect": "^0.22.0",
|
|
62
67
|
"@storybook/addon-docs": "^10.3.1",
|
|
63
68
|
"@storybook/addon-svelte-csf": "^5.0.11",
|
|
64
69
|
"@sveltejs/package": "^2.5.7",
|
|
@@ -82,5 +87,5 @@
|
|
|
82
87
|
"peerDependencies": {
|
|
83
88
|
"svelte": "^5.47.1"
|
|
84
89
|
},
|
|
85
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "ed4c6ecb92aa80b1b888d68e3580d7420b276aa5"
|
|
86
91
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|