@enki-tek/fms-web-components 0.0.11 → 0.0.12
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/components/CardIcon/CardIcon.stories.d.ts +1 -1
- package/components/CardIcon/CardIcon.stories.js +1 -1
- package/components/CheckBox/Checkbox.svelte +1 -1
- package/components/ModalWindow/Modal.svelte +10 -49
- package/components/ModalWindow/Modal.svelte.d.ts +6 -16
- package/components/ModalWindow/ModalBody.svelte +9 -0
- package/components/ModalWindow/ModalBody.svelte.d.ts +27 -0
- package/components/ModalWindow/ModalFooter.svelte +7 -0
- package/components/ModalWindow/ModalFooter.svelte.d.ts +27 -0
- package/components/ModalWindow/ModalHeader.svelte +12 -0
- package/components/ModalWindow/ModalHeader.svelte.d.ts +27 -0
- package/package.json +4 -1
@@ -18,7 +18,7 @@ declare namespace _default {
|
|
18
18
|
const options_1: string[];
|
19
19
|
export { options_1 as options };
|
20
20
|
}
|
21
|
-
export namespace
|
21
|
+
export namespace subtitlePosition {
|
22
22
|
export namespace control_2 {
|
23
23
|
const type_2: string;
|
24
24
|
export { type_2 as type };
|
@@ -1,54 +1,16 @@
|
|
1
1
|
<script>
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
export let content = '';
|
6
|
-
export let header = '';
|
7
|
-
export let closeBtn = '';
|
8
|
-
export let saveBtn = '';
|
2
|
+
import { Modal } from 'sveltestrap';
|
3
|
+
export let backdrop = true;
|
9
4
|
export let isOpen = false;
|
10
|
-
export let toggle
|
5
|
+
export let toggle;
|
11
6
|
export let size = ' ';
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
{#if header}
|
20
|
-
{header}
|
21
|
-
{:else}
|
22
|
-
<slot name="header"/>
|
23
|
-
{/if}
|
24
|
-
</slot>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
</ModalHeader>
|
28
|
-
<ModalBody>
|
29
|
-
<div class="content">
|
30
|
-
<slot name="body">
|
31
|
-
{#if content}
|
32
|
-
{content}
|
33
|
-
{:else}
|
34
|
-
<slot name="body" />
|
35
|
-
{/if}
|
36
|
-
</slot>
|
37
|
-
</div>
|
38
|
-
</ModalBody>
|
39
|
-
<ModalFooter>
|
40
|
-
<slot name="footer">
|
41
|
-
{#if closeBtn || saveBtn}
|
42
|
-
<Button config="secondaryOutlineBtnMedium" on:click={toggle}>{closeBtn}</Button>
|
43
|
-
<Button config="successBtnMedium" on:click={toggle}>{saveBtn}</Button>
|
44
|
-
{:else}
|
45
|
-
<slot name="footer" />
|
46
|
-
{/if}
|
47
|
-
</slot>
|
48
|
-
</ModalFooter>
|
49
|
-
</Modal>
|
50
|
-
|
51
|
-
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
7
|
+
</script>
|
8
|
+
|
9
|
+
<Modal {isOpen} {backdrop} {size} {toggle}>
|
10
|
+
<slot />
|
11
|
+
</Modal>
|
12
|
+
|
13
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
52
14
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
53
15
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
54
16
|
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
@@ -640,4 +602,3 @@
|
|
640
602
|
:global(.secondaryOutlineBtnMedium) {
|
641
603
|
font-weight: 600;
|
642
604
|
}</style>
|
643
|
-
|
@@ -2,19 +2,14 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} ModalEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} ModalSlots */
|
4
4
|
export default class Modal extends SvelteComponentTyped<{
|
5
|
-
toggle
|
5
|
+
toggle: any;
|
6
6
|
size?: string | undefined;
|
7
|
-
|
8
|
-
header?: string | undefined;
|
9
|
-
closeBtn?: string | undefined;
|
10
|
-
saveBtn?: string | undefined;
|
7
|
+
backdrop?: boolean | undefined;
|
11
8
|
isOpen?: boolean | undefined;
|
12
9
|
}, {
|
13
10
|
[evt: string]: CustomEvent<any>;
|
14
11
|
}, {
|
15
|
-
|
16
|
-
body: {};
|
17
|
-
footer: {};
|
12
|
+
default: {};
|
18
13
|
}> {
|
19
14
|
}
|
20
15
|
export type ModalProps = typeof __propDef.props;
|
@@ -23,21 +18,16 @@ export type ModalSlots = typeof __propDef.slots;
|
|
23
18
|
import { SvelteComponentTyped } from "svelte";
|
24
19
|
declare const __propDef: {
|
25
20
|
props: {
|
26
|
-
toggle
|
21
|
+
toggle: any;
|
27
22
|
size?: string | undefined;
|
28
|
-
|
29
|
-
header?: string | undefined;
|
30
|
-
closeBtn?: string | undefined;
|
31
|
-
saveBtn?: string | undefined;
|
23
|
+
backdrop?: boolean | undefined;
|
32
24
|
isOpen?: boolean | undefined;
|
33
25
|
};
|
34
26
|
events: {
|
35
27
|
[evt: string]: CustomEvent<any>;
|
36
28
|
};
|
37
29
|
slots: {
|
38
|
-
|
39
|
-
body: {};
|
40
|
-
footer: {};
|
30
|
+
default: {};
|
41
31
|
};
|
42
32
|
};
|
43
33
|
export {};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} ModalBodyProps */
|
2
|
+
/** @typedef {typeof __propDef.events} ModalBodyEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} ModalBodySlots */
|
4
|
+
export default class ModalBody extends SvelteComponentTyped<{
|
5
|
+
[x: string]: never;
|
6
|
+
}, {
|
7
|
+
[evt: string]: CustomEvent<any>;
|
8
|
+
}, {
|
9
|
+
default: {};
|
10
|
+
}> {
|
11
|
+
}
|
12
|
+
export type ModalBodyProps = typeof __propDef.props;
|
13
|
+
export type ModalBodyEvents = typeof __propDef.events;
|
14
|
+
export type ModalBodySlots = typeof __propDef.slots;
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
16
|
+
declare const __propDef: {
|
17
|
+
props: {
|
18
|
+
[x: string]: never;
|
19
|
+
};
|
20
|
+
events: {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
};
|
23
|
+
slots: {
|
24
|
+
default: {};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export {};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} ModalFooterProps */
|
2
|
+
/** @typedef {typeof __propDef.events} ModalFooterEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} ModalFooterSlots */
|
4
|
+
export default class ModalFooter extends SvelteComponentTyped<{
|
5
|
+
[x: string]: never;
|
6
|
+
}, {
|
7
|
+
[evt: string]: CustomEvent<any>;
|
8
|
+
}, {
|
9
|
+
default: {};
|
10
|
+
}> {
|
11
|
+
}
|
12
|
+
export type ModalFooterProps = typeof __propDef.props;
|
13
|
+
export type ModalFooterEvents = typeof __propDef.events;
|
14
|
+
export type ModalFooterSlots = typeof __propDef.slots;
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
16
|
+
declare const __propDef: {
|
17
|
+
props: {
|
18
|
+
[x: string]: never;
|
19
|
+
};
|
20
|
+
events: {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
};
|
23
|
+
slots: {
|
24
|
+
default: {};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export {};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} ModalHeaderProps */
|
2
|
+
/** @typedef {typeof __propDef.events} ModalHeaderEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} ModalHeaderSlots */
|
4
|
+
export default class ModalHeader extends SvelteComponentTyped<{
|
5
|
+
toggle: any;
|
6
|
+
}, {
|
7
|
+
[evt: string]: CustomEvent<any>;
|
8
|
+
}, {
|
9
|
+
default: {};
|
10
|
+
}> {
|
11
|
+
}
|
12
|
+
export type ModalHeaderProps = typeof __propDef.props;
|
13
|
+
export type ModalHeaderEvents = typeof __propDef.events;
|
14
|
+
export type ModalHeaderSlots = typeof __propDef.slots;
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
16
|
+
declare const __propDef: {
|
17
|
+
props: {
|
18
|
+
toggle: any;
|
19
|
+
};
|
20
|
+
events: {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
};
|
23
|
+
slots: {
|
24
|
+
default: {};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@enki-tek/fms-web-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.12",
|
4
4
|
"devDependencies": {
|
5
5
|
"@storybook/addon-essentials": "^7.6.14",
|
6
6
|
"@storybook/addon-interactions": "^7.6.14",
|
@@ -82,6 +82,9 @@
|
|
82
82
|
"./components/ModalWindow/Modal.scss": "./components/ModalWindow/Modal.scss",
|
83
83
|
"./components/ModalWindow/Modal.stories": "./components/ModalWindow/Modal.stories.js",
|
84
84
|
"./components/ModalWindow/Modal.svelte": "./components/ModalWindow/Modal.svelte",
|
85
|
+
"./components/ModalWindow/ModalBody.svelte": "./components/ModalWindow/ModalBody.svelte",
|
86
|
+
"./components/ModalWindow/ModalFooter.svelte": "./components/ModalWindow/ModalFooter.svelte",
|
87
|
+
"./components/ModalWindow/ModalHeader.svelte": "./components/ModalWindow/ModalHeader.svelte",
|
85
88
|
"./components/Pagination/Pagination.scss": "./components/Pagination/Pagination.scss",
|
86
89
|
"./components/Pagination/Pagination.stories": "./components/Pagination/Pagination.stories.js",
|
87
90
|
"./components/Pagination/Pagination.svelte": "./components/Pagination/Pagination.svelte",
|