@canonical/svelte-ds-app-launchpad 0.30.0 → 0.32.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.
@@ -3,10 +3,10 @@
3
3
  .ds.link {
4
4
  outline-offset: 0px;
5
5
  text-decoration: none;
6
- color: var(--lp-color-text-link-default);
6
+ color: var(--color-text-link);
7
7
 
8
8
  &:not(.soft):visited {
9
- color: var(--lp-color-text-link-visited);
9
+ color: var(--color-text-link-visited);
10
10
  }
11
11
 
12
12
  &:hover {
package/dist/index.css CHANGED
@@ -1,3 +1,4 @@
1
- /* TODO: remove this file once pragma tokens are ready and used in the project */
1
+ /* TODO: when the only import here is @canonical/styles delete this file. The consumer should import @canonical/styles directly. */
2
+ @import "./styles/ds-tokens.css";
2
3
  @import "./styles/index.css";
3
4
  @import "./modifier-families/styles/index.css";
@@ -0,0 +1,56 @@
1
+ /* A temporary solution to avoid importing the entire @canonical/styles package
2
+ * see: packages/styles/main/src/index.css
3
+ * That one imports normalize.css and the typography baseline engine,
4
+ * which restyles every un-migrated component. Once the last component is migrated,
5
+ * delete this file and move the import to ds-app-launchpad/src/lib/index.css */
6
+
7
+ @import "@canonical/design-tokens/dist/sets.primitive.css";
8
+ @import "@canonical/design-tokens/dist/modifiers.theme.css";
9
+ @import "@canonical/design-tokens/dist/modifiers.surfaces.css";
10
+ @import "@canonical/design-tokens/dist/modifiers.typography.css";
11
+ @import "@canonical/design-tokens/dist/modifiers.criticality.css";
12
+ @import "@canonical/design-tokens/dist/modifiers.anticipation.css";
13
+ @import "@canonical/design-tokens/dist/modifiers.emphasis.css";
14
+ @import "@canonical/design-tokens/dist/modifiers.importance.css";
15
+ @import "@canonical/design-tokens/dist/modifiers.lifecycle.css";
16
+ @import "@canonical/design-tokens/dist/modifiers.release.css";
17
+ @import "@canonical/design-tokens/dist/states.css";
18
+ @import "@canonical/design-tokens/dist/sets.semantic.css";
19
+
20
+ /* Verbatim :root shim from packages/styles/typography/src/mapper.css
21
+ * (@canonical/styles-typography) avoiding h1-h6/p element selectors
22
+ *
23
+ * modifiers.typography.css references
24
+ * kebab-case names that sets.primitive.css only defines in camelCase, and
25
+ * the --number-line-height-* ratios are not emitted as CSS at all, so
26
+ * without this block the DS typography longhands do not resolve. Keep in
27
+ * sync with mapper.css until the naming is fixed upstream in design-tokens. */
28
+ :root {
29
+ --typography-font-family-default: var(--typography-fontFamily-default);
30
+ --typography-font-family-code: var(--typography-fontFamily-code);
31
+ --typography-font-family-sans-serif: var(--typography-fontFamily-sansSerif);
32
+ --typography-font-family-monospace: var(--typography-fontFamily-monospace);
33
+
34
+ --typography-weight-semi-bold: var(--typography-weight-semiBold);
35
+ --typography-weight-extra-bold: var(--typography-weight-extraBold);
36
+ --typography-weight-extra-light: var(--typography-weight-extraLight);
37
+
38
+ --dimension-size-font-size-250: var(--dimension-size-fontSize-250);
39
+ --dimension-size-font-size-300: var(--dimension-size-fontSize-300);
40
+ --dimension-size-font-size-350: var(--dimension-size-fontSize-350);
41
+ --dimension-size-font-size-400: var(--dimension-size-fontSize-400);
42
+ --dimension-size-font-size-500: var(--dimension-size-fontSize-500);
43
+ --dimension-size-font-size-600: var(--dimension-size-fontSize-600);
44
+ --dimension-size-font-size-700: var(--dimension-size-fontSize-700);
45
+
46
+ --dimension-letter-spacing-default: var(--dimension-letterSpacing-default);
47
+ --dimension-letter-spacing-wide: var(--dimension-letterSpacing-wide);
48
+
49
+ --number-line-height-250: 1.3333;
50
+ --number-line-height-300: 1.4286;
51
+ --number-line-height-350: 1.5;
52
+ --number-line-height-400: 1.3333;
53
+ --number-line-height-500: 1.3333;
54
+ --number-line-height-600: 1.25;
55
+ --number-line-height-700: 1.1429;
56
+ }
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.30.0",
4
+ "version": "0.32.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.30.0",
66
+ "@canonical/biome-config": "^0.32.0",
67
67
  "@canonical/design-tokens": "0.6.2-contrasted.0",
68
- "@canonical/storybook-config": "^0.30.0",
69
- "@canonical/storybook-helpers": "^0.30.0",
70
- "@canonical/svelte-ssr-test": "^0.30.0",
71
- "@canonical/typescript-config-svelte": "^0.30.0",
72
- "@canonical/webarchitect": "^0.30.0",
68
+ "@canonical/storybook-config": "^0.32.0",
69
+ "@canonical/storybook-helpers": "^0.32.0",
70
+ "@canonical/svelte-ssr-test": "^0.32.0",
71
+ "@canonical/typescript-config-svelte": "^0.32.0",
72
+ "@canonical/webarchitect": "^0.32.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,11 +87,12 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@canonical/launchpad-design-tokens": "^1.1.1",
90
+ "@canonical/styles": "^0.32.0",
90
91
  "@canonical/svelte-icons": "^0.0.9",
91
92
  "@floating-ui/dom": "^1.7.6"
92
93
  },
93
94
  "peerDependencies": {
94
95
  "svelte": "^5.47.1"
95
96
  },
96
- "gitHead": "40fe86ac955473536ac14f074812a9821f5b65c0"
97
+ "gitHead": "5b279d8150e3988c68c6c2a741046bcd425624ca"
97
98
  }