@max-ts/svelte 1.1.0 → 1.2.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/dist/assets/styles.css.ts.vanilla-CryWmzed.css +84 -0
- package/dist/components/Empty/Content/Content.js +32 -0
- package/dist/components/Empty/Content/Content.svelte.d.ts +5 -0
- package/dist/components/Empty/Content/index.d.ts +1 -0
- package/dist/components/Empty/Description/Description.js +32 -0
- package/dist/components/Empty/Description/Description.svelte.d.ts +5 -0
- package/dist/components/Empty/Description/index.d.ts +1 -0
- package/dist/components/Empty/Empty.js +32 -0
- package/dist/components/Empty/Empty.svelte.d.ts +5 -0
- package/dist/components/Empty/Header/Header.js +32 -0
- package/dist/components/Empty/Header/Header.svelte.d.ts +5 -0
- package/dist/components/Empty/Header/index.d.ts +1 -0
- package/dist/components/Empty/Media/Media.js +38 -0
- package/dist/components/Empty/Media/Media.svelte.d.ts +4 -0
- package/dist/components/Empty/Media/index.d.ts +1 -0
- package/dist/components/Empty/Title/Title.js +32 -0
- package/dist/components/Empty/Title/Title.svelte.d.ts +5 -0
- package/dist/components/Empty/Title/index.d.ts +1 -0
- package/dist/components/Empty/index.d.ts +9 -0
- package/dist/components/Empty/index.js +19 -0
- package/dist/components/Empty/styles.css.d.ts +18 -0
- package/dist/components/Empty/styles.css.js +21 -0
- package/dist/components/Empty/types.d.ts +6 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/stories/Empty.stories.svelte.d.ts +19 -0
- package/package.json +3 -4
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.styles_root__13225ic0 {
|
|
2
|
+
display: flex;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
flex: 1;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: var(--spacing-6);
|
|
9
|
+
border-radius: var(--borderRadius-lg);
|
|
10
|
+
border: 2px dashed var(--colors-border);
|
|
11
|
+
padding: var(--spacing-6);
|
|
12
|
+
text-align: center;
|
|
13
|
+
text-wrap: balance;
|
|
14
|
+
}
|
|
15
|
+
.styles_content__13225ic1 {
|
|
16
|
+
display: flex;
|
|
17
|
+
width: 100%;
|
|
18
|
+
max-width: 24rem;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--spacing-4);
|
|
23
|
+
font-size: var(--fontSize-sm);
|
|
24
|
+
text-wrap: balance;
|
|
25
|
+
}
|
|
26
|
+
.styles_header__13225ic2 {
|
|
27
|
+
display: flex;
|
|
28
|
+
max-width: 24rem;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: var(--spacing-2);
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
34
|
+
.styles_title__13225ic3 {
|
|
35
|
+
font-size: var(--fontSize-lg);
|
|
36
|
+
font-weight: var(--fontWeight-medium);
|
|
37
|
+
letter-spacing: -0.025em;
|
|
38
|
+
}
|
|
39
|
+
.styles_description__13225ic4 {
|
|
40
|
+
color: var(--colors-text-secondary);
|
|
41
|
+
font-size: var(--fontSize-sm);
|
|
42
|
+
line-height: var(--lineHeight-relaxed);
|
|
43
|
+
}
|
|
44
|
+
.styles_description__13225ic4 > a {
|
|
45
|
+
text-decoration: underline;
|
|
46
|
+
text-underline-offset: 4px;
|
|
47
|
+
}
|
|
48
|
+
.styles_description__13225ic4 > a:hover {
|
|
49
|
+
color: var(--colors-primary);
|
|
50
|
+
}
|
|
51
|
+
.styles_media__13225ic5 {
|
|
52
|
+
margin-bottom: var(--spacing-2);
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
}
|
|
58
|
+
.styles_media__13225ic5 svg {
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
}
|
|
62
|
+
.styles_mediaVariants_default__13225ic6 {
|
|
63
|
+
background-color: transparent;
|
|
64
|
+
}
|
|
65
|
+
.styles_mediaVariants_icon__13225ic7 {
|
|
66
|
+
background-color: var(--colors-background-element);
|
|
67
|
+
color: var(--colors-text-primary);
|
|
68
|
+
display: flex;
|
|
69
|
+
width: var(--spacing-10);
|
|
70
|
+
height: var(--spacing-10);
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
border-radius: var(--borderRadius-lg);
|
|
75
|
+
}
|
|
76
|
+
.styles_mediaVariants_icon__13225ic7 svg:not([class*='size-']) {
|
|
77
|
+
width: var(--spacing-6);
|
|
78
|
+
height: var(--spacing-6);
|
|
79
|
+
}
|
|
80
|
+
@media (min-width: 768px) {
|
|
81
|
+
.styles_root__13225ic0 {
|
|
82
|
+
padding: var(--spacing-12);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import styles_css_default from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Empty/Content/Content.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Content($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children"
|
|
16
|
+
]);
|
|
17
|
+
var div = root();
|
|
18
|
+
$.attribute_effect(div, () => ({
|
|
19
|
+
"data-slot": "empty-content",
|
|
20
|
+
class: [styles_css_default.content, $$props.class],
|
|
21
|
+
...restProps
|
|
22
|
+
}));
|
|
23
|
+
var node = $.child(div);
|
|
24
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
25
|
+
$.reset(div);
|
|
26
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
27
|
+
$.append($$anchor, div);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Content as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { WithElementRef } from '../../../types.js';
|
|
3
|
+
declare const Content: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type Content = ReturnType<typeof Content>;
|
|
5
|
+
export default Content;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Content } from './Content.svelte';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import styles_css_default from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Empty/Description/Description.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Description($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children"
|
|
16
|
+
]);
|
|
17
|
+
var div = root();
|
|
18
|
+
$.attribute_effect(div, () => ({
|
|
19
|
+
"data-slot": "empty-description",
|
|
20
|
+
class: [styles_css_default.description, $$props.class],
|
|
21
|
+
...restProps
|
|
22
|
+
}));
|
|
23
|
+
var node = $.child(div);
|
|
24
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
25
|
+
$.reset(div);
|
|
26
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
27
|
+
$.append($$anchor, div);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Description as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { WithElementRef } from '../../../types.js';
|
|
3
|
+
declare const Description: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type Description = ReturnType<typeof Description>;
|
|
5
|
+
export default Description;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Description } from './Description.svelte';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import styles_css_default from "./styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Empty/Empty.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Empty($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children"
|
|
16
|
+
]);
|
|
17
|
+
var div = root();
|
|
18
|
+
$.attribute_effect(div, () => ({
|
|
19
|
+
"data-slot": "empty",
|
|
20
|
+
class: [styles_css_default.root, $$props.class],
|
|
21
|
+
...restProps
|
|
22
|
+
}));
|
|
23
|
+
var node = $.child(div);
|
|
24
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
25
|
+
$.reset(div);
|
|
26
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
27
|
+
$.append($$anchor, div);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Empty as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { WithElementRef } from '../../types.js';
|
|
3
|
+
declare const Empty: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type Empty = ReturnType<typeof Empty>;
|
|
5
|
+
export default Empty;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import styles_css_default from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Empty/Header/Header.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Header($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children"
|
|
16
|
+
]);
|
|
17
|
+
var div = root();
|
|
18
|
+
$.attribute_effect(div, () => ({
|
|
19
|
+
"data-slot": "empty-header",
|
|
20
|
+
class: [styles_css_default.header, $$props.class],
|
|
21
|
+
...restProps
|
|
22
|
+
}));
|
|
23
|
+
var node = $.child(div);
|
|
24
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
25
|
+
$.reset(div);
|
|
26
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
27
|
+
$.append($$anchor, div);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Header as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { WithElementRef } from '../../../types.js';
|
|
3
|
+
declare const Header: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type Header = ReturnType<typeof Header>;
|
|
5
|
+
export default Header;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Header } from './Header.svelte';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import styles_css_default from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Empty/Media/Media.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Media($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), variant = $.prop($$props, "variant", 3, "default"), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children",
|
|
16
|
+
"variant"
|
|
17
|
+
]);
|
|
18
|
+
var div = root();
|
|
19
|
+
$.attribute_effect(div, () => ({
|
|
20
|
+
"data-slot": "empty-icon",
|
|
21
|
+
"data-variant": variant(),
|
|
22
|
+
class: [
|
|
23
|
+
styles_css_default.media,
|
|
24
|
+
styles_css_default.mediaVariants[variant()],
|
|
25
|
+
$$props.class
|
|
26
|
+
],
|
|
27
|
+
...restProps
|
|
28
|
+
}));
|
|
29
|
+
var node = $.child(div);
|
|
30
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
31
|
+
$.reset(div);
|
|
32
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
33
|
+
$.append($$anchor, div);
|
|
34
|
+
$.pop();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Media as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Media } from './Media.svelte';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import styles_css_default from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Empty/Title/Title.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Title($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children"
|
|
16
|
+
]);
|
|
17
|
+
var div = root();
|
|
18
|
+
$.attribute_effect(div, () => ({
|
|
19
|
+
"data-slot": "empty-title",
|
|
20
|
+
class: [styles_css_default.title, $$props.class],
|
|
21
|
+
...restProps
|
|
22
|
+
}));
|
|
23
|
+
var node = $.child(div);
|
|
24
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
25
|
+
$.reset(div);
|
|
26
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
27
|
+
$.append($$anchor, div);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Title as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { WithElementRef } from '../../../types.js';
|
|
3
|
+
declare const Title: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type Title = ReturnType<typeof Title>;
|
|
5
|
+
export default Title;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Title } from './Title.svelte';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const Empty: {
|
|
2
|
+
Root: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
3
|
+
Header: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
Media: import("svelte").Component<import("./types.js").EmptyMediaProps, {}, "ref">;
|
|
5
|
+
Title: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
6
|
+
Description: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
7
|
+
Content: import("svelte").Component<import("../../types.js").WithElementRef<import("svelte/elements").HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
8
|
+
};
|
|
9
|
+
export type * from './types.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Empty$1 from "./Empty.js";
|
|
2
|
+
import Header from "./Header/Header.js";
|
|
3
|
+
import Media from "./Media/Media.js";
|
|
4
|
+
import Title from "./Title/Title.js";
|
|
5
|
+
import Description from "./Description/Description.js";
|
|
6
|
+
import Content from "./Content/Content.js";
|
|
7
|
+
|
|
8
|
+
//#region src/components/Empty/index.ts
|
|
9
|
+
const Empty = {
|
|
10
|
+
Root: Empty$1,
|
|
11
|
+
Header,
|
|
12
|
+
Media,
|
|
13
|
+
Title,
|
|
14
|
+
Description,
|
|
15
|
+
Content
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Empty };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EmptyMediaVariant } from './types.js';
|
|
2
|
+
export declare const root: string;
|
|
3
|
+
export declare const content: string;
|
|
4
|
+
export declare const header: string;
|
|
5
|
+
export declare const title: string;
|
|
6
|
+
export declare const description: string;
|
|
7
|
+
export declare const media: string;
|
|
8
|
+
export declare const mediaVariants: Record<EmptyMediaVariant, string>;
|
|
9
|
+
declare const _default: {
|
|
10
|
+
root: string;
|
|
11
|
+
content: string;
|
|
12
|
+
header: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
media: string;
|
|
16
|
+
mediaVariants: Record<EmptyMediaVariant, string>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./../../assets/theme.css.ts.vanilla-BRMmE1vI.css";
|
|
2
|
+
import "./../../assets/styles.css.ts.vanilla-CryWmzed.css";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Empty/styles.css.ts
|
|
5
|
+
var __default__ = {
|
|
6
|
+
root: "styles_root__13225ic0",
|
|
7
|
+
content: "styles_content__13225ic1",
|
|
8
|
+
header: "styles_header__13225ic2",
|
|
9
|
+
title: "styles_title__13225ic3",
|
|
10
|
+
description: "styles_description__13225ic4",
|
|
11
|
+
media: "styles_media__13225ic5",
|
|
12
|
+
mediaVariants
|
|
13
|
+
};
|
|
14
|
+
var styles_css_default = __default__;
|
|
15
|
+
var mediaVariants = {
|
|
16
|
+
"default": "styles_mediaVariants_default__13225ic6",
|
|
17
|
+
icon: "styles_mediaVariants_icon__13225ic7"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { styles_css_default as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WithElementRef } from '../../types.js';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
export type EmptyMediaVariant = 'default' | 'icon';
|
|
4
|
+
export interface EmptyMediaProps extends WithElementRef<HTMLAttributes<HTMLDivElement>> {
|
|
5
|
+
variant?: EmptyMediaVariant;
|
|
6
|
+
}
|
|
@@ -4,7 +4,7 @@ export { Badge, badgeVariants, type BadgeVariant } from './Badge/index.js';
|
|
|
4
4
|
export { Button, buttonVariants, type ButtonSize, type ButtonVariant, } from './Button/index.js';
|
|
5
5
|
export { ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, } from './ButtonGroup/index.js';
|
|
6
6
|
export { Calendar, type CalendarProps } from './Calendar/index.js';
|
|
7
|
-
export { Card } from './Card/index.js';
|
|
7
|
+
export { Card, type CardVariant } from './Card/index.js';
|
|
8
8
|
export { Carousel, type CarouselProps } from './Carousel/index.js';
|
|
9
9
|
export { Checkbox } from './Checkbox/index.js';
|
|
10
10
|
export { CircularProgress, type CircularProgressProps, } from './CircularProgress/index.js';
|
|
@@ -13,6 +13,7 @@ export { DataGrid, type DataGridColumn, type DataGridColumns, type DataGridProps
|
|
|
13
13
|
export { DataGridSortHeader, type DataGridSortHeaderProps, type DataGridSorting, } from './DataGridSortHeader/index.js';
|
|
14
14
|
export * as DropdownMenu from './DropdownMenu/index.js';
|
|
15
15
|
export type { DropdownMenuProps } from './DropdownMenu/index.js';
|
|
16
|
+
export { Empty, type EmptyMediaVariant } from './Empty/index.js';
|
|
16
17
|
export { Field, type FieldOrientation, type FieldVariants, } from './Field/index.js';
|
|
17
18
|
export { Input, type InputProps, type InputType, } from './Input/index.js';
|
|
18
19
|
export { Item, type ItemProps, type ItemSize, type ItemVariant, } from './Item/index.js';
|
package/dist/components/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import ContentState from "./ContentState/ContentState.js";
|
|
|
18
18
|
import DataGrid from "./DataGrid/DataGrid.js";
|
|
19
19
|
import DataGridSortHeader from "./DataGridSortHeader/DataGridSortHeader.js";
|
|
20
20
|
import { DropdownMenu_exports } from "./DropdownMenu/index.js";
|
|
21
|
+
import { Empty } from "./Empty/index.js";
|
|
21
22
|
import Label_1 from "./Label/Label.js";
|
|
22
23
|
import { Field } from "./Field/index.js";
|
|
23
24
|
import Input from "./Input/Input.js";
|
|
@@ -28,4 +29,4 @@ import RangeInput from "./RangeInput/RangeInput.js";
|
|
|
28
29
|
import { Select } from "./Select/index.js";
|
|
29
30
|
import Tooltip from "./Tooltip/Tooltip.js";
|
|
30
31
|
|
|
31
|
-
export { Accordion, Alert, Badge, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, CircularProgress, ContentState, DataGrid, DataGridSortHeader, DropdownMenu_exports as DropdownMenu, Field, Input, Item, Label_1 as Label, Placeholder, Popover, RangeInput, Select, Separator, Slider, Spinner, Tooltip, Typography, badgeVariants, buttonVariants };
|
|
32
|
+
export { Accordion, Alert, Badge, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, CircularProgress, ContentState, DataGrid, DataGridSortHeader, DropdownMenu_exports as DropdownMenu, Empty, Field, Input, Item, Label_1 as Label, Placeholder, Popover, RangeInput, Select, Separator, Slider, Spinner, Tooltip, Typography, badgeVariants, buttonVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Empty } from '../components/index.js';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Empty: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type Empty = InstanceType<typeof Empty>;
|
|
19
|
+
export default Empty;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Svelte component library.",
|
|
6
6
|
"author": "Tsepelev Maksim",
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
},
|
|
14
14
|
"./package.json": "./package.json",
|
|
15
15
|
"./theme": {
|
|
16
|
-
"types": "./dist/theme.
|
|
17
|
-
"default": "./dist/theme.
|
|
16
|
+
"types": "./dist/theme.d.ts",
|
|
17
|
+
"default": "./dist/theme.js"
|
|
18
18
|
},
|
|
19
19
|
"./utils": {
|
|
20
20
|
"types": "./dist/utils.d.ts",
|
|
21
|
-
"svelte": "./dist/utils.js",
|
|
22
21
|
"default": "./dist/utils.js"
|
|
23
22
|
}
|
|
24
23
|
},
|