@versini/ui-toggle 4.0.6 → 4.0.8
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,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as p, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import r from "clsx";
|
|
3
|
-
const b = "av-toggle",
|
|
3
|
+
const b = "av-toggle", h = () => r("peer", "h-6", "w-11", "rounded-full"), k = ({
|
|
4
4
|
focusMode: e
|
|
5
5
|
}) => r(
|
|
6
6
|
"peer-focus:outline",
|
|
@@ -15,7 +15,7 @@ const b = "av-toggle", k = () => r("peer", "h-6", "w-11", "rounded-full"), h = (
|
|
|
15
15
|
), m = () => r(
|
|
16
16
|
"peer-checked:after:translate-x-full",
|
|
17
17
|
// background color when checked
|
|
18
|
-
"peer-checked:bg-
|
|
18
|
+
"peer-checked:bg-action-light",
|
|
19
19
|
// knob circle and border color when checked
|
|
20
20
|
"peer-checked:after:bg-white",
|
|
21
21
|
"peer-checked:after:border-white"
|
|
@@ -36,10 +36,10 @@ const b = "av-toggle", k = () => r("peer", "h-6", "w-11", "rounded-full"), h = (
|
|
|
36
36
|
noBorder: t
|
|
37
37
|
}) => r({
|
|
38
38
|
border: !t,
|
|
39
|
-
"border-border-
|
|
39
|
+
"border-border-medium bg-surface-medium": e === "light",
|
|
40
40
|
"border-border-light bg-surface-darker": e === "dark",
|
|
41
41
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
42
|
-
"border-border-
|
|
42
|
+
"border-border-medium bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
43
43
|
}), C = ({
|
|
44
44
|
mode: e,
|
|
45
45
|
labelHidden: t
|
|
@@ -60,9 +60,9 @@ const b = "av-toggle", k = () => r("peer", "h-6", "w-11", "rounded-full"), h = (
|
|
|
60
60
|
noBorder: o
|
|
61
61
|
}) => ({
|
|
62
62
|
toggle: r(
|
|
63
|
-
|
|
63
|
+
h(),
|
|
64
64
|
x({ mode: e, noBorder: o }),
|
|
65
|
-
|
|
65
|
+
k({ focusMode: t }),
|
|
66
66
|
y(),
|
|
67
67
|
m()
|
|
68
68
|
),
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TOGGLE_CLASSNAME as o, Toggle as r } from "./components/Toggle/Toggle.js";
|
|
2
2
|
/*!
|
|
3
|
-
@versini/ui-toggle v4.0.
|
|
3
|
+
@versini/ui-toggle v4.0.8
|
|
4
4
|
© 2025 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
8
|
-
version: "4.0.
|
|
9
|
-
buildTime: "08/
|
|
8
|
+
version: "4.0.8",
|
|
9
|
+
buildTime: "08/14/2025 06:05 PM EDT",
|
|
10
10
|
homepage: "https://github.com/aversini/ui-components",
|
|
11
11
|
license: "MIT"
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-toggle",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@versini/ui-types": "
|
|
43
|
+
"@versini/ui-types": "../ui-types"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@tailwindcss/typography": "0.5.16",
|
|
47
47
|
"clsx": "2.1.1",
|
|
48
|
-
"tailwindcss": "4.1.
|
|
48
|
+
"tailwindcss": "4.1.12"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": [
|
|
51
51
|
"**/*.css"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "a2a11904039a5bc55ff17a954e4a16073abbe0bf"
|
|
54
54
|
}
|