@enki-tek/fms-web-components 0.0.37 → 0.0.38
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/EnkiSidbar/EnkiSidebar.svelte +695 -0
- package/components/EnkiSidbar/EnkiSidebar.svelte.d.ts +35 -0
- package/components/EnkiSidbar/NavIcon.svelte +647 -0
- package/components/EnkiSidbar/NavIcon.svelte.d.ts +31 -0
- package/components/EnkiSidbar/NavIteam.svelte +649 -0
- package/components/EnkiSidbar/NavIteam.svelte.d.ts +27 -0
- package/components/EnkiSidbar/NavLink.svelte +657 -0
- package/components/EnkiSidbar/NavLink.svelte.d.ts +31 -0
- package/components/EnkiSidbar/Sidebar.scss +128 -0
- package/components/RadioButton/RadioButton.svelte +8 -3
- package/components/RadioButton/RadioButton.svelte.d.ts +10 -0
- package/index.d.ts +5 -1
- package/index.js +5 -1
- package/package.json +6 -1
@@ -0,0 +1,128 @@
|
|
1
|
+
// Importing variables from variable.scss file
|
2
|
+
@import './../variable.scss';
|
3
|
+
|
4
|
+
%common-styles {
|
5
|
+
color: $white;
|
6
|
+
}
|
7
|
+
|
8
|
+
%commom-background-line {
|
9
|
+
background: $white;
|
10
|
+
}
|
11
|
+
|
12
|
+
%sidebar-styles {
|
13
|
+
background: $primary-dark;
|
14
|
+
}
|
15
|
+
|
16
|
+
%active-styles {
|
17
|
+
border-left: 2px solid $white;
|
18
|
+
background: $blue-700;
|
19
|
+
}
|
20
|
+
|
21
|
+
%common-li-styles {
|
22
|
+
display: flex;
|
23
|
+
padding: 15px 32px;
|
24
|
+
align-items: center;
|
25
|
+
gap: 8px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.row {
|
29
|
+
--bs-gutter-x: 0rem;
|
30
|
+
}
|
31
|
+
|
32
|
+
.icon-sidebar {
|
33
|
+
position: fixed;
|
34
|
+
top: 0;
|
35
|
+
left: 0;
|
36
|
+
height: 100%;
|
37
|
+
width: 88px;
|
38
|
+
background: $primary-dark;
|
39
|
+
}
|
40
|
+
|
41
|
+
.line {
|
42
|
+
width: 88px;
|
43
|
+
height: 1px;
|
44
|
+
@extend %commom-background-line;
|
45
|
+
}
|
46
|
+
|
47
|
+
.icon-btn {
|
48
|
+
padding: 20px 27px;
|
49
|
+
}
|
50
|
+
|
51
|
+
.icon-sidebar-content .toggle-button {
|
52
|
+
@extend %common-styles;
|
53
|
+
}
|
54
|
+
|
55
|
+
.icons {
|
56
|
+
@extend %common-styles;
|
57
|
+
@extend %common-li-styles;
|
58
|
+
padding: 16px 32px;
|
59
|
+
flex-direction: column;
|
60
|
+
gap: 37px;
|
61
|
+
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
.icon-sidebar-content ul .active {
|
66
|
+
@extend %active-styles;
|
67
|
+
}
|
68
|
+
|
69
|
+
//sidbar open class
|
70
|
+
|
71
|
+
:global(.offcanvas-body) {
|
72
|
+
@extend %sidebar-styles;
|
73
|
+
padding: 0rem 0rem;
|
74
|
+
}
|
75
|
+
|
76
|
+
.offcanvas-title {
|
77
|
+
color: $white;
|
78
|
+
font-size: 28px;
|
79
|
+
}
|
80
|
+
|
81
|
+
:global(.flex-column) {
|
82
|
+
@extend %common-styles;
|
83
|
+
}
|
84
|
+
|
85
|
+
.sidebar-open-ul {
|
86
|
+
@extend %common-styles;
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
.nav-item {
|
91
|
+
@extend %common-li-styles;
|
92
|
+
@extend %common-styles;
|
93
|
+
padding: 18px 32px;
|
94
|
+
}
|
95
|
+
|
96
|
+
.nav-item .item-name {
|
97
|
+
line-height: 22px;
|
98
|
+
}
|
99
|
+
|
100
|
+
.nav .nav-item.active {
|
101
|
+
@extend %active-styles;
|
102
|
+
}
|
103
|
+
|
104
|
+
.toggle-button {
|
105
|
+
background-color: transparent;
|
106
|
+
border: $white;
|
107
|
+
cursor: pointer;
|
108
|
+
}
|
109
|
+
|
110
|
+
.material-icons {
|
111
|
+
font-size: 16px;
|
112
|
+
color: $white;
|
113
|
+
}
|
114
|
+
|
115
|
+
:global(.offcanvas.offcanvas-start) {
|
116
|
+
width: 274px;
|
117
|
+
border-right: none;
|
118
|
+
}
|
119
|
+
|
120
|
+
.offcanvas-header {
|
121
|
+
padding: 1.5rem 1.5rem;
|
122
|
+
}
|
123
|
+
|
124
|
+
.line-open {
|
125
|
+
width: 274px;
|
126
|
+
height: 1px;
|
127
|
+
@extend %commom-background-line;
|
128
|
+
}
|
@@ -7,10 +7,14 @@
|
|
7
7
|
{ value:2, label:'orange'},
|
8
8
|
{ value:3, label:'pinapple',disabled:true}
|
9
9
|
]
|
10
|
-
let
|
10
|
+
export let value ;
|
11
|
+
export let label ;
|
12
|
+
export let disabled ;
|
13
|
+
export let selected = options[0].value;
|
14
|
+
export let name = '';
|
11
15
|
</script>
|
12
16
|
|
13
|
-
{#each options as { value, label, disabled }}
|
17
|
+
<!-- {#each options as { value, label, disabled }} -->
|
14
18
|
<Input
|
15
19
|
type="radio"
|
16
20
|
class={`custom-radio form-check-inline form-control-${size}`}
|
@@ -18,8 +22,9 @@
|
|
18
22
|
bind:group={selected}
|
19
23
|
disabled={disabled}
|
20
24
|
label={label.charAt(0).toUpperCase() + label.slice(1)}
|
25
|
+
name = {name}
|
21
26
|
/>
|
22
|
-
{/each}
|
27
|
+
<!-- {/each} -->
|
23
28
|
|
24
29
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
25
30
|
@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");
|
@@ -2,7 +2,11 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} RadioButtonEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} RadioButtonSlots */
|
4
4
|
export default class RadioButton extends SvelteComponentTyped<{
|
5
|
+
disabled: any;
|
6
|
+
label: any;
|
7
|
+
value: any;
|
5
8
|
size?: string | undefined;
|
9
|
+
name?: string | undefined;
|
6
10
|
options?: ({
|
7
11
|
value: number;
|
8
12
|
label: string;
|
@@ -12,6 +16,7 @@ export default class RadioButton extends SvelteComponentTyped<{
|
|
12
16
|
label: string;
|
13
17
|
disabled: boolean;
|
14
18
|
})[] | undefined;
|
19
|
+
selected?: number | undefined;
|
15
20
|
}, {
|
16
21
|
[evt: string]: CustomEvent<any>;
|
17
22
|
}, {}> {
|
@@ -22,7 +27,11 @@ export type RadioButtonSlots = typeof __propDef.slots;
|
|
22
27
|
import { SvelteComponentTyped } from "svelte";
|
23
28
|
declare const __propDef: {
|
24
29
|
props: {
|
30
|
+
disabled: any;
|
31
|
+
label: any;
|
32
|
+
value: any;
|
25
33
|
size?: string | undefined;
|
34
|
+
name?: string | undefined;
|
26
35
|
options?: ({
|
27
36
|
value: number;
|
28
37
|
label: string;
|
@@ -32,6 +41,7 @@ declare const __propDef: {
|
|
32
41
|
label: string;
|
33
42
|
disabled: boolean;
|
34
43
|
})[] | undefined;
|
44
|
+
selected?: number | undefined;
|
35
45
|
};
|
36
46
|
events: {
|
37
47
|
[evt: string]: CustomEvent<any>;
|
package/index.d.ts
CHANGED
@@ -41,5 +41,9 @@ import CardText from './components/EnkiCard/CardText.svelte';
|
|
41
41
|
import CardBody from './components/EnkiCard/CardBody.svelte';
|
42
42
|
import CardFooter from './components/EnkiCard/CardFooter.svelte';
|
43
43
|
import CardLink from './components/EnkiCard/CardLink.svelte';
|
44
|
-
|
44
|
+
import EnkiSidebar from './components/EnkiSidbar/EnkiSidebar.svelte';
|
45
|
+
import NavItem from './components/EnkiSidbar/NavIteam.svelte';
|
46
|
+
import NavIcon from './components/EnkiSidbar/NavIcon.svelte';
|
47
|
+
import NavLink from './components/EnkiSidbar/NavLink.svelte';
|
48
|
+
export { Button, ButtonFilter, FilterOption, TextField, Card, Tooltip, Tab, Icon, Modal, ModalBody, ModalFooter, ModalHeader, Header, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, };
|
45
49
|
export default Layout;
|
package/index.js
CHANGED
@@ -42,5 +42,9 @@ import CardText from './components/EnkiCard/CardText.svelte';
|
|
42
42
|
import CardBody from './components/EnkiCard/CardBody.svelte';
|
43
43
|
import CardFooter from './components/EnkiCard/CardFooter.svelte';
|
44
44
|
import CardLink from './components/EnkiCard/CardLink.svelte';
|
45
|
-
|
45
|
+
import EnkiSidebar from './components/EnkiSidbar/EnkiSidebar.svelte';
|
46
|
+
import NavItem from './components/EnkiSidbar/NavIteam.svelte';
|
47
|
+
import NavIcon from './components/EnkiSidbar/NavIcon.svelte';
|
48
|
+
import NavLink from './components/EnkiSidbar/NavLink.svelte';
|
49
|
+
export { Button, ButtonFilter, FilterOption, TextField, Card, Tooltip, Tab, Icon, Modal, ModalBody, ModalFooter, ModalHeader, Header, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, };
|
46
50
|
export default Layout;
|
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.38",
|
4
4
|
"devDependencies": {
|
5
5
|
"@storybook/addon-essentials": "^7.6.14",
|
6
6
|
"@storybook/addon-interactions": "^7.6.14",
|
@@ -89,6 +89,11 @@
|
|
89
89
|
"./components/EnkiCard/CardText.svelte": "./components/EnkiCard/CardText.svelte",
|
90
90
|
"./components/EnkiCard/CardTitle.svelte": "./components/EnkiCard/CardTitle.svelte",
|
91
91
|
"./components/EnkiCard/EnkiCard.svelte": "./components/EnkiCard/EnkiCard.svelte",
|
92
|
+
"./components/EnkiSidbar/EnkiSidebar.svelte": "./components/EnkiSidbar/EnkiSidebar.svelte",
|
93
|
+
"./components/EnkiSidbar/NavIcon.svelte": "./components/EnkiSidbar/NavIcon.svelte",
|
94
|
+
"./components/EnkiSidbar/NavIteam.svelte": "./components/EnkiSidbar/NavIteam.svelte",
|
95
|
+
"./components/EnkiSidbar/NavLink.svelte": "./components/EnkiSidbar/NavLink.svelte",
|
96
|
+
"./components/EnkiSidbar/Sidebar.scss": "./components/EnkiSidbar/Sidebar.scss",
|
92
97
|
"./components/EnkiTable/EnkiTable.svelte": "./components/EnkiTable/EnkiTable.svelte",
|
93
98
|
"./components/EnkiTable/Table.scss": "./components/EnkiTable/Table.scss",
|
94
99
|
"./components/EnkiTable/TableBody.svelte": "./components/EnkiTable/TableBody.svelte",
|