@react-spectrum/menu 3.22.10 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import.mjs +6 -8
- package/dist/main.js +12 -14
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -8
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +8 -0
- package/package.json +14 -46
- package/src/index.ts +9 -9
- package/dist/ActionMenu.main.js +0 -67
- package/dist/ActionMenu.main.js.map +0 -1
- package/dist/ActionMenu.mjs +0 -62
- package/dist/ActionMenu.module.js +0 -62
- package/dist/ActionMenu.module.js.map +0 -1
- package/dist/ContextualHelpTrigger.main.js +0 -192
- package/dist/ContextualHelpTrigger.main.js.map +0 -1
- package/dist/ContextualHelpTrigger.mjs +0 -187
- package/dist/ContextualHelpTrigger.module.js +0 -187
- package/dist/ContextualHelpTrigger.module.js.map +0 -1
- package/dist/Menu.main.js +0 -235
- package/dist/Menu.main.js.map +0 -1
- package/dist/Menu.mjs +0 -229
- package/dist/Menu.module.js +0 -229
- package/dist/Menu.module.js.map +0 -1
- package/dist/MenuItem.main.js +0 -149
- package/dist/MenuItem.main.js.map +0 -1
- package/dist/MenuItem.mjs +0 -144
- package/dist/MenuItem.module.js +0 -144
- package/dist/MenuItem.module.js.map +0 -1
- package/dist/MenuSection.main.js +0 -81
- package/dist/MenuSection.main.js.map +0 -1
- package/dist/MenuSection.mjs +0 -76
- package/dist/MenuSection.module.js +0 -76
- package/dist/MenuSection.module.js.map +0 -1
- package/dist/MenuTrigger.main.js +0 -128
- package/dist/MenuTrigger.main.js.map +0 -1
- package/dist/MenuTrigger.mjs +0 -123
- package/dist/MenuTrigger.module.js +0 -123
- package/dist/MenuTrigger.module.js.map +0 -1
- package/dist/Popover.main.js +0 -196
- package/dist/Popover.main.js.map +0 -1
- package/dist/Popover.mjs +0 -191
- package/dist/Popover.module.js +0 -191
- package/dist/Popover.module.js.map +0 -1
- package/dist/SubmenuTrigger.main.js +0 -154
- package/dist/SubmenuTrigger.main.js.map +0 -1
- package/dist/SubmenuTrigger.mjs +0 -149
- package/dist/SubmenuTrigger.module.js +0 -149
- package/dist/SubmenuTrigger.module.js.map +0 -1
- package/dist/Underlay.main.js +0 -54
- package/dist/Underlay.main.js.map +0 -1
- package/dist/Underlay.mjs +0 -49
- package/dist/Underlay.module.js +0 -49
- package/dist/Underlay.module.js.map +0 -1
- package/dist/ar-AE.main.js +0 -8
- package/dist/ar-AE.main.js.map +0 -1
- package/dist/ar-AE.mjs +0 -10
- package/dist/ar-AE.module.js +0 -10
- package/dist/ar-AE.module.js.map +0 -1
- package/dist/bg-BG.main.js +0 -8
- package/dist/bg-BG.main.js.map +0 -1
- package/dist/bg-BG.mjs +0 -10
- package/dist/bg-BG.module.js +0 -10
- package/dist/bg-BG.module.js.map +0 -1
- package/dist/calculatePosition.main.js +0 -392
- package/dist/calculatePosition.main.js.map +0 -1
- package/dist/calculatePosition.mjs +0 -386
- package/dist/calculatePosition.module.js +0 -386
- package/dist/calculatePosition.module.js.map +0 -1
- package/dist/context.main.js +0 -43
- package/dist/context.main.js.map +0 -1
- package/dist/context.mjs +0 -29
- package/dist/context.module.js +0 -29
- package/dist/context.module.js.map +0 -1
- package/dist/contextualhelp_vars_css.main.js +0 -23
- package/dist/contextualhelp_vars_css.main.js.map +0 -1
- package/dist/contextualhelp_vars_css.mjs +0 -25
- package/dist/contextualhelp_vars_css.module.js +0 -25
- package/dist/contextualhelp_vars_css.module.js.map +0 -1
- package/dist/cs-CZ.main.js +0 -8
- package/dist/cs-CZ.main.js.map +0 -1
- package/dist/cs-CZ.mjs +0 -10
- package/dist/cs-CZ.module.js +0 -10
- package/dist/cs-CZ.module.js.map +0 -1
- package/dist/da-DK.main.js +0 -8
- package/dist/da-DK.main.js.map +0 -1
- package/dist/da-DK.mjs +0 -10
- package/dist/da-DK.module.js +0 -10
- package/dist/da-DK.module.js.map +0 -1
- package/dist/de-DE.main.js +0 -8
- package/dist/de-DE.main.js.map +0 -1
- package/dist/de-DE.mjs +0 -10
- package/dist/de-DE.module.js +0 -10
- package/dist/de-DE.module.js.map +0 -1
- package/dist/el-GR.main.js +0 -8
- package/dist/el-GR.main.js.map +0 -1
- package/dist/el-GR.mjs +0 -10
- package/dist/el-GR.module.js +0 -10
- package/dist/el-GR.module.js.map +0 -1
- package/dist/en-US.main.js +0 -8
- package/dist/en-US.main.js.map +0 -1
- package/dist/en-US.mjs +0 -10
- package/dist/en-US.module.js +0 -10
- package/dist/en-US.module.js.map +0 -1
- package/dist/es-ES.main.js +0 -8
- package/dist/es-ES.main.js.map +0 -1
- package/dist/es-ES.mjs +0 -10
- package/dist/es-ES.module.js +0 -10
- package/dist/es-ES.module.js.map +0 -1
- package/dist/et-EE.main.js +0 -8
- package/dist/et-EE.main.js.map +0 -1
- package/dist/et-EE.mjs +0 -10
- package/dist/et-EE.module.js +0 -10
- package/dist/et-EE.module.js.map +0 -1
- package/dist/fi-FI.main.js +0 -8
- package/dist/fi-FI.main.js.map +0 -1
- package/dist/fi-FI.mjs +0 -10
- package/dist/fi-FI.module.js +0 -10
- package/dist/fi-FI.module.js.map +0 -1
- package/dist/fr-FR.main.js +0 -8
- package/dist/fr-FR.main.js.map +0 -1
- package/dist/fr-FR.mjs +0 -10
- package/dist/fr-FR.module.js +0 -10
- package/dist/fr-FR.module.js.map +0 -1
- package/dist/he-IL.main.js +0 -8
- package/dist/he-IL.main.js.map +0 -1
- package/dist/he-IL.mjs +0 -10
- package/dist/he-IL.module.js +0 -10
- package/dist/he-IL.module.js.map +0 -1
- package/dist/hr-HR.main.js +0 -8
- package/dist/hr-HR.main.js.map +0 -1
- package/dist/hr-HR.mjs +0 -10
- package/dist/hr-HR.module.js +0 -10
- package/dist/hr-HR.module.js.map +0 -1
- package/dist/hu-HU.main.js +0 -8
- package/dist/hu-HU.main.js.map +0 -1
- package/dist/hu-HU.mjs +0 -10
- package/dist/hu-HU.module.js +0 -10
- package/dist/hu-HU.module.js.map +0 -1
- package/dist/intlStrings.main.js +0 -108
- package/dist/intlStrings.main.js.map +0 -1
- package/dist/intlStrings.mjs +0 -110
- package/dist/intlStrings.module.js +0 -110
- package/dist/intlStrings.module.js.map +0 -1
- package/dist/it-IT.main.js +0 -8
- package/dist/it-IT.main.js.map +0 -1
- package/dist/it-IT.mjs +0 -10
- package/dist/it-IT.module.js +0 -10
- package/dist/it-IT.module.js.map +0 -1
- package/dist/ja-JP.main.js +0 -8
- package/dist/ja-JP.main.js.map +0 -1
- package/dist/ja-JP.mjs +0 -10
- package/dist/ja-JP.module.js +0 -10
- package/dist/ja-JP.module.js.map +0 -1
- package/dist/ko-KR.main.js +0 -8
- package/dist/ko-KR.main.js.map +0 -1
- package/dist/ko-KR.mjs +0 -10
- package/dist/ko-KR.module.js +0 -10
- package/dist/ko-KR.module.js.map +0 -1
- package/dist/lt-LT.main.js +0 -8
- package/dist/lt-LT.main.js.map +0 -1
- package/dist/lt-LT.mjs +0 -10
- package/dist/lt-LT.module.js +0 -10
- package/dist/lt-LT.module.js.map +0 -1
- package/dist/lv-LV.main.js +0 -8
- package/dist/lv-LV.main.js.map +0 -1
- package/dist/lv-LV.mjs +0 -10
- package/dist/lv-LV.module.js +0 -10
- package/dist/lv-LV.module.js.map +0 -1
- package/dist/menu.2259a533.css +0 -210
- package/dist/menu.2259a533.css.map +0 -1
- package/dist/menu.2ec1fdaf.css +0 -570
- package/dist/menu.2ec1fdaf.css.map +0 -1
- package/dist/menu.359a0c0a.css +0 -131
- package/dist/menu.359a0c0a.css.map +0 -1
- package/dist/menu.57b3a408.css +0 -12
- package/dist/menu.57b3a408.css.map +0 -1
- package/dist/menu.5b49954a.css +0 -30
- package/dist/menu.5b49954a.css.map +0 -1
- package/dist/menu_vars_css.main.js +0 -177
- package/dist/menu_vars_css.main.js.map +0 -1
- package/dist/menu_vars_css.mjs +0 -179
- package/dist/menu_vars_css.module.js +0 -179
- package/dist/menu_vars_css.module.js.map +0 -1
- package/dist/nb-NO.main.js +0 -8
- package/dist/nb-NO.main.js.map +0 -1
- package/dist/nb-NO.mjs +0 -10
- package/dist/nb-NO.module.js +0 -10
- package/dist/nb-NO.module.js.map +0 -1
- package/dist/nl-NL.main.js +0 -8
- package/dist/nl-NL.main.js.map +0 -1
- package/dist/nl-NL.mjs +0 -10
- package/dist/nl-NL.module.js +0 -10
- package/dist/nl-NL.module.js.map +0 -1
- package/dist/overlays_css.main.js +0 -35
- package/dist/overlays_css.main.js.map +0 -1
- package/dist/overlays_css.mjs +0 -37
- package/dist/overlays_css.module.js +0 -37
- package/dist/overlays_css.module.js.map +0 -1
- package/dist/pl-PL.main.js +0 -8
- package/dist/pl-PL.main.js.map +0 -1
- package/dist/pl-PL.mjs +0 -10
- package/dist/pl-PL.module.js +0 -10
- package/dist/pl-PL.module.js.map +0 -1
- package/dist/popover_vars_css.main.js +0 -83
- package/dist/popover_vars_css.main.js.map +0 -1
- package/dist/popover_vars_css.mjs +0 -85
- package/dist/popover_vars_css.module.js +0 -85
- package/dist/popover_vars_css.module.js.map +0 -1
- package/dist/pt-BR.main.js +0 -8
- package/dist/pt-BR.main.js.map +0 -1
- package/dist/pt-BR.mjs +0 -10
- package/dist/pt-BR.module.js +0 -10
- package/dist/pt-BR.module.js.map +0 -1
- package/dist/pt-PT.main.js +0 -8
- package/dist/pt-PT.main.js.map +0 -1
- package/dist/pt-PT.mjs +0 -10
- package/dist/pt-PT.module.js +0 -10
- package/dist/pt-PT.module.js.map +0 -1
- package/dist/ro-RO.main.js +0 -8
- package/dist/ro-RO.main.js.map +0 -1
- package/dist/ro-RO.mjs +0 -10
- package/dist/ro-RO.module.js +0 -10
- package/dist/ro-RO.module.js.map +0 -1
- package/dist/ru-RU.main.js +0 -8
- package/dist/ru-RU.main.js.map +0 -1
- package/dist/ru-RU.mjs +0 -10
- package/dist/ru-RU.module.js +0 -10
- package/dist/ru-RU.module.js.map +0 -1
- package/dist/sk-SK.main.js +0 -8
- package/dist/sk-SK.main.js.map +0 -1
- package/dist/sk-SK.mjs +0 -10
- package/dist/sk-SK.module.js +0 -10
- package/dist/sk-SK.module.js.map +0 -1
- package/dist/sl-SI.main.js +0 -8
- package/dist/sl-SI.main.js.map +0 -1
- package/dist/sl-SI.mjs +0 -10
- package/dist/sl-SI.module.js +0 -10
- package/dist/sl-SI.module.js.map +0 -1
- package/dist/sr-SP.main.js +0 -8
- package/dist/sr-SP.main.js.map +0 -1
- package/dist/sr-SP.mjs +0 -10
- package/dist/sr-SP.module.js +0 -10
- package/dist/sr-SP.module.js.map +0 -1
- package/dist/sv-SE.main.js +0 -8
- package/dist/sv-SE.main.js.map +0 -1
- package/dist/sv-SE.mjs +0 -10
- package/dist/sv-SE.module.js +0 -10
- package/dist/sv-SE.module.js.map +0 -1
- package/dist/tr-TR.main.js +0 -8
- package/dist/tr-TR.main.js.map +0 -1
- package/dist/tr-TR.mjs +0 -10
- package/dist/tr-TR.module.js +0 -10
- package/dist/tr-TR.module.js.map +0 -1
- package/dist/types.d.ts +0 -43
- package/dist/types.d.ts.map +0 -1
- package/dist/uk-UA.main.js +0 -8
- package/dist/uk-UA.main.js.map +0 -1
- package/dist/uk-UA.mjs +0 -10
- package/dist/uk-UA.module.js +0 -10
- package/dist/uk-UA.module.js.map +0 -1
- package/dist/underlay_vars_css.main.js +0 -50
- package/dist/underlay_vars_css.main.js.map +0 -1
- package/dist/underlay_vars_css.mjs +0 -52
- package/dist/underlay_vars_css.module.js +0 -52
- package/dist/underlay_vars_css.module.js.map +0 -1
- package/dist/useCloseOnScroll.main.js +0 -51
- package/dist/useCloseOnScroll.main.js.map +0 -1
- package/dist/useCloseOnScroll.mjs +0 -46
- package/dist/useCloseOnScroll.module.js +0 -46
- package/dist/useCloseOnScroll.module.js.map +0 -1
- package/dist/useOverlayPosition.main.js +0 -225
- package/dist/useOverlayPosition.main.js.map +0 -1
- package/dist/useOverlayPosition.mjs +0 -220
- package/dist/useOverlayPosition.module.js +0 -220
- package/dist/useOverlayPosition.module.js.map +0 -1
- package/dist/usePopover.main.js +0 -73
- package/dist/usePopover.main.js.map +0 -1
- package/dist/usePopover.mjs +0 -68
- package/dist/usePopover.module.js +0 -68
- package/dist/usePopover.module.js.map +0 -1
- package/dist/zh-CN.main.js +0 -8
- package/dist/zh-CN.main.js.map +0 -1
- package/dist/zh-CN.mjs +0 -10
- package/dist/zh-CN.module.js +0 -10
- package/dist/zh-CN.module.js.map +0 -1
- package/dist/zh-TW.main.js +0 -8
- package/dist/zh-TW.main.js.map +0 -1
- package/dist/zh-TW.mjs +0 -10
- package/dist/zh-TW.module.js +0 -10
- package/dist/zh-TW.module.js.map +0 -1
- package/src/ActionMenu.tsx +0 -58
- package/src/ContextualHelpTrigger.tsx +0 -194
- package/src/Menu.tsx +0 -228
- package/src/MenuItem.tsx +0 -159
- package/src/MenuSection.tsx +0 -100
- package/src/MenuTrigger.tsx +0 -125
- package/src/Popover.tsx +0 -240
- package/src/SubmenuTrigger.tsx +0 -154
- package/src/Underlay.tsx +0 -43
- package/src/calculatePosition.ts +0 -627
- package/src/context.ts +0 -63
- package/src/overlays.css +0 -32
- package/src/useCloseOnScroll.ts +0 -65
- package/src/useOverlayPosition.ts +0 -327
- package/src/usePopover.ts +0 -136
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;ACwBA;;;GAGG;AACH,OAAO,MAAM,sHAgGX,CAAC;AOpGH;IACE;;OAEG;IACH,QAAQ,EAAE,aAAa,GAAG,CAAC,EAAE,CAAC;IAC9B,SAAS,EAAE,GAAG,CAAA;CACf;AAED,4CAA6C,SAAQ,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC;CAAG;AAwH9F,OAAA,IAAI,gBAA+C,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,OAAO,CAAC;AGzHvG;;GAEG;AAGH,OAAO,MAAM,MAyFP,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,OAAO,cAAc,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;ACpGxF;;GAEG;AACH,OAAO,MAAM,YA6BP,CAAC,CAAC,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,aAAa,iBAAiB,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;AC9BvG;IACE,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wDAAwD;IACxD,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;CACvC;AAMD,+CAAgD,SAAQ,sBAAsB;CAAG;AA0JjF,OAAA,IAAI,uBAA4C,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,OAAO,CAAC;AC7KvG,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAC,uBAAuB,EAAE,iBAAiB,EAAE,wBAAwB,EAAC,MAAM,mBAAmB,CAAC","sources":["packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/context.ts","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/MenuTrigger.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/Underlay.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/calculatePosition.ts","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/useCloseOnScroll.ts","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/useOverlayPosition.ts","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/usePopover.ts","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/Popover.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/SubmenuTrigger.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/MenuItem.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/MenuSection.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/Menu.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/index.ts","packages/@react-spectrum/menu/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {MenuTrigger} from './MenuTrigger';\nexport {SubmenuTrigger} from './SubmenuTrigger';\nexport {Menu} from './Menu';\nexport {ActionMenu} from './ActionMenu';\nexport {ContextualHelpTrigger} from './ContextualHelpTrigger';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps} from '@react-types/menu';\nexport type {SpectrumMenuDialogTriggerProps} from './ContextualHelpTrigger';\nexport type {SpectrumSubmenuTriggerProps} from './SubmenuTrigger';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/dist/uk-UA.main.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"backButton": (args)=>`\u{41F}\u{43E}\u{432}\u{435}\u{440}\u{43D}\u{443}\u{442}\u{438}\u{441}\u{44F} \u{434}\u{43E} ${args.prevMenuButton}`,
|
|
3
|
-
"moreActions": `\u{411}\u{456}\u{43B}\u{44C}\u{448}\u{435} \u{434}\u{456}\u{439}`,
|
|
4
|
-
"unavailable": `\u{41D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}, \u{440}\u{43E}\u{437}\u{433}\u{43E}\u{440}\u{43D}\u{456}\u{442}\u{44C} \u{434}\u{43B}\u{44F} \u{434}\u{43E}\u{43A}\u{43B}\u{430}\u{434}\u{43D}\u{456}\u{448}\u{43E}\u{457} \u{456}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{456}\u{457}`
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=uk-UA.main.js.map
|
package/dist/uk-UA.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,6FAAe,EAAE,KAAK,cAAc,EAAE;IACjF,eAAe,CAAC,gEAAU,CAAC;IAC3B,eAAe,CAAC,yTAAiD,CAAC;AACpE","sources":["packages/@react-spectrum/menu/intl/uk-UA.json"],"sourcesContent":["{\n \"backButton\": \"Повернутися до {prevMenuButton}\",\n \"moreActions\": \"Більше дій\",\n \"unavailable\": \"Недоступно, розгорніть для докладнішої інформації\"\n}\n"],"names":[],"version":3,"file":"uk-UA.main.js.map"}
|
package/dist/uk-UA.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var $9a5e4d563d152847$exports = {};
|
|
2
|
-
$9a5e4d563d152847$exports = {
|
|
3
|
-
"backButton": (args)=>`\u{41F}\u{43E}\u{432}\u{435}\u{440}\u{43D}\u{443}\u{442}\u{438}\u{441}\u{44F} \u{434}\u{43E} ${args.prevMenuButton}`,
|
|
4
|
-
"moreActions": `\u{411}\u{456}\u{43B}\u{44C}\u{448}\u{435} \u{434}\u{456}\u{439}`,
|
|
5
|
-
"unavailable": `\u{41D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}, \u{440}\u{43E}\u{437}\u{433}\u{43E}\u{440}\u{43D}\u{456}\u{442}\u{44C} \u{434}\u{43B}\u{44F} \u{434}\u{43E}\u{43A}\u{43B}\u{430}\u{434}\u{43D}\u{456}\u{448}\u{43E}\u{457} \u{456}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{456}\u{457}`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {$9a5e4d563d152847$exports as default};
|
|
10
|
-
//# sourceMappingURL=uk-UA.module.js.map
|
package/dist/uk-UA.module.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var $9a5e4d563d152847$exports = {};
|
|
2
|
-
$9a5e4d563d152847$exports = {
|
|
3
|
-
"backButton": (args)=>`\u{41F}\u{43E}\u{432}\u{435}\u{440}\u{43D}\u{443}\u{442}\u{438}\u{441}\u{44F} \u{434}\u{43E} ${args.prevMenuButton}`,
|
|
4
|
-
"moreActions": `\u{411}\u{456}\u{43B}\u{44C}\u{448}\u{435} \u{434}\u{456}\u{439}`,
|
|
5
|
-
"unavailable": `\u{41D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}, \u{440}\u{43E}\u{437}\u{433}\u{43E}\u{440}\u{43D}\u{456}\u{442}\u{44C} \u{434}\u{43B}\u{44F} \u{434}\u{43E}\u{43A}\u{43B}\u{430}\u{434}\u{43D}\u{456}\u{448}\u{43E}\u{457} \u{456}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{456}\u{457}`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {$9a5e4d563d152847$exports as default};
|
|
10
|
-
//# sourceMappingURL=uk-UA.module.js.map
|
package/dist/uk-UA.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,6FAAe,EAAE,KAAK,cAAc,EAAE;IACjF,eAAe,CAAC,gEAAU,CAAC;IAC3B,eAAe,CAAC,yTAAiD,CAAC;AACpE","sources":["packages/@react-spectrum/menu/intl/uk-UA.json"],"sourcesContent":["{\n \"backButton\": \"Повернутися до {prevMenuButton}\",\n \"moreActions\": \"Більше дій\",\n \"unavailable\": \"Недоступно, розгорніть для докладнішої інформації\"\n}\n"],"names":[],"version":3,"file":"uk-UA.module.js.map"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function $parcel$export(e, n, v, s) {
|
|
3
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
$parcel$export(module.exports, "focus-ring", () => $42908e91b4c5f428$export$f39a09f249340e2a, (v) => $42908e91b4c5f428$export$f39a09f249340e2a = v);
|
|
7
|
-
$parcel$export(module.exports, "i18nFontFamily", () => $42908e91b4c5f428$export$8c4ee2c50c22c514, (v) => $42908e91b4c5f428$export$8c4ee2c50c22c514 = v);
|
|
8
|
-
$parcel$export(module.exports, "spectrum-overlay--open", () => $42908e91b4c5f428$export$a397eb58038aa381, (v) => $42908e91b4c5f428$export$a397eb58038aa381 = v);
|
|
9
|
-
$parcel$export(module.exports, "is-open", () => $42908e91b4c5f428$export$a9781837241c946d, (v) => $42908e91b4c5f428$export$a9781837241c946d = v);
|
|
10
|
-
$parcel$export(module.exports, "spectrum-FocusRing-ring", () => $42908e91b4c5f428$export$4109102f950813a6, (v) => $42908e91b4c5f428$export$4109102f950813a6 = v);
|
|
11
|
-
$parcel$export(module.exports, "spectrum-FocusRing", () => $42908e91b4c5f428$export$24c7f46a6e3605dd, (v) => $42908e91b4c5f428$export$24c7f46a6e3605dd = v);
|
|
12
|
-
$parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $42908e91b4c5f428$export$2927016961429360, (v) => $42908e91b4c5f428$export$2927016961429360 = v);
|
|
13
|
-
$parcel$export(module.exports, "spectrum-overlay", () => $42908e91b4c5f428$export$39eed38e2296a1d6, (v) => $42908e91b4c5f428$export$39eed38e2296a1d6 = v);
|
|
14
|
-
$parcel$export(module.exports, "spectrum-Underlay", () => $42908e91b4c5f428$export$74470528f463af97, (v) => $42908e91b4c5f428$export$74470528f463af97 = v);
|
|
15
|
-
$parcel$export(module.exports, "spectrum-Underlay--transparent", () => $42908e91b4c5f428$export$8eb3860104039b44, (v) => $42908e91b4c5f428$export$8eb3860104039b44 = v);
|
|
16
|
-
$parcel$export(module.exports, "spectrum-overlay--bottom--open", () => $42908e91b4c5f428$export$a96755f239de61ee, (v) => $42908e91b4c5f428$export$a96755f239de61ee = v);
|
|
17
|
-
$parcel$export(module.exports, "spectrum-overlay--left--open", () => $42908e91b4c5f428$export$a85c0c6b6cf8598c, (v) => $42908e91b4c5f428$export$a85c0c6b6cf8598c = v);
|
|
18
|
-
$parcel$export(module.exports, "spectrum-overlay--right--open", () => $42908e91b4c5f428$export$85aaa87e65e040bf, (v) => $42908e91b4c5f428$export$85aaa87e65e040bf = v);
|
|
19
|
-
$parcel$export(module.exports, "spectrum-overlay--top--open", () => $42908e91b4c5f428$export$b9768db7ffc1bc2, (v) => $42908e91b4c5f428$export$b9768db7ffc1bc2 = v);
|
|
20
|
-
var $42908e91b4c5f428$export$f39a09f249340e2a;
|
|
21
|
-
var $42908e91b4c5f428$export$8c4ee2c50c22c514;
|
|
22
|
-
var $42908e91b4c5f428$export$a397eb58038aa381;
|
|
23
|
-
var $42908e91b4c5f428$export$a9781837241c946d;
|
|
24
|
-
var $42908e91b4c5f428$export$4109102f950813a6;
|
|
25
|
-
var $42908e91b4c5f428$export$24c7f46a6e3605dd;
|
|
26
|
-
var $42908e91b4c5f428$export$2927016961429360;
|
|
27
|
-
var $42908e91b4c5f428$export$39eed38e2296a1d6;
|
|
28
|
-
var $42908e91b4c5f428$export$74470528f463af97;
|
|
29
|
-
var $42908e91b4c5f428$export$8eb3860104039b44;
|
|
30
|
-
var $42908e91b4c5f428$export$a96755f239de61ee;
|
|
31
|
-
var $42908e91b4c5f428$export$a85c0c6b6cf8598c;
|
|
32
|
-
var $42908e91b4c5f428$export$85aaa87e65e040bf;
|
|
33
|
-
var $42908e91b4c5f428$export$b9768db7ffc1bc2;
|
|
34
|
-
$42908e91b4c5f428$export$f39a09f249340e2a = `fdFt3W_focus-ring`;
|
|
35
|
-
$42908e91b4c5f428$export$8c4ee2c50c22c514 = `fdFt3W_i18nFontFamily`;
|
|
36
|
-
$42908e91b4c5f428$export$a397eb58038aa381 = `fdFt3W_spectrum-overlay--open`;
|
|
37
|
-
$42908e91b4c5f428$export$a9781837241c946d = `fdFt3W_is-open ${$42908e91b4c5f428$export$a397eb58038aa381}`;
|
|
38
|
-
$42908e91b4c5f428$export$4109102f950813a6 = `fdFt3W_spectrum-FocusRing-ring`;
|
|
39
|
-
$42908e91b4c5f428$export$24c7f46a6e3605dd = `fdFt3W_spectrum-FocusRing ${$42908e91b4c5f428$export$4109102f950813a6}`;
|
|
40
|
-
$42908e91b4c5f428$export$2927016961429360 = `fdFt3W_spectrum-FocusRing--quiet`;
|
|
41
|
-
$42908e91b4c5f428$export$39eed38e2296a1d6 = `fdFt3W_spectrum-overlay`;
|
|
42
|
-
$42908e91b4c5f428$export$74470528f463af97 = `fdFt3W_spectrum-Underlay ${$42908e91b4c5f428$export$39eed38e2296a1d6}`;
|
|
43
|
-
$42908e91b4c5f428$export$8eb3860104039b44 = `fdFt3W_spectrum-Underlay--transparent`;
|
|
44
|
-
$42908e91b4c5f428$export$a96755f239de61ee = `fdFt3W_spectrum-overlay--bottom--open`;
|
|
45
|
-
$42908e91b4c5f428$export$a85c0c6b6cf8598c = `fdFt3W_spectrum-overlay--left--open`;
|
|
46
|
-
$42908e91b4c5f428$export$85aaa87e65e040bf = `fdFt3W_spectrum-overlay--right--open`;
|
|
47
|
-
$42908e91b4c5f428$export$b9768db7ffc1bc2 = `fdFt3W_spectrum-overlay--top--open`;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
//# sourceMappingURL=underlay_vars_css.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAbA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAA4B,CAAC,eAAe,EAAE,2CAA0C;AACxF,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAqC,CAAC,uBAAuB,CAAC;AAC9D,4CAAsC,CAAC,yBAAyB,EAAE,2CAAoC;AACtG,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,2CAAgD,CAAC,kCAAkC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/underlay/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"underlay_vars_css.main.js.map"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function $parcel$export(e, n, v, s) {
|
|
3
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
-
}
|
|
5
|
-
var $c77d7b73b2bbd0fb$exports = {};
|
|
6
|
-
|
|
7
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "focus-ring", () => $c77d7b73b2bbd0fb$export$f39a09f249340e2a, (v) => $c77d7b73b2bbd0fb$export$f39a09f249340e2a = v);
|
|
8
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "i18nFontFamily", () => $c77d7b73b2bbd0fb$export$8c4ee2c50c22c514, (v) => $c77d7b73b2bbd0fb$export$8c4ee2c50c22c514 = v);
|
|
9
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--open", () => $c77d7b73b2bbd0fb$export$a397eb58038aa381, (v) => $c77d7b73b2bbd0fb$export$a397eb58038aa381 = v);
|
|
10
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "is-open", () => $c77d7b73b2bbd0fb$export$a9781837241c946d, (v) => $c77d7b73b2bbd0fb$export$a9781837241c946d = v);
|
|
11
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-FocusRing-ring", () => $c77d7b73b2bbd0fb$export$4109102f950813a6, (v) => $c77d7b73b2bbd0fb$export$4109102f950813a6 = v);
|
|
12
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-FocusRing", () => $c77d7b73b2bbd0fb$export$24c7f46a6e3605dd, (v) => $c77d7b73b2bbd0fb$export$24c7f46a6e3605dd = v);
|
|
13
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-FocusRing--quiet", () => $c77d7b73b2bbd0fb$export$2927016961429360, (v) => $c77d7b73b2bbd0fb$export$2927016961429360 = v);
|
|
14
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay", () => $c77d7b73b2bbd0fb$export$39eed38e2296a1d6, (v) => $c77d7b73b2bbd0fb$export$39eed38e2296a1d6 = v);
|
|
15
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-Underlay", () => $c77d7b73b2bbd0fb$export$74470528f463af97, (v) => $c77d7b73b2bbd0fb$export$74470528f463af97 = v);
|
|
16
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-Underlay--transparent", () => $c77d7b73b2bbd0fb$export$8eb3860104039b44, (v) => $c77d7b73b2bbd0fb$export$8eb3860104039b44 = v);
|
|
17
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--bottom--open", () => $c77d7b73b2bbd0fb$export$a96755f239de61ee, (v) => $c77d7b73b2bbd0fb$export$a96755f239de61ee = v);
|
|
18
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--left--open", () => $c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c, (v) => $c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c = v);
|
|
19
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--right--open", () => $c77d7b73b2bbd0fb$export$85aaa87e65e040bf, (v) => $c77d7b73b2bbd0fb$export$85aaa87e65e040bf = v);
|
|
20
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--top--open", () => $c77d7b73b2bbd0fb$export$b9768db7ffc1bc2, (v) => $c77d7b73b2bbd0fb$export$b9768db7ffc1bc2 = v);
|
|
21
|
-
var $c77d7b73b2bbd0fb$export$f39a09f249340e2a;
|
|
22
|
-
var $c77d7b73b2bbd0fb$export$8c4ee2c50c22c514;
|
|
23
|
-
var $c77d7b73b2bbd0fb$export$a397eb58038aa381;
|
|
24
|
-
var $c77d7b73b2bbd0fb$export$a9781837241c946d;
|
|
25
|
-
var $c77d7b73b2bbd0fb$export$4109102f950813a6;
|
|
26
|
-
var $c77d7b73b2bbd0fb$export$24c7f46a6e3605dd;
|
|
27
|
-
var $c77d7b73b2bbd0fb$export$2927016961429360;
|
|
28
|
-
var $c77d7b73b2bbd0fb$export$39eed38e2296a1d6;
|
|
29
|
-
var $c77d7b73b2bbd0fb$export$74470528f463af97;
|
|
30
|
-
var $c77d7b73b2bbd0fb$export$8eb3860104039b44;
|
|
31
|
-
var $c77d7b73b2bbd0fb$export$a96755f239de61ee;
|
|
32
|
-
var $c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c;
|
|
33
|
-
var $c77d7b73b2bbd0fb$export$85aaa87e65e040bf;
|
|
34
|
-
var $c77d7b73b2bbd0fb$export$b9768db7ffc1bc2;
|
|
35
|
-
$c77d7b73b2bbd0fb$export$f39a09f249340e2a = `fdFt3W_focus-ring`;
|
|
36
|
-
$c77d7b73b2bbd0fb$export$8c4ee2c50c22c514 = `fdFt3W_i18nFontFamily`;
|
|
37
|
-
$c77d7b73b2bbd0fb$export$a397eb58038aa381 = `fdFt3W_spectrum-overlay--open`;
|
|
38
|
-
$c77d7b73b2bbd0fb$export$a9781837241c946d = `fdFt3W_is-open ${$c77d7b73b2bbd0fb$export$a397eb58038aa381}`;
|
|
39
|
-
$c77d7b73b2bbd0fb$export$4109102f950813a6 = `fdFt3W_spectrum-FocusRing-ring`;
|
|
40
|
-
$c77d7b73b2bbd0fb$export$24c7f46a6e3605dd = `fdFt3W_spectrum-FocusRing ${$c77d7b73b2bbd0fb$export$4109102f950813a6}`;
|
|
41
|
-
$c77d7b73b2bbd0fb$export$2927016961429360 = `fdFt3W_spectrum-FocusRing--quiet`;
|
|
42
|
-
$c77d7b73b2bbd0fb$export$39eed38e2296a1d6 = `fdFt3W_spectrum-overlay`;
|
|
43
|
-
$c77d7b73b2bbd0fb$export$74470528f463af97 = `fdFt3W_spectrum-Underlay ${$c77d7b73b2bbd0fb$export$39eed38e2296a1d6}`;
|
|
44
|
-
$c77d7b73b2bbd0fb$export$8eb3860104039b44 = `fdFt3W_spectrum-Underlay--transparent`;
|
|
45
|
-
$c77d7b73b2bbd0fb$export$a96755f239de61ee = `fdFt3W_spectrum-overlay--bottom--open`;
|
|
46
|
-
$c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c = `fdFt3W_spectrum-overlay--left--open`;
|
|
47
|
-
$c77d7b73b2bbd0fb$export$85aaa87e65e040bf = `fdFt3W_spectrum-overlay--right--open`;
|
|
48
|
-
$c77d7b73b2bbd0fb$export$b9768db7ffc1bc2 = `fdFt3W_spectrum-overlay--top--open`;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export {$c77d7b73b2bbd0fb$exports as default};
|
|
52
|
-
//# sourceMappingURL=underlay_vars_css.module.js.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function $parcel$export(e, n, v, s) {
|
|
3
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
-
}
|
|
5
|
-
var $c77d7b73b2bbd0fb$exports = {};
|
|
6
|
-
|
|
7
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "focus-ring", () => $c77d7b73b2bbd0fb$export$f39a09f249340e2a, (v) => $c77d7b73b2bbd0fb$export$f39a09f249340e2a = v);
|
|
8
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "i18nFontFamily", () => $c77d7b73b2bbd0fb$export$8c4ee2c50c22c514, (v) => $c77d7b73b2bbd0fb$export$8c4ee2c50c22c514 = v);
|
|
9
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--open", () => $c77d7b73b2bbd0fb$export$a397eb58038aa381, (v) => $c77d7b73b2bbd0fb$export$a397eb58038aa381 = v);
|
|
10
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "is-open", () => $c77d7b73b2bbd0fb$export$a9781837241c946d, (v) => $c77d7b73b2bbd0fb$export$a9781837241c946d = v);
|
|
11
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-FocusRing-ring", () => $c77d7b73b2bbd0fb$export$4109102f950813a6, (v) => $c77d7b73b2bbd0fb$export$4109102f950813a6 = v);
|
|
12
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-FocusRing", () => $c77d7b73b2bbd0fb$export$24c7f46a6e3605dd, (v) => $c77d7b73b2bbd0fb$export$24c7f46a6e3605dd = v);
|
|
13
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-FocusRing--quiet", () => $c77d7b73b2bbd0fb$export$2927016961429360, (v) => $c77d7b73b2bbd0fb$export$2927016961429360 = v);
|
|
14
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay", () => $c77d7b73b2bbd0fb$export$39eed38e2296a1d6, (v) => $c77d7b73b2bbd0fb$export$39eed38e2296a1d6 = v);
|
|
15
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-Underlay", () => $c77d7b73b2bbd0fb$export$74470528f463af97, (v) => $c77d7b73b2bbd0fb$export$74470528f463af97 = v);
|
|
16
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-Underlay--transparent", () => $c77d7b73b2bbd0fb$export$8eb3860104039b44, (v) => $c77d7b73b2bbd0fb$export$8eb3860104039b44 = v);
|
|
17
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--bottom--open", () => $c77d7b73b2bbd0fb$export$a96755f239de61ee, (v) => $c77d7b73b2bbd0fb$export$a96755f239de61ee = v);
|
|
18
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--left--open", () => $c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c, (v) => $c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c = v);
|
|
19
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--right--open", () => $c77d7b73b2bbd0fb$export$85aaa87e65e040bf, (v) => $c77d7b73b2bbd0fb$export$85aaa87e65e040bf = v);
|
|
20
|
-
$parcel$export($c77d7b73b2bbd0fb$exports, "spectrum-overlay--top--open", () => $c77d7b73b2bbd0fb$export$b9768db7ffc1bc2, (v) => $c77d7b73b2bbd0fb$export$b9768db7ffc1bc2 = v);
|
|
21
|
-
var $c77d7b73b2bbd0fb$export$f39a09f249340e2a;
|
|
22
|
-
var $c77d7b73b2bbd0fb$export$8c4ee2c50c22c514;
|
|
23
|
-
var $c77d7b73b2bbd0fb$export$a397eb58038aa381;
|
|
24
|
-
var $c77d7b73b2bbd0fb$export$a9781837241c946d;
|
|
25
|
-
var $c77d7b73b2bbd0fb$export$4109102f950813a6;
|
|
26
|
-
var $c77d7b73b2bbd0fb$export$24c7f46a6e3605dd;
|
|
27
|
-
var $c77d7b73b2bbd0fb$export$2927016961429360;
|
|
28
|
-
var $c77d7b73b2bbd0fb$export$39eed38e2296a1d6;
|
|
29
|
-
var $c77d7b73b2bbd0fb$export$74470528f463af97;
|
|
30
|
-
var $c77d7b73b2bbd0fb$export$8eb3860104039b44;
|
|
31
|
-
var $c77d7b73b2bbd0fb$export$a96755f239de61ee;
|
|
32
|
-
var $c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c;
|
|
33
|
-
var $c77d7b73b2bbd0fb$export$85aaa87e65e040bf;
|
|
34
|
-
var $c77d7b73b2bbd0fb$export$b9768db7ffc1bc2;
|
|
35
|
-
$c77d7b73b2bbd0fb$export$f39a09f249340e2a = `fdFt3W_focus-ring`;
|
|
36
|
-
$c77d7b73b2bbd0fb$export$8c4ee2c50c22c514 = `fdFt3W_i18nFontFamily`;
|
|
37
|
-
$c77d7b73b2bbd0fb$export$a397eb58038aa381 = `fdFt3W_spectrum-overlay--open`;
|
|
38
|
-
$c77d7b73b2bbd0fb$export$a9781837241c946d = `fdFt3W_is-open ${$c77d7b73b2bbd0fb$export$a397eb58038aa381}`;
|
|
39
|
-
$c77d7b73b2bbd0fb$export$4109102f950813a6 = `fdFt3W_spectrum-FocusRing-ring`;
|
|
40
|
-
$c77d7b73b2bbd0fb$export$24c7f46a6e3605dd = `fdFt3W_spectrum-FocusRing ${$c77d7b73b2bbd0fb$export$4109102f950813a6}`;
|
|
41
|
-
$c77d7b73b2bbd0fb$export$2927016961429360 = `fdFt3W_spectrum-FocusRing--quiet`;
|
|
42
|
-
$c77d7b73b2bbd0fb$export$39eed38e2296a1d6 = `fdFt3W_spectrum-overlay`;
|
|
43
|
-
$c77d7b73b2bbd0fb$export$74470528f463af97 = `fdFt3W_spectrum-Underlay ${$c77d7b73b2bbd0fb$export$39eed38e2296a1d6}`;
|
|
44
|
-
$c77d7b73b2bbd0fb$export$8eb3860104039b44 = `fdFt3W_spectrum-Underlay--transparent`;
|
|
45
|
-
$c77d7b73b2bbd0fb$export$a96755f239de61ee = `fdFt3W_spectrum-overlay--bottom--open`;
|
|
46
|
-
$c77d7b73b2bbd0fb$export$a85c0c6b6cf8598c = `fdFt3W_spectrum-overlay--left--open`;
|
|
47
|
-
$c77d7b73b2bbd0fb$export$85aaa87e65e040bf = `fdFt3W_spectrum-overlay--right--open`;
|
|
48
|
-
$c77d7b73b2bbd0fb$export$b9768db7ffc1bc2 = `fdFt3W_spectrum-overlay--top--open`;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export {$c77d7b73b2bbd0fb$exports as default};
|
|
52
|
-
//# sourceMappingURL=underlay_vars_css.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAbA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAA4B,CAAC,eAAe,EAAE,2CAA0C;AACxF,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAqC,CAAC,uBAAuB,CAAC;AAC9D,4CAAsC,CAAC,yBAAyB,EAAE,2CAAoC;AACtG,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,2CAAgD,CAAC,kCAAkC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/underlay/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"underlay_vars_css.module.js.map"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var $7oo9n$reactariautils = require("@react-aria/utils");
|
|
2
|
-
var $7oo9n$react = require("react");
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function $parcel$export(e, n, v, s) {
|
|
6
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
$parcel$export(module.exports, "useCloseOnScroll", () => $acb28858babbe848$export$18fc8428861184da);
|
|
10
|
-
/*
|
|
11
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
12
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
14
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
17
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
18
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
19
|
-
* governing permissions and limitations under the License.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
const $acb28858babbe848$export$f6211563215e3b37 = new WeakMap();
|
|
23
|
-
function $acb28858babbe848$export$18fc8428861184da(opts) {
|
|
24
|
-
let { triggerRef: triggerRef, isOpen: isOpen, onClose: onClose } = opts;
|
|
25
|
-
(0, $7oo9n$react.useEffect)(()=>{
|
|
26
|
-
if (!isOpen || onClose === null) return;
|
|
27
|
-
let onScroll = (e)=>{
|
|
28
|
-
// Ignore if scrolling an scrollable region outside the trigger's tree.
|
|
29
|
-
let target = e.target;
|
|
30
|
-
// window is not a Node and doesn't have contain, but window contains everything
|
|
31
|
-
if (!triggerRef.current || target instanceof Node && !(0, $7oo9n$reactariautils.nodeContains)(target, triggerRef.current)) return;
|
|
32
|
-
// Ignore scroll events on any input or textarea as the cursor position can cause it to scroll
|
|
33
|
-
// such as in a combobox. Clicking the dropdown button places focus on the input, and if the
|
|
34
|
-
// text inside the input extends beyond the 'end', then it will scroll so the cursor is visible at the end.
|
|
35
|
-
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
|
|
36
|
-
let onCloseHandler = onClose || $acb28858babbe848$export$f6211563215e3b37.get(triggerRef.current);
|
|
37
|
-
if (onCloseHandler) onCloseHandler();
|
|
38
|
-
};
|
|
39
|
-
window.addEventListener('scroll', onScroll, true);
|
|
40
|
-
return ()=>{
|
|
41
|
-
window.removeEventListener('scroll', onScroll, true);
|
|
42
|
-
};
|
|
43
|
-
}, [
|
|
44
|
-
isOpen,
|
|
45
|
-
onClose,
|
|
46
|
-
triggerRef
|
|
47
|
-
]);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
//# sourceMappingURL=useCloseOnScroll.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;AAWM,MAAM,4CAA2C,IAAI;AASrD,SAAS,0CAAiB,IAA0B;IACzD,IAAI,cAAC,UAAU,UAAE,MAAM,WAAE,OAAO,EAAC,GAAG;IAEpC,CAAA,GAAA,sBAAQ,EAAE;QACR,IAAI,CAAC,UAAU,YAAY,MACzB;QAGF,IAAI,WAAW,CAAC;YACd,uEAAuE;YACvE,IAAI,SAAS,EAAE,MAAM;YACrB,gFAAgF;YAChF,IAAI,CAAC,WAAW,OAAO,IAAK,AAAC,kBAAkB,QAAS,CAAC,CAAA,GAAA,kCAAW,EAAE,QAAQ,WAAW,OAAO,GAC9F;YAGF,8FAA8F;YAC9F,4FAA4F;YAC5F,2GAA2G;YAC3G,IAAI,EAAE,MAAM,YAAY,oBAAoB,EAAE,MAAM,YAAY,qBAC9D;YAGF,IAAI,iBAAiB,WAAW,0CAAW,GAAG,CAAC,WAAW,OAAO;YACjE,IAAI,gBACF;QAEJ;QAEA,OAAO,gBAAgB,CAAC,UAAU,UAAU;QAC5C,OAAO;YACL,OAAO,mBAAmB,CAAC,UAAU,UAAU;QACjD;IACF,GAAG;QAAC;QAAQ;QAAS;KAAW;AAClC","sources":["packages/@react-spectrum/menu/src/useCloseOnScroll.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {nodeContains} from '@react-aria/utils';\nimport {RefObject} from '@react-types/shared';\nimport {useEffect} from 'react';\n\n// This behavior moved from useOverlayTrigger to useOverlayPosition.\n// For backward compatibility, where useOverlayTrigger handled hiding the popover on close,\n// it sets a close function here mapped from the trigger element. This way we can avoid\n// forcing users to pass an onClose function to useOverlayPosition which could be considered\n// a breaking change.\nexport const onCloseMap: WeakMap<Element, () => void> = new WeakMap();\n\ninterface CloseOnScrollOptions {\n triggerRef: RefObject<Element | null>,\n isOpen?: boolean,\n onClose?: (() => void) | null\n}\n\n/** @private */\nexport function useCloseOnScroll(opts: CloseOnScrollOptions): void {\n let {triggerRef, isOpen, onClose} = opts;\n\n useEffect(() => {\n if (!isOpen || onClose === null) {\n return;\n }\n\n let onScroll = (e: Event) => {\n // Ignore if scrolling an scrollable region outside the trigger's tree.\n let target = e.target;\n // window is not a Node and doesn't have contain, but window contains everything\n if (!triggerRef.current || ((target instanceof Node) && !nodeContains(target, triggerRef.current))) {\n return;\n }\n\n // Ignore scroll events on any input or textarea as the cursor position can cause it to scroll\n // such as in a combobox. Clicking the dropdown button places focus on the input, and if the\n // text inside the input extends beyond the 'end', then it will scroll so the cursor is visible at the end.\n if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) {\n return;\n }\n\n let onCloseHandler = onClose || onCloseMap.get(triggerRef.current);\n if (onCloseHandler) {\n onCloseHandler();\n }\n };\n\n window.addEventListener('scroll', onScroll, true);\n return () => {\n window.removeEventListener('scroll', onScroll, true);\n };\n }, [isOpen, onClose, triggerRef]);\n}\n"],"names":[],"version":3,"file":"useCloseOnScroll.main.js.map"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import {nodeContains as $3WF3e$nodeContains} from "@react-aria/utils";
|
|
2
|
-
import {useEffect as $3WF3e$useEffect} from "react";
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
8
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
11
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
12
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
|
-
* governing permissions and limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const $ca3b77875a5017bc$export$f6211563215e3b37 = new WeakMap();
|
|
17
|
-
function $ca3b77875a5017bc$export$18fc8428861184da(opts) {
|
|
18
|
-
let { triggerRef: triggerRef, isOpen: isOpen, onClose: onClose } = opts;
|
|
19
|
-
(0, $3WF3e$useEffect)(()=>{
|
|
20
|
-
if (!isOpen || onClose === null) return;
|
|
21
|
-
let onScroll = (e)=>{
|
|
22
|
-
// Ignore if scrolling an scrollable region outside the trigger's tree.
|
|
23
|
-
let target = e.target;
|
|
24
|
-
// window is not a Node and doesn't have contain, but window contains everything
|
|
25
|
-
if (!triggerRef.current || target instanceof Node && !(0, $3WF3e$nodeContains)(target, triggerRef.current)) return;
|
|
26
|
-
// Ignore scroll events on any input or textarea as the cursor position can cause it to scroll
|
|
27
|
-
// such as in a combobox. Clicking the dropdown button places focus on the input, and if the
|
|
28
|
-
// text inside the input extends beyond the 'end', then it will scroll so the cursor is visible at the end.
|
|
29
|
-
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
|
|
30
|
-
let onCloseHandler = onClose || $ca3b77875a5017bc$export$f6211563215e3b37.get(triggerRef.current);
|
|
31
|
-
if (onCloseHandler) onCloseHandler();
|
|
32
|
-
};
|
|
33
|
-
window.addEventListener('scroll', onScroll, true);
|
|
34
|
-
return ()=>{
|
|
35
|
-
window.removeEventListener('scroll', onScroll, true);
|
|
36
|
-
};
|
|
37
|
-
}, [
|
|
38
|
-
isOpen,
|
|
39
|
-
onClose,
|
|
40
|
-
triggerRef
|
|
41
|
-
]);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export {$ca3b77875a5017bc$export$f6211563215e3b37 as onCloseMap, $ca3b77875a5017bc$export$18fc8428861184da as useCloseOnScroll};
|
|
46
|
-
//# sourceMappingURL=useCloseOnScroll.module.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import {nodeContains as $3WF3e$nodeContains} from "@react-aria/utils";
|
|
2
|
-
import {useEffect as $3WF3e$useEffect} from "react";
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
6
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
8
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
11
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
12
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
|
-
* governing permissions and limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const $ca3b77875a5017bc$export$f6211563215e3b37 = new WeakMap();
|
|
17
|
-
function $ca3b77875a5017bc$export$18fc8428861184da(opts) {
|
|
18
|
-
let { triggerRef: triggerRef, isOpen: isOpen, onClose: onClose } = opts;
|
|
19
|
-
(0, $3WF3e$useEffect)(()=>{
|
|
20
|
-
if (!isOpen || onClose === null) return;
|
|
21
|
-
let onScroll = (e)=>{
|
|
22
|
-
// Ignore if scrolling an scrollable region outside the trigger's tree.
|
|
23
|
-
let target = e.target;
|
|
24
|
-
// window is not a Node and doesn't have contain, but window contains everything
|
|
25
|
-
if (!triggerRef.current || target instanceof Node && !(0, $3WF3e$nodeContains)(target, triggerRef.current)) return;
|
|
26
|
-
// Ignore scroll events on any input or textarea as the cursor position can cause it to scroll
|
|
27
|
-
// such as in a combobox. Clicking the dropdown button places focus on the input, and if the
|
|
28
|
-
// text inside the input extends beyond the 'end', then it will scroll so the cursor is visible at the end.
|
|
29
|
-
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
|
|
30
|
-
let onCloseHandler = onClose || $ca3b77875a5017bc$export$f6211563215e3b37.get(triggerRef.current);
|
|
31
|
-
if (onCloseHandler) onCloseHandler();
|
|
32
|
-
};
|
|
33
|
-
window.addEventListener('scroll', onScroll, true);
|
|
34
|
-
return ()=>{
|
|
35
|
-
window.removeEventListener('scroll', onScroll, true);
|
|
36
|
-
};
|
|
37
|
-
}, [
|
|
38
|
-
isOpen,
|
|
39
|
-
onClose,
|
|
40
|
-
triggerRef
|
|
41
|
-
]);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export {$ca3b77875a5017bc$export$f6211563215e3b37 as onCloseMap, $ca3b77875a5017bc$export$18fc8428861184da as useCloseOnScroll};
|
|
46
|
-
//# sourceMappingURL=useCloseOnScroll.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;AAAA;;;;;;;;;;CAUC;;AAWM,MAAM,4CAA2C,IAAI;AASrD,SAAS,0CAAiB,IAA0B;IACzD,IAAI,cAAC,UAAU,UAAE,MAAM,WAAE,OAAO,EAAC,GAAG;IAEpC,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,CAAC,UAAU,YAAY,MACzB;QAGF,IAAI,WAAW,CAAC;YACd,uEAAuE;YACvE,IAAI,SAAS,EAAE,MAAM;YACrB,gFAAgF;YAChF,IAAI,CAAC,WAAW,OAAO,IAAK,AAAC,kBAAkB,QAAS,CAAC,CAAA,GAAA,mBAAW,EAAE,QAAQ,WAAW,OAAO,GAC9F;YAGF,8FAA8F;YAC9F,4FAA4F;YAC5F,2GAA2G;YAC3G,IAAI,EAAE,MAAM,YAAY,oBAAoB,EAAE,MAAM,YAAY,qBAC9D;YAGF,IAAI,iBAAiB,WAAW,0CAAW,GAAG,CAAC,WAAW,OAAO;YACjE,IAAI,gBACF;QAEJ;QAEA,OAAO,gBAAgB,CAAC,UAAU,UAAU;QAC5C,OAAO;YACL,OAAO,mBAAmB,CAAC,UAAU,UAAU;QACjD;IACF,GAAG;QAAC;QAAQ;QAAS;KAAW;AAClC","sources":["packages/@react-spectrum/menu/src/useCloseOnScroll.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {nodeContains} from '@react-aria/utils';\nimport {RefObject} from '@react-types/shared';\nimport {useEffect} from 'react';\n\n// This behavior moved from useOverlayTrigger to useOverlayPosition.\n// For backward compatibility, where useOverlayTrigger handled hiding the popover on close,\n// it sets a close function here mapped from the trigger element. This way we can avoid\n// forcing users to pass an onClose function to useOverlayPosition which could be considered\n// a breaking change.\nexport const onCloseMap: WeakMap<Element, () => void> = new WeakMap();\n\ninterface CloseOnScrollOptions {\n triggerRef: RefObject<Element | null>,\n isOpen?: boolean,\n onClose?: (() => void) | null\n}\n\n/** @private */\nexport function useCloseOnScroll(opts: CloseOnScrollOptions): void {\n let {triggerRef, isOpen, onClose} = opts;\n\n useEffect(() => {\n if (!isOpen || onClose === null) {\n return;\n }\n\n let onScroll = (e: Event) => {\n // Ignore if scrolling an scrollable region outside the trigger's tree.\n let target = e.target;\n // window is not a Node and doesn't have contain, but window contains everything\n if (!triggerRef.current || ((target instanceof Node) && !nodeContains(target, triggerRef.current))) {\n return;\n }\n\n // Ignore scroll events on any input or textarea as the cursor position can cause it to scroll\n // such as in a combobox. Clicking the dropdown button places focus on the input, and if the\n // text inside the input extends beyond the 'end', then it will scroll so the cursor is visible at the end.\n if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) {\n return;\n }\n\n let onCloseHandler = onClose || onCloseMap.get(triggerRef.current);\n if (onCloseHandler) {\n onCloseHandler();\n }\n };\n\n window.addEventListener('scroll', onScroll, true);\n return () => {\n window.removeEventListener('scroll', onScroll, true);\n };\n }, [isOpen, onClose, triggerRef]);\n}\n"],"names":[],"version":3,"file":"useCloseOnScroll.module.js.map"}
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
var $404994fca17f0d46$exports = require("./calculatePosition.main.js");
|
|
2
|
-
var $acb28858babbe848$exports = require("./useCloseOnScroll.main.js");
|
|
3
|
-
var $jkbw0$reactariautils = require("@react-aria/utils");
|
|
4
|
-
var $jkbw0$react = require("react");
|
|
5
|
-
var $jkbw0$reactariai18n = require("@react-aria/i18n");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function $parcel$export(e, n, v, s) {
|
|
9
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
$parcel$export(module.exports, "useOverlayPosition", () => $29af923830236f61$export$d39e1813b3bdd0e1);
|
|
13
|
-
/*
|
|
14
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
15
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
16
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
17
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
20
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
21
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
22
|
-
* governing permissions and limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let $29af923830236f61$var$visualViewport = typeof document !== 'undefined' ? window.visualViewport : null;
|
|
29
|
-
function $29af923830236f61$export$d39e1813b3bdd0e1(props) {
|
|
30
|
-
let { direction: direction } = (0, $jkbw0$reactariai18n.useLocale)();
|
|
31
|
-
let { arrowSize: arrowSize, targetRef: targetRef, overlayRef: overlayRef, arrowRef: arrowRef, scrollRef: scrollRef = overlayRef, placement: placement = 'bottom', containerPadding: containerPadding = 12, shouldFlip: shouldFlip = true, boundaryElement: boundaryElement = typeof document !== 'undefined' ? document.body : null, offset: offset = 0, crossOffset: crossOffset = 0, shouldUpdatePosition: shouldUpdatePosition = true, isOpen: isOpen = true, onClose: onClose, maxHeight: maxHeight, arrowBoundaryOffset: arrowBoundaryOffset = 0 } = props;
|
|
32
|
-
let [position, setPosition] = (0, $jkbw0$react.useState)(null);
|
|
33
|
-
let deps = [
|
|
34
|
-
shouldUpdatePosition,
|
|
35
|
-
placement,
|
|
36
|
-
overlayRef.current,
|
|
37
|
-
targetRef.current,
|
|
38
|
-
arrowRef === null || arrowRef === void 0 ? void 0 : arrowRef.current,
|
|
39
|
-
scrollRef.current,
|
|
40
|
-
containerPadding,
|
|
41
|
-
shouldFlip,
|
|
42
|
-
boundaryElement,
|
|
43
|
-
offset,
|
|
44
|
-
crossOffset,
|
|
45
|
-
isOpen,
|
|
46
|
-
direction,
|
|
47
|
-
maxHeight,
|
|
48
|
-
arrowBoundaryOffset,
|
|
49
|
-
arrowSize
|
|
50
|
-
];
|
|
51
|
-
// Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might
|
|
52
|
-
// just be a non-realistic use case
|
|
53
|
-
// Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles
|
|
54
|
-
let lastScale = (0, $jkbw0$react.useRef)($29af923830236f61$var$visualViewport === null || $29af923830236f61$var$visualViewport === void 0 ? void 0 : $29af923830236f61$var$visualViewport.scale);
|
|
55
|
-
(0, $jkbw0$react.useEffect)(()=>{
|
|
56
|
-
if (isOpen) lastScale.current = $29af923830236f61$var$visualViewport === null || $29af923830236f61$var$visualViewport === void 0 ? void 0 : $29af923830236f61$var$visualViewport.scale;
|
|
57
|
-
}, [
|
|
58
|
-
isOpen
|
|
59
|
-
]);
|
|
60
|
-
let updatePosition = (0, $jkbw0$react.useCallback)(()=>{
|
|
61
|
-
if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;
|
|
62
|
-
if (($29af923830236f61$var$visualViewport === null || $29af923830236f61$var$visualViewport === void 0 ? void 0 : $29af923830236f61$var$visualViewport.scale) !== lastScale.current) return;
|
|
63
|
-
// Determine a scroll anchor based on the focused element.
|
|
64
|
-
// This stores the offset of the anchor element from the scroll container
|
|
65
|
-
// so it can be restored after repositioning. This way if the overlay height
|
|
66
|
-
// changes, the focused element appears to stay in the same position.
|
|
67
|
-
let anchor = null;
|
|
68
|
-
if (scrollRef.current && (0, $jkbw0$reactariautils.nodeContains)(scrollRef.current, document.activeElement)) {
|
|
69
|
-
var _document_activeElement;
|
|
70
|
-
let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();
|
|
71
|
-
let scrollRect = scrollRef.current.getBoundingClientRect();
|
|
72
|
-
var _anchorRect_top;
|
|
73
|
-
// Anchor from the top if the offset is in the top half of the scrollable element,
|
|
74
|
-
// otherwise anchor from the bottom.
|
|
75
|
-
anchor = {
|
|
76
|
-
type: 'top',
|
|
77
|
-
offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top
|
|
78
|
-
};
|
|
79
|
-
if (anchor.offset > scrollRect.height / 2) {
|
|
80
|
-
anchor.type = 'bottom';
|
|
81
|
-
var _anchorRect_bottom;
|
|
82
|
-
anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
// Always reset the overlay's previous max height if not defined by the user so that we can compensate for
|
|
86
|
-
// RAC collections populating after a second render and properly set a correct max height + positioning when it populates.
|
|
87
|
-
let overlay = overlayRef.current;
|
|
88
|
-
if (!maxHeight && overlayRef.current) {
|
|
89
|
-
var _window_visualViewport;
|
|
90
|
-
overlay.style.top = '0px';
|
|
91
|
-
overlay.style.bottom = '';
|
|
92
|
-
var _window_visualViewport_height;
|
|
93
|
-
overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';
|
|
94
|
-
}
|
|
95
|
-
let position = (0, $404994fca17f0d46$exports.calculatePosition)({
|
|
96
|
-
placement: $29af923830236f61$var$translateRTL(placement, direction),
|
|
97
|
-
overlayNode: overlayRef.current,
|
|
98
|
-
targetNode: targetRef.current,
|
|
99
|
-
scrollNode: scrollRef.current || overlayRef.current,
|
|
100
|
-
padding: containerPadding,
|
|
101
|
-
shouldFlip: shouldFlip,
|
|
102
|
-
boundaryElement: boundaryElement,
|
|
103
|
-
offset: offset,
|
|
104
|
-
crossOffset: crossOffset,
|
|
105
|
-
maxHeight: maxHeight,
|
|
106
|
-
arrowSize: arrowSize !== null && arrowSize !== void 0 ? arrowSize : (arrowRef === null || arrowRef === void 0 ? void 0 : arrowRef.current) ? (0, $404994fca17f0d46$exports.getRect)(arrowRef.current, true).width : 0,
|
|
107
|
-
arrowBoundaryOffset: arrowBoundaryOffset
|
|
108
|
-
});
|
|
109
|
-
if (!position.position) return;
|
|
110
|
-
// Modify overlay styles directly so positioning happens immediately without the need of a second render
|
|
111
|
-
// This is so we don't have to delay autoFocus scrolling or delay applying preventScroll for popovers
|
|
112
|
-
overlay.style.top = '';
|
|
113
|
-
overlay.style.bottom = '';
|
|
114
|
-
overlay.style.left = '';
|
|
115
|
-
overlay.style.right = '';
|
|
116
|
-
Object.keys(position.position).forEach((key)=>overlay.style[key] = position.position[key] + 'px');
|
|
117
|
-
overlay.style.maxHeight = position.maxHeight != null ? position.maxHeight + 'px' : '';
|
|
118
|
-
// Restore scroll position relative to anchor element.
|
|
119
|
-
if (anchor && document.activeElement && scrollRef.current) {
|
|
120
|
-
let anchorRect = document.activeElement.getBoundingClientRect();
|
|
121
|
-
let scrollRect = scrollRef.current.getBoundingClientRect();
|
|
122
|
-
let newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];
|
|
123
|
-
scrollRef.current.scrollTop += newOffset - anchor.offset;
|
|
124
|
-
}
|
|
125
|
-
// Trigger a set state for a second render anyway for arrow positioning
|
|
126
|
-
setPosition(position);
|
|
127
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
128
|
-
}, deps);
|
|
129
|
-
// Update position when anything changes
|
|
130
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131
|
-
(0, $jkbw0$reactariautils.useLayoutEffect)(updatePosition, deps);
|
|
132
|
-
// Update position on window resize
|
|
133
|
-
$29af923830236f61$var$useResize(updatePosition);
|
|
134
|
-
// Update position when the overlay changes size (might need to flip).
|
|
135
|
-
(0, $jkbw0$reactariautils.useResizeObserver)({
|
|
136
|
-
ref: overlayRef,
|
|
137
|
-
onResize: updatePosition
|
|
138
|
-
});
|
|
139
|
-
// Update position when the target changes size (might need to flip).
|
|
140
|
-
(0, $jkbw0$reactariautils.useResizeObserver)({
|
|
141
|
-
ref: targetRef,
|
|
142
|
-
onResize: updatePosition
|
|
143
|
-
});
|
|
144
|
-
// Reposition the overlay and do not close on scroll while the visual viewport is resizing.
|
|
145
|
-
// This will ensure that overlays adjust their positioning when the iOS virtual keyboard appears.
|
|
146
|
-
let isResizing = (0, $jkbw0$react.useRef)(false);
|
|
147
|
-
(0, $jkbw0$reactariautils.useLayoutEffect)(()=>{
|
|
148
|
-
let timeout;
|
|
149
|
-
let onResize = ()=>{
|
|
150
|
-
isResizing.current = true;
|
|
151
|
-
clearTimeout(timeout);
|
|
152
|
-
timeout = setTimeout(()=>{
|
|
153
|
-
isResizing.current = false;
|
|
154
|
-
}, 500);
|
|
155
|
-
updatePosition();
|
|
156
|
-
};
|
|
157
|
-
// Only reposition the overlay if a scroll event happens immediately as a result of resize (aka the virtual keyboard has appears)
|
|
158
|
-
// We don't want to reposition the overlay if the user has pinch zoomed in and is scrolling the viewport around.
|
|
159
|
-
let onScroll = ()=>{
|
|
160
|
-
if (isResizing.current) onResize();
|
|
161
|
-
};
|
|
162
|
-
$29af923830236f61$var$visualViewport === null || $29af923830236f61$var$visualViewport === void 0 ? void 0 : $29af923830236f61$var$visualViewport.addEventListener('resize', onResize);
|
|
163
|
-
$29af923830236f61$var$visualViewport === null || $29af923830236f61$var$visualViewport === void 0 ? void 0 : $29af923830236f61$var$visualViewport.addEventListener('scroll', onScroll);
|
|
164
|
-
return ()=>{
|
|
165
|
-
$29af923830236f61$var$visualViewport === null || $29af923830236f61$var$visualViewport === void 0 ? void 0 : $29af923830236f61$var$visualViewport.removeEventListener('resize', onResize);
|
|
166
|
-
$29af923830236f61$var$visualViewport === null || $29af923830236f61$var$visualViewport === void 0 ? void 0 : $29af923830236f61$var$visualViewport.removeEventListener('scroll', onScroll);
|
|
167
|
-
};
|
|
168
|
-
}, [
|
|
169
|
-
updatePosition
|
|
170
|
-
]);
|
|
171
|
-
let close = (0, $jkbw0$react.useCallback)(()=>{
|
|
172
|
-
if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
173
|
-
}, [
|
|
174
|
-
onClose,
|
|
175
|
-
isResizing
|
|
176
|
-
]);
|
|
177
|
-
// When scrolling a parent scrollable region of the trigger (other than the body),
|
|
178
|
-
// we hide the popover. Otherwise, its position would be incorrect.
|
|
179
|
-
(0, $acb28858babbe848$exports.useCloseOnScroll)({
|
|
180
|
-
triggerRef: targetRef,
|
|
181
|
-
isOpen: isOpen,
|
|
182
|
-
onClose: onClose && close
|
|
183
|
-
});
|
|
184
|
-
var _position_maxHeight, _position_placement, _position_triggerAnchorPoint;
|
|
185
|
-
return {
|
|
186
|
-
overlayProps: {
|
|
187
|
-
style: {
|
|
188
|
-
position: position ? 'absolute' : 'fixed',
|
|
189
|
-
top: !position ? 0 : undefined,
|
|
190
|
-
left: !position ? 0 : undefined,
|
|
191
|
-
zIndex: 100000,
|
|
192
|
-
...position === null || position === void 0 ? void 0 : position.position,
|
|
193
|
-
maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,
|
|
197
|
-
triggerAnchorPoint: (_position_triggerAnchorPoint = position === null || position === void 0 ? void 0 : position.triggerAnchorPoint) !== null && _position_triggerAnchorPoint !== void 0 ? _position_triggerAnchorPoint : null,
|
|
198
|
-
arrowProps: {
|
|
199
|
-
'aria-hidden': 'true',
|
|
200
|
-
role: 'presentation',
|
|
201
|
-
style: {
|
|
202
|
-
left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,
|
|
203
|
-
top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
updatePosition: updatePosition
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
function $29af923830236f61$var$useResize(onResize) {
|
|
210
|
-
(0, $jkbw0$reactariautils.useLayoutEffect)(()=>{
|
|
211
|
-
window.addEventListener('resize', onResize, false);
|
|
212
|
-
return ()=>{
|
|
213
|
-
window.removeEventListener('resize', onResize, false);
|
|
214
|
-
};
|
|
215
|
-
}, [
|
|
216
|
-
onResize
|
|
217
|
-
]);
|
|
218
|
-
}
|
|
219
|
-
function $29af923830236f61$var$translateRTL(position, direction) {
|
|
220
|
-
if (direction === 'rtl') return position.replace('start', 'right').replace('end', 'left');
|
|
221
|
-
return position.replace('start', 'left').replace('end', 'right');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
//# sourceMappingURL=useOverlayPosition.main.js.map
|