lecom-ui 4.3.7 → 4.3.8
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/index.d.ts +1 -1
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-collapsible/dist/index.js +144 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.js +38 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.js +38 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +11 -11
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js +79 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/dist/index.js +831 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-roving-focus/dist/index.js +220 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-primitive/dist/index.js +38 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-roving-focus/dist/index.js +220 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.js +38 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +17 -17
- package/dist/node_modules/@radix-ui/react-select/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-visually-hidden/dist/index.js +34 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +38 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive/dist/index.js +38 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.js +63 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
- package/package.json +6 -6
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { assignRef } from './assignRef.js';
|
|
3
|
+
import { useCallbackRef } from './useRef.js';
|
|
4
|
+
|
|
5
|
+
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
6
|
+
var currentValues = new WeakMap();
|
|
7
|
+
/**
|
|
8
|
+
* Merges two or more refs together providing a single interface to set their value
|
|
9
|
+
* @param {RefObject|Ref} refs
|
|
10
|
+
* @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
|
|
11
|
+
*
|
|
12
|
+
* @see {@link mergeRefs} a version without buit-in memoization
|
|
13
|
+
* @see https://github.com/theKashey/use-callback-ref#usemergerefs
|
|
14
|
+
* @example
|
|
15
|
+
* const Component = React.forwardRef((props, ref) => {
|
|
16
|
+
* const ownRef = useRef();
|
|
17
|
+
* const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
|
|
18
|
+
* return <div ref={domRef}>...</div>
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
function useMergeRefs(refs, defaultValue) {
|
|
22
|
+
var callbackRef = useCallbackRef(null, function (newValue) {
|
|
23
|
+
return refs.forEach(function (ref) { return assignRef(ref, newValue); });
|
|
24
|
+
});
|
|
25
|
+
// handle refs changes - added or removed
|
|
26
|
+
useIsomorphicLayoutEffect(function () {
|
|
27
|
+
var oldValue = currentValues.get(callbackRef);
|
|
28
|
+
if (oldValue) {
|
|
29
|
+
var prevRefs_1 = new Set(oldValue);
|
|
30
|
+
var nextRefs_1 = new Set(refs);
|
|
31
|
+
var current_1 = callbackRef.current;
|
|
32
|
+
prevRefs_1.forEach(function (ref) {
|
|
33
|
+
if (!nextRefs_1.has(ref)) {
|
|
34
|
+
assignRef(ref, null);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
nextRefs_1.forEach(function (ref) {
|
|
38
|
+
if (!prevRefs_1.has(ref)) {
|
|
39
|
+
assignRef(ref, current_1);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
currentValues.set(callbackRef, refs);
|
|
44
|
+
}, [refs]);
|
|
45
|
+
return callbackRef;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { useMergeRefs };
|
package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-callback-ref/dist/es2015/useRef.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* creates a MutableRef with ref change callback
|
|
5
|
+
* @param initialValue - initial ref value
|
|
6
|
+
* @param {Function} callback - a callback to run when value changes
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
|
|
10
|
+
* ref.current = 1;
|
|
11
|
+
* // prints 0 -> 1
|
|
12
|
+
*
|
|
13
|
+
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
|
14
|
+
* @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
|
|
15
|
+
* @returns {MutableRefObject}
|
|
16
|
+
*/
|
|
17
|
+
function useCallbackRef(initialValue, callback) {
|
|
18
|
+
var ref = useState(function () { return ({
|
|
19
|
+
// value
|
|
20
|
+
value: initialValue,
|
|
21
|
+
// last callback
|
|
22
|
+
callback: callback,
|
|
23
|
+
// "memoized" public interface
|
|
24
|
+
facade: {
|
|
25
|
+
get current() {
|
|
26
|
+
return ref.value;
|
|
27
|
+
},
|
|
28
|
+
set current(value) {
|
|
29
|
+
var last = ref.value;
|
|
30
|
+
if (last !== value) {
|
|
31
|
+
ref.value = value;
|
|
32
|
+
ref.callback(value, last);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
}); })[0];
|
|
37
|
+
// update callback
|
|
38
|
+
ref.callback = callback;
|
|
39
|
+
return ref.facade;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { useCallbackRef };
|
package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-sidecar/dist/es2015/exports.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __rest, __assign } from '../../../../../../tslib/tslib.es6.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
var SideCar = function (_a) {
|
|
5
|
+
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
6
|
+
if (!sideCar) {
|
|
7
|
+
throw new Error('Sidecar: please provide `sideCar` property to import the right car');
|
|
8
|
+
}
|
|
9
|
+
var Target = sideCar.read();
|
|
10
|
+
if (!Target) {
|
|
11
|
+
throw new Error('Sidecar medium not found');
|
|
12
|
+
}
|
|
13
|
+
return React.createElement(Target, __assign({}, rest));
|
|
14
|
+
};
|
|
15
|
+
SideCar.isSideCarExport = true;
|
|
16
|
+
function exportSidecar(medium, exported) {
|
|
17
|
+
medium.useMedium(exported);
|
|
18
|
+
return SideCar;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { exportSidecar };
|
package/dist/node_modules/@radix-ui/react-dialog/node_modules/use-sidecar/dist/es2015/medium.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __assign } from '../../../../../../tslib/tslib.es6.js';
|
|
2
|
+
|
|
3
|
+
function ItoI(a) {
|
|
4
|
+
return a;
|
|
5
|
+
}
|
|
6
|
+
function innerCreateMedium(defaults, middleware) {
|
|
7
|
+
if (middleware === void 0) { middleware = ItoI; }
|
|
8
|
+
var buffer = [];
|
|
9
|
+
var assigned = false;
|
|
10
|
+
var medium = {
|
|
11
|
+
read: function () {
|
|
12
|
+
if (assigned) {
|
|
13
|
+
throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
|
|
14
|
+
}
|
|
15
|
+
if (buffer.length) {
|
|
16
|
+
return buffer[buffer.length - 1];
|
|
17
|
+
}
|
|
18
|
+
return defaults;
|
|
19
|
+
},
|
|
20
|
+
useMedium: function (data) {
|
|
21
|
+
var item = middleware(data, assigned);
|
|
22
|
+
buffer.push(item);
|
|
23
|
+
return function () {
|
|
24
|
+
buffer = buffer.filter(function (x) { return x !== item; });
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
assignSyncMedium: function (cb) {
|
|
28
|
+
assigned = true;
|
|
29
|
+
while (buffer.length) {
|
|
30
|
+
var cbs = buffer;
|
|
31
|
+
buffer = [];
|
|
32
|
+
cbs.forEach(cb);
|
|
33
|
+
}
|
|
34
|
+
buffer = {
|
|
35
|
+
push: function (x) { return cb(x); },
|
|
36
|
+
filter: function () { return buffer; },
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
assignMedium: function (cb) {
|
|
40
|
+
assigned = true;
|
|
41
|
+
var pendingQueue = [];
|
|
42
|
+
if (buffer.length) {
|
|
43
|
+
var cbs = buffer;
|
|
44
|
+
buffer = [];
|
|
45
|
+
cbs.forEach(cb);
|
|
46
|
+
pendingQueue = buffer;
|
|
47
|
+
}
|
|
48
|
+
var executeQueue = function () {
|
|
49
|
+
var cbs = pendingQueue;
|
|
50
|
+
pendingQueue = [];
|
|
51
|
+
cbs.forEach(cb);
|
|
52
|
+
};
|
|
53
|
+
var cycle = function () { return Promise.resolve().then(executeQueue); };
|
|
54
|
+
cycle();
|
|
55
|
+
buffer = {
|
|
56
|
+
push: function (x) {
|
|
57
|
+
pendingQueue.push(x);
|
|
58
|
+
cycle();
|
|
59
|
+
},
|
|
60
|
+
filter: function (filter) {
|
|
61
|
+
pendingQueue = pendingQueue.filter(filter);
|
|
62
|
+
return buffer;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
return medium;
|
|
68
|
+
}
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
70
|
+
function createSidecarMedium(options) {
|
|
71
|
+
if (options === void 0) { options = {}; }
|
|
72
|
+
var medium = innerCreateMedium(null);
|
|
73
|
+
medium.options = __assign({ async: true, ssr: false }, options);
|
|
74
|
+
return medium;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { createSidecarMedium };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { composeEventHandlers } from '../../primitive/dist/index.js';
|
|
3
|
-
import { composeRefs } from '
|
|
4
|
-
import { createContextScope } from '
|
|
5
|
-
import { useControllableState } from '
|
|
6
|
-
import { Primitive } from '
|
|
7
|
-
import { createMenuScope, SubTrigger, SubContent, Portal, Content as Content2$1, Item as Item2$1, CheckboxItem, ItemIndicator, RadioItem, Label, Separator, Root as Root3, Anchor as Anchor2, Group, Sub, RadioGroup, Arrow as Arrow2 } from '
|
|
8
|
-
import { useId } from '
|
|
3
|
+
import { composeRefs } from '../node_modules/@radix-ui/react-compose-refs/dist/index.js';
|
|
4
|
+
import { createContextScope } from '../node_modules/@radix-ui/react-context/dist/index.js';
|
|
5
|
+
import { useControllableState } from '../node_modules/@radix-ui/react-use-controllable-state/dist/index.js';
|
|
6
|
+
import { Primitive } from '../node_modules/@radix-ui/react-primitive/dist/index.js';
|
|
7
|
+
import { createMenuScope, SubTrigger, SubContent, Portal, Content as Content2$1, Item as Item2$1, CheckboxItem, ItemIndicator, RadioItem, Label, Separator, Root as Root3, Anchor as Anchor2, Group, Sub, RadioGroup, Arrow as Arrow2 } from '../node_modules/@radix-ui/react-menu/dist/index.js';
|
|
8
|
+
import { useId } from '../node_modules/@radix-ui/react-id/dist/index.js';
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
@@ -0,0 +1,347 @@
|
|
|
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/dist/floating-ui.dom.js';
|
|
2
|
+
export { autoUpdate, platform } from '../../../../../../@floating-ui/dom/dist/floating-ui.dom.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useLayoutEffect, useEffect } from 'react';
|
|
5
|
+
import * as ReactDOM from 'react-dom';
|
|
6
|
+
|
|
7
|
+
var index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
|
|
8
|
+
|
|
9
|
+
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
10
|
+
// functions
|
|
11
|
+
function deepEqual(a, b) {
|
|
12
|
+
if (a === b) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
if (typeof a !== typeof b) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
if (typeof a === 'function' && a.toString() === b.toString()) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
let length;
|
|
22
|
+
let i;
|
|
23
|
+
let keys;
|
|
24
|
+
if (a && b && typeof a === 'object') {
|
|
25
|
+
if (Array.isArray(a)) {
|
|
26
|
+
length = a.length;
|
|
27
|
+
if (length !== b.length) return false;
|
|
28
|
+
for (i = length; i-- !== 0;) {
|
|
29
|
+
if (!deepEqual(a[i], b[i])) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
keys = Object.keys(a);
|
|
36
|
+
length = keys.length;
|
|
37
|
+
if (length !== Object.keys(b).length) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
for (i = length; i-- !== 0;) {
|
|
41
|
+
if (!{}.hasOwnProperty.call(b, keys[i])) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
for (i = length; i-- !== 0;) {
|
|
46
|
+
const key = keys[i];
|
|
47
|
+
if (key === '_owner' && a.$$typeof) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (!deepEqual(a[key], b[key])) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
return a !== a && b !== b;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function getDPR(element) {
|
|
60
|
+
if (typeof window === 'undefined') {
|
|
61
|
+
return 1;
|
|
62
|
+
}
|
|
63
|
+
const win = element.ownerDocument.defaultView || window;
|
|
64
|
+
return win.devicePixelRatio || 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function roundByDPR(element, value) {
|
|
68
|
+
const dpr = getDPR(element);
|
|
69
|
+
return Math.round(value * dpr) / dpr;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function useLatestRef(value) {
|
|
73
|
+
const ref = React.useRef(value);
|
|
74
|
+
index(() => {
|
|
75
|
+
ref.current = value;
|
|
76
|
+
});
|
|
77
|
+
return ref;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Provides data to position a floating element.
|
|
82
|
+
* @see https://floating-ui.com/docs/useFloating
|
|
83
|
+
*/
|
|
84
|
+
function useFloating(options) {
|
|
85
|
+
if (options === void 0) {
|
|
86
|
+
options = {};
|
|
87
|
+
}
|
|
88
|
+
const {
|
|
89
|
+
placement = 'bottom',
|
|
90
|
+
strategy = 'absolute',
|
|
91
|
+
middleware = [],
|
|
92
|
+
platform,
|
|
93
|
+
elements: {
|
|
94
|
+
reference: externalReference,
|
|
95
|
+
floating: externalFloating
|
|
96
|
+
} = {},
|
|
97
|
+
transform = true,
|
|
98
|
+
whileElementsMounted,
|
|
99
|
+
open
|
|
100
|
+
} = options;
|
|
101
|
+
const [data, setData] = React.useState({
|
|
102
|
+
x: 0,
|
|
103
|
+
y: 0,
|
|
104
|
+
strategy,
|
|
105
|
+
placement,
|
|
106
|
+
middlewareData: {},
|
|
107
|
+
isPositioned: false
|
|
108
|
+
});
|
|
109
|
+
const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
|
|
110
|
+
if (!deepEqual(latestMiddleware, middleware)) {
|
|
111
|
+
setLatestMiddleware(middleware);
|
|
112
|
+
}
|
|
113
|
+
const [_reference, _setReference] = React.useState(null);
|
|
114
|
+
const [_floating, _setFloating] = React.useState(null);
|
|
115
|
+
const setReference = React.useCallback(node => {
|
|
116
|
+
if (node !== referenceRef.current) {
|
|
117
|
+
referenceRef.current = node;
|
|
118
|
+
_setReference(node);
|
|
119
|
+
}
|
|
120
|
+
}, []);
|
|
121
|
+
const setFloating = React.useCallback(node => {
|
|
122
|
+
if (node !== floatingRef.current) {
|
|
123
|
+
floatingRef.current = node;
|
|
124
|
+
_setFloating(node);
|
|
125
|
+
}
|
|
126
|
+
}, []);
|
|
127
|
+
const referenceEl = externalReference || _reference;
|
|
128
|
+
const floatingEl = externalFloating || _floating;
|
|
129
|
+
const referenceRef = React.useRef(null);
|
|
130
|
+
const floatingRef = React.useRef(null);
|
|
131
|
+
const dataRef = React.useRef(data);
|
|
132
|
+
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
133
|
+
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
134
|
+
const platformRef = useLatestRef(platform);
|
|
135
|
+
const openRef = useLatestRef(open);
|
|
136
|
+
const update = React.useCallback(() => {
|
|
137
|
+
if (!referenceRef.current || !floatingRef.current) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const config = {
|
|
141
|
+
placement,
|
|
142
|
+
strategy,
|
|
143
|
+
middleware: latestMiddleware
|
|
144
|
+
};
|
|
145
|
+
if (platformRef.current) {
|
|
146
|
+
config.platform = platformRef.current;
|
|
147
|
+
}
|
|
148
|
+
computePosition(referenceRef.current, floatingRef.current, config).then(data => {
|
|
149
|
+
const fullData = {
|
|
150
|
+
...data,
|
|
151
|
+
// The floating element's position may be recomputed while it's closed
|
|
152
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
153
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
154
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
155
|
+
isPositioned: openRef.current !== false
|
|
156
|
+
};
|
|
157
|
+
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
158
|
+
dataRef.current = fullData;
|
|
159
|
+
ReactDOM.flushSync(() => {
|
|
160
|
+
setData(fullData);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}, [latestMiddleware, placement, strategy, platformRef, openRef]);
|
|
165
|
+
index(() => {
|
|
166
|
+
if (open === false && dataRef.current.isPositioned) {
|
|
167
|
+
dataRef.current.isPositioned = false;
|
|
168
|
+
setData(data => ({
|
|
169
|
+
...data,
|
|
170
|
+
isPositioned: false
|
|
171
|
+
}));
|
|
172
|
+
}
|
|
173
|
+
}, [open]);
|
|
174
|
+
const isMountedRef = React.useRef(false);
|
|
175
|
+
index(() => {
|
|
176
|
+
isMountedRef.current = true;
|
|
177
|
+
return () => {
|
|
178
|
+
isMountedRef.current = false;
|
|
179
|
+
};
|
|
180
|
+
}, []);
|
|
181
|
+
index(() => {
|
|
182
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
183
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
184
|
+
if (referenceEl && floatingEl) {
|
|
185
|
+
if (whileElementsMountedRef.current) {
|
|
186
|
+
return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
187
|
+
}
|
|
188
|
+
update();
|
|
189
|
+
}
|
|
190
|
+
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
|
|
191
|
+
const refs = React.useMemo(() => ({
|
|
192
|
+
reference: referenceRef,
|
|
193
|
+
floating: floatingRef,
|
|
194
|
+
setReference,
|
|
195
|
+
setFloating
|
|
196
|
+
}), [setReference, setFloating]);
|
|
197
|
+
const elements = React.useMemo(() => ({
|
|
198
|
+
reference: referenceEl,
|
|
199
|
+
floating: floatingEl
|
|
200
|
+
}), [referenceEl, floatingEl]);
|
|
201
|
+
const floatingStyles = React.useMemo(() => {
|
|
202
|
+
const initialStyles = {
|
|
203
|
+
position: strategy,
|
|
204
|
+
left: 0,
|
|
205
|
+
top: 0
|
|
206
|
+
};
|
|
207
|
+
if (!elements.floating) {
|
|
208
|
+
return initialStyles;
|
|
209
|
+
}
|
|
210
|
+
const x = roundByDPR(elements.floating, data.x);
|
|
211
|
+
const y = roundByDPR(elements.floating, data.y);
|
|
212
|
+
if (transform) {
|
|
213
|
+
return {
|
|
214
|
+
...initialStyles,
|
|
215
|
+
transform: "translate(" + x + "px, " + y + "px)",
|
|
216
|
+
...(getDPR(elements.floating) >= 1.5 && {
|
|
217
|
+
willChange: 'transform'
|
|
218
|
+
})
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
position: strategy,
|
|
223
|
+
left: x,
|
|
224
|
+
top: y
|
|
225
|
+
};
|
|
226
|
+
}, [strategy, transform, elements.floating, data.x, data.y]);
|
|
227
|
+
return React.useMemo(() => ({
|
|
228
|
+
...data,
|
|
229
|
+
update,
|
|
230
|
+
refs,
|
|
231
|
+
elements,
|
|
232
|
+
floatingStyles
|
|
233
|
+
}), [data, update, refs, elements, floatingStyles]);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Provides data to position an inner element of the floating element so that it
|
|
238
|
+
* appears centered to the reference element.
|
|
239
|
+
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
240
|
+
* @see https://floating-ui.com/docs/arrow
|
|
241
|
+
*/
|
|
242
|
+
const arrow$1 = options => {
|
|
243
|
+
function isRef(value) {
|
|
244
|
+
return {}.hasOwnProperty.call(value, 'current');
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
name: 'arrow',
|
|
248
|
+
options,
|
|
249
|
+
fn(state) {
|
|
250
|
+
const {
|
|
251
|
+
element,
|
|
252
|
+
padding
|
|
253
|
+
} = typeof options === 'function' ? options(state) : options;
|
|
254
|
+
if (element && isRef(element)) {
|
|
255
|
+
if (element.current != null) {
|
|
256
|
+
return arrow$2({
|
|
257
|
+
element: element.current,
|
|
258
|
+
padding
|
|
259
|
+
}).fn(state);
|
|
260
|
+
}
|
|
261
|
+
return {};
|
|
262
|
+
}
|
|
263
|
+
if (element) {
|
|
264
|
+
return arrow$2({
|
|
265
|
+
element,
|
|
266
|
+
padding
|
|
267
|
+
}).fn(state);
|
|
268
|
+
}
|
|
269
|
+
return {};
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Modifies the placement by translating the floating element along the
|
|
276
|
+
* specified axes.
|
|
277
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
278
|
+
* object may be passed.
|
|
279
|
+
* @see https://floating-ui.com/docs/offset
|
|
280
|
+
*/
|
|
281
|
+
const offset = (options, deps) => ({
|
|
282
|
+
...offset$1(options),
|
|
283
|
+
options: [options, deps]
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
288
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
289
|
+
* @see https://floating-ui.com/docs/shift
|
|
290
|
+
*/
|
|
291
|
+
const shift = (options, deps) => ({
|
|
292
|
+
...shift$1(options),
|
|
293
|
+
options: [options, deps]
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
298
|
+
*/
|
|
299
|
+
const limitShift = (options, deps) => ({
|
|
300
|
+
...limitShift$1(options),
|
|
301
|
+
options: [options, deps]
|
|
302
|
+
});
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
306
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
307
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
308
|
+
* @see https://floating-ui.com/docs/flip
|
|
309
|
+
*/
|
|
310
|
+
const flip = (options, deps) => ({
|
|
311
|
+
...flip$1(options),
|
|
312
|
+
options: [options, deps]
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Provides data that allows you to change the size of the floating element —
|
|
317
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
318
|
+
* width of the reference element.
|
|
319
|
+
* @see https://floating-ui.com/docs/size
|
|
320
|
+
*/
|
|
321
|
+
const size = (options, deps) => ({
|
|
322
|
+
...size$1(options),
|
|
323
|
+
options: [options, deps]
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
328
|
+
* when it is not in the same clipping context as the reference element.
|
|
329
|
+
* @see https://floating-ui.com/docs/hide
|
|
330
|
+
*/
|
|
331
|
+
const hide = (options, deps) => ({
|
|
332
|
+
...hide$1(options),
|
|
333
|
+
options: [options, deps]
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Provides data to position an inner element of the floating element so that it
|
|
338
|
+
* appears centered to the reference element.
|
|
339
|
+
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
340
|
+
* @see https://floating-ui.com/docs/arrow
|
|
341
|
+
*/
|
|
342
|
+
const arrow = (options, deps) => ({
|
|
343
|
+
...arrow$1(options),
|
|
344
|
+
options: [options, deps]
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
export { arrow, computePosition, flip, hide, limitShift, offset, shift, size, useFloating };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Primitive } from '../../react-primitive/dist/index.js';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// packages/react/arrow/src/arrow.tsx
|
|
6
|
+
var NAME = "Arrow";
|
|
7
|
+
var Arrow = React.forwardRef((props, forwardedRef) => {
|
|
8
|
+
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Primitive.svg,
|
|
11
|
+
{
|
|
12
|
+
...arrowProps,
|
|
13
|
+
ref: forwardedRef,
|
|
14
|
+
width,
|
|
15
|
+
height,
|
|
16
|
+
viewBox: "0 0 30 10",
|
|
17
|
+
preserveAspectRatio: "none",
|
|
18
|
+
children: props.asChild ? children : /* @__PURE__ */ jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
Arrow.displayName = NAME;
|
|
23
|
+
var Root = Arrow;
|
|
24
|
+
|
|
25
|
+
export { Arrow, Root };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { createContextScope } from '../../react-context/dist/index.js';
|
|
3
|
+
import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
|
|
4
|
+
import { Slot } from '../../../../../react-slot/dist/index.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function createCollection(name) {
|
|
8
|
+
const PROVIDER_NAME = name + "CollectionProvider";
|
|
9
|
+
const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
|
|
10
|
+
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
11
|
+
PROVIDER_NAME,
|
|
12
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
13
|
+
);
|
|
14
|
+
const CollectionProvider = (props) => {
|
|
15
|
+
const { scope, children } = props;
|
|
16
|
+
const ref = React__default.useRef(null);
|
|
17
|
+
const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
|
|
18
|
+
return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
19
|
+
};
|
|
20
|
+
CollectionProvider.displayName = PROVIDER_NAME;
|
|
21
|
+
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
22
|
+
const CollectionSlot = React__default.forwardRef(
|
|
23
|
+
(props, forwardedRef) => {
|
|
24
|
+
const { scope, children } = props;
|
|
25
|
+
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
26
|
+
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
27
|
+
return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
31
|
+
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
32
|
+
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
33
|
+
const CollectionItemSlot = React__default.forwardRef(
|
|
34
|
+
(props, forwardedRef) => {
|
|
35
|
+
const { scope, children, ...itemData } = props;
|
|
36
|
+
const ref = React__default.useRef(null);
|
|
37
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
38
|
+
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
39
|
+
React__default.useEffect(() => {
|
|
40
|
+
context.itemMap.set(ref, { ref, ...itemData });
|
|
41
|
+
return () => void context.itemMap.delete(ref);
|
|
42
|
+
});
|
|
43
|
+
return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
47
|
+
function useCollection(scope) {
|
|
48
|
+
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
49
|
+
const getItems = React__default.useCallback(() => {
|
|
50
|
+
const collectionNode = context.collectionRef.current;
|
|
51
|
+
if (!collectionNode) return [];
|
|
52
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
53
|
+
const items = Array.from(context.itemMap.values());
|
|
54
|
+
const orderedItems = items.sort(
|
|
55
|
+
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
56
|
+
);
|
|
57
|
+
return orderedItems;
|
|
58
|
+
}, [context.collectionRef, context.itemMap]);
|
|
59
|
+
return getItems;
|
|
60
|
+
}
|
|
61
|
+
return [
|
|
62
|
+
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
63
|
+
useCollection,
|
|
64
|
+
createCollectionScope
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { createCollection };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
// packages/react/compose-refs/src/composeRefs.tsx
|
|
4
|
+
function setRef(ref, value) {
|
|
5
|
+
if (typeof ref === "function") {
|
|
6
|
+
return ref(value);
|
|
7
|
+
} else if (ref !== null && ref !== void 0) {
|
|
8
|
+
ref.current = value;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function composeRefs(...refs) {
|
|
12
|
+
return (node) => {
|
|
13
|
+
let hasCleanup = false;
|
|
14
|
+
const cleanups = refs.map((ref) => {
|
|
15
|
+
const cleanup = setRef(ref, node);
|
|
16
|
+
if (!hasCleanup && typeof cleanup == "function") {
|
|
17
|
+
hasCleanup = true;
|
|
18
|
+
}
|
|
19
|
+
return cleanup;
|
|
20
|
+
});
|
|
21
|
+
if (hasCleanup) {
|
|
22
|
+
return () => {
|
|
23
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
24
|
+
const cleanup = cleanups[i];
|
|
25
|
+
if (typeof cleanup == "function") {
|
|
26
|
+
cleanup();
|
|
27
|
+
} else {
|
|
28
|
+
setRef(refs[i], null);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function useComposedRefs(...refs) {
|
|
36
|
+
return React.useCallback(composeRefs(...refs), refs);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { composeRefs, useComposedRefs };
|