@sparrowengg/twigs-editor-react 0.0.1 → 0.0.3
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/cjs/_virtual/isURL.js +1 -1
- package/dist/cjs/components/base-dropdown/index.js +13 -15
- package/dist/cjs/components/base-dropdown/index.js.map +1 -1
- package/dist/cjs/components/dialog-link-editor/index.js +16 -16
- package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js +21 -28
- package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js.map +1 -1
- package/dist/cjs/components/dialog-link-editor/link-tooltip.js +13 -17
- package/dist/cjs/components/dialog-link-editor/link-tooltip.js.map +1 -1
- package/dist/cjs/components/floating-toolbar/floating-toolbar.js +18 -18
- package/dist/cjs/components/floating-toolbar/floating-toolbar.js.map +1 -1
- package/dist/cjs/components/rich-editor/index.js +7 -7
- package/dist/cjs/components/rich-editor/index.js.map +1 -1
- package/dist/cjs/components/toolbar/toolbar.js +5 -5
- package/dist/cjs/components/toolbar/toolbar.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/bold.js +5 -5
- package/dist/cjs/components/toolbar/tools/bold.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/code-block.js +5 -5
- package/dist/cjs/components/toolbar/tools/code-block.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/code.js +5 -5
- package/dist/cjs/components/toolbar/tools/code.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/format.js +9 -10
- package/dist/cjs/components/toolbar/tools/format.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/italic.js +5 -5
- package/dist/cjs/components/toolbar/tools/italic.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/link.js +5 -5
- package/dist/cjs/components/toolbar/tools/link.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/ordered-list.js +5 -5
- package/dist/cjs/components/toolbar/tools/ordered-list.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/text-align.js +8 -11
- package/dist/cjs/components/toolbar/tools/text-align.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/underline.js +5 -5
- package/dist/cjs/components/toolbar/tools/underline.js.map +1 -1
- package/dist/cjs/components/toolbar/tools/unordered-list.js +5 -5
- package/dist/cjs/components/toolbar/tools/unordered-list.js.map +1 -1
- package/dist/cjs/components/toolbar-context/context.js +3 -3
- package/dist/cjs/components/toolbar-context/store.js +9 -9
- package/dist/cjs/editor.js +8 -5
- package/dist/cjs/editor.js.map +1 -1
- package/dist/cjs/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/cjs/node_modules/validator/es/lib/isFQDN.js.map +1 -0
- package/dist/cjs/node_modules/validator/es/lib/isIP.js.map +1 -0
- package/dist/cjs/node_modules/validator/es/lib/isURL.js.map +1 -0
- package/dist/cjs/node_modules/validator/es/lib/util/assertString.js.map +1 -0
- package/dist/cjs/node_modules/validator/es/lib/util/merge.js.map +1 -0
- package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isFQDN.js +1 -1
- package/dist/cjs/node_modules/validator/lib/isFQDN.js.map +1 -0
- package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isIP.js +1 -1
- package/dist/cjs/node_modules/validator/lib/isIP.js.map +1 -0
- package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/isURL.js +1 -1
- package/dist/cjs/node_modules/validator/lib/isURL.js.map +1 -0
- package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/util/assertString.js +1 -1
- package/dist/cjs/node_modules/validator/lib/util/assertString.js.map +1 -0
- package/dist/cjs/{react-editor/node_modules → node_modules}/validator/lib/util/merge.js +1 -1
- package/dist/cjs/node_modules/validator/lib/util/merge.js.map +1 -0
- package/dist/cjs/nodes/image.js +4 -4
- package/dist/cjs/nodes/image.js.map +1 -1
- package/dist/cjs/plugins/data-management-plugin/index.js +3 -3
- package/dist/cjs/plugins/emoji/index.js +5 -3
- package/dist/cjs/plugins/emoji/index.js.map +1 -1
- package/dist/cjs/plugins/hashtag/index.js +2 -0
- package/dist/cjs/plugins/hashtag/index.js.map +1 -1
- package/dist/cjs/plugins/images/index.js +2 -2
- package/dist/cjs/plugins/link/convert-selection-on-paste.js +2 -2
- package/dist/cjs/plugins/link/link.js +2 -2
- package/dist/cjs/plugins/mentions/index.js +2 -0
- package/dist/cjs/plugins/mentions/index.js.map +1 -1
- package/dist/cjs/plugins/tab-focus/index.js +3 -3
- package/dist/cjs/utils/prefix-class-name.js +2 -2
- package/dist/cjs/utils/prefix-class-name.js.map +1 -1
- package/dist/cjs/utils/use-node-focus.js +2 -2
- package/dist/es/_virtual/isURL.js +1 -1
- package/dist/es/components/base-dropdown/index.js +1 -3
- package/dist/es/components/base-dropdown/index.js.map +1 -1
- package/dist/es/components/dialog-link-editor/index.js +1 -1
- package/dist/es/components/dialog-link-editor/link-editor-dialog.js +2 -9
- package/dist/es/components/dialog-link-editor/link-editor-dialog.js.map +1 -1
- package/dist/es/components/dialog-link-editor/link-tooltip.js +2 -6
- package/dist/es/components/dialog-link-editor/link-tooltip.js.map +1 -1
- package/dist/es/components/floating-toolbar/floating-toolbar.js +2 -2
- package/dist/es/components/rich-editor/index.js +1 -1
- package/dist/es/components/toolbar/toolbar.js +1 -1
- package/dist/es/components/toolbar/tools/bold.js +3 -3
- package/dist/es/components/toolbar/tools/code-block.js +3 -3
- package/dist/es/components/toolbar/tools/code.js +3 -3
- package/dist/es/components/toolbar/tools/format.js +2 -3
- package/dist/es/components/toolbar/tools/format.js.map +1 -1
- package/dist/es/components/toolbar/tools/italic.js +3 -3
- package/dist/es/components/toolbar/tools/link.js +3 -3
- package/dist/es/components/toolbar/tools/ordered-list.js +3 -3
- package/dist/es/components/toolbar/tools/text-align.js +3 -6
- package/dist/es/components/toolbar/tools/text-align.js.map +1 -1
- package/dist/es/components/toolbar/tools/underline.js +3 -3
- package/dist/es/components/toolbar/tools/unordered-list.js +3 -3
- package/dist/es/editor.js +5 -2
- package/dist/es/editor.js.map +1 -1
- package/dist/es/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/es/node_modules/validator/es/lib/isFQDN.js.map +1 -0
- package/dist/es/node_modules/validator/es/lib/isIP.js.map +1 -0
- package/dist/es/node_modules/validator/es/lib/isURL.js.map +1 -0
- package/dist/es/node_modules/validator/es/lib/util/assertString.js.map +1 -0
- package/dist/es/node_modules/validator/es/lib/util/merge.js.map +1 -0
- package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isFQDN.js +1 -1
- package/dist/es/node_modules/validator/lib/isFQDN.js.map +1 -0
- package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isIP.js +1 -1
- package/dist/es/node_modules/validator/lib/isIP.js.map +1 -0
- package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/isURL.js +1 -1
- package/dist/es/node_modules/validator/lib/isURL.js.map +1 -0
- package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/util/assertString.js +1 -1
- package/dist/es/node_modules/validator/lib/util/assertString.js.map +1 -0
- package/dist/es/{react-editor/node_modules → node_modules}/validator/lib/util/merge.js +1 -1
- package/dist/es/node_modules/validator/lib/util/merge.js.map +1 -0
- package/dist/es/nodes/image.js +1 -1
- package/dist/es/plugins/emoji/index.js +2 -0
- package/dist/es/plugins/emoji/index.js.map +1 -1
- package/dist/es/plugins/hashtag/index.js +2 -0
- package/dist/es/plugins/hashtag/index.js.map +1 -1
- package/dist/es/plugins/mentions/index.js +2 -0
- package/dist/es/plugins/mentions/index.js.map +1 -1
- package/dist/es/utils/prefix-class-name.js +1 -1
- package/dist/index.d.ts +9 -4
- package/package.json +3 -1
- package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -8
- package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/cjs/react-components/dist/es/_virtual/index.js +0 -6
- package/dist/cjs/react-components/dist/es/_virtual/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/_virtual/index2.js +0 -6
- package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +0 -1
- package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +0 -6
- package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
- package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +0 -6
- package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
- package/dist/cjs/react-components/dist/es/box/box.js +0 -47
- package/dist/cjs/react-components/dist/es/box/box.js.map +0 -1
- package/dist/cjs/react-components/dist/es/button/button.js +0 -774
- package/dist/cjs/react-components/dist/es/button/button.js.map +0 -1
- package/dist/cjs/react-components/dist/es/button/icon-button.js +0 -77
- package/dist/cjs/react-components/dist/es/button/icon-button.js.map +0 -1
- package/dist/cjs/react-components/dist/es/button/side-element.js +0 -199
- package/dist/cjs/react-components/dist/es/button/side-element.js.map +0 -1
- package/dist/cjs/react-components/dist/es/button/utils.js +0 -105
- package/dist/cjs/react-components/dist/es/button/utils.js.map +0 -1
- package/dist/cjs/react-components/dist/es/dialog/dialog.js +0 -197
- package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +0 -1
- package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +0 -195
- package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +0 -1
- package/dist/cjs/react-components/dist/es/flex/flex.js +0 -98
- package/dist/cjs/react-components/dist/es/flex/flex.js.map +0 -1
- package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +0 -76
- package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
- package/dist/cjs/react-components/dist/es/form-label/form-label.js +0 -176
- package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +0 -1
- package/dist/cjs/react-components/dist/es/input/form-input.js +0 -159
- package/dist/cjs/react-components/dist/es/input/form-input.js.map +0 -1
- package/dist/cjs/react-components/dist/es/input/input.js +0 -377
- package/dist/cjs/react-components/dist/es/input/input.js.map +0 -1
- package/dist/cjs/react-components/dist/es/link/link.js +0 -58
- package/dist/cjs/react-components/dist/es/link/link.js.map +0 -1
- package/dist/cjs/react-components/dist/es/loader/circle.js +0 -204
- package/dist/cjs/react-components/dist/es/loader/circle.js.map +0 -1
- package/dist/cjs/react-components/dist/es/loader/line.js +0 -130
- package/dist/cjs/react-components/dist/es/loader/line.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -21
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -14
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -19
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -14
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -788
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -612
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -299
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -146
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -148
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -14
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -48
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -71
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -41
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -102
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -354
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -33
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -234
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -303
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -48
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -229
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -37
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -47
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -847
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -309
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -39
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -142
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -65
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -246
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -104
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -509
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -34
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -68
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -40
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -29
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -62
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -58
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -9
- package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -134
- package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -19
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -17
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -27
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -11
- package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +0 -102
- package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -118
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -77
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -628
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +0 -35
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -24
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -14
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -193
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -29
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -22
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -34
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -184
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -60
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -24
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -8
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -12
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -80
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -16
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -35
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -22
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -47
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -54
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -419
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -637
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -10
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -10
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -25
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -8
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -55
- package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -27
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -25
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -45
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -43
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -80
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
- package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -97
- package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
- package/dist/cjs/react-components/dist/es/stitches.config.js +0 -392
- package/dist/cjs/react-components/dist/es/stitches.config.js.map +0 -1
- package/dist/cjs/react-components/dist/es/text/text.js +0 -117
- package/dist/cjs/react-components/dist/es/text/text.js.map +0 -1
- package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +0 -156
- package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +0 -1
- package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +0 -10
- package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +0 -9
- package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
- package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/bold.js +0 -86
- package/dist/cjs/react-icons/dist/es/icons/bold.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/close.js +0 -86
- package/dist/cjs/react-icons/dist/es/icons/close.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/code-block.js +0 -78
- package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/code.js +0 -96
- package/dist/cjs/react-icons/dist/es/icons/code.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/delete.js +0 -116
- package/dist/cjs/react-icons/dist/es/icons/delete.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/italics.js +0 -96
- package/dist/cjs/react-icons/dist/es/icons/italics.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/link.js +0 -86
- package/dist/cjs/react-icons/dist/es/icons/link.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +0 -86
- package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/pencil.js +0 -86
- package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +0 -74
- package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +0 -74
- package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +0 -74
- package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +0 -74
- package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/text-format.js +0 -78
- package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/underline.js +0 -77
- package/dist/cjs/react-icons/dist/es/icons/underline.js.map +0 -1
- package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +0 -126
- package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +0 -1
- package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +0 -6
- package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/es/react-components/dist/es/_virtual/index.js +0 -4
- package/dist/es/react-components/dist/es/_virtual/index.js.map +0 -1
- package/dist/es/react-components/dist/es/_virtual/index2.js +0 -4
- package/dist/es/react-components/dist/es/_virtual/index2.js.map +0 -1
- package/dist/es/react-components/dist/es/_virtual/react-is.development.js +0 -4
- package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +0 -1
- package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +0 -4
- package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +0 -1
- package/dist/es/react-components/dist/es/box/box.js +0 -45
- package/dist/es/react-components/dist/es/box/box.js.map +0 -1
- package/dist/es/react-components/dist/es/button/button.js +0 -772
- package/dist/es/react-components/dist/es/button/button.js.map +0 -1
- package/dist/es/react-components/dist/es/button/icon-button.js +0 -75
- package/dist/es/react-components/dist/es/button/icon-button.js.map +0 -1
- package/dist/es/react-components/dist/es/button/side-element.js +0 -197
- package/dist/es/react-components/dist/es/button/side-element.js.map +0 -1
- package/dist/es/react-components/dist/es/button/utils.js +0 -100
- package/dist/es/react-components/dist/es/button/utils.js.map +0 -1
- package/dist/es/react-components/dist/es/dialog/dialog.js +0 -193
- package/dist/es/react-components/dist/es/dialog/dialog.js.map +0 -1
- package/dist/es/react-components/dist/es/dropdown/dropdown.js +0 -190
- package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +0 -1
- package/dist/es/react-components/dist/es/flex/flex.js +0 -96
- package/dist/es/react-components/dist/es/flex/flex.js.map +0 -1
- package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +0 -74
- package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +0 -1
- package/dist/es/react-components/dist/es/form-label/form-label.js +0 -174
- package/dist/es/react-components/dist/es/form-label/form-label.js.map +0 -1
- package/dist/es/react-components/dist/es/input/form-input.js +0 -157
- package/dist/es/react-components/dist/es/input/form-input.js.map +0 -1
- package/dist/es/react-components/dist/es/input/input.js +0 -374
- package/dist/es/react-components/dist/es/input/input.js.map +0 -1
- package/dist/es/react-components/dist/es/link/link.js +0 -56
- package/dist/es/react-components/dist/es/link/link.js.map +0 -1
- package/dist/es/react-components/dist/es/loader/circle.js +0 -202
- package/dist/es/react-components/dist/es/loader/circle.js.map +0 -1
- package/dist/es/react-components/dist/es/loader/line.js +0 -128
- package/dist/es/react-components/dist/es/loader/line.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -10
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -10
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -777
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -600
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -269
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -123
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +0 -129
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +0 -12
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +0 -80
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +0 -318
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -254
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +0 -16
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +0 -25
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +0 -796
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +0 -280
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -476
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -36
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +0 -6
- package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +0 -132
- package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +0 -15
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +0 -13
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +0 -23
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +0 -9
- package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +0 -100
- package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +0 -116
- package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -75
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -626
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +0 -31
- package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -22
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +0 -12
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -191
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -27
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +0 -20
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +0 -415
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +0 -628
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -6
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +0 -6
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -22
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +0 -6
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +0 -52
- package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -23
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
- package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +0 -95
- package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +0 -1
- package/dist/es/react-components/dist/es/stitches.config.js +0 -379
- package/dist/es/react-components/dist/es/stitches.config.js.map +0 -1
- package/dist/es/react-components/dist/es/text/text.js +0 -115
- package/dist/es/react-components/dist/es/text/text.js.map +0 -1
- package/dist/es/react-components/dist/es/tooltip/tooltip.js +0 -153
- package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +0 -1
- package/dist/es/react-components/dist/es/utils/prefix-class-name.js +0 -8
- package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +0 -1
- package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +0 -4
- package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +0 -1
- package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/bold.js +0 -84
- package/dist/es/react-icons/dist/es/icons/bold.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/close.js +0 -84
- package/dist/es/react-icons/dist/es/icons/close.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/code-block.js +0 -76
- package/dist/es/react-icons/dist/es/icons/code-block.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/code.js +0 -94
- package/dist/es/react-icons/dist/es/icons/code.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/delete.js +0 -114
- package/dist/es/react-icons/dist/es/icons/delete.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/italics.js +0 -94
- package/dist/es/react-icons/dist/es/icons/italics.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/link.js +0 -84
- package/dist/es/react-icons/dist/es/icons/link.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/ordered-list.js +0 -84
- package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/pencil.js +0 -84
- package/dist/es/react-icons/dist/es/icons/pencil.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/text-align-center.js +0 -72
- package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/text-align-justify.js +0 -72
- package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/text-align-left.js +0 -72
- package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/text-align-right.js +0 -72
- package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/text-format.js +0 -76
- package/dist/es/react-icons/dist/es/icons/text-format.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/underline.js +0 -75
- package/dist/es/react-icons/dist/es/icons/underline.js.map +0 -1
- package/dist/es/react-icons/dist/es/icons/unordered-list.js +0 -124
- package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +0 -1
- /package/dist/cjs/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
- /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
- /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
- /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
- /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
- /package/dist/cjs/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
- /package/dist/es/{react-components/dist/es/packages/react-components/node_modules → node_modules}/clsx/dist/clsx.js +0 -0
- /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isFQDN.js +0 -0
- /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isIP.js +0 -0
- /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/isURL.js +0 -0
- /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/assertString.js +0 -0
- /package/dist/es/{react-editor/node_modules → node_modules}/validator/es/lib/util/merge.js +0 -0
package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js
DELETED
@@ -1,788 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var floatingUi_utils = require('../../utils/dist/floating-ui.utils.js');
|
4
|
-
|
5
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
6
|
-
let {
|
7
|
-
reference,
|
8
|
-
floating
|
9
|
-
} = _ref;
|
10
|
-
const sideAxis = floatingUi_utils.getSideAxis(placement);
|
11
|
-
const alignmentAxis = floatingUi_utils.getAlignmentAxis(placement);
|
12
|
-
const alignLength = floatingUi_utils.getAxisLength(alignmentAxis);
|
13
|
-
const side = floatingUi_utils.getSide(placement);
|
14
|
-
const isVertical = sideAxis === 'y';
|
15
|
-
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
16
|
-
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
17
|
-
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
18
|
-
let coords;
|
19
|
-
switch (side) {
|
20
|
-
case 'top':
|
21
|
-
coords = {
|
22
|
-
x: commonX,
|
23
|
-
y: reference.y - floating.height
|
24
|
-
};
|
25
|
-
break;
|
26
|
-
case 'bottom':
|
27
|
-
coords = {
|
28
|
-
x: commonX,
|
29
|
-
y: reference.y + reference.height
|
30
|
-
};
|
31
|
-
break;
|
32
|
-
case 'right':
|
33
|
-
coords = {
|
34
|
-
x: reference.x + reference.width,
|
35
|
-
y: commonY
|
36
|
-
};
|
37
|
-
break;
|
38
|
-
case 'left':
|
39
|
-
coords = {
|
40
|
-
x: reference.x - floating.width,
|
41
|
-
y: commonY
|
42
|
-
};
|
43
|
-
break;
|
44
|
-
default:
|
45
|
-
coords = {
|
46
|
-
x: reference.x,
|
47
|
-
y: reference.y
|
48
|
-
};
|
49
|
-
}
|
50
|
-
switch (floatingUi_utils.getAlignment(placement)) {
|
51
|
-
case 'start':
|
52
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
53
|
-
break;
|
54
|
-
case 'end':
|
55
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
56
|
-
break;
|
57
|
-
}
|
58
|
-
return coords;
|
59
|
-
}
|
60
|
-
|
61
|
-
/**
|
62
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
63
|
-
* next to a reference element when it is given a certain positioning strategy.
|
64
|
-
*
|
65
|
-
* This export does not have any `platform` interface logic. You will need to
|
66
|
-
* write one for the platform you are using Floating UI with.
|
67
|
-
*/
|
68
|
-
const computePosition = async (reference, floating, config) => {
|
69
|
-
const {
|
70
|
-
placement = 'bottom',
|
71
|
-
strategy = 'absolute',
|
72
|
-
middleware = [],
|
73
|
-
platform
|
74
|
-
} = config;
|
75
|
-
const validMiddleware = middleware.filter(Boolean);
|
76
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
77
|
-
let rects = await platform.getElementRects({
|
78
|
-
reference,
|
79
|
-
floating,
|
80
|
-
strategy
|
81
|
-
});
|
82
|
-
let {
|
83
|
-
x,
|
84
|
-
y
|
85
|
-
} = computeCoordsFromPlacement(rects, placement, rtl);
|
86
|
-
let statefulPlacement = placement;
|
87
|
-
let middlewareData = {};
|
88
|
-
let resetCount = 0;
|
89
|
-
for (let i = 0; i < validMiddleware.length; i++) {
|
90
|
-
const {
|
91
|
-
name,
|
92
|
-
fn
|
93
|
-
} = validMiddleware[i];
|
94
|
-
const {
|
95
|
-
x: nextX,
|
96
|
-
y: nextY,
|
97
|
-
data,
|
98
|
-
reset
|
99
|
-
} = await fn({
|
100
|
-
x,
|
101
|
-
y,
|
102
|
-
initialPlacement: placement,
|
103
|
-
placement: statefulPlacement,
|
104
|
-
strategy,
|
105
|
-
middlewareData,
|
106
|
-
rects,
|
107
|
-
platform,
|
108
|
-
elements: {
|
109
|
-
reference,
|
110
|
-
floating
|
111
|
-
}
|
112
|
-
});
|
113
|
-
x = nextX != null ? nextX : x;
|
114
|
-
y = nextY != null ? nextY : y;
|
115
|
-
middlewareData = {
|
116
|
-
...middlewareData,
|
117
|
-
[name]: {
|
118
|
-
...middlewareData[name],
|
119
|
-
...data
|
120
|
-
}
|
121
|
-
};
|
122
|
-
if (reset && resetCount <= 50) {
|
123
|
-
resetCount++;
|
124
|
-
if (typeof reset === 'object') {
|
125
|
-
if (reset.placement) {
|
126
|
-
statefulPlacement = reset.placement;
|
127
|
-
}
|
128
|
-
if (reset.rects) {
|
129
|
-
rects = reset.rects === true ? await platform.getElementRects({
|
130
|
-
reference,
|
131
|
-
floating,
|
132
|
-
strategy
|
133
|
-
}) : reset.rects;
|
134
|
-
}
|
135
|
-
({
|
136
|
-
x,
|
137
|
-
y
|
138
|
-
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
139
|
-
}
|
140
|
-
i = -1;
|
141
|
-
continue;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
return {
|
145
|
-
x,
|
146
|
-
y,
|
147
|
-
placement: statefulPlacement,
|
148
|
-
strategy,
|
149
|
-
middlewareData
|
150
|
-
};
|
151
|
-
};
|
152
|
-
|
153
|
-
/**
|
154
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
155
|
-
* element is overflowing a given clipping boundary on each side.
|
156
|
-
* - positive = overflowing the boundary by that number of pixels
|
157
|
-
* - negative = how many pixels left before it will overflow
|
158
|
-
* - 0 = lies flush with the boundary
|
159
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
160
|
-
*/
|
161
|
-
async function detectOverflow(state, options) {
|
162
|
-
var _await$platform$isEle;
|
163
|
-
if (options === void 0) {
|
164
|
-
options = {};
|
165
|
-
}
|
166
|
-
const {
|
167
|
-
x,
|
168
|
-
y,
|
169
|
-
platform,
|
170
|
-
rects,
|
171
|
-
elements,
|
172
|
-
strategy
|
173
|
-
} = state;
|
174
|
-
const {
|
175
|
-
boundary = 'clippingAncestors',
|
176
|
-
rootBoundary = 'viewport',
|
177
|
-
elementContext = 'floating',
|
178
|
-
altBoundary = false,
|
179
|
-
padding = 0
|
180
|
-
} = floatingUi_utils.evaluate(options, state);
|
181
|
-
const paddingObject = floatingUi_utils.getPaddingObject(padding);
|
182
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
183
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
184
|
-
const clippingClientRect = floatingUi_utils.rectToClientRect(await platform.getClippingRect({
|
185
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
186
|
-
boundary,
|
187
|
-
rootBoundary,
|
188
|
-
strategy
|
189
|
-
}));
|
190
|
-
const rect = elementContext === 'floating' ? {
|
191
|
-
...rects.floating,
|
192
|
-
x,
|
193
|
-
y
|
194
|
-
} : rects.reference;
|
195
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
196
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
197
|
-
x: 1,
|
198
|
-
y: 1
|
199
|
-
} : {
|
200
|
-
x: 1,
|
201
|
-
y: 1
|
202
|
-
};
|
203
|
-
const elementClientRect = floatingUi_utils.rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
204
|
-
rect,
|
205
|
-
offsetParent,
|
206
|
-
strategy
|
207
|
-
}) : rect);
|
208
|
-
return {
|
209
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
210
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
211
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
212
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
213
|
-
};
|
214
|
-
}
|
215
|
-
|
216
|
-
/**
|
217
|
-
* Provides data to position an inner element of the floating element so that it
|
218
|
-
* appears centered to the reference element.
|
219
|
-
* @see https://floating-ui.com/docs/arrow
|
220
|
-
*/
|
221
|
-
const arrow = options => ({
|
222
|
-
name: 'arrow',
|
223
|
-
options,
|
224
|
-
async fn(state) {
|
225
|
-
const {
|
226
|
-
x,
|
227
|
-
y,
|
228
|
-
placement,
|
229
|
-
rects,
|
230
|
-
platform,
|
231
|
-
elements,
|
232
|
-
middlewareData
|
233
|
-
} = state;
|
234
|
-
// Since `element` is required, we don't Partial<> the type.
|
235
|
-
const {
|
236
|
-
element,
|
237
|
-
padding = 0
|
238
|
-
} = floatingUi_utils.evaluate(options, state) || {};
|
239
|
-
if (element == null) {
|
240
|
-
return {};
|
241
|
-
}
|
242
|
-
const paddingObject = floatingUi_utils.getPaddingObject(padding);
|
243
|
-
const coords = {
|
244
|
-
x,
|
245
|
-
y
|
246
|
-
};
|
247
|
-
const axis = floatingUi_utils.getAlignmentAxis(placement);
|
248
|
-
const length = floatingUi_utils.getAxisLength(axis);
|
249
|
-
const arrowDimensions = await platform.getDimensions(element);
|
250
|
-
const isYAxis = axis === 'y';
|
251
|
-
const minProp = isYAxis ? 'top' : 'left';
|
252
|
-
const maxProp = isYAxis ? 'bottom' : 'right';
|
253
|
-
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
254
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
255
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
256
|
-
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
257
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
258
|
-
|
259
|
-
// DOM platform can return `window` as the `offsetParent`.
|
260
|
-
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
261
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
262
|
-
}
|
263
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
264
|
-
|
265
|
-
// If the padding is large enough that it causes the arrow to no longer be
|
266
|
-
// centered, modify the padding so that it is centered.
|
267
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
268
|
-
const minPadding = floatingUi_utils.min(paddingObject[minProp], largestPossiblePadding);
|
269
|
-
const maxPadding = floatingUi_utils.min(paddingObject[maxProp], largestPossiblePadding);
|
270
|
-
|
271
|
-
// Make sure the arrow doesn't overflow the floating element if the center
|
272
|
-
// point is outside the floating element's bounds.
|
273
|
-
const min$1 = minPadding;
|
274
|
-
const max = clientSize - arrowDimensions[length] - maxPadding;
|
275
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
276
|
-
const offset = floatingUi_utils.clamp(min$1, center, max);
|
277
|
-
|
278
|
-
// If the reference is small enough that the arrow's padding causes it to
|
279
|
-
// to point to nothing for an aligned placement, adjust the offset of the
|
280
|
-
// floating element itself. To ensure `shift()` continues to take action,
|
281
|
-
// a single reset is performed when this is true.
|
282
|
-
const shouldAddOffset = !middlewareData.arrow && floatingUi_utils.getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
283
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
284
|
-
return {
|
285
|
-
[axis]: coords[axis] + alignmentOffset,
|
286
|
-
data: {
|
287
|
-
[axis]: offset,
|
288
|
-
centerOffset: center - offset - alignmentOffset,
|
289
|
-
...(shouldAddOffset && {
|
290
|
-
alignmentOffset
|
291
|
-
})
|
292
|
-
},
|
293
|
-
reset: shouldAddOffset
|
294
|
-
};
|
295
|
-
}
|
296
|
-
});
|
297
|
-
|
298
|
-
/**
|
299
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
300
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
301
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
302
|
-
* @see https://floating-ui.com/docs/flip
|
303
|
-
*/
|
304
|
-
const flip = function (options) {
|
305
|
-
if (options === void 0) {
|
306
|
-
options = {};
|
307
|
-
}
|
308
|
-
return {
|
309
|
-
name: 'flip',
|
310
|
-
options,
|
311
|
-
async fn(state) {
|
312
|
-
var _middlewareData$arrow, _middlewareData$flip;
|
313
|
-
const {
|
314
|
-
placement,
|
315
|
-
middlewareData,
|
316
|
-
rects,
|
317
|
-
initialPlacement,
|
318
|
-
platform,
|
319
|
-
elements
|
320
|
-
} = state;
|
321
|
-
const {
|
322
|
-
mainAxis: checkMainAxis = true,
|
323
|
-
crossAxis: checkCrossAxis = true,
|
324
|
-
fallbackPlacements: specifiedFallbackPlacements,
|
325
|
-
fallbackStrategy = 'bestFit',
|
326
|
-
fallbackAxisSideDirection = 'none',
|
327
|
-
flipAlignment = true,
|
328
|
-
...detectOverflowOptions
|
329
|
-
} = floatingUi_utils.evaluate(options, state);
|
330
|
-
|
331
|
-
// If a reset by the arrow was caused due to an alignment offset being
|
332
|
-
// added, we should skip any logic now since `flip()` has already done its
|
333
|
-
// work.
|
334
|
-
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
335
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
336
|
-
return {};
|
337
|
-
}
|
338
|
-
const side = floatingUi_utils.getSide(placement);
|
339
|
-
const isBasePlacement = floatingUi_utils.getSide(initialPlacement) === initialPlacement;
|
340
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
341
|
-
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [floatingUi_utils.getOppositePlacement(initialPlacement)] : floatingUi_utils.getExpandedPlacements(initialPlacement));
|
342
|
-
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
343
|
-
fallbackPlacements.push(...floatingUi_utils.getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
344
|
-
}
|
345
|
-
const placements = [initialPlacement, ...fallbackPlacements];
|
346
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
347
|
-
const overflows = [];
|
348
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
349
|
-
if (checkMainAxis) {
|
350
|
-
overflows.push(overflow[side]);
|
351
|
-
}
|
352
|
-
if (checkCrossAxis) {
|
353
|
-
const sides = floatingUi_utils.getAlignmentSides(placement, rects, rtl);
|
354
|
-
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
355
|
-
}
|
356
|
-
overflowsData = [...overflowsData, {
|
357
|
-
placement,
|
358
|
-
overflows
|
359
|
-
}];
|
360
|
-
|
361
|
-
// One or more sides is overflowing.
|
362
|
-
if (!overflows.every(side => side <= 0)) {
|
363
|
-
var _middlewareData$flip2, _overflowsData$filter;
|
364
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
365
|
-
const nextPlacement = placements[nextIndex];
|
366
|
-
if (nextPlacement) {
|
367
|
-
// Try next placement and re-run the lifecycle.
|
368
|
-
return {
|
369
|
-
data: {
|
370
|
-
index: nextIndex,
|
371
|
-
overflows: overflowsData
|
372
|
-
},
|
373
|
-
reset: {
|
374
|
-
placement: nextPlacement
|
375
|
-
}
|
376
|
-
};
|
377
|
-
}
|
378
|
-
|
379
|
-
// First, find the candidates that fit on the mainAxis side of overflow,
|
380
|
-
// then find the placement that fits the best on the main crossAxis side.
|
381
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
382
|
-
|
383
|
-
// Otherwise fallback.
|
384
|
-
if (!resetPlacement) {
|
385
|
-
switch (fallbackStrategy) {
|
386
|
-
case 'bestFit':
|
387
|
-
{
|
388
|
-
var _overflowsData$map$so;
|
389
|
-
const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
390
|
-
if (placement) {
|
391
|
-
resetPlacement = placement;
|
392
|
-
}
|
393
|
-
break;
|
394
|
-
}
|
395
|
-
case 'initialPlacement':
|
396
|
-
resetPlacement = initialPlacement;
|
397
|
-
break;
|
398
|
-
}
|
399
|
-
}
|
400
|
-
if (placement !== resetPlacement) {
|
401
|
-
return {
|
402
|
-
reset: {
|
403
|
-
placement: resetPlacement
|
404
|
-
}
|
405
|
-
};
|
406
|
-
}
|
407
|
-
}
|
408
|
-
return {};
|
409
|
-
}
|
410
|
-
};
|
411
|
-
};
|
412
|
-
|
413
|
-
function getSideOffsets(overflow, rect) {
|
414
|
-
return {
|
415
|
-
top: overflow.top - rect.height,
|
416
|
-
right: overflow.right - rect.width,
|
417
|
-
bottom: overflow.bottom - rect.height,
|
418
|
-
left: overflow.left - rect.width
|
419
|
-
};
|
420
|
-
}
|
421
|
-
function isAnySideFullyClipped(overflow) {
|
422
|
-
return floatingUi_utils.sides.some(side => overflow[side] >= 0);
|
423
|
-
}
|
424
|
-
/**
|
425
|
-
* Provides data to hide the floating element in applicable situations, such as
|
426
|
-
* when it is not in the same clipping context as the reference element.
|
427
|
-
* @see https://floating-ui.com/docs/hide
|
428
|
-
*/
|
429
|
-
const hide = function (options) {
|
430
|
-
if (options === void 0) {
|
431
|
-
options = {};
|
432
|
-
}
|
433
|
-
return {
|
434
|
-
name: 'hide',
|
435
|
-
options,
|
436
|
-
async fn(state) {
|
437
|
-
const {
|
438
|
-
rects
|
439
|
-
} = state;
|
440
|
-
const {
|
441
|
-
strategy = 'referenceHidden',
|
442
|
-
...detectOverflowOptions
|
443
|
-
} = floatingUi_utils.evaluate(options, state);
|
444
|
-
switch (strategy) {
|
445
|
-
case 'referenceHidden':
|
446
|
-
{
|
447
|
-
const overflow = await detectOverflow(state, {
|
448
|
-
...detectOverflowOptions,
|
449
|
-
elementContext: 'reference'
|
450
|
-
});
|
451
|
-
const offsets = getSideOffsets(overflow, rects.reference);
|
452
|
-
return {
|
453
|
-
data: {
|
454
|
-
referenceHiddenOffsets: offsets,
|
455
|
-
referenceHidden: isAnySideFullyClipped(offsets)
|
456
|
-
}
|
457
|
-
};
|
458
|
-
}
|
459
|
-
case 'escaped':
|
460
|
-
{
|
461
|
-
const overflow = await detectOverflow(state, {
|
462
|
-
...detectOverflowOptions,
|
463
|
-
altBoundary: true
|
464
|
-
});
|
465
|
-
const offsets = getSideOffsets(overflow, rects.floating);
|
466
|
-
return {
|
467
|
-
data: {
|
468
|
-
escapedOffsets: offsets,
|
469
|
-
escaped: isAnySideFullyClipped(offsets)
|
470
|
-
}
|
471
|
-
};
|
472
|
-
}
|
473
|
-
default:
|
474
|
-
{
|
475
|
-
return {};
|
476
|
-
}
|
477
|
-
}
|
478
|
-
}
|
479
|
-
};
|
480
|
-
};
|
481
|
-
|
482
|
-
// For type backwards-compatibility, the `OffsetOptions` type was also
|
483
|
-
// Derivable.
|
484
|
-
async function convertValueToCoords(state, options) {
|
485
|
-
const {
|
486
|
-
placement,
|
487
|
-
platform,
|
488
|
-
elements
|
489
|
-
} = state;
|
490
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
491
|
-
const side = floatingUi_utils.getSide(placement);
|
492
|
-
const alignment = floatingUi_utils.getAlignment(placement);
|
493
|
-
const isVertical = floatingUi_utils.getSideAxis(placement) === 'y';
|
494
|
-
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
495
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
496
|
-
const rawValue = floatingUi_utils.evaluate(options, state);
|
497
|
-
|
498
|
-
// eslint-disable-next-line prefer-const
|
499
|
-
let {
|
500
|
-
mainAxis,
|
501
|
-
crossAxis,
|
502
|
-
alignmentAxis
|
503
|
-
} = typeof rawValue === 'number' ? {
|
504
|
-
mainAxis: rawValue,
|
505
|
-
crossAxis: 0,
|
506
|
-
alignmentAxis: null
|
507
|
-
} : {
|
508
|
-
mainAxis: 0,
|
509
|
-
crossAxis: 0,
|
510
|
-
alignmentAxis: null,
|
511
|
-
...rawValue
|
512
|
-
};
|
513
|
-
if (alignment && typeof alignmentAxis === 'number') {
|
514
|
-
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
515
|
-
}
|
516
|
-
return isVertical ? {
|
517
|
-
x: crossAxis * crossAxisMulti,
|
518
|
-
y: mainAxis * mainAxisMulti
|
519
|
-
} : {
|
520
|
-
x: mainAxis * mainAxisMulti,
|
521
|
-
y: crossAxis * crossAxisMulti
|
522
|
-
};
|
523
|
-
}
|
524
|
-
|
525
|
-
/**
|
526
|
-
* Modifies the placement by translating the floating element along the
|
527
|
-
* specified axes.
|
528
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
529
|
-
* object may be passed.
|
530
|
-
* @see https://floating-ui.com/docs/offset
|
531
|
-
*/
|
532
|
-
const offset = function (options) {
|
533
|
-
if (options === void 0) {
|
534
|
-
options = 0;
|
535
|
-
}
|
536
|
-
return {
|
537
|
-
name: 'offset',
|
538
|
-
options,
|
539
|
-
async fn(state) {
|
540
|
-
const {
|
541
|
-
x,
|
542
|
-
y
|
543
|
-
} = state;
|
544
|
-
const diffCoords = await convertValueToCoords(state, options);
|
545
|
-
return {
|
546
|
-
x: x + diffCoords.x,
|
547
|
-
y: y + diffCoords.y,
|
548
|
-
data: diffCoords
|
549
|
-
};
|
550
|
-
}
|
551
|
-
};
|
552
|
-
};
|
553
|
-
|
554
|
-
/**
|
555
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
556
|
-
* keep it in view when it will overflow the clipping boundary.
|
557
|
-
* @see https://floating-ui.com/docs/shift
|
558
|
-
*/
|
559
|
-
const shift = function (options) {
|
560
|
-
if (options === void 0) {
|
561
|
-
options = {};
|
562
|
-
}
|
563
|
-
return {
|
564
|
-
name: 'shift',
|
565
|
-
options,
|
566
|
-
async fn(state) {
|
567
|
-
const {
|
568
|
-
x,
|
569
|
-
y,
|
570
|
-
placement
|
571
|
-
} = state;
|
572
|
-
const {
|
573
|
-
mainAxis: checkMainAxis = true,
|
574
|
-
crossAxis: checkCrossAxis = false,
|
575
|
-
limiter = {
|
576
|
-
fn: _ref => {
|
577
|
-
let {
|
578
|
-
x,
|
579
|
-
y
|
580
|
-
} = _ref;
|
581
|
-
return {
|
582
|
-
x,
|
583
|
-
y
|
584
|
-
};
|
585
|
-
}
|
586
|
-
},
|
587
|
-
...detectOverflowOptions
|
588
|
-
} = floatingUi_utils.evaluate(options, state);
|
589
|
-
const coords = {
|
590
|
-
x,
|
591
|
-
y
|
592
|
-
};
|
593
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
594
|
-
const crossAxis = floatingUi_utils.getSideAxis(floatingUi_utils.getSide(placement));
|
595
|
-
const mainAxis = floatingUi_utils.getOppositeAxis(crossAxis);
|
596
|
-
let mainAxisCoord = coords[mainAxis];
|
597
|
-
let crossAxisCoord = coords[crossAxis];
|
598
|
-
if (checkMainAxis) {
|
599
|
-
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
600
|
-
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
601
|
-
const min = mainAxisCoord + overflow[minSide];
|
602
|
-
const max = mainAxisCoord - overflow[maxSide];
|
603
|
-
mainAxisCoord = floatingUi_utils.clamp(min, mainAxisCoord, max);
|
604
|
-
}
|
605
|
-
if (checkCrossAxis) {
|
606
|
-
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
607
|
-
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
608
|
-
const min = crossAxisCoord + overflow[minSide];
|
609
|
-
const max = crossAxisCoord - overflow[maxSide];
|
610
|
-
crossAxisCoord = floatingUi_utils.clamp(min, crossAxisCoord, max);
|
611
|
-
}
|
612
|
-
const limitedCoords = limiter.fn({
|
613
|
-
...state,
|
614
|
-
[mainAxis]: mainAxisCoord,
|
615
|
-
[crossAxis]: crossAxisCoord
|
616
|
-
});
|
617
|
-
return {
|
618
|
-
...limitedCoords,
|
619
|
-
data: {
|
620
|
-
x: limitedCoords.x - x,
|
621
|
-
y: limitedCoords.y - y
|
622
|
-
}
|
623
|
-
};
|
624
|
-
}
|
625
|
-
};
|
626
|
-
};
|
627
|
-
/**
|
628
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
629
|
-
*/
|
630
|
-
const limitShift = function (options) {
|
631
|
-
if (options === void 0) {
|
632
|
-
options = {};
|
633
|
-
}
|
634
|
-
return {
|
635
|
-
options,
|
636
|
-
fn(state) {
|
637
|
-
const {
|
638
|
-
x,
|
639
|
-
y,
|
640
|
-
placement,
|
641
|
-
rects,
|
642
|
-
middlewareData
|
643
|
-
} = state;
|
644
|
-
const {
|
645
|
-
offset = 0,
|
646
|
-
mainAxis: checkMainAxis = true,
|
647
|
-
crossAxis: checkCrossAxis = true
|
648
|
-
} = floatingUi_utils.evaluate(options, state);
|
649
|
-
const coords = {
|
650
|
-
x,
|
651
|
-
y
|
652
|
-
};
|
653
|
-
const crossAxis = floatingUi_utils.getSideAxis(placement);
|
654
|
-
const mainAxis = floatingUi_utils.getOppositeAxis(crossAxis);
|
655
|
-
let mainAxisCoord = coords[mainAxis];
|
656
|
-
let crossAxisCoord = coords[crossAxis];
|
657
|
-
const rawOffset = floatingUi_utils.evaluate(offset, state);
|
658
|
-
const computedOffset = typeof rawOffset === 'number' ? {
|
659
|
-
mainAxis: rawOffset,
|
660
|
-
crossAxis: 0
|
661
|
-
} : {
|
662
|
-
mainAxis: 0,
|
663
|
-
crossAxis: 0,
|
664
|
-
...rawOffset
|
665
|
-
};
|
666
|
-
if (checkMainAxis) {
|
667
|
-
const len = mainAxis === 'y' ? 'height' : 'width';
|
668
|
-
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
669
|
-
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
670
|
-
if (mainAxisCoord < limitMin) {
|
671
|
-
mainAxisCoord = limitMin;
|
672
|
-
} else if (mainAxisCoord > limitMax) {
|
673
|
-
mainAxisCoord = limitMax;
|
674
|
-
}
|
675
|
-
}
|
676
|
-
if (checkCrossAxis) {
|
677
|
-
var _middlewareData$offse, _middlewareData$offse2;
|
678
|
-
const len = mainAxis === 'y' ? 'width' : 'height';
|
679
|
-
const isOriginSide = ['top', 'left'].includes(floatingUi_utils.getSide(placement));
|
680
|
-
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
681
|
-
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
682
|
-
if (crossAxisCoord < limitMin) {
|
683
|
-
crossAxisCoord = limitMin;
|
684
|
-
} else if (crossAxisCoord > limitMax) {
|
685
|
-
crossAxisCoord = limitMax;
|
686
|
-
}
|
687
|
-
}
|
688
|
-
return {
|
689
|
-
[mainAxis]: mainAxisCoord,
|
690
|
-
[crossAxis]: crossAxisCoord
|
691
|
-
};
|
692
|
-
}
|
693
|
-
};
|
694
|
-
};
|
695
|
-
|
696
|
-
/**
|
697
|
-
* Provides data that allows you to change the size of the floating element —
|
698
|
-
* for instance, prevent it from overflowing the clipping boundary or match the
|
699
|
-
* width of the reference element.
|
700
|
-
* @see https://floating-ui.com/docs/size
|
701
|
-
*/
|
702
|
-
const size = function (options) {
|
703
|
-
if (options === void 0) {
|
704
|
-
options = {};
|
705
|
-
}
|
706
|
-
return {
|
707
|
-
name: 'size',
|
708
|
-
options,
|
709
|
-
async fn(state) {
|
710
|
-
const {
|
711
|
-
placement,
|
712
|
-
rects,
|
713
|
-
platform,
|
714
|
-
elements
|
715
|
-
} = state;
|
716
|
-
const {
|
717
|
-
apply = () => {},
|
718
|
-
...detectOverflowOptions
|
719
|
-
} = floatingUi_utils.evaluate(options, state);
|
720
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
721
|
-
const side = floatingUi_utils.getSide(placement);
|
722
|
-
const alignment = floatingUi_utils.getAlignment(placement);
|
723
|
-
const isYAxis = floatingUi_utils.getSideAxis(placement) === 'y';
|
724
|
-
const {
|
725
|
-
width,
|
726
|
-
height
|
727
|
-
} = rects.floating;
|
728
|
-
let heightSide;
|
729
|
-
let widthSide;
|
730
|
-
if (side === 'top' || side === 'bottom') {
|
731
|
-
heightSide = side;
|
732
|
-
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
733
|
-
} else {
|
734
|
-
widthSide = side;
|
735
|
-
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
736
|
-
}
|
737
|
-
const overflowAvailableHeight = height - overflow[heightSide];
|
738
|
-
const overflowAvailableWidth = width - overflow[widthSide];
|
739
|
-
const noShift = !state.middlewareData.shift;
|
740
|
-
let availableHeight = overflowAvailableHeight;
|
741
|
-
let availableWidth = overflowAvailableWidth;
|
742
|
-
if (isYAxis) {
|
743
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
744
|
-
availableWidth = alignment || noShift ? floatingUi_utils.min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
745
|
-
} else {
|
746
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
747
|
-
availableHeight = alignment || noShift ? floatingUi_utils.min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
748
|
-
}
|
749
|
-
if (noShift && !alignment) {
|
750
|
-
const xMin = floatingUi_utils.max(overflow.left, 0);
|
751
|
-
const xMax = floatingUi_utils.max(overflow.right, 0);
|
752
|
-
const yMin = floatingUi_utils.max(overflow.top, 0);
|
753
|
-
const yMax = floatingUi_utils.max(overflow.bottom, 0);
|
754
|
-
if (isYAxis) {
|
755
|
-
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : floatingUi_utils.max(overflow.left, overflow.right));
|
756
|
-
} else {
|
757
|
-
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : floatingUi_utils.max(overflow.top, overflow.bottom));
|
758
|
-
}
|
759
|
-
}
|
760
|
-
await apply({
|
761
|
-
...state,
|
762
|
-
availableWidth,
|
763
|
-
availableHeight
|
764
|
-
});
|
765
|
-
const nextDimensions = await platform.getDimensions(elements.floating);
|
766
|
-
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
767
|
-
return {
|
768
|
-
reset: {
|
769
|
-
rects: true
|
770
|
-
}
|
771
|
-
};
|
772
|
-
}
|
773
|
-
return {};
|
774
|
-
}
|
775
|
-
};
|
776
|
-
};
|
777
|
-
|
778
|
-
exports.rectToClientRect = floatingUi_utils.rectToClientRect;
|
779
|
-
exports.arrow = arrow;
|
780
|
-
exports.computePosition = computePosition;
|
781
|
-
exports.detectOverflow = detectOverflow;
|
782
|
-
exports.flip = flip;
|
783
|
-
exports.hide = hide;
|
784
|
-
exports.limitShift = limitShift;
|
785
|
-
exports.offset = offset;
|
786
|
-
exports.shift = shift;
|
787
|
-
exports.size = size;
|
788
|
-
//# sourceMappingURL=floating-ui.core.js.map
|