@dosgato/dialog 1.1.11 → 1.1.13

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.
@@ -121,9 +121,6 @@ $: describedby = [title ? labelid : undefined, descid].filter(isNotBlank).join('
121
121
  @media (max-width: 2000px) { section.xl button.expand { display: none; } }
122
122
  @media (max-width: 800px) { section.xl { width: 97vw; } }
123
123
 
124
- @media (max-width: 800px) { .dialog-content { padding: 1.2em; } }
125
- @media (max-width: 430px) { .dialog-content { padding: 0.6em; } }
126
-
127
124
  header {
128
125
  display: flex;
129
126
  align-items: center;
@@ -151,6 +148,8 @@ $: describedby = [title ? labelid : undefined, descid].filter(isNotBlank).join('
151
148
  max-height: calc(100vh - 7.5em);
152
149
  max-height: calc(100dvh - 7.5em);
153
150
  }
151
+ @media (max-width: 800px) { .dialog-content { padding: 1.2em; } }
152
+ @media (max-width: 430px) { .dialog-content { padding: 0.6em; } }
154
153
 
155
154
  section.tiny .dialog-content, section.small .dialog-content {
156
155
  padding: 0 1em;
@@ -37,8 +37,8 @@ onMount(reactToOptions);
37
37
  <div class="container-query-wrapper">
38
38
  <div class="color-container {className}" role="radiogroup" aria-labelledby={groupid} class:invalid class:valid>
39
39
  {#if addAllOption}
40
- <label for={`${path}.alt`} class="colorsel alternating">
41
- <Radio id={`${path}.alt`} name={path} value="alternating" selected={value === 'alternating'} {onChange} {onBlur} {helptextid}/>
40
+ <label for={`${groupid}.alt`} class="colorsel alternating">
41
+ <Radio id={`${groupid}.alt`} name={groupid} value="alternating" selected={value === 'alternating'} {onChange} {onBlur} {helptextid}/>
42
42
  <span class="alternating-bg">
43
43
  {#each options as option (option.value)}
44
44
  <span style:background-color={option.color}></span>
@@ -48,9 +48,9 @@ onMount(reactToOptions);
48
48
  </label>
49
49
  {/if}
50
50
  {#each options as option, idx (option.value) }
51
- {@const radioid = `${path}.${idx}`}
51
+ {@const radioid = `${groupid}.${idx}`}
52
52
  <label for={radioid} class="colorsel">
53
- <Radio id={radioid} name={path} value={option.value} selected={value === option.value} {onChange} {onBlur} {helptextid}/>
53
+ <Radio id={radioid} name={groupid} value={option.value} selected={value === option.value} {onChange} {onBlur} {helptextid}/>
54
54
  <span class="picker-text" style:background-color={option.color} class:dark={shouldUseWhiteText(option.color)}>{option.name || option.value}</span>
55
55
  </label>
56
56
  {/each}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dosgato/dialog",
3
3
  "description": "A component library for building forms that edit a JSON document.",
4
- "version": "1.1.11",
4
+ "version": "1.1.13",
5
5
  "scripts": {
6
6
  "prepublishOnly": "svelte-package",
7
7
  "dev": "vite dev --force",