@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,6 +1,6 @@
|
|
1
|
-
import { offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1,
|
2
|
-
import { createCoords,
|
3
|
-
import {
|
1
|
+
import { offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, limitShift as limitShift$1, computePosition as computePosition$1, arrow as arrow$1 } from "../../../../../@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.js";
|
2
|
+
import { createCoords, round, max, min, rectToClientRect, floor } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
|
3
|
+
import { isElement, getDocumentElement, getOverflowAncestors, getComputedStyle, isHTMLElement, getWindow, isTopLayer, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock, getNodeName, isOverflowElement, getNodeScroll, getFrameElement, isWebKit } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
|
4
4
|
function getCssDimensions(element) {
|
5
5
|
const css = getComputedStyle(element);
|
6
6
|
let width = parseFloat(css.width) || 0;
|
@@ -224,6 +224,7 @@ function getViewportRect(element, strategy) {
|
|
224
224
|
y
|
225
225
|
};
|
226
226
|
}
|
227
|
+
const absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
227
228
|
function getInnerBoundingClientRect(element, strategy) {
|
228
229
|
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
229
230
|
const top = clientRect.top + element.clientTop;
|
@@ -281,7 +282,7 @@ function getClippingElementAncestors(element, cache) {
|
|
281
282
|
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
282
283
|
currentContainingBlockComputedStyle = null;
|
283
284
|
}
|
284
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle &&
|
285
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
285
286
|
if (shouldDropCurrentNode) {
|
286
287
|
result = result.filter((ancestor) => ancestor !== currentNode);
|
287
288
|
} else {
|
@@ -337,6 +338,9 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
337
338
|
scrollTop: 0
|
338
339
|
};
|
339
340
|
const offsets = createCoords(0);
|
341
|
+
function setLeftRTLScrollbarOffset() {
|
342
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
343
|
+
}
|
340
344
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
341
345
|
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
342
346
|
scroll = getNodeScroll(offsetParent);
|
@@ -346,9 +350,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
346
350
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
347
351
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
348
352
|
} else if (documentElement) {
|
349
|
-
|
353
|
+
setLeftRTLScrollbarOffset();
|
350
354
|
}
|
351
355
|
}
|
356
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
357
|
+
setLeftRTLScrollbarOffset();
|
358
|
+
}
|
352
359
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
353
360
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
354
361
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
@@ -428,6 +435,9 @@ const platform = {
|
|
428
435
|
isElement,
|
429
436
|
isRTL
|
430
437
|
};
|
438
|
+
function rectsAreEqual(a, b) {
|
439
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
440
|
+
}
|
431
441
|
function observeMove(element, onMove) {
|
432
442
|
let io = null;
|
433
443
|
let timeoutId;
|
@@ -446,12 +456,13 @@ function observeMove(element, onMove) {
|
|
446
456
|
threshold = 1;
|
447
457
|
}
|
448
458
|
cleanup();
|
459
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
449
460
|
const {
|
450
461
|
left,
|
451
462
|
top,
|
452
463
|
width,
|
453
464
|
height
|
454
|
-
} =
|
465
|
+
} = elementRectForRootMargin;
|
455
466
|
if (!skip) {
|
456
467
|
onMove();
|
457
468
|
}
|
@@ -482,6 +493,9 @@ function observeMove(element, onMove) {
|
|
482
493
|
refresh(false, ratio);
|
483
494
|
}
|
484
495
|
}
|
496
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
497
|
+
refresh();
|
498
|
+
}
|
485
499
|
isFirstUpdate = false;
|
486
500
|
}
|
487
501
|
try {
|
@@ -490,7 +504,7 @@ function observeMove(element, onMove) {
|
|
490
504
|
// Handle <iframe>s
|
491
505
|
root: root.ownerDocument
|
492
506
|
});
|
493
|
-
} catch (
|
507
|
+
} catch (_e) {
|
494
508
|
io = new IntersectionObserver(handleObserve, options);
|
495
509
|
}
|
496
510
|
io.observe(element);
|
@@ -545,7 +559,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
545
559
|
}
|
546
560
|
function frameLoop() {
|
547
561
|
const nextRefRect = getBoundingClientRect(reference);
|
548
|
-
if (prevRefRect && (
|
562
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
549
563
|
update();
|
550
564
|
}
|
551
565
|
prevRefRect = nextRefRect;
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { computePosition, offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1,
|
2
|
-
import { autoUpdate, platform } from "../../../../../@floating-ui_dom@1.
|
1
|
+
import { computePosition, offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, limitShift as limitShift$1, arrow as arrow$2 } from "../../../../../@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
2
|
+
import { autoUpdate, platform } from "../../../../../@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
3
3
|
import * as React from "react";
|
4
|
-
import { useLayoutEffect
|
4
|
+
import { useLayoutEffect } from "react";
|
5
5
|
import * as ReactDOM from "react-dom";
|
6
|
-
var
|
6
|
+
var isClient = typeof document !== "undefined";
|
7
|
+
var noop = function noop2() {
|
8
|
+
};
|
9
|
+
var index = isClient ? useLayoutEffect : noop;
|
7
10
|
function deepEqual(a, b) {
|
8
11
|
if (a === b) {
|
9
12
|
return true;
|
@@ -39,6 +39,7 @@ function isShadowRoot(value) {
|
|
39
39
|
}
|
40
40
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
41
41
|
}
|
42
|
+
const invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
|
42
43
|
function isOverflowElement(element) {
|
43
44
|
const {
|
44
45
|
overflow,
|
@@ -46,24 +47,29 @@ function isOverflowElement(element) {
|
|
46
47
|
overflowY,
|
47
48
|
display
|
48
49
|
} = getComputedStyle(element);
|
49
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
50
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
50
51
|
}
|
52
|
+
const tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
51
53
|
function isTableElement(element) {
|
52
|
-
return
|
54
|
+
return tableElements.has(getNodeName(element));
|
53
55
|
}
|
56
|
+
const topLayerSelectors = [":popover-open", ":modal"];
|
54
57
|
function isTopLayer(element) {
|
55
|
-
return
|
58
|
+
return topLayerSelectors.some((selector) => {
|
56
59
|
try {
|
57
60
|
return element.matches(selector);
|
58
|
-
} catch (
|
61
|
+
} catch (_e) {
|
59
62
|
return false;
|
60
63
|
}
|
61
64
|
});
|
62
65
|
}
|
66
|
+
const transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
|
67
|
+
const willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
|
68
|
+
const containValues = ["paint", "layout", "strict", "content"];
|
63
69
|
function isContainingBlock(elementOrCss) {
|
64
70
|
const webkit = isWebKit();
|
65
71
|
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
66
|
-
return
|
72
|
+
return transformProperties.some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || willChangeValues.some((value) => (css.willChange || "").includes(value)) || containValues.some((value) => (css.contain || "").includes(value));
|
67
73
|
}
|
68
74
|
function getContainingBlock(element) {
|
69
75
|
let currentNode = getParentNode(element);
|
@@ -81,8 +87,9 @@ function isWebKit() {
|
|
81
87
|
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
82
88
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
83
89
|
}
|
90
|
+
const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
84
91
|
function isLastTraversableNode(node) {
|
85
|
-
return
|
92
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
86
93
|
}
|
87
94
|
function getComputedStyle(element) {
|
88
95
|
return getWindow(element).getComputedStyle(element);
|
@@ -35,8 +35,9 @@ function getOppositeAxis(axis) {
|
|
35
35
|
function getAxisLength(axis) {
|
36
36
|
return axis === "y" ? "height" : "width";
|
37
37
|
}
|
38
|
+
const yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
38
39
|
function getSideAxis(placement) {
|
39
|
-
return
|
40
|
+
return yAxisSides.has(getSide(placement)) ? "y" : "x";
|
40
41
|
}
|
41
42
|
function getAlignmentAxis(placement) {
|
42
43
|
return getOppositeAxis(getSideAxis(placement));
|
@@ -61,19 +62,19 @@ function getExpandedPlacements(placement) {
|
|
61
62
|
function getOppositeAlignmentPlacement(placement) {
|
62
63
|
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
63
64
|
}
|
65
|
+
const lrPlacement = ["left", "right"];
|
66
|
+
const rlPlacement = ["right", "left"];
|
67
|
+
const tbPlacement = ["top", "bottom"];
|
68
|
+
const btPlacement = ["bottom", "top"];
|
64
69
|
function getSideList(side, isStart, rtl) {
|
65
|
-
const lr = ["left", "right"];
|
66
|
-
const rl = ["right", "left"];
|
67
|
-
const tb = ["top", "bottom"];
|
68
|
-
const bt = ["bottom", "top"];
|
69
70
|
switch (side) {
|
70
71
|
case "top":
|
71
72
|
case "bottom":
|
72
|
-
if (rtl) return isStart ?
|
73
|
-
return isStart ?
|
73
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
74
|
+
return isStart ? lrPlacement : rlPlacement;
|
74
75
|
case "left":
|
75
76
|
case "right":
|
76
|
-
return isStart ?
|
77
|
+
return isStart ? tbPlacement : btPlacement;
|
77
78
|
default:
|
78
79
|
return [];
|
79
80
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { Primitive } from "../../../../../@radix-ui_react-primitive@2.
|
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
3
|
import { jsx } from "react/jsx-runtime";
|
4
4
|
var NAME = "Arrow";
|
5
5
|
var Arrow = React.forwardRef((props, forwardedRef) => {
|
@@ -0,0 +1,281 @@
|
|
1
|
+
"use client";
|
2
|
+
import * as React from "react";
|
3
|
+
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";
|
4
|
+
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";
|
5
|
+
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/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 { 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";
|
10
|
+
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";
|
11
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
12
|
+
var CHECKBOX_NAME = "Checkbox";
|
13
|
+
var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
|
14
|
+
var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
15
|
+
function CheckboxProvider(props) {
|
16
|
+
const {
|
17
|
+
__scopeCheckbox,
|
18
|
+
checked: checkedProp,
|
19
|
+
children,
|
20
|
+
defaultChecked,
|
21
|
+
disabled,
|
22
|
+
form,
|
23
|
+
name,
|
24
|
+
onCheckedChange,
|
25
|
+
required,
|
26
|
+
value = "on",
|
27
|
+
// @ts-expect-error
|
28
|
+
internal_do_not_use_render
|
29
|
+
} = props;
|
30
|
+
const [checked, setChecked] = useControllableState({
|
31
|
+
prop: checkedProp,
|
32
|
+
defaultProp: defaultChecked ?? false,
|
33
|
+
onChange: onCheckedChange,
|
34
|
+
caller: CHECKBOX_NAME
|
35
|
+
});
|
36
|
+
const [control, setControl] = React.useState(null);
|
37
|
+
const [bubbleInput, setBubbleInput] = React.useState(null);
|
38
|
+
const hasConsumerStoppedPropagationRef = React.useRef(false);
|
39
|
+
const isFormControl = control ? !!form || !!control.closest("form") : (
|
40
|
+
// We set this to true by default so that events bubble to forms without JS (SSR)
|
41
|
+
true
|
42
|
+
);
|
43
|
+
const context = {
|
44
|
+
checked,
|
45
|
+
disabled,
|
46
|
+
setChecked,
|
47
|
+
control,
|
48
|
+
setControl,
|
49
|
+
name,
|
50
|
+
form,
|
51
|
+
value,
|
52
|
+
hasConsumerStoppedPropagationRef,
|
53
|
+
required,
|
54
|
+
defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked,
|
55
|
+
isFormControl,
|
56
|
+
bubbleInput,
|
57
|
+
setBubbleInput
|
58
|
+
};
|
59
|
+
return /* @__PURE__ */ jsx(
|
60
|
+
CheckboxProviderImpl,
|
61
|
+
{
|
62
|
+
scope: __scopeCheckbox,
|
63
|
+
...context,
|
64
|
+
children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
|
65
|
+
}
|
66
|
+
);
|
67
|
+
}
|
68
|
+
var TRIGGER_NAME = "CheckboxTrigger";
|
69
|
+
var CheckboxTrigger = React.forwardRef(
|
70
|
+
({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) => {
|
71
|
+
const {
|
72
|
+
control,
|
73
|
+
value,
|
74
|
+
disabled,
|
75
|
+
checked,
|
76
|
+
required,
|
77
|
+
setControl,
|
78
|
+
setChecked,
|
79
|
+
hasConsumerStoppedPropagationRef,
|
80
|
+
isFormControl,
|
81
|
+
bubbleInput
|
82
|
+
} = useCheckboxContext(TRIGGER_NAME, __scopeCheckbox);
|
83
|
+
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
84
|
+
const initialCheckedStateRef = React.useRef(checked);
|
85
|
+
React.useEffect(() => {
|
86
|
+
const form = control == null ? void 0 : control.form;
|
87
|
+
if (form) {
|
88
|
+
const reset = () => setChecked(initialCheckedStateRef.current);
|
89
|
+
form.addEventListener("reset", reset);
|
90
|
+
return () => form.removeEventListener("reset", reset);
|
91
|
+
}
|
92
|
+
}, [control, setChecked]);
|
93
|
+
return /* @__PURE__ */ jsx(
|
94
|
+
Primitive.button,
|
95
|
+
{
|
96
|
+
type: "button",
|
97
|
+
role: "checkbox",
|
98
|
+
"aria-checked": isIndeterminate(checked) ? "mixed" : checked,
|
99
|
+
"aria-required": required,
|
100
|
+
"data-state": getState(checked),
|
101
|
+
"data-disabled": disabled ? "" : void 0,
|
102
|
+
disabled,
|
103
|
+
value,
|
104
|
+
...checkboxProps,
|
105
|
+
ref: composedRefs,
|
106
|
+
onKeyDown: composeEventHandlers(onKeyDown, (event) => {
|
107
|
+
if (event.key === "Enter") event.preventDefault();
|
108
|
+
}),
|
109
|
+
onClick: composeEventHandlers(onClick, (event) => {
|
110
|
+
setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);
|
111
|
+
if (bubbleInput && isFormControl) {
|
112
|
+
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
113
|
+
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
114
|
+
}
|
115
|
+
})
|
116
|
+
}
|
117
|
+
);
|
118
|
+
}
|
119
|
+
);
|
120
|
+
CheckboxTrigger.displayName = TRIGGER_NAME;
|
121
|
+
var Checkbox = React.forwardRef(
|
122
|
+
(props, forwardedRef) => {
|
123
|
+
const {
|
124
|
+
__scopeCheckbox,
|
125
|
+
name,
|
126
|
+
checked,
|
127
|
+
defaultChecked,
|
128
|
+
required,
|
129
|
+
disabled,
|
130
|
+
value,
|
131
|
+
onCheckedChange,
|
132
|
+
form,
|
133
|
+
...checkboxProps
|
134
|
+
} = props;
|
135
|
+
return /* @__PURE__ */ jsx(
|
136
|
+
CheckboxProvider,
|
137
|
+
{
|
138
|
+
__scopeCheckbox,
|
139
|
+
checked,
|
140
|
+
defaultChecked,
|
141
|
+
disabled,
|
142
|
+
required,
|
143
|
+
onCheckedChange,
|
144
|
+
name,
|
145
|
+
form,
|
146
|
+
value,
|
147
|
+
internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
148
|
+
/* @__PURE__ */ jsx(
|
149
|
+
CheckboxTrigger,
|
150
|
+
{
|
151
|
+
...checkboxProps,
|
152
|
+
ref: forwardedRef,
|
153
|
+
__scopeCheckbox
|
154
|
+
}
|
155
|
+
),
|
156
|
+
isFormControl && /* @__PURE__ */ jsx(
|
157
|
+
CheckboxBubbleInput,
|
158
|
+
{
|
159
|
+
__scopeCheckbox
|
160
|
+
}
|
161
|
+
)
|
162
|
+
] })
|
163
|
+
}
|
164
|
+
);
|
165
|
+
}
|
166
|
+
);
|
167
|
+
Checkbox.displayName = CHECKBOX_NAME;
|
168
|
+
var INDICATOR_NAME = "CheckboxIndicator";
|
169
|
+
var CheckboxIndicator = React.forwardRef(
|
170
|
+
(props, forwardedRef) => {
|
171
|
+
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
172
|
+
const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
|
173
|
+
return /* @__PURE__ */ jsx(
|
174
|
+
Presence,
|
175
|
+
{
|
176
|
+
present: forceMount || isIndeterminate(context.checked) || context.checked === true,
|
177
|
+
children: /* @__PURE__ */ jsx(
|
178
|
+
Primitive.span,
|
179
|
+
{
|
180
|
+
"data-state": getState(context.checked),
|
181
|
+
"data-disabled": context.disabled ? "" : void 0,
|
182
|
+
...indicatorProps,
|
183
|
+
ref: forwardedRef,
|
184
|
+
style: { pointerEvents: "none", ...props.style }
|
185
|
+
}
|
186
|
+
)
|
187
|
+
}
|
188
|
+
);
|
189
|
+
}
|
190
|
+
);
|
191
|
+
CheckboxIndicator.displayName = INDICATOR_NAME;
|
192
|
+
var BUBBLE_INPUT_NAME = "CheckboxBubbleInput";
|
193
|
+
var CheckboxBubbleInput = React.forwardRef(
|
194
|
+
({ __scopeCheckbox, ...props }, forwardedRef) => {
|
195
|
+
const {
|
196
|
+
control,
|
197
|
+
hasConsumerStoppedPropagationRef,
|
198
|
+
checked,
|
199
|
+
defaultChecked,
|
200
|
+
required,
|
201
|
+
disabled,
|
202
|
+
name,
|
203
|
+
value,
|
204
|
+
form,
|
205
|
+
bubbleInput,
|
206
|
+
setBubbleInput
|
207
|
+
} = useCheckboxContext(BUBBLE_INPUT_NAME, __scopeCheckbox);
|
208
|
+
const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);
|
209
|
+
const prevChecked = usePrevious(checked);
|
210
|
+
const controlSize = useSize(control);
|
211
|
+
React.useEffect(() => {
|
212
|
+
const input = bubbleInput;
|
213
|
+
if (!input) return;
|
214
|
+
const inputProto = window.HTMLInputElement.prototype;
|
215
|
+
const descriptor = Object.getOwnPropertyDescriptor(
|
216
|
+
inputProto,
|
217
|
+
"checked"
|
218
|
+
);
|
219
|
+
const setChecked = descriptor.set;
|
220
|
+
const bubbles = !hasConsumerStoppedPropagationRef.current;
|
221
|
+
if (prevChecked !== checked && setChecked) {
|
222
|
+
const event = new Event("click", { bubbles });
|
223
|
+
input.indeterminate = isIndeterminate(checked);
|
224
|
+
setChecked.call(input, isIndeterminate(checked) ? false : checked);
|
225
|
+
input.dispatchEvent(event);
|
226
|
+
}
|
227
|
+
}, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);
|
228
|
+
const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);
|
229
|
+
return /* @__PURE__ */ jsx(
|
230
|
+
Primitive.input,
|
231
|
+
{
|
232
|
+
type: "checkbox",
|
233
|
+
"aria-hidden": true,
|
234
|
+
defaultChecked: defaultChecked ?? defaultCheckedRef.current,
|
235
|
+
required,
|
236
|
+
disabled,
|
237
|
+
name,
|
238
|
+
value,
|
239
|
+
form,
|
240
|
+
...props,
|
241
|
+
tabIndex: -1,
|
242
|
+
ref: composedRefs,
|
243
|
+
style: {
|
244
|
+
...props.style,
|
245
|
+
...controlSize,
|
246
|
+
position: "absolute",
|
247
|
+
pointerEvents: "none",
|
248
|
+
opacity: 0,
|
249
|
+
margin: 0,
|
250
|
+
// We transform because the input is absolutely positioned but we have
|
251
|
+
// rendered it **after** the button. This pulls it back to sit on top
|
252
|
+
// of the button.
|
253
|
+
transform: "translateX(-100%)"
|
254
|
+
}
|
255
|
+
}
|
256
|
+
);
|
257
|
+
}
|
258
|
+
);
|
259
|
+
CheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
260
|
+
function isFunction(value) {
|
261
|
+
return typeof value === "function";
|
262
|
+
}
|
263
|
+
function isIndeterminate(checked) {
|
264
|
+
return checked === "indeterminate";
|
265
|
+
}
|
266
|
+
function getState(checked) {
|
267
|
+
return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
268
|
+
}
|
269
|
+
export {
|
270
|
+
Checkbox,
|
271
|
+
CheckboxIndicator,
|
272
|
+
CheckboxIndicator as Indicator,
|
273
|
+
Checkbox as Root,
|
274
|
+
createCheckboxScope,
|
275
|
+
CheckboxBubbleInput as unstable_BubbleInput,
|
276
|
+
CheckboxBubbleInput as unstable_CheckboxBubbleInput,
|
277
|
+
CheckboxProvider as unstable_CheckboxProvider,
|
278
|
+
CheckboxTrigger as unstable_CheckboxTrigger,
|
279
|
+
CheckboxProvider as unstable_Provider,
|
280
|
+
CheckboxTrigger as unstable_Trigger
|
281
|
+
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use client";
|
2
2
|
import React__default from "react";
|
3
|
-
import { createContextScope } from "../../../../../@radix-ui_react-context@1.1.
|
4
|
-
import { useComposedRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.
|
5
|
-
import {
|
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 { 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 { createSlot } from "../../../../../@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
6
|
import { jsx } from "react/jsx-runtime";
|
7
7
|
function createCollection(name) {
|
8
8
|
const PROVIDER_NAME = name + "CollectionProvider";
|
@@ -19,17 +19,19 @@ function createCollection(name) {
|
|
19
19
|
};
|
20
20
|
CollectionProvider.displayName = PROVIDER_NAME;
|
21
21
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
22
|
+
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
22
23
|
const CollectionSlot = React__default.forwardRef(
|
23
24
|
(props, forwardedRef) => {
|
24
25
|
const { scope, children } = props;
|
25
26
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
26
27
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
27
|
-
return /* @__PURE__ */ jsx(
|
28
|
+
return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
|
28
29
|
}
|
29
30
|
);
|
30
31
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
31
32
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
32
33
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
34
|
+
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
33
35
|
const CollectionItemSlot = React__default.forwardRef(
|
34
36
|
(props, forwardedRef) => {
|
35
37
|
const { scope, children, ...itemData } = props;
|
@@ -40,7 +42,7 @@ function createCollection(name) {
|
|
40
42
|
context.itemMap.set(ref, { ref, ...itemData });
|
41
43
|
return () => void context.itemMap.delete(ref);
|
42
44
|
});
|
43
|
-
return /* @__PURE__ */ jsx(
|
45
|
+
return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
44
46
|
}
|
45
47
|
);
|
46
48
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
@@ -1,19 +1,19 @@
|
|
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, createContext as createContext2 } from "../../../../../@radix-ui_react-context@1.1.
|
6
|
-
import { useId } from "../../../../../@radix-ui_react-id@1.1.
|
7
|
-
import { useControllableState } from "../../../../../@radix-ui_react-use-controllable-state@1.
|
8
|
-
import { DismissableLayer } from "../../../../../@radix-ui_react-dismissable-layer@1.1.
|
9
|
-
import { FocusScope } from "../../../../../@radix-ui_react-focus-scope@1.1.
|
10
|
-
import { Portal as Portal$1 } from "../../../../../@radix-ui_react-portal@1.1.
|
11
|
-
import { Presence } from "../../../../../@radix-ui_react-presence@1.1.
|
12
|
-
import { Primitive } from "../../../../../@radix-ui_react-primitive@2.
|
13
|
-
import { useFocusGuards } from "../../../../../@radix-ui_react-focus-guards@1.1.
|
14
|
-
import ReactRemoveScroll from "../../../../../react-remove-scroll@2.
|
15
|
-
import { hideOthers } from "../../../../../aria-hidden@1.2.
|
16
|
-
import {
|
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, createContext as createContext2 } 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 { useId } from "../../../../../@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";
|
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 { DismissableLayer } 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 { FocusScope } from "../../../../../@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";
|
10
|
+
import { Portal as Portal$1 } 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";
|
11
|
+
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";
|
12
|
+
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";
|
13
|
+
import { useFocusGuards } from "../../../../../@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";
|
14
|
+
import ReactRemoveScroll from "../../../../../react-remove-scroll@2.7.1_@types_react@18.3.23_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js";
|
15
|
+
import { hideOthers } from "../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js";
|
16
|
+
import { createSlot } from "../../../../../@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";
|
17
17
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
18
18
|
var DIALOG_NAME = "Dialog";
|
19
19
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
@@ -29,10 +29,11 @@ var Dialog = (props) => {
|
|
29
29
|
} = props;
|
30
30
|
const triggerRef = React.useRef(null);
|
31
31
|
const contentRef = React.useRef(null);
|
32
|
-
const [open
|
32
|
+
const [open, setOpen] = useControllableState({
|
33
33
|
prop: openProp,
|
34
|
-
defaultProp: defaultOpen,
|
35
|
-
onChange: onOpenChange
|
34
|
+
defaultProp: defaultOpen ?? false,
|
35
|
+
onChange: onOpenChange,
|
36
|
+
caller: DIALOG_NAME
|
36
37
|
});
|
37
38
|
return /* @__PURE__ */ jsx(
|
38
39
|
DialogProvider,
|
@@ -94,6 +95,7 @@ var DialogOverlay = React.forwardRef(
|
|
94
95
|
}
|
95
96
|
);
|
96
97
|
DialogOverlay.displayName = OVERLAY_NAME;
|
98
|
+
var Slot = createSlot("DialogOverlay.RemoveScroll");
|
97
99
|
var DialogOverlayImpl = React.forwardRef(
|
98
100
|
(props, forwardedRef) => {
|
99
101
|
const { __scopeDialog, ...overlayProps } = props;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client";
|
2
2
|
import * as React from "react";
|
3
|
-
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.
|
4
|
-
import { Primitive, dispatchDiscreteCustomEvent } from "../../../../../@radix-ui_react-primitive@2.
|
5
|
-
import { useComposedRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.
|
6
|
-
import { useCallbackRef } from "../../../../../@radix-ui_react-use-callback-ref@1.1.
|
7
|
-
import { useEscapeKeydown } from "../../../../../@radix-ui_react-use-escape-keydown@1.1.
|
3
|
+
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js";
|
4
|
+
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";
|
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 { 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";
|
7
|
+
import { useEscapeKeydown } from "../../../../../@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";
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
9
9
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
10
10
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use client";
|
2
2
|
import * as React from "react";
|
3
|
-
import { useComposedRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.
|
4
|
-
import { Primitive } from "../../../../../@radix-ui_react-primitive@2.
|
5
|
-
import { useCallbackRef } from "../../../../../@radix-ui_react-use-callback-ref@1.1.
|
3
|
+
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";
|
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 { 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";
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
7
7
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
8
8
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|