sveltacular 0.0.74 → 0.0.76

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 (119) 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 +26 -26
  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 +44 -44
  18. package/dist/forms/money-box/money-box.svelte +54 -54
  19. package/dist/forms/number-box/number-box.svelte +31 -31
  20. package/dist/forms/phone-box/phone-box.svelte +50 -50
  21. package/dist/forms/radio-group/radio-box.svelte +15 -15
  22. package/dist/forms/radio-group/radio-group.svelte +12 -12
  23. package/dist/forms/switch-box/switch-box.svelte +16 -16
  24. package/dist/forms/text-area/text-area.svelte +10 -10
  25. package/dist/forms/text-box/text-box.svelte +34 -34
  26. package/dist/forms/url-box/url-box.svelte +14 -14
  27. package/dist/generic/address/address.svelte +16 -16
  28. package/dist/generic/card/card-container.svelte +7 -7
  29. package/dist/generic/card/card.svelte +10 -10
  30. package/dist/generic/date/date-time.svelte +3 -3
  31. package/dist/generic/divider/divider.svelte +3 -3
  32. package/dist/generic/dot/dot.svelte +5 -5
  33. package/dist/generic/dropdown-item/dropdown-item.svelte +35 -0
  34. package/dist/generic/dropdown-item/dropdown-item.svelte.d.ts +22 -0
  35. package/dist/generic/email/email.svelte +12 -12
  36. package/dist/generic/empty/empty.svelte +14 -14
  37. package/dist/generic/header/header.svelte +17 -17
  38. package/dist/generic/link/link.svelte +13 -13
  39. package/dist/generic/list/list-item.svelte +19 -19
  40. package/dist/generic/list/list.svelte +12 -12
  41. package/dist/generic/menu/menu.svelte +38 -38
  42. package/dist/generic/notice/notice.svelte +25 -25
  43. package/dist/generic/overlay.svelte +8 -8
  44. package/dist/generic/panel/panel.svelte +10 -10
  45. package/dist/generic/phone/phone.svelte +16 -16
  46. package/dist/generic/phone/phone.svelte.d.ts +1 -1
  47. package/dist/generic/pill/pill.svelte +7 -7
  48. package/dist/generic/scorecard/scorecard.svelte +10 -10
  49. package/dist/generic/section/section.svelte +10 -10
  50. package/dist/generic/toaster/toaster.svelte +6 -6
  51. package/dist/icons/angle-right-icon.svelte +11 -11
  52. package/dist/icons/angle-up-icon.svelte +9 -9
  53. package/dist/icons/check-icon.svelte +17 -17
  54. package/dist/icons/envelope-icon.svelte +8 -8
  55. package/dist/icons/folder-open-icon.svelte +12 -12
  56. package/dist/icons/hamburger-icon.svelte +15 -15
  57. package/dist/icons/home-icon.svelte +7 -7
  58. package/dist/icons/link-icon.svelte +15 -15
  59. package/dist/icons/mobile-phone-icon.svelte +5 -5
  60. package/dist/icons/phone-icon.svelte +9 -9
  61. package/dist/icons/svg-icon.svelte +5 -5
  62. package/dist/icons/upload-icon.svelte +9 -9
  63. package/dist/images/icon.svelte +5 -5
  64. package/dist/images/image.svelte +28 -28
  65. package/dist/index.d.ts +13 -0
  66. package/dist/index.js +14 -0
  67. package/dist/layout/flex-col.svelte +10 -10
  68. package/dist/layout/flex-item.svelte +5 -5
  69. package/dist/layout/flex-row.svelte +13 -13
  70. package/dist/layout/grid.svelte +17 -17
  71. package/dist/modals/alert.svelte +24 -24
  72. package/dist/modals/confirm.svelte +27 -27
  73. package/dist/modals/dialog-body.svelte +5 -5
  74. package/dist/modals/dialog-close-button.svelte +7 -7
  75. package/dist/modals/dialog-footer.svelte +9 -9
  76. package/dist/modals/dialog-header.svelte +5 -5
  77. package/dist/modals/dialog-window.svelte +9 -9
  78. package/dist/modals/modal.svelte +12 -12
  79. package/dist/modals/prompt.svelte +29 -29
  80. package/dist/navigation/accordian/accordian.svelte +17 -17
  81. package/dist/navigation/app-bar/app-bar.svelte +7 -7
  82. package/dist/navigation/app-bar/app-branding.svelte +18 -18
  83. package/dist/navigation/app-bar/app-logo.svelte +11 -11
  84. package/dist/navigation/app-bar/app-nav-item.svelte +14 -14
  85. package/dist/navigation/app-bar/app-nav.svelte +12 -12
  86. package/dist/navigation/breadcrumbs/breadcrumbs.svelte +25 -25
  87. package/dist/navigation/dropdown-button/dropdown-button.svelte +117 -0
  88. package/dist/navigation/dropdown-button/dropdown-button.svelte.d.ts +21 -0
  89. package/dist/navigation/pagination/pagination.svelte +27 -27
  90. package/dist/navigation/side-bar/side-bar.svelte +10 -10
  91. package/dist/navigation/tabs/tab-group.svelte +20 -20
  92. package/dist/navigation/tabs/tab.svelte +13 -13
  93. package/dist/navigation/wizard/wizard-step.svelte +12 -12
  94. package/dist/navigation/wizard/wizard.svelte +27 -27
  95. package/dist/placeholders/loading.svelte +9 -9
  96. package/dist/placeholders/progress.svelte +9 -9
  97. package/dist/placeholders/skeleton-input.svelte +43 -43
  98. package/dist/placeholders/skeleton-text.svelte +5 -5
  99. package/dist/tables/data-grid.svelte +101 -85
  100. package/dist/tables/data-grid.svelte.d.ts +7 -3
  101. package/dist/tables/table-body.svelte +3 -3
  102. package/dist/tables/table-caption.svelte +7 -7
  103. package/dist/tables/table-cell.svelte +7 -7
  104. package/dist/tables/table-footer-cell.svelte +21 -21
  105. package/dist/tables/table-footer-row.svelte +3 -3
  106. package/dist/tables/table-footer.svelte +13 -13
  107. package/dist/tables/table-header-cell.svelte +7 -7
  108. package/dist/tables/table-header-row.svelte +4 -4
  109. package/dist/tables/table-header.svelte +14 -14
  110. package/dist/tables/table-row.svelte +16 -16
  111. package/dist/tables/table.svelte +11 -11
  112. package/dist/timeline/timeline-item.svelte +26 -26
  113. package/dist/timeline/timeline.svelte +5 -5
  114. package/dist/typography/code-block.svelte +7 -7
  115. package/dist/typography/headline.svelte +19 -19
  116. package/dist/typography/paragraph.svelte +13 -13
  117. package/dist/typography/subtitle.svelte +7 -7
  118. package/dist/typography/text.svelte +11 -11
  119. package/package.json +101 -101
@@ -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>
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  value: string;
5
- type?: "home" | "mobile" | "work" | "sms" | "fax" | "other" | undefined;
5
+ type?: "sms" | "mobile" | "home" | "work" | "fax" | "other" | undefined;
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -3,12 +3,12 @@ export let style = "standard";
3
3
  export let shape = "rounded";
4
4
  export let fill = "solid";
5
5
  export let compact = false;
6
- </script>
7
-
8
- <div class="pill {size} {style} {shape} {fill}" class:compact>
9
- <span><slot /></span>
10
- </div>
11
-
6
+ </script>
7
+
8
+ <div class="pill {size} {style} {shape} {fill}" class:compact>
9
+ <span><slot /></span>
10
+ </div>
11
+
12
12
  <style>.pill {
13
13
  display: inline-block;
14
14
  padding: 0.25rem 0.5rem;
@@ -90,4 +90,4 @@ export let compact = false;
90
90
  background-color: transparent;
91
91
  border: 1px solid #570000;
92
92
  color: #570000;
93
- }</style>
93
+ }</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>
@@ -6,15 +6,15 @@ export let size = "full";
6
6
  export let hidden = false;
7
7
  export let align = "left";
8
8
  setContext("section", { level, title });
9
- </script>
10
-
11
- <section class="level-{level} {size} {align}" class:hidden>
12
- {#if title}
13
- <Header {level} />
14
- {/if}
15
- <slot />
16
- </section>
17
-
9
+ </script>
10
+
11
+ <section class="level-{level} {size} {align}" class:hidden>
12
+ {#if title}
13
+ <Header {level} />
14
+ {/if}
15
+ <slot />
16
+ </section>
17
+
18
18
  <style>section {
19
19
  padding: 0;
20
20
  margin-top: 1rem;
@@ -44,4 +44,4 @@ section.xl {
44
44
  }
45
45
  section.full {
46
46
  width: 100%;
47
- }</style>
47
+ }</style>
@@ -1,9 +1,9 @@
1
- <script></script>
2
-
3
- <section>
4
- <slot />
5
- </section>
6
-
1
+ <script></script>
2
+
3
+ <section>
4
+ <slot />
5
+ </section>
6
+
7
7
  <style>section {
8
8
  display: flex;
9
9
  flex-direction: column-reverse;
@@ -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>
@@ -1,17 +1,17 @@
1
-
2
-
3
- <svg
4
- class="w-6 h-6 text-gray-800 dark:text-white"
5
- aria-hidden="true"
6
- xmlns="http://www.w3.org/2000/svg"
7
- fill="none"
8
- viewBox="0 0 16 12"
9
- >
10
- <path
11
- stroke="currentColor"
12
- stroke-linecap="round"
13
- stroke-linejoin="round"
14
- stroke-width="2"
15
- d="M1 5.917 5.724 10.5 15 1.5"
16
- />
17
- </svg>
1
+
2
+
3
+ <svg
4
+ class="w-6 h-6 text-gray-800 dark:text-white"
5
+ aria-hidden="true"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ fill="none"
8
+ viewBox="0 0 16 12"
9
+ >
10
+ <path
11
+ stroke="currentColor"
12
+ stroke-linecap="round"
13
+ stroke-linejoin="round"
14
+ stroke-width="2"
15
+ d="M1 5.917 5.724 10.5 15 1.5"
16
+ />
17
+ </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>
package/dist/index.d.ts CHANGED
@@ -69,6 +69,7 @@ export { default as AppBranding } from './navigation/app-bar/app-branding.svelte
69
69
  export { default as Wizard } from './navigation/wizard/wizard.svelte';
70
70
  export { default as WizardStep } from './navigation/wizard/wizard-step.svelte';
71
71
  export { default as Pagination } from './navigation/pagination/pagination.svelte';
72
+ export { default as DropdownItem } from './generic/dropdown-item/dropdown-item.svelte';
72
73
  export { default as DataGrid } from './tables/data-grid.svelte';
73
74
  export { default as Table } from './tables/table.svelte';
74
75
  export { default as TableBody } from './tables/table-body.svelte';
@@ -108,3 +109,15 @@ export * from './helpers/transform.js';
108
109
  export * from './helpers/ucfirst.js';
109
110
  export * from './helpers/unique-id.js';
110
111
  export * from './data/index.js';
112
+ export { default as AngleRightIcon } from './icons/angle-right-icon.svelte';
113
+ export { default as AngleUpIcon } from './icons/angle-up-icon.svelte';
114
+ export { default as CheckIcon } from './icons/check-icon.svelte';
115
+ export { default as EnvelopIcon } from './icons/envelope-icon.svelte';
116
+ export { default as FolderOpenIcon } from './icons/folder-open-icon.svelte';
117
+ export { default as HambugerIcon } from './icons/hamburger-icon.svelte';
118
+ export { default as HomeIcon } from './icons/home-icon.svelte';
119
+ export { default as LinkIcon } from './icons/link-icon.svelte';
120
+ export { default as MobilePhoneIcon } from './icons/mobile-phone-icon.svelte';
121
+ export { default as PhoneIcon } from './icons/phone-icon.svelte';
122
+ export { default as SvgIcon } from './icons/svg-icon.svelte';
123
+ export { default as UploadIcon } from './icons/upload-icon.svelte';
package/dist/index.js CHANGED
@@ -74,6 +74,7 @@ export { default as AppBranding } from './navigation/app-bar/app-branding.svelte
74
74
  export { default as Wizard } from './navigation/wizard/wizard.svelte';
75
75
  export { default as WizardStep } from './navigation/wizard/wizard-step.svelte';
76
76
  export { default as Pagination } from './navigation/pagination/pagination.svelte';
77
+ export { default as DropdownItem } from './generic/dropdown-item/dropdown-item.svelte';
77
78
  // Tables
78
79
  export { default as DataGrid } from './tables/data-grid.svelte';
79
80
  export { default as Table } from './tables/table.svelte';
@@ -120,3 +121,16 @@ export * from './helpers/ucfirst.js';
120
121
  export * from './helpers/unique-id.js';
121
122
  // Data
122
123
  export * from './data/index.js';
124
+ // Icons
125
+ export { default as AngleRightIcon } from './icons/angle-right-icon.svelte';
126
+ export { default as AngleUpIcon } from './icons/angle-up-icon.svelte';
127
+ export { default as CheckIcon } from './icons/check-icon.svelte';
128
+ export { default as EnvelopIcon } from './icons/envelope-icon.svelte';
129
+ export { default as FolderOpenIcon } from './icons/folder-open-icon.svelte';
130
+ export { default as HambugerIcon } from './icons/hamburger-icon.svelte';
131
+ export { default as HomeIcon } from './icons/home-icon.svelte';
132
+ export { default as LinkIcon } from './icons/link-icon.svelte';
133
+ export { default as MobilePhoneIcon } from './icons/mobile-phone-icon.svelte';
134
+ export { default as PhoneIcon } from './icons/phone-icon.svelte';
135
+ export { default as SvgIcon } from './icons/svg-icon.svelte';
136
+ export { default as UploadIcon } from './icons/upload-icon.svelte';
@@ -16,17 +16,17 @@ $:
16
16
  _alignItems = ["start", "end"].includes(alignItems) ? `flex-${alignItems}` : alignItems;
17
17
  $:
18
18
  _gap = typeof gap === "number" ? `${gap}px` : gap;
19
- </script>
20
-
21
- <div style={`
22
- margin-top: ${_marginTop}; margin-bottom: ${_marginBottom};
23
- gap: ${_gap}; jusify-content: ${_justifyContent}; align-items: ${_alignItems}; align-content: ${_alignContent}
24
- `}>
25
- <slot />
26
- </div>
27
-
19
+ </script>
20
+
21
+ <div style={`
22
+ margin-top: ${_marginTop}; margin-bottom: ${_marginBottom};
23
+ gap: ${_gap}; jusify-content: ${_justifyContent}; align-items: ${_alignItems}; align-content: ${_alignContent}
24
+ `}>
25
+ <slot />
26
+ </div>
27
+
28
28
  <style>div {
29
29
  display: flex;
30
30
  flex-direction: column;
31
31
  width: 100%;
32
- }</style>
32
+ }</style>
@@ -1,7 +1,7 @@
1
1
  <script>export let grow = false;
2
2
  export let align = "auto";
3
- </script>
4
-
5
- <div style={`flex: ${grow ? 1 : 0}; align-self: ${align}`}>
6
- <slot />
7
- </div>
3
+ </script>
4
+
5
+ <div style={`flex: ${grow ? 1 : 0}; align-self: ${align}`}>
6
+ <slot />
7
+ </div>
@@ -18,18 +18,18 @@ $:
18
18
  _alignItems = ["start", "end"].includes(alignItems) ? `flex-${alignItems}` : alignItems;
19
19
  $:
20
20
  _gap = typeof gap === "number" ? `${gap}px` : gap;
21
- </script>
22
-
23
- <div
24
- style={`
25
- margin-top: ${_marginTop}; margin-bottom: ${_marginBottom}; gap: ${_gap};
26
- justify-content: ${_justifyContent}; align-items: ${_alignItems}; align-content: ${_alignContent};
27
- `}
28
- class="size-{size} {wrap ? 'wrap' : 'nowrap'}"
29
- >
30
- <slot />
31
- </div>
32
-
21
+ </script>
22
+
23
+ <div
24
+ style={`
25
+ margin-top: ${_marginTop}; margin-bottom: ${_marginBottom}; gap: ${_gap};
26
+ justify-content: ${_justifyContent}; align-items: ${_alignItems}; align-content: ${_alignContent};
27
+ `}
28
+ class="size-{size} {wrap ? 'wrap' : 'nowrap'}"
29
+ >
30
+ <slot />
31
+ </div>
32
+
33
33
  <style>div {
34
34
  display: flex;
35
35
  width: 100%;
@@ -41,4 +41,4 @@ div.size-auto {
41
41
  }
42
42
  div.wrap {
43
43
  flex-wrap: wrap;
44
- }</style>
44
+ }</style>