@procore/core-react 11.24.0 → 11.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +4 -0
- package/.eslintrc.cjs +54 -0
- package/dist/Avatar/Avatar.d.ts +2 -2
- package/dist/Avatar/Avatar.js.map +1 -1
- package/dist/Avatar/Avatar.styles.d.ts +1 -1
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/Avatar/Avatar.styles.js.map +1 -1
- package/dist/Avatar/Avatar.types.d.ts +4 -4
- package/dist/Avatar/Avatar.types.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.constants.d.ts +1 -1
- package/dist/AvatarStack/AvatarStack.constants.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.d.ts +2 -2
- package/dist/AvatarStack/AvatarStack.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.styles.d.ts +1 -1
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/AvatarStack/AvatarStack.styles.js.map +1 -1
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js.map +1 -1
- package/dist/Badge/Badge.styles.d.ts +1 -1
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Badge/Badge.styles.js.map +1 -1
- package/dist/Badge/Badge.types.d.ts +1 -1
- package/dist/Badge/Badge.types.js.map +1 -1
- package/dist/Banner/Banner.d.ts +2 -2
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.d.ts +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Banner/Banner.styles.js.map +1 -1
- package/dist/Banner/Banner.types.d.ts +1 -1
- package/dist/Banner/Banner.types.js.map +1 -1
- package/dist/Box/Box.d.ts +2 -2
- package/dist/Box/Box.js.map +1 -1
- package/dist/Box/Box.styles.d.ts +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Box/Box.styles.js.map +1 -1
- package/dist/Box/Box.types.d.ts +1 -1
- package/dist/Box/Box.types.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Button.styles.d.ts +1 -1
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Button/Button.styles.js.map +1 -1
- package/dist/Button/Button.types.d.ts +1 -1
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js.map +1 -1
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Calendar/Calendar.types.d.ts +2 -2
- package/dist/Calendar/Calendar.types.js.map +1 -1
- package/dist/Card/Card.d.ts +2 -2
- package/dist/Card/Card.js.map +1 -1
- package/dist/Card/Card.styles.d.ts +1 -1
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Card/Card.styles.js.map +1 -1
- package/dist/Card/Card.types.d.ts +1 -1
- package/dist/Card/Card.types.js.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js.map +1 -1
- package/dist/Checkbox/Checkbox.styles.js +5 -5
- package/dist/Checkbox/Checkbox.types.d.ts +2 -2
- package/dist/Checkbox/Checkbox.types.js.map +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.types.d.ts +2 -2
- package/dist/CheckboxGroup/CheckboxGroup.types.js.map +1 -1
- package/dist/ClickOutside/ClickOutside.d.ts +1 -1
- package/dist/ClickOutside/ClickOutside.js.map +1 -1
- package/dist/ContactItem/ContactItem.d.ts +3 -3
- package/dist/ContactItem/ContactItem.js.map +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/ContactItem/ContactItem.types.d.ts +2 -2
- package/dist/ContactItem/ContactItem.types.js.map +1 -1
- package/dist/Content/Content.d.ts +1 -1
- package/dist/Content/Content.js.map +1 -1
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.d.ts +1 -1
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DateInput/DateInput.types.d.ts +2 -2
- package/dist/DateInput/DateInput.types.js.map +1 -1
- package/dist/DateInput/index.js.map +1 -1
- package/dist/DateSelect/DateSelect.d.ts +1 -1
- package/dist/DateSelect/DateSelect.js.map +1 -1
- package/dist/DateSelect/DateSelect.types.d.ts +4 -4
- package/dist/DateSelect/DateSelect.types.js.map +1 -1
- package/dist/DetailPage/DetailPage.constants.d.ts +2 -2
- package/dist/DetailPage/DetailPage.constants.js.map +1 -1
- package/dist/DetailPage/DetailPage.d.ts +3 -3
- package/dist/DetailPage/DetailPage.js.map +1 -1
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/DetailPage/DetailPage.types.d.ts +3 -3
- package/dist/DetailPage/DetailPage.types.js.map +1 -1
- package/dist/Dropdown/Dropdown.d.ts +2 -2
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.d.ts +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/Dropdown/Dropdown.styles.js.map +1 -1
- package/dist/Dropdown/Dropdown.types.d.ts +4 -4
- package/dist/Dropdown/Dropdown.types.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.d.ts +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.helpers.d.ts +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -4
- package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
- package/dist/DropdownFlyout/index.js.map +1 -1
- package/dist/DropdownFlyout/useDropdownFlyoutOverlay.d.ts +3 -3
- package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js.map +1 -1
- package/dist/Dropzone/Dropzone.d.ts +2 -2
- package/dist/Dropzone/Dropzone.hooks.d.ts +1 -1
- package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.js.map +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/Dropzone/Dropzone.types.d.ts +5 -4
- package/dist/Dropzone/Dropzone.types.js +0 -2
- package/dist/Dropzone/Dropzone.types.js.map +1 -1
- package/dist/EmptyState/EmptyState.d.ts +2 -2
- package/dist/EmptyState/EmptyState.js.map +1 -1
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/EmptyState/EmptyState.types.d.ts +1 -1
- package/dist/EmptyState/EmptyState.types.js.map +1 -1
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.d.ts +2 -2
- package/dist/FileList/FileList.js.map +1 -1
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.d.ts +2 -2
- package/dist/FileSelect/FileExplorer/FileExplorer.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorer.types.d.ts +2 -2
- package/dist/FileSelect/FileExplorer/FileExplorer.types.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerModal.d.ts +3 -3
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.d.ts +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileExplorer/useSidebarNavigation.d.ts +1 -1
- package/dist/FileSelect/FileExplorer/useSidebarNavigation.js.map +1 -1
- package/dist/FileSelect/FileSelect.d.ts +3 -3
- package/dist/FileSelect/FileSelect.js.map +1 -1
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelect.types.d.ts +6 -6
- package/dist/FileSelect/FileSelect.types.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.d.ts +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.d.ts +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.types.js.map +1 -1
- package/dist/FileSelect/FileTokenList/FileToken.types.d.ts +1 -1
- package/dist/FileSelect/FileTokenList/FileToken.types.js.map +1 -1
- package/dist/FileSelect/FileTokenList/FileTokenList.d.ts +2 -2
- package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.d.ts +2 -2
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/GridSource/GridSource.types.d.ts +2 -2
- package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.d.ts +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +4 -4
- package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
- package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.d.ts +1 -1
- package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.js.map +1 -1
- package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.d.ts +2 -2
- package/dist/FileSelect/ProgressAnnouncer/ProgressAnnouncer.types.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.d.ts +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.d.ts +1 -1
- package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/ThumbnailList/ThumbnailList.types.d.ts +1 -1
- package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.d.ts +2 -2
- package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
- package/dist/FileSelect/storyHelpers.d.ts +1 -1
- package/dist/FileSelect/storyHelpers.js.map +1 -1
- package/dist/FileToken/FileToken.d.ts +2 -2
- package/dist/FileToken/FileToken.js.map +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FileToken/FileToken.types.d.ts +1 -1
- package/dist/FileToken/FileToken.types.js.map +1 -1
- package/dist/FilterToken/FilterToken.d.ts +2 -2
- package/dist/FilterToken/FilterToken.js.map +1 -1
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FilterToken/index.d.ts +1 -1
- package/dist/FilterToken/index.js.map +1 -1
- package/dist/Flex/Flex.d.ts +2 -2
- package/dist/Flex/Flex.js.map +1 -1
- package/dist/Flex/Flex.types.d.ts +2 -2
- package/dist/Flex/Flex.types.js.map +1 -1
- package/dist/FlexList/FlexList.d.ts +2 -2
- package/dist/FlexList/FlexList.js.map +1 -1
- package/dist/FlexList/FlexList.styles.d.ts +1 -1
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/FlexList/FlexList.styles.js.map +1 -1
- package/dist/FlexList/FlexList.types.d.ts +2 -2
- package/dist/FlexList/FlexList.types.js.map +1 -1
- package/dist/Form/Form.d.ts +5 -5
- package/dist/Form/Form.js +75 -68
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.d.ts +1 -1
- package/dist/Form/Form.styles.js +15 -15
- package/dist/Form/Form.styles.js.map +1 -1
- package/dist/Form/Form.types.d.ts +14 -14
- package/dist/Form/Form.types.js.map +1 -1
- package/dist/Form/stories/util.d.ts +1 -1
- package/dist/Form/stories/util.js.map +1 -1
- package/dist/Grid/Grid.constants.d.ts +1 -1
- package/dist/Grid/Grid.constants.js.map +1 -1
- package/dist/Grid/Grid.d.ts +1 -1
- package/dist/Grid/Grid.js.map +1 -1
- package/dist/Grid/Grid.styles.d.ts +1 -1
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/Grid/Grid.styles.js.map +1 -1
- package/dist/Grid/Grid.types.d.ts +2 -2
- package/dist/Grid/Grid.types.js.map +1 -1
- package/dist/GroupSelect/GroupSelect.d.ts +2 -2
- package/dist/GroupSelect/GroupSelect.js.map +1 -1
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/GroupSelect/GroupSelect.types.d.ts +3 -3
- package/dist/GroupSelect/GroupSelect.types.js.map +1 -1
- package/dist/Input/Input.d.ts +2 -2
- package/dist/Input/Input.js.map +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Input/Input.types.d.ts +1 -1
- package/dist/Input/Input.types.js.map +1 -1
- package/dist/Link/Link.d.ts +1 -1
- package/dist/Link/Link.js.map +1 -1
- package/dist/Link/Link.styles.d.ts +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/Link/Link.styles.js.map +1 -1
- package/dist/Link/Link.types.d.ts +1 -1
- package/dist/Link/Link.types.js.map +1 -1
- package/dist/ListPage/ListPage.d.ts +2 -2
- package/dist/ListPage/ListPage.js.map +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/ListPage/ListPage.types.d.ts +1 -1
- package/dist/ListPage/ListPage.types.js.map +1 -1
- package/dist/Loader/Loader.d.ts +1 -1
- package/dist/Loader/Loader.js.map +1 -1
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/Loader/Loader.types.d.ts +1 -1
- package/dist/Loader/Loader.types.js.map +1 -1
- package/dist/Menu/Menu.d.ts +2 -2
- package/dist/Menu/Menu.js.map +1 -1
- package/dist/Menu/Menu.types.d.ts +7 -7
- package/dist/Menu/Menu.types.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.d.ts +4 -4
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/MenuImperative/MenuImperative.types.d.ts +4 -4
- package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
- package/dist/MenuImperative/index.d.ts +1 -1
- package/dist/MenuImperative/index.js.map +1 -1
- package/dist/MenuImperative/sensors.d.ts +3 -3
- package/dist/MenuImperative/sensors.js.map +1 -1
- package/dist/Modal/Modal.d.ts +4 -4
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.d.ts +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/Modal/Modal.types.d.ts +2 -2
- package/dist/Modal/Modal.types.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/MultiSelect/MultiSelect.types.d.ts +3 -3
- package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
- package/dist/NextMenu/NextMenu.d.ts +1 -1
- package/dist/NextMenu/NextMenu.js.map +1 -1
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextMenu/NextMenu.types.d.ts +3 -3
- package/dist/NextMenu/NextMenu.types.js.map +1 -1
- package/dist/NextMenu/NextMenuItem.d.ts +1 -1
- package/dist/NextMenu/NextMenuItem.js.map +1 -1
- package/dist/NextTile/NextTile.d.ts +2 -2
- package/dist/NextTile/NextTile.js.map +1 -1
- package/dist/NextTile/NextTile.types.d.ts +2 -2
- package/dist/NextTile/NextTile.types.js.map +1 -1
- package/dist/Notation/Notation.d.ts +2 -2
- package/dist/Notation/Notation.js +1 -1
- package/dist/Notation/Notation.js.map +1 -1
- package/dist/Notation/Notation.types.d.ts +2 -2
- package/dist/Notation/Notation.types.js.map +1 -1
- package/dist/NumberInput/NumberInput.d.ts +2 -2
- package/dist/NumberInput/NumberInput.hooks.d.ts +1 -1
- package/dist/NumberInput/NumberInput.hooks.js.map +1 -1
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/NumberInput/NumberInput.types.d.ts +2 -2
- package/dist/NumberInput/NumberInput.types.js.map +1 -1
- package/dist/NumberInput/NumberInput.utils.d.ts +3 -2
- package/dist/NumberInput/NumberInput.utils.js.map +1 -1
- package/dist/Overlay/Overlay.d.ts +1 -1
- package/dist/Overlay/Overlay.js.map +1 -1
- package/dist/Overlay/OverlayArrow.d.ts +2 -2
- package/dist/Overlay/OverlayArrow.js.map +1 -1
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Overlay/index.js.map +1 -1
- package/dist/Overlay/useOverlay.d.ts +3 -3
- package/dist/Overlay/useOverlay.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.d.ts +2 -2
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +4 -4
- package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
- package/dist/OverlayTrigger/a11yPresets.d.ts +5 -4
- package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
- package/dist/PageLayout/PageLayout.d.ts +3 -3
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.d.ts +1 -1
- package/dist/PageLayout/PageLayout.styles.js +13 -13
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/PageLayout/PageLayout.types.d.ts +1 -1
- package/dist/PageLayout/PageLayout.types.js.map +1 -1
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Pagination/Pagination.types.d.ts +2 -2
- package/dist/Pagination/Pagination.types.js.map +1 -1
- package/dist/Pagination/PaginationSelect.d.ts +1 -1
- package/dist/Pagination/PaginationSelect.js.map +1 -1
- package/dist/Panel/Panel.d.ts +3 -3
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Panel/Panel.types.d.ts +3 -3
- package/dist/Panel/Panel.types.js.map +1 -1
- package/dist/Pill/Pill.colorPalette.d.ts +1 -1
- package/dist/Pill/Pill.colorPalette.js.map +1 -1
- package/dist/Pill/Pill.d.ts +1 -1
- package/dist/Pill/Pill.js.map +1 -1
- package/dist/Pill/Pill.styles.d.ts +1 -1
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/Pill/Pill.styles.js.map +1 -1
- package/dist/PillSelect/PillSelect.d.ts +1 -1
- package/dist/PillSelect/PillSelect.js.map +1 -1
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/PillSelect/PillSelect.types.d.ts +2 -2
- package/dist/PillSelect/PillSelect.types.js.map +1 -1
- package/dist/Popover/Popover.d.ts +2 -2
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Popover/Popover.styles.d.ts +1 -1
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Popover/Popover.styles.js.map +1 -1
- package/dist/Popover/Popover.types.d.ts +5 -5
- package/dist/Popover/Popover.types.js.map +1 -1
- package/dist/Portal/Portal.d.ts +1 -1
- package/dist/Portal/Portal.js.map +1 -1
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/Portal/Portal.types.d.ts +1 -1
- package/dist/Portal/Portal.types.js.map +1 -1
- package/dist/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/ProgressBar/ProgressBar.types.d.ts +2 -2
- package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js.map +1 -1
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/RadioButton/RadioButton.types.d.ts +1 -1
- package/dist/RadioButton/RadioButton.types.js.map +1 -1
- package/dist/Required/Required.d.ts +1 -1
- package/dist/Required/Required.js.map +1 -1
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Required/Required.types.d.ts +1 -1
- package/dist/Required/Required.types.js.map +1 -1
- package/dist/Search/Search.d.ts +1 -1
- package/dist/Search/Search.hooks.d.ts +1 -1
- package/dist/Search/Search.hooks.js.map +1 -1
- package/dist/Search/Search.js +1 -2
- package/dist/Search/Search.js.map +1 -1
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Search/Search.types.d.ts +2 -2
- package/dist/Search/Search.types.js.map +1 -1
- package/dist/Section/Section.d.ts +2 -2
- package/dist/Section/Section.js.map +1 -1
- package/dist/Section/Section.styles.js +6 -6
- package/dist/Section/Section.types.d.ts +2 -2
- package/dist/Section/Section.types.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.d.ts +1 -1
- package/dist/SegmentedController/SegmentedController.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/SegmentedController/SegmentedController.types.d.ts +2 -2
- package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
- package/dist/Select/Select.d.ts +2 -2
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Select/Select.types.d.ts +4 -4
- package/dist/Select/Select.types.js.map +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Select/index.js.map +1 -1
- package/dist/Semantic/Semantic.d.ts +1 -1
- package/dist/Semantic/Semantic.js.map +1 -1
- package/dist/Semantic/Semantic.styles.d.ts +1 -1
- package/dist/Semantic/Semantic.styles.js +8 -8
- package/dist/Semantic/Semantic.styles.js.map +1 -1
- package/dist/Semantic/Semantic.types.d.ts +1 -1
- package/dist/Semantic/Semantic.types.js.map +1 -1
- package/dist/Sidebar/Sidebar.d.ts +1 -1
- package/dist/Sidebar/Sidebar.js.map +1 -1
- package/dist/Sidebar/Sidebar.styles.js +7 -7
- package/dist/Slider/Slider.d.ts +1 -1
- package/dist/Slider/Slider.js.map +1 -1
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Slider/Slider.types.d.ts +1 -1
- package/dist/Slider/Slider.types.js.map +1 -1
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/Spinner.js.map +1 -1
- package/dist/Spinner/Spinner.styles.d.ts +2 -2
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/Spinner/Spinner.styles.js.map +1 -1
- package/dist/Spinner/Spinner.types.d.ts +2 -2
- package/dist/Spinner/Spinner.types.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.components.d.ts +2 -2
- package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.d.ts +1 -1
- package/dist/SuperSelect/SuperSelect.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/SuperSelect/SuperSelect.types.d.ts +5 -5
- package/dist/SuperSelect/SuperSelect.types.js +1 -1
- package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.utils.d.ts +1 -1
- package/dist/SuperSelect/SuperSelect.utils.js.map +1 -1
- package/dist/SuperSelect/index.d.ts +3 -3
- package/dist/SuperSelect/index.js +2 -2
- package/dist/SuperSelect/index.js.map +1 -1
- package/dist/SuperSelect/presets/contactsPreset.d.ts +1 -1
- package/dist/SuperSelect/presets/contactsPreset.js.map +1 -1
- package/dist/SuperSelect/presets/filterPreset.d.ts +1 -1
- package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
- package/dist/SuperSelect/presets/index.d.ts +1 -1
- package/dist/SuperSelect/presets/index.js.map +1 -1
- package/dist/SuperSelect/presets/pillPreset.d.ts +1 -1
- package/dist/SuperSelect/presets/pillPreset.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.d.ts +2 -2
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.d.ts +2 -2
- package/dist/Switch/Switch.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Switch/Switch.types.d.ts +1 -1
- package/dist/Switch/Switch.types.js.map +1 -1
- package/dist/Table/Table.d.ts +3 -3
- package/dist/Table/Table.js +4 -4
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.d.ts +1 -1
- package/dist/Table/Table.styles.js +28 -28
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/Table/Table.types.d.ts +5 -5
- package/dist/Table/Table.types.js.map +1 -1
- package/dist/TableShelf/TableShelf.d.ts +1 -1
- package/dist/TableShelf/TableShelf.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.d.ts +2 -2
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +8 -8
- package/dist/Tabs/Tabs.types.d.ts +4 -4
- package/dist/Tabs/Tabs.types.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.constants.d.ts +1 -1
- package/dist/Tearsheet/Tearsheet.constants.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.d.ts +1 -1
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.d.ts +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +6 -6
- package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.types.d.ts +1 -1
- package/dist/Tearsheet/Tearsheet.types.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.util.d.ts +1 -1
- package/dist/Tearsheet/Tearsheet.util.js.map +1 -1
- package/dist/TextArea/TextArea.d.ts +2 -2
- package/dist/TextArea/TextArea.js.map +1 -1
- package/dist/TextArea/TextArea.styles.d.ts +1 -1
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextArea/TextArea.styles.js.map +1 -1
- package/dist/TextArea/TextArea.types.d.ts +1 -1
- package/dist/TextArea/TextArea.types.js.map +1 -1
- package/dist/TextEditor/TextEditor.d.ts +1 -1
- package/dist/TextEditor/TextEditor.js.map +1 -1
- package/dist/TextEditor/TextEditor.types.d.ts +3 -3
- package/dist/TextEditor/TextEditor.types.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.d.ts +2 -2
- package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +2 -2
- package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.d.ts +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +3 -3
- package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +2 -2
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.types.d.ts +5 -4
- package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.utils.d.ts +1 -1
- package/dist/Thumbnail/Thumbnail.utils.js.map +1 -1
- package/dist/Thumbnail/ThumbnailCaption.d.ts +1 -1
- package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
- package/dist/Thumbnail/ThumbnailPreview.d.ts +1 -1
- package/dist/Thumbnail/ThumbnailPreview.js.map +1 -1
- package/dist/Thumbnail/index.d.ts +1 -1
- package/dist/Thumbnail/index.js +0 -1
- package/dist/Thumbnail/index.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +2 -2
- package/dist/ThumbnailGrid/ThumbnailGrid.js +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +9 -9
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.types.d.ts +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.types.js.map +1 -1
- package/dist/TieredDropdown/TieredDropdown.helpers.d.ts +1 -1
- package/dist/TieredDropdown/TieredDropdown.helpers.js.map +1 -1
- package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
- package/dist/TieredDropdown/TieredDropdown.types.d.ts +3 -3
- package/dist/TieredDropdown/TieredDropdown.types.js.map +1 -1
- package/dist/TieredSelect/LeafSelectionTieredSelect.d.ts +1 -1
- package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TierSelectionTieredSelect.d.ts +1 -1
- package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.d.ts +2 -2
- package/dist/TieredSelect/TieredSelect.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/TieredSelect/TieredSelect.types.d.ts +3 -3
- package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
- package/dist/TieredSelect/TieredSelectMenu.d.ts +1 -1
- package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
- package/dist/Tile/Tile.d.ts +2 -2
- package/dist/Tile/Tile.js.map +1 -1
- package/dist/Tile/Tile.styles.d.ts +1 -1
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Tile/Tile.styles.js.map +1 -1
- package/dist/Tile/Tile.types.d.ts +2 -2
- package/dist/Tile/Tile.types.js.map +1 -1
- package/dist/Title/Title.d.ts +2 -2
- package/dist/Title/Title.js.map +1 -1
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Title/Title.types.d.ts +1 -1
- package/dist/Title/Title.types.js.map +1 -1
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/Toast.js.map +1 -1
- package/dist/Toast/Toast.styles.d.ts +1 -1
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/Toast/Toast.styles.js.map +1 -1
- package/dist/Toast/Toast.types.d.ts +1 -1
- package/dist/Toast/Toast.types.js.map +1 -1
- package/dist/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/ToggleButton/ToggleButton.types.d.ts +2 -2
- package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
- package/dist/Token/Token.d.ts +2 -2
- package/dist/Token/Token.js.map +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ActionIcon.d.ts +1 -1
- package/dist/ToolHeader/ActionIcon.js.map +1 -1
- package/dist/ToolHeader/ActionIcon.types.d.ts +2 -2
- package/dist/ToolHeader/ActionIcon.types.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.d.ts +2 -2
- package/dist/ToolHeader/ToolHeader.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.d.ts +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.types.d.ts +2 -2
- package/dist/ToolHeader/ToolHeader.types.js.map +1 -1
- package/dist/Tooltip/Tooltip.d.ts +2 -2
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tooltip/Tooltip.types.d.ts +3 -3
- package/dist/Tooltip/Tooltip.types.js.map +1 -1
- package/dist/Tree/Tree.d.ts +1 -1
- package/dist/Tree/Tree.hooks.d.ts +1 -1
- package/dist/Tree/Tree.hooks.js.map +1 -1
- package/dist/Tree/Tree.js.map +1 -1
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Tree/Tree.types.d.ts +6 -6
- package/dist/Tree/Tree.types.js.map +1 -1
- package/dist/Typeahead/Typeahead.d.ts +1 -1
- package/dist/Typeahead/Typeahead.js.map +1 -1
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.d.ts +2 -2
- package/dist/Typography/Typography.js.map +1 -1
- package/dist/Typography/Typography.styles.d.ts +2 -2
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.styles.js.map +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/Typography/Typography.types.d.ts +2 -2
- package/dist/Typography/Typography.types.js.map +1 -1
- package/dist/Typography/index.d.ts +1 -1
- package/dist/Typography/index.js.map +1 -1
- package/dist/_hooks/Anchor.d.ts +3 -2
- package/dist/_hooks/Anchor.js.map +1 -1
- package/dist/_hooks/BoundingRect.d.ts +1 -1
- package/dist/_hooks/BoundingRect.js.map +1 -1
- package/dist/_hooks/ClickOutside.d.ts +1 -1
- package/dist/_hooks/ClickOutside.js.map +1 -1
- package/dist/_hooks/DateTime/DateTime.d.ts +1 -1
- package/dist/_hooks/DateTime/DateTime.js.map +1 -1
- package/dist/_hooks/DateTime/index.d.ts +1 -1
- package/dist/_hooks/DateTime/index.js +1 -1
- package/dist/_hooks/DateTime/index.js.map +1 -1
- package/dist/_hooks/DelayedCallback.d.ts +1 -1
- package/dist/_hooks/DelayedCallback.js.map +1 -1
- package/dist/_hooks/DelayedToggle.d.ts +2 -2
- package/dist/_hooks/DelayedToggle.js.map +1 -1
- package/dist/_hooks/Event.d.ts +1 -1
- package/dist/_hooks/Event.js.map +1 -1
- package/dist/_hooks/Hotkey.d.ts +1 -1
- package/dist/_hooks/Hotkey.js.map +1 -1
- package/dist/_hooks/I18n.d.ts +1 -1
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/OverflowObserver/OverflowObserver.d.ts +1 -1
- package/dist/_hooks/OverflowObserver/OverflowObserver.js.map +1 -1
- package/dist/_hooks/Resize.d.ts +1 -1
- package/dist/_hooks/Resize.js.map +1 -1
- package/dist/_hooks/Scroll.d.ts +1 -1
- package/dist/_hooks/Scroll.js.map +1 -1
- package/dist/_hooks/Trigger.d.ts +1 -1
- package/dist/_hooks/Trigger.js.map +1 -1
- package/dist/_hooks/useFileUploader.d.ts +1 -1
- package/dist/_hooks/useFileUploader.js.map +1 -1
- package/dist/_styles/arrows.d.ts +1 -1
- package/dist/_styles/arrows.js.map +1 -1
- package/dist/_styles/mixins.d.ts +1 -1
- package/dist/_styles/mixins.js.map +1 -1
- package/dist/_styles/shadows.d.ts +1 -1
- package/dist/_styles/shadows.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.d.ts +1 -1
- package/dist/_utils/CalendarHelpers.js +1 -1
- package/dist/_utils/CalendarHelpers.js.map +1 -1
- package/dist/_utils/TinyMCE.d.ts +2 -2
- package/dist/_utils/TinyMCE.js.map +1 -1
- package/dist/_utils/dateTime.js.map +1 -1
- package/dist/_utils/getAnchorPosition.d.ts +2 -2
- package/dist/_utils/getAnchorPosition.js.map +1 -1
- package/dist/_utils/isReactElement.d.ts +1 -1
- package/dist/_utils/isReactElement.js.map +1 -1
- package/dist/_utils/mergeRefs.d.ts +1 -1
- package/dist/_utils/mergeRefs.js.map +1 -1
- package/dist/_utils/placement.d.ts +1 -1
- package/dist/_utils/placement.js.map +1 -1
- package/dist/_utils/propsTypedoc.d.ts +12 -12
- package/dist/_utils/propsTypedoc.js +1 -12
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/_utils/slotify.d.ts +1 -1
- package/dist/_utils/slotify.js.map +1 -1
- package/dist/_utils/triggerListeners.d.ts +2 -2
- package/dist/_utils/triggerListeners.js.map +1 -1
- package/dist/_utils/types.d.ts +1 -1
- package/dist/_utils/types.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/.eslintrc.json +0 -47
- package/dist/Link/Link.coverage.stories.d.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.js","names":["Check","Clear","EllipsisVertical","Error","Info","Warning","partition","React","Button","Card","Menu","useMenu","OverlayTrigger","useI18nContext","OverflowObserver","addSubcomponents","mergeRefs","StyledAction","StyledActionsTrigger","StyledBannerContainer","StyledBody","StyledContent","StyledExpandableContent","StyledExpandableContentContainer","StyledIconContainer","StyledMiniBannerContainer","StyledTitle","Banner_","forwardRef","Banner","_ref","ref","children","variant","props","_objectWithoutProperties","_excluded","_ref2","element","isValidElement","type","ExpandableContent","Children","toArray","_ref3","_slicedToArray","expandableContentNodes","content","isExpandable","length","createElement","_extends","Fragment","justifyContent","alignItems","Content","_ref4","_excluded2","_ref5","_ref5$expanded","expanded","_ref5$expandableConte","expandableContentMaxHeight","_excluded3","containerRef","useRef","_ref6","overflowRef","isOverflowingY","onAnimationEnd","current","tabIndex","Title","_ref7","_excluded4","Body","_ref8","_excluded5","Action","_ref9","_excluded6","DropdownAction","_ref10","_excluded7","Item","item","Actions","_ref11","_excluded8","actionButtons","filter","overlay","node","focus","usingHook","isSelectable","_ref12","Options","map","_ref13","idx","actionButtonProps","key","placement","arrow","icon","Icon","_ref14","_excluded9","Dismiss","_ref15","_excluded10","I18n","t","ErrorBanner","_ref16","_excluded11","size","SuccessBanner","_ref17","_excluded12","InfoBanner","_ref18","_excluded13","ActionBanner","_ref19","_excluded14","UNSAFE_MiniBanner","MiniBanner","_ref20","_ref20$variant","_excluded15","displayName"],"sources":["../../src/Banner/Banner.tsx"],"sourcesContent":["import {\n Check,\n Clear,\n EllipsisVertical,\n Error,\n Info,\n Warning,\n} from '@procore/core-icons/dist'\nimport { partition } from 'ramda'\nimport React from 'react'\nimport { Button } from '../Button/Button'\nimport { Card } from '../Card/Card'\nimport { Menu, useMenu } from '../Menu/Menu'\nimport { OverlayTrigger } from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { ButtonAttributes, DivAttributes, Props } from '../_utils/types'\nimport {\n StyledAction,\n StyledActionsTrigger,\n StyledBannerContainer,\n StyledBody,\n StyledContent,\n StyledExpandableContent,\n StyledExpandableContentContainer,\n StyledIconContainer,\n StyledMiniBannerContainer,\n StyledTitle,\n} from './Banner.styles'\nimport {\n BannerExpandableContentProps,\n BannerIconProps,\n BannerProps,\n BannerVariant,\n} from './Banner.types'\n\n/**\n\n\n We use banners to contextually convey complicated or supplemental information\n to a user. Depending on the type of banner, we can provide more information\n about a feature or page the user is on, an action the user needs to perform,\n or an error the user has encountered.\n\n Procore banners are informative and actionable. Always explain what the user\n needs to know (and in some cases, why they’re seeing the banner), and provide\n an actionable next step.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-banner--demo)\n\n @see [Design Guidelines](https://design.procore.com/banner)\n\n */\nconst Banner_ = React.forwardRef<HTMLDivElement, DivAttributes & BannerProps>(\n function Banner({ children, variant, ...props }, ref) {\n const [expandableContentNodes, content] = partition(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === ExpandableContent,\n React.Children.toArray(children)\n ) as [React.ReactElement[], React.ReactElement[]]\n\n const isExpandable = expandableContentNodes.length !== 0\n\n return (\n <StyledBannerContainer\n ref={ref}\n isExpandable={isExpandable}\n variant={variant}\n {...props}\n >\n {isExpandable ? (\n <>\n <StyledExpandableContentContainer\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n {content}\n </StyledExpandableContentContainer>\n {expandableContentNodes}\n </>\n ) : (\n content\n )}\n </StyledBannerContainer>\n )\n }\n)\n\nconst Content = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Content({ children, ...props }, ref) {\n return (\n <StyledContent {...props} ref={ref}>\n {children}\n </StyledContent>\n )\n }\n)\n\nconst ExpandableContent = React.forwardRef<\n HTMLDivElement,\n DivAttributes & BannerExpandableContentProps\n>(function ExpandableContent(\n { children, expanded = false, expandableContentMaxHeight = 120, ...props },\n ref\n) {\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n return expanded ? (\n <OverflowObserver>\n {({ ref: overflowRef, isOverflowingY }) => (\n <StyledExpandableContent\n ref={mergeRefs(ref, containerRef)}\n data-qa=\"core-banner-expandable-content\"\n onAnimationEnd={() => overflowRef(containerRef.current)}\n isOverflowingY={isOverflowingY}\n expandableContentMaxHeight={expandableContentMaxHeight}\n {...props}\n {...(isOverflowingY && { tabIndex: 0 })}\n >\n {children}\n </StyledExpandableContent>\n )}\n </OverflowObserver>\n ) : null\n})\n\nconst Title = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Title({ children, ...props }, ref) {\n return (\n <StyledTitle {...props} ref={ref}>\n {children}\n </StyledTitle>\n )\n }\n)\n\nconst Body = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Body({ children, ...props }, ref) {\n return (\n <StyledBody {...props} ref={ref}>\n {children}\n </StyledBody>\n )\n }\n)\n\nconst Action = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Action({ children, ...props }, ref) {\n return (\n <StyledAction {...props} ref={ref}>\n {children}\n </StyledAction>\n )\n }\n)\n\nconst DropdownAction = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function DropdownAction({ children, ...props }, ref) {\n return (\n <Menu.Item ref={ref} item={null} {...(props as any)}>\n {children}\n </Menu.Item>\n )\n }\n)\n\nconst Actions = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Actions({ children, ...props }, ref) {\n const actionButtons = React.Children.toArray(children).filter(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === Action\n ) as React.ReactElement[]\n\n return (\n <OverlayTrigger\n overlay={\n <Card>\n <Menu\n ref={(node) => node?.focus()}\n usingHook={useMenu({\n isSelectable: ({ type }) => type === DropdownAction,\n })}\n >\n <Menu.Options>\n {actionButtons.map(({ props: actionButtonProps }, idx) => (\n <DropdownAction key={idx} {...actionButtonProps} />\n ))}\n </Menu.Options>\n </Menu>\n </Card>\n }\n ref={ref}\n placement=\"bottom-right\"\n >\n <StyledActionsTrigger\n data-qa=\"core-banner-actions-trigger\"\n variant=\"tertiary\"\n arrow={false}\n icon={<EllipsisVertical />}\n {...props}\n />\n </OverlayTrigger>\n )\n }\n)\n\nconst Icon = React.forwardRef<HTMLDivElement, DivAttributes & BannerIconProps>(\n function Icon({ children, icon, ...props }, ref) {\n return (\n <StyledIconContainer ref={ref} aria-hidden=\"true\" {...props}>\n {icon}\n </StyledIconContainer>\n )\n }\n)\n\nconst Dismiss = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Dismiss({ children, ...props }, ref) {\n const I18n = useI18nContext()\n\n return (\n <Button\n aria-label={I18n.t('core.banner.dismissAlert')}\n ref={ref}\n {...props}\n icon={<Clear />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\nexport const ErrorBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function ErrorBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"error\" {...props}>\n <Icon icon={<Error size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\n/**\n * @deprecated Component will be removed in a future version. Instead, please consider using \"success\" variant of Toast component.\n * @deprecatedSince 10.7.0\n */\nexport const SuccessBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function SuccessBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"success\" {...props}>\n <Icon icon={<Check size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const InfoBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function InfoBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"info\" {...props}>\n <Icon icon={<Info size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const ActionBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function ActionBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"action\" {...props}>\n <Icon icon={<Warning size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const UNSAFE_MiniBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props & { variant?: BannerVariant }\n>(function MiniBanner({ children, variant = 'info', ...props }, ref) {\n return (\n <StyledMiniBannerContainer ref={ref} variant={variant} {...props}>\n {children}\n </StyledMiniBannerContainer>\n )\n})\n\nBanner_.displayName = 'Banner'\n\nBody.displayName = 'Banner.Body'\n\nContent.displayName = 'Banner.Content'\n\nExpandableContent.displayName = 'Banner.ExpandableContent'\n\nTitle.displayName = 'Banner.Title'\n\nAction.displayName = 'Banner.Action'\n\nActions.displayName = 'Banner.Actions'\n\nDropdownAction.displayName = 'Banner.DropdownAction'\n\nIcon.displayName = 'Banner.Icon'\n\nDismiss.displayName = 'Banner.Dismiss'\n\nErrorBanner.displayName = 'ErrorBanner'\n\nSuccessBanner.displayName = 'SuccessBanner'\n\nInfoBanner.displayName = 'InfoBanner'\n\nActionBanner.displayName = 'ActionBanner'\n\nUNSAFE_MiniBanner.displayName = 'MiniBanner'\n\nexport const Banner = addSubcomponents(\n {\n Body,\n Content,\n ExpandableContent,\n Title,\n Action,\n Actions,\n Icon,\n Dismiss,\n },\n Banner_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SACEA,KAAK,EACLC,KAAK,EACLC,gBAAgB,EAChBC,KAAK,EACLC,IAAI,EACJC,OAAO,QACF,0BAA0B;AACjC,SAASC,SAAS,QAAQ,OAAO;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,OAAO,QAAQ,cAAc;AAC5C,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,SAAS,QAAQ,qBAAqB;AAE/C,SACEC,YAAY,EACZC,oBAAoB,EACpBC,qBAAqB,EACrBC,UAAU,EACVC,aAAa,EACbC,uBAAuB,EACvBC,gCAAgC,EAChCC,mBAAmB,EACnBC,yBAAyB,EACzBC,WAAW,QACN,iBAAiB;AAQxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,OAAO,gBAAGpB,KAAK,CAACqB,UAAU,CAC9B,SAASC,MAAMA,CAAAC,IAAA,EAAkCC,GAAG,EAAE;EAAA,IAApCC,QAAQ,GAAAF,IAAA,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Warning","partition","React","Button","Card","Menu","useMenu","OverlayTrigger","useI18nContext","OverflowObserver","addSubcomponents","mergeRefs","StyledAction","StyledActionsTrigger","StyledBannerContainer","StyledBody","StyledContent","StyledExpandableContent","StyledExpandableContentContainer","StyledIconContainer","StyledMiniBannerContainer","StyledTitle","Banner_","forwardRef","Banner","_ref","ref","children","variant","props","_objectWithoutProperties","_excluded","_ref2","element","isValidElement","type","ExpandableContent","Children","toArray","_ref3","_slicedToArray","expandableContentNodes","content","isExpandable","length","createElement","_extends","Fragment","justifyContent","alignItems","Content","_ref4","_excluded2","_ref5","_ref5$expanded","expanded","_ref5$expandableConte","expandableContentMaxHeight","_excluded3","containerRef","useRef","_ref6","overflowRef","isOverflowingY","onAnimationEnd","current","tabIndex","Title","_ref7","_excluded4","Body","_ref8","_excluded5","Action","_ref9","_excluded6","DropdownAction","_ref10","_excluded7","Item","item","Actions","_ref11","_excluded8","actionButtons","filter","overlay","node","focus","usingHook","isSelectable","_ref12","Options","map","_ref13","idx","actionButtonProps","key","placement","arrow","icon","Icon","_ref14","_excluded9","Dismiss","_ref15","_excluded10","I18n","t","ErrorBanner","_ref16","_excluded11","size","SuccessBanner","_ref17","_excluded12","InfoBanner","_ref18","_excluded13","ActionBanner","_ref19","_excluded14","UNSAFE_MiniBanner","MiniBanner","_ref20","_ref20$variant","_excluded15","displayName"],"sources":["../../src/Banner/Banner.tsx"],"sourcesContent":["import {\n Check,\n Clear,\n EllipsisVertical,\n Error,\n Info,\n Warning,\n} from '@procore/core-icons/dist'\nimport { partition } from 'ramda'\nimport React from 'react'\nimport { Button } from '../Button/Button'\nimport { Card } from '../Card/Card'\nimport { Menu, useMenu } from '../Menu/Menu'\nimport { OverlayTrigger } from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { ButtonAttributes, DivAttributes, Props } from '../_utils/types'\nimport {\n StyledAction,\n StyledActionsTrigger,\n StyledBannerContainer,\n StyledBody,\n StyledContent,\n StyledExpandableContent,\n StyledExpandableContentContainer,\n StyledIconContainer,\n StyledMiniBannerContainer,\n StyledTitle,\n} from './Banner.styles'\nimport type {\n BannerExpandableContentProps,\n BannerIconProps,\n BannerProps,\n BannerVariant,\n} from './Banner.types'\n\n/**\n\n\n We use banners to contextually convey complicated or supplemental information\n to a user. Depending on the type of banner, we can provide more information\n about a feature or page the user is on, an action the user needs to perform,\n or an error the user has encountered.\n\n Procore banners are informative and actionable. Always explain what the user\n needs to know (and in some cases, why they’re seeing the banner), and provide\n an actionable next step.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-banner--demo)\n\n @see [Design Guidelines](https://design.procore.com/banner)\n\n */\nconst Banner_ = React.forwardRef<HTMLDivElement, DivAttributes & BannerProps>(\n function Banner({ children, variant, ...props }, ref) {\n const [expandableContentNodes, content] = partition(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === ExpandableContent,\n React.Children.toArray(children)\n ) as [React.ReactElement[], React.ReactElement[]]\n\n const isExpandable = expandableContentNodes.length !== 0\n\n return (\n <StyledBannerContainer\n ref={ref}\n isExpandable={isExpandable}\n variant={variant}\n {...props}\n >\n {isExpandable ? (\n <>\n <StyledExpandableContentContainer\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n {content}\n </StyledExpandableContentContainer>\n {expandableContentNodes}\n </>\n ) : (\n content\n )}\n </StyledBannerContainer>\n )\n }\n)\n\nconst Content = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Content({ children, ...props }, ref) {\n return (\n <StyledContent {...props} ref={ref}>\n {children}\n </StyledContent>\n )\n }\n)\n\nconst ExpandableContent = React.forwardRef<\n HTMLDivElement,\n DivAttributes & BannerExpandableContentProps\n>(function ExpandableContent(\n { children, expanded = false, expandableContentMaxHeight = 120, ...props },\n ref\n) {\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n return expanded ? (\n <OverflowObserver>\n {({ ref: overflowRef, isOverflowingY }) => (\n <StyledExpandableContent\n ref={mergeRefs(ref, containerRef)}\n data-qa=\"core-banner-expandable-content\"\n onAnimationEnd={() => overflowRef(containerRef.current)}\n isOverflowingY={isOverflowingY}\n expandableContentMaxHeight={expandableContentMaxHeight}\n {...props}\n {...(isOverflowingY && { tabIndex: 0 })}\n >\n {children}\n </StyledExpandableContent>\n )}\n </OverflowObserver>\n ) : null\n})\n\nconst Title = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Title({ children, ...props }, ref) {\n return (\n <StyledTitle {...props} ref={ref}>\n {children}\n </StyledTitle>\n )\n }\n)\n\nconst Body = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Body({ children, ...props }, ref) {\n return (\n <StyledBody {...props} ref={ref}>\n {children}\n </StyledBody>\n )\n }\n)\n\nconst Action = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function Action({ children, ...props }, ref) {\n return (\n <StyledAction {...props} ref={ref}>\n {children}\n </StyledAction>\n )\n }\n)\n\nconst DropdownAction = React.forwardRef<HTMLDivElement, DivAttributes & Props>(\n function DropdownAction({ children, ...props }, ref) {\n return (\n <Menu.Item ref={ref} item={null} {...(props as any)}>\n {children}\n </Menu.Item>\n )\n }\n)\n\nconst Actions = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Actions({ children, ...props }, ref) {\n const actionButtons = React.Children.toArray(children).filter(\n (element: React.ReactNode) =>\n React.isValidElement(element) && element.type === Action\n ) as React.ReactElement[]\n\n return (\n <OverlayTrigger\n overlay={\n <Card>\n <Menu\n ref={(node) => node?.focus()}\n usingHook={useMenu({\n isSelectable: ({ type }) => type === DropdownAction,\n })}\n >\n <Menu.Options>\n {actionButtons.map(({ props: actionButtonProps }, idx) => (\n <DropdownAction key={idx} {...actionButtonProps} />\n ))}\n </Menu.Options>\n </Menu>\n </Card>\n }\n ref={ref}\n placement=\"bottom-right\"\n >\n <StyledActionsTrigger\n data-qa=\"core-banner-actions-trigger\"\n variant=\"tertiary\"\n arrow={false}\n icon={<EllipsisVertical />}\n {...props}\n />\n </OverlayTrigger>\n )\n }\n)\n\nconst Icon = React.forwardRef<HTMLDivElement, DivAttributes & BannerIconProps>(\n function Icon({ children, icon, ...props }, ref) {\n return (\n <StyledIconContainer ref={ref} aria-hidden=\"true\" {...props}>\n {icon}\n </StyledIconContainer>\n )\n }\n)\n\nconst Dismiss = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n function Dismiss({ children, ...props }, ref) {\n const I18n = useI18nContext()\n\n return (\n <Button\n aria-label={I18n.t('core.banner.dismissAlert')}\n ref={ref}\n {...props}\n icon={<Clear />}\n variant=\"tertiary\"\n />\n )\n }\n)\n\nexport const ErrorBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function ErrorBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"error\" {...props}>\n <Icon icon={<Error size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\n/**\n * @deprecated Component will be removed in a future version. Instead, please consider using \"success\" variant of Toast component.\n * @deprecatedSince 10.7.0\n */\nexport const SuccessBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function SuccessBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"success\" {...props}>\n <Icon icon={<Check size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const InfoBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function InfoBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"info\" {...props}>\n <Icon icon={<Info size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const ActionBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props\n>(function ActionBanner({ children, ...props }, ref) {\n return (\n <Banner ref={ref} variant=\"action\" {...props}>\n <Icon icon={<Warning size=\"lg\" />} />\n {children}\n </Banner>\n )\n})\n\nexport const UNSAFE_MiniBanner = React.forwardRef<\n HTMLDivElement,\n DivAttributes & Props & { variant?: BannerVariant }\n>(function MiniBanner({ children, variant = 'info', ...props }, ref) {\n return (\n <StyledMiniBannerContainer ref={ref} variant={variant} {...props}>\n {children}\n </StyledMiniBannerContainer>\n )\n})\n\nBanner_.displayName = 'Banner'\n\nBody.displayName = 'Banner.Body'\n\nContent.displayName = 'Banner.Content'\n\nExpandableContent.displayName = 'Banner.ExpandableContent'\n\nTitle.displayName = 'Banner.Title'\n\nAction.displayName = 'Banner.Action'\n\nActions.displayName = 'Banner.Actions'\n\nDropdownAction.displayName = 'Banner.DropdownAction'\n\nIcon.displayName = 'Banner.Icon'\n\nDismiss.displayName = 'Banner.Dismiss'\n\nErrorBanner.displayName = 'ErrorBanner'\n\nSuccessBanner.displayName = 'SuccessBanner'\n\nInfoBanner.displayName = 'InfoBanner'\n\nActionBanner.displayName = 'ActionBanner'\n\nUNSAFE_MiniBanner.displayName = 'MiniBanner'\n\nexport const Banner = addSubcomponents(\n {\n Body,\n Content,\n ExpandableContent,\n Title,\n Action,\n Actions,\n Icon,\n Dismiss,\n },\n Banner_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SACEA,KAAK,EACLC,KAAK,EACLC,gBAAgB,EAChBC,KAAK,EACLC,IAAI,EACJC,OAAO,QACF,0BAA0B;AACjC,SAASC,SAAS,QAAQ,OAAO;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,OAAO,QAAQ,cAAc;AAC5C,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,SAAS,QAAQ,qBAAqB;AAE/C,SACEC,YA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B,CAACK,WAAW,GAAG,YAAY;AAE5C,OAAO,IAAMvG,MAAM,GAAGd,gBAAgB,CACpC;EACE4D,IAAI,EAAJA,IAAI;EACJpB,OAAO,EAAPA,OAAO;EACPd,iBAAiB,EAAjBA,iBAAiB;EACjB+B,KAAK,EAALA,KAAK;EACLM,MAAM,EAANA,MAAM;EACNQ,OAAO,EAAPA,OAAO;EACPoB,IAAI,EAAJA,IAAI;EACJG,OAAO,EAAPA;AACF,CAAC,EACDlF,OACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FlexProps } from '../Flex/Flex.types';
|
|
3
|
-
import { BannerProps, BannerVariant } from './Banner.types';
|
|
2
|
+
import type { FlexProps } from '../Flex/Flex.types';
|
|
3
|
+
import type { BannerProps, BannerVariant } from './Banner.types';
|
|
4
4
|
export declare const StyledBannerContainer: import("styled-components").StyledComponent<"div", any, {
|
|
5
5
|
isExpandable: boolean;
|
|
6
6
|
} & BannerProps, never>;
|
|
@@ -44,7 +44,7 @@ var expandContent = function expandContent(maxHeight) {
|
|
|
44
44
|
};
|
|
45
45
|
export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
46
46
|
displayName: "StyledBannerContainer",
|
|
47
|
-
componentId: "core-
|
|
47
|
+
componentId: "core-11_24_2__sc-149wm7c-0"
|
|
48
48
|
})(["align-items:center;border-left:", "px solid;border-radius:", "px;color:", ";display:flex;justify-content:space-between;min-height:52px;padding:0 ", "px;", " ", " ", ""], bannerLeft, borderRadius.md, colors.gray15, spacing.lg, bannerShadow, function (_ref) {
|
|
49
49
|
var variant = _ref.variant;
|
|
50
50
|
var _bannerVariantColors$ = bannerVariantColors[variant],
|
|
@@ -57,15 +57,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
57
57
|
});
|
|
58
58
|
export var StyledContent = /*#__PURE__*/styled.div.withConfig({
|
|
59
59
|
displayName: "StyledContent",
|
|
60
|
-
componentId: "core-
|
|
60
|
+
componentId: "core-11_24_2__sc-149wm7c-1"
|
|
61
61
|
})(["align-self:center;margin:", "px ", "px;width:100%;"], spacing.sm, spacing.lg);
|
|
62
62
|
export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
|
|
63
63
|
displayName: "StyledExpandableContentContainer",
|
|
64
|
-
componentId: "core-
|
|
64
|
+
componentId: "core-11_24_2__sc-149wm7c-2"
|
|
65
65
|
})(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
|
|
66
66
|
export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
67
67
|
displayName: "StyledExpandableContent",
|
|
68
|
-
componentId: "core-
|
|
68
|
+
componentId: "core-11_24_2__sc-149wm7c-3"
|
|
69
69
|
})(["animation-duration:450ms;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:", ";box-sizing:border-box;font-size:14px;font-weight:500;letter-spacing:0.25px;line-height:20px;overflow-y:auto;padding:0 ", "px;position:relative;z-index:0;", " ", ""], colors.white, spacing.xl * 2 + spacing.sm, function (_ref3) {
|
|
70
70
|
var isOverflowingY = _ref3.isOverflowingY;
|
|
71
71
|
return isOverflowingY && focusable;
|
|
@@ -75,23 +75,23 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
|
75
75
|
});
|
|
76
76
|
export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
77
77
|
displayName: "StyledTitle",
|
|
78
|
-
componentId: "core-
|
|
78
|
+
componentId: "core-11_24_2__sc-149wm7c-4"
|
|
79
79
|
})(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
|
|
80
80
|
export var StyledBody = /*#__PURE__*/styled.div.withConfig({
|
|
81
81
|
displayName: "StyledBody",
|
|
82
|
-
componentId: "core-
|
|
82
|
+
componentId: "core-11_24_2__sc-149wm7c-5"
|
|
83
83
|
})(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
|
|
84
84
|
export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
85
85
|
displayName: "StyledIconContainer",
|
|
86
|
-
componentId: "core-
|
|
86
|
+
componentId: "core-11_24_2__sc-149wm7c-6"
|
|
87
87
|
})(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
|
|
88
88
|
export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
|
|
89
89
|
displayName: "StyledActionsTrigger",
|
|
90
|
-
componentId: "core-
|
|
90
|
+
componentId: "core-11_24_2__sc-149wm7c-7"
|
|
91
91
|
})(["flex-shrink:0;& + ", "{margin-left:", "px;}"], StyledButton, spacing.sm);
|
|
92
92
|
export var StyledAction = /*#__PURE__*/styled.div.withConfig({
|
|
93
93
|
displayName: "StyledAction",
|
|
94
|
-
componentId: "core-
|
|
94
|
+
componentId: "core-11_24_2__sc-149wm7c-8"
|
|
95
95
|
})(["margin:", "px 0;& + ", ",& + ", "{margin-left:", "px;}", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, StyledButton, StyledActionsTrigger, spacing.sm, StyledButton, colors.gray15, colors.gray85, colors.gray15);
|
|
96
96
|
function getMiniBannerIconColor(_ref5) {
|
|
97
97
|
var variant = _ref5.variant;
|
|
@@ -99,6 +99,6 @@ function getMiniBannerIconColor(_ref5) {
|
|
|
99
99
|
}
|
|
100
100
|
export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
101
101
|
displayName: "StyledMiniBannerContainer",
|
|
102
|
-
componentId: "core-
|
|
102
|
+
componentId: "core-11_24_2__sc-149wm7c-9"
|
|
103
103
|
})(["align-items:center;background-color:", ";display:flex;justify-content:space-between;padding:0 ", "px;", " ", " & ", "{margin:", "px;}"], colors.gray96, spacing.md, getTypographyIntent('small'), getMiniBannerIconColor, StyledContent, spacing.sm);
|
|
104
104
|
//# sourceMappingURL=Banner.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.styles.js","names":["styled","css","keyframes","StyledButton","DropdownButton","Flex","getTypographyIntent","typographyWeights","borderRadius","colors","focusable","getShadow","spacing","bannerLeft","bannerVariantColors","action","primary","yellow40","secondary","yellow94","error","red50","red98","info","blue40","blue96","success","green30","green96","UNSAFE_attention_emphasized","orange50","orange98","miniBannerVariantColors","yellow50","blue50","green50","bannerShadow","expandContent","maxHeight","sm","StyledBannerContainer","div","withConfig","displayName","componentId","md","gray15","lg","_ref","variant","_bannerVariantColors$","StyledIconContainer","_ref2","isExpandable","StyledContent","StyledExpandableContentContainer","StyledExpandableContent","white","xl","_ref3","isOverflowingY","_ref4","expandableContentMaxHeight","StyledTitle","semibold","StyledBody","StyledActionsTrigger","StyledAction","gray85","getMiniBannerIconColor","_ref5","StyledMiniBannerContainer","gray96"],"sources":["../../src/Banner/Banner.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledButton } from '../Button/Button.styles'\nimport { DropdownButton } from '../Dropdown/Dropdown'\nimport { Flex } from '../Flex/Flex'\nimport { FlexProps } from '../Flex/Flex.types'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { focusable } from '../_styles/mixins'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport { BannerProps, BannerVariant } from './Banner.types'\
|
|
1
|
+
{"version":3,"file":"Banner.styles.js","names":["styled","css","keyframes","StyledButton","DropdownButton","Flex","getTypographyIntent","typographyWeights","borderRadius","colors","focusable","getShadow","spacing","bannerLeft","bannerVariantColors","action","primary","yellow40","secondary","yellow94","error","red50","red98","info","blue40","blue96","success","green30","green96","UNSAFE_attention_emphasized","orange50","orange98","miniBannerVariantColors","yellow50","blue50","green50","bannerShadow","expandContent","maxHeight","sm","StyledBannerContainer","div","withConfig","displayName","componentId","md","gray15","lg","_ref","variant","_bannerVariantColors$","StyledIconContainer","_ref2","isExpandable","StyledContent","StyledExpandableContentContainer","StyledExpandableContent","white","xl","_ref3","isOverflowingY","_ref4","expandableContentMaxHeight","StyledTitle","semibold","StyledBody","StyledActionsTrigger","StyledAction","gray85","getMiniBannerIconColor","_ref5","StyledMiniBannerContainer","gray96"],"sources":["../../src/Banner/Banner.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledButton } from '../Button/Button.styles'\nimport { DropdownButton } from '../Dropdown/Dropdown'\nimport { Flex } from '../Flex/Flex'\nimport type { FlexProps } from '../Flex/Flex.types'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { focusable } from '../_styles/mixins'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport type { BannerProps, BannerVariant } from './Banner.types'\n\nconst bannerLeft = 8\n\nconst bannerVariantColors = {\n action: {\n primary: colors.yellow40,\n secondary: colors.yellow94,\n },\n error: {\n primary: colors.red50,\n secondary: colors.red98,\n },\n info: {\n primary: colors.blue40,\n secondary: colors.blue96,\n },\n success: {\n primary: colors.green30,\n secondary: colors.green96,\n },\n UNSAFE_attention_emphasized: {\n primary: colors.orange50,\n secondary: colors.orange98,\n },\n} as const\n\nconst miniBannerVariantColors = {\n action: colors.yellow50,\n error: colors.red50,\n info: colors.blue50,\n success: colors.green50,\n UNSAFE_attention_emphasized: colors.green50,\n}\n\nconst bannerShadow = getShadow(1, 'bottom')\n\nconst expandContent = (maxHeight: number) => keyframes`\n from {\n padding-top: 0;\n padding-bottom: 0;\n max-height: 0;\n min-height: 0;\n overflow-y: hidden;\n }\n to {\n padding-top: ${spacing.sm}px;\n padding-bottom: ${spacing.sm}px;\n min-height: 32px;\n max-height: ${maxHeight}px;\n overflow-y: auto;\n }\n`\n\nexport const StyledBannerContainer = styled.div<\n { isExpandable: boolean } & BannerProps\n>`\n align-items: center;\n border-left: ${bannerLeft}px solid;\n border-radius: ${borderRadius.md}px;\n color: ${colors.gray15};\n display: flex;\n justify-content: space-between;\n min-height: 52px;\n padding: 0 ${spacing.lg}px;\n\n ${bannerShadow}\n\n ${({ variant }) => {\n const { primary, secondary } = bannerVariantColors[variant]\n\n return css`\n border-left-color: ${primary};\n background-color: ${secondary};\n\n & ${StyledIconContainer} {\n color: ${primary};\n }\n `\n }}\n\n ${({ isExpandable }) =>\n isExpandable &&\n css`\n flex-direction: column;\n align-items: stretch;\n padding: 0;\n `}\n`\n\nexport const StyledContent = styled.div`\n align-self: center;\n margin: ${spacing.sm}px ${spacing.lg}px;\n width: 100%;\n`\n\nexport const StyledExpandableContentContainer = styled(Flex)`\n color: ${colors.gray15};\n min-height: 52px;\n padding: 0 ${spacing.lg}px;\n position: relative;\n z-index: 1;\n\n ${bannerShadow}\n`\n\nexport const StyledExpandableContent = styled(Flex)<\n FlexProps & { isOverflowingY: boolean; expandableContentMaxHeight: number }\n>`\n animation-duration: 450ms;\n animation-fill-mode: forwards;\n animation-timing-function: ease-out;\n background-color: ${colors.white};\n box-sizing: border-box;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.25px;\n line-height: 20px;\n overflow-y: auto;\n padding: 0 ${spacing.xl * 2 + spacing.sm}px;\n position: relative;\n z-index: 0;\n\n ${({ isOverflowingY }) => isOverflowingY && focusable}\n ${({ expandableContentMaxHeight }) =>\n css`\n animation-name: ${expandContent(expandableContentMaxHeight)};\n `}\n`\n\nexport const StyledTitle = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray15};\n font-weight: ${typographyWeights.semibold};\n`\n\nexport const StyledBody = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray15};\n`\n\nexport const StyledIconContainer = styled.div`\n flex: 0 0 auto;\n margin: ${spacing.lg}px 0;\n`\n\nexport const StyledActionsTrigger = styled(DropdownButton)`\n flex-shrink: 0;\n\n & + ${StyledButton} {\n margin-left: ${spacing.sm}px;\n }\n`\n\nexport const StyledAction = styled.div`\n margin: ${spacing.sm}px 0;\n\n & + ${StyledButton}, & + ${StyledActionsTrigger} {\n margin-left: ${spacing.sm}px;\n }\n\n ${StyledButton} {\n background: rgba(0, 0, 0, 0.05);\n color: ${colors.gray15};\n\n &:hover {\n background: ${colors.gray85};\n color: ${colors.gray15};\n }\n }\n`\n\nfunction getMiniBannerIconColor({ variant }: { variant: BannerVariant }) {\n return css`\n & ${StyledIconContainer} {\n color: ${miniBannerVariantColors[variant]};\n }\n `\n}\n\nexport const StyledMiniBannerContainer = styled.div<{\n variant: BannerVariant\n}>`\n align-items: center;\n background-color: ${colors.gray96};\n display: flex;\n justify-content: space-between;\n padding: 0 ${spacing.md}px;\n\n ${getTypographyIntent('small')}\n\n ${getMiniBannerIconColor}\n\n & ${StyledContent} {\n margin: ${spacing.sm}px;\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,IAAI,QAAQ,cAAc;AAEnC,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,IAAMC,UAAU,GAAG,CAAC;AAEpB,IAAMC,mBAAmB,GAAG;EAC1BC,MAAM,EAAE;IACNC,OAAO,EAAEP,MAAM,CAACQ,QAAQ;IACxBC,SAAS,EAAET,MAAM,CAACU;EACpB,CAAC;EACDC,KAAK,EAAE;IACLJ,OAAO,EAAEP,MAAM,CAACY,KAAK;IACrBH,SAAS,EAAET,MAAM,CAACa;EACpB,CAAC;EACDC,IAAI,EA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|
|
2
|
+
import type { Props } from '../_utils/types';
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated "success" variation is deprecated and will be removed in a future version. Instead, please consider using "success" variant of Toast component.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.types.js","names":[],"sources":["../../src/Banner/Banner.types.ts"],"sourcesContent":["import { Props } from '../_utils/types'\n\n/**\n * @deprecated \"success\" variation is deprecated and will be removed in a future version. Instead, please consider using \"success\" variant of Toast component.\n */\nexport type BannerVariant =\n | 'action'\n | 'error'\n | 'info'\n | 'success'\n | 'UNSAFE_attention_emphasized'\n\nexport interface BannerProps extends Props {\n /**\n * Sets the banner's variant.\n * @since 10.19.0\n */\n variant: BannerVariant\n}\n\nexport interface BannerIconProps extends Props {\n /**\n * @since 10.19.0\n */\n icon: React.ReactNode\n}\n\nexport interface BannerExpandableContentProps extends Props {\n /**\n * Expands banner content\n * @since 10.19.0\n */\n expanded: boolean\n /**\n * Max height for the expanded content pane. (Optional)\n * Defaults to 120.\n *\n * @since 11.5.*\n */\n expandableContentMaxHeight?: number\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Banner.types.js","names":[],"sources":["../../src/Banner/Banner.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\n/**\n * @deprecated \"success\" variation is deprecated and will be removed in a future version. Instead, please consider using \"success\" variant of Toast component.\n */\nexport type BannerVariant =\n | 'action'\n | 'error'\n | 'info'\n | 'success'\n | 'UNSAFE_attention_emphasized'\n\nexport interface BannerProps extends Props {\n /**\n * Sets the banner's variant.\n * @since 10.19.0\n */\n variant: BannerVariant\n}\n\nexport interface BannerIconProps extends Props {\n /**\n * @since 10.19.0\n */\n icon: React.ReactNode\n}\n\nexport interface BannerExpandableContentProps extends Props {\n /**\n * Expands banner content\n * @since 10.19.0\n */\n expanded: boolean\n /**\n * Max height for the expanded content pane. (Optional)\n * Defaults to 120.\n *\n * @since 11.5.*\n */\n expandableContentMaxHeight?: number\n}\n"],"mappings":""}
|
package/dist/Box/Box.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { DivAttributes } from '../_utils/types';
|
|
3
|
-
import { BoxProps } from './Box.types';
|
|
2
|
+
import type { DivAttributes } from '../_utils/types';
|
|
3
|
+
import type { BoxProps } from './Box.types';
|
|
4
4
|
export declare const Box: React.ForwardRefExoticComponent<DivAttributes & BoxProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/Box/Box.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.js","names":["React","StyledBox","getLegacyDisplayAndDirection","d","display","direction","includes","undefined","Box","forwardRef","_ref","ref","as","alignContent","alignItems","alignSelf","children","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","gap","justifyContent","margin","marginBottom","marginLeft","marginRight","marginTop","order","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","props","_objectWithoutProperties","_excluded","legacyProps","createElement","_extends","$as","$alignContent","$alignItems","$alignSelf","$display","$flex","$flexBasis","$flexDirection","$flexGrow","$flexShrink","$flexWrap","$gap","$justifyContent","$margin","$marginBottom","$marginLeft","$marginRight","$marginTop","$order","$padding","$paddingBottom","$paddingLeft","$paddingRight","$paddingTop","$textAlign","displayName"],"sources":["../../src/Box/Box.tsx"],"sourcesContent":["import * as React from 'react'\nimport { DivAttributes } from '../_utils/types'\nimport { StyledBox } from './Box.styles'\nimport { BoxProps, Display, FlexDirection } from './Box.types'\n\n// TODO remove this after we decommission the LegacyDisplay type\nfunction getLegacyDisplayAndDirection(d?: Display) {\n if (!d) {\n return {}\n }\n\n let display = d\n\n let direction: FlexDirection | undefined = display.includes('flex')\n ? 'row'\n : undefined\n\n if (d.includes('flex-inline') || d.includes('inline-flex')) {\n display = 'inline-flex'\n } else if (d.includes('flex')) {\n display = 'flex'\n }\n\n if (d.includes('column-reverse')) {\n direction = 'column-reverse'\n } else if (d.includes('column')) {\n direction = 'column'\n }\n\n if (d.includes('row-reverse')) {\n direction = 'row-reverse'\n } else if (d.includes('row')) {\n direction = 'row'\n }\n\n return {\n display,\n direction,\n }\n}\n\nexport const Box = React.forwardRef<HTMLDivElement, DivAttributes & BoxProps>(\n function Box(\n {\n as,\n alignContent,\n alignItems,\n alignSelf,\n children,\n display,\n flex,\n flexBasis,\n flexDirection,\n flexGrow,\n flexShrink,\n flexWrap,\n gap,\n justifyContent,\n margin,\n marginBottom,\n marginLeft,\n marginRight,\n marginTop,\n order,\n padding,\n paddingBottom,\n paddingLeft,\n paddingRight,\n paddingTop,\n textAlign,\n ...props\n },\n ref\n ) {\n const legacyProps = getLegacyDisplayAndDirection(display)\n\n return (\n <StyledBox\n {...props}\n ref={ref}\n $as={as}\n $alignContent={alignContent}\n $alignItems={alignItems}\n $alignSelf={alignSelf}\n $display={legacyProps.display}\n $flex={flex}\n $flexBasis={flexBasis}\n $flexDirection={flexDirection ?? legacyProps.direction}\n $flexGrow={flexGrow}\n $flexShrink={flexShrink}\n $flexWrap={flexWrap}\n $gap={gap}\n $justifyContent={justifyContent}\n $margin={margin}\n $marginBottom={marginBottom}\n $marginLeft={marginLeft}\n $marginRight={marginRight}\n $marginTop={marginTop}\n $order={order}\n $padding={padding}\n $paddingBottom={paddingBottom}\n $paddingLeft={paddingLeft}\n $paddingRight={paddingRight}\n $paddingTop={paddingTop}\n $textAlign={textAlign}\n >\n {children}\n </StyledBox>\n )\n }\n)\n\nBox.displayName = 'Box'\n"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,SAAS,QAAQ,cAAc;AAGxC;AACA,SAASC,4BAA4BA,CAACC,CAAW,EAAE;EACjD,IAAI,CAACA,CAAC,EAAE;IACN,OAAO,CAAC,CAAC;EACX;EAEA,IAAIC,OAAO,GAAGD,CAAC;EAEf,IAAIE,SAAoC,GAAGD,OAAO,CAACE,QAAQ,CAAC,MAAM,CAAC,GAC/D,KAAK,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EAAE/B,cAAe;IAChCgC,OAAO,EAAE/B,MAAO;IAChBgC,aAAa,EAAE/B,YAAa;IAC5BgC,WAAW,EAAE/B,UAAW;IACxBgC,YAAY,EAAE/B,WAAY;IAC1BgC,UAAU,EAAE/B,SAAU;IACtBgC,MAAM,EAAE/B,KAAM;IACdgC,QAAQ,EAAE/B,OAAQ;IAClBgC,cAAc,EAAE/B,aAAc;IAC9BgC,YAAY,EAAE/B,WAAY;IAC1BgC,aAAa,EAAE/B,YAAa;IAC5BgC,WAAW,EAAE/B,UAAW;IACxBgC,UAAU,EAAE/B;EAAU,IAErBpB,QACQ,CAAC;AAEhB,CACF,CAAC;AAEDR,GAAG,CAAC4D,WAAW,GAAG,KAAK"}
|
|
1
|
+
{"version":3,"file":"Box.js","names":["React","StyledBox","getLegacyDisplayAndDirection","d","display","direction","includes","undefined","Box","forwardRef","_ref","ref","as","alignContent","alignItems","alignSelf","children","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","gap","justifyContent","margin","marginBottom","marginLeft","marginRight","marginTop","order","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","props","_objectWithoutProperties","_excluded","legacyProps","createElement","_extends","$as","$alignContent","$alignItems","$alignSelf","$display","$flex","$flexBasis","$flexDirection","$flexGrow","$flexShrink","$flexWrap","$gap","$justifyContent","$margin","$marginBottom","$marginLeft","$marginRight","$marginTop","$order","$padding","$paddingBottom","$paddingLeft","$paddingRight","$paddingTop","$textAlign","displayName"],"sources":["../../src/Box/Box.tsx"],"sourcesContent":["import * as React from 'react'\nimport type { DivAttributes } from '../_utils/types'\nimport { StyledBox } from './Box.styles'\nimport type { BoxProps, Display, FlexDirection } from './Box.types'\n\n// TODO remove this after we decommission the LegacyDisplay type\nfunction getLegacyDisplayAndDirection(d?: Display) {\n if (!d) {\n return {}\n }\n\n let display = d\n\n let direction: FlexDirection | undefined = display.includes('flex')\n ? 'row'\n : undefined\n\n if (d.includes('flex-inline') || d.includes('inline-flex')) {\n display = 'inline-flex'\n } else if (d.includes('flex')) {\n display = 'flex'\n }\n\n if (d.includes('column-reverse')) {\n direction = 'column-reverse'\n } else if (d.includes('column')) {\n direction = 'column'\n }\n\n if (d.includes('row-reverse')) {\n direction = 'row-reverse'\n } else if (d.includes('row')) {\n direction = 'row'\n }\n\n return {\n display,\n direction,\n }\n}\n\nexport const Box = React.forwardRef<HTMLDivElement, DivAttributes & BoxProps>(\n function Box(\n {\n as,\n alignContent,\n alignItems,\n alignSelf,\n children,\n display,\n flex,\n flexBasis,\n flexDirection,\n flexGrow,\n flexShrink,\n flexWrap,\n gap,\n justifyContent,\n margin,\n marginBottom,\n marginLeft,\n marginRight,\n marginTop,\n order,\n padding,\n paddingBottom,\n paddingLeft,\n paddingRight,\n paddingTop,\n textAlign,\n ...props\n },\n ref\n ) {\n const legacyProps = getLegacyDisplayAndDirection(display)\n\n return (\n <StyledBox\n {...props}\n ref={ref}\n $as={as}\n $alignContent={alignContent}\n $alignItems={alignItems}\n $alignSelf={alignSelf}\n $display={legacyProps.display}\n $flex={flex}\n $flexBasis={flexBasis}\n $flexDirection={flexDirection ?? legacyProps.direction}\n $flexGrow={flexGrow}\n $flexShrink={flexShrink}\n $flexWrap={flexWrap}\n $gap={gap}\n $justifyContent={justifyContent}\n $margin={margin}\n $marginBottom={marginBottom}\n $marginLeft={marginLeft}\n $marginRight={marginRight}\n $marginTop={marginTop}\n $order={order}\n $padding={padding}\n $paddingBottom={paddingBottom}\n $paddingLeft={paddingLeft}\n $paddingRight={paddingRight}\n $paddingTop={paddingTop}\n $textAlign={textAlign}\n >\n {children}\n </StyledBox>\n )\n }\n)\n\nBox.displayName = 'Box'\n"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,SAAS,QAAQ,cAAc;AAGxC;AACA,SAASC,4BAA4BA,CAACC,CAAW,EAAE;EACjD,IAAI,CAACA,CAAC,EAAE;IACN,OAAO,CAAC,CAAC;EACX;EAEA,IAAIC,OAAO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,WAAW,EAAE/B,UAAW;IACxBgC,SAAS,EAAE/B,QAAS;IACpBgC,IAAI,EAAE/B,GAAI;IACVgC,eAAe,EAAE/B,cAAe;IAChCgC,OAAO,EAAE/B,MAAO;IAChBgC,aAAa,EAAE/B,YAAa;IAC5BgC,WAAW,EAAE/B,UAAW;IACxBgC,YAAY,EAAE/B,WAAY;IAC1BgC,UAAU,EAAE/B,SAAU;IACtBgC,MAAM,EAAE/B,KAAM;IACdgC,QAAQ,EAAE/B,OAAQ;IAClBgC,cAAc,EAAE/B,aAAc;IAC9BgC,YAAY,EAAE/B,WAAY;IAC1BgC,aAAa,EAAE/B,YAAa;IAC5BgC,WAAW,EAAE/B,UAAW;IACxBgC,UAAU,EAAE/B;EAAU,IAErBpB,QACQ,CAAC;AAEhB,CACF,CAAC;AAEDR,GAAG,CAAC4D,WAAW,GAAG,KAAK"}
|
package/dist/Box/Box.styles.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $BoxProps } from './Box.types';
|
|
1
|
+
import type { $BoxProps } from './Box.types';
|
|
2
2
|
export declare const StyledBox: import("styled-components").StyledComponent<"div", any, $BoxProps, never>;
|
package/dist/Box/Box.styles.js
CHANGED
|
@@ -21,7 +21,7 @@ function sizeToPx(size) {
|
|
|
21
21
|
}
|
|
22
22
|
export var StyledBox = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledBox",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-11_24_2__sc-fgsy0p-0"
|
|
25
25
|
})(["", " ", ""], function (_ref) {
|
|
26
26
|
var $as = _ref.$as;
|
|
27
27
|
if ($as === 'ol' || $as === 'ul') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.styles.js","names":["styled","css","spacing","appendPx","value","concat","sizeStrToPx","str","undefined","shorthandSizeToPx","shorthand","split","map","join","sizeToPx","size","StyledBox","div","withConfig","displayName","componentId","_ref","$as","p","$alignContent","$alignItems","$alignSelf","$display","$flexBasis","$flexDirection","$flexGrow","$flexShrink","$flexWrap","$flex","$gap","$justifyContent","$margin","$marginBottom","$marginLeft","$marginRight","$marginTop","$order","$padding","$paddingBottom","$paddingLeft","$paddingRight","$paddingTop","$textAlign"],"sources":["../../src/Box/Box.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { spacing
|
|
1
|
+
{"version":3,"file":"Box.styles.js","names":["styled","css","spacing","appendPx","value","concat","sizeStrToPx","str","undefined","shorthandSizeToPx","shorthand","split","map","join","sizeToPx","size","StyledBox","div","withConfig","displayName","componentId","_ref","$as","p","$alignContent","$alignItems","$alignSelf","$display","$flexBasis","$flexDirection","$flexGrow","$flexShrink","$flexWrap","$flex","$gap","$justifyContent","$margin","$marginBottom","$marginLeft","$marginRight","$marginTop","$order","$padding","$paddingBottom","$paddingLeft","$paddingRight","$paddingTop","$textAlign"],"sources":["../../src/Box/Box.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport type { Spacing } from '../_styles/spacing'\nimport { spacing } from '../_styles/spacing'\nimport type { $BoxProps, MarginSize, PaddingSize } from './Box.types'\n\nfunction appendPx(value?: number | string): string | undefined {\n if (!value) {\n return\n }\n\n return typeof value === 'string' ? value : `${value}px`\n}\n\nfunction sizeStrToPx(str?: string): string | undefined {\n /**\n * hacky usage of \"as\" here, but since we have a default fallback if the\n * lookup fails it should be fine\n */\n return spacing[str as Spacing] !== undefined\n ? `${spacing[str as Spacing]}px`\n : str\n}\n\nfunction shorthandSizeToPx(shorthand?: string): string | undefined {\n return shorthand?.split(' ').map(sizeStrToPx).join(' ')\n}\n\nfunction sizeToPx(size?: MarginSize | PaddingSize): string | undefined {\n return sizeStrToPx(size) || size\n}\n\nexport const StyledBox = styled.div<$BoxProps>`\n ${({ $as }) => {\n if ($as === 'ol' || $as === 'ul') {\n return css`\n list-style: none;\n margin: 0;\n padding: 0;\n `\n }\n }}\n ${(p) => css`\n align-content: ${p.$alignContent};\n align-items: ${p.$alignItems};\n align-self: ${p.$alignSelf};\n display: ${p.$display};\n flex-basis: ${p.$flexBasis};\n flex-direction: ${p.$flexDirection};\n flex-grow: ${p.$flexGrow};\n flex-shrink: ${p.$flexShrink};\n flex-wrap: ${p.$flexWrap};\n flex: ${p.$flex};\n gap: ${shorthandSizeToPx(p.$gap)};\n justify-content: ${p.$justifyContent};\n margin: ${shorthandSizeToPx(p.$margin)};\n margin-bottom: ${sizeToPx(p.$marginBottom)};\n margin-left: ${sizeToPx(p.$marginLeft)};\n margin-right: ${sizeToPx(p.$marginRight)};\n margin-top: ${sizeToPx(p.$marginTop)};\n order: ${p.$order};\n padding: ${shorthandSizeToPx(p.$padding)};\n padding-bottom: ${sizeToPx(p.$paddingBottom)};\n padding-left: ${sizeToPx(p.$paddingLeft)};\n padding-right: ${sizeToPx(p.$paddingRight)};\n padding-top: ${sizeToPx(p.$paddingTop)};\n text-align: ${p.$textAlign};\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,SAASC,QAAQA,CAACC,KAAuB,EAAsB;EAC7D,IAAI,CAACA,KAAK,EAAE;IACV;EACF;EAEA,OAAO,OAAOA,KAAK,KAAK,QAAQ,GAAGA,KAAK,MAAAC,MAAA,CAAMD,KAAK,OAAI;AACzD;AAEA,SAASE,WAAWA,CAACC,GAAY,EAAsB;EACrD;AACF;AACA;AACA;EACE,OAAOL,OAAO,CAACK,GAAG,CAAY,KAAKC,SAAS,MAAAH,MAAA,CACrCH,OAAO,CAACK,GAAG,CAAY,UAC1BA,GAAG;AACT;AAEA,SAASE,iBAAiBA,CAACC,SAAkB,EAAsB;EACjE,OAAOA,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEC,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAACN,WAAW,CAAC,CAACO,IAAI,CAAC,GAAG,CAAC;AACzD;AAEA,SAASC,QAAQA,CAACC,IAA+B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,CAC3B,CACF"}
|
package/dist/Box/Box.types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.types.js","names":[],"sources":["../../src/Box/Box.types.ts"],"sourcesContent":["import { Props, Size } from '../_utils/types'\n\n/**\n * @deprecated\n *\n * These display modes are no longer valid, please use `direction` prop\n *\n * @deprecatedSince 10.20.0\n */\nexport type DeprecatedDisplay =\n | 'flex-column-reverse'\n | 'flex-column'\n | 'flex-inline-column-reverse'\n | 'flex-inline-column'\n | 'flex-inline-row-reverse'\n | 'flex-inline-row'\n | 'flex-row-reverse'\n | 'flex-row'\n\nexport type Display =\n | DeprecatedDisplay\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n\nexport type FlexAlign =\n | 'baseline'\n | 'center'\n | 'flex-end'\n | 'flex-start'\n | 'normal'\n | 'stretch'\n\nexport type FlexDirection = 'column' | 'column-reverse' | 'row' | 'row-reverse'\n\nexport type FlexJustify =\n | 'center'\n | 'flex-end'\n | 'flex-start'\n | 'normal'\n | 'space-around'\n | 'space-between'\n | 'space-evenly'\n\nexport type FlexAlignContent = FlexJustify | 'stretch'\n\nexport type FlexWrap = 'nowrap' | 'wrap-reverse' | 'wrap'\n\nexport type TextAlign = 'center' | 'left' | 'right'\n\nexport type MarginSize = Extract<\n Size,\n 'auto' | 'none' | 'xss' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'\n>\n\nexport type PaddingSize = Extract<\n Size,\n 'none' | 'xss' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'\n>\n\nexport type BoxSize = MarginSize | PaddingSize | undefined\n\nexport interface MarginOptions {\n /**\n * @since 10.19.0\n */\n margin?: MarginSize | string\n /**\n * @since 10.19.0\n */\n marginBottom?: MarginSize\n /**\n * @since 10.19.0\n */\n marginLeft?: MarginSize\n /**\n * @since 10.19.0\n */\n marginRight?: MarginSize\n /**\n * @since 10.19.0\n */\n marginTop?: MarginSize\n}\n\nexport interface PaddingOptions {\n /**\n * @since 10.19.0\n */\n padding?: PaddingSize | string\n /**\n * @since 10.19.0\n */\n paddingBottom?: PaddingSize\n /**\n * @since 10.19.0\n */\n paddingLeft?: PaddingSize\n /**\n * @since 10.19.0\n */\n paddingRight?: PaddingSize\n /**\n * @since 10.19.0\n */\n paddingTop?: PaddingSize\n /**\n * @since 10.19.0\n */\n}\n\nexport interface FlexOptions {\n /**\n * @since 10.19.0\n */\n alignContent?: FlexAlignContent\n /**\n * @since 10.19.0\n */\n alignItems?: FlexAlign\n /**\n * @since 10.19.0\n */\n alignSelf?: FlexAlign\n /**\n * @since 10.19.0\n */\n justifyContent?: FlexJustify\n}\n\nexport interface BoxProps\n extends Props,\n FlexOptions,\n MarginOptions,\n PaddingOptions {\n /**\n * Render semantic HTML tags with browser reset and normalize CSS\n * @since 10.19.0\n */\n as?: 'ul' | 'ol' | 'li'\n /**\n * @since 10.19.0\n */\n display?: Display\n\n /**\n * Alias to the `flex` property on a flexbox child.\n * @since 10.19.0\n */\n flex?: string | number\n\n /**\n * Alias to the `basis` property on a flexbox child.\n * @since 10.19.0\n */\n flexBasis?: string | number\n\n /**\n * Alias to the `direction` property on a flexbox child.\n * @since 10.19.0\n */\n flexDirection?: FlexDirection\n\n /**\n * Alias to the `grow` property on a flexbox child.\n * @since 10.19.0\n */\n flexGrow?: string | number\n\n /**\n * Alias to the `shrink` property on a flexbox child.\n * @since 10.19.0\n */\n flexShrink?: string | number\n\n /**\n * Alias to the `wrap` property on a flexbox child.\n * @since 10.19.0\n */\n flexWrap?: FlexWrap\n\n /**\n * * Alias to the `gap` property on a flexbox child.\n * @since 11.3.0\n */\n gap?: MarginSize | string\n\n /**\n * Alias to the `order` property on a flexbox child.\n * @since 10.19.0\n */\n order?: number\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n /**\n * @since 10.19.0\n */\n textAlign?: TextAlign\n}\n\nexport interface $BoxProps {\n /**\n * @since 10.19.0\n */\n $as?: BoxProps['as']\n /**\n * @since 10.19.0\n */\n $alignContent?: BoxProps['alignContent']\n /**\n * @since 10.19.0\n */\n $alignItems?: BoxProps['alignItems']\n /**\n * @since 10.19.0\n */\n $alignSelf?: BoxProps['alignSelf']\n /**\n * @since 10.19.0\n */\n $display?: BoxProps['display']\n /**\n * @since 10.19.0\n */\n $flex?: BoxProps['flex']\n /**\n * @since 10.19.0\n */\n $flexBasis?: BoxProps['flexBasis']\n /**\n * @since 10.19.0\n */\n $flexDirection?: BoxProps['flexDirection']\n /**\n * @since 10.19.0\n */\n $flexGrow?: BoxProps['flexGrow']\n /**\n * @since 10.19.0\n */\n $flexShrink?: BoxProps['flexShrink']\n /**\n * @since 10.19.0\n */\n $flexWrap?: BoxProps['flexWrap']\n /**\n * @since 11.3.0\n */\n $gap?: BoxProps['gap']\n /**\n /**\n * @since 10.19.0\n */\n $justifyContent?: BoxProps['justifyContent']\n /**\n * @since 10.19.0\n */\n $margin?: BoxProps['margin']\n /**\n * @since 10.19.0\n */\n $marginBottom?: BoxProps['marginBottom']\n /**\n * @since 10.19.0\n */\n $marginLeft?: BoxProps['marginLeft']\n /**\n * @since 10.19.0\n */\n $marginRight?: BoxProps['marginRight']\n /**\n * @since 10.19.0\n */\n $marginTop?: BoxProps['marginTop']\n /**\n * @since 10.19.0\n */\n $order?: BoxProps['order']\n /**\n * @since 10.19.0\n */\n $padding?: BoxProps['padding']\n /**\n * @since 10.19.0\n */\n $paddingBottom?: BoxProps['paddingBottom']\n /**\n * @since 10.19.0\n */\n $paddingLeft?: BoxProps['paddingLeft']\n /**\n * @since 10.19.0\n */\n $paddingRight?: BoxProps['paddingRight']\n /**\n * @since 10.19.0\n */\n $paddingTop?: BoxProps['paddingTop']\n /**\n * @since 10.19.0\n */\n $textAlign?: BoxProps['textAlign']\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Box.types.js","names":[],"sources":["../../src/Box/Box.types.ts"],"sourcesContent":["import type { Props, Size } from '../_utils/types'\n\n/**\n * @deprecated\n *\n * These display modes are no longer valid, please use `direction` prop\n *\n * @deprecatedSince 10.20.0\n */\nexport type DeprecatedDisplay =\n | 'flex-column-reverse'\n | 'flex-column'\n | 'flex-inline-column-reverse'\n | 'flex-inline-column'\n | 'flex-inline-row-reverse'\n | 'flex-inline-row'\n | 'flex-row-reverse'\n | 'flex-row'\n\nexport type Display =\n | DeprecatedDisplay\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n\nexport type FlexAlign =\n | 'baseline'\n | 'center'\n | 'flex-end'\n | 'flex-start'\n | 'normal'\n | 'stretch'\n\nexport type FlexDirection = 'column' | 'column-reverse' | 'row' | 'row-reverse'\n\nexport type FlexJustify =\n | 'center'\n | 'flex-end'\n | 'flex-start'\n | 'normal'\n | 'space-around'\n | 'space-between'\n | 'space-evenly'\n\nexport type FlexAlignContent = FlexJustify | 'stretch'\n\nexport type FlexWrap = 'nowrap' | 'wrap-reverse' | 'wrap'\n\nexport type TextAlign = 'center' | 'left' | 'right'\n\nexport type MarginSize = Extract<\n Size,\n 'auto' | 'none' | 'xss' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'\n>\n\nexport type PaddingSize = Extract<\n Size,\n 'none' | 'xss' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'\n>\n\nexport type BoxSize = MarginSize | PaddingSize | undefined\n\nexport interface MarginOptions {\n /**\n * @since 10.19.0\n */\n margin?: MarginSize | string\n /**\n * @since 10.19.0\n */\n marginBottom?: MarginSize\n /**\n * @since 10.19.0\n */\n marginLeft?: MarginSize\n /**\n * @since 10.19.0\n */\n marginRight?: MarginSize\n /**\n * @since 10.19.0\n */\n marginTop?: MarginSize\n}\n\nexport interface PaddingOptions {\n /**\n * @since 10.19.0\n */\n padding?: PaddingSize | string\n /**\n * @since 10.19.0\n */\n paddingBottom?: PaddingSize\n /**\n * @since 10.19.0\n */\n paddingLeft?: PaddingSize\n /**\n * @since 10.19.0\n */\n paddingRight?: PaddingSize\n /**\n * @since 10.19.0\n */\n paddingTop?: PaddingSize\n /**\n * @since 10.19.0\n */\n}\n\nexport interface FlexOptions {\n /**\n * @since 10.19.0\n */\n alignContent?: FlexAlignContent\n /**\n * @since 10.19.0\n */\n alignItems?: FlexAlign\n /**\n * @since 10.19.0\n */\n alignSelf?: FlexAlign\n /**\n * @since 10.19.0\n */\n justifyContent?: FlexJustify\n}\n\nexport interface BoxProps\n extends Props,\n FlexOptions,\n MarginOptions,\n PaddingOptions {\n /**\n * Render semantic HTML tags with browser reset and normalize CSS\n * @since 10.19.0\n */\n as?: 'ul' | 'ol' | 'li'\n /**\n * @since 10.19.0\n */\n display?: Display\n\n /**\n * Alias to the `flex` property on a flexbox child.\n * @since 10.19.0\n */\n flex?: string | number\n\n /**\n * Alias to the `basis` property on a flexbox child.\n * @since 10.19.0\n */\n flexBasis?: string | number\n\n /**\n * Alias to the `direction` property on a flexbox child.\n * @since 10.19.0\n */\n flexDirection?: FlexDirection\n\n /**\n * Alias to the `grow` property on a flexbox child.\n * @since 10.19.0\n */\n flexGrow?: string | number\n\n /**\n * Alias to the `shrink` property on a flexbox child.\n * @since 10.19.0\n */\n flexShrink?: string | number\n\n /**\n * Alias to the `wrap` property on a flexbox child.\n * @since 10.19.0\n */\n flexWrap?: FlexWrap\n\n /**\n * * Alias to the `gap` property on a flexbox child.\n * @since 11.3.0\n */\n gap?: MarginSize | string\n\n /**\n * Alias to the `order` property on a flexbox child.\n * @since 10.19.0\n */\n order?: number\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n /**\n * @since 10.19.0\n */\n textAlign?: TextAlign\n}\n\nexport interface $BoxProps {\n /**\n * @since 10.19.0\n */\n $as?: BoxProps['as']\n /**\n * @since 10.19.0\n */\n $alignContent?: BoxProps['alignContent']\n /**\n * @since 10.19.0\n */\n $alignItems?: BoxProps['alignItems']\n /**\n * @since 10.19.0\n */\n $alignSelf?: BoxProps['alignSelf']\n /**\n * @since 10.19.0\n */\n $display?: BoxProps['display']\n /**\n * @since 10.19.0\n */\n $flex?: BoxProps['flex']\n /**\n * @since 10.19.0\n */\n $flexBasis?: BoxProps['flexBasis']\n /**\n * @since 10.19.0\n */\n $flexDirection?: BoxProps['flexDirection']\n /**\n * @since 10.19.0\n */\n $flexGrow?: BoxProps['flexGrow']\n /**\n * @since 10.19.0\n */\n $flexShrink?: BoxProps['flexShrink']\n /**\n * @since 10.19.0\n */\n $flexWrap?: BoxProps['flexWrap']\n /**\n * @since 11.3.0\n */\n $gap?: BoxProps['gap']\n /**\n /**\n * @since 10.19.0\n */\n $justifyContent?: BoxProps['justifyContent']\n /**\n * @since 10.19.0\n */\n $margin?: BoxProps['margin']\n /**\n * @since 10.19.0\n */\n $marginBottom?: BoxProps['marginBottom']\n /**\n * @since 10.19.0\n */\n $marginLeft?: BoxProps['marginLeft']\n /**\n * @since 10.19.0\n */\n $marginRight?: BoxProps['marginRight']\n /**\n * @since 10.19.0\n */\n $marginTop?: BoxProps['marginTop']\n /**\n * @since 10.19.0\n */\n $order?: BoxProps['order']\n /**\n * @since 10.19.0\n */\n $padding?: BoxProps['padding']\n /**\n * @since 10.19.0\n */\n $paddingBottom?: BoxProps['paddingBottom']\n /**\n * @since 10.19.0\n */\n $paddingLeft?: BoxProps['paddingLeft']\n /**\n * @since 10.19.0\n */\n $paddingRight?: BoxProps['paddingRight']\n /**\n * @since 10.19.0\n */\n $paddingTop?: BoxProps['paddingTop']\n /**\n * @since 10.19.0\n */\n $textAlign?: BoxProps['textAlign']\n}\n"],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DivAttributes, LiAttributes } from '../_utils/types';
|
|
3
|
-
import { BreadcrumbCrumbProps, BreadcrumbProps } from './Breadcrumbs.types';
|
|
2
|
+
import type { DivAttributes, LiAttributes } from '../_utils/types';
|
|
3
|
+
import type { BreadcrumbCrumbProps, BreadcrumbProps } from './Breadcrumbs.types';
|
|
4
4
|
declare type NavCrumbProps = LiAttributes & BreadcrumbCrumbProps;
|
|
5
5
|
declare type LegacyCrumbProps = DivAttributes & BreadcrumbCrumbProps;
|
|
6
6
|
export declare const Crumb: React.ForwardRefExoticComponent<(NavCrumbProps | LegacyCrumbProps) & React.RefAttributes<HTMLDivElement | HTMLLIElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.js","names":["ChevronRight","React","useI18nContext","addSubcomponents","StyledContainer","StyledCrumb","StyledList","StyledSeparator","BreadcrumbVariants","separator","createElement","Breadcrumbs_","forwardRef","Breadcrumbs","_ref","ref","children","_ref$variant","variant","LEGACY","props","_objectWithoutProperties","_excluded","i18n","childrenArray","Children","toArray","isLegacy","navigationList","filter","child","map","i","isLast","length","aria","active","undefined","cloneProps","_objectSpread","Fragment","key","concat","cloneElement","_extends","t","Crumb","_ref2","_ref2$variant","_excluded2","childrenWithAriaAttrs","isValidElement","showSeparator","hasOwnProperty","as","displayName"],"sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { ChevronRight } from '@procore/core-icons'\nimport
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.js","names":["ChevronRight","React","useI18nContext","addSubcomponents","StyledContainer","StyledCrumb","StyledList","StyledSeparator","BreadcrumbVariants","separator","createElement","Breadcrumbs_","forwardRef","Breadcrumbs","_ref","ref","children","_ref$variant","variant","LEGACY","props","_objectWithoutProperties","_excluded","i18n","childrenArray","Children","toArray","isLegacy","navigationList","filter","child","map","i","isLast","length","aria","active","undefined","cloneProps","_objectSpread","Fragment","key","concat","cloneElement","_extends","t","Crumb","_ref2","_ref2$variant","_excluded2","childrenWithAriaAttrs","isValidElement","showSeparator","hasOwnProperty","as","displayName"],"sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { ChevronRight } from '@procore/core-icons'\nimport type { ForwardedRef } from 'react'\nimport React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type {\n DivAttributes,\n LiAttributes,\n NavAttributes,\n} from '../_utils/types'\nimport {\n StyledContainer,\n StyledCrumb,\n StyledList,\n StyledSeparator,\n} from './Breadcrumbs.styles'\nimport type { BreadcrumbCrumbProps, BreadcrumbProps } from './Breadcrumbs.types'\nimport { BreadcrumbVariants } from './Breadcrumbs.types'\n\nconst separator = (\n <StyledSeparator aria-hidden={true}>\n <ChevronRight />\n </StyledSeparator>\n)\n\n/**\n\n We use breadcrumbs to provide navigational information to the user on every\n tool’s child page in Procore.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-breadcrumbs--demo)\n\n @see [Design Guidelines](https://design.procore.com/breadcrumb)\n\n */\nconst Breadcrumbs_ = React.forwardRef<\n HTMLElement,\n NavAttributes & BreadcrumbProps\n>(function Breadcrumbs(\n { children, variant = BreadcrumbVariants.LEGACY, ...props },\n ref\n) {\n const i18n = useI18nContext()\n const childrenArray = React.Children.toArray(children)\n const isLegacy = variant === BreadcrumbVariants.LEGACY\n\n const navigationList = childrenArray\n .filter((child) => child)\n .map((child, i) => {\n const isLast = i === childrenArray.length - 1\n const aria = {\n 'aria-current': (child as React.ReactElement).props.active || undefined,\n }\n const cloneProps = isLegacy\n ? aria\n : {\n ...aria,\n isLast,\n variant,\n }\n\n return (\n <React.Fragment key={`separator-${i}`}>\n {React.cloneElement(child as React.ReactElement, cloneProps)}\n {isLegacy && !isLast ? separator : <></>}\n </React.Fragment>\n )\n })\n return (\n <StyledContainer\n aria-label={i18n.t('core.breadcrumbs.label')}\n {...props}\n ref={ref}\n >\n {!isLegacy ? <StyledList>{navigationList}</StyledList> : navigationList}\n </StyledContainer>\n )\n})\n\ntype NavCrumbProps = LiAttributes & BreadcrumbCrumbProps\ntype LegacyCrumbProps = DivAttributes & BreadcrumbCrumbProps\n\nexport const Crumb = React.forwardRef<\n HTMLLIElement | HTMLDivElement,\n NavCrumbProps | LegacyCrumbProps\n>(function Crumb({ variant = BreadcrumbVariants.LEGACY, ...props }, ref) {\n const childrenWithAriaAttrs = React.Children.toArray(props.children)\n .filter((child) => child)\n .map((child) => {\n if (React.isValidElement<{ 'aria-current'?: boolean }>(child)) {\n return React.cloneElement(child, {\n 'aria-current': props.active || undefined,\n })\n } else {\n return child\n }\n })\n const isLegacy = variant === BreadcrumbVariants.LEGACY\n const showSeparator =\n !isLegacy && props.hasOwnProperty('isLast') && !props.isLast\n return (\n <StyledCrumb\n as={isLegacy ? 'div' : 'li'}\n {...(props as NavCrumbProps)}\n ref={ref as ForwardedRef<HTMLLIElement>}\n >\n {childrenWithAriaAttrs}\n {showSeparator ? separator : <></>}\n </StyledCrumb>\n )\n})\n\nBreadcrumbs_.displayName = 'Breadcrumbs'\n\nCrumb.displayName = 'Breadcrumbs.Crumb'\n\nexport const Breadcrumbs = addSubcomponents(\n {\n Crumb,\n },\n Breadcrumbs_\n)\n"],"mappings":";;;;;;;;;;;AAAA,SAASA,YAAY,QAAQ,qBAAqB;AAElD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAM7D,SACEC,eAAe,EACfC,WAAW,EACXC,UAAU,EACVC,eAAe,QACV,sBAAsB;AAE7B,SAASC,kBAAkB,QAAQ,qBAAqB;AAExD,IAAMC,SAAS,gBACbR,KAAA,CAAAS,aAAA,CAACH,eAAe;EAAC,eAAa;AAAK,gBACjCN,KAAA,CAAAS,aAAA,CAACV,YAAY,MAAE,CACA,CAClB;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMW,YAAY,gBAAGV,KAAK,CAACW,UAAU,CAGnC,SAASC,WAAWA,CAAAC,IAAA,EAEpBC,GAAG,EACH;EAAA,IAFEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,YAAA,GAAAH,IAAA,CAAEI,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAGT,kB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,QAAA,MAAI,CACtB,CAAC;AAElB,CAAC,CAAC;AAEF7B,YAAY,CAAC4C,WAAW,GAAG,aAAa;AAExCT,KAAK,CAACS,WAAW,GAAG,mBAAmB;AAEvC,OAAO,IAAM1C,WAAW,GAAGV,gBAAgB,CACzC;EACE2C,KAAK,EAALA;AACF,CAAC,EACDnC,YACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BreadcrumbCrumbProps } from './Breadcrumbs.types';
|
|
1
|
+
import type { BreadcrumbCrumbProps } from './Breadcrumbs.types';
|
|
2
2
|
export declare const StyledContainer: import("styled-components").StyledComponent<"nav", any, {}, never>;
|
|
3
3
|
export declare const StyledList: import("styled-components").StyledComponent<"ol", any, {}, never>;
|
|
4
4
|
export declare const StyledSeparator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -4,19 +4,19 @@ import { colors } from '../_styles/colors';
|
|
|
4
4
|
import { spacing } from '../_styles/spacing';
|
|
5
5
|
export var StyledContainer = /*#__PURE__*/styled.nav.withConfig({
|
|
6
6
|
displayName: "StyledContainer",
|
|
7
|
-
componentId: "core-
|
|
7
|
+
componentId: "core-11_24_2__sc-1q6nqfz-0"
|
|
8
8
|
})(["color:", ";display:flex;align-items:center;a,a:hover{display:inline-flex;text-decoration:none;}"], colors.gray50);
|
|
9
9
|
export var StyledList = /*#__PURE__*/styled.ol.withConfig({
|
|
10
10
|
displayName: "StyledList",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-11_24_2__sc-1q6nqfz-1"
|
|
12
12
|
})(["display:flex;margin:0;padding-left:0;"]);
|
|
13
13
|
export var StyledSeparator = /*#__PURE__*/styled.div.withConfig({
|
|
14
14
|
displayName: "StyledSeparator",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-11_24_2__sc-1q6nqfz-2"
|
|
16
16
|
})(["align-items:center;display:inline-flex;justify-content:center;margin:0px ", "px;"], spacing.xs);
|
|
17
17
|
export var StyledCrumb = /*#__PURE__*/styled.li.withConfig({
|
|
18
18
|
displayName: "StyledCrumb",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-11_24_2__sc-1q6nqfz-3"
|
|
20
20
|
})(["", " align-items:center;color:", ";display:inline-flex;min-height:24px;text-decoration:none;&:hover{cursor:", ";text-decoration:", ";}> a{color:", ";", "}", ""], getTypographyIntent('body'), colors.gray45, function (_ref) {
|
|
21
21
|
var active = _ref.active;
|
|
22
22
|
return active ? 'default' : 'pointer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.styles.js","names":["styled","css","getTypographyIntent","typographyWeights","colors","spacing","StyledContainer","nav","withConfig","displayName","componentId","gray50","StyledList","ol","StyledSeparator","div","xs","StyledCrumb","li","gray45","_ref","active","_ref2","_ref3","gray15","semibold","_ref4"],"sources":["../../src/Breadcrumbs/Breadcrumbs.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\nimport { BreadcrumbCrumbProps } from './Breadcrumbs.types'\n\nexport const StyledContainer = styled.nav`\n color: ${colors.gray50};\n display: flex;\n align-items: center;\n\n a,\n a:hover {\n display: inline-flex;\n text-decoration: none;\n }\n`\n\nexport const StyledList = styled.ol`\n display: flex;\n margin: 0;\n padding-left: 0;\n`\n\nexport const StyledSeparator = styled.div`\n align-items: center;\n display: inline-flex;\n justify-content: center;\n margin: 0px ${spacing.xs}px;\n`\n\nexport const StyledCrumb = styled.li<BreadcrumbCrumbProps>`\n ${getTypographyIntent('body')}\n\n align-items:center;\n color: ${colors.gray45};\n display: inline-flex;\n min-height: 24px;\n text-decoration: none;\n\n &:hover {\n cursor: ${({ active }) => (active ? 'default' : 'pointer')};\n text-decoration: ${({ active }) => (active ? 'none' : 'underline')};\n }\n\n > a {\n color: ${colors.gray45};\n ${({ active }) =>\n active &&\n css`\n color: ${colors.gray15};\n font-weight: ${typographyWeights.semibold};\n `}\n }\n\n ${({ active }) =>\n active &&\n css`\n color: ${colors.gray15};\n font-weight: ${typographyWeights.semibold};\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,OAAO,IAAMC,eAAe,gBAAGN,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wGAC9BN,MAAM,CAACO,MAAM,CASvB;AAED,OAAO,IAAMC,UAAU,gBAAGZ,MAAM,CAACa,EAAE,CAAAL,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6CAIlC;AAED,OAAO,IAAMI,eAAe,gBAAGd,MAAM,CAACe,GAAG,CAAAP,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yFAIzBL,OAAO,CAACW,EAAE,CACzB;AAED,OAAO,IAAMC,WAAW,gBAAGjB,MAAM,CAACkB,EAAE,CAAAV,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uKAChCR,mBAAmB,CAAC,MAAM,CAAC,EAGpBE,MAAM,CAACe,MAAM,EAMV,UAAAC,IAAA;EAAA,IAAGC,MAAM,GAAAD,IAAA,CAANC,MAAM;EAAA,OAAQA,MAAM,GAAG,SAAS,GAAG,SAAS;AAAA,CAAC,EACvC,UAAAC,KAAA;EAAA,IAAGD,MAAM,GAAAC,KAAA,CAAND,MAAM;EAAA,OAAQA,MAAM,GAAG,MAAM,GAAG,WAAW;AAAA,CAAC,EAIzDjB,MAAM,CAACe,MAAM,EACpB,UAAAI,KAAA;EAAA,IAAGF,MAAM,GAAAE,KAAA,CAANF,MAAM;EAAA,OACTA,MAAM,IACNpB,GAAG,mCACQG,MAAM,CAACoB,MAAM,EACPrB,iBAAiB,CAACsB,QAAQ,CAC1C;AAAA,GAGH,UAAAC,KAAA;EAAA,IAAGL,MAAM,GAAAK,KAAA,CAANL,MAAM;EAAA,OACTA,MAAM,IACNpB,GAAG,mCACQG,MAAM,CAACoB,MAAM,EACPrB,iBAAiB,CAACsB,QAAQ,CAC1C;AAAA,EACJ"}
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.styles.js","names":["styled","css","getTypographyIntent","typographyWeights","colors","spacing","StyledContainer","nav","withConfig","displayName","componentId","gray50","StyledList","ol","StyledSeparator","div","xs","StyledCrumb","li","gray45","_ref","active","_ref2","_ref3","gray15","semibold","_ref4"],"sources":["../../src/Breadcrumbs/Breadcrumbs.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\nimport type { BreadcrumbCrumbProps } from './Breadcrumbs.types'\n\nexport const StyledContainer = styled.nav`\n color: ${colors.gray50};\n display: flex;\n align-items: center;\n\n a,\n a:hover {\n display: inline-flex;\n text-decoration: none;\n }\n`\n\nexport const StyledList = styled.ol`\n display: flex;\n margin: 0;\n padding-left: 0;\n`\n\nexport const StyledSeparator = styled.div`\n align-items: center;\n display: inline-flex;\n justify-content: center;\n margin: 0px ${spacing.xs}px;\n`\n\nexport const StyledCrumb = styled.li<BreadcrumbCrumbProps>`\n ${getTypographyIntent('body')}\n\n align-items:center;\n color: ${colors.gray45};\n display: inline-flex;\n min-height: 24px;\n text-decoration: none;\n\n &:hover {\n cursor: ${({ active }) => (active ? 'default' : 'pointer')};\n text-decoration: ${({ active }) => (active ? 'none' : 'underline')};\n }\n\n > a {\n color: ${colors.gray45};\n ${({ active }) =>\n active &&\n css`\n color: ${colors.gray15};\n font-weight: ${typographyWeights.semibold};\n `}\n }\n\n ${({ active }) =>\n active &&\n css`\n color: ${colors.gray15};\n font-weight: ${typographyWeights.semibold};\n `}\n`\n"],"mappings":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AAM,CAACoB,MAAM,EACPrB,iBAAiB,CAACsB,QAAQ,CAC1C;AAAA,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.types.js","names":["BreadcrumbVariants"],"sources":["../../src/Breadcrumbs/Breadcrumbs.types.ts"],"sourcesContent":["import { Props } from '../_utils/types'\n\n/**\n * @since 11.6.0\n */\nexport enum BreadcrumbVariants {\n NAV = 'nav',\n LEGACY = 'legacy',\n}\n\nexport interface BreadcrumbProps extends Props {\n /**\n * @since 11.6.0\n */\n variant?: BreadcrumbVariants\n}\n\nexport interface BreadcrumbCrumbProps extends Props {\n /**\n * @since 10.19.0\n */\n active?: boolean\n /**\n * @since 11.6.0\n */\n isLast?: boolean\n /**\n * @since 11.6.0\n */\n variant?: BreadcrumbVariants\n}\n"],"mappings":"AAEA;AACA;AACA;AACA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA"}
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.types.js","names":["BreadcrumbVariants"],"sources":["../../src/Breadcrumbs/Breadcrumbs.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\n/**\n * @since 11.6.0\n */\nexport enum BreadcrumbVariants {\n NAV = 'nav',\n LEGACY = 'legacy',\n}\n\nexport interface BreadcrumbProps extends Props {\n /**\n * @since 11.6.0\n */\n variant?: BreadcrumbVariants\n}\n\nexport interface BreadcrumbCrumbProps extends Props {\n /**\n * @since 10.19.0\n */\n active?: boolean\n /**\n * @since 11.6.0\n */\n isLast?: boolean\n /**\n * @since 11.6.0\n */\n variant?: BreadcrumbVariants\n}\n"],"mappings":"AAEA;AACA;AACA;AACA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA"}
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["React","useEventListener","mergeRefs","StyledButton","StyledContent","StyledLabel","StyledLinkButton","StyledSpinner","ButtonContent","_ref","children","icon","iconRight","size","variant","createElement","Fragment","isValidElement","cloneElement","_defineProperty","Children","map","child","color","Button","forwardRef","_ref2","ref","_ref2$block","block","_ref2$disabled","disabled","_ref2$loading","loading","_ref2$size","_ref2$type","type","_ref2$variant","props","_objectWithoutProperties","_excluded","_extends","undefined","tabIndex","$block","$loading","$size","$variant","LinkButton","_ref3","_ref3$block","disabled_","href_","href","_ref3$size","_ref3$variant","_excluded2","innerRef","useRef","mimicButtonRole","e","key","indexOf","_innerRef$current","preventDefault","current","click","event","handler","scope","role","$disabled"],"sources":["../../src/Button/Button.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Button.js","names":["React","useEventListener","mergeRefs","StyledButton","StyledContent","StyledLabel","StyledLinkButton","StyledSpinner","ButtonContent","_ref","children","icon","iconRight","size","variant","createElement","Fragment","isValidElement","cloneElement","_defineProperty","Children","map","child","color","Button","forwardRef","_ref2","ref","_ref2$block","block","_ref2$disabled","disabled","_ref2$loading","loading","_ref2$size","_ref2$type","type","_ref2$variant","props","_objectWithoutProperties","_excluded","_extends","undefined","tabIndex","$block","$loading","$size","$variant","LinkButton","_ref3","_ref3$block","disabled_","href_","href","_ref3$size","_ref3$variant","_excluded2","innerRef","useRef","mimicButtonRole","e","key","indexOf","_innerRef$current","preventDefault","current","click","event","handler","scope","role","$disabled"],"sources":["../../src/Button/Button.tsx"],"sourcesContent":["import type { FunctionComponent, PropsWithChildren } from 'react'\nimport React from 'react'\nimport { useEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n StyledButton,\n StyledContent,\n StyledLabel,\n StyledLinkButton,\n StyledSpinner,\n} from './Button.styles'\nimport type { ButtonProps, LinkButtonProps } from './Button.types'\n\nconst ButtonContent: FunctionComponent<\n PropsWithChildren<\n Pick<ButtonProps, 'icon' | 'iconRight' | 'size' | 'variant'>\n >\n> = ({ children, icon, iconRight, size, variant }) => {\n return (\n <>\n <StyledContent>\n {React.isValidElement<{ ['data-icon-prop']: string }>(icon)\n ? React.cloneElement(icon, { ['data-icon-prop']: 'true' })\n : null}\n {React.Children.map(children, (child) => {\n return <StyledLabel>{child}</StyledLabel>\n })}\n {React.isValidElement<{ ['data-icon-prop']: string }>(iconRight)\n ? React.cloneElement(iconRight, { ['data-icon-prop']: 'true' })\n : null}\n </StyledContent>\n <StyledSpinner\n size={size === 'lg' ? 'md' : 'sm'}\n color={variant === 'primary' ? 'white' : 'gray15'}\n />\n </>\n )\n}\n\n/**\n\n We use buttons to link to other pages or to trigger an action.\n Buttons clearly define what happens when a user clicks it.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-button--demo)\n\n @see [Design Guidelines](https://design.procore.com/button)\n\n */\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function Button(\n {\n block = false,\n children,\n disabled = false,\n icon,\n iconRight,\n loading = false,\n size = 'md',\n type = 'button',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n return (\n <StyledButton\n aria-busy={loading || undefined}\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n tabIndex={0}\n {...props}\n $block={block}\n disabled={disabled || loading}\n $loading={loading}\n $size={size}\n $variant={variant}\n type={type}\n ref={ref}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledButton>\n )\n }\n)\n\nexport const LinkButton = React.forwardRef<HTMLAnchorElement, LinkButtonProps>(\n function LinkButton(\n {\n block = false,\n children,\n disabled: disabled_,\n href: href_,\n icon,\n iconRight,\n size = 'md',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n const innerRef = React.useRef<HTMLAnchorElement>(null)\n\n const mimicButtonRole = (e: React.KeyboardEvent<HTMLAnchorElement>) => {\n const { key } = e\n\n if (['Enter', 'Spacebar', ' '].indexOf(key) >= 0) {\n // Prevents the page to scroll when \"space\" is pressed\n e.preventDefault()\n innerRef.current?.click()\n }\n }\n\n useEventListener({\n event: 'keydown',\n handler: mimicButtonRole,\n scope: innerRef,\n })\n\n const disabled = disabled_ || !href_\n const href = disabled ? undefined : href_\n\n return (\n <StyledLinkButton\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n {...props}\n role=\"button\"\n aria-disabled={disabled}\n href={href}\n $disabled={disabled}\n $block={block}\n $size={size}\n $variant={variant}\n ref={mergeRefs(ref, innerRef)}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledLinkButton>\n )\n }\n)\n"],"mappings":";;;;;;;;;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,YAAY,EACZC,aAAa,EACbC,WAAW,EACXC,gBAAgB,EAChBC,aAAa,QACR,iBAAiB;AAGxB,IAAMC,aAIL,GAAG,SAJEA,aAILA,CAAAC,IAAA,EAAqD;EAAA,IAA/CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;EAC7C,oBACEd,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAgB,QAAA,qBACEhB,KAAA,CAAAe,aAAA,CAACX,aAAa,QACX,aAAAJ,KAAK,CAACiB,cAAc,CAAiCN,IAAI,CAAC,gBACvDX,KAAK,CAACkB,YAAY,CAACP,IAAI,EAAAQ,eAAA,KAAK,gBAAgB,EAAG,MAAM,CAAE,CAAC,GACxD,IAAI,EACPnB,KAAK,CAACoB,QAAQ,C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