y200subcontrols 0.0.33 → 0.0.322
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.
|
@@ -23,6 +23,7 @@ export let isLoading = false;
|
|
|
23
23
|
{buttonStyle === 'dark' ? 'bg-slate-950 text-slate-50 ring-slate-800/20 ' : ''}
|
|
24
24
|
{buttonStyle === 'indigo' ? 'bg-indigo-500 text-indigo-50 ring-indigo-500/20' : ''}
|
|
25
25
|
{buttonStyle === 'teal' ? 'bg-teal-600 text-teal-50 ring-teal-600/20' : ''}
|
|
26
|
+
{buttonStyle === 'purple' ? 'bg-purple-600 text-purple-50 ring-purple-600/20' : ''}
|
|
26
27
|
|
|
27
28
|
data-[loading='false']:disabled:bg-slate-100 data-[loading='false']:disabled:text-slate-300 disabled:ring-0
|
|
28
29
|
data-[loading='false']:disabled:brightness-100
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { Size } from './types.js';
|
|
2
|
+
import type { ColorThemes, Size } from './types.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
type?: "submit" | "reset" | "button";
|
|
6
|
-
buttonStyle?:
|
|
6
|
+
buttonStyle?: ColorThemes;
|
|
7
7
|
buttonSize?: Size;
|
|
8
8
|
id?: string | undefined;
|
|
9
9
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>export let href;
|
|
2
|
-
export let linkStyle = "
|
|
2
|
+
export let linkStyle = "teal";
|
|
3
3
|
export let disabled = false;
|
|
4
4
|
export let id = void 0;
|
|
5
5
|
export let isButton = false;
|
|
@@ -16,10 +16,12 @@ $: {
|
|
|
16
16
|
aria-disabled={disabled}
|
|
17
17
|
class="px-1 py-1 {customCss} text-slate-600 dark:text-slate-200
|
|
18
18
|
{id}
|
|
19
|
-
{linkStyle === '
|
|
20
|
-
{linkStyle === '
|
|
21
|
-
{linkStyle === '
|
|
22
|
-
{linkStyle === '
|
|
19
|
+
{linkStyle === 'blue' ? 'hover:text-blue-500 active:text-blue-600' : ''}
|
|
20
|
+
{linkStyle === 'red' ? 'hover:text-red-500 active:text-red-600' : ''}
|
|
21
|
+
{linkStyle === 'teal' ? 'hover:text-teal-500 active:text-teal-600' : ''}
|
|
22
|
+
{linkStyle === 'indigo' ? 'hover:text-indigo-500 active:text-indigo-600' : ''}
|
|
23
|
+
{linkStyle === 'purple' ? 'hover:text-purple-500 active:text-purple-600' : ''}
|
|
24
|
+
|
|
23
25
|
aria-disabled:text-slate-300 dark:aria-disabled:text-slate-500
|
|
24
26
|
space-x-1 transition-colors ease-in-out duration-150"
|
|
25
27
|
>
|
|
@@ -32,14 +34,14 @@ $: {
|
|
|
32
34
|
aria-disabled={disabled}
|
|
33
35
|
class="px-1 py-1 {customCss} text-center
|
|
34
36
|
px-2 py-1.5 rounded-lg focus:outline-none focus:ring active:ring outline-none
|
|
35
|
-
{linkStyle === '
|
|
36
|
-
{linkStyle === '
|
|
37
|
+
{linkStyle === 'blue' ? 'bg-blue-500 text-blue-50 ring-blue-500/20 hover:bg-blue-600' : ''}
|
|
38
|
+
{linkStyle === 'slate'
|
|
37
39
|
? 'bg-slate-400 text-slate-50 ring-slate-500/20 hover:bg-slate-600 '
|
|
38
40
|
: ''}
|
|
39
|
-
{linkStyle === '
|
|
40
|
-
{linkStyle === '
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
{linkStyle === 'red' ? 'bg-red-500 text-red-50 ring-red-500/20 hover:bg-red-600' : ''}
|
|
42
|
+
{linkStyle === 'teal' ? 'bg-teal-950 text-teal-50 ring-teal-800/20 hover:bg-teal-600 ' : ''}
|
|
43
|
+
{linkStyle === 'indigo' ? 'bg-indigo-950 text-indigo-50 ring-indigo-800/20 hover:bg-indigo-600 ' : ''}
|
|
44
|
+
{linkStyle === 'purple' ? 'bg-purple-950 text-purple-50 ring-purple-800/20 hover:bg-purple-600 ' : ''}
|
|
43
45
|
aria-disabled:cursor-default aria-disabled:text-slate-300 aria-disabled:bg-slate-100
|
|
44
46
|
space-x-1 transition-colors ease-in-out duration-150"
|
|
45
47
|
>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { ColorThemes } from './types.js';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
href: string;
|
|
5
|
-
linkStyle?:
|
|
6
|
+
linkStyle?: ColorThemes;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
id?: string | undefined;
|
|
8
9
|
isButton?: boolean;
|