@ohos-ports/sprucelabs-react-heartwood-components 9.1.0-beta.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/LICENSE +21 -0
- package/README.md +59 -0
- package/lib/__mocks__/stubs/events.js +166 -0
- package/lib/__mocks__/stubs/events.js.map +1 -0
- package/lib/__mocks__/stubs/location.js +34 -0
- package/lib/__mocks__/stubs/location.js.map +1 -0
- package/lib/__mocks__/stubs/users.js +225 -0
- package/lib/__mocks__/stubs/users.js.map +1 -0
- package/lib/__tests__/components/Pagination/Pagination.test.js +127 -0
- package/lib/__tests__/components/Pagination/Pagination.test.js.map +1 -0
- package/lib/components/Avatar/Avatar-story.js +34 -0
- package/lib/components/Avatar/Avatar-story.js.map +1 -0
- package/lib/components/Avatar/Avatar.d.ts +40 -0
- package/lib/components/Avatar/Avatar.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.js +91 -0
- package/lib/components/Avatar/Avatar.js.map +1 -0
- package/lib/components/Avatar/UserAvatar.js +45 -0
- package/lib/components/Avatar/UserAvatar.js.map +1 -0
- package/lib/components/BotText/BotText-story.d.ts +2 -0
- package/lib/components/BotText/BotText-story.d.ts.map +1 -0
- package/lib/components/BotText/BotText-story.js +21 -0
- package/lib/components/BotText/BotText-story.js.map +1 -0
- package/lib/components/BotText/BotText.d.ts +12 -0
- package/lib/components/BotText/BotText.d.ts.map +1 -0
- package/lib/components/BotText/BotText.js +52 -0
- package/lib/components/BotText/BotText.js.map +1 -0
- package/lib/components/Button/Button-story.js +109 -0
- package/lib/components/Button/Button-story.js.map +1 -0
- package/lib/components/Button/Button.d.ts +47 -0
- package/lib/components/Button/Button.d.ts.map +1 -0
- package/lib/components/Button/Button.js +155 -0
- package/lib/components/Button/Button.js.map +1 -0
- package/lib/components/ButtonGroup/ButtonGroup-story.js +27 -0
- package/lib/components/ButtonGroup/ButtonGroup-story.js.map +1 -0
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +19 -0
- package/lib/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/lib/components/ButtonGroup/ButtonGroup.js +64 -0
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/lib/components/Card/Card-story.d.ts +2 -0
- package/lib/components/Card/Card-story.d.ts.map +1 -0
- package/lib/components/Card/Card-story.js +389 -0
- package/lib/components/Card/Card-story.js.map +1 -0
- package/lib/components/Card/Card.d.ts +69 -0
- package/lib/components/Card/Card.d.ts.map +1 -0
- package/lib/components/Card/Card.js +113 -0
- package/lib/components/Card/Card.js.map +1 -0
- package/lib/components/Card/components/CardBody.d.ts +27 -0
- package/lib/components/Card/components/CardBody.d.ts.map +1 -0
- package/lib/components/Card/components/CardBody.js +45 -0
- package/lib/components/Card/components/CardBody.js.map +1 -0
- package/lib/components/Card/components/CardBuilder.d.ts +50 -0
- package/lib/components/Card/components/CardBuilder.d.ts.map +1 -0
- package/lib/components/Card/components/CardBuilder.js +139 -0
- package/lib/components/Card/components/CardBuilder.js.map +1 -0
- package/lib/components/Card/components/CardFooter.d.ts +11 -0
- package/lib/components/Card/components/CardFooter.d.ts.map +1 -0
- package/lib/components/Card/components/CardFooter.js +22 -0
- package/lib/components/Card/components/CardFooter.js.map +1 -0
- package/lib/components/Card/components/CardHeader.d.ts +28 -0
- package/lib/components/Card/components/CardHeader.d.ts.map +1 -0
- package/lib/components/Card/components/CardHeader.js +70 -0
- package/lib/components/Card/components/CardHeader.js.map +1 -0
- package/lib/components/Card/components/CardSection.d.ts +10 -0
- package/lib/components/Card/components/CardSection.d.ts.map +1 -0
- package/lib/components/Card/components/CardSection.js +27 -0
- package/lib/components/Card/components/CardSection.js.map +1 -0
- package/lib/components/Card/components/OnboardingCard.d.ts +27 -0
- package/lib/components/Card/components/OnboardingCard.d.ts.map +1 -0
- package/lib/components/Card/components/OnboardingCard.js +129 -0
- package/lib/components/Card/components/OnboardingCard.js.map +1 -0
- package/lib/components/Card/components/Scores.d.ts +15 -0
- package/lib/components/Card/components/Scores.d.ts.map +1 -0
- package/lib/components/Card/components/Scores.js +39 -0
- package/lib/components/Card/components/Scores.js.map +1 -0
- package/lib/components/Card/index.d.ts +11 -0
- package/lib/components/Card/index.d.ts.map +1 -0
- package/lib/components/Card/index.js +120 -0
- package/lib/components/Card/index.js.map +1 -0
- package/lib/components/CircleLoader/CircleLoader-story.d.ts +2 -0
- package/lib/components/CircleLoader/CircleLoader-story.d.ts.map +1 -0
- package/lib/components/CircleLoader/CircleLoader-story.js +20 -0
- package/lib/components/CircleLoader/CircleLoader-story.js.map +1 -0
- package/lib/components/CircleLoader/CircleLoader.d.ts +13 -0
- package/lib/components/CircleLoader/CircleLoader.d.ts.map +1 -0
- package/lib/components/CircleLoader/CircleLoader.js +28 -0
- package/lib/components/CircleLoader/CircleLoader.js.map +1 -0
- package/lib/components/ContextMenu/ContextMenu-story.js +31 -0
- package/lib/components/ContextMenu/ContextMenu-story.js.map +1 -0
- package/lib/components/ContextMenu/ContextMenu.d.ts +70 -0
- package/lib/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/lib/components/ContextMenu/ContextMenu.js +315 -0
- package/lib/components/ContextMenu/ContextMenu.js.map +1 -0
- package/lib/components/Core/components/FeedBuilder/FeedBuilder-story.js +101 -0
- package/lib/components/Core/components/FeedBuilder/FeedBuilder-story.js.map +1 -0
- package/lib/components/Core/components/FeedBuilder/FeedBuilder.js +290 -0
- package/lib/components/Core/components/FeedBuilder/FeedBuilder.js.map +1 -0
- package/lib/components/Core/components/FooterPrimary/FooterPrimary.js +20 -0
- package/lib/components/Core/components/FooterPrimary/FooterPrimary.js.map +1 -0
- package/lib/components/Core/components/FooterPrimary/components/HelpButton/HelpButton.js +52 -0
- package/lib/components/Core/components/FooterPrimary/components/HelpButton/HelpButton.js.map +1 -0
- package/lib/components/Core/components/FooterPrimary/components/Legal/Legal.js +38 -0
- package/lib/components/Core/components/FooterPrimary/components/Legal/Legal.js.map +1 -0
- package/lib/components/Core/components/FooterPrimary/index.js +30 -0
- package/lib/components/Core/components/FooterPrimary/index.js.map +1 -0
- package/lib/components/Core/components/HeaderPrimary/HeaderPrimary-story.js +134 -0
- package/lib/components/Core/components/HeaderPrimary/HeaderPrimary-story.js.map +1 -0
- package/lib/components/Core/components/HeaderPrimary/HeaderPrimary.js +238 -0
- package/lib/components/Core/components/HeaderPrimary/HeaderPrimary.js.map +1 -0
- package/lib/components/Core/components/HeaderPrimary/components/DefaultLockup/DefaultLockup.js +32 -0
- package/lib/components/Core/components/HeaderPrimary/components/DefaultLockup/DefaultLockup.js.map +1 -0
- package/lib/components/Core/components/HeaderPrimary/components/Hamburger/Hamburger.js +58 -0
- package/lib/components/Core/components/HeaderPrimary/components/Hamburger/Hamburger.js.map +1 -0
- package/lib/components/Core/components/HeaderPrimary/components/LocationMenu/LocationMenu.js +169 -0
- package/lib/components/Core/components/HeaderPrimary/components/LocationMenu/LocationMenu.js.map +1 -0
- package/lib/components/Core/components/HeaderPrimary/components/UserMenu/UserMenu.js +56 -0
- package/lib/components/Core/components/HeaderPrimary/components/UserMenu/UserMenu.js.map +1 -0
- package/lib/components/Core/components/ProfileSummary/ProfileSummary-story.js +26 -0
- package/lib/components/Core/components/ProfileSummary/ProfileSummary-story.js.map +1 -0
- package/lib/components/Core/components/ProfileSummary/ProfileSummary.js +46 -0
- package/lib/components/Core/components/ProfileSummary/ProfileSummary.js.map +1 -0
- package/lib/components/Core/components/SaveBar/SaveBar-story.js +68 -0
- package/lib/components/Core/components/SaveBar/SaveBar-story.js.map +1 -0
- package/lib/components/Core/components/SaveBar/SaveBar.js +127 -0
- package/lib/components/Core/components/SaveBar/SaveBar.js.map +1 -0
- package/lib/components/Core/components/Sidebar/Sidebar-story.js +204 -0
- package/lib/components/Core/components/Sidebar/Sidebar-story.js.map +1 -0
- package/lib/components/Core/components/Sidebar/Sidebar.js +87 -0
- package/lib/components/Core/components/Sidebar/Sidebar.js.map +1 -0
- package/lib/components/Core/components/Sidebar/components/SidebarExpander/SidebarExpander.js +48 -0
- package/lib/components/Core/components/Sidebar/components/SidebarExpander/SidebarExpander.js.map +1 -0
- package/lib/components/Core/components/Sidebar/components/SidebarFooter/SidebarFooter.js +25 -0
- package/lib/components/Core/components/Sidebar/components/SidebarFooter/SidebarFooter.js.map +1 -0
- package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.d.ts +12 -0
- package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.d.ts.map +1 -0
- package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.js +47 -0
- package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.js.map +1 -0
- package/lib/components/Core/components/Sidebar/components/SidebarItem/SidebarItem.js +115 -0
- package/lib/components/Core/components/Sidebar/components/SidebarItem/SidebarItem.js.map +1 -0
- package/lib/components/Core/components/Sidebar/components/SidebarSection/SidebarSection.js +38 -0
- package/lib/components/Core/components/Sidebar/components/SidebarSection/SidebarSection.js.map +1 -0
- package/lib/components/Core/index.js +80 -0
- package/lib/components/Core/index.js.map +1 -0
- package/lib/components/Dropzone/Dropzone-story.js +119 -0
- package/lib/components/Dropzone/Dropzone-story.js.map +1 -0
- package/lib/components/Dropzone/Dropzone.js +317 -0
- package/lib/components/Dropzone/Dropzone.js.map +1 -0
- package/lib/components/EmptyState/EmptyState-story.d.ts +2 -0
- package/lib/components/EmptyState/EmptyState-story.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyState-story.js +60 -0
- package/lib/components/EmptyState/EmptyState-story.js.map +1 -0
- package/lib/components/EmptyState/EmptyState.d.ts +28 -0
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyState.js +54 -0
- package/lib/components/EmptyState/EmptyState.js.map +1 -0
- package/lib/components/EventDetails/EventDetails-story.d.ts +2 -0
- package/lib/components/EventDetails/EventDetails-story.d.ts.map +1 -0
- package/lib/components/EventDetails/EventDetails-story.js +112 -0
- package/lib/components/EventDetails/EventDetails-story.js.map +1 -0
- package/lib/components/EventDetails/EventDetails.d.ts +18 -0
- package/lib/components/EventDetails/EventDetails.d.ts.map +1 -0
- package/lib/components/EventDetails/EventDetails.js +75 -0
- package/lib/components/EventDetails/EventDetails.js.map +1 -0
- package/lib/components/EventDetails/EventDetailsUtilities.d.ts +11 -0
- package/lib/components/EventDetails/EventDetailsUtilities.d.ts.map +1 -0
- package/lib/components/EventDetails/EventDetailsUtilities.js +56 -0
- package/lib/components/EventDetails/EventDetailsUtilities.js.map +1 -0
- package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.d.ts +18 -0
- package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.d.ts.map +1 -0
- package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.js +111 -0
- package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.js.map +1 -0
- package/lib/components/EventDetails/eventDetailsMock.d.ts +10 -0
- package/lib/components/EventDetails/eventDetailsMock.d.ts.map +1 -0
- package/lib/components/EventDetails/eventDetailsMock.js +840 -0
- package/lib/components/EventDetails/eventDetailsMock.js.map +1 -0
- package/lib/components/FontLoader/FontLoader-story.js +16 -0
- package/lib/components/FontLoader/FontLoader-story.js.map +1 -0
- package/lib/components/FontLoader/FontLoader.js +148 -0
- package/lib/components/FontLoader/FontLoader.js.map +1 -0
- package/lib/components/Forms/FormPartials.js +70 -0
- package/lib/components/Forms/FormPartials.js.map +1 -0
- package/lib/components/Forms/Forms-story.js +297 -0
- package/lib/components/Forms/Forms-story.js.map +1 -0
- package/lib/components/Forms/components/Autosuggest/Autosuggest.d.ts +71 -0
- package/lib/components/Forms/components/Autosuggest/Autosuggest.d.ts.map +1 -0
- package/lib/components/Forms/components/Autosuggest/Autosuggest.js +372 -0
- package/lib/components/Forms/components/Autosuggest/Autosuggest.js.map +1 -0
- package/lib/components/Forms/components/Checkbox/Checkbox.d.ts +23 -0
- package/lib/components/Forms/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/components/Forms/components/Checkbox/Checkbox.js +162 -0
- package/lib/components/Forms/components/Checkbox/Checkbox.js.map +1 -0
- package/lib/components/Forms/components/DatePicker/DatePicker.js +236 -0
- package/lib/components/Forms/components/DatePicker/DatePicker.js.map +1 -0
- package/lib/components/Forms/components/DomainInput/DomainInput.js +29 -0
- package/lib/components/Forms/components/DomainInput/DomainInput.js.map +1 -0
- package/lib/components/Forms/components/DurationInput/DurationInput.js +270 -0
- package/lib/components/Forms/components/DurationInput/DurationInput.js.map +1 -0
- package/lib/components/Forms/components/FormBuilder/FormBuilder-story.js +357 -0
- package/lib/components/Forms/components/FormBuilder/FormBuilder-story.js.map +1 -0
- package/lib/components/Forms/components/FormBuilder/FormBuilder.js +121 -0
- package/lib/components/Forms/components/FormBuilder/FormBuilder.js.map +1 -0
- package/lib/components/Forms/components/FormBuilder/components/FormInner/FormInner.js +201 -0
- package/lib/components/Forms/components/FormBuilder/components/FormInner/FormInner.js.map +1 -0
- package/lib/components/Forms/components/FormLayout/FormLayout.js +35 -0
- package/lib/components/Forms/components/FormLayout/FormLayout.js.map +1 -0
- package/lib/components/Forms/components/FormLayout/components/FormLayoutGroup/FormLayoutGroup.js +30 -0
- package/lib/components/Forms/components/FormLayout/components/FormLayoutGroup/FormLayoutGroup.js.map +1 -0
- package/lib/components/Forms/components/FormLayout/components/FormLayoutItem/FormLayoutItem.js +32 -0
- package/lib/components/Forms/components/FormLayout/components/FormLayoutItem/FormLayoutItem.js.map +1 -0
- package/lib/components/Forms/components/FormLayout/index.js +32 -0
- package/lib/components/Forms/components/FormLayout/index.js.map +1 -0
- package/lib/components/Forms/components/PhoneInput/PhoneInput.d.ts +30 -0
- package/lib/components/Forms/components/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/lib/components/Forms/components/PhoneInput/PhoneInput.js +119 -0
- package/lib/components/Forms/components/PhoneInput/PhoneInput.js.map +1 -0
- package/lib/components/Forms/components/Radio/Radio.d.ts +15 -0
- package/lib/components/Forms/components/Radio/Radio.d.ts.map +1 -0
- package/lib/components/Forms/components/Radio/Radio.js +92 -0
- package/lib/components/Forms/components/Radio/Radio.js.map +1 -0
- package/lib/components/Forms/components/Search/Search.js +96 -0
- package/lib/components/Forms/components/Search/Search.js.map +1 -0
- package/lib/components/Forms/components/Select/Select.js +95 -0
- package/lib/components/Forms/components/Select/Select.js.map +1 -0
- package/lib/components/Forms/components/Slider/Slider.js +100 -0
- package/lib/components/Forms/components/Slider/Slider.js.map +1 -0
- package/lib/components/Forms/components/Stars/Stars.js +101 -0
- package/lib/components/Forms/components/Stars/Stars.js.map +1 -0
- package/lib/components/Forms/components/Tag/Tag.js +60 -0
- package/lib/components/Forms/components/Tag/Tag.js.map +1 -0
- package/lib/components/Forms/components/TextArea/TextArea.js +55 -0
- package/lib/components/Forms/components/TextArea/TextArea.js.map +1 -0
- package/lib/components/Forms/components/TextInput/TextInput.d.ts +28 -0
- package/lib/components/Forms/components/TextInput/TextInput.d.ts.map +1 -0
- package/lib/components/Forms/components/TextInput/TextInput.js +57 -0
- package/lib/components/Forms/components/TextInput/TextInput.js.map +1 -0
- package/lib/components/Forms/components/Toggle/Toggle.d.ts +9 -0
- package/lib/components/Forms/components/Toggle/Toggle.d.ts.map +1 -0
- package/lib/components/Forms/components/Toggle/Toggle.js +43 -0
- package/lib/components/Forms/components/Toggle/Toggle.js.map +1 -0
- package/lib/components/Forms/index.d.ts +18 -0
- package/lib/components/Forms/index.d.ts.map +1 -0
- package/lib/components/Forms/index.js +182 -0
- package/lib/components/Forms/index.js.map +1 -0
- package/lib/components/Heading/Heading-story.js +18 -0
- package/lib/components/Heading/Heading-story.js.map +1 -0
- package/lib/components/Heading/Heading.d.ts +13 -0
- package/lib/components/Heading/Heading.d.ts.map +1 -0
- package/lib/components/Heading/Heading.js +32 -0
- package/lib/components/Heading/Heading.js.map +1 -0
- package/lib/components/Icon/Icon-story.d.ts +2 -0
- package/lib/components/Icon/Icon-story.d.ts.map +1 -0
- package/lib/components/Icon/Icon-story.js +44 -0
- package/lib/components/Icon/Icon-story.js.map +1 -0
- package/lib/components/Icon/Icon.d.ts +13 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -0
- package/lib/components/Icon/Icon.js +52 -0
- package/lib/components/Icon/Icon.js.map +1 -0
- package/lib/components/Image/Image.d.ts +11 -0
- package/lib/components/Image/Image.d.ts.map +1 -0
- package/lib/components/Image/Image.js +32 -0
- package/lib/components/Image/Image.js.map +1 -0
- package/lib/components/ImageCropper/ImageCropper-story.js +219 -0
- package/lib/components/ImageCropper/ImageCropper-story.js.map +1 -0
- package/lib/components/ImageCropper/ImageCropper.js +256 -0
- package/lib/components/ImageCropper/ImageCropper.js.map +1 -0
- package/lib/components/ImageSSR/ImageSSR.js +32 -0
- package/lib/components/ImageSSR/ImageSSR.js.map +1 -0
- package/lib/components/Layout/Layout-story.js +128 -0
- package/lib/components/Layout/Layout-story.js.map +1 -0
- package/lib/components/Layout/Layout.js +43 -0
- package/lib/components/Layout/Layout.js.map +1 -0
- package/lib/components/Layout/components/LayoutSection/LayoutSection.js +38 -0
- package/lib/components/Layout/components/LayoutSection/LayoutSection.js.map +1 -0
- package/lib/components/Layout/index.js +24 -0
- package/lib/components/Layout/index.js.map +1 -0
- package/lib/components/List/List-story.d.ts +2 -0
- package/lib/components/List/List-story.d.ts.map +1 -0
- package/lib/components/List/List-story.js +241 -0
- package/lib/components/List/List-story.js.map +1 -0
- package/lib/components/List/List.d.ts +34 -0
- package/lib/components/List/List.d.ts.map +1 -0
- package/lib/components/List/List.js +83 -0
- package/lib/components/List/List.js.map +1 -0
- package/lib/components/List/components/ExpandableListItem/ExpandableListItem.d.ts +27 -0
- package/lib/components/List/components/ExpandableListItem/ExpandableListItem.d.ts.map +1 -0
- package/lib/components/List/components/ExpandableListItem/ExpandableListItem.js +93 -0
- package/lib/components/List/components/ExpandableListItem/ExpandableListItem.js.map +1 -0
- package/lib/components/List/components/ListHeader/ListHeader.d.ts +16 -0
- package/lib/components/List/components/ListHeader/ListHeader.d.ts.map +1 -0
- package/lib/components/List/components/ListHeader/ListHeader.js +51 -0
- package/lib/components/List/components/ListHeader/ListHeader.js.map +1 -0
- package/lib/components/List/components/ListItem/ListItem.d.ts +67 -0
- package/lib/components/List/components/ListItem/ListItem.d.ts.map +1 -0
- package/lib/components/List/components/ListItem/ListItem.js +206 -0
- package/lib/components/List/components/ListItem/ListItem.js.map +1 -0
- package/lib/components/List/components/SortableList/SortableList.d.ts +35 -0
- package/lib/components/List/components/SortableList/SortableList.d.ts.map +1 -0
- package/lib/components/List/components/SortableList/SortableList.js +180 -0
- package/lib/components/List/components/SortableList/SortableList.js.map +1 -0
- package/lib/components/List/index.d.ts +6 -0
- package/lib/components/List/index.d.ts.map +1 -0
- package/lib/components/List/index.js +74 -0
- package/lib/components/List/index.js.map +1 -0
- package/lib/components/Loader/Loader-story.js +30 -0
- package/lib/components/Loader/Loader-story.js.map +1 -0
- package/lib/components/Loader/Loader.js +36 -0
- package/lib/components/Loader/Loader.js.map +1 -0
- package/lib/components/Loader/Loader.test.js +17 -0
- package/lib/components/Loader/Loader.test.js.map +1 -0
- package/lib/components/MarkdownText/MarkdownText.d.ts +8 -0
- package/lib/components/MarkdownText/MarkdownText.d.ts.map +1 -0
- package/lib/components/MarkdownText/MarkdownText.js +26 -0
- package/lib/components/MarkdownText/MarkdownText.js.map +1 -0
- package/lib/components/Message/Message-story.js +135 -0
- package/lib/components/Message/Message-story.js.map +1 -0
- package/lib/components/Message/Message.js +147 -0
- package/lib/components/Message/Message.js.map +1 -0
- package/lib/components/Message/components/MessageBuilder.js +132 -0
- package/lib/components/Message/components/MessageBuilder.js.map +1 -0
- package/lib/components/Message/index.js +24 -0
- package/lib/components/Message/index.js.map +1 -0
- package/lib/components/Modal/Modal-story.js +239 -0
- package/lib/components/Modal/Modal-story.js.map +1 -0
- package/lib/components/Modal/Modal.js +86 -0
- package/lib/components/Modal/Modal.js.map +1 -0
- package/lib/components/Modal/components/ModalBody/ModalBody.js +30 -0
- package/lib/components/Modal/components/ModalBody/ModalBody.js.map +1 -0
- package/lib/components/Modal/components/ModalFooter/ModalFooter.js +31 -0
- package/lib/components/Modal/components/ModalFooter/ModalFooter.js.map +1 -0
- package/lib/components/Modal/components/ModalHeader/ModalHeader.js +84 -0
- package/lib/components/Modal/components/ModalHeader/ModalHeader.js.map +1 -0
- package/lib/components/Page/Page-story.js +115 -0
- package/lib/components/Page/Page-story.js.map +1 -0
- package/lib/components/Page/Page.js +55 -0
- package/lib/components/Page/Page.js.map +1 -0
- package/lib/components/Page/components/PageContent/PageContent.js +22 -0
- package/lib/components/Page/components/PageContent/PageContent.js.map +1 -0
- package/lib/components/Page/components/PageHeader/PageHeader.js +127 -0
- package/lib/components/Page/components/PageHeader/PageHeader.js.map +1 -0
- package/lib/components/Page/index.js +32 -0
- package/lib/components/Page/index.js.map +1 -0
- package/lib/components/PagedModal/PagedModal-story.js +121 -0
- package/lib/components/PagedModal/PagedModal-story.js.map +1 -0
- package/lib/components/PagedModal/PagedModal.js +84 -0
- package/lib/components/PagedModal/PagedModal.js.map +1 -0
- package/lib/components/Pagination/Pagination-story.js +35 -0
- package/lib/components/Pagination/Pagination-story.js.map +1 -0
- package/lib/components/Pagination/Pagination.js +157 -0
- package/lib/components/Pagination/Pagination.js.map +1 -0
- package/lib/components/RecordSelectionList/RecordSelectList-story.js +491 -0
- package/lib/components/RecordSelectionList/RecordSelectList-story.js.map +1 -0
- package/lib/components/RecordSelectionList/RecordSelectionList.d.ts +112 -0
- package/lib/components/RecordSelectionList/RecordSelectionList.d.ts.map +1 -0
- package/lib/components/RecordSelectionList/RecordSelectionList.js +702 -0
- package/lib/components/RecordSelectionList/RecordSelectionList.js.map +1 -0
- package/lib/components/RecordSelectionList/RecordSelectionListItem.d.ts +5 -0
- package/lib/components/RecordSelectionList/RecordSelectionListItem.d.ts.map +1 -0
- package/lib/components/RecordSelectionList/RecordSelectionListItem.js +20 -0
- package/lib/components/RecordSelectionList/RecordSelectionListItem.js.map +1 -0
- package/lib/components/RecordTable/RecordTable-story.d.ts +2 -0
- package/lib/components/RecordTable/RecordTable-story.d.ts.map +1 -0
- package/lib/components/RecordTable/RecordTable-story.js +242 -0
- package/lib/components/RecordTable/RecordTable-story.js.map +1 -0
- package/lib/components/RecordTable/RecordTable.d.ts +133 -0
- package/lib/components/RecordTable/RecordTable.d.ts.map +1 -0
- package/lib/components/RecordTable/RecordTable.js +523 -0
- package/lib/components/RecordTable/RecordTable.js.map +1 -0
- package/lib/components/SplitButton/SplitButton-story.js +60 -0
- package/lib/components/SplitButton/SplitButton-story.js.map +1 -0
- package/lib/components/SplitButton/SplitButton.d.ts +47 -0
- package/lib/components/SplitButton/SplitButton.d.ts.map +1 -0
- package/lib/components/SplitButton/SplitButton.js +296 -0
- package/lib/components/SplitButton/SplitButton.js.map +1 -0
- package/lib/components/Subheading/Subheading-story.js +18 -0
- package/lib/components/Subheading/Subheading-story.js.map +1 -0
- package/lib/components/Subheading/Subheading.js +40 -0
- package/lib/components/Subheading/Subheading.js.map +1 -0
- package/lib/components/Table/Table-story.js +428 -0
- package/lib/components/Table/Table-story.js.map +1 -0
- package/lib/components/Table/Table.d.ts +63 -0
- package/lib/components/Table/Table.d.ts.map +1 -0
- package/lib/components/Table/Table.js +395 -0
- package/lib/components/Table/Table.js.map +1 -0
- package/lib/components/Table/components/TableFilters/TableFilters.js +31 -0
- package/lib/components/Table/components/TableFilters/TableFilters.js.map +1 -0
- package/lib/components/Table/components/TableSearch/TableSearch.d.ts +7 -0
- package/lib/components/Table/components/TableSearch/TableSearch.d.ts.map +1 -0
- package/lib/components/Table/components/TableSearch/TableSearch.js +30 -0
- package/lib/components/Table/components/TableSearch/TableSearch.js.map +1 -0
- package/lib/components/Table/index.d.ts +4 -0
- package/lib/components/Table/index.d.ts.map +1 -0
- package/lib/components/Table/index.js +40 -0
- package/lib/components/Table/index.js.map +1 -0
- package/lib/components/Tabs/Tabs-story.d.ts +2 -0
- package/lib/components/Tabs/Tabs-story.d.ts.map +1 -0
- package/lib/components/Tabs/Tabs-story.js +36 -0
- package/lib/components/Tabs/Tabs-story.js.map +1 -0
- package/lib/components/Tabs/Tabs.d.ts +40 -0
- package/lib/components/Tabs/Tabs.d.ts.map +1 -0
- package/lib/components/Tabs/Tabs.js +244 -0
- package/lib/components/Tabs/Tabs.js.map +1 -0
- package/lib/components/Tabs/components/Tab/Tab.d.ts +26 -0
- package/lib/components/Tabs/components/Tab/Tab.d.ts.map +1 -0
- package/lib/components/Tabs/components/Tab/Tab.js +46 -0
- package/lib/components/Tabs/components/Tab/Tab.js.map +1 -0
- package/lib/components/Text/Text-story.d.ts +2 -0
- package/lib/components/Text/Text-story.d.ts.map +1 -0
- package/lib/components/Text/Text-story.js +51 -0
- package/lib/components/Text/Text-story.js.map +1 -0
- package/lib/components/Text/Text.d.ts +18 -0
- package/lib/components/Text/Text.d.ts.map +1 -0
- package/lib/components/Text/Text.js +123 -0
- package/lib/components/Text/Text.js.map +1 -0
- package/lib/components/TextContainer/TextContainer-story.js +32 -0
- package/lib/components/TextContainer/TextContainer-story.js.map +1 -0
- package/lib/components/TextContainer/TextContainer.js +33 -0
- package/lib/components/TextContainer/TextContainer.js.map +1 -0
- package/lib/components/TextStyle/TextStyle-story.js +28 -0
- package/lib/components/TextStyle/TextStyle-story.js.map +1 -0
- package/lib/components/TextStyle/TextStyle.js +41 -0
- package/lib/components/TextStyle/TextStyle.js.map +1 -0
- package/lib/components/Toast/Toast-story.d.ts +2 -0
- package/lib/components/Toast/Toast-story.d.ts.map +1 -0
- package/lib/components/Toast/Toast-story.js +210 -0
- package/lib/components/Toast/Toast-story.js.map +1 -0
- package/lib/components/Toast/Toast.d.ts +24 -0
- package/lib/components/Toast/Toast.d.ts.map +1 -0
- package/lib/components/Toast/Toast.js +76 -0
- package/lib/components/Toast/Toast.js.map +1 -0
- package/lib/components/Toast/components/ToastWrapper/ToastWrapper.d.ts +24 -0
- package/lib/components/Toast/components/ToastWrapper/ToastWrapper.d.ts.map +1 -0
- package/lib/components/Toast/components/ToastWrapper/ToastWrapper.js +131 -0
- package/lib/components/Toast/components/ToastWrapper/ToastWrapper.js.map +1 -0
- package/lib/components/TruncatedList/TruncatedList-story.js +222 -0
- package/lib/components/TruncatedList/TruncatedList-story.js.map +1 -0
- package/lib/components/TruncatedList/TruncatedList.d.ts +49 -0
- package/lib/components/TruncatedList/TruncatedList.d.ts.map +1 -0
- package/lib/components/TruncatedList/TruncatedList.js +188 -0
- package/lib/components/TruncatedList/TruncatedList.js.map +1 -0
- package/lib/components/View/View-story.js +485 -0
- package/lib/components/View/View-story.js.map +1 -0
- package/lib/components/View/View.d.ts +26 -0
- package/lib/components/View/View.d.ts.map +1 -0
- package/lib/components/View/View.js +91 -0
- package/lib/components/View/View.js.map +1 -0
- package/lib/components/_utilities/Anchor.js +28 -0
- package/lib/components/_utilities/Anchor.js.map +1 -0
- package/lib/custom-types.d.js +2 -0
- package/lib/custom-types.d.js.map +1 -0
- package/lib/icons.js +3328 -0
- package/lib/icons.js.map +1 -0
- package/lib/index.d.ts +46 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +707 -0
- package/lib/index.js.map +1 -0
- package/lib/stubs/events.js +166 -0
- package/lib/stubs/events.js.map +1 -0
- package/lib/stubs/location.js +34 -0
- package/lib/stubs/location.js.map +1 -0
- package/lib/stubs/users.js +225 -0
- package/lib/stubs/users.js.map +1 -0
- package/lib/utilities.js +23 -0
- package/lib/utilities.js.map +1 -0
- package/package.json +174 -0
- package/static/android-chrome-192x192.png +0 -0
- package/static/android-chrome-256x256.png +0 -0
- package/static/apple-touch-icon.png +0 -0
- package/static/assets/bg.jpeg +0 -0
- package/static/assets/icons/Design/Rotate/rotate-back.svg +9 -0
- package/static/assets/icons/Design/Rotate/rotate-forward.svg +9 -0
- package/static/assets/icons/Interface-Essential/Alerts/alert-triangle--16w.svg +3 -0
- package/static/assets/icons/Interface-Essential/Alerts/alert-triangle--56w.svg +5 -0
- package/static/assets/icons/Interface-Essential/Alerts/alert-triangle.svg +3 -0
- package/static/assets/icons/Interface-Essential/Dashboard/gauge-dashboard-1.svg +11 -0
- package/static/assets/icons/Interface-Essential/Date/Calendar/calendar-3.svg +12 -0
- package/static/assets/icons/Interface-Essential/Date/Calendar/calendar-date.svg +9 -0
- package/static/assets/icons/Interface-Essential/Delete/bin.svg +7 -0
- package/static/assets/icons/Interface-Essential/Edit/pencil-write.svg +5 -0
- package/static/assets/icons/Interface-Essential/Form-Edition/paper-write.svg +8 -0
- package/static/assets/icons/Interface-Essential/Form-Validation/check-circle-1.svg +4 -0
- package/static/assets/icons/Interface-Essential/Help/question-help-square--16w.svg +5 -0
- package/static/assets/icons/Interface-Essential/Help/question-help-square.svg +5 -0
- package/static/assets/icons/Interface-Essential/Home/house-1--16w.svg +4 -0
- package/static/assets/icons/Interface-Essential/Home/house-1.svg +4 -0
- package/static/assets/icons/Interface-Essential/Lists/list-bullets-1.svg +8 -0
- package/static/assets/icons/Interface-Essential/Lock/Unlock/Lock/Unlock-4.svg +5 -0
- package/static/assets/icons/Interface-Essential/Lock/Unlock/lock-6--16w.svg +3 -0
- package/static/assets/icons/Interface-Essential/Lock/Unlock/lock-6.svg +5 -0
- package/static/assets/icons/Interface-Essential/Login/Logout/logout.svg +5 -0
- package/static/assets/icons/Interface-Essential/Menu/navigation-menu-horizontal.svg +5 -0
- package/static/assets/icons/Interface-Essential/Select/cursor-select-4.svg +14 -0
- package/static/assets/icons/Interface-Essential/Time/stopwatch.svg +8 -0
- package/static/assets/icons/Interface-Essential/Time-Files/time-clock-file-check.svg +7 -0
- package/static/assets/icons/Interface-Essential/Time-Files/time-clock-file-upload.svg +9 -0
- package/static/assets/icons/Maps-Navigation/Pins/pin-2.svg +4 -0
- package/static/assets/icons/Maps-Navigation/Pins/pin.svg +4 -0
- package/static/assets/icons/Messages-Chat-Smileys/Conversation/conversation-text--16w.svg +8 -0
- package/static/assets/icons/Messages-Chat-Smileys/Conversation/conversation-text.svg +8 -0
- package/static/assets/icons/Messages-Chat-Smileys/Messages-Speech-Bubbles/messages-bubble-square-text.svg +5 -0
- package/static/assets/icons/Phones-Mobile-Devices/Phone/phone-retro-1.svg +7 -0
- package/static/assets/icons/Programming-Apps-Websites/Plugins/Modules/module-puzzle.svg +3 -0
- package/static/assets/icons/Shopping-E-Commerce/Shops/shop-1--56w.svg +6 -0
- package/static/assets/icons/Shopping-E-Commerce/Shops/shop-1.svg +7 -0
- package/static/assets/icons/Social-Medias-Rewards-Rating/Rating/rating-star-1-1.svg +3 -0
- package/static/assets/icons/Social-Medias-Rewards-Rating/Rating/rating-star-1.svg +3 -0
- package/static/assets/icons/Transportation/Aircraft/aircraft-military-plane.svg +18 -0
- package/static/assets/icons/Users/Geometric-Close-Up-Single-User-Actions-Neutral/single-neutral-actions-image--56w.svg +7 -0
- package/static/assets/icons/Users/Geometric-Close-Up-Single-User-Actions-Neutral/single-neutral-actions-up-down.svg +8 -0
- package/static/assets/icons/Users/Geometric-Close-Up-Single-User-Neutral/single-neutral-id-card-3.svg +8 -0
- package/static/assets/icons/Users/Geometric-Full-Body-Multiple-Users/multiple-users-1.svg +8 -0
- package/static/assets/icons/Work-Office-Companies/Human-Resources/human-resources-search-team--16w.svg +8 -0
- package/static/assets/icons/Work-Office-Companies/Human-Resources/human-resources-search-team.svg +8 -0
- package/static/assets/icons/ic_add.svg +5 -0
- package/static/assets/icons/ic_add_circle_outline.svg +3 -0
- package/static/assets/icons/ic_arrow_back.svg +3 -0
- package/static/assets/icons/ic_arrow_drop_down.svg +3 -0
- package/static/assets/icons/ic_arrow_forward.svg +3 -0
- package/static/assets/icons/ic_button.svg +3 -0
- package/static/assets/icons/ic_calendar.svg +12 -0
- package/static/assets/icons/ic_cancel.svg +8 -0
- package/static/assets/icons/ic_caution.svg +3 -0
- package/static/assets/icons/ic_caution_light_large.svg +5 -0
- package/static/assets/icons/ic_check_box.svg +3 -0
- package/static/assets/icons/ic_check_box_outline_blank.svg +3 -0
- package/static/assets/icons/ic_check_circle.svg +3 -0
- package/static/assets/icons/ic_close.svg +3 -0
- package/static/assets/icons/ic_colors.svg +8 -0
- package/static/assets/icons/ic_complete.svg +4 -0
- package/static/assets/icons/ic_css.svg +7 -0
- package/static/assets/icons/ic_dashboard.svg +11 -0
- package/static/assets/icons/ic_date.svg +9 -0
- package/static/assets/icons/ic_date_disable.svg +8 -0
- package/static/assets/icons/ic_delete.svg +7 -0
- package/static/assets/icons/ic_disable.svg +3 -0
- package/static/assets/icons/ic_drag_handle.svg +3 -0
- package/static/assets/icons/ic_drop_light_large.svg +14 -0
- package/static/assets/icons/ic_edit.svg +5 -0
- package/static/assets/icons/ic_email.svg +6 -0
- package/static/assets/icons/ic_fonts.svg +6 -0
- package/static/assets/icons/ic_fullscreen.svg +3 -0
- package/static/assets/icons/ic_fullscreen_exit.svg +3 -0
- package/static/assets/icons/ic_guests.svg +8 -0
- package/static/assets/icons/ic_help.svg +5 -0
- package/static/assets/icons/ic_home.svg +4 -0
- package/static/assets/icons/ic_indeterminate_check_box.svg +3 -0
- package/static/assets/icons/ic_keyboard_arrow_left.svg +3 -0
- package/static/assets/icons/ic_keyboard_arrow_right.svg +3 -0
- package/static/assets/icons/ic_late.svg +5 -0
- package/static/assets/icons/ic_launch.svg +18 -0
- package/static/assets/icons/ic_location.svg +4 -0
- package/static/assets/icons/ic_logout.svg +5 -0
- package/static/assets/icons/ic_menu.svg +3 -0
- package/static/assets/icons/ic_message.svg +5 -0
- package/static/assets/icons/ic_message_failed.svg +7 -0
- package/static/assets/icons/ic_messages.svg +8 -0
- package/static/assets/icons/ic_more.svg +5 -0
- package/static/assets/icons/ic_new_tab.svg +3 -0
- package/static/assets/icons/ic_note.svg +8 -0
- package/static/assets/icons/ic_payment_failed_solid.svg +5 -0
- package/static/assets/icons/ic_payment_success_solid.svg +5 -0
- package/static/assets/icons/ic_phone.svg +7 -0
- package/static/assets/icons/ic_pin.svg +4 -0
- package/static/assets/icons/ic_pin_outline.svg +4 -0
- package/static/assets/icons/ic_power.svg +4 -0
- package/static/assets/icons/ic_private.svg +5 -0
- package/static/assets/icons/ic_profile_image_light_large.svg +7 -0
- package/static/assets/icons/ic_public.svg +5 -0
- package/static/assets/icons/ic_radio_button_checked.svg +3 -0
- package/static/assets/icons/ic_radio_button_unchecked.svg +3 -0
- package/static/assets/icons/ic_rotate_left.svg +9 -0
- package/static/assets/icons/ic_rotate_right.svg +9 -0
- package/static/assets/icons/ic_search.svg +3 -0
- package/static/assets/icons/ic_settings.svg +4 -0
- package/static/assets/icons/ic_shop_light_large.svg +6 -0
- package/static/assets/icons/ic_show.svg +4 -0
- package/static/assets/icons/ic_skill.svg +3 -0
- package/static/assets/icons/ic_star_outline.svg +3 -0
- package/static/assets/icons/ic_star_solid.svg +3 -0
- package/static/assets/icons/ic_status.svg +8 -0
- package/static/assets/icons/ic_store.svg +7 -0
- package/static/assets/icons/ic_switch_users.svg +8 -0
- package/static/assets/icons/ic_team.svg +8 -0
- package/static/assets/icons/ic_teammates.svg +8 -0
- package/static/assets/icons/ic_unordered_list.svg +8 -0
- package/static/assets/icons/ic_upload.svg +8 -0
- package/static/assets/icons/ic_upload_file_light_large.svg +9 -0
- package/static/assets/icons/ic_upload_file_success_light_large.svg +7 -0
- package/static/assets/icons/ic_user_avatar.svg +3 -0
- package/static/assets/icons/ic_wifi.svg +9 -0
- package/static/assets/icons/s-ic_spruce-logo-02.svg +3 -0
- package/static/assets/icons/s-ic_spruce-logo.svg +3 -0
- package/static/assets/logo.png +0 -0
- package/static/assets/users/user-01--96w.png +0 -0
- package/static/assets/users/user-01.png +0 -0
- package/static/assets/users/user-02--96w.png +0 -0
- package/static/assets/users/user-03--96w.png +0 -0
- package/static/assets/users/user-04--96w.png +0 -0
- package/static/assets/users/user-04.png +0 -0
- package/static/assets/users/user-05--96w.png +0 -0
- package/static/assets/users/user-05.png +0 -0
- package/static/assets/users/user-06--96w.png +0 -0
- package/static/assets/users/user-06.png +0 -0
- package/static/assets/users/user-07--96w.png +0 -0
- package/static/assets/users/user-07.png +0 -0
- package/static/assets/users/user-08--96w.png +0 -0
- package/static/assets/users/user-08.png +0 -0
- package/static/assets/users/user-09--96w.png +0 -0
- package/static/assets/users/user-09.png +0 -0
- package/static/assets/users/user-placeholder--96w.png +0 -0
- package/static/assets/users/user-placeholder.png +0 -0
- package/static/browserconfig.xml +9 -0
- package/static/favicon-16x16.png +0 -0
- package/static/favicon-32x32.png +0 -0
- package/static/favicon.ico +0 -0
- package/static/mstile-150x150.png +0 -0
- package/static/safari-pinned-tab.svg +26 -0
- package/static/site.webmanifest +19 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports["default"] = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
+
|
|
16
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
|
+
|
|
18
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
19
|
+
|
|
20
|
+
var _getPrototypeOf3 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
21
|
+
|
|
22
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
23
|
+
|
|
24
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
25
|
+
|
|
26
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
27
|
+
|
|
28
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
29
|
+
|
|
30
|
+
var _Card = _interopRequireDefault(require("../Card"));
|
|
31
|
+
|
|
32
|
+
var _CardHeader = _interopRequireDefault(require("./CardHeader"));
|
|
33
|
+
|
|
34
|
+
var _CardBody = _interopRequireDefault(require("./CardBody"));
|
|
35
|
+
|
|
36
|
+
var _CardFooter = _interopRequireDefault(require("./CardFooter"));
|
|
37
|
+
|
|
38
|
+
var _Tabs = _interopRequireDefault(require("../../Tabs/Tabs"));
|
|
39
|
+
|
|
40
|
+
var _Button = _interopRequireWildcard(require("../../Button/Button"));
|
|
41
|
+
|
|
42
|
+
var _ = require("../../..");
|
|
43
|
+
|
|
44
|
+
var getCurrentStep = function getCurrentStep(steps) {
|
|
45
|
+
// Find the first step that is not complete
|
|
46
|
+
if (steps && steps.length > 0) {
|
|
47
|
+
for (var i = 0; i < steps.length; i++) {
|
|
48
|
+
if (!steps[i].isComplete) {
|
|
49
|
+
return i;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return 0;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
var OnboardingCard =
|
|
58
|
+
/*#__PURE__*/
|
|
59
|
+
function (_Component) {
|
|
60
|
+
(0, _inherits2["default"])(OnboardingCard, _Component);
|
|
61
|
+
|
|
62
|
+
function OnboardingCard() {
|
|
63
|
+
var _getPrototypeOf2;
|
|
64
|
+
|
|
65
|
+
var _this;
|
|
66
|
+
|
|
67
|
+
(0, _classCallCheck2["default"])(this, OnboardingCard);
|
|
68
|
+
|
|
69
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
70
|
+
args[_key] = arguments[_key];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
_this = (0, _possibleConstructorReturn2["default"])(this, (_getPrototypeOf2 = (0, _getPrototypeOf3["default"])(OnboardingCard)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
74
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
|
75
|
+
currentStep: getCurrentStep(_this.props.steps)
|
|
76
|
+
});
|
|
77
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClick", function (idx) {
|
|
78
|
+
_this.setState({
|
|
79
|
+
currentStep: idx
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
(0, _createClass2["default"])(OnboardingCard, [{
|
|
86
|
+
key: "render",
|
|
87
|
+
value: function render() {
|
|
88
|
+
var _this2 = this;
|
|
89
|
+
|
|
90
|
+
var currentStep = this.state.currentStep;
|
|
91
|
+
var _this$props = this.props,
|
|
92
|
+
title = _this$props.title,
|
|
93
|
+
steps = _this$props.steps;
|
|
94
|
+
var tabs = (0, _.unionArray)(steps).map(function (step, idx) {
|
|
95
|
+
return {
|
|
96
|
+
text: step.tabTitle,
|
|
97
|
+
icon: step.tabIcon,
|
|
98
|
+
isCurrent: idx === currentStep,
|
|
99
|
+
onClick: function onClick() {
|
|
100
|
+
return _this2.handleClick(idx);
|
|
101
|
+
},
|
|
102
|
+
className: step.isComplete ? 'tab--is-complete' : ''
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
return _react["default"].createElement(_Card["default"], {
|
|
106
|
+
className: "onboarding-card"
|
|
107
|
+
}, _react["default"].createElement("div", {
|
|
108
|
+
className: "onboarding-card__header"
|
|
109
|
+
}, _react["default"].createElement("p", {
|
|
110
|
+
className: "onboarding-card__title"
|
|
111
|
+
}, title), tabs && _react["default"].createElement(_Tabs["default"], {
|
|
112
|
+
tabs: tabs,
|
|
113
|
+
isPadded: false,
|
|
114
|
+
isTruncatable: false
|
|
115
|
+
})), _react["default"].createElement(_CardHeader["default"], {
|
|
116
|
+
title: steps[currentStep].panelTitle
|
|
117
|
+
}), _react["default"].createElement(_CardBody["default"], {
|
|
118
|
+
isSectioned: true,
|
|
119
|
+
isFullBleed: false
|
|
120
|
+
}, steps[currentStep].panelCopy), steps[currentStep].panelCTA && _react["default"].createElement(_CardFooter["default"], null, _react["default"].createElement(_Button["default"], (0, _extends2["default"])({
|
|
121
|
+
kind: _Button.ButtonKinds.Primary
|
|
122
|
+
}, steps[currentStep].panelCTA))));
|
|
123
|
+
}
|
|
124
|
+
}]);
|
|
125
|
+
return OnboardingCard;
|
|
126
|
+
}(_react.Component);
|
|
127
|
+
|
|
128
|
+
exports["default"] = OnboardingCard;
|
|
129
|
+
//# sourceMappingURL=OnboardingCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/components/OnboardingCard.tsx"],"names":["getCurrentStep","steps","length","i","isComplete","OnboardingCard","currentStep","props","idx","setState","state","title","tabs","map","step","text","tabTitle","icon","tabIcon","isCurrent","onClick","handleClick","className","panelTitle","panelCopy","panelCTA","ButtonKinds","Primary","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAMA;;AAsBA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAsD;AAC5E;AACA,MAAIA,KAAK,IAAIA,KAAK,CAACC,MAAN,GAAe,CAA5B,EAA+B;AAC9B,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,KAAK,CAACC,MAA1B,EAAkCC,CAAC,EAAnC,EAAuC;AACtC,UAAI,CAACF,KAAK,CAACE,CAAD,CAAL,CAASC,UAAd,EAA0B;AACzB,eAAOD,CAAP;AACA;AACD;AACD;;AACD,SAAO,CAAP;AACA,CAVD;;IAYqBE,c;;;;;;;;;;;;;;;;;8FAIL;AACdC,MAAAA,WAAW,EAAEN,cAAc,CAAC,MAAKO,KAAL,CAAWN,KAAZ;AADb,K;oGAIM,UAACO,GAAD,EAAiB;AACrC,YAAKC,QAAL,CAAc;AACbH,QAAAA,WAAW,EAAEE;AADA,OAAd;AAGA,K;;;;;;6BAEmC;AAAA;;AAAA,UAC3BF,WAD2B,GACX,KAAKI,KADM,CAC3BJ,WAD2B;AAAA,wBAEV,KAAKC,KAFK;AAAA,UAE3BI,KAF2B,eAE3BA,KAF2B;AAAA,UAEpBV,KAFoB,eAEpBA,KAFoB;AAGnC,UAAMW,IAAI,GAAG,kBAAWX,KAAX,EAAkBY,GAAlB,CAAsB,UAACC,IAAD,EAAON,GAAP;AAAA,eAAgB;AAClDO,UAAAA,IAAI,EAAED,IAAI,CAACE,QADuC;AAElDC,UAAAA,IAAI,EAAEH,IAAI,CAACI,OAFuC;AAGlDC,UAAAA,SAAS,EAAEX,GAAG,KAAKF,WAH+B;AAIlDc,UAAAA,OAAO,EAAE;AAAA,mBAAM,MAAI,CAACC,WAAL,CAAiBb,GAAjB,CAAN;AAAA,WAJyC;AAKlDc,UAAAA,SAAS,EAAER,IAAI,CAACV,UAAL,GAAkB,kBAAlB,GAAuC;AALA,SAAhB;AAAA,OAAtB,CAAb;AAQA,aACC,gCAAC,gBAAD;AAAM,QAAA,SAAS,EAAC;AAAhB,SACC;AAAK,QAAA,SAAS,EAAC;AAAf,SACC;AAAG,QAAA,SAAS,EAAC;AAAb,SAAuCO,KAAvC,CADD,EAEEC,IAAI,IAAI,gCAAC,gBAAD;AAAM,QAAA,IAAI,EAAEA,IAAZ;AAAkB,QAAA,QAAQ,EAAE,KAA5B;AAAmC,QAAA,aAAa,EAAE;AAAlD,QAFV,CADD,EAKC,gCAAC,sBAAD;AAAY,QAAA,KAAK,EAAEX,KAAK,CAACK,WAAD,CAAL,CAAmBiB;AAAtC,QALD,EAMC,gCAAC,oBAAD;AAAU,QAAA,WAAW,MAArB;AAAsB,QAAA,WAAW,EAAE;AAAnC,SACEtB,KAAK,CAACK,WAAD,CAAL,CAAmBkB,SADrB,CAND,EASEvB,KAAK,CAACK,WAAD,CAAL,CAAmBmB,QAAnB,IACA,gCAAC,sBAAD,QACC,gCAAC,kBAAD;AACC,QAAA,IAAI,EAAEC,oBAAYC;AADnB,SAEK1B,KAAK,CAACK,WAAD,CAAL,CAAmBmB,QAFxB,EADD,CAVF,CADD;AAoBA;;;EA7C0CG,gB","sourcesContent":["import React, { Component } from 'react'\nimport Card from '../Card'\nimport CardHeader from './CardHeader'\nimport CardBody from './CardBody'\nimport CardFooter from './CardFooter'\nimport Tabs from '../../Tabs/Tabs'\nimport Button, { IButtonProps, ButtonKinds } from '../../Button/Button'\nimport {\n\tIHWOnboardingCard,\n\tIHWOnboardingCardStep\n} from '@sprucelabs/spruce-types'\nimport { IIconProps } from '../../Icon/Icon'\nimport { unionArray } from '../../..'\n\nexport interface IStep\n\textends Omit<IHWOnboardingCardStep, 'panelCTA' | 'tabIcon'> {\n\t/** Primary CTA of this step */\n\tpanelCTA?: IButtonProps | null\n\n\ttabIcon?: IIconProps | null\n}\n\nexport interface IOnboardingCardProps extends Omit<IHWOnboardingCard, 'steps'> {\n\t/** Steps for onboarding */\n\tsteps: IStep[]\n\n\t/** Optional class to add */\n\tclassName?: string\n}\n\ninterface IOnboardingCardState {\n\tcurrentStep: number\n}\n\nconst getCurrentStep = (steps: IStep[] | IHWOnboardingCardStep[]): number => {\n\t// Find the first step that is not complete\n\tif (steps && steps.length > 0) {\n\t\tfor (let i = 0; i < steps.length; i++) {\n\t\t\tif (!steps[i].isComplete) {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t}\n\treturn 0\n}\n\nexport default class OnboardingCard extends Component<\n\tIOnboardingCardProps | IHWOnboardingCard,\n\tIOnboardingCardState\n> {\n\tpublic state = {\n\t\tcurrentStep: getCurrentStep(this.props.steps)\n\t}\n\n\tpublic handleClick = (idx: number) => {\n\t\tthis.setState({\n\t\t\tcurrentStep: idx\n\t\t})\n\t}\n\n\tpublic render(): React.ReactElement {\n\t\tconst { currentStep } = this.state\n\t\tconst { title, steps } = this.props\n\t\tconst tabs = unionArray(steps).map((step, idx) => ({\n\t\t\ttext: step.tabTitle,\n\t\t\ticon: step.tabIcon,\n\t\t\tisCurrent: idx === currentStep,\n\t\t\tonClick: () => this.handleClick(idx),\n\t\t\tclassName: step.isComplete ? 'tab--is-complete' : ''\n\t\t}))\n\n\t\treturn (\n\t\t\t<Card className=\"onboarding-card\">\n\t\t\t\t<div className=\"onboarding-card__header\">\n\t\t\t\t\t<p className=\"onboarding-card__title\">{title}</p>\n\t\t\t\t\t{tabs && <Tabs tabs={tabs} isPadded={false} isTruncatable={false} />}\n\t\t\t\t</div>\n\t\t\t\t<CardHeader title={steps[currentStep].panelTitle} />\n\t\t\t\t<CardBody isSectioned isFullBleed={false}>\n\t\t\t\t\t{steps[currentStep].panelCopy}\n\t\t\t\t</CardBody>\n\t\t\t\t{steps[currentStep].panelCTA && (\n\t\t\t\t\t<CardFooter>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tkind={ButtonKinds.Primary}\n\t\t\t\t\t\t\t{...steps[currentStep].panelCTA}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</CardFooter>\n\t\t\t\t)}\n\t\t\t</Card>\n\t\t)\n\t}\n}\n"],"file":"OnboardingCard.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IPanelProps {
|
|
3
|
+
/** Unique id for looping. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Description of the corresponding value. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** The value to display. */
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
interface IScoresProps {
|
|
11
|
+
scores: IPanelProps[];
|
|
12
|
+
}
|
|
13
|
+
declare const Scores: (props: IScoresProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
|
14
|
+
export default Scores;
|
|
15
|
+
//# sourceMappingURL=Scores.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scores.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/components/Scores.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,WAAW;IACpB,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAA;IAEV,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAA;IAEb,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;CACb;AAYD,UAAU,YAAY;IACrB,MAAM,EAAE,WAAW,EAAE,CAAA;CACrB;AAED,QAAA,MAAM,MAAM,yOASX,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var ScorePanel = function ScorePanel(props) {
|
|
15
|
+
var label = props.label,
|
|
16
|
+
value = props.value;
|
|
17
|
+
return _react["default"].createElement("div", {
|
|
18
|
+
className: "card__score"
|
|
19
|
+
}, _react["default"].createElement("p", {
|
|
20
|
+
className: "card__score-label"
|
|
21
|
+
}, label), _react["default"].createElement("p", {
|
|
22
|
+
className: "card__score-value"
|
|
23
|
+
}, value));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var Scores = function Scores(props) {
|
|
27
|
+
var scores = props.scores;
|
|
28
|
+
return _react["default"].createElement("div", {
|
|
29
|
+
className: "card__scores"
|
|
30
|
+
}, scores.map(function (score) {
|
|
31
|
+
return _react["default"].createElement(ScorePanel, (0, _extends2["default"])({
|
|
32
|
+
key: score.id
|
|
33
|
+
}, score));
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var _default = Scores;
|
|
38
|
+
exports["default"] = _default;
|
|
39
|
+
//# sourceMappingURL=Scores.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/components/Scores.tsx"],"names":["ScorePanel","props","label","value","Scores","scores","map","score","id"],"mappings":";;;;;;;;;;;AAAA;;AAaA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAA4C;AAAA,MACtDC,KADsD,GACrCD,KADqC,CACtDC,KADsD;AAAA,MAC/CC,KAD+C,GACrCF,KADqC,CAC/CE,KAD+C;AAE9D,SACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACC;AAAG,IAAA,SAAS,EAAC;AAAb,KAAkCD,KAAlC,CADD,EAEC;AAAG,IAAA,SAAS,EAAC;AAAb,KAAkCC,KAAlC,CAFD,CADD;AAMA,CARD;;AAcA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACH,KAAD,EAA6C;AAAA,MACnDI,MADmD,GACxCJ,KADwC,CACnDI,MADmD;AAE3D,SACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACEA,MAAM,CAACC,GAAP,CAAW,UAAAC,KAAK;AAAA,WAChB,gCAAC,UAAD;AAAY,MAAA,GAAG,EAAEA,KAAK,CAACC;AAAvB,OAA+BD,KAA/B,EADgB;AAAA,GAAhB,CADF,CADD;AAOA,CATD;;eAWeH,M","sourcesContent":["import React from 'react'\n\ninterface IPanelProps {\n\t/** Unique id for looping. */\n\tid: string\n\n\t/** Description of the corresponding value. */\n\tlabel: string\n\n\t/** The value to display. */\n\tvalue: string\n}\n\nconst ScorePanel = (props: IPanelProps): React.ReactElement => {\n\tconst { label, value } = props\n\treturn (\n\t\t<div className=\"card__score\">\n\t\t\t<p className=\"card__score-label\">{label}</p>\n\t\t\t<p className=\"card__score-value\">{value}</p>\n\t\t</div>\n\t)\n}\n\ninterface IScoresProps {\n\tscores: IPanelProps[]\n}\n\nconst Scores = (props: IScoresProps): React.ReactElement => {\n\tconst { scores } = props\n\treturn (\n\t\t<div className=\"card__scores\">\n\t\t\t{scores.map(score => (\n\t\t\t\t<ScorePanel key={score.id} {...score} />\n\t\t\t))}\n\t\t</div>\n\t)\n}\n\nexport default Scores\n"],"file":"Scores.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as Card, ICardProps } from './Card';
|
|
2
|
+
import Card from './Card';
|
|
3
|
+
export default Card;
|
|
4
|
+
export { default as CardHeader, ICardHeaderProps } from './components/CardHeader';
|
|
5
|
+
export { default as CardBody, ICardBodyProps } from './components/CardBody';
|
|
6
|
+
export { default as CardSection, ICardSectionProps } from './components/CardSection';
|
|
7
|
+
export { default as CardFooter, ICardFooterProps } from './components/CardFooter';
|
|
8
|
+
export { default as CardBuilder, ICardBuilderProps } from './components/CardBuilder';
|
|
9
|
+
export { default as OnboardingCard, IOnboardingCardProps } from './components/OnboardingCard';
|
|
10
|
+
export { default as Scores } from './components/Scores';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,eAAe,IAAI,CAAA;AAEnB,OAAO,EACN,OAAO,IAAI,UAAU,EACrB,gBAAgB,EAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,EACN,OAAO,IAAI,WAAW,EACtB,iBAAiB,EACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,OAAO,IAAI,UAAU,EACrB,gBAAgB,EAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,OAAO,IAAI,WAAW,EACtB,iBAAiB,EACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,OAAO,IAAI,cAAc,EACzB,oBAAoB,EACpB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
Object.defineProperty(exports, "Card", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _Card["default"];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "ICardProps", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function get() {
|
|
19
|
+
return _Card.ICardProps;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "CardHeader", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function get() {
|
|
25
|
+
return _CardHeader["default"];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "ICardHeaderProps", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function get() {
|
|
31
|
+
return _CardHeader.ICardHeaderProps;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "CardBody", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function get() {
|
|
37
|
+
return _CardBody["default"];
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "ICardBodyProps", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function get() {
|
|
43
|
+
return _CardBody.ICardBodyProps;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "CardSection", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function get() {
|
|
49
|
+
return _CardSection["default"];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "ICardSectionProps", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function get() {
|
|
55
|
+
return _CardSection.ICardSectionProps;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "CardFooter", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function get() {
|
|
61
|
+
return _CardFooter["default"];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "ICardFooterProps", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function get() {
|
|
67
|
+
return _CardFooter.ICardFooterProps;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "CardBuilder", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function get() {
|
|
73
|
+
return _CardBuilder["default"];
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "ICardBuilderProps", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _CardBuilder.ICardBuilderProps;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "OnboardingCard", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function get() {
|
|
85
|
+
return _OnboardingCard["default"];
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "IOnboardingCardProps", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function get() {
|
|
91
|
+
return _OnboardingCard.IOnboardingCardProps;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "Scores", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function get() {
|
|
97
|
+
return _Scores["default"];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
exports["default"] = void 0;
|
|
101
|
+
|
|
102
|
+
var _Card = _interopRequireWildcard(require("./Card"));
|
|
103
|
+
|
|
104
|
+
var _CardHeader = _interopRequireWildcard(require("./components/CardHeader"));
|
|
105
|
+
|
|
106
|
+
var _CardBody = _interopRequireWildcard(require("./components/CardBody"));
|
|
107
|
+
|
|
108
|
+
var _CardSection = _interopRequireWildcard(require("./components/CardSection"));
|
|
109
|
+
|
|
110
|
+
var _CardFooter = _interopRequireWildcard(require("./components/CardFooter"));
|
|
111
|
+
|
|
112
|
+
var _CardBuilder = _interopRequireWildcard(require("./components/CardBuilder"));
|
|
113
|
+
|
|
114
|
+
var _OnboardingCard = _interopRequireWildcard(require("./components/OnboardingCard"));
|
|
115
|
+
|
|
116
|
+
var _Scores = _interopRequireDefault(require("./components/Scores"));
|
|
117
|
+
|
|
118
|
+
var _default = _Card["default"];
|
|
119
|
+
exports["default"] = _default;
|
|
120
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Card/index.tsx"],"names":["Card"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAIA;;AAIA;;AACA;;AAIA;;AAIA;;AAIA;;AAIA;;eAvBeA,gB","sourcesContent":["export { default as Card, ICardProps } from './Card'\nimport Card from './Card'\nexport default Card\n\nexport {\n\tdefault as CardHeader,\n\tICardHeaderProps\n} from './components/CardHeader'\nexport { default as CardBody, ICardBodyProps } from './components/CardBody'\nexport {\n\tdefault as CardSection,\n\tICardSectionProps\n} from './components/CardSection'\nexport {\n\tdefault as CardFooter,\n\tICardFooterProps\n} from './components/CardFooter'\nexport {\n\tdefault as CardBuilder,\n\tICardBuilderProps\n} from './components/CardBuilder'\nexport {\n\tdefault as OnboardingCard,\n\tIOnboardingCardProps\n} from './components/OnboardingCard'\nexport { default as Scores } from './components/Scores'\n"],"file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircleLoader-story.d.ts","sourceRoot":"","sources":["../../../src/components/CircleLoader/CircleLoader-story.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _react2 = require("@storybook/react");
|
|
8
|
+
|
|
9
|
+
var _addonKnobs = require("@storybook/addon-knobs");
|
|
10
|
+
|
|
11
|
+
var _CircleLoader = _interopRequireDefault(require("./CircleLoader"));
|
|
12
|
+
|
|
13
|
+
var stories = (0, _react2.storiesOf)('CircleLoader', module);
|
|
14
|
+
stories.addDecorator(_addonKnobs.withKnobs);
|
|
15
|
+
stories.add('CircleLoader', function () {
|
|
16
|
+
return _react["default"].createElement(_CircleLoader["default"], {
|
|
17
|
+
light: (0, _addonKnobs["boolean"])('light', false)
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=CircleLoader-story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/CircleLoader/CircleLoader-story.tsx"],"names":["stories","module","addDecorator","withKnobs","add"],"mappings":";;;;AAAA;;AACA;;AACA;;AAEA;;AAEA,IAAMA,OAAO,GAAG,uBAAU,cAAV,EAA0BC,MAA1B,CAAhB;AAEAD,OAAO,CAACE,YAAR,CAAqBC,qBAArB;AAEAH,OAAO,CAACI,GAAR,CAAY,cAAZ,EAA4B;AAAA,SAC3B,gCAAC,wBAAD;AAAc,IAAA,KAAK,EAAE,4BAAQ,OAAR,EAAiB,KAAjB;AAArB,IAD2B;AAAA,CAA5B","sourcesContent":["import React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport { withKnobs, boolean } from '@storybook/addon-knobs'\n\nimport CircleLoader from './CircleLoader'\n\nconst stories = storiesOf('CircleLoader', module)\n\nstories.addDecorator(withKnobs)\n\nstories.add('CircleLoader', () => (\n\t<CircleLoader light={boolean('light', false)} />\n))\n"],"file":"CircleLoader-story.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ICircleLoaderProps {
|
|
3
|
+
/** Optional; makes the loader white instead of primary color */
|
|
4
|
+
light?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const CircleLoader: {
|
|
7
|
+
(props: ICircleLoaderProps): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
|
8
|
+
defaultProps: {
|
|
9
|
+
light: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default CircleLoader;
|
|
13
|
+
//# sourceMappingURL=CircleLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircleLoader.d.ts","sourceRoot":"","sources":["../../../src/components/CircleLoader/CircleLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,kBAAkB;IAClC,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED,QAAA,MAAM,YAAY;;;;;CAWjB,CAAA;AAMD,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var CircleLoader = function CircleLoader(props) {
|
|
15
|
+
var light = props.light;
|
|
16
|
+
return _react["default"].createElement("div", {
|
|
17
|
+
className: (0, _classnames["default"])('circle-loader', {
|
|
18
|
+
'circle-loader--light': light
|
|
19
|
+
})
|
|
20
|
+
}, _react["default"].createElement("div", null));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
CircleLoader.defaultProps = {
|
|
24
|
+
light: false
|
|
25
|
+
};
|
|
26
|
+
var _default = CircleLoader;
|
|
27
|
+
exports["default"] = _default;
|
|
28
|
+
//# sourceMappingURL=CircleLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/CircleLoader/CircleLoader.tsx"],"names":["CircleLoader","props","light","defaultProps"],"mappings":";;;;;;;;;AAAA;;AACA;;AAOA,IAAMA,YAAY,GAAG,SAAfA,YAAe,CAACC,KAAD,EAAmD;AAAA,MAC/DC,KAD+D,GACrDD,KADqD,CAC/DC,KAD+D;AAEvE,SACC;AACC,IAAA,SAAS,EAAE,4BAAG,eAAH,EAAoB;AAC9B,8BAAwBA;AADM,KAApB;AADZ,KAKC,4CALD,CADD;AASA,CAXD;;AAaAF,YAAY,CAACG,YAAb,GAA4B;AAC3BD,EAAAA,KAAK,EAAE;AADoB,CAA5B;eAIeF,Y","sourcesContent":["import React from 'react'\nimport cx from 'classnames'\n\nexport interface ICircleLoaderProps {\n\t/** Optional; makes the loader white instead of primary color */\n\tlight?: boolean\n}\n\nconst CircleLoader = (props: ICircleLoaderProps): React.ReactElement => {\n\tconst { light } = props\n\treturn (\n\t\t<div\n\t\t\tclassName={cx('circle-loader', {\n\t\t\t\t'circle-loader--light': light\n\t\t\t})}\n\t\t>\n\t\t\t<div />\n\t\t</div>\n\t)\n}\n\nCircleLoader.defaultProps = {\n\tlight: false\n}\n\nexport default CircleLoader\n"],"file":"CircleLoader.js"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _react2 = require("@storybook/react");
|
|
8
|
+
|
|
9
|
+
var _react3 = require("@storybook/addon-knobs/react");
|
|
10
|
+
|
|
11
|
+
var _ContextMenu = _interopRequireDefault(require("./ContextMenu"));
|
|
12
|
+
|
|
13
|
+
var stories = (0, _react2.storiesOf)('Context Menu', module);
|
|
14
|
+
stories.addDecorator(_react3.withKnobs);
|
|
15
|
+
stories.add('Example', function () {
|
|
16
|
+
return _react["default"].createElement(_ContextMenu["default"], {
|
|
17
|
+
actions: (0, _react3.object)('actions', [{
|
|
18
|
+
text: 'Rebook'
|
|
19
|
+
}, {
|
|
20
|
+
text: 'Cancel appointment'
|
|
21
|
+
}, {
|
|
22
|
+
text: 'Ask for feedback'
|
|
23
|
+
}]),
|
|
24
|
+
isRightAligned: (0, _react3["boolean"])('isRightAligned', false),
|
|
25
|
+
isBottomAligned: (0, _react3["boolean"])('isBottomAligned', false),
|
|
26
|
+
size: (0, _react3.text)('size', 'large'),
|
|
27
|
+
isSimple: (0, _react3["boolean"])('isSimple', false),
|
|
28
|
+
isSmall: (0, _react3["boolean"])('isSmall', false)
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=ContextMenu-story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ContextMenu/ContextMenu-story.js"],"names":["stories","module","addDecorator","withKnobs","add","text"],"mappings":";;;;AAAA;;AACA;;AACA;;AACA;;AAEA,IAAMA,OAAO,GAAG,uBAAU,cAAV,EAA0BC,MAA1B,CAAhB;AAEAD,OAAO,CAACE,YAAR,CAAqBC,iBAArB;AAEAH,OAAO,CAACI,GAAR,CAAY,SAAZ,EAAuB;AAAA,SACtB,gCAAC,uBAAD;AACC,IAAA,OAAO,EAAE,oBAAO,SAAP,EAAkB,CAC1B;AAAEC,MAAAA,IAAI,EAAE;AAAR,KAD0B,EAE1B;AAAEA,MAAAA,IAAI,EAAE;AAAR,KAF0B,EAG1B;AAAEA,MAAAA,IAAI,EAAE;AAAR,KAH0B,CAAlB,CADV;AAMC,IAAA,cAAc,EAAE,wBAAQ,gBAAR,EAA0B,KAA1B,CANjB;AAOC,IAAA,eAAe,EAAE,wBAAQ,iBAAR,EAA2B,KAA3B,CAPlB;AAQC,IAAA,IAAI,EAAE,kBAAK,MAAL,EAAa,OAAb,CARP;AASC,IAAA,QAAQ,EAAE,wBAAQ,UAAR,EAAoB,KAApB,CATX;AAUC,IAAA,OAAO,EAAE,wBAAQ,SAAR,EAAmB,KAAnB;AAVV,IADsB;AAAA,CAAvB","sourcesContent":["import React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport { withKnobs, object, boolean, text } from '@storybook/addon-knobs/react'\nimport ContextMenu from './ContextMenu'\n\nconst stories = storiesOf('Context Menu', module)\n\nstories.addDecorator(withKnobs)\n\nstories.add('Example', () => (\n\t<ContextMenu\n\t\tactions={object('actions', [\n\t\t\t{ text: 'Rebook' },\n\t\t\t{ text: 'Cancel appointment' },\n\t\t\t{ text: 'Ask for feedback' }\n\t\t])}\n\t\tisRightAligned={boolean('isRightAligned', false)}\n\t\tisBottomAligned={boolean('isBottomAligned', false)}\n\t\tsize={text('size', 'large')}\n\t\tisSimple={boolean('isSimple', false)}\n\t\tisSmall={boolean('isSmall', false)}\n\t/>\n))\n"],"file":"ContextMenu-story.js"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
import { IHWAction, IHWContextMenu } from '@sprucelabs/spruce-types';
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { IButtonProps } from '../Button/Button';
|
|
5
|
+
import { IIconProps } from '../Icon/Icon';
|
|
6
|
+
export interface IContextMenuProps extends Omit<IHWContextMenu, 'actions' | 'icon'> {
|
|
7
|
+
/** The actions to be shown on tap/click */
|
|
8
|
+
actions: IButtonProps[];
|
|
9
|
+
/** DEPRECATED Set true to left align the menu */
|
|
10
|
+
isLeftAligned?: boolean;
|
|
11
|
+
/** DEPRECATED Set true to right align the menu */
|
|
12
|
+
isRightAligned?: boolean;
|
|
13
|
+
/** DEPRECATED Set true to align menu above button */
|
|
14
|
+
isBottomAligned?: boolean;
|
|
15
|
+
/** Overrides the default icon */
|
|
16
|
+
icon?: IIconProps | null;
|
|
17
|
+
/** Optional classname that applies to the button */
|
|
18
|
+
className?: string;
|
|
19
|
+
onToggleContextMenuVisible?: Function;
|
|
20
|
+
/** optional, provide a handler for Actions */
|
|
21
|
+
onAction?: (action: IHWAction) => any;
|
|
22
|
+
}
|
|
23
|
+
interface IContextMenuState {
|
|
24
|
+
/** Show the menu */
|
|
25
|
+
isVisible: boolean;
|
|
26
|
+
/** Where the menu should be positioned when visible */
|
|
27
|
+
menuPosition: {
|
|
28
|
+
top: number | null;
|
|
29
|
+
left: number | null;
|
|
30
|
+
};
|
|
31
|
+
overflowBottom: boolean;
|
|
32
|
+
overflowLeft: boolean;
|
|
33
|
+
}
|
|
34
|
+
export default class ContextMenu extends Component<IContextMenuProps | IHWContextMenu, IContextMenuState> {
|
|
35
|
+
static defaultProps: {
|
|
36
|
+
isRightAligned: boolean;
|
|
37
|
+
isBottomAligned: boolean;
|
|
38
|
+
isTextOnly: boolean;
|
|
39
|
+
isSmall: boolean;
|
|
40
|
+
className: string;
|
|
41
|
+
};
|
|
42
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
43
|
+
menuRef: React.RefObject<HTMLDivElement>;
|
|
44
|
+
portalEl?: HTMLElement;
|
|
45
|
+
debouncedWindowResize: (() => void) & import("lodash").Cancelable;
|
|
46
|
+
state: {
|
|
47
|
+
isVisible: boolean;
|
|
48
|
+
overflowBottom: boolean;
|
|
49
|
+
overflowLeft: boolean;
|
|
50
|
+
menuPosition: {
|
|
51
|
+
top: null;
|
|
52
|
+
left: null;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
constructor(props: IContextMenuProps);
|
|
56
|
+
componentDidMount: () => void;
|
|
57
|
+
componentWillUnmount: () => void;
|
|
58
|
+
handleWindowResize: () => void;
|
|
59
|
+
getTriggerPlacement: () => DOMRect | null;
|
|
60
|
+
getMenuPlacement: () => void;
|
|
61
|
+
updateMenuPlacement: () => void;
|
|
62
|
+
handleClickOutside: () => void;
|
|
63
|
+
handleEscape: (e: any) => void;
|
|
64
|
+
handleToggle: () => void;
|
|
65
|
+
manageListeners: () => void;
|
|
66
|
+
handleClickAction: (payload: any, callback: any) => void;
|
|
67
|
+
render(): React.ReactElement;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=ContextMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,EACN,SAAS,EAET,cAAc,EACd,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAAe,EAAe,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,iBAChB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,MAAM,CAAC;IAChD,2CAA2C;IAC3C,OAAO,EAAE,YAAY,EAAE,CAAA;IAEvB,iDAAiD;IACjD,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB,iCAAiC;IACjC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IAExB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,0BAA0B,CAAC,EAAE,QAAQ,CAAA;IAErC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,GAAG,CAAA;CACrC;AAED,UAAU,iBAAiB;IAC1B,oBAAoB;IACpB,SAAS,EAAE,OAAO,CAAA;IAElB,uDAAuD;IACvD,YAAY,EAAE;QACb,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;QAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KACnB,CAAA;IAED,cAAc,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CACjD,iBAAiB,GAAG,cAAc,EAClC,iBAAiB,CACjB;IACA,OAAc,YAAY;;;;;;MAMzB;IAEM,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAoB;IACxD,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAoB;IAC5D,QAAQ,CAAC,EAAE,WAAW,CAAA;IAEtB,qBAAqB,6CAAiD;IACtE,KAAK;;;;;;;;MAQX;gBAEkB,KAAK,EAAE,iBAAiB;IASpC,iBAAiB,aAKvB;IAEM,oBAAoB,aAQ1B;IAEM,kBAAkB,aAKxB;IAEM,mBAAmB,uBASzB;IAEM,gBAAgB,aAqBtB;IAEM,mBAAmB,aAoDzB;IAEM,kBAAkB,aAOxB;IAEM,YAAY,mBASlB;IAEM,YAAY,aAmBlB;IAEM,eAAe,aAUrB;IAEM,iBAAiB,wCAKvB;IAEM,MAAM,IAAI,KAAK,CAAC,YAAY;CA2EnC"}
|