y200subcontrols 0.0.321 → 0.0.323

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.
@@ -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?: "red" | "dark" | "indigo" | "teal" | "blue" | "purple";
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 = "primary";
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,13 @@ $: {
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 === 'primary' ? 'hover:text-blue-500 active:text-blue-600' : ''}
20
- {linkStyle === 'danger' ? 'hover:text-red-500 active:text-red-600' : ''}
21
- {linkStyle === 'success' ? 'hover:text-emerald-500 active:text-emerald-600' : ''}
22
- {linkStyle === 'secondary' ? 'hover:text-slate-700 active:text-slate-700' : ''}
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
+
25
+
23
26
  aria-disabled:text-slate-300 dark:aria-disabled:text-slate-500
24
27
  space-x-1 transition-colors ease-in-out duration-150"
25
28
  >
@@ -32,14 +35,15 @@ $: {
32
35
  aria-disabled={disabled}
33
36
  class="px-1 py-1 {customCss} text-center
34
37
  px-2 py-1.5 rounded-lg focus:outline-none focus:ring active:ring outline-none
35
- {linkStyle === 'primary' ? 'bg-blue-500 text-blue-50 ring-blue-500/20 hover:bg-blue-600' : ''}
36
- {linkStyle === 'secondary'
38
+ {linkStyle === 'blue' ? 'bg-blue-500 text-blue-50 ring-blue-500/20 hover:bg-blue-600' : ''}
39
+ {linkStyle === 'slate'
37
40
  ? 'bg-slate-400 text-slate-50 ring-slate-500/20 hover:bg-slate-600 '
38
41
  : ''}
39
- {linkStyle === 'danger' ? 'bg-red-500 text-red-50 ring-red-500/20 hover:bg-red-600' : ''}
40
- {linkStyle === 'success'
41
- ? 'bg-emerald-950 text-emerald-50 ring-emerald-800/20 hover:bg-emerald-600 '
42
- : ''}
42
+ {linkStyle === 'red' ? 'bg-red-500 text-red-50 ring-red-500/20 hover:bg-red-600' : ''}
43
+ {linkStyle === 'teal' ? 'bg-teal-500 text-teal-50 ring-teal-800/20 hover:bg-teal-600 ' : ''}
44
+ {linkStyle === 'indigo' ? 'bg-indigo-500 text-indigo-50 ring-indigo-800/20 hover:bg-indigo-600 ' : ''}
45
+ {linkStyle === 'purple' ? 'bg-purple-500 text-purple-50 ring-purple-800/20 hover:bg-purple-600 ' : ''}
46
+ {linkStyle === 'dark' ? 'bg-slate-950 text-slate-50 ring-slate-800/20 hover:bg-indigo-800 ' : ''}
43
47
  aria-disabled:cursor-default aria-disabled:text-slate-300 aria-disabled:bg-slate-100
44
48
  space-x-1 transition-colors ease-in-out duration-150"
45
49
  >
@@ -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?: "primary" | "secondary" | "danger" | "success";
6
+ linkStyle?: ColorThemes;
6
7
  disabled?: boolean;
7
8
  id?: string | undefined;
8
9
  isButton?: boolean;
@@ -1 +1,2 @@
1
1
  export type Size = 'sm' | 'md' | 'lg';
2
+ export type ColorThemes = 'red' | 'dark' | 'indigo' | 'teal' | 'blue' | 'purple' | 'slate';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.0.321",
3
+ "version": "0.0.323",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",