@enki-tek/fms-web-components 0.0.79 → 0.0.81

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.
@@ -7,7 +7,7 @@
7
7
  border: none;
8
8
  cursor: pointer;
9
9
  border-radius: 6px;
10
- padding: 0px 24px;
10
+ padding: 10px 16px;
11
11
  height: $medium-height;
12
12
  box-shadow: $lowShadow;
13
13
  border: none;
@@ -31,7 +31,7 @@
31
31
 
32
32
  //medium button
33
33
  .ebtn-medium {
34
- padding: 0px 24px;
34
+ padding: 10px 16px;
35
35
  height: $medium-height;
36
36
  display: flex;
37
37
  justify-content: center;
@@ -56,7 +56,7 @@
56
56
  border: none;
57
57
  cursor: pointer;
58
58
  border-radius: 6px;
59
- padding: 0px 24px;
59
+ padding: 10px 16px;
60
60
  height: 42px;
61
61
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
62
62
  border: none;
@@ -75,7 +75,7 @@
75
75
  font-size: 12px;
76
76
  }
77
77
  .ebtn-medium {
78
- padding: 0px 24px;
78
+ padding: 10px 16px;
79
79
  height: 42px;
80
80
  display: flex;
81
81
  justify-content: center;
@@ -11,8 +11,9 @@ $icon-size:20px;
11
11
 
12
12
  .toast-main{
13
13
  position: fixed;
14
- bottom: 0;
15
- right: 0;
14
+ bottom: 14px;
15
+ right: 6px;
16
+ z-index: 2000;
16
17
  min-width: 100px;
17
18
  max-width: 500px;
18
19
  border: 1px solid $black;
@@ -4,9 +4,10 @@
4
4
  import {Icon} from 'sveltestrap'
5
5
  import { toastConfig } from "./ToastConfig";
6
6
 
7
- export let type = 'success';
7
+ export let type = '';
8
8
  export let className='';
9
9
  let iconName='';
10
+ export let label = '';
10
11
 
11
12
  let toastStyle = [`toast-main`,className];
12
13
 
@@ -31,7 +32,15 @@
31
32
  <Col sm=2 class=' d-flex justify-content-center align-items-center ps-0 pe-1'>
32
33
  <Icon name={iconName}></Icon>
33
34
  </Col>
34
- <Col sm=10 class='ps-0 pt-0 pb-0 pe-2'>Lorem ipsum dolor sit amet consectetur adipisicing elit.</Col>
35
+ <Col sm=10 class='ps-0 pt-0 pb-0 pe-2'>
36
+ <slot>
37
+ {#if label}
38
+ {label}
39
+ {:else}
40
+ <slot />
41
+ {/if}
42
+ </slot>
43
+ </Col>
35
44
  </Row>
36
45
  </div>
37
46
 
@@ -47,8 +56,9 @@
47
56
  }
48
57
  .toast-main {
49
58
  position: fixed;
50
- bottom: 0;
51
- right: 0;
59
+ bottom: 14px;
60
+ right: 6px;
61
+ z-index: 2000;
52
62
  min-width: 100px;
53
63
  max-width: 500px;
54
64
  border: 1px solid #000000;
@@ -3,10 +3,13 @@
3
3
  /** @typedef {typeof __propDef.slots} ToastSlots */
4
4
  export default class Toast extends SvelteComponentTyped<{
5
5
  type?: string | undefined;
6
+ label?: string | undefined;
6
7
  className?: string | undefined;
7
8
  }, {
8
9
  [evt: string]: CustomEvent<any>;
9
- }, {}> {
10
+ }, {
11
+ default: {};
12
+ }> {
10
13
  }
11
14
  export type ToastProps = typeof __propDef.props;
12
15
  export type ToastEvents = typeof __propDef.events;
@@ -15,11 +18,14 @@ import { SvelteComponentTyped } from "svelte";
15
18
  declare const __propDef: {
16
19
  props: {
17
20
  type?: string | undefined;
21
+ label?: string | undefined;
18
22
  className?: string | undefined;
19
23
  };
20
24
  events: {
21
25
  [evt: string]: CustomEvent<any>;
22
26
  };
23
- slots: {};
27
+ slots: {
28
+ default: {};
29
+ };
24
30
  };
25
31
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",