@conveyorhq/arrow-ds 1.140.0 → 1.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +35 -31
- package/public/components/Absolute/Absolute.d.ts +2 -1
- package/public/components/Absolute/Absolute.js +1 -1
- package/public/components/Accordion/Accordion.d.ts +22 -24
- package/public/components/Accordion/Accordion.js +51 -28
- package/public/components/Accordion/context.d.ts +2 -2
- package/public/components/Accordion/context.js +4 -4
- package/public/components/Accordion/index.js +5 -1
- package/public/components/Accordion/types.d.ts +4 -4
- package/public/components/Appbar/Appbar.d.ts +15 -15
- package/public/components/Appbar/Appbar.js +2 -2
- package/public/components/Appbar/AppbarClaimProfileButton.d.ts +2 -1
- package/public/components/Appbar/AppbarDropdownIcon.d.ts +2 -1
- package/public/components/Appbar/AppbarLogInButton.d.ts +2 -1
- package/public/components/Appbar/AppbarLogInButton.js +2 -2
- package/public/components/Appbar/AppbarLogo.d.ts +2 -1
- package/public/components/Appbar/AppbarLogo.js +2 -2
- package/public/components/Appbar/AppbarOrganization.d.ts +6 -6
- package/public/components/Appbar/AppbarOrganization.js +3 -3
- package/public/components/Appbar/AppbarProductMenu.d.ts +5 -5
- package/public/components/Appbar/AppbarProductMenu.js +10 -10
- package/public/components/Appbar/AppbarTabMarker.d.ts +2 -1
- package/public/components/Appbar/AppbarTabMarker.js +1 -1
- package/public/components/Appbar/AppbarTabs.d.ts +3 -3
- package/public/components/Appbar/AppbarTabs.js +8 -4
- package/public/components/Appbar/AppbarUser.d.ts +10 -10
- package/public/components/Appbar/AppbarUser.js +16 -16
- package/public/components/Appbar/_story/index.d.ts +6 -0
- package/public/components/Appbar/_story/index.js +61 -0
- package/public/components/Appbar/config.js +1 -1
- package/public/components/Appbar/context.d.ts +1 -1
- package/public/components/Appbar/context.js +2 -2
- package/public/components/Appbar/index.js +5 -1
- package/public/components/AptibleLogo/AptibleLogo.d.ts +3 -2
- package/public/components/ArrowButton/ArrowButton.d.ts +2 -1
- package/public/components/ArrowButton/ArrowButton.js +2 -2
- package/public/components/ArrowButton/index.js +5 -1
- package/public/components/ArrowLink/ArrowLink.d.ts +2 -1
- package/public/components/ArrowLink/ArrowLink.js +1 -1
- package/public/components/ArrowLink/index.js +5 -1
- package/public/components/Aside/Aside.d.ts +4 -3
- package/public/components/Aside/Aside.js +3 -3
- package/public/components/Aside/index.js +5 -1
- package/public/components/Avatar/Avatar.d.ts +12 -11
- package/public/components/Avatar/Avatar.js +18 -14
- package/public/components/Avatar/AvatarGroup.d.ts +2 -2
- package/public/components/Avatar/AvatarGroup.js +8 -4
- package/public/components/Avatar/context.d.ts +1 -1
- package/public/components/Avatar/context.js +1 -1
- package/public/components/Avatar/index.js +5 -1
- package/public/components/Avatar/types.d.ts +1 -1
- package/public/components/Avatar/types.js +1 -1
- package/public/components/Badge/Badge.js +8 -4
- package/public/components/Badge/index.js +5 -1
- package/public/components/Banner/Banner.js +9 -5
- package/public/components/Banner/index.js +5 -1
- package/public/components/Box/Box.js +7 -3
- package/public/components/Box/index.js +5 -1
- package/public/components/Button/Button.d.ts +1 -1
- package/public/components/Button/Button.js +23 -19
- package/public/components/Button/ButtonGroup.d.ts +2 -1
- package/public/components/Button/ButtonGroup.js +9 -5
- package/public/components/Button/index.js +5 -1
- package/public/components/Card/Card.d.ts +3 -3
- package/public/components/Card/Card.js +13 -9
- package/public/components/Card/CardGroup.d.ts +2 -1
- package/public/components/Card/CardGroup.js +1 -1
- package/public/components/Card/index.js +5 -1
- package/public/components/Checkbox/Checkbox.d.ts +4 -3
- package/public/components/Checkbox/Checkbox.js +20 -17
- package/public/components/Checkbox/index.js +5 -1
- package/public/components/CloseButton/CloseButton.d.ts +1 -1
- package/public/components/CloseButton/CloseButton.js +7 -3
- package/public/components/CloseButton/index.js +5 -1
- package/public/components/Combobox/Combobox.d.ts +2 -1
- package/public/components/Combobox/Combobox.js +11 -7
- package/public/components/Combobox/ComboboxMulti.d.ts +2 -1
- package/public/components/Combobox/ComboboxMulti.js +4 -4
- package/public/components/Combobox/index.js +5 -1
- package/public/components/Combobox/ui.d.ts +6 -6
- package/public/components/Combobox/ui.js +22 -18
- package/public/components/Combobox/useSelect.d.ts +1 -1
- package/public/components/Combobox/useSelect.js +9 -9
- package/public/components/ConveyorLogo/ConveyorLogo.js +1 -1
- package/public/components/ConveyorLogo/index.js +5 -1
- package/public/components/DatePicker/DatePicker.d.ts +1 -1
- package/public/components/DatePicker/DatePicker.js +24 -20
- package/public/components/DateRangePicker/CustomDateRangeInput.js +9 -5
- package/public/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/public/components/DateRangePicker/DateRangePicker.js +40 -36
- package/public/components/DateRangePicker/index.js +5 -1
- package/public/components/Description/Description.d.ts +2 -1
- package/public/components/Description/Description.js +7 -3
- package/public/components/Description/index.js +5 -1
- package/public/components/Divider/Divider.d.ts +2 -1
- package/public/components/Divider/Divider.js +4 -4
- package/public/components/Divider/index.js +5 -1
- package/public/components/DragDrop/DragDrop.d.ts +2 -2
- package/public/components/DragDrop/index.js +5 -1
- package/public/components/Drawer/Drawer.d.ts +12 -12
- package/public/components/Drawer/Drawer.js +24 -20
- package/public/components/Drawer/index.js +5 -1
- package/public/components/FileUpload/FileUpload.d.ts +1 -1
- package/public/components/FileUpload/FileUpload.js +12 -8
- package/public/components/FileUpload/FileUploadDnD.d.ts +3 -3
- package/public/components/FileUpload/FileUploadDnD.js +21 -17
- package/public/components/FileUpload/index.js +5 -1
- package/public/components/FileUpload/useFileUpload.d.ts +1 -1
- package/public/components/FileUpload/useFileUpload.js +11 -11
- package/public/components/Fixed/Fixed.d.ts +2 -1
- package/public/components/Fixed/Fixed.js +1 -1
- package/public/components/Flex/Flex.js +7 -3
- package/public/components/Floating/FloatingTooltip.d.ts +10 -10
- package/public/components/Floating/FloatingTooltip.js +34 -30
- package/public/components/Floating/index.js +5 -1
- package/public/components/FormGroup/FormGroup.d.ts +1 -1
- package/public/components/FormGroup/FormGroup.js +10 -6
- package/public/components/FormGroup/index.js +5 -1
- package/public/components/Frame/Frame.d.ts +5 -5
- package/public/components/Frame/Frame.js +1 -1
- package/public/components/Frame/index.js +5 -1
- package/public/components/Grid/Grid.d.ts +4 -4
- package/public/components/Grid/Grid.js +10 -6
- package/public/components/Heading/Heading.d.ts +9 -9
- package/public/components/Heading/Heading.js +8 -8
- package/public/components/Heading/index.js +5 -1
- package/public/components/Icon/Icon.d.ts +4 -4
- package/public/components/Icon/Icon.js +18 -14
- package/public/components/Icon/index.js +5 -1
- package/public/components/Icon/svg/ArrowToBottom.d.ts +2 -1
- package/public/components/Icon/svg/ArrowToBottom.js +1 -1
- package/public/components/Icon/svg/ArrowToLeft.d.ts +2 -1
- package/public/components/Icon/svg/ArrowToLeft.js +1 -1
- package/public/components/Icon/svg/ArrowToRight.d.ts +2 -1
- package/public/components/Icon/svg/ArrowToRight.js +1 -1
- package/public/components/Icon/svg/BadgeCheck.d.ts +2 -1
- package/public/components/Icon/svg/BadgeCheck.js +1 -1
- package/public/components/Icon/svg/CommentAltCheck.d.ts +2 -1
- package/public/components/Icon/svg/CommentAltCheck.js +1 -1
- package/public/components/Icon/svg/ConveyorLogoIcon.d.ts +2 -1
- package/public/components/Icon/svg/ConveyorLogoIcon.js +1 -1
- package/public/components/Icon/svg/DialogCheck.d.ts +2 -1
- package/public/components/Icon/svg/DialogCheck.js +1 -1
- package/public/components/Icon/svg/Folders.d.ts +2 -1
- package/public/components/Icon/svg/Folders.js +1 -1
- package/public/components/Icon/svg/InsertEnd.d.ts +2 -1
- package/public/components/Icon/svg/InsertEnd.js +1 -1
- package/public/components/Icon/svg/InsertMiddle.d.ts +2 -1
- package/public/components/Icon/svg/InsertMiddle.js +1 -1
- package/public/components/Icon/svg/InsertStart.d.ts +2 -1
- package/public/components/Icon/svg/InsertStart.js +1 -1
- package/public/components/Icon/svg/Scroll.d.ts +2 -1
- package/public/components/Icon/svg/Scroll.js +1 -1
- package/public/components/Icon/svg/ShieldCheck.d.ts +2 -1
- package/public/components/Icon/svg/ShieldCheck.js +1 -1
- package/public/components/Icon/svg/Sparkle.d.ts +2 -1
- package/public/components/Icon/svg/Sparkle.js +1 -1
- package/public/components/Icon/svg/Triangle.d.ts +3 -2
- package/public/components/Icon/svg/Triangle.js +2 -2
- package/public/components/Icon/svg/index.js +5 -1
- package/public/components/Image/Image.d.ts +2 -2
- package/public/components/Image/Image.js +2 -2
- package/public/components/Input/Input.js +13 -9
- package/public/components/Input/index.js +5 -1
- package/public/components/InputFeedback/InputFeedback.d.ts +2 -1
- package/public/components/InputFeedback/InputFeedback.js +8 -4
- package/public/components/IntegrationLogo/IntegrationLogo.d.ts +3 -2
- package/public/components/IntegrationLogo/IntegrationLogo.js +1 -1
- package/public/components/IntegrationLogo/IntegrationLogoSvg.d.ts +2 -1
- package/public/components/IntegrationLogo/IntegrationLogoSvg.js +22 -22
- package/public/components/IntegrationLogo/index.js +5 -1
- package/public/components/IntegrationLogo/svg/addigy.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/addigy.js +1 -1
- package/public/components/IntegrationLogo/svg/aws.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/aws.js +1 -1
- package/public/components/IntegrationLogo/svg/bamboohr.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/bamboohr.js +1 -1
- package/public/components/IntegrationLogo/svg/bitbucket.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/bitbucket.js +1 -1
- package/public/components/IntegrationLogo/svg/conveyor.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/conveyor.js +1 -1
- package/public/components/IntegrationLogo/svg/default.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/default.js +1 -1
- package/public/components/IntegrationLogo/svg/deploy.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/deploy.js +1 -1
- package/public/components/IntegrationLogo/svg/docusign.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/docusign.js +1 -1
- package/public/components/IntegrationLogo/svg/events-api.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/events-api.js +1 -1
- package/public/components/IntegrationLogo/svg/gcp.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/gcp.js +1 -1
- package/public/components/IntegrationLogo/svg/github.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/github.js +1 -1
- package/public/components/IntegrationLogo/svg/gitlab.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/gitlab.js +1 -1
- package/public/components/IntegrationLogo/svg/gsuite.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/gsuite.js +1 -1
- package/public/components/IntegrationLogo/svg/index.js +5 -1
- package/public/components/IntegrationLogo/svg/jamf.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/jamf.js +1 -1
- package/public/components/IntegrationLogo/svg/jira.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/jira.js +1 -1
- package/public/components/IntegrationLogo/svg/jumpcloud.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/jumpcloud.js +1 -1
- package/public/components/IntegrationLogo/svg/okta.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/okta.js +1 -1
- package/public/components/IntegrationLogo/svg/onelogin.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/onelogin.js +1 -1
- package/public/components/IntegrationLogo/svg/salesforce.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/salesforce.js +1 -1
- package/public/components/IntegrationLogo/svg/servicenow.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/servicenow.js +1 -1
- package/public/components/IntegrationLogo/svg/slack.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/slack.js +1 -1
- package/public/components/IntegrationLogo/svg/wrapper.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/wrapper.js +1 -1
- package/public/components/IntegrationLogo/svg/zoom.d.ts +2 -1
- package/public/components/IntegrationLogo/svg/zoom.js +1 -1
- package/public/components/Kbd/Kbd.d.ts +3 -3
- package/public/components/Kbd/Kbd.js +2 -2
- package/public/components/Kbd/index.js +5 -1
- package/public/components/Label/Label.d.ts +1 -1
- package/public/components/Label/Label.js +8 -4
- package/public/components/Label/index.js +5 -1
- package/public/components/Link/Link.d.ts +1 -1
- package/public/components/Link/Link.js +9 -5
- package/public/components/Link/index.js +5 -1
- package/public/components/List/List.d.ts +1 -1
- package/public/components/List/List.js +9 -5
- package/public/components/Loading/Loading.d.ts +3 -2
- package/public/components/Loading/Loading.js +1 -1
- package/public/components/Loading/index.js +5 -1
- package/public/components/Markdown/Markdown.d.ts +2 -1
- package/public/components/Markdown/Markdown.js +2 -2
- package/public/components/MarkdownEditor/MarkdownEditor.d.ts +2 -1
- package/public/components/MarkdownEditor/MarkdownEditor.js +7 -7
- package/public/components/MarkdownEditor/MarkdownHelp.d.ts +2 -1
- package/public/components/MarkdownEditor/MarkdownHelp.js +7 -7
- package/public/components/MarkdownEditor/index.js +5 -1
- package/public/components/Menu/Menu.d.ts +2 -2
- package/public/components/Menu/Menu.js +1 -1
- package/public/components/Menu/MenuItem.d.ts +1 -1
- package/public/components/Menu/MenuItem.js +13 -9
- package/public/components/Menu/index.js +5 -1
- package/public/components/MenuRenderer/MenuRenderer.d.ts +5 -5
- package/public/components/MenuRenderer/MenuRenderer.js +21 -18
- package/public/components/MenuRenderer/context.d.ts +2 -2
- package/public/components/MenuRenderer/context.js +2 -2
- package/public/components/MenuRenderer/index.js +5 -1
- package/public/components/Meta/Meta.d.ts +2 -1
- package/public/components/Meta/Meta.js +1 -1
- package/public/components/Modal/Modal.d.ts +32 -32
- package/public/components/Modal/Modal.js +54 -50
- package/public/components/Modal/_story/index.d.ts +2 -0
- package/public/components/Modal/_story/index.js +19 -0
- package/public/components/Modal/context.d.ts +1 -1
- package/public/components/Modal/context.js +2 -2
- package/public/components/Modal/index.js +5 -1
- package/public/components/OptionButton/OptionButton.d.ts +19 -19
- package/public/components/OptionButton/OptionButton.js +27 -24
- package/public/components/OptionButton/context.d.ts +2 -2
- package/public/components/OptionButton/context.js +2 -2
- package/public/components/OptionButton/index.js +5 -1
- package/public/components/Overlay/Overlay.d.ts +2 -1
- package/public/components/Overlay/Overlay.js +1 -1
- package/public/components/Pagination/Pagination.d.ts +2 -1
- package/public/components/Pagination/Pagination.js +5 -5
- package/public/components/Pagination/index.js +5 -1
- package/public/components/Panel/Panel.d.ts +4 -3
- package/public/components/Panel/Panel.js +2 -2
- package/public/components/Panel/index.js +5 -1
- package/public/components/Paper/Paper.d.ts +4 -3
- package/public/components/Paper/Paper.js +3 -3
- package/public/components/Paper/index.js +5 -1
- package/public/components/Paragraph/Paragraph.d.ts +2 -1
- package/public/components/Paragraph/Paragraph.js +2 -2
- package/public/components/Popover/Popover.d.ts +3 -3
- package/public/components/Popover/Popover.js +15 -11
- package/public/components/Popover/index.js +5 -1
- package/public/components/PopoverMenu/PopoverMenu.js +7 -3
- package/public/components/Portal/Portal.d.ts +3 -3
- package/public/components/Portal/Portal.js +1 -1
- package/public/components/Portal/index.js +5 -1
- package/public/components/ProductIcon/ProductIcon.d.ts +2 -1
- package/public/components/ProductIcon/ProductIcon.js +6 -6
- package/public/components/ProductIcon/ProductIconComply.d.ts +2 -1
- package/public/components/ProductIcon/ProductIconComply.js +1 -1
- package/public/components/ProductIcon/ProductIconDeploy.d.ts +2 -1
- package/public/components/ProductIcon/ProductIconDeploy.js +1 -1
- package/public/components/ProductIcon/ProductIconExchange.d.ts +2 -1
- package/public/components/ProductIcon/ProductIconExchange.js +1 -1
- package/public/components/ProductIcon/ProductIconTrustCenter.d.ts +2 -1
- package/public/components/ProductIcon/ProductIconTrustCenter.js +1 -1
- package/public/components/PropertyDiff/PropertyDiff.d.ts +2 -1
- package/public/components/PropertyDiff/PropertyDiff.js +5 -5
- package/public/components/PropertyDiff/index.js +5 -1
- package/public/components/Radio/Radio.d.ts +3 -3
- package/public/components/Radio/Radio.js +16 -13
- package/public/components/Radio/index.js +5 -1
- package/public/components/Reference/Reference.d.ts +1 -1
- package/public/components/Reference/Reference.js +9 -5
- package/public/components/Reference/index.js +5 -1
- package/public/components/Relative/Relative.d.ts +2 -1
- package/public/components/Relative/Relative.js +1 -1
- package/public/components/ScrollPane/ScrollPane.d.ts +2 -2
- package/public/components/ScrollPane/ScrollPane.js +3 -3
- package/public/components/ScrollSpy/ScrollSpy.d.ts +8 -8
- package/public/components/ScrollSpy/ScrollSpy.js +38 -34
- package/public/components/ScrollSpy/index.js +5 -1
- package/public/components/ScrollSpy/types.d.ts +2 -2
- package/public/components/ScrollSpy/types.js +1 -1
- package/public/components/SearchFilter/SearchFilter.d.ts +1 -1
- package/public/components/SearchFilter/SearchFilter.js +16 -12
- package/public/components/SearchFilter/index.js +5 -1
- package/public/components/Select/Select.d.ts +13 -10
- package/public/components/Select/Select.js +24 -20
- package/public/components/Select/SelectNonceProvider.d.ts +1 -1
- package/public/components/Select/SelectNonceProvider.js +1 -1
- package/public/components/Select/SelectPopover.d.ts +2 -2
- package/public/components/Select/SelectPopover.js +19 -9
- package/public/components/Select/index.d.ts +1 -1
- package/public/components/Select/index.js +5 -1
- package/public/components/Select/theme.js +4 -4
- package/public/components/SelectNew/SingleSelect.d.ts +5 -5
- package/public/components/SelectNew/SingleSelect.js +6 -6
- package/public/components/SelectNew/SingleSelectCSF.story.d.ts +46 -17
- package/public/components/SelectNew/SingleSelectCSF.story.js +66 -37
- package/public/components/SelectNew/hooks/useDownshiftConfig.js +1 -1
- package/public/components/SelectNew/hooks/useSelectCreatable.js +3 -3
- package/public/components/SelectNew/hooks/useSelectLayout.js +21 -21
- package/public/components/SelectNew/hooks/useSelectOptionIndex.js +1 -1
- package/public/components/SelectNew/hooks/useTransformSelectOptions.d.ts +1 -1
- package/public/components/SelectNew/hooks/useTransformSelectOptions.js +1 -1
- package/public/components/SelectNew/index.js +5 -1
- package/public/components/SelectNew/shared/CreatableOption.d.ts +2 -2
- package/public/components/SelectNew/shared/CreatableOption.js +5 -5
- package/public/components/SelectNew/shared/SelectChildrenWithDefaultStatus.d.ts +2 -2
- package/public/components/SelectNew/shared/SelectControl.d.ts +2 -2
- package/public/components/SelectNew/shared/SelectControl.js +13 -9
- package/public/components/SelectNew/shared/SelectMenu.d.ts +2 -2
- package/public/components/SelectNew/shared/SelectMenu.js +2 -2
- package/public/components/SelectNew/shared/SelectOptionCategory.d.ts +2 -2
- package/public/components/SelectNew/shared/SelectPortal.js +2 -2
- package/public/components/SelectNew/shared/SelectSearch.js +7 -3
- package/public/components/SelectNew/shared/SelectStatus.d.ts +2 -2
- package/public/components/SelectNew/shared/types.d.ts +1 -1
- package/public/components/SelectNew/single/SingleSelectContext.d.ts +1 -1
- package/public/components/SelectNew/single/SingleSelectContext.js +1 -1
- package/public/components/SelectNew/single/SingleSelectOption.d.ts +2 -2
- package/public/components/SelectNew/single/SingleSelectOption.js +8 -4
- package/public/components/SelectNew/single/SingleSelectSelected.d.ts +2 -2
- package/public/components/SimpleTable/SimpleTable.d.ts +8 -8
- package/public/components/SimpleTable/SimpleTable.js +13 -13
- package/public/components/SimpleTable/index.js +5 -1
- package/public/components/Skeleton/Skeleton.d.ts +3 -2
- package/public/components/Skeleton/Skeleton.js +1 -1
- package/public/components/Skeleton/index.js +5 -1
- package/public/components/SmallCaps/SmallCaps.d.ts +2 -1
- package/public/components/SmallCaps/SmallCaps.js +1 -1
- package/public/components/Snackbar/Snackbar.d.ts +12 -11
- package/public/components/Snackbar/Snackbar.js +8 -8
- package/public/components/Snackbar/SnackbarProvider.d.ts +2 -1
- package/public/components/Snackbar/SnackbarProvider.js +1 -1
- package/public/components/Snackbar/constants.d.ts +1 -1
- package/public/components/Snackbar/constants.js +1 -1
- package/public/components/Snackbar/context.js +2 -2
- package/public/components/Snackbar/helpers.d.ts +3 -3
- package/public/components/Snackbar/helpers.js +13 -16
- package/public/components/Snackbar/hooks.js +8 -11
- package/public/components/Snackbar/index.js +5 -1
- package/public/components/Snackbar/types.d.ts +22 -23
- package/public/components/Sparkles/Sparkles.d.ts +1 -1
- package/public/components/Sparkles/Sparkles.js +16 -12
- package/public/components/Sparkles/index.js +5 -1
- package/public/components/SpeechBubble/SpeechBubble.d.ts +3 -2
- package/public/components/SpeechBubble/SpeechBubble.js +1 -1
- package/public/components/SpeechBubble/index.js +5 -1
- package/public/components/Stack/Stack.js +11 -7
- package/public/components/Stack/index.js +5 -1
- package/public/components/StatusLabel/StatusLabel.d.ts +2 -1
- package/public/components/StatusLabel/StatusLabel.js +7 -7
- package/public/components/StatusLabel/index.js +5 -1
- package/public/components/StatusPanel/StatusPanel.d.ts +2 -1
- package/public/components/StatusPanel/StatusPanel.js +3 -3
- package/public/components/StatusPanel/index.js +5 -1
- package/public/components/Sticky/Sticky.d.ts +2 -1
- package/public/components/Sticky/Sticky.js +1 -1
- package/public/components/Svg/Svg.d.ts +1 -1
- package/public/components/Svg/Svg.js +1 -1
- package/public/components/Svg/index.js +5 -1
- package/public/components/Tab/Tab.d.ts +4 -4
- package/public/components/Tab/Tab.js +3 -3
- package/public/components/Tab/index.js +5 -1
- package/public/components/Table/FilterDropdown.d.ts +2 -2
- package/public/components/Table/FilterDropdown.js +23 -19
- package/public/components/Table/Table.d.ts +5 -5
- package/public/components/Table/Table.js +9 -5
- package/public/components/Table/TableBody.d.ts +2 -2
- package/public/components/Table/TableBody.js +7 -3
- package/public/components/Table/TableCell.js +7 -3
- package/public/components/Table/TableContext.js +1 -1
- package/public/components/Table/TableHead.d.ts +1 -1
- package/public/components/Table/TableHead.js +1 -1
- package/public/components/Table/TableHeaderCell.d.ts +1 -1
- package/public/components/Table/TableHeaderCell.js +20 -16
- package/public/components/Table/TableRow.d.ts +1 -1
- package/public/components/Table/TableRow.js +1 -1
- package/public/components/Table/index.js +5 -1
- package/public/components/Tag/Tag.d.ts +3 -2
- package/public/components/Tag/Tag.js +5 -5
- package/public/components/Tag/TagGroup.d.ts +2 -1
- package/public/components/Tag/TagGroup.js +1 -1
- package/public/components/Tag/index.js +5 -1
- package/public/components/Text/Text.d.ts +3 -2
- package/public/components/Text/Text.js +1 -1
- package/public/components/Text/index.js +5 -1
- package/public/components/Textarea/Textarea.d.ts +2 -2
- package/public/components/Textarea/Textarea.js +15 -11
- package/public/components/Textarea/index.js +5 -1
- package/public/components/Toast/Toast.d.ts +9 -9
- package/public/components/Toast/Toast.js +20 -17
- package/public/components/Toast/index.js +5 -1
- package/public/components/Toggle/Toggle.d.ts +2 -2
- package/public/components/Toggle/Toggle.js +5 -5
- package/public/components/Toggle/index.js +5 -1
- package/public/components/Token/Token.d.ts +3 -3
- package/public/components/Token/Token.js +9 -9
- package/public/components/Tooltip/Tooltip.d.ts +2 -1
- package/public/components/Tooltip/Tooltip.js +16 -12
- package/public/components/Tooltip/TooltipLink.d.ts +1 -1
- package/public/components/Tooltip/TooltipLink.js +6 -2
- package/public/components/Tooltip/context.d.ts +1 -1
- package/public/components/Tooltip/context.js +2 -2
- package/public/components/Tooltip/index.js +5 -1
- package/public/components/TopBar/TopBar.d.ts +5 -5
- package/public/components/TopBar/TopBar.js +2 -2
- package/public/components/TopBar/TopBarBreadcrumbs.d.ts +2 -1
- package/public/components/TopBar/TopBarBreadcrumbs.js +5 -5
- package/public/components/TopBar/TopBarSubNav.d.ts +2 -1
- package/public/components/TopBar/TopBarSubNav.js +2 -2
- package/public/components/TopBar/TopBarSubNavItem.d.ts +2 -1
- package/public/components/TopBar/TopBarSubNavItem.js +3 -3
- package/public/components/TopBar/index.js +5 -1
- package/public/components/Truncate/Truncate.d.ts +2 -1
- package/public/components/Truncate/Truncate.js +2 -2
- package/public/components/Truncate/index.js +5 -1
- package/public/components/VendorLogo/VendorLogo.d.ts +4 -4
- package/public/components/VendorLogo/VendorLogo.js +14 -10
- package/public/components/VendorLogo/index.js +5 -1
- package/public/components/VisuallyHidden/VisuallyHidden.js +2 -2
- package/public/contexts/drawer.js +1 -1
- package/public/contexts/status.d.ts +1 -1
- package/public/contexts/status.js +1 -1
- package/public/contexts/theme.d.ts +1 -1
- package/public/contexts/theme.js +1 -1
- package/public/css/styles.css +126 -483
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/public/docs/_story/index.d.ts +10 -0
- package/public/docs/_story/index.js +61 -0
- package/public/hooks/useDisclosure.d.ts +1 -1
- package/public/hooks/useDisclosure.js +4 -4
- package/public/hooks/useIntersection.js +3 -3
- package/public/hooks/useKeyPress.js +2 -2
- package/public/hooks/useMatchMedia.js +2 -2
- package/public/hooks/useOutsideClick.d.ts +1 -1
- package/public/hooks/useOutsideClick.js +1 -1
- package/public/hooks/usePrefersReducedMotion.js +1 -1
- package/public/hooks/useRandomInterval.d.ts +1 -1
- package/public/hooks/useRandomInterval.js +6 -6
- package/public/hooks/useScreenOrientation.js +3 -3
- package/public/hooks/useStep.d.ts +1 -1
- package/public/hooks/useStep.js +1 -1
- package/public/index.d.ts +2 -1
- package/public/index.js +8 -2
- package/public/storybook-components/Accessibility.d.ts +1 -1
- package/public/storybook-components/Code.d.ts +1 -1
- package/public/storybook-components/Code.js +1 -1
- package/public/storybook-components/ComponentHeading.d.ts +2 -1
- package/public/storybook-components/ComponentStatus.d.ts +2 -1
- package/public/storybook-components/ComponentStatus.js +1 -1
- package/public/storybook-components/CustomColorPalette.d.ts +2 -1
- package/public/storybook-components/EnumTable.d.ts +1 -1
- package/public/storybook-components/Examples.d.ts +1 -1
- package/public/storybook-components/Story.d.ts +2 -1
- package/public/storybook-components/Story.js +1 -1
- package/public/storybook-components/index.js +5 -1
- package/public/style-dictionary/dist/tokens.d.ts +76 -76
- package/public/style-dictionary/dist/tokens.module.d.ts +76 -76
- package/public/style-dictionary/src/border-radius.d.ts +8 -8
- package/public/style-dictionary/src/border-width.d.ts +1 -1
- package/public/style-dictionary/src/color.d.ts +21 -21
- package/public/style-dictionary/src/font-size.d.ts +11 -11
- package/public/style-dictionary/src/font-weight.d.ts +3 -3
- package/public/style-dictionary/src/height.d.ts +1 -1
- package/public/style-dictionary/src/leading.d.ts +4 -4
- package/public/style-dictionary/src/screen-width.d.ts +4 -4
- package/public/style-dictionary/src/shadow.d.ts +16 -16
- package/public/style-dictionary/src/spacing.d.ts +1 -1
- package/public/style-dictionary/src/tracking.d.ts +3 -3
- package/public/style-dictionary/src/type.d.ts +3 -3
- package/public/style-dictionary/src/width.d.ts +1 -1
- package/public/style-dictionary/src/z-index.d.ts +1 -1
- package/public/style-dictionary/tailwind.config.d.ts +8 -8
- package/public/tokens/index.js +5 -1
- package/public/types/index.d.ts +8 -9
- package/public/types/index.js +8 -8
- package/public/utilities/bem.d.ts +4 -4
- package/public/utilities/bem.js +1 -1
- package/public/utilities/index.js +5 -1
- package/public/utilities/isValidDate.js +1 -1
- package/public/utilities/parseDate.js +3 -3
- package/src/components/Absolute/{Absolute.story.mdx → Absolute.stories.mdx} +3 -3
- package/src/components/Accordion/{Accordion.story.mdx → Accordion.stories.mdx} +1 -1
- package/src/components/Accordion/Accordion.tsx +37 -55
- package/src/components/Appbar/Appbar.stories.mdx +103 -0
- package/src/components/Appbar/_story/index.tsx +97 -0
- package/src/components/AptibleLogo/{AptibleLogo.story.mdx → AptibleLogo.stories.mdx} +3 -3
- package/src/components/ArrowButton/{ArrowButton.story.mdx → ArrowButton.stories.mdx} +11 -11
- package/src/components/ArrowLink/{ArrowLink.story.mdx → ArrowLink.stories.mdx} +10 -10
- package/src/components/Aside/{Aside.story.mdx → Aside.stories.mdx} +3 -3
- package/src/components/Avatar/{Avatar.story.mdx → Avatar.stories.mdx} +1 -1
- package/src/components/Badge/{Badge.story.mdx → Badge.stories.mdx} +1 -1
- package/src/components/Banner/{Banner.story.mdx → Banner.stories.mdx} +1 -1
- package/src/components/Box/{Box.story.mdx → Box.stories.mdx} +1 -1
- package/src/components/Button/{Button.story.mdx → Button.stories.mdx} +1 -1
- package/src/components/Button/{ButtonGroup.story.mdx → ButtonGroup.stories.mdx} +1 -1
- package/src/components/Card/{Card.story.mdx → Card.stories.mdx} +1 -1
- package/src/components/Checkbox/{Checkbox.story.mdx → Checkbox.stories.mdx} +1 -1
- package/src/components/Checkbox/Checkbox.tsx +2 -2
- package/src/components/CloseButton/{CloseButton.story.mdx → CloseButton.stories.mdx} +1 -1
- package/src/components/Combobox/{Combobox.story.mdx → Combobox.stories.mdx} +25 -25
- package/src/components/ConveyorLogo/{ConveyorLogo.story.mdx → ConveyorLogo.stories.mdx} +1 -1
- package/src/components/DatePicker/{DatePicker.story.mdx → DatePicker.stories.mdx} +1 -1
- package/src/components/DateRangePicker/{DateRangePicker.story.mdx → DateRangePicker.stories.mdx} +1 -1
- package/src/components/Description/{Description.story.mdx → Description.stories.mdx} +1 -1
- package/src/components/Divider/{Divider.story.mdx → Divider.stories.mdx} +1 -1
- package/src/components/Drawer/{Drawer.story.mdx → Drawer.stories.mdx} +1 -1
- package/src/components/Drawer/Drawer.tsx +1 -1
- package/src/components/FileUpload/{FileUpload.story.mdx → FileUpload.stories.mdx} +1 -1
- package/src/components/Fixed/{Fixed.story.mdx → Fixed.stories.mdx} +3 -3
- package/src/components/Flex/{Flex.story.mdx → Flex.stories.mdx} +1 -1
- package/src/components/Floating/{FloatingTooltip.story.mdx → FloatingTooltip.stories.mdx} +1 -1
- package/src/components/FormGroup/{FormGroup.story.mdx → FormGroup.stories.mdx} +1 -1
- package/src/components/Frame/{Frame.story.mdx → Frame.stories.mdx} +1 -1
- package/src/components/Grid/{Grid.story.mdx → Grid.stories.mdx} +1 -1
- package/src/components/Grid/Grid.tsx +3 -3
- package/src/components/Heading/{Heading.story.mdx → Heading.stories.mdx} +1 -1
- package/src/components/Icon/{Icon.story.mdx → Icon.stories.mdx} +1 -1
- package/src/components/Image/{Image.story.mdx → Image.stories.mdx} +1 -1
- package/src/components/Input/{Input.story.mdx → Input.stories.mdx} +1 -1
- package/src/components/InputFeedback/{InputFeedback.story.mdx → InputFeedback.stories.mdx} +1 -1
- package/src/components/IntegrationLogo/{IntegrationLogo.story.mdx → IntegrationLogo.stories.mdx} +1 -1
- package/src/components/Kbd/{Kbd.story.mdx → Kbd.stories.mdx} +1 -1
- package/src/components/Label/{Label.story.mdx → Label.stories.mdx} +1 -1
- package/src/components/Link/{Link.story.mdx → Link.stories.mdx} +1 -1
- package/src/components/List/{List.story.mdx → List.stories.mdx} +1 -1
- package/src/components/Loading/{Loading.story.mdx → Loading.stories.mdx} +1 -1
- package/src/components/Markdown/{Markdown.story.mdx → Markdown.stories.mdx} +1 -1
- package/src/components/MarkdownEditor/{MarkdownEditor.story.mdx → MarkdownEditor.stories.mdx} +1 -1
- package/src/components/Menu/{Menu.story.mdx → Menu.stories.mdx} +1 -1
- package/src/components/Menu/Menu.tsx +1 -1
- package/src/components/MenuRenderer/{MenuRenderer.story.mdx → MenuRenderer.stories.mdx} +1 -1
- package/src/components/MenuRenderer/MenuRenderer.tsx +10 -10
- package/src/components/Meta/Meta.stories.mdx +48 -0
- package/src/components/Modal/{Modal.story.mdx → Modal.stories.mdx} +38 -64
- package/src/components/Modal/_story/index.tsx +28 -0
- package/src/components/OptionButton/{OptionButton.story.mdx → OptionButton.stories.mdx} +2 -1
- package/src/components/OptionButton/OptionButton.tsx +2 -3
- package/src/components/Overlay/{Overlay.story.mdx → Overlay.stories.mdx} +1 -1
- package/src/components/Pagination/{Pagination.story.mdx → Pagination.stories.mdx} +3 -3
- package/src/components/Panel/{Panel.story.mdx → Panel.stories.mdx} +1 -1
- package/src/components/Paper/{Paper.story.mdx → Paper.stories.mdx} +1 -1
- package/src/components/Paragraph/{Paragraph.story.mdx → Paragraph.stories.mdx} +1 -1
- package/src/components/Popover/{Popover.story.mdx → Popover.stories.mdx} +1 -1
- package/src/components/PopoverMenu/{PopoverMenu.story.mdx → PopoverMenu.stories.mdx} +1 -1
- package/src/components/Portal/{Portal.story.mdx → Portal.stories.mdx} +1 -1
- package/src/components/ProductIcon/{ProductIcon.story.mdx → ProductIcon.stories.mdx} +3 -3
- package/src/components/PropertyDiff/{PropertDiff.story.mdx → PropertDiff.stories.mdx} +9 -9
- package/src/components/Radio/{Radio.story.mdx → Radio.stories.mdx} +1 -1
- package/src/components/Radio/Radio.tsx +2 -3
- package/src/components/Reference/{Reference.story.mdx → Reference.stories.mdx} +1 -1
- package/src/components/Relative/{Relative.story.mdx → Relative.stories.mdx} +3 -3
- package/src/components/ScrollPane/{ScrollPane.story.mdx → ScrollPane.stories.mdx} +1 -1
- package/src/components/ScrollSpy/{ScrollSpy.story.mdx → ScrollSpy.stories.mdx} +1 -1
- package/src/components/SearchFilter/{SearchFilter.story.mdx → SearchFilter.stories.mdx} +1 -1
- package/src/components/Select/{Select.story.mdx → Select.stories.mdx} +1 -1
- package/src/components/Select/Select.tsx +20 -14
- package/src/components/Select/SelectPopover.tsx +10 -4
- package/src/components/Select/index.ts +0 -1
- package/src/components/SelectNew/{SingleSelect.story.mdx → SingleSelect.stories.mdx} +1 -1
- package/src/components/SelectNew/SingleSelectCSF.story.tsx +26 -0
- package/src/components/SimpleTable/{SimpleTable.story.mdx → SimpleTable.stories.mdx} +1 -1
- package/src/components/Skeleton/{Skeleton.story.mdx → Skeleton.stories.mdx} +1 -1
- package/src/components/SmallCaps/{SmallCaps.story.mdx → SmallCaps.stories.mdx} +1 -1
- package/src/components/Snackbar/{Snackbar.story.mdx → Snackbar.stories.mdx} +1 -1
- package/src/components/Snackbar/constants.ts +1 -1
- package/src/components/Snackbar/helpers.tsx +35 -38
- package/src/components/Snackbar/hooks.ts +8 -11
- package/src/components/Snackbar/index.css +0 -2
- package/src/components/Snackbar/types.ts +4 -21
- package/src/components/Sparkles/{Sparkles.story.mdx → Sparkles.stories.mdx} +1 -1
- package/src/components/SpeechBubble/{SpeechBubble.story.mdx → SpeechBubble.stories.mdx} +1 -1
- package/src/components/Stack/{Stack.story.mdx → Stack.stories.mdx} +1 -1
- package/src/components/StatusLabel/{StatusLabel.story.mdx → StatusLabel.stories.mdx} +21 -21
- package/src/components/StatusPanel/{StatusPanel.story.mdx → StatusPanel.stories.mdx} +9 -9
- package/src/components/Sticky/{Sticky.story.mdx → Sticky.stories.mdx} +3 -3
- package/src/components/Svg/{Svg.story.mdx → Svg.stories.mdx} +1 -1
- package/src/components/Tab/{Tab.story.mdx → Tab.stories.mdx} +1 -1
- package/src/components/Table/{Table.story.mdx → Table.stories.mdx} +1 -1
- package/src/components/Tag/{Tag.story.mdx → Tag.stories.mdx} +1 -1
- package/src/components/Text/{Text.story.mdx → Text.stories.mdx} +1 -1
- package/src/components/Textarea/{Textarea.story.mdx → Textarea.stories.mdx} +1 -1
- package/src/components/Toast/{Toast.story.mdx → Toast.stories.mdx} +1 -1
- package/src/components/Toast/Toast.tsx +14 -8
- package/src/components/Toast/index.css +1 -3
- package/src/components/Toggle/{Toggle.story.mdx → Toggle.stories.mdx} +1 -1
- package/src/components/Token/{Token.story.mdx → Token.stories.mdx} +1 -1
- package/src/components/Tooltip/{Tooltip.story.mdx → Tooltip.stories.mdx} +2 -1
- package/src/components/TopBar/{TopBar.story.mdx → TopBar.stories.mdx} +11 -11
- package/src/components/Truncate/{Truncate.story.mdx → Truncate.stories.mdx} +1 -1
- package/src/components/VendorLogo/{VendorLogo.story.mdx → VendorLogo.stories.mdx} +1 -1
- package/src/components/VisuallyHidden/{VisuallyHidden.story.mdx → VisuallyHidden.stories.mdx} +1 -1
- package/src/css/utilities/animations.css +32 -0
- package/src/docs/{About.story.mdx → About.mdx} +1 -1
- package/src/docs/{Colors.story.mdx → Colors.mdx} +1 -1
- package/src/docs/{Spacing.story.mdx → Spacing.mdx} +2 -27
- package/src/docs/{Tokens.story.mdx → Tokens.mdx} +14 -92
- package/src/docs/{Typography.story.mdx → Typography.mdx} +1 -1
- package/src/docs/_story/index.tsx +107 -0
- package/src/docs/brand-components/{BrandButton.story.mdx → BrandButton.mdx} +13 -13
- package/src/docs/brand-components/{BrandCheckbox.story.mdx → BrandCheckbox.mdx} +7 -7
- package/src/docs/brand-components/{BrandFormGroup.story.mdx → BrandFormGroup.mdx} +5 -5
- package/src/docs/brand-components/{BrandRadio.story.mdx → BrandRadio.mdx} +5 -5
- package/src/docs/brand-components/{BrandTextArea.story.mdx → BrandTextArea.mdx} +7 -7
- package/src/docs/hooks/{useDisclosureHook.story.mdx → useDisclosureHook.mdx} +1 -1
- package/src/docs/hooks/{useKeyPressHook.story.mdx → useKeyPressHook.mdx} +1 -1
- package/src/docs/hooks/{useMatchMediaHook.story.mdx → useMatchMediaHook.mdx} +1 -1
- package/src/docs/hooks/{useOutsideClickHook.story.mdx → useOutsideClickHook.mdx} +1 -1
- package/src/docs/hooks/{usePrefersReducedMotion.story.mdx → usePrefersReducedMotion.mdx} +1 -1
- package/src/docs/hooks/{useScreenOrientationHook.story.mdx → useScreenOrientationHook.mdx} +1 -1
- package/src/docs/hooks/{useStepHook.story.mdx → useStepHook.mdx} +1 -1
- package/src/index.ts +2 -1
- package/src/types/index.ts +2 -9
- package/public/components/Meta/Meta.story.d.ts +0 -1
- package/public/components/Meta/Meta.story.js +0 -39
- package/src/components/Appbar/Appbar.story.mdx +0 -207
- package/src/components/Meta/Meta.md +0 -14
- package/src/components/Meta/Meta.story.tsx +0 -24
- package/src/components/SmallCaps/SmallCaps.md +0 -14
- package/src/recipes/TopBarNavigation.story.mdx +0 -114
- package/src/templates/Index.story.mdx +0 -172
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ All documentation exists within the `src` directory of this repo. If it applies
|
|
|
93
93
|
Each MDX file should start with importing the `Meta` component and passing a `title` to it:
|
|
94
94
|
|
|
95
95
|
```mdx
|
|
96
|
-
import { Meta } from "@storybook/
|
|
96
|
+
import { Meta } from "@storybook/blocks";
|
|
97
97
|
|
|
98
98
|
<Meta title="Arrow Design System/Introduction" />
|
|
99
99
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@conveyorhq/arrow-ds",
|
|
3
3
|
"author": "Conveyor",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.141.0",
|
|
6
6
|
"description": "Arrow Design System",
|
|
7
7
|
"repository": "https://github.com/conveyor/arrow-ds",
|
|
8
8
|
"publishConfig": {
|
|
@@ -25,9 +25,8 @@
|
|
|
25
25
|
"@fortawesome/free-regular-svg-icons": "^5.14.0",
|
|
26
26
|
"@fortawesome/free-solid-svg-icons": "^5.14.0",
|
|
27
27
|
"@fortawesome/react-fontawesome": "^0.1.11",
|
|
28
|
-
"@popperjs/core": "^2.
|
|
29
|
-
"@
|
|
30
|
-
"@reach/portal": "^0.6.1",
|
|
28
|
+
"@popperjs/core": "^2.11.8",
|
|
29
|
+
"@react-spring/web": "^9.7.3",
|
|
31
30
|
"@rehooks/component-size": "^1.0.3",
|
|
32
31
|
"@types/date-fns": "^2.6.0",
|
|
33
32
|
"classnames": "^2.2.6",
|
|
@@ -41,17 +40,17 @@
|
|
|
41
40
|
"mime-types": "^2.1.30",
|
|
42
41
|
"react-codemirror2": "^7.1.0",
|
|
43
42
|
"react-datepicker": "^3.1.3",
|
|
44
|
-
"react-dnd": "^
|
|
45
|
-
"react-dnd-html5-backend": "^
|
|
43
|
+
"react-dnd": "^16.0.1",
|
|
44
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
46
45
|
"react-focus-lock": "^2.2.1",
|
|
46
|
+
"react-hot-toast": "^2.4.1",
|
|
47
47
|
"react-markdown": "^4.3.1",
|
|
48
48
|
"react-merge-refs": "^1.1.0",
|
|
49
|
-
"react-popper-2": "npm:react-popper@^2.
|
|
49
|
+
"react-popper-2": "npm:react-popper@^2.3.0",
|
|
50
50
|
"react-remove-scroll": "^2.2.0",
|
|
51
51
|
"react-select": "^4.0.2",
|
|
52
52
|
"react-spring": "^8.0.27",
|
|
53
|
-
"remark-breaks": "^2.0.2"
|
|
54
|
-
"toasted-notes": "^3.2.0"
|
|
53
|
+
"remark-breaks": "^2.0.2"
|
|
55
54
|
},
|
|
56
55
|
"scripts": {
|
|
57
56
|
"prepublishOnly": "yarn run build",
|
|
@@ -63,8 +62,8 @@
|
|
|
63
62
|
"build:copy-svg": "copyfiles -u 1 src/**/*.svg public/",
|
|
64
63
|
"build:copy-style-dictionary": "copyfiles src/style-dictionary/dist/* src/style-dictionary/tailwind.config.js public/",
|
|
65
64
|
"minify:css": "csso public/css/styles.css --output public/css/styles.min.css --comments none --source-map file",
|
|
66
|
-
"storybook": "yarn run build &&
|
|
67
|
-
"build-storybook": "yarn run build &&
|
|
65
|
+
"storybook": "yarn run build && storybook dev --docs -p 9002 -c .storybook -s .storybook",
|
|
66
|
+
"build-storybook": "yarn run build && storybook build --docs -c .storybook -s .storybook -o storybook-static",
|
|
68
67
|
"style-dictionary:build": "style-dictionary build --config ./style-dictionary.config.js",
|
|
69
68
|
"style-dictionary:clean": "style-dictionary clean --config ./style-dictionary.config.js",
|
|
70
69
|
"generate": "plop",
|
|
@@ -112,13 +111,15 @@
|
|
|
112
111
|
"@babel/preset-typescript": "^7.7.2",
|
|
113
112
|
"@commitlint/cli": "^16.2.1",
|
|
114
113
|
"@commitlint/config-conventional": "^16.2.1",
|
|
115
|
-
"@storybook/addon-actions": "^6.
|
|
116
|
-
"@storybook/addon-docs": "^6.
|
|
117
|
-
"@storybook/addon-
|
|
118
|
-
"@storybook/
|
|
119
|
-
"@storybook/
|
|
120
|
-
"@storybook/
|
|
121
|
-
"@storybook/
|
|
114
|
+
"@storybook/addon-actions": "^7.6.3",
|
|
115
|
+
"@storybook/addon-docs": "^7.6.3",
|
|
116
|
+
"@storybook/addon-mdx-gfm": "^7.6.3",
|
|
117
|
+
"@storybook/addon-styling": "^1.3.7",
|
|
118
|
+
"@storybook/addon-styling-webpack": "^0.0.5",
|
|
119
|
+
"@storybook/blocks": "^7.6.3",
|
|
120
|
+
"@storybook/react": "^7.6.3",
|
|
121
|
+
"@storybook/react-webpack5": "^7.6.3",
|
|
122
|
+
"@storybook/theming": "^7.6.3",
|
|
122
123
|
"@types/classnames": "^2.2.9",
|
|
123
124
|
"@types/codemirror": "^0.0.91",
|
|
124
125
|
"@types/d3-ease": "^1.0.9",
|
|
@@ -129,15 +130,15 @@
|
|
|
129
130
|
"@types/md5": "^2.2.1",
|
|
130
131
|
"@types/mime-types": "^2.1.0",
|
|
131
132
|
"@types/node": "^12.12.6",
|
|
132
|
-
"@types/react": "^
|
|
133
|
+
"@types/react": "^18.2.38",
|
|
133
134
|
"@types/react-datepicker": "^3.1.0",
|
|
134
|
-
"@types/react-dom": "^
|
|
135
|
+
"@types/react-dom": "^18.2.17",
|
|
135
136
|
"@types/react-fontawesome": "^1.6.4",
|
|
136
|
-
"@types/react-select": "^
|
|
137
|
+
"@types/react-select": "^4.0.2",
|
|
137
138
|
"@types/tailwindcss": "^3.0.1",
|
|
138
|
-
"@types/webpack": "^5.
|
|
139
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
140
|
-
"@typescript-eslint/parser": "^
|
|
139
|
+
"@types/webpack": "^5.28.5",
|
|
140
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
141
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
141
142
|
"autoprefixer": "^10.4.0",
|
|
142
143
|
"babel-loader": "^8.0.6",
|
|
143
144
|
"babel-plugin-inline-react-svg": "^2.0.0",
|
|
@@ -154,6 +155,7 @@
|
|
|
154
155
|
"eslint-plugin-prettier": "^3.3.1",
|
|
155
156
|
"eslint-plugin-react": "^7.22.0",
|
|
156
157
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
158
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
157
159
|
"fs-extra": "^8.1.0",
|
|
158
160
|
"husky": "^3.1.0",
|
|
159
161
|
"lodash.camelcase": "^4.3.0",
|
|
@@ -162,22 +164,24 @@
|
|
|
162
164
|
"postcss-cli": "^9.0.2",
|
|
163
165
|
"postcss-import": "^14.0.2",
|
|
164
166
|
"prettier": "^2.2.1",
|
|
165
|
-
"react": "^
|
|
167
|
+
"react": "^18.2.0",
|
|
166
168
|
"react-docgen-typescript-loader": "^3.6.0",
|
|
167
|
-
"react-dom": "^
|
|
168
|
-
"react-is": "^
|
|
169
|
+
"react-dom": "^18.2.0",
|
|
170
|
+
"react-is": "^18.2.0",
|
|
169
171
|
"regenerator-runtime": "^0.13.3",
|
|
172
|
+
"remark-gfm": "^4.0.0",
|
|
170
173
|
"semantic-release": "^19.0.2",
|
|
174
|
+
"storybook": "^7.6.3",
|
|
171
175
|
"style-dictionary": "^3.1.1",
|
|
172
176
|
"tailwindcss": "^3.0.23",
|
|
173
177
|
"ts-loader": "^6.2.1",
|
|
174
|
-
"typescript": "^
|
|
175
|
-
"webpack": "^5.
|
|
178
|
+
"typescript": "^5.3.2",
|
|
179
|
+
"webpack": "^5.89.0",
|
|
176
180
|
"webpack-bundle-analyzer": "^4.5.0"
|
|
177
181
|
},
|
|
178
182
|
"peerDependencies": {
|
|
179
|
-
"react": "^
|
|
180
|
-
"react-dom": "^
|
|
183
|
+
"react": "^18.2.0",
|
|
184
|
+
"react-dom": "^18.2.0"
|
|
181
185
|
},
|
|
182
186
|
"browserslist": [
|
|
183
187
|
">0.2%",
|
|
@@ -9,6 +9,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
9
9
|
const Box_1 = require("../Box");
|
|
10
10
|
const Absolute = (props) => {
|
|
11
11
|
const { className, ...rest } = props;
|
|
12
|
-
return react_1.default.createElement(Box_1.Box,
|
|
12
|
+
return react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)("absolute", className), ...rest });
|
|
13
13
|
};
|
|
14
14
|
exports.Absolute = Absolute;
|
|
@@ -3,49 +3,47 @@ import { BoxProps } from "../Box";
|
|
|
3
3
|
import { StackProps } from "../Stack";
|
|
4
4
|
import { IconProps } from "../Icon";
|
|
5
5
|
import type { AccordionOwnProps, AccordionItemOwnProps, AccordionDisclosureProps, AccordionGroupOwnProps } from "./types";
|
|
6
|
-
|
|
6
|
+
type AccordionGroupChildProps = {
|
|
7
7
|
currentValue: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type AccordionGroupChildFunction = {
|
|
10
10
|
children(props: AccordionGroupChildProps): React.ReactElement;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type AccordionGroupChildrenUnionType = AccordionGroupChildFunction | {
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export declare const AccordionGroup: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => JSX.Element;
|
|
17
|
-
export
|
|
18
|
-
export declare const AccordionItem: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => JSX.Element;
|
|
19
|
-
|
|
20
|
-
declare type
|
|
21
|
-
children(props: AccordionButtonChildProps)
|
|
15
|
+
export type AccordionGroupProps = AccordionGroupOwnProps & AccordionGroupChildrenUnionType & Pick<StackProps, "spacing" | "className">;
|
|
16
|
+
export declare const AccordionGroup: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => React.JSX.Element;
|
|
17
|
+
export type AccordionItemProps = AccordionItemOwnProps & BoxProps;
|
|
18
|
+
export declare const AccordionItem: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => React.JSX.Element;
|
|
19
|
+
type AccordionButtonChildProps = Omit<AccordionDisclosureProps, "onToggle">;
|
|
20
|
+
declare type AccordionButtonOwnProps = {
|
|
21
|
+
children: React.ReactNode | ((props: AccordionButtonChildProps) => React.ReactNode);
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
export declare type AccordionButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & AccordionButtonOwnProps;
|
|
23
|
+
export interface AccordionButtonProps extends AccordionButtonOwnProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
24
|
+
}
|
|
27
25
|
export declare const AccordionButton: React.ForwardRefExoticComponent<AccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
-
export
|
|
26
|
+
export type AccordionIconProps = {
|
|
29
27
|
className?: string;
|
|
30
28
|
direction?: "up" | "down" | "left" | "right";
|
|
31
29
|
disabled?: boolean;
|
|
32
30
|
} & Pick<IconProps, "color">;
|
|
33
|
-
export declare const AccordionIcon: ({ className, direction, color, disabled, }: AccordionIconProps) => JSX.Element;
|
|
34
|
-
export
|
|
31
|
+
export declare const AccordionIcon: ({ className, direction, color, disabled, }: AccordionIconProps) => React.JSX.Element;
|
|
32
|
+
export type AccordionContentProps = {
|
|
35
33
|
children: React.ReactNode;
|
|
36
34
|
maxHeight?: string;
|
|
37
35
|
style?: React.CSSProperties;
|
|
38
36
|
className?: string;
|
|
39
37
|
scrollClassName?: string;
|
|
40
38
|
};
|
|
41
|
-
export declare const AccordionContent: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => JSX.Element;
|
|
42
|
-
export
|
|
39
|
+
export declare const AccordionContent: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => React.JSX.Element;
|
|
40
|
+
export type AccordionProps = AccordionOwnProps & BoxProps;
|
|
43
41
|
export declare const Accordion: {
|
|
44
|
-
(props: AccordionProps): JSX.Element;
|
|
45
|
-
Group: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => JSX.Element;
|
|
46
|
-
Item: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => JSX.Element;
|
|
42
|
+
(props: AccordionProps): React.JSX.Element;
|
|
43
|
+
Group: ({ children, spacing, defaultValue, disableAnimation, allowMultiple, allowToggle, className, ...rest }: AccordionGroupProps) => React.JSX.Element;
|
|
44
|
+
Item: ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }: AccordionItemProps) => React.JSX.Element;
|
|
47
45
|
Button: React.ForwardRefExoticComponent<AccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
48
|
-
Icon: ({ className, direction, color, disabled, }: AccordionIconProps) => JSX.Element;
|
|
49
|
-
Content: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => JSX.Element;
|
|
46
|
+
Icon: ({ className, direction, color, disabled, }: AccordionIconProps) => React.JSX.Element;
|
|
47
|
+
Content: ({ children, maxHeight, style, className, scrollClassName, ...rest }: AccordionContentProps) => React.JSX.Element;
|
|
50
48
|
};
|
|
51
49
|
export {};
|
|
@@ -1,14 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
exports.Accordion = exports.AccordionContent = exports.AccordionIcon = exports.AccordionButton = exports.AccordionItem = exports.AccordionGroup = void 0;
|
|
7
|
-
const react_1 =
|
|
30
|
+
const react_1 = __importStar(require("react"));
|
|
8
31
|
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
const
|
|
32
|
+
const web_1 = require("@react-spring/web");
|
|
10
33
|
const component_size_1 = __importDefault(require("@rehooks/component-size"));
|
|
11
|
-
const auto_id_1 = require("@reach/auto-id");
|
|
12
34
|
const react_merge_refs_1 = __importDefault(require("react-merge-refs"));
|
|
13
35
|
const utilities_1 = require("../../utilities");
|
|
14
36
|
const hooks_1 = require("../../hooks");
|
|
@@ -19,7 +41,7 @@ const Stack_1 = require("../Stack");
|
|
|
19
41
|
const Heading_1 = require("../Heading");
|
|
20
42
|
const Icon_1 = require("../Icon");
|
|
21
43
|
const context_1 = require("./context");
|
|
22
|
-
const cn = utilities_1.bemHOF("Accordion");
|
|
44
|
+
const cn = (0, utilities_1.bemHOF)("Accordion");
|
|
23
45
|
const AccordionGroup = ({ children, spacing = 0, defaultValue, disableAnimation, allowMultiple = true, allowToggle = true, className, ...rest }) => {
|
|
24
46
|
const totalItems = react_1.default.Children.count(children);
|
|
25
47
|
const [currentValue, setCurrentValue] = react_1.default.useState(defaultValue || "");
|
|
@@ -40,17 +62,17 @@ const AccordionGroup = ({ children, spacing = 0, defaultValue, disableAnimation,
|
|
|
40
62
|
allowToggle,
|
|
41
63
|
]);
|
|
42
64
|
return (react_1.default.createElement(context_1.AccordionGroupContext.Provider, { value: context },
|
|
43
|
-
react_1.default.createElement(Stack_1.Stack,
|
|
65
|
+
react_1.default.createElement(Stack_1.Stack, { orientation: types_1.ORIENTATION.VERTICAL, spacing: spacing, className: className, ...rest }, typeof children === "function" ? children({ currentValue }) : children)));
|
|
44
66
|
};
|
|
45
67
|
exports.AccordionGroup = AccordionGroup;
|
|
46
68
|
const AccordionItem = ({ value, defaultIsOpen: defaultIsOpenProp, children, className, ...rest }) => {
|
|
47
|
-
const { defaultValue, currentValue, setCurrentValue, allowMultiple, allowToggle, } = context_1.useAccordionGroupContext();
|
|
69
|
+
const { defaultValue, currentValue, setCurrentValue, allowMultiple, allowToggle, } = (0, context_1.useAccordionGroupContext)();
|
|
48
70
|
const hasDefaultValue = typeof defaultValue === "undefined" ? false : defaultValue === value;
|
|
49
71
|
const defaultIsOpen = typeof defaultIsOpenProp === "undefined"
|
|
50
72
|
? hasDefaultValue
|
|
51
73
|
: defaultIsOpenProp;
|
|
52
|
-
const { isOpen, onToggle, onClose, onOpen } = hooks_1.useDisclosure(defaultIsOpen);
|
|
53
|
-
const id = `accordion-${
|
|
74
|
+
const { isOpen, onToggle, onClose, onOpen } = (0, hooks_1.useDisclosure)(defaultIsOpen);
|
|
75
|
+
const id = `accordion-${(0, react_1.useId)()}`;
|
|
54
76
|
const buttonId = `${id}-button`;
|
|
55
77
|
const contentId = `${id}-content`;
|
|
56
78
|
const context = react_1.default.useMemo(() => ({
|
|
@@ -86,17 +108,17 @@ const AccordionItem = ({ value, defaultIsOpen: defaultIsOpenProp, children, clas
|
|
|
86
108
|
}
|
|
87
109
|
}, [allowMultiple, currentValue, value, onClose]);
|
|
88
110
|
return (react_1.default.createElement(context_1.AccordionItemContext.Provider, { value: context },
|
|
89
|
-
react_1.default.createElement(Box_1.Box,
|
|
111
|
+
react_1.default.createElement(Box_1.Box, { "data-component": "accordion", className: (0, classnames_1.default)(cn(), className, {
|
|
90
112
|
[cn({ m: "isOpen" })]: isOpen,
|
|
91
|
-
})
|
|
113
|
+
}), ...rest }, children)));
|
|
92
114
|
};
|
|
93
115
|
exports.AccordionItem = AccordionItem;
|
|
94
116
|
exports.AccordionButton = react_1.default.forwardRef((props, forwardedRef) => {
|
|
95
117
|
const { children, className, onClick, disabled = false, ...rest } = props;
|
|
96
|
-
const { buttonId, contentId, isOpen, onToggle, onClose, onOpen, value, setCurrentValue, allowToggle, } = context_1.useAccordionItemContext();
|
|
118
|
+
const { buttonId, contentId, isOpen, onToggle, onClose, onOpen, value, setCurrentValue, allowToggle, } = (0, context_1.useAccordionItemContext)();
|
|
97
119
|
const buttonRef = react_1.default.useRef(null);
|
|
98
|
-
const ref = react_merge_refs_1.default([forwardedRef, buttonRef]);
|
|
99
|
-
return (react_1.default.createElement("button",
|
|
120
|
+
const ref = (0, react_merge_refs_1.default)([forwardedRef, buttonRef]);
|
|
121
|
+
return (react_1.default.createElement("button", { ref: ref, type: "button", className: className, id: buttonId, "aria-controls": contentId, "aria-expanded": isOpen, "aria-disabled": disabled, disabled: disabled, onClick: (event) => {
|
|
100
122
|
event.stopPropagation();
|
|
101
123
|
if (onClick) {
|
|
102
124
|
onClick(event);
|
|
@@ -110,7 +132,7 @@ exports.AccordionButton = react_1.default.forwardRef((props, forwardedRef) => {
|
|
|
110
132
|
if (onOpen && !allowToggle) {
|
|
111
133
|
onOpen();
|
|
112
134
|
}
|
|
113
|
-
}
|
|
135
|
+
}, ...rest }, typeof children === "function"
|
|
114
136
|
? children({ isOpen, onClose, onOpen })
|
|
115
137
|
: children));
|
|
116
138
|
});
|
|
@@ -121,44 +143,45 @@ const AccordionIcon = ({ className, direction = "down", color, disabled = false,
|
|
|
121
143
|
left: Icon_1.ICON_TYPE.CHEVRON_LEFT,
|
|
122
144
|
right: Icon_1.ICON_TYPE.CHEVRON_RIGHT,
|
|
123
145
|
};
|
|
124
|
-
return (react_1.default.createElement(Icon_1.Icon, { className: classnames_1.default([cn({ e: "icon" }), className]), "data-direction": disabled ? undefined : direction, icon: icon[direction], color: color }));
|
|
146
|
+
return (react_1.default.createElement(Icon_1.Icon, { className: (0, classnames_1.default)([cn({ e: "icon" }), className]), "data-direction": disabled ? undefined : direction, icon: icon[direction], color: color }));
|
|
125
147
|
};
|
|
126
148
|
exports.AccordionIcon = AccordionIcon;
|
|
127
149
|
const AccordionContent = ({ children, maxHeight, style, className, scrollClassName, ...rest }) => {
|
|
128
|
-
const {
|
|
129
|
-
const { buttonId, contentId, defaultIsOpen, isOpen, } = context_1.useAccordionItemContext();
|
|
150
|
+
const { buttonId, contentId, defaultIsOpen, isOpen, } = (0, context_1.useAccordionItemContext)();
|
|
130
151
|
const [childrenRef, setChildrenRef] = react_1.default.useState({ current: null });
|
|
131
152
|
const onRefChange = react_1.default.useCallback((node) => {
|
|
132
153
|
if (node !== null) {
|
|
133
154
|
setChildrenRef({ current: node });
|
|
134
155
|
}
|
|
135
156
|
}, []);
|
|
136
|
-
const { height } = component_size_1.default(childrenRef);
|
|
137
|
-
const heightObj = { height };
|
|
138
157
|
const [enableTransition, setEnableTransition] = react_1.default.useState(!defaultIsOpen);
|
|
139
|
-
|
|
158
|
+
const { height: componentHeight } = (0, component_size_1.default)(childrenRef);
|
|
159
|
+
const { height } = (0, web_1.useSpring)({
|
|
160
|
+
height: isOpen ? componentHeight : 0,
|
|
161
|
+
immediate: !enableTransition,
|
|
162
|
+
onRest: () => {
|
|
140
163
|
if (defaultIsOpen && isOpen) {
|
|
141
164
|
setEnableTransition(true);
|
|
142
165
|
}
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
:
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
return (react_1.default.createElement(web_1.animated.div, { className: (0, classnames_1.default)("overflow-hidden box-content", className), style: { ...style, height }, "aria-labelledby": buttonId, id: contentId, role: "region", ...rest },
|
|
169
|
+
react_1.default.createElement(Box_1.Box, { ref: onRefChange, className: (0, classnames_1.default)(maxHeight && "overflow-y-auto"), style: maxHeight ? { maxHeight } : undefined }, children)));
|
|
147
170
|
};
|
|
148
171
|
exports.AccordionContent = AccordionContent;
|
|
149
172
|
const Accordion = (props) => {
|
|
150
173
|
const { title, isActive, maxHeight, children, iconSlot, className, removePadding, ...rest } = props;
|
|
151
|
-
return (react_1.default.createElement(exports.AccordionItem,
|
|
174
|
+
return (react_1.default.createElement(exports.AccordionItem, { className: className, ...rest },
|
|
152
175
|
react_1.default.createElement(Heading_1.Heading.H5, null,
|
|
153
|
-
react_1.default.createElement(exports.AccordionButton, { className: classnames_1.default(cn({ e: "button" }), {
|
|
176
|
+
react_1.default.createElement(exports.AccordionButton, { className: (0, classnames_1.default)(cn({ e: "button" }), {
|
|
154
177
|
[cn({ e: "button", m: "isActive" })]: isActive,
|
|
155
178
|
}) },
|
|
156
179
|
react_1.default.createElement(Flex_1.Flex, { className: "items-center", as: "span" },
|
|
157
|
-
iconSlot && (react_1.default.createElement(Box_1.Box, { className: classnames_1.default(cn({ e: "iconSlot" })), as: "span" }, iconSlot)),
|
|
180
|
+
iconSlot && (react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)(cn({ e: "iconSlot" })), as: "span" }, iconSlot)),
|
|
158
181
|
title),
|
|
159
182
|
react_1.default.createElement(Icon_1.Icon, { icon: Icon_1.ICON_TYPE.CHEVRON_DOWN, className: cn({ e: "chevronIcon" }) }))),
|
|
160
183
|
react_1.default.createElement(exports.AccordionContent, { className: cn({ e: "content" }), maxHeight: maxHeight },
|
|
161
|
-
react_1.default.createElement(Box_1.Box, { className: classnames_1.default(cn({ e: "children" }), !removePadding && cn({ e: "children", m: "padded" })) }, children))));
|
|
184
|
+
react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)(cn({ e: "children" }), !removePadding && cn({ e: "children", m: "padded" })) }, children))));
|
|
162
185
|
};
|
|
163
186
|
exports.Accordion = Accordion;
|
|
164
187
|
exports.Accordion.Group = exports.AccordionGroup;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Context } from "react";
|
|
2
2
|
import type { AccordionGroupOwnProps, AccordionItemOwnProps, AccordionDisclosureProps } from "./types";
|
|
3
|
-
|
|
3
|
+
type AccordionGroupContextType = {
|
|
4
4
|
totalItems?: number;
|
|
5
5
|
currentValue?: string;
|
|
6
6
|
setCurrentValue?(value: string): void;
|
|
7
7
|
} & AccordionGroupOwnProps;
|
|
8
8
|
export declare const AccordionGroupContext: Context<AccordionGroupContextType>;
|
|
9
9
|
export declare function useAccordionGroupContext(): AccordionGroupContextType;
|
|
10
|
-
|
|
10
|
+
type AccordionItemContextType = AccordionItemOwnProps & AccordionDisclosureProps & {
|
|
11
11
|
buttonId: string;
|
|
12
12
|
contentId: string;
|
|
13
13
|
currentValue?: string;
|
|
@@ -11,9 +11,9 @@ const defaultGroupContext = {
|
|
|
11
11
|
allowMultiple: true,
|
|
12
12
|
allowToggle: true,
|
|
13
13
|
};
|
|
14
|
-
exports.AccordionGroupContext = react_1.createContext(defaultGroupContext);
|
|
14
|
+
exports.AccordionGroupContext = (0, react_1.createContext)(defaultGroupContext);
|
|
15
15
|
function useAccordionGroupContext() {
|
|
16
|
-
const context = react_1.useContext(exports.AccordionGroupContext) || {
|
|
16
|
+
const context = (0, react_1.useContext)(exports.AccordionGroupContext) || {
|
|
17
17
|
...defaultGroupContext,
|
|
18
18
|
};
|
|
19
19
|
return context;
|
|
@@ -32,9 +32,9 @@ const defaultContext = {
|
|
|
32
32
|
allowMultiple: true,
|
|
33
33
|
allowToggle: true,
|
|
34
34
|
};
|
|
35
|
-
exports.AccordionItemContext = react_1.createContext(defaultContext);
|
|
35
|
+
exports.AccordionItemContext = (0, react_1.createContext)(defaultContext);
|
|
36
36
|
function useAccordionItemContext() {
|
|
37
|
-
const context = react_1.useContext(exports.AccordionItemContext) || {
|
|
37
|
+
const context = (0, react_1.useContext)(exports.AccordionItemContext) || {
|
|
38
38
|
...defaultContext,
|
|
39
39
|
};
|
|
40
40
|
return context;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { DisclosureProps } from "../../types";
|
|
3
|
-
export
|
|
3
|
+
export type AccordionGroupOwnProps = {
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
disableAnimation?: boolean;
|
|
6
6
|
allowMultiple?: boolean;
|
|
7
7
|
allowToggle?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type AccordionItemOwnProps = {
|
|
10
10
|
defaultIsOpen?: boolean;
|
|
11
11
|
value?: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type AccordionOwnProps = Pick<AccordionItemOwnProps, "defaultIsOpen"> & {
|
|
14
14
|
title: string;
|
|
15
15
|
isActive?: boolean;
|
|
16
16
|
maxHeight?: string;
|
|
17
17
|
iconSlot?: ReactNode;
|
|
18
18
|
removePadding?: ReactNode;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type AccordionDisclosureProps = DisclosureProps;
|
|
@@ -2,9 +2,9 @@ import React, { ReactNode } from "react";
|
|
|
2
2
|
import { COMPLY_COMPANY_NAME, PRODUCT_ID } from "../../types";
|
|
3
3
|
import { BoxProps } from "../Box";
|
|
4
4
|
import { LinkProps } from "../Link";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
type NavComponent = ReactNode;
|
|
6
|
+
type UserComponent = ReactNode;
|
|
7
|
+
type OrganizationComponent = ReactNode;
|
|
8
8
|
export interface AppbarProps extends BoxProps {
|
|
9
9
|
company?: COMPLY_COMPANY_NAME;
|
|
10
10
|
currentProduct?: PRODUCT_ID;
|
|
@@ -16,9 +16,9 @@ export interface AppbarProps extends BoxProps {
|
|
|
16
16
|
isProductMenuDisabled?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare const Appbar: {
|
|
19
|
-
(props: AppbarProps): JSX.Element;
|
|
20
|
-
Tabs: (props: BoxProps) => JSX.Element;
|
|
21
|
-
Tab: React.ForwardRefExoticComponent<
|
|
19
|
+
(props: AppbarProps): React.JSX.Element;
|
|
20
|
+
Tabs: (props: BoxProps) => React.JSX.Element;
|
|
21
|
+
Tab: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<{
|
|
22
22
|
children: React.ReactNode;
|
|
23
23
|
as?: any;
|
|
24
24
|
active?: boolean | undefined;
|
|
@@ -26,28 +26,28 @@ export declare const Appbar: {
|
|
|
26
26
|
User: ({ name, avatar }: {
|
|
27
27
|
avatar: React.ReactElement<import("../Avatar").AvatarProps, string | React.JSXElementConstructor<any>>;
|
|
28
28
|
name?: string | undefined;
|
|
29
|
-
}) => JSX.Element;
|
|
29
|
+
}) => React.JSX.Element;
|
|
30
30
|
UserDropdown: ({ name, avatar, children, onClose, }: {
|
|
31
31
|
avatar: React.ReactElement<import("../Avatar").AvatarProps, string | React.JSXElementConstructor<any>>;
|
|
32
32
|
children: React.ReactNode;
|
|
33
33
|
name?: string | undefined;
|
|
34
34
|
onClose?: (() => void) | undefined;
|
|
35
|
-
}) => JSX.Element;
|
|
35
|
+
}) => React.JSX.Element;
|
|
36
36
|
UserDropdownMenu: ({ children, }: {
|
|
37
37
|
children: React.ReactNode;
|
|
38
|
-
}) => JSX.Element;
|
|
38
|
+
}) => React.JSX.Element;
|
|
39
39
|
UserDropdownMenuItem: ({ children, onClick, as, className, ...rest }: {
|
|
40
40
|
[key: string]: any;
|
|
41
41
|
as?: any;
|
|
42
42
|
onClick?: (() => void) | undefined;
|
|
43
43
|
selected?: boolean | undefined;
|
|
44
|
-
}) => JSX.Element;
|
|
45
|
-
LogInButton: (props: LinkProps) => JSX.Element;
|
|
46
|
-
ClaimProfileButton: ({ onClick }: import("../Button").ButtonProps) => JSX.Element;
|
|
44
|
+
}) => React.JSX.Element;
|
|
45
|
+
LogInButton: (props: LinkProps) => React.JSX.Element;
|
|
46
|
+
ClaimProfileButton: ({ onClick }: import("../Button").ButtonProps) => React.JSX.Element;
|
|
47
47
|
Organizations: ({ children, className, }: {
|
|
48
48
|
children: React.ReactNode;
|
|
49
49
|
className?: string | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
50
|
+
}) => React.JSX.Element;
|
|
51
51
|
Organization: ({ name, status, logoSrc, hideLogo, onClick, className, }: {
|
|
52
52
|
name: string;
|
|
53
53
|
status?: ("claimed" | "unclaimed" | "pending") | undefined;
|
|
@@ -55,7 +55,7 @@ export declare const Appbar: {
|
|
|
55
55
|
hideLogo?: boolean | undefined;
|
|
56
56
|
onClick?: (() => void) | undefined;
|
|
57
57
|
className?: string | undefined;
|
|
58
|
-
}) => JSX.Element;
|
|
59
|
-
UserAvatar: (props: import("../Avatar").AvatarProps) => JSX.Element;
|
|
58
|
+
}) => React.JSX.Element;
|
|
59
|
+
UserAvatar: (props: import("../Avatar").AvatarProps) => React.JSX.Element;
|
|
60
60
|
};
|
|
61
61
|
export {};
|
|
@@ -21,8 +21,8 @@ const context_1 = require("./context");
|
|
|
21
21
|
const Appbar = (props) => {
|
|
22
22
|
const { company = types_1.COMPLY_COMPANY_NAME.CONVEYOR, logoProps, nav, user, organization, currentProduct, className, isDemoEnvironment, isProductMenuDisabled, ...rest } = props;
|
|
23
23
|
return (react_1.default.createElement(context_1.AppbarContext.Provider, { value: { company } },
|
|
24
|
-
react_1.default.createElement(Box_1.Box,
|
|
25
|
-
react_1.default.createElement(AppbarLogo_1.AppbarLogo,
|
|
24
|
+
react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)((0, config_1.cn)(), className, { isDemoEnvironment }), ...rest },
|
|
25
|
+
react_1.default.createElement(AppbarLogo_1.AppbarLogo, { ...logoProps }),
|
|
26
26
|
currentProduct && (react_1.default.createElement(AppbarProductMenu_1.AppbarProductMenu, { currentProductId: currentProduct, disabled: isProductMenuDisabled })),
|
|
27
27
|
nav,
|
|
28
28
|
(organization || user) && (react_1.default.createElement(Box_1.Box, { className: "h-full ml-auto mr-3" },
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const AppbarDropdownIcon: () => React.JSX.Element;
|
|
@@ -9,7 +9,7 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
9
9
|
const Link_1 = require("../Link");
|
|
10
10
|
const AppbarLogInButton = (props) => {
|
|
11
11
|
const { onClick, href, ...rest } = props;
|
|
12
|
-
return (react_1.default.createElement(Link_1.Link,
|
|
12
|
+
return (react_1.default.createElement(Link_1.Link, { className: (0, classnames_1.default)([
|
|
13
13
|
"py-1",
|
|
14
14
|
"px-2",
|
|
15
15
|
"text-gray-500",
|
|
@@ -20,6 +20,6 @@ const AppbarLogInButton = (props) => {
|
|
|
20
20
|
"hover:text-white",
|
|
21
21
|
"focus:text-white",
|
|
22
22
|
"focus:bg-gray-800",
|
|
23
|
-
]), noStyles: true
|
|
23
|
+
]), noStyles: true, ...rest }, "Log in"));
|
|
24
24
|
};
|
|
25
25
|
exports.AppbarLogInButton = AppbarLogInButton;
|
|
@@ -14,7 +14,7 @@ const config_1 = require("./config");
|
|
|
14
14
|
const context_1 = require("./context");
|
|
15
15
|
const types_1 = require("../../types");
|
|
16
16
|
const AppbarLogo = (props) => {
|
|
17
|
-
const { company } = context_1.useAppbarContext();
|
|
17
|
+
const { company } = (0, context_1.useAppbarContext)();
|
|
18
18
|
const { href, onClick, className, noStyles, ...rest } = props;
|
|
19
19
|
const logo = () => {
|
|
20
20
|
switch (company) {
|
|
@@ -26,6 +26,6 @@ const AppbarLogo = (props) => {
|
|
|
26
26
|
return react_1.default.createElement(ConveyorLogo_1.ConveyorLogo, { theme: types_1.THEME.BRAND, height: 20 });
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
return (react_1.default.createElement(Flex_1.Flex, { className: config_1.cn({ e: "logo" }) }, href || onClick ? (react_1.default.createElement(Link_1.Link,
|
|
29
|
+
return (react_1.default.createElement(Flex_1.Flex, { className: (0, config_1.cn)({ e: "logo" }) }, href || onClick ? (react_1.default.createElement(Link_1.Link, { className: (0, classnames_1.default)((0, config_1.cn)({ e: "logoLink" }), className), href: href, onClick: onClick, noStyles: true, ...rest }, logo())) : (react_1.default.createElement(react_1.default.Fragment, null, logo()))));
|
|
30
30
|
};
|
|
31
31
|
exports.AppbarLogo = AppbarLogo;
|