@worldcoin/mini-apps-ui-kit-react 1.0.0-canary.18 → 1.0.0-canary.19

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.
@@ -0,0 +1,34 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Slot } from "../../node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js";
3
+ import { cn } from "../../lib/utils.js";
4
+ const sizeClasses = {
5
+ xs: "size-6",
6
+ sm: "size-11",
7
+ md: "size-12",
8
+ lg: "size-16",
9
+ xl: "size-[5.5rem]"
10
+ };
11
+ const iconClasses = {
12
+ xs: "size-[0.875rem]",
13
+ sm: "size-[1.5rem]",
14
+ md: "size-[1.625rem]",
15
+ lg: "size-[2.125rem]",
16
+ xl: "size-12"
17
+ };
18
+ function CircularIcon({ children, className, size = "md", ...props }) {
19
+ return /* @__PURE__ */ jsx(
20
+ "div",
21
+ {
22
+ className: cn(
23
+ "rounded-full flex items-center justify-center",
24
+ sizeClasses[size],
25
+ className
26
+ ),
27
+ ...props,
28
+ children: /* @__PURE__ */ jsx(Slot, { className: iconClasses[size], children })
29
+ }
30
+ );
31
+ }
32
+ export {
33
+ CircularIcon
34
+ };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Button } from './components/Button';
2
2
  export { Checkbox } from './components/Checkbox';
3
3
  export { Chip } from './components/Chip';
4
+ export { CircularIcon } from './components/CircularIcon';
4
5
  export { ColorPickerItem, ColorPickerGroup } from './components/ColorPicker';
5
6
  export { Flag } from './components/Flag';
6
7
  export { Form } from './components/Form';
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import { default as default2 } from "./tailwind.js";
2
2
  import { Button } from "./components/Button/Button.js";
3
3
  import { Checkbox } from "./components/Checkbox/Checkbox.js";
4
4
  import { Chip } from "./components/Chip/Chip.js";
5
+ import { CircularIcon } from "./components/CircularIcon/CircularIcon.js";
5
6
  import { ColorPickerGroup, ColorPickerItem } from "./components/ColorPicker/ColorPicker.js";
6
7
  import { Flag } from "./components/Flag/Flag.js";
7
8
  import * as Form from "./components/Form/Form.js";
@@ -51,6 +52,7 @@ export {
51
52
  Button,
52
53
  Checkbox,
53
54
  Chip,
55
+ CircularIcon,
54
56
  ColorPickerGroup,
55
57
  ColorPickerItem,
56
58
  CountryDrawer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldcoin/mini-apps-ui-kit-react",
3
- "version": "1.0.0-canary.18",
3
+ "version": "1.0.0-canary.19",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",