@sarasanalytics-com/design-system 0.0.43 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -34
- package/esm2022/interfaces/avatar-interface.mjs +2 -0
- package/esm2022/interfaces/button-interface.mjs +10 -0
- package/esm2022/interfaces/card-carousel-interface.mjs +2 -0
- package/esm2022/interfaces/chip-interface.mjs +2 -0
- package/esm2022/interfaces/grid-interface.mjs +2 -0
- package/esm2022/interfaces/guide-card-interface.mjs +2 -0
- package/esm2022/interfaces/icon-interface.mjs +16 -0
- package/esm2022/interfaces/message-banner.mjs +2 -0
- package/esm2022/interfaces/option-interface.mjs +2 -0
- package/esm2022/interfaces/select-interface.mjs +2 -0
- package/esm2022/interfaces/tab-interface.mjs +2 -0
- package/esm2022/interfaces/toast-interface.mjs +2 -0
- package/esm2022/lib/accordion/accordion.component.mjs +115 -0
- package/esm2022/lib/avatar/avatar.component.mjs +56 -0
- package/esm2022/lib/button/button.component.mjs +100 -0
- package/esm2022/lib/calendar-header/calendar-header.component.mjs +168 -0
- package/esm2022/lib/card/card-body/card-body.component.mjs +11 -0
- package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +11 -0
- package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +11 -0
- package/esm2022/lib/card/card-icon/card-icon.component.mjs +11 -0
- package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +11 -0
- package/esm2022/lib/card/card.component.mjs +97 -0
- package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +41 -0
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +19 -0
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +87 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +38 -0
- package/esm2022/lib/chips/chips.component.mjs +62 -0
- package/esm2022/lib/component-library.component.mjs +19 -0
- package/esm2022/lib/component-library.service.mjs +14 -0
- package/esm2022/lib/datepicker/datepicker.component.mjs +40 -0
- package/esm2022/lib/form-input/form-input.component.mjs +219 -0
- package/esm2022/lib/form-select/form-select.component.mjs +77 -0
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +84 -0
- package/esm2022/lib/header/header.component.mjs +37 -0
- package/esm2022/lib/icon/icon.component.mjs +73 -0
- package/esm2022/lib/icon/icon.service.mjs +28 -0
- package/esm2022/lib/left-nav/left-nav.component.mjs +146 -0
- package/esm2022/lib/list/list.component.mjs +23 -0
- package/esm2022/lib/message-banner/message-banner.component.mjs +43 -0
- package/esm2022/lib/page-layout/page-layout.component.mjs +21 -0
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +29 -0
- package/esm2022/lib/radio-button/radio-button.component.mjs +33 -0
- package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +59 -0
- package/esm2022/lib/spinner/spinner.component.mjs +22 -0
- package/esm2022/lib/stepper/stepper.component.mjs +64 -0
- package/esm2022/lib/tabs/tabs.component.mjs +38 -0
- package/esm2022/lib/toast/toast.component.mjs +100 -0
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +41 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/sarasanalytics-com-design-system.mjs +5 -0
- package/esm2022/utils/validators.mjs +97 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs +1987 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/interfaces/avatar-interface.d.ts +6 -0
- package/interfaces/button-interface.d.ts +22 -0
- package/{projects/component-library/src/interfaces/card-carousel-interface.ts → interfaces/card-carousel-interface.d.ts} +1 -2
- package/interfaces/chip-interface.d.ts +11 -0
- package/interfaces/grid-interface.d.ts +24 -0
- package/interfaces/icon-interface.d.ts +4 -0
- package/interfaces/select-interface.d.ts +20 -0
- package/interfaces/tab-interface.d.ts +6 -0
- package/{projects/component-library/src/interfaces/toast-interface.ts → interfaces/toast-interface.d.ts} +1 -1
- package/lib/accordion/accordion.component.d.ts +25 -0
- package/lib/avatar/avatar.component.d.ts +18 -0
- package/lib/button/button.component.d.ts +32 -0
- package/lib/calendar-header/calendar-header.component.d.ts +31 -0
- package/lib/card/card-body/card-body.component.d.ts +5 -0
- package/lib/card/card-custom-header/card-custom-header.component.d.ts +5 -0
- package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +5 -0
- package/lib/card/card-icon/card-icon.component.d.ts +5 -0
- package/lib/card/card-title-actions/card-title-actions.component.d.ts +5 -0
- package/lib/card/card.component.d.ts +28 -0
- package/lib/card/checkbox-card/checkbox-card.component.d.ts +12 -0
- package/lib/card/guide-card/guide-card.component.d.ts +8 -0
- package/lib/card-carousel/card-carousel.component.d.ts +27 -0
- package/lib/checkbox/checkbox.component.d.ts +9 -0
- package/lib/chips/chips.component.d.ts +22 -0
- package/lib/component-library.component.d.ts +5 -0
- package/lib/component-library.service.d.ts +6 -0
- package/lib/datepicker/datepicker.component.d.ts +9 -0
- package/lib/form-input/form-input.component.d.ts +67 -0
- package/lib/form-select/form-select.component.d.ts +18 -0
- package/lib/grid-cell/grid-cell.component.d.ts +20 -0
- package/lib/header/header.component.d.ts +14 -0
- package/lib/icon/icon.component.d.ts +24 -0
- package/lib/icon/icon.service.d.ts +12 -0
- package/lib/left-nav/left-nav.component.d.ts +47 -0
- package/lib/list/list.component.d.ts +10 -0
- package/lib/message-banner/message-banner.component.d.ts +19 -0
- package/lib/page-layout/page-layout.component.d.ts +8 -0
- package/lib/progress-bar/progress-bar.component.d.ts +13 -0
- package/lib/radio-button/radio-button.component.d.ts +12 -0
- package/lib/scrolling-cards/scrolling-cards.component.d.ts +36 -0
- package/lib/spinner/spinner.component.d.ts +7 -0
- package/lib/stepper/stepper.component.d.ts +17 -0
- package/lib/tabs/tabs.component.d.ts +15 -0
- package/lib/toast/toast.component.d.ts +33 -0
- package/lib/tool-tip/tool-tip.component.d.ts +15 -0
- package/package.json +19 -74
- package/{projects/component-library/src/public-api.ts → public-api.d.ts} +0 -12
- package/utils/validators.d.ts +6 -0
- package/.editorconfig +0 -16
- package/.eslintrc.json +0 -23
- package/.storybook/main.ts +0 -21
- package/.storybook/manager.ts +0 -17
- package/.storybook/preview-head.html +0 -5
- package/.storybook/preview.ts +0 -66
- package/.storybook/tsconfig.doc.json +0 -10
- package/.storybook/tsconfig.json +0 -11
- package/.storybook/typings.d.ts +0 -4
- package/.vscode/extensions.json +0 -7
- package/.vscode/launch.json +0 -20
- package/.vscode/settings.json +0 -13
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -195
- package/build-storybook.log +0 -45
- package/documentation.json +0 -0
- package/generate-public-api.js +0 -59
- package/projects/component-library/README.md +0 -24
- package/projects/component-library/ng-package.json +0 -8
- package/projects/component-library/package.json +0 -12
- package/projects/component-library/src/interfaces/avatar-interface.ts +0 -6
- package/projects/component-library/src/interfaces/button-interface.ts +0 -37
- package/projects/component-library/src/interfaces/chip-interface.ts +0 -11
- package/projects/component-library/src/interfaces/grid-interface.ts +0 -24
- package/projects/component-library/src/interfaces/icon-interface.ts +0 -21
- package/projects/component-library/src/interfaces/select-interface.ts +0 -20
- package/projects/component-library/src/interfaces/tab-interface.ts +0 -6
- package/projects/component-library/src/lib/accordion/accordion.component.css +0 -188
- package/projects/component-library/src/lib/accordion/accordion.component.html +0 -151
- package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +0 -23
- package/projects/component-library/src/lib/accordion/accordion.component.ts +0 -129
- package/projects/component-library/src/lib/avatar/avatar.component.css +0 -48
- package/projects/component-library/src/lib/avatar/avatar.component.html +0 -5
- package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +0 -23
- package/projects/component-library/src/lib/avatar/avatar.component.ts +0 -50
- package/projects/component-library/src/lib/button/button.component.css +0 -145
- package/projects/component-library/src/lib/button/button.component.html +0 -25
- package/projects/component-library/src/lib/button/button.component.spec.ts +0 -23
- package/projects/component-library/src/lib/button/button.component.ts +0 -82
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +0 -67
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +0 -20
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +0 -191
- 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 +0 -1
- package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-body/card-body.component.ts +0 -12
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +0 -70
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +0 -1
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +0 -13
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +0 -4
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +0 -3
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +0 -12
- 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 +0 -1
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +0 -12
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +0 -3
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +0 -1
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +0 -12
- package/projects/component-library/src/lib/card/card.component.css +0 -149
- package/projects/component-library/src/lib/card/card.component.html +0 -46
- package/projects/component-library/src/lib/card/card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card.component.ts +0 -47
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +0 -79
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +0 -55
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +0 -44
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +0 -80
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +0 -24
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +0 -19
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +0 -91
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +0 -54
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +0 -89
- package/projects/component-library/src/lib/checkbox/checkbox.component.css +0 -79
- package/projects/component-library/src/lib/checkbox/checkbox.component.html +0 -27
- package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +0 -23
- package/projects/component-library/src/lib/checkbox/checkbox.component.ts +0 -38
- package/projects/component-library/src/lib/chips/chips.component.css +0 -129
- package/projects/component-library/src/lib/chips/chips.component.html +0 -17
- package/projects/component-library/src/lib/chips/chips.component.spec.ts +0 -23
- package/projects/component-library/src/lib/chips/chips.component.ts +0 -54
- package/projects/component-library/src/lib/component-library.component.spec.ts +0 -23
- package/projects/component-library/src/lib/component-library.component.ts +0 -16
- package/projects/component-library/src/lib/component-library.service.spec.ts +0 -16
- package/projects/component-library/src/lib/component-library.service.ts +0 -9
- package/projects/component-library/src/lib/datepicker/datepicker.component.css +0 -33
- package/projects/component-library/src/lib/datepicker/datepicker.component.html +0 -11
- package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +0 -23
- package/projects/component-library/src/lib/datepicker/datepicker.component.ts +0 -36
- package/projects/component-library/src/lib/form-input/form-input.component.css +0 -164
- package/projects/component-library/src/lib/form-input/form-input.component.html +0 -55
- package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +0 -23
- package/projects/component-library/src/lib/form-input/form-input.component.ts +0 -282
- package/projects/component-library/src/lib/form-select/form-select.component.css +0 -158
- package/projects/component-library/src/lib/form-select/form-select.component.html +0 -38
- package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +0 -23
- package/projects/component-library/src/lib/form-select/form-select.component.ts +0 -72
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +0 -78
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +0 -31
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +0 -23
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +0 -89
- package/projects/component-library/src/lib/header/header.component.css +0 -62
- package/projects/component-library/src/lib/header/header.component.html +0 -23
- package/projects/component-library/src/lib/header/header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/header/header.component.ts +0 -28
- package/projects/component-library/src/lib/icon/icon.component.css +0 -65
- package/projects/component-library/src/lib/icon/icon.component.html +0 -9
- package/projects/component-library/src/lib/icon/icon.component.ts +0 -64
- package/projects/component-library/src/lib/icon/icon.service.ts +0 -26
- package/projects/component-library/src/lib/left-nav/left-nav.component.css +0 -109
- package/projects/component-library/src/lib/left-nav/left-nav.component.html +0 -51
- package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +0 -23
- package/projects/component-library/src/lib/left-nav/left-nav.component.ts +0 -180
- package/projects/component-library/src/lib/list/list.component.css +0 -28
- package/projects/component-library/src/lib/list/list.component.html +0 -10
- package/projects/component-library/src/lib/list/list.component.spec.ts +0 -23
- package/projects/component-library/src/lib/list/list.component.ts +0 -15
- package/projects/component-library/src/lib/message-banner/message-banner.component.css +0 -52
- package/projects/component-library/src/lib/message-banner/message-banner.component.html +0 -15
- package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +0 -23
- package/projects/component-library/src/lib/message-banner/message-banner.component.ts +0 -31
- package/projects/component-library/src/lib/page-layout/page-layout.component.css +0 -76
- package/projects/component-library/src/lib/page-layout/page-layout.component.html +0 -30
- package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +0 -23
- package/projects/component-library/src/lib/page-layout/page-layout.component.ts +0 -14
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +0 -30
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +0 -4
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +0 -23
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +0 -24
- package/projects/component-library/src/lib/radio-button/radio-button.component.css +0 -128
- package/projects/component-library/src/lib/radio-button/radio-button.component.html +0 -28
- package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +0 -23
- package/projects/component-library/src/lib/radio-button/radio-button.component.ts +0 -35
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +0 -118
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +0 -11
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +0 -23
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +0 -74
- package/projects/component-library/src/lib/spinner/spinner.component.css +0 -41
- package/projects/component-library/src/lib/spinner/spinner.component.html +0 -1
- package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +0 -23
- package/projects/component-library/src/lib/spinner/spinner.component.ts +0 -15
- package/projects/component-library/src/lib/stepper/stepper.component.css +0 -96
- package/projects/component-library/src/lib/stepper/stepper.component.html +0 -14
- package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +0 -23
- package/projects/component-library/src/lib/stepper/stepper.component.ts +0 -61
- package/projects/component-library/src/lib/tabs/tabs.component.css +0 -100
- package/projects/component-library/src/lib/tabs/tabs.component.html +0 -16
- package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +0 -23
- package/projects/component-library/src/lib/tabs/tabs.component.ts +0 -37
- package/projects/component-library/src/lib/toast/toast.component.css +0 -115
- package/projects/component-library/src/lib/toast/toast.component.html +0 -29
- package/projects/component-library/src/lib/toast/toast.component.spec.ts +0 -23
- package/projects/component-library/src/lib/toast/toast.component.ts +0 -87
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +0 -144
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +0 -31
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +0 -23
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +0 -37
- 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 +0 -22
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +0 -23
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +0 -13
- package/projects/component-library/src/utils/validators.ts +0 -100
- package/projects/component-library/tsconfig.lib.json +0 -14
- package/projects/component-library/tsconfig.lib.prod.json +0 -10
- package/projects/component-library/tsconfig.spec.json +0 -14
- package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
- package/src/Saras-logo.svg +0 -15
- package/src/app/app.component.css +0 -82
- package/src/app/app.component.html +0 -663
- package/src/app/app.component.spec.ts +0 -29
- package/src/app/app.component.ts +0 -1341
- package/src/app/app.config.ts +0 -56
- package/src/app/app.routes.ts +0 -3
- package/src/app/data.ts +0 -52
- package/src/app/kitchen-sink/kitchen-sink.component.css +0 -30
- package/src/app/kitchen-sink/kitchen-sink.component.html +0 -7
- package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +0 -23
- package/src/app/kitchen-sink/kitchen-sink.component.ts +0 -92
- package/src/assets/.gitkeep +0 -0
- package/src/assets/analysis.svg +0 -1
- package/src/assets/arrowRightOutlined.svg +0 -1
- package/src/assets/avatar.svg +0 -1
- package/src/assets/bpn.svg +0 -1
- package/src/assets/businessStatsFilled.svg +0 -1
- package/src/assets/channelkey.svg +0 -1
- package/src/assets/chatHelpOutlined.svg +0 -1
- package/src/assets/checkCircleFilled.svg +0 -1
- package/src/assets/checkCircleOutlined.svg +0 -1
- package/src/assets/checkOutlined.svg +0 -1
- package/src/assets/circleFilled.svg +0 -1
- package/src/assets/closeBlueOutlined.svg +0 -1
- package/src/assets/closeCircleFilled.svg +0 -1
- package/src/assets/closeOutlined.svg +0 -1
- package/src/assets/dataonavatar.svg +0 -1
- package/src/assets/datonAvatar.png +0 -0
- package/src/assets/desktopSpeakerOutlined.svg +0 -1
- package/src/assets/disabledCheckboxFilled.svg +0 -1
- package/src/assets/doubleDownOutlined.svg +0 -1
- package/src/assets/downChevronOutlined.svg +0 -3
- package/src/assets/downOutlined.svg +0 -1
- package/src/assets/errorCircleOutlined.svg +0 -1
- package/src/assets/errorCrossOutlined.svg +0 -3
- package/src/assets/eyeFilled.svg +0 -1
- package/src/assets/eyeOff.svg +0 -3
- package/src/assets/eyeOutlined.svg +0 -1
- package/src/assets/formDetailsOutlined.svg +0 -1
- package/src/assets/gridViewOutlined.svg +0 -1
- package/src/assets/headsetOutlined.svg +0 -3
- package/src/assets/homeOutlined.svg +0 -1
- package/src/assets/icons/analysis1.svg +0 -1
- package/src/assets/infoCircleOutlined.svg +0 -3
- package/src/assets/infoTriangleFilled.svg +0 -1
- package/src/assets/infoTriangleOutlined.svg +0 -1
- package/src/assets/innosupps.svg +0 -1
- package/src/assets/leftChevronCircle.svg +0 -2
- package/src/assets/locationOutlined.svg +0 -1
- package/src/assets/loginDashboard.png +0 -0
- package/src/assets/mailOutlined.svg +0 -1
- package/src/assets/multiConnectionHub.svg +0 -1
- package/src/assets/murad.svg +0 -1
- package/src/assets/personOutlined.svg +0 -1
- package/src/assets/pricingIcon.svg +0 -3
- package/src/assets/rightChevronCircle.svg +0 -1
- package/src/assets/rightChevronOutlined.svg +0 -1
- package/src/assets/sarasFullLogo.svg +0 -13
- package/src/assets/sarasWhite.svg +0 -1
- package/src/assets/settingsOutlined.svg +0 -1
- package/src/assets/sourcesOutlined.svg +0 -1
- package/src/assets/tabDesktopArrowClockwiseOutlined.svg +0 -1
- package/src/assets/targetScanOutlined.svg +0 -1
- package/src/assets/timerOutlined.svg +0 -5
- package/src/assets/upwardTriangleFilled.svg +0 -1
- package/src/custom-theme.scss +0 -37
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -23
- package/src/main.ts +0 -6
- package/src/stories/GettingStarted.mdx +0 -233
- package/src/stories/KitchenSink.stories.ts +0 -109
- package/src/stories/accordion.stories.ts +0 -234
- package/src/stories/avatar.stories.ts +0 -45
- package/src/stories/card-carousel.stories.ts +0 -136
- package/src/stories/card.stories.ts +0 -242
- package/src/stories/checkbox.stories.ts +0 -238
- package/src/stories/chips.stories.ts +0 -61
- package/src/stories/custom-button.stories.ts +0 -89
- package/src/stories/datepicker.stories.ts +0 -78
- package/src/stories/form-input.stories.ts +0 -166
- package/src/stories/gridCell.stories.ts +0 -234
- package/src/stories/header.stories.ts +0 -61
- package/src/stories/icon.stories.ts +0 -65
- package/src/stories/leftnav.stories.ts +0 -67
- package/src/stories/message-banner.stories.ts +0 -116
- package/src/stories/page-layout.stories.ts +0 -200
- package/src/stories/progress-bar.stories.ts +0 -40
- package/src/stories/radio-button.stories.ts +0 -80
- package/src/stories/scrolling-card.stories.ts +0 -36
- package/src/stories/selectInput.stories.ts +0 -176
- package/src/stories/stepper.stories.ts +0 -92
- package/src/stories/tabs.stories.ts +0 -97
- package/src/stories/toast.stories.ts +0 -74
- package/src/stories/tool-tip.stories.ts +0 -45
- package/src/svg.d.ts +0 -1
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -42
- package/tsconfig.spec.json +0 -14
- /package/{projects/component-library/src/interfaces/guide-card-interface.ts → interfaces/guide-card-interface.d.ts} +0 -0
- /package/{projects/component-library/src/interfaces/message-banner.ts → interfaces/message-banner.d.ts} +0 -0
- /package/{projects/component-library/src/interfaces/option-interface.ts → interfaces/option-interface.d.ts} +0 -0
- /package/{src → styles}/styles.css +0 -0
|
@@ -1,234 +0,0 @@
|
|
|
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
|
-
// };
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,242 +0,0 @@
|
|
|
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';
|