@enki-tek/fms-web-components 0.0.10 → 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.scss +0 -9
- package/components/ModalWindow/Modal.svelte +9 -61
- package/components/ModalWindow/Modal.svelte.d.ts +20 -14
- 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 };
|
@@ -12,22 +12,13 @@
|
|
12
12
|
align-items: center;
|
13
13
|
justify-content: flex-end;
|
14
14
|
align-self: stretch;
|
15
|
-
gap: 7rem;
|
16
15
|
height: 19px;
|
17
16
|
}
|
18
17
|
|
19
18
|
.header .title {
|
20
19
|
font-family: $bodyFonts;
|
21
|
-
margin-right: 5rem;
|
22
20
|
}
|
23
21
|
|
24
|
-
.close-icon {
|
25
|
-
color: $black;
|
26
|
-
position: absolute;
|
27
|
-
top: 15%;
|
28
|
-
right: 1rem;
|
29
|
-
transform: translateY(-50%);
|
30
|
-
}
|
31
22
|
|
32
23
|
:global(.secondaryOutlineBtnMedium) {
|
33
24
|
font-weight: 600;
|
@@ -1,57 +1,14 @@
|
|
1
|
-
<script>
|
2
|
-
import { Modal
|
3
|
-
|
4
|
-
export let
|
5
|
-
export let
|
6
|
-
export let
|
7
|
-
export let saveBtn = "";
|
8
|
-
export let open = false;
|
9
|
-
export let toggle = () => open = !open;
|
10
|
-
export let size = " ";
|
1
|
+
<script>
|
2
|
+
import { Modal } from 'sveltestrap';
|
3
|
+
export let backdrop = true;
|
4
|
+
export let isOpen = false;
|
5
|
+
export let toggle;
|
6
|
+
export let size = ' ';
|
11
7
|
</script>
|
12
8
|
|
13
|
-
<
|
14
|
-
<
|
15
|
-
|
16
|
-
<div class="header">
|
17
|
-
<div class="title">
|
18
|
-
<slot name="header">
|
19
|
-
{#if header}
|
20
|
-
{header}
|
21
|
-
{:else}
|
22
|
-
<slot name="header" />
|
23
|
-
{/if}
|
24
|
-
</slot>
|
25
|
-
</div>
|
26
|
-
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
27
|
-
<div class="close-icon" on:click={toggle}>
|
28
|
-
<Icon iconName="x-lg" />
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
</ModalHeader>
|
32
|
-
<ModalBody>
|
33
|
-
<div class="content">
|
34
|
-
<slot name="content">
|
35
|
-
{#if content}
|
36
|
-
{content}
|
37
|
-
{:else}
|
38
|
-
<slot />
|
39
|
-
{/if}
|
40
|
-
</slot>
|
41
|
-
</div>
|
42
|
-
</ModalBody>
|
43
|
-
<ModalFooter>
|
44
|
-
<slot name="footer">
|
45
|
-
{#if closeBtn || saveBtn}
|
46
|
-
<Button config="secondaryOutlineBtnMedium" on:click={toggle}>{closeBtn}</Button>
|
47
|
-
<Button config="successBtnMedium" on:click={toggle}>{saveBtn}</Button>
|
48
|
-
{:else}
|
49
|
-
<slot />
|
50
|
-
{/if}
|
51
|
-
</slot>
|
52
|
-
</ModalFooter>
|
53
|
-
</Modal>
|
54
|
-
</div>
|
9
|
+
<Modal {isOpen} {backdrop} {size} {toggle}>
|
10
|
+
<slot />
|
11
|
+
</Modal>
|
55
12
|
|
56
13
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
57
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");
|
@@ -637,19 +594,10 @@ export let size = " ";
|
|
637
594
|
align-items: center;
|
638
595
|
justify-content: flex-end;
|
639
596
|
align-self: stretch;
|
640
|
-
gap: 7rem;
|
641
597
|
height: 19px;
|
642
598
|
}
|
643
599
|
.header .title {
|
644
600
|
font-family: Roboto;
|
645
|
-
margin-right: 5rem;
|
646
|
-
}
|
647
|
-
.close-icon {
|
648
|
-
color: #000000;
|
649
|
-
position: absolute;
|
650
|
-
top: 15%;
|
651
|
-
right: 1rem;
|
652
|
-
transform: translateY(-50%);
|
653
601
|
}
|
654
602
|
:global(.secondaryOutlineBtnMedium) {
|
655
603
|
font-weight: 600;
|
@@ -1,27 +1,33 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} ModalProps */
|
2
|
+
/** @typedef {typeof __propDef.events} ModalEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} ModalSlots */
|
4
|
+
export default class Modal extends SvelteComponentTyped<{
|
5
|
+
toggle: any;
|
6
|
+
size?: string | undefined;
|
7
|
+
backdrop?: boolean | undefined;
|
8
|
+
isOpen?: boolean | undefined;
|
9
|
+
}, {
|
10
|
+
[evt: string]: CustomEvent<any>;
|
11
|
+
}, {
|
12
|
+
default: {};
|
13
|
+
}> {
|
14
|
+
}
|
15
|
+
export type ModalProps = typeof __propDef.props;
|
16
|
+
export type ModalEvents = typeof __propDef.events;
|
17
|
+
export type ModalSlots = typeof __propDef.slots;
|
1
18
|
import { SvelteComponentTyped } from "svelte";
|
2
19
|
declare const __propDef: {
|
3
20
|
props: {
|
4
|
-
|
5
|
-
header?: string | undefined;
|
6
|
-
closeBtn?: string | undefined;
|
7
|
-
saveBtn?: string | undefined;
|
8
|
-
open?: boolean | undefined;
|
9
|
-
toggle?: (() => boolean) | undefined;
|
21
|
+
toggle: any;
|
10
22
|
size?: string | undefined;
|
23
|
+
backdrop?: boolean | undefined;
|
24
|
+
isOpen?: boolean | undefined;
|
11
25
|
};
|
12
26
|
events: {
|
13
27
|
[evt: string]: CustomEvent<any>;
|
14
28
|
};
|
15
29
|
slots: {
|
16
|
-
header: {};
|
17
|
-
content: {};
|
18
30
|
default: {};
|
19
|
-
footer: {};
|
20
31
|
};
|
21
32
|
};
|
22
|
-
export type ModalProps = typeof __propDef.props;
|
23
|
-
export type ModalEvents = typeof __propDef.events;
|
24
|
-
export type ModalSlots = typeof __propDef.slots;
|
25
|
-
export default class Modal extends SvelteComponentTyped<ModalProps, ModalEvents, ModalSlots> {
|
26
|
-
}
|
27
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",
|