@enki-tek/fms-web-components 0.0.30 → 0.0.32

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.
@@ -1,9 +1,7 @@
1
1
  @import '../variable.scss';
2
2
 
3
3
  :global(.custom-badge) {
4
- display: flex;
5
- align-items: center;
6
- justify-content: center;
4
+ text-align:center;
7
5
  padding: 5px 8px;
8
6
  text-transform: capitalize;
9
7
  font-weight: 500;
@@ -4,7 +4,7 @@ export let config = "";
4
4
  export let className;
5
5
  let badgeStyles = [`custom-badge`, className];
6
6
  if (badgeConfig.hasOwnProperty(config)) {
7
- badgeStyles = [...badgeConfig[config], `custom-badge`, className];
7
+ badgeStyles = [...badgeConfig[config], ...badgeStyles];
8
8
  }
9
9
  </script>
10
10
 
@@ -20,9 +20,7 @@ if (badgeConfig.hasOwnProperty(config)) {
20
20
  @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");
21
21
  @import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
22
22
  :global(.custom-badge) {
23
- display: flex;
24
- align-items: center;
25
- justify-content: center;
23
+ text-align: center;
26
24
  padding: 5px 8px;
27
25
  text-transform: capitalize;
28
26
  font-weight: 500;
@@ -8,10 +8,11 @@
8
8
  export let outlineShade = '';
9
9
  export let size = '';
10
10
  export let disabled =false;
11
+ export let className;
11
12
 
12
- let buttonStyles = [];
13
+ let buttonStyles = [className];
13
14
  if (buttonConfig.hasOwnProperty(config)) {
14
- buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}`, `eoutline-${outlineShade}`, `ebtn-${size}`, `disabled`];
15
+ buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}`, `eoutline-${outlineShade}`, `ebtn-${size}`, `disabled`,className];
15
16
  }
16
17
 
17
18
  // icon button
@@ -2,6 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} ButtonEvents */
3
3
  /** @typedef {typeof __propDef.slots} ButtonSlots */
4
4
  export default class Button extends SvelteComponentTyped<{
5
+ className: any;
5
6
  disabled?: boolean | undefined;
6
7
  type?: string | undefined;
7
8
  label?: string | undefined;
@@ -30,6 +31,7 @@ export type ButtonSlots = typeof __propDef.slots;
30
31
  import { SvelteComponentTyped } from "svelte";
31
32
  declare const __propDef: {
32
33
  props: {
34
+ className: any;
33
35
  disabled?: boolean | undefined;
34
36
  type?: string | undefined;
35
37
  label?: string | undefined;
@@ -7,7 +7,7 @@
7
7
  };
8
8
  let cardClasses = [className];
9
9
  if (cardType.hasOwnProperty(type)) {
10
- cardClasses = [...cardType[type]];
10
+ cardClasses = [...cardType[type], ...cardClasses];
11
11
  }
12
12
  </script>
13
13
 
@@ -10,11 +10,12 @@
10
10
  export let valid = false;
11
11
  export let invalid = false;
12
12
  export let feedback;
13
+ export let className;
13
14
  </script>
14
15
 
15
16
  <Input
16
17
  {type}
17
- class="custom-field efs-normal"
18
+ class="custom-field efs-normal {className}"
18
19
  {placeholder}
19
20
  {name}
20
21
  {value}
@@ -2,6 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} TextFieldEvents */
3
3
  /** @typedef {typeof __propDef.slots} TextFieldSlots */
4
4
  export default class TextField extends SvelteComponentTyped<{
5
+ className: any;
5
6
  feedback: any;
6
7
  disabled?: boolean | undefined;
7
8
  invalid?: boolean | undefined;
@@ -23,6 +24,7 @@ export type TextFieldSlots = typeof __propDef.slots;
23
24
  import { SvelteComponentTyped } from "svelte";
24
25
  declare const __propDef: {
25
26
  props: {
27
+ className: any;
26
28
  feedback: any;
27
29
  disabled?: boolean | undefined;
28
30
  invalid?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",