@enki-tek/fms-web-components 0.0.57 → 0.0.59
Sign up to get free protection for your applications and to get access to all the features.
- package/components/Button/Button.scss +99 -13
- package/components/Button/Button.svelte +80 -11
- package/components/Button/Button.svelte.d.ts +2 -0
- package/components/Header/Brand.svelte +3 -0
- package/components/Header/Header.scss +5 -0
- package/components/Header/Header.svelte +3 -0
- package/components/Header/HeaderItem.svelte +15 -2
- package/components/Header/HeaderItem.svelte.d.ts +2 -0
- package/components/Header/UserAvatar.svelte +3 -0
- package/components/TextField/TextField.scss +4 -3
- package/components/TextField/TextField.svelte +4 -2
- package/components/variable.scss +2 -14
- package/package.json +1 -1
@@ -104,86 +104,173 @@
|
|
104
104
|
color: $black !important;
|
105
105
|
}
|
106
106
|
|
107
|
-
|
108
|
-
.
|
109
|
-
.ehover-secondary:hover {
|
107
|
+
// secondary color hover and acitve
|
108
|
+
.ebg-secondary{
|
110
109
|
background-color: $secondary !important;
|
111
110
|
}
|
111
|
+
.ebg-secondary:hover,.ebg-secondary:focus {
|
112
|
+
background-color: $secondary-light;
|
113
|
+
transition: all $transitionTimeHover;
|
114
|
+
}
|
112
115
|
|
113
|
-
|
114
|
-
.
|
115
|
-
.ehover-secondaryDark:hover {
|
116
|
+
// secondaryDark color hover and acitve
|
117
|
+
.ebg-secondaryDark{
|
116
118
|
background-color: $secondary-dark;
|
117
119
|
}
|
120
|
+
.ebg-secondaryDark:hover,.ebg-secondaryDark:focus {
|
121
|
+
background-color: $secondary;
|
122
|
+
transition: all $transitionTimeHover;
|
123
|
+
}
|
118
124
|
|
119
|
-
|
120
|
-
.
|
121
|
-
.ehover-secondaryLight:hover {
|
125
|
+
// secondaryLight color hover and acitve
|
126
|
+
.ebg-secondaryLight{
|
122
127
|
background-color: $secondary-light;
|
123
128
|
}
|
129
|
+
.ebg-secondaryLight:hover,.ebg-secondaryLight:focus {
|
130
|
+
background-color: $secondary;
|
131
|
+
transition: all $transitionTimeHover;
|
132
|
+
}
|
133
|
+
|
124
134
|
|
135
|
+
// primary color hover and acitve
|
125
136
|
.ebg-primary {
|
126
137
|
background-color: $primary;
|
127
138
|
}
|
139
|
+
.ebg-primary:hover,.ebg-primary:focus {
|
140
|
+
background-color: $primary-dark;
|
141
|
+
transition: all $transitionTimeHover;
|
142
|
+
}
|
128
143
|
|
144
|
+
// primaryDark color hover and acitve
|
129
145
|
.ebg-primaryDark {
|
130
146
|
background-color: $primary-dark;
|
131
147
|
}
|
148
|
+
.ebg-primaryDark:hover,.ebg-primaryDark:focus {
|
149
|
+
background-color: $primary;
|
150
|
+
transition: all $transitionTimeHover;
|
151
|
+
}
|
132
152
|
|
153
|
+
// primaryLight color hover and acitve
|
133
154
|
.ebg-primaryLight {
|
134
155
|
background-color: $primary-light;
|
135
156
|
}
|
157
|
+
.ebg-primaryLight:hover,.ebg-primaryLight:focus {
|
158
|
+
transition: all $transitionTimeHover;
|
159
|
+
background-color: $primary;
|
160
|
+
transition: all $transitionTimeHover;
|
161
|
+
}
|
136
162
|
|
163
|
+
// danger color hover and acitve
|
137
164
|
.ebg-danger {
|
138
165
|
background-color: $danger ;
|
139
166
|
}
|
167
|
+
.ebg-danger:hover,.ebg-danger:focus {
|
168
|
+
transition: all $transitionTimeHover;
|
169
|
+
background-color: $danger-dark ;
|
170
|
+
}
|
140
171
|
|
172
|
+
// dangerDark color hover and acitve
|
141
173
|
.ebg-dangerDark {
|
142
174
|
background-color: $danger-dark;
|
143
175
|
}
|
176
|
+
.ebg-dangerDark:hover,.ebg-dangerDark:focus {
|
177
|
+
transition: all $transitionTimeHover;
|
178
|
+
background-color: $danger;
|
179
|
+
}
|
144
180
|
|
181
|
+
// dangerLight color hover and acitve
|
145
182
|
.ebg-dangerLight {
|
146
183
|
background-color: $danger-light;
|
147
184
|
}
|
185
|
+
.ebg-dangerLight:hover,.ebg-dangerLight:focus {
|
186
|
+
transition: all $transitionTimeHover;
|
187
|
+
background-color: $danger;
|
188
|
+
}
|
148
189
|
|
190
|
+
// warning color hover and acitve
|
149
191
|
.ebg-warning {
|
150
192
|
background-color: $warning;
|
151
193
|
}
|
194
|
+
.ebg-warning:hover,.ebg-warning:focus {
|
195
|
+
transition: all $transitionTimeHover;
|
196
|
+
background-color: $warning-dark;
|
197
|
+
}
|
152
198
|
|
199
|
+
// warningDark color hover and acitve
|
153
200
|
.ebg-warningDark {
|
154
201
|
background-color: $warning-dark;
|
155
202
|
color: $white !important;
|
156
203
|
}
|
204
|
+
.ebg-warningDark:hover,.ebg-warningDark:focus {
|
205
|
+
transition: all $transitionTimeHover;
|
206
|
+
background-color: $warning;
|
207
|
+
color: $white !important;
|
208
|
+
}
|
157
209
|
|
210
|
+
// warningLight color hover and acitve
|
158
211
|
.ebg-warningLight {
|
159
212
|
background-color: $warning-light;
|
160
213
|
}
|
214
|
+
.ebg-warningLight:hover,.ebg-warningLight:focus {
|
215
|
+
transition: all $transitionTimeHover;
|
216
|
+
background-color: $warning;
|
217
|
+
}
|
161
218
|
|
162
|
-
|
219
|
+
// info color hover and acitve
|
163
220
|
.ebg-info {
|
164
221
|
background-color: $info;
|
165
222
|
}
|
166
|
-
|
223
|
+
.ebg-info:hover,.ebg-info:focus {
|
224
|
+
transition: all $transitionTimeHover;
|
225
|
+
background-color: $info-dark;
|
226
|
+
}
|
227
|
+
// info color hover and acitve
|
167
228
|
.ebg-infoDark {
|
168
229
|
background-color: $info-dark;
|
169
230
|
}
|
231
|
+
.ebg-infoDark:hover,.ebg-infoDark:focus {
|
232
|
+
transition: all $transitionTimeHover;
|
233
|
+
background-color: $info;
|
234
|
+
}
|
170
235
|
|
236
|
+
// info color hover and acitve
|
171
237
|
.ebg-infoLight {
|
172
238
|
background-color: $info-light;
|
173
239
|
}
|
240
|
+
.ebg-infoLight:hover,.ebg-infoLight:focus {
|
241
|
+
transition: all $transitionTimeHover;
|
242
|
+
background-color: $info;
|
243
|
+
}
|
174
244
|
|
175
|
-
|
245
|
+
// success color hover and acitve
|
176
246
|
.ebg-success {
|
177
247
|
background-color: $success;
|
178
248
|
}
|
249
|
+
.ebg-success:hover,.ebg-success:focus {
|
250
|
+
transition: all $transitionTimeHover;
|
251
|
+
background-color: $success-dark;
|
252
|
+
}
|
179
253
|
|
254
|
+
// success color hover and acitve
|
180
255
|
.ebg-successDark {
|
181
256
|
background-color: $success-dark;
|
182
257
|
}
|
258
|
+
.ebg-successDark:hover,.ebg-successDark:focus {
|
259
|
+
transition: all $transitionTimeHover;
|
260
|
+
background-color: $success;
|
261
|
+
}
|
183
262
|
|
263
|
+
// success color hover and acitve
|
184
264
|
.ebg-successLight {
|
185
265
|
background-color: $success-light;
|
186
266
|
}
|
267
|
+
.ebg-successLight:hover,.ebg-successLight:focus {
|
268
|
+
transition: all $transitionTimeHover;
|
269
|
+
background-color: $success;
|
270
|
+
}
|
271
|
+
|
272
|
+
|
273
|
+
|
187
274
|
|
188
275
|
.ebg-gray100 {
|
189
276
|
background-color: $gray-100;
|
@@ -640,7 +727,6 @@
|
|
640
727
|
|
641
728
|
|
642
729
|
//outline classess
|
643
|
-
|
644
730
|
.eoutline-secondary {
|
645
731
|
outline: 1px solid $secondary;
|
646
732
|
}
|
@@ -9,10 +9,11 @@
|
|
9
9
|
export let size = '';
|
10
10
|
export let disabled =false;
|
11
11
|
export let className = "";
|
12
|
+
export let id='';
|
12
13
|
|
13
14
|
let buttonStyles = [className];
|
14
15
|
if (buttonConfig.hasOwnProperty(config)) {
|
15
|
-
buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}`, `eoutline-${outlineShade}`, `ebtn-${size}
|
16
|
+
buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}`, `eoutline-${outlineShade}`, `ebtn-${size}`,`ebtn-${shade}:hover`,`ebtn-${shade}:focus` ,`disabled`,className];
|
16
17
|
}
|
17
18
|
|
18
19
|
// icon button
|
@@ -26,7 +27,7 @@
|
|
26
27
|
}
|
27
28
|
</script>
|
28
29
|
|
29
|
-
<button {...$$restProps} {type} class={buttonStyles.join(' ')} on:click on:focus on:blur {disabled} >
|
30
|
+
<button {...$$restProps} {type} id={id} class={buttonStyles.join(' ')} on:click on:focus on:blur {disabled} >
|
30
31
|
<slot>
|
31
32
|
{#if label}
|
32
33
|
{label}
|
@@ -124,67 +125,135 @@
|
|
124
125
|
background-color: #ffffff !important;
|
125
126
|
color: #000000 !important;
|
126
127
|
}
|
127
|
-
.ebg-secondary
|
128
|
-
.eactive-secondary:active,
|
129
|
-
.ehover-secondary:hover {
|
128
|
+
.ebg-secondary {
|
130
129
|
background-color: #3AC82E !important;
|
131
130
|
}
|
132
|
-
.ebg-
|
133
|
-
|
134
|
-
|
131
|
+
.ebg-secondary:hover, .ebg-secondary:focus {
|
132
|
+
background-color: #CBFFC7;
|
133
|
+
transition: all 0.3s;
|
134
|
+
}
|
135
|
+
.ebg-secondaryDark {
|
135
136
|
background-color: #00A855;
|
136
137
|
}
|
137
|
-
.ebg-
|
138
|
-
|
139
|
-
|
138
|
+
.ebg-secondaryDark:hover, .ebg-secondaryDark:focus {
|
139
|
+
background-color: #3AC82E;
|
140
|
+
transition: all 0.3s;
|
141
|
+
}
|
142
|
+
.ebg-secondaryLight {
|
140
143
|
background-color: #CBFFC7;
|
141
144
|
}
|
145
|
+
.ebg-secondaryLight:hover, .ebg-secondaryLight:focus {
|
146
|
+
background-color: #3AC82E;
|
147
|
+
transition: all 0.3s;
|
148
|
+
}
|
142
149
|
.ebg-primary {
|
143
150
|
background-color: #00AEE5;
|
144
151
|
}
|
152
|
+
.ebg-primary:hover, .ebg-primary:focus {
|
153
|
+
background-color: #007FD8;
|
154
|
+
transition: all 0.3s;
|
155
|
+
}
|
145
156
|
.ebg-primaryDark {
|
146
157
|
background-color: #007FD8;
|
147
158
|
}
|
159
|
+
.ebg-primaryDark:hover, .ebg-primaryDark:focus {
|
160
|
+
background-color: #00AEE5;
|
161
|
+
transition: all 0.3s;
|
162
|
+
}
|
148
163
|
.ebg-primaryLight {
|
149
164
|
background-color: #CEF3FF;
|
150
165
|
}
|
166
|
+
.ebg-primaryLight:hover, .ebg-primaryLight:focus {
|
167
|
+
transition: all 0.3s;
|
168
|
+
background-color: #00AEE5;
|
169
|
+
transition: all 0.3s;
|
170
|
+
}
|
151
171
|
.ebg-danger {
|
152
172
|
background-color: #FE4747;
|
153
173
|
}
|
174
|
+
.ebg-danger:hover, .ebg-danger:focus {
|
175
|
+
transition: all 0.3s;
|
176
|
+
background-color: #B02A37;
|
177
|
+
}
|
154
178
|
.ebg-dangerDark {
|
155
179
|
background-color: #B02A37;
|
156
180
|
}
|
181
|
+
.ebg-dangerDark:hover, .ebg-dangerDark:focus {
|
182
|
+
transition: all 0.3s;
|
183
|
+
background-color: #FE4747;
|
184
|
+
}
|
157
185
|
.ebg-dangerLight {
|
158
186
|
background-color: #FE4747;
|
159
187
|
}
|
188
|
+
.ebg-dangerLight:hover, .ebg-dangerLight:focus {
|
189
|
+
transition: all 0.3s;
|
190
|
+
background-color: #FE4747;
|
191
|
+
}
|
160
192
|
.ebg-warning {
|
161
193
|
background-color: #FFBA3A;
|
162
194
|
}
|
195
|
+
.ebg-warning:hover, .ebg-warning:focus {
|
196
|
+
transition: all 0.3s;
|
197
|
+
background-color: #997404;
|
198
|
+
}
|
163
199
|
.ebg-warningDark {
|
164
200
|
background-color: #997404;
|
165
201
|
color: #ffffff !important;
|
166
202
|
}
|
203
|
+
.ebg-warningDark:hover, .ebg-warningDark:focus {
|
204
|
+
transition: all 0.3s;
|
205
|
+
background-color: #FFBA3A;
|
206
|
+
color: #ffffff !important;
|
207
|
+
}
|
167
208
|
.ebg-warningLight {
|
168
209
|
background-color: #FFF3CD;
|
169
210
|
}
|
211
|
+
.ebg-warningLight:hover, .ebg-warningLight:focus {
|
212
|
+
transition: all 0.3s;
|
213
|
+
background-color: #FFBA3A;
|
214
|
+
}
|
170
215
|
.ebg-info {
|
171
216
|
background-color: #0DCAF0;
|
172
217
|
}
|
218
|
+
.ebg-info:hover, .ebg-info:focus {
|
219
|
+
transition: all 0.3s;
|
220
|
+
background-color: #087990;
|
221
|
+
}
|
173
222
|
.ebg-infoDark {
|
174
223
|
background-color: #087990;
|
175
224
|
}
|
225
|
+
.ebg-infoDark:hover, .ebg-infoDark:focus {
|
226
|
+
transition: all 0.3s;
|
227
|
+
background-color: #0DCAF0;
|
228
|
+
}
|
176
229
|
.ebg-infoLight {
|
177
230
|
background-color: #9EEAF9;
|
178
231
|
}
|
232
|
+
.ebg-infoLight:hover, .ebg-infoLight:focus {
|
233
|
+
transition: all 0.3s;
|
234
|
+
background-color: #0DCAF0;
|
235
|
+
}
|
179
236
|
.ebg-success {
|
180
237
|
background-color: #00A96B;
|
181
238
|
}
|
239
|
+
.ebg-success:hover, .ebg-success:focus {
|
240
|
+
transition: all 0.3s;
|
241
|
+
background-color: #146C43;
|
242
|
+
}
|
182
243
|
.ebg-successDark {
|
183
244
|
background-color: #146C43;
|
184
245
|
}
|
246
|
+
.ebg-successDark:hover, .ebg-successDark:focus {
|
247
|
+
transition: all 0.3s;
|
248
|
+
background-color: #00A96B;
|
249
|
+
}
|
185
250
|
.ebg-successLight {
|
186
251
|
background-color: #D1E7DD;
|
187
252
|
}
|
253
|
+
.ebg-successLight:hover, .ebg-successLight:focus {
|
254
|
+
transition: all 0.3s;
|
255
|
+
background-color: #00A96B;
|
256
|
+
}
|
188
257
|
.ebg-gray100 {
|
189
258
|
background-color: #F8F9FA;
|
190
259
|
}
|
@@ -4,6 +4,7 @@
|
|
4
4
|
export default class Button extends SvelteComponentTyped<{
|
5
5
|
[x: string]: any;
|
6
6
|
size?: string | undefined;
|
7
|
+
id?: string | undefined;
|
7
8
|
disabled?: boolean | undefined;
|
8
9
|
type?: string | undefined;
|
9
10
|
label?: string | undefined;
|
@@ -34,6 +35,7 @@ declare const __propDef: {
|
|
34
35
|
props: {
|
35
36
|
[x: string]: any;
|
36
37
|
size?: string | undefined;
|
38
|
+
id?: string | undefined;
|
37
39
|
disabled?: boolean | undefined;
|
38
40
|
type?: string | undefined;
|
39
41
|
label?: string | undefined;
|
@@ -4,12 +4,22 @@
|
|
4
4
|
NavLink,
|
5
5
|
Icon
|
6
6
|
} from 'sveltestrap';
|
7
|
-
export let iconName ='
|
7
|
+
export let iconName ='';
|
8
8
|
export let link = "#";
|
9
|
+
export let type = " ";
|
10
|
+
|
9
11
|
</script>
|
10
12
|
|
11
13
|
<NavItem class='me-3' {...$$restProps}>
|
12
|
-
<NavLink href={link} class='headerIcons' on:click
|
14
|
+
<NavLink href={link} class='headerIcons' on:click>
|
15
|
+
{#if type === "icon"}
|
16
|
+
<Icon name={iconName}></Icon>
|
17
|
+
{:else if type === "avatarText"}
|
18
|
+
<span class="avatar-text">
|
19
|
+
<slot></slot>
|
20
|
+
</span>
|
21
|
+
{/if}
|
22
|
+
</NavLink>
|
13
23
|
</NavItem>
|
14
24
|
|
15
25
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
@@ -39,6 +49,9 @@
|
|
39
49
|
width: 45px;
|
40
50
|
font-weight: bold;
|
41
51
|
}
|
52
|
+
.avatar-text {
|
53
|
+
color: black;
|
54
|
+
}
|
42
55
|
:global(.headerIcons i) {
|
43
56
|
padding: 0 4px;
|
44
57
|
font-size: 18px;
|
@@ -4,6 +4,7 @@
|
|
4
4
|
export default class HeaderItem extends SvelteComponentTyped<{
|
5
5
|
[x: string]: any;
|
6
6
|
link?: string | undefined;
|
7
|
+
type?: string | undefined;
|
7
8
|
iconName?: string | undefined;
|
8
9
|
}, {
|
9
10
|
click: MouseEvent;
|
@@ -21,6 +22,7 @@ declare const __propDef: {
|
|
21
22
|
props: {
|
22
23
|
[x: string]: any;
|
23
24
|
link?: string | undefined;
|
25
|
+
type?: string | undefined;
|
24
26
|
iconName?: string | undefined;
|
25
27
|
};
|
26
28
|
events: {
|
@@ -5,11 +5,10 @@
|
|
5
5
|
}
|
6
6
|
|
7
7
|
:global(.custom-field) {
|
8
|
-
box-shadow:
|
8
|
+
box-shadow: none;
|
9
9
|
color: $gray-500;
|
10
10
|
line-height: 20px;
|
11
11
|
display: flex;
|
12
|
-
padding: 16px;
|
13
12
|
align-items: center;
|
14
13
|
gap: 0.5rem;
|
15
14
|
align-self: stretch;
|
@@ -17,7 +16,9 @@
|
|
17
16
|
border: 1px solid $gray-300;
|
18
17
|
background: $white;
|
19
18
|
}
|
20
|
-
|
19
|
+
:global(input[type='date']){
|
20
|
+
color: $gray-900;
|
21
|
+
}
|
21
22
|
:global(.form-control:focus) {
|
22
23
|
box-shadow: none;
|
23
24
|
border-color: $primary;
|
@@ -41,11 +41,10 @@
|
|
41
41
|
font-family: Roboto;
|
42
42
|
}
|
43
43
|
:global(.custom-field) {
|
44
|
-
box-shadow:
|
44
|
+
box-shadow: none;
|
45
45
|
color: #adb5bd;
|
46
46
|
line-height: 20px;
|
47
47
|
display: flex;
|
48
|
-
padding: 16px;
|
49
48
|
align-items: center;
|
50
49
|
gap: 0.5rem;
|
51
50
|
align-self: stretch;
|
@@ -53,6 +52,9 @@
|
|
53
52
|
border: 1px solid #DEE2E6;
|
54
53
|
background: #ffffff;
|
55
54
|
}
|
55
|
+
:global(input[type="date"]) {
|
56
|
+
color: #212529;
|
57
|
+
}
|
56
58
|
:global(.form-control:focus) {
|
57
59
|
box-shadow: none;
|
58
60
|
border-color: #00AEE5;
|
package/components/variable.scss
CHANGED
@@ -121,18 +121,6 @@ $lowShadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.10);
|
|
121
121
|
$mediumShadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.10);
|
122
122
|
$highShadow: 0px 1px 16px 0px rgba(0, 0, 0, 0.10);
|
123
123
|
|
124
|
-
//
|
125
|
-
// $shadow-key-penumbra-opacity: 0.14 !default;
|
126
|
-
// $shadow-ambient-shadow-opacity: 0.12 !default;
|
124
|
+
// transition variable hover
|
127
125
|
|
128
|
-
|
129
|
-
// 0 1px 10px 0 rgba(0, 0, 0, $shadow-ambient-shadow-opacity),
|
130
|
-
// 0 2px 4px -1px rgba(0, 0, 0, $shadow-key-umbra-opacity);
|
131
|
-
|
132
|
-
//$mediumShadow:0 8px 10px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity),
|
133
|
-
// 0 3px 14px 2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity),
|
134
|
-
// 0 5px 5px -3px rgba(0, 0, 0, $shadow-key-umbra-opacity);
|
135
|
-
|
136
|
-
//$highShadow:0 16px 24px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity),
|
137
|
-
// 0 6px 30px 5px rgba(0, 0, 0, $shadow-ambient-shadow-opacity),
|
138
|
-
// 0 8px 10px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity);
|
126
|
+
$transitionTimeHover:.3s;
|