@samuel-charpentier/sform 0.0.6 → 0.0.7

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.
@@ -164,7 +164,7 @@
164
164
  {/if}
165
165
 
166
166
  {#if props.hint}
167
- <div class="sform-hint">
167
+ <div class={classes.hint}>
168
168
  {#if typeof props.hint === 'string'}
169
169
  {props.hint}
170
170
  {:else}
@@ -174,9 +174,9 @@
174
174
  {/if}
175
175
 
176
176
  {#if hasIssues}
177
- <div class={classes.messages}>
177
+ <div class={classes.issues}>
178
178
  {#each issues as issue, i (i)}
179
- <p>{issue.message}</p>
179
+ <p class={classes.issue}>{issue.message}</p>
180
180
  {/each}
181
181
  </div>
182
182
  {/if}
@@ -37,8 +37,12 @@ export interface SfieldClasses {
37
37
  label?: string;
38
38
  /** Input element class */
39
39
  input?: string;
40
- /** Messages/errors container class */
41
- messages?: string;
40
+ /** Hint element class */
41
+ hint?: string;
42
+ /** Issues container class */
43
+ issues?: string;
44
+ /** Individual issue element class */
45
+ issue?: string;
42
46
  }
43
47
  /**
44
48
  * Maps Sfield input types to the value types they handle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samuel-charpentier/sform",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "A Svelte 5 form library for SvelteKit remote forms",
5
5
  "keywords": [
6
6
  "svelte",