@conveyorhq/arrow-ds 1.62.0 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/public/components/Avatar/Avatar.d.ts +2 -1
- package/public/components/Avatar/Avatar.js +8 -4
- package/public/components/DateRangePicker/CustomDateRangeInput.js +3 -2
- package/public/components/Drawer/Drawer.js +4 -2
- package/public/components/MarkdownEditor/MarkdownEditor.js +1 -2
- package/public/components/MarkdownEditor/MarkdownHelp.js +4 -7
- package/public/components/MenuRenderer/MenuRenderer.js +2 -2
- package/public/components/Modal/Modal.d.ts +8 -4
- package/public/components/Modal/Modal.js +23 -60
- package/public/components/Overlay/Overlay.js +2 -2
- package/public/components/Popover/Popover.js +4 -4
- package/public/components/SelectNew/hooks/useSelectLayout.js +2 -2
- package/public/components/Stack/Stack.js +1 -1
- package/public/components/Table/FilterDropdown.js +4 -4
- package/public/components/Toast/Toast.d.ts +3 -3
- package/public/components/Toast/Toast.js +6 -2
- package/public/components/Tooltip/Tooltip.d.ts +8 -4
- package/public/components/Tooltip/Tooltip.js +96 -97
- package/public/css/styles.css +2959 -4517
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/public/hooks/index.d.ts +1 -0
- package/public/hooks/index.js +3 -1
- package/public/hooks/useCopyToClipboard.d.ts +1 -0
- package/public/hooks/useCopyToClipboard.js +49 -0
- package/public/index.d.ts +1 -22
- package/public/index.js +2 -23
- package/public/storybook-components/ComponentHeading.js +1 -3
- package/public/types/index.d.ts +0 -16
- package/public/types/index.js +1 -20
- package/public/utilities/index.d.ts +1 -0
- package/public/utilities/index.js +3 -1
- package/public/utilities/mergeEventHandlers.d.ts +3 -0
- package/public/utilities/mergeEventHandlers.js +13 -0
- package/src/components/Accordion/Accordion.story.mdx +6 -7
- package/src/components/Avatar/Avatar.tsx +42 -39
- package/src/components/Banner/Banner.story.mdx +4 -12
- package/src/components/Card/Card.story.mdx +11 -36
- package/src/components/DateRangePicker/CustomDateRangeInput.tsx +25 -32
- package/src/components/DateRangePicker/index.css +0 -4
- package/src/components/Drawer/Drawer.story.mdx +68 -70
- package/src/components/Drawer/Drawer.tsx +9 -8
- package/src/components/Drawer/index.css +26 -1
- package/src/components/Frame/Frame.story.mdx +6 -1
- package/src/components/MarkdownEditor/MarkdownEditor.tsx +2 -3
- package/src/components/MarkdownEditor/MarkdownHelp.tsx +7 -10
- package/src/components/MarkdownEditor/index.css +5 -1
- package/src/components/MenuRenderer/MenuRenderer.tsx +1 -1
- package/src/components/Modal/Modal.story.mdx +135 -3
- package/src/components/Modal/Modal.tsx +69 -100
- package/src/components/Modal/index.css +2 -2
- package/src/components/Overlay/Overlay.tsx +2 -3
- package/src/components/Overlay/index.css +2 -1
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/Select/Select.story.mdx +9 -10
- package/src/components/Select/SelectPopover.tsx +1 -1
- package/src/components/SelectNew/hooks/useSelectLayout.ts +1 -1
- package/src/components/Stack/Stack.tsx +1 -1
- package/src/components/Stack/index.css +0 -416
- package/src/components/Table/FilterDropdown.tsx +1 -1
- package/src/components/Toast/Toast.story.mdx +1 -1
- package/src/components/Toast/Toast.tsx +14 -10
- package/src/components/Toast/index.css +2 -2
- package/src/components/Tooltip/Tooltip.story.mdx +270 -126
- package/src/components/Tooltip/Tooltip.tsx +197 -114
- package/src/components/Tooltip/index.css +18 -13
- package/src/css/components.css +0 -13
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useCopyToClipboard.ts +61 -0
- package/src/index.ts +1 -22
- package/src/storybook-components/ComponentHeading.tsx +1 -16
- package/src/types/index.ts +0 -28
- package/src/utilities/index.ts +1 -0
- package/src/utilities/mergeEventHandlers.ts +20 -0
- package/public/components/Absolute/Absolute.d.ts +0 -2
- package/public/components/Absolute/Absolute.js +0 -14
- package/public/components/Absolute/index.d.ts +0 -1
- package/public/components/Absolute/index.js +0 -5
- package/public/components/Appbar/Appbar.d.ts +0 -61
- package/public/components/Appbar/Appbar.js +0 -44
- package/public/components/Appbar/AppbarClaimProfileButton.d.ts +0 -2
- package/public/components/Appbar/AppbarClaimProfileButton.js +0 -10
- package/public/components/Appbar/AppbarDropdownIcon.d.ts +0 -1
- package/public/components/Appbar/AppbarDropdownIcon.js +0 -10
- package/public/components/Appbar/AppbarLogInButton.d.ts +0 -2
- package/public/components/Appbar/AppbarLogInButton.js +0 -25
- package/public/components/Appbar/AppbarLogo.d.ts +0 -2
- package/public/components/Appbar/AppbarLogo.js +0 -31
- package/public/components/Appbar/AppbarOrganization.d.ts +0 -17
- package/public/components/Appbar/AppbarOrganization.js +0 -35
- package/public/components/Appbar/AppbarProductMenu.d.ts +0 -13
- package/public/components/Appbar/AppbarProductMenu.js +0 -67
- package/public/components/Appbar/AppbarTabMarker.d.ts +0 -1
- package/public/components/Appbar/AppbarTabMarker.js +0 -11
- package/public/components/Appbar/AppbarTabs.d.ts +0 -10
- package/public/components/Appbar/AppbarTabs.js +0 -42
- package/public/components/Appbar/AppbarUser.d.ts +0 -27
- package/public/components/Appbar/AppbarUser.js +0 -76
- package/public/components/Appbar/config.d.ts +0 -7
- package/public/components/Appbar/config.js +0 -13
- package/public/components/Appbar/context.d.ts +0 -10
- package/public/components/Appbar/context.js +0 -16
- package/public/components/Appbar/index.d.ts +0 -1
- package/public/components/Appbar/index.js +0 -13
- package/public/components/AptibleLogo/AptibleLogo.d.ts +0 -7
- package/public/components/AptibleLogo/AptibleLogo.js +0 -25
- package/public/components/AptibleLogo/index.d.ts +0 -1
- package/public/components/AptibleLogo/index.js +0 -5
- package/public/components/ArrowButton/ArrowButton.d.ts +0 -9
- package/public/components/ArrowButton/ArrowButton.js +0 -22
- package/public/components/ArrowButton/index.d.ts +0 -1
- package/public/components/ArrowButton/index.js +0 -13
- package/public/components/ArrowLink/ArrowLink.d.ts +0 -9
- package/public/components/ArrowLink/ArrowLink.js +0 -21
- package/public/components/ArrowLink/index.d.ts +0 -1
- package/public/components/ArrowLink/index.js +0 -13
- package/public/components/Aside/Aside.d.ts +0 -14
- package/public/components/Aside/Aside.js +0 -28
- package/public/components/Aside/index.d.ts +0 -1
- package/public/components/Aside/index.js +0 -13
- package/public/components/Combobox/Combobox.d.ts +0 -2
- package/public/components/Combobox/Combobox.js +0 -75
- package/public/components/Combobox/ComboboxMulti.d.ts +0 -2
- package/public/components/Combobox/ComboboxMulti.js +0 -57
- package/public/components/Combobox/index.d.ts +0 -2
- package/public/components/Combobox/index.js +0 -14
- package/public/components/Combobox/ui.d.ts +0 -73
- package/public/components/Combobox/ui.js +0 -97
- package/public/components/Combobox/useSelect.d.ts +0 -60
- package/public/components/Combobox/useSelect.js +0 -239
- package/public/components/Fixed/Fixed.d.ts +0 -2
- package/public/components/Fixed/Fixed.js +0 -14
- package/public/components/Fixed/index.d.ts +0 -1
- package/public/components/Fixed/index.js +0 -5
- package/public/components/IntegrationLogo/IntegrationLogo.d.ts +0 -10
- package/public/components/IntegrationLogo/IntegrationLogo.js +0 -35
- package/public/components/IntegrationLogo/IntegrationLogoSvg.d.ts +0 -9
- package/public/components/IntegrationLogo/IntegrationLogoSvg.js +0 -56
- package/public/components/IntegrationLogo/index.d.ts +0 -1
- package/public/components/IntegrationLogo/index.js +0 -13
- package/public/components/IntegrationLogo/svg/addigy.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/addigy.js +0 -17
- package/public/components/IntegrationLogo/svg/aws.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/aws.js +0 -22
- package/public/components/IntegrationLogo/svg/bamboohr.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/bamboohr.js +0 -18
- package/public/components/IntegrationLogo/svg/bitbucket.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/bitbucket.js +0 -18
- package/public/components/IntegrationLogo/svg/conveyor.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/conveyor.js +0 -20
- package/public/components/IntegrationLogo/svg/default.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/default.js +0 -13
- package/public/components/IntegrationLogo/svg/deploy.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/deploy.js +0 -17
- package/public/components/IntegrationLogo/svg/docusign.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/docusign.js +0 -32
- package/public/components/IntegrationLogo/svg/events-api.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/events-api.js +0 -26
- package/public/components/IntegrationLogo/svg/gcp.d.ts +0 -3
- package/public/components/IntegrationLogo/svg/gcp.js +0 -15
- package/public/components/IntegrationLogo/svg/github.d.ts +0 -3
- package/public/components/IntegrationLogo/svg/github.js +0 -12
- package/public/components/IntegrationLogo/svg/gitlab.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/gitlab.js +0 -19
- package/public/components/IntegrationLogo/svg/gsuite.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/gsuite.js +0 -15
- package/public/components/IntegrationLogo/svg/index.d.ts +0 -23
- package/public/components/IntegrationLogo/svg/index.js +0 -58
- package/public/components/IntegrationLogo/svg/jamf.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/jamf.js +0 -20
- package/public/components/IntegrationLogo/svg/jira.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/jira.js +0 -21
- package/public/components/IntegrationLogo/svg/jumpcloud.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/jumpcloud.js +0 -28
- package/public/components/IntegrationLogo/svg/okta.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/okta.js +0 -16
- package/public/components/IntegrationLogo/svg/onelogin.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/onelogin.js +0 -18
- package/public/components/IntegrationLogo/svg/salesforce.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/salesforce.js +0 -20
- package/public/components/IntegrationLogo/svg/servicenow.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/servicenow.js +0 -14
- package/public/components/IntegrationLogo/svg/slack.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/slack.js +0 -19
- package/public/components/IntegrationLogo/svg/wrapper.d.ts +0 -11
- package/public/components/IntegrationLogo/svg/wrapper.js +0 -13
- package/public/components/IntegrationLogo/svg/zoom.d.ts +0 -2
- package/public/components/IntegrationLogo/svg/zoom.js +0 -23
- package/public/components/Meta/Meta.d.ts +0 -6
- package/public/components/Meta/Meta.js +0 -21
- package/public/components/Meta/Meta.story.d.ts +0 -1
- package/public/components/Meta/Meta.story.js +0 -39
- package/public/components/Meta/index.d.ts +0 -1
- package/public/components/Meta/index.js +0 -5
- package/public/components/Pagination/Pagination.d.ts +0 -9
- package/public/components/Pagination/Pagination.js +0 -36
- package/public/components/Pagination/index.d.ts +0 -1
- package/public/components/Pagination/index.js +0 -13
- package/public/components/ProductIcon/ProductIcon.d.ts +0 -7
- package/public/components/ProductIcon/ProductIcon.js +0 -31
- package/public/components/ProductIcon/ProductIconComply.d.ts +0 -2
- package/public/components/ProductIcon/ProductIconComply.js +0 -11
- package/public/components/ProductIcon/ProductIconDeploy.d.ts +0 -2
- package/public/components/ProductIcon/ProductIconDeploy.js +0 -11
- package/public/components/ProductIcon/ProductIconExchange.d.ts +0 -2
- package/public/components/ProductIcon/ProductIconExchange.js +0 -11
- package/public/components/ProductIcon/ProductIconTrustCenter.d.ts +0 -2
- package/public/components/ProductIcon/ProductIconTrustCenter.js +0 -11
- package/public/components/ProductIcon/index.d.ts +0 -1
- package/public/components/ProductIcon/index.js +0 -5
- package/public/components/PropertyDiff/PropertyDiff.d.ts +0 -7
- package/public/components/PropertyDiff/PropertyDiff.js +0 -22
- package/public/components/PropertyDiff/index.d.ts +0 -1
- package/public/components/PropertyDiff/index.js +0 -13
- package/public/components/Relative/Relative.d.ts +0 -2
- package/public/components/Relative/Relative.js +0 -14
- package/public/components/Relative/index.d.ts +0 -1
- package/public/components/Relative/index.js +0 -5
- package/public/components/SearchFilter/SearchFilter.d.ts +0 -17
- package/public/components/SearchFilter/SearchFilter.js +0 -103
- package/public/components/SearchFilter/index.d.ts +0 -1
- package/public/components/SearchFilter/index.js +0 -13
- package/public/components/StatusLabel/StatusLabel.d.ts +0 -16
- package/public/components/StatusLabel/StatusLabel.js +0 -40
- package/public/components/StatusLabel/index.d.ts +0 -1
- package/public/components/StatusLabel/index.js +0 -13
- package/public/components/StatusPanel/StatusPanel.d.ts +0 -11
- package/public/components/StatusPanel/StatusPanel.js +0 -24
- package/public/components/StatusPanel/index.d.ts +0 -1
- package/public/components/StatusPanel/index.js +0 -13
- package/public/components/Sticky/Sticky.d.ts +0 -2
- package/public/components/Sticky/Sticky.js +0 -14
- package/public/components/Sticky/index.d.ts +0 -1
- package/public/components/Sticky/index.js +0 -5
- package/public/components/TopBar/TopBar.d.ts +0 -14
- package/public/components/TopBar/TopBar.js +0 -24
- package/public/components/TopBar/TopBarBreadcrumbs.d.ts +0 -10
- package/public/components/TopBar/TopBarBreadcrumbs.js +0 -34
- package/public/components/TopBar/TopBarSubNav.d.ts +0 -2
- package/public/components/TopBar/TopBarSubNav.js +0 -16
- package/public/components/TopBar/TopBarSubNavItem.d.ts +0 -5
- package/public/components/TopBar/TopBarSubNavItem.js +0 -17
- package/public/components/TopBar/index.d.ts +0 -1
- package/public/components/TopBar/index.js +0 -13
- package/public/components/VendorLogo/VendorLogo.d.ts +0 -21
- package/public/components/VendorLogo/VendorLogo.js +0 -57
- package/public/components/VendorLogo/index.d.ts +0 -1
- package/public/components/VendorLogo/index.js +0 -13
- package/src/components/Absolute/Absolute.story.mdx +0 -34
- package/src/components/Absolute/Absolute.tsx +0 -12
- package/src/components/Absolute/index.ts +0 -1
- package/src/components/Appbar/Appbar.story.mdx +0 -207
- package/src/components/Appbar/Appbar.tsx +0 -124
- package/src/components/Appbar/AppbarClaimProfileButton.tsx +0 -13
- package/src/components/Appbar/AppbarDropdownIcon.tsx +0 -6
- package/src/components/Appbar/AppbarLogInButton.tsx +0 -27
- package/src/components/Appbar/AppbarLogo.tsx +0 -43
- package/src/components/Appbar/AppbarOrganization.tsx +0 -96
- package/src/components/Appbar/AppbarProductMenu.tsx +0 -125
- package/src/components/Appbar/AppbarTabMarker.tsx +0 -5
- package/src/components/Appbar/AppbarTabs.tsx +0 -46
- package/src/components/Appbar/AppbarUser.tsx +0 -179
- package/src/components/Appbar/config.ts +0 -12
- package/src/components/Appbar/context.ts +0 -20
- package/src/components/Appbar/index.css +0 -294
- package/src/components/Appbar/index.ts +0 -1
- package/src/components/AptibleLogo/AptibleLogo.story.mdx +0 -42
- package/src/components/AptibleLogo/AptibleLogo.tsx +0 -45
- package/src/components/AptibleLogo/index.ts +0 -1
- package/src/components/ArrowButton/ArrowButton.story.mdx +0 -121
- package/src/components/ArrowButton/ArrowButton.tsx +0 -57
- package/src/components/ArrowButton/index.css +0 -42
- package/src/components/ArrowButton/index.ts +0 -1
- package/src/components/ArrowLink/ArrowLink.story.mdx +0 -75
- package/src/components/ArrowLink/ArrowLink.tsx +0 -45
- package/src/components/ArrowLink/index.ts +0 -1
- package/src/components/Aside/Aside.story.mdx +0 -72
- package/src/components/Aside/Aside.tsx +0 -68
- package/src/components/Aside/index.css +0 -11
- package/src/components/Aside/index.ts +0 -1
- package/src/components/Combobox/Combobox.story.mdx +0 -205
- package/src/components/Combobox/Combobox.tsx +0 -165
- package/src/components/Combobox/ComboboxMulti.tsx +0 -169
- package/src/components/Combobox/TODO.md +0 -33
- package/src/components/Combobox/index.css +0 -97
- package/src/components/Combobox/index.ts +0 -2
- package/src/components/Combobox/ui.tsx +0 -211
- package/src/components/Combobox/useSelect.ts +0 -347
- package/src/components/Fixed/Fixed.story.mdx +0 -34
- package/src/components/Fixed/Fixed.tsx +0 -12
- package/src/components/Fixed/index.ts +0 -1
- package/src/components/IntegrationLogo/IntegrationLogo.story.mdx +0 -167
- package/src/components/IntegrationLogo/IntegrationLogo.tsx +0 -59
- package/src/components/IntegrationLogo/IntegrationLogoSvg.tsx +0 -85
- package/src/components/IntegrationLogo/index.ts +0 -1
- package/src/components/IntegrationLogo/svg/addigy.tsx +0 -23
- package/src/components/IntegrationLogo/svg/aws.tsx +0 -52
- package/src/components/IntegrationLogo/svg/bamboohr.tsx +0 -34
- package/src/components/IntegrationLogo/svg/bitbucket.tsx +0 -37
- package/src/components/IntegrationLogo/svg/conveyor.tsx +0 -41
- package/src/components/IntegrationLogo/svg/default.tsx +0 -11
- package/src/components/IntegrationLogo/svg/deploy.tsx +0 -29
- package/src/components/IntegrationLogo/svg/docusign.tsx +0 -102
- package/src/components/IntegrationLogo/svg/events-api.tsx +0 -75
- package/src/components/IntegrationLogo/svg/gcp.tsx +0 -26
- package/src/components/IntegrationLogo/svg/github.tsx +0 -14
- package/src/components/IntegrationLogo/svg/gitlab.tsx +0 -40
- package/src/components/IntegrationLogo/svg/gsuite.tsx +0 -24
- package/src/components/IntegrationLogo/svg/index.ts +0 -23
- package/src/components/IntegrationLogo/svg/jamf.tsx +0 -36
- package/src/components/IntegrationLogo/svg/jira.tsx +0 -44
- package/src/components/IntegrationLogo/svg/jumpcloud.tsx +0 -86
- package/src/components/IntegrationLogo/svg/okta.tsx +0 -28
- package/src/components/IntegrationLogo/svg/onelogin.tsx +0 -34
- package/src/components/IntegrationLogo/svg/salesforce.tsx +0 -39
- package/src/components/IntegrationLogo/svg/servicenow.tsx +0 -18
- package/src/components/IntegrationLogo/svg/slack.tsx +0 -40
- package/src/components/IntegrationLogo/svg/wrapper.tsx +0 -35
- package/src/components/IntegrationLogo/svg/zoom.tsx +0 -51
- package/src/components/Meta/Meta.md +0 -14
- package/src/components/Meta/Meta.story.tsx +0 -24
- package/src/components/Meta/Meta.tsx +0 -29
- package/src/components/Meta/index.ts +0 -1
- package/src/components/Pagination/Pagination.story.mdx +0 -48
- package/src/components/Pagination/Pagination.tsx +0 -81
- package/src/components/Pagination/index.css +0 -41
- package/src/components/Pagination/index.ts +0 -1
- package/src/components/ProductIcon/ProductIcon.story.mdx +0 -50
- package/src/components/ProductIcon/ProductIcon.tsx +0 -48
- package/src/components/ProductIcon/ProductIconComply.tsx +0 -17
- package/src/components/ProductIcon/ProductIconDeploy.tsx +0 -17
- package/src/components/ProductIcon/ProductIconExchange.tsx +0 -17
- package/src/components/ProductIcon/ProductIconTrustCenter.tsx +0 -17
- package/src/components/ProductIcon/index.css +0 -13
- package/src/components/ProductIcon/index.ts +0 -1
- package/src/components/PropertyDiff/PropertDiff.story.mdx +0 -52
- package/src/components/PropertyDiff/PropertyDiff.tsx +0 -51
- package/src/components/PropertyDiff/index.css +0 -33
- package/src/components/PropertyDiff/index.ts +0 -1
- package/src/components/Relative/Relative.story.mdx +0 -34
- package/src/components/Relative/Relative.tsx +0 -12
- package/src/components/Relative/index.ts +0 -1
- package/src/components/SearchFilter/SearchFilter.story.mdx +0 -201
- package/src/components/SearchFilter/SearchFilter.tsx +0 -190
- package/src/components/SearchFilter/index.css +0 -83
- package/src/components/SearchFilter/index.ts +0 -1
- package/src/components/StatusLabel/StatusLabel.story.mdx +0 -325
- package/src/components/StatusLabel/StatusLabel.tsx +0 -121
- package/src/components/StatusLabel/index.css +0 -26
- package/src/components/StatusLabel/index.ts +0 -1
- package/src/components/StatusPanel/StatusPanel.story.mdx +0 -118
- package/src/components/StatusPanel/StatusPanel.tsx +0 -54
- package/src/components/StatusPanel/index.css +0 -52
- package/src/components/StatusPanel/index.ts +0 -1
- package/src/components/Sticky/Sticky.story.mdx +0 -34
- package/src/components/Sticky/Sticky.tsx +0 -12
- package/src/components/Sticky/index.ts +0 -1
- package/src/components/TopBar/TopBar.story.mdx +0 -157
- package/src/components/TopBar/TopBar.tsx +0 -43
- package/src/components/TopBar/TopBarBreadcrumbs.tsx +0 -82
- package/src/components/TopBar/TopBarSubNav.tsx +0 -22
- package/src/components/TopBar/TopBarSubNavItem.tsx +0 -24
- package/src/components/TopBar/index.css +0 -93
- package/src/components/TopBar/index.ts +0 -1
- package/src/components/VendorLogo/VendorLogo.story.mdx +0 -215
- package/src/components/VendorLogo/VendorLogo.tsx +0 -123
- package/src/components/VendorLogo/index.css +0 -46
- package/src/components/VendorLogo/index.ts +0 -1
- package/src/docs/brand-components/BrandButton.story.mdx +0 -106
- package/src/docs/brand-components/BrandCheckbox.story.mdx +0 -66
- package/src/docs/brand-components/BrandFormGroup.story.mdx +0 -79
- package/src/docs/brand-components/BrandRadio.story.mdx +0 -48
- package/src/docs/brand-components/BrandTextArea.story.mdx +0 -44
- package/src/recipes/TopBarNavigation.story.mdx +0 -114
- package/src/templates/Index.story.mdx +0 -177
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@conveyorhq/arrow-ds",
|
|
3
3
|
"author": "Conveyor",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.0.0-beta.10",
|
|
6
6
|
"description": "Arrow Design System",
|
|
7
7
|
"repository": "https://github.com/conveyor/arrow-ds",
|
|
8
8
|
"publishConfig": {
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"react-focus-lock": "^2.2.1",
|
|
42
42
|
"react-markdown": "^4.3.1",
|
|
43
43
|
"react-merge-refs": "^1.1.0",
|
|
44
|
-
"react-
|
|
44
|
+
"react-overlays": "^5.1.1",
|
|
45
|
+
"react-popper": "^2.2.5",
|
|
45
46
|
"react-remove-scroll": "^2.2.0",
|
|
46
47
|
"react-select": "^4.0.2",
|
|
47
48
|
"react-spring": "^8.0.27",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BoxProps } from "../Box";
|
|
2
3
|
import { SvgProps } from "../Svg";
|
|
3
4
|
import { AvatarSize, AVATAR_TYPE } from "./types";
|
|
@@ -35,7 +36,7 @@ interface GravatarOrInitialsProps extends InitialsProps {
|
|
|
35
36
|
}
|
|
36
37
|
export declare const SystemAvatarConveyor: () => JSX.Element;
|
|
37
38
|
export declare const SystemAvatarAptible: () => JSX.Element;
|
|
38
|
-
export declare const AvatarWrapper:
|
|
39
|
+
export declare const AvatarWrapper: React.ForwardRefExoticComponent<Pick<SharedAvatarProps, "as" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "square" | "alt" | "size" | "bordered"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
40
|
export declare const Avatar: {
|
|
40
41
|
({ size: sizeProp, square, bordered, className, style, alt, ...rest }: AvatarProps): JSX.Element;
|
|
41
42
|
Group: ({ children, spacing, size, className, ...rest }: import("./AvatarGroup").AvatarGroupProps) => JSX.Element;
|
|
@@ -132,15 +132,19 @@ const NonUserAvatarComponent = (type) => {
|
|
|
132
132
|
system: react_1.default.createElement(SystemAvatar, null),
|
|
133
133
|
}[type];
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
exports.AvatarWrapper = AvatarWrapper;
|
|
135
|
+
exports.AvatarWrapper = react_1.default.forwardRef(({ children, size, square, bordered, className, ...rest }, forwardedRef) => (react_1.default.createElement(Box_1.Box, Object.assign({ ref: forwardedRef, className: classnames_1.default(cn(), cn({ m: size }), square && cn({ m: "square" }), bordered && cn({ m: "bordered" }), className) }, rest), children)));
|
|
137
136
|
const Avatar = ({ size: sizeProp = "medium", square, bordered, className, style, alt, ...rest }) => {
|
|
138
137
|
const avatarContext = react_1.useContext(context_1.AvatarContext);
|
|
139
138
|
const size = avatarContext ? avatarContext.size : sizeProp;
|
|
140
139
|
if (rest.type === types_1.AVATAR_TYPE.USER && (rest.email || rest.imgSrc)) {
|
|
141
140
|
const { type, email, imgSrc, name, firstInitial, lastInitial, enableTooltip = false, ...userRest } = rest;
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
if (enableTooltip && (name || email)) {
|
|
142
|
+
return (react_1.default.createElement(Tooltip_1.Tooltip, { placement: "top", content: name || email },
|
|
143
|
+
react_1.default.createElement(exports.AvatarWrapper, Object.assign({ size: size, square: square, bordered: bordered, className: className, style: style, title: alt }, userRest),
|
|
144
|
+
react_1.default.createElement(UserAvatar, { email: email, imgSrc: imgSrc, name: name, firstInitial: firstInitial, lastInitial: lastInitial, size: size, alt: alt }))));
|
|
145
|
+
}
|
|
146
|
+
return (react_1.default.createElement(exports.AvatarWrapper, Object.assign({ size: size, square: square, bordered: bordered, className: className, style: style, title: alt }, userRest),
|
|
147
|
+
react_1.default.createElement(UserAvatar, { email: email, imgSrc: imgSrc, name: name, firstInitial: firstInitial, lastInitial: lastInitial, size: size, alt: alt })));
|
|
144
148
|
}
|
|
145
149
|
const { type, ...nonUserRest } = rest;
|
|
146
150
|
if (type === types_1.AVATAR_TYPE.USER) {
|
|
@@ -32,7 +32,8 @@ const Tooltip_1 = require("../Tooltip");
|
|
|
32
32
|
const cn = bem_1.bemHOF("DateRangePicker");
|
|
33
33
|
const DATE_INPUT_PLACEHOLDER = "--/--/----";
|
|
34
34
|
exports.CustomDateRangeInput = react_1.forwardRef(({ value, setValue, error, setError, ariaLabel, onFocus }, ref) => {
|
|
35
|
-
return (react_1.default.createElement(Tooltip_1.Tooltip, { placement: "top",
|
|
35
|
+
return (react_1.default.createElement(Tooltip_1.Tooltip, { placement: "top", content: error },
|
|
36
|
+
react_1.default.createElement(Box_1.Box, null,
|
|
36
37
|
react_1.default.createElement(Input_1.Input, { ref: ref, "aria-label": ariaLabel, variant: error ? types_1.STATUS_VARIANT.WARNING : undefined, placeholder: DATE_INPUT_PLACEHOLDER, className: cn({ e: "date-input" }), icon: Icon_1.ICON_TYPE.CALENDAR, value: value, onChange: (e) => setValue(e.currentTarget.value), onFocus: onFocus, onBlur: () => {
|
|
37
38
|
const parsedDate = utilities_1.parseDate(value);
|
|
38
39
|
if (!parsedDate) {
|
|
@@ -44,5 +45,5 @@ exports.CustomDateRangeInput = react_1.forwardRef(({ value, setValue, error, set
|
|
|
44
45
|
}
|
|
45
46
|
setError("");
|
|
46
47
|
setValue(date_fns_1.format(parsedDate, utilities_1.DATE_FORMAT));
|
|
47
|
-
} }))
|
|
48
|
+
} }))));
|
|
48
49
|
});
|
|
@@ -30,7 +30,6 @@ const d3_ease_1 = require("d3-ease");
|
|
|
30
30
|
const bem_1 = require("../../utilities/bem");
|
|
31
31
|
const drawer_1 = require("../../contexts/drawer");
|
|
32
32
|
const Box_1 = require("../Box");
|
|
33
|
-
const TopBar_1 = require("../TopBar");
|
|
34
33
|
const CloseButton_1 = require("../CloseButton");
|
|
35
34
|
const Flex_1 = require("../Flex");
|
|
36
35
|
const cn = bem_1.bemHOF("Drawer");
|
|
@@ -95,7 +94,10 @@ exports.WithDrawer = WithDrawer;
|
|
|
95
94
|
const Drawer = ({ children, headingSlot, footerSlot, className, drawerSide, ...rest }) => {
|
|
96
95
|
const { onClose } = react_1.useContext(drawer_1.DrawerContext);
|
|
97
96
|
return (react_1.default.createElement(Flex_1.Flex, Object.assign({ className: classnames_1.default(cn({ e: "innerWrapper" }), className) }, rest),
|
|
98
|
-
react_1.default.createElement(
|
|
97
|
+
react_1.default.createElement(Flex_1.Flex, { className: cn({ e: "topbar" }) },
|
|
98
|
+
react_1.default.createElement(Flex_1.Flex, { className: cn({ e: "topbar-left" }) }, headingSlot),
|
|
99
|
+
react_1.default.createElement(Flex_1.Flex, { className: cn({ e: "topbar-right" }) },
|
|
100
|
+
react_1.default.createElement(CloseButton_1.CloseButton, { className: cn({ e: "topbar-close" }), onClick: onClose }))),
|
|
99
101
|
react_1.default.createElement(Box_1.Box, { className: cn({ e: "drawerContent" }) }, children),
|
|
100
102
|
!!footerSlot && react_1.default.createElement(Box_1.Box, { className: cn({ e: "footer" }) }, footerSlot)));
|
|
101
103
|
};
|
|
@@ -14,7 +14,6 @@ const hooks_1 = require("../../hooks");
|
|
|
14
14
|
const types_1 = require("../../types");
|
|
15
15
|
const Box_1 = require("../Box");
|
|
16
16
|
const Flex_1 = require("../Flex");
|
|
17
|
-
const Fixed_1 = require("../Fixed");
|
|
18
17
|
const Link_1 = require("../Link");
|
|
19
18
|
const Markdown_1 = require("../Markdown");
|
|
20
19
|
const Portal_1 = require("../Portal");
|
|
@@ -35,7 +34,7 @@ const MarkdownEditor = (props) => {
|
|
|
35
34
|
return isOpen ? (react_1.default.createElement(Portal_1.Portal, null,
|
|
36
35
|
react_1.default.createElement(react_focus_lock_1.default, { returnFocus: true },
|
|
37
36
|
react_1.default.createElement(react_remove_scroll_1.RemoveScroll, null,
|
|
38
|
-
react_1.default.createElement(
|
|
37
|
+
react_1.default.createElement(Flex_1.Flex, { className: classnames_1.default(bem_1.bem(cn), showBackdrop && "bg-screen") },
|
|
39
38
|
react_1.default.createElement(Flex_1.Flex, { className: bem_1.bem(cn, { e: "popover" }) },
|
|
40
39
|
react_1.default.createElement(Box_1.Box, { className: "w-1/2" },
|
|
41
40
|
react_1.default.createElement(react_codemirror2_1.Controlled, { value: value, options: options, onBeforeChange: onBeforeChange })),
|
|
@@ -7,20 +7,17 @@ exports.MarkdownHelp = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const bem_1 = require("../../utilities/bem");
|
|
9
9
|
const Box_1 = require("../Box");
|
|
10
|
-
const Fixed_1 = require("../Fixed");
|
|
11
10
|
const Heading_1 = require("../Heading");
|
|
12
11
|
const Paragraph_1 = require("../Paragraph");
|
|
13
|
-
const Relative_1 = require("../Relative");
|
|
14
|
-
const Absolute_1 = require("../Absolute");
|
|
15
12
|
const CloseButton_1 = require("../CloseButton");
|
|
16
13
|
const cn = "MarkdownHelp";
|
|
17
14
|
const CodeExamples = ({ heading, headingLevel = 3, children, }) => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
18
15
|
headingLevel === 3 ? (react_1.default.createElement(Heading_1.Heading.H3, { className: "text-gray-400" }, heading)) : (react_1.default.createElement(Heading_1.Heading.H4, { className: "text-gray-400" }, heading)),
|
|
19
16
|
react_1.default.createElement(Box_1.Box, { as: "pre", className: bem_1.bem(cn, { e: "preformattedText" }) }, react_1.default.Children.map(children, (child) => (react_1.default.createElement(Box_1.Box, { key: child }, child))))));
|
|
20
17
|
const MarkdownHelp = ({ isOpen, onClose, }) => {
|
|
21
|
-
return isOpen ? (react_1.default.createElement(
|
|
22
|
-
react_1.default.createElement(
|
|
23
|
-
react_1.default.createElement(
|
|
18
|
+
return isOpen ? (react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn) },
|
|
19
|
+
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "panel" }) },
|
|
20
|
+
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "header" }) },
|
|
24
21
|
react_1.default.createElement(CloseButton_1.CloseButton, { className: bem_1.bem(cn, { e: "closeButton" }), onClick: onClose })),
|
|
25
22
|
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "scrollBox" }) },
|
|
26
23
|
react_1.default.createElement(Heading_1.Heading.H2, { className: "text-gray-400" }, "Markdown help"),
|
|
@@ -65,6 +62,6 @@ const MarkdownHelp = ({ isOpen, onClose, }) => {
|
|
|
65
62
|
"![alt text][image]",
|
|
66
63
|
"[image]: https://www.conveyorhq.com/image.jpg",
|
|
67
64
|
]))),
|
|
68
|
-
react_1.default.createElement(
|
|
65
|
+
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "cover" }), onClick: onClose }))) : null;
|
|
69
66
|
};
|
|
70
67
|
exports.MarkdownHelp = MarkdownHelp;
|
|
@@ -26,7 +26,7 @@ exports.MenuRenderer = void 0;
|
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const auto_id_1 = require("@reach/auto-id");
|
|
28
28
|
const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
29
|
-
const
|
|
29
|
+
const react_popper_1 = require("react-popper");
|
|
30
30
|
const react_spring_1 = require("react-spring");
|
|
31
31
|
const d3_ease_1 = require("d3-ease");
|
|
32
32
|
const hooks_1 = require("../../hooks");
|
|
@@ -58,7 +58,7 @@ const MenuRenderer = ({ children, className, placement = "bottom-start", positio
|
|
|
58
58
|
const [minWidth, setMinWidth] = react_1.useState(0);
|
|
59
59
|
const [referenceElement, setReferenceElement] = react_1.useState(null);
|
|
60
60
|
const [popperElement, setPopperElement] = react_1.useState(null);
|
|
61
|
-
const { styles, attributes, update } =
|
|
61
|
+
const { styles, attributes, update } = react_popper_1.usePopper(referenceElement, popperElement, {
|
|
62
62
|
placement,
|
|
63
63
|
modifiers: [...defaultPopperModifiers, ...popperModifiers],
|
|
64
64
|
strategy: position,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ModalProps as RoModalProps } from "react-overlays/Modal";
|
|
1
3
|
import { BoxProps } from "../Box";
|
|
2
4
|
import { CloseButtonProps } from "../CloseButton";
|
|
3
5
|
import { StackProps } from "../Stack";
|
|
@@ -6,18 +8,19 @@ export declare enum MODAL_SIZE {
|
|
|
6
8
|
LARGE = "large",
|
|
7
9
|
FULL = "full"
|
|
8
10
|
}
|
|
9
|
-
export interface ModalProps extends
|
|
11
|
+
export interface ModalProps extends RoModalProps {
|
|
12
|
+
children?: React.ReactElement;
|
|
10
13
|
title?: string;
|
|
11
14
|
secondaryTitle?: string;
|
|
12
|
-
description?: string;
|
|
13
15
|
isOpen?: boolean;
|
|
14
16
|
onClose?: () => void;
|
|
15
17
|
autoFocus?: boolean;
|
|
16
|
-
|
|
18
|
+
enableOutsideClick?: boolean;
|
|
17
19
|
disableEscClose?: boolean;
|
|
18
20
|
hideCloseButton?: boolean;
|
|
19
21
|
size?: MODAL_SIZE;
|
|
20
22
|
center?: boolean;
|
|
23
|
+
disableBackdrop?: boolean;
|
|
21
24
|
noHeader?: boolean;
|
|
22
25
|
}
|
|
23
26
|
export interface ModalBodyProps extends BoxProps {
|
|
@@ -36,7 +39,8 @@ export declare const ModalFooter: (props: BoxProps) => JSX.Element;
|
|
|
36
39
|
export declare const ModalFooterMultiStep: ({ steps, currentStep, leftButtonLabel, rightButtonLabel, children, className, ...rest }: ModalFooterMultiStepProps) => JSX.Element;
|
|
37
40
|
export declare const ModalCloseButton: ({ className, ...rest }: CloseButtonProps) => JSX.Element;
|
|
38
41
|
export declare const Modal: {
|
|
39
|
-
(props: ModalProps): JSX.Element
|
|
42
|
+
(props: ModalProps): JSX.Element;
|
|
43
|
+
Root: any;
|
|
40
44
|
Tabs: (props: StackProps) => JSX.Element;
|
|
41
45
|
Header: (props: BoxProps) => JSX.Element;
|
|
42
46
|
Body: (props: ModalBodyProps) => JSX.Element;
|
|
@@ -1,43 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
4
|
};
|
|
24
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
6
|
exports.Modal = exports.ModalCloseButton = exports.ModalFooterMultiStep = exports.ModalFooter = exports.ModalTabs = exports.ModalBody = exports.ModalHeader = exports.MODAL_SIZE = void 0;
|
|
26
|
-
const react_1 =
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
27
8
|
const classnames_1 = __importDefault(require("classnames"));
|
|
28
|
-
const
|
|
29
|
-
const react_remove_scroll_1 = require("react-remove-scroll");
|
|
9
|
+
const Modal_1 = __importDefault(require("react-overlays/Modal"));
|
|
30
10
|
const Box_1 = require("../Box");
|
|
31
11
|
const Flex_1 = require("../Flex");
|
|
32
|
-
const Portal_1 = require("../Portal");
|
|
33
|
-
const Description_1 = require("../Description");
|
|
34
12
|
const CloseButton_1 = require("../CloseButton");
|
|
35
13
|
const Stack_1 = require("../Stack");
|
|
36
|
-
const types_1 = require("../../types");
|
|
37
|
-
const hooks_1 = require("../../hooks");
|
|
38
14
|
const bem_1 = require("../../utilities/bem");
|
|
39
15
|
const Tab_1 = require("../Tab");
|
|
40
16
|
const Heading_1 = require("../Heading");
|
|
17
|
+
const Overlay_1 = require("../Overlay");
|
|
41
18
|
const context_1 = require("./context");
|
|
42
19
|
const cn = "Modal";
|
|
43
20
|
var MODAL_SIZE;
|
|
@@ -91,43 +68,29 @@ const ModalCloseButton = ({ className, ...rest }) => {
|
|
|
91
68
|
};
|
|
92
69
|
exports.ModalCloseButton = ModalCloseButton;
|
|
93
70
|
const Modal = (props) => {
|
|
94
|
-
const { title, secondaryTitle,
|
|
95
|
-
const modalElement = react_1.useRef(null);
|
|
71
|
+
const { title, secondaryTitle, children, isOpen, onClose, autoFocus = true, enableOutsideClick = false, disableEscClose = false, hideCloseButton = false, size = MODAL_SIZE.DEFAULT, center = false, disableBackdrop = false, noHeader = false, className, style, ...rest } = props;
|
|
96
72
|
const showHeader = title || secondaryTitle || !hideCloseButton;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(`${cn}Container`) },
|
|
116
|
-
react_1.default.createElement(Box_1.Box, Object.assign({ ref: modalElement, className: classnames_1.default([
|
|
117
|
-
bem_1.bem(cn),
|
|
118
|
-
bem_1.bem(cn, { m: size }),
|
|
119
|
-
center && bem_1.bem(cn, { m: "center" }),
|
|
120
|
-
className,
|
|
121
|
-
]) }, rest),
|
|
122
|
-
!noHeader && showHeader && (react_1.default.createElement(exports.ModalHeader, null,
|
|
123
|
-
title && react_1.default.createElement(Heading_1.Heading.H2, null, title),
|
|
124
|
-
react_1.default.createElement(Stack_1.Stack, { className: "flex-shrink-0", spacing: 5 },
|
|
125
|
-
secondaryTitle && (react_1.default.createElement(Heading_1.Heading.H5, { className: "text-gray-600" }, secondaryTitle)),
|
|
126
|
-
!hideCloseButton && react_1.default.createElement(exports.ModalCloseButton, null)))),
|
|
127
|
-
description && (react_1.default.createElement(Description_1.Description, { className: bem_1.bem(cn, { e: "description" }) }, description)),
|
|
128
|
-
children))))))) : null;
|
|
73
|
+
return (react_1.default.createElement(context_1.ModalContext.Provider, { value: { onClose } },
|
|
74
|
+
react_1.default.createElement(Modal_1.default, Object.assign({ className: classnames_1.default([
|
|
75
|
+
bem_1.bem(`${cn}Container`),
|
|
76
|
+
enableOutsideClick && "pointer-events-none",
|
|
77
|
+
]), show: isOpen, onHide: onClose, autoFocus: autoFocus, keyboard: !disableEscClose, renderBackdrop: disableBackdrop ? undefined : (p) => react_1.default.createElement(Overlay_1.Overlay, Object.assign({}, p)) }, rest),
|
|
78
|
+
react_1.default.createElement(Box_1.Box, { className: classnames_1.default([
|
|
79
|
+
bem_1.bem(cn),
|
|
80
|
+
bem_1.bem(cn, { m: size }),
|
|
81
|
+
center && bem_1.bem(cn, { m: "center" }),
|
|
82
|
+
enableOutsideClick && "pointer-events-auto",
|
|
83
|
+
className,
|
|
84
|
+
]), style: style },
|
|
85
|
+
!noHeader && showHeader && (react_1.default.createElement(exports.ModalHeader, null,
|
|
86
|
+
title && react_1.default.createElement(Heading_1.Heading.H2, null, title),
|
|
87
|
+
react_1.default.createElement(Stack_1.Stack, { className: "flex-shrink-0", spacing: 5 },
|
|
88
|
+
secondaryTitle && (react_1.default.createElement(Heading_1.Heading.H5, { className: "text-gray-600" }, secondaryTitle)),
|
|
89
|
+
!hideCloseButton && react_1.default.createElement(exports.ModalCloseButton, null)))),
|
|
90
|
+
children))));
|
|
129
91
|
};
|
|
130
92
|
exports.Modal = Modal;
|
|
93
|
+
exports.Modal.Root = exports.Modal;
|
|
131
94
|
exports.Modal.Tabs = exports.ModalTabs;
|
|
132
95
|
exports.Modal.Header = exports.ModalHeader;
|
|
133
96
|
exports.Modal.Body = exports.ModalBody;
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Overlay = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
const
|
|
9
|
+
const Box_1 = require("../Box");
|
|
10
10
|
const bem_1 = require("../../utilities/bem");
|
|
11
11
|
const cn = "Overlay";
|
|
12
12
|
const Overlay = (props) => {
|
|
13
13
|
const { className, ...rest } = props;
|
|
14
|
-
return react_1.default.createElement(
|
|
14
|
+
return react_1.default.createElement(Box_1.Box, Object.assign({ className: classnames_1.default(bem_1.bem(cn), className) }, rest));
|
|
15
15
|
};
|
|
16
16
|
exports.Overlay = Overlay;
|
|
@@ -25,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.Popover = void 0;
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const classnames_1 = __importDefault(require("classnames"));
|
|
28
|
-
const
|
|
28
|
+
const react_popper_1 = require("react-popper");
|
|
29
29
|
const Box_1 = require("../Box");
|
|
30
30
|
const Portal_1 = require("../Portal");
|
|
31
31
|
const bem_1 = require("../../utilities/bem");
|
|
@@ -62,13 +62,13 @@ const Popover = ({ removePadding = false, ...props }) => {
|
|
|
62
62
|
},
|
|
63
63
|
];
|
|
64
64
|
const propModifiers = popperModifiers || [];
|
|
65
|
-
return (react_1.default.createElement(
|
|
66
|
-
isVisible && (react_1.default.createElement(
|
|
65
|
+
return (react_1.default.createElement(react_popper_1.Manager, null,
|
|
66
|
+
isVisible && (react_1.default.createElement(react_popper_1.Popper, { placement: placement, modifiers: [...defaultPopperModifiers, ...propModifiers] }, ({ ref, style, placement: popperPlacement, arrowProps, update, }) => (react_1.default.createElement(InlinePopover, Object.assign({ ref: ref, style: {
|
|
67
67
|
...style,
|
|
68
68
|
...styleProp,
|
|
69
69
|
}, className: className, "data-placement": popperPlacement, hasPortal: true, removePadding: removePadding }, rest),
|
|
70
70
|
react_1.default.createElement(ChildrenWithArrow, { popperPlacement: popperPlacement, arrowProps: arrowProps, update: update, showArrow: showArrow }, children))))),
|
|
71
|
-
react_1.default.createElement(
|
|
71
|
+
react_1.default.createElement(react_popper_1.Reference, null, ({ ref }) => react_1.cloneElement(referenceElement, {
|
|
72
72
|
ref,
|
|
73
73
|
}))));
|
|
74
74
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.useSelectLayout = void 0;
|
|
7
7
|
const classnames_1 = __importDefault(require("classnames"));
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
-
const
|
|
9
|
+
const react_popper_1 = require("react-popper");
|
|
10
10
|
const types_1 = require("../../../types");
|
|
11
11
|
const utilities_1 = require("../../../utilities");
|
|
12
12
|
const FormGroupContext_1 = require("../../FormGroup/FormGroupContext");
|
|
@@ -58,7 +58,7 @@ function useSelectLayout({ isOpen, hasSearch, isDisabled, variantProp, getLabelP
|
|
|
58
58
|
const [callbackElement, setCallbackElement] = react_1.useState(null);
|
|
59
59
|
const isListRendered = callbackElement !== null;
|
|
60
60
|
const inputRef = react_1.useRef(null);
|
|
61
|
-
const { styles, attributes, update } =
|
|
61
|
+
const { styles, attributes, update } = react_popper_1.usePopper(referenceElement, popperRef.current, {
|
|
62
62
|
placement: initialPlacement,
|
|
63
63
|
modifiers: popperModifiers,
|
|
64
64
|
});
|
|
@@ -32,7 +32,7 @@ const cn = "Stack";
|
|
|
32
32
|
exports.Stack = react_1.forwardRef(({ className, orientation = types_1.ORIENTATION.HORIZONTAL, spacing = 2, justify = types_1.JUSTIFY.START, reverse = false, children, ...rest }, ref) => {
|
|
33
33
|
return (react_1.default.createElement(Flex_1.Flex, Object.assign({ ref: ref, className: classnames_1.default([
|
|
34
34
|
utilities_1.bem(cn, { m: orientation }),
|
|
35
|
-
|
|
35
|
+
`gap-${spacing}`,
|
|
36
36
|
reverse && utilities_1.bem(cn, { m: "reverse" }),
|
|
37
37
|
`justify-${justify}`,
|
|
38
38
|
className,
|
|
@@ -26,7 +26,7 @@ exports.FilterDropdown = void 0;
|
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const classnames_1 = __importDefault(require("classnames"));
|
|
28
28
|
const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
29
|
-
const
|
|
29
|
+
const react_popper_1 = require("react-popper");
|
|
30
30
|
const bem_1 = require("../../utilities/bem");
|
|
31
31
|
const hooks_1 = require("../../hooks");
|
|
32
32
|
const Icon_1 = require("../Icon");
|
|
@@ -89,9 +89,9 @@ const FilterDropdown = ({ isVisible = false, filterApplied = false, onSetVisible
|
|
|
89
89
|
const getButtonElement = (buttonElement) => {
|
|
90
90
|
buttonRef.current = buttonElement;
|
|
91
91
|
};
|
|
92
|
-
return (react_1.default.createElement(
|
|
92
|
+
return (react_1.default.createElement(react_popper_1.Manager, null,
|
|
93
93
|
isVisible && (react_1.default.createElement(Portal_1.Portal, null,
|
|
94
|
-
react_1.default.createElement(
|
|
94
|
+
react_1.default.createElement(react_popper_1.Popper, { placement: "bottom", innerRef: getPopperElement, modifiers: [
|
|
95
95
|
{
|
|
96
96
|
name: "offset",
|
|
97
97
|
options: {
|
|
@@ -99,6 +99,6 @@ const FilterDropdown = ({ isVisible = false, filterApplied = false, onSetVisible
|
|
|
99
99
|
},
|
|
100
100
|
},
|
|
101
101
|
] }, ({ ref, placement, style }) => (react_1.default.createElement(FilterMenu, { ref: ref, buttonRef: buttonRef, menuRef: menuRef, placement: placement, className: className, style: style, onSetVisible: onSetVisible, searchInputValue: searchInputValue, onFilterInputChange: onFilterInputChange, onFilterSelectAll: onFilterSelectAll, onFilterClear: onFilterClear, filterOptions: filterOptions, filterControl: filterControl, hideFilterSearch: hideFilterSearch }))))),
|
|
102
|
-
react_1.default.createElement(
|
|
102
|
+
react_1.default.createElement(react_popper_1.Reference, { innerRef: getButtonElement }, ({ ref }) => (react_1.default.createElement(FilterToggleButton, { ref: ref, onSetVisible: onSetVisible, isVisible: isVisible, filterApplied: filterApplied })))));
|
|
103
103
|
};
|
|
104
104
|
exports.FilterDropdown = FilterDropdown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { BoxProps } from "../Box";
|
|
3
3
|
import { STATUS_VARIANT } from "../../types";
|
|
4
|
-
import {
|
|
4
|
+
import { LinkProps } from "../Link";
|
|
5
5
|
declare type ToastPosition = "top-right";
|
|
6
6
|
export interface ToastProps extends BoxProps {
|
|
7
7
|
title: string;
|
|
@@ -22,11 +22,11 @@ export interface ShowToastProps {
|
|
|
22
22
|
className?: string;
|
|
23
23
|
variant?: STATUS_VARIANT;
|
|
24
24
|
}
|
|
25
|
-
export declare const ToastLink: ({
|
|
25
|
+
export declare const ToastLink: ({ className, children, ...rest }: LinkProps) => JSX.Element;
|
|
26
26
|
export declare const ToastMessage: ({ children, withIcon, className, }: ToastMessageProps) => JSX.Element;
|
|
27
27
|
export declare const Toast: {
|
|
28
28
|
(props: ToastProps): JSX.Element;
|
|
29
|
-
Link: ({
|
|
29
|
+
Link: ({ className, children, ...rest }: LinkProps) => JSX.Element;
|
|
30
30
|
Message: ({ children, withIcon, className, }: ToastMessageProps) => JSX.Element;
|
|
31
31
|
};
|
|
32
32
|
export declare const showToast: ({ position, duration, variant, title, content, className, ...rest }: ShowToastProps) => any;
|
|
@@ -33,9 +33,13 @@ const Icon_1 = require("../Icon");
|
|
|
33
33
|
const bem_1 = require("../../utilities/bem");
|
|
34
34
|
const types_1 = require("../../types");
|
|
35
35
|
const status_1 = require("../../contexts/status");
|
|
36
|
-
const
|
|
36
|
+
const Link_1 = require("../Link");
|
|
37
37
|
const cn = "Toast";
|
|
38
|
-
const ToastLink = ({
|
|
38
|
+
const ToastLink = ({ className, children, ...rest }) => {
|
|
39
|
+
return (react_1.default.createElement(Link_1.Link, Object.assign({ className: classnames_1.default(bem_1.bem(cn, { e: "link" }), className), noStyles: true }, rest),
|
|
40
|
+
react_1.default.createElement("span", { className: "mr-1" }, children),
|
|
41
|
+
react_1.default.createElement(Icon_1.Icon, { icon: Icon_1.ICON_TYPE.LONG_ARROW_ALT_RIGHT })));
|
|
42
|
+
};
|
|
39
43
|
exports.ToastLink = ToastLink;
|
|
40
44
|
const ToastMessage = ({ children, withIcon, className, }) => {
|
|
41
45
|
const variant = react_1.useContext(status_1.StatusContext);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PopperPlacement } from "../../types";
|
|
3
|
+
export declare type TooltipProps = {
|
|
4
|
+
children: React.ReactElement;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
placement?: PopperPlacement;
|
|
3
7
|
delay?: number;
|
|
4
|
-
}
|
|
5
|
-
export declare const Tooltip: (
|
|
8
|
+
};
|
|
9
|
+
export declare const Tooltip: ({ children, content, placement, delay, }: TooltipProps) => JSX.Element;
|