@protonradio/proton-ui 0.11.15 → 0.11.16

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.
Files changed (243) hide show
  1. package/README.md +148 -148
  2. package/dist/assets/svg/icons.svg.cjs.js.map +1 -1
  3. package/dist/assets/svg/icons.svg.es.js.map +1 -1
  4. package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -1
  5. package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -1
  6. package/dist/components/Badge/Badge.cjs.js.map +1 -1
  7. package/dist/components/Badge/Badge.es.js.map +1 -1
  8. package/dist/components/Banner/Banner.cjs.js.map +1 -1
  9. package/dist/components/Banner/Banner.es.js.map +1 -1
  10. package/dist/components/Button/Button.cjs.js.map +1 -1
  11. package/dist/components/Button/Button.es.js.map +1 -1
  12. package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +1 -1
  13. package/dist/components/ButtonGroup/ButtonGroup.es.js.map +1 -1
  14. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +1 -1
  15. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -1
  16. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +29 -27
  17. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -1
  18. package/dist/components/DataTable/DataTable.cjs.js.map +1 -1
  19. package/dist/components/DataTable/DataTable.es.js.map +1 -1
  20. package/dist/components/Dialog/Dialog.cjs.js.map +1 -1
  21. package/dist/components/Dialog/Dialog.es.js.map +1 -1
  22. package/dist/components/Elevation/Elevation.cjs.js.map +1 -1
  23. package/dist/components/Elevation/Elevation.es.js.map +1 -1
  24. package/dist/components/Icon/Icon.cjs.js.map +1 -1
  25. package/dist/components/Icon/Icon.es.js.map +1 -1
  26. package/dist/components/ImageBackground/ImageBackground.cjs.js.map +1 -1
  27. package/dist/components/ImageBackground/ImageBackground.es.js.map +1 -1
  28. package/dist/components/Input/BaseInput/Input.cjs.js.map +1 -1
  29. package/dist/components/Input/BaseInput/Input.es.js.map +1 -1
  30. package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +1 -1
  31. package/dist/components/Input/CopyInput/CopyInput.es.js.map +1 -1
  32. package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +1 -1
  33. package/dist/components/Input/SearchInput/SearchInput.es.js.map +1 -1
  34. package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -1
  35. package/dist/components/Menu/MenuTrigger.es.js.map +1 -1
  36. package/dist/components/Menu/PopoverMenu.cjs.js +1 -1
  37. package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -1
  38. package/dist/components/Menu/PopoverMenu.es.js +28 -32
  39. package/dist/components/Menu/PopoverMenu.es.js.map +1 -1
  40. package/dist/components/Modal/Modal.cjs.js.map +1 -1
  41. package/dist/components/Modal/Modal.es.js.map +1 -1
  42. package/dist/components/Popover/Popover.cjs.js.map +1 -1
  43. package/dist/components/Popover/Popover.es.js.map +1 -1
  44. package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +1 -1
  45. package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +1 -1
  46. package/dist/components/Select/Select.cjs.js.map +1 -1
  47. package/dist/components/Select/Select.es.js +3 -3
  48. package/dist/components/Select/Select.es.js.map +1 -1
  49. package/dist/components/Switch/Switch.cjs.js.map +1 -1
  50. package/dist/components/Switch/Switch.es.js.map +1 -1
  51. package/dist/components/Table/Collection/CompoundComponents.cjs.js.map +1 -1
  52. package/dist/components/Table/Collection/CompoundComponents.es.js.map +1 -1
  53. package/dist/components/Table/Collection/collectionParser.cjs.js.map +1 -1
  54. package/dist/components/Table/Collection/collectionParser.es.js.map +1 -1
  55. package/dist/components/Table/Collection/useTableCollection.cjs.js.map +1 -1
  56. package/dist/components/Table/Collection/useTableCollection.es.js.map +1 -1
  57. package/dist/components/Table/Table.cjs.js.map +1 -1
  58. package/dist/components/Table/Table.es.js +5 -5
  59. package/dist/components/Table/Table.es.js.map +1 -1
  60. package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  61. package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +1 -1
  62. package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +1 -1
  63. package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +1 -1
  64. package/dist/components/ThemeProvider.cjs.js.map +1 -1
  65. package/dist/components/ThemeProvider.es.js +4 -4
  66. package/dist/components/ThemeProvider.es.js.map +1 -1
  67. package/dist/components/Tombstone/Tombstone.cjs.js.map +1 -1
  68. package/dist/components/Tombstone/Tombstone.es.js.map +1 -1
  69. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  70. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  71. package/dist/components/Waveform/Waveform.cjs.js.map +1 -1
  72. package/dist/components/Waveform/Waveform.es.js.map +1 -1
  73. package/dist/components/Waveform/WaveformBar.cjs.js.map +1 -1
  74. package/dist/components/Waveform/WaveformBar.es.js.map +1 -1
  75. package/dist/constants/breakpoint.cjs.js.map +1 -1
  76. package/dist/constants/breakpoint.es.js.map +1 -1
  77. package/dist/constants/placement.cjs.js.map +1 -1
  78. package/dist/constants/placement.es.js.map +1 -1
  79. package/dist/design/colors.cjs.js.map +1 -1
  80. package/dist/design/colors.es.js.map +1 -1
  81. package/dist/design/darkTheme/colors.cjs.js.map +1 -1
  82. package/dist/design/darkTheme/colors.es.js +3 -3
  83. package/dist/design/darkTheme/colors.es.js.map +1 -1
  84. package/dist/design/darkTheme/stylesheet.cjs.js.map +1 -1
  85. package/dist/design/darkTheme/stylesheet.es.js +12 -12
  86. package/dist/design/darkTheme/stylesheet.es.js.map +1 -1
  87. package/dist/design/generateStylesheet.cjs.js.map +1 -1
  88. package/dist/design/generateStylesheet.es.js.map +1 -1
  89. package/dist/design/lightTheme/colors.cjs.js.map +1 -1
  90. package/dist/design/lightTheme/colors.es.js +3 -3
  91. package/dist/design/lightTheme/colors.es.js.map +1 -1
  92. package/dist/design/lightTheme/stylesheet.cjs.js.map +1 -1
  93. package/dist/design/lightTheme/stylesheet.es.js +12 -12
  94. package/dist/design/lightTheme/stylesheet.es.js.map +1 -1
  95. package/dist/design/theme.cjs.js.map +1 -1
  96. package/dist/design/theme.es.js.map +1 -1
  97. package/dist/hooks/useBreakpoint.cjs.js.map +1 -1
  98. package/dist/hooks/useBreakpoint.es.js.map +1 -1
  99. package/dist/hooks/useIsClosing.cjs.js.map +1 -1
  100. package/dist/hooks/useIsClosing.es.js.map +1 -1
  101. package/dist/hooks/useLockBodyScroll.cjs.js.map +1 -1
  102. package/dist/hooks/useLockBodyScroll.es.js.map +1 -1
  103. package/dist/hooks/usePalette.cjs.js.map +1 -1
  104. package/dist/hooks/usePalette.es.js.map +1 -1
  105. package/dist/icons.svg +10 -10
  106. package/dist/index.d.ts +38 -38
  107. package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js +1 -1
  108. package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js.map +1 -1
  109. package/dist/node_modules/@react-aria/button/dist/useButton.es.js +13 -12
  110. package/dist/node_modules/@react-aria/button/dist/useButton.es.js.map +1 -1
  111. package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js.map +1 -1
  112. package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js.map +1 -1
  113. package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js.map +1 -1
  114. package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js +3 -3
  115. package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js.map +1 -1
  116. package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js.map +1 -1
  117. package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js.map +1 -1
  118. package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js.map +1 -1
  119. package/dist/node_modules/@react-aria/i18n/dist/context.es.js.map +1 -1
  120. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js.map +1 -1
  121. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js.map +1 -1
  122. package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js.map +1 -1
  123. package/dist/node_modules/@react-aria/i18n/dist/utils.es.js.map +1 -1
  124. package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js.map +1 -1
  125. package/dist/node_modules/@react-aria/interactions/dist/context.es.js.map +1 -1
  126. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js.map +1 -1
  127. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js.map +1 -1
  128. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js.map +1 -1
  129. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js.map +1 -1
  130. package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js.map +1 -1
  131. package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js.map +1 -1
  132. package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js.map +1 -1
  133. package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js.map +1 -1
  134. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +1 -1
  135. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +1 -1
  136. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js.map +1 -1
  137. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js.map +1 -1
  138. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js.map +1 -1
  139. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js.map +1 -1
  140. package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js.map +1 -1
  141. package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js.map +1 -1
  142. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js.map +1 -1
  143. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js.map +1 -1
  144. package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js +2 -2
  145. package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js.map +1 -1
  146. package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js +23 -23
  147. package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js.map +1 -1
  148. package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js.map +1 -1
  149. package/dist/node_modules/@react-aria/interactions/dist/utils.es.js.map +1 -1
  150. package/dist/node_modules/@react-aria/label/dist/useField.cjs.js.map +1 -1
  151. package/dist/node_modules/@react-aria/label/dist/useField.es.js.map +1 -1
  152. package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js.map +1 -1
  153. package/dist/node_modules/@react-aria/label/dist/useLabel.es.js.map +1 -1
  154. package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +1 -1
  155. package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +1 -1
  156. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +1 -1
  157. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +1 -1
  158. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +18 -18
  159. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +1 -1
  160. package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js.map +1 -1
  161. package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js.map +1 -1
  162. package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js.map +1 -1
  163. package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js.map +1 -1
  164. package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js.map +1 -1
  165. package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js.map +1 -1
  166. package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js.map +1 -1
  167. package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js.map +1 -1
  168. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js.map +1 -1
  169. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js.map +1 -1
  170. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js.map +1 -1
  171. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js.map +1 -1
  172. package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js.map +1 -1
  173. package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js.map +1 -1
  174. package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js.map +1 -1
  175. package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js.map +1 -1
  176. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js.map +1 -1
  177. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js.map +1 -1
  178. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js.map +1 -1
  179. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js +3 -3
  180. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js.map +1 -1
  181. package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js.map +1 -1
  182. package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js.map +1 -1
  183. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js.map +1 -1
  184. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js.map +1 -1
  185. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js.map +1 -1
  186. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js.map +1 -1
  187. package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js.map +1 -1
  188. package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js.map +1 -1
  189. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js +1 -1
  190. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js.map +1 -1
  191. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js +1 -2
  192. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js.map +1 -1
  193. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js +1 -1
  194. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js.map +1 -1
  195. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js +1 -2
  196. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js.map +1 -1
  197. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js +1 -1
  198. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js.map +1 -1
  199. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js +1 -2
  200. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js.map +1 -1
  201. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js +1 -1
  202. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js.map +1 -1
  203. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js +1 -2
  204. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js.map +1 -1
  205. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js +1 -1
  206. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js.map +1 -1
  207. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js +6 -7
  208. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js.map +1 -1
  209. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js +1 -1
  210. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js.map +1 -1
  211. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js +3 -4
  212. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js.map +1 -1
  213. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js +1 -1
  214. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js.map +1 -1
  215. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js +6 -7
  216. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js.map +1 -1
  217. package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js.map +1 -1
  218. package/dist/node_modules/color2k/dist/index.exports.import.es.es.js.map +1 -1
  219. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +7 -7
  220. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +1 -1
  221. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +167 -174
  222. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -1
  223. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +1 -1
  224. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js.map +1 -1
  225. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +3 -3
  226. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -1
  227. package/dist/node_modules/react/jsx-runtime.cjs.js.map +1 -1
  228. package/dist/node_modules/react/jsx-runtime.es.js.map +1 -1
  229. package/dist/style.css +1 -1
  230. package/dist/utils/color2k.cjs.js.map +1 -1
  231. package/dist/utils/color2k.es.js.map +1 -1
  232. package/dist/utils/copy.cjs.js.map +1 -1
  233. package/dist/utils/copy.es.js.map +1 -1
  234. package/dist/utils/image.cjs.js.map +1 -1
  235. package/dist/utils/image.es.js.map +1 -1
  236. package/dist/utils/navigation.cjs.js.map +1 -1
  237. package/dist/utils/navigation.es.js.map +1 -1
  238. package/dist/utils/palette.cjs.js.map +1 -1
  239. package/dist/utils/palette.es.js +1 -1
  240. package/dist/utils/palette.es.js.map +1 -1
  241. package/dist/utils/string.cjs.js.map +1 -1
  242. package/dist/utils/string.es.js.map +1 -1
  243. package/package.json +140 -140
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AriaAttributes } from 'react';
2
2
  import { AriaDialogProps } from '@react-aria/dialog';
3
3
  import { default as default_2 } from 'react';
4
4
  import { ForwardRefExoticComponent } from 'react';
5
- import { JSX as JSX_2 } from 'react/jsx-runtime';
5
+ import { JSX } from 'react/jsx-runtime';
6
6
  import { MouseEvent as MouseEvent_2 } from 'react';
7
7
  import { ReactElement } from 'react';
8
8
  import { ReactNode } from 'react';
@@ -16,7 +16,7 @@ import { Selection as Selection_2 } from '@react-types/shared';
16
16
  * API:
17
17
  * - {@link ActionMenuProps}
18
18
  */
19
- export declare const ActionMenu: ({ isOpen, actions, children, showCancel, cancelButtonText, selectionMode, selectedKeys, disabledKeys, onSelectionChange, onClose, title, "data-testid": testId, }: ActionMenuProps) => JSX_2.Element;
19
+ export declare const ActionMenu: ({ isOpen, actions, children, showCancel, cancelButtonText, selectionMode, selectedKeys, disabledKeys, onSelectionChange, onClose, title, "data-testid": testId, }: ActionMenuProps) => JSX.Element;
20
20
 
21
21
  export declare interface ActionMenuAction {
22
22
  key: string;
@@ -75,7 +75,7 @@ export declare type ActionMenuSelectionMode = "single" | "multiple" | "none";
75
75
  * - {@link BadgeProps}
76
76
  * - extends {@link React.HTMLAttributes}
77
77
  */
78
- export declare const Badge: ({ variant, children, ...props }: BadgeProps) => JSX_2.Element;
78
+ export declare const Badge: ({ variant, children, ...props }: BadgeProps) => JSX.Element;
79
79
 
80
80
  declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
81
81
  /**
@@ -101,7 +101,7 @@ export declare const BadgeVariants: Record<BadgeVariant, BadgeVariant>;
101
101
  * - extends {@link BannerIconProps}
102
102
  */
103
103
  export declare const Banner: {
104
- ({ variant, rounded, icon, compact, children, "data-testid": dataTestId, }: BannerProps): JSX_2.Element;
104
+ ({ variant, rounded, icon, compact, children, "data-testid": dataTestId, }: BannerProps): JSX.Element;
105
105
  displayName: string;
106
106
  /**
107
107
  * Renders an h3 styled banner.
@@ -110,7 +110,7 @@ export declare const Banner: {
110
110
  ({ children, "data-testid": dataTestId, }: {
111
111
  children: ReactNode;
112
112
  "data-testid"?: string;
113
- }): JSX_2.Element;
113
+ }): JSX.Element;
114
114
  displayName: string;
115
115
  };
116
116
  /**
@@ -120,7 +120,7 @@ export declare const Banner: {
120
120
  ({ children, "data-testid": dataTestId, }: {
121
121
  children: ReactNode;
122
122
  "data-testid"?: string;
123
- }): JSX_2.Element;
123
+ }): JSX.Element;
124
124
  displayName: string;
125
125
  };
126
126
  /**
@@ -130,7 +130,7 @@ export declare const Banner: {
130
130
  * - {@link BannerIconProps}
131
131
  */
132
132
  Icon: {
133
- ({ icon, "data-testid": dataTestId }: BannerIconProps): JSX_2.Element;
133
+ ({ icon, "data-testid": dataTestId }: BannerIconProps): JSX.Element;
134
134
  displayName: string;
135
135
  };
136
136
  /**
@@ -138,7 +138,7 @@ export declare const Banner: {
138
138
  * - @prop buttonProps {@link ButtonProps}
139
139
  */
140
140
  Action: {
141
- ({ children, ...buttonProps }: ButtonProps): JSX_2.Element;
141
+ ({ children, ...buttonProps }: ButtonProps): JSX.Element;
142
142
  displayName: string;
143
143
  };
144
144
  /**
@@ -147,15 +147,15 @@ export declare const Banner: {
147
147
  Actions: {
148
148
  ({ children }: {
149
149
  children: ReactNode;
150
- }): JSX_2.Element;
150
+ }): JSX.Element;
151
151
  displayName: string;
152
152
  };
153
153
  };
154
154
 
155
155
  export declare const BANNER_ICONS: {
156
- success: JSX_2.Element;
157
- warning: JSX_2.Element;
158
- danger: JSX_2.Element;
156
+ success: JSX.Element;
157
+ warning: JSX.Element;
158
+ danger: JSX.Element;
159
159
  };
160
160
 
161
161
  export declare const BANNER_VARIANTS: {
@@ -329,11 +329,11 @@ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttribut
329
329
  * API:
330
330
  * - {@link ButtonGroupProps}
331
331
  */
332
- export declare function ButtonGroup(props: ButtonGroupProps): JSX_2.Element;
332
+ export declare function ButtonGroup(props: ButtonGroupProps): JSX.Element;
333
333
 
334
334
  export declare namespace ButtonGroup {
335
335
  var displayName: string;
336
- var Option: (props: ButtonGroupOptionProps) => JSX_2.Element;
336
+ var Option: (props: ButtonGroupOptionProps) => JSX.Element;
337
337
  }
338
338
 
339
339
  declare interface ButtonGroupOptionProps {
@@ -415,7 +415,7 @@ export declare const ButtonVariants: Record<ButtonVariant, ButtonVariant>;
415
415
  * - {@link ButtonWithSelectProps}
416
416
  * - extends {@link ButtonProps}
417
417
  */
418
- export declare function ButtonWithSelect({ items, defaultValue, children, onSelectionChange, disabledKeys, selectedKey, icon, variant, fullWidth, onPress, ...buttonProps }: ButtonWithSelectProps): JSX_2.Element;
418
+ export declare function ButtonWithSelect({ items, defaultValue, children, onSelectionChange, disabledKeys, selectedKey, icon, variant, fullWidth, onPress, ...buttonProps }: ButtonWithSelectProps): JSX.Element;
419
419
 
420
420
  export declare namespace ButtonWithSelect {
421
421
  var displayName: string;
@@ -451,7 +451,7 @@ declare interface ButtonWithSelectProps extends ButtonProps {
451
451
  * API:
452
452
  * - {@link CopyInputProps}
453
453
  */
454
- export declare function CopyInput({ name, value, isDisabled, onError, onSuccess, }: CopyInputProps): JSX_2.Element;
454
+ export declare function CopyInput({ name, value, isDisabled, onError, onSuccess, }: CopyInputProps): JSX.Element;
455
455
 
456
456
  declare interface CopyInputProps {
457
457
  /** The name of the input field */
@@ -473,7 +473,7 @@ declare interface CopyInputProps {
473
473
  * - {@link DataTableProps}
474
474
  * - {@link SortingConfig}
475
475
  */
476
- export declare function DataTable<T = any>(props: DataTableProps<T>): JSX_2.Element;
476
+ export declare function DataTable<T = any>(props: DataTableProps<T>): JSX.Element;
477
477
 
478
478
  export declare interface DataTableColumn<T> {
479
479
  /** id for the column */
@@ -495,7 +495,7 @@ export declare type DataTableProps<T = any> = BaseDataTableProps<T> & SortingCon
495
495
  * - {@link DialogProps}
496
496
  * - extends {@link AriaDialogProps}
497
497
  */
498
- export declare function Dialog({ title, children, ...props }: DialogProps): JSX_2.Element;
498
+ export declare function Dialog({ title, children, ...props }: DialogProps): JSX.Element;
499
499
 
500
500
  declare interface DialogProps extends AriaDialogProps {
501
501
  title?: React.ReactNode;
@@ -512,7 +512,7 @@ declare interface DialogProps extends AriaDialogProps {
512
512
  * API:
513
513
  * - {@link ElevationProps}
514
514
  */
515
- export declare const Elevation: ({ children, hasPrimaryGradient, "data-testid": dataTestId, }: ElevationProps) => JSX_2.Element;
515
+ export declare const Elevation: ({ children, hasPrimaryGradient, "data-testid": dataTestId, }: ElevationProps) => JSX.Element;
516
516
 
517
517
  declare interface ElevationProps {
518
518
  /**
@@ -537,7 +537,7 @@ declare interface ElevationProps {
537
537
  * API:
538
538
  * - {@link IconProps}
539
539
  */
540
- export declare function Icon(props: IconProps): JSX_2.Element;
540
+ export declare function Icon(props: IconProps): JSX.Element;
541
541
 
542
542
  declare type IconID = "external-link" | "caret-down" | "caret-right" | "chevron-right" | "chevron-left" | "chevron-up" | "chevron-down";
543
543
 
@@ -562,7 +562,7 @@ export declare interface IconProps {
562
562
  * API:
563
563
  * - {@link ImageBackgroundProps}
564
564
  */
565
- export declare function ImageBackground({ image, imageUrl, onLoad, }: ImageBackgroundProps): JSX_2.Element;
565
+ export declare function ImageBackground({ image, imageUrl, onLoad, }: ImageBackgroundProps): JSX.Element;
566
566
 
567
567
  declare interface ImageBackgroundProps {
568
568
  /**
@@ -632,7 +632,7 @@ declare interface MenuProps {
632
632
  * API:
633
633
  * - {@link MenuProps}
634
634
  */
635
- export declare function MenuTrigger({ renderTrigger, size, title, items, disabled, onClose, triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
635
+ export declare function MenuTrigger({ renderTrigger, size, title, items, disabled, onClose, triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX.Element;
636
636
 
637
637
  export declare interface MenuTriggerProps {
638
638
  disabled?: boolean;
@@ -640,36 +640,36 @@ export declare interface MenuTriggerProps {
640
640
  setIsOpen: (isOpen: boolean) => void;
641
641
  }
642
642
 
643
- export declare const Modal: (({ isOpen, onClose, title, subtitle, body, children, isOverlay, "data-testid": dataTestId, }: ModalProps) => JSX_2.Element) & {
643
+ export declare const Modal: (({ isOpen, onClose, title, subtitle, body, children, isOverlay, "data-testid": dataTestId, }: ModalProps) => JSX.Element) & {
644
644
  /**
645
645
  * Renders a h2 styled title
646
646
  * */
647
647
  Title: ({ children }: {
648
648
  children: React.ReactNode;
649
- }) => JSX_2.Element;
649
+ }) => JSX.Element;
650
650
  /**
651
651
  * Renders a h3 styled subtitle
652
652
  * */
653
653
  Subtitle: ({ children }: {
654
654
  children: React.ReactNode;
655
- }) => JSX_2.Element;
655
+ }) => JSX.Element;
656
656
  /**
657
657
  * Renders a div styled body
658
658
  * */
659
659
  Body: ({ children }: {
660
660
  children: React.ReactNode;
661
- }) => JSX_2.Element;
661
+ }) => JSX.Element;
662
662
  /**
663
663
  * Renders a Proton Button action
664
664
  * - @prop buttonProps {@link ButtonProps}
665
665
  * */
666
- Action: (buttonProps: ButtonProps) => JSX_2.Element;
666
+ Action: (buttonProps: ButtonProps) => JSX.Element;
667
667
  /**
668
668
  * Renders a group of Proton Buttons
669
669
  * */
670
670
  Actions: ({ children }: {
671
671
  children: React.ReactNode;
672
- }) => JSX_2.Element;
672
+ }) => JSX.Element;
673
673
  };
674
674
 
675
675
  declare interface ModalProps {
@@ -717,7 +717,7 @@ declare interface ModalProps {
717
717
  * API:
718
718
  * - {@link PopoverProps}
719
719
  */
720
- export declare function Popover({ trigger, children, open, defaultOpen, onOpenChange, side, align, arrow, constrainWidth, "data-testid": testId, }: PopoverProps): JSX_2.Element;
720
+ export declare function Popover({ trigger, children, open, defaultOpen, onOpenChange, side, align, arrow, constrainWidth, "data-testid": testId, }: PopoverProps): JSX.Element;
721
721
 
722
722
  export declare namespace Popover {
723
723
  var displayName: string;
@@ -873,7 +873,7 @@ declare interface ScreenOverlayProps {
873
873
  * - {@link SearchInputProps}
874
874
  * - extends {@link BaseInputProps}
875
875
  */
876
- export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, isDisabled, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
876
+ export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, isDisabled, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX.Element;
877
877
 
878
878
  declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suffix" | "value" | "onChange" | "description" | "descriptionPosition" | "label"> {
879
879
  /** The initial value of the input. */
@@ -895,7 +895,7 @@ declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suff
895
895
  * API:
896
896
  * - {@link SelectProps}
897
897
  */
898
- export declare function Select({ label, name, isDisabled, disabledKeys, selectedKey, onSelectionChange, defaultSelectedKey, onOpen, onClose, items, isRounded, "data-testid": testId, }: SelectProps): JSX_2.Element;
898
+ export declare function Select({ label, name, isDisabled, disabledKeys, selectedKey, onSelectionChange, defaultSelectedKey, onOpen, onClose, items, isRounded, "data-testid": testId, }: SelectProps): JSX.Element;
899
899
 
900
900
  export declare namespace Select {
901
901
  var displayName: string;
@@ -968,7 +968,7 @@ declare type SortingConfig<T> = {
968
968
  * API:
969
969
  * - {@link SwitchProps}
970
970
  */
971
- export declare function Switch(props: SwitchProps): JSX_2.Element;
971
+ export declare function Switch(props: SwitchProps): JSX.Element;
972
972
 
973
973
  declare interface SwitchProps {
974
974
  /**
@@ -1021,7 +1021,7 @@ declare interface SwitchProps {
1021
1021
  * </Table>
1022
1022
  * ```
1023
1023
  */
1024
- export declare const Table: (({ children, name }: TableProps) => JSX_2.Element) & {
1024
+ export declare const Table: (({ children, name }: TableProps) => JSX.Element) & {
1025
1025
  /** Table header: {@link TableHeaderProps} */
1026
1026
  Header: ({ ...props }: TableHeaderProps) => any;
1027
1027
  /** Table column: {@link TableColumnProps} */
@@ -1109,7 +1109,7 @@ declare interface TableRowProps {
1109
1109
  * API:
1110
1110
  * - {@link TextEllipsisProps}
1111
1111
  */
1112
- export declare const TextEllipsis: ({ children, maxWidth, singleLine, lines, title, "data-testid": testId, }: TextEllipsisProps) => JSX_2.Element;
1112
+ export declare const TextEllipsis: ({ children, maxWidth, singleLine, lines, title, "data-testid": testId, }: TextEllipsisProps) => JSX.Element;
1113
1113
 
1114
1114
  declare interface TextEllipsisProps {
1115
1115
  /**
@@ -1148,7 +1148,7 @@ declare interface TextEllipsisProps {
1148
1148
  * API:
1149
1149
  * - {@link TextEmphasisProps}
1150
1150
  */
1151
- export declare const TextEmphasis: ({ to, children, tooltipProps, "data-testid": testId, }: TextEmphasisProps) => JSX_2.Element;
1151
+ export declare const TextEmphasis: ({ to, children, tooltipProps, "data-testid": testId, }: TextEmphasisProps) => JSX.Element;
1152
1152
 
1153
1153
  declare interface TextEmphasisProps {
1154
1154
  /**
@@ -1197,7 +1197,7 @@ declare const THEMES: {
1197
1197
  * API:
1198
1198
  * - {@link TombstoneProps}
1199
1199
  */
1200
- export declare const Tombstone: ({ width, height, borderRadius, }: TombstoneProps) => JSX_2.Element;
1200
+ export declare const Tombstone: ({ width, height, borderRadius, }: TombstoneProps) => JSX.Element;
1201
1201
 
1202
1202
  declare interface TombstoneProps {
1203
1203
  /**
@@ -1230,7 +1230,7 @@ declare interface TombstoneProps {
1230
1230
  </Tooltip>
1231
1231
  * ```
1232
1232
  */
1233
- export declare function Tooltip({ arrow, children, content, delay, placement, isDisabled, defaultOpen, onOpenChange, disableTriggerClick, "data-testid": testId, }: TooltipProps): JSX_2.Element;
1233
+ export declare function Tooltip({ arrow, children, content, delay, placement, isDisabled, defaultOpen, onOpenChange, disableTriggerClick, "data-testid": testId, }: TooltipProps): JSX.Element;
1234
1234
 
1235
1235
  export declare namespace Tooltip {
1236
1236
  var displayName: string;
@@ -1294,7 +1294,7 @@ export declare const useTheme: () => ThemeContextType;
1294
1294
  * API:
1295
1295
  * - {@link WaveformProps}
1296
1296
  */
1297
- export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, disabled, disabledMessage, onClick, "data-testid": testId, }: WaveformProps): JSX_2.Element;
1297
+ export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, disabled, disabledMessage, onClick, "data-testid": testId, }: WaveformProps): JSX.Element;
1298
1298
 
1299
1299
  declare interface WaveformProps {
1300
1300
  /**
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@react-aria/utils"),v=require("../../interactions/dist/usePress.cjs.js"),C=require("../../interactions/dist/useFocusable.cjs.js");function D(e,o){let{elementType:s="button",isDisabled:r,onPress:d,onPressStart:l,onPressEnd:u,onPressUp:P,onPressChange:c,preventFocusOnPress:f,allowFocusWhenDisabled:b,onClick:m,href:g,target:h,rel:p,type:i="button"}=e,n;s==="button"?n={type:i,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:n={role:"button",href:s==="a"&&!r?g:void 0,target:s==="a"?h:void 0,type:s==="input"?i:void 0,disabled:s==="input"?r:void 0,"aria-disabled":!r||s==="input"?void 0:r,rel:s==="a"?p:void 0};let{pressProps:y,isPressed:F}=v.usePress({onPressStart:l,onPressEnd:u,onPressChange:c,onPress:d,onPressUp:P,onClick:m,isDisabled:r,preventFocusOnPress:f,ref:o}),{focusableProps:a}=C.useFocusable(e,o);b&&(a.tabIndex=r?-1:a.tabIndex);let T=t.mergeProps(a,y,t.filterDOMProps(e,{labelable:!0}));return{isPressed:F,buttonProps:t.mergeProps(n,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}exports.useButton=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@react-aria/utils"),v=require("../../interactions/dist/usePress.cjs.js"),C=require("../../interactions/dist/useFocusable.cjs.js");function D(e,o){let{elementType:s="button",isDisabled:r,onPress:d,onPressStart:l,onPressEnd:u,onPressUp:P,onPressChange:c,preventFocusOnPress:f,allowFocusWhenDisabled:b,onClick:m,href:g,target:h,rel:y,type:i="button"}=e,a;s==="button"?a={type:i,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:a={role:"button",href:s==="a"&&!r?g:void 0,target:s==="a"?h:void 0,type:s==="input"?i:void 0,disabled:s==="input"?r:void 0,"aria-disabled":!r||s==="input"?void 0:r,rel:s==="a"?y:void 0};let{pressProps:p,isPressed:F}=v.usePress({onPressStart:l,onPressEnd:u,onPressChange:c,onPress:d,onPressUp:P,onClick:m,isDisabled:r,preventFocusOnPress:f,ref:o}),{focusableProps:n}=C.useFocusable(e,o);b&&(n.tabIndex=r?-1:n.tabIndex);let T=t.mergeProps(n,p,t.filterDOMProps(e,{labelable:!0}));return{isPressed:F,buttonProps:t.mergeProps(a,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}exports.useButton=D;
2
2
  //# sourceMappingURL=useButton.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useButton.cjs.js","sources":["../../../../../node_modules/@react-aria/button/dist/useButton.mjs"],"sourcesContent":["import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\n\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n"],"names":["$701a24aa0da5b062$export$ea18c227d4417cc3","props","ref","elementType","isDisabled","onPress","onPressStart","onPressEnd","onPressUp","onPressChange","preventFocusOnPress","allowFocusWhenDisabled","onClick","href","target","rel","type","additionalProps","pressProps","isPressed","$bwqiF$usePress","focusableProps","$bwqiF$useFocusable","buttonProps","$bwqiF$mergeProps","$bwqiF$filterDOMProps"],"mappings":"mOAeA,SAASA,EAA0CC,EAAOC,EAAK,CAC3D,GAAI,CAAE,YAAaC,EAAc,SAAU,WAAYC,EAAY,QAASC,EAAS,aAAcC,EAAc,WAAYC,EAAY,UAAWC,EAAW,cAAeC,EAAe,oBAAqBC,EAAqB,uBACvOC,EAAwB,QAASC,EAAS,KAAMC,EAAM,OAAQC,EAAQ,IAAKC,EAAK,KAAMC,EAAO,QAAQ,EAAKf,EACtGgB,EACAd,IAAgB,SAAUc,EAAkB,CAC5C,KAAMD,EACN,SAAUZ,EACV,KAAMH,EAAM,KACZ,WAAYA,EAAM,WAClB,YAAaA,EAAM,YACnB,WAAYA,EAAM,WAClB,eAAgBA,EAAM,eACtB,WAAYA,EAAM,WAClB,KAAMA,EAAM,KACZ,MAAOA,EAAM,KACrB,EACSgB,EAAkB,CACnB,KAAM,SACN,KAAMd,IAAgB,KAAO,CAACC,EAAaS,EAAO,OAClD,OAAQV,IAAgB,IAAMW,EAAS,OACvC,KAAMX,IAAgB,QAAUa,EAAO,OACvC,SAAUb,IAAgB,QAAUC,EAAa,OACjD,gBAAiB,CAACA,GAAcD,IAAgB,QAAU,OAAYC,EACtE,IAAKD,IAAgB,IAAMY,EAAM,MACzC,EACI,GAAI,CAAE,WAAYG,EAAY,UAAWC,CAAS,EAASC,WAAiB,CACxE,aAAcd,EACd,WAAYC,EACZ,cAAeE,EACf,QAASJ,EACT,UAAWG,EACX,QAASI,EACT,WAAYR,EACZ,oBAAqBM,EACrB,IAAKR,CACb,CAAK,EACG,CAAE,eAAgBmB,CAAgB,EAAOC,EAAAA,aAAqBrB,EAAOC,CAAG,EACxES,IAAwBU,EAAe,SAAWjB,EAAa,GAAKiB,EAAe,UACvF,IAAIE,EAAkBC,aAAmBH,EAAgBH,EAAgBO,EAAqB,eAAExB,EAAO,CACnG,UAAW,EACd,CAAA,CAAC,EACF,MAAO,CACH,UAAWkB,EACX,YAAiBK,EAAAA,WAAmBP,EAAiBM,EAAa,CAC9D,gBAAiBtB,EAAM,eAAe,EACtC,gBAAiBA,EAAM,eAAe,EACtC,gBAAiBA,EAAM,eAAe,EACtC,eAAgBA,EAAM,cAAc,EACpC,eAAgBA,EAAM,cAAc,CAChD,CAAS,CACT,CACA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useButton.cjs.js","sources":["../../../../../node_modules/@react-aria/button/dist/useButton.mjs"],"sourcesContent":["import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\n\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n"],"names":["$701a24aa0da5b062$export$ea18c227d4417cc3","props","ref","elementType","isDisabled","onPress","onPressStart","onPressEnd","onPressUp","onPressChange","preventFocusOnPress","allowFocusWhenDisabled","onClick","href","target","rel","type","additionalProps","pressProps","isPressed","$bwqiF$usePress","focusableProps","$bwqiF$useFocusable","buttonProps","$bwqiF$mergeProps","$bwqiF$filterDOMProps"],"mappings":"mOAeA,SAASA,EAA0CC,EAAOC,EAAK,CAC3D,GAAI,CAAE,YAAaC,EAAc,SAAU,WAAYC,EAAY,QAASC,EAAS,aAAcC,EAAc,WAAYC,EAAY,UAAWC,EAAW,cAAeC,EAAe,oBAAqBC,EAAqB,uBACvOC,EAAwB,QAASC,EAAS,KAAMC,EAAM,OAAQC,EAAQ,IAAKC,EAAK,KAAMC,EAAO,QAAQ,EAAKf,EACtGgB,EACAd,IAAgB,SAAUc,EAAkB,CAC5C,KAAMD,EACN,SAAUZ,EACV,KAAMH,EAAM,KACZ,WAAYA,EAAM,WAClB,YAAaA,EAAM,YACnB,WAAYA,EAAM,WAClB,eAAgBA,EAAM,eACtB,WAAYA,EAAM,WAClB,KAAMA,EAAM,KACZ,MAAOA,EAAM,KACrB,EACSgB,EAAkB,CACnB,KAAM,SACN,KAAMd,IAAgB,KAAO,CAACC,EAAaS,EAAO,OAClD,OAAQV,IAAgB,IAAMW,EAAS,OACvC,KAAMX,IAAgB,QAAUa,EAAO,OACvC,SAAUb,IAAgB,QAAUC,EAAa,OACjD,gBAAiB,CAACA,GAAcD,IAAgB,QAAU,OAAYC,EACtE,IAAKD,IAAgB,IAAMY,EAAM,MACzC,EACI,GAAI,CAAE,WAAYG,EAAY,UAAWC,CAAS,EAASC,WAAiB,CACxE,aAAcd,EACd,WAAYC,EACZ,cAAeE,EACf,QAASJ,EACT,UAAWG,EACX,QAASI,EACT,WAAYR,EACZ,oBAAqBM,EACrB,IAAKR,CACb,CAAK,EACG,CAAE,eAAgBmB,CAAc,EAASC,EAAAA,aAAqBrB,EAAOC,CAAG,EACxES,IAAwBU,EAAe,SAAWjB,EAAa,GAAKiB,EAAe,UACvF,IAAIE,EAAkBC,aAAmBH,EAAgBH,EAAgBO,EAAAA,eAAuBxB,EAAO,CACnG,UAAW,EACnB,CAAK,CAAC,EACF,MAAO,CACH,UAAWkB,EACX,YAAiBK,EAAAA,WAAmBP,EAAiBM,EAAa,CAC9D,gBAAiBtB,EAAM,eAAe,EACtC,gBAAiBA,EAAM,eAAe,EACtC,gBAAiBA,EAAM,eAAe,EACtC,eAAgBA,EAAM,cAAc,EACpC,eAAgBA,EAAM,cAAc,EACpC,gBAAiBA,EAAM,eAAe,CAClD,CAAS,CACT,CACA","x_google_ignoreList":[0]}
@@ -2,10 +2,10 @@ import { mergeProps as i, filterDOMProps as C } from "@react-aria/utils";
2
2
  import { usePress as D } from "../../interactions/dist/usePress.es.js";
3
3
  import { useFocusable as F } from "../../interactions/dist/useFocusable.es.js";
4
4
  function O(e, t) {
5
- let { elementType: r = "button", isDisabled: a, onPress: d, onPressStart: l, onPressEnd: f, onPressUp: u, onPressChange: P, preventFocusOnPress: c, allowFocusWhenDisabled: b, onClick: m, href: p, target: h, rel: g, type: o = "button" } = e, s;
6
- r === "button" ? s = {
5
+ let { elementType: a = "button", isDisabled: r, onPress: d, onPressStart: l, onPressEnd: f, onPressUp: u, onPressChange: P, preventFocusOnPress: c, allowFocusWhenDisabled: b, onClick: m, href: p, target: h, rel: g, type: o = "button" } = e, s;
6
+ a === "button" ? s = {
7
7
  type: o,
8
- disabled: a,
8
+ disabled: r,
9
9
  form: e.form,
10
10
  formAction: e.formAction,
11
11
  formEncType: e.formEncType,
@@ -16,12 +16,12 @@ function O(e, t) {
16
16
  value: e.value
17
17
  } : s = {
18
18
  role: "button",
19
- href: r === "a" && !a ? p : void 0,
20
- target: r === "a" ? h : void 0,
21
- type: r === "input" ? o : void 0,
22
- disabled: r === "input" ? a : void 0,
23
- "aria-disabled": !a || r === "input" ? void 0 : a,
24
- rel: r === "a" ? g : void 0
19
+ href: a === "a" && !r ? p : void 0,
20
+ target: a === "a" ? h : void 0,
21
+ type: a === "input" ? o : void 0,
22
+ disabled: a === "input" ? r : void 0,
23
+ "aria-disabled": !r || a === "input" ? void 0 : r,
24
+ rel: a === "a" ? g : void 0
25
25
  };
26
26
  let { pressProps: $, isPressed: x } = D({
27
27
  onPressStart: l,
@@ -30,11 +30,11 @@ function O(e, t) {
30
30
  onPress: d,
31
31
  onPressUp: u,
32
32
  onClick: m,
33
- isDisabled: a,
33
+ isDisabled: r,
34
34
  preventFocusOnPress: c,
35
35
  ref: t
36
36
  }), { focusableProps: n } = F(e, t);
37
- b && (n.tabIndex = a ? -1 : n.tabIndex);
37
+ b && (n.tabIndex = r ? -1 : n.tabIndex);
38
38
  let y = i(n, $, C(e, {
39
39
  labelable: !0
40
40
  }));
@@ -45,7 +45,8 @@ function O(e, t) {
45
45
  "aria-expanded": e["aria-expanded"],
46
46
  "aria-controls": e["aria-controls"],
47
47
  "aria-pressed": e["aria-pressed"],
48
- "aria-current": e["aria-current"]
48
+ "aria-current": e["aria-current"],
49
+ "aria-disabled": e["aria-disabled"]
49
50
  })
50
51
  };
51
52
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useButton.es.js","sources":["../../../../../node_modules/@react-aria/button/dist/useButton.mjs"],"sourcesContent":["import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\n\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n"],"names":["$701a24aa0da5b062$export$ea18c227d4417cc3","props","ref","elementType","isDisabled","onPress","onPressStart","onPressEnd","onPressUp","onPressChange","preventFocusOnPress","allowFocusWhenDisabled","onClick","href","target","rel","type","additionalProps","pressProps","isPressed","$bwqiF$usePress","focusableProps","$bwqiF$useFocusable","buttonProps","$bwqiF$mergeProps","$bwqiF$filterDOMProps"],"mappings":";;;AAeA,SAASA,EAA0CC,GAAOC,GAAK;AAC3D,MAAI,EAAE,aAAaC,IAAc,UAAU,YAAYC,GAAY,SAASC,GAAS,cAAcC,GAAc,YAAYC,GAAY,WAAWC,GAAW,eAAeC,GAAe,qBAAqBC,GAAqB,wBACvOC,GAAwB,SAASC,GAAS,MAAMC,GAAM,QAAQC,GAAQ,KAAKC,GAAK,MAAMC,IAAO,SAAQ,IAAKf,GACtGgB;AACJ,EAAId,MAAgB,WAAUc,IAAkB;AAAA,IAC5C,MAAMD;AAAA,IACN,UAAUZ;AAAA,IACV,MAAMH,EAAM;AAAA,IACZ,YAAYA,EAAM;AAAA,IAClB,aAAaA,EAAM;AAAA,IACnB,YAAYA,EAAM;AAAA,IAClB,gBAAgBA,EAAM;AAAA,IACtB,YAAYA,EAAM;AAAA,IAClB,MAAMA,EAAM;AAAA,IACZ,OAAOA,EAAM;AAAA,EACrB,IACSgB,IAAkB;AAAA,IACnB,MAAM;AAAA,IACN,MAAMd,MAAgB,OAAO,CAACC,IAAaS,IAAO;AAAA,IAClD,QAAQV,MAAgB,MAAMW,IAAS;AAAA,IACvC,MAAMX,MAAgB,UAAUa,IAAO;AAAA,IACvC,UAAUb,MAAgB,UAAUC,IAAa;AAAA,IACjD,iBAAiB,CAACA,KAAcD,MAAgB,UAAU,SAAYC;AAAA,IACtE,KAAKD,MAAgB,MAAMY,IAAM;AAAA,EACzC;AACI,MAAI,EAAE,YAAYG,GAAY,WAAWC,EAAS,IAASC,EAAiB;AAAA,IACxE,cAAcd;AAAA,IACd,YAAYC;AAAA,IACZ,eAAeE;AAAA,IACf,SAASJ;AAAA,IACT,WAAWG;AAAA,IACX,SAASI;AAAA,IACT,YAAYR;AAAA,IACZ,qBAAqBM;AAAA,IACrB,KAAKR;AAAA,EACb,CAAK,GACG,EAAE,gBAAgBmB,EAAgB,IAAOC,EAAqBrB,GAAOC,CAAG;AAC5E,EAAIS,MAAwBU,EAAe,WAAWjB,IAAa,KAAKiB,EAAe;AACvF,MAAIE,IAAkBC,EAAmBH,GAAgBH,GAAgBO,EAAuBxB,GAAO;AAAA,IACnG,WAAW;AAAA,EACd,CAAA,CAAC;AACF,SAAO;AAAA,IACH,WAAWkB;AAAA,IACX,aAAiBK,EAAmBP,GAAiBM,GAAa;AAAA,MAC9D,iBAAiBtB,EAAM,eAAe;AAAA,MACtC,iBAAiBA,EAAM,eAAe;AAAA,MACtC,iBAAiBA,EAAM,eAAe;AAAA,MACtC,gBAAgBA,EAAM,cAAc;AAAA,MACpC,gBAAgBA,EAAM,cAAc;AAAA,IAChD,CAAS;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useButton.es.js","sources":["../../../../../node_modules/@react-aria/button/dist/useButton.mjs"],"sourcesContent":["import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from \"@react-aria/utils\";\nimport {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from \"@react-aria/interactions\";\n\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\nfunction $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $bwqiF$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $bwqiF$useFocusable)(props, ref);\n if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bwqiF$mergeProps)(focusableProps, pressProps, (0, $bwqiF$filterDOMProps)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bwqiF$mergeProps)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$701a24aa0da5b062$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.module.js.map\n"],"names":["$701a24aa0da5b062$export$ea18c227d4417cc3","props","ref","elementType","isDisabled","onPress","onPressStart","onPressEnd","onPressUp","onPressChange","preventFocusOnPress","allowFocusWhenDisabled","onClick","href","target","rel","type","additionalProps","pressProps","isPressed","$bwqiF$usePress","focusableProps","$bwqiF$useFocusable","buttonProps","$bwqiF$mergeProps","$bwqiF$filterDOMProps"],"mappings":";;;AAeA,SAASA,EAA0CC,GAAOC,GAAK;AAC3D,MAAI,EAAE,aAAaC,IAAc,UAAU,YAAYC,GAAY,SAASC,GAAS,cAAcC,GAAc,YAAYC,GAAY,WAAWC,GAAW,eAAeC,GAAe,qBAAqBC,GAAqB,wBACvOC,GAAwB,SAASC,GAAS,MAAMC,GAAM,QAAQC,GAAQ,KAAKC,GAAK,MAAMC,IAAO,SAAQ,IAAKf,GACtGgB;AACJ,EAAId,MAAgB,WAAUc,IAAkB;AAAA,IAC5C,MAAMD;AAAA,IACN,UAAUZ;AAAA,IACV,MAAMH,EAAM;AAAA,IACZ,YAAYA,EAAM;AAAA,IAClB,aAAaA,EAAM;AAAA,IACnB,YAAYA,EAAM;AAAA,IAClB,gBAAgBA,EAAM;AAAA,IACtB,YAAYA,EAAM;AAAA,IAClB,MAAMA,EAAM;AAAA,IACZ,OAAOA,EAAM;AAAA,EACrB,IACSgB,IAAkB;AAAA,IACnB,MAAM;AAAA,IACN,MAAMd,MAAgB,OAAO,CAACC,IAAaS,IAAO;AAAA,IAClD,QAAQV,MAAgB,MAAMW,IAAS;AAAA,IACvC,MAAMX,MAAgB,UAAUa,IAAO;AAAA,IACvC,UAAUb,MAAgB,UAAUC,IAAa;AAAA,IACjD,iBAAiB,CAACA,KAAcD,MAAgB,UAAU,SAAYC;AAAA,IACtE,KAAKD,MAAgB,MAAMY,IAAM;AAAA,EACzC;AACI,MAAI,EAAE,YAAYG,GAAY,WAAWC,EAAS,IAASC,EAAiB;AAAA,IACxE,cAAcd;AAAA,IACd,YAAYC;AAAA,IACZ,eAAeE;AAAA,IACf,SAASJ;AAAA,IACT,WAAWG;AAAA,IACX,SAASI;AAAA,IACT,YAAYR;AAAA,IACZ,qBAAqBM;AAAA,IACrB,KAAKR;AAAA,EACb,CAAK,GACG,EAAE,gBAAgBmB,EAAc,IAASC,EAAqBrB,GAAOC,CAAG;AAC5E,EAAIS,MAAwBU,EAAe,WAAWjB,IAAa,KAAKiB,EAAe;AACvF,MAAIE,IAAkBC,EAAmBH,GAAgBH,GAAgBO,EAAuBxB,GAAO;AAAA,IACnG,WAAW;AAAA,EACnB,CAAK,CAAC;AACF,SAAO;AAAA,IACH,WAAWkB;AAAA,IACX,aAAiBK,EAAmBP,GAAiBM,GAAa;AAAA,MAC9D,iBAAiBtB,EAAM,eAAe;AAAA,MACtC,iBAAiBA,EAAM,eAAe;AAAA,MACtC,iBAAiBA,EAAM,eAAe;AAAA,MACtC,gBAAgBA,EAAM,cAAc;AAAA,MACpC,gBAAgBA,EAAM,cAAc;AAAA,MACpC,iBAAiBA,EAAM,eAAe;AAAA,IAClD,CAAS;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useDialog.cjs.js","sources":["../../../../../node_modules/@react-aria/dialog/dist/useDialog.mjs"],"sourcesContent":["import {useSlotId as $i6df2$useSlotId, filterDOMProps as $i6df2$filterDOMProps} from \"@react-aria/utils\";\nimport {focusSafely as $i6df2$focusSafely} from \"@react-aria/interactions\";\nimport {useRef as $i6df2$useRef, useEffect as $i6df2$useEffect} from \"react\";\nimport {useOverlayFocusContain as $i6df2$useOverlayFocusContain} from \"@react-aria/overlays\";\n\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\n\nfunction $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {\n let { role: role = 'dialog' } = props;\n let titleId = (0, $i6df2$useSlotId)();\n titleId = props['aria-label'] ? undefined : titleId;\n let isRefocusing = (0, $i6df2$useRef)(false);\n // Focus the dialog itself on mount, unless a child element is already focused.\n (0, $i6df2$useEffect)(()=>{\n if (ref.current && !ref.current.contains(document.activeElement)) {\n (0, $i6df2$focusSafely)(ref.current);\n // Safari on iOS does not move the VoiceOver cursor to the dialog\n // or announce that it has opened until it has rendered. A workaround\n // is to wait for half a second, then blur and re-focus the dialog.\n let timeout = setTimeout(()=>{\n // Check that the dialog is still focused, or focused was lost to the body.\n if (document.activeElement === ref.current || document.activeElement === document.body) {\n isRefocusing.current = true;\n if (ref.current) {\n ref.current.blur();\n (0, $i6df2$focusSafely)(ref.current);\n }\n isRefocusing.current = false;\n }\n }, 500);\n return ()=>{\n clearTimeout(timeout);\n };\n }\n }, [\n ref\n ]);\n (0, $i6df2$useOverlayFocusContain)();\n // We do not use aria-modal due to a Safari bug which forces the first focusable element to be focused\n // on mount when inside an iframe, no matter which element we programmatically focus.\n // See https://bugs.webkit.org/show_bug.cgi?id=211934.\n // useModal sets aria-hidden on all elements outside the dialog, so the dialog will behave as a modal\n // even without aria-modal on the dialog itself.\n return {\n dialogProps: {\n ...(0, $i6df2$filterDOMProps)(props, {\n labelable: true\n }),\n role: role,\n tabIndex: -1,\n 'aria-labelledby': props['aria-labelledby'] || titleId,\n // Prevent blur events from reaching useOverlay, which may cause\n // popovers to close. Since focus is contained within the dialog,\n // we don't want this to occur due to the above useEffect.\n onBlur: (e)=>{\n if (isRefocusing.current) e.stopPropagation();\n }\n },\n titleProps: {\n id: titleId\n }\n };\n}\n\n\nexport {$40df3f8667284809$export$d55e7ee900f34e93 as useDialog};\n//# sourceMappingURL=useDialog.module.js.map\n"],"names":["$40df3f8667284809$export$d55e7ee900f34e93","props","ref","role","titleId","$i6df2$useSlotId","isRefocusing","$i6df2$useRef","$i6df2$useEffect","$i6df2$focusSafely","timeout","$i6df2$useOverlayFocusContain","$i6df2$filterDOMProps","e"],"mappings":"gPAmBA,SAASA,EAA0CC,EAAOC,EAAK,CAC3D,GAAI,CAAE,KAAMC,EAAO,QAAQ,EAAKF,EAC5BG,EAAcC,EAAAA,YAClBD,EAAUH,EAAM,YAAY,EAAI,OAAYG,EAC5C,IAAIE,EAAmBC,SAAe,EAAK,EAE3C,OAAIC,EAAgB,UAAE,IAAI,CACtB,GAAIN,EAAI,SAAW,CAACA,EAAI,QAAQ,SAAS,SAAS,aAAa,EAAG,CAC1DO,EAAkB,YAAEP,EAAI,OAAO,EAInC,IAAIQ,EAAU,WAAW,IAAI,EAErB,SAAS,gBAAkBR,EAAI,SAAW,SAAS,gBAAkB,SAAS,QAC9EI,EAAa,QAAU,GACnBJ,EAAI,UACJA,EAAI,QAAQ,OACRO,EAAkB,YAAEP,EAAI,OAAO,GAEvCI,EAAa,QAAU,GAE9B,EAAE,GAAG,EACN,MAAO,IAAI,CACP,aAAaI,CAAO,CACpC,CACS,CACT,EAAO,CACCR,CACR,CAAK,EACGS,EAA6B,uBAAA,EAM1B,CACH,YAAa,CACT,GAAOC,EAAqB,eAAEX,EAAO,CACjC,UAAW,EAC3B,CAAa,EACD,KAAME,EACN,SAAU,GACV,kBAAmBF,EAAM,iBAAiB,GAAKG,EAI/C,OAASS,GAAI,CACLP,EAAa,SAASO,EAAE,gBAAe,CAC9C,CACJ,EACD,WAAY,CACR,GAAIT,CACP,CACT,CACA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useDialog.cjs.js","sources":["../../../../../node_modules/@react-aria/dialog/dist/useDialog.mjs"],"sourcesContent":["import {useSlotId as $i6df2$useSlotId, filterDOMProps as $i6df2$filterDOMProps} from \"@react-aria/utils\";\nimport {focusSafely as $i6df2$focusSafely} from \"@react-aria/interactions\";\nimport {useRef as $i6df2$useRef, useEffect as $i6df2$useEffect} from \"react\";\nimport {useOverlayFocusContain as $i6df2$useOverlayFocusContain} from \"@react-aria/overlays\";\n\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\n\nfunction $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {\n let { role: role = 'dialog' } = props;\n let titleId = (0, $i6df2$useSlotId)();\n titleId = props['aria-label'] ? undefined : titleId;\n let isRefocusing = (0, $i6df2$useRef)(false);\n // Focus the dialog itself on mount, unless a child element is already focused.\n (0, $i6df2$useEffect)(()=>{\n if (ref.current && !ref.current.contains(document.activeElement)) {\n (0, $i6df2$focusSafely)(ref.current);\n // Safari on iOS does not move the VoiceOver cursor to the dialog\n // or announce that it has opened until it has rendered. A workaround\n // is to wait for half a second, then blur and re-focus the dialog.\n let timeout = setTimeout(()=>{\n // Check that the dialog is still focused, or focused was lost to the body.\n if (document.activeElement === ref.current || document.activeElement === document.body) {\n isRefocusing.current = true;\n if (ref.current) {\n ref.current.blur();\n (0, $i6df2$focusSafely)(ref.current);\n }\n isRefocusing.current = false;\n }\n }, 500);\n return ()=>{\n clearTimeout(timeout);\n };\n }\n }, [\n ref\n ]);\n (0, $i6df2$useOverlayFocusContain)();\n // We do not use aria-modal due to a Safari bug which forces the first focusable element to be focused\n // on mount when inside an iframe, no matter which element we programmatically focus.\n // See https://bugs.webkit.org/show_bug.cgi?id=211934.\n // useModal sets aria-hidden on all elements outside the dialog, so the dialog will behave as a modal\n // even without aria-modal on the dialog itself.\n return {\n dialogProps: {\n ...(0, $i6df2$filterDOMProps)(props, {\n labelable: true\n }),\n role: role,\n tabIndex: -1,\n 'aria-labelledby': props['aria-labelledby'] || titleId,\n // Prevent blur events from reaching useOverlay, which may cause\n // popovers to close. Since focus is contained within the dialog,\n // we don't want this to occur due to the above useEffect.\n onBlur: (e)=>{\n if (isRefocusing.current) e.stopPropagation();\n }\n },\n titleProps: {\n id: titleId\n }\n };\n}\n\n\nexport {$40df3f8667284809$export$d55e7ee900f34e93 as useDialog};\n//# sourceMappingURL=useDialog.module.js.map\n"],"names":["$40df3f8667284809$export$d55e7ee900f34e93","props","ref","role","titleId","$i6df2$useSlotId","isRefocusing","$i6df2$useRef","$i6df2$useEffect","$i6df2$focusSafely","timeout","$i6df2$useOverlayFocusContain","$i6df2$filterDOMProps","e"],"mappings":"gPAmBA,SAASA,EAA0CC,EAAOC,EAAK,CAC3D,GAAI,CAAE,KAAMC,EAAO,QAAQ,EAAKF,EAC5BG,EAAcC,YAAgB,EAClCD,EAAUH,EAAM,YAAY,EAAI,OAAYG,EAC5C,IAAIE,EAAmBC,EAAAA,OAAe,EAAK,EAE3C,OAAIC,EAAAA,UAAkB,IAAI,CACtB,GAAIN,EAAI,SAAW,CAACA,EAAI,QAAQ,SAAS,SAAS,aAAa,EAAG,CAC1DO,EAAAA,YAAoBP,EAAI,OAAO,EAInC,IAAIQ,EAAU,WAAW,IAAI,EAErB,SAAS,gBAAkBR,EAAI,SAAW,SAAS,gBAAkB,SAAS,QAC9EI,EAAa,QAAU,GACnBJ,EAAI,UACJA,EAAI,QAAQ,KAAI,EACZO,EAAAA,YAAoBP,EAAI,OAAO,GAEvCI,EAAa,QAAU,GAE/B,EAAG,GAAG,EACN,MAAO,IAAI,CACP,aAAaI,CAAO,CACxB,CACJ,CACJ,EAAG,CACCR,CACR,CAAK,EACGS,yBAA6B,EAM1B,CACH,YAAa,CACT,GAAOC,EAAAA,eAAuBX,EAAO,CACjC,UAAW,EAC3B,CAAa,EACD,KAAME,EACN,SAAU,GACV,kBAAmBF,EAAM,iBAAiB,GAAKG,EAI/C,OAASS,GAAI,CACLP,EAAa,SAASO,EAAE,gBAAe,CAC/C,CACZ,EACQ,WAAY,CACR,GAAIT,CAChB,CACA,CACA","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useDialog.es.js","sources":["../../../../../node_modules/@react-aria/dialog/dist/useDialog.mjs"],"sourcesContent":["import {useSlotId as $i6df2$useSlotId, filterDOMProps as $i6df2$filterDOMProps} from \"@react-aria/utils\";\nimport {focusSafely as $i6df2$focusSafely} from \"@react-aria/interactions\";\nimport {useRef as $i6df2$useRef, useEffect as $i6df2$useEffect} from \"react\";\nimport {useOverlayFocusContain as $i6df2$useOverlayFocusContain} from \"@react-aria/overlays\";\n\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\n\nfunction $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {\n let { role: role = 'dialog' } = props;\n let titleId = (0, $i6df2$useSlotId)();\n titleId = props['aria-label'] ? undefined : titleId;\n let isRefocusing = (0, $i6df2$useRef)(false);\n // Focus the dialog itself on mount, unless a child element is already focused.\n (0, $i6df2$useEffect)(()=>{\n if (ref.current && !ref.current.contains(document.activeElement)) {\n (0, $i6df2$focusSafely)(ref.current);\n // Safari on iOS does not move the VoiceOver cursor to the dialog\n // or announce that it has opened until it has rendered. A workaround\n // is to wait for half a second, then blur and re-focus the dialog.\n let timeout = setTimeout(()=>{\n // Check that the dialog is still focused, or focused was lost to the body.\n if (document.activeElement === ref.current || document.activeElement === document.body) {\n isRefocusing.current = true;\n if (ref.current) {\n ref.current.blur();\n (0, $i6df2$focusSafely)(ref.current);\n }\n isRefocusing.current = false;\n }\n }, 500);\n return ()=>{\n clearTimeout(timeout);\n };\n }\n }, [\n ref\n ]);\n (0, $i6df2$useOverlayFocusContain)();\n // We do not use aria-modal due to a Safari bug which forces the first focusable element to be focused\n // on mount when inside an iframe, no matter which element we programmatically focus.\n // See https://bugs.webkit.org/show_bug.cgi?id=211934.\n // useModal sets aria-hidden on all elements outside the dialog, so the dialog will behave as a modal\n // even without aria-modal on the dialog itself.\n return {\n dialogProps: {\n ...(0, $i6df2$filterDOMProps)(props, {\n labelable: true\n }),\n role: role,\n tabIndex: -1,\n 'aria-labelledby': props['aria-labelledby'] || titleId,\n // Prevent blur events from reaching useOverlay, which may cause\n // popovers to close. Since focus is contained within the dialog,\n // we don't want this to occur due to the above useEffect.\n onBlur: (e)=>{\n if (isRefocusing.current) e.stopPropagation();\n }\n },\n titleProps: {\n id: titleId\n }\n };\n}\n\n\nexport {$40df3f8667284809$export$d55e7ee900f34e93 as useDialog};\n//# sourceMappingURL=useDialog.module.js.map\n"],"names":["$40df3f8667284809$export$d55e7ee900f34e93","props","ref","role","titleId","$i6df2$useSlotId","isRefocusing","$i6df2$useRef","$i6df2$useEffect","$i6df2$focusSafely","timeout","$i6df2$useOverlayFocusContain","$i6df2$filterDOMProps","e"],"mappings":";;;;AAmBA,SAASA,EAA0CC,GAAOC,GAAK;AAC3D,MAAI,EAAE,MAAMC,IAAO,SAAQ,IAAKF,GAC5BG,IAAcC;AAClB,EAAAD,IAAUH,EAAM,YAAY,IAAI,SAAYG;AAC5C,MAAIE,IAAmBC,EAAe,EAAK;AAE3C,SAAIC,EAAkB,MAAI;AACtB,QAAIN,EAAI,WAAW,CAACA,EAAI,QAAQ,SAAS,SAAS,aAAa,GAAG;AAC9D,MAAIO,EAAoBP,EAAI,OAAO;AAInC,UAAIQ,IAAU,WAAW,MAAI;AAEzB,SAAI,SAAS,kBAAkBR,EAAI,WAAW,SAAS,kBAAkB,SAAS,UAC9EI,EAAa,UAAU,IACnBJ,EAAI,YACJA,EAAI,QAAQ,QACRO,EAAoBP,EAAI,OAAO,IAEvCI,EAAa,UAAU;AAAA,MAE9B,GAAE,GAAG;AACN,aAAO,MAAI;AACP,qBAAaI,CAAO;AAAA,MACpC;AAAA,IACS;AAAA,EACT,GAAO;AAAA,IACCR;AAAA,EACR,CAAK,GACGS,EAA6B,GAM1B;AAAA,IACH,aAAa;AAAA,MACT,GAAOC,EAAuBX,GAAO;AAAA,QACjC,WAAW;AAAA,MAC3B,CAAa;AAAA,MACD,MAAME;AAAA,MACN,UAAU;AAAA,MACV,mBAAmBF,EAAM,iBAAiB,KAAKG;AAAA;AAAA;AAAA;AAAA,MAI/C,QAAQ,CAACS,MAAI;AACT,QAAIP,EAAa,WAASO,EAAE,gBAAe;AAAA,MAC9C;AAAA,IACJ;AAAA,IACD,YAAY;AAAA,MACR,IAAIT;AAAA,IACP;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useDialog.es.js","sources":["../../../../../node_modules/@react-aria/dialog/dist/useDialog.mjs"],"sourcesContent":["import {useSlotId as $i6df2$useSlotId, filterDOMProps as $i6df2$filterDOMProps} from \"@react-aria/utils\";\nimport {focusSafely as $i6df2$focusSafely} from \"@react-aria/interactions\";\nimport {useRef as $i6df2$useRef, useEffect as $i6df2$useEffect} from \"react\";\nimport {useOverlayFocusContain as $i6df2$useOverlayFocusContain} from \"@react-aria/overlays\";\n\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\n\nfunction $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {\n let { role: role = 'dialog' } = props;\n let titleId = (0, $i6df2$useSlotId)();\n titleId = props['aria-label'] ? undefined : titleId;\n let isRefocusing = (0, $i6df2$useRef)(false);\n // Focus the dialog itself on mount, unless a child element is already focused.\n (0, $i6df2$useEffect)(()=>{\n if (ref.current && !ref.current.contains(document.activeElement)) {\n (0, $i6df2$focusSafely)(ref.current);\n // Safari on iOS does not move the VoiceOver cursor to the dialog\n // or announce that it has opened until it has rendered. A workaround\n // is to wait for half a second, then blur and re-focus the dialog.\n let timeout = setTimeout(()=>{\n // Check that the dialog is still focused, or focused was lost to the body.\n if (document.activeElement === ref.current || document.activeElement === document.body) {\n isRefocusing.current = true;\n if (ref.current) {\n ref.current.blur();\n (0, $i6df2$focusSafely)(ref.current);\n }\n isRefocusing.current = false;\n }\n }, 500);\n return ()=>{\n clearTimeout(timeout);\n };\n }\n }, [\n ref\n ]);\n (0, $i6df2$useOverlayFocusContain)();\n // We do not use aria-modal due to a Safari bug which forces the first focusable element to be focused\n // on mount when inside an iframe, no matter which element we programmatically focus.\n // See https://bugs.webkit.org/show_bug.cgi?id=211934.\n // useModal sets aria-hidden on all elements outside the dialog, so the dialog will behave as a modal\n // even without aria-modal on the dialog itself.\n return {\n dialogProps: {\n ...(0, $i6df2$filterDOMProps)(props, {\n labelable: true\n }),\n role: role,\n tabIndex: -1,\n 'aria-labelledby': props['aria-labelledby'] || titleId,\n // Prevent blur events from reaching useOverlay, which may cause\n // popovers to close. Since focus is contained within the dialog,\n // we don't want this to occur due to the above useEffect.\n onBlur: (e)=>{\n if (isRefocusing.current) e.stopPropagation();\n }\n },\n titleProps: {\n id: titleId\n }\n };\n}\n\n\nexport {$40df3f8667284809$export$d55e7ee900f34e93 as useDialog};\n//# sourceMappingURL=useDialog.module.js.map\n"],"names":["$40df3f8667284809$export$d55e7ee900f34e93","props","ref","role","titleId","$i6df2$useSlotId","isRefocusing","$i6df2$useRef","$i6df2$useEffect","$i6df2$focusSafely","timeout","$i6df2$useOverlayFocusContain","$i6df2$filterDOMProps","e"],"mappings":";;;;AAmBA,SAASA,EAA0CC,GAAOC,GAAK;AAC3D,MAAI,EAAE,MAAMC,IAAO,SAAQ,IAAKF,GAC5BG,IAAcC,EAAgB;AAClC,EAAAD,IAAUH,EAAM,YAAY,IAAI,SAAYG;AAC5C,MAAIE,IAAmBC,EAAe,EAAK;AAE3C,SAAIC,EAAkB,MAAI;AACtB,QAAIN,EAAI,WAAW,CAACA,EAAI,QAAQ,SAAS,SAAS,aAAa,GAAG;AAC9D,MAAIO,EAAoBP,EAAI,OAAO;AAInC,UAAIQ,IAAU,WAAW,MAAI;AAEzB,SAAI,SAAS,kBAAkBR,EAAI,WAAW,SAAS,kBAAkB,SAAS,UAC9EI,EAAa,UAAU,IACnBJ,EAAI,YACJA,EAAI,QAAQ,KAAI,GACZO,EAAoBP,EAAI,OAAO,IAEvCI,EAAa,UAAU;AAAA,MAE/B,GAAG,GAAG;AACN,aAAO,MAAI;AACP,qBAAaI,CAAO;AAAA,MACxB;AAAA,IACJ;AAAA,EACJ,GAAG;AAAA,IACCR;AAAA,EACR,CAAK,GACGS,EAA6B,GAM1B;AAAA,IACH,aAAa;AAAA,MACT,GAAOC,EAAuBX,GAAO;AAAA,QACjC,WAAW;AAAA,MAC3B,CAAa;AAAA,MACD,MAAME;AAAA,MACN,UAAU;AAAA,MACV,mBAAmBF,EAAM,iBAAiB,KAAKG;AAAA;AAAA;AAAA;AAAA,MAI/C,QAAQ,CAACS,MAAI;AACT,QAAIP,EAAa,WAASO,EAAE,gBAAe;AAAA,MAC/C;AAAA,IACZ;AAAA,IACQ,YAAY;AAAA,MACR,IAAIT;AAAA,IAChB;AAAA,EACA;AACA;","x_google_ignoreList":[0]}