@hyvor/design 0.0.66 → 0.0.67
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/IconMessage/IconMessage.svelte +8 -22
- package/dist/components/IconMessage/IconMessage.svelte.d.ts +1 -1
- package/dist/components/Slider/Slider.svelte +0 -1
- package/dist/components/Slider/Slider.svelte.d.ts +0 -1
- package/dist/components/Textarea/Textarea.svelte +8 -16
- package/dist/components/Textarea/Textarea.svelte.d.ts +1 -1
- 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/index.d.ts +1 -0
- package/dist/marketing/index.js +1 -0
- package/package.json +1 -1
|
@@ -18,21 +18,13 @@ if (error) {
|
|
|
18
18
|
iconColor = iconColor || "var(--gray-dark)";
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
|
-
<div
|
|
22
|
-
class="icon
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
style:color={iconColor}
|
|
29
|
-
{...$$restProps}
|
|
30
|
-
>
|
|
31
|
-
{#if $$slots.icon}
|
|
32
|
-
<slot name="icon" />
|
|
33
|
-
{:else if icon}
|
|
34
|
-
<svelte:component this={icon} size={iconSize + 'px' } />
|
|
35
|
-
{/if}
|
|
21
|
+
<div class="icon-message" style:padding={padding + "px"}>
|
|
22
|
+
<div class="icon" style:color={iconColor} {...$$restProps}>
|
|
23
|
+
{#if $$slots.icon}
|
|
24
|
+
<slot name="icon" />
|
|
25
|
+
{:else if icon}
|
|
26
|
+
<svelte:component this={icon} size={iconSize + "px"} />
|
|
27
|
+
{/if}
|
|
36
28
|
</div>
|
|
37
29
|
|
|
38
30
|
<div class="message">
|
|
@@ -42,11 +34,9 @@ iconColor = iconColor || "var(--gray-dark)";
|
|
|
42
34
|
{message}
|
|
43
35
|
{/if}
|
|
44
36
|
</div>
|
|
45
|
-
|
|
46
37
|
</div>
|
|
47
38
|
|
|
48
39
|
<style>
|
|
49
|
-
|
|
50
40
|
.icon-message {
|
|
51
41
|
width: 100%;
|
|
52
42
|
height: 100%;
|
|
@@ -64,8 +54,4 @@ iconColor = iconColor || "var(--gray-dark)";
|
|
|
64
54
|
color: var(--text-light);
|
|
65
55
|
margin-top: 15px;
|
|
66
56
|
}
|
|
67
|
-
|
|
68
|
-
.icon {
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
</style>
|
|
57
|
+
</style>
|
|
@@ -6,32 +6,27 @@ export let state = "default";
|
|
|
6
6
|
export let textarea = {};
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
<span
|
|
10
|
+
class="input-wrap state-{state}"
|
|
11
11
|
class:block
|
|
12
12
|
on:click={() => textarea.focus()}
|
|
13
13
|
on:keydown={(e) => {
|
|
14
|
-
if (e.key ===
|
|
14
|
+
if (e.key === "Enter") {
|
|
15
15
|
textarea.focus();
|
|
16
16
|
}
|
|
17
17
|
}}
|
|
18
18
|
role="textbox"
|
|
19
|
-
tabindex="0"
|
|
19
|
+
tabindex="0"
|
|
20
20
|
>
|
|
21
|
-
|
|
22
21
|
{#if $$slots.start}
|
|
23
|
-
<span class="slot start"
|
|
24
|
-
|
|
25
|
-
>
|
|
22
|
+
<span class="slot start">
|
|
26
23
|
<slot name="start" />
|
|
27
24
|
</span>
|
|
28
25
|
{/if}
|
|
29
26
|
|
|
30
|
-
<textarea
|
|
31
|
-
bind:value
|
|
27
|
+
<textarea
|
|
28
|
+
bind:value
|
|
32
29
|
bind:this={textarea}
|
|
33
|
-
|
|
34
|
-
|
|
35
30
|
on:keyup
|
|
36
31
|
on:keydown
|
|
37
32
|
on:keypress
|
|
@@ -43,12 +38,9 @@ export let textarea = {};
|
|
|
43
38
|
on:mouseleave
|
|
44
39
|
on:change
|
|
45
40
|
on:input
|
|
46
|
-
|
|
47
41
|
{rows}
|
|
48
42
|
{cols}
|
|
49
|
-
|
|
50
43
|
{...$$restProps}
|
|
51
|
-
|
|
52
44
|
></textarea>
|
|
53
45
|
|
|
54
46
|
{#if $$slots.end}
|
|
@@ -137,4 +129,4 @@ export let textarea = {};
|
|
|
137
129
|
}
|
|
138
130
|
.input-wrap textarea:focus {
|
|
139
131
|
outline: none;
|
|
140
|
-
}</style>
|
|
132
|
+
}</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<script>import FeatureSectionTitle from "./DocumentTitle.svelte";
|
|
2
|
+
export let title;
|
|
3
|
+
export let subtitle;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<section>
|
|
7
|
+
<div class="hds-container container">
|
|
8
|
+
<FeatureSectionTitle {title} />
|
|
9
|
+
<div class="date">{subtitle}</div>
|
|
10
|
+
<content><slot /></content>
|
|
11
|
+
</div>
|
|
12
|
+
</section>
|
|
13
|
+
|
|
14
|
+
<style>* {
|
|
15
|
+
line-height: 30px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.container {
|
|
19
|
+
margin: 0 auto 20px auto;
|
|
20
|
+
padding: 30px 15px 20px 15px;
|
|
21
|
+
}
|
|
22
|
+
.container :global(.wrap) {
|
|
23
|
+
margin-top: 0 !important;
|
|
24
|
+
}
|
|
25
|
+
.container .date {
|
|
26
|
+
text-align: center;
|
|
27
|
+
margin: 15px 0 60px 0;
|
|
28
|
+
color: var(--text-light);
|
|
29
|
+
}
|
|
30
|
+
.container content :global(h2) {
|
|
31
|
+
font-size: 32px !important;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
margin-top: 40px;
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
36
|
+
.container content :global(h3) {
|
|
37
|
+
font-size: 24px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
margin-top: 40px;
|
|
40
|
+
}
|
|
41
|
+
.container content :global(p) {
|
|
42
|
+
margin-top: 20px;
|
|
43
|
+
}
|
|
44
|
+
.container content :global(ul) {
|
|
45
|
+
margin-top: 20px;
|
|
46
|
+
}
|
|
47
|
+
.container content :global(ol) {
|
|
48
|
+
margin-top: 20px;
|
|
49
|
+
}
|
|
50
|
+
.container content :global(hr) {
|
|
51
|
+
margin: 40px 0;
|
|
52
|
+
border: none;
|
|
53
|
+
height: 1px;
|
|
54
|
+
background-color: var(--border);
|
|
55
|
+
}
|
|
56
|
+
.container content :global(a) {
|
|
57
|
+
color: var(--link);
|
|
58
|
+
text-decoration: underline;
|
|
59
|
+
}</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type DocumentProps = typeof __propDef.props;
|
|
15
|
+
export type DocumentEvents = typeof __propDef.events;
|
|
16
|
+
export type DocumentSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Document extends SvelteComponent<DocumentProps, DocumentEvents, DocumentSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<script>export let title;
|
|
2
|
+
export let subtitle = void 0;
|
|
3
|
+
export let icon = null;
|
|
4
|
+
export let h2Style = void 0;
|
|
5
|
+
export let wrapStyle = void 0;
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div class="wrap document-title" style={wrapStyle}>
|
|
9
|
+
<h2 style={h2Style}>
|
|
10
|
+
{title}
|
|
11
|
+
{#if icon}
|
|
12
|
+
<div class="img-wrap">
|
|
13
|
+
<img src={icon} alt={title} />
|
|
14
|
+
</div>
|
|
15
|
+
{/if}
|
|
16
|
+
</h2>
|
|
17
|
+
|
|
18
|
+
{#if subtitle}
|
|
19
|
+
<h3>{@html subtitle}</h3>
|
|
20
|
+
{/if}
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<style>
|
|
24
|
+
.wrap {
|
|
25
|
+
margin-top: 100px;
|
|
26
|
+
}
|
|
27
|
+
h2 {
|
|
28
|
+
font-size: 38px;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
margin-top: 20px;
|
|
32
|
+
text-align: center;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
}
|
|
37
|
+
h3 {
|
|
38
|
+
font-size: 20px;
|
|
39
|
+
width: 650px;
|
|
40
|
+
max-width: 100%;
|
|
41
|
+
margin: 0 auto;
|
|
42
|
+
font-weight: normal;
|
|
43
|
+
line-height: 1.4;
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
.img-wrap {
|
|
47
|
+
text-align: center;
|
|
48
|
+
margin-left: 20px;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
img {
|
|
53
|
+
width: 85px;
|
|
54
|
+
height: 85px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (max-width: 992px) {
|
|
58
|
+
h2 {
|
|
59
|
+
flex-direction: column-reverse;
|
|
60
|
+
gap: 15px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string | undefined;
|
|
6
|
+
icon?: string | null | undefined;
|
|
7
|
+
h2Style?: string | undefined;
|
|
8
|
+
wrapStyle?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {};
|
|
14
|
+
};
|
|
15
|
+
export type DocumentTitleProps = typeof __propDef.props;
|
|
16
|
+
export type DocumentTitleEvents = typeof __propDef.events;
|
|
17
|
+
export type DocumentTitleSlots = typeof __propDef.slots;
|
|
18
|
+
export default class DocumentTitle extends SvelteComponent<DocumentTitleProps, DocumentTitleEvents, DocumentTitleSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -8,3 +8,4 @@ export { default as DocsContent } from './Docs/Content/Content.svelte';
|
|
|
8
8
|
export { default as DocsImage } from './Docs/Content/DocsImage.svelte';
|
|
9
9
|
export { default as Footer } from './Footer/Footer.svelte';
|
|
10
10
|
export { default as FooterLinkList } from './Footer/FooterLinkList.svelte';
|
|
11
|
+
export { default as Document } from './Document/Document.svelte';
|
package/dist/marketing/index.js
CHANGED
|
@@ -8,3 +8,4 @@ export { default as DocsContent } from './Docs/Content/Content.svelte';
|
|
|
8
8
|
export { default as DocsImage } from './Docs/Content/DocsImage.svelte';
|
|
9
9
|
export { default as Footer } from './Footer/Footer.svelte';
|
|
10
10
|
export { default as FooterLinkList } from './Footer/FooterLinkList.svelte';
|
|
11
|
+
export { default as Document } from './Document/Document.svelte';
|