@neoptocom/neopto-ui 1.4.0 → 1.4.2

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
@@ -1300,13 +1300,14 @@ var AgentButton = ({
1300
1300
  className: `flex justify-end items-center fixed bottom-3 right-8 z-40 h-24 transition-all duration-1000 ease-in-out ${delayedHasNotification ? "w-[432px]" : "w-24"} ${isMounted ? "opacity-100" : "opacity-0"}`,
1301
1301
  style: {
1302
1302
  filter: disabled ? "grayscale(100%)" : "grayscale(0%)",
1303
- transition: "filter 1s ease-in-out"
1303
+ opacity: disabled ? 0.3 : 1,
1304
+ transition: "filter 0.5s ease-in-out, opacity 0.5s ease-in-out"
1304
1305
  },
1305
1306
  children: [
1306
1307
  circleAnimations.map((circle, index) => /* @__PURE__ */ jsxRuntime.jsx(
1307
1308
  "div",
1308
1309
  {
1309
- className: `absolute ${circle.style} h-20 min-w-20 w-20 overflow-visible flex justify-between transition-opacity duration-1000 ease-in-out`,
1310
+ className: `absolute ${circle.style} h-20 min-w-20 w-20 overflow-visible flex justify-between transition-opacity duration-500 ease-in-out`,
1310
1311
  style: { opacity: disabled ? 0 : 1 },
1311
1312
  children: /* @__PURE__ */ jsxRuntime.jsx(
1312
1313
  AnimatedBgCircle_default,
@@ -1325,7 +1326,7 @@ var AgentButton = ({
1325
1326
  className: `absolute ${rect.style} h-20 transition-all ease-in-out ${delayedHasNotification ? "w-[324px] px-0" : "w-20 px-10"} overflow-visible flex justify-between`,
1326
1327
  style: {
1327
1328
  opacity: disabled ? 0 : delayedHasNotification ? 1 : 0,
1328
- transitionDuration: "1s"
1329
+ transitionDuration: "0.5s"
1329
1330
  },
1330
1331
  children: /* @__PURE__ */ jsxRuntime.jsx(AnimatedBgRectangle_default, { colors: animationColors, delay: rect.delay })
1331
1332
  },
@@ -1336,7 +1337,7 @@ var AgentButton = ({
1336
1337
  {
1337
1338
  onClick: onOpenChat,
1338
1339
  disabled,
1339
- className: `flex flex-row-reverse items-center gap-1.5 fixed p-3 rounded-full shadow-md h-16 mr-4 transition-all duration-600 ease-in-out border-2 border-[var(--border)] ${delayedHasNotification ? "w-[400px]" : "w-16"} ${disabled ? "cursor-not-allowed" : "cursor-pointer"}`,
1340
+ className: `flex flex-row-reverse items-center gap-1.5 fixed p-3 rounded-full shadow-md h-16 mr-4 transition-all duration-600 ease-in-out border-2 border-[var(--border)] ${delayedHasNotification ? "w-[400px]" : "w-16"} ${disabled ? "cursor-default" : "cursor-pointer"}`,
1340
1341
  style: {
1341
1342
  background: "var(--chat-button-gradient)"
1342
1343
  },
package/dist/index.js CHANGED
@@ -1279,13 +1279,14 @@ var AgentButton = ({
1279
1279
  className: `flex justify-end items-center fixed bottom-3 right-8 z-40 h-24 transition-all duration-1000 ease-in-out ${delayedHasNotification ? "w-[432px]" : "w-24"} ${isMounted ? "opacity-100" : "opacity-0"}`,
1280
1280
  style: {
1281
1281
  filter: disabled ? "grayscale(100%)" : "grayscale(0%)",
1282
- transition: "filter 1s ease-in-out"
1282
+ opacity: disabled ? 0.3 : 1,
1283
+ transition: "filter 0.5s ease-in-out, opacity 0.5s ease-in-out"
1283
1284
  },
1284
1285
  children: [
1285
1286
  circleAnimations.map((circle, index) => /* @__PURE__ */ jsx(
1286
1287
  "div",
1287
1288
  {
1288
- className: `absolute ${circle.style} h-20 min-w-20 w-20 overflow-visible flex justify-between transition-opacity duration-1000 ease-in-out`,
1289
+ className: `absolute ${circle.style} h-20 min-w-20 w-20 overflow-visible flex justify-between transition-opacity duration-500 ease-in-out`,
1289
1290
  style: { opacity: disabled ? 0 : 1 },
1290
1291
  children: /* @__PURE__ */ jsx(
1291
1292
  AnimatedBgCircle_default,
@@ -1304,7 +1305,7 @@ var AgentButton = ({
1304
1305
  className: `absolute ${rect.style} h-20 transition-all ease-in-out ${delayedHasNotification ? "w-[324px] px-0" : "w-20 px-10"} overflow-visible flex justify-between`,
1305
1306
  style: {
1306
1307
  opacity: disabled ? 0 : delayedHasNotification ? 1 : 0,
1307
- transitionDuration: "1s"
1308
+ transitionDuration: "0.5s"
1308
1309
  },
1309
1310
  children: /* @__PURE__ */ jsx(AnimatedBgRectangle_default, { colors: animationColors, delay: rect.delay })
1310
1311
  },
@@ -1315,7 +1316,7 @@ var AgentButton = ({
1315
1316
  {
1316
1317
  onClick: onOpenChat,
1317
1318
  disabled,
1318
- className: `flex flex-row-reverse items-center gap-1.5 fixed p-3 rounded-full shadow-md h-16 mr-4 transition-all duration-600 ease-in-out border-2 border-[var(--border)] ${delayedHasNotification ? "w-[400px]" : "w-16"} ${disabled ? "cursor-not-allowed" : "cursor-pointer"}`,
1319
+ className: `flex flex-row-reverse items-center gap-1.5 fixed p-3 rounded-full shadow-md h-16 mr-4 transition-all duration-600 ease-in-out border-2 border-[var(--border)] ${delayedHasNotification ? "w-[400px]" : "w-16"} ${disabled ? "cursor-default" : "cursor-pointer"}`,
1319
1320
  style: {
1320
1321
  background: "var(--chat-button-gradient)"
1321
1322
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neoptocom/neopto-ui",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
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": [
@@ -76,13 +76,14 @@ const AgentButton = ({
76
76
  } ${isMounted ? "opacity-100" : "opacity-0"}`}
77
77
  style={{
78
78
  filter: disabled ? "grayscale(100%)" : "grayscale(0%)",
79
- transition: "filter 1s ease-in-out",
79
+ opacity: disabled ? 0.3 : 1,
80
+ transition: "filter 0.5s ease-in-out, opacity 0.5s ease-in-out",
80
81
  }}
81
82
  >
82
83
  {circleAnimations.map((circle, index) => (
83
84
  <div
84
85
  key={`circle-${index}`}
85
- className={`absolute ${circle.style} h-20 min-w-20 w-20 overflow-visible flex justify-between transition-opacity duration-1000 ease-in-out`}
86
+ className={`absolute ${circle.style} h-20 min-w-20 w-20 overflow-visible flex justify-between transition-opacity duration-500 ease-in-out`}
86
87
  style={{ opacity: disabled ? 0 : 1 }}
87
88
  >
88
89
  <AnimatedBgCircle
@@ -102,7 +103,7 @@ const AgentButton = ({
102
103
  } overflow-visible flex justify-between`}
103
104
  style={{
104
105
  opacity: disabled ? 0 : delayedHasNotification ? 1 : 0,
105
- transitionDuration: "1s",
106
+ transitionDuration: "0.5s",
106
107
  }}
107
108
  >
108
109
  <AnimatedBgRectangle colors={animationColors} delay={rect.delay} />
@@ -114,7 +115,7 @@ const AgentButton = ({
114
115
  disabled={disabled}
115
116
  className={`flex flex-row-reverse items-center gap-1.5 fixed p-3 rounded-full shadow-md h-16 mr-4 transition-all duration-600 ease-in-out border-2 border-[var(--border)] ${
116
117
  delayedHasNotification ? "w-[400px]" : "w-16"
117
- } ${disabled ? "cursor-not-allowed" : "cursor-pointer"}`}
118
+ } ${disabled ? "cursor-default" : "cursor-pointer"}`}
118
119
  style={{
119
120
  background: "var(--chat-button-gradient)",
120
121
  }}