@sarasanalytics-com/design-system 0.0.42 → 0.0.43
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/.editorconfig +16 -0
- package/.eslintrc.json +23 -0
- package/.storybook/main.ts +21 -0
- package/.storybook/manager.ts +17 -0
- package/.storybook/preview-head.html +5 -0
- package/.storybook/preview.ts +66 -0
- package/.storybook/tsconfig.doc.json +10 -0
- package/.storybook/tsconfig.json +11 -0
- package/.storybook/typings.d.ts +4 -0
- package/.vscode/extensions.json +7 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/settings.json +13 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +45 -24
- package/angular.json +195 -0
- package/build-storybook.log +45 -0
- package/documentation.json +0 -0
- package/generate-public-api.js +59 -0
- package/package.json +74 -19
- package/projects/component-library/README.md +24 -0
- package/projects/component-library/ng-package.json +8 -0
- package/projects/component-library/package.json +12 -0
- package/projects/component-library/src/interfaces/avatar-interface.ts +6 -0
- package/projects/component-library/src/interfaces/button-interface.ts +37 -0
- package/{interfaces/card-carousel-interface.d.ts → projects/component-library/src/interfaces/card-carousel-interface.ts} +2 -1
- package/projects/component-library/src/interfaces/chip-interface.ts +11 -0
- package/projects/component-library/src/interfaces/grid-interface.ts +24 -0
- package/projects/component-library/src/interfaces/icon-interface.ts +21 -0
- package/projects/component-library/src/interfaces/select-interface.ts +20 -0
- package/projects/component-library/src/interfaces/tab-interface.ts +6 -0
- package/{interfaces/toast-interface.d.ts → projects/component-library/src/interfaces/toast-interface.ts} +1 -1
- package/projects/component-library/src/lib/accordion/accordion.component.css +188 -0
- package/projects/component-library/src/lib/accordion/accordion.component.html +151 -0
- package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +23 -0
- package/projects/component-library/src/lib/accordion/accordion.component.ts +129 -0
- package/projects/component-library/src/lib/avatar/avatar.component.css +48 -0
- package/projects/component-library/src/lib/avatar/avatar.component.html +5 -0
- package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +23 -0
- package/projects/component-library/src/lib/avatar/avatar.component.ts +50 -0
- package/projects/component-library/src/lib/button/button.component.css +145 -0
- package/projects/component-library/src/lib/button/button.component.html +25 -0
- package/projects/component-library/src/lib/button/button.component.spec.ts +23 -0
- package/projects/component-library/src/lib/button/button.component.ts +82 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +67 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +20 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +191 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.html +1 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +70 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +1 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +13 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +4 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +3 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +1 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +3 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +1 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +12 -0
- package/projects/component-library/src/lib/card/card.component.css +149 -0
- package/projects/component-library/src/lib/card/card.component.html +46 -0
- package/projects/component-library/src/lib/card/card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card.component.ts +47 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +79 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +55 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +44 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +80 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +24 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +19 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +91 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +54 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +89 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.css +79 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.html +27 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +23 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.ts +38 -0
- package/projects/component-library/src/lib/chips/chips.component.css +129 -0
- package/projects/component-library/src/lib/chips/chips.component.html +17 -0
- package/projects/component-library/src/lib/chips/chips.component.spec.ts +23 -0
- package/projects/component-library/src/lib/chips/chips.component.ts +54 -0
- package/projects/component-library/src/lib/component-library.component.spec.ts +23 -0
- package/projects/component-library/src/lib/component-library.component.ts +16 -0
- package/projects/component-library/src/lib/component-library.service.spec.ts +16 -0
- package/projects/component-library/src/lib/component-library.service.ts +9 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.css +33 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.html +11 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +23 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.ts +36 -0
- package/projects/component-library/src/lib/form-input/form-input.component.css +164 -0
- package/projects/component-library/src/lib/form-input/form-input.component.html +55 -0
- package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +23 -0
- package/projects/component-library/src/lib/form-input/form-input.component.ts +282 -0
- package/projects/component-library/src/lib/form-select/form-select.component.css +158 -0
- package/projects/component-library/src/lib/form-select/form-select.component.html +38 -0
- package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +23 -0
- package/projects/component-library/src/lib/form-select/form-select.component.ts +72 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +78 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +31 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +23 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +89 -0
- package/projects/component-library/src/lib/header/header.component.css +62 -0
- package/projects/component-library/src/lib/header/header.component.html +23 -0
- package/projects/component-library/src/lib/header/header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/header/header.component.ts +28 -0
- package/projects/component-library/src/lib/icon/icon.component.css +65 -0
- package/projects/component-library/src/lib/icon/icon.component.html +9 -0
- package/projects/component-library/src/lib/icon/icon.component.ts +64 -0
- package/projects/component-library/src/lib/icon/icon.service.ts +26 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.css +109 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.html +51 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +23 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.ts +180 -0
- package/projects/component-library/src/lib/list/list.component.css +28 -0
- package/projects/component-library/src/lib/list/list.component.html +10 -0
- package/projects/component-library/src/lib/list/list.component.spec.ts +23 -0
- package/projects/component-library/src/lib/list/list.component.ts +15 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.css +52 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.html +15 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +23 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.ts +31 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.css +76 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.html +30 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +23 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.ts +14 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +30 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +4 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +23 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +24 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.css +128 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.html +28 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +23 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.ts +35 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +118 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +11 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +23 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +74 -0
- package/projects/component-library/src/lib/spinner/spinner.component.css +41 -0
- package/projects/component-library/src/lib/spinner/spinner.component.html +1 -0
- package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +23 -0
- package/projects/component-library/src/lib/spinner/spinner.component.ts +15 -0
- package/projects/component-library/src/lib/stepper/stepper.component.css +96 -0
- package/projects/component-library/src/lib/stepper/stepper.component.html +14 -0
- package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +23 -0
- package/projects/component-library/src/lib/stepper/stepper.component.ts +61 -0
- package/projects/component-library/src/lib/tabs/tabs.component.css +100 -0
- package/projects/component-library/src/lib/tabs/tabs.component.html +16 -0
- package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +23 -0
- package/projects/component-library/src/lib/tabs/tabs.component.ts +37 -0
- package/projects/component-library/src/lib/toast/toast.component.css +115 -0
- package/projects/component-library/src/lib/toast/toast.component.html +29 -0
- package/projects/component-library/src/lib/toast/toast.component.spec.ts +23 -0
- package/projects/component-library/src/lib/toast/toast.component.ts +87 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +144 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +31 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +23 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +37 -0
- package/{public-api.d.ts → projects/component-library/src/public-api.ts} +12 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +22 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +23 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +13 -0
- package/projects/component-library/src/utils/validators.ts +100 -0
- package/projects/component-library/tsconfig.lib.json +14 -0
- package/projects/component-library/tsconfig.lib.prod.json +10 -0
- package/projects/component-library/tsconfig.spec.json +14 -0
- package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
- package/src/Saras-logo.svg +15 -0
- package/src/app/app.component.css +82 -0
- package/src/app/app.component.html +663 -0
- package/src/app/app.component.spec.ts +29 -0
- package/src/app/app.component.ts +1341 -0
- package/src/app/app.config.ts +56 -0
- package/src/app/app.routes.ts +3 -0
- package/src/app/data.ts +52 -0
- package/src/app/kitchen-sink/kitchen-sink.component.css +30 -0
- package/src/app/kitchen-sink/kitchen-sink.component.html +7 -0
- package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +23 -0
- package/src/app/kitchen-sink/kitchen-sink.component.ts +92 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/analysis.svg +1 -0
- package/src/assets/arrowRightOutlined.svg +1 -0
- package/src/assets/avatar.svg +1 -0
- package/src/assets/bpn.svg +1 -0
- package/src/assets/businessStatsFilled.svg +1 -0
- package/src/assets/channelkey.svg +1 -0
- package/src/assets/chatHelpOutlined.svg +1 -0
- package/src/assets/checkCircleFilled.svg +1 -0
- package/src/assets/checkCircleOutlined.svg +1 -0
- package/src/assets/checkOutlined.svg +1 -0
- package/src/assets/circleFilled.svg +1 -0
- package/src/assets/closeBlueOutlined.svg +1 -0
- package/src/assets/closeCircleFilled.svg +1 -0
- package/src/assets/closeOutlined.svg +1 -0
- package/src/assets/dataonavatar.svg +1 -0
- package/src/assets/datonAvatar.png +0 -0
- package/src/assets/desktopSpeakerOutlined.svg +1 -0
- package/src/assets/disabledCheckboxFilled.svg +1 -0
- package/src/assets/doubleDownOutlined.svg +1 -0
- package/src/assets/downChevronOutlined.svg +3 -0
- package/src/assets/downOutlined.svg +1 -0
- package/src/assets/errorCircleOutlined.svg +1 -0
- package/src/assets/errorCrossOutlined.svg +3 -0
- package/src/assets/eyeFilled.svg +1 -0
- package/src/assets/eyeOff.svg +3 -0
- package/src/assets/eyeOutlined.svg +1 -0
- package/src/assets/formDetailsOutlined.svg +1 -0
- package/src/assets/gridViewOutlined.svg +1 -0
- package/src/assets/headsetOutlined.svg +3 -0
- package/src/assets/homeOutlined.svg +1 -0
- package/src/assets/icons/analysis1.svg +1 -0
- package/src/assets/infoCircleOutlined.svg +3 -0
- package/src/assets/infoTriangleFilled.svg +1 -0
- package/src/assets/infoTriangleOutlined.svg +1 -0
- package/src/assets/innosupps.svg +1 -0
- package/src/assets/leftChevronCircle.svg +2 -0
- package/src/assets/locationOutlined.svg +1 -0
- package/src/assets/loginDashboard.png +0 -0
- package/src/assets/mailOutlined.svg +1 -0
- package/src/assets/multiConnectionHub.svg +1 -0
- package/src/assets/murad.svg +1 -0
- package/src/assets/personOutlined.svg +1 -0
- package/src/assets/pricingIcon.svg +3 -0
- package/src/assets/rightChevronCircle.svg +1 -0
- package/src/assets/rightChevronOutlined.svg +1 -0
- package/src/assets/sarasFullLogo.svg +13 -0
- package/src/assets/sarasWhite.svg +1 -0
- package/src/assets/settingsOutlined.svg +1 -0
- package/src/assets/sourcesOutlined.svg +1 -0
- package/src/assets/tabDesktopArrowClockwiseOutlined.svg +1 -0
- package/src/assets/targetScanOutlined.svg +1 -0
- package/src/assets/timerOutlined.svg +5 -0
- package/src/assets/upwardTriangleFilled.svg +1 -0
- package/src/custom-theme.scss +37 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +23 -0
- package/src/main.ts +6 -0
- package/src/stories/GettingStarted.mdx +233 -0
- package/src/stories/KitchenSink.stories.ts +109 -0
- package/src/stories/accordion.stories.ts +234 -0
- package/src/stories/avatar.stories.ts +45 -0
- package/src/stories/card-carousel.stories.ts +136 -0
- package/src/stories/card.stories.ts +242 -0
- package/src/stories/checkbox.stories.ts +238 -0
- package/src/stories/chips.stories.ts +61 -0
- package/src/stories/custom-button.stories.ts +89 -0
- package/src/stories/datepicker.stories.ts +78 -0
- package/src/stories/form-input.stories.ts +166 -0
- package/src/stories/gridCell.stories.ts +234 -0
- package/src/stories/header.stories.ts +61 -0
- package/src/stories/icon.stories.ts +65 -0
- package/src/stories/leftnav.stories.ts +67 -0
- package/src/stories/message-banner.stories.ts +116 -0
- package/src/stories/page-layout.stories.ts +200 -0
- package/src/stories/progress-bar.stories.ts +40 -0
- package/src/stories/radio-button.stories.ts +80 -0
- package/src/stories/scrolling-card.stories.ts +36 -0
- package/src/stories/selectInput.stories.ts +176 -0
- package/src/stories/stepper.stories.ts +92 -0
- package/src/stories/tabs.stories.ts +97 -0
- package/src/stories/toast.stories.ts +74 -0
- package/src/stories/tool-tip.stories.ts +45 -0
- package/src/styles.css +388 -0
- package/src/svg.d.ts +1 -0
- package/tsconfig.app.json +14 -0
- package/tsconfig.json +42 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/interfaces/avatar-interface.mjs +0 -2
- package/esm2022/interfaces/button-interface.mjs +0 -10
- package/esm2022/interfaces/card-carousel-interface.mjs +0 -2
- package/esm2022/interfaces/chip-interface.mjs +0 -2
- package/esm2022/interfaces/grid-interface.mjs +0 -2
- package/esm2022/interfaces/guide-card-interface.mjs +0 -2
- package/esm2022/interfaces/icon-interface.mjs +0 -16
- package/esm2022/interfaces/message-banner.mjs +0 -2
- package/esm2022/interfaces/option-interface.mjs +0 -2
- package/esm2022/interfaces/select-interface.mjs +0 -2
- package/esm2022/interfaces/tab-interface.mjs +0 -2
- package/esm2022/interfaces/toast-interface.mjs +0 -2
- package/esm2022/lib/accordion/accordion.component.mjs +0 -115
- package/esm2022/lib/avatar/avatar.component.mjs +0 -56
- package/esm2022/lib/button/button.component.mjs +0 -100
- package/esm2022/lib/calendar-header/calendar-header.component.mjs +0 -168
- package/esm2022/lib/card/card-body/card-body.component.mjs +0 -11
- package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +0 -11
- package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +0 -11
- package/esm2022/lib/card/card-icon/card-icon.component.mjs +0 -11
- package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +0 -11
- package/esm2022/lib/card/card.component.mjs +0 -111
- package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +0 -41
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +0 -19
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +0 -87
- package/esm2022/lib/checkbox/checkbox.component.mjs +0 -38
- package/esm2022/lib/chips/chips.component.mjs +0 -62
- package/esm2022/lib/component-library.component.mjs +0 -19
- package/esm2022/lib/component-library.service.mjs +0 -14
- package/esm2022/lib/datepicker/datepicker.component.mjs +0 -40
- package/esm2022/lib/form-input/form-input.component.mjs +0 -219
- package/esm2022/lib/form-select/form-select.component.mjs +0 -77
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +0 -84
- package/esm2022/lib/header/header.component.mjs +0 -37
- package/esm2022/lib/icon/icon.component.mjs +0 -73
- package/esm2022/lib/icon/icon.service.mjs +0 -28
- package/esm2022/lib/left-nav/left-nav.component.mjs +0 -146
- package/esm2022/lib/list/list.component.mjs +0 -23
- package/esm2022/lib/message-banner/message-banner.component.mjs +0 -43
- package/esm2022/lib/page-layout/page-layout.component.mjs +0 -21
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -29
- package/esm2022/lib/radio-button/radio-button.component.mjs +0 -33
- package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +0 -59
- package/esm2022/lib/spinner/spinner.component.mjs +0 -22
- package/esm2022/lib/stepper/stepper.component.mjs +0 -64
- package/esm2022/lib/tabs/tabs.component.mjs +0 -38
- package/esm2022/lib/toast/toast.component.mjs +0 -100
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +0 -41
- package/esm2022/public-api.mjs +0 -56
- package/esm2022/sarasanalytics-com-design-system.mjs +0 -5
- package/esm2022/utils/validators.mjs +0 -97
- package/fesm2022/sarasanalytics-com-design-system.mjs +0 -2001
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/interfaces/avatar-interface.d.ts +0 -6
- package/interfaces/button-interface.d.ts +0 -22
- package/interfaces/chip-interface.d.ts +0 -11
- package/interfaces/grid-interface.d.ts +0 -24
- package/interfaces/icon-interface.d.ts +0 -4
- package/interfaces/select-interface.d.ts +0 -20
- package/interfaces/tab-interface.d.ts +0 -6
- package/lib/accordion/accordion.component.d.ts +0 -25
- package/lib/avatar/avatar.component.d.ts +0 -18
- package/lib/button/button.component.d.ts +0 -32
- package/lib/calendar-header/calendar-header.component.d.ts +0 -31
- package/lib/card/card-body/card-body.component.d.ts +0 -5
- package/lib/card/card-custom-header/card-custom-header.component.d.ts +0 -5
- package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +0 -5
- package/lib/card/card-icon/card-icon.component.d.ts +0 -5
- package/lib/card/card-title-actions/card-title-actions.component.d.ts +0 -5
- package/lib/card/card.component.d.ts +0 -31
- package/lib/card/checkbox-card/checkbox-card.component.d.ts +0 -12
- package/lib/card/guide-card/guide-card.component.d.ts +0 -8
- package/lib/card-carousel/card-carousel.component.d.ts +0 -27
- package/lib/checkbox/checkbox.component.d.ts +0 -9
- package/lib/chips/chips.component.d.ts +0 -22
- package/lib/component-library.component.d.ts +0 -5
- package/lib/component-library.service.d.ts +0 -6
- package/lib/datepicker/datepicker.component.d.ts +0 -9
- package/lib/form-input/form-input.component.d.ts +0 -67
- package/lib/form-select/form-select.component.d.ts +0 -18
- package/lib/grid-cell/grid-cell.component.d.ts +0 -20
- package/lib/header/header.component.d.ts +0 -14
- package/lib/icon/icon.component.d.ts +0 -24
- package/lib/icon/icon.service.d.ts +0 -12
- package/lib/left-nav/left-nav.component.d.ts +0 -47
- package/lib/list/list.component.d.ts +0 -10
- package/lib/message-banner/message-banner.component.d.ts +0 -19
- package/lib/page-layout/page-layout.component.d.ts +0 -8
- package/lib/progress-bar/progress-bar.component.d.ts +0 -13
- package/lib/radio-button/radio-button.component.d.ts +0 -12
- package/lib/scrolling-cards/scrolling-cards.component.d.ts +0 -36
- package/lib/spinner/spinner.component.d.ts +0 -7
- package/lib/stepper/stepper.component.d.ts +0 -17
- package/lib/tabs/tabs.component.d.ts +0 -15
- package/lib/toast/toast.component.d.ts +0 -33
- package/lib/tool-tip/tool-tip.component.d.ts +0 -15
- package/utils/validators.d.ts +0 -6
- /package/{interfaces/guide-card-interface.d.ts → projects/component-library/src/interfaces/guide-card-interface.ts} +0 -0
- /package/{interfaces/message-banner.d.ts → projects/component-library/src/interfaces/message-banner.ts} +0 -0
- /package/{interfaces/option-interface.d.ts → projects/component-library/src/interfaces/option-interface.ts} +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
+
import { moduleMetadata } from '@storybook/angular';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { FormlyForm, FormlyModule } from '@ngx-formly/core';
|
|
5
|
+
import { map as _map, reduce as _reduce } from 'lodash'
|
|
6
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
7
|
+
import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
|
|
8
|
+
import { AccordionComponent } from '../../projects/component-library/src/lib/accordion/accordion.component';
|
|
9
|
+
import { FormlyFieldWrapperComponent } from '../../projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component';
|
|
10
|
+
|
|
11
|
+
const meta: Meta<AccordionComponent> = {
|
|
12
|
+
title: 'Accordion',
|
|
13
|
+
component: AccordionComponent,
|
|
14
|
+
tags: ['autodocs'],
|
|
15
|
+
argTypes: {
|
|
16
|
+
options: {
|
|
17
|
+
control: { type: 'object' },
|
|
18
|
+
},
|
|
19
|
+
field: {
|
|
20
|
+
control: { type: 'object' },
|
|
21
|
+
},
|
|
22
|
+
model: {
|
|
23
|
+
control: { type: 'object' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
decorators: [
|
|
27
|
+
moduleMetadata({
|
|
28
|
+
imports: [ReactiveFormsModule, HttpClientModule, FormlyFieldWrapperComponent,
|
|
29
|
+
FormlyModule.forRoot({
|
|
30
|
+
types: [
|
|
31
|
+
{
|
|
32
|
+
name: 'sa-accordion',
|
|
33
|
+
component: AccordionComponent,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
wrappers: [
|
|
37
|
+
{
|
|
38
|
+
name: 'wrapper',
|
|
39
|
+
component: FormlyFieldWrapperComponent,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
})
|
|
43
|
+
],
|
|
44
|
+
providers: [IconService],
|
|
45
|
+
}),
|
|
46
|
+
],
|
|
47
|
+
render: (args) => ({
|
|
48
|
+
props: {
|
|
49
|
+
...args,
|
|
50
|
+
modelChangeHandler: (event: any) => {
|
|
51
|
+
console.log(event);
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
template: `<form>
|
|
55
|
+
<formly-form
|
|
56
|
+
[form]="form"
|
|
57
|
+
[fields]="fields"
|
|
58
|
+
[model]="model"
|
|
59
|
+
(modelChange)="modelChangeHandler($event)">
|
|
60
|
+
</formly-form>
|
|
61
|
+
</form>`
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export default meta;
|
|
66
|
+
type Story = StoryObj<FormlyForm>;
|
|
67
|
+
|
|
68
|
+
const panelData = [
|
|
69
|
+
{
|
|
70
|
+
key: 'marketingPanel',
|
|
71
|
+
title: 'Marketing',
|
|
72
|
+
accordionExpanded: false,
|
|
73
|
+
cardMessage: 'Marketing-specific features',
|
|
74
|
+
titleChip: {
|
|
75
|
+
label: 'Selected',
|
|
76
|
+
type: 'small',
|
|
77
|
+
state: 'neutral',
|
|
78
|
+
filling: 'filled',
|
|
79
|
+
changeStateTo: 'error',
|
|
80
|
+
text: ' {count} Selected',
|
|
81
|
+
},
|
|
82
|
+
features: [
|
|
83
|
+
{
|
|
84
|
+
title: 'Amazon Ads',
|
|
85
|
+
tooltip: 'Track Amazon ad performance.',
|
|
86
|
+
isSelected: false,
|
|
87
|
+
disabled: true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: 'Google Ads',
|
|
91
|
+
tooltip: 'Analyze Google ad metrics.',
|
|
92
|
+
isSelected: true,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: 'Marketing Overview',
|
|
96
|
+
tooltip: 'Track and analyze performance metrics for Amazon advertising campaigns, including impressions, clicks, and conversions.',
|
|
97
|
+
isSelected: false,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: 'Facebook Ads',
|
|
101
|
+
tooltip: 'Track and analyze performance metrics for Amazon advertising campaigns, including impressions, clicks, and conversions.',
|
|
102
|
+
isSelected: false,
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: 'accountingPanel',
|
|
108
|
+
title: 'Accounting',
|
|
109
|
+
accordionExpanded: true,
|
|
110
|
+
cardMessage: 'Accounting-specific features',
|
|
111
|
+
customWrapperClass: '',
|
|
112
|
+
titleChip: {
|
|
113
|
+
label: 'Selected',
|
|
114
|
+
type: 'small',
|
|
115
|
+
state: 'neutral',
|
|
116
|
+
filling: 'filled',
|
|
117
|
+
changeStateTo: 'primary',
|
|
118
|
+
text: '{count} Selected',
|
|
119
|
+
},
|
|
120
|
+
features: [
|
|
121
|
+
{
|
|
122
|
+
title: 'QuickBooks',
|
|
123
|
+
tooltip: 'Integrate QuickBooks data.',
|
|
124
|
+
isSelected: false,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
title: 'Xero',
|
|
128
|
+
tooltip: 'Connect Xero accounting.',
|
|
129
|
+
isSelected: true,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
title: 'Shopify',
|
|
133
|
+
tooltip: 'Track Amazon ad performance.',
|
|
134
|
+
isSelected: false,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: 'Klaviyo',
|
|
138
|
+
tooltip: 'Analyze Google ad metrics.',
|
|
139
|
+
isSelected: true,
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
advancedFeaturesExpanded: true,
|
|
143
|
+
advancedFeatures: [
|
|
144
|
+
{
|
|
145
|
+
title: 'Magento',
|
|
146
|
+
tooltip: 'Integrate Magento data.',
|
|
147
|
+
isSelected: false,
|
|
148
|
+
disabled: false,
|
|
149
|
+
featureChip: {
|
|
150
|
+
label: 'Advanced',
|
|
151
|
+
type: 'small',
|
|
152
|
+
state: 'primary',
|
|
153
|
+
filling: 'filled',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
title: 'Shiphero',
|
|
158
|
+
tooltip: 'Connect Xero accounting.',
|
|
159
|
+
isSelected: false,
|
|
160
|
+
disabled: false
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
advancedFeatureDisclaimer: 'Please reach out to us to activate the advanced dashboards',
|
|
164
|
+
advancedFeatureTitle: 'View Advanced Features',
|
|
165
|
+
advancedFeatureToggleTitle: 'Hide Advanced Features',
|
|
166
|
+
advancedFeatureDisclaimerButtons: [
|
|
167
|
+
{
|
|
168
|
+
text: 'Learn More',
|
|
169
|
+
type: 'transparent',
|
|
170
|
+
size: 'small',
|
|
171
|
+
state: 'default'
|
|
172
|
+
}, {
|
|
173
|
+
text: 'Schedule a call',
|
|
174
|
+
type: 'outline',
|
|
175
|
+
size: 'small',
|
|
176
|
+
state: 'default',
|
|
177
|
+
iconPosition: 'left',
|
|
178
|
+
icon: "headsetOutlined",
|
|
179
|
+
buttonIconSize: "14"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
];
|
|
184
|
+
|
|
185
|
+
const onButtonClick = (card: any, button: any) => {
|
|
186
|
+
console.log('Button clicked on card: ', card.title, button);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
// export const Accordion: Story = {
|
|
190
|
+
// args: {
|
|
191
|
+
// fields: [
|
|
192
|
+
// {
|
|
193
|
+
// key: 'accordionPanelGroup',
|
|
194
|
+
// wrappers: ['wrapper'],
|
|
195
|
+
// props: {
|
|
196
|
+
// label: 'Choose the features that you would like to activate',
|
|
197
|
+
// description: `Based on your selected features and preferences, we'll recommend the most relevant dashboards to support your goals`,
|
|
198
|
+
// helpText: 'helptext here'
|
|
199
|
+
// },
|
|
200
|
+
// fieldGroupClassName: 'accordions-group-container',
|
|
201
|
+
// fieldGroup: _map(panelData, panel => ({
|
|
202
|
+
// key: panel.key,
|
|
203
|
+
// type: 'sa-accordion',
|
|
204
|
+
// className: 'accordion-group-container',
|
|
205
|
+
// props: {
|
|
206
|
+
// panelTitle: panel.title,
|
|
207
|
+
// accordionExpanded: panel.accordionExpanded,
|
|
208
|
+
// cardMessage: panel.cardMessage,
|
|
209
|
+
// customWrapperClass: panel.customWrapperClass || 'sa-card-accordion-wrapper',
|
|
210
|
+
// titleChip: panel.titleChip,
|
|
211
|
+
// expandedIcon: 'downChevronOutlined',
|
|
212
|
+
// collapsedIcon: 'rightChevronOutlined',
|
|
213
|
+
// tooltipIcon: 'infoCircleOutlined',
|
|
214
|
+
// advancedTooltipIcon: 'infoCircleOutlined',
|
|
215
|
+
// featureCardWidth: '632px',
|
|
216
|
+
// advancedFeatureCardWidth: '632px',
|
|
217
|
+
// featuresList: panel.features,
|
|
218
|
+
// advancedFeatures: panel.advancedFeatures,
|
|
219
|
+
// advancedFeaturesExpanded: panel.advancedFeaturesExpanded || false,
|
|
220
|
+
// advancedFeatureTitle: panel.advancedFeatureTitle || 'View Advanced Features',
|
|
221
|
+
// advancedFeatureToggleTitle: panel.advancedFeatureToggleTitle || 'Hide Advanced Features',
|
|
222
|
+
// advancedFeatureDisclaimerButtons: panel.advancedFeatureDisclaimerButtons,
|
|
223
|
+
// advancedFeatureDisclaimer: panel.advancedFeatureDisclaimer,
|
|
224
|
+
// ...(panel.advancedFeatureDisclaimerButtons && {
|
|
225
|
+
// onButtonClick: (button: any) => onButtonClick(panel, button)
|
|
226
|
+
// }),
|
|
227
|
+
// },
|
|
228
|
+
// }))
|
|
229
|
+
// }
|
|
230
|
+
// ],
|
|
231
|
+
// model: {
|
|
232
|
+
// },
|
|
233
|
+
// },
|
|
234
|
+
// };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
+
import { argsToTemplate } from '@storybook/angular';
|
|
3
|
+
import { AvatarComponent } from '../../projects/component-library/src/lib/avatar/avatar.component';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<AvatarComponent> = {
|
|
6
|
+
title: 'Avatar',
|
|
7
|
+
component: AvatarComponent,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
options: ['extra-small', 'small', 'medium', 'large', 'extra-large'],
|
|
12
|
+
control: { type: 'radio' },
|
|
13
|
+
},
|
|
14
|
+
altText: {
|
|
15
|
+
description: "Alternate text that should be displayed if image doesn't exist or is broken"
|
|
16
|
+
},
|
|
17
|
+
onClickEvent: {
|
|
18
|
+
action: "onClickEvent"
|
|
19
|
+
},
|
|
20
|
+
onMouseInEvent: {
|
|
21
|
+
action: "onMouseInEvent"
|
|
22
|
+
},
|
|
23
|
+
onMouseOutEvent: {
|
|
24
|
+
action: "onMouseOutEvent"
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
render: (args) => ({
|
|
28
|
+
props: {
|
|
29
|
+
...args,
|
|
30
|
+
},
|
|
31
|
+
template: `<sa-avatar ${argsToTemplate(args)}></sa-avatar>`
|
|
32
|
+
}),
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default meta;
|
|
36
|
+
type Story = StoryObj<AvatarComponent>;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export const Avatar: Story = {
|
|
40
|
+
args: {
|
|
41
|
+
size: "medium",
|
|
42
|
+
imagePath: "../assets/avatar.svg",
|
|
43
|
+
altText: "AB"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
+
import { moduleMetadata } from '@storybook/angular';
|
|
3
|
+
import { CardCarouselComponent } from '../../projects/component-library/src/lib/card-carousel/card-carousel.component';
|
|
4
|
+
import { CardComponent } from '../../projects/component-library/src/lib/card/card.component';
|
|
5
|
+
import { IconComponent } from '../../projects/component-library/src/lib/icon/icon.component';
|
|
6
|
+
import { CardCustomHeaderComponent } from '../../projects/component-library/src/lib/card/card-custom-header/card-custom-header.component';
|
|
7
|
+
import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
|
|
8
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
9
|
+
|
|
10
|
+
const meta: Meta<CardCarouselComponent> = {
|
|
11
|
+
title: 'Interactive Components/Carousel Cards',
|
|
12
|
+
component: CardCarouselComponent,
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
decorators: [
|
|
15
|
+
moduleMetadata({
|
|
16
|
+
imports: [HttpClientModule, CardComponent, IconComponent, CardCustomHeaderComponent],
|
|
17
|
+
providers: [IconService],
|
|
18
|
+
}),
|
|
19
|
+
],
|
|
20
|
+
argTypes: {
|
|
21
|
+
cards: { control: 'object' },
|
|
22
|
+
autoPlay: { control: 'boolean' },
|
|
23
|
+
interval: { control: 'number' },
|
|
24
|
+
showNavigationArrows: { control: 'boolean' },
|
|
25
|
+
showIndicators: { control: 'boolean' },
|
|
26
|
+
showBrandFooter: { control: 'boolean' }
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default meta;
|
|
31
|
+
type Story = StoryObj<CardCarouselComponent>;
|
|
32
|
+
|
|
33
|
+
const sampleCards = [
|
|
34
|
+
{
|
|
35
|
+
id: 1,
|
|
36
|
+
title: 'John Doe',
|
|
37
|
+
subtitle: 'CEO, Company A',
|
|
38
|
+
avatarIcon: 'avatar',
|
|
39
|
+
logoIcon: 'innosupps',
|
|
40
|
+
body: 'This is a great product that has helped our business tremendously.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 2,
|
|
44
|
+
title: 'Jane Smith',
|
|
45
|
+
subtitle: 'CTO, Company B',
|
|
46
|
+
avatarIcon: 'avatar',
|
|
47
|
+
logoIcon: 'bpn',
|
|
48
|
+
body: 'Weve seen significant improvements in our workflow since implementing this solution.',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 3,
|
|
52
|
+
title: 'Bob Johnson',
|
|
53
|
+
subtitle: 'CFO, Company C',
|
|
54
|
+
avatarIcon: 'avatar',
|
|
55
|
+
logoIcon: 'murad',
|
|
56
|
+
body: 'The ROI on this product has been outstanding. Highly recommended!',
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
export const Default: Story = {
|
|
61
|
+
args: {
|
|
62
|
+
cards: sampleCards,
|
|
63
|
+
autoPlay: true,
|
|
64
|
+
interval: 5000,
|
|
65
|
+
showNavigationArrows: true,
|
|
66
|
+
showIndicators: true,
|
|
67
|
+
showBrandFooter: true
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const WithCustomInterval: Story = {
|
|
72
|
+
args: {
|
|
73
|
+
cards: sampleCards,
|
|
74
|
+
interval: 3000,
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const WithoutAutoPlay: Story = {
|
|
79
|
+
args: {
|
|
80
|
+
...Default.args,
|
|
81
|
+
autoPlay: false,
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const WithoutNavigationArrows: Story = {
|
|
86
|
+
args: {
|
|
87
|
+
...Default.args,
|
|
88
|
+
showNavigationArrows: false,
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const WithoutIndicators: Story = {
|
|
93
|
+
args: {
|
|
94
|
+
...Default.args,
|
|
95
|
+
showIndicators: false,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const WithoutBrandFooter: Story = {
|
|
100
|
+
args: {
|
|
101
|
+
...Default.args,
|
|
102
|
+
showBrandFooter: false,
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const SingleCard: Story = {
|
|
107
|
+
args: {
|
|
108
|
+
...Default.args,
|
|
109
|
+
cards: [sampleCards[0]],
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export const ManyCards: Story = {
|
|
114
|
+
args: {
|
|
115
|
+
...Default.args,
|
|
116
|
+
cards: [
|
|
117
|
+
...sampleCards,
|
|
118
|
+
{
|
|
119
|
+
id: 4,
|
|
120
|
+
title: 'Alice Brown',
|
|
121
|
+
subtitle: 'CMO, Company D',
|
|
122
|
+
avatarIcon: 'avatar',
|
|
123
|
+
logoIcon: 'targetScanOutlined',
|
|
124
|
+
body: 'This product has revolutionized our marketing efforts.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 5,
|
|
128
|
+
title: 'Charlie Green',
|
|
129
|
+
subtitle: 'COO, Company E',
|
|
130
|
+
avatarIcon: 'avatar',
|
|
131
|
+
logoIcon: 'infoTriangleFilled',
|
|
132
|
+
body: 'Excellent support and continuous improvements make this a top choice.',
|
|
133
|
+
},
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
+
import { argsToTemplate, moduleMetadata } from '@storybook/angular';
|
|
3
|
+
import { CardComponent } from '../../projects/component-library/src/lib/card/card.component';
|
|
4
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
5
|
+
import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
|
|
6
|
+
import { ButtonComponent } from '../../projects/component-library/src/lib/button/button.component';
|
|
7
|
+
import { CardFooterActionsComponent } from '../../projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component';
|
|
8
|
+
import { CardTitleActionsComponent } from '../../projects/component-library/src/lib/card/card-title-actions/card-title-actions.component';
|
|
9
|
+
import { ChipsComponent } from '../../projects/component-library/src/lib/chips/chips.component';
|
|
10
|
+
import { IconComponent } from '../../projects/component-library/src/lib/icon/icon.component';
|
|
11
|
+
import { CardCustomHeaderComponent } from '../../projects/component-library/src/lib/card/card-custom-header/card-custom-header.component';
|
|
12
|
+
import { GuideCardComponent } from '../../projects/component-library/src/lib/card/guide-card/guide-card.component';
|
|
13
|
+
import { CheckboxCardComponent } from '../../projects/component-library/src/lib/card/checkbox-card/checkbox-card.component';
|
|
14
|
+
|
|
15
|
+
const meta: Meta<CardComponent> = {
|
|
16
|
+
title: 'Card',
|
|
17
|
+
tags: ['autodocs'],
|
|
18
|
+
component: CardComponent,
|
|
19
|
+
decorators: [
|
|
20
|
+
moduleMetadata({
|
|
21
|
+
imports: [HttpClientModule, ChipsComponent, ButtonComponent, IconComponent, CardFooterActionsComponent, CardTitleActionsComponent, CardCustomHeaderComponent, GuideCardComponent, CheckboxCardComponent],
|
|
22
|
+
providers: [IconService],
|
|
23
|
+
}),
|
|
24
|
+
],
|
|
25
|
+
argTypes: {
|
|
26
|
+
chip: {
|
|
27
|
+
control: { type: 'object' },
|
|
28
|
+
},
|
|
29
|
+
avatar: {
|
|
30
|
+
control: { type: 'text' },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
render: (args) => ({
|
|
34
|
+
props: { ...args },
|
|
35
|
+
template: `<sa-card ${argsToTemplate(args)}></sa-card>`,
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default meta;
|
|
40
|
+
type Story = StoryObj<CardComponent>;
|
|
41
|
+
|
|
42
|
+
export const ProductListingCardWithAvatar: Story = {
|
|
43
|
+
args: {
|
|
44
|
+
title: "Daton",
|
|
45
|
+
body: "Move your data from 150+ sources and transform into analytics-ready tables",
|
|
46
|
+
avatar: "../assets/datonAvatar.png",
|
|
47
|
+
chip: {
|
|
48
|
+
id: '1',
|
|
49
|
+
text: "Chip",
|
|
50
|
+
type: "regular",
|
|
51
|
+
state: "primary",
|
|
52
|
+
filling: "outline"
|
|
53
|
+
},
|
|
54
|
+
showCardBody: true,
|
|
55
|
+
showCardHeader: false
|
|
56
|
+
},
|
|
57
|
+
render: (args) => ({
|
|
58
|
+
props: args,
|
|
59
|
+
template: `
|
|
60
|
+
<sa-card ${argsToTemplate(args)}>
|
|
61
|
+
<sa-card-footer-actions>
|
|
62
|
+
<sa-button id="document" type="primary" text="Document" size="medium"></sa-button>
|
|
63
|
+
</sa-card-footer-actions>
|
|
64
|
+
</sa-card>
|
|
65
|
+
`
|
|
66
|
+
})
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const ProductListingCardWithImage: Story = {
|
|
70
|
+
args: {
|
|
71
|
+
title: "Daton",
|
|
72
|
+
body: "Move your data from 150+ sources and transform into analytics-ready tables",
|
|
73
|
+
image: "../assets/datonAvatar.png",
|
|
74
|
+
imageWidth: "200",
|
|
75
|
+
chip: {
|
|
76
|
+
id: '1',
|
|
77
|
+
text: "Chip",
|
|
78
|
+
type: "regular",
|
|
79
|
+
state: "primary",
|
|
80
|
+
filling: "outline"
|
|
81
|
+
},
|
|
82
|
+
showCardBody: true,
|
|
83
|
+
showCardHeader: false
|
|
84
|
+
},
|
|
85
|
+
render: (args) => ({
|
|
86
|
+
props: args,
|
|
87
|
+
template: `
|
|
88
|
+
<sa-card ${argsToTemplate(args)}>
|
|
89
|
+
<sa-card-footer-actions>
|
|
90
|
+
<sa-button id="document" type="primary" text="Document" size="medium"></sa-button>
|
|
91
|
+
</sa-card-footer-actions>
|
|
92
|
+
</sa-card>
|
|
93
|
+
`
|
|
94
|
+
})
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const SignupCard: Story = {
|
|
98
|
+
args: {
|
|
99
|
+
title: "Daton",
|
|
100
|
+
body: "Move your data from 150+ sources and transform into analytics-ready tables.",
|
|
101
|
+
icon: "multiConnectionHub",
|
|
102
|
+
iconSize: "42",
|
|
103
|
+
chip: {
|
|
104
|
+
id: '',
|
|
105
|
+
text: "Chip",
|
|
106
|
+
type: "small",
|
|
107
|
+
state: "primary",
|
|
108
|
+
filling: "outline"
|
|
109
|
+
},
|
|
110
|
+
showCardBody: true,
|
|
111
|
+
showCardHeader: false
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export const KeyFeaturesCard: Story = {
|
|
116
|
+
args: {
|
|
117
|
+
title: "Connect Effortlessly",
|
|
118
|
+
body: "Access over 250+ data sources with a few clicks, no coding required.",
|
|
119
|
+
icon: "multiConnectionHub",
|
|
120
|
+
iconSize: "42",
|
|
121
|
+
width: "50%",
|
|
122
|
+
height: "300px",
|
|
123
|
+
column: true,
|
|
124
|
+
chip: {
|
|
125
|
+
id: '',
|
|
126
|
+
text: 'Not started yet',
|
|
127
|
+
type: 'small',
|
|
128
|
+
state: 'secondary',
|
|
129
|
+
filling: 'filled'
|
|
130
|
+
},
|
|
131
|
+
showCardBody: true,
|
|
132
|
+
showCardHeader: false
|
|
133
|
+
},
|
|
134
|
+
render: (args) => ({
|
|
135
|
+
props: args,
|
|
136
|
+
template: `
|
|
137
|
+
<sa-card ${argsToTemplate(args)}>
|
|
138
|
+
<sa-card-title-actions>
|
|
139
|
+
<div class="sa-document-action">
|
|
140
|
+
<sa-icon icon="rightChevronOutlined" size="28"></sa-icon>
|
|
141
|
+
</div>
|
|
142
|
+
</sa-card-title-actions>
|
|
143
|
+
</sa-card>
|
|
144
|
+
`
|
|
145
|
+
})
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export const TestimonialCard: Story = {
|
|
149
|
+
args: {
|
|
150
|
+
body: `"Saras Analytics provides reliable, data-driven insights that empower us to make informed decisions with confidence."`,
|
|
151
|
+
customWrapperClass: 'sa-card-custom-wrapper',
|
|
152
|
+
width: "24.063rem",
|
|
153
|
+
title: 'Jason Panzer',
|
|
154
|
+
subtitle: 'CEO, Innosupps',
|
|
155
|
+
logoIcon: 'innosupps',
|
|
156
|
+
avatar: 'avatar',
|
|
157
|
+
column: false,
|
|
158
|
+
showCardHeader: true,
|
|
159
|
+
showCardBody: true,
|
|
160
|
+
showHeaderBodyDivider: true
|
|
161
|
+
},
|
|
162
|
+
render: (args) => ({
|
|
163
|
+
props: args,
|
|
164
|
+
template: `
|
|
165
|
+
<sa-card ${argsToTemplate(args)}>
|
|
166
|
+
<sa-card-title-header>
|
|
167
|
+
<div class="sa-card-custom-header-container">
|
|
168
|
+
<sa-icon [icon]="avatar" size="50"></sa-icon>
|
|
169
|
+
<div class="sa-card-title-subtitle-container">
|
|
170
|
+
<div class="sa-card-custom-title">{{ title }}</div>
|
|
171
|
+
<div class="sa-card-subtitle">{{ subtitle }}</div>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="sa-card-titleIcon">
|
|
174
|
+
<sa-icon [icon]="logoIcon" customClass="auto-dimensions"></sa-icon>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</sa-card-title-header>
|
|
178
|
+
</sa-card>
|
|
179
|
+
`
|
|
180
|
+
})
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const GeneralCard: Story = {
|
|
184
|
+
args: {
|
|
185
|
+
title: "Jason Panzer",
|
|
186
|
+
customWrapperClass: 'sa-card-secondary-wrapper',
|
|
187
|
+
body: "Saras Analytics provides reliable, data-driven insights that empower us to make informed decisions with confidence.",
|
|
188
|
+
icon: "avatar",
|
|
189
|
+
iconSize: "54",
|
|
190
|
+
width: "24.063rem",
|
|
191
|
+
column: false,
|
|
192
|
+
showCardBody: true
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
// New meta configuration for GuideCardComponent
|
|
197
|
+
const guideCardMeta: Meta<GuideCardComponent> = {
|
|
198
|
+
title: 'GuideCard',
|
|
199
|
+
component: GuideCardComponent,
|
|
200
|
+
tags: ['autodocs'],
|
|
201
|
+
argTypes: {
|
|
202
|
+
title: { control: 'text' },
|
|
203
|
+
steps: { control: 'object' }
|
|
204
|
+
},
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export const GuideCard: StoryObj<GuideCardComponent> = {
|
|
208
|
+
args: {
|
|
209
|
+
title: "Getting Started Guide",
|
|
210
|
+
steps: [
|
|
211
|
+
{
|
|
212
|
+
title: "Define your target audience",
|
|
213
|
+
description: "Identify the specific group of people you want to reach with your marketing efforts. Consider demographics, interests, and behaviors."
|
|
214
|
+
}, {
|
|
215
|
+
title: "Set clear marketing goals",
|
|
216
|
+
description: "Establish specific, measurable, achievable, relevant, and time-bound (SMART) objectives for your marketing plan."
|
|
217
|
+
}, {
|
|
218
|
+
title: "Conduct market research",
|
|
219
|
+
description: "Analyze your competitors, industry trends, and customer needs to inform your marketing strategy."
|
|
220
|
+
}, {
|
|
221
|
+
title: "Choose your marketing channels",
|
|
222
|
+
description: "Select the most effective platforms and methods to reach your target audience, such as social media, email marketing, or content marketing."
|
|
223
|
+
}, {
|
|
224
|
+
title: "Develop your marketing message"
|
|
225
|
+
}, {
|
|
226
|
+
title: "Set your marketing budget",
|
|
227
|
+
description: "Allocate resources to different marketing activities based on their potential impact and alignment with your goals."
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
render: (args) => ({
|
|
232
|
+
props: args,
|
|
233
|
+
template: `
|
|
234
|
+
<sa-guide-card
|
|
235
|
+
[title]="title"
|
|
236
|
+
[steps]="steps"
|
|
237
|
+
></sa-guide-card>
|
|
238
|
+
`
|
|
239
|
+
})
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
GuideCard.storyName = 'Guide Card';
|