@protonradio/proton-ui 0.11.4 → 0.11.5-beta.2
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/_virtual/index.cjs.js +2 -0
- package/dist/_virtual/index.cjs.js.map +1 -0
- package/dist/_virtual/index.es.js +5 -0
- package/dist/_virtual/index.es.js.map +1 -0
- package/dist/_virtual/jsx-runtime.cjs.js +2 -0
- package/dist/_virtual/jsx-runtime.cjs.js.map +1 -0
- package/dist/_virtual/jsx-runtime.es.js +5 -0
- package/dist/_virtual/jsx-runtime.es.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +2 -0
- package/dist/_virtual/react-jsx-runtime.development.cjs.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.es.js +5 -0
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js +2 -0
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.es.js +5 -0
- package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js +2 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.es.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.es.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js +2 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.es.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.es.js.map +1 -0
- package/dist/assets/svg/icons.svg.cjs.js +2 -0
- package/dist/assets/svg/icons.svg.cjs.js.map +1 -0
- package/dist/assets/svg/icons.svg.es.js +5 -0
- package/dist/assets/svg/icons.svg.es.js.map +1 -0
- package/dist/components/ActionMenu/ActionMenu.cjs.js +2 -0
- package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -0
- package/dist/components/ActionMenu/ActionMenu.es.js +210 -0
- package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -0
- package/dist/components/Badge/Badge.cjs.js +2 -0
- package/dist/components/Badge/Badge.cjs.js.map +1 -0
- package/dist/components/Badge/Badge.es.js +25 -0
- package/dist/components/Badge/Badge.es.js.map +1 -0
- package/dist/components/Banner/Banner.cjs.js +2 -0
- package/dist/components/Banner/Banner.cjs.js.map +1 -0
- package/dist/components/Banner/Banner.es.js +131 -0
- package/dist/components/Banner/Banner.es.js.map +1 -0
- package/dist/components/Button/Button.cjs.js +2 -0
- package/dist/components/Button/Button.cjs.js.map +1 -0
- package/dist/components/Button/Button.es.js +99 -0
- package/dist/components/Button/Button.es.js.map +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +2 -0
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js +51 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js.map +1 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +2 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +81 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -0
- package/dist/components/DataTable/DataTable.cjs.js +2 -0
- package/dist/components/DataTable/DataTable.cjs.js.map +1 -0
- package/dist/components/DataTable/DataTable.es.js +137 -0
- package/dist/components/DataTable/DataTable.es.js.map +1 -0
- package/dist/components/Dialog/Dialog.cjs.js +2 -0
- package/dist/components/Dialog/Dialog.cjs.js.map +1 -0
- package/dist/components/Dialog/Dialog.es.js +15 -0
- package/dist/components/Dialog/Dialog.es.js.map +1 -0
- package/dist/components/Elevation/Elevation.cjs.js +2 -0
- package/dist/components/Elevation/Elevation.cjs.js.map +1 -0
- package/dist/components/Elevation/Elevation.es.js +33 -0
- package/dist/components/Elevation/Elevation.es.js.map +1 -0
- package/dist/components/Icon/Icon.cjs.js +2 -0
- package/dist/components/Icon/Icon.cjs.js.map +1 -0
- package/dist/components/Icon/Icon.es.js +42 -0
- package/dist/components/Icon/Icon.es.js.map +1 -0
- package/dist/components/ImageBackground/ImageBackground.cjs.js +2 -0
- package/dist/components/ImageBackground/ImageBackground.cjs.js.map +1 -0
- package/dist/components/ImageBackground/ImageBackground.es.js +55 -0
- package/dist/components/ImageBackground/ImageBackground.es.js.map +1 -0
- package/dist/components/Input/BaseInput/Input.cjs.js +2 -0
- package/dist/components/Input/BaseInput/Input.cjs.js.map +1 -0
- package/dist/components/Input/BaseInput/Input.es.js +182 -0
- package/dist/components/Input/BaseInput/Input.es.js.map +1 -0
- package/dist/components/Input/CopyInput/CopyInput.cjs.js +2 -0
- package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +1 -0
- package/dist/components/Input/CopyInput/CopyInput.es.js +83 -0
- package/dist/components/Input/CopyInput/CopyInput.es.js.map +1 -0
- package/dist/components/Input/SearchInput/SearchInput.cjs.js +2 -0
- package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +1 -0
- package/dist/components/Input/SearchInput/SearchInput.es.js +118 -0
- package/dist/components/Input/SearchInput/SearchInput.es.js.map +1 -0
- package/dist/components/ListBox/ListBox.cjs.js +2 -0
- package/dist/components/ListBox/ListBox.cjs.js.map +1 -0
- package/dist/components/ListBox/ListBox.es.js +25 -0
- package/dist/components/ListBox/ListBox.es.js.map +1 -0
- package/dist/components/Menu/MenuTrigger.cjs.js +2 -0
- package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -0
- package/dist/components/Menu/MenuTrigger.es.js +97 -0
- package/dist/components/Menu/MenuTrigger.es.js.map +1 -0
- package/dist/components/Menu/PopoverMenu.cjs.js +2 -0
- package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -0
- package/dist/components/Menu/PopoverMenu.es.js +116 -0
- package/dist/components/Menu/PopoverMenu.es.js.map +1 -0
- package/dist/components/Modal/Modal.cjs.js +2 -0
- package/dist/components/Modal/Modal.cjs.js.map +1 -0
- package/dist/components/Modal/Modal.es.js +122 -0
- package/dist/components/Modal/Modal.es.js.map +1 -0
- package/dist/components/Popover/Popover.cjs.js +2 -0
- package/dist/components/Popover/Popover.cjs.js.map +1 -0
- package/dist/components/Popover/Popover.es.js +74 -0
- package/dist/components/Popover/Popover.es.js.map +1 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js +2 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +1 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js +44 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +1 -0
- package/dist/components/Select/Select.cjs.js +2 -0
- package/dist/components/Select/Select.cjs.js.map +1 -0
- package/dist/components/Select/Select.es.js +173 -0
- package/dist/components/Select/Select.es.js.map +1 -0
- package/dist/components/Switch/Switch.cjs.js +2 -0
- package/dist/components/Switch/Switch.cjs.js.map +1 -0
- package/dist/components/Switch/Switch.es.js +40 -0
- package/dist/components/Switch/Switch.es.js.map +1 -0
- package/dist/components/Table/Collection/CompoundComponents.cjs.js +2 -0
- package/dist/components/Table/Collection/CompoundComponents.cjs.js.map +1 -0
- package/dist/components/Table/Collection/CompoundComponents.es.js +9 -0
- package/dist/components/Table/Collection/CompoundComponents.es.js.map +1 -0
- package/dist/components/Table/Collection/collectionParser.cjs.js +2 -0
- package/dist/components/Table/Collection/collectionParser.cjs.js.map +1 -0
- package/dist/components/Table/Collection/collectionParser.es.js +54 -0
- package/dist/components/Table/Collection/collectionParser.es.js.map +1 -0
- package/dist/components/Table/Collection/useTableCollection.cjs.js +2 -0
- package/dist/components/Table/Collection/useTableCollection.cjs.js.map +1 -0
- package/dist/components/Table/Collection/useTableCollection.es.js +59 -0
- package/dist/components/Table/Collection/useTableCollection.es.js.map +1 -0
- package/dist/components/Table/Table.cjs.js +2 -0
- package/dist/components/Table/Table.cjs.js.map +1 -0
- package/dist/components/Table/Table.es.js +89 -0
- package/dist/components/Table/Table.es.js.map +1 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js +2 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +1 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js +30 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +1 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js +2 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +1 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js +54 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +1 -0
- package/dist/components/ThemeProvider.cjs.js +2 -0
- package/dist/components/ThemeProvider.cjs.js.map +1 -0
- package/dist/components/ThemeProvider.es.js +42 -0
- package/dist/components/ThemeProvider.es.js.map +1 -0
- package/dist/components/Tombstone/Tombstone.cjs.js +2 -0
- package/dist/components/Tombstone/Tombstone.cjs.js.map +1 -0
- package/dist/components/Tombstone/Tombstone.es.js +35 -0
- package/dist/components/Tombstone/Tombstone.es.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.cjs.js +2 -0
- package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.es.js +78 -0
- package/dist/components/Tooltip/Tooltip.es.js.map +1 -0
- package/dist/components/Waveform/Waveform.cjs.js +2 -0
- package/dist/components/Waveform/Waveform.cjs.js.map +1 -0
- package/dist/components/Waveform/Waveform.es.js +163 -0
- package/dist/components/Waveform/Waveform.es.js.map +1 -0
- package/dist/components/Waveform/WaveformBar.cjs.js +2 -0
- package/dist/components/Waveform/WaveformBar.cjs.js.map +1 -0
- package/dist/components/Waveform/WaveformBar.es.js +74 -0
- package/dist/components/Waveform/WaveformBar.es.js.map +1 -0
- package/dist/constants/breakpoint.cjs.js +2 -0
- package/dist/constants/breakpoint.cjs.js.map +1 -0
- package/dist/{breakpoint-9y1_8U_b.mjs → constants/breakpoint.es.js} +2 -2
- package/dist/constants/breakpoint.es.js.map +1 -0
- package/dist/constants/placement.cjs.js +2 -0
- package/dist/constants/placement.cjs.js.map +1 -0
- package/dist/constants/placement.es.js +28 -0
- package/dist/constants/placement.es.js.map +1 -0
- package/dist/constants.cjs.js +1 -1
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js +3 -26
- package/dist/constants.es.js.map +1 -1
- package/dist/design/colors.cjs.js +2 -0
- package/dist/design/colors.cjs.js.map +1 -0
- package/dist/{colors-CWaj9dFz.mjs → design/colors.es.js} +7 -7
- package/dist/design/colors.es.js.map +1 -0
- package/dist/design/darkTheme/colors.cjs.js +2 -0
- package/dist/{colors-Ceyo4oCJ.mjs.map → design/darkTheme/colors.cjs.js.map} +1 -1
- package/dist/{colors-Ceyo4oCJ.mjs → design/darkTheme/colors.es.js} +13 -13
- package/dist/{colors-CebzFjpe.js.map → design/darkTheme/colors.es.js.map} +1 -1
- package/dist/design/darkTheme/stylesheet.cjs.js +2 -0
- package/dist/design/darkTheme/stylesheet.cjs.js.map +1 -0
- package/dist/design/darkTheme/stylesheet.es.js +52 -0
- package/dist/design/darkTheme/stylesheet.es.js.map +1 -0
- package/dist/design/generateStylesheet.cjs.js +2 -0
- package/dist/design/generateStylesheet.cjs.js.map +1 -0
- package/dist/design/generateStylesheet.es.js +26 -0
- package/dist/design/generateStylesheet.es.js.map +1 -0
- package/dist/design/lightTheme/colors.cjs.js +2 -0
- package/dist/{colors-DMkDnu4U.mjs.map → design/lightTheme/colors.cjs.js.map} +1 -1
- package/dist/{colors-DMkDnu4U.mjs → design/lightTheme/colors.es.js} +11 -11
- package/dist/{colors-DL1dYffC.js.map → design/lightTheme/colors.es.js.map} +1 -1
- package/dist/design/lightTheme/stylesheet.cjs.js +2 -0
- package/dist/design/lightTheme/stylesheet.cjs.js.map +1 -0
- package/dist/design/lightTheme/stylesheet.es.js +52 -0
- package/dist/design/lightTheme/stylesheet.es.js.map +1 -0
- package/dist/design/theme.cjs.js +2 -0
- package/dist/design/theme.cjs.js.map +1 -0
- package/dist/design/theme.es.js +12 -0
- package/dist/design/theme.es.js.map +1 -0
- package/dist/hooks/useBreakpoint.cjs.js +2 -0
- package/dist/hooks/useBreakpoint.cjs.js.map +1 -0
- package/dist/hooks/useBreakpoint.es.js +17 -0
- package/dist/hooks/useBreakpoint.es.js.map +1 -0
- package/dist/hooks/useIsClosing.cjs.js +2 -0
- package/dist/hooks/useIsClosing.cjs.js.map +1 -0
- package/dist/hooks/useIsClosing.es.js +30 -0
- package/dist/hooks/useIsClosing.es.js.map +1 -0
- package/dist/hooks/useLockBodyScroll.cjs.js +2 -0
- package/dist/hooks/useLockBodyScroll.cjs.js.map +1 -0
- package/dist/hooks/useLockBodyScroll.es.js +14 -0
- package/dist/hooks/useLockBodyScroll.es.js.map +1 -0
- package/dist/hooks/usePalette.cjs.js +2 -0
- package/dist/hooks/usePalette.cjs.js.map +1 -0
- package/dist/hooks/usePalette.es.js +37 -0
- package/dist/hooks/usePalette.es.js.map +1 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.cjs.js.map +1 -1
- package/dist/hooks.es.js +8 -37
- package/dist/hooks.es.js.map +1 -1
- package/dist/index.cjs.js +1 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -27
- package/dist/index.es.js +61 -8798
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js +2 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js.map +1 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js +48 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js.map +1 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js +2 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js.map +1 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js +33 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js.map +1 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js +2 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js +47 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js +134 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js +145 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js +220 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js +36 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js +37 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js.map +1 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js +2 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js +44 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js +2 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js +423 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.cjs.js +2 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.es.js +23 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.es.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js +2 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js +32 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js.map +1 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js +2 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js +76 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js +11 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js +12 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js +30 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js +24 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js +45 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js +15 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js +10 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js +29 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js +15 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js +35 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js +30 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +67 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js +56 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js +42 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js +85 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js +51 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js +13 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js +50 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js +375 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js +92 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js +2 -0
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useField.es.js +36 -0
- package/dist/node_modules/@react-aria/label/dist/useField.es.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js +2 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js +23 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js +2 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js +52 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js +2 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js +79 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js +14 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js +2 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js +48 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js +75 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js +39 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js +144 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js +64 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js +5 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js +26 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +39 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js +11 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +72 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js +200 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js +75 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js +26 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js +30 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js +53 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js +143 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js +27 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js +45 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js +98 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js +2 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js +58 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js +2 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js +78 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js +5 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js +2 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js +73 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js +2 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js +117 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js +41 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js +122 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js +227 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js +122 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js +37 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js +33 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js +24 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js +2 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js +19 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js.map +1 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js +2 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js +20 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js.map +1 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js +2 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js +48 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js.map +1 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js +2 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js +41 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js +171 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js +38 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js +34 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js +14 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js +24 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js +110 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js +57 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js +70 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js +35 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js +34 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js +30 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js +33 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js +33 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js +9 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js +2 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js +285 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js +58 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js +19 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js +53 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js +38 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js +31 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js +9 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js +8 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js +13 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js +9 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js +11 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js +9 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js +11 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js.map +1 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js +2 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js.map +1 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js +171 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +23 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +609 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +10 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +29 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.cjs.js +2 -0
- package/dist/node_modules/react/jsx-runtime.cjs.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.es.js +9 -0
- package/dist/node_modules/react/jsx-runtime.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Button.es.js +77 -0
- package/dist/node_modules/react-aria-components/dist/Button.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Collection.es.js +48 -0
- package/dist/node_modules/react-aria-components/dist/Collection.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Header.es.js +15 -0
- package/dist/node_modules/react-aria-components/dist/Header.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Menu.es.js +283 -0
- package/dist/node_modules/react-aria-components/dist/Menu.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js +37 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Popover.es.js +130 -0
- package/dist/node_modules/react-aria-components/dist/Popover.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Separator.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Separator.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Text.es.js +16 -0
- package/dist/node_modules/react-aria-components/dist/Text.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js +97 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/utils.es.js +101 -0
- package/dist/node_modules/react-aria-components/dist/utils.es.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js +10 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js +68 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js +10 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js +56 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js +2 -0
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.es.js +9 -0
- package/dist/node_modules/use-sync-external-store/shim/index.es.js.map +1 -0
- package/dist/theme/dark.cjs.js +1 -1
- package/dist/theme/dark.cjs.js.map +1 -1
- package/dist/theme/dark.es.js +8 -55
- package/dist/theme/dark.es.js.map +1 -1
- package/dist/theme/light.cjs.js +1 -1
- package/dist/theme/light.cjs.js.map +1 -1
- package/dist/theme/light.es.js +8 -55
- package/dist/theme/light.es.js.map +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.cjs.js.map +1 -1
- package/dist/theme.es.js +9 -15
- package/dist/theme.es.js.map +1 -1
- package/dist/utils/color2k.cjs.js +2 -0
- package/dist/utils/color2k.cjs.js.map +1 -0
- package/dist/utils/color2k.es.js +14 -0
- package/dist/utils/color2k.es.js.map +1 -0
- package/dist/utils/copy.cjs.js +2 -0
- package/dist/utils/copy.cjs.js.map +1 -0
- package/dist/{copy-qSgElu2b.mjs → utils/copy.es.js} +2 -2
- package/dist/utils/copy.es.js.map +1 -0
- package/dist/utils/image.cjs.js +2 -0
- package/dist/utils/image.cjs.js.map +1 -0
- package/dist/utils/image.es.js +28 -0
- package/dist/utils/image.es.js.map +1 -0
- package/dist/utils/navigation.cjs.js +2 -0
- package/dist/utils/navigation.cjs.js.map +1 -0
- package/dist/utils/navigation.es.js +12 -0
- package/dist/utils/navigation.es.js.map +1 -0
- package/dist/utils/palette.cjs.js +2 -0
- package/dist/utils/palette.cjs.js.map +1 -0
- package/dist/utils/palette.es.js +183 -0
- package/dist/utils/palette.es.js.map +1 -0
- package/dist/utils/string.cjs.js +2 -0
- package/dist/utils/string.cjs.js.map +1 -0
- package/dist/utils/string.es.js +8 -0
- package/dist/utils/string.es.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +19 -16
- package/dist/utils.es.js.map +1 -1
- package/package.json +7 -9
- package/dist/Button-D5vY_uZz.js +0 -31
- package/dist/Button-D5vY_uZz.js.map +0 -1
- package/dist/Button-R07nvJbw.mjs +0 -727
- package/dist/Button-R07nvJbw.mjs.map +0 -1
- package/dist/Button.cjs.js +0 -2
- package/dist/Button.cjs.js.map +0 -1
- package/dist/Button.d.ts +0 -53
- package/dist/Button.es.js +0 -9
- package/dist/Button.es.js.map +0 -1
- package/dist/breakpoint-9y1_8U_b.mjs.map +0 -1
- package/dist/breakpoint-DtqbboOa.js +0 -2
- package/dist/breakpoint-DtqbboOa.js.map +0 -1
- package/dist/color2k-CpDB_dpw.mjs +0 -168
- package/dist/color2k-CpDB_dpw.mjs.map +0 -1
- package/dist/color2k-DCgwXUem.js +0 -2
- package/dist/color2k-DCgwXUem.js.map +0 -1
- package/dist/colors-CWaj9dFz.mjs.map +0 -1
- package/dist/colors-CebzFjpe.js +0 -2
- package/dist/colors-CmSJBHaf.js +0 -2
- package/dist/colors-CmSJBHaf.js.map +0 -1
- package/dist/colors-DL1dYffC.js +0 -2
- package/dist/copy-DxIZCnfT.js +0 -2
- package/dist/copy-DxIZCnfT.js.map +0 -1
- package/dist/copy-qSgElu2b.mjs.map +0 -1
- package/dist/image-CUSfY1_T.js +0 -2
- package/dist/image-CUSfY1_T.js.map +0 -1
- package/dist/image-DFyN0Kd9.mjs +0 -207
- package/dist/image-DFyN0Kd9.mjs.map +0 -1
- package/dist/navigation-DdxS0JoV.js +0 -2
- package/dist/navigation-DdxS0JoV.js.map +0 -1
- package/dist/navigation-DsfDNfej.mjs +0 -16
- package/dist/navigation-DsfDNfej.mjs.map +0 -1
- package/dist/useBreakpoint-CA9tMMV8.js +0 -2
- package/dist/useBreakpoint-CA9tMMV8.js.map +0 -1
- package/dist/useBreakpoint-CjRyGKN-.mjs +0 -53
- package/dist/useBreakpoint-CjRyGKN-.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionBuilder.es.js","sources":["../../../../../node_modules/@react-stately/collections/dist/CollectionBuilder.mjs"],"sourcesContent":["import $fzaAv$react from \"react\";\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 */ \nclass $eb2240fc39a57fa5$export$bf788dd355e3a401 {\n build(props, context) {\n this.context = context;\n return $eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(props));\n }\n *iterateCollection(props) {\n let { children: children, items: items } = props;\n if ((0, $fzaAv$react).isValidElement(children) && children.type === (0, $fzaAv$react).Fragment) yield* this.iterateCollection({\n children: children.props.children,\n items: items\n });\n else if (typeof children === 'function') {\n if (!items) throw new Error('props.children was a function but props.items is missing');\n let index = 0;\n for (let item of items){\n yield* this.getFullNode({\n value: item,\n index: index\n }, {\n renderer: children\n });\n index++;\n }\n } else {\n let items = [];\n (0, $fzaAv$react).Children.forEach(children, (child)=>{\n if (child) items.push(child);\n });\n let index = 0;\n for (let item of items){\n let nodes = this.getFullNode({\n element: item,\n index: index\n }, {});\n for (let node of nodes){\n index++;\n yield node;\n }\n }\n }\n }\n getKey(item, partialNode, state, parentKey) {\n if (item.key != null) return item.key;\n if (partialNode.type === 'cell' && partialNode.key != null) return `${parentKey}${partialNode.key}`;\n let v = partialNode.value;\n if (v != null) {\n var _v_key;\n let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;\n if (key == null) throw new Error('No key found for item');\n return key;\n }\n return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;\n }\n getChildState(state, partialNode) {\n return {\n renderer: partialNode.renderer || state.renderer\n };\n }\n *getFullNode(partialNode, state, parentKey, parentNode) {\n if ((0, $fzaAv$react).isValidElement(partialNode.element) && partialNode.element.type === (0, $fzaAv$react).Fragment) {\n let children = [];\n (0, $fzaAv$react).Children.forEach(partialNode.element.props.children, (child)=>{\n children.push(child);\n });\n var _partialNode_index;\n let index = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0;\n for (const child of children)yield* this.getFullNode({\n element: child,\n index: index++\n }, state, parentKey, parentNode);\n return;\n }\n // If there's a value instead of an element on the node, and a parent renderer function is available,\n // use it to render an element for the value.\n let element = partialNode.element;\n if (!element && partialNode.value && state && state.renderer) {\n let cached = this.cache.get(partialNode.value);\n if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {\n cached.index = partialNode.index;\n cached.parentKey = parentNode ? parentNode.key : null;\n yield cached;\n return;\n }\n element = state.renderer(partialNode.value);\n }\n // If there's an element with a getCollectionNode function on its type, then it's a supported component.\n // Call this function to get a partial node, and recursively build a full node from there.\n if ((0, $fzaAv$react).isValidElement(element)) {\n let type = element.type;\n if (typeof type !== 'function' && typeof type.getCollectionNode !== 'function') {\n let name = element.type;\n throw new Error(`Unknown element <${name}> in collection.`);\n }\n let childNodes = type.getCollectionNode(element.props, this.context);\n var _partialNode_index1;\n let index = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0;\n let result = childNodes.next();\n while(!result.done && result.value){\n let childNode = result.value;\n partialNode.index = index;\n var _childNode_key;\n let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null;\n if (nodeKey == null) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);\n let nodes = this.getFullNode({\n ...childNode,\n key: nodeKey,\n index: index,\n wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)\n }, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode);\n let children = [\n ...nodes\n ];\n for (let node of children){\n var _childNode_value, _ref;\n // Cache the node based on its value\n node.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== void 0 ? _childNode_value : partialNode.value) !== null && _ref !== void 0 ? _ref : null;\n if (node.value) this.cache.set(node.value, node);\n var _parentNode_type;\n // The partial node may have specified a type for the child in order to specify a constraint.\n // Verify that the full node that was built recursively matches this type.\n if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== null && _parentNode_type !== void 0 ? _parentNode_type : 'unknown parent type')}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);\n index++;\n yield node;\n }\n result = childNodes.next(children);\n }\n return;\n }\n // Ignore invalid elements\n if (partialNode.key == null || partialNode.type == null) return;\n // Create full node\n let builder = this;\n var _partialNode_value, _partialNode_textValue;\n let node = {\n type: partialNode.type,\n props: partialNode.props,\n key: partialNode.key,\n parentKey: parentNode ? parentNode.key : null,\n value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null,\n level: parentNode ? parentNode.level + 1 : 0,\n index: partialNode.index,\n rendered: partialNode.rendered,\n textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : '',\n 'aria-label': partialNode['aria-label'],\n wrapper: partialNode.wrapper,\n shouldInvalidate: partialNode.shouldInvalidate,\n hasChildNodes: partialNode.hasChildNodes || false,\n childNodes: $eb2240fc39a57fa5$var$iterable(function*() {\n if (!partialNode.hasChildNodes || !partialNode.childNodes) return;\n let index = 0;\n for (let child of partialNode.childNodes()){\n // Ensure child keys are globally unique by prepending the parent node's key\n if (child.key != null) // TODO: Remove this line entirely and enforce that users always provide unique keys.\n // Currently this line will have issues when a parent has a key `a` and a child with key `bc`\n // but another parent has key `ab` and its child has a key `c`. The combined keys would result in both\n // children having a key of `abc`.\n child.key = `${node.key}${child.key}`;\n let nodes = builder.getFullNode({\n ...child,\n index: index\n }, builder.getChildState(state, child), node.key, node);\n for (let node of nodes){\n index++;\n yield node;\n }\n }\n })\n };\n yield node;\n }\n constructor(){\n this.cache = new WeakMap();\n }\n}\n// Wraps an iterator function as an iterable object, and caches the results.\nfunction $eb2240fc39a57fa5$var$iterable(iterator) {\n let cache = [];\n let iterable = null;\n return {\n *[Symbol.iterator] () {\n for (let item of cache)yield item;\n if (!iterable) iterable = iterator();\n for (let item of iterable){\n cache.push(item);\n yield item;\n }\n }\n };\n}\nfunction $eb2240fc39a57fa5$var$compose(outer, inner) {\n if (outer && inner) return (element)=>outer(inner(element));\n if (outer) return outer;\n if (inner) return inner;\n}\nfunction $eb2240fc39a57fa5$var$capitalize(str) {\n return str[0].toUpperCase() + str.slice(1);\n}\n\n\nexport {$eb2240fc39a57fa5$export$bf788dd355e3a401 as CollectionBuilder};\n//# sourceMappingURL=CollectionBuilder.module.js.map\n"],"names":["$eb2240fc39a57fa5$export$bf788dd355e3a401","props","context","$eb2240fc39a57fa5$var$iterable","children","items","$fzaAv$react","index","item","child","nodes","node","partialNode","state","parentKey","v","_v_key","key","parentNode","_partialNode_index","element","cached","type","name","childNodes","_partialNode_index1","result","childNode","_childNode_key","nodeKey","$eb2240fc39a57fa5$var$compose","_childNode_value","_ref","_parentNode_type","$eb2240fc39a57fa5$var$capitalize","builder","_partialNode_value","_partialNode_textValue","iterator","cache","iterable","outer","inner","str"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function c(t){return null}c.getCollectionNode=function*(e,i){let{childItems:n,title:u,children:o}=e,d=e.title||e.children,a=e.textValue||(typeof d=="string"?d:"")||e["aria-label"]||"";!a&&!(i!=null&&i.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:d,textValue:a,"aria-label":e["aria-label"],hasChildNodes:h(e),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(u){let l=[];r.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function h(t){return t.hasChildItems!=null?t.hasChildItems:!!(t.childItems||t.title&&r.Children.count(t.children)>0)}let f=c;exports.Item=f;
|
|
2
|
+
//# sourceMappingURL=Item.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.cjs.js","sources":["../../../../../node_modules/@react-stately/collections/dist/Item.mjs"],"sourcesContent":["import $6Fm0V$react from \"react\";\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 */ \nfunction $c1d7fb2ec91bae71$var$Item(props) {\n return null;\n}\n$c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props, context) {\n let { childItems: childItems, title: title, children: children } = props;\n let rendered = props.title || props.children;\n let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'] || '';\n // suppressTextValueWarning is used in components like Tabs, which don't have type to select support.\n if (!textValue && !(context === null || context === void 0 ? void 0 : context.suppressTextValueWarning) && process.env.NODE_ENV !== 'production') console.warn('<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.');\n yield {\n type: 'item',\n props: props,\n rendered: rendered,\n textValue: textValue,\n 'aria-label': props['aria-label'],\n hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),\n *childNodes () {\n if (childItems) for (let child of childItems)yield {\n type: 'item',\n value: child\n };\n else if (title) {\n let items = [];\n (0, $6Fm0V$react).Children.forEach(children, (child)=>{\n items.push({\n type: 'item',\n element: child\n });\n });\n yield* items;\n }\n }\n };\n};\nfunction $c1d7fb2ec91bae71$var$hasChildItems(props) {\n if (props.hasChildItems != null) return props.hasChildItems;\n if (props.childItems) return true;\n if (props.title && (0, $6Fm0V$react).Children.count(props.children) > 0) return true;\n return false;\n}\n// We don't want getCollectionNode to show up in the type definition\nlet $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;\n\n\nexport {$c1d7fb2ec91bae71$export$6d08773d2e66f8f2 as Item};\n//# sourceMappingURL=Item.module.js.map\n"],"names":["$c1d7fb2ec91bae71$var$Item","props","context","childItems","title","children","rendered","textValue","$c1d7fb2ec91bae71$var$hasChildItems","child","items","$6Fm0V$react","$c1d7fb2ec91bae71$export$6d08773d2e66f8f2"],"mappings":"yGAaA,SAASA,EAA2BC,EAAO,CACvC,OAAO,IACX,CACAD,EAA2B,kBAAoB,UAA4BC,EAAOC,EAAS,CACvF,GAAI,CAAE,WAAYC,EAAY,MAAOC,EAAO,SAAUC,CAAU,EAAGJ,EAC/DK,EAAWL,EAAM,OAASA,EAAM,SAChCM,EAAYN,EAAM,YAAc,OAAOK,GAAa,SAAWA,EAAW,KAAOL,EAAM,YAAY,GAAK,GAExG,CAACM,GAAa,EAAEL,GAAY,MAAsCA,EAAQ,2BAA6B,QAAQ,IAAI,WAAa,cAAc,QAAQ,KAAK,wHAAwH,EACvR,KAAM,CACF,KAAM,OACN,MAAOD,EACP,SAAUK,EACV,UAAWC,EACX,aAAcN,EAAM,YAAY,EAChC,cAAeO,EAAoCP,CAAK,EACxD,CAAC,YAAc,CACX,GAAIE,EAAY,QAASM,KAASN,EAAW,KAAM,CAC/C,KAAM,OACN,MAAOM,CACvB,UACqBL,EAAO,CACZ,IAAIM,EAAQ,CAAA,EACRC,EAAc,SAAS,QAAQN,EAAWI,GAAQ,CAClDC,EAAM,KAAK,CACP,KAAM,OACN,QAASD,CACjC,CAAqB,CACrB,CAAiB,EACD,MAAOC,CACV,CACJ,CACT,CACA,EACA,SAASF,EAAoCP,EAAO,CAChD,OAAIA,EAAM,eAAiB,KAAaA,EAAM,cAC1C,GAAAA,EAAM,YACNA,EAAM,OAAaU,EAAc,SAAS,MAAMV,EAAM,QAAQ,EAAI,EAE1E,CAEG,IAACW,EAA4CZ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import r from "react";
|
|
2
|
+
function c(t) {
|
|
3
|
+
return null;
|
|
4
|
+
}
|
|
5
|
+
c.getCollectionNode = function* (e, i) {
|
|
6
|
+
let { childItems: n, title: u, children: h } = e, d = e.title || e.children, a = e.textValue || (typeof d == "string" ? d : "") || e["aria-label"] || "";
|
|
7
|
+
!a && !(i != null && i.suppressTextValueWarning) && process.env.NODE_ENV !== "production" && console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."), yield {
|
|
8
|
+
type: "item",
|
|
9
|
+
props: e,
|
|
10
|
+
rendered: d,
|
|
11
|
+
textValue: a,
|
|
12
|
+
"aria-label": e["aria-label"],
|
|
13
|
+
hasChildNodes: s(e),
|
|
14
|
+
*childNodes() {
|
|
15
|
+
if (n) for (let l of n) yield {
|
|
16
|
+
type: "item",
|
|
17
|
+
value: l
|
|
18
|
+
};
|
|
19
|
+
else if (u) {
|
|
20
|
+
let l = [];
|
|
21
|
+
r.Children.forEach(h, (o) => {
|
|
22
|
+
l.push({
|
|
23
|
+
type: "item",
|
|
24
|
+
element: o
|
|
25
|
+
});
|
|
26
|
+
}), yield* l;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
function s(t) {
|
|
32
|
+
return t.hasChildItems != null ? t.hasChildItems : !!(t.childItems || t.title && r.Children.count(t.children) > 0);
|
|
33
|
+
}
|
|
34
|
+
let m = c;
|
|
35
|
+
export {
|
|
36
|
+
m as Item
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=Item.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.es.js","sources":["../../../../../node_modules/@react-stately/collections/dist/Item.mjs"],"sourcesContent":["import $6Fm0V$react from \"react\";\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 */ \nfunction $c1d7fb2ec91bae71$var$Item(props) {\n return null;\n}\n$c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props, context) {\n let { childItems: childItems, title: title, children: children } = props;\n let rendered = props.title || props.children;\n let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'] || '';\n // suppressTextValueWarning is used in components like Tabs, which don't have type to select support.\n if (!textValue && !(context === null || context === void 0 ? void 0 : context.suppressTextValueWarning) && process.env.NODE_ENV !== 'production') console.warn('<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.');\n yield {\n type: 'item',\n props: props,\n rendered: rendered,\n textValue: textValue,\n 'aria-label': props['aria-label'],\n hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),\n *childNodes () {\n if (childItems) for (let child of childItems)yield {\n type: 'item',\n value: child\n };\n else if (title) {\n let items = [];\n (0, $6Fm0V$react).Children.forEach(children, (child)=>{\n items.push({\n type: 'item',\n element: child\n });\n });\n yield* items;\n }\n }\n };\n};\nfunction $c1d7fb2ec91bae71$var$hasChildItems(props) {\n if (props.hasChildItems != null) return props.hasChildItems;\n if (props.childItems) return true;\n if (props.title && (0, $6Fm0V$react).Children.count(props.children) > 0) return true;\n return false;\n}\n// We don't want getCollectionNode to show up in the type definition\nlet $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;\n\n\nexport {$c1d7fb2ec91bae71$export$6d08773d2e66f8f2 as Item};\n//# sourceMappingURL=Item.module.js.map\n"],"names":["$c1d7fb2ec91bae71$var$Item","props","context","childItems","title","children","rendered","textValue","$c1d7fb2ec91bae71$var$hasChildItems","child","items","$6Fm0V$react","$c1d7fb2ec91bae71$export$6d08773d2e66f8f2"],"mappings":";AAaA,SAASA,EAA2BC,GAAO;AACvC,SAAO;AACX;AACAD,EAA2B,oBAAoB,WAA4BC,GAAOC,GAAS;AACvF,MAAI,EAAE,YAAYC,GAAY,OAAOC,GAAO,UAAUC,EAAU,IAAGJ,GAC/DK,IAAWL,EAAM,SAASA,EAAM,UAChCM,IAAYN,EAAM,cAAc,OAAOK,KAAa,WAAWA,IAAW,OAAOL,EAAM,YAAY,KAAK;AAE5G,EAAI,CAACM,KAAa,EAAEL,KAAY,QAAsCA,EAAQ,6BAA6B,QAAQ,IAAI,aAAa,gBAAc,QAAQ,KAAK,wHAAwH,GACvR,MAAM;AAAA,IACF,MAAM;AAAA,IACN,OAAOD;AAAA,IACP,UAAUK;AAAA,IACV,WAAWC;AAAA,IACX,cAAcN,EAAM,YAAY;AAAA,IAChC,eAAeO,EAAoCP,CAAK;AAAA,IACxD,CAAC,aAAc;AACX,UAAIE,EAAY,UAASM,KAASN,EAAW,OAAM;AAAA,QAC/C,MAAM;AAAA,QACN,OAAOM;AAAA,MACvB;AAAA,eACqBL,GAAO;AACZ,YAAIM,IAAQ,CAAA;AACZ,QAAIC,EAAc,SAAS,QAAQN,GAAU,CAACI,MAAQ;AAClD,UAAAC,EAAM,KAAK;AAAA,YACP,MAAM;AAAA,YACN,SAASD;AAAA,UACjC,CAAqB;AAAA,QACrB,CAAiB,GACD,OAAOC;AAAA,MACV;AAAA,IACJ;AAAA,EACT;AACA;AACA,SAASF,EAAoCP,GAAO;AAChD,SAAIA,EAAM,iBAAiB,OAAaA,EAAM,gBAC1C,GAAAA,EAAM,cACNA,EAAM,SAAaU,EAAc,SAAS,MAAMV,EAAM,QAAQ,IAAI;AAE1E;AAEG,IAACW,IAA4CZ;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function l(n){return o(n)}function o(n,e){for(let t of n)return t}function s(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let r=[...c(n,e),e],f=[...c(n,t),t],d=r.slice(0,f.length).findIndex((i,u)=>i!==f[u]);return d!==-1?(e=r[d],t=f[d],e.index-t.index):r.findIndex(i=>i===t)>=0?1:(f.findIndex(i=>i===e)>=0,-1)}function c(n,e){let t=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=n.getItem(r.parentKey),r&&t.unshift(r);return t}exports.compareNodeOrder=s;exports.getChildNodes=a;exports.getFirstItem=l;exports.getNthItem=o;
|
|
2
|
+
//# sourceMappingURL=getChildNodes.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChildNodes.cjs.js","sources":["../../../../../node_modules/@react-stately/collections/dist/getChildNodes.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $c5a24bc478652b5f$export$1005530eda016c13(node, collection) {\n // New API: call collection.getChildren with the node key.\n if (typeof collection.getChildren === 'function') return collection.getChildren(node.key);\n // Old API: access childNodes directly.\n return node.childNodes;\n}\nfunction $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {\n return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);\n}\nfunction $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index) {\n if (index < 0) return undefined;\n let i = 0;\n for (let item of iterable){\n if (i === index) return item;\n i++;\n }\n}\nfunction $c5a24bc478652b5f$export$7475b2c64539e4cf(iterable) {\n let lastItem = undefined;\n for (let value of iterable)lastItem = value;\n return lastItem;\n}\nfunction $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {\n // If the two nodes have the same parent, compare their indices.\n if (a.parentKey === b.parentKey) return a.index - b.index;\n // Otherwise, collect all of the ancestors from each node, and find the first one that doesn't match starting from the root.\n // Include the base nodes in case we are comparing nodes of different levels so that we can compare the higher node to the lower level node's\n // ancestor of the same level\n let aAncestors = [\n ...$c5a24bc478652b5f$var$getAncestors(collection, a),\n a\n ];\n let bAncestors = [\n ...$c5a24bc478652b5f$var$getAncestors(collection, b),\n b\n ];\n let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i)=>a !== bAncestors[i]);\n if (firstNonMatchingAncestor !== -1) {\n // Compare the indices of two children within the common ancestor.\n a = aAncestors[firstNonMatchingAncestor];\n b = bAncestors[firstNonMatchingAncestor];\n return a.index - b.index;\n }\n // If there isn't a non matching ancestor, we might be in a case where one of the nodes is the ancestor of the other.\n if (aAncestors.findIndex((node)=>node === b) >= 0) return 1;\n else if (bAncestors.findIndex((node)=>node === a) >= 0) return -1;\n // 🤷\n return -1;\n}\nfunction $c5a24bc478652b5f$var$getAncestors(collection, node) {\n let parents = [];\n let currNode = node;\n while((currNode === null || currNode === void 0 ? void 0 : currNode.parentKey) != null){\n currNode = collection.getItem(currNode.parentKey);\n if (currNode) parents.unshift(currNode);\n }\n return parents;\n}\n\n\nexport {$c5a24bc478652b5f$export$1005530eda016c13 as getChildNodes, $c5a24bc478652b5f$export$fbdeaa6a76694f71 as getFirstItem, $c5a24bc478652b5f$export$5f3398f8733f90e2 as getNthItem, $c5a24bc478652b5f$export$7475b2c64539e4cf as getLastItem, $c5a24bc478652b5f$export$8c434b3a7a4dad6 as compareNodeOrder};\n//# sourceMappingURL=getChildNodes.module.js.map\n"],"names":["$c5a24bc478652b5f$export$1005530eda016c13","node","collection","$c5a24bc478652b5f$export$fbdeaa6a76694f71","iterable","$c5a24bc478652b5f$export$5f3398f8733f90e2","index","item","$c5a24bc478652b5f$export$8c434b3a7a4dad6","a","b","aAncestors","$c5a24bc478652b5f$var$getAncestors","bAncestors","firstNonMatchingAncestor","i","parents","currNode"],"mappings":"gFAUI,SAASA,EAA0CC,EAAMC,EAAY,CAErE,OAAI,OAAOA,EAAW,aAAgB,WAAmBA,EAAW,YAAYD,EAAK,GAAG,EAEjFA,EAAK,UAChB,CACA,SAASE,EAA0CC,EAAU,CACzD,OAAOC,EAA0CD,CAAW,CAChE,CACA,SAASC,EAA0CD,EAAUE,EAAO,CAGhE,QAASC,KAAQH,EACI,OAAOG,CAGhC,CAMA,SAASC,EAAyCN,EAAYO,EAAGC,EAAG,CAEhE,GAAID,EAAE,YAAcC,EAAE,UAAW,OAAOD,EAAE,MAAQC,EAAE,MAIpD,IAAIC,EAAa,CACb,GAAGC,EAAmCV,EAAYO,CAAC,EACnDA,CACR,EACQI,EAAa,CACb,GAAGD,EAAmCV,EAAYQ,CAAC,EACnDA,CACR,EACQI,EAA2BH,EAAW,MAAM,EAAGE,EAAW,MAAM,EAAE,UAAU,CAACJ,EAAGM,IAAIN,IAAMI,EAAWE,CAAC,CAAC,EAC3G,OAAID,IAA6B,IAE7BL,EAAIE,EAAWG,CAAwB,EACvCJ,EAAIG,EAAWC,CAAwB,EAChCL,EAAE,MAAQC,EAAE,OAGnBC,EAAW,UAAWV,GAAOA,IAASS,CAAC,GAAK,EAAU,GACjDG,EAAW,UAAWZ,GAAOA,IAASQ,CAAC,GAAK,EAAU,GAGnE,CACA,SAASG,EAAmCV,EAAYD,EAAM,CAC1D,IAAIe,EAAU,CAAA,EACVC,EAAWhB,EACf,MAAOgB,GAAa,KAA8B,OAASA,EAAS,YAAc,MAC9EA,EAAWf,EAAW,QAAQe,EAAS,SAAS,EAC5CA,GAAUD,EAAQ,QAAQC,CAAQ,EAE1C,OAAOD,CACX","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
function a(n, e) {
|
|
2
|
+
return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
|
|
3
|
+
}
|
|
4
|
+
function s(n) {
|
|
5
|
+
return u(n);
|
|
6
|
+
}
|
|
7
|
+
function u(n, e) {
|
|
8
|
+
for (let t of n)
|
|
9
|
+
return t;
|
|
10
|
+
}
|
|
11
|
+
function $(n, e, t) {
|
|
12
|
+
if (e.parentKey === t.parentKey) return e.index - t.index;
|
|
13
|
+
let r = [
|
|
14
|
+
...c(n, e),
|
|
15
|
+
e
|
|
16
|
+
], f = [
|
|
17
|
+
...c(n, t),
|
|
18
|
+
t
|
|
19
|
+
], d = r.slice(0, f.length).findIndex((i, o) => i !== f[o]);
|
|
20
|
+
return d !== -1 ? (e = r[d], t = f[d], e.index - t.index) : r.findIndex((i) => i === t) >= 0 ? 1 : (f.findIndex((i) => i === e) >= 0, -1);
|
|
21
|
+
}
|
|
22
|
+
function c(n, e) {
|
|
23
|
+
let t = [], r = e;
|
|
24
|
+
for (; (r == null ? void 0 : r.parentKey) != null; )
|
|
25
|
+
r = n.getItem(r.parentKey), r && t.unshift(r);
|
|
26
|
+
return t;
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
$ as compareNodeOrder,
|
|
30
|
+
a as getChildNodes,
|
|
31
|
+
s as getFirstItem,
|
|
32
|
+
u as getNthItem
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=getChildNodes.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChildNodes.es.js","sources":["../../../../../node_modules/@react-stately/collections/dist/getChildNodes.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $c5a24bc478652b5f$export$1005530eda016c13(node, collection) {\n // New API: call collection.getChildren with the node key.\n if (typeof collection.getChildren === 'function') return collection.getChildren(node.key);\n // Old API: access childNodes directly.\n return node.childNodes;\n}\nfunction $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {\n return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);\n}\nfunction $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index) {\n if (index < 0) return undefined;\n let i = 0;\n for (let item of iterable){\n if (i === index) return item;\n i++;\n }\n}\nfunction $c5a24bc478652b5f$export$7475b2c64539e4cf(iterable) {\n let lastItem = undefined;\n for (let value of iterable)lastItem = value;\n return lastItem;\n}\nfunction $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {\n // If the two nodes have the same parent, compare their indices.\n if (a.parentKey === b.parentKey) return a.index - b.index;\n // Otherwise, collect all of the ancestors from each node, and find the first one that doesn't match starting from the root.\n // Include the base nodes in case we are comparing nodes of different levels so that we can compare the higher node to the lower level node's\n // ancestor of the same level\n let aAncestors = [\n ...$c5a24bc478652b5f$var$getAncestors(collection, a),\n a\n ];\n let bAncestors = [\n ...$c5a24bc478652b5f$var$getAncestors(collection, b),\n b\n ];\n let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i)=>a !== bAncestors[i]);\n if (firstNonMatchingAncestor !== -1) {\n // Compare the indices of two children within the common ancestor.\n a = aAncestors[firstNonMatchingAncestor];\n b = bAncestors[firstNonMatchingAncestor];\n return a.index - b.index;\n }\n // If there isn't a non matching ancestor, we might be in a case where one of the nodes is the ancestor of the other.\n if (aAncestors.findIndex((node)=>node === b) >= 0) return 1;\n else if (bAncestors.findIndex((node)=>node === a) >= 0) return -1;\n // 🤷\n return -1;\n}\nfunction $c5a24bc478652b5f$var$getAncestors(collection, node) {\n let parents = [];\n let currNode = node;\n while((currNode === null || currNode === void 0 ? void 0 : currNode.parentKey) != null){\n currNode = collection.getItem(currNode.parentKey);\n if (currNode) parents.unshift(currNode);\n }\n return parents;\n}\n\n\nexport {$c5a24bc478652b5f$export$1005530eda016c13 as getChildNodes, $c5a24bc478652b5f$export$fbdeaa6a76694f71 as getFirstItem, $c5a24bc478652b5f$export$5f3398f8733f90e2 as getNthItem, $c5a24bc478652b5f$export$7475b2c64539e4cf as getLastItem, $c5a24bc478652b5f$export$8c434b3a7a4dad6 as compareNodeOrder};\n//# sourceMappingURL=getChildNodes.module.js.map\n"],"names":["$c5a24bc478652b5f$export$1005530eda016c13","node","collection","$c5a24bc478652b5f$export$fbdeaa6a76694f71","iterable","$c5a24bc478652b5f$export$5f3398f8733f90e2","index","item","$c5a24bc478652b5f$export$8c434b3a7a4dad6","a","b","aAncestors","$c5a24bc478652b5f$var$getAncestors","bAncestors","firstNonMatchingAncestor","i","parents","currNode"],"mappings":"AAUI,SAASA,EAA0CC,GAAMC,GAAY;AAErE,SAAI,OAAOA,EAAW,eAAgB,aAAmBA,EAAW,YAAYD,EAAK,GAAG,IAEjFA,EAAK;AAChB;AACA,SAASE,EAA0CC,GAAU;AACzD,SAAOC,EAA0CD,CAAW;AAChE;AACA,SAASC,EAA0CD,GAAUE,GAAO;AAGhE,WAASC,KAAQH;AACI,WAAOG;AAGhC;AAMA,SAASC,EAAyCN,GAAYO,GAAGC,GAAG;AAEhE,MAAID,EAAE,cAAcC,EAAE,UAAW,QAAOD,EAAE,QAAQC,EAAE;AAIpD,MAAIC,IAAa;AAAA,IACb,GAAGC,EAAmCV,GAAYO,CAAC;AAAA,IACnDA;AAAA,EACR,GACQI,IAAa;AAAA,IACb,GAAGD,EAAmCV,GAAYQ,CAAC;AAAA,IACnDA;AAAA,EACR,GACQI,IAA2BH,EAAW,MAAM,GAAGE,EAAW,MAAM,EAAE,UAAU,CAACJ,GAAGM,MAAIN,MAAMI,EAAWE,CAAC,CAAC;AAC3G,SAAID,MAA6B,MAE7BL,IAAIE,EAAWG,CAAwB,GACvCJ,IAAIG,EAAWC,CAAwB,GAChCL,EAAE,QAAQC,EAAE,SAGnBC,EAAW,UAAU,CAACV,MAAOA,MAASS,CAAC,KAAK,IAAU,KACjDG,EAAW,UAAU,CAACZ,MAAOA,MAASQ,CAAC,KAAK,GAAU;AAGnE;AACA,SAASG,EAAmCV,GAAYD,GAAM;AAC1D,MAAIe,IAAU,CAAA,GACVC,IAAWhB;AACf,UAAOgB,KAAa,OAA8B,SAASA,EAAS,cAAc;AAC9E,IAAAA,IAAWf,EAAW,QAAQe,EAAS,SAAS,GAC5CA,KAAUD,EAAQ,QAAQC,CAAQ;AAE1C,SAAOD;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./getChildNodes.cjs.js"),a=new WeakMap;function o(e){let r=a.get(e);if(r!=null)return r;let t=0,n=c=>{for(let u of c)u.type==="section"?n(f.getChildNodes(u,e)):t++};return n(e),a.set(e,t),t}exports.getItemCount=o;
|
|
2
|
+
//# sourceMappingURL=getItemCount.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getItemCount.cjs.js","sources":["../../../../../node_modules/@react-stately/collections/dist/getItemCount.mjs"],"sourcesContent":["import {getChildNodes as $c5a24bc478652b5f$export$1005530eda016c13} from \"./getChildNodes.mjs\";\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 */ \nconst $453cc9f0df89c0a5$var$cache = new WeakMap();\nfunction $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {\n let count = $453cc9f0df89c0a5$var$cache.get(collection);\n if (count != null) return count;\n // TS isn't smart enough to know we've ensured count is a number, so use a new variable\n let counter = 0;\n let countItems = (items)=>{\n for (let item of items)if (item.type === 'section') countItems((0, $c5a24bc478652b5f$export$1005530eda016c13)(item, collection));\n else counter++;\n };\n countItems(collection);\n $453cc9f0df89c0a5$var$cache.set(collection, counter);\n return counter;\n}\n\n\nexport {$453cc9f0df89c0a5$export$77d5aafae4e095b2 as getItemCount};\n//# sourceMappingURL=getItemCount.module.js.map\n"],"names":["$453cc9f0df89c0a5$var$cache","$453cc9f0df89c0a5$export$77d5aafae4e095b2","collection","count","counter","countItems","items","item","$c5a24bc478652b5f$export$1005530eda016c13"],"mappings":"0HAaMA,EAA8B,IAAI,QACxC,SAASC,EAA0CC,EAAY,CAC3D,IAAIC,EAAQH,EAA4B,IAAIE,CAAU,EACtD,GAAIC,GAAS,KAAM,OAAOA,EAE1B,IAAIC,EAAU,EACVC,EAAcC,GAAQ,CACtB,QAASC,KAAQD,EAAUC,EAAK,OAAS,UAAWF,EAAeG,EAAyC,cAAED,EAAML,CAAU,CAAC,EAC1HE,GACb,EACI,OAAAC,EAAWH,CAAU,EACrBF,EAA4B,IAAIE,EAAYE,CAAO,EAC5CA,CACX","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getChildNodes as o } from "./getChildNodes.es.js";
|
|
2
|
+
const c = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function s(e) {
|
|
4
|
+
let a = c.get(e);
|
|
5
|
+
if (a != null) return a;
|
|
6
|
+
let t = 0, f = (n) => {
|
|
7
|
+
for (let r of n) r.type === "section" ? f(o(r, e)) : t++;
|
|
8
|
+
};
|
|
9
|
+
return f(e), c.set(e, t), t;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as getItemCount
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=getItemCount.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getItemCount.es.js","sources":["../../../../../node_modules/@react-stately/collections/dist/getItemCount.mjs"],"sourcesContent":["import {getChildNodes as $c5a24bc478652b5f$export$1005530eda016c13} from \"./getChildNodes.mjs\";\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 */ \nconst $453cc9f0df89c0a5$var$cache = new WeakMap();\nfunction $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {\n let count = $453cc9f0df89c0a5$var$cache.get(collection);\n if (count != null) return count;\n // TS isn't smart enough to know we've ensured count is a number, so use a new variable\n let counter = 0;\n let countItems = (items)=>{\n for (let item of items)if (item.type === 'section') countItems((0, $c5a24bc478652b5f$export$1005530eda016c13)(item, collection));\n else counter++;\n };\n countItems(collection);\n $453cc9f0df89c0a5$var$cache.set(collection, counter);\n return counter;\n}\n\n\nexport {$453cc9f0df89c0a5$export$77d5aafae4e095b2 as getItemCount};\n//# sourceMappingURL=getItemCount.module.js.map\n"],"names":["$453cc9f0df89c0a5$var$cache","$453cc9f0df89c0a5$export$77d5aafae4e095b2","collection","count","counter","countItems","items","item","$c5a24bc478652b5f$export$1005530eda016c13"],"mappings":";AAaA,MAAMA,IAA8B,oBAAI;AACxC,SAASC,EAA0CC,GAAY;AAC3D,MAAIC,IAAQH,EAA4B,IAAIE,CAAU;AACtD,MAAIC,KAAS,KAAM,QAAOA;AAE1B,MAAIC,IAAU,GACVC,IAAa,CAACC,MAAQ;AACtB,aAASC,KAAQD,EAAM,CAAIC,EAAK,SAAS,YAAWF,EAAeG,EAA2CD,GAAML,CAAU,CAAC,IAC1HE;AAAA,EACb;AACI,SAAAC,EAAWH,CAAU,GACrBF,EAA4B,IAAIE,GAAYE,CAAO,GAC5CA;AACX;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./CollectionBuilder.cjs.js"),n=require("react");function s(u,l,t){let r=n.useMemo(()=>new d.CollectionBuilder,[]),{children:i,items:o,collection:e}=u;return n.useMemo(()=>{if(e)return e;let c=r.build({children:i,items:o},t);return l(c)},[r,i,o,e,t,l])}exports.useCollection=s;
|
|
2
|
+
//# sourceMappingURL=useCollection.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCollection.cjs.js","sources":["../../../../../node_modules/@react-stately/collections/dist/useCollection.mjs"],"sourcesContent":["import {CollectionBuilder as $eb2240fc39a57fa5$export$bf788dd355e3a401} from \"./CollectionBuilder.mjs\";\nimport {useMemo as $lbNth$useMemo} from \"react\";\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 $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {\n let builder = (0, $lbNth$useMemo)(()=>new (0, $eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);\n let { children: children, items: items, collection: collection } = props;\n let result = (0, $lbNth$useMemo)(()=>{\n if (collection) return collection;\n let nodes = builder.build({\n children: children,\n items: items\n }, context);\n return factory(nodes);\n }, [\n builder,\n children,\n items,\n collection,\n context,\n factory\n ]);\n return result;\n}\n\n\nexport {$7613b1592d41b092$export$6cd28814d92fa9c9 as useCollection};\n//# sourceMappingURL=useCollection.module.js.map\n"],"names":["$7613b1592d41b092$export$6cd28814d92fa9c9","props","factory","context","builder","$lbNth$useMemo","$eb2240fc39a57fa5$export$bf788dd355e3a401","children","items","collection","nodes"],"mappings":"iJAeA,SAASA,EAA0CC,EAAOC,EAASC,EAAS,CACxE,IAAIC,EAAcC,EAAc,QAAE,IAAI,IAAQC,EAAyC,kBAAK,CAAA,CAAE,EAC1F,CAAE,SAAUC,EAAU,MAAOC,EAAO,WAAYC,CAAY,EAAGR,EAgBnE,OAfiBI,EAAAA,QAAgB,IAAI,CACjC,GAAII,EAAY,OAAOA,EACvB,IAAIC,EAAQN,EAAQ,MAAM,CACtB,SAAUG,EACV,MAAOC,CACV,EAAEL,CAAO,EACV,OAAOD,EAAQQ,CAAK,CAC5B,EAAO,CACCN,EACAG,EACAC,EACAC,EACAN,EACAD,CACR,CAAK,CAEL","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CollectionBuilder as u } from "./CollectionBuilder.es.js";
|
|
2
|
+
import { useMemo as n } from "react";
|
|
3
|
+
function b(d, l, r) {
|
|
4
|
+
let t = n(() => new u(), []), { children: i, items: o, collection: e } = d;
|
|
5
|
+
return n(() => {
|
|
6
|
+
if (e) return e;
|
|
7
|
+
let c = t.build({
|
|
8
|
+
children: i,
|
|
9
|
+
items: o
|
|
10
|
+
}, r);
|
|
11
|
+
return l(c);
|
|
12
|
+
}, [
|
|
13
|
+
t,
|
|
14
|
+
i,
|
|
15
|
+
o,
|
|
16
|
+
e,
|
|
17
|
+
r,
|
|
18
|
+
l
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
b as useCollection
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=useCollection.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCollection.es.js","sources":["../../../../../node_modules/@react-stately/collections/dist/useCollection.mjs"],"sourcesContent":["import {CollectionBuilder as $eb2240fc39a57fa5$export$bf788dd355e3a401} from \"./CollectionBuilder.mjs\";\nimport {useMemo as $lbNth$useMemo} from \"react\";\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 $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {\n let builder = (0, $lbNth$useMemo)(()=>new (0, $eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);\n let { children: children, items: items, collection: collection } = props;\n let result = (0, $lbNth$useMemo)(()=>{\n if (collection) return collection;\n let nodes = builder.build({\n children: children,\n items: items\n }, context);\n return factory(nodes);\n }, [\n builder,\n children,\n items,\n collection,\n context,\n factory\n ]);\n return result;\n}\n\n\nexport {$7613b1592d41b092$export$6cd28814d92fa9c9 as useCollection};\n//# sourceMappingURL=useCollection.module.js.map\n"],"names":["$7613b1592d41b092$export$6cd28814d92fa9c9","props","factory","context","builder","$lbNth$useMemo","$eb2240fc39a57fa5$export$bf788dd355e3a401","children","items","collection","nodes"],"mappings":";;AAeA,SAASA,EAA0CC,GAAOC,GAASC,GAAS;AACxE,MAAIC,IAAcC,EAAgB,MAAI,IAAQC,EAAyC,GAAK,CAAA,CAAE,GAC1F,EAAE,UAAUC,GAAU,OAAOC,GAAO,YAAYC,EAAY,IAAGR;AAgBnE,SAfiBI,EAAgB,MAAI;AACjC,QAAII,EAAY,QAAOA;AACvB,QAAIC,IAAQN,EAAQ,MAAM;AAAA,MACtB,UAAUG;AAAA,MACV,OAAOC;AAAA,IACV,GAAEL,CAAO;AACV,WAAOD,EAAQQ,CAAK;AAAA,EAC5B,GAAO;AAAA,IACCN;AAAA,IACAG;AAAA,IACAC;AAAA,IACAC;AAAA,IACAN;AAAA,IACAD;AAAA,EACR,CAAK;AAEL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),A={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},h={...A,customError:!0,valid:!1},s={isInvalid:!1,validationDetails:A,validationErrors:[]},x=r.createContext({}),y="__formValidationState"+Date.now();function R(e){if(e[y]){let{realtimeValidation:a,displayValidation:i,updateValidation:l,resetValidation:d,commitValidation:n}=e[y];return{realtimeValidation:a,displayValidation:i,updateValidation:l,resetValidation:d,commitValidation:n}}return F(e)}function F(e){let{isInvalid:a,validationState:i,name:l,value:d,builtinValidation:n,validate:f,validationBehavior:u="aria"}=e;i&&(a||(a=i==="invalid"));let v=a!==void 0?{isInvalid:a,validationErrors:[],validationDetails:h}:null,V=r.useMemo(()=>{if(!f||d==null)return null;let t=U(f,d);return T(t)},[f,d]);n!=null&&n.validationDetails.valid&&(n=void 0);let o=r.useContext(x),D=r.useMemo(()=>l?Array.isArray(l)?l.flatMap(t=>I(o[t])):I(o[l]):[],[o,l]),[C,L]=r.useState(o),[g,m]=r.useState(!1);o!==C&&(L(o),m(!1));let $=r.useMemo(()=>T(g?[]:D),[g,D]),M=r.useRef(s),[b,E]=r.useState(s),c=r.useRef(s),_=()=>{if(!O)return;p(!1);let t=V||n||M.current;S(t,c.current)||(c.current=t,E(t))},[O,p]=r.useState(!1);return r.useEffect(_),{realtimeValidation:v||$||V||n||s,displayValidation:u==="native"?v||$||b:v||$||V||n||b,updateValidation(t){u==="aria"&&!S(b,t)?E(t):M.current=t},resetValidation(){let t=s;S(t,c.current)||(c.current=t,E(t)),u==="native"&&p(!1),m(!0)},commitValidation(){u==="native"&&p(!0),m(!0)}}}function I(e){return e?Array.isArray(e)?e:[e]:[]}function U(e,a){if(typeof e=="function"){let i=e(a);if(i&&typeof i!="boolean")return I(i)}return[]}function T(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:h}:null}function S(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((i,l)=>i===a.validationErrors[l])&&Object.entries(e.validationDetails).every(([i,l])=>a.validationDetails[i]===l)}exports.DEFAULT_VALIDATION_RESULT=s;exports.FormValidationContext=x;exports.VALID_VALIDITY_STATE=A;exports.privateValidationStateProp=y;exports.useFormValidationState=R;
|
|
2
|
+
//# sourceMappingURL=useFormValidationState.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormValidationState.cjs.js","sources":["../../../../../node_modules/@react-stately/form/dist/useFormValidationState.mjs"],"sourcesContent":["import {createContext as $69F46$createContext, useMemo as $69F46$useMemo, useContext as $69F46$useContext, useState as $69F46$useState, useRef as $69F46$useRef, useEffect as $69F46$useEffect} from \"react\";\n\n/*\n * Copyright 2023 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 */ \nconst $e5be200c675c3b3a$export$aca958c65c314e6c = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valueMissing: false,\n valid: true\n};\nconst $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c,\n customError: true,\n valid: false\n};\nconst $e5be200c675c3b3a$export$dad6ae84456c676a = {\n isInvalid: false,\n validationDetails: $e5be200c675c3b3a$export$aca958c65c314e6c,\n validationErrors: []\n};\nconst $e5be200c675c3b3a$export$571b5131b7e65c11 = (0, $69F46$createContext)({});\nconst $e5be200c675c3b3a$export$a763b9476acd3eb = '__formValidationState' + Date.now();\nfunction $e5be200c675c3b3a$export$fc1a364ae1f3ff10(props) {\n // Private prop for parent components to pass state to children.\n if (props[$e5be200c675c3b3a$export$a763b9476acd3eb]) {\n let { realtimeValidation: realtimeValidation, displayValidation: displayValidation, updateValidation: updateValidation, resetValidation: resetValidation, commitValidation: commitValidation } = props[$e5be200c675c3b3a$export$a763b9476acd3eb];\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation: updateValidation,\n resetValidation: resetValidation,\n commitValidation: commitValidation\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return $e5be200c675c3b3a$var$useFormValidationStateImpl(props);\n}\nfunction $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {\n let { isInvalid: isInvalid, validationState: validationState, name: name, value: value, builtinValidation: builtinValidation, validate: validate, validationBehavior: validationBehavior = 'aria' } = props;\n // backward compatibility.\n if (validationState) isInvalid || (isInvalid = validationState === 'invalid');\n // If the isInvalid prop is controlled, update validation result in realtime.\n let controlledError = isInvalid !== undefined ? {\n isInvalid: isInvalid,\n validationErrors: [],\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n // Perform custom client side validation.\n let clientError = (0, $69F46$useMemo)(()=>{\n if (!validate || value == null) return null;\n let validateErrors = $e5be200c675c3b3a$var$runValidate(validate, value);\n return $e5be200c675c3b3a$var$getValidationResult(validateErrors);\n }, [\n validate,\n value\n ]);\n if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = undefined;\n // Get relevant server errors from the form.\n let serverErrors = (0, $69F46$useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);\n let serverErrorMessages = (0, $69F46$useMemo)(()=>{\n if (name) return Array.isArray(name) ? name.flatMap((name)=>$e5be200c675c3b3a$var$asArray(serverErrors[name])) : $e5be200c675c3b3a$var$asArray(serverErrors[name]);\n return [];\n }, [\n serverErrors,\n name\n ]);\n // Show server errors when the form gets a new value, and clear when the user changes the value.\n let [lastServerErrors, setLastServerErrors] = (0, $69F46$useState)(serverErrors);\n let [isServerErrorCleared, setServerErrorCleared] = (0, $69F46$useState)(false);\n if (serverErrors !== lastServerErrors) {\n setLastServerErrors(serverErrors);\n setServerErrorCleared(false);\n }\n let serverError = (0, $69F46$useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult(isServerErrorCleared ? [] : serverErrorMessages), [\n isServerErrorCleared,\n serverErrorMessages\n ]);\n // Track the next validation state in a ref until commitValidation is called.\n let nextValidation = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let [currentValidity, setCurrentValidity] = (0, $69F46$useState)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let lastError = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let commitValidation = ()=>{\n if (!commitQueued) return;\n setCommitQueued(false);\n let error = clientError || builtinValidation || nextValidation.current;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n };\n let [commitQueued, setCommitQueued] = (0, $69F46$useState)(false);\n (0, $69F46$useEffect)(commitValidation);\n // realtimeValidation is used to update the native input element's state based on custom validation logic.\n // displayValidation is the currently displayed validation state that the user sees (e.g. on input change/form submit).\n // With validationBehavior=\"aria\", all errors are displayed in realtime rather than on submit.\n let realtimeValidation = controlledError || serverError || clientError || builtinValidation || $e5be200c675c3b3a$export$dad6ae84456c676a;\n let displayValidation = validationBehavior === 'native' ? controlledError || serverError || currentValidity : controlledError || serverError || clientError || builtinValidation || currentValidity;\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation (value) {\n // If validationBehavior is 'aria', update in realtime. Otherwise, store in a ref until commit.\n if (validationBehavior === 'aria' && !$e5be200c675c3b3a$var$isEqualValidation(currentValidity, value)) setCurrentValidity(value);\n else nextValidation.current = value;\n },\n resetValidation () {\n // Update the currently displayed validation state to valid on form reset,\n // even if the native validity says it isn't. It'll show again on the next form submit.\n let error = $e5be200c675c3b3a$export$dad6ae84456c676a;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n // Do not commit validation after the next render. This avoids a condition where\n // useSelect calls commitValidation inside an onReset handler.\n if (validationBehavior === 'native') setCommitQueued(false);\n setServerErrorCleared(true);\n },\n commitValidation () {\n // Commit validation state so the user sees it on blur/change/submit. Also clear any server errors.\n // Wait until after the next render to commit so that the latest value has been validated.\n if (validationBehavior === 'native') setCommitQueued(true);\n setServerErrorCleared(true);\n }\n };\n}\nfunction $e5be200c675c3b3a$var$asArray(v) {\n if (!v) return [];\n return Array.isArray(v) ? v : [\n v\n ];\n}\nfunction $e5be200c675c3b3a$var$runValidate(validate, value) {\n if (typeof validate === 'function') {\n let e = validate(value);\n if (e && typeof e !== 'boolean') return $e5be200c675c3b3a$var$asArray(e);\n }\n return [];\n}\nfunction $e5be200c675c3b3a$var$getValidationResult(errors) {\n return errors.length ? {\n isInvalid: true,\n validationErrors: errors,\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n}\nfunction $e5be200c675c3b3a$var$isEqualValidation(a, b) {\n if (a === b) return true;\n return !!a && !!b && a.isInvalid === b.isInvalid && a.validationErrors.length === b.validationErrors.length && a.validationErrors.every((a, i)=>a === b.validationErrors[i]) && Object.entries(a.validationDetails).every(([k, v])=>b.validationDetails[k] === v);\n}\nfunction $e5be200c675c3b3a$export$75ee7c75d68f5b0e(...results) {\n let errors = new Set();\n let isInvalid = false;\n let validationDetails = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c\n };\n for (let v of results){\n var _validationDetails, _key;\n for (let e of v.validationErrors)errors.add(e);\n // Only these properties apply for checkboxes.\n isInvalid || (isInvalid = v.isInvalid);\n for(let key in validationDetails)(_validationDetails = validationDetails)[_key = key] || (_validationDetails[_key] = v.validationDetails[key]);\n }\n validationDetails.valid = !isInvalid;\n return {\n isInvalid: isInvalid,\n validationErrors: [\n ...errors\n ],\n validationDetails: validationDetails\n };\n}\n\n\nexport {$e5be200c675c3b3a$export$aca958c65c314e6c as VALID_VALIDITY_STATE, $e5be200c675c3b3a$export$dad6ae84456c676a as DEFAULT_VALIDATION_RESULT, $e5be200c675c3b3a$export$571b5131b7e65c11 as FormValidationContext, $e5be200c675c3b3a$export$a763b9476acd3eb as privateValidationStateProp, $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as useFormValidationState, $e5be200c675c3b3a$export$75ee7c75d68f5b0e as mergeValidation};\n//# sourceMappingURL=useFormValidationState.module.js.map\n"],"names":["$e5be200c675c3b3a$export$aca958c65c314e6c","$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE","$e5be200c675c3b3a$export$dad6ae84456c676a","$e5be200c675c3b3a$export$571b5131b7e65c11","$69F46$createContext","$e5be200c675c3b3a$export$a763b9476acd3eb","$e5be200c675c3b3a$export$fc1a364ae1f3ff10","props","realtimeValidation","displayValidation","updateValidation","resetValidation","commitValidation","$e5be200c675c3b3a$var$useFormValidationStateImpl","isInvalid","validationState","name","value","builtinValidation","validate","validationBehavior","controlledError","clientError","$69F46$useMemo","validateErrors","$e5be200c675c3b3a$var$runValidate","$e5be200c675c3b3a$var$getValidationResult","serverErrors","$69F46$useContext","serverErrorMessages","$e5be200c675c3b3a$var$asArray","lastServerErrors","setLastServerErrors","$69F46$useState","isServerErrorCleared","setServerErrorCleared","serverError","nextValidation","$69F46$useRef","currentValidity","setCurrentValidity","lastError","commitQueued","setCommitQueued","error","$e5be200c675c3b3a$var$isEqualValidation","$69F46$useEffect","v","e","errors","a","b","i","k"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { createContext as U, useMemo as y, useContext as w, useState as c, useRef as T, useEffect as R } from "react";
|
|
2
|
+
const C = {
|
|
3
|
+
badInput: !1,
|
|
4
|
+
customError: !1,
|
|
5
|
+
patternMismatch: !1,
|
|
6
|
+
rangeOverflow: !1,
|
|
7
|
+
rangeUnderflow: !1,
|
|
8
|
+
stepMismatch: !1,
|
|
9
|
+
tooLong: !1,
|
|
10
|
+
tooShort: !1,
|
|
11
|
+
typeMismatch: !1,
|
|
12
|
+
valueMissing: !1,
|
|
13
|
+
valid: !0
|
|
14
|
+
}, L = {
|
|
15
|
+
...C,
|
|
16
|
+
customError: !0,
|
|
17
|
+
valid: !1
|
|
18
|
+
}, d = {
|
|
19
|
+
isInvalid: !1,
|
|
20
|
+
validationDetails: C,
|
|
21
|
+
validationErrors: []
|
|
22
|
+
}, B = U({}), g = "__formValidationState" + Date.now();
|
|
23
|
+
function P(a) {
|
|
24
|
+
if (a[g]) {
|
|
25
|
+
let { realtimeValidation: e, displayValidation: i, updateValidation: r, resetValidation: o, commitValidation: l } = a[g];
|
|
26
|
+
return {
|
|
27
|
+
realtimeValidation: e,
|
|
28
|
+
displayValidation: i,
|
|
29
|
+
updateValidation: r,
|
|
30
|
+
resetValidation: o,
|
|
31
|
+
commitValidation: l
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return Q(a);
|
|
35
|
+
}
|
|
36
|
+
function Q(a) {
|
|
37
|
+
let { isInvalid: e, validationState: i, name: r, value: o, builtinValidation: l, validate: f, validationBehavior: s = "aria" } = a;
|
|
38
|
+
i && (e || (e = i === "invalid"));
|
|
39
|
+
let v = e !== void 0 ? {
|
|
40
|
+
isInvalid: e,
|
|
41
|
+
validationErrors: [],
|
|
42
|
+
validationDetails: L
|
|
43
|
+
} : null, V = y(() => {
|
|
44
|
+
if (!f || o == null) return null;
|
|
45
|
+
let t = Y(f, o);
|
|
46
|
+
return h(t);
|
|
47
|
+
}, [
|
|
48
|
+
f,
|
|
49
|
+
o
|
|
50
|
+
]);
|
|
51
|
+
l != null && l.validationDetails.valid && (l = void 0);
|
|
52
|
+
let n = w(B), A = y(() => r ? Array.isArray(r) ? r.flatMap((t) => S(n[t])) : S(n[r]) : [], [
|
|
53
|
+
n,
|
|
54
|
+
r
|
|
55
|
+
]), [M, _] = c(n), [D, m] = c(!1);
|
|
56
|
+
n !== M && (_(n), m(!1));
|
|
57
|
+
let $ = y(() => h(D ? [] : A), [
|
|
58
|
+
D,
|
|
59
|
+
A
|
|
60
|
+
]), x = T(d), [b, E] = c(d), u = T(d), F = () => {
|
|
61
|
+
if (!O) return;
|
|
62
|
+
p(!1);
|
|
63
|
+
let t = V || l || x.current;
|
|
64
|
+
I(t, u.current) || (u.current = t, E(t));
|
|
65
|
+
}, [O, p] = c(!1);
|
|
66
|
+
return R(F), {
|
|
67
|
+
realtimeValidation: v || $ || V || l || d,
|
|
68
|
+
displayValidation: s === "native" ? v || $ || b : v || $ || V || l || b,
|
|
69
|
+
updateValidation(t) {
|
|
70
|
+
s === "aria" && !I(b, t) ? E(t) : x.current = t;
|
|
71
|
+
},
|
|
72
|
+
resetValidation() {
|
|
73
|
+
let t = d;
|
|
74
|
+
I(t, u.current) || (u.current = t, E(t)), s === "native" && p(!1), m(!0);
|
|
75
|
+
},
|
|
76
|
+
commitValidation() {
|
|
77
|
+
s === "native" && p(!0), m(!0);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function S(a) {
|
|
82
|
+
return a ? Array.isArray(a) ? a : [
|
|
83
|
+
a
|
|
84
|
+
] : [];
|
|
85
|
+
}
|
|
86
|
+
function Y(a, e) {
|
|
87
|
+
if (typeof a == "function") {
|
|
88
|
+
let i = a(e);
|
|
89
|
+
if (i && typeof i != "boolean") return S(i);
|
|
90
|
+
}
|
|
91
|
+
return [];
|
|
92
|
+
}
|
|
93
|
+
function h(a) {
|
|
94
|
+
return a.length ? {
|
|
95
|
+
isInvalid: !0,
|
|
96
|
+
validationErrors: a,
|
|
97
|
+
validationDetails: L
|
|
98
|
+
} : null;
|
|
99
|
+
}
|
|
100
|
+
function I(a, e) {
|
|
101
|
+
return a === e ? !0 : !!a && !!e && a.isInvalid === e.isInvalid && a.validationErrors.length === e.validationErrors.length && a.validationErrors.every((i, r) => i === e.validationErrors[r]) && Object.entries(a.validationDetails).every(([i, r]) => e.validationDetails[i] === r);
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
d as DEFAULT_VALIDATION_RESULT,
|
|
105
|
+
B as FormValidationContext,
|
|
106
|
+
C as VALID_VALIDITY_STATE,
|
|
107
|
+
g as privateValidationStateProp,
|
|
108
|
+
P as useFormValidationState
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=useFormValidationState.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormValidationState.es.js","sources":["../../../../../node_modules/@react-stately/form/dist/useFormValidationState.mjs"],"sourcesContent":["import {createContext as $69F46$createContext, useMemo as $69F46$useMemo, useContext as $69F46$useContext, useState as $69F46$useState, useRef as $69F46$useRef, useEffect as $69F46$useEffect} from \"react\";\n\n/*\n * Copyright 2023 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 */ \nconst $e5be200c675c3b3a$export$aca958c65c314e6c = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valueMissing: false,\n valid: true\n};\nconst $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c,\n customError: true,\n valid: false\n};\nconst $e5be200c675c3b3a$export$dad6ae84456c676a = {\n isInvalid: false,\n validationDetails: $e5be200c675c3b3a$export$aca958c65c314e6c,\n validationErrors: []\n};\nconst $e5be200c675c3b3a$export$571b5131b7e65c11 = (0, $69F46$createContext)({});\nconst $e5be200c675c3b3a$export$a763b9476acd3eb = '__formValidationState' + Date.now();\nfunction $e5be200c675c3b3a$export$fc1a364ae1f3ff10(props) {\n // Private prop for parent components to pass state to children.\n if (props[$e5be200c675c3b3a$export$a763b9476acd3eb]) {\n let { realtimeValidation: realtimeValidation, displayValidation: displayValidation, updateValidation: updateValidation, resetValidation: resetValidation, commitValidation: commitValidation } = props[$e5be200c675c3b3a$export$a763b9476acd3eb];\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation: updateValidation,\n resetValidation: resetValidation,\n commitValidation: commitValidation\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return $e5be200c675c3b3a$var$useFormValidationStateImpl(props);\n}\nfunction $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {\n let { isInvalid: isInvalid, validationState: validationState, name: name, value: value, builtinValidation: builtinValidation, validate: validate, validationBehavior: validationBehavior = 'aria' } = props;\n // backward compatibility.\n if (validationState) isInvalid || (isInvalid = validationState === 'invalid');\n // If the isInvalid prop is controlled, update validation result in realtime.\n let controlledError = isInvalid !== undefined ? {\n isInvalid: isInvalid,\n validationErrors: [],\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n // Perform custom client side validation.\n let clientError = (0, $69F46$useMemo)(()=>{\n if (!validate || value == null) return null;\n let validateErrors = $e5be200c675c3b3a$var$runValidate(validate, value);\n return $e5be200c675c3b3a$var$getValidationResult(validateErrors);\n }, [\n validate,\n value\n ]);\n if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = undefined;\n // Get relevant server errors from the form.\n let serverErrors = (0, $69F46$useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);\n let serverErrorMessages = (0, $69F46$useMemo)(()=>{\n if (name) return Array.isArray(name) ? name.flatMap((name)=>$e5be200c675c3b3a$var$asArray(serverErrors[name])) : $e5be200c675c3b3a$var$asArray(serverErrors[name]);\n return [];\n }, [\n serverErrors,\n name\n ]);\n // Show server errors when the form gets a new value, and clear when the user changes the value.\n let [lastServerErrors, setLastServerErrors] = (0, $69F46$useState)(serverErrors);\n let [isServerErrorCleared, setServerErrorCleared] = (0, $69F46$useState)(false);\n if (serverErrors !== lastServerErrors) {\n setLastServerErrors(serverErrors);\n setServerErrorCleared(false);\n }\n let serverError = (0, $69F46$useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult(isServerErrorCleared ? [] : serverErrorMessages), [\n isServerErrorCleared,\n serverErrorMessages\n ]);\n // Track the next validation state in a ref until commitValidation is called.\n let nextValidation = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let [currentValidity, setCurrentValidity] = (0, $69F46$useState)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let lastError = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let commitValidation = ()=>{\n if (!commitQueued) return;\n setCommitQueued(false);\n let error = clientError || builtinValidation || nextValidation.current;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n };\n let [commitQueued, setCommitQueued] = (0, $69F46$useState)(false);\n (0, $69F46$useEffect)(commitValidation);\n // realtimeValidation is used to update the native input element's state based on custom validation logic.\n // displayValidation is the currently displayed validation state that the user sees (e.g. on input change/form submit).\n // With validationBehavior=\"aria\", all errors are displayed in realtime rather than on submit.\n let realtimeValidation = controlledError || serverError || clientError || builtinValidation || $e5be200c675c3b3a$export$dad6ae84456c676a;\n let displayValidation = validationBehavior === 'native' ? controlledError || serverError || currentValidity : controlledError || serverError || clientError || builtinValidation || currentValidity;\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation (value) {\n // If validationBehavior is 'aria', update in realtime. Otherwise, store in a ref until commit.\n if (validationBehavior === 'aria' && !$e5be200c675c3b3a$var$isEqualValidation(currentValidity, value)) setCurrentValidity(value);\n else nextValidation.current = value;\n },\n resetValidation () {\n // Update the currently displayed validation state to valid on form reset,\n // even if the native validity says it isn't. It'll show again on the next form submit.\n let error = $e5be200c675c3b3a$export$dad6ae84456c676a;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n // Do not commit validation after the next render. This avoids a condition where\n // useSelect calls commitValidation inside an onReset handler.\n if (validationBehavior === 'native') setCommitQueued(false);\n setServerErrorCleared(true);\n },\n commitValidation () {\n // Commit validation state so the user sees it on blur/change/submit. Also clear any server errors.\n // Wait until after the next render to commit so that the latest value has been validated.\n if (validationBehavior === 'native') setCommitQueued(true);\n setServerErrorCleared(true);\n }\n };\n}\nfunction $e5be200c675c3b3a$var$asArray(v) {\n if (!v) return [];\n return Array.isArray(v) ? v : [\n v\n ];\n}\nfunction $e5be200c675c3b3a$var$runValidate(validate, value) {\n if (typeof validate === 'function') {\n let e = validate(value);\n if (e && typeof e !== 'boolean') return $e5be200c675c3b3a$var$asArray(e);\n }\n return [];\n}\nfunction $e5be200c675c3b3a$var$getValidationResult(errors) {\n return errors.length ? {\n isInvalid: true,\n validationErrors: errors,\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n}\nfunction $e5be200c675c3b3a$var$isEqualValidation(a, b) {\n if (a === b) return true;\n return !!a && !!b && a.isInvalid === b.isInvalid && a.validationErrors.length === b.validationErrors.length && a.validationErrors.every((a, i)=>a === b.validationErrors[i]) && Object.entries(a.validationDetails).every(([k, v])=>b.validationDetails[k] === v);\n}\nfunction $e5be200c675c3b3a$export$75ee7c75d68f5b0e(...results) {\n let errors = new Set();\n let isInvalid = false;\n let validationDetails = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c\n };\n for (let v of results){\n var _validationDetails, _key;\n for (let e of v.validationErrors)errors.add(e);\n // Only these properties apply for checkboxes.\n isInvalid || (isInvalid = v.isInvalid);\n for(let key in validationDetails)(_validationDetails = validationDetails)[_key = key] || (_validationDetails[_key] = v.validationDetails[key]);\n }\n validationDetails.valid = !isInvalid;\n return {\n isInvalid: isInvalid,\n validationErrors: [\n ...errors\n ],\n validationDetails: validationDetails\n };\n}\n\n\nexport {$e5be200c675c3b3a$export$aca958c65c314e6c as VALID_VALIDITY_STATE, $e5be200c675c3b3a$export$dad6ae84456c676a as DEFAULT_VALIDATION_RESULT, $e5be200c675c3b3a$export$571b5131b7e65c11 as FormValidationContext, $e5be200c675c3b3a$export$a763b9476acd3eb as privateValidationStateProp, $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as useFormValidationState, $e5be200c675c3b3a$export$75ee7c75d68f5b0e as mergeValidation};\n//# sourceMappingURL=useFormValidationState.module.js.map\n"],"names":["$e5be200c675c3b3a$export$aca958c65c314e6c","$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE","$e5be200c675c3b3a$export$dad6ae84456c676a","$e5be200c675c3b3a$export$571b5131b7e65c11","$69F46$createContext","$e5be200c675c3b3a$export$a763b9476acd3eb","$e5be200c675c3b3a$export$fc1a364ae1f3ff10","props","realtimeValidation","displayValidation","updateValidation","resetValidation","commitValidation","$e5be200c675c3b3a$var$useFormValidationStateImpl","isInvalid","validationState","name","value","builtinValidation","validate","validationBehavior","controlledError","clientError","$69F46$useMemo","validateErrors","$e5be200c675c3b3a$var$runValidate","$e5be200c675c3b3a$var$getValidationResult","serverErrors","$69F46$useContext","serverErrorMessages","$e5be200c675c3b3a$var$asArray","lastServerErrors","setLastServerErrors","$69F46$useState","isServerErrorCleared","setServerErrorCleared","serverError","nextValidation","$69F46$useRef","currentValidity","setCurrentValidity","lastError","commitQueued","setCommitQueued","error","$e5be200c675c3b3a$var$isEqualValidation","$69F46$useEffect","v","e","errors","b","a","i","k"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class y{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(l){let e=this.keyMap.get(l);var t;return e&&(t=e.prevKey)!==null&&t!==void 0?t:null}getKeyAfter(l){let e=this.keyMap.get(l);var t;return e&&(t=e.nextKey)!==null&&t!==void 0?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(l){var e;return(e=this.keyMap.get(l))!==null&&e!==void 0?e:null}at(l){const e=[...this.getKeys()];return this.getItem(e[l])}getChildren(l){let e=this.keyMap.get(l);return(e==null?void 0:e.childNodes)||[]}constructor(l){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=l;let e=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let s of i.childNodes)e(s)};for(let i of l)e(i);let t=null,n=0;for(let[i,s]of this.keyMap)t?(t.nextKey=i,s.prevKey=t.key):(this.firstKey=i,s.prevKey=void 0),s.type==="item"&&(s.index=n++),t=s,t.nextKey=void 0;var r;this.lastKey=(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}}exports.ListCollection=y;
|
|
2
|
+
//# sourceMappingURL=ListCollection.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListCollection.cjs.js","sources":["../../../../../node_modules/@react-stately/list/dist/ListCollection.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $a02d57049d202695$export$d085fb9e920b5ca7 {\n *[Symbol.iterator]() {\n yield* this.iterable;\n }\n get size() {\n return this.keyMap.size;\n }\n getKeys() {\n return this.keyMap.keys();\n }\n getKeyBefore(key) {\n let node = this.keyMap.get(key);\n var _node_prevKey;\n return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;\n }\n getKeyAfter(key) {\n let node = this.keyMap.get(key);\n var _node_nextKey;\n return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;\n }\n getFirstKey() {\n return this.firstKey;\n }\n getLastKey() {\n return this.lastKey;\n }\n getItem(key) {\n var _this_keyMap_get;\n return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;\n }\n at(idx) {\n const keys = [\n ...this.getKeys()\n ];\n return this.getItem(keys[idx]);\n }\n getChildren(key) {\n let node = this.keyMap.get(key);\n return (node === null || node === void 0 ? void 0 : node.childNodes) || [];\n }\n constructor(nodes){\n this.keyMap = new Map();\n this.firstKey = null;\n this.lastKey = null;\n this.iterable = nodes;\n let visit = (node)=>{\n this.keyMap.set(node.key, node);\n if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);\n };\n for (let node of nodes)visit(node);\n let last = null;\n let index = 0;\n for (let [key, node] of this.keyMap){\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n if (node.type === 'item') node.index = index++;\n last = node;\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n var _last_key;\n this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;\n }\n}\n\n\nexport {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};\n//# sourceMappingURL=ListCollection.module.js.map\n"],"names":["$a02d57049d202695$export$d085fb9e920b5ca7","key","node","_node_prevKey","_node_nextKey","_this_keyMap_get","idx","keys","nodes","visit","child","last","index","_last_key"],"mappings":"gFAUI,MAAMA,CAA0C,CAChD,EAAE,OAAO,QAAQ,GAAI,CACjB,MAAO,KAAK,QACf,CACD,IAAI,MAAO,CACP,OAAO,KAAK,OAAO,IACtB,CACD,SAAU,CACN,OAAO,KAAK,OAAO,MACtB,CACD,aAAaC,EAAK,CACd,IAAIC,EAAO,KAAK,OAAO,IAAID,CAAG,EAC9B,IAAIE,EACJ,OAAOD,IAAQC,EAAgBD,EAAK,WAAa,MAAQC,IAAkB,OAASA,EAAuB,IAC9G,CACD,YAAYF,EAAK,CACb,IAAIC,EAAO,KAAK,OAAO,IAAID,CAAG,EAC9B,IAAIG,EACJ,OAAOF,IAAQE,EAAgBF,EAAK,WAAa,MAAQE,IAAkB,OAASA,EAAuB,IAC9G,CACD,aAAc,CACV,OAAO,KAAK,QACf,CACD,YAAa,CACT,OAAO,KAAK,OACf,CACD,QAAQH,EAAK,CACT,IAAII,EACJ,OAAQA,EAAmB,KAAK,OAAO,IAAIJ,CAAG,KAAO,MAAQI,IAAqB,OAASA,EAAmB,IACjH,CACD,GAAGC,EAAK,CACJ,MAAMC,EAAO,CACT,GAAG,KAAK,QAAS,CAC7B,EACQ,OAAO,KAAK,QAAQA,EAAKD,CAAG,CAAC,CAChC,CACD,YAAYL,EAAK,CACb,IAAIC,EAAO,KAAK,OAAO,IAAID,CAAG,EAC9B,OAAQC,GAAS,KAA0B,OAASA,EAAK,aAAe,EAC3E,CACD,YAAYM,EAAM,CACd,KAAK,OAAS,IAAI,IAClB,KAAK,SAAW,KAChB,KAAK,QAAU,KACf,KAAK,SAAWA,EAChB,IAAIC,EAASP,GAAO,CAEhB,GADA,KAAK,OAAO,IAAIA,EAAK,IAAKA,CAAI,EAC1BA,EAAK,YAAcA,EAAK,OAAS,UAAW,QAASQ,KAASR,EAAK,WAAWO,EAAMC,CAAK,CACzG,EACQ,QAASR,KAAQM,EAAMC,EAAMP,CAAI,EACjC,IAAIS,EAAO,KACPC,EAAQ,EACZ,OAAS,CAACX,EAAKC,CAAI,IAAK,KAAK,OACrBS,GACAA,EAAK,QAAUV,EACfC,EAAK,QAAUS,EAAK,MAEpB,KAAK,SAAWV,EAChBC,EAAK,QAAU,QAEfA,EAAK,OAAS,SAAQA,EAAK,MAAQU,KACvCD,EAAOT,EAGPS,EAAK,QAAU,OAEnB,IAAIE,EACJ,KAAK,SAAWA,EAAYF,GAAS,KAA0B,OAASA,EAAK,OAAS,MAAQE,IAAc,OAASA,EAAY,IACpI,CACL","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
class o {
|
|
2
|
+
*[Symbol.iterator]() {
|
|
3
|
+
yield* this.iterable;
|
|
4
|
+
}
|
|
5
|
+
get size() {
|
|
6
|
+
return this.keyMap.size;
|
|
7
|
+
}
|
|
8
|
+
getKeys() {
|
|
9
|
+
return this.keyMap.keys();
|
|
10
|
+
}
|
|
11
|
+
getKeyBefore(l) {
|
|
12
|
+
let e = this.keyMap.get(l);
|
|
13
|
+
var t;
|
|
14
|
+
return e && (t = e.prevKey) !== null && t !== void 0 ? t : null;
|
|
15
|
+
}
|
|
16
|
+
getKeyAfter(l) {
|
|
17
|
+
let e = this.keyMap.get(l);
|
|
18
|
+
var t;
|
|
19
|
+
return e && (t = e.nextKey) !== null && t !== void 0 ? t : null;
|
|
20
|
+
}
|
|
21
|
+
getFirstKey() {
|
|
22
|
+
return this.firstKey;
|
|
23
|
+
}
|
|
24
|
+
getLastKey() {
|
|
25
|
+
return this.lastKey;
|
|
26
|
+
}
|
|
27
|
+
getItem(l) {
|
|
28
|
+
var e;
|
|
29
|
+
return (e = this.keyMap.get(l)) !== null && e !== void 0 ? e : null;
|
|
30
|
+
}
|
|
31
|
+
at(l) {
|
|
32
|
+
const e = [
|
|
33
|
+
...this.getKeys()
|
|
34
|
+
];
|
|
35
|
+
return this.getItem(e[l]);
|
|
36
|
+
}
|
|
37
|
+
getChildren(l) {
|
|
38
|
+
let e = this.keyMap.get(l);
|
|
39
|
+
return (e == null ? void 0 : e.childNodes) || [];
|
|
40
|
+
}
|
|
41
|
+
constructor(l) {
|
|
42
|
+
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = l;
|
|
43
|
+
let e = (i) => {
|
|
44
|
+
if (this.keyMap.set(i.key, i), i.childNodes && i.type === "section") for (let s of i.childNodes) e(s);
|
|
45
|
+
};
|
|
46
|
+
for (let i of l) e(i);
|
|
47
|
+
let t = null, n = 0;
|
|
48
|
+
for (let [i, s] of this.keyMap)
|
|
49
|
+
t ? (t.nextKey = i, s.prevKey = t.key) : (this.firstKey = i, s.prevKey = void 0), s.type === "item" && (s.index = n++), t = s, t.nextKey = void 0;
|
|
50
|
+
var r;
|
|
51
|
+
this.lastKey = (r = t == null ? void 0 : t.key) !== null && r !== void 0 ? r : null;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
o as ListCollection
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=ListCollection.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListCollection.es.js","sources":["../../../../../node_modules/@react-stately/list/dist/ListCollection.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $a02d57049d202695$export$d085fb9e920b5ca7 {\n *[Symbol.iterator]() {\n yield* this.iterable;\n }\n get size() {\n return this.keyMap.size;\n }\n getKeys() {\n return this.keyMap.keys();\n }\n getKeyBefore(key) {\n let node = this.keyMap.get(key);\n var _node_prevKey;\n return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;\n }\n getKeyAfter(key) {\n let node = this.keyMap.get(key);\n var _node_nextKey;\n return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;\n }\n getFirstKey() {\n return this.firstKey;\n }\n getLastKey() {\n return this.lastKey;\n }\n getItem(key) {\n var _this_keyMap_get;\n return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;\n }\n at(idx) {\n const keys = [\n ...this.getKeys()\n ];\n return this.getItem(keys[idx]);\n }\n getChildren(key) {\n let node = this.keyMap.get(key);\n return (node === null || node === void 0 ? void 0 : node.childNodes) || [];\n }\n constructor(nodes){\n this.keyMap = new Map();\n this.firstKey = null;\n this.lastKey = null;\n this.iterable = nodes;\n let visit = (node)=>{\n this.keyMap.set(node.key, node);\n if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);\n };\n for (let node of nodes)visit(node);\n let last = null;\n let index = 0;\n for (let [key, node] of this.keyMap){\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n if (node.type === 'item') node.index = index++;\n last = node;\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n var _last_key;\n this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;\n }\n}\n\n\nexport {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};\n//# sourceMappingURL=ListCollection.module.js.map\n"],"names":["$a02d57049d202695$export$d085fb9e920b5ca7","key","node","_node_prevKey","_node_nextKey","_this_keyMap_get","idx","keys","nodes","visit","child","last","index","_last_key"],"mappings":"AAUI,MAAMA,EAA0C;AAAA,EAChD,EAAE,OAAO,QAAQ,IAAI;AACjB,WAAO,KAAK;AAAA,EACf;AAAA,EACD,IAAI,OAAO;AACP,WAAO,KAAK,OAAO;AAAA,EACtB;AAAA,EACD,UAAU;AACN,WAAO,KAAK,OAAO;EACtB;AAAA,EACD,aAAaC,GAAK;AACd,QAAIC,IAAO,KAAK,OAAO,IAAID,CAAG;AAC9B,QAAIE;AACJ,WAAOD,MAAQC,IAAgBD,EAAK,aAAa,QAAQC,MAAkB,SAASA,IAAuB;AAAA,EAC9G;AAAA,EACD,YAAYF,GAAK;AACb,QAAIC,IAAO,KAAK,OAAO,IAAID,CAAG;AAC9B,QAAIG;AACJ,WAAOF,MAAQE,IAAgBF,EAAK,aAAa,QAAQE,MAAkB,SAASA,IAAuB;AAAA,EAC9G;AAAA,EACD,cAAc;AACV,WAAO,KAAK;AAAA,EACf;AAAA,EACD,aAAa;AACT,WAAO,KAAK;AAAA,EACf;AAAA,EACD,QAAQH,GAAK;AACT,QAAII;AACJ,YAAQA,IAAmB,KAAK,OAAO,IAAIJ,CAAG,OAAO,QAAQI,MAAqB,SAASA,IAAmB;AAAA,EACjH;AAAA,EACD,GAAGC,GAAK;AACJ,UAAMC,IAAO;AAAA,MACT,GAAG,KAAK,QAAS;AAAA,IAC7B;AACQ,WAAO,KAAK,QAAQA,EAAKD,CAAG,CAAC;AAAA,EAChC;AAAA,EACD,YAAYL,GAAK;AACb,QAAIC,IAAO,KAAK,OAAO,IAAID,CAAG;AAC9B,YAAQC,KAAS,OAA0B,SAASA,EAAK,eAAe;EAC3E;AAAA,EACD,YAAYM,GAAM;AACd,SAAK,SAAS,oBAAI,OAClB,KAAK,WAAW,MAChB,KAAK,UAAU,MACf,KAAK,WAAWA;AAChB,QAAIC,IAAQ,CAACP,MAAO;AAEhB,UADA,KAAK,OAAO,IAAIA,EAAK,KAAKA,CAAI,GAC1BA,EAAK,cAAcA,EAAK,SAAS,UAAW,UAASQ,KAASR,EAAK,WAAW,CAAAO,EAAMC,CAAK;AAAA,IACzG;AACQ,aAASR,KAAQM,EAAM,CAAAC,EAAMP,CAAI;AACjC,QAAIS,IAAO,MACPC,IAAQ;AACZ,aAAS,CAACX,GAAKC,CAAI,KAAK,KAAK;AACzB,MAAIS,KACAA,EAAK,UAAUV,GACfC,EAAK,UAAUS,EAAK,QAEpB,KAAK,WAAWV,GAChBC,EAAK,UAAU,SAEfA,EAAK,SAAS,WAAQA,EAAK,QAAQU,MACvCD,IAAOT,GAGPS,EAAK,UAAU;AAEnB,QAAIE;AACJ,SAAK,WAAWA,IAAYF,KAAS,OAA0B,SAASA,EAAK,SAAS,QAAQE,MAAc,SAASA,IAAY;AAAA,EACpI;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./ListCollection.cjs.js"),C=require("../../selection/dist/useMultipleSelectionState.cjs.js"),M=require("../../selection/dist/SelectionManager.cjs.js"),v=require("react"),m=require("../../collections/dist/useCollection.cjs.js");function q(e){let{filter:t,layoutDelegate:n}=e,c=C.useMultipleSelectionState(e),f=v.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),y=v.useCallback(a=>t?new w.ListCollection(t(a)):new w.ListCollection(a),[t]),S=v.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=m.useCollection(e,y,S),r=v.useMemo(()=>new M.SelectionManager(o,c,{layoutDelegate:n}),[o,c,n]);return k(o,r),{collection:o,disabledKeys:f,selectionManager:r}}function k(e,t){const n=v.useRef(null);v.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const l=n.current.getItem(t.focusedKey),b=[...n.current.getKeys()].map(s=>{const i=n.current.getItem(s);return(i==null?void 0:i.type)==="item"?i:null}).filter(s=>s!==null),u=[...e.getKeys()].map(s=>{const i=e.getItem(s);return(i==null?void 0:i.type)==="item"?i:null}).filter(s=>s!==null);var c,f;const K=((c=b==null?void 0:b.length)!==null&&c!==void 0?c:0)-((f=u==null?void 0:u.length)!==null&&f!==void 0?f:0);var y,S,o;let d=Math.min(K>1?Math.max(((y=l==null?void 0:l.index)!==null&&y!==void 0?y:0)-K+1,0):(S=l==null?void 0:l.index)!==null&&S!==void 0?S:0,((o=u==null?void 0:u.length)!==null&&o!==void 0?o:0)-1),g=null,$=!1;for(;d>=0;){if(!t.isDisabled(u[d].key)){g=u[d];break}if(d<u.length-1&&!$)d++;else{$=!0;var r,a;d>((r=l==null?void 0:l.index)!==null&&r!==void 0?r:0)&&(d=(a=l==null?void 0:l.index)!==null&&a!==void 0?a:0),d--}}t.setFocusedKey(g?g.key:null)}n.current=e},[e,t])}exports.useListState=q;
|
|
2
|
+
//# sourceMappingURL=useListState.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useListState.cjs.js","sources":["../../../../../node_modules/@react-stately/list/dist/useListState.mjs"],"sourcesContent":["import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from \"./ListCollection.mjs\";\nimport {useMultipleSelectionState as $d5vlZ$useMultipleSelectionState, SelectionManager as $d5vlZ$SelectionManager} from \"@react-stately/selection\";\nimport {useMemo as $d5vlZ$useMemo, useCallback as $d5vlZ$useCallback, useRef as $d5vlZ$useRef, useEffect as $d5vlZ$useEffect} from \"react\";\nimport {useCollection as $d5vlZ$useCollection} from \"@react-stately/collections\";\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 $e72dd72e1c76a225$export$2f645645f7bca764(props) {\n let { filter: filter, layoutDelegate: layoutDelegate } = props;\n let selectionState = (0, $d5vlZ$useMultipleSelectionState)(props);\n let disabledKeys = (0, $d5vlZ$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n props.disabledKeys\n ]);\n let factory = (0, $d5vlZ$useCallback)((nodes)=>filter ? new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [\n filter\n ]);\n let context = (0, $d5vlZ$useMemo)(()=>({\n suppressTextValueWarning: props.suppressTextValueWarning\n }), [\n props.suppressTextValueWarning\n ]);\n let collection = (0, $d5vlZ$useCollection)(props, factory, context);\n let selectionManager = (0, $d5vlZ$useMemo)(()=>new (0, $d5vlZ$SelectionManager)(collection, selectionState, {\n layoutDelegate: layoutDelegate\n }), [\n collection,\n selectionState,\n layoutDelegate\n ]);\n $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);\n return {\n collection: collection,\n disabledKeys: disabledKeys,\n selectionManager: selectionManager\n };\n}\nfunction $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(state, filter) {\n let collection = (0, $d5vlZ$useMemo)(()=>filter ? state.collection.UNSTABLE_filter(filter) : state.collection, [\n state.collection,\n filter\n ]);\n let selectionManager = state.selectionManager.withCollection(collection);\n $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);\n return {\n collection: collection,\n selectionManager: selectionManager,\n disabledKeys: state.disabledKeys\n };\n}\nfunction $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager) {\n // Reset focused key if that item is deleted from the collection.\n const cachedCollection = (0, $d5vlZ$useRef)(null);\n (0, $d5vlZ$useEffect)(()=>{\n if (selectionManager.focusedKey != null && !collection.getItem(selectionManager.focusedKey) && cachedCollection.current) {\n const startItem = cachedCollection.current.getItem(selectionManager.focusedKey);\n const cachedItemNodes = [\n ...cachedCollection.current.getKeys()\n ].map((key)=>{\n const itemNode = cachedCollection.current.getItem(key);\n return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n const itemNodes = [\n ...collection.getKeys()\n ].map((key)=>{\n const itemNode = collection.getItem(key);\n return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n var _cachedItemNodes_length, _itemNodes_length;\n const diff = ((_cachedItemNodes_length = cachedItemNodes === null || cachedItemNodes === void 0 ? void 0 : cachedItemNodes.length) !== null && _cachedItemNodes_length !== void 0 ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length !== void 0 ? _itemNodes_length : 0);\n var _startItem_index, _startItem_index1, _itemNodes_length1;\n let index = Math.min(diff > 1 ? Math.max(((_startItem_index = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index !== void 0 ? _startItem_index : 0) - diff + 1, 0) : (_startItem_index1 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index1 !== void 0 ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length1 !== void 0 ? _itemNodes_length1 : 0) - 1);\n let newNode = null;\n let isReverseSearching = false;\n while(index >= 0){\n if (!selectionManager.isDisabled(itemNodes[index].key)) {\n newNode = itemNodes[index];\n break;\n }\n // Find next, not disabled item.\n if (index < itemNodes.length - 1 && !isReverseSearching) index++;\n else {\n isReverseSearching = true;\n var _startItem_index2, _startItem_index3;\n if (index > ((_startItem_index2 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index2 !== void 0 ? _startItem_index2 : 0)) index = (_startItem_index3 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index3 !== void 0 ? _startItem_index3 : 0;\n index--;\n }\n }\n selectionManager.setFocusedKey(newNode ? newNode.key : null);\n }\n cachedCollection.current = collection;\n }, [\n collection,\n selectionManager\n ]);\n}\n\n\nexport {$e72dd72e1c76a225$export$2f645645f7bca764 as useListState, $e72dd72e1c76a225$export$ba9d38c0f1bf2b36 as UNSTABLE_useFilteredListState};\n//# sourceMappingURL=useListState.module.js.map\n"],"names":["$e72dd72e1c76a225$export$2f645645f7bca764","props","filter","layoutDelegate","selectionState","$d5vlZ$useMultipleSelectionState","disabledKeys","$d5vlZ$useMemo","factory","$d5vlZ$useCallback","nodes","$a02d57049d202695$export$d085fb9e920b5ca7","context","collection","$d5vlZ$useCollection","selectionManager","$d5vlZ$SelectionManager","$e72dd72e1c76a225$var$useFocusedKeyReset","cachedCollection","$d5vlZ$useRef","$d5vlZ$useEffect","startItem","cachedItemNodes","key","itemNode","node","itemNodes","_cachedItemNodes_length","_itemNodes_length","diff","_startItem_index","_startItem_index1","_itemNodes_length1","index","newNode","isReverseSearching","_startItem_index2","_startItem_index3"],"mappings":"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","x_google_ignoreList":[0]}
|