sveltacular 0.0.30 → 0.0.31

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.
@@ -15,11 +15,12 @@ export let readonly = false;
15
15
  {#if $$slots.default}
16
16
  <FormLabel {id} {required}><slot /></FormLabel>
17
17
  {/if}
18
- <textarea {id} {placeholder} {rows} bind:value {required} {disabled} {readonly} />
18
+ <textarea wrap="soft" {id} {placeholder} {rows} bind:value {required} {disabled} {readonly} />
19
19
  </FormField>
20
20
 
21
21
  <style>textarea {
22
22
  width: 100%;
23
+ height: auto;
23
24
  padding: 0.5rem 1rem;
24
25
  border-radius: 0.25rem;
25
26
  border: 1px solid var(--form-input-border, black);
@@ -30,7 +31,8 @@ export let readonly = false;
30
31
  line-height: 1.25rem;
31
32
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out, fill 0.2s ease-in-out, stroke 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
32
33
  user-select: none;
33
- white-space: nowrap;
34
+ resize: vertical;
35
+ white-space: normal;
34
36
  }
35
37
  textarea::placeholder {
36
38
  color: var(--form-input-placeholder, #a0aec0);
@@ -71,7 +71,6 @@ $:
71
71
  z-index: 999;
72
72
  margin: 0;
73
73
  padding: 0;
74
- box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
75
74
  max-width: 100%;
76
75
  max-height: 15rem;
77
76
  overflow-y: auto;
@@ -2,9 +2,9 @@
2
2
  export let dateType = "datetime";
3
3
  export let dateStyle = "medium";
4
4
  export let iconSize = "md";
5
- export let date;
6
- export let title;
7
- export let summary;
5
+ export let date = void 0;
6
+ export let title = void 0;
7
+ export let summary = void 0;
8
8
  </script>
9
9
 
10
10
  <li class="icon-{iconSize}">
@@ -12,15 +12,21 @@ export let summary;
12
12
  <slot name="icon" />
13
13
  </div>
14
14
  <div class="content">
15
- <div class="date">
16
- <DateTime value={date} type={dateType} style={dateStyle} />
17
- </div>
18
- <div class="title">
19
- {title}
20
- </div>
21
- <div class="summary">
22
- {summary}
23
- </div>
15
+ {#if date}
16
+ <div class="date">
17
+ <DateTime value={date} type={dateType} style={dateStyle} />
18
+ </div>
19
+ {/if}
20
+ {#if title}
21
+ <div class="title">
22
+ {title}
23
+ </div>
24
+ {/if}
25
+ {#if summary}
26
+ <div class="summary">
27
+ {summary}
28
+ </div>
29
+ {/if}
24
30
  </div>
25
31
  </li>
26
32
 
@@ -29,7 +35,7 @@ export let summary;
29
35
  position: relative;
30
36
  }
31
37
  li .content {
32
- padding-left: 1rem;
38
+ padding-left: 1.25rem;
33
39
  padding-top: 0.25rem;
34
40
  }
35
41
  li .content .date {
@@ -67,6 +73,7 @@ li .timeline-icon {
67
73
  left: -0.75rem;
68
74
  }
69
75
  li.icon-sm .content {
76
+ padding-left: 1rem;
70
77
  padding-top: 0;
71
78
  }
72
79
  li.icon-sm .timeline-icon {
@@ -5,9 +5,9 @@ declare const __propDef: {
5
5
  dateType?: DateType | undefined;
6
6
  dateStyle?: DateTimeStyle | undefined;
7
7
  iconSize?: "sm" | "md" | "lg" | undefined;
8
- date: string | number | Date;
9
- title: string;
10
- summary: string;
8
+ date?: string | number | Date | undefined;
9
+ title?: string | undefined;
10
+ summary?: string | undefined;
11
11
  };
12
12
  events: {
13
13
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltacular",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "scripts": {
5
5
  "watch": "npm run dev -- --open",
6
6
  "dev": "vite dev",