@bethinkpl/design-system 25.0.10 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-to-review-on-trigger.yml +17 -0
- package/.storybook/main.ts +42 -0
- package/.storybook/{manager.js → manager.ts} +1 -1
- package/.storybook/preview-head.html +1 -0
- package/.storybook/preview.scss +3 -0
- package/.storybook/{preview.js → preview.ts} +11 -18
- package/.storybook/scss-preview-styles-plugin.ts +43 -0
- package/{lib/styles → .storybook}/storybook.scss +10 -10
- package/deploy_storybook_to_s3.sh +16 -1
- package/dist/design-system.umd.cjs +1032 -0
- package/dist/design-system.umd.cjs.map +1 -0
- package/dist/lib/js/components/BadgeScore/BadgeScore.vue.d.ts +33 -65
- package/dist/lib/js/components/BadgeScore/index.d.ts +2 -1
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +265 -311
- package/dist/lib/js/components/Banner/index.d.ts +2 -1
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +258 -305
- package/dist/lib/js/components/Buttons/Button/index.d.ts +2 -1
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +269 -320
- package/dist/lib/js/components/Buttons/IconButton/index.d.ts +2 -1
- package/dist/lib/js/components/Cards/Card/Card.consts.d.ts +1 -0
- package/dist/lib/js/components/Cards/Card/Card.vue.d.ts +92 -2
- package/dist/lib/js/components/Cards/Card/index.d.ts +2 -1
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +274 -258
- package/dist/lib/js/components/Cards/CardExpandable/index.d.ts +2 -1
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +259 -306
- package/dist/lib/js/components/Chip/index.d.ts +2 -1
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.consts.d.ts +1 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +1 -106
- package/dist/lib/js/components/DatePickers/DatePicker/index.d.ts +2 -1
- package/dist/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue.d.ts +1 -274
- package/dist/lib/js/components/DatePickers/DatePickerBox/index.d.ts +2 -1
- package/dist/lib/js/components/Divider/Divider.vue.d.ts +40 -26
- package/dist/lib/js/components/Divider/index.d.ts +2 -1
- package/dist/lib/js/components/Drawer/Drawer.vue.d.ts +34 -19
- package/dist/lib/js/components/Drawer/DrawerContent/DrawerContent.vue.d.ts +1 -3
- package/dist/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue.d.ts +24 -17
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +2 -3
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +226 -3
- package/dist/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue.d.ts +1 -3
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +236 -302
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +129 -66
- package/dist/lib/js/components/Drawer/index.d.ts +2 -1
- package/dist/lib/js/components/Dropdown/Dropdown.vue.d.ts +2 -66
- package/dist/lib/js/components/Dropdown/index.d.ts +2 -1
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +219 -239
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +219 -239
- package/dist/lib/js/components/Form/SelectionControl/SelectionControl.sb.shared.d.ts +2 -1
- package/dist/lib/js/components/Form/SelectionControl/SelectionControl.vue.d.ts +29 -66
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +274 -316
- package/dist/lib/js/components/Headers/OverlayHeader/index.d.ts +2 -1
- package/dist/lib/js/components/Headers/PageHeader/PageHeader.vue.d.ts +12 -32
- package/dist/lib/js/components/Headers/PageHeader/index.d.ts +2 -1
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.consts.d.ts +1 -0
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +255 -333
- package/dist/lib/js/components/Headers/SectionHeader/index.d.ts +2 -1
- package/dist/lib/js/components/IconText/IconText.vue.d.ts +1 -71
- package/dist/lib/js/components/IconText/index.d.ts +2 -1
- package/dist/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue.d.ts +25 -48
- package/dist/lib/js/components/Icons/FeatureIcon/index.d.ts +2 -1
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +195 -194
- package/dist/lib/js/components/Icons/Icon/Icon.vue.d.ts +76 -44
- package/dist/lib/js/components/Icons/Icon/index.d.ts +2 -1
- package/dist/lib/js/components/Image/Image.vue.d.ts +4 -3
- package/dist/lib/js/components/Image/index.d.ts +2 -1
- package/dist/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue.d.ts +16 -46
- package/dist/lib/js/components/Layouts/ThreeColumnLayout/index.d.ts +2 -1
- package/dist/lib/js/components/LoadingBar/LoadingBar.consts.d.ts +1 -0
- package/dist/lib/js/components/LoadingBar/LoadingBar.vue.d.ts +37 -26
- package/dist/lib/js/components/LoadingBar/index.d.ts +2 -1
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +235 -230
- package/dist/lib/js/components/Modal/index.d.ts +2 -1
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +275 -362
- package/dist/lib/js/components/Modals/Modal/index.d.ts +2 -1
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +20 -74
- package/dist/lib/js/components/Modals/ModalDialog/index.d.ts +2 -1
- package/dist/lib/js/components/NumberInCircle/index.d.ts +2 -1
- package/dist/lib/js/components/Outline/OutlineDivider/OutlineDivider.vue.d.ts +24 -17
- package/dist/lib/js/components/Outline/OutlineDivider/index.d.ts +2 -1
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +231 -297
- package/dist/lib/js/components/Outline/OutlineItem/index.d.ts +2 -1
- package/dist/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.vue.d.ts +10 -8
- package/dist/lib/js/components/Outline/OutlineSectionHeader/index.d.ts +2 -1
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +259 -288
- package/dist/lib/js/components/Pagination/index.d.ts +2 -1
- package/dist/lib/js/components/PopOver/index.d.ts +2 -1
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +1 -301
- package/dist/lib/js/components/ProgressBar/index.d.ts +2 -1
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -253
- package/dist/lib/js/components/ProgressDonutChart/index.d.ts +2 -1
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +21 -135
- package/dist/lib/js/components/RichList/BasicRichListItem/index.d.ts +2 -1
- package/dist/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.consts.d.ts +1 -0
- package/dist/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue.d.ts +51 -30
- package/dist/lib/js/components/RichList/GroupRichListItem/index.d.ts +2 -1
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +254 -344
- package/dist/lib/js/components/RichList/RichListItem/index.d.ts +2 -1
- package/dist/lib/js/components/SectionTitle/SectionTitle.vue.d.ts +32 -2
- package/dist/lib/js/components/SelectList/SelectList.vue.d.ts +2 -3
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +234 -3
- package/dist/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue.d.ts +1 -7
- package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +127 -65
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +21 -56
- package/dist/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue.d.ts +21 -13
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +197 -197
- package/dist/lib/js/components/SelectionTile/index.d.ts +2 -1
- package/dist/lib/js/components/Skeleton/Skeleton.vue.d.ts +42 -2
- package/dist/lib/js/components/Skeleton/index.d.ts +2 -1
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +227 -231
- package/dist/lib/js/components/Statuses/AccessStatus/index.d.ts +2 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +227 -231
- package/dist/lib/js/components/Statuses/BlockadeStatus/index.d.ts +2 -1
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +246 -3
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/index.d.ts +2 -1
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +2 -3
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/index.d.ts +2 -1
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue.d.ts +31 -21
- package/dist/lib/js/components/SurveyQuestions/index.d.ts +2 -1
- package/dist/lib/js/components/SurveyToggle/SurveyToggle.vue.d.ts +39 -3
- package/dist/lib/js/components/SurveyToggle/index.d.ts +2 -1
- package/dist/lib/js/components/Switch/Switch.consts.d.ts +1 -0
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +246 -296
- package/dist/lib/js/components/Switch/index.d.ts +2 -1
- package/dist/lib/js/components/TabItem/TabItem.vue.d.ts +1 -47
- package/dist/lib/js/components/TabItem/index.d.ts +2 -1
- package/dist/lib/js/components/TextGroup/TextGroup.vue.d.ts +7 -6
- package/dist/lib/js/components/TextGroup/index.d.ts +2 -1
- package/dist/lib/js/components/Tile/Tile.consts.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +195 -194
- package/dist/lib/js/components/Tile/Tile.shared.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +342 -282
- package/dist/lib/js/components/Tile/index.d.ts +2 -1
- package/dist/lib/js/components/Toast/Toast.consts.d.ts +1 -0
- package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.vue.d.ts +21 -47
- package/dist/lib/js/components/Toggles/CounterToggle/index.d.ts +2 -1
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.consts.d.ts +1 -0
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +242 -301
- package/dist/lib/js/components/Toggles/ToggleButton/index.d.ts +2 -1
- package/dist/lib/js/components/Tooltip/Tooltip.vue.d.ts +4 -3
- package/dist/lib/js/components/Tooltip/index.d.ts +2 -1
- package/dist/lib/js/components/Well/index.d.ts +2 -1
- package/dist/lib/js/icons/fontawesome.d.ts +195 -195
- package/dist/lib/js/index.d.ts +2 -1
- package/dist/lib/js/styles/TokenTypes.d.ts +1 -0
- package/docs/assets/AccessStatus-DmbUcfnj.js +1 -0
- package/docs/assets/AccessStatus.stories-A4chErGN.js +9 -0
- package/docs/assets/BadgeScore-BemJYqyj.js +1 -0
- package/docs/assets/BadgeScore.stories-BPXCKVhC.js +40 -0
- package/docs/assets/Banner-pfk44IPM.js +1 -0
- package/docs/assets/Banner.stories-c-gBrIO8.js +62 -0
- package/docs/assets/BasicRichListItem-AsTA4Bbi.js +1 -0
- package/docs/assets/BasicRichListItem.stories-Czwcv5qI.js +194 -0
- package/docs/assets/BlockadeStatus-BP14rd2v.js +1 -0
- package/docs/assets/BlockedeStatus.stories-D1nV7jtn.js +9 -0
- package/docs/assets/BorderSizes.stories-COOhe637.js +31 -0
- package/docs/assets/Button-CsOCHUpA.js +1 -0
- package/docs/assets/Button.stories-DgRYxfVM.js +47 -0
- package/docs/assets/Card-0zLvVdOd.js +1 -0
- package/docs/assets/Card.stories-Cgb9afRr.js +49 -0
- package/docs/assets/CardExpandable-BcHS7iI4.js +1 -0
- package/docs/assets/CardExpandable.stories-ClQ_GXJM.js +37 -0
- package/docs/assets/Checkbox-iiCRqb9X.js +1 -0
- package/docs/assets/Checkbox.stories-B5xH1dQS.js +21 -0
- package/docs/assets/Chip-DseOCaPi.js +1 -0
- package/docs/assets/Chip.stories-EQIOA9T4.js +43 -0
- package/docs/assets/Color-ERTF36HU-CEwQ7ils.js +1 -0
- package/docs/assets/Colors.stories--ryhtG1d.js +11 -0
- package/docs/assets/ColorsThemes.stories-B2HLeH6E.js +11 -0
- package/docs/assets/ColorsTokensLms.stories-PMBYT2Fm.js +11 -0
- package/docs/assets/ColorsTokensPrimaryBodywork.stories-lUhDu8iE.js +11 -0
- package/docs/assets/ColorsTokensPrimaryWnl.stories-BOkFFvy-.js +11 -0
- package/docs/assets/CounterToggle-D57390Gy.js +1 -0
- package/docs/assets/CounterToggle.stories-D0X3HsZN.js +19 -0
- package/docs/assets/DatePicker-DbSgTVrt.js +2 -0
- package/docs/assets/DatePicker.stories-D8DNdcyv.js +91 -0
- package/docs/assets/Divider-DTjC3ra5.js +1 -0
- package/docs/assets/Divider.stories-BNCc0JbE.js +15 -0
- package/docs/assets/DocsRenderer-CFRXHY34-CNTnQBH9.js +639 -0
- package/docs/assets/Drawer-BYqj8cV4.js +1 -0
- package/docs/assets/Drawer.stories-BNJN0Caf.js +21 -0
- package/docs/assets/DrawerContent-COb49qeQ.js +1 -0
- package/docs/assets/DrawerContent.stories-Gr488XWC.js +17 -0
- package/docs/assets/DrawerDivider-D9zRMkgT.js +1 -0
- package/docs/assets/DrawerDivider.stories-DaQB6xx1.js +15 -0
- package/docs/assets/DrawerHeader-B6p3qZIF.js +1 -0
- package/docs/assets/DrawerHeader.stories-B-kfnc8L.js +54 -0
- package/docs/assets/DrawerListItem-BzhOaTw8.js +1 -0
- package/docs/assets/DrawerListItem.stories-BR2imSXv.js +13 -0
- package/docs/assets/DrawerListItemGroup-BCNB2SNG.js +1 -0
- package/docs/assets/DrawerListItemGroup.stories-BfJA4Bq4.js +20 -0
- package/docs/assets/DrawerSection-Ch4ErDvj.js +1 -0
- package/docs/assets/DrawerSection.stories-Ef8aAdAo.js +67 -0
- package/docs/assets/DrawerTile-CeAdewpT.js +1 -0
- package/docs/assets/DrawerTile.stories-uxygnddh.js +10 -0
- package/docs/assets/Dropdown-DS0OpB3n.js +1 -0
- package/docs/assets/Dropdown.stories-936LE7zU.js +45 -0
- package/docs/assets/FeatureIcon-CxqWcu_D.js +1 -0
- package/docs/assets/FeatureIcon.stories-C6RgjKe5.js +14 -0
- package/docs/assets/GroupRichListItem-Cx3ap5HX.js +1 -0
- package/docs/assets/GroupRichListItem.stories-Bvk4uehJ.js +137 -0
- package/docs/assets/Icon-Dg-H1Zak.js +762 -0
- package/docs/assets/Icon.stories-ClMbmaEN.js +27 -0
- package/docs/assets/IconButton-tAYYPmG6.js +1 -0
- package/docs/assets/IconButton.stories-BDjR2DI5.js +119 -0
- package/docs/assets/IconText-BEY1NH1U.js +1 -0
- package/docs/assets/IconText.stories-o_hUTU4U.js +32 -0
- package/docs/assets/Image-CCtfgp-1.js +1 -0
- package/docs/assets/Image.stories-Ca8vDRY9.js +21 -0
- package/docs/assets/ItemsList-DIgoGL1q.js +1 -0
- package/docs/assets/LoadingBar-pXWDoaGl.js +1 -0
- package/docs/assets/LoadingBar.stories-B_rq-VmX.js +9 -0
- package/docs/assets/Modal-BE0wtlkL.js +1 -0
- package/docs/assets/Modal.stories-DIdh26ZS.js +53 -0
- package/docs/assets/ModalDialog-BORyZP_f.js +1 -0
- package/docs/assets/ModalDialog.stories-McGTQ_On.js +43 -0
- package/docs/assets/NumberInCircle-BDH9jzjw.js +1 -0
- package/docs/assets/NumberInCircle.stories-BrAgc3AY.js +9 -0
- package/docs/assets/OutlineDivider-Dov4emm3.js +1 -0
- package/docs/assets/OutlineDivider.stories-CaUbTOLr.js +11 -0
- package/docs/assets/OutlineItem-CFzKBXAq.js +1 -0
- package/docs/assets/OutlineItem.stories-CVKGFFnl.js +41 -0
- package/docs/assets/OutlineSectionHeader-D6c_-tKp.js +1 -0
- package/docs/assets/OutlineSectionHeader.stories-DbVI05WC.js +9 -0
- package/docs/assets/OverlayHeader-ChMYciZw.js +1 -0
- package/docs/assets/OverlayHeader.stories-B3naHNtq.js +67 -0
- package/docs/assets/PageHeader-BIBHdf3F.js +1 -0
- package/docs/assets/PageHeader.stories-5b6D1obn.js +9 -0
- package/docs/assets/Pagination-D09pUv2L.js +1 -0
- package/docs/assets/Pagination.stories-CftgxsGG.js +31 -0
- package/docs/assets/PopOver-CehHpqnB.js +1 -0
- package/docs/assets/PopOver.stories-DUevH-58.js +15 -0
- package/docs/assets/ProgressBar-BqJKO0Rg.js +1 -0
- package/docs/assets/ProgressBar.stories-CHHw9vdm.js +57 -0
- package/docs/assets/ProgressDonutChart-DCH6A4IP.js +1 -0
- package/docs/assets/ProgressDonutChart.stories-BBth7N7p.js +17 -0
- package/docs/assets/RadioButton-D1hHJ5gw.js +1 -0
- package/docs/assets/RadioButton.stories-BolvVgGo.js +21 -0
- package/docs/assets/RichListItem.stories-DYhLiKRC.js +182 -0
- package/docs/assets/SectionHeader-BXQYUMZJ.js +1 -0
- package/docs/assets/SectionHeader.stories-Bk7_88fl.js +24 -0
- package/docs/assets/SectionTitle-D5xtuuuO.js +1 -0
- package/docs/assets/SectionTitle.stories-CSejCgQ5.js +9 -0
- package/docs/assets/SelectList-CQ9CvqLg.js +1 -0
- package/docs/assets/SelectList.stories-CH2vWeZ4.js +91 -0
- package/docs/assets/SelectListItem-BKwWlXCo.js +1 -0
- package/docs/assets/SelectListItem.stories-DBfd5lux.js +36 -0
- package/docs/assets/SelectListItemDivider-CbO60ig_.js +1 -0
- package/docs/assets/SelectListItemDivider.stories-Ca-S4U9X.js +8 -0
- package/docs/assets/SelectListItemTile-BzyPjJ19.js +1 -0
- package/docs/assets/SelectListItemTile.stories-D6R95vJo.js +19 -0
- package/docs/assets/SelectListItemToggle-DKDUJYdT.js +1 -0
- package/docs/assets/SelectListItemToggle.stories-DkgRkLc4.js +51 -0
- package/docs/assets/SelectListSectionTitle-CF7GIQ3x.js +1 -0
- package/docs/assets/SelectListSectionTitle.stories-CUJ-nWui.js +16 -0
- package/docs/assets/SelectionControl-CBn6SHix.js +1 -0
- package/docs/assets/SelectionControl.sb.shared-BWifjoMU.js +2 -0
- package/docs/assets/SelectionTile-ofCDS758.js +2 -0
- package/docs/assets/SelectionTile.stories-B-6k9_3U.js +47 -0
- package/docs/assets/Skeleton-BHkfJzj2.js +179 -0
- package/docs/assets/Skeleton.stories-B6m8A2m7.js +15 -0
- package/docs/assets/Spacings.stories-DxxukMX7.js +43 -0
- package/docs/assets/SurveyQuestionOpenEnded-CK5BMbQr.js +1 -0
- package/docs/assets/SurveyQuestionOpenEnded.stories-JDaZMHWo.js +20 -0
- package/docs/assets/SurveyQuestionScale-CqyqGA5t.js +1 -0
- package/docs/assets/SurveyQuestionScale.stories-D5IZlUh2.js +72 -0
- package/docs/assets/SurveyToggle-B26OsXaf.js +1 -0
- package/docs/assets/SurveyToggle.stories-DFFSA_hl.js +14 -0
- package/docs/assets/Switch-B3HGIUG9.js +1 -0
- package/docs/assets/Switch.stories-DkphThGX.js +48 -0
- package/docs/assets/TabItem-B46Oc9X7.js +1 -0
- package/docs/assets/TabItem.stories-DaWTf1cD.js +15 -0
- package/docs/assets/TextGroup-BuH6WCA9.js +1 -0
- package/docs/assets/TextGroup.stories-BIwyCEXe.js +48 -0
- package/docs/assets/ThreeColumnLayout-CcqHOKBU.js +1 -0
- package/docs/assets/ThreeColumnLayout.stories-AgLGFFul.js +47 -0
- package/docs/assets/Tile-DIUUFinY.js +1 -0
- package/docs/assets/Tile.sb.shared-BYUHFvZE.js +15 -0
- package/docs/assets/Tile.stories-DBSFQRYs.js +14 -0
- package/docs/assets/Toast.stories-B32fN79y.js +58 -0
- package/docs/assets/ToggleButton-D1caIRKN.js +1 -0
- package/docs/assets/ToggleButton.stories-Ox_okeJj.js +42 -0
- package/docs/assets/Tooltip-448jplYO.js +1 -0
- package/docs/assets/Tooltip.stories-Ew4UB8RG.js +119 -0
- package/docs/assets/TypographyTokensLms.stories-BVVxQejO.js +11 -0
- package/docs/assets/TypographyVariables.stories--nfITZgH.js +11 -0
- package/docs/assets/Well-D6PXj9KY.js +1 -0
- package/docs/assets/Well.stories-Bs38rPx-.js +6 -0
- package/docs/assets/_commonjsHelpers-Chg3vePA.js +1 -0
- package/docs/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/docs/assets/decorator-CSnIf-k5.js +1 -0
- package/docs/assets/entry-preview-BlDOKpbv.js +1 -0
- package/docs/assets/entry-preview-docs-C4PrsFMa.js +16 -0
- package/docs/assets/iframe-Bne3a0Lw.js +63 -0
- package/docs/assets/index-CBmJdl9t.js +5 -0
- package/docs/assets/index-DufQPmIh.js +1 -0
- package/docs/assets/index-DzskhL4A.js +1 -0
- package/docs/assets/index-vG0co4wr.js +8 -0
- package/docs/assets/pl-Cy1N1vsP.js +1 -0
- package/docs/assets/preview-Be9dTmNK.js +2 -0
- package/docs/assets/preview-CwXKFurl.js +64 -0
- package/docs/assets/preview-DFmD0pui.js +1 -0
- package/docs/assets/preview-DFphXfmq.js +1 -0
- package/docs/assets/string-CELe3esY.js +1 -0
- package/docs/assets/user-DY5hg_iu.js +1 -0
- package/docs/assets/v4-BZawosSj.js +1 -0
- package/docs/assets/vue-popper-Bw2qoyOw.js +24 -0
- package/docs/assets/vue.esm-bundler-Dgz4BqwH.js +7 -0
- package/docs/favicon.svg +1 -0
- package/docs/iframe.html +332 -56
- package/docs/index.html +157 -51
- package/docs/index.json +1 -0
- package/docs/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/nunito-sans-bold.woff2 +0 -0
- package/docs/nunito-sans-italic.woff2 +0 -0
- package/docs/nunito-sans-regular.woff2 +0 -0
- package/docs/preview.css +2993 -0
- package/docs/project.json +1 -1
- package/docs/sb-addons/actions-1/manager-bundle.js +3 -0
- package/docs/sb-addons/actions-1/manager-bundle.js.LEGAL.txt +0 -0
- package/docs/sb-addons/controls-3/manager-bundle.js +394 -0
- package/docs/sb-addons/controls-3/manager-bundle.js.LEGAL.txt +0 -0
- package/docs/sb-addons/designs-2/register-panel-bundle.js +665 -0
- package/docs/sb-addons/designs-2/register-panel-bundle.js.LEGAL.txt +127 -0
- package/docs/sb-addons/storybook-6/manager-bundle.js +3 -0
- package/docs/sb-addons/storybook-6/manager-bundle.js.LEGAL.txt +0 -0
- package/docs/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/docs/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/docs/sb-addons/storysource-4/manager-bundle.js +3 -0
- package/docs/sb-addons/storysource-4/manager-bundle.js.LEGAL.txt +0 -0
- package/docs/sb-addons/viewport-5/manager-bundle.js +3 -0
- package/docs/sb-addons/viewport-5/manager-bundle.js.LEGAL.txt +0 -0
- package/docs/sb-common-assets/favicon.svg +1 -0
- package/docs/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/docs/sb-manager/globals-module-info.js +1006 -0
- package/docs/sb-manager/globals-runtime.js +54400 -0
- package/docs/sb-manager/globals.js +48 -0
- package/docs/sb-manager/runtime.js +12089 -0
- package/docs/sb-preview/globals.js +33 -0
- package/docs/sb-preview/runtime.js +9498 -0
- package/jest.config.js +14 -11
- package/lib/js/components/BadgeScore/BadgeScore.stories.ts +13 -10
- package/lib/js/components/BadgeScore/BadgeScore.vue +5 -5
- package/lib/js/components/Banner/Banner.stories.ts +58 -55
- package/lib/js/components/Banner/Banner.vue +3 -3
- package/lib/js/components/Buttons/Button/Button.stories.ts +31 -21
- package/lib/js/components/Buttons/Button/Button.vue +4 -6
- package/lib/js/components/Buttons/IconButton/IconButton.stories.ts +37 -34
- package/lib/js/components/Buttons/IconButton/IconButton.vue +3 -3
- package/lib/js/components/Cards/Card/Card.stories.ts +17 -14
- package/lib/js/components/Cards/Card/Card.vue +4 -3
- package/lib/js/components/Cards/CardExpandable/CardExpandable.stories.ts +8 -7
- package/lib/js/components/Cards/CardExpandable/CardExpandable.vue +3 -2
- package/lib/js/components/Chip/Chip.stories.ts +13 -9
- package/lib/js/components/Chip/Chip.vue +3 -3
- package/lib/js/components/DatePickers/DatePicker/DatePicker.stories.ts +67 -64
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +3 -3
- package/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue +3 -3
- package/lib/js/components/Divider/Divider.stories.ts +5 -5
- package/lib/js/components/Divider/Divider.vue +4 -2
- package/lib/js/components/Drawer/Drawer.stories.ts +3 -3
- package/lib/js/components/Drawer/Drawer.vue +3 -3
- package/lib/js/components/Drawer/DrawerContent/DrawerContent.stories.ts +1 -1
- package/lib/js/components/Drawer/DrawerContent/DrawerContent.vue +4 -2
- package/lib/js/components/Drawer/DrawerDivider/DrawerDivider.stories.ts +5 -5
- package/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue +4 -2
- package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.stories.ts +16 -16
- package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +3 -3
- package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.stories.ts +4 -3
- package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue +3 -3
- package/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.stories.ts +1 -1
- package/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue +4 -2
- package/lib/js/components/Drawer/DrawerSection/DrawerSection.stories.ts +60 -57
- package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +3 -3
- package/lib/js/components/Drawer/DrawerTile/DrawerTile.stories.ts +1 -1
- package/lib/js/components/Drawer/DrawerTile/DrawerTile.vue +4 -2
- package/lib/js/components/Dropdown/Dropdown.stories.ts +9 -9
- package/lib/js/components/Dropdown/Dropdown.vue +4 -2
- package/lib/js/components/Form/Checkbox/Checkbox.stories.ts +21 -14
- package/lib/js/components/Form/Checkbox/Checkbox.vue +3 -3
- package/lib/js/components/Form/RadioButton/RadioButton.stories.ts +21 -14
- package/lib/js/components/Form/RadioButton/RadioButton.vue +3 -3
- package/lib/js/components/Form/SelectionControl/SelectionControl.sb.shared.ts +13 -10
- package/lib/js/components/Form/SelectionControl/SelectionControl.vue +3 -3
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.stories.ts +9 -9
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +5 -3
- package/lib/js/components/Headers/PageHeader/PageHeader.stories.ts +11 -13
- package/lib/js/components/Headers/PageHeader/PageHeader.vue +4 -2
- package/lib/js/components/Headers/SectionHeader/SectionHeader.stories.ts +65 -63
- package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +6 -6
- package/lib/js/components/IconText/IconText.stories.ts +6 -5
- package/lib/js/components/IconText/IconText.vue +3 -3
- package/lib/js/components/Icons/FeatureIcon/FeatureIcon.stories.ts +15 -11
- package/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue +3 -3
- package/lib/js/components/Icons/Icon/Icon.stories.ts +10 -8
- package/lib/js/components/Icons/Icon/Icon.vue +3 -3
- package/lib/js/components/Image/Image.stories.ts +5 -5
- package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.stories.ts +8 -8
- package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +3 -3
- package/lib/js/components/LoadingBar/LoadingBar.stories.ts +5 -5
- package/lib/js/components/LoadingBar/LoadingBar.vue +3 -3
- package/lib/js/components/Modal/Modal.vue +4 -2
- package/lib/js/components/Modals/Modal/Modal.stories.ts +31 -31
- package/lib/js/components/Modals/Modal/Modal.vue +3 -3
- package/lib/js/components/Modals/ModalDialog/ModalDialog.stories.ts +20 -20
- package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +3 -3
- package/lib/js/components/NumberInCircle/NumberInCircle.stories.ts +5 -5
- package/lib/js/components/NumberInCircle/NumberInCircle.vue +4 -2
- package/lib/js/components/Outline/OutlineDivider/OutlineDivider.stories.ts +12 -7
- package/lib/js/components/Outline/OutlineDivider/OutlineDivider.vue +4 -2
- package/lib/js/components/Outline/OutlineItem/OutlineItem.stories.ts +40 -29
- package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +3 -3
- package/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.stories.ts +6 -4
- package/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.vue +4 -2
- package/lib/js/components/Pagination/Pagination.stories.ts +34 -21
- package/lib/js/components/Pagination/Pagination.vue +3 -2
- package/lib/js/components/PopOver/PopOver.stories.ts +9 -9
- package/lib/js/components/PopOver/PopOver.vue +6 -4
- package/lib/js/components/ProgressBar/ProgressBar.stories.ts +48 -41
- package/lib/js/components/ProgressBar/ProgressBar.vue +3 -3
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.spec.ts +1 -1
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.stories.ts +28 -24
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +4 -3
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.stories.ts +82 -73
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue +3 -3
- package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.stories.ts +26 -20
- package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue +3 -3
- package/lib/js/components/RichList/RichListItem/RichListItem.stories.ts +25 -18
- package/lib/js/components/RichList/RichListItem/RichListItem.vue +3 -3
- package/lib/js/components/SectionTitle/SectionTitle.stories.ts +5 -4
- package/lib/js/components/SectionTitle/SectionTitle.vue +3 -2
- package/lib/js/components/SelectList/SelectList.stories.ts +1 -1
- package/lib/js/components/SelectList/SelectList.vue +4 -2
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.stories.ts +9 -5
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +3 -3
- package/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue +4 -2
- package/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.stories.ts +5 -2
- package/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue +4 -2
- package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.stories.ts +51 -42
- package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue +3 -3
- package/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.stories.ts +11 -9
- package/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue +4 -2
- package/lib/js/components/SelectionTile/SelectionTile.stories.ts +46 -38
- package/lib/js/components/Skeleton/Skeleton.stories.ts +5 -5
- package/lib/js/components/Statuses/AccessStatus/AccessStatus.stories.ts +3 -3
- package/lib/js/components/Statuses/AccessStatus/AccessStatus.vue +3 -2
- package/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue +4 -2
- package/lib/js/components/Statuses/BlockadeStatus/BlockedeStatus.stories.ts +3 -3
- package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.stories.ts +22 -17
- package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +4 -2
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.stories.ts +73 -55
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +3 -2
- package/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue +4 -2
- package/lib/js/components/SurveyToggle/SurveyToggle.stories.ts +19 -12
- package/lib/js/components/SurveyToggle/SurveyToggle.vue +4 -2
- package/lib/js/components/Switch/Switch.stories.ts +16 -14
- package/lib/js/components/Switch/Switch.vue +3 -3
- package/lib/js/components/TabItem/TabItem.stories.ts +12 -11
- package/lib/js/components/TabItem/TabItem.vue +3 -3
- package/lib/js/components/TextGroup/TextGroup.stories.ts +20 -16
- package/lib/js/components/TextGroup/TextGroup.vue +1 -1
- package/lib/js/components/Tile/Tile.sb.shared.ts +9 -8
- package/lib/js/components/Tile/Tile.stories.ts +43 -45
- package/lib/js/components/Tile/Tile.vue +3 -2
- package/lib/js/components/Toast/Toast.stories.ts +10 -12
- package/lib/js/components/Toast/Toast.vue +3 -3
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.stories.ts +10 -10
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.vue +3 -3
- package/lib/js/components/Toggles/ToggleButton/ToggleButton.stories.ts +17 -17
- package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +3 -3
- package/lib/js/components/Tooltip/Tooltip.stories.ts +9 -9
- package/lib/js/components/Well/Well.stories.ts +36 -29
- package/lib/js/components/Well/Well.vue +4 -2
- package/lib/js/icons/fontawesome.ts +1 -1
- package/lib/js/index.ts +2 -1
- package/lib/js/styles/Colors/Colors.stories.ts +1 -1
- package/lib/js/styles/ColorsThemes/ColorsThemes.stories.ts +1 -1
- package/lib/js/styles/ColorsTokensLms/ColorsTokensLms.stories.ts +1 -1
- package/lib/js/styles/ColorsTokensPrimaryBodywork/ColorsTokensPrimaryBodywork.stories.ts +1 -1
- package/lib/js/styles/ColorsTokensPrimaryWnl/ColorsTokensPrimaryWnl.stories.ts +1 -1
- package/lib/js/styles/ItemsColor.vue +3 -3
- package/lib/js/styles/ItemsList.vue +4 -3
- package/lib/js/styles/ItemsTypography.vue +3 -3
- package/lib/js/styles/TypographyTokensLms/TypographyTokensLms.stories.ts +1 -1
- package/lib/js/styles/TypographyVariables/TypographyVariables.stories.ts +1 -1
- package/lib/js/typings.d.ts +3 -4
- package/package.json +27 -26
- package/tsconfig.json +12 -5
- package/vite.config.ts +38 -0
- package/.storybook/main.js +0 -86
- package/babel.config.json +0 -12
- package/docs/117.1156a7c503a067ad8241.manager.bundle.js +0 -2
- package/docs/117.1156a7c503a067ad8241.manager.bundle.js.LICENSE.txt +0 -8
- package/docs/247.6eaf240e.iframe.bundle.js +0 -1
- package/docs/255.721b3744029f102ac772.manager.bundle.js +0 -2
- package/docs/255.721b3744029f102ac772.manager.bundle.js.LICENSE.txt +0 -12
- package/docs/286.23828fb3.iframe.bundle.js +0 -2
- package/docs/286.23828fb3.iframe.bundle.js.LICENSE.txt +0 -31
- package/docs/295.4e52f65e605e88f7b915.manager.bundle.js +0 -1
- package/docs/315.76786aa14c329ce07ff9.manager.bundle.js +0 -2
- package/docs/315.76786aa14c329ce07ff9.manager.bundle.js.LICENSE.txt +0 -94
- package/docs/317.bb9fa3422a439c11ef07.manager.bundle.js +0 -1
- package/docs/363.5eecfb3735eae61195ab.manager.bundle.js +0 -586
- package/docs/363.5eecfb3735eae61195ab.manager.bundle.js.LICENSE.txt +0 -23
- package/docs/39.0fa13ab1.iframe.bundle.js +0 -2
- package/docs/39.0fa13ab1.iframe.bundle.js.LICENSE.txt +0 -14
- package/docs/407.e7bfe1ea814fec553911.manager.bundle.js +0 -2
- package/docs/407.e7bfe1ea814fec553911.manager.bundle.js.LICENSE.txt +0 -31
- package/docs/594.bb1a9f64.iframe.bundle.js +0 -2
- package/docs/594.bb1a9f64.iframe.bundle.js.LICENSE.txt +0 -12
- package/docs/600.5586e4df861d64de85f8.manager.bundle.js +0 -1
- package/docs/651.3a01b956.iframe.bundle.js +0 -1
- package/docs/690.46a1e07a.iframe.bundle.js +0 -1
- package/docs/701.691b9947.iframe.bundle.js +0 -1
- package/docs/935.19d3d944.iframe.bundle.js +0 -2
- package/docs/935.19d3d944.iframe.bundle.js.LICENSE.txt +0 -17
- package/docs/949.b11a185a.iframe.bundle.js +0 -2
- package/docs/949.b11a185a.iframe.bundle.js.LICENSE.txt +0 -69
- package/docs/962.ec348c19.iframe.bundle.js +0 -2
- package/docs/962.ec348c19.iframe.bundle.js.LICENSE.txt +0 -8
- package/docs/977.a265714880f883237672.manager.bundle.js +0 -1
- package/docs/favicon.ico +0 -0
- package/docs/main.2c610e68.iframe.bundle.js +0 -2
- package/docs/main.2c610e68.iframe.bundle.js.LICENSE.txt +0 -1
- package/docs/main.ec4e5d4f1933fc03f588.manager.bundle.js +0 -1
- package/docs/runtime~main.8a21756dfcf63c109f1d.manager.bundle.js +0 -1
- package/docs/runtime~main.c8f2837a.iframe.bundle.js +0 -1
- package/vue.config.js +0 -67
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/docs/{static/media/lato-ext-300.dd124df8.woff2 → ~design-system/lib/fonts/lato/lato-ext-300.woff2} +0 -0
- /package/docs/{static/media/lato-ext-700.4223b364.woff2 → ~design-system/lib/fonts/lato/lato-ext-700.woff2} +0 -0
- /package/docs/{static/media/lato-ext.b267ec5a.woff2 → ~design-system/lib/fonts/lato/lato-ext.woff2} +0 -0
- /package/docs/{static/media/lato-latin-300.917632e3.woff2 → ~design-system/lib/fonts/lato/lato-latin-300.woff2} +0 -0
- /package/docs/{static/media/lato-latin-700.f1405bd8.woff2 → ~design-system/lib/fonts/lato/lato-latin-700.woff2} +0 -0
- /package/docs/{static/media/lato-latin.65e877e5.woff2 → ~design-system/lib/fonts/lato/lato-latin.woff2} +0 -0
- /package/lib/js/tests/{emptyModule.ts → emptyModule.cjs} +0 -0
- /package/lib/js/tests/{emptyTransformer.ts → emptyTransformer.cjs} +0 -0
- /package/{stylelint.config.js → stylelint.config.cjs} +0 -0
|
@@ -2,16 +2,18 @@ import PageHeader from './PageHeader.vue';
|
|
|
2
2
|
|
|
3
3
|
import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
|
|
4
4
|
import { PAGE_HEADER_MOBILE_LAYOUTS } from './PageHeader.consts';
|
|
5
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
title: 'Components/Headers/PageHeader',
|
|
8
9
|
component: PageHeader,
|
|
10
|
+
decorators: [withActions],
|
|
9
11
|
} as Meta<typeof PageHeader>;
|
|
10
12
|
|
|
11
13
|
const StoryTemplate: StoryFn<typeof PageHeader> = (args) => ({
|
|
12
14
|
components: { PageHeader },
|
|
13
15
|
setup() {
|
|
14
|
-
return
|
|
16
|
+
return args;
|
|
15
17
|
},
|
|
16
18
|
template:
|
|
17
19
|
'<page-header' +
|
|
@@ -33,32 +35,28 @@ const args = {
|
|
|
33
35
|
pageTitle: 'Page title',
|
|
34
36
|
supportingInfo: 'Supporting info write here',
|
|
35
37
|
divider: true,
|
|
36
|
-
mobileLayout:
|
|
38
|
+
mobileLayout: PAGE_HEADER_MOBILE_LAYOUTS.VERTICAL,
|
|
37
39
|
} as Args;
|
|
38
40
|
|
|
39
41
|
const argTypes = {
|
|
40
42
|
breadcrumbs: {
|
|
41
|
-
control:
|
|
43
|
+
control: 'text',
|
|
42
44
|
},
|
|
43
45
|
actions: {
|
|
44
|
-
control:
|
|
46
|
+
control: 'text',
|
|
45
47
|
},
|
|
46
48
|
pageTitle: {
|
|
47
|
-
control:
|
|
49
|
+
control: 'text',
|
|
48
50
|
},
|
|
49
51
|
supportingInfo: {
|
|
50
|
-
control:
|
|
52
|
+
control: 'text',
|
|
51
53
|
},
|
|
52
54
|
divider: {
|
|
53
|
-
control:
|
|
54
|
-
defaultValue: true,
|
|
55
|
+
control: 'boolean',
|
|
55
56
|
},
|
|
56
57
|
mobileLayout: {
|
|
57
|
-
control:
|
|
58
|
-
|
|
59
|
-
options: Object.values(PAGE_HEADER_MOBILE_LAYOUTS),
|
|
60
|
-
defaultValue: PAGE_HEADER_MOBILE_LAYOUTS.VERTICAL,
|
|
61
|
-
},
|
|
58
|
+
control: 'select',
|
|
59
|
+
options: Object.values(PAGE_HEADER_MOBILE_LAYOUTS),
|
|
62
60
|
},
|
|
63
61
|
} as ArgTypes;
|
|
64
62
|
|
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
import DsDivider from '../../Divider';
|
|
97
97
|
import { PAGE_HEADER_MOBILE_LAYOUTS } from './PageHeader.consts';
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
import { defineComponent } from 'vue';
|
|
100
|
+
|
|
101
|
+
export default defineComponent({
|
|
100
102
|
name: 'PageHeader',
|
|
101
103
|
components: {
|
|
102
104
|
DsDivider,
|
|
@@ -125,5 +127,5 @@ export default {
|
|
|
125
127
|
PAGE_HEADER_MOBILE_LAYOUTS: Object.freeze(PAGE_HEADER_MOBILE_LAYOUTS),
|
|
126
128
|
};
|
|
127
129
|
},
|
|
128
|
-
};
|
|
130
|
+
});
|
|
129
131
|
</script>
|
|
@@ -7,51 +7,58 @@ import {
|
|
|
7
7
|
import { ICONS } from '../../Icons/Icon';
|
|
8
8
|
|
|
9
9
|
import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
|
|
10
|
+
import { useArgs } from '@storybook/preview-api';
|
|
11
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
10
12
|
|
|
11
13
|
export default {
|
|
12
14
|
title: 'Components/Headers/SectionHeader',
|
|
13
15
|
component: SectionHeader,
|
|
16
|
+
decorators: [withActions],
|
|
14
17
|
} as Meta<typeof SectionHeader>;
|
|
15
18
|
|
|
16
|
-
const StoryTemplate: StoryFn<typeof SectionHeader> = (args
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ICONS: Object.freeze(ICONS),
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
methods: {
|
|
27
|
-
onIsExpandedUpdated(isExpanded) {
|
|
28
|
-
updateArgs({
|
|
29
|
-
isExpanded,
|
|
30
|
-
});
|
|
19
|
+
const StoryTemplate: StoryFn<typeof SectionHeader> = (args) => {
|
|
20
|
+
const [_, updateArgs] = useArgs();
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
components: { SectionHeader },
|
|
24
|
+
setup() {
|
|
25
|
+
return args;
|
|
31
26
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
ICONS: Object.freeze(ICONS),
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
methods: {
|
|
33
|
+
onIsExpandedUpdated(isExpanded) {
|
|
34
|
+
updateArgs({
|
|
35
|
+
isExpanded,
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
template:
|
|
40
|
+
'<section-header' +
|
|
41
|
+
' :is-expandable="isExpandable"' +
|
|
42
|
+
' :hide-slot-when-collapsed="hideSlotWhenCollapsed"' +
|
|
43
|
+
' :icon-left="ICONS[iconLeft]"' +
|
|
44
|
+
' :icon-left-color="iconLeftColor"' +
|
|
45
|
+
' :icon-right="ICONS[iconRight]"' +
|
|
46
|
+
' :icon-right-color="iconRightColor"' +
|
|
47
|
+
' :is-expanded="isExpanded"' +
|
|
48
|
+
' :size="size"' +
|
|
49
|
+
' :info="info"' +
|
|
50
|
+
' :title="title"' +
|
|
51
|
+
' :title-ellipsis="titleEllipsis"' +
|
|
52
|
+
' :eyebrow="eyebrow"' +
|
|
53
|
+
' :has-divider="hasDivider"' +
|
|
54
|
+
' :mobile-layout="mobileLayout"' +
|
|
55
|
+
' :supportingText="supportingText"' +
|
|
56
|
+
' @update:isExpanded="onIsExpandedUpdated"' +
|
|
57
|
+
'>' +
|
|
58
|
+
'<div style="border: 1px solid;">Slot content</div>' +
|
|
59
|
+
'</section-header>',
|
|
60
|
+
};
|
|
61
|
+
};
|
|
55
62
|
|
|
56
63
|
export const Interactive = StoryTemplate.bind({});
|
|
57
64
|
|
|
@@ -62,11 +69,11 @@ const args = {
|
|
|
62
69
|
supportingText:
|
|
63
70
|
'Supporting text. Et doloribus aspernatur suscipit provident maiores. Natus natus et pariatur. Eligendi illo quo esse. Tenetur ad neque veniam.',
|
|
64
71
|
eyebrow: 'eyebrow text',
|
|
65
|
-
iconLeft:
|
|
66
|
-
iconLeftColor:
|
|
67
|
-
iconRight:
|
|
68
|
-
iconRightColor:
|
|
69
|
-
info:
|
|
72
|
+
iconLeft: null,
|
|
73
|
+
iconLeftColor: SECTION_HEADER_ICON_COLORS.NEUTRAL,
|
|
74
|
+
iconRight: null,
|
|
75
|
+
iconRightColor: SECTION_HEADER_ICON_COLORS.NEUTRAL,
|
|
76
|
+
info: false,
|
|
70
77
|
hasDivider: true,
|
|
71
78
|
isExpandable: false,
|
|
72
79
|
isExpanded: false,
|
|
@@ -76,41 +83,36 @@ const args = {
|
|
|
76
83
|
|
|
77
84
|
const argTypes = {
|
|
78
85
|
iconLeft: {
|
|
79
|
-
control:
|
|
80
|
-
|
|
86
|
+
control: 'select',
|
|
87
|
+
options: [null, ...Object.keys(ICONS)],
|
|
81
88
|
},
|
|
82
89
|
iconLeftColor: {
|
|
83
|
-
control:
|
|
84
|
-
|
|
90
|
+
control: 'select',
|
|
91
|
+
options: [null, ...Object.values(SECTION_HEADER_ICON_COLORS)],
|
|
85
92
|
},
|
|
86
93
|
iconRight: {
|
|
87
|
-
control:
|
|
88
|
-
|
|
94
|
+
control: 'select',
|
|
95
|
+
options: [null, ...Object.keys(ICONS)],
|
|
89
96
|
},
|
|
90
97
|
iconRightColor: {
|
|
91
|
-
control:
|
|
92
|
-
|
|
98
|
+
control: 'select',
|
|
99
|
+
options: [null, ...Object.values(SECTION_HEADER_ICON_COLORS)],
|
|
93
100
|
},
|
|
94
101
|
size: {
|
|
95
|
-
control:
|
|
96
|
-
|
|
102
|
+
control: 'select',
|
|
103
|
+
options: Object.values(SECTION_HEADER_SIZES),
|
|
97
104
|
},
|
|
98
105
|
hasDivider: {
|
|
99
|
-
control:
|
|
100
|
-
defaultValue: true,
|
|
106
|
+
control: 'boolean',
|
|
101
107
|
},
|
|
102
108
|
info: {
|
|
103
|
-
control:
|
|
104
|
-
defaultValue: false,
|
|
109
|
+
control: 'boolean',
|
|
105
110
|
},
|
|
106
111
|
mobileLayout: {
|
|
107
|
-
control:
|
|
108
|
-
|
|
109
|
-
options: Object.values(SECTION_HEADER_MOBILE_LAYOUTS),
|
|
110
|
-
defaultValue: SECTION_HEADER_MOBILE_LAYOUTS.VERTICAL,
|
|
111
|
-
},
|
|
112
|
+
control: 'select',
|
|
113
|
+
options: Object.values(SECTION_HEADER_MOBILE_LAYOUTS),
|
|
112
114
|
},
|
|
113
|
-
titleEllipsis: { control:
|
|
115
|
+
titleEllipsis: { control: 'boolean' },
|
|
114
116
|
} as ArgTypes;
|
|
115
117
|
|
|
116
118
|
Interactive.argTypes = argTypes;
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
:size="iconSize"
|
|
22
22
|
/>
|
|
23
23
|
<div class="ds-sectionHeader__titleContainer">
|
|
24
|
-
<div v-if="eyebrow" class="ds-sectionHeader__eyebrow"
|
|
25
|
-
eyebrow
|
|
26
|
-
|
|
24
|
+
<div v-if="eyebrow" class="ds-sectionHeader__eyebrow"
|
|
25
|
+
>{{ eyebrow }}
|
|
26
|
+
</div>
|
|
27
27
|
<div
|
|
28
28
|
class="ds-sectionHeader__title"
|
|
29
29
|
:class="{ '-ds-ellipsis': titleEllipsis }"
|
|
@@ -348,9 +348,9 @@ import {
|
|
|
348
348
|
import DsIcon, { ICON_SIZES, IconItem, ICONS } from '../../Icons/Icon';
|
|
349
349
|
import DsIconButton, { ICON_BUTTON_COLORS, ICON_BUTTON_SIZES } from '../../Buttons/IconButton';
|
|
350
350
|
import DsDivider from '../../Divider';
|
|
351
|
-
import { toRaw } from 'vue';
|
|
351
|
+
import { defineComponent, toRaw } from 'vue';
|
|
352
352
|
|
|
353
|
-
export default {
|
|
353
|
+
export default defineComponent({
|
|
354
354
|
name: 'SectionHeader',
|
|
355
355
|
components: {
|
|
356
356
|
DsIcon,
|
|
@@ -491,5 +491,5 @@ export default {
|
|
|
491
491
|
this.$emit('update:isExpanded', this.isExpandedInternal);
|
|
492
492
|
},
|
|
493
493
|
},
|
|
494
|
-
};
|
|
494
|
+
});
|
|
495
495
|
</script>
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
const StoryTemplate: StoryFn<typeof IconText> = (args) => ({
|
|
12
12
|
components: { IconText },
|
|
13
13
|
setup() {
|
|
14
|
-
return
|
|
14
|
+
return args;
|
|
15
15
|
},
|
|
16
16
|
template: `
|
|
17
17
|
<icon-text
|
|
@@ -43,18 +43,19 @@ Interactive.args = {
|
|
|
43
43
|
|
|
44
44
|
const argTypes = {
|
|
45
45
|
color: {
|
|
46
|
-
control:
|
|
46
|
+
control: 'select',
|
|
47
47
|
options: Object.values(ICON_TEXT_COLORS),
|
|
48
48
|
},
|
|
49
49
|
icon: {
|
|
50
|
-
control:
|
|
50
|
+
control: 'select',
|
|
51
|
+
options: Object.keys(ICONS),
|
|
51
52
|
},
|
|
52
53
|
size: {
|
|
53
|
-
control:
|
|
54
|
+
control: 'select',
|
|
54
55
|
options: Object.values(ICON_TEXT_SIZES),
|
|
55
56
|
},
|
|
56
57
|
state: {
|
|
57
|
-
control:
|
|
58
|
+
control: 'select',
|
|
58
59
|
options: Object.values(ICON_TEXT_STATES),
|
|
59
60
|
},
|
|
60
61
|
} as ArgTypes;
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
import Icon, { ICON_SIZES, ICONS } from '../Icons/Icon';
|
|
125
125
|
import { ICON_TEXT_COLORS, ICON_TEXT_SIZES, ICON_TEXT_STATES } from './IconText.consts';
|
|
126
126
|
import { Value } from '../../utils/type.utils';
|
|
127
|
-
import { toRaw } from 'vue';
|
|
127
|
+
import { defineComponent, toRaw } from 'vue';
|
|
128
128
|
|
|
129
|
-
export default {
|
|
129
|
+
export default defineComponent({
|
|
130
130
|
name: 'IconText',
|
|
131
131
|
components: {
|
|
132
132
|
Icon,
|
|
@@ -188,5 +188,5 @@ export default {
|
|
|
188
188
|
return ICON_SIZES.X_SMALL;
|
|
189
189
|
},
|
|
190
190
|
},
|
|
191
|
-
};
|
|
191
|
+
});
|
|
192
192
|
</script>
|
|
@@ -2,7 +2,7 @@ import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
|
|
|
2
2
|
|
|
3
3
|
import FeatureIcon from './FeatureIcon.vue';
|
|
4
4
|
import { ICONS } from '../Icon';
|
|
5
|
-
import {
|
|
5
|
+
import { FEATURE_ICON_COLOR, FEATURE_ICON_SIZES } from './FeatureIcon.consts';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Components/Icons/FeatureIcon',
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
const StoryTemplate: StoryFn<typeof FeatureIcon> = (args) => ({
|
|
13
13
|
components: { FeatureIcon },
|
|
14
14
|
setup() {
|
|
15
|
-
return
|
|
15
|
+
return args;
|
|
16
16
|
},
|
|
17
17
|
template:
|
|
18
18
|
'<feature-icon :icon="ICONS[icon]" :size="size" :color="color" :doubleBackground="doubleBackground" />',
|
|
@@ -25,24 +25,28 @@ const StoryTemplate: StoryFn<typeof FeatureIcon> = (args) => ({
|
|
|
25
25
|
|
|
26
26
|
export const Interactive = StoryTemplate.bind({});
|
|
27
27
|
|
|
28
|
-
const args = {
|
|
28
|
+
const args = {
|
|
29
|
+
size: FEATURE_ICON_SIZES.X_LARGE,
|
|
30
|
+
icon: 'FA_CIRCLE_QUESTION',
|
|
31
|
+
color: FEATURE_ICON_COLOR.PRIMARY,
|
|
32
|
+
doubleBackground: true,
|
|
33
|
+
} as Args;
|
|
29
34
|
|
|
30
35
|
const argTypes = {
|
|
31
36
|
size: {
|
|
32
|
-
control:
|
|
33
|
-
|
|
37
|
+
control: 'select',
|
|
38
|
+
options: Object.values(FEATURE_ICON_SIZES),
|
|
34
39
|
},
|
|
35
40
|
icon: {
|
|
36
|
-
control:
|
|
37
|
-
|
|
41
|
+
control: 'select',
|
|
42
|
+
options: [null, ...Object.keys(ICONS)],
|
|
38
43
|
},
|
|
39
44
|
color: {
|
|
40
|
-
control:
|
|
41
|
-
|
|
45
|
+
control: 'select',
|
|
46
|
+
options: Object.values(FEATURE_ICON_COLOR),
|
|
42
47
|
},
|
|
43
48
|
doubleBackground: {
|
|
44
|
-
control:
|
|
45
|
-
defaultValue: true,
|
|
49
|
+
control: 'boolean',
|
|
46
50
|
},
|
|
47
51
|
} as ArgTypes;
|
|
48
52
|
|
|
@@ -120,9 +120,9 @@ $feature-icon-padding-large: 10px;
|
|
|
120
120
|
<script lang="ts">
|
|
121
121
|
import WnlIcon, { ICON_SIZES, ICONS } from '../Icon';
|
|
122
122
|
import { FEATURE_ICON_COLOR, FEATURE_ICON_SIZES } from './FeatureIcon.consts';
|
|
123
|
-
import { toRaw } from 'vue';
|
|
123
|
+
import { defineComponent, toRaw } from 'vue';
|
|
124
124
|
|
|
125
|
-
export default {
|
|
125
|
+
export default defineComponent({
|
|
126
126
|
name: 'FeatureIcon',
|
|
127
127
|
components: {
|
|
128
128
|
WnlIcon,
|
|
@@ -175,5 +175,5 @@ export default {
|
|
|
175
175
|
return ICON_SIZES.MEDIUM;
|
|
176
176
|
},
|
|
177
177
|
},
|
|
178
|
-
};
|
|
178
|
+
});
|
|
179
179
|
</script>
|
|
@@ -2,16 +2,18 @@ import Icon from './Icon.vue';
|
|
|
2
2
|
import { ICON_SIZES, ICONS } from './Icon.consts';
|
|
3
3
|
|
|
4
4
|
import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
|
|
5
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
title: 'Components/Icons/Icon',
|
|
8
9
|
component: Icon,
|
|
10
|
+
decorators: [withActions],
|
|
9
11
|
} as Meta<typeof Icon>;
|
|
10
12
|
|
|
11
13
|
const StoryTemplate: StoryFn<typeof Icon> = (args) => ({
|
|
12
14
|
components: { Icon },
|
|
13
15
|
setup() {
|
|
14
|
-
return
|
|
16
|
+
return args;
|
|
15
17
|
},
|
|
16
18
|
template:
|
|
17
19
|
'<div class="sbIconList__singleIcon"><icon :icon="ICONS[icon]" :size="size" :touchable="touchable" :spinning="spinning" :rotation="rotation" :flipped-vertical="flippedVertical" :flipped-horizontal="flippedHorizontal" /></div>',
|
|
@@ -36,16 +38,16 @@ const args = {
|
|
|
36
38
|
|
|
37
39
|
const argTypes = {
|
|
38
40
|
size: {
|
|
39
|
-
control:
|
|
40
|
-
|
|
41
|
+
control: 'select',
|
|
42
|
+
options: Object.values(ICON_SIZES),
|
|
41
43
|
},
|
|
42
44
|
icon: {
|
|
43
|
-
control:
|
|
44
|
-
|
|
45
|
+
control: 'select',
|
|
46
|
+
options: Object.keys(ICONS),
|
|
45
47
|
},
|
|
46
48
|
rotation: {
|
|
47
|
-
control:
|
|
48
|
-
|
|
49
|
+
control: 'select',
|
|
50
|
+
options: [null, 90, 180, 270],
|
|
49
51
|
},
|
|
50
52
|
} as ArgTypes;
|
|
51
53
|
|
|
@@ -65,7 +67,7 @@ Interactive.parameters = {
|
|
|
65
67
|
const StoryAllIconsTemplate: StoryFn<typeof Icon> = (args) => ({
|
|
66
68
|
components: { Icon },
|
|
67
69
|
setup() {
|
|
68
|
-
return
|
|
70
|
+
return args;
|
|
69
71
|
},
|
|
70
72
|
template:
|
|
71
73
|
'<div class="sbIconList">' +
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
24
24
|
|
|
25
25
|
import { ICON_SIZES, ICONS } from './Icon.consts';
|
|
26
|
-
import { toRaw } from 'vue';
|
|
26
|
+
import { defineComponent, toRaw } from 'vue';
|
|
27
27
|
|
|
28
|
-
export default {
|
|
28
|
+
export default defineComponent({
|
|
29
29
|
name: 'Icon',
|
|
30
30
|
components: {
|
|
31
31
|
FontAwesomeIcon,
|
|
@@ -82,5 +82,5 @@ export default {
|
|
|
82
82
|
return `-ds-rotate${this.rotation}`;
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
|
-
};
|
|
85
|
+
});
|
|
86
86
|
</script>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Args, Meta, StoryFn } from '@storybook/vue3';
|
|
1
|
+
import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
|
|
2
2
|
import DsImage from './Image.vue';
|
|
3
3
|
import { IMAGE_FITS } from './Image.consts';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
const StoryTemplate: StoryFn<typeof DsImage> = (args) => ({
|
|
11
11
|
components: { DsImage },
|
|
12
12
|
setup() {
|
|
13
|
-
return
|
|
13
|
+
return args;
|
|
14
14
|
},
|
|
15
15
|
template: `
|
|
16
16
|
<div style="height: 500px; width: 800px;">
|
|
@@ -30,7 +30,7 @@ Interactive.args = {
|
|
|
30
30
|
|
|
31
31
|
Interactive.argTypes = {
|
|
32
32
|
fit: {
|
|
33
|
-
control:
|
|
34
|
-
|
|
33
|
+
control: 'select',
|
|
34
|
+
options: Object.values(IMAGE_FITS),
|
|
35
35
|
},
|
|
36
|
-
};
|
|
36
|
+
} as ArgTypes;
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
const StoryTemplate: StoryFn<typeof ThreeColumnLayout> = (args) => ({
|
|
27
27
|
components: { ThreeColumnLayout },
|
|
28
28
|
setup() {
|
|
29
|
-
return
|
|
29
|
+
return args;
|
|
30
30
|
},
|
|
31
31
|
template: `
|
|
32
32
|
<three-column-layout :rightColumnSize='rightColumnSize'
|
|
@@ -63,14 +63,14 @@ const args = {
|
|
|
63
63
|
|
|
64
64
|
const argTypes = {
|
|
65
65
|
rightColumnSize: {
|
|
66
|
-
control:
|
|
67
|
-
|
|
66
|
+
control: 'select',
|
|
67
|
+
options: Object.values(THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE),
|
|
68
68
|
},
|
|
69
|
-
leftColumnVisible: { control:
|
|
70
|
-
rightColumnVisible: { control:
|
|
71
|
-
initialMobileRightColumnVisibleState: { control:
|
|
72
|
-
initialMobileLeftColumnVisibleState: { control:
|
|
73
|
-
contentWithoutPadding: { control:
|
|
69
|
+
leftColumnVisible: { control: 'boolean' },
|
|
70
|
+
rightColumnVisible: { control: 'boolean' },
|
|
71
|
+
initialMobileRightColumnVisibleState: { control: 'boolean' },
|
|
72
|
+
initialMobileLeftColumnVisibleState: { control: 'boolean' },
|
|
73
|
+
contentWithoutPadding: { control: 'boolean' },
|
|
74
74
|
} as ArgTypes;
|
|
75
75
|
|
|
76
76
|
Interactive.argTypes = argTypes;
|
|
@@ -196,13 +196,13 @@ $right-column-large-l-max-width: $right-column-large-max-width;
|
|
|
196
196
|
</style>
|
|
197
197
|
|
|
198
198
|
<script lang="ts">
|
|
199
|
-
import { PropType } from 'vue';
|
|
199
|
+
import { defineComponent, PropType } from 'vue';
|
|
200
200
|
import {
|
|
201
201
|
THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE,
|
|
202
202
|
ThreeColumnLayoutRightColumnSize,
|
|
203
203
|
} from './ThreeColumnLayout.consts';
|
|
204
204
|
|
|
205
|
-
export default {
|
|
205
|
+
export default defineComponent({
|
|
206
206
|
name: 'ThreeColumnLayout',
|
|
207
207
|
props: {
|
|
208
208
|
rightColumnSize: {
|
|
@@ -264,5 +264,5 @@ export default {
|
|
|
264
264
|
this.leftColumnVisibleMobile = this.initialMobileLeftColumnVisibleState;
|
|
265
265
|
this.rightColumnVisibleMobile = this.initialMobileRightColumnVisibleState;
|
|
266
266
|
},
|
|
267
|
-
};
|
|
267
|
+
});
|
|
268
268
|
</script>
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
const StoryTemplate: StoryFn<typeof LoadingBar> = (args) => ({
|
|
11
11
|
components: { DsLoadingBar: LoadingBar },
|
|
12
12
|
setup() {
|
|
13
|
-
return
|
|
13
|
+
return args;
|
|
14
14
|
},
|
|
15
15
|
template: `<ds-loading-bar :size="size" :color="color" :time="time" />`,
|
|
16
16
|
});
|
|
@@ -25,12 +25,12 @@ const args = {
|
|
|
25
25
|
|
|
26
26
|
const argTypes = {
|
|
27
27
|
size: {
|
|
28
|
-
control:
|
|
29
|
-
|
|
28
|
+
control: 'select',
|
|
29
|
+
options: Object.values(LOADING_BAR_SIZES),
|
|
30
30
|
},
|
|
31
31
|
color: {
|
|
32
|
-
control:
|
|
33
|
-
|
|
32
|
+
control: 'select',
|
|
33
|
+
options: Object.values(LOADING_BAR_COLORS),
|
|
34
34
|
},
|
|
35
35
|
} as ArgTypes;
|
|
36
36
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
</style>
|
|
59
59
|
|
|
60
60
|
<script lang="ts">
|
|
61
|
-
import { PropType } from 'vue';
|
|
61
|
+
import { defineComponent, PropType } from 'vue';
|
|
62
62
|
import {
|
|
63
63
|
LOADING_BAR_COLORS,
|
|
64
64
|
LOADING_BAR_SIZES,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
LoadingBarSizes,
|
|
67
67
|
} from './LoadingBar.consts';
|
|
68
68
|
|
|
69
|
-
export default {
|
|
69
|
+
export default defineComponent({
|
|
70
70
|
name: 'LoadingBar',
|
|
71
71
|
props: {
|
|
72
72
|
color: {
|
|
@@ -110,5 +110,5 @@ export default {
|
|
|
110
110
|
this.width = 100;
|
|
111
111
|
}, 0);
|
|
112
112
|
},
|
|
113
|
-
};
|
|
113
|
+
});
|
|
114
114
|
</script>
|
|
@@ -106,7 +106,9 @@
|
|
|
106
106
|
<script lang="ts">
|
|
107
107
|
import WnlIcon, { ICON_SIZES, ICONS } from '../Icons/Icon';
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
import { defineComponent } from 'vue';
|
|
110
|
+
|
|
111
|
+
export default defineComponent({
|
|
110
112
|
name: 'Modal',
|
|
111
113
|
components: { WnlIcon },
|
|
112
114
|
props: {
|
|
@@ -128,5 +130,5 @@ export default {
|
|
|
128
130
|
ICON_SIZES: Object.freeze(ICON_SIZES),
|
|
129
131
|
};
|
|
130
132
|
},
|
|
131
|
-
};
|
|
133
|
+
});
|
|
132
134
|
</script>
|