@enki-tek/fms-web-components 0.0.6 → 0.0.8
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.scss +5 -2
- package/components/CardIcon/CardIcon.svelte +21 -13
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/package.json +1 -1
@@ -6,7 +6,7 @@
|
|
6
6
|
display: flex;
|
7
7
|
flex-direction: column;
|
8
8
|
align-items: flex-start;
|
9
|
-
gap:
|
9
|
+
gap: 0 !important;
|
10
10
|
flex: 1 0 0;
|
11
11
|
border-radius: 10px;
|
12
12
|
border: 1px dashed $white-cardicon;
|
@@ -31,6 +31,7 @@
|
|
31
31
|
@extend %common-fontstyle;
|
32
32
|
line-height: 40px;
|
33
33
|
padding: 10px;
|
34
|
+
margin-top: 10px;
|
34
35
|
}
|
35
36
|
|
36
37
|
:global(.cardicon-main .card-title) {
|
@@ -50,7 +51,9 @@
|
|
50
51
|
font-size: 13px;
|
51
52
|
@extend %common-fontstyle;
|
52
53
|
}
|
53
|
-
|
54
|
+
:global(.card-body-modifier){
|
55
|
+
padding: 0 1rem;
|
56
|
+
}
|
54
57
|
%common-fontstyle {
|
55
58
|
font-family: $bodyFonts;
|
56
59
|
font-style: normal;
|
@@ -22,7 +22,9 @@ if (slotLocationConfig.includes(slotPosition)) {
|
|
22
22
|
<Icon {name} />
|
23
23
|
</div>
|
24
24
|
|
25
|
+
{#if $$slots.cardsubtitle || cardsubtitle}
|
25
26
|
<div class={slotLocation.join(' ')}>
|
27
|
+
|
26
28
|
<slot name="cardsubtitle">
|
27
29
|
{#if cardsubtitle}
|
28
30
|
{cardsubtitle}
|
@@ -31,18 +33,20 @@ if (slotLocationConfig.includes(slotPosition)) {
|
|
31
33
|
{/if}
|
32
34
|
</slot>
|
33
35
|
</div>
|
34
|
-
|
35
|
-
|
36
|
-
<
|
37
|
-
<
|
38
|
-
|
39
|
-
{cardbody}
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
{/if}
|
37
|
+
{#if $$slots.cardbody || cardbody}
|
38
|
+
<CardBody class="card-body-modifier">
|
39
|
+
<div class="custom-body-slot">
|
40
|
+
<slot name="cardbody">
|
41
|
+
{#if cardbody}
|
42
|
+
{cardbody}
|
43
|
+
{:else}
|
44
|
+
<slot />
|
45
|
+
{/if}
|
46
|
+
</slot>
|
47
|
+
</div>
|
48
|
+
</CardBody>
|
49
|
+
{/if}
|
46
50
|
</Card>
|
47
51
|
|
48
52
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
@@ -57,7 +61,7 @@ if (slotLocationConfig.includes(slotPosition)) {
|
|
57
61
|
display: flex;
|
58
62
|
flex-direction: column;
|
59
63
|
align-items: flex-start;
|
60
|
-
gap:
|
64
|
+
gap: 0 !important;
|
61
65
|
flex: 1 0 0;
|
62
66
|
border-radius: 10px;
|
63
67
|
border: 1px dashed #B8B8B8;
|
@@ -79,6 +83,7 @@ if (slotLocationConfig.includes(slotPosition)) {
|
|
79
83
|
font-size: 30px;
|
80
84
|
line-height: 40px;
|
81
85
|
padding: 10px;
|
86
|
+
margin-top: 10px;
|
82
87
|
}
|
83
88
|
:global(.cardicon-main .card-title) {
|
84
89
|
color: #000000;
|
@@ -93,6 +98,9 @@ if (slotLocationConfig.includes(slotPosition)) {
|
|
93
98
|
color: #000000;
|
94
99
|
font-size: 13px;
|
95
100
|
}
|
101
|
+
:global(.card-body-modifier) {
|
102
|
+
padding: 0 1rem;
|
103
|
+
}
|
96
104
|
.cardicon-content, :global(.cardicon-main .card-title), .custom-body-slot {
|
97
105
|
font-family: Roboto;
|
98
106
|
font-style: normal;
|
package/index.d.ts
CHANGED
@@ -17,5 +17,6 @@ import Switch from './components/Switches/Switch.svelte';
|
|
17
17
|
import Checkbox from './components/CheckBox/Checkbox.svelte';
|
18
18
|
import Breadcrumb from './components/Breadcrumb/Breadcrumb.svelte';
|
19
19
|
import Accordion from './components/Accordion/Accordion.svelte';
|
20
|
-
|
20
|
+
import CardIcon from './components/CardIcon/CardIcon.svelte';
|
21
|
+
export { Button, TextField, Card, Tooltip, Tab, Icon, Modal, Header, Dropdown, Badge, Alert, Pagination, RadioButton, Accordion, Switch, Checkbox, Breadcrumb, CardIcon };
|
21
22
|
export default Layout;
|
package/index.js
CHANGED
@@ -18,5 +18,6 @@ import Switch from './components/Switches/Switch.svelte';
|
|
18
18
|
import Checkbox from './components/CheckBox/Checkbox.svelte';
|
19
19
|
import Breadcrumb from './components/Breadcrumb/Breadcrumb.svelte';
|
20
20
|
import Accordion from './components/Accordion/Accordion.svelte';
|
21
|
-
|
21
|
+
import CardIcon from './components/CardIcon/CardIcon.svelte';
|
22
|
+
export { Button, TextField, Card, Tooltip, Tab, Icon, Modal, Header, Dropdown, Badge, Alert, Pagination, RadioButton, Accordion, Switch, Checkbox, Breadcrumb, CardIcon };
|
22
23
|
export default Layout;
|