@canonical/svelte-ds-app-launchpad 0.44.0 → 0.45.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/dist/components/Button/styles.css +4 -0
- package/dist/components/Checkbox/styles.css +1 -0
- package/dist/components/DescriptionList/DescriptionList.svelte +16 -4
- package/dist/components/DescriptionList/DescriptionList.svelte.d.ts +16 -4
- package/dist/components/DescriptionList/common/Item/Item.svelte +2 -3
- package/dist/components/DescriptionList/common/Item/Item.svelte.d.ts +1 -2
- package/dist/components/DescriptionList/common/Item/types.d.ts +1 -13
- package/dist/components/DescriptionList/index.d.ts +5 -1
- package/dist/components/Link/styles.css +1 -0
- package/dist/components/Radio/styles.css +1 -0
- package/dist/components/Switch/styles.css +1 -0
- package/dist/styles/index.css +1 -1
- package/package.json +9 -9
|
@@ -34,10 +34,22 @@
|
|
|
34
34
|
## Example Usage
|
|
35
35
|
```svelte
|
|
36
36
|
<DescriptionList layout="list">
|
|
37
|
-
<DescriptionList.Item
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
<DescriptionList.Item>
|
|
38
|
+
<dt>ID</dt>
|
|
39
|
+
<dd>134</dd>
|
|
40
|
+
</DescriptionList.Item>
|
|
41
|
+
<DescriptionList.Item>
|
|
42
|
+
<dt>Requested by</dt>
|
|
43
|
+
<dd>John Smith</dd>
|
|
44
|
+
</DescriptionList.Item>
|
|
45
|
+
<DescriptionList.Item>
|
|
46
|
+
<dt>Created</dt>
|
|
47
|
+
<dd>2023-10-01T12:00:00Z</dd>
|
|
48
|
+
</DescriptionList.Item>
|
|
49
|
+
<DescriptionList.Item>
|
|
50
|
+
<dt>Status</dt>
|
|
51
|
+
<dd>Active</dd>
|
|
52
|
+
</DescriptionList.Item>
|
|
41
53
|
</DescriptionList>
|
|
42
54
|
```
|
|
43
55
|
-->
|
|
@@ -6,10 +6,22 @@ import type { DescriptionListProps } from "./types.js";
|
|
|
6
6
|
* ## Example Usage
|
|
7
7
|
* ```svelte
|
|
8
8
|
* <DescriptionList layout="list">
|
|
9
|
-
* <DescriptionList.Item
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* <DescriptionList.Item>
|
|
10
|
+
* <dt>ID</dt>
|
|
11
|
+
* <dd>134</dd>
|
|
12
|
+
* </DescriptionList.Item>
|
|
13
|
+
* <DescriptionList.Item>
|
|
14
|
+
* <dt>Requested by</dt>
|
|
15
|
+
* <dd>John Smith</dd>
|
|
16
|
+
* </DescriptionList.Item>
|
|
17
|
+
* <DescriptionList.Item>
|
|
18
|
+
* <dt>Created</dt>
|
|
19
|
+
* <dd>2023-10-01T12:00:00Z</dd>
|
|
20
|
+
* </DescriptionList.Item>
|
|
21
|
+
* <DescriptionList.Item>
|
|
22
|
+
* <dt>Status</dt>
|
|
23
|
+
* <dd>Active</dd>
|
|
24
|
+
* </DescriptionList.Item>
|
|
13
25
|
* </DescriptionList>
|
|
14
26
|
* ```
|
|
15
27
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
const componentCssClassName = "ds description-list-item";
|
|
9
9
|
|
|
10
|
-
let { class: className,
|
|
10
|
+
let { class: className, children, ...rest }: ItemProps = $props();
|
|
11
11
|
|
|
12
12
|
const descriptionListContext = getDescriptionListContext();
|
|
13
13
|
</script>
|
|
@@ -16,6 +16,5 @@
|
|
|
16
16
|
class={[componentCssClassName, className, descriptionListContext.layout]}
|
|
17
17
|
{...rest}
|
|
18
18
|
>
|
|
19
|
-
|
|
20
|
-
<dd>{@render children()}</dd>
|
|
19
|
+
{@render children?.()}
|
|
21
20
|
</div>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./styles.css";
|
|
2
|
-
|
|
3
|
-
declare const Item: import("svelte").Component<ItemProps, {}, "">;
|
|
2
|
+
declare const Item: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement>, {}, "">;
|
|
4
3
|
type Item = ReturnType<typeof Item>;
|
|
5
4
|
export default Item;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
1
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
3
|
-
type
|
|
4
|
-
export interface ItemProps extends BaseProps {
|
|
5
|
-
/**
|
|
6
|
-
* Term/name of the item
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* Description/content of the item
|
|
11
|
-
*/
|
|
12
|
-
children: Snippet<[]>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
2
|
+
export type ItemProps = SvelteHTMLElements["div"];
|
|
@@ -7,8 +7,12 @@ declare const DescriptionList: typeof DescriptionListRoot & {
|
|
|
7
7
|
* @example
|
|
8
8
|
* ```svelte
|
|
9
9
|
* <DescriptionList>
|
|
10
|
-
* <DescriptionList.Item
|
|
10
|
+
* <DescriptionList.Item>
|
|
11
|
+
* <dt>ID</dt>
|
|
12
|
+
* <dd>134</dd>
|
|
13
|
+
* </DescriptionList.Item>
|
|
11
14
|
* </DescriptionList>
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
17
|
Item: typeof Item;
|
|
14
18
|
};
|
package/dist/styles/index.css
CHANGED
|
@@ -13,7 +13,7 @@ body {
|
|
|
13
13
|
*:focus-visible {
|
|
14
14
|
outline: var(--dimension-stroke-thickness-large) solid
|
|
15
15
|
var(--modifier-color-focus-ring, var(--color-focusRing));
|
|
16
|
-
outline-offset: var(--dimension-stroke-thickness-large);
|
|
16
|
+
outline-offset: calc(var(--dimension-stroke-thickness-large) * -1);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.visually-hidden {
|
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.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -62,16 +62,16 @@
|
|
|
62
62
|
"storybook": "storybook dev -p 6008 --no-open --host 0.0.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@biomejs/biome": "2.5.
|
|
65
|
+
"@biomejs/biome": "2.5.15",
|
|
66
66
|
"@canonical/biome-config": "0.43.0",
|
|
67
|
-
"@canonical/storybook-config": "^0.
|
|
68
|
-
"@canonical/storybook-helpers": "^0.
|
|
69
|
-
"@canonical/svelte-ssr-test": "^0.
|
|
70
|
-
"@canonical/typescript-config-svelte": "^0.
|
|
67
|
+
"@canonical/storybook-config": "^0.45.0",
|
|
68
|
+
"@canonical/storybook-helpers": "^0.45.0",
|
|
69
|
+
"@canonical/svelte-ssr-test": "^0.45.0",
|
|
70
|
+
"@canonical/typescript-config-svelte": "^0.45.0",
|
|
71
71
|
"@canonical/webarchitect": "0.43.0",
|
|
72
72
|
"@storybook/addon-docs": "^10.6.0",
|
|
73
73
|
"@storybook/addon-svelte-csf": "^5.1.3",
|
|
74
|
-
"@sveltejs/package": "3.0.0
|
|
74
|
+
"@sveltejs/package": "3.0.0",
|
|
75
75
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
76
76
|
"@types/bun": "^1.3.10",
|
|
77
77
|
"@vitest/browser": "^5.0.0",
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@canonical/design-tokens": "0.43.0",
|
|
89
|
-
"@canonical/styles": "^0.
|
|
89
|
+
"@canonical/styles": "^0.45.0",
|
|
90
90
|
"@canonical/svelte-icons": "^0.0.9",
|
|
91
91
|
"@floating-ui/dom": "^1.7.6"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"svelte": "^5.47.1"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "f8c2473f9aa92d14c24f0976f2f02ebc4944f32f"
|
|
97
97
|
}
|