@canonical/svelte-ds-app-launchpad 0.22.0 → 0.23.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,7 +3,7 @@
3
3
  import { Item } from "../common/index.js";
4
4
  import type { ExpandedItemsProps } from "./types.js";
5
5
  import "./styles.css";
6
- import { useIsMounted } from "../../../../useIsMounted.svelte.js";
6
+ import { useIsMounted } from "../../../../useFunctions/index.js";
7
7
 
8
8
  const componentCssClassName = "ds expanded-items";
9
9
 
@@ -1,2 +1,2 @@
1
1
  export { default as Checkbox } from "./Checkbox.svelte";
2
- export type { CheckboxProps } from "./types";
2
+ export * from "./types.js";
@@ -1 +1,2 @@
1
1
  export { default as Checkbox } from "./Checkbox.svelte";
2
+ export * from "./types.js";
@@ -2,7 +2,7 @@
2
2
 
3
3
  <script lang="ts">
4
4
  import { createAttachmentKey } from "svelte/attachments";
5
- import { usePositionArea } from "../../usePositionArea.svelte.js";
5
+ import { usePositionArea } from "../../useFunctions/index.js";
6
6
  import type { PopoverMethods, PopoverProps } from "./types.js";
7
7
  import "./styles.css";
8
8
 
@@ -1,7 +1,7 @@
1
1
  import type { Snippet } from "svelte";
2
2
  import type { Attachment } from "svelte/attachments";
3
3
  import type { HTMLButtonAttributes, SvelteHTMLElements } from "svelte/elements";
4
- import type { PositionArea, PositionTryFallbacks } from "../../usePositionArea.svelte.js";
4
+ import type { PositionArea, PositionTryFallbacks } from "../../useFunctions/index.js";
5
5
  type BaseProps = Omit<SvelteHTMLElements["div"], "children">;
6
6
  type PopoverTarget = NonNullable<HTMLButtonAttributes["popovertarget"]>;
7
7
  export type PopoverTriggerProps = {
@@ -1,2 +1,2 @@
1
1
  export { default as Radio } from "./Radio.svelte";
2
- export type { RadioProps } from "./types";
2
+ export * from "./types.js";
@@ -1 +1,2 @@
1
1
  export { default as Radio } from "./Radio.svelte";
2
+ export * from "./types.js";
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" generics="T">
2
- import { useIsMounted } from "../../useIsMounted.svelte.js";
2
+ import { useIsMounted } from "../../useFunctions/index.js";
3
3
  import type { SwitchProps } from "./types.js";
4
4
  import "./styles.css";
5
5
 
@@ -1,2 +1,2 @@
1
1
  export { default as Switch } from "./Switch.svelte";
2
- export type { SwitchProps } from "./types";
2
+ export * from "./types.js";
@@ -1 +1,2 @@
1
1
  export { default as Switch } from "./Switch.svelte";
2
+ export * from "./types.js";
@@ -2,12 +2,12 @@ import type { HTMLInputAttributes } from "svelte/elements";
2
2
  interface BaseProps extends Omit<HTMLInputAttributes, "children" | "role" | "indeterminate" | "aria-checked" | "aria-readonly"> {
3
3
  type?: "checkbox";
4
4
  }
5
- interface CheckedControlledSwitchProps<T> extends BaseProps {
5
+ export interface CheckedControlledSwitchProps<T> extends BaseProps {
6
6
  value?: T;
7
7
  group?: never;
8
8
  checked?: boolean;
9
9
  }
10
- interface GroupControlledSwitchProps<T> extends BaseProps {
10
+ export interface GroupControlledSwitchProps<T> extends BaseProps {
11
11
  value: T;
12
12
  group: T[];
13
13
  checked?: never;
package/dist/index.d.ts CHANGED
@@ -5,4 +5,4 @@
5
5
  */
6
6
  export * from "./components/index.js";
7
7
  export * from "./modifier-families/index.js";
8
- export * from "./usePositionArea.svelte.js";
8
+ export * from "./useFunctions/index.js";
package/dist/index.js CHANGED
@@ -6,4 +6,4 @@
6
6
  */
7
7
  export * from "./components/index.js";
8
8
  export * from "./modifier-families/index.js";
9
- export * from "./usePositionArea.svelte.js";
9
+ export * from "./useFunctions/index.js";
@@ -0,0 +1 @@
1
+ export * from "./components/common/index.js";
@@ -0,0 +1 @@
1
+ export * from "./components/common/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./useIsMounted.svelte.js";
2
+ export * from "./usePositionArea.svelte.js";
@@ -0,0 +1,2 @@
1
+ export * from "./useIsMounted.svelte.js";
2
+ export * from "./usePositionArea.svelte.js";
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.22.0",
4
+ "version": "0.23.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,7 +11,12 @@
11
11
  "import": "./dist/index.js",
12
12
  "svelte": "./dist/index.js"
13
13
  },
14
- "./styles.css": "./dist/index.css"
14
+ "./styles.css": "./dist/index.css",
15
+ "./internal": {
16
+ "types": "./dist/internal.d.js",
17
+ "import": "./dist/internal.js",
18
+ "svelte": "./dist/internal.js"
19
+ }
15
20
  },
16
21
  "files": [
17
22
  "dist"
@@ -52,13 +57,13 @@
52
57
  },
53
58
  "devDependencies": {
54
59
  "@biomejs/biome": "2.4.9",
55
- "@canonical/biome-config": "^0.22.0",
60
+ "@canonical/biome-config": "^0.23.0",
56
61
  "@canonical/design-tokens": "^0.6.0",
57
- "@canonical/storybook-config": "^0.22.0",
58
- "@canonical/storybook-helpers": "^0.22.0",
59
- "@canonical/svelte-ssr-test": "^0.22.0",
60
- "@canonical/typescript-config-svelte": "^0.22.0",
61
- "@canonical/webarchitect": "^0.22.0",
62
+ "@canonical/storybook-config": "^0.23.0",
63
+ "@canonical/storybook-helpers": "^0.23.0",
64
+ "@canonical/svelte-ssr-test": "^0.23.0",
65
+ "@canonical/typescript-config-svelte": "^0.23.0",
66
+ "@canonical/webarchitect": "^0.23.0",
62
67
  "@storybook/addon-docs": "^10.3.1",
63
68
  "@storybook/addon-svelte-csf": "^5.0.11",
64
69
  "@sveltejs/package": "^2.5.7",
@@ -82,5 +87,5 @@
82
87
  "peerDependencies": {
83
88
  "svelte": "^5.47.1"
84
89
  },
85
- "gitHead": "99e187cf46d8bd7f3933705322fa4ab2d4a711e7"
90
+ "gitHead": "742f5396bc3f9ca01a49646ed5b67acfc9d001d2"
86
91
  }