@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 { argsToTemplate } from '@storybook/angular';
|
|
3
|
-
import { GridInterface } from '../../projects/component-library/src/public-api';
|
|
4
|
-
import { GridCellComponent } from '../../projects/component-library/src/public-api';
|
|
5
|
-
import { moduleMetadata } from '@storybook/angular';
|
|
6
|
-
import { AgGridAngular, AgGridModule } from 'ag-grid-angular';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const meta: Meta<AgGridAngular> = {
|
|
10
|
-
title: 'GridCell',
|
|
11
|
-
component: AgGridAngular,
|
|
12
|
-
tags: ['autodocs'],
|
|
13
|
-
decorators: [
|
|
14
|
-
moduleMetadata({ imports: [GridCellComponent, AgGridAngular, AgGridModule], }),
|
|
15
|
-
],
|
|
16
|
-
argTypes: {
|
|
17
|
-
rowData: {
|
|
18
|
-
description: [
|
|
19
|
-
"An array of objects.",
|
|
20
|
-
"Each object in this array (lets call it `rowObj`) represents a row.",
|
|
21
|
-
"The `keys` in `rowObj` takes the same name (lets call it `colName`) as columns in that row,",
|
|
22
|
-
"and the values take `GridInterface` object describing how that cell is rendered and with what content.",
|
|
23
|
-
"**Please use `GridInterface` to configure cells**."
|
|
24
|
-
].join(" ")
|
|
25
|
-
},
|
|
26
|
-
columnDefs: {
|
|
27
|
-
description: [
|
|
28
|
-
"An array of objects. Each object represents a column.",
|
|
29
|
-
"The `field` attribute in this object must be same as `colName`(from `rowData`).",
|
|
30
|
-
"`CellRenderer` should be set to `GridCellComponent`.",
|
|
31
|
-
"Remaining parameters are common to general ag-grid configuration."
|
|
32
|
-
].join(" ")
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
render: (args) => ({
|
|
36
|
-
props: {
|
|
37
|
-
...args,
|
|
38
|
-
},
|
|
39
|
-
template: `
|
|
40
|
-
<ag-grid-angular
|
|
41
|
-
style="height: 300px;"
|
|
42
|
-
[rowHeight]=50
|
|
43
|
-
[headerHeight]=44
|
|
44
|
-
[suppressCellFocus]=true
|
|
45
|
-
${argsToTemplate(args)}>
|
|
46
|
-
</ag-grid-angular>
|
|
47
|
-
`
|
|
48
|
-
}),
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export default meta;
|
|
52
|
-
type Story = StoryObj<AgGridAngular>;
|
|
53
|
-
|
|
54
|
-
const params: GridInterface = {
|
|
55
|
-
cellType: '',
|
|
56
|
-
viewText: false,
|
|
57
|
-
viewLeadingIcon: false,
|
|
58
|
-
viewTrailingIcon: false,
|
|
59
|
-
viewButton: false,
|
|
60
|
-
viewChip: false,
|
|
61
|
-
viewAvatar: false,
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const default_colDef = [{
|
|
65
|
-
field: "TestField",
|
|
66
|
-
headerComponentParams: {
|
|
67
|
-
...params,
|
|
68
|
-
text: "Cell Text",
|
|
69
|
-
cellType: "header",
|
|
70
|
-
viewText: true
|
|
71
|
-
},
|
|
72
|
-
resizable: false,
|
|
73
|
-
headerComponent: GridCellComponent,
|
|
74
|
-
cellRenderer: GridCellComponent,
|
|
75
|
-
}]
|
|
76
|
-
|
|
77
|
-
export const Regular: Story = {
|
|
78
|
-
args: {
|
|
79
|
-
rowData: [{
|
|
80
|
-
TestField: {
|
|
81
|
-
...params,
|
|
82
|
-
viewText: true,
|
|
83
|
-
cellType: 'row',
|
|
84
|
-
text: 1,
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
TestField: {
|
|
89
|
-
...params,
|
|
90
|
-
viewText: true,
|
|
91
|
-
cellType: 'row',
|
|
92
|
-
text: 2,
|
|
93
|
-
}
|
|
94
|
-
}],
|
|
95
|
-
columnDefs: default_colDef
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export const Numeric: Story = {
|
|
100
|
-
args: {
|
|
101
|
-
rowData: [{
|
|
102
|
-
TestField: {
|
|
103
|
-
...params,
|
|
104
|
-
viewText: true,
|
|
105
|
-
cellType: 'numeric',
|
|
106
|
-
text: 1,
|
|
107
|
-
},
|
|
108
|
-
}],
|
|
109
|
-
columnDefs: default_colDef
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export const Text_SubText: Story = {
|
|
114
|
-
args: {
|
|
115
|
-
rowData: [{
|
|
116
|
-
TestField: {
|
|
117
|
-
...params,
|
|
118
|
-
viewText: true,
|
|
119
|
-
cellType: "row",
|
|
120
|
-
text: "Nithish",
|
|
121
|
-
subText: "Developer",
|
|
122
|
-
},
|
|
123
|
-
}],
|
|
124
|
-
columnDefs: default_colDef
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
export const leadingIcon: Story = {
|
|
130
|
-
args: {
|
|
131
|
-
rowData: [{
|
|
132
|
-
TestField: {
|
|
133
|
-
...params,
|
|
134
|
-
viewText: true,
|
|
135
|
-
viewLeadingIcon: true,
|
|
136
|
-
iconPath: '../assets/targetScanOutlined.svg',
|
|
137
|
-
cellType: 'Row',
|
|
138
|
-
text: "Cell Name",
|
|
139
|
-
},
|
|
140
|
-
}],
|
|
141
|
-
columnDefs: default_colDef
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
export const Chip: Story = {
|
|
146
|
-
args: {
|
|
147
|
-
rowData: [{
|
|
148
|
-
TestField: {
|
|
149
|
-
...params,
|
|
150
|
-
viewChip: true,
|
|
151
|
-
cellType: 'Row',
|
|
152
|
-
chipConfig: [
|
|
153
|
-
{
|
|
154
|
-
id: 0,
|
|
155
|
-
text: "Chip text",
|
|
156
|
-
type: 'primary',
|
|
157
|
-
state: 'regular',
|
|
158
|
-
filling: 'filled',
|
|
159
|
-
iconPath: '../assets/closeBlueOutlined.svg',
|
|
160
|
-
iconPosition: 'left',
|
|
161
|
-
largeStateIcon: '',
|
|
162
|
-
largeStateText: '',
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
chipClicked: (evt: Event) => {
|
|
166
|
-
console.log(evt);
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
}],
|
|
170
|
-
columnDefs: default_colDef
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
export const Interactive: Story = {
|
|
175
|
-
args: {
|
|
176
|
-
rowData: [{
|
|
177
|
-
TestField: {
|
|
178
|
-
...params,
|
|
179
|
-
viewText: true,
|
|
180
|
-
cellType: 'interactive',
|
|
181
|
-
interactiveLink: '',
|
|
182
|
-
interactiveLinkTarget: 'blank',
|
|
183
|
-
text: "Cell Name",
|
|
184
|
-
},
|
|
185
|
-
}],
|
|
186
|
-
columnDefs: default_colDef
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
export const Button: Story = {
|
|
191
|
-
args: {
|
|
192
|
-
rowData: [{
|
|
193
|
-
TestField: {
|
|
194
|
-
...params,
|
|
195
|
-
viewButton: true,
|
|
196
|
-
cellType: 'Row',
|
|
197
|
-
buttonConfig: {
|
|
198
|
-
id: 0,
|
|
199
|
-
type: 'primary',
|
|
200
|
-
state: 'default',
|
|
201
|
-
size: 'small',
|
|
202
|
-
text: 'Button',
|
|
203
|
-
imagePath: '../assets/sourcesOutlined.svg',
|
|
204
|
-
iconPosition: 'right',
|
|
205
|
-
href: "",
|
|
206
|
-
hrefTarget: 'blank',
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
}],
|
|
210
|
-
columnDefs: default_colDef
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
export const Avatar: Story = {
|
|
215
|
-
args: {
|
|
216
|
-
rowData: [{
|
|
217
|
-
TestField: {
|
|
218
|
-
...params,
|
|
219
|
-
viewText: true,
|
|
220
|
-
cellType: "row",
|
|
221
|
-
avatarConfig: {
|
|
222
|
-
id: 0,
|
|
223
|
-
size: 'small',
|
|
224
|
-
imagePath: '../assets/avatar.svg',
|
|
225
|
-
altText: 'AB'
|
|
226
|
-
},
|
|
227
|
-
viewAvatar: true,
|
|
228
|
-
text: "Nithish",
|
|
229
|
-
subText: "Developer",
|
|
230
|
-
},
|
|
231
|
-
}],
|
|
232
|
-
columnDefs: default_colDef
|
|
233
|
-
}
|
|
234
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { argsToTemplate } from '@storybook/angular';
|
|
3
|
-
import { HeaderComponent } from '../../projects/component-library/src/lib/header/header.component';
|
|
4
|
-
|
|
5
|
-
const meta: Meta<HeaderComponent> = {
|
|
6
|
-
title: 'Header',
|
|
7
|
-
component: HeaderComponent,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
argTypes: {
|
|
10
|
-
mainButtonClicked: {
|
|
11
|
-
action: "mainButtonClicked"
|
|
12
|
-
},
|
|
13
|
-
helperButtonClicked: {
|
|
14
|
-
action: "helperButtonClicked"
|
|
15
|
-
},
|
|
16
|
-
info: {
|
|
17
|
-
description: "Two dimensional array of strings containing label and it's icon address."
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
render: (args) => ({
|
|
21
|
-
props: {
|
|
22
|
-
...args,
|
|
23
|
-
},
|
|
24
|
-
template: `<sa-header ${argsToTemplate(args)}></sa-header>`
|
|
25
|
-
}),
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default meta;
|
|
29
|
-
type Story = StoryObj<HeaderComponent>;
|
|
30
|
-
|
|
31
|
-
export const Default: Story = {
|
|
32
|
-
args: {
|
|
33
|
-
info: [
|
|
34
|
-
["Info Text 1", "../assets/personOutlined.svg"],
|
|
35
|
-
["Info Text 2", "../assets/locationOutlined.svg"],
|
|
36
|
-
["Info Text 3", "../assets/mailOutlined.svg"]
|
|
37
|
-
],
|
|
38
|
-
buttonMain: "+ Button",
|
|
39
|
-
buttonHelper: "Helper",
|
|
40
|
-
headerName: "Header"
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const With_Chips: Story = {
|
|
45
|
-
args: {
|
|
46
|
-
info: [
|
|
47
|
-
["Info Text 1", "../assets/personOutlined.svg"],
|
|
48
|
-
["Info Text 2", "../assets/locationOutlined.svg"],
|
|
49
|
-
["Info Text 3", "../assets/mailOutlined.svg"]
|
|
50
|
-
],
|
|
51
|
-
chipConfig: [
|
|
52
|
-
["Chip 1", "success"],
|
|
53
|
-
["Chip 2", "warning"],
|
|
54
|
-
["Chip 3", "error"],
|
|
55
|
-
],
|
|
56
|
-
buttonMain: "+ Button",
|
|
57
|
-
buttonHelper: "Helper",
|
|
58
|
-
headerName: "Header"
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { argsToTemplate, moduleMetadata } from '@storybook/angular';
|
|
3
|
-
import { IconComponent } from '../../projects/component-library/src/lib/icon/icon.component';
|
|
4
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
5
|
-
import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
|
|
6
|
-
import { iconNames } from '../../projects/component-library/src/public-api';
|
|
7
|
-
|
|
8
|
-
const meta: Meta<IconComponent> = {
|
|
9
|
-
title: 'Icon',
|
|
10
|
-
component: IconComponent,
|
|
11
|
-
tags: ['autodocs'],
|
|
12
|
-
decorators: [
|
|
13
|
-
moduleMetadata({
|
|
14
|
-
imports: [HttpClientModule],
|
|
15
|
-
providers: [IconService],
|
|
16
|
-
}),
|
|
17
|
-
],
|
|
18
|
-
argTypes: {
|
|
19
|
-
icon: {
|
|
20
|
-
control: 'select',
|
|
21
|
-
options: [...iconNames],
|
|
22
|
-
defaultValue: 'headsetOutlined',
|
|
23
|
-
description: "Svg icon name"
|
|
24
|
-
},
|
|
25
|
-
iconUrl: {
|
|
26
|
-
control: { type: 'text', },
|
|
27
|
-
description: "Svg icon web url"
|
|
28
|
-
},
|
|
29
|
-
size: {
|
|
30
|
-
options: ['22', '24', '36', '48'],
|
|
31
|
-
control: { type: 'radio' },
|
|
32
|
-
defaultValue: "22"
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
render: (args: IconComponent) => ({
|
|
36
|
-
props: {
|
|
37
|
-
...args,
|
|
38
|
-
},
|
|
39
|
-
template: `<sa-icon ${argsToTemplate(args)}></sa-icon>`
|
|
40
|
-
}),
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default meta;
|
|
44
|
-
type Story = StoryObj<IconComponent>;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export const defaultIcon: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
icon: 'avatar',
|
|
50
|
-
size: "22",
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const icon_with_url: Story = {
|
|
55
|
-
args: {
|
|
56
|
-
iconUrl: 'https://cdn.prod.website-files.com/672882dbaf15942b1d3d3da7/67288fc322cd2acbd8423e74_Consolidation.svg',
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const Icon_with_path: Story = {
|
|
61
|
-
args: {
|
|
62
|
-
size: "22",
|
|
63
|
-
iconPath: "/assets/avatar.svg"
|
|
64
|
-
}
|
|
65
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { LeftNavComponent, ILeftNav, ILeftNavItem } from '../../projects/component-library/src/lib/left-nav/left-nav.component';
|
|
3
|
-
import { Router, ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { moduleMetadata } from '@storybook/angular';
|
|
5
|
-
import { of } from 'rxjs';
|
|
6
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
7
|
-
import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
|
|
8
|
-
|
|
9
|
-
const mockRouter = {
|
|
10
|
-
navigate: (path: string[]) => console.log('Navigated to:', path)
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const mockActivatedRoute = {
|
|
14
|
-
snapshot: {
|
|
15
|
-
params: {}
|
|
16
|
-
},
|
|
17
|
-
params: of({})
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const meta: Meta<LeftNavComponent> = {
|
|
21
|
-
title: 'LeftNav',
|
|
22
|
-
component: LeftNavComponent,
|
|
23
|
-
decorators: [
|
|
24
|
-
moduleMetadata({
|
|
25
|
-
imports: [HttpClientModule],
|
|
26
|
-
providers: [
|
|
27
|
-
IconService,
|
|
28
|
-
{ provide: Router, useValue: mockRouter },
|
|
29
|
-
{ provide: ActivatedRoute, useValue: mockActivatedRoute }
|
|
30
|
-
]
|
|
31
|
-
})
|
|
32
|
-
],
|
|
33
|
-
tags: ['autodocs'],
|
|
34
|
-
argTypes: {
|
|
35
|
-
clickEvent: { action: 'clickEvent' },
|
|
36
|
-
data: {
|
|
37
|
-
control: { type: 'object' }
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
render: (args) => ({
|
|
41
|
-
props: {
|
|
42
|
-
...args,
|
|
43
|
-
clickEvent: args.clickEvent,
|
|
44
|
-
},
|
|
45
|
-
template: `<sa-left-nav [data]="data" (clickEvent)="clickEvent($event)"></sa-left-nav>`
|
|
46
|
-
}),
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export default meta;
|
|
50
|
-
type Story = StoryObj<LeftNavComponent>;
|
|
51
|
-
|
|
52
|
-
export const Default: Story = {
|
|
53
|
-
args: {
|
|
54
|
-
data: {
|
|
55
|
-
items: [
|
|
56
|
-
{ title: 'Home', icon: 'homeOutlined', disable: false, path: 'home', active: true },
|
|
57
|
-
{ title: 'Pricing', icon: 'pricingIcon', disable: false, path: 'reports', active: false },
|
|
58
|
-
{ title: 'Settings', icon: 'settingsOutlined', disable: false, path: 'settings', active: false }
|
|
59
|
-
],
|
|
60
|
-
footerItems: [
|
|
61
|
-
{ title: 'Help', icon: 'chatHelpOutlined', disable: true, type: 'ICON', tooltip: "coming soon" },
|
|
62
|
-
{ title: 'Profile', icon: 'AVATAR', disable: false, type: 'AVATAR' },
|
|
63
|
-
{ title: 'Chevron', icon: 'doublechevron', disable: true, type: 'ICON' }
|
|
64
|
-
]
|
|
65
|
-
} as ILeftNav
|
|
66
|
-
}
|
|
67
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { MessageBannerComponent } from '../../projects/component-library/src/lib/message-banner/message-banner.component';
|
|
3
|
-
import { buttonPosition, buttonSizes, buttonType, iconNames } from '../../projects/component-library/src/public-api';
|
|
4
|
-
|
|
5
|
-
const meta: Meta<MessageBannerComponent> = {
|
|
6
|
-
title: 'MessageBanner',
|
|
7
|
-
component: MessageBannerComponent,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
render: (args: MessageBannerComponent) => ({
|
|
10
|
-
props: {
|
|
11
|
-
...args,
|
|
12
|
-
},
|
|
13
|
-
template: `
|
|
14
|
-
<sa-message-banner [type]="type" [bannerIcon]="bannerIcon" [bannerIconSize]="bannerIconSize" [actionText]="actionText" [buttonIcon]="buttonIcon" [buttonIconPosition]="buttonIconPosition" [buttonSize]="buttonSize" [buttonType]="buttonType"
|
|
15
|
-
[buttonIconSize]="buttonIconSize" [onAction]="onAction">
|
|
16
|
-
{{ content }}
|
|
17
|
-
</sa-message-banner>
|
|
18
|
-
`,
|
|
19
|
-
}),
|
|
20
|
-
argTypes: {
|
|
21
|
-
type: {
|
|
22
|
-
control: 'select',
|
|
23
|
-
options: ['success', 'warning', 'info', 'error'],
|
|
24
|
-
},
|
|
25
|
-
actionText: {
|
|
26
|
-
control: 'text',
|
|
27
|
-
defaultValue: 'Learn more'
|
|
28
|
-
},
|
|
29
|
-
bannerIcon: {
|
|
30
|
-
control: 'select',
|
|
31
|
-
options: [...iconNames]
|
|
32
|
-
},
|
|
33
|
-
bannerIconSize: {
|
|
34
|
-
control: 'text',
|
|
35
|
-
defaultValue: '24'
|
|
36
|
-
},
|
|
37
|
-
buttonIcon: {
|
|
38
|
-
control: 'select',
|
|
39
|
-
options: [...iconNames]
|
|
40
|
-
},
|
|
41
|
-
buttonType: {
|
|
42
|
-
control: 'select',
|
|
43
|
-
options: [...buttonType]
|
|
44
|
-
},
|
|
45
|
-
buttonIconPosition: {
|
|
46
|
-
control: 'select',
|
|
47
|
-
options: [...buttonPosition]
|
|
48
|
-
},
|
|
49
|
-
buttonSize: {
|
|
50
|
-
control: 'select',
|
|
51
|
-
options: [...buttonSizes]
|
|
52
|
-
},
|
|
53
|
-
buttonIconSize: {
|
|
54
|
-
options: ['16', '22', '24', '36', '48'],
|
|
55
|
-
control: { type: 'radio' },
|
|
56
|
-
defaultValue: "22"
|
|
57
|
-
},
|
|
58
|
-
onAction: { action: 'onAction' },
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export default meta;
|
|
63
|
-
type Story = StoryObj<MessageBannerComponent>;
|
|
64
|
-
|
|
65
|
-
export const Success: Story = {
|
|
66
|
-
args: {
|
|
67
|
-
type: 'info',
|
|
68
|
-
bannerIcon: 'infoCircleOutlined',
|
|
69
|
-
bannerIconSize: '28',
|
|
70
|
-
buttonIcon: 'headsetOutlined',
|
|
71
|
-
buttonType: 'transparent',
|
|
72
|
-
buttonSize: 'medium',
|
|
73
|
-
buttonIconPosition: 'left',
|
|
74
|
-
buttonIconSize: '24',
|
|
75
|
-
content: 'Oh ho! Some recommended sources needed for your selected features aren\'t connected',
|
|
76
|
-
actionText: 'Learn more',
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const Info: Story = {
|
|
81
|
-
args: {
|
|
82
|
-
type: 'info',
|
|
83
|
-
content: 'Stay tuned—we\'ll keep you updated via email and let you know the moment your dashboards are ready',
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export const Warning: Story = {
|
|
88
|
-
args: {
|
|
89
|
-
type: 'warning',
|
|
90
|
-
content: 'Unsure which features to select? No worries—we\'re here to assist you!',
|
|
91
|
-
actionText: 'Schedule a call',
|
|
92
|
-
buttonIcon: 'headsetOutlined'
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export const Error: Story = {
|
|
97
|
-
args: {
|
|
98
|
-
type: 'error',
|
|
99
|
-
content: 'Brand name will be used consistently throughout Pulse; please enter a name that is most appropriate',
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export const InfoWithAction: Story = {
|
|
104
|
-
args: {
|
|
105
|
-
type: 'info',
|
|
106
|
-
bannerIcon: 'infoCircleOutlined',
|
|
107
|
-
bannerIconSize: '28',
|
|
108
|
-
buttonIcon: 'headsetOutlined',
|
|
109
|
-
buttonType: 'outline',
|
|
110
|
-
buttonSize: 'small',
|
|
111
|
-
buttonIconPosition: 'left',
|
|
112
|
-
buttonIconSize: '16',
|
|
113
|
-
content: 'To speed up your onboarding, please have your required data source credentials handy',
|
|
114
|
-
actionText: 'Learn more',
|
|
115
|
-
},
|
|
116
|
-
};
|