@functionalcms/svelte-components 2.20.2 → 2.21.0
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.
|
@@ -12,6 +12,11 @@ export declare enum AlignItmes {
|
|
|
12
12
|
Baseline = "items-baseline",
|
|
13
13
|
Stretch = "items-stretch"
|
|
14
14
|
}
|
|
15
|
+
export declare enum FlexType {
|
|
16
|
+
Column = "flex-colum",
|
|
17
|
+
Row = "flex-row",
|
|
18
|
+
DynamicRow = "flex-dynamic-row"
|
|
19
|
+
}
|
|
15
20
|
export declare enum Placement {
|
|
16
21
|
Start = "start",
|
|
17
22
|
End = "end",
|
|
@@ -14,6 +14,12 @@ export var AlignItmes;
|
|
|
14
14
|
AlignItmes["Baseline"] = "items-baseline";
|
|
15
15
|
AlignItmes["Stretch"] = "items-stretch";
|
|
16
16
|
})(AlignItmes || (AlignItmes = {}));
|
|
17
|
+
export var FlexType;
|
|
18
|
+
(function (FlexType) {
|
|
19
|
+
FlexType["Column"] = "flex-colum";
|
|
20
|
+
FlexType["Row"] = "flex-row";
|
|
21
|
+
FlexType["DynamicRow"] = "flex-dynamic-row";
|
|
22
|
+
})(FlexType || (FlexType = {}));
|
|
17
23
|
export var Placement;
|
|
18
24
|
(function (Placement) {
|
|
19
25
|
Placement["Start"] = "start";
|
|
@@ -12,17 +12,19 @@
|
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
14
|
|
|
15
|
-
<script>import { AlignItmes, Justify, Orientation
|
|
15
|
+
<script>import { AlignItmes, FlexType, Justify, Orientation } from "./Styling.js";
|
|
16
16
|
export let css = "";
|
|
17
17
|
export let orientation = Orientation.Column;
|
|
18
18
|
export let justify = Justify.Start;
|
|
19
19
|
export let alignItems = AlignItmes.Start;
|
|
20
|
+
export let flexType = FlexType.Column;
|
|
20
21
|
$: klasses = [
|
|
21
22
|
"flex",
|
|
22
|
-
|
|
23
|
+
`${flexType}`,
|
|
23
24
|
`${orientation}`,
|
|
24
25
|
`${justify}`,
|
|
25
|
-
`${alignItems}
|
|
26
|
+
`${alignItems}`,
|
|
27
|
+
css ? css : ""
|
|
26
28
|
].filter((c) => c).join(" ");
|
|
27
29
|
</script>
|
|
28
30
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { AlignItmes, Justify, Orientation } from "./Styling.js";
|
|
2
|
+
import { AlignItmes, FlexType, Justify, Orientation } from "./Styling.js";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
css?: string;
|
|
6
6
|
orientation?: Orientation;
|
|
7
7
|
justify?: Justify;
|
|
8
8
|
alignItems?: AlignItmes;
|
|
9
|
+
flexType?: FlexType;
|
|
9
10
|
};
|
|
10
11
|
events: {
|
|
11
12
|
[evt: string]: CustomEvent<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { ShowItem } from './components/presentation/ShowItem.js';
|
|
|
23
23
|
import { title, suffix } from './stores/title.js';
|
|
24
24
|
import { pages } from './stores/pages.js';
|
|
25
25
|
import { metaDescription, metaKeywords } from './stores/meta.js';
|
|
26
|
-
import { Justify, Placement, Orientation, Position, Sizes, AlignItmes } from './components/Styling.js';
|
|
26
|
+
import { Justify, Placement, Orientation, Position, Sizes, AlignItmes, FlexType } from './components/Styling.js';
|
|
27
27
|
import { Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts } from 'agnostic-svelte';
|
|
28
|
-
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, BlogTitle, BlogDescription, listAllPosts, importPost, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Carusel, CaruseleItem, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, 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, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|
|
28
|
+
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, BlogTitle, BlogDescription, listAllPosts, importPost, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Carusel, CaruseleItem, Spacer, Well, Justify, Placement, Orientation, AlignItmes, FlexType, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, 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, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|
|
29
29
|
export type { BlogPost };
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,6 @@ import { ShowItem } from './components/presentation/ShowItem.js';
|
|
|
22
22
|
import { title, suffix } from './stores/title.js';
|
|
23
23
|
import { pages } from './stores/pages.js';
|
|
24
24
|
import { metaDescription, metaKeywords } from './stores/meta.js';
|
|
25
|
-
import { Justify, Placement, Orientation, Position, Sizes, AlignItmes } from './components/Styling.js';
|
|
25
|
+
import { Justify, Placement, Orientation, Position, Sizes, AlignItmes, FlexType } from './components/Styling.js';
|
|
26
26
|
import { Alert, Avatar, AvatarGroup, Breadcrumb, Button, ButtonGroup, Card, ChoiceInput, Close, Dialog, Disclose, Divider, Drawer, EmptyState, Header, HeaderNav, HeaderNavItem, Icon, IconSvg, Input, InputAddonItem, Loader, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts } from 'agnostic-svelte';
|
|
27
|
-
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, BlogTitle, BlogDescription, listAllPosts, importPost, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Carusel, CaruseleItem, Spacer, Well, Justify, Placement, Orientation, AlignItmes, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, 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, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|
|
27
|
+
export { Visiblity, HeaderNavigationItem, DynamicMenu, FlatMenu, ColumnMenu, HamburgerMenu, BlogTitle, BlogDescription, listAllPosts, importPost, DefaultLayout, TwoColumnsLayout, Banner, Link, Logo, SimpleFooter, Gallery, Carusel, CaruseleItem, Spacer, Well, Justify, Placement, Orientation, AlignItmes, FlexType, Position, Sizes, ShowItem, convertShowItemsToNavigationItems, 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, Pagination, Progress, Select, Spinner, Switch, Table, Tabs, Tag, Toast, Toasts };
|