@canonical/svelte-ds-app-launchpad 0.20.0 → 0.20.1
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/Badge/Badge.stories.svelte +1 -1
- package/dist/components/Badge/types.d.ts +1 -1
- package/dist/components/Badge/types.js +1 -0
- package/dist/components/Button/Button.stories.svelte +1 -1
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Chip/Chip.stories.svelte +1 -1
- package/dist/components/Chip/types.d.ts +1 -1
- package/dist/components/Chip/types.js +1 -0
- package/dist/components/NumberInput/NumberInput.stories.svelte +1 -1
- package/dist/components/NumberInput/types.d.ts +1 -1
- package/dist/components/TextInput/TextInput.stories.svelte +1 -1
- package/dist/components/TextInput/types.d.ts +1 -1
- package/package.json +3 -3
|
@@ -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.
|
|
@@ -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,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";
|
|
@@ -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.
|
|
4
|
+
"version": "0.20.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"storybook": "^10.3.1",
|
|
69
69
|
"svelte-check": "^4.4.5",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
|
-
"vite": "^
|
|
71
|
+
"vite": "^7.3.1",
|
|
72
72
|
"vitest": "^4.0.18",
|
|
73
73
|
"vitest-browser-svelte": "^2.0.2"
|
|
74
74
|
},
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"svelte": "^5.47.1"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "3c074769a62bd3105e449bef2c531d3e3c961e3b"
|
|
85
85
|
}
|