@canonical/svelte-ds-app-launchpad 0.32.0 → 0.33.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/DescriptionList/common/Item/styles.css +8 -8
- package/dist/components/DescriptionList/styles.css +2 -2
- package/dist/components/Modal/Modal.svelte +9 -1
- package/dist/components/UserAvatar/styles.css +20 -13
- package/dist/index.css +1 -0
- package/dist/styles/ds-shim.css +22 -0
- package/package.json +9 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.ds.description-list-item {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: var(--
|
|
4
|
+
gap: var(--dimension-100);
|
|
5
5
|
|
|
6
6
|
dt {
|
|
7
7
|
order: 1;
|
|
8
|
-
font: var(--
|
|
9
|
-
color: var(--
|
|
8
|
+
font: var(--ds-typography-text-secondary-bold);
|
|
9
|
+
color: var(--color-text-muted);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
dd {
|
|
13
13
|
order: 3;
|
|
14
|
-
font: var(--
|
|
15
|
-
color: var(--
|
|
14
|
+
font: var(--ds-typography-text-secondary);
|
|
15
|
+
color: var(--color-text);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* Horizontal line for list layout */
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
flex-grow: 1;
|
|
24
24
|
background: repeating-linear-gradient(
|
|
25
25
|
to right,
|
|
26
|
-
var(--
|
|
26
|
+
var(--color-border-muted) 0px 2px,
|
|
27
27
|
transparent 2px 4px
|
|
28
28
|
);
|
|
29
29
|
flex-basis: 10%;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
&.list {
|
|
35
35
|
flex-direction: row;
|
|
36
36
|
align-items: baseline;
|
|
37
|
-
gap: var(--
|
|
37
|
+
gap: var(--dimension-100);
|
|
38
38
|
|
|
39
39
|
&::before {
|
|
40
40
|
display: block;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@container description-list (width <= 573px) {
|
|
51
51
|
flex-direction: row;
|
|
52
52
|
align-items: baseline;
|
|
53
|
-
gap: var(--
|
|
53
|
+
gap: var(--dimension-100);
|
|
54
54
|
|
|
55
55
|
&::before {
|
|
56
56
|
display: block;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
.ds.description-list {
|
|
6
6
|
display: grid;
|
|
7
|
-
row-gap: var(--
|
|
8
|
-
column-gap: var(--
|
|
7
|
+
row-gap: var(--dimension-100);
|
|
8
|
+
column-gap: var(--dimension-100);
|
|
9
9
|
--min-width-description-list-item: 160px;
|
|
10
10
|
|
|
11
11
|
&.grid {
|
|
@@ -83,7 +83,15 @@
|
|
|
83
83
|
if (open) {
|
|
84
84
|
if (dialogEl.open && !dialogEl.matches(":modal")) {
|
|
85
85
|
// `open === true` during SSR case
|
|
86
|
-
// `showModal` throws when called on open non-modal dialog so we need to close it first
|
|
86
|
+
// `showModal` throws when called on open non-modal dialog so we need to close it first
|
|
87
|
+
dialogEl.addEventListener(
|
|
88
|
+
"close",
|
|
89
|
+
(e) => {
|
|
90
|
+
// Suppress the "upgrade" close event.
|
|
91
|
+
e.stopImmediatePropagation();
|
|
92
|
+
},
|
|
93
|
+
{ once: true, capture: true },
|
|
94
|
+
);
|
|
87
95
|
dialogEl.close();
|
|
88
96
|
}
|
|
89
97
|
dialogEl.showModal();
|
|
@@ -2,25 +2,32 @@
|
|
|
2
2
|
display: inline-grid;
|
|
3
3
|
flex: none;
|
|
4
4
|
|
|
5
|
-
border: var(--
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
border: var(--dimension-stroke-thickness-medium) solid var(--color-border);
|
|
6
|
+
/* TODO: Check with Enzo. Figma uses --color-background-layer2 */
|
|
7
|
+
/* I read it as "one level above the surface" and foreground-input is exactly this */
|
|
8
|
+
/* However, avatar is not input. But -layer2 looks like internal token */
|
|
9
|
+
/* that we're not supposed to use directly */
|
|
10
|
+
background-color: var(
|
|
11
|
+
--surface-color-foreground-input,
|
|
12
|
+
var(--color-foreground-input)
|
|
13
|
+
);
|
|
14
|
+
color: var(--surface-color-text, var(--color-text));
|
|
9
15
|
|
|
10
|
-
width: var(--
|
|
11
|
-
height: var(--
|
|
12
|
-
font: var(--
|
|
16
|
+
width: var(--dimension-300);
|
|
17
|
+
height: var(--dimension-300);
|
|
18
|
+
font: var(--ds-typography-text-primary-bold);
|
|
13
19
|
|
|
14
20
|
&.small {
|
|
15
|
-
width: var(--
|
|
16
|
-
height: var(--
|
|
17
|
-
font: var(--
|
|
21
|
+
width: var(--dimension-250);
|
|
22
|
+
height: var(--dimension-250);
|
|
23
|
+
font: var(--ds-typography-text-secondary-bold);
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
&.large {
|
|
21
|
-
width: var(--
|
|
22
|
-
height: var(--
|
|
23
|
-
font: var(--
|
|
27
|
+
width: var(--dimension-400);
|
|
28
|
+
height: var(--dimension-400);
|
|
29
|
+
font: var(--ds-typography-heading-5);
|
|
30
|
+
letter-spacing: var(--typography-heading-5-letter-spacing);
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
&:is(img) {
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* TODO: when the only import here is @canonical/styles delete this file. The consumer should import @canonical/styles directly. */
|
|
2
2
|
@import "./styles/ds-tokens.css";
|
|
3
|
+
@import "./styles/ds-shim.css";
|
|
3
4
|
@import "./styles/index.css";
|
|
4
5
|
@import "./modifier-families/styles/index.css";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ds-typography-text-secondary:
|
|
3
|
+
var(--typography-text-secondary-font-weight)
|
|
4
|
+
var(--typography-text-secondary-font-size) /
|
|
5
|
+
var(--typography-text-secondary-line-height)
|
|
6
|
+
var(--typography-text-secondary-font-family);
|
|
7
|
+
--ds-typography-text-secondary-bold:
|
|
8
|
+
var(--typography-text-secondary-bold-font-weight)
|
|
9
|
+
var(--typography-text-secondary-bold-font-size) /
|
|
10
|
+
var(--typography-text-secondary-bold-line-height)
|
|
11
|
+
var(--typography-text-secondary-bold-font-family);
|
|
12
|
+
--ds-typography-text-primary-bold:
|
|
13
|
+
var(--typography-text-primary-bold-font-weight)
|
|
14
|
+
var(--typography-text-primary-bold-font-size) /
|
|
15
|
+
var(--typography-text-primary-bold-line-height)
|
|
16
|
+
var(--typography-text-primary-bold-font-family);
|
|
17
|
+
--ds-typography-heading-5:
|
|
18
|
+
var(--typography-heading-5-font-weight)
|
|
19
|
+
var(--typography-heading-5-font-size) /
|
|
20
|
+
var(--typography-heading-5-line-height)
|
|
21
|
+
var(--typography-heading-5-font-family);
|
|
22
|
+
}
|
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.33.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@biomejs/biome": "2.4.9",
|
|
66
|
-
"@canonical/biome-config": "^0.
|
|
66
|
+
"@canonical/biome-config": "^0.33.0",
|
|
67
67
|
"@canonical/design-tokens": "0.6.2-contrasted.0",
|
|
68
|
-
"@canonical/storybook-config": "^0.
|
|
69
|
-
"@canonical/storybook-helpers": "^0.
|
|
70
|
-
"@canonical/svelte-ssr-test": "^0.
|
|
71
|
-
"@canonical/typescript-config-svelte": "^0.
|
|
72
|
-
"@canonical/webarchitect": "^0.
|
|
68
|
+
"@canonical/storybook-config": "^0.33.0",
|
|
69
|
+
"@canonical/storybook-helpers": "^0.33.0",
|
|
70
|
+
"@canonical/svelte-ssr-test": "^0.33.0",
|
|
71
|
+
"@canonical/typescript-config-svelte": "^0.33.0",
|
|
72
|
+
"@canonical/webarchitect": "^0.33.0",
|
|
73
73
|
"@storybook/addon-docs": "^10.3.1",
|
|
74
74
|
"@storybook/addon-svelte-csf": "^5.0.11",
|
|
75
75
|
"@sveltejs/package": "^2.5.7",
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@canonical/launchpad-design-tokens": "^1.1.1",
|
|
90
|
-
"@canonical/styles": "^0.
|
|
90
|
+
"@canonical/styles": "^0.33.0",
|
|
91
91
|
"@canonical/svelte-icons": "^0.0.9",
|
|
92
92
|
"@floating-ui/dom": "^1.7.6"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"svelte": "^5.47.1"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "fca2bc4440fff2d511fc8db6686f9b19222fdbc7"
|
|
98
98
|
}
|