y200subcontrols 0.0.372 → 0.0.373

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,11 @@
1
1
  <script>export let theme = "teal";
2
2
  export let size = "md";
3
+ export let isLight = false;
3
4
  </script>
4
5
 
5
- <span
6
- class="inline-block text-center
6
+ {#if !isLight}
7
+ <span
8
+ class="inline-block text-center
7
9
  {size === 'sm' ? 'text-sm rounded-3xl px-3 py-1.5' : ''}
8
10
  {size === 'md' ? 'text-base rounded-3xl px-4 py-2' : ''}
9
11
  {size === 'lg' ? 'text-lg rounded-3xl px-6 py-3' : ''}
@@ -15,6 +17,26 @@ export let size = "md";
15
17
  {theme === 'dark' ? 'bg-slate-950 text-slate-50' : ''}
16
18
  {theme === 'purple' ? 'bg-purple-950 text-purple-50' : ''}
17
19
  "
18
- >
19
- <slot />
20
- </span>
20
+ >
21
+ <slot />
22
+ </span>
23
+ {:else}
24
+ <span
25
+ class="inline-block text-center
26
+ {size === 'sm' ? 'text-sm rounded-3xl px-3 py-1.5' : ''}
27
+ {size === 'md' ? 'text-base rounded-3xl px-4 py-2' : ''}
28
+ {size === 'lg' ? 'text-lg rounded-3xl px-6 py-3' : ''}
29
+
30
+ {theme === 'teal' ? 'bg-teal-100 text-teal-500 border border-teal-500' : ''}
31
+ {theme === 'slate' ? 'bg-slate-100 text-slate-500 border border-slate-500' : ''}
32
+ {theme === 'blue' ? 'bg-blue-100 text-blue-500 border border-blue-500' : ''}
33
+ {theme === 'indigo' ? 'bg-indigo-100 text-indigo-500 border border-indigo-500' : ''}
34
+ {theme === 'red' ? 'bg-red-100 text-red-500 border border-red-500' : ''}
35
+ {theme === 'purple' ? 'bg-purple-100 text-purple-500 border border-purple-500' : ''}
36
+ {theme === 'dark' ? 'bg-slate-100 text-slate-950 border border-slate-950' : ''}
37
+
38
+ "
39
+ >
40
+ <slot />
41
+ </span>
42
+ {/if}
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  props: {
5
5
  theme?: ColorThemes;
6
6
  size?: Size;
7
+ isLight?: boolean;
7
8
  };
8
9
  events: {
9
10
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.0.372",
3
+ "version": "0.0.373",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",