@worldcoin/mini-apps-ui-kit-react 1.3.0 → 1.3.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/lib/haptics.d.ts +1 -1
- package/dist/tailwind.js +13 -1
- package/package.json +1 -1
package/dist/lib/haptics.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
type NotificationType = "success" | "warning" | "error";
|
2
|
-
type ImpactStyle = "light" | "medium" | "heavy"
|
2
|
+
type ImpactStyle = "light" | "medium" | "heavy";
|
3
3
|
interface HapticFeedbackParams {
|
4
4
|
hapticsType: "impact" | "notification" | "selectionChanged";
|
5
5
|
style?: ImpactStyle | NotificationType;
|
package/dist/tailwind.js
CHANGED
@@ -92,7 +92,7 @@ const ethereum = {
|
|
92
92
|
"--ethereum-secondary": "230 240 255"
|
93
93
|
};
|
94
94
|
const uiKitTailwindPlugin = plugin(
|
95
|
-
function({ addBase, addComponents }) {
|
95
|
+
function({ addBase, addComponents, addVariant }) {
|
96
96
|
addBase({
|
97
97
|
":root": {
|
98
98
|
"--font-sans": "TWK Lausanne",
|
@@ -130,6 +130,18 @@ const uiKitTailwindPlugin = plugin(
|
|
130
130
|
animation: "shine 10s infinite linear"
|
131
131
|
}
|
132
132
|
});
|
133
|
+
addVariant("tap", [
|
134
|
+
"@media (hover: hover) { &:hover }",
|
135
|
+
"@media (hover: none) { &:active }"
|
136
|
+
]);
|
137
|
+
addVariant("group-tap", [
|
138
|
+
"@media (hover: hover) { .group:hover & }",
|
139
|
+
"@media (hover: none) { .group:active & }"
|
140
|
+
]);
|
141
|
+
addVariant("peer-tap", [
|
142
|
+
"@media (hover: hover) { .peer:hover ~& }",
|
143
|
+
"@media (hover: none) { .peer:active ~& }"
|
144
|
+
]);
|
133
145
|
},
|
134
146
|
{
|
135
147
|
theme: {
|