@worldcoin/mini-apps-ui-kit-react 1.2.4 → 1.3.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/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/CircularIcon/CircularIcon.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/CountryDrawer/CountryDrawer.js +1 -1
- package/dist/components/CountryDrawer/useCountryFiltering.js +1 -1
- package/dist/components/CountryDrawer/useCountryGrouping.js +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Haptic/Haptic.js +1 -1
- package/dist/components/OTPField/OTPField.js +1 -1
- package/dist/components/PhoneField/PhoneField.js +1 -1
- package/dist/components/PhoneField/utils.js +1 -1
- package/dist/components/Pill/Pill.js +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/components/SafeAreaView/SafeAreaView.d.ts +21 -0
- package/dist/components/SafeAreaView/SafeAreaView.js +21 -0
- package/dist/components/SafeAreaView/index.d.ts +2 -0
- package/dist/components/SafeAreaView/useSafeAreaInsets.d.ts +7 -0
- package/dist/components/SafeAreaView/useSafeAreaInsets.js +8 -0
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/lib/haptics.d.ts +1 -10
- package/dist/node_modules/.pnpm/{@floating-ui_core@1.6.8 → @floating-ui_core@1.7.2}/node_modules/@floating-ui/core/dist/floating-ui.core.js +18 -12
- package/dist/node_modules/.pnpm/{@floating-ui_dom@1.6.12 → @floating-ui_dom@1.7.2}/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +22 -8
- package/dist/node_modules/.pnpm/{@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1__react@18.3.1 → @floating-ui_react-dom@2.1.4_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +7 -4
- package/dist/node_modules/.pnpm/{@floating-ui_utils@0.2.8 → @floating-ui_utils@0.2.10}/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +13 -6
- package/dist/node_modules/.pnpm/{@floating-ui_utils@0.2.8 → @floating-ui_utils@0.2.10}/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +9 -8
- package/dist/node_modules/.pnpm/{@radix-ui_react-arrow@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_wfj52omijboqejc6zhpwkjvyjq → @radix-ui_react-arrow@1.1.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3.2_ppizsnczyvrxy2jwwginhmbjbi}/node_modules/@radix-ui/react-arrow/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.3.2_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18._hxkgakiv4lbc3e4ney2qd3uwtu/node_modules/@radix-ui/react-checkbox/dist/index.js +281 -0
- package/dist/node_modules/.pnpm/{@radix-ui_react-collection@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_du3umibpgknzrmwryvhzp3lgou → @radix-ui_react-collection@1.1.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@1_g2rahi25b6vuxt66qpykugaxdq}/node_modules/@radix-ui/react-collection/dist/index.js +7 -5
- package/dist/node_modules/.pnpm/{@radix-ui_react-dialog@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._vurlugjqrhlu53o6edaj3yx2bq → @radix-ui_react-dialog@1.1.14_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3_skdkbhdoafm46nddrsexoqxvsa}/node_modules/@radix-ui/react-dialog/dist/index.js +19 -17
- 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 → @radix-ui_react-dismissable-layer@1.1.10_@types_react-dom@18.3.7_@types_react@18.3.23__@types_ed6g35xmswrdo4rpjcoc2ylqq4}/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/{@radix-ui_react-focus-scope@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_4owg5o3kd7femmpae5yic5inii → @radix-ui_react-focus-scope@1.1.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@_2fbc3wi7jfrrglulhiq3cho3yi}/node_modules/@radix-ui/react-focus-scope/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/{@radix-ui_react-form@0.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_z32yjmfa36dn2egycaeb5u52lm → @radix-ui_react-form@0.1.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3.23_apkqp66vvdcqkpglsoqjb3qdve}/node_modules/@radix-ui/react-form/dist/index.js +7 -7
- package/dist/node_modules/.pnpm/{@radix-ui_react-id@1.1.0_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-id@1.1.1_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-id/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@radix-ui_react-label@2.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_qr7n7ocfbwauilv6obluyms2qy → @radix-ui_react-label@2.1.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3.2_lbzigta2mnq6k7i6lbdxjopqzu}/node_modules/@radix-ui/react-label/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@radix-ui_react-popper@1.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._z2gu7tymhfvx6ebd6lqqykecmq → @radix-ui_react-popper@1.2.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3._wwc252xynq3agan6q2g4prz53u}/node_modules/@radix-ui/react-popper/dist/index.js +9 -9
- package/dist/node_modules/.pnpm/{@radix-ui_react-portal@1.1.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._jmui37rk6fvzofztyauznikgpi → @radix-ui_react-portal@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3._vj5bwhvxp26kuufjjrp4d4yqwm}/node_modules/@radix-ui/react-portal/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@radix-ui_react-presence@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._pqwkltkxenlrsgmgun6icjiigu → @radix-ui_react-presence@1.1.4_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18._mcnf744msur4vp7w5dm65hzhsi}/node_modules/@radix-ui/react-presence/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/{@radix-ui_react-primitive@2.0.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sspjpiczol7qxzbuuyfihuep4u → @radix-ui_react-primitive@2.1.3_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18_ujcax4x2btumxxy334cxx2hjfq}/node_modules/@radix-ui/react-primitive/dist/index.js +3 -1
- 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 → @radix-ui_react-progress@1.1.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18._sjnakivefrkfebui63vvxznhwi}/node_modules/@radix-ui/react-progress/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@radix-ui_react-radio-group@1.2.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_2u6lfd2xt65wmbxn7lgvaxqbmy → @radix-ui_react-radio-group@1.3.7_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@_5d2dyspydcbyvcln5sgvi5rqn4}/node_modules/@radix-ui/react-radio-group/dist/index.js +64 -49
- package/dist/node_modules/.pnpm/{@radix-ui_react-roving-focus@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react_bkbd3syfptkiebtjifbhjosaba → @radix-ui_react-roving-focus@1.1.10_@types_react-dom@18.3.7_@types_react@18.3.23__@types_reac_fkad3ywkl2psdzndyckeemdxa4}/node_modules/@radix-ui/react-roving-focus/dist/index.js +17 -14
- package/dist/node_modules/.pnpm/{@radix-ui_react-select@2.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._atdh45n5c7sked5b6tbwgdz7re → @radix-ui_react-select@2.2.5_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3._ayy2jyj2jwk25cmitaj3rv7g4i}/node_modules/@radix-ui/react-select/dist/index.js +47 -35
- package/dist/node_modules/.pnpm/{@radix-ui_react-slot@1.2.0_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-slot@1.2.3_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-slot/dist/index.js +6 -2
- package/dist/node_modules/.pnpm/{@radix-ui_react-switch@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._udl6ccyllphugejc6sszfrese4 → @radix-ui_react-switch@1.2.5_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3._gdbycdgdwiviepytqhsfczir6a}/node_modules/@radix-ui/react-switch/dist/index.js +61 -46
- 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 → @radix-ui_react-toast@1.2.14_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3._ltalqimxfmxlfy2fx7azj2iwea}/node_modules/@radix-ui/react-toast/dist/index.js +17 -16
- 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 → @radix-ui_react-toggle-group@1.1.10_@types_react-dom@18.3.7_@types_react@18.3.23__@types_reac_axpqujuwkbdyymhoqfwbg5slyu}/node_modules/@radix-ui/react-toggle-group/dist/index.js +14 -12
- 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 → @radix-ui_react-toggle@1.1.9_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3._4jbroaz6kxjbrczfvrtrmrh5vy}/node_modules/@radix-ui/react-toggle/dist/index.js +7 -6
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@18.3.23_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +71 -0
- package/dist/node_modules/.pnpm/{@radix-ui_react-use-escape-keydown@1.1.0_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-use-escape-keydown@1.1.1_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@18.3.23_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/{@radix-ui_react-use-size@1.1.0_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-use-size@1.1.1_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-use-size/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@18.3.7_@types_react@18.3.23__@types_re_ai4rarwltg7o2u2yozjp5gcjt4/node_modules/@radix-ui/react-visually-hidden/dist/index.js +34 -0
- package/dist/node_modules/.pnpm/{aria-hidden@1.2.4 → aria-hidden@1.2.6}/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/.pnpm/{input-otp@1.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1 → input-otp@1.4.2_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/input-otp/dist/index.js +13 -13
- package/dist/node_modules/.pnpm/{react-international-phone@4.4.0_react@18.3.1 → react-international-phone@4.5.0_react@18.3.1}/node_modules/react-international-phone/dist/index.js +36 -36
- package/dist/node_modules/.pnpm/{react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1 → react-remove-scroll-bar@2.3.8_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll-bar/dist/es2015/component.js +1 -1
- package/dist/node_modules/.pnpm/{react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1 → react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +4 -4
- package/dist/node_modules/.pnpm/{react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1 → react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll/dist/es2015/UI.js +4 -4
- package/dist/node_modules/.pnpm/{react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1 → react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +7 -7
- package/dist/node_modules/.pnpm/{react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1 → react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll/dist/es2015/medium.js +1 -1
- package/dist/node_modules/.pnpm/{react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1 → react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll/dist/es2015/sidecar.js +1 -1
- package/dist/node_modules/.pnpm/{vaul@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_react-dom@18.3._7iqkcrcg5qjc3n2ixm6rnrnx3e → vaul@1.1.2_@types_react-dom@18.3.7_@types_react@18.3.23__@types_react@18.3.23_react-dom@18.3._hck6bgtscpcdlplcvchrs7yfhu}/node_modules/vaul/dist/index.js +2 -30
- package/package.json +8 -4
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.1.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._5vtvszwgvdmnkk62ia2dob365m/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -162
- 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 +0 -69
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -35
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types__ejthwt4vwbnzwtfufv7q3bddiy/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -213
- 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 +0 -19
- 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 +0 -41
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_ecf5vqfgocrxupsewlhf3pl374/node_modules/@radix-ui/react-primitive/dist/index.js +0 -38
- 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 +0 -225
- package/dist/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 +0 -82
- 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 +0 -82
- package/dist/node_modules/.pnpm/@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 +0 -45
- package/dist/node_modules/.pnpm/@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 +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_m7thze522i3jfpb2tnge6dybgi/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -33
- 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 +0 -33
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_cidkwodbmpmiwtvvmizcw56fem/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -33
- /package/dist/node_modules/.pnpm/{@radix-ui_number@1.1.0 → @radix-ui_number@1.1.1}/node_modules/@radix-ui/number/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@radix-ui_primitive@1.1.1 → @radix-ui_primitive@1.1.2}/node_modules/@radix-ui/primitive/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-compose-refs@1.1.2_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@radix-ui_react-context@1.1.1_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-context@1.1.2_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-context/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@radix-ui_react-direction@1.1.0_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-direction@1.1.1_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-direction/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@radix-ui_react-focus-guards@1.1.1_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-focus-guards@1.1.2_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@radix-ui_react-use-callback-ref@1.1.0_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-use-callback-ref@1.1.1_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@radix-ui_react-use-previous@1.1.0_@types_react@18.3.18_react@18.3.1 → @radix-ui_react-use-previous@1.1.1_@types_react@18.3.23_react@18.3.1}/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1 → react-remove-scroll-bar@2.3.8_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1 → react-remove-scroll-bar@2.3.8_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -0
- /package/dist/node_modules/.pnpm/{react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1 → react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -0
- /package/dist/node_modules/.pnpm/{react-remove-scroll@2.6.2_@types_react@18.3.18_react@18.3.1 → react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1}/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -0
- /package/dist/node_modules/.pnpm/{react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1 → react-style-singleton@2.2.3_@types_react@18.3.23_react@18.3.1}/node_modules/react-style-singleton/dist/es2015/component.js +0 -0
- /package/dist/node_modules/.pnpm/{react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1 → react-style-singleton@2.2.3_@types_react@18.3.23_react@18.3.1}/node_modules/react-style-singleton/dist/es2015/hook.js +0 -0
- /package/dist/node_modules/.pnpm/{react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1 → react-style-singleton@2.2.3_@types_react@18.3.23_react@18.3.1}/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -0
- /package/dist/node_modules/.pnpm/{use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1 → use-callback-ref@1.3.3_@types_react@18.3.23_react@18.3.1}/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -0
- /package/dist/node_modules/.pnpm/{use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1 → use-callback-ref@1.3.3_@types_react@18.3.23_react@18.3.1}/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -0
- /package/dist/node_modules/.pnpm/{use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1 → use-callback-ref@1.3.3_@types_react@18.3.23_react@18.3.1}/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -0
- /package/dist/node_modules/.pnpm/{use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1 → use-sidecar@1.1.3_@types_react@18.3.23_react@18.3.1}/node_modules/use-sidecar/dist/es2015/exports.js +0 -0
- /package/dist/node_modules/.pnpm/{use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1 → use-sidecar@1.1.3_@types_react@18.3.23_react@18.3.1}/node_modules/use-sidecar/dist/es2015/medium.js +0 -0
@@ -1,162 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as React from "react";
|
3
|
-
import { useComposedRefs } 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";
|
4
|
-
import { createContextScope } 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";
|
5
|
-
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js";
|
6
|
-
import { useControllableState } 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";
|
7
|
-
import { usePrevious } from "../../../../../@radix-ui_react-use-previous@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js";
|
8
|
-
import { useSize } from "../../../../../@radix-ui_react-use-size@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.js";
|
9
|
-
import { Presence } from "../../../../../@radix-ui_react-presence@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._pqwkltkxenlrsgmgun6icjiigu/node_modules/@radix-ui/react-presence/dist/index.js";
|
10
|
-
import { Primitive } from "../../../../../@radix-ui_react-primitive@2.0.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sspjpiczol7qxzbuuyfihuep4u/node_modules/@radix-ui/react-primitive/dist/index.js";
|
11
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
12
|
-
var CHECKBOX_NAME = "Checkbox";
|
13
|
-
var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
|
14
|
-
var [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
15
|
-
var Checkbox = React.forwardRef(
|
16
|
-
(props, forwardedRef) => {
|
17
|
-
const {
|
18
|
-
__scopeCheckbox,
|
19
|
-
name,
|
20
|
-
checked: checkedProp,
|
21
|
-
defaultChecked,
|
22
|
-
required,
|
23
|
-
disabled,
|
24
|
-
value = "on",
|
25
|
-
onCheckedChange,
|
26
|
-
form,
|
27
|
-
...checkboxProps
|
28
|
-
} = props;
|
29
|
-
const [button, setButton] = React.useState(null);
|
30
|
-
const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
|
31
|
-
const hasConsumerStoppedPropagationRef = React.useRef(false);
|
32
|
-
const isFormControl = button ? form || !!button.closest("form") : true;
|
33
|
-
const [checked = false, setChecked] = useControllableState({
|
34
|
-
prop: checkedProp,
|
35
|
-
defaultProp: defaultChecked,
|
36
|
-
onChange: onCheckedChange
|
37
|
-
});
|
38
|
-
const initialCheckedStateRef = React.useRef(checked);
|
39
|
-
React.useEffect(() => {
|
40
|
-
const form2 = button == null ? void 0 : button.form;
|
41
|
-
if (form2) {
|
42
|
-
const reset = () => setChecked(initialCheckedStateRef.current);
|
43
|
-
form2.addEventListener("reset", reset);
|
44
|
-
return () => form2.removeEventListener("reset", reset);
|
45
|
-
}
|
46
|
-
}, [button, setChecked]);
|
47
|
-
return /* @__PURE__ */ jsxs(CheckboxProvider, { scope: __scopeCheckbox, state: checked, disabled, children: [
|
48
|
-
/* @__PURE__ */ jsx(
|
49
|
-
Primitive.button,
|
50
|
-
{
|
51
|
-
type: "button",
|
52
|
-
role: "checkbox",
|
53
|
-
"aria-checked": isIndeterminate(checked) ? "mixed" : checked,
|
54
|
-
"aria-required": required,
|
55
|
-
"data-state": getState(checked),
|
56
|
-
"data-disabled": disabled ? "" : void 0,
|
57
|
-
disabled,
|
58
|
-
value,
|
59
|
-
...checkboxProps,
|
60
|
-
ref: composedRefs,
|
61
|
-
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
62
|
-
if (event.key === "Enter") event.preventDefault();
|
63
|
-
}),
|
64
|
-
onClick: composeEventHandlers(props.onClick, (event) => {
|
65
|
-
setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);
|
66
|
-
if (isFormControl) {
|
67
|
-
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
68
|
-
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
69
|
-
}
|
70
|
-
})
|
71
|
-
}
|
72
|
-
),
|
73
|
-
isFormControl && /* @__PURE__ */ jsx(
|
74
|
-
BubbleInput,
|
75
|
-
{
|
76
|
-
control: button,
|
77
|
-
bubbles: !hasConsumerStoppedPropagationRef.current,
|
78
|
-
name,
|
79
|
-
value,
|
80
|
-
checked,
|
81
|
-
required,
|
82
|
-
disabled,
|
83
|
-
form,
|
84
|
-
style: { transform: "translateX(-100%)" },
|
85
|
-
defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked
|
86
|
-
}
|
87
|
-
)
|
88
|
-
] });
|
89
|
-
}
|
90
|
-
);
|
91
|
-
Checkbox.displayName = CHECKBOX_NAME;
|
92
|
-
var INDICATOR_NAME = "CheckboxIndicator";
|
93
|
-
var CheckboxIndicator = React.forwardRef(
|
94
|
-
(props, forwardedRef) => {
|
95
|
-
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
96
|
-
const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
|
97
|
-
return /* @__PURE__ */ jsx(Presence, { present: forceMount || isIndeterminate(context.state) || context.state === true, children: /* @__PURE__ */ jsx(
|
98
|
-
Primitive.span,
|
99
|
-
{
|
100
|
-
"data-state": getState(context.state),
|
101
|
-
"data-disabled": context.disabled ? "" : void 0,
|
102
|
-
...indicatorProps,
|
103
|
-
ref: forwardedRef,
|
104
|
-
style: { pointerEvents: "none", ...props.style }
|
105
|
-
}
|
106
|
-
) });
|
107
|
-
}
|
108
|
-
);
|
109
|
-
CheckboxIndicator.displayName = INDICATOR_NAME;
|
110
|
-
var BubbleInput = (props) => {
|
111
|
-
const { control, checked, bubbles = true, defaultChecked, ...inputProps } = props;
|
112
|
-
const ref = React.useRef(null);
|
113
|
-
const prevChecked = usePrevious(checked);
|
114
|
-
const controlSize = useSize(control);
|
115
|
-
React.useEffect(() => {
|
116
|
-
const input = ref.current;
|
117
|
-
const inputProto = window.HTMLInputElement.prototype;
|
118
|
-
const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
|
119
|
-
const setChecked = descriptor.set;
|
120
|
-
if (prevChecked !== checked && setChecked) {
|
121
|
-
const event = new Event("click", { bubbles });
|
122
|
-
input.indeterminate = isIndeterminate(checked);
|
123
|
-
setChecked.call(input, isIndeterminate(checked) ? false : checked);
|
124
|
-
input.dispatchEvent(event);
|
125
|
-
}
|
126
|
-
}, [prevChecked, checked, bubbles]);
|
127
|
-
const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);
|
128
|
-
return /* @__PURE__ */ jsx(
|
129
|
-
"input",
|
130
|
-
{
|
131
|
-
type: "checkbox",
|
132
|
-
"aria-hidden": true,
|
133
|
-
defaultChecked: defaultChecked ?? defaultCheckedRef.current,
|
134
|
-
...inputProps,
|
135
|
-
tabIndex: -1,
|
136
|
-
ref,
|
137
|
-
style: {
|
138
|
-
...props.style,
|
139
|
-
...controlSize,
|
140
|
-
position: "absolute",
|
141
|
-
pointerEvents: "none",
|
142
|
-
opacity: 0,
|
143
|
-
margin: 0
|
144
|
-
}
|
145
|
-
}
|
146
|
-
);
|
147
|
-
};
|
148
|
-
function isIndeterminate(checked) {
|
149
|
-
return checked === "indeterminate";
|
150
|
-
}
|
151
|
-
function getState(checked) {
|
152
|
-
return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
153
|
-
}
|
154
|
-
var Root = Checkbox;
|
155
|
-
var Indicator = CheckboxIndicator;
|
156
|
-
export {
|
157
|
-
Checkbox,
|
158
|
-
CheckboxIndicator,
|
159
|
-
Indicator,
|
160
|
-
Root,
|
161
|
-
createCheckboxScope
|
162
|
-
};
|
@@ -1,69 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import React__default from "react";
|
3
|
-
import { createContextScope } 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 } 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 } 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 } from "react/jsx-runtime";
|
7
|
-
function createCollection(name) {
|
8
|
-
const PROVIDER_NAME = name + "CollectionProvider";
|
9
|
-
const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
|
10
|
-
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
11
|
-
PROVIDER_NAME,
|
12
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
13
|
-
);
|
14
|
-
const CollectionProvider = (props) => {
|
15
|
-
const { scope, children } = props;
|
16
|
-
const ref = React__default.useRef(null);
|
17
|
-
const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
|
18
|
-
return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
19
|
-
};
|
20
|
-
CollectionProvider.displayName = PROVIDER_NAME;
|
21
|
-
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
22
|
-
const CollectionSlot = React__default.forwardRef(
|
23
|
-
(props, forwardedRef) => {
|
24
|
-
const { scope, children } = props;
|
25
|
-
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
26
|
-
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
27
|
-
return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });
|
28
|
-
}
|
29
|
-
);
|
30
|
-
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
31
|
-
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
32
|
-
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
33
|
-
const CollectionItemSlot = React__default.forwardRef(
|
34
|
-
(props, forwardedRef) => {
|
35
|
-
const { scope, children, ...itemData } = props;
|
36
|
-
const ref = React__default.useRef(null);
|
37
|
-
const composedRefs = useComposedRefs(forwardedRef, ref);
|
38
|
-
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
39
|
-
React__default.useEffect(() => {
|
40
|
-
context.itemMap.set(ref, { ref, ...itemData });
|
41
|
-
return () => void context.itemMap.delete(ref);
|
42
|
-
});
|
43
|
-
return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
44
|
-
}
|
45
|
-
);
|
46
|
-
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
47
|
-
function useCollection(scope) {
|
48
|
-
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
49
|
-
const getItems = React__default.useCallback(() => {
|
50
|
-
const collectionNode = context.collectionRef.current;
|
51
|
-
if (!collectionNode) return [];
|
52
|
-
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
53
|
-
const items = Array.from(context.itemMap.values());
|
54
|
-
const orderedItems = items.sort(
|
55
|
-
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
56
|
-
);
|
57
|
-
return orderedItems;
|
58
|
-
}, [context.collectionRef, context.itemMap]);
|
59
|
-
return getItems;
|
60
|
-
}
|
61
|
-
return [
|
62
|
-
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
63
|
-
useCollection,
|
64
|
-
createCollectionScope
|
65
|
-
];
|
66
|
-
}
|
67
|
-
export {
|
68
|
-
createCollection
|
69
|
-
};
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import "react";
|
2
|
-
function setRef(ref, value) {
|
3
|
-
if (typeof ref === "function") {
|
4
|
-
return ref(value);
|
5
|
-
} else if (ref !== null && ref !== void 0) {
|
6
|
-
ref.current = value;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
function composeRefs(...refs) {
|
10
|
-
return (node) => {
|
11
|
-
let hasCleanup = false;
|
12
|
-
const cleanups = refs.map((ref) => {
|
13
|
-
const cleanup = setRef(ref, node);
|
14
|
-
if (!hasCleanup && typeof cleanup == "function") {
|
15
|
-
hasCleanup = true;
|
16
|
-
}
|
17
|
-
return cleanup;
|
18
|
-
});
|
19
|
-
if (hasCleanup) {
|
20
|
-
return () => {
|
21
|
-
for (let i = 0; i < cleanups.length; i++) {
|
22
|
-
const cleanup = cleanups[i];
|
23
|
-
if (typeof cleanup == "function") {
|
24
|
-
cleanup();
|
25
|
-
} else {
|
26
|
-
setRef(refs[i], null);
|
27
|
-
}
|
28
|
-
}
|
29
|
-
};
|
30
|
-
}
|
31
|
-
};
|
32
|
-
}
|
33
|
-
export {
|
34
|
-
composeRefs
|
35
|
-
};
|
@@ -1,213 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as React from "react";
|
3
|
-
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js";
|
4
|
-
import { Primitive, dispatchDiscreteCustomEvent } from "../../../../../@radix-ui_react-primitive@2.0.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sspjpiczol7qxzbuuyfihuep4u/node_modules/@radix-ui/react-primitive/dist/index.js";
|
5
|
-
import { useComposedRefs } 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 } 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 } 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 } from "react/jsx-runtime";
|
9
|
-
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
10
|
-
var CONTEXT_UPDATE = "dismissableLayer.update";
|
11
|
-
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
12
|
-
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
13
|
-
var originalBodyPointerEvents;
|
14
|
-
var DismissableLayerContext = React.createContext({
|
15
|
-
layers: /* @__PURE__ */ new Set(),
|
16
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
17
|
-
branches: /* @__PURE__ */ new Set()
|
18
|
-
});
|
19
|
-
var DismissableLayer = React.forwardRef(
|
20
|
-
(props, forwardedRef) => {
|
21
|
-
const {
|
22
|
-
disableOutsidePointerEvents = false,
|
23
|
-
onEscapeKeyDown,
|
24
|
-
onPointerDownOutside,
|
25
|
-
onFocusOutside,
|
26
|
-
onInteractOutside,
|
27
|
-
onDismiss,
|
28
|
-
...layerProps
|
29
|
-
} = props;
|
30
|
-
const context = React.useContext(DismissableLayerContext);
|
31
|
-
const [node, setNode] = React.useState(null);
|
32
|
-
const ownerDocument = (node == null ? void 0 : node.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document);
|
33
|
-
const [, force] = React.useState({});
|
34
|
-
const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
|
35
|
-
const layers = Array.from(context.layers);
|
36
|
-
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
37
|
-
const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
|
38
|
-
const index = node ? layers.indexOf(node) : -1;
|
39
|
-
const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
|
40
|
-
const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
41
|
-
const pointerDownOutside = usePointerDownOutside((event) => {
|
42
|
-
const target = event.target;
|
43
|
-
const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
|
44
|
-
if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
|
45
|
-
onPointerDownOutside == null ? void 0 : onPointerDownOutside(event);
|
46
|
-
onInteractOutside == null ? void 0 : onInteractOutside(event);
|
47
|
-
if (!event.defaultPrevented) onDismiss == null ? void 0 : onDismiss();
|
48
|
-
}, ownerDocument);
|
49
|
-
const focusOutside = useFocusOutside((event) => {
|
50
|
-
const target = event.target;
|
51
|
-
const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));
|
52
|
-
if (isFocusInBranch) return;
|
53
|
-
onFocusOutside == null ? void 0 : onFocusOutside(event);
|
54
|
-
onInteractOutside == null ? void 0 : onInteractOutside(event);
|
55
|
-
if (!event.defaultPrevented) onDismiss == null ? void 0 : onDismiss();
|
56
|
-
}, ownerDocument);
|
57
|
-
useEscapeKeydown((event) => {
|
58
|
-
const isHighestLayer = index === context.layers.size - 1;
|
59
|
-
if (!isHighestLayer) return;
|
60
|
-
onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(event);
|
61
|
-
if (!event.defaultPrevented && onDismiss) {
|
62
|
-
event.preventDefault();
|
63
|
-
onDismiss();
|
64
|
-
}
|
65
|
-
}, ownerDocument);
|
66
|
-
React.useEffect(() => {
|
67
|
-
if (!node) return;
|
68
|
-
if (disableOutsidePointerEvents) {
|
69
|
-
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
70
|
-
originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
|
71
|
-
ownerDocument.body.style.pointerEvents = "none";
|
72
|
-
}
|
73
|
-
context.layersWithOutsidePointerEventsDisabled.add(node);
|
74
|
-
}
|
75
|
-
context.layers.add(node);
|
76
|
-
dispatchUpdate();
|
77
|
-
return () => {
|
78
|
-
if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {
|
79
|
-
ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
|
80
|
-
}
|
81
|
-
};
|
82
|
-
}, [node, ownerDocument, disableOutsidePointerEvents, context]);
|
83
|
-
React.useEffect(() => {
|
84
|
-
return () => {
|
85
|
-
if (!node) return;
|
86
|
-
context.layers.delete(node);
|
87
|
-
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
88
|
-
dispatchUpdate();
|
89
|
-
};
|
90
|
-
}, [node, context]);
|
91
|
-
React.useEffect(() => {
|
92
|
-
const handleUpdate = () => force({});
|
93
|
-
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
94
|
-
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
95
|
-
}, []);
|
96
|
-
return /* @__PURE__ */ jsx(
|
97
|
-
Primitive.div,
|
98
|
-
{
|
99
|
-
...layerProps,
|
100
|
-
ref: composedRefs,
|
101
|
-
style: {
|
102
|
-
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
|
103
|
-
...props.style
|
104
|
-
},
|
105
|
-
onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
|
106
|
-
onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
|
107
|
-
onPointerDownCapture: composeEventHandlers(
|
108
|
-
props.onPointerDownCapture,
|
109
|
-
pointerDownOutside.onPointerDownCapture
|
110
|
-
)
|
111
|
-
}
|
112
|
-
);
|
113
|
-
}
|
114
|
-
);
|
115
|
-
DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
|
116
|
-
var BRANCH_NAME = "DismissableLayerBranch";
|
117
|
-
var DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {
|
118
|
-
const context = React.useContext(DismissableLayerContext);
|
119
|
-
const ref = React.useRef(null);
|
120
|
-
const composedRefs = useComposedRefs(forwardedRef, ref);
|
121
|
-
React.useEffect(() => {
|
122
|
-
const node = ref.current;
|
123
|
-
if (node) {
|
124
|
-
context.branches.add(node);
|
125
|
-
return () => {
|
126
|
-
context.branches.delete(node);
|
127
|
-
};
|
128
|
-
}
|
129
|
-
}, [context.branches]);
|
130
|
-
return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });
|
131
|
-
});
|
132
|
-
DismissableLayerBranch.displayName = BRANCH_NAME;
|
133
|
-
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
|
134
|
-
const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
|
135
|
-
const isPointerInsideReactTreeRef = React.useRef(false);
|
136
|
-
const handleClickRef = React.useRef(() => {
|
137
|
-
});
|
138
|
-
React.useEffect(() => {
|
139
|
-
const handlePointerDown = (event) => {
|
140
|
-
if (event.target && !isPointerInsideReactTreeRef.current) {
|
141
|
-
let handleAndDispatchPointerDownOutsideEvent2 = function() {
|
142
|
-
handleAndDispatchCustomEvent(
|
143
|
-
POINTER_DOWN_OUTSIDE,
|
144
|
-
handlePointerDownOutside,
|
145
|
-
eventDetail,
|
146
|
-
{ discrete: true }
|
147
|
-
);
|
148
|
-
};
|
149
|
-
const eventDetail = { originalEvent: event };
|
150
|
-
if (event.pointerType === "touch") {
|
151
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
152
|
-
handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
|
153
|
-
ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
|
154
|
-
} else {
|
155
|
-
handleAndDispatchPointerDownOutsideEvent2();
|
156
|
-
}
|
157
|
-
} else {
|
158
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
159
|
-
}
|
160
|
-
isPointerInsideReactTreeRef.current = false;
|
161
|
-
};
|
162
|
-
const timerId = window.setTimeout(() => {
|
163
|
-
ownerDocument.addEventListener("pointerdown", handlePointerDown);
|
164
|
-
}, 0);
|
165
|
-
return () => {
|
166
|
-
window.clearTimeout(timerId);
|
167
|
-
ownerDocument.removeEventListener("pointerdown", handlePointerDown);
|
168
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
169
|
-
};
|
170
|
-
}, [ownerDocument, handlePointerDownOutside]);
|
171
|
-
return {
|
172
|
-
// ensures we check React component tree (not just DOM tree)
|
173
|
-
onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
|
174
|
-
};
|
175
|
-
}
|
176
|
-
function useFocusOutside(onFocusOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
|
177
|
-
const handleFocusOutside = useCallbackRef(onFocusOutside);
|
178
|
-
const isFocusInsideReactTreeRef = React.useRef(false);
|
179
|
-
React.useEffect(() => {
|
180
|
-
const handleFocus = (event) => {
|
181
|
-
if (event.target && !isFocusInsideReactTreeRef.current) {
|
182
|
-
const eventDetail = { originalEvent: event };
|
183
|
-
handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
|
184
|
-
discrete: false
|
185
|
-
});
|
186
|
-
}
|
187
|
-
};
|
188
|
-
ownerDocument.addEventListener("focusin", handleFocus);
|
189
|
-
return () => ownerDocument.removeEventListener("focusin", handleFocus);
|
190
|
-
}, [ownerDocument, handleFocusOutside]);
|
191
|
-
return {
|
192
|
-
onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
|
193
|
-
onBlurCapture: () => isFocusInsideReactTreeRef.current = false
|
194
|
-
};
|
195
|
-
}
|
196
|
-
function dispatchUpdate() {
|
197
|
-
const event = new CustomEvent(CONTEXT_UPDATE);
|
198
|
-
document.dispatchEvent(event);
|
199
|
-
}
|
200
|
-
function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
201
|
-
const target = detail.originalEvent.target;
|
202
|
-
const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });
|
203
|
-
if (handler) target.addEventListener(name, handler, { once: true });
|
204
|
-
if (discrete) {
|
205
|
-
dispatchDiscreteCustomEvent(target, event);
|
206
|
-
} else {
|
207
|
-
target.dispatchEvent(event);
|
208
|
-
}
|
209
|
-
}
|
210
|
-
export {
|
211
|
-
DismissableLayer,
|
212
|
-
DismissableLayerBranch
|
213
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as React from "react";
|
3
|
-
import ReactDOM__default from "react-dom";
|
4
|
-
import { Primitive } 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 useLayoutEffect2 } 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 } from "react/jsx-runtime";
|
7
|
-
var PORTAL_NAME = "Portal";
|
8
|
-
var Portal = React.forwardRef((props, forwardedRef) => {
|
9
|
-
var _a;
|
10
|
-
const { container: containerProp, ...portalProps } = props;
|
11
|
-
const [mounted, setMounted] = React.useState(false);
|
12
|
-
useLayoutEffect2(() => setMounted(true), []);
|
13
|
-
const container = containerProp || mounted && ((_a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : _a.body);
|
14
|
-
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
15
|
-
});
|
16
|
-
Portal.displayName = PORTAL_NAME;
|
17
|
-
export {
|
18
|
-
Portal
|
19
|
-
};
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import * as ReactDOM from "react-dom";
|
3
|
-
import { Slot } 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 } from "react/jsx-runtime";
|
5
|
-
var NODES = [
|
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
|
-
];
|
23
|
-
var Primitive = NODES.reduce((primitive, node) => {
|
24
|
-
const Node = React.forwardRef((props, forwardedRef) => {
|
25
|
-
const { asChild, ...primitiveProps } = props;
|
26
|
-
const Comp = asChild ? Slot : node;
|
27
|
-
if (typeof window !== "undefined") {
|
28
|
-
window[Symbol.for("radix-ui")] = true;
|
29
|
-
}
|
30
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
31
|
-
});
|
32
|
-
Node.displayName = `Primitive.${node}`;
|
33
|
-
return { ...primitive, [node]: Node };
|
34
|
-
}, {});
|
35
|
-
function dispatchDiscreteCustomEvent(target, event) {
|
36
|
-
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
37
|
-
}
|
38
|
-
export {
|
39
|
-
Primitive,
|
40
|
-
dispatchDiscreteCustomEvent
|
41
|
-
};
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import "react-dom";
|
3
|
-
import { createSlot } from "../../../../../@radix-ui_react-slot@1.2.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js";
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
5
|
-
var NODES = [
|
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
|
-
];
|
23
|
-
var Primitive = NODES.reduce((primitive, node) => {
|
24
|
-
const Slot = createSlot(`Primitive.${node}`);
|
25
|
-
const Node = React.forwardRef((props, forwardedRef) => {
|
26
|
-
const { asChild, ...primitiveProps } = props;
|
27
|
-
const Comp = asChild ? Slot : node;
|
28
|
-
if (typeof window !== "undefined") {
|
29
|
-
window[Symbol.for("radix-ui")] = true;
|
30
|
-
}
|
31
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
32
|
-
});
|
33
|
-
Node.displayName = `Primitive.${node}`;
|
34
|
-
return { ...primitive, [node]: Node };
|
35
|
-
}, {});
|
36
|
-
export {
|
37
|
-
Primitive
|
38
|
-
};
|