@enki-tek/fms-web-components 0.0.1 → 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/README.md +1 -1
- 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,34 @@
|
|
1
|
+
@import './../variable.scss';
|
2
|
+
|
3
|
+
%common-font {
|
4
|
+
font-family: $bodyFonts;
|
5
|
+
}
|
6
|
+
|
7
|
+
:global(.custom-field) {
|
8
|
+
box-shadow: $mediumShadow;
|
9
|
+
color: $gray-500;
|
10
|
+
line-height: 20px;
|
11
|
+
display: flex;
|
12
|
+
padding: 16px;
|
13
|
+
align-items: center;
|
14
|
+
gap: 0.5rem;
|
15
|
+
align-self: stretch;
|
16
|
+
border-radius: 6px;
|
17
|
+
border: 1px solid $gray-300;
|
18
|
+
background: $white;
|
19
|
+
}
|
20
|
+
|
21
|
+
:global(.form-control:focus) {
|
22
|
+
box-shadow: none;
|
23
|
+
border-color: $primary;
|
24
|
+
}
|
25
|
+
|
26
|
+
:global(.custom-field::placeholder) {
|
27
|
+
@extend %common-font;
|
28
|
+
color: $gray-500;
|
29
|
+
text-transform: capitalize;
|
30
|
+
}
|
31
|
+
|
32
|
+
:global(input) {
|
33
|
+
@extend %common-font;
|
34
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
export const title: string;
|
3
|
+
export { TextField as component };
|
4
|
+
export const tags: string[];
|
5
|
+
export namespace argTypes {
|
6
|
+
namespace type {
|
7
|
+
namespace control {
|
8
|
+
const type_1: string;
|
9
|
+
export { type_1 as type };
|
10
|
+
}
|
11
|
+
const options: string[];
|
12
|
+
}
|
13
|
+
namespace placeholder {
|
14
|
+
export namespace control_1 {
|
15
|
+
const type_2: string;
|
16
|
+
export { type_2 as type };
|
17
|
+
}
|
18
|
+
export { control_1 as control };
|
19
|
+
}
|
20
|
+
namespace value {
|
21
|
+
export namespace control_2 {
|
22
|
+
const type_3: string;
|
23
|
+
export { type_3 as type };
|
24
|
+
}
|
25
|
+
export { control_2 as control };
|
26
|
+
}
|
27
|
+
namespace disabled {
|
28
|
+
export namespace control_3 {
|
29
|
+
const type_4: string;
|
30
|
+
export { type_4 as type };
|
31
|
+
}
|
32
|
+
export { control_3 as control };
|
33
|
+
}
|
34
|
+
namespace valid {
|
35
|
+
export namespace control_4 {
|
36
|
+
const type_5: string;
|
37
|
+
export { type_5 as type };
|
38
|
+
}
|
39
|
+
export { control_4 as control };
|
40
|
+
}
|
41
|
+
namespace invalid {
|
42
|
+
export namespace control_5 {
|
43
|
+
const type_6: string;
|
44
|
+
export { type_6 as type };
|
45
|
+
}
|
46
|
+
export { control_5 as control };
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
export default _default;
|
51
|
+
export function Default({ type, placeholder, value, disabled, valid, invalid }: {
|
52
|
+
type: any;
|
53
|
+
placeholder: any;
|
54
|
+
value: any;
|
55
|
+
disabled: any;
|
56
|
+
valid: any;
|
57
|
+
invalid: any;
|
58
|
+
}): {
|
59
|
+
Component: typeof TextField;
|
60
|
+
props: {
|
61
|
+
type: any;
|
62
|
+
placeholder: any;
|
63
|
+
value: any;
|
64
|
+
disabled: any;
|
65
|
+
valid: any;
|
66
|
+
invalid: any;
|
67
|
+
};
|
68
|
+
};
|
69
|
+
export namespace Default {
|
70
|
+
namespace args {
|
71
|
+
const type_7: string;
|
72
|
+
export { type_7 as type };
|
73
|
+
const placeholder_1: string;
|
74
|
+
export { placeholder_1 as placeholder };
|
75
|
+
const value_1: string;
|
76
|
+
export { value_1 as value };
|
77
|
+
const disabled_1: boolean;
|
78
|
+
export { disabled_1 as disabled };
|
79
|
+
const valid_1: boolean;
|
80
|
+
export { valid_1 as valid };
|
81
|
+
const invalid_1: boolean;
|
82
|
+
export { invalid_1 as invalid };
|
83
|
+
}
|
84
|
+
}
|
85
|
+
import TextField from "./TextField.svelte";
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import TextField from "./TextField.svelte";
|
2
|
+
|
3
|
+
export default {
|
4
|
+
title: 'FMS/TextField',
|
5
|
+
component: TextField,
|
6
|
+
tags: ['autodocs'],
|
7
|
+
argTypes: {
|
8
|
+
type: { control: { type: 'select' },
|
9
|
+
options:['text','textarea','password', 'email']
|
10
|
+
},
|
11
|
+
placeholder: { control: { type: 'text' } },
|
12
|
+
value: { control: { type: 'text' } },
|
13
|
+
disabled: { control: { type: 'boolean' } },
|
14
|
+
valid: { control: { type: 'boolean' } },
|
15
|
+
invalid: { control: { type: 'boolean' } }
|
16
|
+
}
|
17
|
+
};
|
18
|
+
|
19
|
+
const Template = ({ type, placeholder, value, disabled, valid, invalid }) => ({
|
20
|
+
Component: TextField,
|
21
|
+
props: { type, placeholder, value, disabled, valid, invalid }
|
22
|
+
});
|
23
|
+
|
24
|
+
export const Default = Template.bind({});
|
25
|
+
Default.args = {
|
26
|
+
type: 'text',
|
27
|
+
placeholder: 'Enter text',
|
28
|
+
value: '',
|
29
|
+
disabled: false,
|
30
|
+
valid: false,
|
31
|
+
invalid: false
|
32
|
+
};
|