@enki-tek/fms-web-components 0.0.23 → 0.0.24

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,7 +1,8 @@
1
1
  <script>import { Card, CardBody, CardTitle, Icon } from "sveltestrap";
2
2
  import { titleConfig } from "./CardIconConfig";
3
+ export let className;
3
4
  export let titleLocation = "top";
4
- let titlelocationStyle = [`custom-card-style`];
5
+ let titlelocationStyle = [`custom-card-style`, className];
5
6
  if (titleConfig.includes(titleLocation)) {
6
7
  titlelocationStyle.push(titleLocation);
7
8
  }
@@ -1,6 +1,7 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ className: any;
4
5
  titleLocation?: string | undefined;
5
6
  };
6
7
  events: {
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  import { CardBody } from 'sveltestrap';
3
+ export let className;
3
4
  </script>
4
5
 
5
- <CardBody class="custom-cardicon-body">
6
+ <CardBody class='custom-cardicon-body {className}'>
6
7
  <slot />
7
8
  </CardBody>
8
9
 
@@ -2,7 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CardiconBodyEvents */
3
3
  /** @typedef {typeof __propDef.slots} CardiconBodySlots */
4
4
  export default class CardiconBody extends SvelteComponentTyped<{
5
- [x: string]: never;
5
+ className: any;
6
6
  }, {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
@@ -15,7 +15,7 @@ export type CardiconBodySlots = typeof __propDef.slots;
15
15
  import { SvelteComponentTyped } from "svelte";
16
16
  declare const __propDef: {
17
17
  props: {
18
- [x: string]: never;
18
+ className: any;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -2,9 +2,10 @@
2
2
  import { CardSubtitle } from 'sveltestrap';
3
3
  import { subtitleConfig } from './CardIconConfig';
4
4
 
5
+ export let className;
5
6
  export let subtitleLocation = 'top-left';
6
7
 
7
- let subtitlelocationSytle = [`cardicon-content`];
8
+ let subtitlelocationSytle = [`cardicon-content`,className];
8
9
 
9
10
  if (subtitleConfig.includes(subtitleLocation)) {
10
11
  subtitlelocationSytle.push(subtitleLocation);
@@ -2,6 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CardiconSubtitleEvents */
3
3
  /** @typedef {typeof __propDef.slots} CardiconSubtitleSlots */
4
4
  export default class CardiconSubtitle extends SvelteComponentTyped<{
5
+ className: any;
5
6
  subtitleLocation?: string | undefined;
6
7
  }, {
7
8
  [evt: string]: CustomEvent<any>;
@@ -15,6 +16,7 @@ export type CardiconSubtitleSlots = typeof __propDef.slots;
15
16
  import { SvelteComponentTyped } from "svelte";
16
17
  declare const __propDef: {
17
18
  props: {
19
+ className: any;
18
20
  subtitleLocation?: string | undefined;
19
21
  };
20
22
  events: {
@@ -5,8 +5,9 @@
5
5
  export let title = 'Card title';
6
6
  export let name = 'bell';
7
7
  export let iconLocation = 'right';
8
+ export let className;
8
9
 
9
- let iconlocationStyle = [`cardicon-main`];
10
+ let iconlocationStyle = [`cardicon-main`,className];
10
11
 
11
12
  if (iconConfig.includes(iconLocation)) {
12
13
  iconlocationStyle.push(iconLocation);
@@ -2,6 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CardiconTitleEvents */
3
3
  /** @typedef {typeof __propDef.slots} CardiconTitleSlots */
4
4
  export default class CardiconTitle extends SvelteComponentTyped<{
5
+ className: any;
5
6
  name?: string | undefined;
6
7
  title?: string | undefined;
7
8
  iconLocation?: string | undefined;
@@ -15,6 +16,7 @@ export type CardiconTitleSlots = typeof __propDef.slots;
15
16
  import { SvelteComponentTyped } from "svelte";
16
17
  declare const __propDef: {
17
18
  props: {
19
+ className: any;
18
20
  name?: string | undefined;
19
21
  title?: string | undefined;
20
22
  iconLocation?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",