@canonical/svelte-ds-app-launchpad 0.20.0 → 0.21.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.
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" module>
2
2
  // Generated by @canonical/summon:component-svelte v0.1.0
3
3
  import { defineMeta } from "@storybook/addon-svelte-csf";
4
- import { MODIFIER_FAMILIES } from "../../modifier-families";
4
+ import { MODIFIER_FAMILIES } from "../../modifier-families/index.js";
5
5
  import Badge from "./Badge.svelte";
6
6
 
7
7
  const { Story } = defineMeta({
@@ -1,5 +1,5 @@
1
- import type { ModifierFamily } from "modifier-families";
2
1
  import type { SvelteHTMLElements } from "svelte/elements";
2
+ import type { ModifierFamily } from "../../modifier-families/index.js";
3
3
  export interface BadgeProps extends Omit<SvelteHTMLElements["span"], "children">, ModifierFamily<"severity"> {
4
4
  /**
5
5
  * The non-negative integer value displayed within the badge. Negative values will be clamped to 0. Floats will be rounded.
@@ -1 +1,2 @@
1
+ // Generated by @canonical/summon:component-svelte v0.1.0
1
2
  export {};
@@ -2,7 +2,7 @@
2
2
  import { ArchiveIcon } from "@canonical/svelte-icons";
3
3
  import { defineMeta } from "@storybook/addon-svelte-csf";
4
4
  import { fn } from "storybook/test";
5
- import { MODIFIER_FAMILIES } from "../../modifier-families";
5
+ import { MODIFIER_FAMILIES } from "../../modifier-families/index.js";
6
6
  import Button from "./Button.svelte";
7
7
  import type { ButtonProps } from "./types";
8
8
 
@@ -1,5 +1,5 @@
1
- import type { ModifierFamilyValues } from "modifier-families";
2
1
  import type { Snippet } from "svelte";
2
+ import type { ModifierFamilyValues } from "../../modifier-families/index.js";
3
3
  import type { ButtonPrimitiveProps } from "../common/ButtonPrimitive";
4
4
  export type ButtonProps = ButtonPrimitiveProps & {
5
5
  iconLeft?: Snippet;
@@ -4,7 +4,7 @@
4
4
  import { ArchiveIcon } from "@canonical/svelte-icons";
5
5
  import { defineMeta } from "@storybook/addon-svelte-csf";
6
6
  import { fn } from "storybook/test";
7
- import { MODIFIER_FAMILIES } from "../../modifier-families";
7
+ import { MODIFIER_FAMILIES } from "../../modifier-families/index.js";
8
8
  import { Badge } from "../Badge/index.js";
9
9
  import Chip from "./Chip.svelte";
10
10
 
@@ -1,6 +1,6 @@
1
- import type { ModifierFamily } from "modifier-families";
2
1
  import type { Snippet } from "svelte";
3
2
  import type { HTMLAttributes } from "svelte/elements";
3
+ import type { ModifierFamily } from "../../modifier-families/index.js";
4
4
  /** Either the chip can be clicked or the dismiss button can be clicked.
5
5
  * We cannot have both click and dismiss events at the same time.
6
6
  */
@@ -1 +1,2 @@
1
+ // Generated by @canonical/summon:component-svelte v0.1.0
1
2
  export {};
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import { defineMeta } from "@storybook/addon-svelte-csf";
3
- import { MODIFIER_FAMILIES } from "../../modifier-families";
3
+ import { MODIFIER_FAMILIES } from "../../modifier-families/index.js";
4
4
  import NumberInput from "./NumberInput.svelte";
5
5
 
6
6
  const { Story } = defineMeta({
@@ -1,4 +1,4 @@
1
- import type { ModifierFamily } from "modifier-families";
1
+ import type { ModifierFamily } from "../../modifier-families/index.js";
2
2
  import type { NumberInputPrimitiveProps } from "../common/index.js";
3
3
  export interface NumberInputProps extends Omit<NumberInputPrimitiveProps, "type">, ModifierFamily<"severity"> {
4
4
  density?: "dense" | "medium";
@@ -5,9 +5,8 @@
5
5
  const triggerCloseText = "Close Popover";
6
6
  const childrenText = "This is content of the popover.";
7
7
 
8
- export { childrenText, triggerCloseText, triggerOpenText };
9
8
  // biome-ignore lint/style/useExportType: False positive, presumably due to "cross-language" export
10
- export { children, trigger };
9
+ export { children, childrenText, trigger, triggerCloseText, triggerOpenText };
11
10
  </script>
12
11
 
13
12
  {#snippet trigger(triggerProps: PopoverTriggerProps, open: boolean)}
@@ -4,8 +4,7 @@ declare const children: () => ReturnType<import("svelte").Snippet>;
4
4
  declare const triggerOpenText = "Open Popover";
5
5
  declare const triggerCloseText = "Close Popover";
6
6
  declare const childrenText = "This is content of the popover.";
7
- export { childrenText, triggerCloseText, triggerOpenText };
8
- export { children, trigger };
7
+ export { children, childrenText, trigger, triggerCloseText, triggerOpenText };
9
8
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
10
9
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
11
10
  $$bindings?: Bindings;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import { defineMeta } from "@storybook/addon-svelte-csf";
3
- import { MODIFIER_FAMILIES } from "../../modifier-families";
3
+ import { MODIFIER_FAMILIES } from "../../modifier-families/index.js";
4
4
  import TextInput from "./TextInput.svelte";
5
5
 
6
6
  const { Story } = defineMeta({
@@ -1,4 +1,4 @@
1
- import type { ModifierFamily } from "modifier-families";
1
+ import type { ModifierFamily } from "../../modifier-families/index.js";
2
2
  import type { TextInputPrimitiveProps } from "../common/index.js";
3
3
  export interface TextInputProps extends TextInputPrimitiveProps, ModifierFamily<"severity"> {
4
4
  density?: "dense" | "medium";
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.20.0",
4
+ "version": "0.21.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -51,16 +51,17 @@
51
51
  "storybook": "storybook dev -p 6006 --no-open --host 0.0.0.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@biomejs/biome": "2.4.6",
55
- "@canonical/biome-config": "^0.20.0",
56
- "@canonical/storybook-helpers": "^0.20.0",
57
- "@canonical/svelte-ssr-test": "^0.20.0",
58
- "@canonical/typescript-config-svelte": "^0.20.0",
59
- "@canonical/webarchitect": "^0.20.0",
54
+ "@biomejs/biome": "2.4.9",
55
+ "@canonical/biome-config": "^0.21.0",
56
+ "@canonical/design-tokens": "^0.6.0",
57
+ "@canonical/storybook-helpers": "^0.21.0",
58
+ "@canonical/svelte-ssr-test": "^0.21.0",
59
+ "@canonical/typescript-config-svelte": "^0.21.0",
60
+ "@canonical/webarchitect": "^0.21.0",
60
61
  "@storybook/addon-docs": "^10.3.1",
61
62
  "@storybook/addon-svelte-csf": "^5.0.11",
62
63
  "@sveltejs/package": "^2.5.7",
63
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
64
+ "@sveltejs/vite-plugin-svelte": "^7.0.0",
64
65
  "@types/bun": "^1.3.10",
65
66
  "@vitest/browser": "^4.0.18",
66
67
  "@vitest/browser-playwright": "^4.0.18",
@@ -68,18 +69,18 @@
68
69
  "storybook": "^10.3.1",
69
70
  "svelte-check": "^4.4.5",
70
71
  "typescript": "^5.9.3",
71
- "vite": "^8.0.1",
72
+ "vite": "^8.0.0",
72
73
  "vitest": "^4.0.18",
73
74
  "vitest-browser-svelte": "^2.0.2"
74
75
  },
75
76
  "dependencies": {
76
- "@canonical/launchpad-design-tokens": "^1.0.23",
77
- "@canonical/storybook-config": "^0.20.0",
77
+ "@canonical/launchpad-design-tokens": "^1.1.1",
78
+ "@canonical/storybook-config": "^0.21.0",
78
79
  "@canonical/svelte-icons": "^0.0.9",
79
80
  "@floating-ui/dom": "^1.7.6"
80
81
  },
81
82
  "peerDependencies": {
82
83
  "svelte": "^5.47.1"
83
84
  },
84
- "gitHead": "1aee634b278922f2aa1cfe2a11d3b14e64280905"
85
+ "gitHead": "4a39c954e7bbad4903397f8371f801982034a26d"
85
86
  }