y200subcontrols 0.0.28 → 0.0.29

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.
@@ -2,6 +2,7 @@
2
2
  export let type = "button";
3
3
  export let buttonStyle = "teal";
4
4
  export let buttonSize = "md";
5
+ export let id = void 0;
5
6
  export let disabled = false;
6
7
  export let customCss = "";
7
8
  export let isLoading = false;
@@ -10,6 +11,7 @@ export let isLoading = false;
10
11
  <button
11
12
  disabled={disabled || isLoading}
12
13
  data-loading={isLoading ? 'true' : 'false'}
14
+ {id}
13
15
  {type}
14
16
  class=" rounded hover:brightness-95 focus:outline-none focus:ring active:ring
15
17
  space-x-1
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  type?: "submit" | "reset" | "button";
6
6
  buttonStyle?: "red" | "dark" | "indigo" | "teal" | "blue";
7
7
  buttonSize?: Size;
8
+ id?: string | undefined;
8
9
  disabled?: boolean;
9
10
  customCss?: string;
10
11
  isLoading?: boolean;
@@ -1,6 +1,7 @@
1
1
  <script>export let href;
2
2
  export let linkStyle = "primary";
3
3
  export let disabled = false;
4
+ export let id = void 0;
4
5
  export let isButton = false;
5
6
  export let customCss = "";
6
7
  let hrefInternal = href;
@@ -14,7 +15,7 @@ $: {
14
15
  href={hrefInternal}
15
16
  aria-disabled={disabled}
16
17
  class="px-1 py-1 {customCss} text-slate-600 dark:text-slate-200
17
-
18
+ {id}
18
19
  {linkStyle === 'primary' ? 'hover:text-blue-500 active:text-blue-600' : ''}
19
20
  {linkStyle === 'danger' ? 'hover:text-red-500 active:text-red-600' : ''}
20
21
  {linkStyle === 'success' ? 'hover:text-emerald-500 active:text-emerald-600' : ''}
@@ -26,6 +27,7 @@ $: {
26
27
  </a>
27
28
  {:else}
28
29
  <a
30
+ {id}
29
31
  href={hrefInternal}
30
32
  aria-disabled={disabled}
31
33
  class="px-1 py-1 {customCss} text-center
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  href: string;
5
5
  linkStyle?: "primary" | "secondary" | "danger" | "success";
6
6
  disabled?: boolean;
7
+ id?: string | undefined;
7
8
  isButton?: boolean;
8
9
  customCss?: string;
9
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",