y200subcontrols 0.0.3737 → 0.0.3739
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.
|
@@ -17,15 +17,20 @@ export let title = "";
|
|
|
17
17
|
{type}
|
|
18
18
|
class=" rounded hover:brightness-95 focus:outline-none focus:ring active:ring
|
|
19
19
|
space-x-1
|
|
20
|
-
{buttonSize === 'sm' ? 'px-
|
|
21
|
-
{buttonSize === 'md' ? 'px-2 py-1.5' : ''}
|
|
22
|
-
{buttonSize === 'lg' ? 'font-bold px-
|
|
20
|
+
{buttonSize === 'sm' ? 'px-2 py-1 text-sm' : ''}
|
|
21
|
+
{buttonSize === 'md' ? 'px-2.5 py-1.5' : ''}
|
|
22
|
+
{buttonSize === 'lg' ? 'font-bold px-3 py-3' : ''}
|
|
23
23
|
{buttonStyle === 'blue' ? 'bg-blue-500 text-blue-50 ring-blue-500/20 ' : ''}
|
|
24
24
|
{buttonStyle === 'red' ? 'bg-red-500 text-red-50 ring-red-500/20' : ''}
|
|
25
25
|
{buttonStyle === 'dark' ? 'bg-slate-950 text-slate-50 ring-slate-800/20 ' : ''}
|
|
26
26
|
{buttonStyle === 'indigo' ? 'bg-indigo-500 text-indigo-50 ring-indigo-500/20' : ''}
|
|
27
27
|
{buttonStyle === 'teal' ? 'bg-teal-600 text-teal-50 ring-teal-600/20' : ''}
|
|
28
28
|
{buttonStyle === 'purple' ? 'bg-purple-600 text-purple-50 ring-purple-600/20' : ''}
|
|
29
|
+
{buttonStyle === 'orange' ? 'bg-orange-600 text-orange-50 ring-orange-600/20' : ''}
|
|
30
|
+
{buttonStyle === 'amber' ? 'bg-amber-600 text-amber-50 ring-amber-600/20' : ''}
|
|
31
|
+
{buttonStyle === 'cyan' ? 'bg-cyan-600 text-cyan-50 ring-cyan-600/20' : ''}
|
|
32
|
+
{buttonStyle === 'sky' ? 'bg-sky-600 text-sky-50 ring-sky-600/20' : ''}
|
|
33
|
+
|
|
29
34
|
|
|
30
35
|
data-[loading='false']:disabled:bg-slate-100 data-[loading='false']:disabled:text-slate-300 disabled:ring-0
|
|
31
36
|
data-[loading='false']:disabled:brightness-100
|
|
@@ -12,6 +12,7 @@ export let validationText = void 0;
|
|
|
12
12
|
export let customCss = "";
|
|
13
13
|
export let customValidation = void 0;
|
|
14
14
|
export let disabled = false;
|
|
15
|
+
export let visible = true;
|
|
15
16
|
let input;
|
|
16
17
|
let isValid = true;
|
|
17
18
|
let inputType = "password";
|
|
@@ -44,9 +45,10 @@ onMount(() => {
|
|
|
44
45
|
{name}
|
|
45
46
|
{required}
|
|
46
47
|
{placeholder}
|
|
48
|
+
{visible}
|
|
47
49
|
on:validated={handleValidated}
|
|
48
50
|
>
|
|
49
|
-
<div class="relative group">
|
|
51
|
+
<div class="relative group {visible ? '' : 'hidden'}">
|
|
50
52
|
<input
|
|
51
53
|
type="password"
|
|
52
54
|
bind:this={input}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type Size = 'sm' | 'md' | 'lg';
|
|
2
|
-
export type ColorThemes = 'red' | 'dark' | 'indigo' | 'teal' | 'blue' | 'purple' | 'slate';
|
|
2
|
+
export type ColorThemes = 'red' | 'dark' | 'indigo' | 'teal' | 'blue' | 'purple' | 'slate' | 'orange' | 'amber' | 'cyan' | 'sky';
|
|
3
3
|
export type PopupMenuItem = {
|
|
4
4
|
id: number;
|
|
5
5
|
content: string;
|