@enki-tek/fms-web-components 0.0.2 → 0.0.3
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/app.scss +1 -1
- package/components/Accordion/Accordion.scss +30 -0
- package/components/Accordion/Accordion.stories.d.ts +20 -0
- package/components/Accordion/Accordion.stories.js +30 -0
- package/components/Accordion/Accordion.svelte +617 -0
- package/components/Accordion/Accordion.svelte.d.ts +17 -0
- package/components/Alert/Alert.scss +25 -0
- package/components/Alert/Alert.stories.d.ts +54 -0
- package/components/Alert/Alert.stories.js +46 -0
- package/components/Alert/Alert.svelte +29 -0
- package/components/Alert/Alert.svelte.d.ts +19 -0
- package/components/Badge/Badge.scss +8 -0
- package/components/Badge/Badge.stories.d.ts +75 -0
- package/components/Badge/Badge.stories.js +55 -0
- package/components/Badge/Badge.svelte +587 -0
- package/components/Badge/Badge.svelte.d.ts +17 -0
- package/components/Badge/BadgeConfig.d.ts +10 -0
- package/components/Badge/BadgeConfig.js +34 -0
- package/components/Breadcrumb/Breadcrumb.scss +26 -0
- package/components/Breadcrumb/Breadcrumb.stories.d.ts +23 -0
- package/components/Breadcrumb/Breadcrumb.stories.js +20 -0
- package/components/Breadcrumb/Breadcrumb.svelte +603 -0
- package/components/Breadcrumb/Breadcrumb.svelte.d.ts +16 -0
- package/components/Button/Button.scss +706 -0
- package/components/Button/Button.stories.d.ts +96 -27
- package/components/Button/Button.stories.js +99 -38
- package/components/Button/Button.svelte +1125 -10
- package/components/Button/Button.svelte.d.ts +43 -9
- package/components/Button/buttonConfig.d.ts +38 -0
- package/components/Button/buttonConfig.js +203 -0
- package/components/Card/Card.scss +39 -0
- package/components/Card/Card.stories.d.ts +59 -0
- package/components/Card/Card.stories.js +42 -0
- package/components/Card/Card.svelte +123 -0
- package/components/Card/Card.svelte.d.ts +51 -0
- package/components/CheckBox/Checkbox.scss +32 -0
- package/components/CheckBox/Checkbox.stories.d.ts +94 -0
- package/components/CheckBox/Checkbox.stories.js +51 -0
- package/components/CheckBox/Checkbox.svelte +614 -0
- package/components/CheckBox/Checkbox.svelte.d.ts +31 -0
- package/components/Dropdown/Dropdown.scss +72 -0
- package/components/Dropdown/Dropdown.stories.d.ts +29 -0
- package/components/Dropdown/Dropdown.stories.js +19 -0
- package/components/Dropdown/Dropdown.svelte +646 -0
- package/components/Dropdown/Dropdown.svelte.d.ts +17 -0
- package/components/Header/Header.scss +54 -0
- package/components/Header/Header.stories.d.ts +28 -0
- package/components/Header/Header.stories.js +28 -0
- package/components/Header/Header.svelte +667 -0
- package/components/Header/Header.svelte.d.ts +27 -0
- package/components/Icon/Icon.scss +0 -0
- package/components/Icon/Icon.stories.d.ts +21 -0
- package/components/Icon/Icon.stories.js +18 -0
- package/components/Icon/Icon.svelte +7 -0
- package/components/Icon/Icon.svelte.d.ts +23 -0
- package/components/ModalWindow/Modal.scss +28 -0
- package/components/ModalWindow/Modal.stories.d.ts +29 -0
- package/components/ModalWindow/Modal.stories.js +20 -0
- package/components/ModalWindow/Modal.svelte +641 -0
- package/components/ModalWindow/Modal.svelte.d.ts +23 -0
- package/components/Pagination/Pagination.scss +83 -0
- package/components/Pagination/Pagination.stories.d.ts +29 -0
- package/components/Pagination/Pagination.stories.js +18 -0
- package/components/Pagination/Pagination.svelte +702 -0
- package/components/Pagination/Pagination.svelte.d.ts +18 -0
- package/components/RadioButton/RadioButton.scss +28 -0
- package/components/RadioButton/RadioButton.stories.d.ts +35 -0
- package/components/RadioButton/RadioButton.stories.js +25 -0
- package/components/RadioButton/RadioButton.svelte +616 -0
- package/components/RadioButton/RadioButton.svelte.d.ts +41 -0
- package/components/Sidebar/Sidebar.scss +87 -0
- package/components/Sidebar/Sidebar.stories.d.ts +28 -0
- package/components/Sidebar/Sidebar.stories.js +27 -0
- package/components/Sidebar/Sidebar.svelte +144 -0
- package/components/Sidebar/Sidebar.svelte.d.ts +31 -0
- package/components/Switches/Switch.scss +12 -0
- package/components/Switches/Switch.stories.d.ts +87 -0
- package/components/Switches/Switch.stories.js +50 -0
- package/components/Switches/Switch.svelte +595 -0
- package/components/Switches/Switch.svelte.d.ts +29 -0
- package/components/Tab/Tab.scss +30 -0
- package/components/Tab/Tab.stories.d.ts +23 -0
- package/components/Tab/Tab.stories.js +19 -0
- package/components/Tab/Tab.svelte +615 -0
- package/components/Tab/Tab.svelte.d.ts +19 -0
- package/components/Table/Table.scss +38 -0
- package/components/Table/Table.stories.d.ts +28 -0
- package/components/Table/Table.stories.js +21 -0
- package/components/Table/Table.svelte +137 -0
- package/components/Table/Table.svelte.d.ts +35 -0
- package/components/Tooltip/Tooltip.scss +29 -0
- package/components/Tooltip/Tooltip.stories.d.ts +40 -0
- package/components/Tooltip/Tooltip.stories.js +24 -0
- package/components/Tooltip/Tooltip.svelte +622 -0
- package/components/Tooltip/Tooltip.svelte.d.ts +21 -0
- package/components/common.scss +789 -0
- package/components/textField/TextField.scss +34 -0
- package/components/textField/TextField.stories.d.ts +85 -0
- package/components/textField/TextField.stories.js +32 -0
- package/components/textField/TextField.svelte +607 -0
- package/components/textField/TextField.svelte.d.ts +33 -0
- package/components/variable.scss +134 -0
- package/index.d.ts +17 -1
- package/index.js +17 -1
- package/package.json +60 -1
@@ -0,0 +1,25 @@
|
|
1
|
+
@import './../variable.scss';
|
2
|
+
|
3
|
+
%common-font {
|
4
|
+
font-family: $bodyFonts;
|
5
|
+
}
|
6
|
+
|
7
|
+
:global(.alert-info) {
|
8
|
+
@extend %common-font;
|
9
|
+
border-color: $primary !important;
|
10
|
+
}
|
11
|
+
|
12
|
+
:global(.alert-success) {
|
13
|
+
@extend %common-font;
|
14
|
+
border-color: $success;
|
15
|
+
}
|
16
|
+
|
17
|
+
:global(.alert-danger) {
|
18
|
+
@extend %common-font;
|
19
|
+
border-color: $red-300;
|
20
|
+
}
|
21
|
+
|
22
|
+
:global(.alert-warning) {
|
23
|
+
@extend %common-font;
|
24
|
+
border-color: $warning;
|
25
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
export const title: string;
|
3
|
+
export { Alert as component };
|
4
|
+
export const tags: string[];
|
5
|
+
export namespace argTypes {
|
6
|
+
namespace color {
|
7
|
+
namespace control {
|
8
|
+
const type: string;
|
9
|
+
}
|
10
|
+
const options: string[];
|
11
|
+
}
|
12
|
+
namespace message {
|
13
|
+
const control_1: string;
|
14
|
+
export { control_1 as control };
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
export default _default;
|
19
|
+
export namespace Info {
|
20
|
+
namespace args {
|
21
|
+
const color_1: string;
|
22
|
+
export { color_1 as color };
|
23
|
+
const message_1: string;
|
24
|
+
export { message_1 as message };
|
25
|
+
}
|
26
|
+
}
|
27
|
+
export namespace success {
|
28
|
+
export namespace args_1 {
|
29
|
+
const color_2: string;
|
30
|
+
export { color_2 as color };
|
31
|
+
const message_2: string;
|
32
|
+
export { message_2 as message };
|
33
|
+
}
|
34
|
+
export { args_1 as args };
|
35
|
+
}
|
36
|
+
export namespace danger {
|
37
|
+
export namespace args_2 {
|
38
|
+
const color_3: string;
|
39
|
+
export { color_3 as color };
|
40
|
+
const message_3: string;
|
41
|
+
export { message_3 as message };
|
42
|
+
}
|
43
|
+
export { args_2 as args };
|
44
|
+
}
|
45
|
+
export namespace warning {
|
46
|
+
export namespace args_3 {
|
47
|
+
const color_4: string;
|
48
|
+
export { color_4 as color };
|
49
|
+
const message_4: string;
|
50
|
+
export { message_4 as message };
|
51
|
+
}
|
52
|
+
export { args_3 as args };
|
53
|
+
}
|
54
|
+
import Alert from "./Alert.svelte";
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import Alert from './Alert.svelte';
|
2
|
+
|
3
|
+
export default {
|
4
|
+
title: 'FMS/Alert',
|
5
|
+
component: Alert,
|
6
|
+
tags: ['autodocs'],
|
7
|
+
argTypes: {
|
8
|
+
color: {
|
9
|
+
control: { type: 'select'},
|
10
|
+
options: ['info', 'success', 'danger', 'warning'] ,
|
11
|
+
},
|
12
|
+
message: { control: 'text' }
|
13
|
+
}
|
14
|
+
};
|
15
|
+
|
16
|
+
export const Info = {
|
17
|
+
args: {
|
18
|
+
color: 'info',
|
19
|
+
message: 'I am an alert'
|
20
|
+
}
|
21
|
+
|
22
|
+
}
|
23
|
+
|
24
|
+
export const success = {
|
25
|
+
args: {
|
26
|
+
color: 'success',
|
27
|
+
message: 'I am an alert'
|
28
|
+
}
|
29
|
+
|
30
|
+
}
|
31
|
+
|
32
|
+
export const danger = {
|
33
|
+
args: {
|
34
|
+
color: 'danger',
|
35
|
+
message: 'I am an alert'
|
36
|
+
}
|
37
|
+
|
38
|
+
}
|
39
|
+
|
40
|
+
export const warning = {
|
41
|
+
args: {
|
42
|
+
color: 'warning',
|
43
|
+
message: 'I am an alert'
|
44
|
+
}
|
45
|
+
|
46
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<script>import { Alert } from "sveltestrap";
|
2
|
+
export let color = "info";
|
3
|
+
export let message = "I am an alert and I can be dismissed!";
|
4
|
+
</script>
|
5
|
+
|
6
|
+
<Alert class={`alert-${color}`} dismissible>
|
7
|
+
<slot />
|
8
|
+
{message}
|
9
|
+
</Alert>
|
10
|
+
|
11
|
+
|
12
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
13
|
+
@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");
|
14
|
+
@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");
|
15
|
+
:global(.alert-warning), :global(.alert-danger), :global(.alert-success), :global(.alert-info) {
|
16
|
+
font-family: Roboto;
|
17
|
+
}
|
18
|
+
:global(.alert-info) {
|
19
|
+
border-color: #00AEE5 !important;
|
20
|
+
}
|
21
|
+
:global(.alert-success) {
|
22
|
+
border-color: #00A96B;
|
23
|
+
}
|
24
|
+
:global(.alert-danger) {
|
25
|
+
border-color: #EA868F;
|
26
|
+
}
|
27
|
+
:global(.alert-warning) {
|
28
|
+
border-color: #FFBA3A;
|
29
|
+
}</style>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
2
|
+
declare const __propDef: {
|
3
|
+
props: {
|
4
|
+
color?: "info" | "success" | "danger" | "warning" | undefined;
|
5
|
+
message?: string | undefined;
|
6
|
+
};
|
7
|
+
events: {
|
8
|
+
[evt: string]: CustomEvent<any>;
|
9
|
+
};
|
10
|
+
slots: {
|
11
|
+
default: {};
|
12
|
+
};
|
13
|
+
};
|
14
|
+
export type AlertProps = typeof __propDef.props;
|
15
|
+
export type AlertEvents = typeof __propDef.events;
|
16
|
+
export type AlertSlots = typeof __propDef.slots;
|
17
|
+
export default class Alert extends SvelteComponentTyped<AlertProps, AlertEvents, AlertSlots> {
|
18
|
+
}
|
19
|
+
export {};
|
@@ -0,0 +1,75 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
export const title: string;
|
3
|
+
export { Badge as component };
|
4
|
+
}
|
5
|
+
export default _default;
|
6
|
+
export namespace yellow {
|
7
|
+
namespace args {
|
8
|
+
const config: string;
|
9
|
+
const label: string;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
export namespace primaryLight {
|
13
|
+
export namespace args_1 {
|
14
|
+
const config_1: string;
|
15
|
+
export { config_1 as config };
|
16
|
+
const label_1: string;
|
17
|
+
export { label_1 as label };
|
18
|
+
}
|
19
|
+
export { args_1 as args };
|
20
|
+
}
|
21
|
+
export namespace secondaryLight {
|
22
|
+
export namespace args_2 {
|
23
|
+
const config_2: string;
|
24
|
+
export { config_2 as config };
|
25
|
+
const label_2: string;
|
26
|
+
export { label_2 as label };
|
27
|
+
}
|
28
|
+
export { args_2 as args };
|
29
|
+
}
|
30
|
+
export namespace green {
|
31
|
+
export namespace args_3 {
|
32
|
+
const config_3: string;
|
33
|
+
export { config_3 as config };
|
34
|
+
const label_3: string;
|
35
|
+
export { label_3 as label };
|
36
|
+
}
|
37
|
+
export { args_3 as args };
|
38
|
+
}
|
39
|
+
export namespace grayLight {
|
40
|
+
export namespace args_4 {
|
41
|
+
const config_4: string;
|
42
|
+
export { config_4 as config };
|
43
|
+
const label_4: string;
|
44
|
+
export { label_4 as label };
|
45
|
+
}
|
46
|
+
export { args_4 as args };
|
47
|
+
}
|
48
|
+
export namespace gray {
|
49
|
+
export namespace args_5 {
|
50
|
+
const config_5: string;
|
51
|
+
export { config_5 as config };
|
52
|
+
const label_5: string;
|
53
|
+
export { label_5 as label };
|
54
|
+
}
|
55
|
+
export { args_5 as args };
|
56
|
+
}
|
57
|
+
export namespace red {
|
58
|
+
export namespace args_6 {
|
59
|
+
const config_6: string;
|
60
|
+
export { config_6 as config };
|
61
|
+
const label_6: string;
|
62
|
+
export { label_6 as label };
|
63
|
+
}
|
64
|
+
export { args_6 as args };
|
65
|
+
}
|
66
|
+
export namespace cyan {
|
67
|
+
export namespace args_7 {
|
68
|
+
const config_7: string;
|
69
|
+
export { config_7 as config };
|
70
|
+
const label_7: string;
|
71
|
+
export { label_7 as label };
|
72
|
+
}
|
73
|
+
export { args_7 as args };
|
74
|
+
}
|
75
|
+
import Badge from "./Badge.svelte";
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import Badge from './Badge.svelte'
|
2
|
+
|
3
|
+
export default{
|
4
|
+
title:'FMS/Badge',
|
5
|
+
component:Badge
|
6
|
+
};
|
7
|
+
|
8
|
+
export const yellow={
|
9
|
+
args:{
|
10
|
+
config:'yellow',
|
11
|
+
label:'Badges',
|
12
|
+
}
|
13
|
+
};
|
14
|
+
export const primaryLight={
|
15
|
+
args:{
|
16
|
+
config:'primaryLight',
|
17
|
+
label:'Badges',
|
18
|
+
}
|
19
|
+
};
|
20
|
+
export const secondaryLight={
|
21
|
+
args:{
|
22
|
+
config:'secondaryLight',
|
23
|
+
label:'Badges',
|
24
|
+
}
|
25
|
+
};
|
26
|
+
export const green={
|
27
|
+
args:{
|
28
|
+
config:'green',
|
29
|
+
label:'Badges',
|
30
|
+
}
|
31
|
+
};
|
32
|
+
export const grayLight={
|
33
|
+
args:{
|
34
|
+
config:'grayLight',
|
35
|
+
label:'Badges',
|
36
|
+
}
|
37
|
+
};
|
38
|
+
export const gray={
|
39
|
+
args:{
|
40
|
+
config:'gray',
|
41
|
+
label:'Badges',
|
42
|
+
}
|
43
|
+
};
|
44
|
+
export const red={
|
45
|
+
args:{
|
46
|
+
config:'red',
|
47
|
+
label:'Badges',
|
48
|
+
}
|
49
|
+
};
|
50
|
+
export const cyan={
|
51
|
+
args:{
|
52
|
+
config:'cyan',
|
53
|
+
label:'Badges',
|
54
|
+
}
|
55
|
+
};
|