sveltacular 0.0.49 → 0.0.50

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.
Files changed (110) hide show
  1. package/README.md +31 -31
  2. package/dist/forms/bool-box/bool-box.svelte +3 -3
  3. package/dist/forms/button/button.svelte +7 -7
  4. package/dist/forms/check-box/check-box-group.svelte +14 -14
  5. package/dist/forms/check-box/check-box.svelte +23 -23
  6. package/dist/forms/combo/new-or-existing-combo.svelte +56 -56
  7. package/dist/forms/date-box/date-box.svelte +19 -19
  8. package/dist/forms/file-area/file-area.svelte +31 -31
  9. package/dist/forms/file-box/file-box.svelte +23 -23
  10. package/dist/forms/form-field.svelte +7 -7
  11. package/dist/forms/form-footer.svelte +15 -15
  12. package/dist/forms/form-header.svelte +9 -9
  13. package/dist/forms/form-label.svelte +5 -5
  14. package/dist/forms/form-section.svelte +14 -14
  15. package/dist/forms/form.svelte +7 -7
  16. package/dist/forms/info-box/info-box.svelte +19 -19
  17. package/dist/forms/list-box/list-box.svelte +45 -45
  18. package/dist/forms/list-box/list-box.svelte.d.ts +2 -2
  19. package/dist/forms/money-box/money-box.svelte +5 -5
  20. package/dist/forms/number-box/number-box.svelte +29 -29
  21. package/dist/forms/phone-box/phone-box.svelte +50 -50
  22. package/dist/forms/radio-group/radio-box.svelte +15 -15
  23. package/dist/forms/radio-group/radio-group.svelte +12 -12
  24. package/dist/forms/switch-box/switch-box.svelte +16 -16
  25. package/dist/forms/text-area/text-area.svelte +10 -10
  26. package/dist/forms/text-box/text-box.svelte +34 -34
  27. package/dist/forms/url-box/url-box.svelte +14 -14
  28. package/dist/generic/address/address.svelte +16 -16
  29. package/dist/generic/card/card-container.svelte +7 -7
  30. package/dist/generic/card/card.svelte +10 -10
  31. package/dist/generic/date/date-time.svelte +3 -3
  32. package/dist/generic/divider/divider.svelte +3 -3
  33. package/dist/generic/dot/dot.svelte +5 -5
  34. package/dist/generic/email/email.svelte +12 -12
  35. package/dist/generic/empty/empty.svelte +14 -14
  36. package/dist/generic/header/header.svelte +17 -17
  37. package/dist/generic/link/link.svelte +13 -13
  38. package/dist/generic/menu/menu.svelte +39 -39
  39. package/dist/generic/menu/menu.svelte.d.ts +1 -1
  40. package/dist/generic/notice/notice.svelte +25 -25
  41. package/dist/generic/overlay.svelte +8 -8
  42. package/dist/generic/panel/panel.svelte +10 -10
  43. package/dist/generic/phone/phone.svelte +16 -16
  44. package/dist/generic/pill/pill.svelte +7 -7
  45. package/dist/generic/scorecard/scorecard.svelte +10 -10
  46. package/dist/generic/section/section.svelte +10 -10
  47. package/dist/icons/angle-right-icon.svelte +11 -11
  48. package/dist/icons/angle-up-icon.svelte +9 -9
  49. package/dist/icons/check-icon.svelte +15 -15
  50. package/dist/icons/envelope-icon.svelte +8 -8
  51. package/dist/icons/folder-open-icon.svelte +12 -12
  52. package/dist/icons/hamburger-icon.svelte +15 -15
  53. package/dist/icons/home-icon.svelte +7 -7
  54. package/dist/icons/link-icon.svelte +15 -15
  55. package/dist/icons/mobile-phone-icon.svelte +5 -5
  56. package/dist/icons/phone-icon.svelte +9 -9
  57. package/dist/icons/svg-icon.svelte +5 -5
  58. package/dist/icons/upload-icon.svelte +9 -9
  59. package/dist/images/icon.svelte +5 -5
  60. package/dist/images/image.svelte +28 -28
  61. package/dist/layout/flex-col.svelte +7 -7
  62. package/dist/layout/flex-item.svelte +7 -7
  63. package/dist/layout/flex-row.svelte +10 -10
  64. package/dist/layout/grid.svelte +17 -17
  65. package/dist/modals/alert.svelte +24 -24
  66. package/dist/modals/confirm.svelte +27 -27
  67. package/dist/modals/dialog-body.svelte +5 -5
  68. package/dist/modals/dialog-close-button.svelte +7 -7
  69. package/dist/modals/dialog-footer.svelte +9 -9
  70. package/dist/modals/dialog-header.svelte +5 -5
  71. package/dist/modals/dialog-window.svelte +9 -9
  72. package/dist/modals/modal.svelte +12 -12
  73. package/dist/modals/prompt.svelte +29 -29
  74. package/dist/navigation/accordian/accordian.svelte +17 -17
  75. package/dist/navigation/app-bar/app-bar.svelte +7 -7
  76. package/dist/navigation/app-bar/app-branding.svelte +18 -18
  77. package/dist/navigation/app-bar/app-logo.svelte +11 -11
  78. package/dist/navigation/app-bar/app-nav-item.svelte +14 -14
  79. package/dist/navigation/app-bar/app-nav.svelte +12 -12
  80. package/dist/navigation/breadcrumbs/breadcrumbs.svelte +25 -25
  81. package/dist/navigation/pagination/pagination.svelte +27 -27
  82. package/dist/navigation/side-bar/side-bar.svelte +10 -10
  83. package/dist/navigation/tabs/tab-group.svelte +20 -20
  84. package/dist/navigation/tabs/tab.svelte +13 -13
  85. package/dist/navigation/wizard/wizard-step.svelte +12 -12
  86. package/dist/navigation/wizard/wizard.svelte +27 -27
  87. package/dist/placeholders/loading.svelte +9 -9
  88. package/dist/placeholders/progress.svelte +9 -9
  89. package/dist/placeholders/skeleton-text.svelte +13 -13
  90. package/dist/tables/data-grid.svelte +80 -80
  91. package/dist/tables/table-body.svelte +3 -3
  92. package/dist/tables/table-caption.svelte +5 -5
  93. package/dist/tables/table-cell.svelte +7 -7
  94. package/dist/tables/table-footer-cell.svelte +21 -21
  95. package/dist/tables/table-footer-row.svelte +3 -3
  96. package/dist/tables/table-footer.svelte +13 -13
  97. package/dist/tables/table-header-cell.svelte +7 -7
  98. package/dist/tables/table-header-row.svelte +4 -4
  99. package/dist/tables/table-header.svelte +14 -14
  100. package/dist/tables/table-row.svelte +16 -16
  101. package/dist/tables/table.svelte +11 -11
  102. package/dist/timeline/timeline-item.svelte +26 -26
  103. package/dist/timeline/timeline.svelte +5 -5
  104. package/dist/types/form.d.ts +1 -1
  105. package/dist/typography/code-block.svelte +7 -7
  106. package/dist/typography/headline.svelte +19 -19
  107. package/dist/typography/paragraph.svelte +13 -13
  108. package/dist/typography/subtitle.svelte +7 -7
  109. package/dist/typography/text.svelte +7 -7
  110. package/package.json +101 -101
@@ -10,12 +10,12 @@ setContext("CardContainer", {
10
10
  });
11
11
  $:
12
12
  count = cards.length;
13
- </script>
14
-
15
- <ul data-count={count} class="{spacing} {align}">
16
- <slot />
17
- </ul>
18
-
13
+ </script>
14
+
15
+ <ul data-count={count} class="{spacing} {align}">
16
+ <slot />
17
+ </ul>
18
+
19
19
  <style>ul {
20
20
  list-style: none;
21
21
  padding: 0;
@@ -58,4 +58,4 @@ ul.space-between {
58
58
  }
59
59
  ul.space-around {
60
60
  justify-content: space-around;
61
- }</style>
61
+ }</style>
@@ -16,15 +16,15 @@ const container = getContext("CardContainer");
16
16
  if (container) {
17
17
  container.register(id);
18
18
  }
19
- </script>
20
-
21
- <li {role} {id} on:click={onClick} class="{size} {role}">
22
- {#if title}
23
- <strong>{title}</strong>
24
- {/if}
25
- <slot />
26
- </li>
27
-
19
+ </script>
20
+
21
+ <li {role} {id} on:click={onClick} class="{size} {role}">
22
+ {#if title}
23
+ <strong>{title}</strong>
24
+ {/if}
25
+ <slot />
26
+ </li>
27
+
28
28
  <style>li {
29
29
  display: inline-block;
30
30
  vertical-align: top;
@@ -60,4 +60,4 @@ li.lg {
60
60
  }
61
61
  li.xl {
62
62
  max-width: 30rem;
63
- }</style>
63
+ }</style>
@@ -62,6 +62,6 @@ $:
62
62
  })();
63
63
  $:
64
64
  datetime = date.toISOString();
65
- </script>
66
-
67
- <time {datetime}>{text}</time>
65
+ </script>
66
+
67
+ <time {datetime}>{text}</time>
@@ -1,9 +1,9 @@
1
- <hr />
2
-
1
+ <hr />
2
+
3
3
  <style>hr {
4
4
  border: 0;
5
5
  height: 0.1rem;
6
6
  background: var(--divider-color, rgba(127, 127, 127, 0.5));
7
7
  margin-top: 0.5rem;
8
8
  margin-bottom: 0.5rem;
9
- }</style>
9
+ }</style>
@@ -1,10 +1,10 @@
1
1
  <script>export let color = "#b7b7b7";
2
2
  export let shadow = false;
3
3
  export let size = "md";
4
- </script>
5
-
6
- <span style="background: {color}" class="{size} {shadow ? 'shadow' : ''}" />
7
-
4
+ </script>
5
+
6
+ <span style="background: {color}" class="{size} {shadow ? 'shadow' : ''}" />
7
+
8
8
  <style>span {
9
9
  display: inline-block;
10
10
  width: 0.5rem;
@@ -25,4 +25,4 @@ span.lg {
25
25
  span.xl {
26
26
  width: 1rem;
27
27
  height: 1rem;
28
- }</style>
28
+ }</style>
@@ -1,16 +1,16 @@
1
1
  <script>import EnvelopeIcon from "../../icons/envelope-icon.svelte";
2
2
  export let emailAddress = "";
3
- </script>
4
-
5
- <a href="mailto:{emailAddress}" title="Email Address">
6
- <span class="icon">
7
- <EnvelopeIcon />
8
- </span>
9
- <span class="address">
10
- {emailAddress}
11
- </span>
12
- </a>
13
-
3
+ </script>
4
+
5
+ <a href="mailto:{emailAddress}" title="Email Address">
6
+ <span class="icon">
7
+ <EnvelopeIcon />
8
+ </span>
9
+ <span class="address">
10
+ {emailAddress}
11
+ </span>
12
+ </a>
13
+
14
14
  <style>a {
15
15
  color: inherit;
16
16
  text-decoration: none;
@@ -27,4 +27,4 @@ a .icon {
27
27
  }
28
28
  a:hover .address {
29
29
  text-decoration: underline;
30
- }</style>
30
+ }</style>
@@ -3,19 +3,19 @@ export let size = "md";
3
3
  export let orientation = "vertical";
4
4
  export let reverse = false;
5
5
  export let align = "center";
6
- </script>
7
-
8
- <div class="empty {size} {orientation} {reverse ? 'reverse' : ''} {align}">
9
- {#if $$slots.default}
10
- <div class="icon">
11
- <slot />
12
- </div>
13
- {/if}
14
- <div class="text">
15
- {text}
16
- </div>
17
- </div>
18
-
6
+ </script>
7
+
8
+ <div class="empty {size} {orientation} {reverse ? 'reverse' : ''} {align}">
9
+ {#if $$slots.default}
10
+ <div class="icon">
11
+ <slot />
12
+ </div>
13
+ {/if}
14
+ <div class="text">
15
+ {text}
16
+ </div>
17
+ </div>
18
+
19
19
  <style>.empty {
20
20
  display: flex;
21
21
  flex-direction: column;
@@ -80,4 +80,4 @@ export let align = "center";
80
80
  .xl .icon {
81
81
  height: 4rem;
82
82
  width: 4rem;
83
- }</style>
83
+ }</style>
@@ -7,22 +7,22 @@ export let level = section?.level || 2;
7
7
  export let title = section?.title || "";
8
8
  export let subtitle = "";
9
9
  export let underline = false;
10
- </script>
11
-
12
- <header class:underline data-level={level}>
13
- <FlexRow>
14
- <hgroup>
15
- <Headline {level}>{title}</Headline>
16
- {#if subtitle}
17
- <Subtitle {level}>{subtitle}</Subtitle>
18
- {/if}
19
- </hgroup>
20
- <div>
21
- <slot />
22
- </div>
23
- </FlexRow>
24
- </header>
25
-
10
+ </script>
11
+
12
+ <header class:underline data-level={level}>
13
+ <FlexRow>
14
+ <hgroup>
15
+ <Headline {level}>{title}</Headline>
16
+ {#if subtitle}
17
+ <Subtitle {level}>{subtitle}</Subtitle>
18
+ {/if}
19
+ </hgroup>
20
+ <div>
21
+ <slot />
22
+ </div>
23
+ </FlexRow>
24
+ </header>
25
+
26
26
  <style>header {
27
27
  margin-bottom: 1rem;
28
28
  font-family: var(--base-headline-font-family, sans-serif);
@@ -30,4 +30,4 @@ export let underline = false;
30
30
  header.underline {
31
31
  padding-bottom: 0.5rem;
32
32
  border-bottom: solid 1px #ccc;
33
- }</style>
33
+ }</style>
@@ -3,18 +3,18 @@ export let target = void 0;
3
3
  export let underline = "none";
4
4
  export let disabled = false;
5
5
  export let display = "inline";
6
- </script>
7
-
8
- {#if disabled}
9
- <span class="link disabled underline-{underline} {display}">
10
- <slot />
11
- </span>
12
- {:else}
13
- <a {href} {target} class="link underline-{underline} {display}">
14
- <slot />
15
- </a>
16
- {/if}
17
-
6
+ </script>
7
+
8
+ {#if disabled}
9
+ <span class="link disabled underline-{underline} {display}">
10
+ <slot />
11
+ </span>
12
+ {:else}
13
+ <a {href} {target} class="link underline-{underline} {display}">
14
+ <slot />
15
+ </a>
16
+ {/if}
17
+
18
18
  <style>.link {
19
19
  text-decoration: underline;
20
20
  }
@@ -33,4 +33,4 @@ export let display = "inline";
33
33
  }
34
34
  .link[href].underline-hover:hover {
35
35
  text-decoration: underline;
36
- }</style>
36
+ }</style>
@@ -3,7 +3,7 @@ import FlexItem from "../../layout/flex-item.svelte";
3
3
  import FlexRow from "../../layout/flex-row.svelte";
4
4
  import { createEventDispatcher } from "svelte";
5
5
  export let items = [];
6
- export let value = "";
6
+ export let value = null;
7
7
  export let instructions = "";
8
8
  export let open = false;
9
9
  export let size = "md";
@@ -24,43 +24,43 @@ const scrollToItem = (index) => {
24
24
  };
25
25
  $:
26
26
  highlightIndex >= 0 && scrollToItem(highlightIndex);
27
- </script>
28
-
29
- <ul role="listbox" class="menu {open ? 'open' : 'closed'} {size}">
30
- {#if instructions}
31
- <li class="instructions">{instructions}</li>
32
- {/if}
33
- {#each items as item, i}
34
- <li
35
- on:click={() => selectItem(item)}
36
- on:keypress={() => selectItem(item)}
37
- role="option"
38
- aria-selected={item.value === value}
39
- data-index={i}
40
- >
41
- <div class:selected={i == highlightIndex}>
42
- <FlexRow>
43
- <FlexItem grow>
44
- {#if searchText}
45
- {@html item.name.replace(
46
- new RegExp(searchText, 'gi'),
47
- (match) => `<strong>${match}</strong>`
48
- )}
49
- {:else}
50
- {item.name}
51
- {/if}
52
- </FlexItem>
53
- <FlexItem>
54
- {#if item.value === value}
55
- <span class="check"><CheckIcon /></span>
56
- {/if}
57
- </FlexItem>
58
- </FlexRow>
59
- </div>
60
- </li>
61
- {/each}
62
- </ul>
63
-
27
+ </script>
28
+
29
+ <ul role="listbox" class="menu {open ? 'open' : 'closed'} {size}">
30
+ {#if instructions}
31
+ <li class="instructions">{instructions}</li>
32
+ {/if}
33
+ {#each items as item, i}
34
+ <li
35
+ on:click={() => selectItem(item)}
36
+ on:keypress={() => selectItem(item)}
37
+ role="option"
38
+ aria-selected={item.value === value}
39
+ data-index={i}
40
+ >
41
+ <div class:selected={i == highlightIndex}>
42
+ <FlexRow>
43
+ <FlexItem grow>
44
+ {#if searchText}
45
+ {@html item.name.replace(
46
+ new RegExp(searchText, 'gi'),
47
+ (match) => `<strong>${match}</strong>`
48
+ )}
49
+ {:else}
50
+ {item.name}
51
+ {/if}
52
+ </FlexItem>
53
+ <FlexItem>
54
+ {#if item.value === value}
55
+ <span class="check"><CheckIcon /></span>
56
+ {/if}
57
+ </FlexItem>
58
+ </FlexRow>
59
+ </div>
60
+ </li>
61
+ {/each}
62
+ </ul>
63
+
64
64
  <style>.menu {
65
65
  position: relative;
66
66
  width: 8rem;
@@ -113,4 +113,4 @@ $:
113
113
  display: inline-block;
114
114
  width: 1rem;
115
115
  height: 1rem;
116
- }</style>
116
+ }</style>
@@ -3,7 +3,7 @@ import type { FormFieldSizeOptions, MenuOption } from '../../index.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  items?: MenuOption[] | undefined;
6
- value?: string | undefined;
6
+ value?: string | null | undefined;
7
7
  instructions?: string | undefined;
8
8
  open?: boolean | undefined;
9
9
  size?: FormFieldSizeOptions | undefined;
@@ -19,30 +19,30 @@ const onClick = (e) => {
19
19
  e.stopPropagation();
20
20
  goodbye();
21
21
  };
22
- </script>
23
-
24
- <div class="notice {style} {size} {visible ? 'visible' : 'hidden'} {fading ? 'fading' : ''}">
25
- {#if $$slots.icon}
26
- <div class="icon">
27
- <slot name="icon" />
28
- </div>
29
- {/if}
30
- <div class="content">
31
- {#if title}
32
- <strong>{title}</strong>
33
- {/if}
34
- <div class="message">
35
- <slot />
36
- </div>
37
- </div>
38
-
39
- {#if dismissable}
40
- <div class="dismiss">
41
- <button type="button" on:click={onClick}>X</button>
42
- </div>
43
- {/if}
44
- </div>
45
-
22
+ </script>
23
+
24
+ <div class="notice {style} {size} {visible ? 'visible' : 'hidden'} {fading ? 'fading' : ''}">
25
+ {#if $$slots.icon}
26
+ <div class="icon">
27
+ <slot name="icon" />
28
+ </div>
29
+ {/if}
30
+ <div class="content">
31
+ {#if title}
32
+ <strong>{title}</strong>
33
+ {/if}
34
+ <div class="message">
35
+ <slot />
36
+ </div>
37
+ </div>
38
+
39
+ {#if dismissable}
40
+ <div class="dismiss">
41
+ <button type="button" on:click={onClick}>X</button>
42
+ </div>
43
+ {/if}
44
+ </div>
45
+
46
46
  <style>.notice {
47
47
  display: flex;
48
48
  flex-direction: row;
@@ -155,4 +155,4 @@ button {
155
155
  }
156
156
  button:hover {
157
157
  font-weight: bold;
158
- }</style>
158
+ }</style>
@@ -9,13 +9,13 @@ const onKeyPress = (event) => {
9
9
  onClick();
10
10
  }
11
11
  };
12
- </script>
13
-
14
- <!-- svelte-ignore a11y-no-static-element-interactions -->
15
- <div class:show on:click={onClick} on:keypress={onKeyPress}>
16
- <slot />
17
- </div>
18
-
12
+ </script>
13
+
14
+ <!-- svelte-ignore a11y-no-static-element-interactions -->
15
+ <div class:show on:click={onClick} on:keypress={onKeyPress}>
16
+ <slot />
17
+ </div>
18
+
19
19
  <style>div {
20
20
  display: none;
21
21
  position: fixed;
@@ -30,4 +30,4 @@ div.show {
30
30
  display: flex;
31
31
  align-items: center;
32
32
  justify-content: center;
33
- }</style>
33
+ }</style>
@@ -1,14 +1,14 @@
1
1
  <script>export let title = void 0;
2
2
  export let border = true;
3
- </script>
4
-
5
- <fieldset class={border ? 'border' : 'no-border'}>
6
- {#if title}
7
- <legend>{title}</legend>
8
- {/if}
9
- <slot />
10
- </fieldset>
11
-
3
+ </script>
4
+
5
+ <fieldset class={border ? 'border' : 'no-border'}>
6
+ {#if title}
7
+ <legend>{title}</legend>
8
+ {/if}
9
+ <slot />
10
+ </fieldset>
11
+
12
12
  <style>fieldset {
13
13
  position: relative;
14
14
  margin-bottom: 1rem;
@@ -28,4 +28,4 @@ fieldset legend {
28
28
  letter-spacing: 0.1rem;
29
29
  color: var(--base-fg, #ccc);
30
30
  font-family: var(--base-headline-font-family, sans-serif);
31
- }</style>
31
+ }</style>
@@ -22,21 +22,21 @@ $:
22
22
  protocol = type === "sms" ? "sms:" : "tel:";
23
23
  $:
24
24
  isCellPhone = type == "mobile" || type == "sms";
25
- </script>
26
-
27
- <a href="{protocol}:{phoneNumberDigits}" title={capitalize(type)}>
28
- <span class="icon">
29
- {#if isCellPhone}
30
- <MobilePhoneIcon />
31
- {:else}
32
- <PhoneIcon />
33
- {/if}
34
- </span>
35
- <span class="number">
36
- {formattedPhoneNumber}
37
- </span>
38
- </a>
39
-
25
+ </script>
26
+
27
+ <a href="{protocol}:{phoneNumberDigits}" title={capitalize(type)}>
28
+ <span class="icon">
29
+ {#if isCellPhone}
30
+ <MobilePhoneIcon />
31
+ {:else}
32
+ <PhoneIcon />
33
+ {/if}
34
+ </span>
35
+ <span class="number">
36
+ {formattedPhoneNumber}
37
+ </span>
38
+ </a>
39
+
40
40
  <style>a {
41
41
  color: inherit;
42
42
  text-decoration: none;
@@ -53,4 +53,4 @@ a .icon {
53
53
  }
54
54
  a:hover .number {
55
55
  text-decoration: underline;
56
- }</style>
56
+ }</style>
@@ -1,11 +1,11 @@
1
1
  <script>export let size = "md";
2
2
  export let style = "standard";
3
- </script>
4
-
5
- <span class="pill {size} {style}">
6
- <slot />
7
- </span>
8
-
3
+ </script>
4
+
5
+ <span class="pill {size} {style}">
6
+ <slot />
7
+ </span>
8
+
9
9
  <style>.pill {
10
10
  display: inline-block;
11
11
  padding: 0.25rem 0.5rem;
@@ -33,4 +33,4 @@ export let style = "standard";
33
33
  }
34
34
  .pill.square {
35
35
  border-radius: 0;
36
- }</style>
36
+ }</style>
@@ -17,15 +17,15 @@ $:
17
17
  formattedValue = typeof value === "number" ? value.toLocaleString() : value;
18
18
  $:
19
19
  isLink = !!href;
20
- </script>
21
-
22
- <button on:click={onClick} class:isLink {id}>
23
- <figure class={caption}>
24
- <span class="value">{formattedValue}</span>
25
- <figcaption><slot /></figcaption>
26
- </figure>
27
- </button>
28
-
20
+ </script>
21
+
22
+ <button on:click={onClick} class:isLink {id}>
23
+ <figure class={caption}>
24
+ <span class="value">{formattedValue}</span>
25
+ <figcaption><slot /></figcaption>
26
+ </figure>
27
+ </button>
28
+
29
29
  <style>button {
30
30
  display: inline-block;
31
31
  margin-right: 1rem;
@@ -95,4 +95,4 @@ button figure.right {
95
95
  justify-content: center;
96
96
  text-align: right;
97
97
  gap: 0.5rem;
98
- }</style>
98
+ }</style>
@@ -4,15 +4,15 @@ export let title = void 0;
4
4
  export let level = 2;
5
5
  export let size = "full";
6
6
  setContext("section", { level, title });
7
- </script>
8
-
9
- <section class="level-{level} {size}">
10
- {#if title}
11
- <Header />
12
- {/if}
13
- <slot />
14
- </section>
15
-
7
+ </script>
8
+
9
+ <section class="level-{level} {size}">
10
+ {#if title}
11
+ <Header />
12
+ {/if}
13
+ <slot />
14
+ </section>
15
+
16
16
  <style>section {
17
17
  padding: 0;
18
18
  margin-top: 1rem;
@@ -33,4 +33,4 @@ section.xl {
33
33
  }
34
34
  section.full {
35
35
  width: 100%;
36
- }</style>
36
+ }</style>
@@ -1,12 +1,12 @@
1
1
  <script>import SvgIcon from "./svg-icon.svelte";
2
- </script>
3
-
4
- <SvgIcon>
5
- <path
6
- stroke="currentColor"
7
- stroke-linecap="round"
8
- stroke-linejoin="round"
9
- stroke-width="2"
10
- d="m1 13 5.7-5.326a.909.909 0 0 0 0-1.348L1 1"
11
- />
12
- </SvgIcon>
2
+ </script>
3
+
4
+ <SvgIcon>
5
+ <path
6
+ stroke="currentColor"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ stroke-width="2"
10
+ d="m1 13 5.7-5.326a.909.909 0 0 0 0-1.348L1 1"
11
+ />
12
+ </SvgIcon>
@@ -1,9 +1,9 @@
1
- <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 8">
2
- <path
3
- stroke="currentColor"
4
- stroke-linecap="round"
5
- stroke-linejoin="round"
6
- stroke-width="2"
7
- d="M13 7 7.674 1.3a.91.91 0 0 0-1.348 0L1 7"
8
- />
9
- </svg>
1
+ <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 8">
2
+ <path
3
+ stroke="currentColor"
4
+ stroke-linecap="round"
5
+ stroke-linejoin="round"
6
+ stroke-width="2"
7
+ d="M13 7 7.674 1.3a.91.91 0 0 0-1.348 0L1 7"
8
+ />
9
+ </svg>