@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,57 @@
|
|
|
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
18
|
+
var _FormPartials = require("../../FormPartials");
|
|
19
|
+
|
|
20
|
+
var TextInput = function TextInput(props) {
|
|
21
|
+
var id = props.id,
|
|
22
|
+
className = props.className,
|
|
23
|
+
label = props.label,
|
|
24
|
+
postLabel = props.postLabel,
|
|
25
|
+
kind = props.kind,
|
|
26
|
+
iconBefore = props.iconBefore,
|
|
27
|
+
iconAfter = props.iconAfter,
|
|
28
|
+
appendix = props.appendix,
|
|
29
|
+
error = props.error,
|
|
30
|
+
helper = props.helper,
|
|
31
|
+
isSmall = props.isSmall,
|
|
32
|
+
rest = (0, _objectWithoutProperties2["default"])(props, ["id", "className", "label", "postLabel", "kind", "iconBefore", "iconAfter", "appendix", "error", "helper", "isSmall"]);
|
|
33
|
+
var parentClass = (0, _classnames["default"])('text-input', {
|
|
34
|
+
className: className,
|
|
35
|
+
'text-input--has-error': error,
|
|
36
|
+
'text-input-small': isSmall
|
|
37
|
+
});
|
|
38
|
+
return _react["default"].createElement("div", {
|
|
39
|
+
className: parentClass
|
|
40
|
+
}, label && _react["default"].createElement(_FormPartials.InputPre, {
|
|
41
|
+
label: label,
|
|
42
|
+
id: id,
|
|
43
|
+
postLabel: postLabel
|
|
44
|
+
}), _react["default"].createElement(_FormPartials.InputInner, (0, _extends2["default"])({
|
|
45
|
+
kind: kind,
|
|
46
|
+
iconBefore: iconBefore,
|
|
47
|
+
iconAfter: iconAfter,
|
|
48
|
+
appendix: appendix
|
|
49
|
+
}, rest)), (helper || error) && _react["default"].createElement(_FormPartials.InputHelper, {
|
|
50
|
+
helper: helper,
|
|
51
|
+
error: error
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var _default = TextInput;
|
|
56
|
+
exports["default"] = _default;
|
|
57
|
+
//# sourceMappingURL=TextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Forms/components/TextInput/TextInput.tsx"],"names":["TextInput","props","id","className","label","postLabel","kind","iconBefore","iconAfter","appendix","error","helper","isSmall","rest","parentClass"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAqCA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD,EAAgD;AAAA,MAEhEC,EAFgE,GAc7DD,KAd6D,CAEhEC,EAFgE;AAAA,MAGhEC,SAHgE,GAc7DF,KAd6D,CAGhEE,SAHgE;AAAA,MAIhEC,KAJgE,GAc7DH,KAd6D,CAIhEG,KAJgE;AAAA,MAKhEC,SALgE,GAc7DJ,KAd6D,CAKhEI,SALgE;AAAA,MAMhEC,IANgE,GAc7DL,KAd6D,CAMhEK,IANgE;AAAA,MAOhEC,UAPgE,GAc7DN,KAd6D,CAOhEM,UAPgE;AAAA,MAQhEC,SARgE,GAc7DP,KAd6D,CAQhEO,SARgE;AAAA,MAShEC,QATgE,GAc7DR,KAd6D,CAShEQ,QATgE;AAAA,MAUhEC,KAVgE,GAc7DT,KAd6D,CAUhES,KAVgE;AAAA,MAWhEC,MAXgE,GAc7DV,KAd6D,CAWhEU,MAXgE;AAAA,MAYhEC,OAZgE,GAc7DX,KAd6D,CAYhEW,OAZgE;AAAA,MAa7DC,IAb6D,6CAc7DZ,KAd6D;AAgBjE,MAAMa,WAAW,GAAG,4BAAG,YAAH,EAAiB;AACpCX,IAAAA,SAAS,EAATA,SADoC;AAEpC,6BAAyBO,KAFW;AAGpC,wBAAoBE;AAHgB,GAAjB,CAApB;AAMA,SACC;AAAK,IAAA,SAAS,EAAEE;AAAhB,KACEV,KAAK,IAAI,gCAAC,sBAAD;AAAU,IAAA,KAAK,EAAEA,KAAjB;AAAwB,IAAA,EAAE,EAAEF,EAA5B;AAAgC,IAAA,SAAS,EAAEG;AAA3C,IADX,EAEC,gCAAC,wBAAD;AACC,IAAA,IAAI,EAAEC,IADP;AAEC,IAAA,UAAU,EAAEC,UAFb;AAGC,IAAA,SAAS,EAAEC,SAHZ;AAIC,IAAA,QAAQ,EAAEC;AAJX,KAKKI,IALL,EAFD,EASE,CAACF,MAAM,IAAID,KAAX,KAAqB,gCAAC,yBAAD;AAAa,IAAA,MAAM,EAAEC,MAArB;AAA6B,IAAA,KAAK,EAAED;AAApC,IATvB,CADD;AAaA,CAnCD;;eAqCeV,S","sourcesContent":["import React, { ReactNode } from 'react'\nimport cx from 'classnames'\nimport { InputPre, InputInner, InputHelper } from '../../FormPartials'\n\ninterface ITextInputProps extends React.HTMLProps<HTMLInputElement> {\n\t/** Unique identifier */\n\tid: string\n\n\t/** Optional class */\n\tclassName?: string\n\n\t/** Label text */\n\tlabel?: string\n\n\t/** Text after label */\n\tpostLabel?: string\n\n\t/** Useful for credit cards */\n\tkind?: string\n\n\t/** Optional icon to show in the input */\n\ticonBefore?: string\n\n\t/** Optional icon to show at the end of the input */\n\ticonAfter?: any\n\n\t/** Optional; helpful for subdomains */\n\tappendix?: string\n\n\t/** Error text */\n\terror?: string\n\n\t/** Helper text */\n\thelper?: string | ReactNode\n\n\t/** Set true to make the input less tall */\n\tisSmall?: boolean\n}\n\nconst TextInput = (props: ITextInputProps): React.ReactElement => {\n\tconst {\n\t\tid,\n\t\tclassName,\n\t\tlabel,\n\t\tpostLabel,\n\t\tkind,\n\t\ticonBefore,\n\t\ticonAfter,\n\t\tappendix,\n\t\terror,\n\t\thelper,\n\t\tisSmall,\n\t\t...rest\n\t} = props\n\n\tconst parentClass = cx('text-input', {\n\t\tclassName,\n\t\t'text-input--has-error': error,\n\t\t'text-input-small': isSmall\n\t})\n\n\treturn (\n\t\t<div className={parentClass}>\n\t\t\t{label && <InputPre label={label} id={id} postLabel={postLabel} />}\n\t\t\t<InputInner\n\t\t\t\tkind={kind}\n\t\t\t\ticonBefore={iconBefore}\n\t\t\t\ticonAfter={iconAfter}\n\t\t\t\tappendix={appendix}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t{(helper || error) && <InputHelper helper={helper} error={error} />}\n\t\t</div>\n\t)\n}\n\nexport default TextInput\n"],"file":"TextInput.js"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IHWToggle } from '@sprucelabs/spruce-types';
|
|
3
|
+
export interface IToggleProps extends IHWToggle {
|
|
4
|
+
/** optional class name applied to the toggle */
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const Toggle: (props: IToggleProps) => 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
|
+
export default Toggle;
|
|
9
|
+
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Forms/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEpD,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC9C,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,yOAgBX,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
18
|
+
var Toggle = function Toggle(props) {
|
|
19
|
+
var id = props.id,
|
|
20
|
+
className = props.className,
|
|
21
|
+
postText = props.postText,
|
|
22
|
+
rest = (0, _objectWithoutProperties2["default"])(props, ["id", "className", "postText"]);
|
|
23
|
+
var parentClass = (0, _classnames["default"])('toggle__wrapper', className);
|
|
24
|
+
return _react["default"].createElement("div", {
|
|
25
|
+
className: parentClass
|
|
26
|
+
}, _react["default"].createElement("div", {
|
|
27
|
+
className: "toggle"
|
|
28
|
+
}, _react["default"].createElement("input", (0, _extends2["default"])({
|
|
29
|
+
className: "toggle__input",
|
|
30
|
+
type: "checkbox",
|
|
31
|
+
id: id
|
|
32
|
+
}, rest)), _react["default"].createElement("label", {
|
|
33
|
+
className: "toggle__label",
|
|
34
|
+
htmlFor: id
|
|
35
|
+
})), postText && _react["default"].createElement("label", {
|
|
36
|
+
className: "toggle__text",
|
|
37
|
+
htmlFor: id
|
|
38
|
+
}, postText));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var _default = Toggle;
|
|
42
|
+
exports["default"] = _default;
|
|
43
|
+
//# sourceMappingURL=Toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Forms/components/Toggle/Toggle.tsx"],"names":["Toggle","props","id","className","postText","rest","parentClass"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAQA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD,EAA6C;AAAA,MACnDC,EADmD,GACdD,KADc,CACnDC,EADmD;AAAA,MAC/CC,SAD+C,GACdF,KADc,CAC/CE,SAD+C;AAAA,MACpCC,QADoC,GACdH,KADc,CACpCG,QADoC;AAAA,MACvBC,IADuB,6CACdJ,KADc;AAE3D,MAAMK,WAAW,GAAG,4BAAG,iBAAH,EAAsBH,SAAtB,CAApB;AACA,SACC;AAAK,IAAA,SAAS,EAAEG;AAAhB,KACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACC;AAAO,IAAA,SAAS,EAAC,eAAjB;AAAiC,IAAA,IAAI,EAAC,UAAtC;AAAiD,IAAA,EAAE,EAAEJ;AAArD,KAA6DG,IAA7D,EADD,EAEC;AAAO,IAAA,SAAS,EAAC,eAAjB;AAAiC,IAAA,OAAO,EAAEH;AAA1C,IAFD,CADD,EAKEE,QAAQ,IACR;AAAO,IAAA,SAAS,EAAC,cAAjB;AAAgC,IAAA,OAAO,EAAEF;AAAzC,KACEE,QADF,CANF,CADD;AAaA,CAhBD;;eAkBeJ,M","sourcesContent":["import React from 'react'\nimport cx from 'classnames'\nimport { IHWToggle } from '@sprucelabs/spruce-types'\n\nexport interface IToggleProps extends IHWToggle {\n\t/** optional class name applied to the toggle */\n\tclassName?: string\n}\n\nconst Toggle = (props: IToggleProps): React.ReactElement => {\n\tconst { id, className, postText, ...rest } = props\n\tconst parentClass = cx('toggle__wrapper', className)\n\treturn (\n\t\t<div className={parentClass}>\n\t\t\t<div className=\"toggle\">\n\t\t\t\t<input className=\"toggle__input\" type=\"checkbox\" id={id} {...rest} />\n\t\t\t\t<label className=\"toggle__label\" htmlFor={id} />\n\t\t\t</div>\n\t\t\t{postText && (\n\t\t\t\t<label className=\"toggle__text\" htmlFor={id}>\n\t\t\t\t\t{postText}\n\t\t\t\t</label>\n\t\t\t)}\n\t\t</div>\n\t)\n}\n\nexport default Toggle\n"],"file":"Toggle.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as Autosuggest, IAutosuggestInterfaceProps } from './components/Autosuggest/Autosuggest';
|
|
2
|
+
export { default as Checkbox } from './components/Checkbox/Checkbox';
|
|
3
|
+
export { default as DatePicker } from './components/DatePicker/DatePicker';
|
|
4
|
+
export { default as DomainInput } from './components/DomainInput/DomainInput';
|
|
5
|
+
export { default as FormBuilder } from './components/FormBuilder/FormBuilder';
|
|
6
|
+
export { default as DurationInput } from './components/DurationInput/DurationInput';
|
|
7
|
+
export { default as PhoneInput, formatPhoneNumber, formatPhoneNumberIntl, isValidPhoneNumber } from './components/PhoneInput/PhoneInput';
|
|
8
|
+
export { default as Radio } from './components/Radio/Radio';
|
|
9
|
+
export { default as Search } from './components/Search/Search';
|
|
10
|
+
export { default as Select } from './components/Select/Select';
|
|
11
|
+
export { default as Slider } from './components/Slider/Slider';
|
|
12
|
+
export { default as Stars } from './components/Stars/Stars';
|
|
13
|
+
export { default as Tag } from './components/Tag/Tag';
|
|
14
|
+
export { default as TextArea } from './components/TextArea/TextArea';
|
|
15
|
+
export { default as TextInput } from './components/TextInput/TextInput';
|
|
16
|
+
export { default as Toggle } from './components/Toggle/Toggle';
|
|
17
|
+
export { default as FormLayout, FormLayoutGroup, FormLayoutItem } from './components/FormLayout';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Forms/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,OAAO,IAAI,WAAW,EACtB,0BAA0B,EAC1B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EACN,OAAO,IAAI,aAAa,EACxB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACN,OAAO,IAAI,UAAU,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EACN,OAAO,IAAI,UAAU,EACrB,eAAe,EACf,cAAc,EACd,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,182 @@
|
|
|
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, "Autosuggest", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _Autosuggest["default"];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "IAutosuggestInterfaceProps", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function get() {
|
|
19
|
+
return _Autosuggest.IAutosuggestInterfaceProps;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "Checkbox", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function get() {
|
|
25
|
+
return _Checkbox["default"];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "DatePicker", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function get() {
|
|
31
|
+
return _DatePicker["default"];
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "DomainInput", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function get() {
|
|
37
|
+
return _DomainInput["default"];
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "FormBuilder", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function get() {
|
|
43
|
+
return _FormBuilder["default"];
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "DurationInput", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function get() {
|
|
49
|
+
return _DurationInput["default"];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "PhoneInput", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function get() {
|
|
55
|
+
return _PhoneInput["default"];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "formatPhoneNumber", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function get() {
|
|
61
|
+
return _PhoneInput.formatPhoneNumber;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "formatPhoneNumberIntl", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function get() {
|
|
67
|
+
return _PhoneInput.formatPhoneNumberIntl;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "isValidPhoneNumber", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function get() {
|
|
73
|
+
return _PhoneInput.isValidPhoneNumber;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "Radio", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _Radio["default"];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "Search", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function get() {
|
|
85
|
+
return _Search["default"];
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "Select", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function get() {
|
|
91
|
+
return _Select["default"];
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "Slider", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function get() {
|
|
97
|
+
return _Slider["default"];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "Stars", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function get() {
|
|
103
|
+
return _Stars["default"];
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "Tag", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function get() {
|
|
109
|
+
return _Tag["default"];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "TextArea", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function get() {
|
|
115
|
+
return _TextArea["default"];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "TextInput", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function get() {
|
|
121
|
+
return _TextInput["default"];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "Toggle", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function get() {
|
|
127
|
+
return _Toggle["default"];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "FormLayout", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function get() {
|
|
133
|
+
return _FormLayout["default"];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(exports, "FormLayoutGroup", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function get() {
|
|
139
|
+
return _FormLayout.FormLayoutGroup;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(exports, "FormLayoutItem", {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function get() {
|
|
145
|
+
return _FormLayout.FormLayoutItem;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
var _Autosuggest = _interopRequireWildcard(require("./components/Autosuggest/Autosuggest"));
|
|
150
|
+
|
|
151
|
+
var _Checkbox = _interopRequireDefault(require("./components/Checkbox/Checkbox"));
|
|
152
|
+
|
|
153
|
+
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
154
|
+
|
|
155
|
+
var _DomainInput = _interopRequireDefault(require("./components/DomainInput/DomainInput"));
|
|
156
|
+
|
|
157
|
+
var _FormBuilder = _interopRequireDefault(require("./components/FormBuilder/FormBuilder"));
|
|
158
|
+
|
|
159
|
+
var _DurationInput = _interopRequireDefault(require("./components/DurationInput/DurationInput"));
|
|
160
|
+
|
|
161
|
+
var _PhoneInput = _interopRequireWildcard(require("./components/PhoneInput/PhoneInput"));
|
|
162
|
+
|
|
163
|
+
var _Radio = _interopRequireDefault(require("./components/Radio/Radio"));
|
|
164
|
+
|
|
165
|
+
var _Search = _interopRequireDefault(require("./components/Search/Search"));
|
|
166
|
+
|
|
167
|
+
var _Select = _interopRequireDefault(require("./components/Select/Select"));
|
|
168
|
+
|
|
169
|
+
var _Slider = _interopRequireDefault(require("./components/Slider/Slider"));
|
|
170
|
+
|
|
171
|
+
var _Stars = _interopRequireDefault(require("./components/Stars/Stars"));
|
|
172
|
+
|
|
173
|
+
var _Tag = _interopRequireDefault(require("./components/Tag/Tag"));
|
|
174
|
+
|
|
175
|
+
var _TextArea = _interopRequireDefault(require("./components/TextArea/TextArea"));
|
|
176
|
+
|
|
177
|
+
var _TextInput = _interopRequireDefault(require("./components/TextInput/TextInput"));
|
|
178
|
+
|
|
179
|
+
var _Toggle = _interopRequireDefault(require("./components/Toggle/Toggle"));
|
|
180
|
+
|
|
181
|
+
var _FormLayout = _interopRequireWildcard(require("./components/FormLayout"));
|
|
182
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Forms/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AAGA;;AAMA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["export {\n\tdefault as Autosuggest,\n\tIAutosuggestInterfaceProps\n} from './components/Autosuggest/Autosuggest'\nexport { default as Checkbox } from './components/Checkbox/Checkbox'\nexport { default as DatePicker } from './components/DatePicker/DatePicker'\nexport { default as DomainInput } from './components/DomainInput/DomainInput'\nexport { default as FormBuilder } from './components/FormBuilder/FormBuilder'\nexport {\n\tdefault as DurationInput\n} from './components/DurationInput/DurationInput'\nexport {\n\tdefault as PhoneInput,\n\tformatPhoneNumber,\n\tformatPhoneNumberIntl,\n\tisValidPhoneNumber\n} from './components/PhoneInput/PhoneInput'\nexport { default as Radio } from './components/Radio/Radio'\nexport { default as Search } from './components/Search/Search'\nexport { default as Select } from './components/Select/Select'\nexport { default as Slider } from './components/Slider/Slider'\nexport { default as Stars } from './components/Stars/Stars'\nexport { default as Tag } from './components/Tag/Tag'\nexport { default as TextArea } from './components/TextArea/TextArea'\nexport { default as TextInput } from './components/TextInput/TextInput'\nexport { default as Toggle } from './components/Toggle/Toggle'\nexport {\n\tdefault as FormLayout,\n\tFormLayoutGroup,\n\tFormLayoutItem\n} from './components/FormLayout'\n"],"file":"index.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 _Heading = _interopRequireDefault(require("./Heading"));
|
|
12
|
+
|
|
13
|
+
var stories = (0, _react2.storiesOf)('Heading', module);
|
|
14
|
+
stories.addDecorator(_react3.withKnobs);
|
|
15
|
+
stories.add('Heading', function () {
|
|
16
|
+
return _react["default"].createElement(_Heading["default"], null, (0, _react3.text)('children', 'Hello, world'));
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=Heading-story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Heading/Heading-story.js"],"names":["stories","module","addDecorator","withKnobs","add"],"mappings":";;;;AACA;;AACA;;AACA;;AACA;;AACA,IAAMA,OAAO,GAAG,uBAAU,SAAV,EAAqBC,MAArB,CAAhB;AAEAD,OAAO,CAACE,YAAR,CAAqBC,iBAArB;AAEAH,OAAO,CAACI,GAAR,CAAY,SAAZ,EAAuB;AAAA,SACtB,gCAAC,mBAAD,QAAU,kBAAK,UAAL,EAAiB,cAAjB,CAAV,CADsB;AAAA,CAAvB","sourcesContent":["// @flow\nimport React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport { withKnobs, text } from '@storybook/addon-knobs/react'\nimport Heading from './Heading'\nconst stories = storiesOf('Heading', module)\n\nstories.addDecorator(withKnobs)\n\nstories.add('Heading', () => (\n\t<Heading>{text('children', 'Hello, world')}</Heading>\n))\n"],"file":"Heading-story.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IHWHeading } from '@sprucelabs/spruce-types';
|
|
3
|
+
export interface IHeadingProps extends Omit<IHWHeading, 'id'> {
|
|
4
|
+
/** id for view caching */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** classname */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** any children (dropped in after whatever is in text prop) */
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const Heading: (props: IHeadingProps) => 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>)>;
|
|
12
|
+
export default Heading;
|
|
13
|
+
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAoB,MAAM,0BAA0B,CAAA;AAEvE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC;IAC5D,0BAA0B;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,QAAA,MAAM,OAAO,0OAaZ,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 _spruceTypes = require("@sprucelabs/spruce-types");
|
|
15
|
+
|
|
16
|
+
var Heading = function Heading(props) {
|
|
17
|
+
var text = props.text,
|
|
18
|
+
className = props.className,
|
|
19
|
+
weight = props.weight,
|
|
20
|
+
children = props.children;
|
|
21
|
+
var Element = weight || _spruceTypes.IHWHeadingWeight.H2;
|
|
22
|
+
return _react["default"].createElement(Element, {
|
|
23
|
+
className: (0, _classnames["default"])('heading', className),
|
|
24
|
+
dangerouslySetInnerHTML: text ? {
|
|
25
|
+
__html: text
|
|
26
|
+
} : undefined
|
|
27
|
+
}, children);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var _default = Heading;
|
|
31
|
+
exports["default"] = _default;
|
|
32
|
+
//# sourceMappingURL=Heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Heading/Heading.tsx"],"names":["Heading","props","text","className","weight","children","Element","IHWHeadingWeight","H2","__html","undefined"],"mappings":";;;;;;;;;AACA;;AACA;;AACA;;AAaA,IAAMA,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAA8C;AAAA,MACrDC,IADqD,GACfD,KADe,CACrDC,IADqD;AAAA,MAC/CC,SAD+C,GACfF,KADe,CAC/CE,SAD+C;AAAA,MACpCC,MADoC,GACfH,KADe,CACpCG,MADoC;AAAA,MAC5BC,QAD4B,GACfJ,KADe,CAC5BI,QAD4B;AAG7D,MAAMC,OAAO,GAAGF,MAAM,IAAIG,8BAAiBC,EAA3C;AAEA,SACC,gCAAC,OAAD;AACC,IAAA,SAAS,EAAE,4BAAG,SAAH,EAAcL,SAAd,CADZ;AAEC,IAAA,uBAAuB,EAAED,IAAI,GAAG;AAAEO,MAAAA,MAAM,EAAEP;AAAV,KAAH,GAAsBQ;AAFpD,KAIEL,QAJF,CADD;AAQA,CAbD;;eAeeL,O","sourcesContent":["// @flow\nimport React from 'react'\nimport cx from 'classnames'\nimport { IHWHeading, IHWHeadingWeight } from '@sprucelabs/spruce-types'\n\nexport interface IHeadingProps extends Omit<IHWHeading, 'id'> {\n\t/** id for view caching */\n\tid?: string\n\n\t/** classname */\n\tclassName?: string\n\n\t/** any children (dropped in after whatever is in text prop) */\n\tchildren?: React.ReactNode\n}\n\nconst Heading = (props: IHeadingProps): React.ReactElement => {\n\tconst { text, className, weight, children } = props\n\n\tconst Element = weight || IHWHeadingWeight.H2\n\n\treturn (\n\t\t<Element\n\t\t\tclassName={cx('heading', className)}\n\t\t\tdangerouslySetInnerHTML={text ? { __html: text } : undefined}\n\t\t>\n\t\t\t{children}\n\t\t</Element>\n\t)\n}\n\nexport default Heading\n"],"file":"Heading.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon-story.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon-story.tsx"],"names":[],"mappings":"AASA,OAAO,aAAa,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
|
|
9
|
+
var _lodash = require("lodash");
|
|
10
|
+
|
|
11
|
+
var _react2 = require("@storybook/react");
|
|
12
|
+
|
|
13
|
+
var _react3 = require("@storybook/addon-knobs/react");
|
|
14
|
+
|
|
15
|
+
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
16
|
+
|
|
17
|
+
var icons = _interopRequireWildcard(require("../../icons.js"));
|
|
18
|
+
|
|
19
|
+
require("./demo.scss");
|
|
20
|
+
|
|
21
|
+
var options = {};
|
|
22
|
+
(0, _lodash.each)((0, _lodash.keys)(icons), function (icon) {
|
|
23
|
+
options[icon] = icon;
|
|
24
|
+
});
|
|
25
|
+
var stories = (0, _react2.storiesOf)('Icon', module);
|
|
26
|
+
stories.addDecorator(_react3.withKnobs);
|
|
27
|
+
stories.add('Icon', function () {
|
|
28
|
+
return _react["default"].createElement(_Icon["default"], {
|
|
29
|
+
name: (0, _react3.select)('icon', options, 'edit')
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
stories.add('All Icons', function () {
|
|
33
|
+
return _react["default"].createElement("div", {
|
|
34
|
+
className: "Storybook-IconGrid"
|
|
35
|
+
}, (0, _lodash.map)((0, _lodash.keys)(icons), function (icon) {
|
|
36
|
+
return _react["default"].createElement("div", {
|
|
37
|
+
className: "Storybook-IconGridItem",
|
|
38
|
+
key: "icon-".concat(icon)
|
|
39
|
+
}, _react["default"].createElement(_Icon["default"], {
|
|
40
|
+
name: icon
|
|
41
|
+
}), _react["default"].createElement("div", null, icon));
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=Icon-story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Icon/Icon-story.tsx"],"names":["options","icons","icon","stories","module","addDecorator","withKnobs","add"],"mappings":";;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAEA;;AAEA,IAAMA,OAAO,GAAG,EAAhB;AAEA,kBAAK,kBAAKC,KAAL,CAAL,EAAkB,UAAAC,IAAI,EAAI;AACzBF,EAAAA,OAAO,CAACE,IAAD,CAAP,GAAgBA,IAAhB;AACA,CAFD;AAIA,IAAMC,OAAO,GAAG,uBAAU,MAAV,EAAkBC,MAAlB,CAAhB;AAEAD,OAAO,CAACE,YAAR,CAAqBC,iBAArB;AAEAH,OAAO,CAACI,GAAR,CAAY,MAAZ,EAAoB;AAAA,SAAM,gCAAC,gBAAD;AAAM,IAAA,IAAI,EAAE,oBAAO,MAAP,EAAeP,OAAf,EAAwB,MAAxB;AAAZ,IAAN;AAAA,CAApB;AAEAG,OAAO,CAACI,GAAR,CAAY,WAAZ,EAAyB;AAAA,SACxB;AAAK,IAAA,SAAS,EAAC;AAAf,KACE,iBAAI,kBAAKN,KAAL,CAAJ,EAAiB,UAAAC,IAAI;AAAA,WACrB;AAAK,MAAA,SAAS,EAAC,wBAAf;AAAwC,MAAA,GAAG,iBAAUA,IAAV;AAA3C,OACC,gCAAC,gBAAD;AAAM,MAAA,IAAI,EAAEA;AAAZ,MADD,EAEC,6CAAMA,IAAN,CAFD,CADqB;AAAA,GAArB,CADF,CADwB;AAAA,CAAzB","sourcesContent":["// @flow\nimport React from 'react'\nimport { each, keys, map } from 'lodash'\nimport { storiesOf } from '@storybook/react'\nimport { withKnobs, select } from '@storybook/addon-knobs/react'\nimport Icon from './Icon'\n\nimport * as icons from '../../icons.js'\n\nimport './demo.scss'\n\nconst options = {}\n\neach(keys(icons), icon => {\n\toptions[icon] = icon\n})\n\nconst stories = storiesOf('Icon', module)\n\nstories.addDecorator(withKnobs)\n\nstories.add('Icon', () => <Icon name={select('icon', options, 'edit')} />)\n\nstories.add('All Icons', () => (\n\t<div className=\"Storybook-IconGrid\">\n\t\t{map(keys(icons), icon => (\n\t\t\t<div className=\"Storybook-IconGridItem\" key={`icon-${icon}`}>\n\t\t\t\t<Icon name={icon} />\n\t\t\t\t<div>{icon}</div>\n\t\t\t</div>\n\t\t))}\n\t</div>\n))\n"],"file":"Icon-story.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IHWIcon } from '@sprucelabs/spruce-types';
|
|
3
|
+
export interface IIconProps extends Omit<IHWIcon, 'id'> {
|
|
4
|
+
/** Optional id for view caching */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Pass a custom icon to use one that isn't keyed to a name */
|
|
7
|
+
customIcon?: any;
|
|
8
|
+
/** Optional classname for the icon */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Icon: (props: IIconProps) => 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>)>;
|
|
12
|
+
export default Icon;
|
|
13
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAElD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACtD,mCAAmC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,+DAA+D;IAC/D,UAAU,CAAC,EAAE,GAAG,CAAA;IAEhB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,IAAI,uOAyBT,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
|
+
|
|
20
|
+
var icons = _interopRequireWildcard(require("../../icons.js"));
|
|
21
|
+
|
|
22
|
+
// TODO(george): Figure out why icons busts this rule.
|
|
23
|
+
|
|
24
|
+
/* eslint import/namespace: off */
|
|
25
|
+
// NOTE: This component should only include a few of the most commonly
|
|
26
|
+
// used icons for developer convenience
|
|
27
|
+
var Icon = function Icon(props) {
|
|
28
|
+
var icon = props.name,
|
|
29
|
+
customIcon = props.customIcon,
|
|
30
|
+
isLineIcon = props.isLineIcon,
|
|
31
|
+
className = props.className,
|
|
32
|
+
rest = (0, _objectWithoutProperties2["default"])(props, ["name", "customIcon", "isLineIcon", "className"]);
|
|
33
|
+
var iconKey = icon && icon.toLowerCase();
|
|
34
|
+
|
|
35
|
+
if (!customIcon && (!icon || !icons[iconKey])) {
|
|
36
|
+
console.warn("<Icon /> could not find an icon with key ", icon);
|
|
37
|
+
return _react["default"].createElement(_react.Fragment, null);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
var isFillIcon = !customIcon && icons[iconKey] && !icons[iconKey].isLineIcon;
|
|
41
|
+
var Handler = customIcon || icons[iconKey].icon;
|
|
42
|
+
return _react["default"].createElement(Handler, (0, _extends2["default"])({
|
|
43
|
+
className: (0, _classnames["default"])(className, 'icon', {
|
|
44
|
+
'icon--no-fill': typeof isLineIcon !== 'undefined' ? isLineIcon : !isFillIcon,
|
|
45
|
+
'icon--stroke': typeof isLineIcon !== 'undefined' ? isLineIcon : !isFillIcon
|
|
46
|
+
})
|
|
47
|
+
}, rest));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var _default = Icon;
|
|
51
|
+
exports["default"] = _default;
|
|
52
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Icon/Icon.tsx"],"names":["Icon","props","icon","name","customIcon","isLineIcon","className","rest","iconKey","toLowerCase","icons","console","warn","isFillIcon","Handler"],"mappings":";;;;;;;;;;;;;;;AAKA;;AACA;;AAEA;;AARA;;AACA;AAEA;AACA;AAkBA,IAAMA,IAAI,GAAG,SAAPA,IAAO,CAACC,KAAD,EAA2C;AAAA,MACzCC,IADyC,GACYD,KADZ,CAC/CE,IAD+C;AAAA,MACnCC,UADmC,GACYH,KADZ,CACnCG,UADmC;AAAA,MACvBC,UADuB,GACYJ,KADZ,CACvBI,UADuB;AAAA,MACXC,SADW,GACYL,KADZ,CACXK,SADW;AAAA,MACGC,IADH,6CACYN,KADZ;AAGvD,MAAMO,OAAO,GAAGN,IAAI,IAAIA,IAAI,CAACO,WAAL,EAAxB;;AAEA,MAAI,CAACL,UAAD,KAAgB,CAACF,IAAD,IAAS,CAACQ,KAAK,CAACF,OAAD,CAA/B,CAAJ,EAA+C;AAC9CG,IAAAA,OAAO,CAACC,IAAR,8CAA0DV,IAA1D;AACA,WAAO,gCAAC,eAAD,OAAP;AACA;;AAED,MAAMW,UAAU,GAAG,CAACT,UAAD,IAAeM,KAAK,CAACF,OAAD,CAApB,IAAiC,CAACE,KAAK,CAACF,OAAD,CAAL,CAAeH,UAApE;AAEA,MAAMS,OAAO,GAAGV,UAAU,IAAIM,KAAK,CAACF,OAAD,CAAL,CAAeN,IAA7C;AAEA,SACC,gCAAC,OAAD;AACC,IAAA,SAAS,EAAE,4BAAGI,SAAH,EAAc,MAAd,EAAsB;AAChC,uBACC,OAAOD,UAAP,KAAsB,WAAtB,GAAoCA,UAApC,GAAiD,CAACQ,UAFnB;AAGhC,sBACC,OAAOR,UAAP,KAAsB,WAAtB,GAAoCA,UAApC,GAAiD,CAACQ;AAJnB,KAAtB;AADZ,KAOKN,IAPL,EADD;AAWA,CAzBD;;eA2BeP,I","sourcesContent":["// TODO(george): Figure out why icons busts this rule.\n/* eslint import/namespace: off */\n\n// NOTE: This component should only include a few of the most commonly\n// used icons for developer convenience\nimport React, { Fragment } from 'react'\nimport cx from 'classnames'\n\nimport * as icons from '../../icons.js'\nimport { IHWIcon } from '@sprucelabs/spruce-types'\n\nexport interface IIconProps extends Omit<IHWIcon, 'id'> {\n\t/** Optional id for view caching */\n\tid?: string\n\n\t/** Pass a custom icon to use one that isn't keyed to a name */\n\tcustomIcon?: any\n\n\t/** Optional classname for the icon */\n\tclassName?: string\n}\n\nconst Icon = (props: IIconProps): React.ReactElement => {\n\tconst { name: icon, customIcon, isLineIcon, className, ...rest } = props\n\n\tconst iconKey = icon && icon.toLowerCase()\n\n\tif (!customIcon && (!icon || !icons[iconKey])) {\n\t\tconsole.warn(`<Icon /> could not find an icon with key `, icon)\n\t\treturn <Fragment />\n\t}\n\n\tconst isFillIcon = !customIcon && icons[iconKey] && !icons[iconKey].isLineIcon\n\n\tconst Handler = customIcon || icons[iconKey].icon\n\n\treturn (\n\t\t<Handler\n\t\t\tclassName={cx(className, 'icon', {\n\t\t\t\t'icon--no-fill':\n\t\t\t\t\ttypeof isLineIcon !== 'undefined' ? isLineIcon : !isFillIcon,\n\t\t\t\t'icon--stroke':\n\t\t\t\t\ttypeof isLineIcon !== 'undefined' ? isLineIcon : !isFillIcon\n\t\t\t})}\n\t\t\t{...rest}\n\t\t/>\n\t)\n}\n\nexport default Icon\n"],"file":"Icon.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IHWImage } from '@sprucelabs/spruce-types';
|
|
3
|
+
export interface IImageProps extends Omit<IHWImage, 'id'> {
|
|
4
|
+
id?: string;
|
|
5
|
+
alt?: string | null;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const Image: (props: IHWImage | IImageProps) => 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>)>;
|
|
10
|
+
export default Image;
|
|
11
|
+
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/components/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxD,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,MAAM,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,KAAK,mPAgBV,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Image = function Image(props) {
|
|
13
|
+
var reactHeartwoodProps = props;
|
|
14
|
+
var commonProps = props;
|
|
15
|
+
var id = commonProps.id,
|
|
16
|
+
alt = commonProps.alt,
|
|
17
|
+
src = commonProps.src;
|
|
18
|
+
var width = reactHeartwoodProps.width,
|
|
19
|
+
height = reactHeartwoodProps.height;
|
|
20
|
+
var imageProps = {
|
|
21
|
+
id: id || undefined,
|
|
22
|
+
alt: alt || undefined,
|
|
23
|
+
width: width || undefined,
|
|
24
|
+
height: height || undefined,
|
|
25
|
+
src: src || undefined
|
|
26
|
+
};
|
|
27
|
+
return _react["default"].createElement("img", imageProps);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var _default = Image;
|
|
31
|
+
exports["default"] = _default;
|
|
32
|
+
//# sourceMappingURL=Image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Image/Image.tsx"],"names":["Image","props","reactHeartwoodProps","commonProps","id","alt","src","width","height","imageProps","undefined"],"mappings":";;;;;;;;;AAAA;;AAaA,IAAMA,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAuD;AACpE,MAAMC,mBAAmB,GAAGD,KAA5B;AACA,MAAME,WAAW,GAAGF,KAApB;AAFoE,MAI5DG,EAJ4D,GAI3CD,WAJ2C,CAI5DC,EAJ4D;AAAA,MAIxDC,GAJwD,GAI3CF,WAJ2C,CAIxDE,GAJwD;AAAA,MAInDC,GAJmD,GAI3CH,WAJ2C,CAInDG,GAJmD;AAAA,MAK5DC,KAL4D,GAK1CL,mBAL0C,CAK5DK,KAL4D;AAAA,MAKrDC,MALqD,GAK1CN,mBAL0C,CAKrDM,MALqD;AAOpE,MAAMC,UAAU,GAAG;AAClBL,IAAAA,EAAE,EAAEA,EAAE,IAAIM,SADQ;AAElBL,IAAAA,GAAG,EAAEA,GAAG,IAAIK,SAFM;AAGlBH,IAAAA,KAAK,EAAEA,KAAK,IAAIG,SAHE;AAIlBF,IAAAA,MAAM,EAAEA,MAAM,IAAIE,SAJA;AAKlBJ,IAAAA,GAAG,EAAEA,GAAG,IAAII;AALM,GAAnB;AAQA,SAAO,uCAASD,UAAT,CAAP;AACA,CAhBD;;eAkBeT,K","sourcesContent":["import React from 'react'\nimport { IHWImage } from '@sprucelabs/spruce-types'\n\nexport interface IImageProps extends Omit<IHWImage, 'id'> {\n\tid?: string\n\n\talt?: string | null\n\n\twidth?: number\n\n\theight?: number\n}\n\nconst Image = (props: IImageProps | IHWImage): React.ReactElement => {\n\tconst reactHeartwoodProps = props as IImageProps\n\tconst commonProps = props as IHWImage\n\n\tconst { id, alt, src } = commonProps\n\tconst { width, height } = reactHeartwoodProps\n\n\tconst imageProps = {\n\t\tid: id || undefined,\n\t\talt: alt || undefined,\n\t\twidth: width || undefined,\n\t\theight: height || undefined,\n\t\tsrc: src || undefined\n\t}\n\n\treturn <img {...imageProps} />\n}\n\nexport default Image\n"],"file":"Image.js"}
|