@functionalcms/svelte-components 2.3.4 → 2.3.6

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,14 @@
1
- <script>export let background = "";
1
+ <script>import { Justify, AlignItmes } from "./Styling.js";
2
+ export let background = "";
2
3
  export let css = "";
4
+ export let justify = Justify.Start;
5
+ export let alignItems = AlignItmes.Start;
3
6
  $:
4
7
  klasses = [
5
8
  "flex",
6
- css ? css : ""
9
+ css ? css : "",
10
+ `${justify}`,
11
+ `${alignItems}`
7
12
  ].filter((c) => c).join(" ");
8
13
  </script>
9
14
 
@@ -1,8 +1,11 @@
1
1
  import { SvelteComponent } from "svelte";
2
+ import { Justify, AlignItmes } 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>;
@@ -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",
@@ -14,9 +21,9 @@ export declare enum Placement {
14
21
  Content = "content"
15
22
  }
16
23
  export declare enum Orientation {
17
- Row = "row",
18
- Column = "column",
19
- DynamicRow = "row-dynamic"
24
+ Row = "flex-row",
25
+ Column = "flex-column",
26
+ DynamicRow = "flex-row-dynamic"
20
27
  }
21
28
  export declare enum Position {
22
29
  Left = 0,
@@ -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";
@@ -17,9 +25,9 @@ export var Placement;
17
25
  })(Placement || (Placement = {}));
18
26
  export var Orientation;
19
27
  (function (Orientation) {
20
- Orientation["Row"] = "row";
21
- Orientation["Column"] = "column";
22
- Orientation["DynamicRow"] = "row-dynamic";
28
+ Orientation["Row"] = "flex-row";
29
+ Orientation["Column"] = "flex-column";
30
+ Orientation["DynamicRow"] = "flex-row-dynamic";
23
31
  })(Orientation || (Orientation = {}));
24
32
  export var Position;
25
33
  (function (Position) {
@@ -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
+ `${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 { 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, 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, 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.4",
3
+ "version": "2.3.6",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": ["src"],