@medyll/idae-slotui-svelte 0.119.0 → 0.121.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.
- package/README.md +47 -47
- package/dist/base/alert/Alert.demo.svelte +62 -62
- package/dist/base/alert/Alert.svelte +121 -121
- package/dist/base/alert/alert.scss +93 -93
- package/dist/base/avatar/Avatar.demo.svelte +41 -41
- package/dist/base/avatar/Avatar.preview.svelte +6 -6
- package/dist/base/avatar/Avatar.svelte +65 -65
- package/dist/base/avatar/avatar.scss +17 -17
- package/dist/base/backdrop/Backdrop.demo.svelte +49 -49
- package/dist/base/backdrop/Backdrop.svelte +78 -78
- package/dist/base/backdrop/backdrop.scss +34 -34
- package/dist/base/badge/Badge.svelte +31 -31
- package/dist/base/badge/badge.scss +19 -19
- package/dist/base/box/Box.demo.svelte +54 -54
- package/dist/base/box/Box.svelte +72 -72
- package/dist/base/box/box.scss +33 -33
- package/dist/base/breadCrumb/BreadCrumb.svelte +23 -23
- package/dist/base/breadCrumb/breadcrumb.scss +11 -11
- package/dist/base/cartouche/Cartouche.demo.svelte +108 -108
- package/dist/base/cartouche/Cartouche.svelte +114 -114
- package/dist/base/cartouche/cartouche.scss +114 -114
- package/dist/base/chipper/Chipper.demo.svelte +45 -45
- package/dist/base/chipper/Chipper.svelte +36 -36
- package/dist/base/chipper/chipper.scss +65 -65
- package/dist/base/columner/Column.svelte +62 -62
- package/dist/base/columner/Columner.demo.svelte +15 -15
- package/dist/base/columner/Columner.svelte +21 -21
- package/dist/base/contentSwitcher/ContentSwitcher.demo.svelte +45 -45
- package/dist/base/contentSwitcher/ContentSwitcher.svelte +63 -63
- package/dist/base/contentSwitcher/content-switcher.scss +22 -22
- package/dist/base/debug/Debug.svelte +21 -21
- package/dist/base/demoer/DemoPage.svelte +40 -40
- package/dist/base/demoer/Demoer.svelte +170 -170
- package/dist/base/demoer/DemoerCode.svelte +45 -45
- package/dist/base/demoer/DemoerComponent.svelte +50 -50
- package/dist/base/divider/Divider.demo.svelte +34 -34
- package/dist/base/divider/Divider.svelte +68 -68
- package/dist/base/divider/divider.scss +19 -19
- package/dist/base/icon/Icon.demo.svelte +24 -24
- package/dist/base/icon/Icon.svelte +117 -117
- package/dist/base/icon/icon.scss +17 -17
- package/dist/base/paper/Paper.demo.svelte +31 -31
- package/dist/base/paper/Paper.svelte +20 -20
- package/dist/base/paper/paper.scss +15 -15
- package/dist/base/titleBar/TitleBar.demo.svelte +30 -30
- package/dist/base/titleBar/TitleBar.svelte +40 -40
- package/dist/base/titleBar/title-bar.scss +29 -29
- package/dist/controls/autocomplete/AutoComplete.demo.svelte +88 -88
- package/dist/controls/autocomplete/AutoComplete.svelte +152 -152
- package/dist/controls/autocomplete/auto-complete.scss +15 -15
- package/dist/controls/button/Button.demo.svelte +165 -165
- package/dist/controls/button/Button.svelte +95 -95
- package/dist/controls/button/ButtonAction.svelte +55 -55
- package/dist/controls/button/ButtonMenu.svelte +55 -55
- package/dist/controls/button/IconButton.svelte +45 -45
- package/dist/controls/button/button-action.scss +8 -8
- package/dist/controls/button/button-menu.scss +36 -36
- package/dist/controls/button/button.scss +293 -293
- package/dist/controls/checkbox/Checkbox.demo.svelte +29 -29
- package/dist/controls/checkbox/Checkbox.svelte +59 -59
- package/dist/controls/checkbox/checkbox.scss +115 -115
- package/dist/controls/confirm/Confirm.demo.svelte +60 -60
- package/dist/controls/confirm/Confirm.preview.svelte +14 -14
- package/dist/controls/confirm/Confirm.svelte +156 -156
- package/dist/controls/confirm/confirm.scss +12 -12
- package/dist/controls/inplaceedit/InPlaceEdit.demo.svelte +41 -41
- package/dist/controls/inplaceedit/InPlaceEdit.svelte +109 -109
- package/dist/controls/progress/Progress.demo.svelte +30 -30
- package/dist/controls/progress/Progress.svelte +26 -26
- package/dist/controls/progress/progress.scss +23 -23
- package/dist/controls/rating/Rating.demo.svelte +45 -45
- package/dist/controls/rating/Rating.svelte +44 -44
- package/dist/controls/rating/rating.scss +9 -9
- package/dist/controls/select/Select.demo.svelte +101 -101
- package/dist/controls/select/Select.svelte +125 -125
- package/dist/controls/select/select.scss +13 -13
- package/dist/controls/slider/Slider.demo.svelte +34 -34
- package/dist/controls/slider/Slider.svelte +153 -153
- package/dist/controls/slider/slider.scss +51 -51
- package/dist/controls/stepper/Stepper.demo.svelte +32 -32
- package/dist/controls/stepper/Stepper.svelte +30 -30
- package/dist/controls/stepper/stepper.scss +23 -23
- package/dist/controls/switch/Switch.demo.svelte +61 -61
- package/dist/controls/switch/Switch.svelte +45 -45
- package/dist/controls/switch/switch.scss +73 -73
- package/dist/controls/textfield/TextField.demo.svelte +79 -79
- package/dist/controls/textfield/TextField.svelte +86 -86
- package/dist/controls/textfield/textfield.scss +68 -68
- package/dist/csss/csss.scss +10 -10
- package/dist/data/dataList/DataList.demo.svelte +151 -151
- package/dist/data/dataList/DataList.preview.svelte +23 -23
- package/dist/data/dataList/DataList.svelte +233 -233
- package/dist/data/dataList/DataListCell.svelte +212 -212
- package/dist/data/dataList/DataListHead.svelte +75 -75
- package/dist/data/dataList/DataListRow.svelte +93 -93
- package/dist/data/dataList/datalist.scss +157 -157
- package/dist/data/finder/Finder.demo.svelte +55 -55
- package/dist/data/finder/Finder.svelte +166 -166
- package/dist/data/finder/finder.scss +14 -14
- package/dist/data/grouper/Grouper.demo.svelte +36 -36
- package/dist/data/grouper/Grouper.svelte +85 -85
- package/dist/data/jsoner/Jsoner.svelte +40 -40
- package/dist/data/list/List.svelte +16 -16
- package/dist/data/list/ListItem.svelte +10 -10
- package/dist/data/list/ListTitle.svelte +8 -8
- package/dist/data/loader/Loader.demo.svelte +95 -95
- package/dist/data/loader/Loader.preview.svelte +7 -7
- package/dist/data/loader/Loader.svelte +99 -99
- package/dist/data/loader/loader.scss +50 -50
- package/dist/data/sorter/Sorter.demo.svelte +62 -62
- package/dist/data/sorter/Sorter.svelte +80 -80
- package/dist/data/sorter/Sorterer.svelte +27 -27
- package/dist/data/sorter/sorterer.scss +11 -11
- package/dist/index.d.ts +42 -43
- package/dist/index.js +42 -43
- package/dist/navigation/drawer/Drawer.demo.svelte +52 -52
- package/dist/navigation/drawer/Drawer.svelte +163 -163
- package/dist/navigation/drawer/drawer.scss +69 -69
- package/dist/navigation/tabs/Tabs.demo.svelte +83 -83
- package/dist/navigation/tabs/Tabs.preview.svelte +22 -22
- package/dist/navigation/tabs/Tabs.svelte +158 -158
- package/dist/navigation/tabs/tabs.scss +92 -92
- package/dist/slotui-css/alert.css +95 -95
- package/dist/slotui-css/alert.min.css +95 -95
- package/dist/slotui-css/auto-complete.css +11 -11
- package/dist/slotui-css/auto-complete.min.css +11 -11
- package/dist/slotui-css/avatar.css +12 -12
- package/dist/slotui-css/avatar.min.css +12 -12
- package/dist/slotui-css/backdrop.css +31 -31
- package/dist/slotui-css/backdrop.min.css +31 -31
- package/dist/slotui-css/badge.css +15 -15
- package/dist/slotui-css/badge.min.css +15 -15
- package/dist/slotui-css/boot-menu.css +76 -76
- package/dist/slotui-css/boot-menu.min.css +76 -76
- package/dist/slotui-css/box.css +28 -28
- package/dist/slotui-css/box.min.css +28 -28
- package/dist/slotui-css/breadcrumb.css +2 -2
- package/dist/slotui-css/breadcrumb.min.css +2 -2
- package/dist/slotui-css/button-action.css +7 -7
- package/dist/slotui-css/button-action.min.css +7 -7
- package/dist/slotui-css/button-menu.css +30 -30
- package/dist/slotui-css/button-menu.min.css +30 -30
- package/dist/slotui-css/button.css +760 -760
- package/dist/slotui-css/button.min.css +760 -760
- package/dist/slotui-css/cartouche.css +113 -113
- package/dist/slotui-css/cartouche.min.css +113 -113
- package/dist/slotui-css/checkbox.css +126 -126
- package/dist/slotui-css/checkbox.min.css +126 -126
- package/dist/slotui-css/chipper.css +55 -55
- package/dist/slotui-css/chipper.min.css +55 -55
- package/dist/slotui-css/chrome-frame.css +33 -33
- package/dist/slotui-css/chrome-frame.min.css +33 -33
- package/dist/slotui-css/confirm.css +8 -8
- package/dist/slotui-css/confirm.min.css +8 -8
- package/dist/slotui-css/containerConfig.css +6 -6
- package/dist/slotui-css/containerConfig.min.css +6 -6
- package/dist/slotui-css/content-switcher.css +20 -20
- package/dist/slotui-css/content-switcher.min.css +20 -20
- package/dist/slotui-css/csss.css +9 -9
- package/dist/slotui-css/csss.min.css +9 -9
- package/dist/slotui-css/datalist.css +135 -135
- package/dist/slotui-css/datalist.min.css +135 -135
- package/dist/slotui-css/divider.css +15 -15
- package/dist/slotui-css/divider.min.css +15 -15
- package/dist/slotui-css/drawer.css +87 -87
- package/dist/slotui-css/drawer.min.css +87 -87
- package/dist/slotui-css/finder.css +73 -73
- package/dist/slotui-css/finder.min.css +73 -73
- package/dist/slotui-css/frame.css +48 -48
- package/dist/slotui-css/frame.min.css +48 -48
- package/dist/slotui-css/icon.css +15 -15
- package/dist/slotui-css/icon.min.css +15 -15
- package/dist/slotui-css/loader.css +45 -45
- package/dist/slotui-css/loader.min.css +45 -45
- package/dist/slotui-css/marquee.css +57 -57
- package/dist/slotui-css/marquee.min.css +57 -57
- package/dist/slotui-css/menu-list.css +216 -216
- package/dist/slotui-css/menu-list.min.css +216 -216
- package/dist/slotui-css/menu.css +95 -95
- package/dist/slotui-css/menu.min.css +95 -95
- package/dist/slotui-css/panel.css +24 -24
- package/dist/slotui-css/panel.min.css +24 -24
- package/dist/slotui-css/paper.css +20 -20
- package/dist/slotui-css/paper.min.css +20 -20
- package/dist/slotui-css/popper.css +84 -84
- package/dist/slotui-css/popper.min.css +84 -84
- package/dist/slotui-css/progress.css +19 -19
- package/dist/slotui-css/progress.min.css +19 -19
- package/dist/slotui-css/rating.css +8 -8
- package/dist/slotui-css/rating.min.css +8 -8
- package/dist/slotui-css/select.css +10 -10
- package/dist/slotui-css/select.min.css +10 -10
- package/dist/slotui-css/sheetConfig.css +6 -6
- package/dist/slotui-css/sheetConfig.min.css +6 -6
- package/dist/slotui-css/slider.css +73 -73
- package/dist/slotui-css/slider.min.css +73 -73
- package/dist/slotui-css/slotui-css.css +4574 -4574
- package/dist/slotui-css/slotui-min-css.css +4574 -4574
- package/dist/slotui-css/slotui-sheet.css +294 -294
- package/dist/slotui-css/slotui-sheet.min.css +294 -294
- package/dist/slotui-css/sorterer.css +10 -10
- package/dist/slotui-css/sorterer.min.css +10 -10
- package/dist/slotui-css/stepper.css +19 -19
- package/dist/slotui-css/stepper.min.css +19 -19
- package/dist/slotui-css/stylesheet-container.css +373 -373
- package/dist/slotui-css/stylesheet-container.min.css +373 -373
- package/dist/slotui-css/stylesheet.css +370 -370
- package/dist/slotui-css/stylesheet.min.css +370 -370
- package/dist/slotui-css/switch.css +62 -62
- package/dist/slotui-css/switch.min.css +62 -62
- package/dist/slotui-css/tabs.css +84 -84
- package/dist/slotui-css/tabs.min.css +84 -84
- package/dist/slotui-css/taskbar.css +24 -24
- package/dist/slotui-css/taskbar.min.css +24 -24
- package/dist/slotui-css/textfield.css +127 -127
- package/dist/slotui-css/textfield.min.css +127 -127
- package/dist/slotui-css/title-bar.css +27 -27
- package/dist/slotui-css/title-bar.min.css +27 -27
- package/dist/slotui-css/toggle-bar.css +40 -40
- package/dist/slotui-css/toggle-bar.min.css +40 -40
- package/dist/slotui-css/toolbar.css +27 -27
- package/dist/slotui-css/toolbar.min.css +27 -27
- package/dist/slotui-css/tree.css +49 -49
- package/dist/slotui-css/tree.min.css +49 -49
- package/dist/slotui-css/window.css +59 -59
- package/dist/slotui-css/window.min.css +59 -59
- package/dist/styles/slotui-mixins.scss +168 -168
- package/dist/styles/slotui-presets.scss +56 -56
- package/dist/styles/slotuisheet/SlotuiSheet.svelte +36 -36
- package/dist/styles/slotuisheet/SlotyuiSheet.demo.svelte +28 -28
- package/dist/styles/slotuisheet/sheetConfig.scss +7 -7
- package/dist/styles/slotuisheet/slotui-sheet.scss +192 -192
- package/dist/styles/slotuisheet/stylesheet-container.scss +147 -147
- package/dist/styles/slotuisheet/stylesheet.scss +156 -156
- package/dist/types/slotui-ambient.d.ts +27 -27
- package/dist/ui/bootstrapp/BootStrApp.svelte +92 -92
- package/dist/ui/chromeFrame/ChromeFrame.svelte +43 -43
- package/dist/ui/chromeFrame/ChromeFrameButtonList.svelte +33 -33
- package/dist/ui/chromeFrame/ChromeFrameList.svelte +106 -106
- package/dist/ui/chromeFrame/chrome-frame.scss +34 -34
- package/dist/ui/frame/Frame.demo.svelte +48 -48
- package/dist/ui/frame/Frame.svelte +90 -90
- package/dist/ui/frame/frame.scss +46 -46
- package/dist/ui/login/Login.demo.svelte +62 -62
- package/dist/ui/login/Login.svelte +102 -102
- package/dist/ui/marquee/Marquee.demo.svelte +33 -33
- package/dist/ui/marquee/Marquee.svelte +97 -97
- package/dist/ui/marquee/marquee.scss +34 -34
- package/dist/ui/menu/Menu.svelte +9 -9
- package/dist/ui/menu/MenuItem.svelte +9 -9
- package/dist/ui/menu/MenuTitle.svelte +10 -10
- package/dist/ui/menu/menu.scss +61 -61
- package/dist/ui/menuList/MenuList.demo.svelte +73 -73
- package/dist/ui/menuList/MenuList.svelte +143 -143
- package/dist/ui/menuList/MenuListItem.svelte +134 -134
- package/dist/ui/menuList/MenuListTitle.svelte +10 -10
- package/dist/ui/menuList/menu-list.scss +120 -120
- package/dist/ui/panel/Panel.demo.svelte +169 -169
- package/dist/ui/panel/Panel.svelte +96 -96
- package/dist/ui/panel/PanelGrid.svelte +62 -62
- package/dist/ui/panel/PanelSlide.svelte +156 -156
- package/dist/ui/panel/Paneler.svelte +63 -63
- package/dist/ui/panel/panel.scss +32 -32
- package/dist/ui/popper/Popper.demo.svelte +92 -92
- package/dist/ui/popper/Popper.svelte +160 -160
- package/dist/ui/popper/popper.scss +108 -108
- package/dist/ui/preview/Preview.svelte +41 -41
- package/dist/ui/serviceBox/ServiceBox.svelte +24 -24
- package/dist/ui/startMenu/BootMenu.svelte +102 -102
- package/dist/ui/startMenu/boot-menu.scss +86 -86
- package/dist/ui/taskbar/TaskBarContent.svelte +20 -20
- package/dist/ui/taskbar/Taskbar.svelte +26 -26
- package/dist/ui/taskbar/taskbar.scss +28 -28
- package/dist/ui/themeswitcher/ThemeSwitcher.svelte +18 -18
- package/dist/ui/toast/Toast.demo.svelte +19 -19
- package/dist/ui/toast/Toast.svelte +60 -60
- package/dist/ui/toast/Toaster.svelte +18 -18
- package/dist/ui/toggleBar/ToggleBar.demo.svelte +114 -114
- package/dist/ui/toggleBar/ToggleBar.svelte +58 -58
- package/dist/ui/toggleBar/toggle-bar.scss +45 -45
- package/dist/ui/toolBar/ToolBar.demo.svelte +98 -98
- package/dist/ui/toolBar/ToolBar.svelte +30 -30
- package/dist/ui/toolBar/toolbar.scss +32 -32
- package/dist/ui/tree/Tree.demo.svelte +84 -84
- package/dist/ui/tree/Tree.preview.svelte +19 -19
- package/dist/ui/tree/Tree.svelte +182 -182
- package/dist/ui/tree/tree.scss +38 -38
- package/dist/ui/window/Window.demo.svelte +111 -111
- package/dist/ui/window/Window.svelte +177 -177
- package/dist/ui/window/window.scss +66 -66
- package/dist/utils/content/Content.svelte +78 -78
- package/dist/utils/contextRooter/ContextRooter.demo.svelte +33 -33
- package/dist/utils/contextRooter/ContextRooter.svelte +6 -6
- package/dist/utils/css/Css.demo.svelte +5 -5
- package/dist/utils/css/Css.svelte +64 -64
- package/dist/utils/effects/transitions.js +6 -6
- package/dist/utils/looper/Looper.demo.svelte +36 -36
- package/dist/utils/looper/Looper.svelte +47 -47
- package/dist/utils/slotted/Slotted.svelte +21 -21
- package/dist/utils/stylesheet/StyleSheet.demo.svelte +28 -28
- package/dist/utils/stylesheet/StyleSheet.svelte +30 -30
- package/dist/utils/stylesheet/containerConfig.scss +7 -7
- package/dist/utils/stylesheet/stylesheet.scss +147 -147
- package/dist/utils/uses/sx4u/sx4uPreprocess.js +34 -34
- package/package.json +3 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@use "../../styles/slotui-mixins.scss";
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--badge-color-border: var(--sld-color-border);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.badge {
|
|
8
|
-
position: absolute;
|
|
9
|
-
border-radius: 50%;
|
|
10
|
-
border: 1px solid var(--badge-color-border);
|
|
11
|
-
display: grid;
|
|
12
|
-
place-items: center;
|
|
13
|
-
width: 16px;
|
|
14
|
-
height: 16px;
|
|
15
|
-
|
|
16
|
-
.hidden {
|
|
17
|
-
transform: scale(0, 0);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@use "../../styles/slotui-mixins.scss";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--badge-color-border: var(--sld-color-border);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.badge {
|
|
8
|
+
position: absolute;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
border: 1px solid var(--badge-color-border);
|
|
11
|
+
display: grid;
|
|
12
|
+
place-items: center;
|
|
13
|
+
width: 16px;
|
|
14
|
+
height: 16px;
|
|
15
|
+
|
|
16
|
+
.hidden {
|
|
17
|
+
transform: scale(0, 0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Box from './Box.svelte';
|
|
3
|
-
import Icon from '../icon/Icon.svelte';
|
|
4
|
-
import ComponentDemo from '../demoer/DemoerComponent.svelte';
|
|
5
|
-
import Demoer from '../demoer/Demoer.svelte';
|
|
6
|
-
import DemoPage from '../demoer/DemoPage.svelte';
|
|
7
|
-
import { BoxDemoValues } from './types.js';
|
|
8
|
-
import { defaultsArgs } from '../demoer/demoer.utils.js';
|
|
9
|
-
|
|
10
|
-
import { parameters, componentArgs } from './types.js';
|
|
11
|
-
|
|
12
|
-
let code = `
|
|
13
|
-
<Box>
|
|
14
|
-
{#snippet titleBarTitle()}
|
|
15
|
-
<span>Title of the box</span>
|
|
16
|
-
{/snippet}
|
|
17
|
-
{#snippet titleBarIcon()}
|
|
18
|
-
<Icon fontSize="small" icon="clock" />
|
|
19
|
-
{/snippet}
|
|
20
|
-
{#snippet boxBottomZone()}
|
|
21
|
-
<div class="flex-h gap-small pad border-t marg-ii-1">bottom zoone</div>
|
|
22
|
-
{/snippet}
|
|
23
|
-
{#snippet children()}
|
|
24
|
-
<div class="pad-2">Content of the box</div>
|
|
25
|
-
{/snippet}
|
|
26
|
-
</Box>`;
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<ComponentDemo
|
|
30
|
-
component="Box"
|
|
31
|
-
cite="Boxes, essentially, contain other boxes. That's the meaning we'll found if open them<br /> B. Franklin,1854"
|
|
32
|
-
><div class="flex-v gap-medium">
|
|
33
|
-
<DemoPage {code} component="Box">
|
|
34
|
-
<Demoer {parameters} {componentArgs}>
|
|
35
|
-
{#snippet children({ activeParams })}
|
|
36
|
-
<Box {...activeParams}>
|
|
37
|
-
{#snippet titleBarTitle()}
|
|
38
|
-
<span>Title of the box</span>
|
|
39
|
-
{/snippet}
|
|
40
|
-
{#snippet titleBarIcon()}
|
|
41
|
-
<Icon iconSize="small" icon="clock" />
|
|
42
|
-
{/snippet}
|
|
43
|
-
{#snippet boxBottomZone()}
|
|
44
|
-
<div class="flex-h gap-small pad border-t marg-ii-1">bottom zoone</div>
|
|
45
|
-
{/snippet}
|
|
46
|
-
{#snippet children()}
|
|
47
|
-
<div class="pad-2">Content of the box</div>
|
|
48
|
-
{/snippet}
|
|
49
|
-
</Box>
|
|
50
|
-
{/snippet}
|
|
51
|
-
</Demoer>
|
|
52
|
-
</DemoPage>
|
|
53
|
-
</div>
|
|
54
|
-
</ComponentDemo>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Box from './Box.svelte';
|
|
3
|
+
import Icon from '../icon/Icon.svelte';
|
|
4
|
+
import ComponentDemo from '../demoer/DemoerComponent.svelte';
|
|
5
|
+
import Demoer from '../demoer/Demoer.svelte';
|
|
6
|
+
import DemoPage from '../demoer/DemoPage.svelte';
|
|
7
|
+
import { BoxDemoValues } from './types.js';
|
|
8
|
+
import { defaultsArgs } from '../demoer/demoer.utils.js';
|
|
9
|
+
|
|
10
|
+
import { parameters, componentArgs } from './types.js';
|
|
11
|
+
|
|
12
|
+
let code = `
|
|
13
|
+
<Box>
|
|
14
|
+
{#snippet titleBarTitle()}
|
|
15
|
+
<span>Title of the box</span>
|
|
16
|
+
{/snippet}
|
|
17
|
+
{#snippet titleBarIcon()}
|
|
18
|
+
<Icon fontSize="small" icon="clock" />
|
|
19
|
+
{/snippet}
|
|
20
|
+
{#snippet boxBottomZone()}
|
|
21
|
+
<div class="flex-h gap-small pad border-t marg-ii-1">bottom zoone</div>
|
|
22
|
+
{/snippet}
|
|
23
|
+
{#snippet children()}
|
|
24
|
+
<div class="pad-2">Content of the box</div>
|
|
25
|
+
{/snippet}
|
|
26
|
+
</Box>`;
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<ComponentDemo
|
|
30
|
+
component="Box"
|
|
31
|
+
cite="Boxes, essentially, contain other boxes. That's the meaning we'll found if open them<br /> B. Franklin,1854"
|
|
32
|
+
><div class="flex-v gap-medium">
|
|
33
|
+
<DemoPage {code} component="Box">
|
|
34
|
+
<Demoer {parameters} {componentArgs}>
|
|
35
|
+
{#snippet children({ activeParams })}
|
|
36
|
+
<Box {...activeParams}>
|
|
37
|
+
{#snippet titleBarTitle()}
|
|
38
|
+
<span>Title of the box</span>
|
|
39
|
+
{/snippet}
|
|
40
|
+
{#snippet titleBarIcon()}
|
|
41
|
+
<Icon iconSize="small" icon="clock" />
|
|
42
|
+
{/snippet}
|
|
43
|
+
{#snippet boxBottomZone()}
|
|
44
|
+
<div class="flex-h gap-small pad border-t marg-ii-1">bottom zoone</div>
|
|
45
|
+
{/snippet}
|
|
46
|
+
{#snippet children()}
|
|
47
|
+
<div class="pad-2">Content of the box</div>
|
|
48
|
+
{/snippet}
|
|
49
|
+
</Box>
|
|
50
|
+
{/snippet}
|
|
51
|
+
</Demoer>
|
|
52
|
+
</DemoPage>
|
|
53
|
+
</div>
|
|
54
|
+
</ComponentDemo>
|
package/dist/base/box/Box.svelte
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import TitleBar from '../titleBar/TitleBar.svelte';
|
|
3
|
-
import Icon from '../icon/Icon.svelte';
|
|
4
|
-
import Slotted from '../../utils/slotted/Slotted.svelte';
|
|
5
|
-
import type { BoxProps } from './types.js';
|
|
6
|
-
import type { ExpandProps } from '../../types/index.js';
|
|
7
|
-
import Content from '../../utils/content/Content.svelte';
|
|
8
|
-
|
|
9
|
-
/** box actions */
|
|
10
|
-
export const actions = {
|
|
11
|
-
open,
|
|
12
|
-
toggle,
|
|
13
|
-
close
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
let {
|
|
17
|
-
class: className = '',
|
|
18
|
-
element = $bindable(),
|
|
19
|
-
style = '',
|
|
20
|
-
isOpen = $bindable(true),
|
|
21
|
-
showCloseControl = true,
|
|
22
|
-
hasMenu = false,
|
|
23
|
-
title,
|
|
24
|
-
icon,
|
|
25
|
-
content,
|
|
26
|
-
bottomZone,
|
|
27
|
-
children,
|
|
28
|
-
titleBarTitle,
|
|
29
|
-
titleBarIcon,
|
|
30
|
-
boxBottomZone,
|
|
31
|
-
...rest
|
|
32
|
-
}: ExpandProps<BoxProps> = $props();
|
|
33
|
-
|
|
34
|
-
function open() {
|
|
35
|
-
isOpen = true;
|
|
36
|
-
}
|
|
37
|
-
function toggle() {
|
|
38
|
-
isOpen = !isOpen;
|
|
39
|
-
}
|
|
40
|
-
function close() {
|
|
41
|
-
isOpen = false;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
let closer = !showCloseControl ? {} : { onClose: () => actions.close() };
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
{#if isOpen}
|
|
48
|
-
<Content bind:element class="box {className}" {style} {...rest}>
|
|
49
|
-
<TitleBar {hasMenu} {...closer}>
|
|
50
|
-
<Slotted child={titleBarTitle}>
|
|
51
|
-
{title ?? ''}
|
|
52
|
-
</Slotted>
|
|
53
|
-
<Slotted child={titleBarIcon}>
|
|
54
|
-
{#if icon}
|
|
55
|
-
<Icon {icon} />
|
|
56
|
-
{/if}
|
|
57
|
-
</Slotted>
|
|
58
|
-
</TitleBar>
|
|
59
|
-
<div class="box-content">
|
|
60
|
-
<Slotted child={children}>
|
|
61
|
-
{@html content ?? ''}
|
|
62
|
-
</Slotted>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="box-button-zone">
|
|
65
|
-
<Slotted child={boxBottomZone}>
|
|
66
|
-
{@html bottomZone ?? ''}
|
|
67
|
-
</Slotted>
|
|
68
|
-
</div>
|
|
69
|
-
</Content>
|
|
70
|
-
{/if}
|
|
71
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import TitleBar from '../titleBar/TitleBar.svelte';
|
|
3
|
+
import Icon from '../icon/Icon.svelte';
|
|
4
|
+
import Slotted from '../../utils/slotted/Slotted.svelte';
|
|
5
|
+
import type { BoxProps } from './types.js';
|
|
6
|
+
import type { ExpandProps } from '../../types/index.js';
|
|
7
|
+
import Content from '../../utils/content/Content.svelte';
|
|
8
|
+
|
|
9
|
+
/** box actions */
|
|
10
|
+
export const actions = {
|
|
11
|
+
open,
|
|
12
|
+
toggle,
|
|
13
|
+
close
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
let {
|
|
17
|
+
class: className = '',
|
|
18
|
+
element = $bindable(),
|
|
19
|
+
style = '',
|
|
20
|
+
isOpen = $bindable(true),
|
|
21
|
+
showCloseControl = true,
|
|
22
|
+
hasMenu = false,
|
|
23
|
+
title,
|
|
24
|
+
icon,
|
|
25
|
+
content,
|
|
26
|
+
bottomZone,
|
|
27
|
+
children,
|
|
28
|
+
titleBarTitle,
|
|
29
|
+
titleBarIcon,
|
|
30
|
+
boxBottomZone,
|
|
31
|
+
...rest
|
|
32
|
+
}: ExpandProps<BoxProps> = $props();
|
|
33
|
+
|
|
34
|
+
function open() {
|
|
35
|
+
isOpen = true;
|
|
36
|
+
}
|
|
37
|
+
function toggle() {
|
|
38
|
+
isOpen = !isOpen;
|
|
39
|
+
}
|
|
40
|
+
function close() {
|
|
41
|
+
isOpen = false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let closer = !showCloseControl ? {} : { onClose: () => actions.close() };
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
{#if isOpen}
|
|
48
|
+
<Content bind:element class="box {className}" {style} {...rest}>
|
|
49
|
+
<TitleBar {hasMenu} {...closer}>
|
|
50
|
+
<Slotted child={titleBarTitle}>
|
|
51
|
+
{title ?? ''}
|
|
52
|
+
</Slotted>
|
|
53
|
+
<Slotted child={titleBarIcon}>
|
|
54
|
+
{#if icon}
|
|
55
|
+
<Icon {icon} />
|
|
56
|
+
{/if}
|
|
57
|
+
</Slotted>
|
|
58
|
+
</TitleBar>
|
|
59
|
+
<div class="box-content">
|
|
60
|
+
<Slotted child={children}>
|
|
61
|
+
{@html content ?? ''}
|
|
62
|
+
</Slotted>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="box-button-zone">
|
|
65
|
+
<Slotted child={boxBottomZone}>
|
|
66
|
+
{@html bottomZone ?? ''}
|
|
67
|
+
</Slotted>
|
|
68
|
+
</div>
|
|
69
|
+
</Content>
|
|
70
|
+
{/if}
|
|
71
|
+
|
|
72
72
|
<style>:root {
|
|
73
73
|
--box-color-background: var(--sld-color-background);
|
|
74
74
|
--box-border-bottom: var(--sld-color-primary);
|
|
@@ -97,4 +97,4 @@
|
|
|
97
97
|
padding: var(--box-pad);
|
|
98
98
|
text-align: right;
|
|
99
99
|
justify-content: end;
|
|
100
|
-
}</style>
|
|
100
|
+
}</style>
|
package/dist/base/box/box.scss
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
@use "../../styles/slotui-mixins.scss";
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--box-color-background: var(--sld-color-background);
|
|
5
|
-
--box-border-bottom: var(--sld-color-primary);
|
|
6
|
-
--box-radius: var(--sld-radius-small);
|
|
7
|
-
--box-elevation: var(--sld-elevation-3);
|
|
8
|
-
--box-gap: var(--sld-gap-tiny);
|
|
9
|
-
--box-pad: var(--sld-pad-small);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.box {
|
|
13
|
-
min-height: 160px;
|
|
14
|
-
min-width: 320px;
|
|
15
|
-
background-color: var(--box-color-background);
|
|
16
|
-
border-bottom: 1px solid var(--box-border-bottom);
|
|
17
|
-
border-radius: var(--box-radius);
|
|
18
|
-
box-shadow: var(--box-elevation);
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
|
|
22
|
-
&-content {
|
|
23
|
-
flex: 1;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-button-zone {
|
|
27
|
-
display: flex;
|
|
28
|
-
gap: var(--box-gap);
|
|
29
|
-
padding: var(--box-pad);
|
|
30
|
-
text-align: right;
|
|
31
|
-
justify-content: end;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
@use "../../styles/slotui-mixins.scss";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--box-color-background: var(--sld-color-background);
|
|
5
|
+
--box-border-bottom: var(--sld-color-primary);
|
|
6
|
+
--box-radius: var(--sld-radius-small);
|
|
7
|
+
--box-elevation: var(--sld-elevation-3);
|
|
8
|
+
--box-gap: var(--sld-gap-tiny);
|
|
9
|
+
--box-pad: var(--sld-pad-small);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.box {
|
|
13
|
+
min-height: 160px;
|
|
14
|
+
min-width: 320px;
|
|
15
|
+
background-color: var(--box-color-background);
|
|
16
|
+
border-bottom: 1px solid var(--box-border-bottom);
|
|
17
|
+
border-radius: var(--box-radius);
|
|
18
|
+
box-shadow: var(--box-elevation);
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
|
|
22
|
+
&-content {
|
|
23
|
+
flex: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-button-zone {
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: var(--box-gap);
|
|
29
|
+
padding: var(--box-pad);
|
|
30
|
+
text-align: right;
|
|
31
|
+
justify-content: end;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { ExpandProps } from '../../types/index.js';
|
|
3
|
-
import Slotted from '../../utils/slotted/Slotted.svelte';
|
|
4
|
-
import type { BreadCrumbProps } from './types.js';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
class: className,
|
|
8
|
-
element,
|
|
9
|
-
children,
|
|
10
|
-
style,
|
|
11
|
-
breadList = []
|
|
12
|
-
}: ExpandProps<BreadCrumbProps> = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<nav bind:this={element} class="breadCrumb {className ?? ''}" {style}>
|
|
16
|
-
<ul>
|
|
17
|
-
<li class="bread">
|
|
18
|
-
<Slotted child={children} />
|
|
19
|
-
</li>
|
|
20
|
-
</ul>
|
|
21
|
-
</nav>
|
|
22
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { ExpandProps } from '../../types/index.js';
|
|
3
|
+
import Slotted from '../../utils/slotted/Slotted.svelte';
|
|
4
|
+
import type { BreadCrumbProps } from './types.js';
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
class: className,
|
|
8
|
+
element,
|
|
9
|
+
children,
|
|
10
|
+
style,
|
|
11
|
+
breadList = []
|
|
12
|
+
}: ExpandProps<BreadCrumbProps> = $props();
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<nav bind:this={element} class="breadCrumb {className ?? ''}" {style}>
|
|
16
|
+
<ul>
|
|
17
|
+
<li class="bread">
|
|
18
|
+
<Slotted child={children} />
|
|
19
|
+
</li>
|
|
20
|
+
</ul>
|
|
21
|
+
</nav>
|
|
22
|
+
|
|
23
23
|
<style>.breadCrumb ul {
|
|
24
24
|
display: flex;
|
|
25
|
-
}</style>
|
|
25
|
+
}</style>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// @import "../../styles/slotui-presets.scss";
|
|
2
|
-
@use "../../styles/slotui-mixins.scss";
|
|
3
|
-
|
|
4
|
-
.breadCrumb {
|
|
5
|
-
ul {
|
|
6
|
-
display: flex;
|
|
7
|
-
|
|
8
|
-
.bread {
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
// @import "../../styles/slotui-presets.scss";
|
|
2
|
+
@use "../../styles/slotui-mixins.scss";
|
|
3
|
+
|
|
4
|
+
.breadCrumb {
|
|
5
|
+
ul {
|
|
6
|
+
display: flex;
|
|
7
|
+
|
|
8
|
+
.bread {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Cartouche from './Cartouche.svelte';
|
|
3
|
-
import Demoer from '../demoer/Demoer.svelte';
|
|
4
|
-
import DemoPage from '../demoer/DemoPage.svelte';
|
|
5
|
-
import Icon from '../icon/Icon.svelte';
|
|
6
|
-
import Button from '../../controls/button/Button.svelte';
|
|
7
|
-
import ComponentDemo from '../demoer/DemoerComponent.svelte';
|
|
8
|
-
|
|
9
|
-
import { parameters, componentArgs } from './types.js';
|
|
10
|
-
|
|
11
|
-
let code1 = `
|
|
12
|
-
<Cartouche class="marg-tb-1">
|
|
13
|
-
{#snippet cartoucheButtons()}
|
|
14
|
-
<Button size="medium">a button</Button>
|
|
15
|
-
{/snippet}
|
|
16
|
-
{#snippet cartoucheIcon()}
|
|
17
|
-
<Icon fontSize="small" icon="circle" />
|
|
18
|
-
{/snippet}
|
|
19
|
-
{#snippet cartouchePrimary()}
|
|
20
|
-
This is a cartouche
|
|
21
|
-
{/snippet}
|
|
22
|
-
{#snippet cartoucheSecondary()}
|
|
23
|
-
Some subtitle
|
|
24
|
-
{/snippet}
|
|
25
|
-
<div class="pad-2 border-t">Some <br />Cartouche <br />content</div>
|
|
26
|
-
</Cartouche>`;
|
|
27
|
-
|
|
28
|
-
let code2 = `
|
|
29
|
-
<Cartouche
|
|
30
|
-
class="marg-tb-1" />`;
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
<ComponentDemo
|
|
34
|
-
component="Cartouche"
|
|
35
|
-
cite="'Open up', they said. So we stacked<br /> G. Brahms, 1964"
|
|
36
|
-
><div class="flex-v gap-large">
|
|
37
|
-
<DemoPage component="Cartouche" code={code1}>
|
|
38
|
-
<Demoer title="A simple cartouche" {parameters} {componentArgs}
|
|
39
|
-
>{#snippet children({ activeParams })}
|
|
40
|
-
<Cartouche {...activeParams} class="marg-tb-1">
|
|
41
|
-
<!-- {#snippet cartoucheButtons()}
|
|
42
|
-
<Button width="medium">a button</Button>
|
|
43
|
-
{/snippet} -->
|
|
44
|
-
<!-- {#snippet cartoucheIcon()}
|
|
45
|
-
<Icon iconSize="small" icon="circle" />
|
|
46
|
-
{/snippet} -->
|
|
47
|
-
<!-- {#snippet cartouchePrimary()}
|
|
48
|
-
This is a cartouche
|
|
49
|
-
{/snippet}
|
|
50
|
-
{#snippet cartoucheSecondary()}
|
|
51
|
-
Some subtitle
|
|
52
|
-
{/snippet} -->
|
|
53
|
-
<div class="pad-2 border-t">
|
|
54
|
-
Some <br />Cartouche <br />content
|
|
55
|
-
</div>
|
|
56
|
-
</Cartouche>
|
|
57
|
-
{/snippet}
|
|
58
|
-
</Demoer>
|
|
59
|
-
<Demoer title="Some stacked cartouches" {parameters} {componentArgs}>
|
|
60
|
-
{#snippet children({ activeParams })}
|
|
61
|
-
<Cartouche {...activeParams} stacked={true}>
|
|
62
|
-
{#snippet cartouchePrimary()}
|
|
63
|
-
This is a cartouche
|
|
64
|
-
{/snippet}
|
|
65
|
-
<div class="pad-4 border-t">Cartouche content</div>
|
|
66
|
-
</Cartouche>
|
|
67
|
-
<Cartouche stacked={true} primary="This is another cartouche">
|
|
68
|
-
<div class="pad-2 border-t">Cartouche content</div>
|
|
69
|
-
</Cartouche>
|
|
70
|
-
<Cartouche primary="And another one" stacked={true}>
|
|
71
|
-
{#snippet cartoucheIcon()}
|
|
72
|
-
<Icon iconSize="small" icon="user" />
|
|
73
|
-
{/snippet}
|
|
74
|
-
</Cartouche>
|
|
75
|
-
{/snippet}
|
|
76
|
-
</Demoer>
|
|
77
|
-
<Demoer title="Some nested cartouches" {parameters} {componentArgs}
|
|
78
|
-
>{#snippet children({ activeParams })}
|
|
79
|
-
<Cartouche
|
|
80
|
-
{...activeParams}
|
|
81
|
-
bordered={false}
|
|
82
|
-
primary="Can contain some others cartouches"
|
|
83
|
-
class="marg-tb-1"
|
|
84
|
-
>
|
|
85
|
-
{#snippet cartoucheIcon()}
|
|
86
|
-
<Icon iconSize="small" icon="info-circle" />
|
|
87
|
-
{/snippet}
|
|
88
|
-
<div class="marg-l-4">
|
|
89
|
-
<Cartouche {...activeParams} stacked={true} primary="Inner cartouche">
|
|
90
|
-
<div class="pad-2 border-t">Cartouche content</div>
|
|
91
|
-
</Cartouche>
|
|
92
|
-
<Cartouche {...activeParams} stacked={true} primary="Inner cartouche">
|
|
93
|
-
<div class="pad-2 border-t">Cartouche content</div>
|
|
94
|
-
</Cartouche>
|
|
95
|
-
</div>
|
|
96
|
-
</Cartouche>
|
|
97
|
-
{/snippet}
|
|
98
|
-
</Demoer>
|
|
99
|
-
</DemoPage>
|
|
100
|
-
<DemoPage title="Using props" component="Cartouche" code={code2}>
|
|
101
|
-
<Demoer title="A simple cartouche" {parameters} {componentArgs}>
|
|
102
|
-
{#snippet children({ activeParams })}
|
|
103
|
-
<Cartouche {...activeParams} class="marg-tb-1" />
|
|
104
|
-
{/snippet}
|
|
105
|
-
</Demoer>
|
|
106
|
-
</DemoPage>
|
|
107
|
-
</div>
|
|
108
|
-
</ComponentDemo>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Cartouche from './Cartouche.svelte';
|
|
3
|
+
import Demoer from '../demoer/Demoer.svelte';
|
|
4
|
+
import DemoPage from '../demoer/DemoPage.svelte';
|
|
5
|
+
import Icon from '../icon/Icon.svelte';
|
|
6
|
+
import Button from '../../controls/button/Button.svelte';
|
|
7
|
+
import ComponentDemo from '../demoer/DemoerComponent.svelte';
|
|
8
|
+
|
|
9
|
+
import { parameters, componentArgs } from './types.js';
|
|
10
|
+
|
|
11
|
+
let code1 = `
|
|
12
|
+
<Cartouche class="marg-tb-1">
|
|
13
|
+
{#snippet cartoucheButtons()}
|
|
14
|
+
<Button size="medium">a button</Button>
|
|
15
|
+
{/snippet}
|
|
16
|
+
{#snippet cartoucheIcon()}
|
|
17
|
+
<Icon fontSize="small" icon="circle" />
|
|
18
|
+
{/snippet}
|
|
19
|
+
{#snippet cartouchePrimary()}
|
|
20
|
+
This is a cartouche
|
|
21
|
+
{/snippet}
|
|
22
|
+
{#snippet cartoucheSecondary()}
|
|
23
|
+
Some subtitle
|
|
24
|
+
{/snippet}
|
|
25
|
+
<div class="pad-2 border-t">Some <br />Cartouche <br />content</div>
|
|
26
|
+
</Cartouche>`;
|
|
27
|
+
|
|
28
|
+
let code2 = `
|
|
29
|
+
<Cartouche
|
|
30
|
+
class="marg-tb-1" />`;
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<ComponentDemo
|
|
34
|
+
component="Cartouche"
|
|
35
|
+
cite="'Open up', they said. So we stacked<br /> G. Brahms, 1964"
|
|
36
|
+
><div class="flex-v gap-large">
|
|
37
|
+
<DemoPage component="Cartouche" code={code1}>
|
|
38
|
+
<Demoer title="A simple cartouche" {parameters} {componentArgs}
|
|
39
|
+
>{#snippet children({ activeParams })}
|
|
40
|
+
<Cartouche {...activeParams} class="marg-tb-1">
|
|
41
|
+
<!-- {#snippet cartoucheButtons()}
|
|
42
|
+
<Button width="medium">a button</Button>
|
|
43
|
+
{/snippet} -->
|
|
44
|
+
<!-- {#snippet cartoucheIcon()}
|
|
45
|
+
<Icon iconSize="small" icon="circle" />
|
|
46
|
+
{/snippet} -->
|
|
47
|
+
<!-- {#snippet cartouchePrimary()}
|
|
48
|
+
This is a cartouche
|
|
49
|
+
{/snippet}
|
|
50
|
+
{#snippet cartoucheSecondary()}
|
|
51
|
+
Some subtitle
|
|
52
|
+
{/snippet} -->
|
|
53
|
+
<div class="pad-2 border-t">
|
|
54
|
+
Some <br />Cartouche <br />content
|
|
55
|
+
</div>
|
|
56
|
+
</Cartouche>
|
|
57
|
+
{/snippet}
|
|
58
|
+
</Demoer>
|
|
59
|
+
<Demoer title="Some stacked cartouches" {parameters} {componentArgs}>
|
|
60
|
+
{#snippet children({ activeParams })}
|
|
61
|
+
<Cartouche {...activeParams} stacked={true}>
|
|
62
|
+
{#snippet cartouchePrimary()}
|
|
63
|
+
This is a cartouche
|
|
64
|
+
{/snippet}
|
|
65
|
+
<div class="pad-4 border-t">Cartouche content</div>
|
|
66
|
+
</Cartouche>
|
|
67
|
+
<Cartouche stacked={true} primary="This is another cartouche">
|
|
68
|
+
<div class="pad-2 border-t">Cartouche content</div>
|
|
69
|
+
</Cartouche>
|
|
70
|
+
<Cartouche primary="And another one" stacked={true}>
|
|
71
|
+
{#snippet cartoucheIcon()}
|
|
72
|
+
<Icon iconSize="small" icon="user" />
|
|
73
|
+
{/snippet}
|
|
74
|
+
</Cartouche>
|
|
75
|
+
{/snippet}
|
|
76
|
+
</Demoer>
|
|
77
|
+
<Demoer title="Some nested cartouches" {parameters} {componentArgs}
|
|
78
|
+
>{#snippet children({ activeParams })}
|
|
79
|
+
<Cartouche
|
|
80
|
+
{...activeParams}
|
|
81
|
+
bordered={false}
|
|
82
|
+
primary="Can contain some others cartouches"
|
|
83
|
+
class="marg-tb-1"
|
|
84
|
+
>
|
|
85
|
+
{#snippet cartoucheIcon()}
|
|
86
|
+
<Icon iconSize="small" icon="info-circle" />
|
|
87
|
+
{/snippet}
|
|
88
|
+
<div class="marg-l-4">
|
|
89
|
+
<Cartouche {...activeParams} stacked={true} primary="Inner cartouche">
|
|
90
|
+
<div class="pad-2 border-t">Cartouche content</div>
|
|
91
|
+
</Cartouche>
|
|
92
|
+
<Cartouche {...activeParams} stacked={true} primary="Inner cartouche">
|
|
93
|
+
<div class="pad-2 border-t">Cartouche content</div>
|
|
94
|
+
</Cartouche>
|
|
95
|
+
</div>
|
|
96
|
+
</Cartouche>
|
|
97
|
+
{/snippet}
|
|
98
|
+
</Demoer>
|
|
99
|
+
</DemoPage>
|
|
100
|
+
<DemoPage title="Using props" component="Cartouche" code={code2}>
|
|
101
|
+
<Demoer title="A simple cartouche" {parameters} {componentArgs}>
|
|
102
|
+
{#snippet children({ activeParams })}
|
|
103
|
+
<Cartouche {...activeParams} class="marg-tb-1" />
|
|
104
|
+
{/snippet}
|
|
105
|
+
</Demoer>
|
|
106
|
+
</DemoPage>
|
|
107
|
+
</div>
|
|
108
|
+
</ComponentDemo>
|