sveltacular 0.0.49 → 0.0.51

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 (111) 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 +84 -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/data.d.ts +2 -0
  105. package/dist/types/form.d.ts +1 -1
  106. package/dist/typography/code-block.svelte +7 -7
  107. package/dist/typography/headline.svelte +19 -19
  108. package/dist/typography/paragraph.svelte +13 -13
  109. package/dist/typography/subtitle.svelte +7 -7
  110. package/dist/typography/text.svelte +7 -7
  111. package/package.json +101 -101
@@ -1,15 +1,15 @@
1
- <svg
2
- class="w-6 h-6 text-gray-800 dark:text-white"
3
- aria-hidden="true"
4
- xmlns="http://www.w3.org/2000/svg"
5
- fill="none"
6
- viewBox="0 0 16 12"
7
- >
8
- <path
9
- stroke="currentColor"
10
- stroke-linecap="round"
11
- stroke-linejoin="round"
12
- stroke-width="2"
13
- d="M1 5.917 5.724 10.5 15 1.5"
14
- />
15
- </svg>
1
+ <svg
2
+ class="w-6 h-6 text-gray-800 dark:text-white"
3
+ aria-hidden="true"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ fill="none"
6
+ viewBox="0 0 16 12"
7
+ >
8
+ <path
9
+ stroke="currentColor"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ stroke-width="2"
13
+ d="M1 5.917 5.724 10.5 15 1.5"
14
+ />
15
+ </svg>
@@ -1,8 +1,8 @@
1
- <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
2
- <path
3
- d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z"
4
- />
5
- <path
6
- d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z"
7
- />
8
- </svg>
1
+ <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
2
+ <path
3
+ d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z"
4
+ />
5
+ <path
6
+ d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z"
7
+ />
8
+ </svg>
@@ -1,12 +1,12 @@
1
- <svg
2
- class="w-6 h-6 text-gray-800 dark:text-white"
3
- aria-hidden="true"
4
- xmlns="http://www.w3.org/2000/svg"
5
- fill="currentColor"
6
- viewBox="0 0 20 18"
7
- >
8
- <path
9
- d="M4.09 7.586A1 1 0 0 1 5 7h13V6a2 2 0 0 0-2-2h-4.557L9.043.8a2.009 2.009 0 0 0-1.6-.8H2a2 2 0 0 0-2 2v14c.001.154.02.308.058.457L4.09 7.586Z"
10
- />
11
- <path d="M6.05 9 2 17.952c.14.031.281.047.424.048h12.95a.992.992 0 0 0 .909-.594L20 9H6.05Z" />
12
- </svg>
1
+ <svg
2
+ class="w-6 h-6 text-gray-800 dark:text-white"
3
+ aria-hidden="true"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ fill="currentColor"
6
+ viewBox="0 0 20 18"
7
+ >
8
+ <path
9
+ d="M4.09 7.586A1 1 0 0 1 5 7h13V6a2 2 0 0 0-2-2h-4.557L9.043.8a2.009 2.009 0 0 0-1.6-.8H2a2 2 0 0 0-2 2v14c.001.154.02.308.058.457L4.09 7.586Z"
10
+ />
11
+ <path d="M6.05 9 2 17.952c.14.031.281.047.424.048h12.95a.992.992 0 0 0 .909-.594L20 9H6.05Z" />
12
+ </svg>
@@ -1,15 +1,15 @@
1
- <svg
2
- class="w-6 h-6 text-gray-800 dark:text-white"
3
- aria-hidden="true"
4
- xmlns="http://www.w3.org/2000/svg"
5
- fill="none"
6
- viewBox="0 0 17 14"
7
- >
8
- <path
9
- stroke="currentColor"
10
- stroke-linecap="round"
11
- stroke-linejoin="round"
12
- stroke-width="2"
13
- d="M1 1h15M1 7h15M1 13h15"
14
- />
15
- </svg>
1
+ <svg
2
+ class="w-6 h-6 text-gray-800 dark:text-white"
3
+ aria-hidden="true"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ fill="none"
6
+ viewBox="0 0 17 14"
7
+ >
8
+ <path
9
+ stroke="currentColor"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ stroke-width="2"
13
+ d="M1 1h15M1 7h15M1 13h15"
14
+ />
15
+ </svg>
@@ -1,8 +1,8 @@
1
1
  <script>import SvgIcon from "./svg-icon.svelte";
2
- </script>
3
-
4
- <SvgIcon width={20} height={20} fill="currentColor">
5
- <path
6
- d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"
7
- />
8
- </SvgIcon>
2
+ </script>
3
+
4
+ <SvgIcon width={20} height={20} fill="currentColor">
5
+ <path
6
+ d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"
7
+ />
8
+ </SvgIcon>
@@ -1,15 +1,15 @@
1
- <svg
2
- class="w-6 h-6 text-gray-800 dark:text-white"
3
- aria-hidden="true"
4
- xmlns="http://www.w3.org/2000/svg"
5
- fill="none"
6
- viewBox="0 0 19 19"
7
- >
8
- <path
9
- stroke="currentColor"
10
- stroke-linecap="round"
11
- stroke-linejoin="round"
12
- stroke-width="2"
13
- d="M11.013 7.962a3.519 3.519 0 0 0-4.975 0l-3.554 3.554a3.518 3.518 0 0 0 4.975 4.975l.461-.46m-.461-4.515a3.518 3.518 0 0 0 4.975 0l3.553-3.554a3.518 3.518 0 0 0-4.974-4.975L10.3 3.7"
14
- />
15
- </svg>
1
+ <svg
2
+ class="w-6 h-6 text-gray-800 dark:text-white"
3
+ aria-hidden="true"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ fill="none"
6
+ viewBox="0 0 19 19"
7
+ >
8
+ <path
9
+ stroke="currentColor"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ stroke-width="2"
13
+ d="M11.013 7.962a3.519 3.519 0 0 0-4.975 0l-3.554 3.554a3.518 3.518 0 0 0 4.975 4.975l.461-.46m-.461-4.515a3.518 3.518 0 0 0 4.975 0l3.553-3.554a3.518 3.518 0 0 0-4.974-4.975L10.3 3.7"
14
+ />
15
+ </svg>
@@ -1,5 +1,5 @@
1
- <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
2
- <path
3
- d="M12 0H2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM7.5 17.5h-1a1 1 0 0 1 0-2h1a1 1 0 0 1 0 2ZM12 13H2V4h10v9Z"
4
- />
5
- </svg>
1
+ <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
2
+ <path
3
+ d="M12 0H2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM7.5 17.5h-1a1 1 0 0 1 0-2h1a1 1 0 0 1 0 2ZM12 13H2V4h10v9Z"
4
+ />
5
+ </svg>
@@ -1,9 +1,9 @@
1
- <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18">
2
- <path
3
- stroke="currentColor"
4
- stroke-linecap="round"
5
- stroke-linejoin="round"
6
- stroke-width="2"
7
- d="m16.344 12.168-1.4-1.4a1.98 1.98 0 0 0-2.8 0l-.7.7a1.98 1.98 0 0 1-2.8 0l-2.1-2.1a1.98 1.98 0 0 1 0-2.8l.7-.7a1.981 1.981 0 0 0 0-2.8l-1.4-1.4a1.828 1.828 0 0 0-2.8 0C-.638 5.323 1.1 9.542 4.78 13.22c3.68 3.678 7.9 5.418 11.564 1.752a1.828 1.828 0 0 0 0-2.804Z"
8
- />
9
- </svg>
1
+ <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18">
2
+ <path
3
+ stroke="currentColor"
4
+ stroke-linecap="round"
5
+ stroke-linejoin="round"
6
+ stroke-width="2"
7
+ d="m16.344 12.168-1.4-1.4a1.98 1.98 0 0 0-2.8 0l-.7.7a1.98 1.98 0 0 1-2.8 0l-2.1-2.1a1.98 1.98 0 0 1 0-2.8l.7-.7a1.981 1.981 0 0 0 0-2.8l-1.4-1.4a1.828 1.828 0 0 0-2.8 0C-.638 5.323 1.1 9.542 4.78 13.22c3.68 3.678 7.9 5.418 11.564 1.752a1.828 1.828 0 0 0 0-2.804Z"
8
+ />
9
+ </svg>
@@ -9,8 +9,8 @@ $:
9
9
  viewBox = `${x} ${y} ${width} ${height}`;
10
10
  $:
11
11
  preserveAspectRatio = `${aspectRatioAlign} ${aspectRatioBehavior}`;
12
- </script>
13
-
14
- <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" {fill} {viewBox} {preserveAspectRatio}>
15
- <slot />
16
- </svg>
12
+ </script>
13
+
14
+ <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" {fill} {viewBox} {preserveAspectRatio}>
15
+ <slot />
16
+ </svg>
@@ -1,9 +1,9 @@
1
- <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 19">
2
- <path
3
- stroke="currentColor"
4
- stroke-linecap="round"
5
- stroke-linejoin="round"
6
- stroke-width="2"
7
- d="M15 15h.01M4 12H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-3m-5.5 0V1.07M5.5 5l4-4 4 4"
8
- />
9
- </svg>
1
+ <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 19">
2
+ <path
3
+ stroke="currentColor"
4
+ stroke-linecap="round"
5
+ stroke-linejoin="round"
6
+ stroke-width="2"
7
+ d="M15 15h.01M4 12H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-3m-5.5 0V1.07M5.5 5l4-4 4 4"
8
+ />
9
+ </svg>
@@ -1,9 +1,9 @@
1
1
  <script>export let href;
2
2
  export let color = "rgb(0, 0, 0)";
3
- </script>
4
-
5
- <span style={`--icon-path: url("${href}"); --icon-color: ${color};`} />
6
-
3
+ </script>
4
+
5
+ <span style={`--icon-path: url("${href}"); --icon-color: ${color};`} />
6
+
7
7
  <style>span {
8
8
  display: block;
9
9
  background-color: var(--icon-color, rgb(0, 0, 0));
@@ -25,4 +25,4 @@ export let color = "rgb(0, 0, 0)";
25
25
  mask-image: var(--icon-path);
26
26
  mask-repeat: no-repeat;
27
27
  mask-position: center;
28
- }</style>
28
+ }</style>
@@ -6,33 +6,33 @@ $:
6
6
  sources = Array.isArray(src) ? src : typeof src === "string" ? [{ url: src }] : [src];
7
7
  $:
8
8
  finalSource = sources[sources.length - 1];
9
- </script>
10
-
11
- <div class="image {align}">
12
- {#if href}
13
- <a {href}>
14
- <picture>
15
- {#each sources as source}
16
- <source srcset={source.url} media={source.media} />
17
- {/each}
18
- <img src={finalSource.url} {alt} />
19
- </picture>
20
- </a>
21
- {:else}
22
- <picture>
23
- {#each sources as source}
24
- <source srcset={source.url} media={source.media} />
25
- {/each}
26
- <img src={finalSource.url} {alt} />
27
- </picture>
28
- {/if}
29
- {#if $$slots.default}
30
- <div class="caption">
31
- <slot />
32
- </div>
33
- {/if}
34
- </div>
35
-
9
+ </script>
10
+
11
+ <div class="image {align}">
12
+ {#if href}
13
+ <a {href}>
14
+ <picture>
15
+ {#each sources as source}
16
+ <source srcset={source.url} media={source.media} />
17
+ {/each}
18
+ <img src={finalSource.url} {alt} />
19
+ </picture>
20
+ </a>
21
+ {:else}
22
+ <picture>
23
+ {#each sources as source}
24
+ <source srcset={source.url} media={source.media} />
25
+ {/each}
26
+ <img src={finalSource.url} {alt} />
27
+ </picture>
28
+ {/if}
29
+ {#if $$slots.default}
30
+ <div class="caption">
31
+ <slot />
32
+ </div>
33
+ {/if}
34
+ </div>
35
+
36
36
  <style>.image {
37
37
  position: relative;
38
38
  width: 100%;
@@ -73,4 +73,4 @@ $:
73
73
  .image.right picture,
74
74
  .image.right img {
75
75
  object-position: right;
76
- }</style>
76
+ }</style>
@@ -1,14 +1,14 @@
1
1
  <script>export let marginBottom = 0;
2
2
  export let marginTop = 0;
3
3
  export let gap = "1rem";
4
- </script>
5
-
6
- <div style={`margin-top: ${marginTop}; margin-bottom: ${marginBottom}; gap: ${gap}`}>
7
- <slot />
8
- </div>
9
-
4
+ </script>
5
+
6
+ <div style={`margin-top: ${marginTop}; margin-bottom: ${marginBottom}; gap: ${gap}`}>
7
+ <slot />
8
+ </div>
9
+
10
10
  <style>div {
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  width: 100%;
14
- }</style>
14
+ }</style>
@@ -1,7 +1,7 @@
1
- <script>
2
- export let grow = false;
3
- </script>
4
-
5
- <div style={`flex: ${grow ? 1 : 0}`}>
6
- <slot />
7
- </div>
1
+ <script>
2
+ export let grow = false;
3
+ </script>
4
+
5
+ <div style={`flex: ${grow ? 1 : 0}`}>
6
+ <slot />
7
+ </div>
@@ -4,15 +4,15 @@ export let gap = "1rem";
4
4
  export let layout = "stretch";
5
5
  export let size = "full";
6
6
  export let wrap = false;
7
- </script>
8
-
9
- <div
10
- style={`margin-top: ${marginTop}; margin-bottom: ${marginBottom}; gap: ${gap}`}
11
- class="{layout} {size} {wrap ? 'wrap' : 'nowrap'}"
12
- >
13
- <slot />
14
- </div>
15
-
7
+ </script>
8
+
9
+ <div
10
+ style={`margin-top: ${marginTop}; margin-bottom: ${marginBottom}; gap: ${gap}`}
11
+ class="{layout} {size} {wrap ? 'wrap' : 'nowrap'}"
12
+ >
13
+ <slot />
14
+ </div>
15
+
16
16
  <style>div {
17
17
  display: flex;
18
18
  width: 100%;
@@ -38,4 +38,4 @@ div.end {
38
38
  div.start {
39
39
  justify-content: flex-start;
40
40
  align-items: flex-start;
41
- }</style>
41
+ }</style>
@@ -1,17 +1,17 @@
1
- <div>
2
- <slot />
3
- </div>
4
-
5
- <style>
6
- div {
7
- display: grid;
8
- width: 100%;
9
- grid-template-columns: repeat(12, 1fr);
10
- grid-template-rows: auto;
11
- grid-gap: 1rem;
12
- justify-content: center;
13
- align-items: center;
14
- justify-items: center;
15
- align-content: center;
16
- }
17
- </style>
1
+ <div>
2
+ <slot />
3
+ </div>
4
+
5
+ <style>
6
+ div {
7
+ display: grid;
8
+ width: 100%;
9
+ grid-template-columns: repeat(12, 1fr);
10
+ grid-template-rows: auto;
11
+ grid-gap: 1rem;
12
+ justify-content: center;
13
+ align-items: center;
14
+ justify-items: center;
15
+ align-content: center;
16
+ }
17
+ </style>
@@ -17,27 +17,27 @@ const close = () => {
17
17
  dispatch("close");
18
18
  open = false;
19
19
  };
20
- </script>
21
-
22
- {#if open}
23
- <Overlay on:click={close}>
24
- <Dialog {size}>
25
- {#if title}
26
- <DialogHeader>
27
- {title}
28
- </DialogHeader>
29
- <Divider />
30
- {/if}
31
- <DialogCloseButton show={showCloseButton} on:click={close} />
32
- <DialogBody>
33
- <slot />
34
- </DialogBody>
35
- <Divider />
36
- <DialogFooter>
37
- <Button on:click={close} size="full">
38
- {buttonText}
39
- </Button>
40
- </DialogFooter>
41
- </Dialog>
42
- </Overlay>
43
- {/if}
20
+ </script>
21
+
22
+ {#if open}
23
+ <Overlay on:click={close}>
24
+ <Dialog {size}>
25
+ {#if title}
26
+ <DialogHeader>
27
+ {title}
28
+ </DialogHeader>
29
+ <Divider />
30
+ {/if}
31
+ <DialogCloseButton show={showCloseButton} on:click={close} />
32
+ <DialogBody>
33
+ <slot />
34
+ </DialogBody>
35
+ <Divider />
36
+ <DialogFooter>
37
+ <Button on:click={close} size="full">
38
+ {buttonText}
39
+ </Button>
40
+ </DialogFooter>
41
+ </Dialog>
42
+ </Overlay>
43
+ {/if}
@@ -22,30 +22,30 @@ const yes = () => {
22
22
  dispatch("yes");
23
23
  open = false;
24
24
  };
25
- </script>
26
-
27
- {#if open}
28
- <Overlay on:click={no}>
29
- <Dialog {size}>
30
- {#if title}
31
- <DialogHeader>
32
- {title}
33
- </DialogHeader>
34
- <Divider />
35
- {/if}
36
- <DialogCloseButton show={showCloseButton} on:click={no} />
37
- <DialogBody>
38
- <slot />
39
- </DialogBody>
40
- <Divider />
41
- <DialogFooter>
42
- <Button on:click={no} style="secondary" size="full">
43
- {noText}
44
- </Button>
45
- <Button on:click={yes} style="primary" size="full">
46
- {yesText}
47
- </Button>
48
- </DialogFooter>
49
- </Dialog>
50
- </Overlay>
51
- {/if}
25
+ </script>
26
+
27
+ {#if open}
28
+ <Overlay on:click={no}>
29
+ <Dialog {size}>
30
+ {#if title}
31
+ <DialogHeader>
32
+ {title}
33
+ </DialogHeader>
34
+ <Divider />
35
+ {/if}
36
+ <DialogCloseButton show={showCloseButton} on:click={no} />
37
+ <DialogBody>
38
+ <slot />
39
+ </DialogBody>
40
+ <Divider />
41
+ <DialogFooter>
42
+ <Button on:click={no} style="secondary" size="full">
43
+ {noText}
44
+ </Button>
45
+ <Button on:click={yes} style="primary" size="full">
46
+ {yesText}
47
+ </Button>
48
+ </DialogFooter>
49
+ </Dialog>
50
+ </Overlay>
51
+ {/if}
@@ -1,9 +1,9 @@
1
- <div>
2
- <slot />
3
- </div>
4
-
1
+ <div>
2
+ <slot />
3
+ </div>
4
+
5
5
  <style>div {
6
6
  color: #000;
7
7
  margin-top: 1rem;
8
8
  margin-bottom: 1rem;
9
- }</style>
9
+ }</style>
@@ -6,12 +6,12 @@ const onClick = (e) => {
6
6
  e.stopPropagation();
7
7
  dispatch("click");
8
8
  };
9
- </script>
10
-
11
- {#if show}
12
- <button type="button" on:click={onClick}>X</button>
13
- {/if}
14
-
9
+ </script>
10
+
11
+ {#if show}
12
+ <button type="button" on:click={onClick}>X</button>
13
+ {/if}
14
+
15
15
  <style>button {
16
16
  appearance: none;
17
17
  border: none;
@@ -29,4 +29,4 @@ const onClick = (e) => {
29
29
  }
30
30
  button:hover {
31
31
  background-color: #eee;
32
- }</style>
32
+ }</style>
@@ -1,9 +1,9 @@
1
- <script>
2
- import FlexRow from '../layout/flex-row.svelte';
3
- </script>
4
-
5
- <footer>
6
- <FlexRow layout="stretch">
7
- <slot />
8
- </FlexRow>
9
- </footer>
1
+ <script>
2
+ import FlexRow from '../layout/flex-row.svelte';
3
+ </script>
4
+
5
+ <footer>
6
+ <FlexRow layout="stretch">
7
+ <slot />
8
+ </FlexRow>
9
+ </footer>
@@ -1,7 +1,7 @@
1
- <header>
2
- <h1><slot /></h1>
3
- </header>
4
-
1
+ <header>
2
+ <h1><slot /></h1>
3
+ </header>
4
+
5
5
  <style>header {
6
6
  display: flex;
7
7
  justify-content: space-between;
@@ -16,4 +16,4 @@ header h1 {
16
16
  flex-grow: 1;
17
17
  font-size: 1.25rem;
18
18
  line-height: 1.75rem;
19
- }</style>
19
+ }</style>
@@ -2,14 +2,14 @@
2
2
  const captureClick = (e) => {
3
3
  e.stopPropagation();
4
4
  };
5
- </script>
6
-
7
- <!-- svelte-ignore a11y-click-events-have-key-events -->
8
- <!-- svelte-ignore a11y-no-static-element-interactions -->
9
- <div class={size} on:click={captureClick}>
10
- <slot />
11
- </div>
12
-
5
+ </script>
6
+
7
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
8
+ <!-- svelte-ignore a11y-no-static-element-interactions -->
9
+ <div class={size} on:click={captureClick}>
10
+ <slot />
11
+ </div>
12
+
13
13
  <style>div {
14
14
  position: relative;
15
15
  border: solid 0.1rem #000;
@@ -45,4 +45,4 @@ div.full {
45
45
  div {
46
46
  max-width: 100%;
47
47
  }
48
- }</style>
48
+ }</style>