@workokay/atom 0.2.34 → 0.2.36
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/atom.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +39 -11
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/components/switch/Switch.d.ts.map +1 -1
- package/dist/types/components/switch/switchVariants.d.ts +5 -5
- package/dist/types/components/switch/switchVariants.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19246,18 +19246,18 @@ const rE = te(
|
|
|
19246
19246
|
"rounded-full transition-colors",
|
|
19247
19247
|
"focus-visible:outline-none focus-visible:ring-2",
|
|
19248
19248
|
"focus-visible:ring-[var(--atom-ring-color)]",
|
|
19249
|
-
"disabled:cursor-not-allowed disabled:opacity-
|
|
19249
|
+
"disabled:cursor-not-allowed disabled:opacity-50border border-[var(--atom-theme-border-primary)] duration-300 ease-in-out focus-visible:ring-[var(--atom-ring-color)] focus-visible:ring-offset-2focus-visible:ring-offset-[var(--atom-ring-offset)] overflow-visible "
|
|
19250
19250
|
].join(" "),
|
|
19251
19251
|
{
|
|
19252
19252
|
variants: {
|
|
19253
19253
|
variant: {
|
|
19254
|
-
default: "bg-[color-mix(in_srgb,var(--atom-border)_40%,transparent)] data-[state=checked]:bg-[var(--atom-primary)]",
|
|
19254
|
+
default: "bg-[color-mix(in_srgb,var(--atom-border)_40%,transparent)] data-[state=checked]:bg-[var(--atom-primary)] ",
|
|
19255
19255
|
theme: "bg-[color-mix(in_srgb,var(--atom-border)_35%,transparent)] data-[state=checked]:bg-[var(--atom-primary)]"
|
|
19256
19256
|
},
|
|
19257
19257
|
size: {
|
|
19258
|
-
sm: "h-5 w-
|
|
19259
|
-
md: "h-6 w-11",
|
|
19260
|
-
lg: "h-7 w-14"
|
|
19258
|
+
sm: "h-5 w-8 p-0.5",
|
|
19259
|
+
md: "h-6 w-11 p-1",
|
|
19260
|
+
lg: "h-7 w-14 p-1.5"
|
|
19261
19261
|
},
|
|
19262
19262
|
fullWidth: {
|
|
19263
19263
|
true: "w-full",
|
|
@@ -19271,9 +19271,9 @@ const rE = te(
|
|
|
19271
19271
|
}
|
|
19272
19272
|
}
|
|
19273
19273
|
), oE = {
|
|
19274
|
-
sm: { size: "h-
|
|
19275
|
-
md: { size: "h-
|
|
19276
|
-
lg: { size: "h-
|
|
19274
|
+
sm: { size: "h-3 w-3", translateX: 14 },
|
|
19275
|
+
md: { size: "h-4 w-4", translateX: 20 },
|
|
19276
|
+
lg: { size: "h-5 w-5", translateX: 26 }
|
|
19277
19277
|
}, sE = kt(nE), iE = ({ size: e = 12 }) => /* @__PURE__ */ h.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", children: [
|
|
19278
19278
|
/* @__PURE__ */ h.jsx("circle", { cx: "12", cy: "12", r: "4", fill: "white" }),
|
|
19279
19279
|
/* @__PURE__ */ h.jsx(
|
|
@@ -19315,6 +19315,10 @@ const rE = te(
|
|
|
19315
19315
|
initial: { opacity: 0, scale: 0.4 },
|
|
19316
19316
|
animate: { opacity: 1, scale: 1 },
|
|
19317
19317
|
exit: { opacity: 0, scale: 0 },
|
|
19318
|
+
transition: {
|
|
19319
|
+
duration: 0.4,
|
|
19320
|
+
ease: "easeOut"
|
|
19321
|
+
},
|
|
19318
19322
|
children: /* @__PURE__ */ h.jsx(aE, { size: b })
|
|
19319
19323
|
},
|
|
19320
19324
|
"moon"
|
|
@@ -19325,6 +19329,12 @@ const rE = te(
|
|
|
19325
19329
|
className: "absolute right-3 top-1 text-white/60",
|
|
19326
19330
|
initial: { opacity: 0 },
|
|
19327
19331
|
animate: { opacity: 1 },
|
|
19332
|
+
exit: { opacity: 0, scale: 0 },
|
|
19333
|
+
transition: {
|
|
19334
|
+
duration: 0.3,
|
|
19335
|
+
delay: 0.1,
|
|
19336
|
+
ease: "easeOut"
|
|
19337
|
+
},
|
|
19328
19338
|
children: /* @__PURE__ */ h.jsx(cE, {})
|
|
19329
19339
|
},
|
|
19330
19340
|
"star"
|
|
@@ -19336,6 +19346,10 @@ const rE = te(
|
|
|
19336
19346
|
initial: { opacity: 0, scale: 0.4, rotate: -180 },
|
|
19337
19347
|
animate: { opacity: 1, scale: 1, rotate: 0 },
|
|
19338
19348
|
exit: { opacity: 0, scale: 0, rotate: 180 },
|
|
19349
|
+
transition: {
|
|
19350
|
+
duration: 0.4,
|
|
19351
|
+
ease: "easeOut"
|
|
19352
|
+
},
|
|
19339
19353
|
children: /* @__PURE__ */ h.jsx(iE, { size: b })
|
|
19340
19354
|
},
|
|
19341
19355
|
"sun"
|
|
@@ -19346,14 +19360,28 @@ const rE = te(
|
|
|
19346
19360
|
"data-slot": "switch-thumb",
|
|
19347
19361
|
className: M(
|
|
19348
19362
|
m.size,
|
|
19349
|
-
"block rounded-full bg-
|
|
19363
|
+
"block rounded-full bg-white relative z-10 "
|
|
19350
19364
|
),
|
|
19351
19365
|
animate: {
|
|
19352
19366
|
x: c ? m.translateX : 0,
|
|
19353
|
-
scaleX: u ? [1, 1.
|
|
19367
|
+
scaleX: u ? [1, 1.3, 1] : 1,
|
|
19354
19368
|
scaleY: u ? [1, 0.9, 1] : 1
|
|
19355
19369
|
},
|
|
19356
|
-
transition: {
|
|
19370
|
+
transition: {
|
|
19371
|
+
x: {
|
|
19372
|
+
type: "spring",
|
|
19373
|
+
stiffness: 500,
|
|
19374
|
+
damping: 30
|
|
19375
|
+
},
|
|
19376
|
+
scaleX: {
|
|
19377
|
+
duration: 0.3,
|
|
19378
|
+
ease: "easeInOut"
|
|
19379
|
+
},
|
|
19380
|
+
scaleY: {
|
|
19381
|
+
duration: 0.3,
|
|
19382
|
+
ease: "easeInOut"
|
|
19383
|
+
}
|
|
19384
|
+
}
|
|
19357
19385
|
}
|
|
19358
19386
|
)
|
|
19359
19387
|
]
|