@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,840 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ptoBlock = exports.lunchBreak = exports.pastAppointment = exports.warningAppointment = exports.appointment = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
|
|
11
|
+
|
|
12
|
+
var _spruceTypes = require("@sprucelabs/spruce-types");
|
|
13
|
+
|
|
14
|
+
var _Button = require("../Button/Button");
|
|
15
|
+
|
|
16
|
+
var avatar = 'https://images.unsplash.com/photo-1542080681-b52d382432af?ixlib=rb-1.2.1&auto=format&fit=crop&w=96&h=96&q=80';
|
|
17
|
+
var services = {
|
|
18
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
19
|
+
viewModel: {
|
|
20
|
+
id: 'services',
|
|
21
|
+
items: [{
|
|
22
|
+
id: 'first',
|
|
23
|
+
icon: {
|
|
24
|
+
name: 'unordered_list',
|
|
25
|
+
isLineIcon: true,
|
|
26
|
+
id: 'unordered'
|
|
27
|
+
},
|
|
28
|
+
title: 'Accent Highlight',
|
|
29
|
+
subtitle: '$65 | 1hr',
|
|
30
|
+
note: 'Vicenta Maggio',
|
|
31
|
+
contextMenu: {
|
|
32
|
+
icon: {
|
|
33
|
+
id: 'edit',
|
|
34
|
+
name: 'edit',
|
|
35
|
+
isLineIcon: true
|
|
36
|
+
},
|
|
37
|
+
isSimple: true,
|
|
38
|
+
isSmall: true,
|
|
39
|
+
size: _spruceTypes.IHWContextMenuSize.Large,
|
|
40
|
+
actions: [{
|
|
41
|
+
id: 'save-teammate',
|
|
42
|
+
text: 'Change teammate',
|
|
43
|
+
action: {
|
|
44
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
45
|
+
payload: {
|
|
46
|
+
eventName: 'change-teammate'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
id: 'remove-appointment',
|
|
51
|
+
text: 'Remove from appointment',
|
|
52
|
+
action: {
|
|
53
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
54
|
+
payload: {
|
|
55
|
+
eventName: 'remove-from-appointment'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}]
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
id: 'second',
|
|
62
|
+
icon: {
|
|
63
|
+
id: 'second-icon',
|
|
64
|
+
name: 'unordered_list',
|
|
65
|
+
isLineIcon: true
|
|
66
|
+
},
|
|
67
|
+
isIconHidden: true,
|
|
68
|
+
title: 'Haircut',
|
|
69
|
+
subtitle: '$40 | 1hr',
|
|
70
|
+
note: 'Vicenta Maggio',
|
|
71
|
+
contextMenu: {
|
|
72
|
+
icon: {
|
|
73
|
+
id: 'edit',
|
|
74
|
+
name: 'edit',
|
|
75
|
+
isLineIcon: true
|
|
76
|
+
},
|
|
77
|
+
isSimple: true,
|
|
78
|
+
isSmall: true,
|
|
79
|
+
size: _spruceTypes.IHWContextMenuSize.Large,
|
|
80
|
+
actions: [{
|
|
81
|
+
id: 'change-teammate',
|
|
82
|
+
text: 'Change teammate',
|
|
83
|
+
action: {
|
|
84
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
85
|
+
payload: {
|
|
86
|
+
eventName: 'change-teammate'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
id: 'remove',
|
|
91
|
+
text: 'Remove from appointment',
|
|
92
|
+
action: {
|
|
93
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
94
|
+
payload: {
|
|
95
|
+
eventName: 'remove-from-appointment'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}]
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
id: 'last',
|
|
102
|
+
title: 'Add service',
|
|
103
|
+
icon: {
|
|
104
|
+
id: 'add',
|
|
105
|
+
name: 'add'
|
|
106
|
+
},
|
|
107
|
+
primaryAction: {
|
|
108
|
+
id: 'add',
|
|
109
|
+
icon: {
|
|
110
|
+
id: 'add',
|
|
111
|
+
name: 'add'
|
|
112
|
+
},
|
|
113
|
+
kind: _Button.ButtonKinds.Simple,
|
|
114
|
+
action: {
|
|
115
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
116
|
+
payload: {
|
|
117
|
+
eventName: 'add-service'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}]
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var inclusiveStatuses = [{
|
|
125
|
+
id: 'status',
|
|
126
|
+
title: 'Confirmed',
|
|
127
|
+
selectableId: 'confirmed',
|
|
128
|
+
selectableProps: {
|
|
129
|
+
name: 'checkbox',
|
|
130
|
+
action: {
|
|
131
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
132
|
+
payload: {
|
|
133
|
+
eventName: 'checkbox-checked'
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
id: 'checked-in',
|
|
139
|
+
title: 'Checked in',
|
|
140
|
+
selectableId: 'checkedIn',
|
|
141
|
+
selectableProps: {
|
|
142
|
+
name: 'checkbox',
|
|
143
|
+
action: {
|
|
144
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
145
|
+
payload: {
|
|
146
|
+
eventName: 'checkbox-checked'
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}];
|
|
151
|
+
var exclusiveStatuses = [{
|
|
152
|
+
id: 'on-time',
|
|
153
|
+
title: 'On time',
|
|
154
|
+
selectableId: 'onTime',
|
|
155
|
+
selectableProps: {
|
|
156
|
+
name: 'radio',
|
|
157
|
+
action: {
|
|
158
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
159
|
+
payload: {
|
|
160
|
+
eventName: 'radio-checked'
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}, {
|
|
165
|
+
id: 'late',
|
|
166
|
+
title: 'Late',
|
|
167
|
+
selectableId: 'late',
|
|
168
|
+
selectableProps: {
|
|
169
|
+
name: 'radio',
|
|
170
|
+
action: {
|
|
171
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
172
|
+
payload: {
|
|
173
|
+
eventName: 'radio-checked'
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}, {
|
|
178
|
+
id: 'ghosted',
|
|
179
|
+
title: 'Ghosted 👻',
|
|
180
|
+
selectableId: 'noShow',
|
|
181
|
+
selectableProps: {
|
|
182
|
+
name: 'radio',
|
|
183
|
+
action: {
|
|
184
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
185
|
+
payload: {
|
|
186
|
+
eventName: 'radio-checked'
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}];
|
|
191
|
+
var paidStatuses = [{
|
|
192
|
+
id: 'unpaid',
|
|
193
|
+
title: 'Unpaid',
|
|
194
|
+
icon: {
|
|
195
|
+
name: 'edit'
|
|
196
|
+
},
|
|
197
|
+
iconIsHidden: true
|
|
198
|
+
}];
|
|
199
|
+
var statusLists = [{
|
|
200
|
+
selectableType: _spruceTypes.IHWListItemSelectableType.Checkbox,
|
|
201
|
+
items: inclusiveStatuses,
|
|
202
|
+
areSeparatorsVisible: false
|
|
203
|
+
}, {
|
|
204
|
+
selectableType: _spruceTypes.IHWListItemSelectableType.Radio,
|
|
205
|
+
items: exclusiveStatuses,
|
|
206
|
+
areSeparatorsVisible: false
|
|
207
|
+
}, {
|
|
208
|
+
items: paidStatuses,
|
|
209
|
+
areSeparatorsVisible: false
|
|
210
|
+
}];
|
|
211
|
+
var appointment = {
|
|
212
|
+
items: [{
|
|
213
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
214
|
+
viewModel: {
|
|
215
|
+
id: 'guestInfo',
|
|
216
|
+
items: [{
|
|
217
|
+
id: 'first',
|
|
218
|
+
avatar: avatar,
|
|
219
|
+
title: 'Alejandra Pollich',
|
|
220
|
+
subtitle: '(605) 230-5253',
|
|
221
|
+
contextMenu: {
|
|
222
|
+
icon: {
|
|
223
|
+
name: 'edit',
|
|
224
|
+
isLineIcon: true
|
|
225
|
+
},
|
|
226
|
+
isSimple: true,
|
|
227
|
+
isSmall: true,
|
|
228
|
+
size: _spruceTypes.IHWContextMenuSize.Large,
|
|
229
|
+
actions: [{
|
|
230
|
+
text: 'Edit guest',
|
|
231
|
+
action: {
|
|
232
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
233
|
+
payload: {
|
|
234
|
+
eventName: 'edit-guest'
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
text: 'Book for someone else',
|
|
239
|
+
action: {
|
|
240
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
241
|
+
payload: {
|
|
242
|
+
eventName: 'book-for-someone-else'
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}]
|
|
246
|
+
}
|
|
247
|
+
}, {
|
|
248
|
+
id: 'pinned-note',
|
|
249
|
+
icon: {
|
|
250
|
+
name: 'note',
|
|
251
|
+
isLineIcon: true
|
|
252
|
+
},
|
|
253
|
+
title: 'Prefers products that aren’t tested on animals.',
|
|
254
|
+
subtitle: 'Caleigh Jerde, 4 months ago',
|
|
255
|
+
actions: [{
|
|
256
|
+
icon: {
|
|
257
|
+
name: 'edit'
|
|
258
|
+
},
|
|
259
|
+
kind: _Button.ButtonKinds.Simple,
|
|
260
|
+
action: {
|
|
261
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
262
|
+
payload: {
|
|
263
|
+
eventName: 'edit-note'
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}]
|
|
267
|
+
}]
|
|
268
|
+
}
|
|
269
|
+
}, {
|
|
270
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
271
|
+
viewModel: {
|
|
272
|
+
id: 'dateAndTime',
|
|
273
|
+
items: [{
|
|
274
|
+
id: 'first',
|
|
275
|
+
icon: {
|
|
276
|
+
name: 'calendar',
|
|
277
|
+
isLineIcon: true
|
|
278
|
+
},
|
|
279
|
+
title: 'Web, Nov 28, 2018',
|
|
280
|
+
subtitle: '11am–12:15pm',
|
|
281
|
+
actions: [{
|
|
282
|
+
id: 'first',
|
|
283
|
+
icon: {
|
|
284
|
+
name: 'edit'
|
|
285
|
+
},
|
|
286
|
+
kind: _Button.ButtonKinds.Simple,
|
|
287
|
+
action: {
|
|
288
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
289
|
+
payload: {
|
|
290
|
+
eventName: 'edit-date'
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}]
|
|
294
|
+
}]
|
|
295
|
+
}
|
|
296
|
+
}, (0, _objectSpread2["default"])({}, services), {
|
|
297
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
298
|
+
viewModel: {
|
|
299
|
+
id: 'status',
|
|
300
|
+
items: [{
|
|
301
|
+
id: 'first',
|
|
302
|
+
icon: {
|
|
303
|
+
name: 'status'
|
|
304
|
+
},
|
|
305
|
+
title: 'Status',
|
|
306
|
+
subtitle: 'Confirmed',
|
|
307
|
+
isExpandable: true,
|
|
308
|
+
collapsedIconName: 'edit',
|
|
309
|
+
expandedIconName: 'close',
|
|
310
|
+
lists: statusLists
|
|
311
|
+
}]
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.Markdown,
|
|
315
|
+
viewModel: {
|
|
316
|
+
source: '**Subtotal: ** $65\n\n**Duration: ** 2hr'
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.SplitButton,
|
|
320
|
+
viewModel: {
|
|
321
|
+
kind: _Button.ButtonKinds.Primary,
|
|
322
|
+
isFullWidth: true,
|
|
323
|
+
defaultAction: {
|
|
324
|
+
text: 'Check guest in',
|
|
325
|
+
isFullWidth: true,
|
|
326
|
+
action: {
|
|
327
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
328
|
+
payload: {
|
|
329
|
+
eventName: 'guest-check-in'
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
actions: [{
|
|
334
|
+
text: 'Unconfirm appointment',
|
|
335
|
+
action: {
|
|
336
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
337
|
+
payload: {
|
|
338
|
+
eventName: 'unconfirm'
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}, {
|
|
342
|
+
text: 'Mark guest as late',
|
|
343
|
+
action: {
|
|
344
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
345
|
+
payload: {
|
|
346
|
+
eventName: 'mark-late'
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}, {
|
|
350
|
+
text: 'Mark as no show',
|
|
351
|
+
action: {
|
|
352
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
353
|
+
payload: {
|
|
354
|
+
eventName: 'mark-no-show'
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}, {
|
|
358
|
+
text: 'Book again',
|
|
359
|
+
action: {
|
|
360
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
361
|
+
payload: {
|
|
362
|
+
eventName: 'book-again'
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}, {
|
|
366
|
+
text: 'Cancel appointment',
|
|
367
|
+
action: {
|
|
368
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
369
|
+
payload: {
|
|
370
|
+
eventName: 'cancel-appointment'
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}]
|
|
374
|
+
}
|
|
375
|
+
}]
|
|
376
|
+
};
|
|
377
|
+
exports.appointment = appointment;
|
|
378
|
+
var warningAppointment = {
|
|
379
|
+
items: [{
|
|
380
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
381
|
+
viewModel: {
|
|
382
|
+
id: 'guestInfo',
|
|
383
|
+
items: [{
|
|
384
|
+
id: 'first',
|
|
385
|
+
avatar: avatar,
|
|
386
|
+
title: 'Alejandra Pollich',
|
|
387
|
+
subtitle: '(605) 230-5253',
|
|
388
|
+
contextMenu: {
|
|
389
|
+
icon: {
|
|
390
|
+
name: 'edit',
|
|
391
|
+
isLineIcon: true
|
|
392
|
+
},
|
|
393
|
+
isSimple: true,
|
|
394
|
+
isSmall: true,
|
|
395
|
+
size: _spruceTypes.IHWContextMenuSize.Large,
|
|
396
|
+
actions: [{
|
|
397
|
+
text: 'Edit guest',
|
|
398
|
+
action: {
|
|
399
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
400
|
+
payload: {
|
|
401
|
+
eventName: 'edit-guest'
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}, {
|
|
405
|
+
text: 'Book for someone else',
|
|
406
|
+
action: {
|
|
407
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
408
|
+
payload: {
|
|
409
|
+
eventName: 'book-for-someone-else'
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}]
|
|
413
|
+
}
|
|
414
|
+
}, {
|
|
415
|
+
id: 'second',
|
|
416
|
+
icon: {
|
|
417
|
+
name: 'note',
|
|
418
|
+
isLineIcon: true
|
|
419
|
+
},
|
|
420
|
+
title: 'Prefers products that aren’t tested on animals.',
|
|
421
|
+
subtitle: 'Caleigh Jerde, 4 months ago',
|
|
422
|
+
actions: [{
|
|
423
|
+
icon: {
|
|
424
|
+
name: 'edit'
|
|
425
|
+
},
|
|
426
|
+
kind: _Button.ButtonKinds.Simple,
|
|
427
|
+
action: {
|
|
428
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
429
|
+
payload: {
|
|
430
|
+
eventName: 'edit-note'
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}]
|
|
434
|
+
}]
|
|
435
|
+
}
|
|
436
|
+
}, {
|
|
437
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.CardBuilder,
|
|
438
|
+
viewModel: {
|
|
439
|
+
id: 'dateAndTime',
|
|
440
|
+
body: {
|
|
441
|
+
items: [{
|
|
442
|
+
type: _spruceTypes.IHWCardBuilderBodyItemType.List,
|
|
443
|
+
viewModel: {
|
|
444
|
+
id: 'list',
|
|
445
|
+
items: [{
|
|
446
|
+
id: '1',
|
|
447
|
+
icon: {
|
|
448
|
+
name: 'calendar',
|
|
449
|
+
isLineIcon: true
|
|
450
|
+
},
|
|
451
|
+
title: 'Web, Nov 28, 2018',
|
|
452
|
+
subtitle: '11am–12:15pm',
|
|
453
|
+
actions: [{
|
|
454
|
+
icon: {
|
|
455
|
+
name: 'edit'
|
|
456
|
+
},
|
|
457
|
+
kind: _Button.ButtonKinds.Simple,
|
|
458
|
+
action: {
|
|
459
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
460
|
+
payload: {
|
|
461
|
+
eventName: 'edit-date'
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}],
|
|
465
|
+
warnings: {
|
|
466
|
+
subtitle: true
|
|
467
|
+
}
|
|
468
|
+
}]
|
|
469
|
+
}
|
|
470
|
+
}, {
|
|
471
|
+
type: _spruceTypes.IHWCardBuilderBodyItemType.Toast,
|
|
472
|
+
viewModel: {
|
|
473
|
+
id: 'toastWarning',
|
|
474
|
+
headline: 'Uh-oh',
|
|
475
|
+
text: 'Vicenta Maggio will be double-booked at this time',
|
|
476
|
+
kind: 'warn',
|
|
477
|
+
canRemove: false
|
|
478
|
+
}
|
|
479
|
+
}]
|
|
480
|
+
},
|
|
481
|
+
footer: {
|
|
482
|
+
buttonGroup: {
|
|
483
|
+
actions: [{
|
|
484
|
+
text: 'Dismiss',
|
|
485
|
+
kind: _Button.ButtonKinds.Simple,
|
|
486
|
+
isSmall: true,
|
|
487
|
+
id: 'foo',
|
|
488
|
+
action: {
|
|
489
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
490
|
+
payload: {
|
|
491
|
+
eventName: 'dismiss'
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}, {
|
|
495
|
+
text: 'Find a different time',
|
|
496
|
+
kind: _Button.ButtonKinds.Secondary,
|
|
497
|
+
isSmall: true,
|
|
498
|
+
id: 'bar',
|
|
499
|
+
action: {
|
|
500
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
501
|
+
payload: {
|
|
502
|
+
eventName: 'find-different-time'
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}]
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}, services, {
|
|
510
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
511
|
+
viewModel: {
|
|
512
|
+
id: 'status',
|
|
513
|
+
items: [{
|
|
514
|
+
id: 'first',
|
|
515
|
+
item: {
|
|
516
|
+
id: 'first',
|
|
517
|
+
icon: {
|
|
518
|
+
name: 'status'
|
|
519
|
+
},
|
|
520
|
+
title: 'Status',
|
|
521
|
+
subtitle: 'Confirmed'
|
|
522
|
+
},
|
|
523
|
+
collapsedIconName: 'edit',
|
|
524
|
+
expandedIconName: 'close',
|
|
525
|
+
lists: statusLists
|
|
526
|
+
}]
|
|
527
|
+
}
|
|
528
|
+
}, {
|
|
529
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.Markdown,
|
|
530
|
+
viewModel: {
|
|
531
|
+
id: 'subtotalAndDuration',
|
|
532
|
+
// NOTE: This would work with a markdown rendering component
|
|
533
|
+
// Question: Can we deliver MD from the API?
|
|
534
|
+
source: '**Subtotal: ** $65\n\n**Duration: ** 2hr'
|
|
535
|
+
}
|
|
536
|
+
}, {
|
|
537
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.SplitButton,
|
|
538
|
+
viewModel: {
|
|
539
|
+
id: 'primaryCTA',
|
|
540
|
+
kind: _Button.ButtonKinds.Primary,
|
|
541
|
+
isFullWidth: true,
|
|
542
|
+
defaultAction: {
|
|
543
|
+
text: 'Check guest in',
|
|
544
|
+
isFullWidth: true,
|
|
545
|
+
action: {
|
|
546
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
547
|
+
payload: {
|
|
548
|
+
eventName: 'check-in'
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
actions: [{
|
|
553
|
+
text: 'Unconfirm appointment',
|
|
554
|
+
action: {
|
|
555
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
556
|
+
payload: {
|
|
557
|
+
eventName: 'unconfirm'
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}, {
|
|
561
|
+
text: 'Mark guest as late',
|
|
562
|
+
action: {
|
|
563
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
564
|
+
payload: {
|
|
565
|
+
eventName: 'mark-late'
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}, {
|
|
569
|
+
text: 'Mark as no show',
|
|
570
|
+
action: {
|
|
571
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
572
|
+
payload: {
|
|
573
|
+
eventName: 'mark-no-show'
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}, {
|
|
577
|
+
text: 'Book again',
|
|
578
|
+
action: {
|
|
579
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
580
|
+
payload: {
|
|
581
|
+
eventName: 'book-again'
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}, {
|
|
585
|
+
text: 'Cancel appointment',
|
|
586
|
+
action: {
|
|
587
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
588
|
+
payload: {
|
|
589
|
+
eventName: 'cancel-appointment'
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}]
|
|
593
|
+
}
|
|
594
|
+
}]
|
|
595
|
+
};
|
|
596
|
+
exports.warningAppointment = warningAppointment;
|
|
597
|
+
var pastAppointment = {
|
|
598
|
+
items: [{
|
|
599
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
600
|
+
viewModel: {
|
|
601
|
+
id: 'guestInfo',
|
|
602
|
+
items: [{
|
|
603
|
+
id: 'first',
|
|
604
|
+
avatar: avatar,
|
|
605
|
+
title: 'Alejandra Pollich',
|
|
606
|
+
subtitle: '(605) 230-5253',
|
|
607
|
+
actions: [{
|
|
608
|
+
icon: {
|
|
609
|
+
name: 'edit'
|
|
610
|
+
},
|
|
611
|
+
kind: _Button.ButtonKinds.Simple,
|
|
612
|
+
action: {
|
|
613
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
614
|
+
payload: {
|
|
615
|
+
eventName: 'edit-guest'
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}]
|
|
619
|
+
}, {
|
|
620
|
+
id: 'second',
|
|
621
|
+
icon: {
|
|
622
|
+
name: 'note',
|
|
623
|
+
isLineIcon: true
|
|
624
|
+
},
|
|
625
|
+
title: 'Prefers products that aren’t tested on animals.',
|
|
626
|
+
subtitle: 'Caleigh Jerde, 4 months ago',
|
|
627
|
+
actions: [{
|
|
628
|
+
icon: {
|
|
629
|
+
name: 'edit'
|
|
630
|
+
},
|
|
631
|
+
kind: _Button.ButtonKinds.Simple,
|
|
632
|
+
action: {
|
|
633
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
634
|
+
payload: {
|
|
635
|
+
eventName: 'edit-note'
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}]
|
|
639
|
+
}]
|
|
640
|
+
}
|
|
641
|
+
}, {
|
|
642
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
643
|
+
viewModel: {
|
|
644
|
+
id: 'dateAndTime',
|
|
645
|
+
items: [{
|
|
646
|
+
id: 'first',
|
|
647
|
+
icon: {
|
|
648
|
+
name: 'calendar',
|
|
649
|
+
isLineIcon: true
|
|
650
|
+
},
|
|
651
|
+
title: 'Web, Nov 28, 2018',
|
|
652
|
+
subtitle: '11am–12:15pm'
|
|
653
|
+
}]
|
|
654
|
+
}
|
|
655
|
+
}, {
|
|
656
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
657
|
+
viewModel: {
|
|
658
|
+
id: 'services',
|
|
659
|
+
items: [{
|
|
660
|
+
id: 'first',
|
|
661
|
+
icon: {
|
|
662
|
+
name: 'unordered_list',
|
|
663
|
+
isLineIcon: true
|
|
664
|
+
},
|
|
665
|
+
title: 'Accent Highlight',
|
|
666
|
+
subtitle: '$65 | 1hr',
|
|
667
|
+
note: 'Vicenta Maggio'
|
|
668
|
+
}, {
|
|
669
|
+
id: 'second',
|
|
670
|
+
icon: {
|
|
671
|
+
name: 'unordered_list',
|
|
672
|
+
isLineIcon: true
|
|
673
|
+
},
|
|
674
|
+
isIconHidden: true,
|
|
675
|
+
title: 'Haircut',
|
|
676
|
+
subtitle: '$40 | 1hr',
|
|
677
|
+
note: 'Vicenta Maggio'
|
|
678
|
+
}]
|
|
679
|
+
}
|
|
680
|
+
}, {
|
|
681
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
682
|
+
viewModel: {
|
|
683
|
+
id: 'status',
|
|
684
|
+
items: [{
|
|
685
|
+
id: 'first',
|
|
686
|
+
icon: {
|
|
687
|
+
name: 'payment_success_solid'
|
|
688
|
+
},
|
|
689
|
+
title: 'Status',
|
|
690
|
+
subtitle: 'Paid'
|
|
691
|
+
}]
|
|
692
|
+
}
|
|
693
|
+
}, {
|
|
694
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.Markdown,
|
|
695
|
+
viewModel: {
|
|
696
|
+
id: 'subtotalAndDuration',
|
|
697
|
+
source: '**Subtotal: ** $65\n\n**Duration: ** 2hr'
|
|
698
|
+
}
|
|
699
|
+
}, {
|
|
700
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.SplitButton,
|
|
701
|
+
viewModel: {
|
|
702
|
+
id: 'primaryCTA',
|
|
703
|
+
kind: _Button.ButtonKinds.Primary,
|
|
704
|
+
isFullWidth: true,
|
|
705
|
+
defaultAction: {
|
|
706
|
+
text: 'Book again',
|
|
707
|
+
isFullWidth: true,
|
|
708
|
+
action: {
|
|
709
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
710
|
+
payload: {
|
|
711
|
+
eventName: 'book-again'
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
actions: [{
|
|
716
|
+
text: 'Edit past appointment',
|
|
717
|
+
action: {
|
|
718
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
719
|
+
payload: {
|
|
720
|
+
eventName: 'edit-past-appointment'
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}]
|
|
724
|
+
}
|
|
725
|
+
}]
|
|
726
|
+
};
|
|
727
|
+
exports.pastAppointment = pastAppointment;
|
|
728
|
+
var lunchBreak = {
|
|
729
|
+
items: [{
|
|
730
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
731
|
+
viewModel: {
|
|
732
|
+
id: 'dateAndTime',
|
|
733
|
+
items: [{
|
|
734
|
+
id: 'first',
|
|
735
|
+
icon: {
|
|
736
|
+
name: 'calendar'
|
|
737
|
+
},
|
|
738
|
+
title: 'Sat, Jul 6, 2019',
|
|
739
|
+
subtitle: '8am–8pm',
|
|
740
|
+
note: 'Repeats every Saturday until 8/31/2019'
|
|
741
|
+
}]
|
|
742
|
+
}
|
|
743
|
+
}, {
|
|
744
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
745
|
+
viewModel: {
|
|
746
|
+
id: 'person',
|
|
747
|
+
items: [{
|
|
748
|
+
id: 'first',
|
|
749
|
+
avatar: avatar,
|
|
750
|
+
title: 'Vicenta Maggio',
|
|
751
|
+
subtitle: 'Stylist'
|
|
752
|
+
}]
|
|
753
|
+
}
|
|
754
|
+
}, {
|
|
755
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
756
|
+
viewModel: {
|
|
757
|
+
id: 'breakType',
|
|
758
|
+
items: [{
|
|
759
|
+
id: 'first',
|
|
760
|
+
icon: {
|
|
761
|
+
name: 'info'
|
|
762
|
+
},
|
|
763
|
+
title: 'Paid break',
|
|
764
|
+
subtitle: 'Teammates are paid during their lunch breaks'
|
|
765
|
+
}]
|
|
766
|
+
}
|
|
767
|
+
}, {
|
|
768
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.Button,
|
|
769
|
+
viewModel: {
|
|
770
|
+
id: 'actions',
|
|
771
|
+
text: 'Reschedule',
|
|
772
|
+
kind: _Button.ButtonKinds.Secondary,
|
|
773
|
+
isFullWidth: true,
|
|
774
|
+
action: {
|
|
775
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
776
|
+
payload: {
|
|
777
|
+
eventName: 'reschedule'
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}]
|
|
782
|
+
};
|
|
783
|
+
exports.lunchBreak = lunchBreak;
|
|
784
|
+
var ptoBlock = {
|
|
785
|
+
items: [{
|
|
786
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
787
|
+
viewModel: {
|
|
788
|
+
id: 'dateAndTime',
|
|
789
|
+
items: [{
|
|
790
|
+
id: 'first',
|
|
791
|
+
icon: {
|
|
792
|
+
name: 'calendar'
|
|
793
|
+
},
|
|
794
|
+
title: 'Sat, Jul 6, 2019',
|
|
795
|
+
subtitle: '8am–8pm',
|
|
796
|
+
note: 'Repeats every Saturday until 8/31/2019'
|
|
797
|
+
}]
|
|
798
|
+
}
|
|
799
|
+
}, {
|
|
800
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
801
|
+
viewModel: {
|
|
802
|
+
id: 'person',
|
|
803
|
+
items: [{
|
|
804
|
+
id: 'person',
|
|
805
|
+
avatar: avatar,
|
|
806
|
+
title: 'Vicenta Maggio',
|
|
807
|
+
subtitle: 'Stylist'
|
|
808
|
+
}]
|
|
809
|
+
}
|
|
810
|
+
}, {
|
|
811
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.List,
|
|
812
|
+
viewModel: {
|
|
813
|
+
id: 'breakType',
|
|
814
|
+
items: [{
|
|
815
|
+
id: 'breakType',
|
|
816
|
+
icon: {
|
|
817
|
+
name: 'info'
|
|
818
|
+
},
|
|
819
|
+
title: 'Paid time off',
|
|
820
|
+
subtitle: '32 hours of PTO'
|
|
821
|
+
}]
|
|
822
|
+
}
|
|
823
|
+
}, {
|
|
824
|
+
type: _spruceTypes.IHWCalendarEventDetailsItemType.Button,
|
|
825
|
+
viewModel: {
|
|
826
|
+
id: 'actions',
|
|
827
|
+
text: 'Edit PTO Block',
|
|
828
|
+
kind: _Button.ButtonKinds.Secondary,
|
|
829
|
+
isFullWidth: true,
|
|
830
|
+
action: {
|
|
831
|
+
type: _spruceTypes.IHWActionTypes.EmitEvent,
|
|
832
|
+
payload: {
|
|
833
|
+
eventName: 'edit-pto-block'
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}]
|
|
838
|
+
};
|
|
839
|
+
exports.ptoBlock = ptoBlock;
|
|
840
|
+
//# sourceMappingURL=eventDetailsMock.js.map
|