@blimu/react 1.1.0 → 1.1.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/_virtual/index.cjs +5 -1
- package/dist/_virtual/index.cjs.map +1 -1
- package/dist/_virtual/index.js +3 -3
- package/dist/_virtual/index2.cjs +4 -1
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +4 -1
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +2 -2
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +4 -1
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +2 -2
- package/dist/client/auth.service.cjs +249 -1
- package/dist/client/auth.service.cjs.map +1 -1
- package/dist/client/auth.service.js +194 -96
- package/dist/client/auth.service.js.map +1 -1
- package/dist/client/external-store.cjs +26 -1
- package/dist/client/external-store.cjs.map +1 -1
- package/dist/client/external-store.js +22 -8
- package/dist/client/external-store.js.map +1 -1
- package/dist/client/runtime-client.cjs +136 -1
- package/dist/client/runtime-client.cjs.map +1 -1
- package/dist/client/runtime-client.js +85 -51
- package/dist/client/runtime-client.js.map +1 -1
- package/dist/components/index.cjs +13 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/members-list.cjs +132 -1
- package/dist/components/members-list.cjs.map +1 -1
- package/dist/components/members-list.js +69 -64
- package/dist/components/members-list.js.map +1 -1
- package/dist/components/redirect-to-sign-in.cjs +34 -1
- package/dist/components/redirect-to-sign-in.cjs.map +1 -1
- package/dist/components/redirect-to-sign-in.js +28 -20
- package/dist/components/redirect-to-sign-in.js.map +1 -1
- package/dist/components/sign-in-button.cjs +36 -1
- package/dist/components/sign-in-button.cjs.map +1 -1
- package/dist/components/sign-in-button.js +25 -21
- package/dist/components/sign-in-button.js.map +1 -1
- package/dist/components/ui/avatar.cjs +42 -1
- package/dist/components/ui/avatar.cjs.map +1 -1
- package/dist/components/ui/avatar.js +23 -23
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/dropdown-menu.cjs +148 -1
- package/dist/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/components/ui/dropdown-menu.js +83 -81
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/user-avatar.cjs +22 -1
- package/dist/components/user-avatar.cjs.map +1 -1
- package/dist/components/user-avatar.js +16 -16
- package/dist/components/user-avatar.js.map +1 -1
- package/dist/components/user-button/styles.cjs +39 -1
- package/dist/components/user-button/styles.cjs.map +1 -1
- package/dist/components/user-button/styles.js +6 -5
- package/dist/components/user-button/styles.js.map +1 -1
- package/dist/components/user-button/user-button.cjs +98 -1
- package/dist/components/user-button/user-button.cjs.map +1 -1
- package/dist/components/user-button/user-button.js +64 -58
- package/dist/components/user-button/user-button.js.map +1 -1
- package/dist/hooks/index.cjs +14 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +14 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-auth.cjs +44 -1
- package/dist/hooks/use-auth.cjs.map +1 -1
- package/dist/hooks/use-auth.d.ts +13 -15
- package/dist/hooks/use-auth.d.ts.map +1 -1
- package/dist/hooks/use-auth.js +30 -26
- package/dist/hooks/use-auth.js.map +1 -1
- package/dist/hooks/use-client.cjs +9 -1
- package/dist/hooks/use-client.cjs.map +1 -1
- package/dist/hooks/use-client.d.ts +1 -1
- package/dist/hooks/use-client.d.ts.map +1 -1
- package/dist/hooks/use-client.js +6 -5
- package/dist/hooks/use-client.js.map +1 -1
- package/dist/hooks/use-members.cjs +60 -1
- package/dist/hooks/use-members.cjs.map +1 -1
- package/dist/hooks/use-members.js +53 -41
- package/dist/hooks/use-members.js.map +1 -1
- package/dist/hooks/use-store.cjs +17 -1
- package/dist/hooks/use-store.cjs.map +1 -1
- package/dist/hooks/use-store.js +7 -7
- package/dist/hooks/use-store.js.map +1 -1
- package/dist/index.cjs +37 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -35
- package/dist/lib/utils.cjs +8 -1
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.js +5 -5
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/variants.cjs +46 -1
- package/dist/lib/variants.cjs.map +1 -1
- package/dist/lib/variants.js +6 -5
- package/dist/lib/variants.js.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +721 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +571 -377
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +625 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +539 -316
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +313 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +261 -172
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +154 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +173 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +144 -107
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +111 -87
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +11 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +7 -5
- package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +17 -16
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +140 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +105 -57
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +80 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +49 -41
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +17 -10
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs +119 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js +86 -42
- package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +70 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +57 -37
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -19
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +79 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +48 -39
- package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +182 -97
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +296 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +232 -167
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +23 -11
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +169 -98
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +31 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +11 -10
- package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +845 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +662 -442
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +209 -137
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +34 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +14 -12
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +145 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +103 -45
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +21 -14
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +244 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -135
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +105 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +74 -35
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +8 -7
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +57 -40
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +13 -10
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +15 -1
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +34 -22
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +122 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +111 -41
- package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
- package/dist/node_modules/class-variance-authority/dist/index.cjs +45 -1
- package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -1
- package/dist/node_modules/class-variance-authority/dist/index.js +40 -30
- package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.cjs +17 -1
- package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +13 -13
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs +9 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.js +5 -3
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -1
- package/dist/node_modules/js-cookie/dist/js.cookie.cjs +98 -1
- package/dist/node_modules/js-cookie/dist/js.cookie.cjs.map +1 -1
- package/dist/node_modules/js-cookie/dist/js.cookie.js +69 -43
- package/dist/node_modules/js-cookie/dist/js.cookie.js.map +1 -1
- package/dist/node_modules/jwt-decode/build/esm/index.cjs +58 -1
- package/dist/node_modules/jwt-decode/build/esm/index.cjs.map +1 -1
- package/dist/node_modules/jwt-decode/build/esm/index.js +36 -30
- package/dist/node_modules/jwt-decode/build/esm/index.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +34 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +25 -25
- package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +21 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +16 -15
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +13 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -2
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +7 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +5 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +7 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +5 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +7 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +5 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs +11 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +6 -5
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +26 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +22 -14
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +27 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +8 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +197 -4
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -98
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +55 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -24
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +19 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +12 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +102 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -51
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +5 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +62 -36
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +41 -65
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +10 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -5
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +37 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +28 -16
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +13 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +9 -7
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +33 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +11 -10
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +48 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +35 -17
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +3014 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +804 -555
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/tailwindcss/dist/plugin.cjs +12 -1
- package/dist/node_modules/tailwindcss/dist/plugin.cjs.map +1 -1
- package/dist/node_modules/tailwindcss/dist/plugin.js +8 -8
- package/dist/node_modules/tailwindcss/dist/plugin.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.cjs +38 -1
- package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +33 -21
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +11 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +8 -3
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +52 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +28 -19
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +29 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +15 -11
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +38 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +15 -12
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +88 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +64 -43
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +68 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +49 -39
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +53 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +39 -32
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.cjs +17 -1
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +14 -7
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -1
- package/dist/providers/auth/auth.context.cjs +5 -1
- package/dist/providers/auth/auth.context.cjs.map +1 -1
- package/dist/providers/auth/auth.context.js +3 -3
- package/dist/providers/auth/auth.context.js.map +1 -1
- package/dist/providers/auth/auth.hook.cjs +12 -1
- package/dist/providers/auth/auth.hook.cjs.map +1 -1
- package/dist/providers/auth/auth.hook.js +8 -7
- package/dist/providers/auth/auth.hook.js.map +1 -1
- package/dist/providers/auth/auth.provider.cjs +37 -1
- package/dist/providers/auth/auth.provider.cjs.map +1 -1
- package/dist/providers/auth/auth.provider.js +31 -22
- package/dist/providers/auth/auth.provider.js.map +1 -1
- package/dist/providers/blimu/blimu.context.cjs +5 -1
- package/dist/providers/blimu/blimu.context.cjs.map +1 -1
- package/dist/providers/blimu/blimu.context.js +3 -3
- package/dist/providers/blimu/blimu.context.js.map +1 -1
- package/dist/providers/blimu/blimu.hook.cjs +12 -1
- package/dist/providers/blimu/blimu.hook.cjs.map +1 -1
- package/dist/providers/blimu/blimu.hook.js +8 -7
- package/dist/providers/blimu/blimu.hook.js.map +1 -1
- package/dist/providers/blimu/blimu.provider.cjs +71 -1
- package/dist/providers/blimu/blimu.provider.cjs.map +1 -1
- package/dist/providers/blimu/blimu.provider.js +32 -27
- package/dist/providers/blimu/blimu.provider.js.map +1 -1
- package/dist/providers/index.cjs +13 -0
- package/dist/providers/index.cjs.map +1 -0
- package/dist/providers/index.js +13 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/theme/theme.context.cjs +5 -1
- package/dist/providers/theme/theme.context.cjs.map +1 -1
- package/dist/providers/theme/theme.context.js +3 -3
- package/dist/providers/theme/theme.context.js.map +1 -1
- package/dist/providers/theme/theme.hook.cjs +12 -1
- package/dist/providers/theme/theme.hook.cjs.map +1 -1
- package/dist/providers/theme/theme.hook.js +8 -7
- package/dist/providers/theme/theme.hook.js.map +1 -1
- package/dist/providers/theme/theme.provider.cjs +104 -1
- package/dist/providers/theme/theme.provider.cjs.map +1 -1
- package/dist/providers/theme/theme.provider.js +85 -48
- package/dist/providers/theme/theme.provider.js.map +1 -1
- package/dist/tailwind.cjs +200 -0
- package/dist/tailwind.cjs.map +1 -0
- package/dist/{tailwind.plugin.js → tailwind.js} +6 -6
- package/dist/tailwind.js.map +1 -0
- package/dist/types/index.cjs +11 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +8 -8
- package/dist/types/index.js.map +1 -1
- package/dist/utils/publishable-key.cjs +62 -1
- package/dist/utils/publishable-key.cjs.map +1 -1
- package/dist/utils/publishable-key.js +52 -27
- package/dist/utils/publishable-key.js.map +1 -1
- package/package.json +41 -42
- package/dist/components.cjs +0 -2
- package/dist/components.cjs.map +0 -1
- package/dist/components.js +0 -13
- package/dist/components.js.map +0 -1
- package/dist/hooks.cjs +0 -2
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.js +0 -14
- package/dist/hooks.js.map +0 -1
- package/dist/providers.cjs +0 -2
- package/dist/providers.cjs.map +0 -1
- package/dist/providers.js +0 -13
- package/dist/providers.js.map +0 -1
- package/dist/tailwind.plugin.cjs +0 -2
- package/dist/tailwind.plugin.cjs.map +0 -1
- package/dist/tailwind.plugin.js.map +0 -1
|
@@ -1,403 +1,626 @@
|
|
|
1
|
-
import { offset as
|
|
2
|
-
import { createCoords
|
|
3
|
-
import { isElement
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 "../../core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords, round, max, min, rectToClientRect, floor } from "../../utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { isElement, getDocumentElement, getOverflowAncestors, getComputedStyle as getComputedStyle$1, isHTMLElement, getWindow, isTopLayer, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock, getNodeName, isOverflowElement, getNodeScroll, getFrameElement, isWebKit } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
function getCssDimensions(element) {
|
|
5
|
+
const css = getComputedStyle$1(element);
|
|
6
|
+
let width = parseFloat(css.width) || 0;
|
|
7
|
+
let height = parseFloat(css.height) || 0;
|
|
8
|
+
const hasOffset = isHTMLElement(element);
|
|
9
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
10
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
11
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
12
|
+
if (shouldFallback) {
|
|
13
|
+
width = offsetWidth;
|
|
14
|
+
height = offsetHeight;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
width,
|
|
18
|
+
height,
|
|
19
|
+
$: shouldFallback
|
|
12
20
|
};
|
|
13
21
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
22
|
+
function unwrapElement(element) {
|
|
23
|
+
return !isElement(element) ? element.contextElement : element;
|
|
16
24
|
}
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
if (!
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
function getScale(element) {
|
|
26
|
+
const domElement = unwrapElement(element);
|
|
27
|
+
if (!isHTMLElement(domElement)) {
|
|
28
|
+
return createCoords(1);
|
|
29
|
+
}
|
|
30
|
+
const rect = domElement.getBoundingClientRect();
|
|
31
|
+
const {
|
|
32
|
+
width,
|
|
33
|
+
height,
|
|
34
|
+
$
|
|
35
|
+
} = getCssDimensions(domElement);
|
|
36
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
37
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
38
|
+
if (!x || !Number.isFinite(x)) {
|
|
39
|
+
x = 1;
|
|
40
|
+
}
|
|
41
|
+
if (!y || !Number.isFinite(y)) {
|
|
42
|
+
y = 1;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
x,
|
|
46
|
+
y
|
|
30
47
|
};
|
|
31
48
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
const noOffsets = /* @__PURE__ */ createCoords(0);
|
|
50
|
+
function getVisualOffsets(element) {
|
|
51
|
+
const win = getWindow(element);
|
|
52
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
53
|
+
return noOffsets;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
x: win.visualViewport.offsetLeft,
|
|
57
|
+
y: win.visualViewport.offsetTop
|
|
38
58
|
};
|
|
39
59
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
60
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
61
|
+
if (isFixed === void 0) {
|
|
62
|
+
isFixed = false;
|
|
63
|
+
}
|
|
64
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return isFixed;
|
|
42
68
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
69
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
70
|
+
if (includeScale === void 0) {
|
|
71
|
+
includeScale = false;
|
|
72
|
+
}
|
|
73
|
+
if (isFixedStrategy === void 0) {
|
|
74
|
+
isFixedStrategy = false;
|
|
75
|
+
}
|
|
76
|
+
const clientRect = element.getBoundingClientRect();
|
|
77
|
+
const domElement = unwrapElement(element);
|
|
78
|
+
let scale = createCoords(1);
|
|
79
|
+
if (includeScale) {
|
|
80
|
+
if (offsetParent) {
|
|
81
|
+
if (isElement(offsetParent)) {
|
|
82
|
+
scale = getScale(offsetParent);
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
scale = getScale(element);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
89
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
90
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
91
|
+
let width = clientRect.width / scale.x;
|
|
92
|
+
let height = clientRect.height / scale.y;
|
|
93
|
+
if (domElement) {
|
|
94
|
+
const win = getWindow(domElement);
|
|
95
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
96
|
+
let currentWin = win;
|
|
97
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
98
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
99
|
+
const iframeScale = getScale(currentIFrame);
|
|
100
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
101
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
102
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
103
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
104
|
+
x *= iframeScale.x;
|
|
105
|
+
y *= iframeScale.y;
|
|
106
|
+
width *= iframeScale.x;
|
|
107
|
+
height *= iframeScale.y;
|
|
108
|
+
x += left;
|
|
109
|
+
y += top;
|
|
110
|
+
currentWin = getWindow(currentIFrame);
|
|
111
|
+
currentIFrame = getFrameElement(currentWin);
|
|
56
112
|
}
|
|
57
113
|
}
|
|
58
|
-
return
|
|
59
|
-
width
|
|
60
|
-
height
|
|
61
|
-
x
|
|
62
|
-
y
|
|
114
|
+
return rectToClientRect({
|
|
115
|
+
width,
|
|
116
|
+
height,
|
|
117
|
+
x,
|
|
118
|
+
y
|
|
63
119
|
});
|
|
64
120
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
|
|
121
|
+
function getWindowScrollBarX(element, rect) {
|
|
122
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
123
|
+
if (!rect) {
|
|
124
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
125
|
+
}
|
|
126
|
+
return rect.left + leftScroll;
|
|
68
127
|
}
|
|
69
|
-
function
|
|
70
|
-
const
|
|
128
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
129
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
130
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
131
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
71
132
|
return {
|
|
72
|
-
x
|
|
73
|
-
y
|
|
133
|
+
x,
|
|
134
|
+
y
|
|
74
135
|
};
|
|
75
136
|
}
|
|
76
|
-
function
|
|
137
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
77
138
|
let {
|
|
78
|
-
elements
|
|
79
|
-
rect
|
|
80
|
-
offsetParent
|
|
81
|
-
strategy
|
|
82
|
-
} =
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
139
|
+
elements,
|
|
140
|
+
rect,
|
|
141
|
+
offsetParent,
|
|
142
|
+
strategy
|
|
143
|
+
} = _ref;
|
|
144
|
+
const isFixed = strategy === "fixed";
|
|
145
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
146
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
147
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
148
|
+
return rect;
|
|
149
|
+
}
|
|
150
|
+
let scroll = {
|
|
87
151
|
scrollLeft: 0,
|
|
88
152
|
scrollTop: 0
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
153
|
+
};
|
|
154
|
+
let scale = createCoords(1);
|
|
155
|
+
const offsets = createCoords(0);
|
|
156
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
157
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
158
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
159
|
+
scroll = getNodeScroll(offsetParent);
|
|
160
|
+
}
|
|
161
|
+
if (isHTMLElement(offsetParent)) {
|
|
162
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
163
|
+
scale = getScale(offsetParent);
|
|
164
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
165
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
166
|
+
}
|
|
94
167
|
}
|
|
95
|
-
const
|
|
168
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
96
169
|
return {
|
|
97
|
-
width:
|
|
98
|
-
height:
|
|
99
|
-
x:
|
|
100
|
-
y:
|
|
170
|
+
width: rect.width * scale.x,
|
|
171
|
+
height: rect.height * scale.y,
|
|
172
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
173
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
101
174
|
};
|
|
102
175
|
}
|
|
103
|
-
function
|
|
104
|
-
return Array.from(
|
|
176
|
+
function getClientRects(element) {
|
|
177
|
+
return Array.from(element.getClientRects());
|
|
105
178
|
}
|
|
106
|
-
function
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
179
|
+
function getDocumentRect(element) {
|
|
180
|
+
const html = getDocumentElement(element);
|
|
181
|
+
const scroll = getNodeScroll(element);
|
|
182
|
+
const body = element.ownerDocument.body;
|
|
183
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
184
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
185
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
186
|
+
const y = -scroll.scrollTop;
|
|
187
|
+
if (getComputedStyle$1(body).direction === "rtl") {
|
|
188
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
189
|
+
}
|
|
190
|
+
return {
|
|
191
|
+
width,
|
|
192
|
+
height,
|
|
193
|
+
x,
|
|
194
|
+
y
|
|
115
195
|
};
|
|
116
196
|
}
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
197
|
+
const SCROLLBAR_MAX = 25;
|
|
198
|
+
function getViewportRect(element, strategy) {
|
|
199
|
+
const win = getWindow(element);
|
|
200
|
+
const html = getDocumentElement(element);
|
|
201
|
+
const visualViewport = win.visualViewport;
|
|
202
|
+
let width = html.clientWidth;
|
|
203
|
+
let height = html.clientHeight;
|
|
204
|
+
let x = 0;
|
|
205
|
+
let y = 0;
|
|
206
|
+
if (visualViewport) {
|
|
207
|
+
width = visualViewport.width;
|
|
208
|
+
height = visualViewport.height;
|
|
209
|
+
const visualViewportBased = isWebKit();
|
|
210
|
+
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
211
|
+
x = visualViewport.offsetLeft;
|
|
212
|
+
y = visualViewport.offsetTop;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
216
|
+
if (windowScrollbarX <= 0) {
|
|
217
|
+
const doc = html.ownerDocument;
|
|
218
|
+
const body = doc.body;
|
|
219
|
+
const bodyStyles = getComputedStyle(body);
|
|
220
|
+
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
221
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
222
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
223
|
+
width -= clippingStableScrollbarWidth;
|
|
224
|
+
}
|
|
225
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
226
|
+
width += windowScrollbarX;
|
|
227
|
+
}
|
|
131
228
|
return {
|
|
132
|
-
width
|
|
133
|
-
height
|
|
134
|
-
x
|
|
135
|
-
y
|
|
229
|
+
width,
|
|
230
|
+
height,
|
|
231
|
+
x,
|
|
232
|
+
y
|
|
136
233
|
};
|
|
137
234
|
}
|
|
138
|
-
const
|
|
139
|
-
function
|
|
140
|
-
const
|
|
235
|
+
const absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
236
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
237
|
+
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
238
|
+
const top = clientRect.top + element.clientTop;
|
|
239
|
+
const left = clientRect.left + element.clientLeft;
|
|
240
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
241
|
+
const width = element.clientWidth * scale.x;
|
|
242
|
+
const height = element.clientHeight * scale.y;
|
|
243
|
+
const x = left * scale.x;
|
|
244
|
+
const y = top * scale.y;
|
|
141
245
|
return {
|
|
142
|
-
width
|
|
143
|
-
height
|
|
144
|
-
x
|
|
145
|
-
y
|
|
246
|
+
width,
|
|
247
|
+
height,
|
|
248
|
+
x,
|
|
249
|
+
y
|
|
146
250
|
};
|
|
147
251
|
}
|
|
148
|
-
function
|
|
149
|
-
let
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
else if (
|
|
153
|
-
|
|
154
|
-
else if (
|
|
155
|
-
|
|
156
|
-
else {
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
x:
|
|
160
|
-
y:
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
252
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
253
|
+
let rect;
|
|
254
|
+
if (clippingAncestor === "viewport") {
|
|
255
|
+
rect = getViewportRect(element, strategy);
|
|
256
|
+
} else if (clippingAncestor === "document") {
|
|
257
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
258
|
+
} else if (isElement(clippingAncestor)) {
|
|
259
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
260
|
+
} else {
|
|
261
|
+
const visualOffsets = getVisualOffsets(element);
|
|
262
|
+
rect = {
|
|
263
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
264
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
265
|
+
width: clippingAncestor.width,
|
|
266
|
+
height: clippingAncestor.height
|
|
163
267
|
};
|
|
164
268
|
}
|
|
165
|
-
return
|
|
269
|
+
return rectToClientRect(rect);
|
|
166
270
|
}
|
|
167
|
-
function
|
|
168
|
-
const
|
|
169
|
-
|
|
271
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
272
|
+
const parentNode = getParentNode(element);
|
|
273
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
return getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
170
277
|
}
|
|
171
|
-
function
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
let
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
278
|
+
function getClippingElementAncestors(element, cache) {
|
|
279
|
+
const cachedResult = cache.get(element);
|
|
280
|
+
if (cachedResult) {
|
|
281
|
+
return cachedResult;
|
|
282
|
+
}
|
|
283
|
+
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
284
|
+
let currentContainingBlockComputedStyle = null;
|
|
285
|
+
const elementIsFixed = getComputedStyle$1(element).position === "fixed";
|
|
286
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
287
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
288
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
289
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
290
|
+
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
291
|
+
currentContainingBlockComputedStyle = null;
|
|
292
|
+
}
|
|
293
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
294
|
+
if (shouldDropCurrentNode) {
|
|
295
|
+
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
296
|
+
} else {
|
|
297
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
298
|
+
}
|
|
299
|
+
currentNode = getParentNode(currentNode);
|
|
300
|
+
}
|
|
301
|
+
cache.set(element, result);
|
|
302
|
+
return result;
|
|
183
303
|
}
|
|
184
|
-
function
|
|
304
|
+
function getClippingRect(_ref) {
|
|
185
305
|
let {
|
|
186
|
-
element
|
|
187
|
-
boundary
|
|
188
|
-
rootBoundary
|
|
189
|
-
strategy
|
|
190
|
-
} =
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
306
|
+
element,
|
|
307
|
+
boundary,
|
|
308
|
+
rootBoundary,
|
|
309
|
+
strategy
|
|
310
|
+
} = _ref;
|
|
311
|
+
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
312
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
313
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
314
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
315
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
316
|
+
accRect.top = max(rect.top, accRect.top);
|
|
317
|
+
accRect.right = min(rect.right, accRect.right);
|
|
318
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
319
|
+
accRect.left = max(rect.left, accRect.left);
|
|
320
|
+
return accRect;
|
|
321
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
195
322
|
return {
|
|
196
|
-
width:
|
|
197
|
-
height:
|
|
198
|
-
x:
|
|
199
|
-
y:
|
|
323
|
+
width: clippingRect.right - clippingRect.left,
|
|
324
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
325
|
+
x: clippingRect.left,
|
|
326
|
+
y: clippingRect.top
|
|
200
327
|
};
|
|
201
328
|
}
|
|
202
|
-
function
|
|
329
|
+
function getDimensions(element) {
|
|
203
330
|
const {
|
|
204
|
-
width
|
|
205
|
-
height
|
|
206
|
-
} =
|
|
331
|
+
width,
|
|
332
|
+
height
|
|
333
|
+
} = getCssDimensions(element);
|
|
207
334
|
return {
|
|
208
|
-
width
|
|
209
|
-
height
|
|
335
|
+
width,
|
|
336
|
+
height
|
|
210
337
|
};
|
|
211
338
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
214
|
-
|
|
339
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
340
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
341
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
342
|
+
const isFixed = strategy === "fixed";
|
|
343
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
344
|
+
let scroll = {
|
|
215
345
|
scrollLeft: 0,
|
|
216
346
|
scrollTop: 0
|
|
217
347
|
};
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
if (
|
|
223
|
-
if ((
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
348
|
+
const offsets = createCoords(0);
|
|
349
|
+
function setLeftRTLScrollbarOffset() {
|
|
350
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
351
|
+
}
|
|
352
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
353
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
354
|
+
scroll = getNodeScroll(offsetParent);
|
|
355
|
+
}
|
|
356
|
+
if (isOffsetParentAnElement) {
|
|
357
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
358
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
359
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
360
|
+
} else if (documentElement) {
|
|
361
|
+
setLeftRTLScrollbarOffset();
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
365
|
+
setLeftRTLScrollbarOffset();
|
|
366
|
+
}
|
|
367
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
368
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
369
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
229
370
|
return {
|
|
230
|
-
x
|
|
231
|
-
y
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
371
|
+
x,
|
|
372
|
+
y,
|
|
373
|
+
width: rect.width,
|
|
374
|
+
height: rect.height
|
|
234
375
|
};
|
|
235
376
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
377
|
+
function isStaticPositioned(element) {
|
|
378
|
+
return getComputedStyle$1(element).position === "static";
|
|
238
379
|
}
|
|
239
|
-
function
|
|
240
|
-
if (!
|
|
380
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
381
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
|
|
241
382
|
return null;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
383
|
+
}
|
|
384
|
+
if (polyfill) {
|
|
385
|
+
return polyfill(element);
|
|
386
|
+
}
|
|
387
|
+
let rawOffsetParent = element.offsetParent;
|
|
388
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
389
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
390
|
+
}
|
|
391
|
+
return rawOffsetParent;
|
|
246
392
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
if (
|
|
250
|
-
return
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
393
|
+
function getOffsetParent(element, polyfill) {
|
|
394
|
+
const win = getWindow(element);
|
|
395
|
+
if (isTopLayer(element)) {
|
|
396
|
+
return win;
|
|
397
|
+
}
|
|
398
|
+
if (!isHTMLElement(element)) {
|
|
399
|
+
let svgOffsetParent = getParentNode(element);
|
|
400
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
401
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
402
|
+
return svgOffsetParent;
|
|
403
|
+
}
|
|
404
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
257
405
|
}
|
|
258
|
-
return
|
|
406
|
+
return win;
|
|
259
407
|
}
|
|
260
|
-
let
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
408
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
409
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
410
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
411
|
+
}
|
|
412
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
413
|
+
return win;
|
|
414
|
+
}
|
|
415
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
264
416
|
}
|
|
265
|
-
const
|
|
266
|
-
const
|
|
417
|
+
const getElementRects = async function(data) {
|
|
418
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
419
|
+
const getDimensionsFn = this.getDimensions;
|
|
420
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
267
421
|
return {
|
|
268
|
-
reference:
|
|
422
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
269
423
|
floating: {
|
|
270
424
|
x: 0,
|
|
271
425
|
y: 0,
|
|
272
|
-
width:
|
|
273
|
-
height:
|
|
426
|
+
width: floatingDimensions.width,
|
|
427
|
+
height: floatingDimensions.height
|
|
274
428
|
}
|
|
275
429
|
};
|
|
276
430
|
};
|
|
277
|
-
function
|
|
278
|
-
return
|
|
431
|
+
function isRTL(element) {
|
|
432
|
+
return getComputedStyle$1(element).direction === "rtl";
|
|
279
433
|
}
|
|
280
|
-
const
|
|
281
|
-
convertOffsetParentRelativeRectToViewportRelativeRect
|
|
282
|
-
getDocumentElement
|
|
283
|
-
getClippingRect
|
|
284
|
-
getOffsetParent
|
|
285
|
-
getElementRects
|
|
286
|
-
getClientRects
|
|
287
|
-
getDimensions
|
|
288
|
-
getScale
|
|
289
|
-
isElement
|
|
290
|
-
isRTL
|
|
434
|
+
const platform = {
|
|
435
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
436
|
+
getDocumentElement,
|
|
437
|
+
getClippingRect,
|
|
438
|
+
getOffsetParent,
|
|
439
|
+
getElementRects,
|
|
440
|
+
getClientRects,
|
|
441
|
+
getDimensions,
|
|
442
|
+
getScale,
|
|
443
|
+
isElement,
|
|
444
|
+
isRTL
|
|
291
445
|
};
|
|
292
|
-
function
|
|
293
|
-
return
|
|
446
|
+
function rectsAreEqual(a, b) {
|
|
447
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
294
448
|
}
|
|
295
|
-
function
|
|
296
|
-
let
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
449
|
+
function observeMove(element, onMove) {
|
|
450
|
+
let io = null;
|
|
451
|
+
let timeoutId;
|
|
452
|
+
const root = getDocumentElement(element);
|
|
453
|
+
function cleanup() {
|
|
454
|
+
var _io;
|
|
455
|
+
clearTimeout(timeoutId);
|
|
456
|
+
(_io = io) == null || _io.disconnect();
|
|
457
|
+
io = null;
|
|
458
|
+
}
|
|
459
|
+
function refresh(skip, threshold) {
|
|
460
|
+
if (skip === void 0) {
|
|
461
|
+
skip = false;
|
|
462
|
+
}
|
|
463
|
+
if (threshold === void 0) {
|
|
464
|
+
threshold = 1;
|
|
465
|
+
}
|
|
466
|
+
cleanup();
|
|
467
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
468
|
+
const {
|
|
469
|
+
left,
|
|
470
|
+
top,
|
|
471
|
+
width,
|
|
472
|
+
height
|
|
473
|
+
} = elementRectForRootMargin;
|
|
474
|
+
if (!skip) {
|
|
475
|
+
onMove();
|
|
476
|
+
}
|
|
477
|
+
if (!width || !height) {
|
|
311
478
|
return;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
479
|
+
}
|
|
480
|
+
const insetTop = floor(top);
|
|
481
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
482
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
483
|
+
const insetLeft = floor(left);
|
|
484
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
485
|
+
const options = {
|
|
486
|
+
rootMargin,
|
|
487
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
315
488
|
};
|
|
316
|
-
let
|
|
317
|
-
function
|
|
318
|
-
const
|
|
319
|
-
if (
|
|
320
|
-
if (!
|
|
321
|
-
return
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
489
|
+
let isFirstUpdate = true;
|
|
490
|
+
function handleObserve(entries) {
|
|
491
|
+
const ratio = entries[0].intersectionRatio;
|
|
492
|
+
if (ratio !== threshold) {
|
|
493
|
+
if (!isFirstUpdate) {
|
|
494
|
+
return refresh();
|
|
495
|
+
}
|
|
496
|
+
if (!ratio) {
|
|
497
|
+
timeoutId = setTimeout(() => {
|
|
498
|
+
refresh(false, 1e-7);
|
|
499
|
+
}, 1e3);
|
|
500
|
+
} else {
|
|
501
|
+
refresh(false, ratio);
|
|
502
|
+
}
|
|
325
503
|
}
|
|
326
|
-
|
|
504
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
505
|
+
refresh();
|
|
506
|
+
}
|
|
507
|
+
isFirstUpdate = false;
|
|
327
508
|
}
|
|
328
509
|
try {
|
|
329
|
-
|
|
330
|
-
...
|
|
510
|
+
io = new IntersectionObserver(handleObserve, {
|
|
511
|
+
...options,
|
|
331
512
|
// Handle <iframe>s
|
|
332
|
-
root:
|
|
513
|
+
root: root.ownerDocument
|
|
333
514
|
});
|
|
334
|
-
} catch {
|
|
335
|
-
|
|
515
|
+
} catch (_e) {
|
|
516
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
336
517
|
}
|
|
337
|
-
|
|
518
|
+
io.observe(element);
|
|
338
519
|
}
|
|
339
|
-
|
|
520
|
+
refresh(true);
|
|
521
|
+
return cleanup;
|
|
340
522
|
}
|
|
341
|
-
function
|
|
342
|
-
|
|
523
|
+
function autoUpdate(reference, floating, update, options) {
|
|
524
|
+
if (options === void 0) {
|
|
525
|
+
options = {};
|
|
526
|
+
}
|
|
343
527
|
const {
|
|
344
|
-
ancestorScroll
|
|
345
|
-
ancestorResize
|
|
346
|
-
elementResize
|
|
347
|
-
layoutShift
|
|
348
|
-
animationFrame
|
|
349
|
-
} =
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
528
|
+
ancestorScroll = true,
|
|
529
|
+
ancestorResize = true,
|
|
530
|
+
elementResize = typeof ResizeObserver === "function",
|
|
531
|
+
layoutShift = typeof IntersectionObserver === "function",
|
|
532
|
+
animationFrame = false
|
|
533
|
+
} = options;
|
|
534
|
+
const referenceEl = unwrapElement(reference);
|
|
535
|
+
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
|
|
536
|
+
ancestors.forEach((ancestor) => {
|
|
537
|
+
ancestorScroll && ancestor.addEventListener("scroll", update, {
|
|
538
|
+
passive: true
|
|
539
|
+
});
|
|
540
|
+
ancestorResize && ancestor.addEventListener("resize", update);
|
|
354
541
|
});
|
|
355
|
-
const
|
|
356
|
-
let
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
(
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
542
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
543
|
+
let reobserveFrame = -1;
|
|
544
|
+
let resizeObserver = null;
|
|
545
|
+
if (elementResize) {
|
|
546
|
+
resizeObserver = new ResizeObserver((_ref) => {
|
|
547
|
+
let [firstEntry] = _ref;
|
|
548
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
549
|
+
resizeObserver.unobserve(floating);
|
|
550
|
+
cancelAnimationFrame(reobserveFrame);
|
|
551
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
552
|
+
var _resizeObserver;
|
|
553
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
update();
|
|
557
|
+
});
|
|
558
|
+
if (referenceEl && !animationFrame) {
|
|
559
|
+
resizeObserver.observe(referenceEl);
|
|
560
|
+
}
|
|
561
|
+
resizeObserver.observe(floating);
|
|
562
|
+
}
|
|
563
|
+
let frameId;
|
|
564
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
565
|
+
if (animationFrame) {
|
|
566
|
+
frameLoop();
|
|
567
|
+
}
|
|
568
|
+
function frameLoop() {
|
|
569
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
570
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
571
|
+
update();
|
|
572
|
+
}
|
|
573
|
+
prevRefRect = nextRefRect;
|
|
574
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
575
|
+
}
|
|
576
|
+
update();
|
|
577
|
+
return () => {
|
|
578
|
+
var _resizeObserver2;
|
|
579
|
+
ancestors.forEach((ancestor) => {
|
|
580
|
+
ancestorScroll && ancestor.removeEventListener("scroll", update);
|
|
581
|
+
ancestorResize && ancestor.removeEventListener("resize", update);
|
|
582
|
+
});
|
|
583
|
+
cleanupIo == null || cleanupIo();
|
|
584
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
585
|
+
resizeObserver = null;
|
|
586
|
+
if (animationFrame) {
|
|
587
|
+
cancelAnimationFrame(frameId);
|
|
588
|
+
}
|
|
375
589
|
};
|
|
376
590
|
}
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
591
|
+
const offset = offset$1;
|
|
592
|
+
const shift = shift$1;
|
|
593
|
+
const flip = flip$1;
|
|
594
|
+
const size = size$1;
|
|
595
|
+
const hide = hide$1;
|
|
596
|
+
const arrow = arrow$1;
|
|
597
|
+
const limitShift = limitShift$1;
|
|
598
|
+
const computePosition = (reference, floating, options) => {
|
|
599
|
+
const cache = /* @__PURE__ */ new Map();
|
|
600
|
+
const mergedOptions = {
|
|
601
|
+
platform,
|
|
602
|
+
...options
|
|
603
|
+
};
|
|
604
|
+
const platformWithCache = {
|
|
605
|
+
...mergedOptions.platform,
|
|
606
|
+
_c: cache
|
|
384
607
|
};
|
|
385
|
-
return
|
|
386
|
-
...
|
|
387
|
-
platform:
|
|
608
|
+
return computePosition$1(reference, floating, {
|
|
609
|
+
...mergedOptions,
|
|
610
|
+
platform: platformWithCache
|
|
388
611
|
});
|
|
389
612
|
};
|
|
390
613
|
export {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
614
|
+
arrow,
|
|
615
|
+
autoUpdate,
|
|
616
|
+
computePosition,
|
|
617
|
+
flip,
|
|
618
|
+
getOverflowAncestors,
|
|
619
|
+
hide,
|
|
620
|
+
limitShift,
|
|
621
|
+
offset,
|
|
622
|
+
platform,
|
|
623
|
+
shift,
|
|
624
|
+
size
|
|
402
625
|
};
|
|
403
626
|
//# sourceMappingURL=floating-ui.dom.js.map
|