@procore/core-react 11.22.0 → 11.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.js +32 -15
- package/dist/@types/files.d.js +2 -0
- package/dist/@types/files.d.js.map +1 -0
- package/dist/@types/global.d.js +2 -0
- package/dist/@types/global.d.js.map +1 -0
- package/dist/Avatar/Avatar.js +91 -80
- package/dist/Avatar/Avatar.js.map +1 -1
- package/dist/Avatar/Avatar.styles.js +57 -29
- package/dist/Avatar/Avatar.styles.js.map +1 -1
- package/dist/Avatar/Avatar.types.js.map +1 -1
- package/dist/Avatar/index.js +1 -0
- package/dist/Avatar/index.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.constants.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.js +306 -171
- package/dist/AvatarStack/AvatarStack.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.styles.js +30 -12
- package/dist/AvatarStack/AvatarStack.styles.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.types.js.map +1 -1
- package/dist/AvatarStack/index.js +1 -0
- package/dist/AvatarStack/index.js.map +1 -1
- package/dist/Badge/Badge.js +10 -16
- package/dist/Badge/Badge.js.map +1 -1
- package/dist/Badge/Badge.styles.js +8 -7
- package/dist/Badge/Badge.styles.js.map +1 -1
- package/dist/Badge/Badge.types.js.map +1 -1
- package/dist/Badge/index.js +1 -0
- package/dist/Badge/index.js.map +1 -1
- package/dist/Banner/Banner.js +211 -110
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.js +85 -56
- package/dist/Banner/Banner.styles.js.map +1 -1
- package/dist/Banner/Banner.types.js.map +1 -1
- package/dist/Banner/index.js +2 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/Box/Box.js +85 -55
- package/dist/Box/Box.js.map +1 -1
- package/dist/Box/Box.styles.js +22 -24
- package/dist/Box/Box.styles.js.map +1 -1
- package/dist/Box/Box.types.js.map +1 -1
- package/dist/Box/index.js +1 -0
- package/dist/Box/index.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +67 -65
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +28 -21
- package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.types.js +5 -5
- package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
- package/dist/Breadcrumbs/index.js +1 -0
- package/dist/Breadcrumbs/index.js.map +1 -1
- package/dist/Button/Button.js +105 -63
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Button.styles.js +95 -81
- package/dist/Button/Button.styles.js.map +1 -1
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Button/index.js.map +1 -1
- package/dist/Calendar/Calendar.js +244 -125
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +52 -24
- package/dist/Calendar/Calendar.styles.js.map +1 -1
- package/dist/Calendar/Calendar.types.js.map +1 -1
- package/dist/Calendar/index.js +1 -0
- package/dist/Calendar/index.js.map +1 -1
- package/dist/Card/Card.js +22 -30
- package/dist/Card/Card.js.map +1 -1
- package/dist/Card/Card.styles.js +12 -12
- package/dist/Card/Card.styles.js.map +1 -1
- package/dist/Card/Card.types.js.map +1 -1
- package/dist/Card/index.js +1 -0
- package/dist/Card/index.js.map +1 -1
- package/dist/Changelog.mdx +6 -0
- package/dist/Checkbox/Checkbox.js +56 -33
- package/dist/Checkbox/Checkbox.js.map +1 -1
- package/dist/Checkbox/Checkbox.styles.js +103 -87
- package/dist/Checkbox/Checkbox.styles.js.map +1 -1
- package/dist/Checkbox/Checkbox.types.js.map +1 -1
- package/dist/Checkbox/index.js +1 -0
- package/dist/Checkbox/index.js.map +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.js +24 -31
- package/dist/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.types.js.map +1 -1
- package/dist/CheckboxGroup/index.js +1 -0
- package/dist/CheckboxGroup/index.js.map +1 -1
- package/dist/ClickOutside/ClickOutside.js +38 -38
- package/dist/ClickOutside/ClickOutside.js.map +1 -1
- package/dist/ClickOutside/index.js.map +1 -1
- package/dist/ContactItem/ContactItem.js +56 -45
- package/dist/ContactItem/ContactItem.js.map +1 -1
- package/dist/ContactItem/ContactItem.styles.js +31 -21
- package/dist/ContactItem/ContactItem.styles.js.map +1 -1
- package/dist/ContactItem/ContactItem.types.js.map +1 -1
- package/dist/ContactItem/index.js +1 -0
- package/dist/ContactItem/index.js.map +1 -1
- package/dist/Content/Content.js +2 -13
- package/dist/Content/Content.js.map +1 -1
- package/dist/Content/Content.styles.js +9 -8
- package/dist/Content/Content.styles.js.map +1 -1
- package/dist/Content/index.js.map +1 -1
- package/dist/DateInput/DateInput.js +453 -347
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +42 -27
- package/dist/DateInput/DateInput.styles.js.map +1 -1
- package/dist/DateInput/DateInput.types.js.map +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput/index.js.map +1 -1
- package/dist/DateSelect/DateSelect.js +148 -107
- package/dist/DateSelect/DateSelect.js.map +1 -1
- package/dist/DateSelect/DateSelect.types.js.map +1 -1
- package/dist/DateSelect/index.js +1 -0
- package/dist/DateSelect/index.js.map +1 -1
- package/dist/DetailPage/DetailPage.constants.js +42 -42
- package/dist/DetailPage/DetailPage.constants.js.map +1 -1
- package/dist/DetailPage/DetailPage.js +66 -62
- package/dist/DetailPage/DetailPage.js.map +1 -1
- package/dist/DetailPage/DetailPage.styles.js +30 -14
- package/dist/DetailPage/DetailPage.styles.js.map +1 -1
- package/dist/DetailPage/DetailPage.types.js.map +1 -1
- package/dist/DetailPage/RankedHeading.js +8 -8
- package/dist/DetailPage/RankedHeading.js.map +1 -1
- package/dist/DetailPage/index.js +1 -0
- package/dist/DetailPage/index.js.map +1 -1
- package/dist/Dropdown/Dropdown.js +193 -99
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +21 -15
- package/dist/Dropdown/Dropdown.styles.js.map +1 -1
- package/dist/Dropdown/Dropdown.types.js.map +1 -1
- package/dist/Dropdown/index.js +1 -0
- package/dist/Dropdown/index.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.helpers.js +277 -239
- package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.js +234 -132
- package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +16 -9
- package/dist/DropdownFlyout/DropdownFlyout.styles.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
- package/dist/DropdownFlyout/index.js +1 -1
- package/dist/DropdownFlyout/index.js.map +1 -1
- package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js +10 -11
- package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js.map +1 -1
- package/dist/Dropzone/Dropzone.hooks.js +257 -211
- package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
- package/dist/Dropzone/Dropzone.js +209 -156
- package/dist/Dropzone/Dropzone.js.map +1 -1
- package/dist/Dropzone/Dropzone.styles.js +54 -31
- package/dist/Dropzone/Dropzone.styles.js.map +1 -1
- package/dist/Dropzone/Dropzone.types.js +19 -11
- package/dist/Dropzone/Dropzone.types.js.map +1 -1
- package/dist/Dropzone/index.js +1 -0
- package/dist/Dropzone/index.js.map +1 -1
- package/dist/EmptyState/EmptyState.js +274 -116
- package/dist/EmptyState/EmptyState.js.map +1 -1
- package/dist/EmptyState/EmptyState.styles.js +33 -19
- package/dist/EmptyState/EmptyState.styles.js.map +1 -1
- package/dist/EmptyState/EmptyState.types.js.map +1 -1
- package/dist/EmptyState/index.js +1 -0
- package/dist/EmptyState/index.js.map +1 -1
- package/dist/Field/Field.js +26 -33
- package/dist/Field/Field.js.map +1 -1
- package/dist/Field/Field.styles.js +12 -8
- package/dist/Field/Field.styles.js.map +1 -1
- package/dist/Field/index.js.map +1 -1
- package/dist/FileList/FileList.js +83 -55
- package/dist/FileList/FileList.js.map +1 -1
- package/dist/FileList/FileList.styles.js +16 -9
- package/dist/FileList/FileList.styles.js.map +1 -1
- package/dist/FileList/FileList.types.js.map +1 -1
- package/dist/FileList/index.js +1 -0
- package/dist/FileList/index.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorer.js +69 -65
- package/dist/FileSelect/FileExplorer/FileExplorer.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +37 -16
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorer.types.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js +23 -31
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js +92 -63
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +12 -8
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js.map +1 -1
- package/dist/FileSelect/FileExplorer/useSidebarNavigation.js +40 -51
- package/dist/FileSelect/FileExplorer/useSidebarNavigation.js.map +1 -1
- package/dist/FileSelect/FileSelect.js +465 -324
- package/dist/FileSelect/FileSelect.js.map +1 -1
- package/dist/FileSelect/FileSelect.styles.js +8 -7
- package/dist/FileSelect/FileSelect.styles.js.map +1 -1
- package/dist/FileSelect/FileSelect.types.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.js +93 -47
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +16 -14
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/index.js +1 -0
- package/dist/FileSelect/FileSelectDropzone/index.js.map +1 -1
- package/dist/FileSelect/FileTokenList/FileToken.types.js.map +1 -1
- package/dist/FileSelect/FileTokenList/FileTokenList.js +112 -90
- package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +8 -7
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js.map +1 -1
- package/dist/FileSelect/FileTokenList/index.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.js +270 -216
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.styles.js +32 -19
- package/dist/FileSelect/GridSource/GridSource.styles.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
- package/dist/FileSelect/GridSource/index.js +1 -0
- package/dist/FileSelect/GridSource/index.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.js +401 -314
- package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +18 -11
- package/dist/FileSelect/LocalSource/LocalSource.styles.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
- package/dist/FileSelect/LocalSource/index.js +1 -0
- package/dist/FileSelect/LocalSource/index.js.map +1 -1
- package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.js +91 -69
- package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.js.map +1 -1
- package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.js.map +1 -1
- package/dist/FileSelect/ProgressAnnouncer/index.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.js +66 -54
- package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +29 -24
- package/dist/FileSelect/SourceItem/SourceItem.styles.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.test.js +53 -0
- package/dist/FileSelect/ThumbnailList/ThumbnailList.js +175 -110
- package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +33 -23
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js.map +1 -1
- package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
- package/dist/FileSelect/ThumbnailList/index.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.js +173 -135
- package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +4 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
- package/dist/FileSelect/TreeSource/index.js +1 -0
- package/dist/FileSelect/TreeSource/index.js.map +1 -1
- package/dist/FileSelect/index.js +3 -1
- package/dist/FileSelect/index.js.map +1 -1
- package/dist/FileSelect/storyHelpers.d.ts +12 -0
- package/dist/FileSelect/storyHelpers.js +301 -139
- package/dist/FileSelect/storyHelpers.js.map +1 -1
- package/dist/FileToken/FileToken.js +103 -80
- package/dist/FileToken/FileToken.js.map +1 -1
- package/dist/FileToken/FileToken.styles.js +29 -21
- package/dist/FileToken/FileToken.styles.js.map +1 -1
- package/dist/FileToken/FileToken.types.js.map +1 -1
- package/dist/FileToken/index.js.map +1 -1
- package/dist/FilterToken/FilterToken.js +44 -34
- package/dist/FilterToken/FilterToken.js.map +1 -1
- package/dist/FilterToken/FilterToken.styles.js +12 -10
- package/dist/FilterToken/FilterToken.styles.js.map +1 -1
- package/dist/FilterToken/FilterToken.types.js.map +1 -1
- package/dist/FilterToken/index.js.map +1 -1
- package/dist/Flex/Flex.js +33 -25
- package/dist/Flex/Flex.js.map +1 -1
- package/dist/Flex/Flex.types.js.map +1 -1
- package/dist/Flex/index.js +1 -0
- package/dist/Flex/index.js.map +1 -1
- package/dist/FlexList/FlexList.js +52 -47
- package/dist/FlexList/FlexList.js.map +1 -1
- package/dist/FlexList/FlexList.styles.js +9 -11
- package/dist/FlexList/FlexList.styles.js.map +1 -1
- package/dist/FlexList/FlexList.types.js.map +1 -1
- package/dist/FlexList/index.js +1 -0
- package/dist/FlexList/index.js.map +1 -1
- package/dist/Form/Form.js +1348 -711
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.js +92 -43
- package/dist/Form/Form.styles.js.map +1 -1
- package/dist/Form/Form.types.js.map +1 -1
- package/dist/Form/closeWithConfirm.js +38 -31
- package/dist/Form/closeWithConfirm.js.map +1 -1
- package/dist/Form/index.js +2 -1
- package/dist/Form/index.js.map +1 -1
- package/dist/Form/stories/util.js +480 -385
- package/dist/Form/stories/util.js.map +1 -1
- package/dist/Grid/Grid.constants.js +13 -20
- package/dist/Grid/Grid.constants.js.map +1 -1
- package/dist/Grid/Grid.js +50 -44
- package/dist/Grid/Grid.js.map +1 -1
- package/dist/Grid/Grid.styles.js +95 -88
- package/dist/Grid/Grid.styles.js.map +1 -1
- package/dist/Grid/Grid.types.js.map +1 -1
- package/dist/Grid/Grid.utils.js +17 -9
- package/dist/Grid/Grid.utils.js.map +1 -1
- package/dist/Grid/index.js +1 -0
- package/dist/Grid/index.js.map +1 -1
- package/dist/GroupSelect/GroupSelect.js +210 -146
- package/dist/GroupSelect/GroupSelect.js.map +1 -1
- package/dist/GroupSelect/GroupSelect.styles.js +6 -8
- package/dist/GroupSelect/GroupSelect.styles.js.map +1 -1
- package/dist/GroupSelect/GroupSelect.types.js.map +1 -1
- package/dist/GroupSelect/index.js +1 -0
- package/dist/GroupSelect/index.js.map +1 -1
- package/dist/Input/Input.js +10 -25
- package/dist/Input/Input.js.map +1 -1
- package/dist/Input/Input.styles.js +10 -11
- package/dist/Input/Input.styles.js.map +1 -1
- package/dist/Input/Input.types.js.map +1 -1
- package/dist/Input/index.js +1 -0
- package/dist/Input/index.js.map +1 -1
- package/dist/Link/Link.js +10 -25
- package/dist/Link/Link.js.map +1 -1
- package/dist/Link/Link.styles.js +16 -17
- package/dist/Link/Link.styles.js.map +1 -1
- package/dist/Link/Link.types.js.map +1 -1
- package/dist/Link/index.js +1 -0
- package/dist/Link/index.js.map +1 -1
- package/dist/ListPage/ListPage.js +69 -51
- package/dist/ListPage/ListPage.js.map +1 -1
- package/dist/ListPage/ListPage.styles.js +44 -25
- package/dist/ListPage/ListPage.styles.js.map +1 -1
- package/dist/ListPage/ListPage.types.js.map +1 -1
- package/dist/ListPage/index.js.map +1 -1
- package/dist/Loader/Loader.js +24 -31
- package/dist/Loader/Loader.js.map +1 -1
- package/dist/Loader/Loader.styles.js +11 -11
- package/dist/Loader/Loader.styles.js.map +1 -1
- package/dist/Loader/Loader.types.js.map +1 -1
- package/dist/Loader/index.js.map +1 -1
- package/dist/Menu/Menu.js +332 -237
- package/dist/Menu/Menu.js.map +1 -1
- package/dist/Menu/Menu.types.js.map +1 -1
- package/dist/Menu/index.js +1 -0
- package/dist/Menu/index.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.js +504 -311
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +71 -46
- package/dist/MenuImperative/MenuImperative.styles.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
- package/dist/MenuImperative/index.js +1 -1
- package/dist/MenuImperative/index.js.map +1 -1
- package/dist/MenuImperative/sensors.js +232 -233
- package/dist/MenuImperative/sensors.js.map +1 -1
- package/dist/Modal/ChildRegistry.context.js +46 -33
- package/dist/Modal/ChildRegistry.context.js.map +1 -1
- package/dist/Modal/Modal.js +296 -193
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.js +76 -41
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/Modal/Modal.types.js.map +1 -1
- package/dist/Modal/index.js +1 -0
- package/dist/Modal/index.js.map +1 -1
- package/dist/Modal/storyHelpers.js +221 -149
- package/dist/Modal/storyHelpers.js.map +1 -1
- package/dist/Modal/useInitializeModalFocus.js +30 -29
- package/dist/Modal/useInitializeModalFocus.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.js +487 -324
- package/dist/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +29 -16
- package/dist/MultiSelect/MultiSelect.styles.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.test.js +250 -0
- package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
- package/dist/MultiSelect/index.js.map +1 -1
- package/dist/NextMenu/NextMenu.js +121 -55
- package/dist/NextMenu/NextMenu.js.map +1 -1
- package/dist/NextMenu/NextMenu.styles.js +13 -9
- package/dist/NextMenu/NextMenu.styles.js.map +1 -1
- package/dist/NextMenu/NextMenu.types.js.map +1 -1
- package/dist/NextMenu/NextMenuItem.js +23 -29
- package/dist/NextMenu/NextMenuItem.js.map +1 -1
- package/dist/NextMenu/sampleData.js +469 -179
- package/dist/NextMenu/sampleData.js.map +1 -1
- package/dist/NextTile/NextTile.js +174 -101
- package/dist/NextTile/NextTile.js.map +1 -1
- package/dist/NextTile/NextTile.types.js.map +1 -1
- package/dist/Notation/Notation.js +26 -45
- package/dist/Notation/Notation.js.map +1 -1
- package/dist/Notation/Notation.types.js +4 -4
- package/dist/Notation/Notation.types.js.map +1 -1
- package/dist/Notation/index.js +1 -0
- package/dist/Notation/index.js.map +1 -1
- package/dist/NumberInput/NumberInput.constants.js.map +1 -1
- package/dist/NumberInput/NumberInput.hooks.js +47 -41
- package/dist/NumberInput/NumberInput.hooks.js.map +1 -1
- package/dist/NumberInput/NumberInput.js +440 -338
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.js +34 -18
- package/dist/NumberInput/NumberInput.styles.js.map +1 -1
- package/dist/NumberInput/NumberInput.types.js.map +1 -1
- package/dist/NumberInput/NumberInput.utils.js +436 -455
- package/dist/NumberInput/NumberInput.utils.js.map +1 -1
- package/dist/NumberInput/index.js +1 -0
- package/dist/NumberInput/index.js.map +1 -1
- package/dist/Overlay/Overlay.js +36 -35
- package/dist/Overlay/Overlay.js.map +1 -1
- package/dist/Overlay/OverlayArrow.js +27 -21
- package/dist/Overlay/OverlayArrow.js.map +1 -1
- package/dist/Overlay/OverlayArrow.styles.js +4 -6
- package/dist/Overlay/OverlayArrow.styles.js.map +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Overlay/index.js.map +1 -1
- package/dist/Overlay/useOverlay.js +29 -21
- package/dist/Overlay/useOverlay.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.js +297 -205
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.test.js +483 -0
- package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
- package/dist/OverlayTrigger/a11yPresets.js +248 -185
- package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
- package/dist/OverlayTrigger/index.js +2 -1
- package/dist/OverlayTrigger/index.js.map +1 -1
- package/dist/PageLayout/PageLayout.constants.js.map +1 -1
- package/dist/PageLayout/PageLayout.js +324 -269
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.js +111 -71
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/PageLayout/PageLayout.types.js.map +1 -1
- package/dist/PageLayout/PageLayout.utils.js +37 -35
- package/dist/PageLayout/PageLayout.utils.js.map +1 -1
- package/dist/PageLayout/index.js +1 -0
- package/dist/PageLayout/index.js.map +1 -1
- package/dist/Pagination/Pagination.js +98 -65
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +20 -10
- package/dist/Pagination/Pagination.styles.js.map +1 -1
- package/dist/Pagination/Pagination.types.js.map +1 -1
- package/dist/Pagination/PaginationSelect.js +126 -96
- package/dist/Pagination/PaginationSelect.js.map +1 -1
- package/dist/Pagination/index.js +1 -0
- package/dist/Pagination/index.js.map +1 -1
- package/dist/Panel/Panel.js +207 -127
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Panel/Panel.styles.js +61 -33
- package/dist/Panel/Panel.styles.js.map +1 -1
- package/dist/Panel/Panel.types.js.map +1 -1
- package/dist/Panel/index.js +1 -0
- package/dist/Panel/index.js.map +1 -1
- package/dist/Pill/Pill.colorPalette.js +40 -40
- package/dist/Pill/Pill.colorPalette.js.map +1 -1
- package/dist/Pill/Pill.js +32 -31
- package/dist/Pill/Pill.js.map +1 -1
- package/dist/Pill/Pill.styles.js +12 -11
- package/dist/Pill/Pill.styles.js.map +1 -1
- package/dist/Pill/Pill.types.js.map +1 -1
- package/dist/Pill/index.js +1 -0
- package/dist/Pill/index.js.map +1 -1
- package/dist/PillSelect/PillSelect.js +143 -77
- package/dist/PillSelect/PillSelect.js.map +1 -1
- package/dist/PillSelect/PillSelect.styles.js +18 -11
- package/dist/PillSelect/PillSelect.styles.js.map +1 -1
- package/dist/PillSelect/PillSelect.types.js.map +1 -1
- package/dist/PillSelect/index.js +1 -0
- package/dist/PillSelect/index.js.map +1 -1
- package/dist/Popover/Popover.js +57 -32
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Popover/Popover.styles.js +12 -11
- package/dist/Popover/Popover.styles.js.map +1 -1
- package/dist/Popover/Popover.types.js.map +1 -1
- package/dist/Popover/index.js +1 -0
- package/dist/Popover/index.js.map +1 -1
- package/dist/Portal/Portal.js +14 -26
- package/dist/Portal/Portal.js.map +1 -1
- package/dist/Portal/Portal.styles.js +4 -6
- package/dist/Portal/Portal.styles.js.map +1 -1
- package/dist/Portal/Portal.types.js.map +1 -1
- package/dist/Portal/index.js.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +58 -50
- package/dist/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +18 -17
- package/dist/ProgressBar/ProgressBar.styles.js.map +1 -1
- package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
- package/dist/ProgressBar/index.js +1 -0
- package/dist/ProgressBar/index.js.map +1 -1
- package/dist/RadioButton/RadioButton.js +21 -28
- package/dist/RadioButton/RadioButton.js.map +1 -1
- package/dist/RadioButton/RadioButton.styles.js +18 -14
- package/dist/RadioButton/RadioButton.styles.js.map +1 -1
- package/dist/RadioButton/RadioButton.types.js.map +1 -1
- package/dist/RadioButton/index.js +1 -0
- package/dist/RadioButton/index.js.map +1 -1
- package/dist/Required/Required.js +21 -32
- package/dist/Required/Required.js.map +1 -1
- package/dist/Required/Required.styles.js +18 -14
- package/dist/Required/Required.styles.js.map +1 -1
- package/dist/Required/Required.types.js.map +1 -1
- package/dist/Required/index.js +1 -0
- package/dist/Required/index.js.map +1 -1
- package/dist/Search/Search.hooks.js +59 -40
- package/dist/Search/Search.hooks.js.map +1 -1
- package/dist/Search/Search.js +60 -48
- package/dist/Search/Search.js.map +1 -1
- package/dist/Search/Search.styles.js +28 -11
- package/dist/Search/Search.styles.js.map +1 -1
- package/dist/Search/Search.types.js.map +1 -1
- package/dist/Search/index.js +1 -0
- package/dist/Search/index.js.map +1 -1
- package/dist/Section/Section.js +127 -102
- package/dist/Section/Section.js.map +1 -1
- package/dist/Section/Section.styles.js +34 -19
- package/dist/Section/Section.styles.js.map +1 -1
- package/dist/Section/Section.types.js.map +1 -1
- package/dist/Section/index.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.js +135 -93
- package/dist/SegmentedController/SegmentedController.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.styles.js +38 -29
- package/dist/SegmentedController/SegmentedController.styles.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.types.js +3 -3
- package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
- package/dist/SegmentedController/index.js +1 -0
- package/dist/SegmentedController/index.js.map +1 -1
- package/dist/Select/Select.js +302 -125
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +66 -46
- package/dist/Select/Select.styles.js.map +1 -1
- package/dist/Select/Select.types.js.map +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.js.map +1 -1
- package/dist/Semantic/Semantic.js +63 -40
- package/dist/Semantic/Semantic.js.map +1 -1
- package/dist/Semantic/Semantic.styles.js +49 -34
- package/dist/Semantic/Semantic.styles.js.map +1 -1
- package/dist/Semantic/Semantic.types.js.map +1 -1
- package/dist/Semantic/index.js.map +1 -1
- package/dist/Sidebar/Sidebar.js +85 -68
- package/dist/Sidebar/Sidebar.js.map +1 -1
- package/dist/Sidebar/Sidebar.styles.js +32 -16
- package/dist/Sidebar/Sidebar.styles.js.map +1 -1
- package/dist/Sidebar/index.js.map +1 -1
- package/dist/Slider/Slider.js +120 -73
- package/dist/Slider/Slider.js.map +1 -1
- package/dist/Slider/Slider.styles.js +48 -22
- package/dist/Slider/Slider.styles.js.map +1 -1
- package/dist/Slider/Slider.types.js.map +1 -1
- package/dist/Slider/index.js +1 -0
- package/dist/Slider/index.js.map +1 -1
- package/dist/Spinner/Spinner.js +49 -42
- package/dist/Spinner/Spinner.js.map +1 -1
- package/dist/Spinner/Spinner.styles.js +64 -47
- package/dist/Spinner/Spinner.styles.js.map +1 -1
- package/dist/Spinner/Spinner.types.js.map +1 -1
- package/dist/Spinner/index.js +1 -0
- package/dist/Spinner/index.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.components.js +288 -210
- package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.constants.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.js +82 -56
- package/dist/SuperSelect/SuperSelect.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +4 -6
- package/dist/SuperSelect/SuperSelect.presets.styles.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +228 -117
- package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.utils.js +136 -129
- package/dist/SuperSelect/SuperSelect.utils.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.utils.test.js +717 -0
- package/dist/SuperSelect/index.js +1 -1
- package/dist/SuperSelect/index.js.map +1 -1
- package/dist/SuperSelect/presets/contactsPreset.js +16 -31
- package/dist/SuperSelect/presets/contactsPreset.js.map +1 -1
- package/dist/SuperSelect/presets/filterPreset.js +55 -55
- package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
- package/dist/SuperSelect/presets/index.js +4 -4
- package/dist/SuperSelect/presets/index.js.map +1 -1
- package/dist/SuperSelect/presets/pillPreset.js +39 -25
- package/dist/SuperSelect/presets/pillPreset.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.js +769 -636
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.test.js +1284 -0
- package/dist/SuperSelect/useVirtuosoResizeErrorFix.js +15 -18
- package/dist/SuperSelect/useVirtuosoResizeErrorFix.js.map +1 -1
- package/dist/Switch/Switch.js +22 -32
- package/dist/Switch/Switch.js.map +1 -1
- package/dist/Switch/Switch.styles.js +26 -17
- package/dist/Switch/Switch.styles.js.map +1 -1
- package/dist/Switch/Switch.types.js.map +1 -1
- package/dist/Switch/index.js +1 -0
- package/dist/Switch/index.js.map +1 -1
- package/dist/Table/Table.js +372 -197
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.js +204 -127
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/Table/Table.types.js.map +1 -1
- package/dist/Table/index.js +1 -0
- package/dist/Table/index.js.map +1 -1
- package/dist/TableShelf/TableShelf.js +51 -47
- package/dist/TableShelf/TableShelf.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +20 -10
- package/dist/TableShelf/TableShelf.styles.js.map +1 -1
- package/dist/TableShelf/index.js.map +1 -1
- package/dist/Tabs/Tabs.js +237 -136
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +59 -40
- package/dist/Tabs/Tabs.styles.js.map +1 -1
- package/dist/Tabs/Tabs.types.js +6 -6
- package/dist/Tabs/Tabs.types.js.map +1 -1
- package/dist/Tabs/index.js +1 -0
- package/dist/Tabs/index.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.constants.js +2 -15
- package/dist/Tearsheet/Tearsheet.constants.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.js +228 -177
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +106 -92
- package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.types.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.util.js +53 -49
- package/dist/Tearsheet/Tearsheet.util.js.map +1 -1
- package/dist/Tearsheet/index.js +1 -0
- package/dist/Tearsheet/index.js.map +1 -1
- package/dist/TextArea/TextArea.js +13 -25
- package/dist/TextArea/TextArea.js.map +1 -1
- package/dist/TextArea/TextArea.styles.js +7 -8
- package/dist/TextArea/TextArea.styles.js.map +1 -1
- package/dist/TextArea/TextArea.types.js.map +1 -1
- package/dist/TextArea/index.js +1 -0
- package/dist/TextArea/index.js.map +1 -1
- package/dist/TextEditor/TextEditor.js +110 -81
- package/dist/TextEditor/TextEditor.js.map +1 -1
- package/dist/TextEditor/TextEditor.styles.js +3 -8
- package/dist/TextEditor/TextEditor.styles.js.map +1 -1
- package/dist/TextEditor/TextEditor.types.js.map +1 -1
- package/dist/TextEditor/index.js +1 -0
- package/dist/TextEditor/index.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.js +29 -27
- package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +4 -6
- package/dist/TextEditorOutput/TextEditorOutput.styles.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
- package/dist/TextEditorOutput/index.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.js +89 -57
- package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.js +394 -180
- package/dist/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +151 -130
- package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.utils.js +45 -55
- package/dist/Thumbnail/Thumbnail.utils.js.map +1 -1
- package/dist/Thumbnail/ThumbnailCaption.js +101 -54
- package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
- package/dist/Thumbnail/ThumbnailDocumentIcon.js +479 -156
- package/dist/Thumbnail/ThumbnailDocumentIcon.js.map +1 -1
- package/dist/Thumbnail/ThumbnailPreview.js +31 -20
- package/dist/Thumbnail/ThumbnailPreview.js.map +1 -1
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail/index.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.hooks.js +102 -81
- package/dist/ThumbnailGrid/ThumbnailGrid.hooks.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.js +536 -402
- package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +28 -14
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.types.js.map +1 -1
- package/dist/ThumbnailGrid/index.js +1 -0
- package/dist/ThumbnailGrid/index.js.map +1 -1
- package/dist/TieredDropdown/TieredDropdown.helpers.js +29 -25
- package/dist/TieredDropdown/TieredDropdown.helpers.js.map +1 -1
- package/dist/TieredDropdown/TieredDropdown.js +241 -145
- package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
- package/dist/TieredDropdown/TieredDropdown.types.js.map +1 -1
- package/dist/TieredDropdown/index.js +1 -0
- package/dist/TieredDropdown/index.js.map +1 -1
- package/dist/TieredDropdown/useSearch.js +49 -39
- package/dist/TieredDropdown/useSearch.js.map +1 -1
- package/dist/TieredSelect/LeafSelectionTieredSelect.js +173 -117
- package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TierSelectionTieredSelect.js +486 -316
- package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.js +149 -111
- package/dist/TieredSelect/TieredSelect.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.styles.js +40 -18
- package/dist/TieredSelect/TieredSelect.styles.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
- package/dist/TieredSelect/TieredSelectMenu.js +390 -277
- package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
- package/dist/TieredSelect/index.js +1 -0
- package/dist/TieredSelect/index.js.map +1 -1
- package/dist/Tile/Tile.js +154 -90
- package/dist/Tile/Tile.js.map +1 -1
- package/dist/Tile/Tile.styles.js +81 -46
- package/dist/Tile/Tile.styles.js.map +1 -1
- package/dist/Tile/Tile.types.js.map +1 -1
- package/dist/Tile/index.js +1 -0
- package/dist/Tile/index.js.map +1 -1
- package/dist/Title/Title.js +64 -64
- package/dist/Title/Title.js.map +1 -1
- package/dist/Title/Title.styles.js +30 -14
- package/dist/Title/Title.styles.js.map +1 -1
- package/dist/Title/Title.types.js.map +1 -1
- package/dist/Title/index.js +1 -0
- package/dist/Title/index.js.map +1 -1
- package/dist/Toast/Toast.js +44 -40
- package/dist/Toast/Toast.js.map +1 -1
- package/dist/Toast/Toast.styles.js +18 -15
- package/dist/Toast/Toast.styles.js.map +1 -1
- package/dist/Toast/Toast.types.js.map +1 -1
- package/dist/Toast/index.js +1 -0
- package/dist/Toast/index.js.map +1 -1
- package/dist/ToggleButton/ToggleButton.js +20 -25
- package/dist/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/ToggleButton/ToggleButton.styles.js +6 -8
- package/dist/ToggleButton/ToggleButton.styles.js.map +1 -1
- package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
- package/dist/ToggleButton/index.js +1 -0
- package/dist/ToggleButton/index.js.map +1 -1
- package/dist/Token/Token.js +39 -34
- package/dist/Token/Token.js.map +1 -1
- package/dist/Token/Token.styles.js +25 -16
- package/dist/Token/Token.styles.js.map +1 -1
- package/dist/Token/Token.types.js.map +1 -1
- package/dist/Token/index.js +1 -0
- package/dist/Token/index.js.map +1 -1
- package/dist/ToolHeader/ActionIcon.js +45 -38
- package/dist/ToolHeader/ActionIcon.js.map +1 -1
- package/dist/ToolHeader/ActionIcon.types.example.js +58 -18
- package/dist/ToolHeader/ActionIcon.types.example.js.map +1 -1
- package/dist/ToolHeader/ActionIcon.types.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.js +60 -47
- package/dist/ToolHeader/ToolHeader.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +30 -18
- package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.types.js.map +1 -1
- package/dist/ToolHeader/index.js.map +1 -1
- package/dist/Tooltip/Tooltip.js +43 -31
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/Tooltip/Tooltip.styles.js +8 -7
- package/dist/Tooltip/Tooltip.styles.js.map +1 -1
- package/dist/Tooltip/Tooltip.types.js.map +1 -1
- package/dist/Tooltip/index.js +1 -0
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/Tree/Tree.hooks.js +195 -190
- package/dist/Tree/Tree.hooks.js.map +1 -1
- package/dist/Tree/Tree.js +530 -324
- package/dist/Tree/Tree.js.map +1 -1
- package/dist/Tree/Tree.styles.js +49 -28
- package/dist/Tree/Tree.styles.js.map +1 -1
- package/dist/Tree/Tree.types.js.map +1 -1
- package/dist/Tree/index.js +1 -0
- package/dist/Tree/index.js.map +1 -1
- package/dist/Typeahead/Typeahead.js +77 -50
- package/dist/Typeahead/Typeahead.js.map +1 -1
- package/dist/Typeahead/Typeahead.styles.js +16 -8
- package/dist/Typeahead/Typeahead.styles.js.map +1 -1
- package/dist/Typeahead/Typeahead.types.js.map +1 -1
- package/dist/Typeahead/index.js +1 -0
- package/dist/Typeahead/index.js.map +1 -1
- package/dist/Typography/Typography.colors.story.js +282 -141
- package/dist/Typography/Typography.colors.story.js.map +1 -1
- package/dist/Typography/Typography.js +13 -25
- package/dist/Typography/Typography.js.map +1 -1
- package/dist/Typography/Typography.styles.js +42 -41
- package/dist/Typography/Typography.styles.js.map +1 -1
- package/dist/Typography/Typography.table.story.js +24 -45
- package/dist/Typography/Typography.table.story.js.map +1 -1
- package/dist/Typography/Typography.types.js.map +1 -1
- package/dist/Typography/index.js.map +1 -1
- package/dist/_hooks/Analytics.js +27 -18
- package/dist/_hooks/Analytics.js.map +1 -1
- package/dist/_hooks/Anchor.js +123 -84
- package/dist/_hooks/Anchor.js.map +1 -1
- package/dist/_hooks/Autofocus.js +53 -52
- package/dist/_hooks/Autofocus.js.map +1 -1
- package/dist/_hooks/BoundingRect.js +57 -41
- package/dist/_hooks/BoundingRect.js.map +1 -1
- package/dist/_hooks/Buffer.js +64 -39
- package/dist/_hooks/Buffer.js.map +1 -1
- package/dist/_hooks/ClickOutside.js +31 -20
- package/dist/_hooks/ClickOutside.js.map +1 -1
- package/dist/_hooks/DateTime/DateTime.js +235 -188
- package/dist/_hooks/DateTime/DateTime.js.map +1 -1
- package/dist/_hooks/DateTime/index.js +1 -1
- package/dist/_hooks/DateTime/index.js.map +1 -1
- package/dist/_hooks/DelayedCallback.js +41 -25
- package/dist/_hooks/DelayedCallback.js.map +1 -1
- package/dist/_hooks/DelayedToggle.js +98 -59
- package/dist/_hooks/DelayedToggle.js.map +1 -1
- package/dist/_hooks/Deprecation.js +11 -10
- package/dist/_hooks/Deprecation.js.map +1 -1
- package/dist/_hooks/Event.js +53 -28
- package/dist/_hooks/Event.js.map +1 -1
- package/dist/_hooks/EventListener.js +103 -59
- package/dist/_hooks/EventListener.js.map +1 -1
- package/dist/_hooks/EventRegistry.js +19 -14
- package/dist/_hooks/EventRegistry.js.map +1 -1
- package/dist/_hooks/Hotkey.js +35 -32
- package/dist/_hooks/Hotkey.js.map +1 -1
- package/dist/_hooks/I18n.js +54 -52
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/InjectedScript.js +66 -45
- package/dist/_hooks/InjectedScript.js.map +1 -1
- package/dist/_hooks/IntersectionObserver/createIntersectionObserver.js +3 -3
- package/dist/_hooks/IntersectionObserver/createIntersectionObserver.js.map +1 -1
- package/dist/_hooks/IntersectionObserver/index.js.map +1 -1
- package/dist/_hooks/IntersectionObserver/useIntersectionObserver.js +23 -14
- package/dist/_hooks/IntersectionObserver/useIntersectionObserver.js.map +1 -1
- package/dist/_hooks/ListNavigation.js +114 -79
- package/dist/_hooks/ListNavigation.js.map +1 -1
- package/dist/_hooks/OverflowObserver/OverflowObserver.js +56 -32
- package/dist/_hooks/OverflowObserver/OverflowObserver.js.map +1 -1
- package/dist/_hooks/OverflowObserver/OverflowObserver.test.js +110 -0
- package/dist/_hooks/OverflowObserver/OverflowObserver.types.js.map +1 -1
- package/dist/_hooks/OverflowObserver/index.js.map +1 -1
- package/dist/_hooks/Resize.js +10 -4
- package/dist/_hooks/Resize.js.map +1 -1
- package/dist/_hooks/ResizeObserver.js +23 -14
- package/dist/_hooks/ResizeObserver.js.map +1 -1
- package/dist/_hooks/Scroll.js +16 -4
- package/dist/_hooks/Scroll.js.map +1 -1
- package/dist/_hooks/ScrollLock.js +15 -15
- package/dist/_hooks/ScrollLock.js.map +1 -1
- package/dist/_hooks/TextEntry.js +83 -46
- package/dist/_hooks/TextEntry.js.map +1 -1
- package/dist/_hooks/Timer.js +48 -29
- package/dist/_hooks/Timer.js.map +1 -1
- package/dist/_hooks/Trigger.js +120 -86
- package/dist/_hooks/Trigger.js.map +1 -1
- package/dist/_hooks/Visibility.js +82 -49
- package/dist/_hooks/Visibility.js.map +1 -1
- package/dist/_hooks/ZIndex.js +53 -34
- package/dist/_hooks/ZIndex.js.map +1 -1
- package/dist/_hooks/__tests__/Anchor.test.js +109 -0
- package/dist/_hooks/__tests__/BoundingRect.test.js +85 -0
- package/dist/_hooks/__tests__/Buffer.test.js +76 -0
- package/dist/_hooks/__tests__/DateTime.test.js +136 -0
- package/dist/_hooks/__tests__/DelayedCallback.test.js +119 -0
- package/dist/_hooks/__tests__/DelayedToggle.test.js +50 -0
- package/dist/_hooks/__tests__/Deprecation.test.js +58 -0
- package/dist/_hooks/__tests__/Event.test.js +46 -0
- package/dist/_hooks/__tests__/EventListener.test.js +78 -0
- package/dist/_hooks/__tests__/Hotkey.test.js +18 -0
- package/dist/_hooks/__tests__/InjectedScript.test.js +80 -0
- package/dist/_hooks/__tests__/ListNavigation.test.js +101 -0
- package/dist/_hooks/__tests__/TextEntry.test.js +92 -0
- package/dist/_hooks/__tests__/Timer.test.js +60 -0
- package/dist/_hooks/__tests__/Trigger.test.js +52 -0
- package/dist/_hooks/__tests__/Visibility.test.js +86 -0
- package/dist/_hooks/__tests__/ZIndex.test.js +76 -0
- package/dist/_hooks/useFileUploader.js +220 -220
- package/dist/_hooks/useFileUploader.js.map +1 -1
- package/dist/_hooks/useFocusWithin.js +27 -18
- package/dist/_hooks/useFocusWithin.js.map +1 -1
- package/dist/_hooks/useSet.js +71 -45
- package/dist/_hooks/useSet.js.map +1 -1
- package/dist/_hooks/useUpdateEffect.js +14 -13
- package/dist/_hooks/useUpdateEffect.js.map +1 -1
- package/dist/_locales/de-DE.json +354 -354
- package/dist/_locales/en-AU.json +354 -354
- package/dist/_locales/en-CA.json +354 -354
- package/dist/_locales/en-GB.json +354 -354
- package/dist/_locales/en-US.json +30 -30
- package/dist/_locales/en.json +353 -353
- package/dist/_locales/es-ES.json +354 -354
- package/dist/_locales/es.json +354 -354
- package/dist/_locales/fr-CA.json +354 -354
- package/dist/_locales/fr-FR.json +354 -354
- package/dist/_locales/is-IS.json +354 -354
- package/dist/_locales/pt-BR.json +354 -354
- package/dist/_locales/th-TH.json +354 -354
- package/dist/_locales/zh-SG.json +354 -354
- package/dist/_styles/arrows.js +4 -9
- package/dist/_styles/arrows.js.map +1 -1
- package/dist/_styles/borderRadius.js +4 -9
- package/dist/_styles/borderRadius.js.map +1 -1
- package/dist/_styles/colors.js +19 -18
- package/dist/_styles/colors.js.map +1 -1
- package/dist/_styles/media.js.map +1 -1
- package/dist/_styles/mixins.js +14 -16
- package/dist/_styles/mixins.js.map +1 -1
- package/dist/_styles/shadows.js +12 -17
- package/dist/_styles/shadows.js.map +1 -1
- package/dist/_styles/spacing.js +8 -8
- package/dist/_styles/spacing.js.map +1 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +11 -11
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +698 -698
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +41 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +30 -30
- package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +27 -27
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +55 -55
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +96 -96
- package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +8 -8
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_utils/CalendarHelpers.js +147 -129
- package/dist/_utils/CalendarHelpers.js.map +1 -1
- package/dist/_utils/TinyMCE.js +60 -109
- package/dist/_utils/TinyMCE.js.map +1 -1
- package/dist/_utils/__tests__/CalendarHelpers.test.js +64 -0
- package/dist/_utils/__tests__/filename.test.js +27 -0
- package/dist/_utils/__tests__/getAnchorPosition.test.js +250 -0
- package/dist/_utils/__tests__/mergeRefs.test.js +58 -0
- package/dist/_utils/__tests__/slotify.test.js +152 -0
- package/dist/_utils/addSubcomponents.js +5 -5
- package/dist/_utils/addSubcomponents.js.map +1 -1
- package/dist/_utils/dateTime.js +103 -85
- package/dist/_utils/dateTime.js.map +1 -1
- package/dist/_utils/dom.js +21 -25
- package/dist/_utils/dom.js.map +1 -1
- package/dist/_utils/filename.js +19 -11
- package/dist/_utils/filename.js.map +1 -1
- package/dist/_utils/genericAnalyticsClient.js +40 -26
- package/dist/_utils/genericAnalyticsClient.js.map +1 -1
- package/dist/_utils/getAnchorPosition.js +221 -127
- package/dist/_utils/getAnchorPosition.js.map +1 -1
- package/dist/_utils/i18n.js +19 -19
- package/dist/_utils/i18n.js.map +1 -1
- package/dist/_utils/isIE11.js +4 -4
- package/dist/_utils/isIE11.js.map +1 -1
- package/dist/_utils/isReactElement.js +1 -1
- package/dist/_utils/isReactElement.js.map +1 -1
- package/dist/_utils/mergeRefs.js +13 -13
- package/dist/_utils/mergeRefs.js.map +1 -1
- package/dist/_utils/partition.js +13 -5
- package/dist/_utils/partition.js.map +1 -1
- package/dist/_utils/placement.js +13 -13
- package/dist/_utils/placement.js.map +1 -1
- package/dist/_utils/polymorphic.js +6 -1
- package/dist/_utils/polymorphic.js.map +1 -1
- package/dist/_utils/props.js +1 -1
- package/dist/_utils/props.js.map +1 -1
- package/dist/_utils/propsTypedoc.js +14 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/_utils/runInQueue.js +39 -57
- package/dist/_utils/runInQueue.js.map +1 -1
- package/dist/_utils/scrollIntoView.js +17 -15
- package/dist/_utils/scrollIntoView.js.map +1 -1
- package/dist/_utils/slotify.js +45 -42
- package/dist/_utils/slotify.js.map +1 -1
- package/dist/_utils/triggerListeners.js +65 -53
- package/dist/_utils/triggerListeners.js.map +1 -1
- package/dist/_utils/types.js.map +1 -1
- package/dist/_utils/usingHookOrDefault.js +3 -5
- package/dist/_utils/usingHookOrDefault.js.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
- package/dist/Link/Link.coverage.stories.js +0 -28
- package/dist/Link/Link.coverage.stories.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.styles.js","
|
|
1
|
+
{"version":3,"file":"Tabs.styles.js","names":["styled","css","Card","getUnstyledButton","getTypographyIntent","typographyWeights","colors","focusable","spacing","tabGap","md","hiddenTab","visible","StyledLink","span","withConfig","displayName","componentId","StyledTab","div","blue40","StyledTabInner","_ref","active","dark","textColors","white","gray70","hover","gray15","gray45","blue50","StyledDropdownTab","xs","StyledDropdownTabInner","StyledOverlay","sm","lg","semibold","StyledTabList","StyledTabs","nav","_ref2","_ref3","index","_ref4","_ref4$index"],"sources":["../../src/Tabs/Tabs.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Card } from '../Card/Card'\nimport { getUnstyledButton } from '../Semantic/Semantic.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { focusable } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nconst tabGap = spacing.md\n\nconst hiddenTab = css`\n pointer-events: none;\n position: absolute;\n visibility: hidden;\n`\n\nconst visible = css`\n pointer-events: all;\n position: relative;\n visibility: visible;\n`\n\nexport const StyledLink = styled.span`\n align-items: center;\n border-bottom-style: solid;\n border-bottom-color: transparent;\n border-bottom-width: 2px;\n display: inline-flex;\n height: 26px; // TODO one-off\n justify-content: center;\n`\n\nexport const StyledTab = styled.div`\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n flex: 0 0 auto;\n justify-content: center;\n padding: 0 ${tabGap}px;\n position: relative;\n white-space: nowrap;\n\n a& {\n text-decoration: none;\n }\n\n button& {\n background-color: transparent;\n border: none;\n font-family: inherit;\n }\n\n &:first-child {\n padding-left: 0;\n }\n\n &:last-child {\n padding-right: 0;\n }\n\n &:not(:last-child) {\n &:focus {\n outline: none;\n\n ${StyledLink} {\n box-shadow: inset 0 0 0 1px ${colors.blue40};\n }\n }\n }\n`\n\nexport const StyledTabInner = styled.div<{ active?: boolean; dark?: boolean }>`\n ${getTypographyIntent('body')}\n\n > a {\n text-decoration: none;\n ${focusable}\n }\n\n ${({ active, dark }) => {\n const textColors = dark\n ? {\n active: colors.white,\n default: colors.gray70,\n hover: colors.white,\n }\n : {\n active: colors.gray15,\n default: colors.gray45,\n hover: colors.gray15,\n }\n\n if (active) {\n return css`\n &,\n > a {\n color: ${textColors.active};\n cursor: default;\n }\n\n ${StyledLink} {\n border-bottom-color: ${colors.blue50};\n }\n `\n }\n\n return css`\n &,\n > a {\n color: ${textColors.default};\n cursor: pointer;\n }\n &:hover,\n &.hover,\n > a:hover {\n color: ${textColors.hover};\n }\n `\n }}\n`\n\nexport const StyledDropdownTab = styled(StyledTab)`\n cursor: pointer;\n ${getUnstyledButton}\n ${focusable}\n\n ${hiddenTab}\n\n margin-left: ${tabGap}px;\n\n ${StyledLink} {\n margin-right: ${spacing.xs}px;\n }\n`\n\nexport const StyledDropdownTabInner = styled(StyledTabInner)`\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n`\n\nexport const StyledOverlay = styled(Card)`\n max-height: 40vh;\n\n ${StyledTabInner} {\n color: ${colors.gray45};\n }\n ${StyledTab} {\n // onClick events are attached to the Tab which are put inside of <Menu.Item>\n // components with padding. Negative margin trick allows the cloned tab\n // to cover the full area of the menu item\n margin: -${spacing.sm}px -${spacing.lg}px;\n padding: ${spacing.sm}px ${spacing.lg}px;\n }\n\n // hacky way to style items that were cloned into the menu\n // can probably clean this up once we convert menu to jss\n // by using the inverse ancestor selector\n [data-selected='true'] {\n ${StyledTabInner},\n ${StyledTabInner} > a {\n color: ${colors.blue50};\n font-weight: ${typographyWeights.semibold};\n }\n }\n\n ${StyledLink} {\n border: 0;\n height: auto;\n }\n`\n\nexport const StyledTabList = styled.div`\n display: flex;\n width: 100%;\n`\n\nexport const StyledTabs = styled.nav<{ dark?: boolean; index?: number }>`\n background-color: ${({ dark }) => dark && colors.gray15};\n display: flex;\n overflow: hidden;\n width: 100%;\n\n ${StyledTab} {\n // we want to hide all tabs after overflow index\n &:nth-child(1n + ${({ index }) => index}) {\n // but not the \"More\" dropdown tab\n &:not(${StyledDropdownTab}) {\n ${hiddenTab}\n }\n }\n }\n\n ${({ index = -1 }) =>\n index >= 0 &&\n css`\n ${StyledDropdownTab} {\n ${visible}\n }\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,IAAMC,MAAM,GAAGD,OAAO,CAACE,EAAE;AAEzB,IAAMC,SAAS,gBAAGV,GAAG,8DAIpB;AAED,IAAMW,OAAO,gBAAGX,GAAG,8DAIlB;AAED,OAAO,IAAMY,UAAU,gBAAGb,MAAM,CAACc,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oKAQpC;AAED,OAAO,IAAMC,SAAS,gBAAGlB,MAAM,CAACmB,GAAG,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qYAMpBR,MAAM,EA0BbI,UAAU,EACoBP,MAAM,CAACc,MAAM,CAIlD;AAED,OAAO,IAAMC,cAAc,gBAAGrB,MAAM,CAACmB,GAAG,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gDACpCb,mBAAmB,CAAC,MAAM,CAAC,EAIzBG,SAAS,EAGX,UAAAe,IAAA,EAAsB;EAAA,IAAnBC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;EACf,IAAMC,UAAU,GAAGD,IAAI,GACnB;IACED,MAAM,EAAEjB,MAAM,CAACoB,KAAK;IACpB,WAASpB,MAAM,CAACqB,MAAM;IACtBC,KAAK,EAAEtB,MAAM,CAACoB;EAChB,CAAC,GACD;IACEH,MAAM,EAAEjB,MAAM,CAACuB,MAAM;IACrB,WAASvB,MAAM,CAACwB,MAAM;IACtBF,KAAK,EAAEtB,MAAM,CAACuB;EAChB,CAAC;EAEL,IAAIN,MAAM,EAAE;IACV,OAAOtB,GAAG,uEAGGwB,UAAU,CAACF,MAAM,EAI1BV,UAAU,EACaP,MAAM,CAACyB,MAAM;EAG1C;EAEA,OAAO9B,GAAG,8EAGGwB,UAAU,WAAQ,EAMlBA,UAAU,CAACG,KAAK;AAG/B,CAAC,CACF;AAED,OAAO,IAAMI,iBAAiB,gBAAGhC,MAAM,CAACkB,SAAS,CAAC,CAAAH,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oFAE9Cd,iBAAiB,EACjBI,SAAS,EAETI,SAAS,EAEIF,MAAM,EAEnBI,UAAU,EACML,OAAO,CAACyB,EAAE,CAE7B;AAED,OAAO,IAAMC,sBAAsB,gBAAGlC,MAAM,CAACqB,cAAc,CAAC,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8DAI3D;AAED,OAAO,IAAMkB,aAAa,gBAAGnC,MAAM,CAACE,IAAI,CAAC,CAAAa,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2LAGrCI,cAAc,EACLf,MAAM,CAACwB,MAAM,EAEtBZ,SAAS,EAIEV,OAAO,CAAC4B,EAAE,EAAO5B,OAAO,CAAC6B,EAAE,EAC3B7B,OAAO,CAAC4B,EAAE,EAAM5B,OAAO,CAAC6B,EAAE,EAOnChB,cAAc,EACdA,cAAc,EACLf,MAAM,CAACyB,MAAM,EACP1B,iBAAiB,CAACiC,QAAQ,EAI3CzB,UAAU,CAIb;AAED,OAAO,IAAM0B,aAAa,gBAAGvC,MAAM,CAACmB,GAAG,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gCAGtC;AAED,OAAO,IAAMuB,UAAU,gBAAGxC,MAAM,CAACyC,GAAG,CAAA1B,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0HACd,UAAAyB,KAAA;EAAA,IAAGlB,IAAI,GAAAkB,KAAA,CAAJlB,IAAI;EAAA,OAAOA,IAAI,IAAIlB,MAAM,CAACuB,MAAM;AAAA,GAKrDX,SAAS,EAEU,UAAAyB,KAAA;EAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;EAAA,OAAOA,KAAK;AAAA,GAE7BZ,iBAAiB,EACrBrB,SAAS,EAKf,UAAAkC,KAAA;EAAA,IAAAC,WAAA,GAAAD,KAAA,CAAGD,KAAK;IAALA,KAAK,GAAAE,WAAA,cAAG,CAAC,CAAC,GAAAA,WAAA;EAAA,OACbF,KAAK,IAAI,CAAC,IACV3C,GAAG,iBACC+B,iBAAiB,EACfpB,OAAO,CAEZ;AAAA,EACJ"}
|
package/dist/Tabs/Tabs.types.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export var tabVariant = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
none: '',
|
|
3
|
+
active: 'active',
|
|
4
|
+
dark: 'dark',
|
|
5
|
+
dropdown: 'dropdown',
|
|
6
|
+
hover: 'hover',
|
|
7
|
+
overflowing: 'overflowing'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=Tabs.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.types.js","
|
|
1
|
+
{"version":3,"file":"Tabs.types.js","names":["tabVariant","none","active","dark","dropdown","hover","overflowing"],"sources":["../../src/Tabs/Tabs.types.ts"],"sourcesContent":["import { AriaButtonProps } from '@react-aria/button'\nimport React from 'react'\nimport { Polymorphic } from '../_utils/polymorphic'\nimport { Props } from '../_utils/types'\n\nexport type TabRoleType = 'link' | 'button'\n\nexport interface TabPolyMap extends Record<TabRoleType, React.ElementType> {\n button: 'button'\n link: 'a'\n}\n\nexport type TabRole = TabRoleType | undefined\n\nexport type TabRef<Role extends TabRole = undefined> = Role extends TabRoleType\n ? Polymorphic.Ref<TabPolyMap, Role>\n : React.ComponentPropsWithRef<'div'>['ref']\n\nexport type TabProps<Role extends TabRole = undefined> = Role extends 'link'\n ? Polymorphic.ComponentPropsWithRef<TabPolyMap, 'link', 'href', BaseTabProps>\n : Role extends 'button'\n ? Polymorphic.ComponentPropsWithRef<\n TabPolyMap,\n 'button',\n never,\n BaseTabProps & { onPress: AriaButtonProps['onPress'] }\n >\n : BaseTabProps & { ref?: TabRef<undefined> }\n\nexport const tabVariant = {\n none: '',\n active: 'active',\n dark: 'dark',\n dropdown: 'dropdown',\n hover: 'hover',\n overflowing: 'overflowing',\n} as const\n\ntype TabVariant = (typeof tabVariant)[keyof typeof tabVariant]\n\nexport interface BaseTabProps extends Props {\n /**\n * The tab is active\n * @since 10.19.0\n */\n active?: boolean\n\n /**\n * Whether or not tab is in dark mode\n * @private\n * @since 10.19.0\n */\n dark?: boolean\n\n /**\n * @private\n * @since 10.19.0\n */\n onMount?: (el: HTMLDivElement | null) => void\n\n /**\n * @private\n */\n onUnmount?: () => void\n\n /**\n * @deprecated This was never intended to be a public facing API and does not\n * do anything. It will be removed in the future.\n * @since 10.19.0\n */\n dropdown?: boolean\n\n /**\n * @deprecated This was never intended to be a public facing API and does not\n * do anything. It will be removed in the future.\n * @since 10.19.0\n */\n overflowing?: boolean\n\n /**\n * @deprecated please use the `active` and `dark` props to configure style. The\n * `dropdown`, `hover`, and `overflowing` variants were only for internal use\n * and should not be used in clients\n * @since 10.19.0\n */\n variant?: TabVariant\n /**\n * @since 11.6.0\n */\n disabled?: boolean\n /**\n * Sets the Tab's role\n * @since 11.6.0\n */\n role?: TabRole\n}\n\nexport interface TabsTabProps extends BaseTabProps {}\n\nexport interface QaTags {\n /**\n * @since 10.19.0\n */\n more?: string\n}\n\nexport interface TabsProps extends Props {\n /**\n * @since 10.19.0\n */\n dark?: boolean\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface TabDropdownProps extends Props {\n /**\n * @since 10.19.0\n */\n visible?: boolean\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n"],"mappings":"AA6BA,OAAO,IAAMA,UAAU,GAAG;EACxBC,IAAI,EAAE,EAAE;EACRC,MAAM,EAAE,QAAQ;EAChBC,IAAI,EAAE,MAAM;EACZC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,WAAW,EAAE;AACf,CAAU"}
|
package/dist/Tabs/index.js
CHANGED
package/dist/Tabs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","names":["Tabs","TabsProps","TabsTabProps"],"sources":["../../src/Tabs/index.ts"],"sourcesContent":["export { Tabs } from './Tabs'\nexport { TabsProps, TabsTabProps } from './Tabs.types'\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,SAASC,SAAS,EAAEC,YAAY,QAAQ,cAAc"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
export var openingPhasesInOrder = [
|
|
11
|
-
'scrim',
|
|
12
|
-
'tearsheet',
|
|
13
|
-
'closeButton',
|
|
14
|
-
];
|
|
15
|
-
export var closingPhasesInOrder = __spreadArray([], openingPhasesInOrder, true).reverse();
|
|
1
|
+
export var openingPhasesInOrder = ['scrim', 'tearsheet', 'closeButton'];
|
|
2
|
+
export var closingPhasesInOrder = [].concat(openingPhasesInOrder).reverse();
|
|
16
3
|
//# sourceMappingURL=Tearsheet.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tearsheet.constants.js","
|
|
1
|
+
{"version":3,"file":"Tearsheet.constants.js","names":["openingPhasesInOrder","closingPhasesInOrder","concat","reverse"],"sources":["../../src/Tearsheet/Tearsheet.constants.ts"],"sourcesContent":["import { AnimationPhase } from './Tearsheet.types'\n\nexport const openingPhasesInOrder: AnimationPhase[] = [\n 'scrim',\n 'tearsheet',\n 'closeButton',\n]\nexport const closingPhasesInOrder = [...openingPhasesInOrder].reverse()\n"],"mappings":"AAEA,OAAO,IAAMA,oBAAsC,GAAG,CACpD,OAAO,EACP,WAAW,EACX,aAAa,CACd;AACD,OAAO,IAAMC,oBAAoB,GAAG,GAAAC,MAAA,CAAIF,oBAAoB,EAAEG,OAAO,CAAC,CAAC"}
|
|
@@ -1,55 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
4
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
48
13
|
import { Clear } from '@procore/core-icons/dist';
|
|
49
14
|
import { FocusScope } from '@react-aria/focus';
|
|
50
15
|
import React from 'react';
|
|
51
16
|
import { Button } from '../Button/Button';
|
|
52
|
-
import { CloseWithConfirmContext, useCloseWithConfirmState
|
|
17
|
+
import { CloseWithConfirmContext, useCloseWithConfirmState } from '../Form/closeWithConfirm';
|
|
53
18
|
import { StyledModal, StyledModalScrim } from '../Modal/Modal.styles';
|
|
54
19
|
import { useModalDialogLike } from '../OverlayTrigger/a11yPresets';
|
|
55
20
|
import { Portal } from '../Portal/Portal';
|
|
@@ -58,13 +23,16 @@ import { useHotkey } from '../_hooks/Hotkey';
|
|
|
58
23
|
import { useI18nContext } from '../_hooks/I18n';
|
|
59
24
|
import { useScrollLock } from '../_hooks/ScrollLock';
|
|
60
25
|
import { useUpdateEffect } from '../_hooks/useUpdateEffect';
|
|
61
|
-
import { closingPhasesInOrder, openingPhasesInOrder
|
|
62
|
-
import { animationSpeed, StyledButtonCard, StyledButtonContainer, StyledScrimContainer, StyledTearsheetBody, StyledTearsheetContent
|
|
26
|
+
import { closingPhasesInOrder, openingPhasesInOrder } from './Tearsheet.constants';
|
|
27
|
+
import { animationSpeed, StyledButtonCard, StyledButtonContainer, StyledScrimContainer, StyledTearsheetBody, StyledTearsheetContent } from './Tearsheet.styles';
|
|
63
28
|
import { getAnimationState, getScrimClassName, wait } from './Tearsheet.util';
|
|
64
|
-
export var TearsheetContext = React.createContext({
|
|
65
|
-
|
|
66
|
-
|
|
29
|
+
export var TearsheetContext = /*#__PURE__*/React.createContext({
|
|
30
|
+
placement: null,
|
|
31
|
+
addListener: function addListener() {
|
|
32
|
+
return function () {};
|
|
33
|
+
}
|
|
67
34
|
});
|
|
35
|
+
|
|
68
36
|
/**
|
|
69
37
|
|
|
70
38
|
The Tearsheet is a container for complex content placed over another layout,
|
|
@@ -78,131 +46,214 @@ export var TearsheetContext = React.createContext({
|
|
|
78
46
|
@see [Design Guidelines](https://design.procore.com/tearsheet)
|
|
79
47
|
|
|
80
48
|
*/
|
|
81
|
-
export var Tearsheet = React.forwardRef(function Tearsheet(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
49
|
+
export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, ref) {
|
|
50
|
+
var ariaDescribedby = _ref['aria-describedby'],
|
|
51
|
+
ariaDetails = _ref['aria-details'],
|
|
52
|
+
ariaLabelledby = _ref['aria-labelledby'],
|
|
53
|
+
ariaLabel = _ref['aria-label'],
|
|
54
|
+
children = _ref.children,
|
|
55
|
+
id = _ref.id,
|
|
56
|
+
open = _ref.open,
|
|
57
|
+
onClose_ = _ref.onClose,
|
|
58
|
+
afterShow = _ref.afterShow,
|
|
59
|
+
afterHide = _ref.afterHide,
|
|
60
|
+
_ref$placement = _ref.placement,
|
|
61
|
+
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
|
62
|
+
role = _ref.role,
|
|
63
|
+
_ref$stretch = _ref.stretch,
|
|
64
|
+
stretch = _ref$stretch === void 0 ? false : _ref$stretch,
|
|
65
|
+
qa = _ref.qa;
|
|
66
|
+
var I18n = useI18nContext();
|
|
67
|
+
var _React$useState = React.useState('closed'),
|
|
68
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
69
|
+
status = _React$useState2[0],
|
|
70
|
+
setStatus = _React$useState2[1];
|
|
71
|
+
var _React$useState3 = React.useState('disabled'),
|
|
72
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
73
|
+
phase = _React$useState4[0],
|
|
74
|
+
setPhase = _React$useState4[1];
|
|
75
|
+
var _React$useState5 = React.useState(open),
|
|
76
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
77
|
+
isVisible = _React$useState6[0],
|
|
78
|
+
setIsVisible = _React$useState6[1];
|
|
79
|
+
var closeBtnRef = React.useRef(null);
|
|
80
|
+
var closeWithConfirmState = useCloseWithConfirmState();
|
|
81
|
+
var closeWithConfirm = closeWithConfirmState.closeWithConfirm;
|
|
82
|
+
var onClose = closeWithConfirm(onClose_);
|
|
83
|
+
var _useModalDialogLike = useModalDialogLike({
|
|
84
|
+
'aria-describedby': ariaDescribedby,
|
|
85
|
+
'aria-details': ariaDetails,
|
|
86
|
+
'aria-labelledby': ariaLabelledby,
|
|
87
|
+
'aria-label': ariaLabel,
|
|
88
|
+
id: id,
|
|
89
|
+
isModal: false,
|
|
90
|
+
isOpen: isVisible && status === 'open',
|
|
91
|
+
role: role
|
|
92
|
+
}),
|
|
93
|
+
dialogProps = _useModalDialogLike.dialogProps,
|
|
94
|
+
focusScopeProps = _useModalDialogLike.focusScopeProps;
|
|
95
|
+
var _useEventRegistry = useEventRegistry(),
|
|
96
|
+
registry = _useEventRegistry.registry,
|
|
97
|
+
addListener = _useEventRegistry.addListener;
|
|
98
|
+
var ctx = React.useMemo(function () {
|
|
99
|
+
return {
|
|
100
|
+
addListener: addListener,
|
|
101
|
+
placement: placement
|
|
102
|
+
};
|
|
103
|
+
}, [placement, addListener]);
|
|
104
|
+
useScrollLock(status !== 'closed');
|
|
105
|
+
React.useEffect(function () {
|
|
106
|
+
// do not run 'closing' animation if the initial state is closed
|
|
107
|
+
if (open) {
|
|
108
|
+
setStatus('opening');
|
|
121
109
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
var _i, openingPhasesInOrder_1, openingPhase, _a, closingPhasesInOrder_1, closingPhase;
|
|
130
|
-
var _b, _c;
|
|
131
|
-
return __generator(this, function (_d) {
|
|
132
|
-
switch (_d.label) {
|
|
133
|
-
case 0:
|
|
134
|
-
if (!(status === 'opening')) return [3 /*break*/, 6];
|
|
135
|
-
setIsVisible(true);
|
|
136
|
-
_i = 0, openingPhasesInOrder_1 = openingPhasesInOrder;
|
|
137
|
-
_d.label = 1;
|
|
138
|
-
case 1:
|
|
139
|
-
if (!(_i < openingPhasesInOrder_1.length)) return [3 /*break*/, 4];
|
|
140
|
-
openingPhase = openingPhasesInOrder_1[_i];
|
|
141
|
-
setPhase(openingPhase);
|
|
142
|
-
return [4 /*yield*/, wait(animationSpeed[openingPhase])];
|
|
143
|
-
case 2:
|
|
144
|
-
_d.sent();
|
|
145
|
-
_d.label = 3;
|
|
146
|
-
case 3:
|
|
147
|
-
_i++;
|
|
148
|
-
return [3 /*break*/, 1];
|
|
149
|
-
case 4:
|
|
150
|
-
setStatus('open');
|
|
151
|
-
setPhase('disabled');
|
|
152
|
-
(_b = closeBtnRef.current) === null || _b === void 0 ? void 0 : _b.focus();
|
|
153
|
-
return [4 /*yield*/, wait(0)];
|
|
154
|
-
case 5:
|
|
155
|
-
_d.sent();
|
|
156
|
-
(_c = registry.current.afterShow) === null || _c === void 0 ? void 0 : _c.forEach(function (cb) { return cb(); });
|
|
157
|
-
afterShow === null || afterShow === void 0 ? void 0 : afterShow();
|
|
158
|
-
return [2 /*return*/];
|
|
159
|
-
case 6:
|
|
160
|
-
if (!(status === 'closing')) return [3 /*break*/, 11];
|
|
161
|
-
_a = 0, closingPhasesInOrder_1 = closingPhasesInOrder;
|
|
162
|
-
_d.label = 7;
|
|
163
|
-
case 7:
|
|
164
|
-
if (!(_a < closingPhasesInOrder_1.length)) return [3 /*break*/, 10];
|
|
165
|
-
closingPhase = closingPhasesInOrder_1[_a];
|
|
166
|
-
setPhase(closingPhase);
|
|
167
|
-
return [4 /*yield*/, wait(animationSpeed[closingPhase])];
|
|
168
|
-
case 8:
|
|
169
|
-
_d.sent();
|
|
170
|
-
_d.label = 9;
|
|
171
|
-
case 9:
|
|
172
|
-
_a++;
|
|
173
|
-
return [3 /*break*/, 7];
|
|
174
|
-
case 10:
|
|
175
|
-
setStatus('closed');
|
|
176
|
-
setPhase('disabled');
|
|
177
|
-
setIsVisible(false);
|
|
178
|
-
afterHide === null || afterHide === void 0 ? void 0 : afterHide();
|
|
179
|
-
_d.label = 11;
|
|
180
|
-
case 11: return [2 /*return*/];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}); })();
|
|
184
|
-
}, [status]);
|
|
185
|
-
if (!isVisible) {
|
|
186
|
-
return null;
|
|
110
|
+
}, []);
|
|
111
|
+
useUpdateEffect(function () {
|
|
112
|
+
setStatus(open ? 'opening' : 'closing');
|
|
113
|
+
}, [open]);
|
|
114
|
+
function handleClose() {
|
|
115
|
+
if (status === 'open') {
|
|
116
|
+
onClose();
|
|
187
117
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
118
|
+
}
|
|
119
|
+
useHotkey({
|
|
120
|
+
key: ['Escape', 'Esc'],
|
|
121
|
+
handler: handleClose
|
|
122
|
+
});
|
|
123
|
+
React.useEffect(function () {
|
|
124
|
+
;
|
|
125
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
126
|
+
var _closeBtnRef$current, _registry$current$aft, _iterator, _step, openingPhase, _iterator2, _step2, closingPhase;
|
|
127
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
128
|
+
while (1) switch (_context.prev = _context.next) {
|
|
129
|
+
case 0:
|
|
130
|
+
if (!(status === 'opening')) {
|
|
131
|
+
_context.next = 28;
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
setIsVisible(true);
|
|
135
|
+
_iterator = _createForOfIteratorHelper(openingPhasesInOrder);
|
|
136
|
+
_context.prev = 3;
|
|
137
|
+
_iterator.s();
|
|
138
|
+
case 5:
|
|
139
|
+
if ((_step = _iterator.n()).done) {
|
|
140
|
+
_context.next = 12;
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
openingPhase = _step.value;
|
|
144
|
+
setPhase(openingPhase);
|
|
145
|
+
_context.next = 10;
|
|
146
|
+
return wait(animationSpeed[openingPhase]);
|
|
147
|
+
case 10:
|
|
148
|
+
_context.next = 5;
|
|
149
|
+
break;
|
|
150
|
+
case 12:
|
|
151
|
+
_context.next = 17;
|
|
152
|
+
break;
|
|
153
|
+
case 14:
|
|
154
|
+
_context.prev = 14;
|
|
155
|
+
_context.t0 = _context["catch"](3);
|
|
156
|
+
_iterator.e(_context.t0);
|
|
157
|
+
case 17:
|
|
158
|
+
_context.prev = 17;
|
|
159
|
+
_iterator.f();
|
|
160
|
+
return _context.finish(17);
|
|
161
|
+
case 20:
|
|
162
|
+
setStatus('open');
|
|
163
|
+
setPhase('disabled');
|
|
164
|
+
(_closeBtnRef$current = closeBtnRef.current) === null || _closeBtnRef$current === void 0 ? void 0 : _closeBtnRef$current.focus();
|
|
165
|
+
_context.next = 25;
|
|
166
|
+
return wait(0);
|
|
167
|
+
case 25:
|
|
168
|
+
(_registry$current$aft = registry.current.afterShow) === null || _registry$current$aft === void 0 ? void 0 : _registry$current$aft.forEach(function (cb) {
|
|
169
|
+
return cb();
|
|
170
|
+
});
|
|
171
|
+
afterShow === null || afterShow === void 0 ? void 0 : afterShow();
|
|
172
|
+
return _context.abrupt("return");
|
|
173
|
+
case 28:
|
|
174
|
+
if (!(status === 'closing')) {
|
|
175
|
+
_context.next = 51;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
_iterator2 = _createForOfIteratorHelper(closingPhasesInOrder);
|
|
179
|
+
_context.prev = 30;
|
|
180
|
+
_iterator2.s();
|
|
181
|
+
case 32:
|
|
182
|
+
if ((_step2 = _iterator2.n()).done) {
|
|
183
|
+
_context.next = 39;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
closingPhase = _step2.value;
|
|
187
|
+
setPhase(closingPhase);
|
|
188
|
+
_context.next = 37;
|
|
189
|
+
return wait(animationSpeed[closingPhase]);
|
|
190
|
+
case 37:
|
|
191
|
+
_context.next = 32;
|
|
192
|
+
break;
|
|
193
|
+
case 39:
|
|
194
|
+
_context.next = 44;
|
|
195
|
+
break;
|
|
196
|
+
case 41:
|
|
197
|
+
_context.prev = 41;
|
|
198
|
+
_context.t1 = _context["catch"](30);
|
|
199
|
+
_iterator2.e(_context.t1);
|
|
200
|
+
case 44:
|
|
201
|
+
_context.prev = 44;
|
|
202
|
+
_iterator2.f();
|
|
203
|
+
return _context.finish(44);
|
|
204
|
+
case 47:
|
|
205
|
+
setStatus('closed');
|
|
206
|
+
setPhase('disabled');
|
|
207
|
+
setIsVisible(false);
|
|
208
|
+
afterHide === null || afterHide === void 0 ? void 0 : afterHide();
|
|
209
|
+
case 51:
|
|
210
|
+
case "end":
|
|
211
|
+
return _context.stop();
|
|
212
|
+
}
|
|
213
|
+
}, _callee, null, [[3, 14, 17, 20], [30, 41, 44, 47]]);
|
|
214
|
+
}))();
|
|
215
|
+
}, [status]);
|
|
216
|
+
if (!isVisible) {
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(FocusScope, _extends({}, focusScopeProps, {
|
|
220
|
+
restoreFocus: true
|
|
221
|
+
}), /*#__PURE__*/React.createElement(StyledModal, {
|
|
222
|
+
ref: ref,
|
|
223
|
+
className: getScrimClassName(status, phase)
|
|
224
|
+
}, /*#__PURE__*/React.createElement(StyledModalScrim, null), /*#__PURE__*/React.createElement(StyledTearsheetContent, _extends({}, dialogProps, {
|
|
225
|
+
ref: ref,
|
|
226
|
+
$placement: placement
|
|
227
|
+
}, getAnimationState('tearsheet', phase, status)), /*#__PURE__*/React.createElement(StyledScrimContainer, {
|
|
228
|
+
$placement: placement,
|
|
229
|
+
onClick: handleClose,
|
|
230
|
+
"data-qa": qa === null || qa === void 0 ? void 0 : qa.scrim
|
|
231
|
+
}, /*#__PURE__*/React.createElement(StyledButtonContainer, {
|
|
232
|
+
$placement: placement
|
|
233
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StyledButtonCard, getAnimationState('closeButton', phase, status), /*#__PURE__*/React.createElement(Button, {
|
|
234
|
+
ref: closeBtnRef,
|
|
235
|
+
"aria-label": I18n.t('core.tearsheet.a11y.close'),
|
|
236
|
+
onClick: function onClick(e) {
|
|
237
|
+
e.stopPropagation();
|
|
238
|
+
onClose();
|
|
239
|
+
},
|
|
240
|
+
size: "lg",
|
|
241
|
+
variant: "tertiary",
|
|
242
|
+
icon: /*#__PURE__*/React.createElement(Clear, null),
|
|
243
|
+
"data-qa": qa === null || qa === void 0 ? void 0 : qa.closeButton
|
|
244
|
+
}))))), /*#__PURE__*/React.createElement(StyledTearsheetBody, {
|
|
245
|
+
onScroll: function onScroll() {
|
|
246
|
+
var _registry$current$scr;
|
|
247
|
+
(_registry$current$scr = registry.current.scroll) === null || _registry$current$scr === void 0 ? void 0 : _registry$current$scr.forEach(function (cb) {
|
|
248
|
+
return cb();
|
|
249
|
+
});
|
|
250
|
+
},
|
|
251
|
+
$placement: placement,
|
|
252
|
+
$stretch: stretch
|
|
253
|
+
}, /*#__PURE__*/React.createElement(TearsheetContext.Provider, {
|
|
254
|
+
value: ctx
|
|
255
|
+
}, /*#__PURE__*/React.createElement(CloseWithConfirmContext.Provider, {
|
|
256
|
+
value: closeWithConfirmState
|
|
257
|
+
}, children)))))));
|
|
207
258
|
});
|
|
208
259
|
//# sourceMappingURL=Tearsheet.js.map
|