@enki-tek/fms-web-components 0.0.27 → 0.0.29

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.
@@ -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]];
7
+ badgeStyles = [...badgeConfig[config], `custom-badge`, className];
8
8
  }
9
9
  </script>
10
10
 
@@ -1,16 +1,17 @@
1
1
  <script>
2
2
  import { CardBody } from 'sveltestrap';
3
3
  export let type = '';
4
+ export let className = '';
4
5
  const cardType = {
5
6
  loginCard: 'login-card-body'
6
7
  };
7
- let tableClasses = [];
8
+ let cardClasses = [className];
8
9
  if (cardType.hasOwnProperty(type)) {
9
- tableClasses = [cardType[type]];
10
+ cardClasses = [...cardType[type]];
10
11
  }
11
12
  </script>
12
13
 
13
- <CardBody class={tableClasses.join(' ')}>
14
+ <CardBody class={cardClasses.join(' ')}>
14
15
  <slot />
15
16
  </CardBody>
16
17
 
@@ -3,6 +3,7 @@
3
3
  /** @typedef {typeof __propDef.slots} CardBodySlots */
4
4
  export default class CardBody extends SvelteComponentTyped<{
5
5
  type?: string | undefined;
6
+ className?: string | undefined;
6
7
  }, {
7
8
  [evt: string]: CustomEvent<any>;
8
9
  }, {
@@ -16,6 +17,7 @@ import { SvelteComponentTyped } from "svelte";
16
17
  declare const __propDef: {
17
18
  props: {
18
19
  type?: string | undefined;
20
+ className?: string | undefined;
19
21
  };
20
22
  events: {
21
23
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  import { CardFooter } from 'sveltestrap';
3
+ export let className = '';
3
4
  </script>
4
5
 
5
- <CardFooter>
6
+ <CardFooter class = {className}>
6
7
  <div class="footer">
7
8
  <slot />
8
9
  </div>
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CardFooterEvents */
3
3
  /** @typedef {typeof __propDef.slots} CardFooterSlots */
4
4
  export default class CardFooter extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type CardFooterSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  import { CardSubtitle } from 'sveltestrap';
3
+ export let className = '';
3
4
  </script>
4
5
 
5
- <CardSubtitle>
6
+ <CardSubtitle class= {className}>
6
7
  <div class="sub-title">
7
8
  <slot />
8
9
  </div>
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CardSubTitleEvents */
3
3
  /** @typedef {typeof __propDef.slots} CardSubTitleSlots */
4
4
  export default class CardSubTitle extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type CardSubTitleSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  import { CardText } from 'sveltestrap';
3
+ export let className = '';
3
4
  </script>
4
5
 
5
- <CardText>
6
+ <CardText class = {className}>
6
7
  <div class="text">
7
8
  <slot />
8
9
  </div>
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CardTextEvents */
3
3
  /** @typedef {typeof __propDef.slots} CardTextSlots */
4
4
  export default class CardText extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type CardTextSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  import { CardTitle } from 'sveltestrap';
3
+ export let className = '';
3
4
  </script>
4
5
 
5
- <CardTitle>
6
+ <CardTitle class = {className}>
6
7
  <div class="title">
7
8
  <slot />
8
9
  </div>
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CardTitleEvents */
3
3
  /** @typedef {typeof __propDef.slots} CardTitleSlots */
4
4
  export default class CardTitle extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type CardTitleSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  import { Card } from 'sveltestrap';
3
+ export let className = '';
3
4
  </script>
4
5
 
5
- <Card >
6
+ <Card class = {className} >
6
7
  <slot />
7
8
  </Card>
8
9
 
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} EnkiCardEvents */
3
3
  /** @typedef {typeof __propDef.slots} EnkiCardSlots */
4
4
  export default class EnkiCard extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type EnkiCardSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -2,12 +2,12 @@
2
2
  import { Table } from 'sveltestrap';
3
3
  export let size = "lg"
4
4
  export let type = ' ';
5
- export let classes ='' ;
5
+ export let className ='' ;
6
6
  const tableTypes = {
7
7
  hover:'table-hover' ,
8
8
  striped:'table-striped'
9
9
  }
10
- let tableClasses = ['table' ,classes];
10
+ let tableClasses = ['table' ,className];
11
11
  if (tableTypes.hasOwnProperty(type.trim())) {
12
12
  tableClasses.push(tableTypes[type.trim()]);
13
13
  }
@@ -4,7 +4,7 @@
4
4
  export default class EnkiTable extends SvelteComponentTyped<{
5
5
  type?: string | undefined;
6
6
  size?: string | undefined;
7
- classes?: string | undefined;
7
+ className?: string | undefined;
8
8
  }, {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  }, {
@@ -19,7 +19,7 @@ declare const __propDef: {
19
19
  props: {
20
20
  type?: string | undefined;
21
21
  size?: string | undefined;
22
- classes?: string | undefined;
22
+ className?: string | undefined;
23
23
  };
24
24
  events: {
25
25
  [evt: string]: CustomEvent<any>;
@@ -1,4 +1,8 @@
1
- <tbody>
1
+ <script>
2
+ export let className = '';
3
+ </script>
4
+
5
+ <tbody class={className}>
2
6
  <slot />
3
7
  </tbody>
4
8
 
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} TableBodyEvents */
3
3
  /** @typedef {typeof __propDef.slots} TableBodySlots */
4
4
  export default class TableBody extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type TableBodySlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -2,8 +2,8 @@
2
2
  export let dataLabel = " ";
3
3
  export let colspan = 1;
4
4
  export let rowspan = 1 ;
5
- export let classes = ''
6
- let tdStyles = ['td-div', classes]
5
+ export let className = ''
6
+ let tdStyles = ['td-div', className]
7
7
  </script>
8
8
 
9
9
  <td data-label ={dataLabel} colspan={colspan} rowspan={rowspan} class={tdStyles.join(' ')} ><slot /></td>
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} TableCellEvents */
3
3
  /** @typedef {typeof __propDef.slots} TableCellSlots */
4
4
  export default class TableCell extends SvelteComponentTyped<{
5
- classes?: string | undefined;
5
+ className?: string | undefined;
6
6
  colspan?: number | undefined;
7
7
  rowspan?: number | undefined;
8
8
  dataLabel?: string | undefined;
@@ -18,7 +18,7 @@ export type TableCellSlots = typeof __propDef.slots;
18
18
  import { SvelteComponentTyped } from "svelte";
19
19
  declare const __propDef: {
20
20
  props: {
21
- classes?: string | undefined;
21
+ className?: string | undefined;
22
22
  colspan?: number | undefined;
23
23
  rowspan?: number | undefined;
24
24
  dataLabel?: string | undefined;
@@ -1,4 +1,7 @@
1
- <thead>
1
+ <script>
2
+ export let className = '';
3
+ </script>
4
+ <thead class={className}>
2
5
  <slot />
3
6
  </thead>
4
7
 
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} TableHeadEvents */
3
3
  /** @typedef {typeof __propDef.slots} TableHeadSlots */
4
4
  export default class TableHead extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type TableHeadSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -2,7 +2,8 @@
2
2
  export let colspan = 1;
3
3
  export let rowspan = 1;
4
4
  export let textAlign = ' ';
5
- let tdStyles = ['th-div', `text-${textAlign}`];
5
+ export let className = '';
6
+ let tdStyles = ['th-div', `text-${textAlign}` , className];
6
7
  </script>
7
8
 
8
9
  <th colspan={colspan} rowspan={rowspan} class={tdStyles.join(' ')}><slot /></th>
@@ -2,6 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} TableHeadCellEvents */
3
3
  /** @typedef {typeof __propDef.slots} TableHeadCellSlots */
4
4
  export default class TableHeadCell extends SvelteComponentTyped<{
5
+ className?: string | undefined;
5
6
  colspan?: number | undefined;
6
7
  rowspan?: number | undefined;
7
8
  textAlign?: string | undefined;
@@ -17,6 +18,7 @@ export type TableHeadCellSlots = typeof __propDef.slots;
17
18
  import { SvelteComponentTyped } from "svelte";
18
19
  declare const __propDef: {
19
20
  props: {
21
+ className?: string | undefined;
20
22
  colspan?: number | undefined;
21
23
  rowspan?: number | undefined;
22
24
  textAlign?: string | undefined;
@@ -1,3 +1,11 @@
1
+ <script>
2
+ export let className = '';
3
+ </script>
4
+
5
+ <tr class={className}>
6
+ <slot />
7
+ </tr>
8
+
1
9
  <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
2
10
  @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");
3
11
  @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");
@@ -16,7 +24,3 @@
16
24
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
17
25
  font-weight: 400;
18
26
  }</style>
19
-
20
- <tr>
21
- <slot></slot>
22
- </tr>
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} TableRowEvents */
3
3
  /** @typedef {typeof __propDef.slots} TableRowSlots */
4
4
  export default class TableRow extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className?: string | undefined;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type TableRowSlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className?: string | undefined;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",