@canonical/svelte-ds-app-launchpad 0.47.0 → 0.49.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/README.md CHANGED
@@ -34,7 +34,7 @@ This section documents non-trivial runtime dependencies in this package.
34
34
 
35
35
  | Dependency | Purpose | Rationale | Long-term Plan | Current Status |
36
36
  | ---------------------------------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
37
- | [`@floating-ui/dom`](https://floating-ui.com/) | Positions floating elements (e.g. popovers, tooltips) consistently across browsers. | Native CSS anchored positioning support for [`position-area`](https://caniuse.com/mdn-css_properties_position-area) and [`position-try-fallbacks`](https://caniuse.com/mdn-css_properties_position-try-fallbacks) is still maturing, so `@floating-ui/dom` provides a reliable cross-browser fallback today. It also has [0 external dependencies](https://www.npmjs.com/package/@floating-ui/dom?activeTab=dependencies) and is maintained by the original authors of [Popper.js](https://popper.js.org/docs/v2/). | Revisit as native support improves. | ![NPM License](https://img.shields.io/npm/l/@floating-ui/dom) ![NPM Version](https://img.shields.io/npm/v/@floating-ui/dom) ![NPM Last Update](https://img.shields.io/npm/last-update/@floating-ui/dom) ![NPM Downloads](https://img.shields.io/npm/dw/@floating-ui/dom) ![npm package minimized gzipped size](https://img.shields.io/bundlejs/size/%40floating-ui%2Fdom)<br>![GitHub Stars](https://img.shields.io/github/stars/floating-ui/floating-ui) |
37
+ | [`@floating-ui/dom`](https://floating-ui.com/) | Positions floating elements (e.g. popovers, tooltips) consistently across browsers. | Native CSS anchored positioning support for [`position-area`](https://caniuse.com/mdn-css_properties_position-area) and [`position-try-fallbacks`](https://caniuse.com/mdn-css_properties_position-try-fallbacks) is still maturing, so `@floating-ui/dom` provides a reliable cross-browser fallback today. It also has [0 external dependencies](https://www.npmjs.com/package/@floating-ui/dom?activeTab=dependencies) and is maintained by the original authors of [Popper.js](https://popper.js.org/). | Revisit as native support improves. | ![NPM License](https://img.shields.io/npm/l/@floating-ui/dom) ![NPM Version](https://img.shields.io/npm/v/@floating-ui/dom) ![NPM Last Update](https://img.shields.io/npm/last-update/@floating-ui/dom) ![NPM Downloads](https://img.shields.io/npm/dw/@floating-ui/dom) ![npm package minimized gzipped size](https://img.shields.io/bundlejs/size/%40floating-ui%2Fdom)<br>![GitHub Stars](https://img.shields.io/github/stars/floating-ui/floating-ui) |
38
38
 
39
39
  ## Development
40
40
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
+ import { ExpandSideNavIcon } from "@canonical/svelte-icons";
2
3
  import { ButtonPrimitive } from "../../../common/ButtonPrimitive/index.js";
3
- import { ExpandRightIcon } from "../../../icons/index.js";
4
4
  import "./styles.css";
5
5
  import type { ExpandToggleProps } from "./types.js";
6
6
 
@@ -10,5 +10,5 @@
10
10
  </script>
11
11
 
12
12
  <ButtonPrimitive class={[componentCssClassName, className]} {...rest}>
13
- <ExpandRightIcon class="expand-icon" />
13
+ <ExpandSideNavIcon class="expand-icon" />
14
14
  </ButtonPrimitive>
@@ -4,9 +4,12 @@
4
4
  import { getTHContext } from "../../context.js";
5
5
  import type { SortButtonProps } from "./types.js";
6
6
  import "./styles.css";
7
- import { ArrowDownIcon, ArrowUpIcon } from "@canonical/svelte-icons";
7
+ import {
8
+ ArrowDownIcon,
9
+ ArrowUpIcon,
10
+ SortIcon,
11
+ } from "@canonical/svelte-icons";
8
12
  import { ButtonPrimitive } from "../../../../../common/index.js";
9
- import { SortIcon } from "../../../../../icons/index.js";
10
13
 
11
14
  const componentCssClassName = "ds table-th-sort";
12
15
 
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.47.0",
4
+ "version": "0.49.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -62,16 +62,17 @@
62
62
  "storybook": "storybook dev -p 6008 --no-open --host 0.0.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@biomejs/biome": "2.5.15",
66
- "@canonical/biome-config": "0.43.0",
67
- "@canonical/storybook-config": "^0.47.0",
68
- "@canonical/storybook-helpers": "^0.47.0",
69
- "@canonical/svelte-ssr-test": "^0.47.0",
70
- "@canonical/typescript-config-svelte": "^0.47.0",
71
- "@canonical/webarchitect": "0.44.0",
65
+ "@biomejs/biome": "2.6.9",
66
+ "@canonical/biome-config": "0.47.0",
67
+ "@canonical/storybook-config": "^0.49.0",
68
+ "@canonical/storybook-helpers": "^0.49.0",
69
+ "@canonical/svelte-icons": "^0.2.0",
70
+ "@canonical/svelte-ssr-test": "^0.49.0",
71
+ "@canonical/typescript-config-svelte": "^0.49.0",
72
+ "@canonical/webarchitect": "0.46.0",
72
73
  "@storybook/addon-docs": "^10.6.0",
73
74
  "@storybook/addon-svelte-csf": "^5.1.3",
74
- "@sveltejs/package": "3.0.2",
75
+ "@sveltejs/package": "3.0.3",
75
76
  "@sveltejs/vite-plugin-svelte": "^7.0.0",
76
77
  "@types/bun": "^1.3.10",
77
78
  "@vitest/browser": "^5.0.0",
@@ -85,13 +86,13 @@
85
86
  "vitest-browser-svelte": "^3.0.0"
86
87
  },
87
88
  "dependencies": {
88
- "@canonical/design-tokens": "0.44.0",
89
- "@canonical/styles": "^0.47.0",
90
- "@canonical/svelte-icons": "^0.1.0",
89
+ "@canonical/design-tokens": "0.46.0",
90
+ "@canonical/styles": "^0.49.0",
91
91
  "@floating-ui/dom": "^1.7.6"
92
92
  },
93
93
  "peerDependencies": {
94
+ "@canonical/svelte-icons": "^0.2.0",
94
95
  "svelte": "^5.47.1"
95
96
  },
96
- "gitHead": "f846e7e21001a0fcbc4cd9f28c14a55cea7f4974"
97
+ "gitHead": "9b71099ded16351ee14432246e3d8190f48767ed"
97
98
  }
@@ -1,22 +0,0 @@
1
- <script lang="ts">
2
- import type { IconProps } from "@canonical/svelte-icons";
3
- import { IconBase } from "@canonical/svelte-icons";
4
-
5
- const props: IconProps = $props();
6
- </script>
7
-
8
- <IconBase iconName="expand-right" {...props}>
9
- <svg
10
- width="16"
11
- height="16"
12
- viewBox="0 0 16 16"
13
- fill="none"
14
- xmlns="http://www.w3.org/2000/svg"
15
- >
16
- <path d="M3 1L3 15H1.5L1.5 1H3Z" fill="currentColor"></path>
17
- <path
18
- d="M8.91555 11.6844L11.8779 8.72209L4.9 8.72209V7.22209L11.8778 7.22209L8.91555 4.25982L9.97621 3.19916L14.7492 7.97213L9.97621 12.7451L8.91555 11.6844Z"
19
- fill="currentColor"
20
- ></path>
21
- </svg>
22
- </IconBase>
@@ -1,4 +0,0 @@
1
- import type { IconProps } from "@canonical/svelte-icons";
2
- declare const ExpandRightIcon: import("svelte").Component<IconProps, {}, "">;
3
- type ExpandRightIcon = ReturnType<typeof ExpandRightIcon>;
4
- export default ExpandRightIcon;
@@ -1,25 +0,0 @@
1
- <script lang="ts">
2
- import type { IconProps } from "@canonical/svelte-icons";
3
- import { IconBase } from "@canonical/svelte-icons";
4
-
5
- const props: IconProps = $props();
6
- </script>
7
-
8
- <IconBase iconName="sort" {...props}>
9
- <svg
10
- width="16"
11
- height="16"
12
- viewBox="0 0 16 16"
13
- fill="none"
14
- xmlns="http://www.w3.org/2000/svg"
15
- >
16
- <path
17
- d="M10.5303 1.46973L9.25 2.00006V14.5001H10.75V3.81072L13.4697 6.53039L14.5303 5.46973L10.5303 1.46973Z"
18
- fill="currentColor"
19
- ></path>
20
- <path
21
- d="M5.46967 14.5303L6.75 13.9999V1.49994H5.25V12.1893L2.53033 9.46961L1.46967 10.5303L5.46967 14.5303Z"
22
- fill="currentColor"
23
- ></path>
24
- </svg>
25
- </IconBase>
@@ -1,4 +0,0 @@
1
- import type { IconProps } from "@canonical/svelte-icons";
2
- declare const SortIcon: import("svelte").Component<IconProps, {}, "">;
3
- type SortIcon = ReturnType<typeof SortIcon>;
4
- export default SortIcon;
@@ -1,2 +0,0 @@
1
- export { default as ExpandRightIcon } from "./ExpandRightIcon.svelte";
2
- export { default as SortIcon } from "./SortIcon.svelte";
@@ -1,3 +0,0 @@
1
- // TODO(steciuk): Remove icons when they are approved, upstreamed to `@canonical/ds-assets` included in `@canonical/svelte-icons`.
2
- export { default as ExpandRightIcon } from "./ExpandRightIcon.svelte";
3
- export { default as SortIcon } from "./SortIcon.svelte";