@worldcoin/mini-apps-ui-kit-react 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 -3
- 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 +0 -9
- 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,12 +1,12 @@
|
|
1
1
|
"use client";
|
2
2
|
import * as React from "react";
|
3
|
-
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.
|
4
|
-
import { useComposedRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.
|
5
|
-
import { createContextScope } from "../../../../../@radix-ui_react-context@1.1.
|
6
|
-
import { useControllableState } from "../../../../../@radix-ui_react-use-controllable-state@1.
|
7
|
-
import { usePrevious } from "../../../../../@radix-ui_react-use-previous@1.1.
|
8
|
-
import { useSize } from "../../../../../@radix-ui_react-use-size@1.1.
|
9
|
-
import { Primitive } from "../../../../../@radix-ui_react-primitive@2.
|
3
|
+
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js";
|
4
|
+
import { useComposedRefs } from "../../../../../@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";
|
5
|
+
import { createContextScope } from "../../../../../@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";
|
6
|
+
import { useControllableState } from "../../../../../@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";
|
7
|
+
import { usePrevious } from "../../../../../@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";
|
8
|
+
import { useSize } from "../../../../../@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";
|
9
|
+
import { Primitive } from "../../../../../@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";
|
10
10
|
import { jsxs, jsx } from "react/jsx-runtime";
|
11
11
|
var SWITCH_NAME = "Switch";
|
12
12
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
@@ -29,10 +29,11 @@ var Switch = React.forwardRef(
|
|
29
29
|
const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
|
30
30
|
const hasConsumerStoppedPropagationRef = React.useRef(false);
|
31
31
|
const isFormControl = button ? form || !!button.closest("form") : true;
|
32
|
-
const [checked
|
32
|
+
const [checked, setChecked] = useControllableState({
|
33
33
|
prop: checkedProp,
|
34
|
-
defaultProp: defaultChecked,
|
35
|
-
onChange: onCheckedChange
|
34
|
+
defaultProp: defaultChecked ?? false,
|
35
|
+
onChange: onCheckedChange,
|
36
|
+
caller: SWITCH_NAME
|
36
37
|
});
|
37
38
|
return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [
|
38
39
|
/* @__PURE__ */ jsx(
|
@@ -58,7 +59,7 @@ var Switch = React.forwardRef(
|
|
58
59
|
}
|
59
60
|
),
|
60
61
|
isFormControl && /* @__PURE__ */ jsx(
|
61
|
-
|
62
|
+
SwitchBubbleInput,
|
62
63
|
{
|
63
64
|
control: button,
|
64
65
|
bubbles: !hasConsumerStoppedPropagationRef.current,
|
@@ -92,42 +93,56 @@ var SwitchThumb = React.forwardRef(
|
|
92
93
|
}
|
93
94
|
);
|
94
95
|
SwitchThumb.displayName = THUMB_NAME;
|
95
|
-
var
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
const
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
...props.style,
|
122
|
-
...controlSize,
|
123
|
-
position: "absolute",
|
124
|
-
pointerEvents: "none",
|
125
|
-
opacity: 0,
|
126
|
-
margin: 0
|
96
|
+
var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
|
97
|
+
var SwitchBubbleInput = React.forwardRef(
|
98
|
+
({
|
99
|
+
__scopeSwitch,
|
100
|
+
control,
|
101
|
+
checked,
|
102
|
+
bubbles = true,
|
103
|
+
...props
|
104
|
+
}, forwardedRef) => {
|
105
|
+
const ref = React.useRef(null);
|
106
|
+
const composedRefs = useComposedRefs(ref, forwardedRef);
|
107
|
+
const prevChecked = usePrevious(checked);
|
108
|
+
const controlSize = useSize(control);
|
109
|
+
React.useEffect(() => {
|
110
|
+
const input = ref.current;
|
111
|
+
if (!input) return;
|
112
|
+
const inputProto = window.HTMLInputElement.prototype;
|
113
|
+
const descriptor = Object.getOwnPropertyDescriptor(
|
114
|
+
inputProto,
|
115
|
+
"checked"
|
116
|
+
);
|
117
|
+
const setChecked = descriptor.set;
|
118
|
+
if (prevChecked !== checked && setChecked) {
|
119
|
+
const event = new Event("click", { bubbles });
|
120
|
+
setChecked.call(input, checked);
|
121
|
+
input.dispatchEvent(event);
|
127
122
|
}
|
128
|
-
}
|
129
|
-
|
130
|
-
|
123
|
+
}, [prevChecked, checked, bubbles]);
|
124
|
+
return /* @__PURE__ */ jsx(
|
125
|
+
"input",
|
126
|
+
{
|
127
|
+
type: "checkbox",
|
128
|
+
"aria-hidden": true,
|
129
|
+
defaultChecked: checked,
|
130
|
+
...props,
|
131
|
+
tabIndex: -1,
|
132
|
+
ref: composedRefs,
|
133
|
+
style: {
|
134
|
+
...props.style,
|
135
|
+
...controlSize,
|
136
|
+
position: "absolute",
|
137
|
+
pointerEvents: "none",
|
138
|
+
opacity: 0,
|
139
|
+
margin: 0
|
140
|
+
}
|
141
|
+
}
|
142
|
+
);
|
143
|
+
}
|
144
|
+
);
|
145
|
+
SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
131
146
|
function getState(checked) {
|
132
147
|
return checked ? "checked" : "unchecked";
|
133
148
|
}
|
@@ -1,19 +1,19 @@
|
|
1
1
|
"use client";
|
2
2
|
import * as React from "react";
|
3
3
|
import * as ReactDOM from "react-dom";
|
4
|
-
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.
|
5
|
-
import { useComposedRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.
|
6
|
-
import { createCollection } from "../../../../../@radix-ui_react-collection@1.1.
|
7
|
-
import { createContextScope } from "../../../../../@radix-ui_react-context@1.1.
|
8
|
-
import {
|
9
|
-
import { Portal } from "../../../../../@radix-ui_react-portal@1.1.
|
10
|
-
import { Presence } from "../../../../../@radix-ui_react-presence@1.1.
|
11
|
-
import { Primitive, dispatchDiscreteCustomEvent } from "../../../../../@radix-ui_react-primitive@2.
|
12
|
-
import { useCallbackRef } from "../../../../../@radix-ui_react-use-callback-ref@1.1.
|
13
|
-
import { useControllableState } from "../../../../../@radix-ui_react-use-controllable-state@1.
|
14
|
-
import { useLayoutEffect as useLayoutEffect2 } from "../../../../../@radix-ui_react-use-layout-effect@1.1.
|
15
|
-
import { VisuallyHidden } from "../../../../../@radix-ui_react-visually-hidden@1.
|
16
|
-
import {
|
4
|
+
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js";
|
5
|
+
import { useComposedRefs } from "../../../../../@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";
|
6
|
+
import { createCollection } from "../../../../../@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
|
+
import { createContextScope } from "../../../../../@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";
|
8
|
+
import { Root, Branch } from "../../../../../@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";
|
9
|
+
import { Portal } from "../../../../../@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";
|
10
|
+
import { Presence } from "../../../../../@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";
|
11
|
+
import { Primitive, dispatchDiscreteCustomEvent } from "../../../../../@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";
|
12
|
+
import { useCallbackRef } from "../../../../../@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";
|
13
|
+
import { useControllableState } from "../../../../../@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";
|
14
|
+
import { useLayoutEffect as useLayoutEffect2 } from "../../../../../@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";
|
15
|
+
import { VisuallyHidden } from "../../../../../@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";
|
16
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
17
17
|
var PROVIDER_NAME = "ToastProvider";
|
18
18
|
var [Collection, useCollection, createCollectionScope] = createCollection("Toast");
|
19
19
|
var [createToastContext, createToastScope] = createContextScope("Toast", [createCollectionScope]);
|
@@ -241,10 +241,11 @@ var TOAST_SWIPE_END = "toast.swipeEnd";
|
|
241
241
|
var Toast = React.forwardRef(
|
242
242
|
(props, forwardedRef) => {
|
243
243
|
const { forceMount, open: openProp, defaultOpen, onOpenChange, ...toastProps } = props;
|
244
|
-
const [open
|
244
|
+
const [open, setOpen] = useControllableState({
|
245
245
|
prop: openProp,
|
246
|
-
defaultProp: defaultOpen,
|
247
|
-
onChange: onOpenChange
|
246
|
+
defaultProp: defaultOpen ?? true,
|
247
|
+
onChange: onOpenChange,
|
248
|
+
caller: TOAST_NAME
|
248
249
|
});
|
249
250
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx(
|
250
251
|
ToastImpl,
|
@@ -1,11 +1,11 @@
|
|
1
1
|
"use client";
|
2
2
|
import React__default from "react";
|
3
|
-
import { createContextScope } from "../../../../../@radix-ui_react-context@1.1.
|
4
|
-
import { Primitive } from "../../../../../@radix-ui_react-primitive@2.
|
5
|
-
import { createRovingFocusGroupScope,
|
6
|
-
import { Toggle } from "../../../../../@radix-ui_react-toggle@1.1.
|
7
|
-
import { useControllableState } from "../../../../../@radix-ui_react-use-controllable-state@1.
|
8
|
-
import { useDirection } from "../../../../../@radix-ui_react-direction@1.1.
|
3
|
+
import { createContextScope } from "../../../../../@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";
|
4
|
+
import { Primitive } from "../../../../../@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";
|
5
|
+
import { createRovingFocusGroupScope, Item, Root } from "../../../../../@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";
|
6
|
+
import { Toggle } from "../../../../../@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
|
+
import { useControllableState } from "../../../../../@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";
|
8
|
+
import { useDirection } from "../../../../../@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";
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
10
10
|
var TOGGLE_GROUP_NAME = "ToggleGroup";
|
11
11
|
var [createToggleGroupContext, createToggleGroupScope] = createContextScope(TOGGLE_GROUP_NAME, [
|
@@ -36,15 +36,16 @@ var ToggleGroupImplSingle = React__default.forwardRef((props, forwardedRef) => {
|
|
36
36
|
} = props;
|
37
37
|
const [value, setValue] = useControllableState({
|
38
38
|
prop: valueProp,
|
39
|
-
defaultProp: defaultValue,
|
40
|
-
onChange: onValueChange
|
39
|
+
defaultProp: defaultValue ?? "",
|
40
|
+
onChange: onValueChange,
|
41
|
+
caller: TOGGLE_GROUP_NAME
|
41
42
|
});
|
42
43
|
return /* @__PURE__ */ jsx(
|
43
44
|
ToggleGroupValueProvider,
|
44
45
|
{
|
45
46
|
scope: props.__scopeToggleGroup,
|
46
47
|
type: "single",
|
47
|
-
value: value ? [value] : [],
|
48
|
+
value: React__default.useMemo(() => value ? [value] : [], [value]),
|
48
49
|
onItemActivate: setValue,
|
49
50
|
onItemDeactivate: React__default.useCallback(() => setValue(""), [setValue]),
|
50
51
|
children: /* @__PURE__ */ jsx(ToggleGroupImpl, { ...toggleGroupSingleProps, ref: forwardedRef })
|
@@ -59,10 +60,11 @@ var ToggleGroupImplMultiple = React__default.forwardRef((props, forwardedRef) =>
|
|
59
60
|
},
|
60
61
|
...toggleGroupMultipleProps
|
61
62
|
} = props;
|
62
|
-
const [value
|
63
|
+
const [value, setValue] = useControllableState({
|
63
64
|
prop: valueProp,
|
64
|
-
defaultProp: defaultValue,
|
65
|
-
onChange: onValueChange
|
65
|
+
defaultProp: defaultValue ?? [],
|
66
|
+
onChange: onValueChange,
|
67
|
+
caller: TOGGLE_GROUP_NAME
|
66
68
|
});
|
67
69
|
const handleButtonActivate = React__default.useCallback(
|
68
70
|
(itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
|
@@ -1,16 +1,17 @@
|
|
1
1
|
"use client";
|
2
2
|
import * as React from "react";
|
3
|
-
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.
|
4
|
-
import { useControllableState } from "../../../../../@radix-ui_react-use-controllable-state@1.
|
5
|
-
import { Primitive } from "../../../../../@radix-ui_react-primitive@2.
|
3
|
+
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js";
|
4
|
+
import { useControllableState } from "../../../../../@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";
|
5
|
+
import { Primitive } from "../../../../../@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";
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
7
7
|
var NAME = "Toggle";
|
8
8
|
var Toggle = React.forwardRef((props, forwardedRef) => {
|
9
|
-
const { pressed: pressedProp, defaultPressed
|
10
|
-
const [pressed
|
9
|
+
const { pressed: pressedProp, defaultPressed, onPressedChange, ...buttonProps } = props;
|
10
|
+
const [pressed, setPressed] = useControllableState({
|
11
11
|
prop: pressedProp,
|
12
12
|
onChange: onPressedChange,
|
13
|
-
defaultProp: defaultPressed
|
13
|
+
defaultProp: defaultPressed ?? false,
|
14
|
+
caller: NAME
|
14
15
|
});
|
15
16
|
return /* @__PURE__ */ jsx(
|
16
17
|
Primitive.button,
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { useLayoutEffect as useLayoutEffect2 } from "../../../../../@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";
|
3
|
+
var useInsertionEffect = React[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
4
|
+
function useControllableState({
|
5
|
+
prop,
|
6
|
+
defaultProp,
|
7
|
+
onChange = () => {
|
8
|
+
},
|
9
|
+
caller
|
10
|
+
}) {
|
11
|
+
const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
|
12
|
+
defaultProp,
|
13
|
+
onChange
|
14
|
+
});
|
15
|
+
const isControlled = prop !== void 0;
|
16
|
+
const value = isControlled ? prop : uncontrolledProp;
|
17
|
+
{
|
18
|
+
const isControlledRef = React.useRef(prop !== void 0);
|
19
|
+
React.useEffect(() => {
|
20
|
+
const wasControlled = isControlledRef.current;
|
21
|
+
if (wasControlled !== isControlled) {
|
22
|
+
const from = wasControlled ? "controlled" : "uncontrolled";
|
23
|
+
const to = isControlled ? "controlled" : "uncontrolled";
|
24
|
+
console.warn(
|
25
|
+
`${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
26
|
+
);
|
27
|
+
}
|
28
|
+
isControlledRef.current = isControlled;
|
29
|
+
}, [isControlled, caller]);
|
30
|
+
}
|
31
|
+
const setValue = React.useCallback(
|
32
|
+
(nextValue) => {
|
33
|
+
var _a;
|
34
|
+
if (isControlled) {
|
35
|
+
const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
|
36
|
+
if (value2 !== prop) {
|
37
|
+
(_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value2);
|
38
|
+
}
|
39
|
+
} else {
|
40
|
+
setUncontrolledProp(nextValue);
|
41
|
+
}
|
42
|
+
},
|
43
|
+
[isControlled, prop, setUncontrolledProp, onChangeRef]
|
44
|
+
);
|
45
|
+
return [value, setValue];
|
46
|
+
}
|
47
|
+
function useUncontrolledState({
|
48
|
+
defaultProp,
|
49
|
+
onChange
|
50
|
+
}) {
|
51
|
+
const [value, setValue] = React.useState(defaultProp);
|
52
|
+
const prevValueRef = React.useRef(value);
|
53
|
+
const onChangeRef = React.useRef(onChange);
|
54
|
+
useInsertionEffect(() => {
|
55
|
+
onChangeRef.current = onChange;
|
56
|
+
}, [onChange]);
|
57
|
+
React.useEffect(() => {
|
58
|
+
var _a;
|
59
|
+
if (prevValueRef.current !== value) {
|
60
|
+
(_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value);
|
61
|
+
prevValueRef.current = value;
|
62
|
+
}
|
63
|
+
}, [value, prevValueRef]);
|
64
|
+
return [value, setValue, onChangeRef];
|
65
|
+
}
|
66
|
+
function isFunction(value) {
|
67
|
+
return typeof value === "function";
|
68
|
+
}
|
69
|
+
export {
|
70
|
+
useControllableState
|
71
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { useCallbackRef } from "../../../../../@radix-ui_react-use-callback-ref@1.1.
|
2
|
+
import { useCallbackRef } from "../../../../../@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";
|
3
3
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
|
4
4
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
5
5
|
React.useEffect(() => {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { useLayoutEffect as useLayoutEffect2 } from "../../../../../@radix-ui_react-use-layout-effect@1.1.
|
2
|
+
import { useLayoutEffect as useLayoutEffect2 } from "../../../../../@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";
|
3
3
|
function useSize(element) {
|
4
4
|
const [size, setSize] = React.useState(void 0);
|
5
5
|
useLayoutEffect2(() => {
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { Primitive } from "../../../../../@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
|
+
import { jsx } from "react/jsx-runtime";
|
4
|
+
var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
5
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
6
|
+
position: "absolute",
|
7
|
+
border: 0,
|
8
|
+
width: 1,
|
9
|
+
height: 1,
|
10
|
+
padding: 0,
|
11
|
+
margin: -1,
|
12
|
+
overflow: "hidden",
|
13
|
+
clip: "rect(0, 0, 0, 0)",
|
14
|
+
whiteSpace: "nowrap",
|
15
|
+
wordWrap: "normal"
|
16
|
+
});
|
17
|
+
var NAME = "VisuallyHidden";
|
18
|
+
var VisuallyHidden = React.forwardRef(
|
19
|
+
(props, forwardedRef) => {
|
20
|
+
return /* @__PURE__ */ jsx(
|
21
|
+
Primitive.span,
|
22
|
+
{
|
23
|
+
...props,
|
24
|
+
ref: forwardedRef,
|
25
|
+
style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }
|
26
|
+
}
|
27
|
+
);
|
28
|
+
}
|
29
|
+
);
|
30
|
+
VisuallyHidden.displayName = NAME;
|
31
|
+
export {
|
32
|
+
VISUALLY_HIDDEN_STYLES,
|
33
|
+
VisuallyHidden
|
34
|
+
};
|
@@ -114,7 +114,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
114
114
|
return null;
|
115
115
|
};
|
116
116
|
}
|
117
|
-
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live]")));
|
117
|
+
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
|
118
118
|
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
119
119
|
};
|
120
120
|
export {
|
@@ -99,21 +99,21 @@ var jt = React.createContext({}), Lt = React.forwardRef((A, B) => {
|
|
99
99
|
$(c.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), $(c.sheet, `[data-input-otp]:autofill { ${b} }`), $(c.sheet, `[data-input-otp]:-webkit-autofill { ${b} }`), $(c.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), $(c.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
100
100
|
}
|
101
101
|
}
|
102
|
-
let
|
102
|
+
let R = () => {
|
103
103
|
o && o.style.setProperty("--root-height", `${t.clientHeight}px`);
|
104
104
|
};
|
105
|
-
|
106
|
-
let
|
107
|
-
return
|
108
|
-
document.removeEventListener("selectionchange", d, { capture: true }),
|
105
|
+
R();
|
106
|
+
let p = new ResizeObserver(R);
|
107
|
+
return p.observe(t), () => {
|
108
|
+
document.removeEventListener("selectionchange", d, { capture: true }), p.disconnect();
|
109
109
|
};
|
110
110
|
}, []);
|
111
111
|
let [ot, rt] = React.useState(false), [j, Q] = React.useState(false), [M, L] = React.useState(null), [k, N] = React.useState(null);
|
112
112
|
React.useEffect(() => {
|
113
113
|
ht(() => {
|
114
|
-
var
|
115
|
-
(
|
116
|
-
let t = (
|
114
|
+
var R, p, c, b;
|
115
|
+
(R = l.current) == null || R.dispatchEvent(new Event("input"));
|
116
|
+
let t = (p = l.current) == null ? void 0 : p.selectionStart, o = (c = l.current) == null ? void 0 : c.selectionEnd, d = (b = l.current) == null ? void 0 : b.selectionDirection;
|
117
117
|
t !== null && o !== null && (L(t), N(o), V.current.prev = [t, o, d]);
|
118
118
|
});
|
119
119
|
}, [i, j]), React.useEffect(() => {
|
@@ -137,9 +137,9 @@ var jt = React.createContext({}), Lt = React.forwardRef((A, B) => {
|
|
137
137
|
var g, E;
|
138
138
|
let o = l.current;
|
139
139
|
if (!W && (!J.current.isIOS || !t.clipboardData || !o)) return;
|
140
|
-
let d = t.clipboardData.getData("text/plain"),
|
141
|
-
|
142
|
-
let
|
140
|
+
let d = t.clipboardData.getData("text/plain"), R = W ? W(d) : d;
|
141
|
+
t.preventDefault();
|
142
|
+
let p = (g = l.current) == null ? void 0 : g.selectionStart, c = (E = l.current) == null ? void 0 : E.selectionEnd, v = (p !== c ? i.slice(0, p) + R + i.slice(c) : i.slice(0, p) + R + i.slice(p)).slice(0, e);
|
143
143
|
if (v.length > 0 && m && !m.test(v)) return;
|
144
144
|
o.value = v, x(v);
|
145
145
|
let C = Math.min(v.length, e - 1), _ = v.length;
|
@@ -161,8 +161,8 @@ var jt = React.createContext({}), Lt = React.forwardRef((A, B) => {
|
|
161
161
|
Q(false), (o = a.onBlur) == null || o.call(a, t);
|
162
162
|
} })), [st, at, ct, G, it, e, k, M, a, m == null ? void 0 : m.source, i]), tt = React.useMemo(() => ({ slots: Array.from({ length: e }).map((t, o) => {
|
163
163
|
var c;
|
164
|
-
let d = j && M !== null && k !== null && (M === k && o === M || o >= M && o < k),
|
165
|
-
return { char:
|
164
|
+
let d = j && M !== null && k !== null && (M === k && o === M || o >= M && o < k), R = i[o] !== void 0 ? i[o] : null, p = i[0] !== void 0 ? null : (c = D == null ? void 0 : D[o]) != null ? c : null;
|
165
|
+
return { char: R, placeholderChar: p, isActive: d, hasFakeCaret: d && R === null };
|
166
166
|
}), isFocused: j, isHovering: !a.disabled && ot }), [j, ot, e, k, M, a.disabled, i]), Ct = React.useMemo(() => f ? f(tt) : React.createElement(jt.Provider, { value: tt }, h), [h, tt, f]);
|
167
167
|
return React.createElement(React.Fragment, null, T !== null && React.createElement("noscript", null, React.createElement("style", null, T)), React.createElement("div", { ref: K, "data-input-otp-container": true, style: It, className: Z }, Ct, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, Mt)));
|
168
168
|
});
|