@svgrid/grid 2.5.0 → 2.6.1
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.
- package/dist/SvCountryInput.svelte +4 -1
- package/dist/SvSlider.svelte +4 -1
- package/dist/SvTagsInput.svelte +4 -1
- package/dist/cdn/{GridMenus-CeXL5IW4.js → GridMenus-CaaYtSpU.js} +1 -1
- package/dist/cdn/{GridMenus-BpVcKyUr.js → GridMenus-DfmxE2Tb.js} +1 -1
- package/dist/cdn/{src-DmEQFW5_.js → src-BIIhU1uh.js} +122 -119
- package/dist/cdn/{src-DbeN1ReZ.js → src-DisUdSk9.js} +4077 -4074
- package/dist/cdn/svgrid.js +1 -1
- package/dist/cdn/svgrid.svelte-external.js +1 -1
- package/dist/editor-contract.d.ts +6 -0
- package/package.json +1 -1
- package/src/SvCountryInput.svelte +4 -1
- package/src/SvSlider.svelte +4 -1
- package/src/SvTagsInput.svelte +4 -1
- package/src/editor-contract.ts +6 -0
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
name,
|
|
38
38
|
size = 'md',
|
|
39
39
|
ariaLabel,
|
|
40
|
+
block = false,
|
|
40
41
|
invalid = false,
|
|
41
42
|
required = false,
|
|
42
43
|
error,
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
</script>
|
|
94
95
|
|
|
95
96
|
<SvField id={uid} {label} {hint} {error} {required} {dir}>
|
|
96
|
-
<button bind:this={triggerEl} class="sv-country sv-country--{size}" class:is-open={ci.open} class:is-disabled={disabled} class:is-invalid={invalid} {...ci.triggerProps()}>
|
|
97
|
+
<button bind:this={triggerEl} class="sv-country sv-country--{size}" class:is-block={block} class:is-open={ci.open} class:is-disabled={disabled} class:is-invalid={invalid} {...ci.triggerProps()}>
|
|
97
98
|
{#if selected}
|
|
98
99
|
<span class="sv-country__flag" aria-hidden="true">{flagEmoji(selected.code)}</span>
|
|
99
100
|
<span class="sv-country__name">{selected.name}</span>
|
|
@@ -157,4 +158,6 @@
|
|
|
157
158
|
:global(.sv-country__opt) { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
|
|
158
159
|
:global(.sv-country__opt.is-active) { background: var(--sg-row-hover-bg, #f1f5f9); }
|
|
159
160
|
:global(.sv-country__opt.is-selected) { color: var(--sg-accent, #2563eb); font-weight: 600; }
|
|
161
|
+
/* Fill the container - see `block` in SvEditorProps. */
|
|
162
|
+
.sv-country.is-block { width: 100%; max-width: 100%; }
|
|
160
163
|
</style>
|
package/dist/SvSlider.svelte
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
orientation = 'horizontal',
|
|
45
45
|
name,
|
|
46
46
|
ariaLabel,
|
|
47
|
+
block = false,
|
|
47
48
|
invalid = false,
|
|
48
49
|
required = false,
|
|
49
50
|
error,
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
|
|
110
111
|
<SvField id={uid} {label} {hint} {error} {required} {dir}>
|
|
111
112
|
<div
|
|
112
|
-
class="sv-slider sv-slider--{orientation} sv-slider--{size}"
|
|
113
|
+
class="sv-slider sv-slider--{orientation} sv-slider--{size}" class:is-block={block}
|
|
113
114
|
class:is-disabled={disabled}
|
|
114
115
|
class:is-readonly={readonly}
|
|
115
116
|
dir={resolvedDir}
|
|
@@ -197,4 +198,6 @@
|
|
|
197
198
|
.sv-slider__tick { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--sg-muted, #94a3b8); }
|
|
198
199
|
.sv-slider--horizontal .sv-slider__tick { inset-inline-start: var(--p); top: 50%; transform: translate(-50%, -50%); }
|
|
199
200
|
.sv-slider--vertical .sv-slider__tick { bottom: var(--p); left: 50%; transform: translate(-50%, 50%); }
|
|
201
|
+
/* Fill the container - see `block` in SvEditorProps. */
|
|
202
|
+
.sv-slider--horizontal.is-block { width: 100%; max-width: 100%; }
|
|
200
203
|
</style>
|
package/dist/SvTagsInput.svelte
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
size = 'md',
|
|
37
37
|
name,
|
|
38
38
|
ariaLabel,
|
|
39
|
+
block = false,
|
|
39
40
|
invalid = false,
|
|
40
41
|
required = false,
|
|
41
42
|
error,
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
</script>
|
|
70
71
|
|
|
71
72
|
<SvField id={uid} {label} {hint} {error} {required} {dir}>
|
|
72
|
-
<div class="sv-tags sv-tags--{size}" class:is-disabled={disabled} class:is-invalid={invalid} {...ti.rootProps()}>
|
|
73
|
+
<div class="sv-tags sv-tags--{size}" class:is-block={block} class:is-disabled={disabled} class:is-invalid={invalid} {...ti.rootProps()}>
|
|
73
74
|
{#each value as tag, i (tag + i)}
|
|
74
75
|
<span class="sv-tags__chip" {...ti.tagProps(i)}>
|
|
75
76
|
<span class="sv-tags__label">{tag}</span>
|
|
@@ -109,4 +110,6 @@
|
|
|
109
110
|
.sv-tags__x { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; opacity: 0.7; }
|
|
110
111
|
.sv-tags__x:hover { opacity: 1; }
|
|
111
112
|
.sv-tags__input { flex: 1; min-width: 80px; border: 0; background: none; outline: none; color: inherit; font: inherit; font-size: var(--_fs); height: 24px; }
|
|
113
|
+
/* Fill the container - see `block` in SvEditorProps. */
|
|
114
|
+
.sv-tags.is-block { width: 100%; max-width: 100%; }
|
|
112
115
|
</style>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gn as e, io as t, no as n, ro as r } from "./src-
|
|
1
|
+
import { Gn as e, io as t, no as n, ro as r } from "./src-DisUdSk9.js";
|
|
2
2
|
import { E as i, F as a, G as o, H as s, I as c, L as l, N as u, Q as d, U as f, V as p, X as m, Y as h, Z as g, _, d as v, et as y, f as b, ft as x, g as S, h as ee, j as C, k as w, lt as T, m as E, mt as D, nt as O, o as k, pt as A, st as j, t as te, tt as M, u as N, ut as P, v as F } from "./disclose-version-Dr7rEVv-.js";
|
|
3
3
|
import { l as ne } from "./SvDateTimePicker-h9kPyszT.js";
|
|
4
4
|
//#region src/GridMenus.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gn as e, io as t, no as n, ro as r } from "./src-
|
|
1
|
+
import { Gn as e, io as t, no as n, ro as r } from "./src-BIIhU1uh.js";
|
|
2
2
|
import { l as i } from "./SvDateTimePicker-DSUhIta8.js";
|
|
3
3
|
import * as a from "svelte/internal/client";
|
|
4
4
|
import "svelte/internal/disclose-version";
|