@functionalcms/svelte-components 2.3.3 → 2.3.5

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,13 @@
1
1
  <script>export let background = "";
2
2
  export let css = "";
3
+ export let justify = Justify.Start;
4
+ export let alignItems = AlignItmes.Start;
3
5
  $:
4
6
  klasses = [
5
7
  "flex",
6
- css ? css : ""
8
+ css ? css : "",
9
+ `${justify}`,
10
+ `${alignItems}`
7
11
  ].filter((c) => c).join(" ");
8
12
  </script>
9
13
 
@@ -1,8 +1,11 @@
1
1
  import { SvelteComponent } from "svelte";
2
+ import type { AlignItmes, Justify } from "./Styling.js";
2
3
  declare const __propDef: {
3
4
  props: {
4
5
  background?: string | undefined;
5
6
  css?: string | undefined;
7
+ justify?: Justify | undefined;
8
+ alignItems?: AlignItmes | undefined;
6
9
  };
7
10
  events: {
8
11
  [evt: string]: CustomEvent<any>;
@@ -15,8 +15,9 @@
15
15
 
16
16
  <script>export let companyName;
17
17
  export let logoUrl;
18
+ export let css = "logo";
18
19
  </script>
19
20
 
20
- <a href="/">
21
+ <a href="/" class={css}>
21
22
  <img src={logoUrl} alt={companyName} />
22
23
  </a>
@@ -7,6 +7,9 @@ declare const __propDef: {
7
7
  /**
8
8
  * @type {string}
9
9
  */ logoUrl: string;
10
+ /**
11
+ * @type {string}
12
+ */ css?: string | undefined;
10
13
  };
11
14
  events: {
12
15
  [evt: string]: CustomEvent<any>;
@@ -1,9 +1,16 @@
1
1
  export declare enum Justify {
2
- Start = "start",
3
- End = "end",
4
- Center = "center",
5
- Between = "between",
6
- Around = "around"
2
+ Start = "justify-start",
3
+ End = "justify-end",
4
+ Center = "justify-center",
5
+ Between = "justify-between",
6
+ Around = "justify-around"
7
+ }
8
+ export declare enum AlignItmes {
9
+ Start = "items-start ",
10
+ End = "items-end",
11
+ Center = "items-center",
12
+ Baseline = "items-baseline",
13
+ Stretch = "items-stretch"
7
14
  }
8
15
  export declare enum Placement {
9
16
  Start = "start",
@@ -1,11 +1,19 @@
1
1
  export var Justify;
2
2
  (function (Justify) {
3
- Justify["Start"] = "start";
4
- Justify["End"] = "end";
5
- Justify["Center"] = "center";
6
- Justify["Between"] = "between";
7
- Justify["Around"] = "around";
3
+ Justify["Start"] = "justify-start";
4
+ Justify["End"] = "justify-end";
5
+ Justify["Center"] = "justify-center";
6
+ Justify["Between"] = "justify-between";
7
+ Justify["Around"] = "justify-around";
8
8
  })(Justify || (Justify = {}));
9
+ export var AlignItmes;
10
+ (function (AlignItmes) {
11
+ AlignItmes["Start"] = "items-start ";
12
+ AlignItmes["End"] = "items-end";
13
+ AlignItmes["Center"] = "items-center";
14
+ AlignItmes["Baseline"] = "items-baseline";
15
+ AlignItmes["Stretch"] = "items-stretch";
16
+ })(AlignItmes || (AlignItmes = {}));
9
17
  export var Placement;
10
18
  (function (Placement) {
11
19
  Placement["Start"] = "start";
@@ -12,14 +12,18 @@
12
12
  }
13
13
  </style>
14
14
 
15
- <script>import { Orientation } from "./Styling.js";
15
+ <script>import { AlignItmes, Justify, Orientation, Position } from "./Styling.js";
16
16
  export let css = "";
17
17
  export let orientation = Orientation.Column;
18
+ export let justify = Justify.Start;
19
+ export let alignItems = AlignItmes.Start;
18
20
  $:
19
21
  klasses = [
20
22
  "flex",
21
23
  css ? css : "",
22
- `flex-${orientation}`
24
+ `flex-${orientation}`,
25
+ `${justify}`,
26
+ `${alignItems}`
23
27
  ].filter((c) => c).join(" ");
24
28
  </script>
25
29
 
@@ -1,9 +1,11 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import { Orientation } from "./Styling.js";
2
+ import { AlignItmes, Justify, Orientation } from "./Styling.js";
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  css?: string | undefined;
6
6
  orientation?: Orientation | undefined;
7
+ justify?: Justify | undefined;
8
+ alignItems?: AlignItmes | undefined;
7
9
  };
8
10
  events: {
9
11
  [evt: string]: CustomEvent<any>;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,6 @@ import Well from './components/Well.svelte';
10
10
  import { title, suffix } from './stores/title.js';
11
11
  import { pages } from './stores/pages.js';
12
12
  import { metaDescription, metaKeywords } from './stores/meta.js';
13
- import { Justify, Placement, Orientation, Position, Sizes } from './components/Styling.js';
13
+ import { Justify, Placement, Orientation, Position, Sizes, AlignItmes } from './components/Styling.js';
14
14
  import { Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Menu, MenuItem, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts } from 'agnostic-svelte';
15
- export { FlatMenu, HamburgerMenu, Visiblity, HeaderNavigationItem, Banner, DefaultLayout, Logo, SimpleFooter, Spacer, Well, Justify, Placement, Orientation, Position, Sizes, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Menu, MenuItem, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
15
+ export { FlatMenu, HamburgerMenu, Visiblity, HeaderNavigationItem, Banner, DefaultLayout, Logo, SimpleFooter, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Menu, MenuItem, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
package/dist/index.js CHANGED
@@ -11,6 +11,6 @@ import Well from './components/Well.svelte';
11
11
  import { title, suffix } from './stores/title.js';
12
12
  import { pages } from './stores/pages.js';
13
13
  import { metaDescription, metaKeywords } from './stores/meta.js';
14
- import { Justify, Placement, Orientation, Position, Sizes } from './components/Styling.js';
14
+ import { Justify, Placement, Orientation, Position, Sizes, AlignItmes } from './components/Styling.js';
15
15
  import { Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Menu, MenuItem, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts } from 'agnostic-svelte';
16
- export { FlatMenu, HamburgerMenu, Visiblity, HeaderNavigationItem, Banner, DefaultLayout, Logo, SimpleFooter, Spacer, Well, Justify, Placement, Orientation, Position, Sizes, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Menu, MenuItem, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
16
+ export { FlatMenu, HamburgerMenu, Visiblity, HeaderNavigationItem, Banner, DefaultLayout, Logo, SimpleFooter, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, title, suffix, pages, metaDescription, metaKeywords, Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Menu, MenuItem, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": ["src"],