@worldcoin/mini-apps-ui-kit-react 0.0.8 → 1.0.0-canary.1
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 +41 -73
- 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 +69 -57
- 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
package/dist/index.d.ts
CHANGED
@@ -13,8 +13,23 @@ export * from './components/RadioGroup';
|
|
13
13
|
export * from './components/Select';
|
14
14
|
export * from './components/SearchField';
|
15
15
|
export * from './components/PhoneField';
|
16
|
+
export * from './components/Spinner';
|
16
17
|
export * from './components/Switch';
|
17
18
|
export * from './components/Token';
|
19
|
+
export * from './components/Toast';
|
18
20
|
export * from './components/Typography';
|
19
21
|
export * from './components/Drawer';
|
22
|
+
export * from './components/Progress';
|
23
|
+
export * from './components/TextArea';
|
24
|
+
export * from './components/WalletAddressField';
|
25
|
+
export * from './components/TextArea';
|
26
|
+
export * from './components/AlertDialog';
|
27
|
+
export * from './components/BottomBar';
|
28
|
+
export * from './components/BulletList';
|
29
|
+
export * from './components/BulletListItem';
|
30
|
+
export * from './components/BulletPoint';
|
31
|
+
export * from './components/Marble';
|
32
|
+
export * from './components/TopBar';
|
33
|
+
export * from './components/CountryDrawer';
|
34
|
+
export * from './components/ToggleGroup';
|
20
35
|
export { default as uiKitTailwindPlugin } from './tailwind';
|
package/dist/index.js
CHANGED
@@ -1,57 +1,103 @@
|
|
1
|
-
import { Button as
|
2
|
-
import { Checkbox as
|
1
|
+
import { Button as a } from "./components/Button/Button.js";
|
2
|
+
import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
|
3
3
|
import { Chip as f } from "./components/Chip/Chip.js";
|
4
|
-
import { ColorPickerGroup as
|
4
|
+
import { ColorPickerGroup as g, ColorPickerItem as s } from "./components/ColorPicker/ColorPicker.js";
|
5
5
|
import { Flag as d } from "./components/Flag/Flag.js";
|
6
|
-
import { LazyFlag as
|
7
|
-
import { isSupportedCountryCode as
|
6
|
+
import { LazyFlag as D } from "./components/Flag/LazyFlag.js";
|
7
|
+
import { isSupportedCountryCode as C } from "./components/Flag/utils.js";
|
8
8
|
import * as r from "./components/Form/Form.js";
|
9
|
-
import { Input as
|
10
|
-
import { ListItem as
|
11
|
-
import { NumberPad as
|
12
|
-
import { OTPField as
|
9
|
+
import { Input as c, iconVariants as w, inputVariants as F } from "./components/Input/Input.js";
|
10
|
+
import { ListItem as y } from "./components/ListItem/ListItem.js";
|
11
|
+
import { NumberPad as B } from "./components/NumberPad/NumberPad.js";
|
12
|
+
import { OTPField as G } from "./components/OTPField/OTPField.js";
|
13
13
|
import { Pill as V } from "./components/Pill/Pill.js";
|
14
|
-
import { RadioGroup as
|
14
|
+
import { RadioGroup as L } from "./components/RadioGroup/RadioGroup.js";
|
15
15
|
import { RadioGroupItem as R } from "./components/RadioGroup/RadioGroupItem.js";
|
16
|
-
import { Select as
|
17
|
-
import { SearchField as
|
18
|
-
import { PhoneField as
|
19
|
-
import { getValidatedCountryCode as
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import {
|
23
|
-
import {
|
24
|
-
import {
|
16
|
+
import { Select as H } from "./components/Select/Select.js";
|
17
|
+
import { SearchField as _ } from "./components/SearchField/SearchField.js";
|
18
|
+
import { PhoneField as K } from "./components/PhoneField/PhoneField.js";
|
19
|
+
import { getValidatedCountryCode as N } from "./components/PhoneField/utils.js";
|
20
|
+
import { Spinner as j } from "./components/Spinner/Spinner.js";
|
21
|
+
import { Switch as E } from "./components/Switch/Switch.js";
|
22
|
+
import { Token as Q } from "./components/Token/Token.js";
|
23
|
+
import { Toast as X, ToastProvider as Y, ToastViewport as Z } from "./components/Toast/Toast.js";
|
24
|
+
import { Toaster as rr } from "./components/Toast/Toaster.js";
|
25
|
+
import { reducer as er, toast as tr, useToast as pr } from "./components/Toast/use-toast.js";
|
26
|
+
import { Typography as mr, typographyVariants as lr } from "./components/Typography/Typography.js";
|
27
|
+
import { Drawer as fr, DrawerClose as xr, DrawerContent as gr, DrawerHeader as sr, DrawerTitle as nr, DrawerTrigger as dr } from "./components/Drawer/Drawer.js";
|
28
|
+
import { Progress as Dr } from "./components/Progress/Progress.js";
|
29
|
+
import "./components/TextArea/TextArea.js";
|
30
|
+
import { WalletAddressField as Cr } from "./components/WalletAddressField/WalletAddressField.js";
|
31
|
+
import { AlertDialog as cr, AlertDialogClose as wr, AlertDialogContent as Fr, AlertDialogDescription as Pr, AlertDialogFooter as yr, AlertDialogHeader as hr, AlertDialogOverlay as Br, AlertDialogPortal as Ir, AlertDialogTitle as Gr, AlertDialogTrigger as Sr } from "./components/AlertDialog/AlertDialog.js";
|
32
|
+
import { BottomBar as kr } from "./components/BottomBar/BottomBar.js";
|
33
|
+
import { BulletList as br } from "./components/BulletList/BulletList.js";
|
34
|
+
import { BulletListItem as vr } from "./components/BulletListItem/BulletListItem.js";
|
35
|
+
import "./components/BulletPoint/BulletPoint.js";
|
36
|
+
import { Marble as Or } from "./components/Marble/Marble.js";
|
37
|
+
import { TopBar as zr } from "./components/TopBar/TopBar.js";
|
38
|
+
import { CountryDrawer as Mr } from "./components/CountryDrawer/CountryDrawer.js";
|
39
|
+
import { ToggleGroupItem as Wr, ToggleGroupRoot as jr } from "./components/ToggleGroup/ToggleGroup.js";
|
40
|
+
import { default as Er } from "./tailwind/index.js";
|
25
41
|
export {
|
26
|
-
|
27
|
-
|
42
|
+
cr as AlertDialog,
|
43
|
+
wr as AlertDialogClose,
|
44
|
+
Fr as AlertDialogContent,
|
45
|
+
Pr as AlertDialogDescription,
|
46
|
+
yr as AlertDialogFooter,
|
47
|
+
hr as AlertDialogHeader,
|
48
|
+
Br as AlertDialogOverlay,
|
49
|
+
Ir as AlertDialogPortal,
|
50
|
+
Gr as AlertDialogTitle,
|
51
|
+
Sr as AlertDialogTrigger,
|
52
|
+
kr as BottomBar,
|
53
|
+
br as BulletList,
|
54
|
+
vr as BulletListItem,
|
55
|
+
a as Button,
|
56
|
+
l as Checkbox,
|
28
57
|
f as Chip,
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
58
|
+
g as ColorPickerGroup,
|
59
|
+
s as ColorPickerItem,
|
60
|
+
Mr as CountryDrawer,
|
61
|
+
fr as Drawer,
|
62
|
+
xr as DrawerClose,
|
63
|
+
gr as DrawerContent,
|
64
|
+
sr as DrawerHeader,
|
65
|
+
nr as DrawerTitle,
|
66
|
+
dr as DrawerTrigger,
|
35
67
|
d as Flag,
|
36
68
|
r as Form,
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
69
|
+
c as Input,
|
70
|
+
D as LazyFlag,
|
71
|
+
y as ListItem,
|
72
|
+
Or as Marble,
|
73
|
+
B as NumberPad,
|
74
|
+
G as OTPField,
|
75
|
+
K as PhoneField,
|
43
76
|
V as Pill,
|
44
|
-
|
77
|
+
Dr as Progress,
|
78
|
+
L as RadioGroup,
|
45
79
|
R as RadioGroupItem,
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
80
|
+
_ as SearchField,
|
81
|
+
H as Select,
|
82
|
+
j as Spinner,
|
83
|
+
E as Switch,
|
84
|
+
X as Toast,
|
85
|
+
Y as ToastProvider,
|
86
|
+
Z as ToastViewport,
|
87
|
+
rr as Toaster,
|
88
|
+
Wr as ToggleGroupItem,
|
89
|
+
jr as ToggleGroupRoot,
|
90
|
+
Q as Token,
|
91
|
+
zr as TopBar,
|
92
|
+
mr as Typography,
|
93
|
+
Cr as WalletAddressField,
|
94
|
+
N as getValidatedCountryCode,
|
95
|
+
w as iconVariants,
|
96
|
+
F as inputVariants,
|
97
|
+
C as isSupportedCountryCode,
|
98
|
+
er as reducer,
|
99
|
+
tr as toast,
|
100
|
+
lr as typographyVariants,
|
101
|
+
Er as uiKitTailwindPlugin,
|
102
|
+
pr as useToast
|
57
103
|
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare const DROPDOWN_CONTAINER_STYLES = "relative z-50 mt-1 max-h-[11.75rem] w-full overflow-hidden rounded-
|
1
|
+
export declare const DROPDOWN_CONTAINER_STYLES = "relative z-50 mt-1 max-h-[11.75rem] w-full overflow-hidden rounded-[0.625rem] bg-gray-0 border border-gray-300";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const r = "relative z-50 mt-1 max-h-[11.75rem] w-full overflow-hidden rounded-[0.625rem] bg-gray-0 border border-gray-300";
|
2
2
|
export {
|
3
|
-
|
3
|
+
r as DROPDOWN_CONTAINER_STYLES
|
4
4
|
};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use client";
|
2
|
+
import n from "react";
|
3
|
+
import { createContextScope as O } 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 { useComposedRefs as S } from "../../../../../@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
5
|
+
import { Slot as x } from "../../../../../@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";
|
6
|
+
import { jsx as u } from "react/jsx-runtime";
|
7
|
+
function h(s) {
|
8
|
+
const f = s + "CollectionProvider", [A, N] = O(f), [_, m] = A(
|
9
|
+
f,
|
10
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
11
|
+
), d = (c) => {
|
12
|
+
const { scope: e, children: l } = c, o = n.useRef(null), t = n.useRef(/* @__PURE__ */ new Map()).current;
|
13
|
+
return /* @__PURE__ */ u(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
14
|
+
};
|
15
|
+
d.displayName = f;
|
16
|
+
const a = s + "CollectionSlot", p = n.forwardRef(
|
17
|
+
(c, e) => {
|
18
|
+
const { scope: l, children: o } = c, t = m(a, l), r = S(e, t.collectionRef);
|
19
|
+
return /* @__PURE__ */ u(x, { ref: r, children: o });
|
20
|
+
}
|
21
|
+
);
|
22
|
+
p.displayName = a;
|
23
|
+
const C = s + "CollectionItemSlot", R = "data-radix-collection-item", M = n.forwardRef(
|
24
|
+
(c, e) => {
|
25
|
+
const { scope: l, children: o, ...t } = c, r = n.useRef(null), I = S(e, r), i = m(C, l);
|
26
|
+
return n.useEffect(() => (i.itemMap.set(r, { ref: r, ...t }), () => void i.itemMap.delete(r))), /* @__PURE__ */ u(x, { [R]: "", ref: I, children: o });
|
27
|
+
}
|
28
|
+
);
|
29
|
+
M.displayName = C;
|
30
|
+
function E(c) {
|
31
|
+
const e = m(s + "CollectionConsumer", c);
|
32
|
+
return n.useCallback(() => {
|
33
|
+
const o = e.collectionRef.current;
|
34
|
+
if (!o) return [];
|
35
|
+
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
36
|
+
return Array.from(e.itemMap.values()).sort(
|
37
|
+
(i, T) => t.indexOf(i.ref.current) - t.indexOf(T.ref.current)
|
38
|
+
);
|
39
|
+
}, [e.collectionRef, e.itemMap]);
|
40
|
+
}
|
41
|
+
return [
|
42
|
+
{ Provider: d, Slot: p, ItemSlot: M },
|
43
|
+
E,
|
44
|
+
N
|
45
|
+
];
|
46
|
+
}
|
47
|
+
export {
|
48
|
+
h as createCollection
|
49
|
+
};
|
@@ -0,0 +1,131 @@
|
|
1
|
+
"use client";
|
2
|
+
import * as n from "react";
|
3
|
+
import { composeEventHandlers as m } from "../../../../../@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js";
|
4
|
+
import { Primitive as R, dispatchDiscreteCustomEvent as z } 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 { useComposedRefs as g } from "../../../../../@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
6
|
+
import { useCallbackRef as w } from "../../../../../@radix-ui_react-use-callback-ref@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
7
|
+
import { useEscapeKeydown as H } from "../../../../../@radix-ui_react-use-escape-keydown@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js";
|
8
|
+
import { jsx as B } from "react/jsx-runtime";
|
9
|
+
var M = "DismissableLayer", y = "dismissableLayer.update", j = "dismissableLayer.pointerDownOutside", X = "dismissableLayer.focusOutside", L, T = n.createContext({
|
10
|
+
layers: /* @__PURE__ */ new Set(),
|
11
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
12
|
+
branches: /* @__PURE__ */ new Set()
|
13
|
+
}), x = n.forwardRef(
|
14
|
+
(r, e) => {
|
15
|
+
const {
|
16
|
+
disableOutsidePointerEvents: i = !1,
|
17
|
+
onEscapeKeyDown: o,
|
18
|
+
onPointerDownOutside: t,
|
19
|
+
onFocusOutside: a,
|
20
|
+
onInteractOutside: l,
|
21
|
+
onDismiss: d,
|
22
|
+
...v
|
23
|
+
} = r, c = n.useContext(T), [u, W] = n.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, A] = n.useState({}), N = g(e, (s) => W(s)), p = Array.from(c.layers), [I] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), _ = p.indexOf(I), b = u ? p.indexOf(u) : -1, k = c.layersWithOutsidePointerEventsDisabled.size > 0, P = b >= _, U = q((s) => {
|
24
|
+
const E = s.target, C = [...c.branches].some((h) => h.contains(E));
|
25
|
+
!P || C || (t == null || t(s), l == null || l(s), s.defaultPrevented || d == null || d());
|
26
|
+
}, f), D = G((s) => {
|
27
|
+
const E = s.target;
|
28
|
+
[...c.branches].some((h) => h.contains(E)) || (a == null || a(s), l == null || l(s), s.defaultPrevented || d == null || d());
|
29
|
+
}, f);
|
30
|
+
return H((s) => {
|
31
|
+
b === c.layers.size - 1 && (o == null || o(s), !s.defaultPrevented && d && (s.preventDefault(), d()));
|
32
|
+
}, f), n.useEffect(() => {
|
33
|
+
if (u)
|
34
|
+
return i && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (L = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), O(), () => {
|
35
|
+
i && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = L);
|
36
|
+
};
|
37
|
+
}, [u, f, i, c]), n.useEffect(() => () => {
|
38
|
+
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), O());
|
39
|
+
}, [u, c]), n.useEffect(() => {
|
40
|
+
const s = () => A({});
|
41
|
+
return document.addEventListener(y, s), () => document.removeEventListener(y, s);
|
42
|
+
}, []), /* @__PURE__ */ B(
|
43
|
+
R.div,
|
44
|
+
{
|
45
|
+
...v,
|
46
|
+
ref: N,
|
47
|
+
style: {
|
48
|
+
pointerEvents: k ? P ? "auto" : "none" : void 0,
|
49
|
+
...r.style
|
50
|
+
},
|
51
|
+
onFocusCapture: m(r.onFocusCapture, D.onFocusCapture),
|
52
|
+
onBlurCapture: m(r.onBlurCapture, D.onBlurCapture),
|
53
|
+
onPointerDownCapture: m(
|
54
|
+
r.onPointerDownCapture,
|
55
|
+
U.onPointerDownCapture
|
56
|
+
)
|
57
|
+
}
|
58
|
+
);
|
59
|
+
}
|
60
|
+
);
|
61
|
+
x.displayName = M;
|
62
|
+
var Y = "DismissableLayerBranch", S = n.forwardRef((r, e) => {
|
63
|
+
const i = n.useContext(T), o = n.useRef(null), t = g(e, o);
|
64
|
+
return n.useEffect(() => {
|
65
|
+
const a = o.current;
|
66
|
+
if (a)
|
67
|
+
return i.branches.add(a), () => {
|
68
|
+
i.branches.delete(a);
|
69
|
+
};
|
70
|
+
}, [i.branches]), /* @__PURE__ */ B(R.div, { ...r, ref: t });
|
71
|
+
});
|
72
|
+
S.displayName = Y;
|
73
|
+
function q(r, e = globalThis == null ? void 0 : globalThis.document) {
|
74
|
+
const i = w(r), o = n.useRef(!1), t = n.useRef(() => {
|
75
|
+
});
|
76
|
+
return n.useEffect(() => {
|
77
|
+
const a = (d) => {
|
78
|
+
if (d.target && !o.current) {
|
79
|
+
let v = function() {
|
80
|
+
F(
|
81
|
+
j,
|
82
|
+
i,
|
83
|
+
c,
|
84
|
+
{ discrete: !0 }
|
85
|
+
);
|
86
|
+
};
|
87
|
+
const c = { originalEvent: d };
|
88
|
+
d.pointerType === "touch" ? (e.removeEventListener("click", t.current), t.current = v, e.addEventListener("click", t.current, { once: !0 })) : v();
|
89
|
+
} else
|
90
|
+
e.removeEventListener("click", t.current);
|
91
|
+
o.current = !1;
|
92
|
+
}, l = window.setTimeout(() => {
|
93
|
+
e.addEventListener("pointerdown", a);
|
94
|
+
}, 0);
|
95
|
+
return () => {
|
96
|
+
window.clearTimeout(l), e.removeEventListener("pointerdown", a), e.removeEventListener("click", t.current);
|
97
|
+
};
|
98
|
+
}, [e, i]), {
|
99
|
+
// ensures we check React component tree (not just DOM tree)
|
100
|
+
onPointerDownCapture: () => o.current = !0
|
101
|
+
};
|
102
|
+
}
|
103
|
+
function G(r, e = globalThis == null ? void 0 : globalThis.document) {
|
104
|
+
const i = w(r), o = n.useRef(!1);
|
105
|
+
return n.useEffect(() => {
|
106
|
+
const t = (a) => {
|
107
|
+
a.target && !o.current && F(X, i, { originalEvent: a }, {
|
108
|
+
discrete: !1
|
109
|
+
});
|
110
|
+
};
|
111
|
+
return e.addEventListener("focusin", t), () => e.removeEventListener("focusin", t);
|
112
|
+
}, [e, i]), {
|
113
|
+
onFocusCapture: () => o.current = !0,
|
114
|
+
onBlurCapture: () => o.current = !1
|
115
|
+
};
|
116
|
+
}
|
117
|
+
function O() {
|
118
|
+
const r = new CustomEvent(y);
|
119
|
+
document.dispatchEvent(r);
|
120
|
+
}
|
121
|
+
function F(r, e, i, { discrete: o }) {
|
122
|
+
const t = i.originalEvent.target, a = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: i });
|
123
|
+
e && t.addEventListener(r, e, { once: !0 }), o ? z(t, a) : t.dispatchEvent(a);
|
124
|
+
}
|
125
|
+
var ee = x, te = S;
|
126
|
+
export {
|
127
|
+
te as Branch,
|
128
|
+
x as DismissableLayer,
|
129
|
+
S as DismissableLayerBranch,
|
130
|
+
ee as Root
|
131
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use client";
|
2
|
+
import * as r from "react";
|
3
|
+
import m from "react-dom";
|
4
|
+
import { Primitive as c } 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 { useLayoutEffect as u } from "../../../../../@radix-ui_react-use-layout-effect@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
6
|
+
import { jsx as l } from "react/jsx-runtime";
|
7
|
+
var p = "Portal", d = r.forwardRef((e, a) => {
|
8
|
+
var o;
|
9
|
+
const { container: i, ...n } = e, [s, f] = r.useState(!1);
|
10
|
+
u(() => f(!0), []);
|
11
|
+
const t = i || s && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
|
12
|
+
return t ? m.createPortal(/* @__PURE__ */ l(c.div, { ...n, ref: a }), t) : null;
|
13
|
+
});
|
14
|
+
d.displayName = p;
|
15
|
+
export {
|
16
|
+
d as Portal
|
17
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import * as s from "react";
|
2
|
+
import * as f from "react-dom";
|
3
|
+
import { Slot as p } from "../../../../../@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";
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
5
|
+
var c = [
|
6
|
+
"a",
|
7
|
+
"button",
|
8
|
+
"div",
|
9
|
+
"form",
|
10
|
+
"h2",
|
11
|
+
"h3",
|
12
|
+
"img",
|
13
|
+
"input",
|
14
|
+
"label",
|
15
|
+
"li",
|
16
|
+
"nav",
|
17
|
+
"ol",
|
18
|
+
"p",
|
19
|
+
"span",
|
20
|
+
"svg",
|
21
|
+
"ul"
|
22
|
+
], v = c.reduce((r, i) => {
|
23
|
+
const t = s.forwardRef((o, e) => {
|
24
|
+
const { asChild: m, ...a } = o, n = m ? p : i;
|
25
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...a, ref: e });
|
26
|
+
});
|
27
|
+
return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
|
28
|
+
}, {});
|
29
|
+
function h(r, i) {
|
30
|
+
r && f.flushSync(() => r.dispatchEvent(i));
|
31
|
+
}
|
32
|
+
export {
|
33
|
+
v as Primitive,
|
34
|
+
h as dispatchDiscreteCustomEvent
|
35
|
+
};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
"use client";
|
2
|
+
import * as c from "react";
|
3
|
+
import { createContextScope as $ } 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 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";
|
5
|
+
import { jsx as l } from "react/jsx-runtime";
|
6
|
+
var u = "Progress", d = 100, [h, C] = $(u), [R, _] = h(u), f = c.forwardRef(
|
7
|
+
(r, e) => {
|
8
|
+
const {
|
9
|
+
__scopeProgress: i,
|
10
|
+
value: o = null,
|
11
|
+
max: a,
|
12
|
+
getValueLabel: N = E,
|
13
|
+
...b
|
14
|
+
} = r;
|
15
|
+
(a || a === 0) && !v(a) && console.error(M(`${a}`, "Progress"));
|
16
|
+
const t = v(a) ? a : d;
|
17
|
+
o !== null && !p(o, t) && console.error(V(`${o}`, "Progress"));
|
18
|
+
const s = p(o, t) ? o : null, I = n(s) ? N(s, t) : void 0;
|
19
|
+
return /* @__PURE__ */ l(R, { scope: i, value: s, max: t, children: /* @__PURE__ */ l(
|
20
|
+
m.div,
|
21
|
+
{
|
22
|
+
"aria-valuemax": t,
|
23
|
+
"aria-valuemin": 0,
|
24
|
+
"aria-valuenow": n(s) ? s : void 0,
|
25
|
+
"aria-valuetext": I,
|
26
|
+
role: "progressbar",
|
27
|
+
"data-state": x(s, t),
|
28
|
+
"data-value": s ?? void 0,
|
29
|
+
"data-max": t,
|
30
|
+
...b,
|
31
|
+
ref: e
|
32
|
+
}
|
33
|
+
) });
|
34
|
+
}
|
35
|
+
);
|
36
|
+
f.displayName = u;
|
37
|
+
var g = "ProgressIndicator", P = c.forwardRef(
|
38
|
+
(r, e) => {
|
39
|
+
const { __scopeProgress: i, ...o } = r, a = _(g, i);
|
40
|
+
return /* @__PURE__ */ l(
|
41
|
+
m.div,
|
42
|
+
{
|
43
|
+
"data-state": x(a.value, a.max),
|
44
|
+
"data-value": a.value ?? void 0,
|
45
|
+
"data-max": a.max,
|
46
|
+
...o,
|
47
|
+
ref: e
|
48
|
+
}
|
49
|
+
);
|
50
|
+
}
|
51
|
+
);
|
52
|
+
P.displayName = g;
|
53
|
+
function E(r, e) {
|
54
|
+
return `${Math.round(r / e * 100)}%`;
|
55
|
+
}
|
56
|
+
function x(r, e) {
|
57
|
+
return r == null ? "indeterminate" : r === e ? "complete" : "loading";
|
58
|
+
}
|
59
|
+
function n(r) {
|
60
|
+
return typeof r == "number";
|
61
|
+
}
|
62
|
+
function v(r) {
|
63
|
+
return n(r) && !isNaN(r) && r > 0;
|
64
|
+
}
|
65
|
+
function p(r, e) {
|
66
|
+
return n(r) && !isNaN(r) && r <= e && r >= 0;
|
67
|
+
}
|
68
|
+
function M(r, e) {
|
69
|
+
return `Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`;
|
70
|
+
}
|
71
|
+
function V(r, e) {
|
72
|
+
return `Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
|
73
|
+
- a positive number
|
74
|
+
- less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
|
75
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
76
|
+
|
77
|
+
Defaulting to \`null\`.`;
|
78
|
+
}
|
79
|
+
var D = f, L = P;
|
80
|
+
export {
|
81
|
+
L as Indicator,
|
82
|
+
f as Progress,
|
83
|
+
P as ProgressIndicator,
|
84
|
+
D as Root,
|
85
|
+
C as createProgressScope
|
86
|
+
};
|