@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.
Files changed (198) hide show
  1. package/README.md +8 -17
  2. package/dist/components/AlertDialog/AlertDialog.js +94 -0
  3. package/dist/components/AlertDialog/index.d.ts +1 -0
  4. package/dist/components/AlertDialog/index.js +13 -0
  5. package/dist/components/AlertDialog/types.d.ts +172 -0
  6. package/dist/components/AlertDialog/types.js +1 -0
  7. package/dist/components/AlertDialog/use-alert-dialog.d.ts +6 -0
  8. package/dist/components/AlertDialog/use-alert-dialog.js +11 -0
  9. package/dist/components/BottomBar/BottomBar.d.ts +13 -0
  10. package/dist/components/BottomBar/BottomBar.js +21 -0
  11. package/dist/components/BottomBar/index.d.ts +1 -0
  12. package/dist/components/BottomBar/index.js +4 -0
  13. package/dist/components/BulletList/BulletList.d.ts +10 -0
  14. package/dist/components/BulletList/BulletList.js +11 -0
  15. package/dist/components/BulletList/index.d.ts +1 -0
  16. package/dist/components/BulletList/index.js +4 -0
  17. package/dist/components/BulletListItem/BulletListItem.d.ts +7 -0
  18. package/dist/components/BulletListItem/BulletListItem.js +23 -0
  19. package/dist/components/BulletListItem/index.d.ts +1 -0
  20. package/dist/components/BulletListItem/index.js +4 -0
  21. package/dist/components/BulletPoint/BulletPoint.d.ts +6 -0
  22. package/dist/components/BulletPoint/BulletPoint.js +22 -0
  23. package/dist/components/BulletPoint/index.d.ts +1 -0
  24. package/dist/components/BulletPoint/index.js +1 -0
  25. package/dist/components/Button/Button.d.ts +10 -22
  26. package/dist/components/Button/Button.js +40 -72
  27. package/dist/components/Checkbox/Checkbox.d.ts +24 -4
  28. package/dist/components/Checkbox/Checkbox.js +5 -5
  29. package/dist/components/Chip/Chip.d.ts +2 -1
  30. package/dist/components/Chip/Chip.js +14 -8
  31. package/dist/components/ClearButton/Clear.js +14 -14
  32. package/dist/components/ClearButton/ClearButton.js +11 -11
  33. package/dist/components/ColorPicker/ColorPicker.js +14 -14
  34. package/dist/components/CountryDrawer/CountryDrawer.d.ts +12 -0
  35. package/dist/components/CountryDrawer/CountryDrawer.js +63 -0
  36. package/dist/components/CountryDrawer/index.d.ts +1 -0
  37. package/dist/components/CountryDrawer/index.js +4 -0
  38. package/dist/components/CountryDrawer/useCountryFiltering.d.ts +7 -0
  39. package/dist/components/CountryDrawer/useCountryFiltering.js +9 -0
  40. package/dist/components/CountryDrawer/useCountryGrouping.d.ts +13 -0
  41. package/dist/components/CountryDrawer/useCountryGrouping.js +17 -0
  42. package/dist/components/Drawer/Drawer.d.ts +28 -6
  43. package/dist/components/Drawer/Drawer.js +67 -28
  44. package/dist/components/Drawer/index.js +6 -4
  45. package/dist/components/Drawer/types.d.ts +167 -0
  46. package/dist/components/Drawer/types.js +1 -0
  47. package/dist/components/Drawer/use-drawer.d.ts +8 -0
  48. package/dist/components/Drawer/use-drawer.js +11 -0
  49. package/dist/components/Flag/LazyFlag.js +1 -1
  50. package/dist/components/Flag/flag-components/eu.d.ts +3 -0
  51. package/dist/components/Flag/flag-components/eu.js +83 -0
  52. package/dist/components/Flag/flag-components/index.d.ts +1 -0
  53. package/dist/components/Flag/flag-components/index.js +56 -54
  54. package/dist/components/Form/Form.js +2 -2
  55. package/dist/components/Icons/ArrowDown.js +26 -0
  56. package/dist/components/Icons/Eye.d.ts +8 -0
  57. package/dist/components/Icons/Eye.js +40 -0
  58. package/dist/components/Icons/EyeClosed.d.ts +8 -0
  59. package/dist/components/Icons/EyeClosed.js +60 -0
  60. package/dist/components/Icons/Fail.d.ts +8 -0
  61. package/dist/components/Icons/Fail.js +82 -0
  62. package/dist/components/Icons/MagicWand.d.ts +8 -0
  63. package/dist/components/Icons/MagicWand.js +60 -0
  64. package/dist/components/Icons/Magnifier.d.ts +1 -1
  65. package/dist/components/Icons/Magnifier.js +20 -11
  66. package/dist/components/Icons/Success.d.ts +8 -0
  67. package/dist/components/Icons/Success.js +82 -0
  68. package/dist/components/Icons/Tick.js +6 -7
  69. package/dist/components/Icons/XMark.d.ts +8 -0
  70. package/dist/components/Icons/XMark.js +27 -0
  71. package/dist/components/Input/Input.d.ts +26 -2
  72. package/dist/components/Input/Input.js +116 -51
  73. package/dist/components/ListItem/ListItem.d.ts +17 -6
  74. package/dist/components/ListItem/ListItem.js +29 -22
  75. package/dist/components/Marble/Marble.d.ts +2 -0
  76. package/dist/components/Marble/Marble.js +23 -0
  77. package/dist/components/Marble/index.d.ts +1 -0
  78. package/dist/components/Marble/index.js +4 -0
  79. package/dist/components/NumberPad/Delete.d.ts +1 -8
  80. package/dist/components/NumberPad/Delete.js +9 -10
  81. package/dist/components/NumberPad/NumberPad.js +30 -24
  82. package/dist/components/OTPField/OTPField.js +8 -8
  83. package/dist/components/PasswordField/PasswordField.d.ts +13 -0
  84. package/dist/components/PasswordField/PasswordField.js +45 -0
  85. package/dist/components/PasswordField/index.d.ts +1 -0
  86. package/dist/components/PasswordField/index.js +4 -0
  87. package/dist/components/PasteButton/PasteButton.d.ts +1 -1
  88. package/dist/components/PasteButton/PasteButton.js +21 -17
  89. package/dist/components/PhoneField/CountryListItem.d.ts +3 -4
  90. package/dist/components/PhoneField/CountryListItem.js +21 -25
  91. package/dist/components/PhoneField/CountrySelectorButton.d.ts +3 -4
  92. package/dist/components/PhoneField/CountrySelectorButton.js +17 -17
  93. package/dist/components/PhoneField/GroupedCountryList.d.ts +14 -0
  94. package/dist/components/PhoneField/GroupedCountryList.js +30 -0
  95. package/dist/components/PhoneField/PhoneField.d.ts +3 -14
  96. package/dist/components/PhoneField/PhoneField.js +71 -197
  97. package/dist/components/PhoneField/constants.js +4 -4
  98. package/dist/components/Pill/Pill.js +7 -7
  99. package/dist/components/Progress/Progress.d.ts +14 -0
  100. package/dist/components/Progress/Progress.js +31 -0
  101. package/dist/components/Progress/index.d.ts +1 -0
  102. package/dist/components/Progress/index.js +4 -0
  103. package/dist/components/RadioGroup/RadioGroupItem.js +1 -1
  104. package/dist/components/SearchField/SearchField.d.ts +6 -1
  105. package/dist/components/SearchField/SearchField.js +39 -35
  106. package/dist/components/Select/Select.js +46 -76
  107. package/dist/components/{Button → Spinner}/Spinner.d.ts +2 -2
  108. package/dist/components/Spinner/Spinner.js +36 -0
  109. package/dist/components/Spinner/index.d.ts +1 -0
  110. package/dist/components/Spinner/index.js +4 -0
  111. package/dist/components/Switch/Switch.js +1 -1
  112. package/dist/components/Tabs/Tabs.d.ts +11 -0
  113. package/dist/components/Tabs/Tabs.js +58 -0
  114. package/dist/components/Tabs/index.d.ts +2 -0
  115. package/dist/components/Tabs/index.js +5 -0
  116. package/dist/components/Tabs/types.d.ts +53 -0
  117. package/dist/components/Tabs/types.js +1 -0
  118. package/dist/components/TextArea/TextArea.d.ts +25 -0
  119. package/dist/components/TextArea/TextArea.js +54 -0
  120. package/dist/components/TextArea/index.d.ts +1 -0
  121. package/dist/components/TextArea/index.js +4 -0
  122. package/dist/components/Toast/Toast.d.ts +9 -0
  123. package/dist/components/Toast/Toast.js +51 -0
  124. package/dist/components/Toast/Toaster.d.ts +3 -0
  125. package/dist/components/Toast/Toaster.js +14 -0
  126. package/dist/components/Toast/index.d.ts +3 -0
  127. package/dist/components/Toast/index.js +12 -0
  128. package/dist/components/Toast/use-toast.d.ts +51 -0
  129. package/dist/components/Toast/use-toast.js +101 -0
  130. package/dist/components/ToggleGroup/ToggleGroup.d.ts +5 -0
  131. package/dist/components/ToggleGroup/ToggleGroup.js +28 -0
  132. package/dist/components/ToggleGroup/index.d.ts +1 -0
  133. package/dist/components/ToggleGroup/index.js +5 -0
  134. package/dist/components/ToggleGroup/types.d.ts +101 -0
  135. package/dist/components/ToggleGroup/types.js +1 -0
  136. package/dist/components/Token/Token.d.ts +4 -0
  137. package/dist/components/Token/Token.js +12 -7
  138. package/dist/components/Token/icons/btc.d.ts +2 -2
  139. package/dist/components/Token/icons/btc.js +13 -58
  140. package/dist/components/Token/icons/dai.d.ts +3 -0
  141. package/dist/components/Token/icons/dai.js +27 -0
  142. package/dist/components/Token/icons/eth.d.ts +2 -2
  143. package/dist/components/Token/icons/eth.js +11 -58
  144. package/dist/components/Token/icons/index.d.ts +2 -0
  145. package/dist/components/Token/icons/index.js +8 -4
  146. package/dist/components/Token/icons/types.d.ts +7 -0
  147. package/dist/components/Token/icons/types.js +1 -0
  148. package/dist/components/Token/icons/usdc.d.ts +2 -2
  149. package/dist/components/Token/icons/usdc.js +16 -56
  150. package/dist/components/Token/icons/usdt.d.ts +3 -0
  151. package/dist/components/Token/icons/usdt.js +27 -0
  152. package/dist/components/Token/icons/utils.d.ts +9 -0
  153. package/dist/components/Token/icons/utils.js +11 -0
  154. package/dist/components/Token/icons/wld.d.ts +2 -2
  155. package/dist/components/Token/icons/wld.js +10 -41
  156. package/dist/components/TopBar/TopBar.d.ts +11 -0
  157. package/dist/components/TopBar/TopBar.js +23 -0
  158. package/dist/components/TopBar/index.d.ts +1 -0
  159. package/dist/components/TopBar/index.js +4 -0
  160. package/dist/components/Typography/Typography.d.ts +12 -8
  161. package/dist/components/Typography/Typography.js +72 -60
  162. package/dist/components/WalletAddressField/WalletAddressField.d.ts +23 -0
  163. package/dist/components/WalletAddressField/WalletAddressField.js +81 -0
  164. package/dist/components/WalletAddressField/index.d.ts +1 -0
  165. package/dist/components/WalletAddressField/index.js +4 -0
  166. package/dist/index.d.ts +15 -0
  167. package/dist/index.js +91 -45
  168. package/dist/lib/constants/dropdownStyles.d.ts +1 -1
  169. package/dist/lib/constants/dropdownStyles.js +2 -2
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. package/dist/tailwind/index.d.ts +41 -25
  182. package/dist/tailwind/index.js +128 -85
  183. package/package.json +73 -1
  184. package/public/fonts/TWKLausanne-350.woff +0 -0
  185. package/public/fonts/TWKLausanne-350Italic.woff +0 -0
  186. package/public/fonts/TWKLausanne-500.woff +0 -0
  187. package/public/fonts/TWKLausanne-500Italic.woff +0 -0
  188. package/public/fonts/TWKLausanne-600.woff +0 -0
  189. package/public/fonts/TWKLausanne-600Italic.woff +0 -0
  190. package/public/globals.css +1 -1
  191. package/public/images/marbles/marble1.png +0 -0
  192. package/public/images/marbles/marble2.png +0 -0
  193. package/public/images/marbles/marble3.svg +36 -0
  194. package/dist/components/Button/Spinner.js +0 -36
  195. package/dist/components/PhoneField/ArrowDown.js +0 -27
  196. package/dist/components/Select/ArrowDown.d.ts +0 -2
  197. package/dist/components/Select/ArrowDown.js +0 -27
  198. /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
+ };
@@ -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;
@@ -1,103 +1,132 @@
1
- import a from "../_virtual/plugin.js";
2
- const n = {
3
- "--gray-900": "#191c20",
4
- "--gray-700": "#3c424b",
5
- "--gray-500": "#657080",
6
- "--gray-400": "#9ba3ae",
7
- "--gray-300": "#d6d9dd",
8
- "--gray-200": "#ebecef",
9
- "--gray-100": "#f3f4f5",
10
- "--gray-50": "#f9fafb",
11
- "--gray-25": "#fbfbfc",
12
- "--gray-0": "#ffffff"
13
- }, f = {
14
- "--success-900": "#18964f",
15
- "--success-800": "#00ab11",
16
- "--success-700": "#00c313",
17
- "--success-300": "#d6f6de",
18
- "--success-100": "#f5fdf7"
19
- }, o = {
20
- "--error-900": "#b71b58",
21
- "--error-800": "#dc0025",
22
- "--error-700": "#ff5a76",
23
- "--error-300": "#ffd7df",
24
- "--error-100": "#fff5f7"
25
- }, e = {
26
- "--warning-900": "#b47500",
27
- "--warning-800": "#dc8f00",
28
- "--warning-700": "#ffb11b",
29
- "--warning-300": "#ffeece",
30
- "--warning-100": "#fff9ef"
31
- }, s = {
32
- "--info-900": "#054cb7",
33
- "--info-800": "#0025dc",
34
- "--info-700": "#5a9cff",
35
- "--info-300": "#cee2ff",
36
- "--info-100": "#f3f8ff"
37
- }, g = a(
38
- function({ addBase: r }) {
39
- r({
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": "Rubik",
42
- "--font-display": "Sora",
43
- "--font-mono": "DM Mono",
44
- ...n,
45
- ...f,
46
- ...o,
57
+ "--font-sans": "TWK Lausanne",
47
58
  ...e,
48
- ...s
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
- 700: "var(--gray-700)",
65
- 500: "var(--gray-500)",
66
- 400: "var(--gray-400)",
67
- 300: "var(--gray-300)",
68
- 200: "var(--gray-200)",
69
- 100: "var(--gray-100)",
70
- 50: "var(--gray-50)",
71
- 25: "var(--gray-25)",
72
- 0: "var(--gray-0)"
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
- 300: "var(--success-300)",
79
- 100: "var(--success-100)"
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
- 300: "var(--error-300)",
86
- 100: "var(--error-100)"
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
- 300: "var(--warning-300)",
93
- 100: "var(--warning-100)"
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
- 300: "var(--info-300)",
100
- 100: "var(--info-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
- g as default,
119
- o as error,
120
- n as gray,
121
- s as info,
122
- f as success,
123
- e as warning
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.8",
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",