@worldcoin/mini-apps-ui-kit-react 0.0.8 → 1.0.0-canary.0
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/README.md +8 -17
- package/dist/components/AlertDialog/AlertDialog.js +94 -0
- package/dist/components/AlertDialog/index.d.ts +1 -0
- package/dist/components/AlertDialog/index.js +13 -0
- package/dist/components/AlertDialog/types.d.ts +172 -0
- package/dist/components/AlertDialog/types.js +1 -0
- package/dist/components/AlertDialog/use-alert-dialog.d.ts +6 -0
- package/dist/components/AlertDialog/use-alert-dialog.js +11 -0
- package/dist/components/BottomBar/BottomBar.d.ts +13 -0
- package/dist/components/BottomBar/BottomBar.js +21 -0
- package/dist/components/BottomBar/index.d.ts +1 -0
- package/dist/components/BottomBar/index.js +4 -0
- package/dist/components/BulletList/BulletList.d.ts +10 -0
- package/dist/components/BulletList/BulletList.js +11 -0
- package/dist/components/BulletList/index.d.ts +1 -0
- package/dist/components/BulletList/index.js +4 -0
- package/dist/components/BulletListItem/BulletListItem.d.ts +7 -0
- package/dist/components/BulletListItem/BulletListItem.js +23 -0
- package/dist/components/BulletListItem/index.d.ts +1 -0
- package/dist/components/BulletListItem/index.js +4 -0
- package/dist/components/BulletPoint/BulletPoint.d.ts +6 -0
- package/dist/components/BulletPoint/BulletPoint.js +22 -0
- package/dist/components/BulletPoint/index.d.ts +1 -0
- package/dist/components/BulletPoint/index.js +1 -0
- package/dist/components/Button/Button.d.ts +10 -22
- package/dist/components/Button/Button.js +40 -72
- package/dist/components/Checkbox/Checkbox.d.ts +24 -4
- package/dist/components/Checkbox/Checkbox.js +5 -5
- package/dist/components/Chip/Chip.d.ts +2 -1
- package/dist/components/Chip/Chip.js +14 -8
- package/dist/components/ClearButton/Clear.js +14 -14
- package/dist/components/ClearButton/ClearButton.js +11 -11
- package/dist/components/ColorPicker/ColorPicker.js +14 -14
- package/dist/components/CountryDrawer/CountryDrawer.d.ts +12 -0
- package/dist/components/CountryDrawer/CountryDrawer.js +63 -0
- package/dist/components/CountryDrawer/index.d.ts +1 -0
- package/dist/components/CountryDrawer/index.js +4 -0
- package/dist/components/CountryDrawer/useCountryFiltering.d.ts +7 -0
- package/dist/components/CountryDrawer/useCountryFiltering.js +9 -0
- package/dist/components/CountryDrawer/useCountryGrouping.d.ts +13 -0
- package/dist/components/CountryDrawer/useCountryGrouping.js +17 -0
- package/dist/components/Drawer/Drawer.d.ts +28 -6
- package/dist/components/Drawer/Drawer.js +67 -28
- package/dist/components/Drawer/index.js +6 -4
- package/dist/components/Drawer/types.d.ts +167 -0
- package/dist/components/Drawer/types.js +1 -0
- package/dist/components/Drawer/use-drawer.d.ts +8 -0
- package/dist/components/Drawer/use-drawer.js +11 -0
- package/dist/components/Flag/LazyFlag.js +1 -1
- package/dist/components/Flag/flag-components/eu.d.ts +3 -0
- package/dist/components/Flag/flag-components/eu.js +83 -0
- package/dist/components/Flag/flag-components/index.d.ts +1 -0
- package/dist/components/Flag/flag-components/index.js +56 -54
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Icons/ArrowDown.js +26 -0
- package/dist/components/Icons/Eye.d.ts +8 -0
- package/dist/components/Icons/Eye.js +40 -0
- package/dist/components/Icons/EyeClosed.d.ts +8 -0
- package/dist/components/Icons/EyeClosed.js +60 -0
- package/dist/components/Icons/Fail.d.ts +8 -0
- package/dist/components/Icons/Fail.js +82 -0
- package/dist/components/Icons/MagicWand.d.ts +8 -0
- package/dist/components/Icons/MagicWand.js +60 -0
- package/dist/components/Icons/Magnifier.d.ts +1 -1
- package/dist/components/Icons/Magnifier.js +20 -11
- package/dist/components/Icons/Success.d.ts +8 -0
- package/dist/components/Icons/Success.js +82 -0
- package/dist/components/Icons/Tick.js +6 -7
- package/dist/components/Icons/XMark.d.ts +8 -0
- package/dist/components/Icons/XMark.js +27 -0
- package/dist/components/Input/Input.d.ts +26 -2
- package/dist/components/Input/Input.js +116 -51
- package/dist/components/ListItem/ListItem.d.ts +17 -6
- package/dist/components/ListItem/ListItem.js +29 -22
- package/dist/components/Marble/Marble.d.ts +2 -0
- package/dist/components/Marble/Marble.js +23 -0
- package/dist/components/Marble/index.d.ts +1 -0
- package/dist/components/Marble/index.js +4 -0
- package/dist/components/NumberPad/Delete.d.ts +1 -8
- package/dist/components/NumberPad/Delete.js +9 -10
- package/dist/components/NumberPad/NumberPad.js +30 -24
- package/dist/components/OTPField/OTPField.js +8 -8
- package/dist/components/PasswordField/PasswordField.d.ts +13 -0
- package/dist/components/PasswordField/PasswordField.js +45 -0
- package/dist/components/PasswordField/index.d.ts +1 -0
- package/dist/components/PasswordField/index.js +4 -0
- package/dist/components/PasteButton/PasteButton.d.ts +1 -1
- package/dist/components/PasteButton/PasteButton.js +21 -17
- package/dist/components/PhoneField/CountryListItem.d.ts +3 -4
- package/dist/components/PhoneField/CountryListItem.js +21 -25
- package/dist/components/PhoneField/CountrySelectorButton.d.ts +3 -4
- package/dist/components/PhoneField/CountrySelectorButton.js +17 -17
- package/dist/components/PhoneField/GroupedCountryList.d.ts +14 -0
- package/dist/components/PhoneField/GroupedCountryList.js +30 -0
- package/dist/components/PhoneField/PhoneField.d.ts +3 -14
- package/dist/components/PhoneField/PhoneField.js +71 -197
- package/dist/components/PhoneField/constants.js +4 -4
- package/dist/components/Pill/Pill.js +7 -7
- package/dist/components/Progress/Progress.d.ts +14 -0
- package/dist/components/Progress/Progress.js +31 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/components/SearchField/SearchField.d.ts +6 -1
- package/dist/components/SearchField/SearchField.js +39 -35
- package/dist/components/Select/Select.js +46 -76
- package/dist/components/{Button → Spinner}/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.js +36 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.js +4 -0
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +11 -0
- package/dist/components/Tabs/Tabs.js +58 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +5 -0
- package/dist/components/Tabs/types.d.ts +53 -0
- package/dist/components/Tabs/types.js +1 -0
- package/dist/components/TextArea/TextArea.d.ts +25 -0
- package/dist/components/TextArea/TextArea.js +54 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.js +4 -0
- package/dist/components/Toast/Toast.d.ts +9 -0
- package/dist/components/Toast/Toast.js +51 -0
- package/dist/components/Toast/Toaster.d.ts +3 -0
- package/dist/components/Toast/Toaster.js +14 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/Toast/index.js +12 -0
- package/dist/components/Toast/use-toast.d.ts +51 -0
- package/dist/components/Toast/use-toast.js +101 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +5 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +28 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/ToggleGroup/index.js +5 -0
- package/dist/components/ToggleGroup/types.d.ts +101 -0
- package/dist/components/ToggleGroup/types.js +1 -0
- package/dist/components/Token/Token.d.ts +4 -0
- package/dist/components/Token/Token.js +12 -7
- package/dist/components/Token/icons/btc.d.ts +2 -2
- package/dist/components/Token/icons/btc.js +13 -58
- package/dist/components/Token/icons/dai.d.ts +3 -0
- package/dist/components/Token/icons/dai.js +27 -0
- package/dist/components/Token/icons/eth.d.ts +2 -2
- package/dist/components/Token/icons/eth.js +11 -58
- package/dist/components/Token/icons/index.d.ts +2 -0
- package/dist/components/Token/icons/index.js +8 -4
- package/dist/components/Token/icons/types.d.ts +7 -0
- package/dist/components/Token/icons/types.js +1 -0
- package/dist/components/Token/icons/usdc.d.ts +2 -2
- package/dist/components/Token/icons/usdc.js +16 -56
- package/dist/components/Token/icons/usdt.d.ts +3 -0
- package/dist/components/Token/icons/usdt.js +27 -0
- package/dist/components/Token/icons/utils.d.ts +9 -0
- package/dist/components/Token/icons/utils.js +11 -0
- package/dist/components/Token/icons/wld.d.ts +2 -2
- package/dist/components/Token/icons/wld.js +10 -41
- package/dist/components/TopBar/TopBar.d.ts +11 -0
- package/dist/components/TopBar/TopBar.js +23 -0
- package/dist/components/TopBar/index.d.ts +1 -0
- package/dist/components/TopBar/index.js +4 -0
- package/dist/components/Typography/Typography.d.ts +12 -8
- package/dist/components/Typography/Typography.js +72 -60
- package/dist/components/WalletAddressField/WalletAddressField.d.ts +23 -0
- package/dist/components/WalletAddressField/WalletAddressField.js +81 -0
- package/dist/components/WalletAddressField/index.d.ts +1 -0
- package/dist/components/WalletAddressField/index.js +4 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +91 -45
- package/dist/lib/constants/dropdownStyles.d.ts +1 -1
- package/dist/lib/constants/dropdownStyles.js +2 -2
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_tagbd57u5fsqga6qdjecsll7fm/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.5_@types_react-dom@18.3.5_@types_react@18.3.18__@types__nitdfoqpcbroetgllwgz3is5ai/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +131 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._ulc3jfxcmrz2rfz7bui53djdtu/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._wpsg2ubedou6txnsnvgmus4txq/node_modules/@radix-ui/react-progress/dist/index.js +86 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react_ki7uy4u3diz5446cqygvbjwuge/node_modules/@radix-ui/react-roving-focus/dist/index.js +181 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +44 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toast@1.2.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_mux33mveszkw5z6iia6acnivvy/node_modules/@radix-ui/react-toast/dist/index.js +448 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react_3smwloudr6a3igss4kifyxcwju/node_modules/@radix-ui/react-toggle-group/dist/index.js +137 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._yiv2ptaqcv244n5f7zfldmgupm/node_modules/@radix-ui/react-toggle/dist/index.js +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_omyrydx3gc2oidaiqb4gsovieq/node_modules/@radix-ui/react-visually-hidden/dist/index.js +30 -0
- package/dist/tailwind/index.d.ts +41 -25
- package/dist/tailwind/index.js +128 -85
- package/package.json +73 -1
- package/public/fonts/TWKLausanne-350.woff +0 -0
- package/public/fonts/TWKLausanne-350Italic.woff +0 -0
- package/public/fonts/TWKLausanne-500.woff +0 -0
- package/public/fonts/TWKLausanne-500Italic.woff +0 -0
- package/public/fonts/TWKLausanne-600.woff +0 -0
- package/public/fonts/TWKLausanne-600Italic.woff +0 -0
- package/public/globals.css +1 -1
- package/public/images/marbles/marble1.png +0 -0
- package/public/images/marbles/marble2.png +0 -0
- package/public/images/marbles/marble3.svg +36 -0
- package/dist/components/Button/Spinner.js +0 -36
- package/dist/components/PhoneField/ArrowDown.js +0 -27
- package/dist/components/Select/ArrowDown.d.ts +0 -2
- package/dist/components/Select/ArrowDown.js +0 -27
- /package/dist/components/{PhoneField → Icons}/ArrowDown.d.ts +0 -0
@@ -0,0 +1,137 @@
|
|
1
|
+
"use client";
|
2
|
+
import p from "react";
|
3
|
+
import { createContextScope as S } from "../../../../../@radix-ui_react-context@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js";
|
4
|
+
import { Primitive as G } from "../../../../../@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js";
|
5
|
+
import { createRovingFocusGroupScope as P, Root as V, Item as A } from "../../../../../@radix-ui_react-roving-focus@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react_ki7uy4u3diz5446cqygvbjwuge/node_modules/@radix-ui/react-roving-focus/dist/index.js";
|
6
|
+
import { Toggle as F } from "../../../../../@radix-ui_react-toggle@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._yiv2ptaqcv244n5f7zfldmgupm/node_modules/@radix-ui/react-toggle/dist/index.js";
|
7
|
+
import { useControllableState as _ } from "../../../../../@radix-ui_react-use-controllable-state@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
8
|
+
import { useDirection as M } from "../../../../../@radix-ui_react-direction@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.js";
|
9
|
+
import { jsx as l } from "react/jsx-runtime";
|
10
|
+
var v = "ToggleGroup", [C, z] = S(v, [
|
11
|
+
P
|
12
|
+
]), I = P(), f = p.forwardRef((e, r) => {
|
13
|
+
const { type: a, ...t } = e;
|
14
|
+
if (a === "single")
|
15
|
+
return /* @__PURE__ */ l(w, { ...t, ref: r });
|
16
|
+
if (a === "multiple")
|
17
|
+
return /* @__PURE__ */ l(D, { ...t, ref: r });
|
18
|
+
throw new Error(`Missing prop \`type\` expected on \`${v}\``);
|
19
|
+
});
|
20
|
+
f.displayName = v;
|
21
|
+
var [h, x] = C(v), w = p.forwardRef((e, r) => {
|
22
|
+
const {
|
23
|
+
value: a,
|
24
|
+
defaultValue: t,
|
25
|
+
onValueChange: u = () => {
|
26
|
+
},
|
27
|
+
...n
|
28
|
+
} = e, [s, o] = _({
|
29
|
+
prop: a,
|
30
|
+
defaultProp: t,
|
31
|
+
onChange: u
|
32
|
+
});
|
33
|
+
return /* @__PURE__ */ l(
|
34
|
+
h,
|
35
|
+
{
|
36
|
+
scope: e.__scopeToggleGroup,
|
37
|
+
type: "single",
|
38
|
+
value: s ? [s] : [],
|
39
|
+
onItemActivate: o,
|
40
|
+
onItemDeactivate: p.useCallback(() => o(""), [o]),
|
41
|
+
children: /* @__PURE__ */ l(R, { ...n, ref: r })
|
42
|
+
}
|
43
|
+
);
|
44
|
+
}), D = p.forwardRef((e, r) => {
|
45
|
+
const {
|
46
|
+
value: a,
|
47
|
+
defaultValue: t,
|
48
|
+
onValueChange: u = () => {
|
49
|
+
},
|
50
|
+
...n
|
51
|
+
} = e, [s = [], o] = _({
|
52
|
+
prop: a,
|
53
|
+
defaultProp: t,
|
54
|
+
onChange: u
|
55
|
+
}), i = p.useCallback(
|
56
|
+
(c) => o((g = []) => [...g, c]),
|
57
|
+
[o]
|
58
|
+
), d = p.useCallback(
|
59
|
+
(c) => o((g = []) => g.filter((y) => y !== c)),
|
60
|
+
[o]
|
61
|
+
);
|
62
|
+
return /* @__PURE__ */ l(
|
63
|
+
h,
|
64
|
+
{
|
65
|
+
scope: e.__scopeToggleGroup,
|
66
|
+
type: "multiple",
|
67
|
+
value: s,
|
68
|
+
onItemActivate: i,
|
69
|
+
onItemDeactivate: d,
|
70
|
+
children: /* @__PURE__ */ l(R, { ...n, ref: r })
|
71
|
+
}
|
72
|
+
);
|
73
|
+
});
|
74
|
+
f.displayName = v;
|
75
|
+
var [E, N] = C(v), R = p.forwardRef(
|
76
|
+
(e, r) => {
|
77
|
+
const {
|
78
|
+
__scopeToggleGroup: a,
|
79
|
+
disabled: t = !1,
|
80
|
+
rovingFocus: u = !0,
|
81
|
+
orientation: n,
|
82
|
+
dir: s,
|
83
|
+
loop: o = !0,
|
84
|
+
...i
|
85
|
+
} = e, d = I(a), c = M(s), g = { role: "group", dir: c, ...i };
|
86
|
+
return /* @__PURE__ */ l(E, { scope: a, rovingFocus: u, disabled: t, children: u ? /* @__PURE__ */ l(
|
87
|
+
V,
|
88
|
+
{
|
89
|
+
asChild: !0,
|
90
|
+
...d,
|
91
|
+
orientation: n,
|
92
|
+
dir: c,
|
93
|
+
loop: o,
|
94
|
+
children: /* @__PURE__ */ l(G.div, { ...g, ref: r })
|
95
|
+
}
|
96
|
+
) : /* @__PURE__ */ l(G.div, { ...g, ref: r }) });
|
97
|
+
}
|
98
|
+
), m = "ToggleGroupItem", b = p.forwardRef(
|
99
|
+
(e, r) => {
|
100
|
+
const a = x(m, e.__scopeToggleGroup), t = N(m, e.__scopeToggleGroup), u = I(e.__scopeToggleGroup), n = a.value.includes(e.value), s = t.disabled || e.disabled, o = { ...e, pressed: n, disabled: s }, i = p.useRef(null);
|
101
|
+
return t.rovingFocus ? /* @__PURE__ */ l(
|
102
|
+
A,
|
103
|
+
{
|
104
|
+
asChild: !0,
|
105
|
+
...u,
|
106
|
+
focusable: !s,
|
107
|
+
active: n,
|
108
|
+
ref: i,
|
109
|
+
children: /* @__PURE__ */ l(T, { ...o, ref: r })
|
110
|
+
}
|
111
|
+
) : /* @__PURE__ */ l(T, { ...o, ref: r });
|
112
|
+
}
|
113
|
+
);
|
114
|
+
b.displayName = m;
|
115
|
+
var T = p.forwardRef(
|
116
|
+
(e, r) => {
|
117
|
+
const { __scopeToggleGroup: a, value: t, ...u } = e, n = x(m, a), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, o = n.type === "single" ? s : void 0;
|
118
|
+
return /* @__PURE__ */ l(
|
119
|
+
F,
|
120
|
+
{
|
121
|
+
...o,
|
122
|
+
...u,
|
123
|
+
ref: r,
|
124
|
+
onPressedChange: (i) => {
|
125
|
+
i ? n.onItemActivate(t) : n.onItemDeactivate(t);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
);
|
129
|
+
}
|
130
|
+
), H = f, J = b;
|
131
|
+
export {
|
132
|
+
J as Item,
|
133
|
+
H as Root,
|
134
|
+
f as ToggleGroup,
|
135
|
+
b as ToggleGroupItem,
|
136
|
+
z as createToggleGroupScope
|
137
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use client";
|
2
|
+
import * as l from "react";
|
3
|
+
import { composeEventHandlers as n } from "../../../../../@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js";
|
4
|
+
import { useControllableState as f } from "../../../../../@radix-ui_react-use-controllable-state@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
5
|
+
import { Primitive as m } from "../../../../../@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js";
|
6
|
+
import { jsx as p } from "react/jsx-runtime";
|
7
|
+
var u = "Toggle", b = l.forwardRef((e, r) => {
|
8
|
+
const { pressed: t, defaultPressed: s = !1, onPressedChange: a, ...d } = e, [o = !1, i] = f({
|
9
|
+
prop: t,
|
10
|
+
onChange: a,
|
11
|
+
defaultProp: s
|
12
|
+
});
|
13
|
+
return /* @__PURE__ */ p(
|
14
|
+
m.button,
|
15
|
+
{
|
16
|
+
type: "button",
|
17
|
+
"aria-pressed": o,
|
18
|
+
"data-state": o ? "on" : "off",
|
19
|
+
"data-disabled": e.disabled ? "" : void 0,
|
20
|
+
...d,
|
21
|
+
ref: r,
|
22
|
+
onClick: n(e.onClick, () => {
|
23
|
+
e.disabled || i(!o);
|
24
|
+
})
|
25
|
+
}
|
26
|
+
);
|
27
|
+
});
|
28
|
+
b.displayName = u;
|
29
|
+
export {
|
30
|
+
b as Toggle
|
31
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import * as e from "react";
|
2
|
+
import { Primitive as a } from "../../../../../@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js";
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
4
|
+
var t = "VisuallyHidden", d = e.forwardRef(
|
5
|
+
(r, i) => /* @__PURE__ */ o(
|
6
|
+
a.span,
|
7
|
+
{
|
8
|
+
...r,
|
9
|
+
ref: i,
|
10
|
+
style: {
|
11
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
12
|
+
position: "absolute",
|
13
|
+
border: 0,
|
14
|
+
width: 1,
|
15
|
+
height: 1,
|
16
|
+
padding: 0,
|
17
|
+
margin: -1,
|
18
|
+
overflow: "hidden",
|
19
|
+
clip: "rect(0, 0, 0, 0)",
|
20
|
+
whiteSpace: "nowrap",
|
21
|
+
wordWrap: "normal",
|
22
|
+
...r.style
|
23
|
+
}
|
24
|
+
}
|
25
|
+
)
|
26
|
+
);
|
27
|
+
d.displayName = t;
|
28
|
+
export {
|
29
|
+
d as VisuallyHidden
|
30
|
+
};
|
package/dist/tailwind/index.d.ts
CHANGED
@@ -1,42 +1,58 @@
|
|
1
1
|
export declare const gray: {
|
2
|
-
"--gray-900": string;
|
3
|
-
"--gray-700": string;
|
4
|
-
"--gray-500": string;
|
5
|
-
"--gray-400": string;
|
6
|
-
"--gray-300": string;
|
7
|
-
"--gray-200": string;
|
8
|
-
"--gray-100": string;
|
9
|
-
"--gray-50": string;
|
10
|
-
"--gray-25": string;
|
11
2
|
"--gray-0": string;
|
3
|
+
"--gray-50": string;
|
4
|
+
"--gray-100": string;
|
5
|
+
"--gray-200": string;
|
6
|
+
"--gray-300": string;
|
7
|
+
"--gray-350": string;
|
8
|
+
"--gray-400": string;
|
9
|
+
"--gray-500": string;
|
10
|
+
"--gray-700": string;
|
11
|
+
"--gray-900": string;
|
12
12
|
};
|
13
13
|
export declare const success: {
|
14
|
-
"--success-900": string;
|
15
|
-
"--success-800": string;
|
16
|
-
"--success-700": string;
|
17
|
-
"--success-300": string;
|
18
14
|
"--success-100": string;
|
15
|
+
"--success-200": string;
|
16
|
+
"--success-300": string;
|
17
|
+
"--success-400": string;
|
18
|
+
"--success-500": string;
|
19
|
+
"--success-600": string;
|
20
|
+
"--success-700": string;
|
21
|
+
"--success-800": string;
|
22
|
+
"--success-900": string;
|
19
23
|
};
|
20
24
|
export declare const error: {
|
21
|
-
"--error-900": string;
|
22
|
-
"--error-800": string;
|
23
|
-
"--error-700": string;
|
24
|
-
"--error-300": string;
|
25
25
|
"--error-100": string;
|
26
|
+
"--error-200": string;
|
27
|
+
"--error-300": string;
|
28
|
+
"--error-400": string;
|
29
|
+
"--error-500": string;
|
30
|
+
"--error-600": string;
|
31
|
+
"--error-700": string;
|
32
|
+
"--error-800": string;
|
33
|
+
"--error-900": string;
|
26
34
|
};
|
27
35
|
export declare const warning: {
|
28
|
-
"--warning-900": string;
|
29
|
-
"--warning-800": string;
|
30
|
-
"--warning-700": string;
|
31
|
-
"--warning-300": string;
|
32
36
|
"--warning-100": string;
|
37
|
+
"--warning-200": string;
|
38
|
+
"--warning-300": string;
|
39
|
+
"--warning-400": string;
|
40
|
+
"--warning-500": string;
|
41
|
+
"--warning-600": string;
|
42
|
+
"--warning-700": string;
|
43
|
+
"--warning-800": string;
|
44
|
+
"--warning-900": string;
|
33
45
|
};
|
34
46
|
export declare const info: {
|
35
|
-
"--info-900": string;
|
36
|
-
"--info-800": string;
|
37
|
-
"--info-700": string;
|
38
|
-
"--info-300": string;
|
39
47
|
"--info-100": string;
|
48
|
+
"--info-200": string;
|
49
|
+
"--info-300": string;
|
50
|
+
"--info-400": string;
|
51
|
+
"--info-500": string;
|
52
|
+
"--info-600": string;
|
53
|
+
"--info-700": string;
|
54
|
+
"--info-800": string;
|
55
|
+
"--info-900": string;
|
40
56
|
};
|
41
57
|
declare const uiKitTailwindPlugin: {
|
42
58
|
handler: import('tailwindcss/types/config').PluginCreator;
|
package/dist/tailwind/index.js
CHANGED
@@ -1,103 +1,132 @@
|
|
1
|
-
import
|
2
|
-
const
|
3
|
-
"--gray-
|
4
|
-
"--gray-
|
5
|
-
"--gray-
|
6
|
-
"--gray-
|
7
|
-
"--gray-300": "
|
8
|
-
"--gray-
|
9
|
-
"--gray-
|
10
|
-
"--gray-
|
11
|
-
"--gray-
|
12
|
-
"--gray-
|
13
|
-
},
|
14
|
-
"--success-
|
15
|
-
"--success-
|
16
|
-
"--success-
|
17
|
-
"--success-
|
18
|
-
"--success-
|
19
|
-
|
20
|
-
"--
|
21
|
-
"--
|
22
|
-
"--
|
23
|
-
|
24
|
-
"--error-100": "
|
25
|
-
|
26
|
-
"--
|
27
|
-
"--
|
28
|
-
"--
|
29
|
-
"--
|
30
|
-
"--
|
31
|
-
|
32
|
-
"--
|
33
|
-
|
34
|
-
"--
|
35
|
-
"--
|
36
|
-
"--
|
37
|
-
|
38
|
-
|
39
|
-
|
1
|
+
import r from "../_virtual/plugin.js";
|
2
|
+
const e = {
|
3
|
+
"--gray-0": "255 255 255",
|
4
|
+
"--gray-50": "249 250 251",
|
5
|
+
"--gray-100": "243 244 245",
|
6
|
+
"--gray-200": "235 236 239",
|
7
|
+
"--gray-300": "214 217 221",
|
8
|
+
"--gray-350": "177 184 194",
|
9
|
+
"--gray-400": "155 163 174",
|
10
|
+
"--gray-500": "113 118 128",
|
11
|
+
"--gray-700": "60 66 75",
|
12
|
+
"--gray-900": "24 24 24"
|
13
|
+
}, l = {
|
14
|
+
"--success-100": "230 249 236",
|
15
|
+
"--success-200": "204 243 217",
|
16
|
+
"--success-300": "153 232 179",
|
17
|
+
"--success-400": "102 220 141",
|
18
|
+
"--success-500": "51 209 103",
|
19
|
+
"--success-600": "0 194 48",
|
20
|
+
"--success-700": "0 155 38",
|
21
|
+
"--success-800": "0 116 29",
|
22
|
+
"--success-900": "0 77 19"
|
23
|
+
}, g = {
|
24
|
+
"--error-100": "254 233 231",
|
25
|
+
"--error-200": "253 211 207",
|
26
|
+
"--error-300": "251 167 159",
|
27
|
+
"--error-400": "249 123 111",
|
28
|
+
"--error-500": "247 80 63",
|
29
|
+
"--error-600": "242 40 13",
|
30
|
+
"--error-700": "194 32 10",
|
31
|
+
"--error-800": "145 24 8",
|
32
|
+
"--error-900": "97 16 5"
|
33
|
+
}, v = {
|
34
|
+
"--warning-100": "255 246 230",
|
35
|
+
"--warning-200": "255 237 204",
|
36
|
+
"--warning-300": "255 219 153",
|
37
|
+
"--warning-400": "255 201 102",
|
38
|
+
"--warning-500": "255 184 51",
|
39
|
+
"--warning-600": "255 174 0",
|
40
|
+
"--warning-700": "204 139 0",
|
41
|
+
"--warning-800": "153 104 0",
|
42
|
+
"--warning-900": "102 70 0"
|
43
|
+
}, n = {
|
44
|
+
"--info-100": "230 240 255",
|
45
|
+
"--info-200": "204 224 255",
|
46
|
+
"--info-300": "153 194 255",
|
47
|
+
"--info-400": "102 163 255",
|
48
|
+
"--info-500": "51 133 255",
|
49
|
+
"--info-600": "0 92 255",
|
50
|
+
"--info-700": "0 74 204",
|
51
|
+
"--info-800": "0 55 153",
|
52
|
+
"--info-900": "0 36 102"
|
53
|
+
}, u = r(
|
54
|
+
function({ addBase: a }) {
|
55
|
+
a({
|
40
56
|
":root": {
|
41
|
-
"--font-sans": "
|
42
|
-
"--font-display": "Sora",
|
43
|
-
"--font-mono": "DM Mono",
|
44
|
-
...n,
|
45
|
-
...f,
|
46
|
-
...o,
|
57
|
+
"--font-sans": "TWK Lausanne",
|
47
58
|
...e,
|
48
|
-
...
|
59
|
+
...l,
|
60
|
+
...g,
|
61
|
+
...v,
|
62
|
+
...n
|
49
63
|
}
|
50
64
|
});
|
51
65
|
},
|
52
66
|
{
|
53
67
|
theme: {
|
54
68
|
fontFamily: {
|
55
|
-
sans: "var(--font-sans)"
|
56
|
-
display: "var(--font-display)",
|
57
|
-
mono: "var(--font-mono)"
|
69
|
+
sans: "var(--font-sans)"
|
58
70
|
},
|
59
71
|
colors: {
|
60
72
|
transparent: "transparent",
|
61
73
|
current: "currentColor",
|
62
74
|
gray: {
|
63
|
-
900: "var(--gray-900)",
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
75
|
+
900: "rgb(var(--gray-900) / <alpha-value>)",
|
76
|
+
800: "rgb(var(--gray-800) / <alpha-value>)",
|
77
|
+
700: "rgb(var(--gray-700) / <alpha-value>)",
|
78
|
+
500: "rgb(var(--gray-500) / <alpha-value>)",
|
79
|
+
400: "rgb(var(--gray-400) / <alpha-value>)",
|
80
|
+
350: "rgb(var(--gray-350) / <alpha-value>)",
|
81
|
+
300: "rgb(var(--gray-300) / <alpha-value>)",
|
82
|
+
200: "rgb(var(--gray-200) / <alpha-value>)",
|
83
|
+
100: "rgb(var(--gray-100) / <alpha-value>)",
|
84
|
+
50: "rgb(var(--gray-50) / <alpha-value>)",
|
85
|
+
0: "rgb(var(--gray-0) / <alpha-value>)"
|
73
86
|
},
|
74
87
|
success: {
|
75
|
-
900: "var(--success-900)",
|
76
|
-
800: "var(--success-800)",
|
77
|
-
700: "var(--success-700)",
|
78
|
-
|
79
|
-
|
88
|
+
900: "rgb(var(--success-900) / <alpha-value>)",
|
89
|
+
800: "rgb(var(--success-800) / <alpha-value>)",
|
90
|
+
700: "rgb(var(--success-700) / <alpha-value>)",
|
91
|
+
600: "rgb(var(--success-600) / <alpha-value>)",
|
92
|
+
500: "rgb(var(--success-500) / <alpha-value>)",
|
93
|
+
400: "rgb(var(--success-400) / <alpha-value>)",
|
94
|
+
300: "rgb(var(--success-300) / <alpha-value>)",
|
95
|
+
200: "rgb(var(--success-200) / <alpha-value>)",
|
96
|
+
100: "rgb(var(--success-100) / <alpha-value>)"
|
80
97
|
},
|
81
98
|
error: {
|
82
|
-
900: "var(--error-900)",
|
83
|
-
800: "var(--error-800)",
|
84
|
-
700: "var(--error-700)",
|
85
|
-
|
86
|
-
|
99
|
+
900: "rgb(var(--error-900) / <alpha-value>)",
|
100
|
+
800: "rgb(var(--error-800) / <alpha-value>)",
|
101
|
+
700: "rgb(var(--error-700) / <alpha-value>)",
|
102
|
+
600: "rgb(var(--error-600) / <alpha-value>)",
|
103
|
+
500: "rgb(var(--error-500) / <alpha-value>)",
|
104
|
+
400: "rgb(var(--error-400) / <alpha-value>)",
|
105
|
+
300: "rgb(var(--error-300) / <alpha-value>)",
|
106
|
+
200: "rgb(var(--error-200) / <alpha-value>)",
|
107
|
+
100: "rgb(var(--error-100) / <alpha-value>)"
|
87
108
|
},
|
88
109
|
warning: {
|
89
|
-
900: "var(--warning-900)",
|
90
|
-
800: "var(--warning-800)",
|
91
|
-
700: "var(--warning-700)",
|
92
|
-
|
93
|
-
|
110
|
+
900: "rgb(var(--warning-900) / <alpha-value>)",
|
111
|
+
800: "rgb(var(--warning-800) / <alpha-value>)",
|
112
|
+
700: "rgb(var(--warning-700) / <alpha-value>)",
|
113
|
+
600: "rgb(var(--warning-600) / <alpha-value>)",
|
114
|
+
500: "rgb(var(--warning-500) / <alpha-value>)",
|
115
|
+
400: "rgb(var(--warning-400) / <alpha-value>)",
|
116
|
+
300: "rgb(var(--warning-300) / <alpha-value>)",
|
117
|
+
200: "rgb(var(--warning-200) / <alpha-value>)",
|
118
|
+
100: "rgb(var(--warning-100) / <alpha-value>)"
|
94
119
|
},
|
95
120
|
info: {
|
96
|
-
900: "var(--info-900)",
|
97
|
-
800: "var(--info-800)",
|
98
|
-
700: "var(--info-700)",
|
99
|
-
|
100
|
-
|
121
|
+
900: "rgb(var(--info-900) / <alpha-value>)",
|
122
|
+
800: "rgb(var(--info-800) / <alpha-value>)",
|
123
|
+
700: "rgb(var(--info-700) / <alpha-value>)",
|
124
|
+
600: "rgb(var(--info-600) / <alpha-value>)",
|
125
|
+
500: "rgb(var(--info-500) / <alpha-value>)",
|
126
|
+
400: "rgb(var(--info-400) / <alpha-value>)",
|
127
|
+
300: "rgb(var(--info-300) / <alpha-value>)",
|
128
|
+
200: "rgb(var(--info-200) / <alpha-value>)",
|
129
|
+
100: "rgb(var(--info-100) / <alpha-value>)"
|
101
130
|
}
|
102
131
|
},
|
103
132
|
lineHeight: {
|
@@ -105,6 +134,20 @@ const n = {
|
|
105
134
|
narrow: "1.2",
|
106
135
|
compact: "1.3"
|
107
136
|
},
|
137
|
+
fontSize: {
|
138
|
+
"2xs": "0.6875rem",
|
139
|
+
xs: "0.8125rem",
|
140
|
+
sm: "0.9375rem",
|
141
|
+
base: "1.0625rem",
|
142
|
+
lg: "1.1875rem",
|
143
|
+
xl: "1.3125rem",
|
144
|
+
"2xl": "1.625rem",
|
145
|
+
"3xl": "1.875rem",
|
146
|
+
"4xl": "2.125rem",
|
147
|
+
"5xl": "2.5rem",
|
148
|
+
"6xl": "2.75rem",
|
149
|
+
"7xl": "3.5rem"
|
150
|
+
},
|
108
151
|
extend: {
|
109
152
|
boxShadow: {
|
110
153
|
card: "0 0.625rem 1.875rem 0 #191C201A",
|
@@ -115,10 +158,10 @@ const n = {
|
|
115
158
|
}
|
116
159
|
);
|
117
160
|
export {
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
161
|
+
u as default,
|
162
|
+
g as error,
|
163
|
+
e as gray,
|
164
|
+
n as info,
|
165
|
+
l as success,
|
166
|
+
v as warning
|
124
167
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@worldcoin/mini-apps-ui-kit-react",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "1.0.0-canary.0",
|
4
4
|
"type": "module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -17,6 +17,18 @@
|
|
17
17
|
"types": "./dist/components/Button/index.d.ts",
|
18
18
|
"default": "./dist/components/Button/index.js"
|
19
19
|
},
|
20
|
+
"./BulletList": {
|
21
|
+
"types": "./dist/components/BulletList/index.d.ts",
|
22
|
+
"default": "./dist/components/BulletList/index.js"
|
23
|
+
},
|
24
|
+
"./BulletListItem": {
|
25
|
+
"types": "./dist/components/BulletListItem/index.d.ts",
|
26
|
+
"default": "./dist/components/BulletListItem/index.js"
|
27
|
+
},
|
28
|
+
"./BulletPoint": {
|
29
|
+
"types": "./dist/components/BulletPoint/index.d.ts",
|
30
|
+
"default": "./dist/components/BulletPoint/index.js"
|
31
|
+
},
|
20
32
|
"./Checkbox": {
|
21
33
|
"types": "./dist/components/Checkbox/index.d.ts",
|
22
34
|
"default": "./dist/components/Checkbox/index.js"
|
@@ -93,6 +105,62 @@
|
|
93
105
|
"types": "./dist/components/Typography/index.d.ts",
|
94
106
|
"default": "./dist/components/Typography/index.js"
|
95
107
|
},
|
108
|
+
"./Spinner": {
|
109
|
+
"types": "./dist/components/Spinner/index.d.ts",
|
110
|
+
"default": "./dist/components/Spinner/index.js"
|
111
|
+
},
|
112
|
+
"./Toast": {
|
113
|
+
"types": "./dist/components/Toast/index.d.ts",
|
114
|
+
"default": "./dist/components/Toast/index.js"
|
115
|
+
},
|
116
|
+
"./Progress": {
|
117
|
+
"types": "./dist/components/Progress/index.d.ts",
|
118
|
+
"default": "./dist/components/Progress/index.js"
|
119
|
+
},
|
120
|
+
"./TextArea": {
|
121
|
+
"types": "./dist/components/TextArea/index.d.ts",
|
122
|
+
"default": "./dist/components/TextArea/index.js"
|
123
|
+
},
|
124
|
+
"./WalletAddressField": {
|
125
|
+
"types": "./dist/components/WalletAddressField/index.d.ts",
|
126
|
+
"default": "./dist/components/WalletAddressField/index.js"
|
127
|
+
},
|
128
|
+
"./AlertDialog": {
|
129
|
+
"types": "./dist/components/AlertDialog/index.d.ts",
|
130
|
+
"default": "./dist/components/AlertDialog/index.js"
|
131
|
+
},
|
132
|
+
"./BottomBar": {
|
133
|
+
"types": "./dist/components/BottomBar/index.d.ts",
|
134
|
+
"default": "./dist/components/BottomBar/index.js"
|
135
|
+
},
|
136
|
+
"./TopBar": {
|
137
|
+
"types": "./dist/components/TopBar/index.d.ts",
|
138
|
+
"default": "./dist/components/TopBar/index.js"
|
139
|
+
},
|
140
|
+
"./Marble": {
|
141
|
+
"types": "./dist/components/Marble/index.d.ts",
|
142
|
+
"default": "./dist/components/Marble/index.js"
|
143
|
+
},
|
144
|
+
"./CountryDrawer": {
|
145
|
+
"types": "./dist/components/CountryDrawer/index.d.ts",
|
146
|
+
"default": "./dist/components/CountryDrawer/index.js"
|
147
|
+
},
|
148
|
+
"./ToggleGroup": {
|
149
|
+
"types": "./dist/components/ToggleGroup/index.d.ts",
|
150
|
+
"default": "./dist/components/ToggleGroup/index.js"
|
151
|
+
},
|
152
|
+
"./ToggleGroupItem": {
|
153
|
+
"types": "./dist/components/ToggleGroup/index.d.ts",
|
154
|
+
"default": "./dist/components/ToggleGroup/index.js"
|
155
|
+
},
|
156
|
+
"./Tabs": {
|
157
|
+
"types": "./dist/components/Tabs/index.d.ts",
|
158
|
+
"default": "./dist/components/Tabs/index.js"
|
159
|
+
},
|
160
|
+
"./TabItem": {
|
161
|
+
"types": "./dist/components/TabItem/index.d.ts",
|
162
|
+
"default": "./dist/components/TabItem/index.js"
|
163
|
+
},
|
96
164
|
"./tailwind": {
|
97
165
|
"types": "./dist/tailwind/index.d.ts",
|
98
166
|
"default": "./dist/tailwind/index.js"
|
@@ -138,6 +206,7 @@
|
|
138
206
|
"rollup-preserve-directives": "^1.1.3",
|
139
207
|
"storybook": "^8.4.7",
|
140
208
|
"tailwindcss": "^3.4.15",
|
209
|
+
"tailwindcss-animate": "^1.0.7",
|
141
210
|
"typescript": "~5.6.2",
|
142
211
|
"typescript-eslint": "^8.11.0",
|
143
212
|
"vite": ">=5.4.12",
|
@@ -146,10 +215,13 @@
|
|
146
215
|
"dependencies": {
|
147
216
|
"@radix-ui/react-checkbox": "^1.1.2",
|
148
217
|
"@radix-ui/react-form": "^0.1.0",
|
218
|
+
"@radix-ui/react-progress": "^1.1.2",
|
149
219
|
"@radix-ui/react-radio-group": "^1.2.1",
|
150
220
|
"@radix-ui/react-select": "^2.1.2",
|
151
221
|
"@radix-ui/react-slot": "^1.1.0",
|
152
222
|
"@radix-ui/react-switch": "^1.1.1",
|
223
|
+
"@radix-ui/react-toast": "^1.2.6",
|
224
|
+
"@radix-ui/react-toggle-group": "^1.1.2",
|
153
225
|
"@uidotdev/usehooks": "^2.4.1",
|
154
226
|
"class-variance-authority": "^0.7.1",
|
155
227
|
"clsx": "^2.1.1",
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|