@protonradio/proton-ui 0.11.10-beta.3 → 0.11.10
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/README.md +148 -148
- package/dist/{constants/breakpoint.es.js → breakpoint-9y1_8U_b.mjs} +2 -2
- package/dist/breakpoint-9y1_8U_b.mjs.map +1 -0
- package/dist/breakpoint-DtqbboOa.js +2 -0
- package/dist/breakpoint-DtqbboOa.js.map +1 -0
- package/dist/color2k-CpDB_dpw.mjs +168 -0
- package/dist/color2k-CpDB_dpw.mjs.map +1 -0
- package/dist/color2k-DCgwXUem.js +2 -0
- package/dist/color2k-DCgwXUem.js.map +1 -0
- package/dist/{design/colors.es.js → colors-CWaj9dFz.mjs} +7 -7
- package/dist/colors-CWaj9dFz.mjs.map +1 -0
- package/dist/colors-CebzFjpe.js +2 -0
- package/dist/colors-CebzFjpe.js.map +1 -0
- package/dist/{design/darkTheme/colors.es.js → colors-Ceyo4oCJ.mjs} +13 -13
- package/dist/colors-Ceyo4oCJ.mjs.map +1 -0
- package/dist/colors-CmSJBHaf.js +2 -0
- package/dist/colors-CmSJBHaf.js.map +1 -0
- package/dist/colors-DL1dYffC.js +2 -0
- package/dist/colors-DL1dYffC.js.map +1 -0
- package/dist/{design/lightTheme/colors.es.js → colors-DMkDnu4U.mjs} +11 -11
- package/dist/colors-DMkDnu4U.mjs.map +1 -0
- package/dist/constants.cjs.js +1 -1
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js +26 -3
- package/dist/constants.es.js.map +1 -1
- package/dist/dark.cjs.js +1 -1
- package/dist/dark.cjs.js.map +1 -1
- package/dist/dark.es.js +55 -8
- package/dist/dark.es.js.map +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.cjs.js.map +1 -1
- package/dist/hooks.es.js +37 -8
- package/dist/hooks.es.js.map +1 -1
- package/dist/icons.svg +10 -10
- package/dist/image-CUSfY1_T.js +2 -0
- package/dist/image-CUSfY1_T.js.map +1 -0
- package/dist/image-DFyN0Kd9.mjs +207 -0
- package/dist/image-DFyN0Kd9.mjs.map +1 -0
- package/dist/index.cjs.js +36 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +71 -81
- package/dist/index.es.js +5421 -61
- package/dist/index.es.js.map +1 -1
- package/dist/light.cjs.js +1 -1
- package/dist/light.cjs.js.map +1 -1
- package/dist/light.es.js +55 -8
- package/dist/light.es.js.map +1 -1
- package/dist/navigation-BB0MBIiR.js +2 -0
- package/dist/navigation-BB0MBIiR.js.map +1 -0
- package/dist/navigation-Bj7Pex9j.mjs +43 -0
- package/dist/navigation-Bj7Pex9j.mjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.cjs.js.map +1 -1
- package/dist/theme.es.js +15 -9
- package/dist/theme.es.js.map +1 -1
- package/dist/useBreakpoint-CjRyGKN-.mjs +53 -0
- package/dist/useBreakpoint-CjRyGKN-.mjs.map +1 -0
- package/dist/useBreakpoint-DA-JqOu3.js +2 -0
- package/dist/useBreakpoint-DA-JqOu3.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +15 -19
- package/dist/utils.es.js.map +1 -1
- package/package.json +140 -140
- package/dist/_virtual/index.cjs.js +0 -2
- package/dist/_virtual/index.cjs.js.map +0 -1
- package/dist/_virtual/index.es.js +0 -5
- package/dist/_virtual/index.es.js.map +0 -1
- package/dist/_virtual/jsx-runtime.cjs.js +0 -2
- package/dist/_virtual/jsx-runtime.cjs.js.map +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -5
- package/dist/_virtual/jsx-runtime.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +0 -2
- package/dist/_virtual/react-jsx-runtime.development.cjs.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js +0 -2
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.es.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.es.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.es.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.es.js.map +0 -1
- package/dist/assets/svg/icons.svg.cjs.js +0 -2
- package/dist/assets/svg/icons.svg.cjs.js.map +0 -1
- package/dist/assets/svg/icons.svg.es.js +0 -5
- package/dist/assets/svg/icons.svg.es.js.map +0 -1
- package/dist/components/ActionMenu/ActionMenu.cjs.js +0 -2
- package/dist/components/ActionMenu/ActionMenu.cjs.js.map +0 -1
- package/dist/components/ActionMenu/ActionMenu.es.js +0 -210
- package/dist/components/ActionMenu/ActionMenu.es.js.map +0 -1
- package/dist/components/Badge/Badge.cjs.js +0 -2
- package/dist/components/Badge/Badge.cjs.js.map +0 -1
- package/dist/components/Badge/Badge.es.js +0 -25
- package/dist/components/Badge/Badge.es.js.map +0 -1
- package/dist/components/Banner/Banner.cjs.js +0 -2
- package/dist/components/Banner/Banner.cjs.js.map +0 -1
- package/dist/components/Banner/Banner.es.js +0 -131
- package/dist/components/Banner/Banner.es.js.map +0 -1
- package/dist/components/Button/Button.cjs.js +0 -2
- package/dist/components/Button/Button.cjs.js.map +0 -1
- package/dist/components/Button/Button.es.js +0 -99
- package/dist/components/Button/Button.es.js.map +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +0 -2
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.es.js +0 -51
- package/dist/components/ButtonGroup/ButtonGroup.es.js.map +0 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +0 -2
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +0 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +0 -81
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +0 -1
- package/dist/components/DataTable/DataTable.cjs.js +0 -2
- package/dist/components/DataTable/DataTable.cjs.js.map +0 -1
- package/dist/components/DataTable/DataTable.es.js +0 -137
- package/dist/components/DataTable/DataTable.es.js.map +0 -1
- package/dist/components/Dialog/Dialog.cjs.js +0 -2
- package/dist/components/Dialog/Dialog.cjs.js.map +0 -1
- package/dist/components/Dialog/Dialog.es.js +0 -15
- package/dist/components/Dialog/Dialog.es.js.map +0 -1
- package/dist/components/Elevation/Elevation.cjs.js +0 -2
- package/dist/components/Elevation/Elevation.cjs.js.map +0 -1
- package/dist/components/Elevation/Elevation.es.js +0 -33
- package/dist/components/Elevation/Elevation.es.js.map +0 -1
- package/dist/components/Icon/Icon.cjs.js +0 -2
- package/dist/components/Icon/Icon.cjs.js.map +0 -1
- package/dist/components/Icon/Icon.es.js +0 -42
- package/dist/components/Icon/Icon.es.js.map +0 -1
- package/dist/components/ImageBackground/ImageBackground.cjs.js +0 -2
- package/dist/components/ImageBackground/ImageBackground.cjs.js.map +0 -1
- package/dist/components/ImageBackground/ImageBackground.es.js +0 -55
- package/dist/components/ImageBackground/ImageBackground.es.js.map +0 -1
- package/dist/components/Input/BaseInput/Input.cjs.js +0 -2
- package/dist/components/Input/BaseInput/Input.cjs.js.map +0 -1
- package/dist/components/Input/BaseInput/Input.es.js +0 -182
- package/dist/components/Input/BaseInput/Input.es.js.map +0 -1
- package/dist/components/Input/CopyInput/CopyInput.cjs.js +0 -2
- package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +0 -1
- package/dist/components/Input/CopyInput/CopyInput.es.js +0 -83
- package/dist/components/Input/CopyInput/CopyInput.es.js.map +0 -1
- package/dist/components/Input/SearchInput/SearchInput.cjs.js +0 -2
- package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +0 -1
- package/dist/components/Input/SearchInput/SearchInput.es.js +0 -118
- package/dist/components/Input/SearchInput/SearchInput.es.js.map +0 -1
- package/dist/components/ListBox/ListBox.cjs.js +0 -2
- package/dist/components/ListBox/ListBox.cjs.js.map +0 -1
- package/dist/components/ListBox/ListBox.es.js +0 -25
- package/dist/components/ListBox/ListBox.es.js.map +0 -1
- package/dist/components/Menu/MenuTrigger.cjs.js +0 -2
- package/dist/components/Menu/MenuTrigger.cjs.js.map +0 -1
- package/dist/components/Menu/MenuTrigger.es.js +0 -97
- package/dist/components/Menu/MenuTrigger.es.js.map +0 -1
- package/dist/components/Menu/PopoverMenu.cjs.js +0 -2
- package/dist/components/Menu/PopoverMenu.cjs.js.map +0 -1
- package/dist/components/Menu/PopoverMenu.es.js +0 -116
- package/dist/components/Menu/PopoverMenu.es.js.map +0 -1
- package/dist/components/Modal/Modal.cjs.js +0 -2
- package/dist/components/Modal/Modal.cjs.js.map +0 -1
- package/dist/components/Modal/Modal.es.js +0 -122
- package/dist/components/Modal/Modal.es.js.map +0 -1
- package/dist/components/Popover/Popover.cjs.js +0 -2
- package/dist/components/Popover/Popover.cjs.js.map +0 -1
- package/dist/components/Popover/Popover.es.js +0 -74
- package/dist/components/Popover/Popover.es.js.map +0 -1
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js +0 -2
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +0 -1
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js +0 -44
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +0 -1
- package/dist/components/Select/Select.cjs.js +0 -2
- package/dist/components/Select/Select.cjs.js.map +0 -1
- package/dist/components/Select/Select.es.js +0 -173
- package/dist/components/Select/Select.es.js.map +0 -1
- package/dist/components/Switch/Switch.cjs.js +0 -2
- package/dist/components/Switch/Switch.cjs.js.map +0 -1
- package/dist/components/Switch/Switch.es.js +0 -40
- package/dist/components/Switch/Switch.es.js.map +0 -1
- package/dist/components/Table/Collection/CompoundComponents.cjs.js +0 -2
- package/dist/components/Table/Collection/CompoundComponents.cjs.js.map +0 -1
- package/dist/components/Table/Collection/CompoundComponents.es.js +0 -9
- package/dist/components/Table/Collection/CompoundComponents.es.js.map +0 -1
- package/dist/components/Table/Collection/collectionParser.cjs.js +0 -2
- package/dist/components/Table/Collection/collectionParser.cjs.js.map +0 -1
- package/dist/components/Table/Collection/collectionParser.es.js +0 -54
- package/dist/components/Table/Collection/collectionParser.es.js.map +0 -1
- package/dist/components/Table/Collection/useTableCollection.cjs.js +0 -2
- package/dist/components/Table/Collection/useTableCollection.cjs.js.map +0 -1
- package/dist/components/Table/Collection/useTableCollection.es.js +0 -59
- package/dist/components/Table/Collection/useTableCollection.es.js.map +0 -1
- package/dist/components/Table/Table.cjs.js +0 -2
- package/dist/components/Table/Table.cjs.js.map +0 -1
- package/dist/components/Table/Table.es.js +0 -89
- package/dist/components/Table/Table.es.js.map +0 -1
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js +0 -2
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +0 -1
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js +0 -30
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +0 -1
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js +0 -2
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +0 -1
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js +0 -54
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +0 -1
- package/dist/components/ThemeProvider.cjs.js +0 -2
- package/dist/components/ThemeProvider.cjs.js.map +0 -1
- package/dist/components/ThemeProvider.es.js +0 -42
- package/dist/components/ThemeProvider.es.js.map +0 -1
- package/dist/components/Tombstone/Tombstone.cjs.js +0 -2
- package/dist/components/Tombstone/Tombstone.cjs.js.map +0 -1
- package/dist/components/Tombstone/Tombstone.es.js +0 -35
- package/dist/components/Tombstone/Tombstone.es.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.cjs.js +0 -2
- package/dist/components/Tooltip/Tooltip.cjs.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.es.js +0 -78
- package/dist/components/Tooltip/Tooltip.es.js.map +0 -1
- package/dist/components/Waveform/Waveform.cjs.js +0 -2
- package/dist/components/Waveform/Waveform.cjs.js.map +0 -1
- package/dist/components/Waveform/Waveform.es.js +0 -163
- package/dist/components/Waveform/Waveform.es.js.map +0 -1
- package/dist/components/Waveform/WaveformBar.cjs.js +0 -2
- package/dist/components/Waveform/WaveformBar.cjs.js.map +0 -1
- package/dist/components/Waveform/WaveformBar.es.js +0 -74
- package/dist/components/Waveform/WaveformBar.es.js.map +0 -1
- package/dist/constants/breakpoint.cjs.js +0 -2
- package/dist/constants/breakpoint.cjs.js.map +0 -1
- package/dist/constants/breakpoint.es.js.map +0 -1
- package/dist/constants/placement.cjs.js +0 -2
- package/dist/constants/placement.cjs.js.map +0 -1
- package/dist/constants/placement.es.js +0 -28
- package/dist/constants/placement.es.js.map +0 -1
- package/dist/design/colors.cjs.js +0 -2
- package/dist/design/colors.cjs.js.map +0 -1
- package/dist/design/colors.es.js.map +0 -1
- package/dist/design/darkTheme/colors.cjs.js +0 -2
- package/dist/design/darkTheme/colors.cjs.js.map +0 -1
- package/dist/design/darkTheme/colors.es.js.map +0 -1
- package/dist/design/darkTheme/stylesheet.cjs.js +0 -2
- package/dist/design/darkTheme/stylesheet.cjs.js.map +0 -1
- package/dist/design/darkTheme/stylesheet.es.js +0 -52
- package/dist/design/darkTheme/stylesheet.es.js.map +0 -1
- package/dist/design/generateStylesheet.cjs.js +0 -2
- package/dist/design/generateStylesheet.cjs.js.map +0 -1
- package/dist/design/generateStylesheet.es.js +0 -26
- package/dist/design/generateStylesheet.es.js.map +0 -1
- package/dist/design/lightTheme/colors.cjs.js +0 -2
- package/dist/design/lightTheme/colors.cjs.js.map +0 -1
- package/dist/design/lightTheme/colors.es.js.map +0 -1
- package/dist/design/lightTheme/stylesheet.cjs.js +0 -2
- package/dist/design/lightTheme/stylesheet.cjs.js.map +0 -1
- package/dist/design/lightTheme/stylesheet.es.js +0 -52
- package/dist/design/lightTheme/stylesheet.es.js.map +0 -1
- package/dist/design/theme.cjs.js +0 -2
- package/dist/design/theme.cjs.js.map +0 -1
- package/dist/design/theme.es.js +0 -12
- package/dist/design/theme.es.js.map +0 -1
- package/dist/hooks/useBreakpoint.cjs.js +0 -2
- package/dist/hooks/useBreakpoint.cjs.js.map +0 -1
- package/dist/hooks/useBreakpoint.es.js +0 -17
- package/dist/hooks/useBreakpoint.es.js.map +0 -1
- package/dist/hooks/useIsClosing.cjs.js +0 -2
- package/dist/hooks/useIsClosing.cjs.js.map +0 -1
- package/dist/hooks/useIsClosing.es.js +0 -30
- package/dist/hooks/useIsClosing.es.js.map +0 -1
- package/dist/hooks/useLockBodyScroll.cjs.js +0 -2
- package/dist/hooks/useLockBodyScroll.cjs.js.map +0 -1
- package/dist/hooks/useLockBodyScroll.es.js +0 -14
- package/dist/hooks/useLockBodyScroll.es.js.map +0 -1
- package/dist/hooks/usePalette.cjs.js +0 -2
- package/dist/hooks/usePalette.cjs.js.map +0 -1
- package/dist/hooks/usePalette.es.js +0 -37
- package/dist/hooks/usePalette.es.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js +0 -2
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js +0 -48
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js +0 -2
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js +0 -33
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js.map +0 -1
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js +0 -2
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js +0 -55
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js +0 -135
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js +0 -145
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js +0 -220
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js +0 -36
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js +0 -37
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js.map +0 -1
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js +0 -2
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js +0 -44
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js +0 -437
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js +0 -32
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js.map +0 -1
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js +0 -2
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js +0 -78
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js +0 -11
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js +0 -12
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js +0 -30
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js +0 -24
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js +0 -45
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js +0 -15
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js +0 -10
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js +0 -29
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js +0 -15
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js +0 -35
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js +0 -30
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +0 -67
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js +0 -56
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js +0 -42
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js +0 -85
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js +0 -51
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js +0 -13
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js +0 -50
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js +0 -8
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js +0 -386
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js +0 -92
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js +0 -2
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useField.es.js +0 -36
- package/dist/node_modules/@react-aria/label/dist/useField.es.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js +0 -2
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js +0 -23
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js +0 -52
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js +0 -79
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js +0 -14
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js +0 -2
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js +0 -48
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js +0 -75
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js +0 -39
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js +0 -145
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js +0 -64
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js +0 -5
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js +0 -26
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +0 -39
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js +0 -11
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +0 -78
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js +0 -200
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js +0 -75
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js +0 -26
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js +0 -32
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js +0 -53
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js +0 -143
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js +0 -27
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js +0 -48
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js +0 -100
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js +0 -2
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js +0 -70
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js +0 -2
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js +0 -80
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js +0 -5
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js +0 -105
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js +0 -126
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js +0 -41
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js +0 -122
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js +0 -235
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js +0 -127
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js +0 -37
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js +0 -33
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js +0 -24
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js +0 -2
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js +0 -19
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js.map +0 -1
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js +0 -2
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js +0 -20
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js.map +0 -1
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js +0 -2
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js +0 -60
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js.map +0 -1
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js +0 -2
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js +0 -41
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js +0 -171
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js +0 -38
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js +0 -34
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js +0 -15
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js +0 -24
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js +0 -110
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js +0 -57
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js +0 -70
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js +0 -35
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js +0 -34
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js +0 -30
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js +0 -35
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js +0 -35
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js +0 -9
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js +0 -285
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js +0 -58
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js +0 -22
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js +0 -53
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js +0 -38
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js +0 -31
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js +0 -9
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js +0 -8
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js +0 -13
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js +0 -9
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js +0 -11
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js +0 -9
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js +0 -11
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js.map +0 -1
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js +0 -2
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js.map +0 -1
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js +0 -171
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -23
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -609
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +0 -10
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +0 -29
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.cjs.js +0 -2
- package/dist/node_modules/react/jsx-runtime.cjs.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -9
- package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Button.es.js +0 -70
- package/dist/node_modules/react-aria-components/dist/Button.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Collection.es.js +0 -64
- package/dist/node_modules/react-aria-components/dist/Collection.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Header.es.js +0 -15
- package/dist/node_modules/react-aria-components/dist/Header.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Menu.es.js +0 -286
- package/dist/node_modules/react-aria-components/dist/Menu.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js +0 -37
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Popover.es.js +0 -141
- package/dist/node_modules/react-aria-components/dist/Popover.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Separator.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Separator.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Text.es.js +0 -16
- package/dist/node_modules/react-aria-components/dist/Text.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js +0 -98
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/utils.es.js +0 -101
- package/dist/node_modules/react-aria-components/dist/utils.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js +0 -10
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js +0 -68
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js +0 -10
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js +0 -56
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js +0 -2
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.es.js +0 -9
- package/dist/node_modules/use-sync-external-store/shim/index.es.js.map +0 -1
- package/dist/utils/color2k.cjs.js +0 -2
- package/dist/utils/color2k.cjs.js.map +0 -1
- package/dist/utils/color2k.es.js +0 -14
- package/dist/utils/color2k.es.js.map +0 -1
- package/dist/utils/copy.cjs.js +0 -2
- package/dist/utils/copy.cjs.js.map +0 -1
- package/dist/utils/copy.es.js +0 -31
- package/dist/utils/copy.es.js.map +0 -1
- package/dist/utils/image.cjs.js +0 -2
- package/dist/utils/image.cjs.js.map +0 -1
- package/dist/utils/image.es.js +0 -28
- package/dist/utils/image.es.js.map +0 -1
- package/dist/utils/navigation.cjs.js +0 -2
- package/dist/utils/navigation.cjs.js.map +0 -1
- package/dist/utils/navigation.es.js +0 -12
- package/dist/utils/navigation.es.js.map +0 -1
- package/dist/utils/palette.cjs.js +0 -2
- package/dist/utils/palette.cjs.js.map +0 -1
- package/dist/utils/palette.es.js +0 -183
- package/dist/utils/palette.es.js.map +0 -1
- package/dist/utils/string.cjs.js +0 -2
- package/dist/utils/string.cjs.js.map +0 -1
- package/dist/utils/string.es.js +0 -8
- package/dist/utils/string.es.js.map +0 -1
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import y from "react";
|
|
2
|
-
class z {
|
|
3
|
-
build(e, l) {
|
|
4
|
-
return this.context = l, S(() => this.iterateCollection(e));
|
|
5
|
-
}
|
|
6
|
-
*iterateCollection(e) {
|
|
7
|
-
let { children: l, items: u } = e;
|
|
8
|
-
if (y.isValidElement(l) && l.type === y.Fragment) yield* this.iterateCollection({
|
|
9
|
-
children: l.props.children,
|
|
10
|
-
items: u
|
|
11
|
-
});
|
|
12
|
-
else if (typeof l == "function") {
|
|
13
|
-
if (!u) throw new Error("props.children was a function but props.items is missing");
|
|
14
|
-
let n = 0;
|
|
15
|
-
for (let r of u)
|
|
16
|
-
yield* this.getFullNode({
|
|
17
|
-
value: r,
|
|
18
|
-
index: n
|
|
19
|
-
}, {
|
|
20
|
-
renderer: l
|
|
21
|
-
}), n++;
|
|
22
|
-
} else {
|
|
23
|
-
let n = [];
|
|
24
|
-
y.Children.forEach(l, (t) => {
|
|
25
|
-
t && n.push(t);
|
|
26
|
-
});
|
|
27
|
-
let r = 0;
|
|
28
|
-
for (let t of n) {
|
|
29
|
-
let d = this.getFullNode({
|
|
30
|
-
element: t,
|
|
31
|
-
index: r
|
|
32
|
-
}, {});
|
|
33
|
-
for (let m of d)
|
|
34
|
-
r++, yield m;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
getKey(e, l, u, n) {
|
|
39
|
-
if (e.key != null) return e.key;
|
|
40
|
-
if (l.type === "cell" && l.key != null) return `${n}${l.key}`;
|
|
41
|
-
let r = l.value;
|
|
42
|
-
if (r != null) {
|
|
43
|
-
var t;
|
|
44
|
-
let d = (t = r.key) !== null && t !== void 0 ? t : r.id;
|
|
45
|
-
if (d == null) throw new Error("No key found for item");
|
|
46
|
-
return d;
|
|
47
|
-
}
|
|
48
|
-
return n ? `${n}.${l.index}` : `$.${l.index}`;
|
|
49
|
-
}
|
|
50
|
-
getChildState(e, l) {
|
|
51
|
-
return {
|
|
52
|
-
renderer: l.renderer || e.renderer
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
*getFullNode(e, l, u, n) {
|
|
56
|
-
if (y.isValidElement(e.element) && e.element.type === y.Fragment) {
|
|
57
|
-
let i = [];
|
|
58
|
-
y.Children.forEach(e.element.props.children, (s) => {
|
|
59
|
-
i.push(s);
|
|
60
|
-
});
|
|
61
|
-
var r;
|
|
62
|
-
let o = (r = e.index) !== null && r !== void 0 ? r : 0;
|
|
63
|
-
for (const s of i) yield* this.getFullNode({
|
|
64
|
-
element: s,
|
|
65
|
-
index: o++
|
|
66
|
-
}, l, u, n);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
let t = e.element;
|
|
70
|
-
if (!t && e.value && l && l.renderer) {
|
|
71
|
-
let i = this.cache.get(e.value);
|
|
72
|
-
if (i && (!i.shouldInvalidate || !i.shouldInvalidate(this.context))) {
|
|
73
|
-
i.index = e.index, i.parentKey = n ? n.key : null, yield i;
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
t = l.renderer(e.value);
|
|
77
|
-
}
|
|
78
|
-
if (y.isValidElement(t)) {
|
|
79
|
-
let i = t.type;
|
|
80
|
-
if (typeof i != "function" && typeof i.getCollectionNode != "function") {
|
|
81
|
-
let h = t.type;
|
|
82
|
-
throw new Error(`Unknown element <${h}> in collection.`);
|
|
83
|
-
}
|
|
84
|
-
let o = i.getCollectionNode(t.props, this.context);
|
|
85
|
-
var d;
|
|
86
|
-
let s = (d = e.index) !== null && d !== void 0 ? d : 0, v = o.next();
|
|
87
|
-
for (; !v.done && v.value; ) {
|
|
88
|
-
let h = v.value;
|
|
89
|
-
e.index = s;
|
|
90
|
-
var m;
|
|
91
|
-
let b = (m = h.key) !== null && m !== void 0 ? m : null;
|
|
92
|
-
b == null && (b = h.element ? null : this.getKey(t, e, l, u));
|
|
93
|
-
let V = [
|
|
94
|
-
...this.getFullNode({
|
|
95
|
-
...h,
|
|
96
|
-
key: b,
|
|
97
|
-
index: s,
|
|
98
|
-
wrapper: p(e.wrapper, h.wrapper)
|
|
99
|
-
}, this.getChildState(l, h), u ? `${u}${t.key}` : t.key, n)
|
|
100
|
-
];
|
|
101
|
-
for (let c of V) {
|
|
102
|
-
var x, k;
|
|
103
|
-
c.value = (k = (x = h.value) !== null && x !== void 0 ? x : e.value) !== null && k !== void 0 ? k : null, c.value && this.cache.set(c.value, c);
|
|
104
|
-
var w;
|
|
105
|
-
if (e.type && c.type !== e.type) throw new Error(`Unsupported type <${E(c.type)}> in <${E((w = n == null ? void 0 : n.type) !== null && w !== void 0 ? w : "unknown parent type")}>. Only <${E(e.type)}> is supported.`);
|
|
106
|
-
s++, yield c;
|
|
107
|
-
}
|
|
108
|
-
v = o.next(V);
|
|
109
|
-
}
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
if (e.key == null || e.type == null) return;
|
|
113
|
-
let F = this;
|
|
114
|
-
var g, C;
|
|
115
|
-
let $ = {
|
|
116
|
-
type: e.type,
|
|
117
|
-
props: e.props,
|
|
118
|
-
key: e.key,
|
|
119
|
-
parentKey: n ? n.key : null,
|
|
120
|
-
value: (g = e.value) !== null && g !== void 0 ? g : null,
|
|
121
|
-
level: n ? n.level + 1 : 0,
|
|
122
|
-
index: e.index,
|
|
123
|
-
rendered: e.rendered,
|
|
124
|
-
textValue: (C = e.textValue) !== null && C !== void 0 ? C : "",
|
|
125
|
-
"aria-label": e["aria-label"],
|
|
126
|
-
wrapper: e.wrapper,
|
|
127
|
-
shouldInvalidate: e.shouldInvalidate,
|
|
128
|
-
hasChildNodes: e.hasChildNodes || !1,
|
|
129
|
-
childNodes: S(function* () {
|
|
130
|
-
if (!e.hasChildNodes || !e.childNodes) return;
|
|
131
|
-
let i = 0;
|
|
132
|
-
for (let o of e.childNodes()) {
|
|
133
|
-
o.key != null && (o.key = `${$.key}${o.key}`);
|
|
134
|
-
let s = F.getFullNode({
|
|
135
|
-
...o,
|
|
136
|
-
index: i
|
|
137
|
-
}, F.getChildState(l, o), $.key, $);
|
|
138
|
-
for (let v of s)
|
|
139
|
-
i++, yield v;
|
|
140
|
-
}
|
|
141
|
-
})
|
|
142
|
-
};
|
|
143
|
-
yield $;
|
|
144
|
-
}
|
|
145
|
-
constructor() {
|
|
146
|
-
this.cache = /* @__PURE__ */ new WeakMap();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function S(f) {
|
|
150
|
-
let e = [], l = null;
|
|
151
|
-
return {
|
|
152
|
-
*[Symbol.iterator]() {
|
|
153
|
-
for (let u of e) yield u;
|
|
154
|
-
l || (l = f());
|
|
155
|
-
for (let u of l)
|
|
156
|
-
e.push(u), yield u;
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
function p(f, e) {
|
|
161
|
-
if (f && e) return (l) => f(e(l));
|
|
162
|
-
if (f) return f;
|
|
163
|
-
if (e) return e;
|
|
164
|
-
}
|
|
165
|
-
function E(f) {
|
|
166
|
-
return f[0].toUpperCase() + f.slice(1);
|
|
167
|
-
}
|
|
168
|
-
export {
|
|
169
|
-
z as CollectionBuilder
|
|
170
|
-
};
|
|
171
|
-
//# sourceMappingURL=CollectionBuilder.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,2 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,2 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./getChildNodes.cjs.js"),u=new WeakMap;function o(e){let f=u.get(e);if(f!=null)return f;let t=0,n=a=>{for(let r of a)r.type==="section"?n(c.getChildNodes(r,e)):r.type==="item"&&t++};return n(e),u.set(e,t),t}exports.getItemCount=o;
|
|
2
|
-
//# sourceMappingURL=getItemCount.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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){\n if (item.type === 'section') countItems((0, $c5a24bc478652b5f$export$1005530eda016c13)(item, collection));\n else if (item.type === 'item') counter++;\n }\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,EACTC,EAAK,OAAS,UAAWF,EAAeG,gBAA2CD,EAAML,CAAU,CAAC,EAC/FK,EAAK,OAAS,QAAQH,GAE3C,EACI,OAAAC,EAAWH,CAAU,EACrBF,EAA4B,IAAIE,EAAYE,CAAO,EAC5CA,CACX","x_google_ignoreList":[0]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getChildNodes as o } from "./getChildNodes.es.js";
|
|
2
|
-
const c = /* @__PURE__ */ new WeakMap();
|
|
3
|
-
function s(e) {
|
|
4
|
-
let f = c.get(e);
|
|
5
|
-
if (f != null) return f;
|
|
6
|
-
let t = 0, r = (n) => {
|
|
7
|
-
for (let a of n)
|
|
8
|
-
a.type === "section" ? r(o(a, e)) : a.type === "item" && t++;
|
|
9
|
-
};
|
|
10
|
-
return r(e), c.set(e, t), t;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
s as getItemCount
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=getItemCount.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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){\n if (item.type === 'section') countItems((0, $c5a24bc478652b5f$export$1005530eda016c13)(item, collection));\n else if (item.type === 'item') counter++;\n }\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;AACb,MAAIC,EAAK,SAAS,YAAWF,EAAeG,EAA2CD,GAAML,CAAU,CAAC,IAC/FK,EAAK,SAAS,UAAQH;AAAA,EAE3C;AACI,SAAAC,EAAWH,CAAU,GACrBF,EAA4B,IAAIE,GAAYE,CAAO,GAC5CA;AACX;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,2 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,110 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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]}
|
|
@@ -1,2 +0,0 @@
|
|
|
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
|