@hyvor/design 0.0.66 → 0.0.68
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/dist/components/ActionList/ActionList.svelte +2 -7
- package/dist/components/ActionList/ActionListGroup.svelte +24 -29
- package/dist/components/ActionList/ActionListItem.svelte +86 -88
- package/dist/components/ActionList/Selected.svelte +17 -20
- package/dist/components/Avatar/Avatar.svelte +7 -11
- package/dist/components/Avatar/AvatarStack.svelte +16 -20
- package/dist/components/Base/Base.svelte +3 -3
- package/dist/components/Box/Box.svelte +8 -8
- package/dist/components/Button/Button.svelte +33 -42
- package/dist/components/Button/ButtonGroup.svelte +6 -6
- package/dist/components/Callout/Callout.svelte +88 -86
- package/dist/components/Callout/Callout.svelte.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.svelte +113 -121
- package/dist/components/CodeBlock/CodeBlock.svelte +26 -23
- package/dist/components/CodeBlock/getCode.js +6 -6
- package/dist/components/CodeBlock/hljs.scss +189 -191
- package/dist/components/CodeBlock/prism.scss +370 -7
- package/dist/components/ColorPicker/ColorPicker.svelte +42 -42
- package/dist/components/Dark/DarkProvider.svelte +9 -9
- package/dist/components/Dark/DarkToggle.svelte +7 -10
- package/dist/components/Divider/Divider.svelte +6 -7
- package/dist/components/Dropdown/Dropdown.svelte +33 -108
- package/dist/components/Dropdown/DropdownContent.svelte +120 -0
- package/dist/components/Dropdown/DropdownContent.svelte.d.ts +24 -0
- package/dist/components/FormControl/Caption.svelte +9 -9
- package/dist/components/FormControl/FormControl.svelte +18 -18
- package/dist/components/FormControl/InputGroup.svelte +7 -8
- package/dist/components/FormControl/Label.svelte +5 -5
- package/dist/components/FormControl/Validation.svelte +18 -16
- package/dist/components/FormControl/Validation.svelte.d.ts +1 -1
- package/dist/components/HyvorBar/BarProducts.svelte +52 -0
- package/dist/components/HyvorBar/BarProducts.svelte.d.ts +39 -0
- package/dist/components/HyvorBar/BarSupport.svelte +119 -0
- package/dist/components/HyvorBar/BarSupport.svelte.d.ts +19 -0
- package/dist/components/HyvorBar/BarUpdates.svelte +58 -0
- package/dist/components/HyvorBar/BarUpdates.svelte.d.ts +18 -0
- package/dist/components/HyvorBar/BarUpdatesList.svelte +134 -0
- package/dist/components/HyvorBar/BarUpdatesList.svelte.d.ts +18 -0
- package/dist/components/HyvorBar/BarUser.svelte +60 -0
- package/dist/components/HyvorBar/BarUser.svelte.d.ts +16 -0
- package/dist/components/HyvorBar/BarUserPreview.svelte +42 -0
- package/dist/components/HyvorBar/BarUserPreview.svelte.d.ts +14 -0
- package/dist/components/HyvorBar/HyvorBar.svelte +150 -0
- package/dist/components/HyvorBar/HyvorBar.svelte.d.ts +19 -0
- package/dist/components/HyvorBar/bar.d.ts +33 -0
- package/dist/components/HyvorBar/bar.js +74 -0
- package/dist/components/HyvorBar/img/G2.svelte +9 -0
- package/dist/components/HyvorBar/img/G2.svelte.d.ts +23 -0
- package/dist/components/HyvorBar/img/Trustpilot.svelte +11 -0
- package/dist/components/HyvorBar/img/Trustpilot.svelte.d.ts +23 -0
- package/dist/components/IconButton/IconButton.svelte +19 -23
- package/dist/components/IconMessage/IconMessage.svelte +84 -47
- package/dist/components/IconMessage/IconMessage.svelte.d.ts +9 -1
- package/dist/components/Internationalization/InternationalizationProvider.svelte +2 -2
- package/dist/components/Internationalization/InternationalizationProvider.svelte.d.ts +1 -1
- package/dist/components/Internationalization/LanguageToggle.svelte +33 -36
- package/dist/components/Internationalization/LanguageToggle.svelte.d.ts +2 -2
- package/dist/components/Internationalization/T.svelte.d.ts +3 -3
- package/dist/components/Internationalization/i18n.d.ts +4 -4
- package/dist/components/Internationalization/i18n.js +13 -11
- package/dist/components/Internationalization/t.d.ts +3 -3
- package/dist/components/Internationalization/t.js +4 -4
- package/dist/components/Internationalization/types.d.ts +1 -1
- package/dist/components/Link/Link.svelte +53 -58
- package/dist/components/Loader/LoadButton.svelte +15 -29
- package/dist/components/Loader/Loader.svelte +56 -69
- package/dist/components/Modal/ConfirmModalProvider.svelte +18 -36
- package/dist/components/Modal/Modal.svelte +134 -164
- package/dist/components/Modal/ModalFooter.svelte +23 -26
- package/dist/components/Modal/confirm.d.ts +1 -1
- package/dist/components/Modal/confirm.js +4 -4
- package/dist/components/Modal/modal-types.d.ts +2 -2
- package/dist/components/NavLink/NavLink.svelte +78 -86
- package/dist/components/Radio/Radio.svelte +23 -31
- package/dist/components/Slider/Slider.svelte +71 -80
- package/dist/components/Slider/Slider.svelte.d.ts +0 -1
- package/dist/components/SplitControl/SplitControl.svelte +28 -42
- package/dist/components/Switch/Switch.svelte +60 -65
- package/dist/components/TabNav/TabNav.svelte +6 -10
- package/dist/components/TabNav/TabNavItem.svelte +36 -43
- package/dist/components/Table/Table.svelte +7 -4
- package/dist/components/Table/TableRow.svelte +23 -23
- package/dist/components/Tag/Tag.svelte +28 -36
- package/dist/components/Text/Text.svelte +15 -22
- package/dist/components/TextInput/TextInput.svelte +26 -26
- package/dist/components/Textarea/Textarea.svelte +42 -50
- package/dist/components/Textarea/Textarea.svelte.d.ts +1 -1
- package/dist/components/Toast/ToastIcon.svelte +29 -31
- package/dist/components/Toast/ToastMessage.svelte +33 -39
- package/dist/components/Toast/ToastProvider.svelte +16 -16
- package/dist/components/Toast/cleaner.js +5 -5
- package/dist/components/Toast/toast.d.ts +2 -2
- package/dist/components/Toast/toast.js +10 -10
- package/dist/components/Tooltip/Tooltip.svelte +82 -83
- package/dist/components/directives/clickOutside.js +4 -4
- package/dist/components/directives/debounce.d.ts +1 -0
- package/dist/components/directives/debounce.js +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/index.css +31 -33
- package/dist/marketing/Container/Container.svelte +8 -8
- package/dist/marketing/Docs/Content/Content.svelte +8 -7
- package/dist/marketing/Docs/Content/DocsImage.svelte +52 -62
- package/dist/marketing/Docs/Docs.svelte +21 -24
- package/dist/marketing/Docs/Nav/Nav.svelte +21 -22
- package/dist/marketing/Docs/Nav/NavCategory.svelte +28 -28
- package/dist/marketing/Docs/Nav/NavItem.svelte +21 -24
- package/dist/marketing/Docs/Sidebar/Sidebar.svelte +22 -25
- package/dist/marketing/Docs/Toc.svelte +17 -19
- package/dist/marketing/Document/Document.svelte +59 -0
- package/dist/marketing/Document/Document.svelte.d.ts +19 -0
- package/dist/marketing/Document/DocumentTitle.svelte +63 -0
- package/dist/marketing/Document/DocumentTitle.svelte.d.ts +20 -0
- package/dist/marketing/Footer/Footer.svelte +111 -119
- package/dist/marketing/Footer/FooterLinkList.svelte +24 -26
- package/dist/marketing/Header/Header.svelte +7 -15
- package/dist/marketing/Logo/LogoBlogs.svelte +41 -0
- package/dist/marketing/Logo/LogoBlogs.svelte.d.ts +16 -0
- package/dist/marketing/Logo/LogoCore.svelte +41 -0
- package/dist/marketing/Logo/LogoCore.svelte.d.ts +16 -0
- package/dist/marketing/Logo/LogoFortguard.svelte +49 -0
- package/dist/marketing/Logo/LogoFortguard.svelte.d.ts +16 -0
- package/dist/marketing/Logo/LogoTalk.svelte +27 -0
- package/dist/marketing/Logo/LogoTalk.svelte.d.ts +16 -0
- package/dist/marketing/index.d.ts +1 -0
- package/dist/marketing/index.js +1 -0
- package/dist/stores/dark.js +8 -8
- package/dist/variables.scss +41 -48
- package/package.json +59 -58
|
@@ -7,37 +7,32 @@ $:
|
|
|
7
7
|
setContext("action-list-selection", selection);
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
-
<div
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
<div class="action-list-group" class:has-divider={divider}>
|
|
11
|
+
{#if divider}
|
|
12
|
+
<div class="divider"></div>
|
|
13
|
+
{/if}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{#if title}
|
|
20
|
-
<div class="title">{title}</div>
|
|
21
|
-
{/if}
|
|
22
|
-
|
|
23
|
-
<slot />
|
|
15
|
+
{#if title}
|
|
16
|
+
<div class="title">{title}</div>
|
|
17
|
+
{/if}
|
|
24
18
|
|
|
19
|
+
<slot />
|
|
25
20
|
</div>
|
|
26
21
|
|
|
27
22
|
<style>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</style>
|
|
23
|
+
.divider {
|
|
24
|
+
border-bottom: 2px solid var(--border);
|
|
25
|
+
margin-bottom: 14px;
|
|
26
|
+
}
|
|
27
|
+
.title {
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
color: var(--text-light);
|
|
32
|
+
padding: 0 14px;
|
|
33
|
+
margin-bottom: 6px;
|
|
34
|
+
}
|
|
35
|
+
.action-list-group:not(:first-child) {
|
|
36
|
+
margin-top: 12px;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
@@ -15,105 +15,103 @@ function handleClick() {
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<div
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
on:click
|
|
18
|
+
class="action-list-item"
|
|
19
|
+
class:disabled
|
|
20
|
+
class:danger={type === 'danger'}
|
|
21
|
+
on:click={handleClick}
|
|
22
|
+
role="button"
|
|
23
|
+
tabindex="0"
|
|
24
|
+
on:keyup={(e) => {
|
|
25
|
+
if (e.key === 'Enter') {
|
|
26
|
+
handleClick();
|
|
27
|
+
}
|
|
28
|
+
}}
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
on:click
|
|
32
31
|
>
|
|
32
|
+
{#if selectionAlign === 'start'}
|
|
33
|
+
<Selected {selection} bind:selected />
|
|
34
|
+
{/if}
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<span class="start">
|
|
40
|
-
<slot name="start" />
|
|
41
|
-
</span>
|
|
42
|
-
{/if}
|
|
43
|
-
|
|
44
|
-
<span class="middle">
|
|
45
|
-
<slot />
|
|
36
|
+
{#if $$slots.start}
|
|
37
|
+
<span class="start">
|
|
38
|
+
<slot name="start" />
|
|
39
|
+
</span>
|
|
40
|
+
{/if}
|
|
46
41
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<slot name="description" />
|
|
50
|
-
</div>
|
|
51
|
-
{/if}
|
|
52
|
-
</span>
|
|
42
|
+
<span class="middle">
|
|
43
|
+
<slot />
|
|
53
44
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
{#if $$slots.description}
|
|
46
|
+
<div class="description">
|
|
47
|
+
<slot name="description" />
|
|
48
|
+
</div>
|
|
49
|
+
{/if}
|
|
50
|
+
</span>
|
|
59
51
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
{#if $$slots.end}
|
|
53
|
+
<span class="end">
|
|
54
|
+
<slot name="end" />
|
|
55
|
+
</span>
|
|
56
|
+
{/if}
|
|
63
57
|
|
|
58
|
+
{#if selectionAlign === 'end'}
|
|
59
|
+
<Selected {selection} bind:selected />
|
|
60
|
+
{/if}
|
|
64
61
|
</div>
|
|
65
62
|
|
|
66
63
|
<style>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
64
|
+
div.action-list-item {
|
|
65
|
+
padding: 6px 14px;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
border-radius: var(--box-radius);
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
position: relative;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
}
|
|
73
|
+
div.action-list-item:hover {
|
|
74
|
+
background-color: var(--hover);
|
|
75
|
+
}
|
|
76
|
+
div.action-list-item.danger {
|
|
77
|
+
color: var(--red-dark);
|
|
78
|
+
}
|
|
79
|
+
div.action-list-item.danger:hover {
|
|
80
|
+
background-color: #fffafa;
|
|
81
|
+
}
|
|
85
82
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
.start,
|
|
84
|
+
.middle,
|
|
85
|
+
.end {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
}
|
|
89
|
+
.start {
|
|
90
|
+
margin-right: 8px;
|
|
91
|
+
}
|
|
93
92
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
.end {
|
|
102
|
-
margin-left: 8px;
|
|
103
|
-
}
|
|
93
|
+
.middle {
|
|
94
|
+
flex: 1;
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
align-items: flex-start;
|
|
98
|
+
}
|
|
104
99
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
100
|
+
.end {
|
|
101
|
+
margin-left: 8px;
|
|
102
|
+
}
|
|
109
103
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
div.action-list-item.disabled:hover {
|
|
116
|
-
background-color: transparent;
|
|
117
|
-
}
|
|
104
|
+
.description {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
color: var(--text-light);
|
|
107
|
+
}
|
|
118
108
|
|
|
119
|
-
|
|
109
|
+
/*styles for disabled state*/
|
|
110
|
+
div.action-list-item.disabled {
|
|
111
|
+
color: var(--text-light);
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
}
|
|
114
|
+
div.action-list-item.disabled:hover {
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
}
|
|
117
|
+
</style>
|
|
@@ -5,26 +5,23 @@ export let selected;
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
{#if selection !== 'none'}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{/if}
|
|
18
|
-
{/if}
|
|
19
|
-
</span>
|
|
8
|
+
<span class="selected">
|
|
9
|
+
{#if selection === 'multi'}
|
|
10
|
+
<span style="transform:scale(0.9);transform-origin:top">
|
|
11
|
+
<Checkbox checked={selected} tabindex="-1" />
|
|
12
|
+
</span>
|
|
13
|
+
{:else if selected}
|
|
14
|
+
<IconCheck />
|
|
15
|
+
{/if}
|
|
16
|
+
</span>
|
|
20
17
|
{/if}
|
|
21
18
|
|
|
22
19
|
<style>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</style>
|
|
20
|
+
.selected {
|
|
21
|
+
width: 30px;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -8,16 +8,12 @@ const sizes = {
|
|
|
8
8
|
size = typeof size === "number" ? size : sizes[size];
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<img
|
|
12
|
-
{alt}
|
|
13
|
-
{...$$restProps}
|
|
14
|
-
style={`width: ${size}px; height: ${size}px;`}
|
|
15
|
-
/>
|
|
11
|
+
<img {alt} {...$$restProps} style={`width: ${size}px; height: ${size}px;`} />
|
|
16
12
|
|
|
17
13
|
<style>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</style>
|
|
14
|
+
img {
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
@@ -7,26 +7,22 @@ const sizes = {
|
|
|
7
7
|
size = typeof size === "number" ? size : sizes[size];
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
-
<div
|
|
11
|
-
|
|
12
|
-
style:--local-size={size + "px"}
|
|
13
|
-
>
|
|
14
|
-
<slot />
|
|
10
|
+
<div class="stack" style:--local-size={size + 'px'}>
|
|
11
|
+
<slot />
|
|
15
12
|
</div>
|
|
16
13
|
|
|
17
|
-
|
|
18
14
|
<style>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</style>
|
|
15
|
+
.stack {
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
.stack :global(img) {
|
|
20
|
+
transition: 0.2s;
|
|
21
|
+
}
|
|
22
|
+
.stack :global(img:not(:first-child)) {
|
|
23
|
+
margin-left: calc(var(--local-size) * -0.5);
|
|
24
|
+
}
|
|
25
|
+
.stack:hover :global(img:not(:first-child)) {
|
|
26
|
+
margin-left: 3px;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script>export let as = "div";
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
<svelte:element
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
<svelte:element
|
|
5
|
+
this={as}
|
|
6
|
+
style:box-shadow="var(--box-shadow)"
|
|
7
|
+
style:border-radius="var(--box-radius)"
|
|
8
|
+
style:background-color="var(--box-background)"
|
|
9
|
+
{...$$restProps}
|
|
10
10
|
>
|
|
11
|
-
|
|
12
|
-
</svelte:element>
|
|
11
|
+
<slot />
|
|
12
|
+
</svelte:element>
|
|
@@ -7,53 +7,44 @@ export let align = "center";
|
|
|
7
7
|
export let button = {};
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
-
<svelte:element
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
bind:this={button}
|
|
30
|
-
|
|
31
|
-
{...$$restProps}
|
|
10
|
+
<svelte:element
|
|
11
|
+
this={as}
|
|
12
|
+
class="button {size} {color} {variant} {align}"
|
|
13
|
+
class:block
|
|
14
|
+
on:keyup
|
|
15
|
+
on:keydown
|
|
16
|
+
on:keypress
|
|
17
|
+
on:focus
|
|
18
|
+
on:blur
|
|
19
|
+
on:click
|
|
20
|
+
on:mouseover
|
|
21
|
+
on:mouseenter
|
|
22
|
+
on:mouseleave
|
|
23
|
+
on:change
|
|
24
|
+
role="button"
|
|
25
|
+
tabindex="0"
|
|
26
|
+
bind:this={button}
|
|
27
|
+
{...$$restProps}
|
|
32
28
|
>
|
|
29
|
+
<span class="button-content">
|
|
30
|
+
{#if $$slots.start}
|
|
31
|
+
<span class="slot start"><slot name="start" /></span>
|
|
32
|
+
{/if}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{#if $$slots.start}
|
|
37
|
-
<span class="slot start"><slot name="start" /></span>
|
|
38
|
-
{/if}
|
|
34
|
+
<slot></slot>
|
|
39
35
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{/if}
|
|
45
|
-
|
|
46
|
-
</span>
|
|
47
|
-
|
|
48
|
-
{#if $$slots.action}
|
|
49
|
-
<span class="action">
|
|
50
|
-
<slot name="action" />
|
|
51
|
-
</span>
|
|
52
|
-
{/if}
|
|
36
|
+
{#if $$slots.end}
|
|
37
|
+
<span class="slot end"><slot name="end" /></span>
|
|
38
|
+
{/if}
|
|
39
|
+
</span>
|
|
53
40
|
|
|
41
|
+
{#if $$slots.action}
|
|
42
|
+
<span class="action">
|
|
43
|
+
<slot name="action" />
|
|
44
|
+
</span>
|
|
45
|
+
{/if}
|
|
54
46
|
</svelte:element>
|
|
55
47
|
|
|
56
|
-
|
|
57
48
|
<style>.slot.start {
|
|
58
49
|
margin-right: 6px;
|
|
59
50
|
display: inline-flex;
|
|
@@ -398,4 +389,4 @@ export let button = {};
|
|
|
398
389
|
}
|
|
399
390
|
.button[disabled]:hover {
|
|
400
391
|
box-shadow: none !important;
|
|
401
|
-
}</style>
|
|
392
|
+
}</style>
|