@shival99/z-ui-svelte 0.1.2 → 0.1.4

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 { cva } from 'class-variance-authority';
2
2
  /** Same palette as core-ui's z-tooltip; enter/exit motion lives in the Svelte transition instead of classes. */
3
- export const zTooltipVariants = cva('z-tooltip relative rounded-sm shadow-md', {
3
+ export const zTooltipVariants = cva('z-tooltip relative rounded-md shadow-lg', {
4
4
  variants: {
5
5
  zType: {
6
- default: 'bg-foreground text-background border border-foreground!',
6
+ default: 'bg-popover text-popover-foreground border border-border!',
7
7
  dark: 'bg-slate-900 text-white border border-slate-700!',
8
8
  light: 'bg-white text-slate-900 border border-slate-200!',
9
9
  primary: 'bg-primary text-primary-foreground border border-primary!',
@@ -23,10 +23,10 @@ export const zTooltipVariants = cva('z-tooltip relative rounded-sm shadow-md', {
23
23
  zSize: 'default',
24
24
  },
25
25
  });
26
- export const zTooltipContentVariants = cva('relative z-10 rounded-xs font-medium p-1.5 break-words leading-[1.7]', {
26
+ export const zTooltipContentVariants = cva('relative z-10 rounded-[inherit] font-medium p-1.5 break-words leading-[1.7]', {
27
27
  variants: {
28
28
  zType: {
29
- default: 'bg-foreground',
29
+ default: 'bg-popover',
30
30
  dark: 'bg-slate-900',
31
31
  light: 'bg-white',
32
32
  primary: 'bg-primary',
@@ -57,7 +57,7 @@ export const zTooltipArrowVariants = cva('absolute z-0 size-2.5 rotate-45 rounde
57
57
  'right-bottom': 'bottom-2 -left-1 border-b border-l',
58
58
  },
59
59
  zType: {
60
- default: 'bg-foreground border-foreground!',
60
+ default: 'bg-popover border-border!',
61
61
  dark: 'bg-slate-900 border-slate-700!',
62
62
  light: 'bg-white border-slate-200!',
63
63
  primary: 'bg-primary border-primary!',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shival99/z-ui-svelte",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Z-UI component library for Svelte 5 (runes, no CDK).",
5
5
  "license": "MIT",
6
6
  "type": "module",