@placeholderco/placeholder-ui 2.6.2 → 2.6.4
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/form/Number.svelte
CHANGED
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
errorText?: string;
|
|
46
46
|
/** Position of the tooltip */
|
|
47
47
|
tooltipLocation?: 'top' | 'bottom' | 'left' | 'right';
|
|
48
|
+
/** Rich tooltip content using a Svelte snippet */
|
|
49
|
+
tooltipContent?: Snippet;
|
|
50
|
+
/** Tooltip text on hover */
|
|
51
|
+
tooltipText?: string;
|
|
48
52
|
/** Minimum allowed value */
|
|
49
53
|
min?: number;
|
|
50
54
|
/** Maximum allowed value */
|
|
@@ -93,6 +97,8 @@
|
|
|
93
97
|
showError = false,
|
|
94
98
|
errorText = '',
|
|
95
99
|
tooltipLocation = 'top',
|
|
100
|
+
tooltipContent = undefined,
|
|
101
|
+
tooltipText = undefined,
|
|
96
102
|
min = undefined,
|
|
97
103
|
max = undefined,
|
|
98
104
|
step = undefined,
|
|
@@ -152,7 +158,15 @@
|
|
|
152
158
|
</script>
|
|
153
159
|
|
|
154
160
|
<div class="number-container {containerClass}">
|
|
155
|
-
<FormGroup
|
|
161
|
+
<FormGroup
|
|
162
|
+
{label}
|
|
163
|
+
{required}
|
|
164
|
+
{id}
|
|
165
|
+
class={groupClass}
|
|
166
|
+
{tooltipLocation}
|
|
167
|
+
{tooltipContent}
|
|
168
|
+
{tooltipText}
|
|
169
|
+
>
|
|
156
170
|
<div class="number-input">
|
|
157
171
|
<!-- svelte-ignore a11y_autofocus -->
|
|
158
172
|
<input
|
|
@@ -38,6 +38,10 @@ export interface NumberProps {
|
|
|
38
38
|
errorText?: string;
|
|
39
39
|
/** Position of the tooltip */
|
|
40
40
|
tooltipLocation?: 'top' | 'bottom' | 'left' | 'right';
|
|
41
|
+
/** Rich tooltip content using a Svelte snippet */
|
|
42
|
+
tooltipContent?: Snippet;
|
|
43
|
+
/** Tooltip text on hover */
|
|
44
|
+
tooltipText?: string;
|
|
41
45
|
/** Minimum allowed value */
|
|
42
46
|
min?: number;
|
|
43
47
|
/** Maximum allowed value */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@placeholderco/placeholder-ui",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"description": "A modern, customizable Svelte 5 UI component library with comprehensive theming support. Re-brand it with a single config object.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Placeholderco",
|