@xds/svelte 0.1.0 → 1.0.0-rc.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.
@@ -0,0 +1,12 @@
1
+ import type { ComponentName, Components } from "@xds/core/preview";
2
+ import type { Component, Snippet } from "svelte";
3
+ type Table = {
4
+ readonly [N in ComponentName]: Component<Components<Snippet>[N]>;
5
+ };
6
+ /**
7
+ * The table under a type of its own: inferred, its type would name the class that Svelte gives
8
+ * each component, which a declaration file cannot name, and the published package would ship
9
+ * this module without one.
10
+ */
11
+ export declare const COMPONENTS: Table;
12
+ export {};
@@ -4,7 +4,7 @@ import { Accordion, Avatar, AvatarStack, Badge, Banner, Button, Card, Checkbox,
4
4
  * for each node. They are imported by name: a namespace import of the entry would put every
5
5
  * component in the chunk that the app's own screens load too.
6
6
  */
7
- export const COMPONENTS = {
7
+ const components = {
8
8
  Accordion,
9
9
  Avatar,
10
10
  AvatarStack,
@@ -45,4 +45,10 @@ export const COMPONENTS = {
45
45
  Toast,
46
46
  Tooltip,
47
47
  };
48
+ /**
49
+ * The table under a type of its own: inferred, its type would name the class that Svelte gives
50
+ * each component, which a declaration file cannot name, and the published package would ship
51
+ * this module without one.
52
+ */
53
+ export const COMPONENTS = components;
48
54
  ({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xds/svelte",
3
- "version": "0.1.0",
3
+ "version": "1.0.0-rc.1",
4
4
  "description": "The xds design system's components for Svelte.",
5
5
  "keywords": [
6
6
  "design-system",
@@ -43,8 +43,8 @@
43
43
  "page.css"
44
44
  ],
45
45
  "dependencies": {
46
- "@xds/tokens": "0.1.0",
47
- "@xds/core": "0.1.0",
46
+ "@xds/tokens": "1.0.0-rc.1",
47
+ "@xds/core": "1.0.0-rc.1",
48
48
  "@internationalized/date": "3.12.4",
49
49
  "@zag-js/accordion": "2.0.0-next.4",
50
50
  "@zag-js/aria-hidden": "2.0.0-next.4",