@neoptocom/neopto-ui 0.7.1 → 0.7.3

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.
package/dist/index.cjs CHANGED
@@ -69,7 +69,7 @@ function AppBackground({
69
69
  lightImage && /* @__PURE__ */ jsxRuntime.jsx(
70
70
  "div",
71
71
  {
72
- className: "fixed inset-0 -z-10 dark:hidden",
72
+ className: "fixed inset-0 z-[-10] transition-opacity duration-500 opacity-100 dark:opacity-0",
73
73
  style: {
74
74
  backgroundImage: `url(${lightImage})`,
75
75
  backgroundSize: "cover",
@@ -81,7 +81,7 @@ function AppBackground({
81
81
  darkImage && /* @__PURE__ */ jsxRuntime.jsx(
82
82
  "div",
83
83
  {
84
- className: "fixed inset-0 -z-10 hidden dark:block",
84
+ className: "fixed inset-0 z-[-10] transition-opacity duration-500 opacity-0 dark:opacity-100",
85
85
  style: {
86
86
  backgroundImage: `url(${darkImage})`,
87
87
  backgroundSize: "cover",
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ function AppBackground({
48
48
  lightImage && /* @__PURE__ */ jsx(
49
49
  "div",
50
50
  {
51
- className: "fixed inset-0 -z-10 dark:hidden",
51
+ className: "fixed inset-0 z-[-10] transition-opacity duration-500 opacity-100 dark:opacity-0",
52
52
  style: {
53
53
  backgroundImage: `url(${lightImage})`,
54
54
  backgroundSize: "cover",
@@ -60,7 +60,7 @@ function AppBackground({
60
60
  darkImage && /* @__PURE__ */ jsx(
61
61
  "div",
62
62
  {
63
- className: "fixed inset-0 -z-10 hidden dark:block",
63
+ className: "fixed inset-0 z-[-10] transition-opacity duration-500 opacity-0 dark:opacity-100",
64
64
  style: {
65
65
  backgroundImage: `url(${darkImage})`,
66
66
  backgroundSize: "cover",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neoptocom/neopto-ui",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "private": false,
5
5
  "description": "A modern React component library built with Tailwind CSS v4 and TypeScript. Features dark mode, design tokens, and comprehensive Storybook documentation. Requires Tailwind v4+.",
6
6
  "keywords": [
@@ -43,7 +43,7 @@ export function AppBackground({
43
43
  {/* Light mode background image */}
44
44
  {lightImage && (
45
45
  <div
46
- className="fixed inset-0 -z-10 dark:hidden"
46
+ className="fixed inset-0 z-[-10] transition-opacity duration-500 opacity-100 dark:opacity-0"
47
47
  style={{
48
48
  backgroundImage: `url(${lightImage})`,
49
49
  backgroundSize: "cover",
@@ -56,7 +56,7 @@ export function AppBackground({
56
56
  {/* Dark mode background image */}
57
57
  {darkImage && (
58
58
  <div
59
- className="fixed inset-0 -z-10 hidden dark:block"
59
+ className="fixed inset-0 z-[-10] transition-opacity duration-500 opacity-0 dark:opacity-100"
60
60
  style={{
61
61
  backgroundImage: `url(${darkImage})`,
62
62
  backgroundSize: "cover",
@@ -1,5 +1,9 @@
1
1
  /* Tailwind v4+ core */
2
2
  @import "tailwindcss";
3
+
4
+ /* Configure dark mode to use class strategy */
5
+ @variant dark (&:where(.dark, .dark *));
6
+
3
7
  @import "./tokens.css";
4
8
 
5
9
  /* Ensure Tailwind scans your source & story files */