@react-spectrum/contextualhelp 3.4.1-nightly.3598 → 3.4.1-nightly.3600

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/main.js CHANGED
@@ -16,7 +16,27 @@ function $parcel$interopDefault(a) {
16
16
  }
17
17
 
18
18
  $parcel$export(module.exports, "ContextualHelp", () => $05e6407aa891f27c$export$7d3cdb256c2ba320);
19
-
19
+ /*
20
+ * Copyright 2021 Adobe. All rights reserved.
21
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
22
+ * you may not use this file except in compliance with the License. You may obtain a copy
23
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
24
+ *
25
+ * Unless required by applicable law or agreed to in writing, software distributed under
26
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
27
+ * OF ANY KIND, either express or implied. See the License for the specific language
28
+ * governing permissions and limitations under the License.
29
+ */ /*
30
+ * Copyright 2021 Adobe. All rights reserved.
31
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
32
+ * you may not use this file except in compliance with the License. You may obtain a copy
33
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
34
+ *
35
+ * Unless required by applicable law or agreed to in writing, software distributed under
36
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
37
+ * OF ANY KIND, either express or implied. See the License for the specific language
38
+ * governing permissions and limitations under the License.
39
+ */
20
40
 
21
41
 
22
42
 
@@ -318,39 +338,39 @@ $07f833820f7957d4$exports = {
318
338
 
319
339
 
320
340
  function $05e6407aa891f27c$var$ContextualHelp(props, ref) {
321
- let { variant: variant = 'help' , placement: placement = 'bottom start' , children: children , ...otherProps } = props;
322
- let stringFormatter = $ST3N8$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($07f833820f7957d4$exports)));
323
- let icon = variant === 'info' ? /*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).createElement(($parcel$interopDefault($ST3N8$spectrumiconsworkflowInfoOutline)), null) : /*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).createElement(($parcel$interopDefault($ST3N8$spectrumiconsworkflowHelpOutline)), null);
341
+ let { variant: variant = "help" , placement: placement = "bottom start" , children: children , ...otherProps } = props;
342
+ let stringFormatter = (0, $ST3N8$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($07f833820f7957d4$exports))));
343
+ let icon = variant === "info" ? /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, ($parcel$interopDefault($ST3N8$spectrumiconsworkflowInfoOutline))), null) : /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, ($parcel$interopDefault($ST3N8$spectrumiconsworkflowHelpOutline))), null);
324
344
  let slots = {
325
345
  content: {
326
- UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports))['react-spectrum-ContextualHelp-content']
346
+ UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports)))["react-spectrum-ContextualHelp-content"]
327
347
  },
328
348
  footer: {
329
- UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports))['react-spectrum-ContextualHelp-footer']
349
+ UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports)))["react-spectrum-ContextualHelp-footer"]
330
350
  }
331
351
  };
332
- let labelProps = $ST3N8$reactariautils.useLabels(otherProps, stringFormatter.format(variant));
333
- return(/*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).createElement($ST3N8$reactspectrumdialog.DialogTrigger, {
352
+ let labelProps = (0, $ST3N8$reactariautils.useLabels)(otherProps, stringFormatter.format(variant));
353
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumdialog.DialogTrigger), {
334
354
  ...otherProps,
335
355
  type: "popover",
336
356
  placement: placement,
337
357
  hideArrow: true
338
- }, /*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).createElement($ST3N8$reactspectrumbutton.ActionButton, {
339
- ...$ST3N8$reactariautils.mergeProps(otherProps, labelProps, {
358
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumbutton.ActionButton), {
359
+ ...(0, $ST3N8$reactariautils.mergeProps)(otherProps, labelProps, {
340
360
  isDisabled: false
341
361
  }),
342
362
  ref: ref,
343
- UNSAFE_className: $ST3N8$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports)), 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className),
363
+ UNSAFE_className: (0, $ST3N8$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports))), "react-spectrum-ContextualHelp-button", otherProps.UNSAFE_className),
344
364
  isQuiet: true
345
- }, icon), /*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).createElement($ST3N8$reactspectrumutils.ClearSlots, null, /*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).createElement($ST3N8$reactspectrumutils.SlotProvider, {
365
+ }, icon), /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumutils.ClearSlots), null, /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumutils.SlotProvider), {
346
366
  slots: slots
347
- }, /*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).createElement($ST3N8$reactspectrumdialog.Dialog, {
348
- UNSAFE_className: $ST3N8$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports)), 'react-spectrum-ContextualHelp-dialog')
349
- }, children)))));
367
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumdialog.Dialog), {
368
+ UNSAFE_className: (0, $ST3N8$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c1b48b060a7ea3d2$exports))), "react-spectrum-ContextualHelp-dialog")
369
+ }, children))));
350
370
  }
351
371
  /**
352
372
  * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
353
- */ let $05e6407aa891f27c$export$7d3cdb256c2ba320 = /*#__PURE__*/ ($parcel$interopDefault($ST3N8$react)).forwardRef($05e6407aa891f27c$var$ContextualHelp);
373
+ */ let $05e6407aa891f27c$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).forwardRef($05e6407aa891f27c$var$ContextualHelp);
354
374
 
355
375
 
356
376
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAsD;AACtD,GAAsD;AACtD,GAAuD;AACvD,GAAsD;AAHtD,yCAAsD,GAAG,CAA6C;AACtG,yCAAsD,GAAG,CAA6C;AACtG,wCAAuD,GAAG,CAA8C;AACxG,yCAAsD,GAAG,CAA6C;;;;;;AEHtG,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,YAAM;IAC3B,CAAA,QAAG,cAAO;AAClB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,UAAK;IAC3B,CAAC,QAAG,oBAAU;AACrB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,UAAQ;IACnC,CAAM,QAAG,SAAS;AACpB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,MAAK;IAChC,CAAM,QAAG,WAAW;AACtB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,KAAK;IAChC,CAAM,QAAG,aAAa;AACxB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,cAAO;IAC3B,CAAD,QAAG,sBAAW;AACtB,CAAC;;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IAE9D,GAAG,CAAC,KAAK,GAAG,CAAC;QACX,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gEAAU,CAAC,CAAuC;QAAC,CAAC;QAChF,MAAM,EAAE,CAAC;YAAA,gBAAgB,EAAE,gEAAU,CAAC,CAAsC;QAAC,CAAC;IAChF,CAAC;IAED,GAAG,CAAC,UAAU,GAAG,+BAAS,CAAC,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,OAAO;IAErE,MAAM,oEACH,wCAAa;WAAK,UAAU;QAAE,IAAI,EAAC,CAAS;QAAC,SAAS,EAAE,SAAS;QAAE,SAAS,EAAT,IAAS;0EAC1E,uCAAY;WACP,gCAAU,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC;YAAA,UAAU,EAAE,KAAK;QAAA,CAAC;QAC1D,GAAG,EAAE,GAAG;QACR,gBAAgB,EAAE,oCAAU,CAAC,gEAAU,EAAE,CAAsC,uCAAE,UAAU,CAAC,gBAAgB;QAC5G,OAAO,EAAP,IAAO;OACN,IAAI,sEAEN,oCAAU,2EACR,sCAAY;QAAC,KAAK,EAAE,KAAK;0EACvB,iCAAM;QAAC,gBAAgB,EAAE,oCAAU,CAAC,gEAAU,EAAE,CAAsC;OACpF,QAAQ;AAMrB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,GAAG,CAAC,yCAAe,iBAAG,sCAAK,CAAC,UAAU,CAAC,oCAAc","sources":["packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@react-spectrum/contextualhelp/src/contextualhelp.css","packages/@react-spectrum/contextualhelp/intl/*.js","packages/@react-spectrum/contextualhelp/intl/ar-AE.json","packages/@react-spectrum/contextualhelp/intl/bg-BG.json","packages/@react-spectrum/contextualhelp/intl/cs-CZ.json","packages/@react-spectrum/contextualhelp/intl/da-DK.json","packages/@react-spectrum/contextualhelp/intl/de-DE.json","packages/@react-spectrum/contextualhelp/intl/el-GR.json","packages/@react-spectrum/contextualhelp/intl/en-US.json","packages/@react-spectrum/contextualhelp/intl/es-ES.json","packages/@react-spectrum/contextualhelp/intl/et-EE.json","packages/@react-spectrum/contextualhelp/intl/fi-FI.json","packages/@react-spectrum/contextualhelp/intl/fr-FR.json","packages/@react-spectrum/contextualhelp/intl/he-IL.json","packages/@react-spectrum/contextualhelp/intl/hr-HR.json","packages/@react-spectrum/contextualhelp/intl/hu-HU.json","packages/@react-spectrum/contextualhelp/intl/it-IT.json","packages/@react-spectrum/contextualhelp/intl/ja-JP.json","packages/@react-spectrum/contextualhelp/intl/ko-KR.json","packages/@react-spectrum/contextualhelp/intl/lt-LT.json","packages/@react-spectrum/contextualhelp/intl/lv-LV.json","packages/@react-spectrum/contextualhelp/intl/nb-NO.json","packages/@react-spectrum/contextualhelp/intl/nl-NL.json","packages/@react-spectrum/contextualhelp/intl/pl-PL.json","packages/@react-spectrum/contextualhelp/intl/pt-BR.json","packages/@react-spectrum/contextualhelp/intl/pt-PT.json","packages/@react-spectrum/contextualhelp/intl/ro-RO.json","packages/@react-spectrum/contextualhelp/intl/ru-RU.json","packages/@react-spectrum/contextualhelp/intl/sk-SK.json","packages/@react-spectrum/contextualhelp/intl/sl-SI.json","packages/@react-spectrum/contextualhelp/intl/sr-SP.json","packages/@react-spectrum/contextualhelp/intl/sv-SE.json","packages/@react-spectrum/contextualhelp/intl/tr-TR.json","packages/@react-spectrum/contextualhelp/intl/uk-UA.json","packages/@react-spectrum/contextualhelp/intl/zh-CN.json","packages/@react-spectrum/contextualhelp/intl/zh-TW.json"],"sourcesContent":["/*\n * Copyright 2021 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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {FocusableRef} from '@react-types/shared';\nimport HelpOutline from '@spectrum-icons/workflow/HelpOutline';\nimport helpStyles from './contextualhelp.css';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useLabels} from '@react-aria/utils';\nimport React from 'react';\nimport {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction ContextualHelp(props: SpectrumContextualHelpProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n variant = 'help',\n placement = 'bottom start',\n children,\n ...otherProps\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n let icon = variant === 'info' ? <InfoOutline /> : <HelpOutline />;\n\n let slots = {\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n\n let labelProps = useLabels(otherProps, stringFormatter.format(variant));\n\n return (\n <DialogTrigger {...otherProps} type=\"popover\" placement={placement} hideArrow>\n <ActionButton\n {...mergeProps(otherProps, labelProps, {isDisabled: false})}\n ref={ref}\n UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className)}\n isQuiet>\n {icon}\n </ActionButton>\n <ClearSlots>\n <SlotProvider slots={slots}>\n <Dialog UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')}>\n {children}\n </Dialog>\n </SlotProvider>\n </ClearSlots>\n </DialogTrigger>\n );\n}\n\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nlet _ContextualHelp = React.forwardRef(ContextualHelp);\nexport {_ContextualHelp as ContextualHelp};\n","/*\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:root {\n --spectrum-contextualhelp-button-size: var(--spectrum-global-dimension-size-250);\n --spectrum-contextualhelp-icon-size: var(--spectrum-global-dimension-size-175);\n --spectrum-contexualhelp-dialog-width: 250px;\n --spectrum-contextualhelp-dialog-padding: var(--spectrum-global-dimension-static-size-300);\n}\n\n.react-spectrum-ContextualHelp-button {\n --spectrum-button-primary-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-min-width: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-icon-padding-x: var(--spectrum-global-dimension-size-40);\n\n svg {\n block-size: var(--spectrum-contextualhelp-icon-size);\n inline-size: var(--spectrum-contextualhelp-icon-size);\n }\n\n}\n\n.react-spectrum-ContextualHelp-dialog.react-spectrum-ContextualHelp-dialog {\n width: var(--spectrum-contexualhelp-dialog-width);\n --spectrum-dialog-padding-x: var(--spectrum-contextualhelp-dialog-padding);\n --spectrum-dialog-padding-y: var(--spectrum-contextualhelp-dialog-padding);\n\n .react-spectrum-ContextualHelp-content {\n margin-top: var(--spectrum-global-dimension-static-size-100);\n }\n\n .react-spectrum-ContextualHelp-footer {\n padding-top: var(--spectrum-global-dimension-static-size-100);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"help\": \"مساعدة\",\n \"info\": \"معلومات\"\n}\n","{\n \"help\": \"Помощ\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Nápověda\",\n \"info\": \"Informace\"\n}\n","{\n \"help\": \"Hjælp\",\n \"info\": \"Oplysninger\"\n}\n","{\n \"help\": \"Hilfe\",\n \"info\": \"Informationen\"\n}\n","{\n \"help\": \"Βοήθεια\",\n \"info\": \"Πληροφορίες\"\n}\n","{\n \"info\": \"Information\",\n \"help\": \"Help\"\n}\n","{\n \"help\": \"Ayuda\",\n \"info\": \"Información\"\n}\n","{\n \"help\": \"Spikker\",\n \"info\": \"Teave\"\n}\n","{\n \"help\": \"Ohje\",\n \"info\": \"Tiedot\"\n}\n","{\n \"help\": \"Aide\",\n \"info\": \"Informations\"\n}\n","{\n \"help\": \"עזרה\",\n \"info\": \"מידע\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Súgó\",\n \"info\": \"Információ\"\n}\n","{\n \"help\": \"Aiuto\",\n \"info\": \"Informazioni\"\n}\n","{\n \"help\": \"ヘルプ\",\n \"info\": \"情報\"\n}\n","{\n \"help\": \"도움말\",\n \"info\": \"정보\"\n}\n","{\n \"help\": \"Žinynas\",\n \"info\": \"Informacija\"\n}\n","{\n \"help\": \"Palīdzība\",\n \"info\": \"Informācija\"\n}\n","{\n \"help\": \"Hjelp\",\n \"info\": \"Informasjon\"\n}\n","{\n \"help\": \"Help\",\n \"info\": \"Informatie\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informacja\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informações\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informação\"\n}\n","{\n \"help\": \"Ajutor\",\n \"info\": \"Informaţii\"\n}\n","{\n \"help\": \"Справка\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informácie\"\n}\n","{\n \"help\": \"Pomoč\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Hjälp\",\n \"info\": \"Information\"\n}\n","{\n \"help\": \"Yardım\",\n \"info\": \"Bilgiler\"\n}\n","{\n \"help\": \"Довідка\",\n \"info\": \"Інформація\"\n}\n","{\n \"help\": \"帮助\",\n \"info\": \"信息\"\n}\n","{\n \"help\": \"說明\",\n \"info\": \"資訊\"\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;;;;;;;;;;ACZA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAHA,4CAAyD;AACzD,4CAAyD;AACzD,2CAA0D;AAC1D,4CAAyD;;;;;;AEHzD,4BAAiB;IAAG,QAAQ,CAAC,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC;AACnB;;ADFA;;AEAA,4BAAiB;IAAG,QAAQ,CAAC,KAAK,CAAC;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E;IAEA,IAAI,aAAa,CAAA,GAAA,+BAAQ,EAAE,YAAY,gBAAgB,MAAM,CAAC;IAE9D,qBACE,0DAAC,CAAA,GAAA,wCAAa,AAAD;QAAG,GAAG,UAAU;QAAE,MAAK;QAAU,WAAW;QAAW,WAAA,IAAS;qBAC3E,0DAAC,CAAA,GAAA,uCAAW;QACT,GAAG,CAAA,GAAA,gCAAU,AAAD,EAAE,YAAY,YAAY;YAAC,YAAY,KAAK;QAAA,EAAE;QAC3D,KAAK;QACL,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,yDAAU,OAAD,GAAG,wCAAwC,WAAW,gBAAgB;QAC5G,SAAA,IAAO;OACN,qBAEH,0DAAC,CAAA,GAAA,oCAAS,uBACR,0DAAC,CAAA,GAAA,sCAAW;QAAE,OAAO;qBACnB,0DAAC,CAAA,GAAA,iCAAK;QAAE,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,gEAAU,AAAD,GAAG;OAC9C;AAMb;AAEA;;CAEC,GACD,IAAI,0DAAkB,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;;CD1DtC,GAED","sources":["packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@react-spectrum/contextualhelp/src/contextualhelp.css","packages/@react-spectrum/contextualhelp/intl/*.js","packages/@react-spectrum/contextualhelp/intl/ar-AE.json","packages/@react-spectrum/contextualhelp/intl/bg-BG.json","packages/@react-spectrum/contextualhelp/intl/cs-CZ.json","packages/@react-spectrum/contextualhelp/intl/da-DK.json","packages/@react-spectrum/contextualhelp/intl/de-DE.json","packages/@react-spectrum/contextualhelp/intl/el-GR.json","packages/@react-spectrum/contextualhelp/intl/en-US.json","packages/@react-spectrum/contextualhelp/intl/es-ES.json","packages/@react-spectrum/contextualhelp/intl/et-EE.json","packages/@react-spectrum/contextualhelp/intl/fi-FI.json","packages/@react-spectrum/contextualhelp/intl/fr-FR.json","packages/@react-spectrum/contextualhelp/intl/he-IL.json","packages/@react-spectrum/contextualhelp/intl/hr-HR.json","packages/@react-spectrum/contextualhelp/intl/hu-HU.json","packages/@react-spectrum/contextualhelp/intl/it-IT.json","packages/@react-spectrum/contextualhelp/intl/ja-JP.json","packages/@react-spectrum/contextualhelp/intl/ko-KR.json","packages/@react-spectrum/contextualhelp/intl/lt-LT.json","packages/@react-spectrum/contextualhelp/intl/lv-LV.json","packages/@react-spectrum/contextualhelp/intl/nb-NO.json","packages/@react-spectrum/contextualhelp/intl/nl-NL.json","packages/@react-spectrum/contextualhelp/intl/pl-PL.json","packages/@react-spectrum/contextualhelp/intl/pt-BR.json","packages/@react-spectrum/contextualhelp/intl/pt-PT.json","packages/@react-spectrum/contextualhelp/intl/ro-RO.json","packages/@react-spectrum/contextualhelp/intl/ru-RU.json","packages/@react-spectrum/contextualhelp/intl/sk-SK.json","packages/@react-spectrum/contextualhelp/intl/sl-SI.json","packages/@react-spectrum/contextualhelp/intl/sr-SP.json","packages/@react-spectrum/contextualhelp/intl/sv-SE.json","packages/@react-spectrum/contextualhelp/intl/tr-TR.json","packages/@react-spectrum/contextualhelp/intl/uk-UA.json","packages/@react-spectrum/contextualhelp/intl/zh-CN.json","packages/@react-spectrum/contextualhelp/intl/zh-TW.json"],"sourcesContent":["/*\n * Copyright 2021 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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {FocusableRef} from '@react-types/shared';\nimport HelpOutline from '@spectrum-icons/workflow/HelpOutline';\nimport helpStyles from './contextualhelp.css';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useLabels} from '@react-aria/utils';\nimport React from 'react';\nimport {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction ContextualHelp(props: SpectrumContextualHelpProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n variant = 'help',\n placement = 'bottom start',\n children,\n ...otherProps\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n let icon = variant === 'info' ? <InfoOutline /> : <HelpOutline />;\n\n let slots = {\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n\n let labelProps = useLabels(otherProps, stringFormatter.format(variant));\n\n return (\n <DialogTrigger {...otherProps} type=\"popover\" placement={placement} hideArrow>\n <ActionButton\n {...mergeProps(otherProps, labelProps, {isDisabled: false})}\n ref={ref}\n UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className)}\n isQuiet>\n {icon}\n </ActionButton>\n <ClearSlots>\n <SlotProvider slots={slots}>\n <Dialog UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')}>\n {children}\n </Dialog>\n </SlotProvider>\n </ClearSlots>\n </DialogTrigger>\n );\n}\n\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nlet _ContextualHelp = React.forwardRef(ContextualHelp);\nexport {_ContextualHelp as ContextualHelp};\n","/*\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:root {\n --spectrum-contextualhelp-button-size: var(--spectrum-global-dimension-size-250);\n --spectrum-contextualhelp-icon-size: var(--spectrum-global-dimension-size-175);\n --spectrum-contexualhelp-dialog-width: 250px;\n --spectrum-contextualhelp-dialog-padding: var(--spectrum-global-dimension-static-size-300);\n}\n\n.react-spectrum-ContextualHelp-button {\n --spectrum-button-primary-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-min-width: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-icon-padding-x: var(--spectrum-global-dimension-size-40);\n\n svg {\n block-size: var(--spectrum-contextualhelp-icon-size);\n inline-size: var(--spectrum-contextualhelp-icon-size);\n }\n\n}\n\n.react-spectrum-ContextualHelp-dialog.react-spectrum-ContextualHelp-dialog {\n width: var(--spectrum-contexualhelp-dialog-width);\n --spectrum-dialog-padding-x: var(--spectrum-contextualhelp-dialog-padding);\n --spectrum-dialog-padding-y: var(--spectrum-contextualhelp-dialog-padding);\n\n .react-spectrum-ContextualHelp-content {\n margin-top: var(--spectrum-global-dimension-static-size-100);\n }\n\n .react-spectrum-ContextualHelp-footer {\n padding-top: var(--spectrum-global-dimension-static-size-100);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"help\": \"مساعدة\",\n \"info\": \"معلومات\"\n}\n","{\n \"help\": \"Помощ\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Nápověda\",\n \"info\": \"Informace\"\n}\n","{\n \"help\": \"Hjælp\",\n \"info\": \"Oplysninger\"\n}\n","{\n \"help\": \"Hilfe\",\n \"info\": \"Informationen\"\n}\n","{\n \"help\": \"Βοήθεια\",\n \"info\": \"Πληροφορίες\"\n}\n","{\n \"info\": \"Information\",\n \"help\": \"Help\"\n}\n","{\n \"help\": \"Ayuda\",\n \"info\": \"Información\"\n}\n","{\n \"help\": \"Spikker\",\n \"info\": \"Teave\"\n}\n","{\n \"help\": \"Ohje\",\n \"info\": \"Tiedot\"\n}\n","{\n \"help\": \"Aide\",\n \"info\": \"Informations\"\n}\n","{\n \"help\": \"עזרה\",\n \"info\": \"מידע\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Súgó\",\n \"info\": \"Információ\"\n}\n","{\n \"help\": \"Aiuto\",\n \"info\": \"Informazioni\"\n}\n","{\n \"help\": \"ヘルプ\",\n \"info\": \"情報\"\n}\n","{\n \"help\": \"도움말\",\n \"info\": \"정보\"\n}\n","{\n \"help\": \"Žinynas\",\n \"info\": \"Informacija\"\n}\n","{\n \"help\": \"Palīdzība\",\n \"info\": \"Informācija\"\n}\n","{\n \"help\": \"Hjelp\",\n \"info\": \"Informasjon\"\n}\n","{\n \"help\": \"Help\",\n \"info\": \"Informatie\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informacja\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informações\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informação\"\n}\n","{\n \"help\": \"Ajutor\",\n \"info\": \"Informaţii\"\n}\n","{\n \"help\": \"Справка\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informácie\"\n}\n","{\n \"help\": \"Pomoč\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Hjälp\",\n \"info\": \"Information\"\n}\n","{\n \"help\": \"Yardım\",\n \"info\": \"Bilgiler\"\n}\n","{\n \"help\": \"Довідка\",\n \"info\": \"Інформація\"\n}\n","{\n \"help\": \"帮助\",\n \"info\": \"信息\"\n}\n","{\n \"help\": \"說明\",\n \"info\": \"資訊\"\n}\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.mjs CHANGED
@@ -14,7 +14,27 @@ function $parcel$interopDefault(a) {
14
14
  function $parcel$export(e, n, v, s) {
15
15
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
16
16
  }
17
-
17
+ /*
18
+ * Copyright 2021 Adobe. All rights reserved.
19
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
+ * you may not use this file except in compliance with the License. You may obtain a copy
21
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software distributed under
24
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
+ * OF ANY KIND, either express or implied. See the License for the specific language
26
+ * governing permissions and limitations under the License.
27
+ */ /*
28
+ * Copyright 2021 Adobe. All rights reserved.
29
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
30
+ * you may not use this file except in compliance with the License. You may obtain a copy
31
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
32
+ *
33
+ * Unless required by applicable law or agreed to in writing, software distributed under
34
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
35
+ * OF ANY KIND, either express or implied. See the License for the specific language
36
+ * governing permissions and limitations under the License.
37
+ */
18
38
 
19
39
 
20
40
 
@@ -316,39 +336,39 @@ $7c93b3220be85068$exports = {
316
336
 
317
337
 
318
338
  function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
319
- let { variant: variant = 'help' , placement: placement = 'bottom start' , children: children , ...otherProps } = props;
320
- let stringFormatter = $2FtBM$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($7c93b3220be85068$exports)));
321
- let icon = variant === 'info' ? /*#__PURE__*/ $2FtBM$react.createElement($2FtBM$spectrumiconsworkflowInfoOutline, null) : /*#__PURE__*/ $2FtBM$react.createElement($2FtBM$spectrumiconsworkflowHelpOutline, null);
339
+ let { variant: variant = "help" , placement: placement = "bottom start" , children: children , ...otherProps } = props;
340
+ let stringFormatter = (0, $2FtBM$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7c93b3220be85068$exports))));
341
+ let icon = variant === "info" ? /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$spectrumiconsworkflowInfoOutline), null) : /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$spectrumiconsworkflowHelpOutline), null);
322
342
  let slots = {
323
343
  content: {
324
- UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports))['react-spectrum-ContextualHelp-content']
344
+ UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports)))["react-spectrum-ContextualHelp-content"]
325
345
  },
326
346
  footer: {
327
- UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports))['react-spectrum-ContextualHelp-footer']
347
+ UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports)))["react-spectrum-ContextualHelp-footer"]
328
348
  }
329
349
  };
330
- let labelProps = $2FtBM$useLabels(otherProps, stringFormatter.format(variant));
331
- return(/*#__PURE__*/ $2FtBM$react.createElement($2FtBM$DialogTrigger, {
350
+ let labelProps = (0, $2FtBM$useLabels)(otherProps, stringFormatter.format(variant));
351
+ return /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$DialogTrigger), {
332
352
  ...otherProps,
333
353
  type: "popover",
334
354
  placement: placement,
335
355
  hideArrow: true
336
- }, /*#__PURE__*/ $2FtBM$react.createElement($2FtBM$ActionButton, {
337
- ...$2FtBM$mergeProps(otherProps, labelProps, {
356
+ }, /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$ActionButton), {
357
+ ...(0, $2FtBM$mergeProps)(otherProps, labelProps, {
338
358
  isDisabled: false
339
359
  }),
340
360
  ref: ref,
341
- UNSAFE_className: $2FtBM$classNames((/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports)), 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className),
361
+ UNSAFE_className: (0, $2FtBM$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports))), "react-spectrum-ContextualHelp-button", otherProps.UNSAFE_className),
342
362
  isQuiet: true
343
- }, icon), /*#__PURE__*/ $2FtBM$react.createElement($2FtBM$ClearSlots, null, /*#__PURE__*/ $2FtBM$react.createElement($2FtBM$SlotProvider, {
363
+ }, icon), /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$ClearSlots), null, /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$SlotProvider), {
344
364
  slots: slots
345
- }, /*#__PURE__*/ $2FtBM$react.createElement($2FtBM$Dialog, {
346
- UNSAFE_className: $2FtBM$classNames((/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports)), 'react-spectrum-ContextualHelp-dialog')
347
- }, children)))));
365
+ }, /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$Dialog), {
366
+ UNSAFE_className: (0, $2FtBM$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d69bde6495703df1$exports))), "react-spectrum-ContextualHelp-dialog")
367
+ }, children))));
348
368
  }
349
369
  /**
350
370
  * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
351
- */ let $9d9069cfc9959198$export$7d3cdb256c2ba320 = /*#__PURE__*/ $2FtBM$react.forwardRef($9d9069cfc9959198$var$ContextualHelp);
371
+ */ let $9d9069cfc9959198$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $2FtBM$react).forwardRef($9d9069cfc9959198$var$ContextualHelp);
352
372
 
353
373
 
354
374
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAsD;AACtD,GAAsD;AACtD,GAAuD;AACvD,GAAsD;AAHtD,yCAAsD,GAAG,CAA6C;AACtG,yCAAsD,GAAG,CAA6C;AACtG,wCAAuD,GAAG,CAA8C;AACxG,yCAAsD,GAAG,CAA6C;;;;;;AEHtG,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,YAAM;IAC3B,CAAA,QAAG,cAAO;AAClB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,UAAK;IAC3B,CAAC,QAAG,oBAAU;AACrB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,UAAQ;IACnC,CAAM,QAAG,SAAS;AACpB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,MAAK;IAChC,CAAM,QAAG,WAAW;AACtB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,KAAK;IAChC,CAAM,QAAG,aAAa;AACxB,CAAC;;;;ACFD,yBAAc,GAAG,CAAC;IAAE,CAAM,QAAG,cAAO;IAC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,CAAM,iDAAI,uCAAW,mDAAO,uCAAW;IAE9D,GAAG,CAAC,KAAK,GAAG,CAAC;QACX,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gEAAU,CAAC,CAAuC;QAAC,CAAC;QAChF,MAAM,EAAE,CAAC;YAAA,gBAAgB,EAAE,gEAAU,CAAC,CAAsC;QAAC,CAAC;IAChF,CAAC;IAED,GAAG,CAAC,UAAU,GAAG,gBAAS,CAAC,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,OAAO;IAErE,MAAM,0CACH,oBAAa;WAAK,UAAU;QAAE,IAAI,EAAC,CAAS;QAAC,SAAS,EAAE,SAAS;QAAE,SAAS,EAAT,IAAS;gDAC1E,mBAAY;WACP,iBAAU,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC;YAAA,UAAU,EAAE,KAAK;QAAA,CAAC;QAC1D,GAAG,EAAE,GAAG;QACR,gBAAgB,EAAE,iBAAU,CAAC,gEAAU,EAAE,CAAsC,uCAAE,UAAU,CAAC,gBAAgB;QAC5G,OAAO,EAAP,IAAO;OACN,IAAI,4CAEN,iBAAU,iDACR,mBAAY;QAAC,KAAK,EAAE,KAAK;gDACvB,aAAM;QAAC,gBAAgB,EAAE,iBAAU,CAAC,gEAAU,EAAE,CAAsC;OACpF,QAAQ;AAMrB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,GAAG,CAAC,yCAAe,iBAAG,YAAK,CAAC,UAAU,CAAC,oCAAc","sources":["packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@react-spectrum/contextualhelp/src/contextualhelp.css","packages/@react-spectrum/contextualhelp/intl/*.js","packages/@react-spectrum/contextualhelp/intl/ar-AE.json","packages/@react-spectrum/contextualhelp/intl/bg-BG.json","packages/@react-spectrum/contextualhelp/intl/cs-CZ.json","packages/@react-spectrum/contextualhelp/intl/da-DK.json","packages/@react-spectrum/contextualhelp/intl/de-DE.json","packages/@react-spectrum/contextualhelp/intl/el-GR.json","packages/@react-spectrum/contextualhelp/intl/en-US.json","packages/@react-spectrum/contextualhelp/intl/es-ES.json","packages/@react-spectrum/contextualhelp/intl/et-EE.json","packages/@react-spectrum/contextualhelp/intl/fi-FI.json","packages/@react-spectrum/contextualhelp/intl/fr-FR.json","packages/@react-spectrum/contextualhelp/intl/he-IL.json","packages/@react-spectrum/contextualhelp/intl/hr-HR.json","packages/@react-spectrum/contextualhelp/intl/hu-HU.json","packages/@react-spectrum/contextualhelp/intl/it-IT.json","packages/@react-spectrum/contextualhelp/intl/ja-JP.json","packages/@react-spectrum/contextualhelp/intl/ko-KR.json","packages/@react-spectrum/contextualhelp/intl/lt-LT.json","packages/@react-spectrum/contextualhelp/intl/lv-LV.json","packages/@react-spectrum/contextualhelp/intl/nb-NO.json","packages/@react-spectrum/contextualhelp/intl/nl-NL.json","packages/@react-spectrum/contextualhelp/intl/pl-PL.json","packages/@react-spectrum/contextualhelp/intl/pt-BR.json","packages/@react-spectrum/contextualhelp/intl/pt-PT.json","packages/@react-spectrum/contextualhelp/intl/ro-RO.json","packages/@react-spectrum/contextualhelp/intl/ru-RU.json","packages/@react-spectrum/contextualhelp/intl/sk-SK.json","packages/@react-spectrum/contextualhelp/intl/sl-SI.json","packages/@react-spectrum/contextualhelp/intl/sr-SP.json","packages/@react-spectrum/contextualhelp/intl/sv-SE.json","packages/@react-spectrum/contextualhelp/intl/tr-TR.json","packages/@react-spectrum/contextualhelp/intl/uk-UA.json","packages/@react-spectrum/contextualhelp/intl/zh-CN.json","packages/@react-spectrum/contextualhelp/intl/zh-TW.json"],"sourcesContent":["/*\n * Copyright 2021 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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {FocusableRef} from '@react-types/shared';\nimport HelpOutline from '@spectrum-icons/workflow/HelpOutline';\nimport helpStyles from './contextualhelp.css';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useLabels} from '@react-aria/utils';\nimport React from 'react';\nimport {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction ContextualHelp(props: SpectrumContextualHelpProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n variant = 'help',\n placement = 'bottom start',\n children,\n ...otherProps\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n let icon = variant === 'info' ? <InfoOutline /> : <HelpOutline />;\n\n let slots = {\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n\n let labelProps = useLabels(otherProps, stringFormatter.format(variant));\n\n return (\n <DialogTrigger {...otherProps} type=\"popover\" placement={placement} hideArrow>\n <ActionButton\n {...mergeProps(otherProps, labelProps, {isDisabled: false})}\n ref={ref}\n UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className)}\n isQuiet>\n {icon}\n </ActionButton>\n <ClearSlots>\n <SlotProvider slots={slots}>\n <Dialog UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')}>\n {children}\n </Dialog>\n </SlotProvider>\n </ClearSlots>\n </DialogTrigger>\n );\n}\n\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nlet _ContextualHelp = React.forwardRef(ContextualHelp);\nexport {_ContextualHelp as ContextualHelp};\n","/*\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:root {\n --spectrum-contextualhelp-button-size: var(--spectrum-global-dimension-size-250);\n --spectrum-contextualhelp-icon-size: var(--spectrum-global-dimension-size-175);\n --spectrum-contexualhelp-dialog-width: 250px;\n --spectrum-contextualhelp-dialog-padding: var(--spectrum-global-dimension-static-size-300);\n}\n\n.react-spectrum-ContextualHelp-button {\n --spectrum-button-primary-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-min-width: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-icon-padding-x: var(--spectrum-global-dimension-size-40);\n\n svg {\n block-size: var(--spectrum-contextualhelp-icon-size);\n inline-size: var(--spectrum-contextualhelp-icon-size);\n }\n\n}\n\n.react-spectrum-ContextualHelp-dialog.react-spectrum-ContextualHelp-dialog {\n width: var(--spectrum-contexualhelp-dialog-width);\n --spectrum-dialog-padding-x: var(--spectrum-contextualhelp-dialog-padding);\n --spectrum-dialog-padding-y: var(--spectrum-contextualhelp-dialog-padding);\n\n .react-spectrum-ContextualHelp-content {\n margin-top: var(--spectrum-global-dimension-static-size-100);\n }\n\n .react-spectrum-ContextualHelp-footer {\n padding-top: var(--spectrum-global-dimension-static-size-100);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"help\": \"مساعدة\",\n \"info\": \"معلومات\"\n}\n","{\n \"help\": \"Помощ\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Nápověda\",\n \"info\": \"Informace\"\n}\n","{\n \"help\": \"Hjælp\",\n \"info\": \"Oplysninger\"\n}\n","{\n \"help\": \"Hilfe\",\n \"info\": \"Informationen\"\n}\n","{\n \"help\": \"Βοήθεια\",\n \"info\": \"Πληροφορίες\"\n}\n","{\n \"info\": \"Information\",\n \"help\": \"Help\"\n}\n","{\n \"help\": \"Ayuda\",\n \"info\": \"Información\"\n}\n","{\n \"help\": \"Spikker\",\n \"info\": \"Teave\"\n}\n","{\n \"help\": \"Ohje\",\n \"info\": \"Tiedot\"\n}\n","{\n \"help\": \"Aide\",\n \"info\": \"Informations\"\n}\n","{\n \"help\": \"עזרה\",\n \"info\": \"מידע\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Súgó\",\n \"info\": \"Információ\"\n}\n","{\n \"help\": \"Aiuto\",\n \"info\": \"Informazioni\"\n}\n","{\n \"help\": \"ヘルプ\",\n \"info\": \"情報\"\n}\n","{\n \"help\": \"도움말\",\n \"info\": \"정보\"\n}\n","{\n \"help\": \"Žinynas\",\n \"info\": \"Informacija\"\n}\n","{\n \"help\": \"Palīdzība\",\n \"info\": \"Informācija\"\n}\n","{\n \"help\": \"Hjelp\",\n \"info\": \"Informasjon\"\n}\n","{\n \"help\": \"Help\",\n \"info\": \"Informatie\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informacja\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informações\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informação\"\n}\n","{\n \"help\": \"Ajutor\",\n \"info\": \"Informaţii\"\n}\n","{\n \"help\": \"Справка\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informácie\"\n}\n","{\n \"help\": \"Pomoč\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Hjälp\",\n \"info\": \"Information\"\n}\n","{\n \"help\": \"Yardım\",\n \"info\": \"Bilgiler\"\n}\n","{\n \"help\": \"Довідка\",\n \"info\": \"Інформація\"\n}\n","{\n \"help\": \"帮助\",\n \"info\": \"信息\"\n}\n","{\n \"help\": \"說明\",\n \"info\": \"資訊\"\n}\n"],"names":[],"version":3,"file":"module.mjs.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;;;;;;;;;;ACZA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAHA,4CAAyD;AACzD,4CAAyD;AACzD,2CAA0D;AAC1D,4CAAyD;;;;;;AEHzD,4BAAiB;IAAG,QAAQ,CAAC,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC;AACnB;;ADFA;;AEAA,4BAAi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C,CAAC,uCAAuC;QAAA;IAC/E;IAEA,IAAI,aAAa,CAAA,GAAA,gBAAQ,EAAE,YAAY,gBAAgB,MAAM,CAAC;IAE9D,qBACE,gCAAC,CAAA,GAAA,oBAAa,AAAD;QAAG,GAAG,UAAU;QAAE,MAAK;QAAU,WAAW;QAAW,WAAA,IAAS;qBAC3E,gCAAC,CAAA,GAAA,mBAAW;QACT,GAAG,CAAA,GAAA,iBAAU,AAAD,EAAE,YAAY,YAAY;YAAC,YAAY,KAAK;QAAA,EAAE;QAC3D,KAAK;QACL,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,yDAAU,OAAD,GAAG,wCAAwC,WAAW,gBAAgB;QAC5G,SAAA,IAAO;OACN,qBAEH,gCAAC,CAAA,GAAA,iBAAS,uBACR,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;qBACnB,gCAAC,CAAA,GAAA,aAAK;QAAE,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,gEAAU,AAAD,GAAG;OAC9C;AAMb;AAEA;;CAEC,GACD,IAAI,0DAAkB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;;CD1DtC,GAED","sources":["packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@react-spectrum/contextualhelp/src/contextualhelp.css","packages/@react-spectrum/contextualhelp/intl/*.js","packages/@react-spectrum/contextualhelp/intl/ar-AE.json","packages/@react-spectrum/contextualhelp/intl/bg-BG.json","packages/@react-spectrum/contextualhelp/intl/cs-CZ.json","packages/@react-spectrum/contextualhelp/intl/da-DK.json","packages/@react-spectrum/contextualhelp/intl/de-DE.json","packages/@react-spectrum/contextualhelp/intl/el-GR.json","packages/@react-spectrum/contextualhelp/intl/en-US.json","packages/@react-spectrum/contextualhelp/intl/es-ES.json","packages/@react-spectrum/contextualhelp/intl/et-EE.json","packages/@react-spectrum/contextualhelp/intl/fi-FI.json","packages/@react-spectrum/contextualhelp/intl/fr-FR.json","packages/@react-spectrum/contextualhelp/intl/he-IL.json","packages/@react-spectrum/contextualhelp/intl/hr-HR.json","packages/@react-spectrum/contextualhelp/intl/hu-HU.json","packages/@react-spectrum/contextualhelp/intl/it-IT.json","packages/@react-spectrum/contextualhelp/intl/ja-JP.json","packages/@react-spectrum/contextualhelp/intl/ko-KR.json","packages/@react-spectrum/contextualhelp/intl/lt-LT.json","packages/@react-spectrum/contextualhelp/intl/lv-LV.json","packages/@react-spectrum/contextualhelp/intl/nb-NO.json","packages/@react-spectrum/contextualhelp/intl/nl-NL.json","packages/@react-spectrum/contextualhelp/intl/pl-PL.json","packages/@react-spectrum/contextualhelp/intl/pt-BR.json","packages/@react-spectrum/contextualhelp/intl/pt-PT.json","packages/@react-spectrum/contextualhelp/intl/ro-RO.json","packages/@react-spectrum/contextualhelp/intl/ru-RU.json","packages/@react-spectrum/contextualhelp/intl/sk-SK.json","packages/@react-spectrum/contextualhelp/intl/sl-SI.json","packages/@react-spectrum/contextualhelp/intl/sr-SP.json","packages/@react-spectrum/contextualhelp/intl/sv-SE.json","packages/@react-spectrum/contextualhelp/intl/tr-TR.json","packages/@react-spectrum/contextualhelp/intl/uk-UA.json","packages/@react-spectrum/contextualhelp/intl/zh-CN.json","packages/@react-spectrum/contextualhelp/intl/zh-TW.json"],"sourcesContent":["/*\n * Copyright 2021 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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {FocusableRef} from '@react-types/shared';\nimport HelpOutline from '@spectrum-icons/workflow/HelpOutline';\nimport helpStyles from './contextualhelp.css';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useLabels} from '@react-aria/utils';\nimport React from 'react';\nimport {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction ContextualHelp(props: SpectrumContextualHelpProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n variant = 'help',\n placement = 'bottom start',\n children,\n ...otherProps\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n let icon = variant === 'info' ? <InfoOutline /> : <HelpOutline />;\n\n let slots = {\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n\n let labelProps = useLabels(otherProps, stringFormatter.format(variant));\n\n return (\n <DialogTrigger {...otherProps} type=\"popover\" placement={placement} hideArrow>\n <ActionButton\n {...mergeProps(otherProps, labelProps, {isDisabled: false})}\n ref={ref}\n UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className)}\n isQuiet>\n {icon}\n </ActionButton>\n <ClearSlots>\n <SlotProvider slots={slots}>\n <Dialog UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')}>\n {children}\n </Dialog>\n </SlotProvider>\n </ClearSlots>\n </DialogTrigger>\n );\n}\n\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nlet _ContextualHelp = React.forwardRef(ContextualHelp);\nexport {_ContextualHelp as ContextualHelp};\n","/*\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:root {\n --spectrum-contextualhelp-button-size: var(--spectrum-global-dimension-size-250);\n --spectrum-contextualhelp-icon-size: var(--spectrum-global-dimension-size-175);\n --spectrum-contexualhelp-dialog-width: 250px;\n --spectrum-contextualhelp-dialog-padding: var(--spectrum-global-dimension-static-size-300);\n}\n\n.react-spectrum-ContextualHelp-button {\n --spectrum-button-primary-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-height: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-min-width: var(--spectrum-contextualhelp-button-size);\n --spectrum-actionbutton-icon-padding-x: var(--spectrum-global-dimension-size-40);\n\n svg {\n block-size: var(--spectrum-contextualhelp-icon-size);\n inline-size: var(--spectrum-contextualhelp-icon-size);\n }\n\n}\n\n.react-spectrum-ContextualHelp-dialog.react-spectrum-ContextualHelp-dialog {\n width: var(--spectrum-contexualhelp-dialog-width);\n --spectrum-dialog-padding-x: var(--spectrum-contextualhelp-dialog-padding);\n --spectrum-dialog-padding-y: var(--spectrum-contextualhelp-dialog-padding);\n\n .react-spectrum-ContextualHelp-content {\n margin-top: var(--spectrum-global-dimension-static-size-100);\n }\n\n .react-spectrum-ContextualHelp-footer {\n padding-top: var(--spectrum-global-dimension-static-size-100);\n }\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"help\": \"مساعدة\",\n \"info\": \"معلومات\"\n}\n","{\n \"help\": \"Помощ\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Nápověda\",\n \"info\": \"Informace\"\n}\n","{\n \"help\": \"Hjælp\",\n \"info\": \"Oplysninger\"\n}\n","{\n \"help\": \"Hilfe\",\n \"info\": \"Informationen\"\n}\n","{\n \"help\": \"Βοήθεια\",\n \"info\": \"Πληροφορίες\"\n}\n","{\n \"info\": \"Information\",\n \"help\": \"Help\"\n}\n","{\n \"help\": \"Ayuda\",\n \"info\": \"Información\"\n}\n","{\n \"help\": \"Spikker\",\n \"info\": \"Teave\"\n}\n","{\n \"help\": \"Ohje\",\n \"info\": \"Tiedot\"\n}\n","{\n \"help\": \"Aide\",\n \"info\": \"Informations\"\n}\n","{\n \"help\": \"עזרה\",\n \"info\": \"מידע\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Súgó\",\n \"info\": \"Információ\"\n}\n","{\n \"help\": \"Aiuto\",\n \"info\": \"Informazioni\"\n}\n","{\n \"help\": \"ヘルプ\",\n \"info\": \"情報\"\n}\n","{\n \"help\": \"도움말\",\n \"info\": \"정보\"\n}\n","{\n \"help\": \"Žinynas\",\n \"info\": \"Informacija\"\n}\n","{\n \"help\": \"Palīdzība\",\n \"info\": \"Informācija\"\n}\n","{\n \"help\": \"Hjelp\",\n \"info\": \"Informasjon\"\n}\n","{\n \"help\": \"Help\",\n \"info\": \"Informatie\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informacja\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informações\"\n}\n","{\n \"help\": \"Ajuda\",\n \"info\": \"Informação\"\n}\n","{\n \"help\": \"Ajutor\",\n \"info\": \"Informaţii\"\n}\n","{\n \"help\": \"Справка\",\n \"info\": \"Информация\"\n}\n","{\n \"help\": \"Pomoc\",\n \"info\": \"Informácie\"\n}\n","{\n \"help\": \"Pomoč\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Pomoć\",\n \"info\": \"Informacije\"\n}\n","{\n \"help\": \"Hjälp\",\n \"info\": \"Information\"\n}\n","{\n \"help\": \"Yardım\",\n \"info\": \"Bilgiler\"\n}\n","{\n \"help\": \"Довідка\",\n \"info\": \"Інформація\"\n}\n","{\n \"help\": \"帮助\",\n \"info\": \"信息\"\n}\n","{\n \"help\": \"說明\",\n \"info\": \"資訊\"\n}\n"],"names":[],"version":3,"file":"module.mjs.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/contextualhelp",
3
- "version": "3.4.1-nightly.3598+810579b67",
3
+ "version": "3.4.1-nightly.3600+bfce84fee",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,20 +36,20 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@babel/runtime": "^7.6.2",
40
- "@react-aria/i18n": "3.0.0-nightly.1898+810579b67",
41
- "@react-aria/utils": "3.0.0-nightly.1898+810579b67",
42
- "@react-spectrum/button": "3.0.0-nightly.1898+810579b67",
43
- "@react-spectrum/dialog": "3.0.0-nightly.1898+810579b67",
44
- "@react-spectrum/utils": "3.0.0-nightly.1898+810579b67",
45
- "@react-types/contextualhelp": "3.1.6-nightly.3598+810579b67",
46
- "@react-types/shared": "3.0.0-nightly.1898+810579b67",
47
- "@spectrum-icons/workflow": "3.0.0-nightly.1898+810579b67"
39
+ "@react-aria/i18n": "3.0.0-nightly.1900+bfce84fee",
40
+ "@react-aria/utils": "3.0.0-nightly.1900+bfce84fee",
41
+ "@react-spectrum/button": "3.0.0-nightly.1900+bfce84fee",
42
+ "@react-spectrum/dialog": "3.0.0-nightly.1900+bfce84fee",
43
+ "@react-spectrum/utils": "3.0.0-nightly.1900+bfce84fee",
44
+ "@react-types/contextualhelp": "3.1.6-nightly.3600+bfce84fee",
45
+ "@react-types/shared": "3.0.0-nightly.1900+bfce84fee",
46
+ "@spectrum-icons/workflow": "3.0.0-nightly.1900+bfce84fee",
47
+ "@swc/helpers": "^0.4.14"
48
48
  },
49
49
  "devDependencies": {
50
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1898+810579b67",
51
- "@react-spectrum/link": "3.0.0-nightly.1898+810579b67",
52
- "@react-spectrum/view": "3.0.0-nightly.1898+810579b67"
50
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1900+bfce84fee",
51
+ "@react-spectrum/link": "3.0.0-nightly.1900+bfce84fee",
52
+ "@react-spectrum/view": "3.0.0-nightly.1900+bfce84fee"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@react-spectrum/provider": "^3.0.0",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "810579b671791f1593108f62cdc1893de3a220e3"
61
+ "gitHead": "bfce84fee12a027d9cbc38b43e1747e3e4b4b169"
62
62
  }